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

 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 ZT,Y1,q2T,Y2I,P6,O2,$j6,bN,J2,e82,CNN,PNO,B6,OX1,HX1,E2,u9O,tO6,J22,Bz2,QT9,E1j,Tzz,KIT,sTe,c2O,rW,Nzz,VD,lTj,H1,Ge1,uX,S2,mjX,A2z,QD,Up,Dj1,qpT,Z9I,Ih,rKz,Yp2,$7j,CX9,w1I,M7,V2N,Wvz,vg2,$8,jh8,t29,Rmj,b91,JKj,wb,u7X,qS,Lv8,Spj,Ege,x7X,TW1,V7,kJj,KvN,sh6,Ie2,M2I,FvN,GJj,p1j,m7T,D7j,ggT,Zl2,q6N,Jc,wy9,CC8,PC1,dSX,WFI,Ol8,HlT,aq,cK8,nl,Q7,E6,LFj,o8N,uDN,k8,S6O,v86,tV8,bl6,RZ9,Jce,zZj,Bb9,Tu,n81,E8e,Tbj,sqO,pl,Nbe,US9,llz,pyX,XyO,il2,flj,ZA9,rIT,YX8,edI,CgX,OAj,Lm8,bAT,aFe,UKN,H8,KmT,IF2,cIj,j6,
R9,za,nA,xv,KA,I9,c8,X81,fFj,DKj,iA2,Z_T,gr,wqN,ZJ,w9,r9,Yq,YIT,$XT,eBX,CbX,PbO,V8I,O_z,H_O,WT9,ud6,Pq,C_,LTe,SI6,vqX,t89,j3z,RBe,JuN,zBX,L_,S8,vq,j8,R3,aJ2,bb,Q3T,k$e,Bq,KTj,s3X,IJO,n_,cuN,M82,FTX,Q2,G$j,xq,mXe,AuI,T$,DX1,fJO,hBI,yu2,i_e,gq6,K_,q36,ZC2,sI,w3j,rjj,I3,cq,MX,Fd,Y3T,eT9,$u9,NX,PMj,VhO,OC8,G$,Xd,f_,DJ,hu,y2,HC1,WeT,ox9,ug8,LeO,S3T,vxN,j46,th8,RT9,bCj,Jj1,g9,zTj,BDj,aMO,$x,eh,nxj,xuj,TDT,Uu9,KeT,s4X,IM1,NDI,lMO,GxX,p38,X3I,muT,Aj8,yjj,dD,iCz,gxX,Vg,qJ1,ZhX,wGT,r1z,$b6,SJ6,viz,j12,bhT,
J16,Sh,zO2,niX,xbj,TX8,UbI,k12,KtN,s1z,IA9,c1T,Ft9,NX9,Q12,lAX,G1I,pGT,XGO,mb8,A1T,fAX,Dbj,hOX,Z7O,giX,Yu9,wN1,rXT,CSj,PS1,doe,$oX,O7T,e2N,WPT,I4,c3,Fg,o62,LP6,SuN,tGX,xoI,b7j,R22,z28,aBI,JXI,IBj,k22,cXT,MGI,FP6,Nc8,lBz,pNX,G2T,moT,AXN,fBO,Do1,yX8,g6O,qq6,Zsz,rfN,wF6,ueT,L68,pC,Sq8,t99,Re9,bsX,Jfe,zeN,aV8,nT2,QzT,iM,ETj,szI,wX,rX,F69,lV2,is6,Cp8,Ch,VTT,orz,HYN,Wh6,HG,uyj,LhX,vrI,jR6,tT2,RRz,bYz,JmN,zR1,aLI,nrT,Er2,QR8,U4N,R1,z1,Kh1,sRO,ILj,cme,MTN,Fhj,lL9,pgT,GOe,I1,Mb,qGO,l6,YG1,G1,e$N,ph,Phj,ChT,
Ll1,vYj,R$T,bBN,z$I,BIj,a$j,Q$1,TI9,UN9,fh,qUN,rYz,YUj,$U8,e7e,Cx8,wO6,gY6,iBI,h1,y9X,PxI,VX1,HbI,uue,WDT,gX,SUT,jwj,tXO,R7O,bb6,rc,JYe,B5I,z7O,aU8,Qwj,eG,swj,cYj,KDT,N5T,pOj,XOe,Ou,HN,WN,mU2,h71,oF,vN,qAX,tX,rl1,ePj,P9O,dyj,Vxe,RF,Oy6,HyO,W36,u1z,L3N,SAT,va1,txj,JX,RP2,by6,aF,Eu,BJX,awI,naj,Uu,xyT,TJe,kle,Mo,F3e,NJ2,lw6,GlX,p0e,G2,p7,X4,mP,Al6,f7,fwj,Dy2,hPj,yl2,ga1,qPj,iyj,wkX,ZpX,ryT,C5z,hX,eEj,P5N,YP8,d$I,iS,Hp2,VsT,WJI,oQ1,uK2,SP8,LJ8,vQT,RE2,js6,Jyj,EQ8,T0O,kX6,ssT,MsT,cy6,Ij2,FJ2,GXO,Xke,pk9,
m$I,fj9,D$z,HF,gQ2,uO,wdT,ZRN,rTj,S9,vF,Yhj,j9,$Me,CI6,dMX,HRz,oKj,Wu6,NR,umX,PIT,bR2,JTN,zA1,Xe,BTX,nKj,QV9,DV,xMO,k7z,UM2,cT1,MKj,Fu8,NTX,G7O,fC2,pd2,mM2,AT6,DMz,yT1,hAj,gKX,iR6,rf,qEN,wX8,r01,CF6,Ok,Hg,PF9,d9X,Wg,WST,ST,vg,jT,SE2,tm,tZ8,Jm,RWz,bzX,J0T,zWT,aR,Btj,nO8,QZ9,x9j,U9I,sZN,c0e,sk,MZT,FS1,Nt8,lk1,G92,pXz,XX9,m9N,M4,D92,hWe,y09,izI,gOT,q8T,Zo9,wPT,rr6,Y81,$Z8,eyj,Cq9,DL,jJ6,taT,hm,yL,ip,Ry2,bo9,Jr2,zyT,B3N,a5z,nze,UZT,kIX,K2O,sJ9,I51,wI,YY,$Y,eJ,dI,VP,OG,Ma2,W5,N3T,o$,l5O,GIT,uh,pPj,XP2,
mZe,Z5T,rJe,PyT,H5N,O5X,wpT,Wyj,Ly2,xTz,b5X,sAT,zsT,Kyz,INI,J9,MH6,B5,NxN,lNN,ppI,Xp9,mTT,fN1,QP,hs2,yJI,i59,gl9,qL2,Znj,wJN,DT1,$x9,eK8,Cmj,xY,WqN,ocO,Hnz,LqT,SLj,jQe,tpe,vcI,ncj,Ec8,TaN,kLT,NN,Fq8,MpT,XJ2,AEj,ffO,DxI,hKz,yE1,in2,qU,ClT,d0e,$0e,Y1O,Ple,q1O,O6N,b66,oBz,u6I,LjO,U06,Kjj,T6T,N62,x0T,gcX,Fjj,Wj6,RI8,kRI,VjX,weO,Z6j,r79,eIX,EBT,Lb,wx6,$AX,YMN,eYj,Co2,Po9,SMI,JL2,zY2,Qo,av6,EL9,kdO,UA9,s5O,Iv9,FW6,Mrj,Npj,Gd6,Fu,pxj,XxX,ALT,mAI,NU,gL6,iV1,yLT,rQO,qz9,Yzj,wQz,$lj,GF,ekX,Ve2,P2X,dl6,HPe,
WBj,LBO,o_9,Sz8,Rk6,bPI,Bn1,n_j,hY,yo,Tnj,UlT,ix,g5,ksj,qy,Zw,KB8,wJ,sg2,rJ,IQT,cQ9,ex,MeO,FBO,Nn2,lQ9,GsO,XQN,pQj,AQ2,hk1,DlO,yQT,iPI,mlj,g_9,wHT,Zdz,fQ9,rWI,Yn8,OA,$d1,Cie,eDe,PiT,ddI,OdT,VlO,HdN,W0,o4I,urj,W12,Snj,v4N,j0N,JWj,abI,T16,s0z,o_,Ml9,F12,u9,N1e,jx,tl,AW9,Sx,Jl,fb2,DdI,yW8,idX,qg2,wIT,rz2,Ygj,$Yj,PYO,Wg1,Oce,CY2,oZ9,uH8,ny,HcX,Lg2,xa,Sg1,vZ8,jlX,tFN,zL6,RLX,JzT,Ql2,EZj,KgN,kPz,czN,pI1,XI6,AzI,DYz,hL6,icz,gZz,qvT,wrI,r$N,YvX,C42,OIj,HII,P48,oAX,L9N,ub2,W96,Sv6,jr1,tzX,Rv6,bIO,J$O,py,X1,
fy,hl,aI6,nAN,EAT,Uf6,y4,i9,k3z,q$,IIe,c$X,Mz2,w0,prO,fIX,hvz,y$j,iIX,gAj,qTI,rq6,YQ,YTO,CQT,$Q,PQz,ONO,HN6,Wx9,V3j,jnz,bNO,t3T,Jq6,aS8,Qn9,xCN,KxO,kM8,M3N,VY,FxT,N_9,OP,lS2,Hk,GMX,pDj,XDj,AqT,mCj,fST,DC9,hUj,yqT,Ys8,en2,PU2,CU1,ZG6,g2j,Vie,HGX,Ss6,vXj,znX,ag1,Lp,nXT,EX9,x1O,U1j,IgT,Mij,NkI,lge,GS2,pW8,D1X,XWj,gXO,qiN,wBN,js,Yij,$LT,e1T,CaO,PaN,dL2,Vb9,Hj2,WwT,Jy,uJz,Lw6,j7j,zX,vn8,R16,B2j,as,a7X,nnT,Q71,T2z,UL1,En1,Kw2,MbO,GZN,pBN,sP,XB2,DLe,gn6,FK,wR8,qmj,ZD8,YmT,et1,CBI,ODN,oDe,W7O,HD9,uO1,Sm8,
vDT,ztN,jWI,B4O,QW8,aGT,K7j,c56,F7j,lG2,y5X,gDN,qZX,YZT,CJ2,tT,Eh,SZ2,Lb2,jD1,tQ2,bk2,R3e,J4z,z3X,xK,dTN,oJO,vJT,uWz,nR,nJ2,QDI,EJ8,xI6,Fm,Tl2,NM,UI6,kv8,Kb2,sD2,pR,Iie,Fbe,li6,GvO,h3j,ik6,gJT,qN6,wZT,rAe,gT,$r8,ef2,CGe,PGN,dr8,VE1,HHe,o52,LGT,SNN,JA2,RfT,zf2,n5j,Qx8,Cz,E5O,xrX,TZj,KGX,I12,sxz,ME2,NZ2,OE,Gg8,pZ2,l11,XZN,mrj,f1I,hfT,Dr6,yAT,AAI,iH2,g59,qK2,ZqI,wV6,rD6,YKj,$ke,ep6,dkX,P82,V1O,Hq9,OqN,HX,WM6,LM2,RpO,oC1,bqO,JDO,zp2,BFX,kB9,sa2,IK1,M1e,FM2,J0,pV8,fKj,hpI,z9,qYI,gC2,ZK6,nz,wE8,rgO,YYz,
eFO,C3z,P3T,dnI,OKX,HK2,bK6,vb2,t_9,zF2,Jg2,BjO,aZN,QL2,xnj,Un9,Ka1,XEe,fZe,hFj,yg2,iKO,gbO,qte,wv9,rCI,e6j,CP2,PPT,dW8,VL8,OZj,HZ9,Wr9,LrT,j26,tLN,R6N,FR,N9,lF,G9,bZ2,A0,z62,nkz,xWj,kU2,IhI,Fr8,cCI,r_j,YWT,fh6,gk8,ZOT,lhz,yC9,MLe,DWe,ah1,Xv8,UW9,EkX,eGN,Cc9,Pcz,s22,GUT,ACO,VAI,HOz,oNj,SW9,vNX,w3,apN,Bmj,xt8,ki2,syz,c_6,MA8,lp1,pj6,Gi8,A_z,DtT,waI,qfI,y_z,ZLz,iOT,rpX,C$2,Lo,L5I,W5T,vde,j6N,Rh8,bLI,vP,JpO,axj,nd8,Q6I,Ed2,cpX,Ix1,aJ,U8,XaI,mOX,Ko,Apj,fx9,DOj,hhe,ype,iLN,gdX,qFj,Zt6,whO,rO9,YFO,$h9,
eMz,C_T,s8,P_2,dh6,V4j,Otj,HtO,W4O,oj2,uxT,L46,SFT,vj2,jeN,cP,RMe,JO2,B8j,Qej,T89,Uhj,kWT,seT,cO2,M4I,F4e,luT,mh2,phX,AO8,fu1,DhN,itN,rZ9,Yyj,eH9,wx,PRe,qT,VdX,O2X,rx,H2z,ohe,uPz,L81,Yl,tdj,b22,QXI,nhO,xs9,Tq6,Vy,OD,UsI,K82,Iqj,cZI,F8O,NqT,sX2,lqX,AZ6,nM2,Qce,Hp,EM8,xH8,scj,Tdj,kKN,KX6,lnX,cw6,GKX,pwT,mHT,fnj,DHX,hNX,ywI,iMN,gMN,ZSe,w_8,rn2,YBj,$eO,CZ9,deN,HST,LA6,jO2,Rl2,zlz,jH,BEe,acT,nse,QON,Es6,TE1,Uej,kbX,KAj,sO8,Ic2,cn1,MY8,FA2,NEz,lcz,p_z,Gb2,Anj,Dee,hl2,by,ynz,iS2,Ze2,qQj,zp,YQj,$qO,PkT,VWN,
dqX,CkN,WHI,HeO,vIe,oIN,Tp,LHz,Bgz,RST,bez,Ji6,zS1,a9z,Quj,nIO,UD,kl,suT,xq2,KHI,kE2,Tg2,Uq2,MW2,FH2,l9j,Ng2,mq1,X$1,DqT,hST,iej,gI1,yiX,q0e,wzz,Zwe,Y0O,CV6,ly,PV2,d52,Hwe,S02,JF6,p5,BOz,ERI,kc9,U56,x5z,TO2,DN,McT,sM1,I4I,FRj,l4j,NO1,Xz9,m5j,f41,D5O,hX2,yF6,iwI,qaO,Z8T,ep,rS9,PJ,YaO,PHj,dwX,HJ,Vq8,H8z,RbN,b8e,L$1,tqX,Sa8,vtT,aXT,nt1,BH9,QY8,Etj,k41,xw1,K$j,sYO,vJ,cS1,Mq8,F$N,IXT,lXz,NHT,jp,mwz,gtj,qCz,Z1j,wLO,rBz,YC2,PtI,e5T,Ctj,$vT,VIj,H1T,WK2,LKO,SCO,jNj,zL,tIX,R5j,b1e,z51,BNe,a21,nE2,QNT,xvO,Uv1,
ktO,I26,sN6,MIN,cBj,FKT,NN2,l2j,Q1,pLj,wSO,q$1,$V8,e42,HJ6,WCT,opO,uM6,LC2,S$9,tm8,R4j,bJj,Jde,a62,np1,Qm8,Ep8,xV2,Twj,UVT,kNj,KCT,smN,I66,MmT,FCj,Nwj,GN9,XS9,AdO,yde,h4j,DVj,f69,Df,gp2,q9T,ZFX,wuN,$GT,rMT,exN,im,Cre,Y9I,Pr2,dGX,VBj,OFT,HF6,WpN,Lpj,uh9,oG2,S9e,vGO,bFj,JM1,ej,zxI,BVO,aE2,nGI,QfT,EGT,TV9,UGT,k62,Kp2,cMT,IE8,G61,sf1,Pe,puj,MB2,lEe,AMN,DGI,qV6,iFO,gGz,yMI,hx2,ul,ZiN,roz,YVI,$gT,eoT,CsT,Sj,ve,Hi2,dg2,Ps8,Vnj,JoT,RoI,OiN,tnz,xg6,TUO,Ug1,TR,kq8,KUT,sv1,Mn9,NUO,Gq8,XM2,mg9,AoX,yoX,hoe,iiN,
qo1,M0,raO,YoT,$pN,eJ9,N0,ll,dpj,Hrj,vSX,br8,Ja2,zJe,BPI,a02,QpO,xp2,ESj,TPO,Up6,kV9,KzT,spO,I0O,caX,MMz,Fzz,f6,psz,NP1,Dd,mpj,Xsj,Aa1,qHT,ZWI,yaj,hJX,gS2,irO,e_2,Cu2,PuT,d3j,VN6,OWX,HWX,WkX,LkT,oy9,uo6,SHj,jIj,R_8,JV2,Buj,ny2,TuT,U3X,kmj,Kk2,sI8,qA,cVz,Iy2,Zv,MNj,NuT,ly1,Gmj,p9N,D3T,h_N,yVX,iWI,gyT,qdT,ZET,CV,rh8,Yd2,$mT,Cj1,eQj,PjO,VPO,OEz,HEj,o02,uF1,WEj,RQO,zQI,B$N,aRI,n0N,E09,QdI,KE9,sd2,IRT,ch2,FE6,MP2,lRT,fR1,Ahj,hQN,yh2,iET,rNN,Yxz,$QN,e0T,Ovj,Vf2,dQ6,o9j,LQ1,uqX,Sxj,R5,v91,jEX,JNN,bvj,z0j,
BoX,a_j,n92,xQ2,UQj,kDj,KQ1,sE6,I_2,cNe,Mfj,NoT,FQe,l_6,p2j,GDe,X2z,mQI,ANT,f_N,DQ8,yNO,ivT,g92,q4z,ZuX,wi1,rtO,$DT,egT,Y4T,KV,dDe,Ouz,Hue,W0T,ooN,L02,S4T,Jtj,zg1,Eoj,TY2,UD1,sP1,IWT,ct6,Mk8,F08,NY1,G59,pi6,mD9,fW8,hgI,qj9,iue,yt9,go9,ZUz,Yj6,wbI,rP9,eVO,d6z,V$j,OU9,WZ8,oPj,u8e,SjO,j81,LZe,t$e,RVI,bUO,JP8,zVj,BeI,aOT,nPO,Q8N,x62,EPT,Tee,U6T,k0j,KZ2,s8z,IO2,cPe,M$6,lO8,G0j,FZT,Ne1,m62,D6N,hVT,C78,rx1,ez2,P72,$z1,y0,dz2,Vtj,H$9,uQ9,oF6,LcX,SO1,io,ql,jS6,tt2,rn,Y_,Rz2,b$T,aoO,EFe,TvN,UzN,kw2,Kc9,sS2,
cx8,MtT,Fce,NvT,loj,GwO,pT9,CP,XT1,mze,dn,AxO,fo2,DzT,hzj,yx9,i$I,HQ,WQ,gFT,qcO,og,Zaz,w7z,reI,YcT,ej2,Cnj,d82,o3e,WNO,HaN,unO,LNT,baI,jH2,to6,v32,RjO,LP,aHO,n31,QH9,E3X,x8j,U86,IH2,KNX,Se,kHz,lH9,p71,X7I,m8X,AeX,fHe,ye2,iaz,ql9,ZQX,w4z,rv9,$iN,ewX,Cz6,diO,Vw8,OQT,WsI,oH6,Ls9,Sl8,tw8,bQj,zw8,Jv6,a32,nHN,QBz,EH9,xi8,Ui2,kk2,Kse,Fs9,NRT,l31,Gkj,X46,BQ,nP,ag,miT,Avj,f32,DiN,iQ1,yvI,qbT,Z4N,wcT,Yb1,$cN,dcX,O4T,H4X,WVz,Ez,owj,LV9,SbT,tv2,RaI,x_,Ts,za2,b4X,Biz,QU6,amz,Ewe,k_,Ti1,Uc2,sUI,cUe,KP,FVO,NiI,
lmO,GrT,pcz,Xc8,mcz,ha2,yUe,qej,i4O,gwO,Zg8,wKj,eqT,r8X,$EX,CAe,PA8,dE1,Hg6,W_T,om8,ucT,L_j,bgj,Rq1,QCj,TBN,Gs,UE2,jz6,kyO,K_1,Ia1,MS8,F_O,A8O,fa2,hQ,DEN,hq9,y82,igX,gm1,Zxj,r62,qr2,woz,eu1,$22,PLz,d29,VyO,Oxe,Hxz,Wd2,oeX,uB2,jKT,bxI,ty1,J6z,zuN,By2,qd,aDO,neI,w1,Ee2,QKN,x22,Ty2,kAz,Kd1,ID9,c66,MyN,Fd6,NyT,GAI,m2j,D26,ixz,y66,ge9,qS2,rkj,WfI,CfT,uT2,LfN,vV1,jjN,Rc2,b0N,JkT,zc8,Bh9,as6,nVz,EVe,UP6,k8j,Kf8,sjI,M5j,ckj,G89,pfT,XfI,mP1,Ak8,DPT,jl,ykz,JW,gV9,Z32,wU8,CvN,daX,Wi6,ujN,LiO,v$9,jiO,tuT,b38,
zr9,BG8,Qi1,xa2,khI,Ua9,TG9,En,siz,Kij,IY2,csz,MuT,Fij,NG2,lY9,Ghj,XUI,maO,AsO,Daz,i36,fY9,hr1,g$I,qRz,ZTO,wC2,YR2,$J2,Wo9,oW1,uCI,LoI,SRX,tU9,I0,atX,nW1,Qb2,EW6,xJe,cH,cG,MUj,Nd,FoN,mJe,XCI,li,ft6,b_T;_.qj=function(q,Z){if(Error.captureStackTrace)Error.captureStackTrace(this,_.qj);else{var w=Error().stack;w&&(this.stack=w)}q&&(this.message=String(q));Z!==void 0&&(this.cause=Z)};
ZT=function(q){return(q&192)!==128};
Y1=function(){throw Error("B");};
q2T=function(q,Z){Z=String.fromCharCode.apply(null,Z);return q==null?Z:q+Z};
Y2I=function(q){var Z=!1;Z=Z===void 0?!1:Z;if(ZX9){if(Z&&(w6X?!q.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(q)))throw Error("C");q=(r2N||(r2N=new TextEncoder)).encode(q)}else{for(var w=0,r=new Uint8Array(3*q.length),Y=0;Y<q.length;Y++){var C=q.charCodeAt(Y);if(C<128)r[w++]=C;else{if(C<2048)r[w++]=C>>6|192;else{if(C>=55296&&C<=57343){if(C<=56319&&Y<q.length){var d=q.charCodeAt(++Y);if(d>=56320&&d<=57343){C=(C-55296)*1024+d-56320+65536;r[w++]=C>>18|
240;r[w++]=C>>12&63|128;r[w++]=C>>6&63|128;r[w++]=C&63|128;continue}else Y--}if(Z)throw Error("C");C=65533}r[w++]=C>>12|224;r[w++]=C>>6&63|128}r[w++]=C&63|128}}q=w===r.length?r:r.subarray(0,w)}return q};
P6=function(q){_.$1.setTimeout(function(){throw q;},0)};
_.Vj=function(q,Z){return q.lastIndexOf(Z,0)==0};
O2=function(q,Z){var w=q.length-Z.length;return w>=0&&q.indexOf(Z,w)==w};
_.W6=function(q){return/^[\s\xa0]*$/.test(q)};
_.uN=function(q,Z){return q.indexOf(Z)!=-1};
_.LX=function(q,Z){return _.uN(q.toLowerCase(),Z.toLowerCase())};
_.jO=function(){var q=_.$1.navigator;return q&&(q=q.userAgent)?q:""};
$j6=function(q){if(!t2||!RT)return!1;for(var Z=0;Z<RT.brands.length;Z++){var w=RT.brands[Z].brand;if(w&&_.uN(w,q))return!0}return!1};
bN=function(q){return _.uN(_.jO(),q)};
J2=function(){return t2?!!RT&&RT.brands.length>0:!1};
e82=function(){return J2()?!1:bN("Opera")};
CNN=function(){return J2()?!1:bN("Trident")||bN("MSIE")};
PNO=function(){return J2()?$j6("Microsoft Edge"):bN("Edg/")};
B6=function(){return bN("Firefox")||bN("FxiOS")};
_.djz=function(){return bN("Safari")&&!(_.aT()||(J2()?0:bN("Coast"))||e82()||(J2()?0:bN("Edge"))||PNO()||(J2()?$j6("Opera"):bN("OPR"))||B6()||bN("Silk")||bN("Android"))};
_.aT=function(){return J2()?$j6("Chromium"):(bN("Chrome")||bN("CriOS"))&&!(J2()?0:bN("Edge"))||bN("Silk")};
_.VOz=function(){return bN("Android")&&!(_.aT()||B6()||e82()||bN("Silk"))};
OX1=function(q){var Z={};q.forEach(function(w){Z[w[0]]=w[1]});
return function(w){return Z[w.find(function(r){return r in Z})]||""}};
HX1=function(q){var Z=_.jO();if(q==="Internet Explorer"){if(CNN())if((q=/rv: *([\d\.]*)/.exec(Z))&&q[1])Z=q[1];else{q="";var w=/MSIE +([\d\.]+)/.exec(Z);if(w&&w[1])if(Z=/Trident\/(\d.\d)/.exec(Z),w[1]=="7.0")if(Z&&Z[1])switch(Z[1]){case "4.0":q="8.0";break;case "5.0":q="9.0";break;case "6.0":q="10.0";break;case "7.0":q="11.0"}else q="7.0";else q=w[1];Z=q}else Z="";return Z}var r=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");w=[];for(var Y;Y=r.exec(Z);)w.push([Y[1],Y[2],Y[3]||void 0]);
Z=OX1(w);switch(q){case "Opera":if(e82())return Z(["Version","Opera"]);if(J2()?$j6("Opera"):bN("OPR"))return Z(["OPR"]);break;case "Microsoft Edge":if(J2()?0:bN("Edge"))return Z(["Edge"]);if(PNO())return Z(["Edg"]);break;case "Chromium":if(_.aT())return Z(["Chrome","CriOS","HeadlessChrome"])}return q==="Firefox"&&B6()||q==="Safari"&&_.djz()||q==="Android Browser"&&_.VOz()||q==="Silk"&&bN("Silk")?(Z=w[2])&&Z[1]||"":""};
_.WI8=function(q){if(J2()&&q!=="Silk"){var Z=RT.brands.find(function(w){return w.brand===q});
if(!Z||!Z.version)return NaN;Z=Z.version.split(".")}else{Z=HX1(q);if(Z==="")return NaN;Z=Z.split(".")}return Z.length===0?NaN:Number(Z[0])};
E2=function(){return t2?!!RT&&!!RT.platform:!1};
_.o1j=function(){return E2()?RT.platform==="Android":bN("Android")};
u9O=function(){return bN("iPhone")&&!bN("iPod")&&!bN("iPad")};
_.x1=function(){return u9O()||bN("iPad")||bN("iPod")};
_.LIT=function(){return E2()?RT.platform==="macOS":bN("Macintosh")};
_.S2e=function(){return E2()?RT.platform==="Windows":bN("Windows")};
_.v1I=function(){return E2()?RT.platform==="Chrome OS":bN("CrOS")};
_.k1=function(q){return q[q.length-1]};
_.KX=function(q,Z,w){Z=_.jTI(q,Z,w);return Z<0?null:typeof q==="string"?q.charAt(Z):q[Z]};
_.jTI=function(q,Z,w){for(var r=q.length,Y=typeof q==="string"?q.split(""):q,C=0;C<r;C++)if(C in Y&&Z.call(w,Y[C],C,q))return C;return-1};
tO6=function(q){for(var Z=_.s2,w=typeof q==="string"?q.split(""):q,r=q.length-1;r>=0;r--)if(r in w&&Z.call(void 0,w[r],r,q))return r;return-1};
_.Mj=function(q,Z){return _.IT(q,Z)>=0};
_.R8T=function(q,Z){_.Mj(q,Z)||q.push(Z)};
_.F9=function(q,Z){Z=_.IT(q,Z);var w;(w=Z>=0)&&_.bXX(q,Z);return w};
_.bXX=function(q,Z){Array.prototype.splice.call(q,Z,1)};
_.Ge=function(q){var Z=q.length;if(Z>0){for(var w=Array(Z),r=0;r<Z;r++)w[r]=q[r];return w}return[]};
_.X9=function(q,Z){for(var w=1;w<arguments.length;w++){var r=arguments[w];if(_.pX(r)){var Y=q.length||0,C=r.length||0;q.length=Y+C;for(var d=0;d<C;d++)q[Y+d]=r[d]}else q.push(r)}};
_.z81=function(q,Z,w,r){Array.prototype.splice.apply(q,J22(arguments,1))};
J22=function(q,Z,w){return arguments.length<=2?Array.prototype.slice.call(q,Z):Array.prototype.slice.call(q,Z,w)};
Bz2=function(q,Z){Z=Z||q;for(var w=0,r=0,Y={};r<q.length;){var C=q[r++],d=_.DT(C)?"o"+_.yj(C):(typeof C).charAt(0)+C;Object.prototype.hasOwnProperty.call(Y,d)||(Y[d]=!0,Z[w++]=C)}Z.length=w};
_.n16=function(q,Z,w){w=w||_.aT1;for(var r=0,Y=q.length,C;r<Y;){var d=r+(Y-r>>>1);var O=w(Z,q[d]);O>0?r=d+1:(Y=d,C=!O)}return C?r:-r-1};
_.iN=function(q,Z,w){if(!_.pX(q)||!_.pX(Z)||q.length!=Z.length)return!1;var r=q.length;w=w||QT9;for(var Y=0;Y<r;Y++)if(!w(q[Y],Z[Y]))return!1;return!0};
_.aT1=function(q,Z){return q>Z?1:q<Z?-1:0};
QT9=function(q,Z){return q===Z};
E1j=function(q,Z,w){Z=Array.prototype.splice.call(q,Z,1);Array.prototype.splice.call(q,w,0,Z[0])};
Tzz=function(q){return xjj[q]||""};
KIT=function(q){if(!Uj2)return _.q7(q);q=keN.test(q)?q.replace(keN,Tzz):q;q=atob(q);for(var Z=new Uint8Array(q.length),w=0;w<q.length;w++)Z[w]=q.charCodeAt(w);return Z};
sTe=function(q,Z){q.__closure__error__context__984382||(q.__closure__error__context__984382={});q.__closure__error__context__984382.severity=Z};
_.wW=function(q){q=Error(q);sTe(q,"warning");return q};
c2O=function(q,Z){if(q!=null){var w;var r=(w=ITX)!=null?w:ITX={};w=r[q]||0;w>=Z||(r[q]=w+1,q=Error(),sTe(q,"incident"),P6(q))}};
rW=function(q,Z,w){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(w===void 0?0:w)&&Symbol.for&&q?Symbol.for(q):q!=null?Symbol(q):Symbol():Z};
Nzz=function(q,Z){C9||_.P1 in q||MOj(q,FIT);q[_.P1]|=Z};
VD=function(q,Z){C9||_.P1 in q||MOj(q,FIT);q[_.P1]=Z};
lTj=function(q){if(4&q)return 512&q?512:1024&q?1024:0};
H1=function(q){Nzz(q,34);return q};
Ge1=function(q){Nzz(q,32);return q};
uX=function(){return typeof BigInt==="function"};
S2=function(q,Z){return Z===void 0?q.copyOnWrite!==p68&&!!(2&(q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.P1]|0)):!!(2&Z)&&q.copyOnWrite!==p68};
_.JK=function(q,Z){if(q!=null)if(typeof q==="string")q=q?new v1(q,j2):_.bX();else if(q.constructor!==v1)if(X68&&q!=null&&q instanceof Uint8Array)q=q.length?new v1(new Uint8Array(q),j2):_.bX();else{if(!Z)throw Error();q=void 0}return q};
mjX=function(q,Z){if(typeof Z!=="number"||Z<0||Z>=q.length)throw Error();};
A2z=function(q,Z,w){Z=Z&128?0:-1;var r=q.length,Y;if(Y=!!r)Y=q[r-1],Y=Y!=null&&typeof Y==="object"&&Y.constructor===Object;for(var C=r+(Y?-1:0),d=0;d<C;d++)w(d-Z,q[d]);if(Y){q=q[r-1];for(var O in q)!isNaN(O)&&w(+O,q[O])}};
QD=function(q){return q&128?zJ:void 0};
_.Ep=function(q){return q};
Up=function(q){q.isGuard_doNotManuallySetPrettyPlease=!0;return q};
Dj1=function(){var q=fTX;return Up(function(Z){for(var w in q)if(Z===q[w]&&!/^[0-9]+$/.test(w))return!0;return!1})};
_.kg=function(q){var Z=q;if(h88(Z)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(Z))throw Error(String(Z));}else if(y2e(Z)&&!Number.isSafeInteger(Z))throw Error(String(Z));return iXI?BigInt(q):q=g1T(q)?q?"1":"0":h88(q)?q.trim()||"0":String(q)};
qpT=function(q,Z){if(q.length>Z.length)return!1;if(q.length<Z.length||q===Z)return!0;for(var w=0;w<q.length;w++){var r=q[w],Y=Z[w];if(r>Y)return!1;if(r<Y)return!0}};
Z9I=function(q){var Z=q>>>0;K9=Z;sp=(q-Z)/4294967296>>>0};
Ih=function(q){if(q<0){Z9I(-q);var Z=_.P(w1I(K9,sp));q=Z.next().value;Z=Z.next().value;K9=q>>>0;sp=Z>>>0}else Z9I(q)};
rKz=function(q,Z){var w=Z*4294967296+(q>>>0);return Number.isSafeInteger(w)?w:_.c1(q,Z)};
Yp2=function(q,Z){var w=Z&2147483648;w&&(q=~q+1>>>0,Z=~Z>>>0,q==0&&(Z=Z+1>>>0));q=rKz(q,Z);return typeof q==="number"?w?-q:q:w?"-"+q:q};
_.c1=function(q,Z){Z>>>=0;q>>>=0;if(Z<=2097151)var w=""+(4294967296*Z+q);else uX()?w=""+(BigInt(Z)<<BigInt(32)|BigInt(q)):(w=(q>>>24|Z<<8)&16777215,Z=Z>>16&65535,q=(q&16777215)+w*6777216+Z*6710656,w+=Z*8147497,Z*=2,q>=1E7&&(w+=q/1E7>>>0,q%=1E7),w>=1E7&&(Z+=w/1E7>>>0,w%=1E7),w=Z+$7j(w)+$7j(q));return w};
$7j=function(q){q=String(q);return"0000000".slice(q.length)+q};
_.emI=function(q,Z){Z&2147483648?uX()?q=""+(BigInt(Z|0)<<BigInt(32)|BigInt(q>>>0)):(Z=_.P(w1I(q,Z)),q=Z.next().value,Z=Z.next().value,q="-"+_.c1(q,Z)):q=_.c1(q,Z);return q};
CX9=function(q){if(q.length<16)Ih(Number(q));else if(uX())q=BigInt(q),K9=Number(q&BigInt(4294967295))>>>0,sp=Number(q>>BigInt(32)&BigInt(4294967295));else{var Z=+(q[0]==="-");sp=K9=0;for(var w=q.length,r=Z,Y=(w-Z)%6+Z;Y<=w;r=Y,Y+=6)r=Number(q.slice(r,Y)),sp*=1E6,K9=K9*1E6+r,K9>=4294967296&&(sp+=Math.trunc(K9/4294967296),sp>>>=0,K9>>>=0);Z&&(Z=_.P(w1I(K9,sp)),q=Z.next().value,Z=Z.next().value,K9=q,sp=Z)}};
w1I=function(q,Z){Z=~Z;q?q=~q+1:Z+=1;return[q,Z]};
M7=function(q){return Array.prototype.slice.call(q)};
_.F7=function(q,Z){throw Error(Z===void 0?"unexpected value "+q+"!":Z);};
_.N7=function(q){if(q!=null&&typeof q!=="number")throw Error("I`"+typeof q+"`"+q);return q};
_.PX2=function(q){if(q==null||typeof q==="number")return q;if(q==="NaN"||q==="Infinity"||q==="-Infinity")return Number(q)};
V2N=function(q){if(q!=null&&typeof q!=="boolean")throw Error("J`"+_.d7N(q)+"`"+q);return q};
_.O9j=function(q){if(q==null||typeof q==="boolean")return q;if(typeof q==="number")return!!q};
_.p9=function(q){switch(typeof q){case "bigint":return!0;case "number":return GJ(q);case "string":return H9T.test(q);default:return!1}};
_.AK=function(q){if(!GJ(q))throw _.wW("enum");return q|0};
_.yD=function(q){return q==null?q:GJ(q)?q|0:void 0};
Wvz=function(q){if(typeof q!=="number")throw _.wW("int32");if(!GJ(q))throw _.wW("int32");return q|0};
_.iX=function(q){return q==null?q:Wvz(q)};
_.gW=function(q){if(q==null)return q;if(typeof q==="string"&&q)q=+q;else if(typeof q!=="number")return;return GJ(q)?q|0:void 0};
_.og1=function(q){if(q==null)return q;if(typeof q==="string"&&q)q=+q;else if(typeof q!=="number")return;return GJ(q)?q>>>0:void 0};
vg2=function(q){var Z=0;Z=Z===void 0?0:Z;if(!_.p9(q))throw _.wW("int64");var w=typeof q;switch(Z){case 512:switch(w){case "string":return qS(q);case "bigint":return String(Zl(64,q));default:return u7X(q)}case 1024:switch(w){case "string":return Lv8(q);case "bigint":return _.kg(Zl(64,q));default:return Spj(q)}case 0:switch(w){case "string":return qS(q);case "bigint":return _.kg(Zl(64,q));default:return wb(q)}default:return _.F7(Z,"Unknown format requested type for int64")}};
$8=function(q){return q==null?q:vg2(q)};
jh8=function(q){if(q[0]==="-")return!1;var Z=q.length;return Z<20?!0:Z===20&&Number(q.substring(0,6))<184467};
t29=function(q){var Z=q.length;return q[0]==="-"?Z<20?!0:Z===20&&Number(q.substring(0,7))>-922337:Z<19?!0:Z===19&&Number(q.substring(0,6))<922337};
Rmj=function(q){if(q<0){Ih(q);var Z=_.c1(K9,sp);q=Number(Z);return eV(q)?q:Z}Z=String(q);if(jh8(Z))return Z;Ih(q);return rKz(K9,sp)};
b91=function(q){if(t29(q))return q;CX9(q);return _.emI(K9,sp)};
JKj=function(q){if(jh8(q))return q;CX9(q);return _.c1(K9,sp)};
wb=function(q){q=Cl(q);eV(q)||(Ih(q),q=Yp2(K9,sp));return q};
_.zmz=function(q){q=Cl(q);return q>=0&&eV(q)?q:Rmj(q)};
u7X=function(q){q=Cl(q);if(eV(q))q=String(q);else{var Z=String(q);t29(Z)?q=Z:(Ih(q),q=_.emI(K9,sp))}return q};
_.BWj=function(q){q=Cl(q);if(q>=0&&eV(q))q=String(q);else{var Z=String(q);jh8(Z)?q=Z:(Ih(q),q=_.c1(K9,sp))}return q};
qS=function(q){var Z=Cl(Number(q));if(eV(Z))return String(Z);Z=q.indexOf(".");Z!==-1&&(q=q.substring(0,Z));return b91(q)};
Lv8=function(q){var Z=Cl(Number(q));if(eV(Z))return _.kg(Z);Z=q.indexOf(".");Z!==-1&&(q=q.substring(0,Z));return uX()?_.kg(Zl(64,BigInt(q))):_.kg(b91(q))};
Spj=function(q){return eV(q)?_.kg(wb(q)):_.kg(u7X(q))};
_.ae9=function(q){return eV(q)?_.kg(_.zmz(q)):_.kg(_.BWj(q))};
_.ng9=function(q){var Z=Cl(Number(q));if(eV(Z)&&Z>=0)return String(Z);Z=q.indexOf(".");Z!==-1&&(q=q.substring(0,Z));return JKj(q)};
_.Qh2=function(q){var Z=Cl(Number(q));if(eV(Z)&&Z>=0)return _.kg(Z);Z=q.indexOf(".");Z!==-1&&(q=q.substring(0,Z));return uX()?_.kg((0,_.Py)(64,BigInt(q))):_.kg(JKj(q))};
Ege=function(q,Z){Z=Z===void 0?!1:Z;var w=typeof q;if(q==null)return q;if(w==="bigint")return String(Zl(64,q));if(_.p9(q))return w==="string"?qS(q):Z?u7X(q):wb(q)};
x7X=function(q){if(q==null)return q;var Z=typeof q;if(Z==="bigint")return String(Zl(64,q));if(_.p9(q)){if(Z==="string")return qS(q);if(Z==="number")return wb(q)}};
TW1=function(q){if(q==null)return q;var Z=typeof q;if(Z==="bigint")return String((0,_.Py)(64,q));if(_.p9(q)){if(Z==="string")return _.ng9(q);if(Z==="number")return _.zmz(q)}};
_.db=function(q){if(typeof q!=="string")throw Error();return q};
V7=function(q){if(q!=null&&typeof q!=="string")throw Error();return q};
_.Hy=function(q){return q==null||typeof q==="string"?q:void 0};
kJj=function(q,Z,w,r){if(q!=null&&typeof q==="object"&&q[Wy]===Ll)return q;if(!Array.isArray(q))return w?r&2?((q=Z[U7I])||(q=new Z,H1(q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),q=Z[U7I]=q),Z=q):Z=new Z:Z=void 0,Z;w=q[_.P1]|0;r=w|r&32|r&2;r!==w&&VD(q,r);return new Z(q)};
KvN=function(q,Z,w){q=Z?Wvz(q):_.gW(q);return q==null?w?0:void 0:q|0};
sh6=function(q){return q};
Ie2=function(q){return q};
M2I=function(q,Z,w,r,Y,C){q=kJj(q,r,w,C);Y&&(q=cK8(q));return q};
FvN=function(q){return[q,this.get(q)]};
GJj=function(){return NW9||(NW9=new SV(H1([]),void 0,void 0,void 0,leI))};
p1j=function(q){var Z=vy(jV);return Z?q[Z]:void 0};
m7T=function(q,Z){var w=vy(jV),r;C9&&w&&((r=q[w])==null?void 0:r[Z])!=null&&c2O(X1j,3)};
D7j=function(q,Z){var w=w===void 0?!1:w;if(vy(AKz)&&vy(jV)&&void 0===AKz){var r=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=r[jV];if(!Y)return;if(Y=Y.reviveUnknownFields)try{Y(r,Z,fee);return}catch(C){P6(C)}}w&&(q=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(w=vy(jV))&&w in q&&(q=q[w])&&delete q[Z])};
ggT=function(q,Z,w,r){var Y=r!==void 0;r=!!r;var C=[],d=q.length,O=4294967295,H=!1,L=!!(Z&64),S=L?Z&128?0:-1:void 0;if(!(Z&1)){var v=d&&q[d-1];v!=null&&typeof v==="object"&&v.constructor===Object?(d--,O=d):v=void 0;if(L&&!(Z&128)&&!Y){H=!0;var R;O=((R=hmI)!=null?R:sh6)(O-S,S,q,v)+S}}Z=void 0;for(R=0;R<d;R++){var B=q[R];if(B!=null&&(B=w(B,r))!=null)if(L&&R>=O){var n=R-S,x=void 0;((x=Z)!=null?x:Z={})[n]=B}else C[R]=B}if(v)for(var K in v)d=v[K],d!=null&&(d=w(d,r))!=null&&(R=+K,B=void 0,L&&!Number.isNaN(R)&&
(B=R+S)<O?C[B]=d:(R=void 0,((R=Z)!=null?R:Z={})[K]=d));Z&&(H?C.push(Z):C[O]=Z);Y&&vy(jV)&&(q=p1j(q))&&q instanceof yKT&&(C[jV]=i9N(q));return C};
Zl2=function(q){q[0]=q6N(q[0]);q[1]=q6N(q[1]);return q};
q6N=function(q){switch(typeof q){case "number":return Number.isFinite(q)?q:""+q;case "bigint":return(0,_.tc)(q)?Number(q):""+q;case "boolean":return q?1:0;case "object":if(Array.isArray(q)){var Z=q[_.P1]|0;return q.length===0&&Z&1?void 0:ggT(q,Z,q6N)}if(q[Wy]===Ll)return wy9(q);if(q instanceof v1){Z=q.JSC$6688_value_;if(Z==null)q="";else if(typeof Z==="string")q=Z;else{if(Uj2){for(var w="",r=0,Y=Z.length-10240;r<Y;)w+=String.fromCharCode.apply(null,Z.subarray(r,r+=10240));w+=String.fromCharCode.apply(null,
r?Z.subarray(r):Z);Z=btoa(w)}else Z=_.Rq(Z);q=q.JSC$6688_value_=Z}return q}if(q instanceof SV)return q=q.size!==0?Array.from(bC.prototype.entries.call(q),Zl2):void 0,q;return}return q};
Jc=function(q,Z){if(Z){hmI=Z==null||Z===sh6||Z[rc1]!==Y61?sh6:Z;try{return wy9(q)}finally{hmI=void 0}}return wy9(q)};
wy9=function(q){q=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ggT(q,q[_.P1]|0,q6N)};
CC8=function(q){switch(typeof q){case "boolean":return $ST||($ST=[0,void 0,!0]);case "number":return q>0?void 0:q===0?eZX||(eZX=[0,void 0]):[-q,void 0];case "string":return[0,q];case "object":return q}};
PC1=function(q,Z,w){return q=_.By(q,Z[0],Z[1],w?1:2)};
_.By=function(q,Z,w,r){r=r===void 0?0:r;if(q==null){var Y=32;w?(q=[w],Y|=128):q=[];Z&&(Y=Y&-8380417|(Z&1023)<<13)}else{if(!Array.isArray(q))throw Error("L");Y=q[_.P1]|0;2048&Y&&!(2&Y)&&dSX();if(Y&256)throw Error("N");if(Y&64)return r!==0||Y&2048||VD(q,Y|2048),q;if(w&&(Y|=128,w!==q[0]))throw Error("O");a:{w=q;Y|=64;var C=w.length;if(C){var d=C-1,O=w[d];if(O!=null&&typeof O==="object"&&O.constructor===Object){Z=Y&128?0:-1;d-=Z;if(d>=1024)throw Error("Q");for(var H in O)C=+H,C<d&&(w[C+Z]=O[H],delete O[H]);
Y=Y&-8380417|(d&1023)<<13;break a}}if(Z){H=Math.max(Z,C-(Y&128?0:-1));if(H>1024)throw Error("R");Y=Y&-8380417|(H&1023)<<13}}}Y|=64;r===0&&(Y|=2048);VD(q,Y);return q};
dSX=function(){c2O(VV9,5)};
WFI=function(q,Z){if(typeof q!=="object")return q;if(Array.isArray(q)){var w=q[_.P1]|0;return q.length===0&&w&1?void 0:Ol8(q,w,Z)}if(q[Wy]===Ll)return HlT(q);if(q instanceof SV){Z=q.arrayState;if(Z&2)return q;if(!q.size)return;w=H1(Array.from(bC.prototype.entries.call(q)));if(q.valueCtor)for(q=0;q<w.length;q++){var r=w[q],Y=r[1];Y==null||typeof Y!=="object"?Y=void 0:Y[Wy]===Ll?Y=HlT(Y):Array.isArray(Y)?Y=Ol8(Y,Y[_.P1]|0,!!(Z&32)):Y=void 0;r[1]=Y}return w}if(q instanceof v1)return q};
Ol8=function(q,Z,w){if(Z&2)return q;!w||4096&Z||16&Z?q=aq(q,Z,!1,w&&!(Z&16)):(Nzz(q,34),Z&4&&Object.freeze(q));return q};
HlT=function(q){var Z=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=Z[_.P1]|0;return S2(q,w)?q:aq(Z,w)};
aq=function(q,Z,w,r){r!=null||(r=!!(34&Z));q=ggT(q,Z,WFI,r);r=32;w&&(r|=2);Z=Z&8380609|r;VD(q,Z);return q};
cK8=function(q){var Z=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=Z[_.P1]|0;return S2(q,w)?new q.constructor(aq(Z,w,!1)):q};
nl=function(q){if(q.copyOnWrite!==p68)return!1;var Z=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Z=aq(Z,Z[_.P1]|0);q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=Z;q.copyOnWrite=void 0;q.noLegacyNull=void 0;return!0};
Q7=function(q){if(!nl(q)&&S2(q,q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.P1]|0))throw Error();};
E6=function(q,Z,w,r,Y){var C=w+(Y?0:-1),d=q.length-1;if(d>=1+(Y?0:-1)&&C>=d){var O=q[d];if(O!=null&&typeof O==="object"&&O.constructor===Object)return O[w]=r,Z}if(C<=d)return q[C]=r,Z;if(r!==void 0){var H;d=((H=Z)!=null?H:Z=q[_.P1]|0)>>13&1023||536870912;w>=d?r!=null&&(C={},q[d+(Y?0:-1)]=(C[w]=r,C)):q[C]=r}return Z};
_.U6=function(q,Z,w,r,Y){var C=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=C[_.P1]|0;r=S2(q,d)?1:r;Y=!!Y||r===3;r===2&&nl(q)&&(C=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=C[_.P1]|0);q=o8N(C,Z);var O=q===x8?7:q[_.P1]|0,H=uDN(O,d);var L=4&H?!1:!0;if(L){4&H&&(q=M7(q),O=0,H=Tu(H,d),d=E6(C,d,Z,q));for(var S=0,v=0;S<q.length;S++){var R=w(q[S]);R!=null&&(q[v++]=R)}v<S&&(q.length=v);w=(H|4)&-513;H=w&=-1025;H&=-4097}H!==O&&(VD(q,H),2&H&&Object.freeze(q));return q=LFj(q,H,C,
d,Z,r,L,Y)};
LFj=function(q,Z,w,r,Y,C,d,O){var H=Z;C===1||(C!==4?0:2&Z||!(16&Z)&&32&r)?k8(Z)||(Z|=!q.length||d&&!(4096&Z)||32&r&&!(4096&Z||16&Z)?2:256,Z!==H&&VD(q,Z),Object.freeze(q)):(C===2&&k8(Z)&&(q=M7(q),H=0,Z=Tu(Z,r),E6(w,r,Y,q)),k8(Z)||(O||(Z|=16),Z!==H&&VD(q,Z)));return q};
o8N=function(q,Z,w){q=Kl(q,Z,w);return Array.isArray(q)?q:x8};
uDN=function(q,Z){2&Z&&(q|=2);return q|1};
k8=function(q){return!!(2&q)&&!!(4&q)||!!(256&q)};
S6O=function(q){return _.JK(q,!0)};
v86=function(q,Z){var w=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,r=w[_.P1]|0;a:{var Y=r;r=S2(q,r);!r&&nl(q)&&(w=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=w[_.P1]|0);var C=Kl(w,Z);q=!1;if(C==null){if(r){Z=GJj();break a}C=[]}else if(C.constructor===SV)if(C.arrayState&2&&!r)C=Array.from(bC.prototype.entries.call(C));else{Z=C;break a}else Array.isArray(C)?q=!!((C[_.P1]|0)&2):C=[];if(r){if(!C.length){Z=GJj();break a}q||(q=!0,H1(C))}else if(q){q=!1;r=C;r=M7(r);for(C=0;C<
r.length;C++){var d=r[C]=M7(r[C]);Array.isArray(d[1])&&(d[1]=H1(d[1]))}C=r}!q&&Y&32&&Ge1(C);q=new SV(C,void 0,KvN,KvN);E6(w,Y,Z,q);Z=q}return Z};
_.s6=function(q,Z,w,r){Q7(q);var Y=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=Y[_.P1]|0;if(w==null)return E6(Y,C,Z),q;var d=w===x8?7:w[_.P1]|0,O=d,H=k8(d),L=H||Object.isFrozen(w);H||(d=0);L||(w=M7(w),O=0,d=Tu(d,C),L=!1);d|=5;var S;H=(S=lTj(d))!=null?S:0;for(S=0;S<w.length;S++){var v=w[S],R=r(v,H);Object.is(v,R)||(L&&(w=M7(w),O=0,d=Tu(d,C),L=!1),w[S]=R)}d!==O&&(L&&(w=M7(w),d=Tu(d,C)),VD(w,d));E6(Y,C,Z,w);return q};
_.cy=function(q,Z,w,r,Y){Q7(q);var C=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;E6(C,C[_.P1]|0,Z,(r==="0"?Number(w)===0:w===r)?void 0:w,Y);return q};
_.jq6=function(q,Z,w){if(Z&2)throw Error();var r=QD(Z),Y=o8N(q,w,r),C=Y===x8?7:Y[_.P1]|0,d=uDN(C,Z);if(2&d||k8(d)||16&d)Y=M7(Y),C=0,d=Tu(d,Z),E6(q,Z,w,Y,r);d&=-13;d!==C&&VD(Y,d);return Y};
tV8=function(q){if(C9){var Z;return(Z=q[MS])!=null?Z:q[MS]=new Map}if(MS in q)return q[MS];Z=new Map;Object.defineProperty(q,MS,{value:Z});return Z};
bl6=function(q,Z,w,r,Y){var C=tV8(q),d=RZ9(C,q,Z,w,Y);d!==r&&(d&&(Z=E6(q,Z,d,void 0,Y)),C.set(w,r));return Z};
RZ9=function(q,Z,w,r,Y){var C=q.get(r);if(C!=null)return C;for(var d=C=0;d<r.length;d++){var O=r[d];Kl(Z,O,Y)!=null&&(C!==0&&(w=E6(Z,w,C,void 0,Y)),C=O)}q.set(r,C);return C};
Jce=function(q,Z,w,r,Y){q=Kl(q,r,Y,function(C){return kJj(C,w,!1,Z)});
if(q!=null)return q};
zZj=function(q,Z,w,r,Y,C,d,O){var H=S2(q,w);C=H?1:C;d=!!d||C===3;H=O&&!H;(C===2||H)&&nl(q)&&(Z=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=Z[_.P1]|0);q=o8N(Z,Y);var L=q===x8?7:q[_.P1]|0,S=uDN(L,w);if(O=!(4&S)){var v=q,R=w,B=!!(2&S);B&&(R|=2);for(var n=!B,x=!0,K=0,k=0;K<v.length;K++){var G=kJj(v[K],r,!1,R);if(G instanceof r){if(!B){var rz=S2(G);n&&(n=!rz);x&&(x=rz)}v[k++]=G}}k<K&&(v.length=k);S|=4;S=x?S&-4097:S|4096;S=n?S|8:S&-9}S!==L&&(VD(q,S),2&S&&Object.freeze(q));if(H&&!(8&S||!q.length&&
(C===1||(C!==4?0:2&S||!(16&S)&&32&w)))){k8(S)&&(q=M7(q),S=Tu(S,w),w=E6(Z,w,Y,q));r=q;H=S;for(L=0;L<r.length;L++)v=r[L],S=cK8(v),v!==S&&(r[L]=S);H|=8;S=H=r.length?H|4096:H&-4097;VD(q,S)}return q=LFj(q,S,Z,w,Y,C,O,d)};
Bb9=function(q){q==null&&(q=void 0);return q};
Tu=function(q,Z){return q=(2&Z?q|2:q&-3)&-273};
_.alN=function(q,Z,w,r,Y){Q7(q);Z=_.U6(q,Z,Y,2,!0);var C;Y=(C=lTj(Z===x8?7:Z[_.P1]|0))!=null?C:0;Z.push(w(r,Y));return q};
n81=function(q,Z,w,r,Y,C,d){Q7(q);var O=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;q=zZj(q,O,O[_.P1]|0,w,Z,2,!0);if(C&&d)Y!=null||(Y=q.length-1),mjX(q,Y),q.splice(Y,C),q.length||(q[_.P1]&=-4097);else{if(C){if(typeof Y!=="number"||Y<0||Y>q.length)throw Error();}else r=r!=null?r:new w;Y!=void 0?q.splice(Y,C,r):q.push(r);Y=w=q===x8?7:q[_.P1]|0;S2(r)?(w&=-9,q.length===1&&(w&=-4097)):w|=4096;w!==Y&&VD(q,w)}};
E8e=function(q,Z){if(typeof q==="string")return new FD(KIT(q),Z);if(Array.isArray(q))return new FD(new Uint8Array(q),Z);if(q.constructor===Uint8Array)return new FD(q,!1);if(q.constructor===ArrayBuffer)return q=new Uint8Array(q),new FD(q,!1);if(q.constructor===v1)return Z=Qq8(q)||new Uint8Array(0),new FD(Z,!0,q);if(q instanceof Uint8Array)return q=q.constructor===Uint8Array?q:new Uint8Array(q.buffer,q.byteOffset,q.byteLength),new FD(q,!1);throw Error();};
_.NS=function(){var q=function(){throw Error();};
Object.setPrototypeOf(q,q.prototype);return q};
Tbj=function(q,Z){var w=w===void 0?xSO:w;return new Gu(q,Z,w)};
sqO=function(q,Z,w,r,Y){Z=US9(Z,r);Z!=null&&(w=_.kuN(q,w),Y(Z,q),_.KFz(q,w))};
pl=function(q,Z,w,r){var Y=r[q];if(Y)return Y;Y={};Y.binaryFields=r;Y.messageMetadata=CC8(r[0]);var C=r[1],d=1;C&&C.constructor===Object&&(Y.extensions=C,C=r[++d],typeof C==="function"&&(Y.isMessageSet=!0,Ilj!=null||(Ilj=C),cc6!=null||(cc6=r[d+1]),C=r[d+=2]));for(var O={};C&&Array.isArray(C)&&C.length&&typeof C[0]==="number"&&C[0]>0;){for(var H=0;H<C.length;H++)O[C[H]]=C;C=r[++d]}for(H=1;C!==void 0;){typeof C==="number"&&(H+=C,C=r[++d]);var L=void 0;if(C instanceof Gu)var S=C;else S=MV9,d--;C=void 0;
if((C=S)==null?0:C.$$isMsg){C=r[++d];L=r;var v=d;typeof C==="function"&&(C=C(),L[v]=C);L=C}C=r[++d];v=H+1;typeof C==="number"&&C<0&&(v-=C,C=r[++d]);for(;H<v;H++){var R=O[H];L?w(Y,H,S,L,R):Z(Y,H,S,R)}}return r[q]=Y};
Nbe=function(q){return Array.isArray(q)?q[0]instanceof Gu?q:[FFj,q]:[q,void 0]};
US9=function(q,Z){if(q instanceof _.XD)return q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(q))return PC1(q,Z,!1)};
llz=function(q,Z,w,r){var Y=w.$$binaryReaderFn;q[Z]=r?function(C,d,O){return Y(C,d,O,r)}:Y};
pyX=function(q,Z,w,r,Y){var C=w.$$binaryReaderFn,d,O;q[Z]=function(H,L,S){return C(H,L,S,O||(O=pl(Gu6,llz,pyX,r).messageMetadata),d||(d=XyO(r)),Y)}};
XyO=function(q){var Z=q[mSj];if(Z!=null)return Z;var w=pl(Gu6,llz,pyX,q);Z=w.isMessageSet?function(r,Y){return Ilj(r,Y,w)}:function(r,Y){for(;Ac6(Y)&&Y.nextWireType_!=4;){var C=Y.nextField_,d=w[C];
if(d==null){var O=w.extensions;O&&(O=O[C])&&(O=flj(O),O!=null&&(d=w[C]=O))}if(d==null||!d(Y,r,C)){O=Y;d=O.fieldCursor_;DSj(O);if(O.discardUnknownFields)var H=void 0;else{var L=O.decoder_.cursor_-d;O.decoder_.cursor_=d;H=hZz(O.decoder_,L)}L=O=d=void 0;var S=r;H&&((d=(O=(L=S[jV])!=null?L:S[jV]=new yKT)[C])!=null?d:O[C]=[]).push(H)}}if(r=p1j(r))r.reviveUnknownFields=w.binaryFields[yc1];return!0};
q[mSj]=Z;q[yc1]=il2.bind(q);return Z};
il2=function(q,Z,w,r){var Y=this[Gu6],C=this[mSj],d=PC1(void 0,Y.messageMetadata,!1),O=p1j(q);if(O){var H=!1,L=Y.extensions;if(L){Y=function(n,x,K){if(K.length!==0)if(L[x])for(n=_.P(K),x=n.next();!x.done;x=n.next()){x=g8O(x.value);try{H=!0,C(d,x)}finally{x.free()}}else r==null||r(q,x,K)};
if(Z==null)qXI(O,Y);else if(O!=null){var S=O[Z];S&&Y(O,Z,S)}if(H){var v=q[_.P1]|0;if(v&2&&v&2048&&(w==null||!w.reviveIntoImmutable))throw Error();var R=QD(v),B=function(n,x){if(Kl(q,n,R)!=null)switch(w==null?void 0:w.resolutionBehavior){case 1:return;default:throw Error();}x!=null&&(v=E6(q,v,n,x,R));delete O[n]};
Z==null?A2z(d,d[_.P1]|0,function(n,x){B(n,x)}):B(Z,Kl(d,Z,R))}}}};
flj=function(q){q=Nbe(q);var Z=q[0].$$binaryReaderFn;if(q=q[1]){var w=XyO(q),r=pl(Gu6,llz,pyX,q).messageMetadata;return function(Y,C,d){return Z(Y,C,d,r,w)}}return Z};
ZA9=function(q,Z,w){q[Z]=w.$$binaryWriterFn};
rIT=function(q,Z,w,r){var Y,C,d=w.$$binaryWriterFn;q[Z]=function(O,H,L){return d(O,H,L,C||(C=pl(w8T,ZA9,rIT,r).messageMetadata),Y||(Y=YX8(r)))}};
YX8=function(q){var Z=q[$K1];if(!Z){var w=pl(w8T,ZA9,rIT,q);Z=function(r,Y){return edI(r,Y,w)};
q[$K1]=Z}return Z};
edI=function(q,Z,w){A2z(q,q[_.P1]|0,function(r,Y){if(Y!=null){var C=CgX(w,r);C&&C(Z,Y,r)}});
(q=p1j(q))&&qXI(q,function(r,Y,C){Ac(Z,Z.encoder_.end());for(r=0;r<C.length;r++)Ac(Z,Qq8(C[r])||new Uint8Array(0))})};
CgX=function(q,Z){var w=q[Z];if(w)return w;if(w=q.extensions)if(w=w[Z]){w=Nbe(w);var r=w[0].$$binaryWriterFn;if(w=w[1]){var Y=YX8(w),C=pl(w8T,ZA9,rIT,w).messageMetadata;w=q.isMessageSet?cc6(C,Y):function(d,O,H){return r(d,O,H,C,Y)}}else w=r;
return q[Z]=w}};
_.PgN=function(q,Z,w){if(Array.isArray(Z)){var r=Z[_.P1]|0;if(r&4)return Z;for(var Y=0,C=0;Y<Z.length;Y++){var d=q(Z[Y]);d!=null&&(Z[C++]=d)}C<Y&&(Z.length=C);w&&(VD(Z,(r|5)&-1537),r&2&&Object.freeze(Z));return Z}};
_.fl=function(q,Z,w){return new Gu(q,Z,w)};
_.dKe=function(q,Z,w){return new Gu(q,Z,w)};
_.hc=function(q,Z,w){E6(q,q[_.P1]|0,Z,w,QD(q[_.P1]|0))};
OAj=function(q,Z,w){Z=_.PX2(Z);Z!=null&&(_.y7(q,w,1),q=q.encoder_,w=V6z||(V6z=new DataView(new ArrayBuffer(8))),w.setFloat64(0,+Z,!0),K9=w.getUint32(0,!0),sp=w.getUint32(4,!0),_.iC(q,K9),_.iC(q,sp))};
_.gb=function(q,Z,w){Z=x7X(Z);if(Z!=null){switch(typeof Z){case "string":HAX(Z)}if(Z!=null)switch(_.y7(q,w,0),typeof Z){case "number":q=q.encoder_;Ih(Z);WmI(q,K9,sp);break;case "bigint":w=BigInt.asUintN(64,Z);w=new ovX(Number(w&BigInt(4294967295)),Number(w>>BigInt(32)));WmI(q.encoder_,w.JSC$6745_lo,w.JSC$6745_hi);break;default:w=HAX(Z),WmI(q.encoder_,w.JSC$6745_lo,w.JSC$6745_hi)}}};
Lm8=function(q,Z,w){Z=_.gW(Z);Z!=null&&Z!=null&&(_.y7(q,w,0),_.u5X(q.encoder_,Z))};
_.vv2=function(q,Z,w){SX2(q,w,TW1(Z))};
_.j9T=function(q,Z,w){Z=_.O9j(Z);Z!=null&&(_.y7(q,w,0),q.encoder_.JSC$6747_buffer_.push(Z?1:0))};
_.Rde=function(q,Z,w){Z=_.Hy(Z);Z!=null&&t6T(q,w,Y2I(Z))};
bAT=function(q,Z,w,r,Y){Z=US9(Z,r);Z!=null&&(w=_.kuN(q,w),Y(Z,q),_.KFz(q,w))};
_.JIe=function(q,Z,w){Z=Z==null||typeof Z=="string"||Z instanceof v1?Z:void 0;Z!=null&&t6T(q,w,E8e(Z,!0).buffer)};
_.zdO=function(q,Z,w){Z=_.gW(Z);Z!=null&&(Z=parseInt(Z,10),_.y7(q,w,0),_.u5X(q.encoder_,Z))};
_.qK=function(q,Z){return function(w,r){var Y={treatNewDataAsImmutable:!0};r&&Object.assign(Y,r);w=g8O(w,void 0,void 0,Y);try{var C=new q,d=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;XyO(Z)(d,w);var O=C}finally{w.free()}return O}};
_.Yv=function(q){return function(Z){return Br9(Z,q)}};
aFe=function(q){return function(){return Br9(this,q)}};
_.nv1=function(q){return Up(function(Z){return Z instanceof q&&!S2(Z)})};
_.$v=function(q){return function(Z){return Q9e(q,Z)}};
UKN=function(q,Z){return EvT({child:q,origin:Z||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:xKT,getPayloadCase:function(w){return w.getPayloadCase()},
createInitMessage:function(w){var r=new e6,Y=new Tr2;w=_.CA(Y,1,w);return _.dr(r,5,OX,w)}})};
H8=function(q){return{valueOf:q}.valueOf()};
KmT=function(){var q=null;if(!ka2)return q;try{var Z=function(w){return w};
q=ka2.createPolicy("goog#html",{createHTML:Z,createScript:Z,createScriptURL:Z})}catch(w){}return q};
IF2=function(){s9T===void 0&&(s9T=KmT());return s9T};
_.o9=function(q){var Z=IF2();q=Z?Z.createScriptURL(q):q;return new W8(q)};
_.ug=function(q){if(q instanceof W8)return q.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
cIj=function(q){return q.toString().indexOf("`")===-1};
j6=function(q){return new _.v8(M6O,q)};
R9=function(q){return q instanceof _.v8};
_.bg=function(q){if(R9(q))return q.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
za=function(q){return new FmI(function(Z){return Z.substr(0,q.length+1).toLowerCase()===q+":"})};
nA=function(q,Z){Z=Z===void 0?Nr9:Z;if(R9(q))return q;for(var w=0;w<Z.length;++w){var r=Z[w];if(r instanceof FmI&&r.isValid(q))return j6(q)}};
_.EX=function(q,Z){Z=Z===void 0?Nr9:Z;return nA(q,Z)||Qw};
xv=function(q){var Z=window;if(typeof MediaSource!=="undefined"&&q instanceof MediaSource||typeof Z.ManagedMediaSource!=="undefined"&&q instanceof Z.ManagedMediaSource)return j6(URL.createObjectURL(q));Z=q.type;Z.toLowerCase()==="application/octet-stream"?Z=!0:(Z=Z.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),Z=(Z==null?void 0:Z.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(Z[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(Z[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(Z[1])||/^font\/[\w-]+$/i.test(Z[1])));if(!Z)throw Error("da");return j6(URL.createObjectURL(q))};
_.UX=function(q){for(var Z=_.Ta.apply(1,arguments),w=[q[0]],r=0;r<Z.length;r++)w.push(String(Z[r])),w.push(q[r+1]);return j6(w.join(""))};
_.GaO=function(q){if(!lFj){a:{var Z=document.createElement("a");try{Z.href=q}catch(w){q=void 0;break a}q=Z.protocol;q=q===":"||q===""?"https:":q}return q}try{Z=new URL(q)}catch(w){return"https:"}return Z.protocol};
_.kv=function(q){q instanceof _.v8?q=_.bg(q):q=p82.test(q)?q:void 0;return q};
KA=function(q,Z){Z=_.kv(Z);Z!==void 0&&(q.href=Z)};
I9=function(q){var Z=IF2();q=Z?Z.createHTML(q):q;return new sX(q)};
c8=function(q){if(q instanceof sX)return q.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.F5=function(q,Z){q.src=_.ug(Z).toString()};
X81=function(q,Z){q.setAttribute("sandbox","");for(var w=0;w<Z.length;w++)q.sandbox.supports&&!q.sandbox.supports(Z[w])||q.sandbox.add(Z[w])};
_.AI8=function(q,Z,w){q.removeAttribute("srcdoc");switch(Z){case 0:if(w instanceof W8)throw new mK8("TrustedResourceUrl",0);X81(q,[]);Z=_.kv(w);Z!==void 0&&(q.src=Z);break;case 1:if(!(w instanceof W8))throw new mK8(typeof w,1);X81(q,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.F5(q,w);break;case 2:if(w instanceof W8)throw new mK8("TrustedResourceUrl",2);X81(q,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
Z=_.kv(w);Z!==void 0&&(q.src=Z);break;default:_.F7(Z)}};
_.NK=function(q,Z,w,r){Z=_.kv(Z);return Z!==void 0?q.open(Z,w,r):null};
_.lg=function(q){q=q===void 0?document:q;var Z,w;q=(w=(Z=q).querySelector)==null?void 0:w.call(Z,"script[nonce]");return q==null?"":q.nonce||q.getAttribute("nonce")||""};
_.pA=function(q){var Z=IF2();q=Z?Z.createScript(q):q;return new _.Ga(q)};
fFj=function(q){if(q instanceof _.Ga)return q.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
DKj=function(q){var Z=_.lg(q.ownerDocument);Z&&q.setAttribute("nonce",Z)};
_.X5=function(q,Z){q.textContent=fFj(Z);DKj(q)};
_.AI=function(q,Z){q.src=_.ug(Z);DKj(q)};
_.fA=function(q,Z){if(q.nodeType===1&&/^(script|style)$/i.test(q.tagName))throw Error("da");q.innerHTML=c8(Z)};
_.DF=function(q,Z,w,r){if(q.length===0)throw Error("da");q=q.map(function(C){if(C instanceof hdT)C=C.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return C});
var Y=w.toLowerCase();if(q.every(function(C){return Y.indexOf(C)!==0}))throw Error("ea`"+w);
Z.setAttribute(w,r)};
_.hI=function(q,Z,w){if(Z instanceof W8)q.href=_.ug(Z).toString(),q.rel=w;else{if(yIz.indexOf(w)===-1)throw Error("fa`"+w);Z=_.kv(Z);Z!==void 0&&(q.href=Z,q.rel=w)}};
iA2=function(q){return"function"==typeof _.ig&&q instanceof _.ig};
_.gv2=function(q){if(iA2(q))return q.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.qI2=function(q,Z){Z=_.kv(Z);Z!==void 0&&(q.href=Z)};
Z_T=function(q,Z){q&&(Z=q.indexOf(Z),0<=Z&&q.splice(Z,1))};
gr=function(q){return typeof q==="function"};
wqN=function(q){return q instanceof qX||q&&"closed"in q&&gr(q.remove)&&gr(q.add)&&gr(q.unsubscribe)};
ZJ=function(){};
w9=function(q){ruj(function(){throw q;})};
r9=function(q){return q};
Yq=function(){return YIT(_.Ta.apply(0,arguments))};
YIT=function(q){return q.length===0?r9:q.length===1?q[0]:function(Z){return q.reduce(function(w,r){return r(w)},Z)}};
$XT=function(q){var Z;return(Z=q!=null?q:void 0)!=null?Z:Promise};
eBX=function(q,Z){return new $q(function(w){var r=0;return Z.schedule(function(){r===q.length?w.complete():(w.next(q[r++]),w.closed||this.schedule())})})};
CbX=function(q,Z){if(!q)throw Error("ga");return new $q(function(w){var r=new qX;r.add(Z.schedule(function(){var Y=q[Symbol.asyncIterator]();r.add(Z.schedule(function(){var C=this;Y.next().then(function(d){d.done?w.complete():(w.next(d.value),C.schedule())})}))}));
return r})};
PbO=function(q,Z,w){Z=Z.schedule(function(){try{w.call(this)}catch(r){q.error(r)}},0);
q.add(Z)};
V8I=function(q,Z){return new $q(function(w){var r;w.add(Z.schedule(function(){r=q[dX8]();PbO(w,Z,function(){var Y=r.next(),C=Y.value;Y.done?w.complete():(w.next(C),this.schedule())})}));
return function(){var Y;return gr((Y=r)==null?void 0:Y.return)&&r.return()}})};
O_z=function(q,Z){return new $q(function(w){var r=new qX;r.add(Z.schedule(function(){var Y=q[e8]();r.add(Y.subscribe({next:function(C){r.add(Z.schedule(function(){return w.next(C)}))},
error:function(C){r.add(Z.schedule(function(){return w.error(C)}))},
complete:function(){r.add(Z.schedule(function(){return w.complete()}))}}))}));
return r})};
H_O=function(q,Z){return new $q(function(w){return Z.schedule(function(){return q.then(function(r){w.add(Z.schedule(function(){w.next(r);w.add(Z.schedule(function(){return w.complete()}))}))},function(r){w.add(Z.schedule(function(){return w.error(r)}))})})})};
WT9=function(q){return new TypeError("ha`"+(q!==null&&typeof q==="object"?"an invalid object":"'"+q+"'"))};
ud6=function(q,Z){if(q!=null){if(gr(q[e8]))return O_z(q,Z);if(oqT(q))return eBX(q,Z);if(gr(q==null?void 0:q.then))return H_O(q,Z);if(Symbol.asyncIterator&&gr(q==null?void 0:q[Symbol.asyncIterator]))return CbX(q,Z);if(gr(q==null?void 0:q[dX8]))return V8I(q,Z)}throw WT9(q);};
Pq=function(q,Z){return Z?ud6(q,Z):C_(q)};
C_=function(q){if(q instanceof $q)return q;if(q!=null){if(gr(q[e8]))return LTe(q);if(oqT(q))return SI6(q);if(gr(q==null?void 0:q.then))return vqX(q);if(Symbol.asyncIterator&&gr(q==null?void 0:q[Symbol.asyncIterator]))return j3z(q);if(gr(q==null?void 0:q[dX8]))return t89(q)}throw WT9(q);};
LTe=function(q){return new $q(function(Z){var w=q[e8]();if(gr(w.subscribe))return w.subscribe(Z);throw new TypeError("ia");})};
SI6=function(q){return new $q(function(Z){for(var w=0;w<q.length&&!Z.closed;w++)Z.next(q[w]);Z.complete()})};
vqX=function(q){return new $q(function(Z){q.then(function(w){Z.closed||(Z.next(w),Z.complete())},function(w){return Z.error(w)}).then(null,w9)})};
t89=function(q){return new $q(function(Z){for(var w=q[dX8]();!Z.closed;){var r=w.next(),Y=r.value;r.done?Z.complete():Z.next(Y)}return function(){return gr(w==null?void 0:w.return)&&w.return()}})};
j3z=function(q){return new $q(function(Z){RBe(q,Z).catch(function(w){return Z.error(w)})})};
RBe=function(q,Z){var w,r,Y,C,d,O;return _.V(function(H){switch(H.nextAddress){case 1:_.d9(H,2,3);var L=q[Symbol.asyncIterator];C=L!==void 0?L.call(q):new b_T(_.P(q));case 5:return _.W(H,C.next(),8);case 8:r=H.yieldResult;if(r.done){H.jumpTo(3);break}d=r.value;Z.next(d);H.jumpTo(5);break;case 3:_.V2(H);_.Hq(H,9);if(!r||r.done||!(Y=C.return)){H.jumpTo(9);break}return _.W(H,Y.call(C),9);case 9:_.V2(H,0,0,1);if(w)throw w.error;_.Wq(H,10,1);break;case 10:_.Wq(H,4);break;case 2:O=_.o3(H);w={error:O};H.jumpTo(3);
break;case 4:Z.complete(),_.ub(H)}})};
JuN=function(q,Z){return Z?eBX(q,Z):SI6(q)};
zBX=function(q){return gr(q[q.length-1])?q.pop():void 0};
L_=function(q){var Z=q[q.length-1];return Z&&gr(Z.schedule)?q.pop():void 0};
S8=function(){var q=_.Ta.apply(0,arguments),Z=L_(q);return Z?eBX(q,Z):JuN(q)};
vq=function(q){var Z=gr(q)?q:function(){return q};
return new $q(function(w){return w.error(Z())})};
j8=function(q){return function(Z){if(gr(Z==null?void 0:Z.lift))return Z.lift(function(w){try{return q(w,this)}catch(r){this.error(r)}});
throw new TypeError("ja");}};
R3=function(){return j8(function(q,Z){var w=null;q._refCount++;var r=new tu(Z,void 0,void 0,void 0,function(){if(!q||q._refCount<=0||0<--q._refCount)w=null;else{var Y=q._connection,C=w;w=null;!Y||C&&Y!==C||Y.unsubscribe();Z.unsubscribe()}});
q.subscribe(r);r.closed||(w=q.connect())})};
aJ2=function(){var q=B9e;var Z=Z===void 0?0:Z;return j8(function(w,r){r.add(q.schedule(function(){return w.subscribe(r)},Z))})};
bb=function(q){return j8(function(Z,w){var r=0;Z.subscribe(new tu(w,function(Y){w.next(q.call(void 0,Y,r++))}))})};
Q3T=function(q){return bb(function(Z){return nq8(Z)?q.apply(null,_.Ju(Z)):q(Z)})};
k$e=function(q){if(q.length===1){var Z=q[0];if(Eq9(Z))return{args:Z,keys:null};if(Z&&typeof Z==="object"&&xXT(Z)===T92)return q=UX6(Z),{args:q.map(function(w){return Z[w]}),
keys:q}}return{args:q,keys:null}};
Bq=function(){var q=_.Ta.apply(0,arguments),Z=L_(q),w=zBX(q);q=k$e(q);var r=q.args,Y=q.keys;if(r.length===0)return Pq([],Z);Z=new $q(KTj(r,Z,Y?function(C){for(var d={},O=0;O<C.length;O++)d[Y[O]]=C[O];return d}:r9));
return w?Z.pipe(Q3T(w)):Z};
KTj=function(q,Z,w){w=w===void 0?r9:w;return function(r){s3X(Z,function(){for(var Y=q.length,C=Array(Y),d=Y,O=q.map(function(){return!1}),H=!0,L={i$jscomp$260:0};L.i$jscomp$260<Y;L={i$jscomp$260:L.i$jscomp$260},L.i$jscomp$260++)s3X(Z,function(S){return function(){Pq(q[S.i$jscomp$260],Z).subscribe(new a3(r,function(v){C[S.i$jscomp$260]=v;
H&&(O[S.i$jscomp$260]=!0,H=!O.every(r9));H||r.next(w(C.slice()))},function(){return--d===0}))}}(L),r)},r)}};
s3X=function(q,Z,w){q?w.add(q.schedule(Z)):Z()};
IJO=function(q,Z,w,r){var Y=[],C=0,d=0,O=!1,H=function(L){C++;C_(w(L,d++)).subscribe(new tu(Z,function(S){Z.next(S)},void 0,function(){C--;
for(var S={};Y.length&&C<r;S={bufferedValue:void 0})S.bufferedValue=Y.shift(),H(S.bufferedValue);!O||Y.length||C||Z.complete()}))};
q.subscribe(new tu(Z,function(L){return C<r?H(L):Y.push(L)},void 0,function(){O=!0;
!O||Y.length||C||Z.complete()}));
return function(){Y=null}};
n_=function(q,Z){var w=w===void 0?Infinity:w;if(gr(Z))return n_(function(r,Y){return bb(function(C,d){return Z(r,C,Y,d)})(C_(q(r,Y)))},w);
typeof Z==="number"&&(w=Z);return j8(function(r,Y){return IJO(r,Y,q,w)})};
cuN=function(q){q=q===void 0?Infinity:q;return n_(r9,q)};
M82=function(){var q=_.Ta.apply(0,arguments);return cuN(1)(JuN(q,L_(q)))};
FTX=function(q){return new $q(function(Z){C_(q()).subscribe(Z)})};
Q2=function(q,Z,w){if(gr(w)){var r=w;w=void 0}if(r)return Q2(q,Z,w).pipe(Q3T(r));r=_.P(gr(q.addEventListener)&&gr(q.removeEventListener)?N9T.map(function(d){return function(O){return q[d](Z,O,w)}}):gr(q.addListener)&&gr(q.removeListener)?lJ1.map(G$j(q,Z)):gr(q.on)&&gr(q.off)?pqX.map(G$j(q,Z)):[]);
var Y=r.next().value,C=r.next().value;return!Y&&oqT(q)?n_(function(d){return Q2(d,Z,w)})(JuN(q)):new $q(function(d){if(!Y)throw new TypeError("ka");
var O=function(){var H=_.Ta.apply(0,arguments);return d.next(1<H.length?H:H[0])};
Y(O);return function(){return C(O)}})};
G$j=function(q,Z){return function(w){return function(r){return q[w](Z,r)}}};
xq=function(){var q=_.Ta.apply(0,arguments),Z=L_(q);var w=typeof q[q.length-1]==="number"?q.pop():Infinity;return q.length?q.length===1?C_(q[0]):cuN(w)(JuN(q,Z)):EI};
mXe=function(q){return q.length===1&&Xq1(q[0])?q[0]:q};
AuI=function(){var q=mXe(_.Ta.apply(0,arguments));return j8(function(Z,w){var r=[Z].concat(_.Ju(q)),Y=function(){if(!w.closed)if(r.length>0){try{var C=C_(r.shift())}catch(O){Y();return}var d=new tu(w,void 0,ZJ,ZJ);w.add(C.subscribe(d));d.add(Y)}else w.complete()};
Y()})};
T$=function(q){return j8(function(Z,w){var r=0;Z.subscribe(new tu(w,function(Y){return q.call(void 0,Y,r++)&&w.next(Y)}))})};
DX1=function(){var q=_.Ta.apply(0,arguments);q=mXe(q);return q.length===1?C_(q[0]):new $q(fJO(q))};
fJO=function(q){return function(Z){for(var w=[],r={i$jscomp$263:0};w&&!Z.closed&&r.i$jscomp$263<q.length;r={i$jscomp$263:r.i$jscomp$263},r.i$jscomp$263++)w.push(C_(q[r.i$jscomp$263]).subscribe(new tu(Z,function(Y){return function(C){if(w){for(var d=0;d<w.length;d++)d!==Y.i$jscomp$263&&w[d].unsubscribe();w=null}Z.next(C)}}(r))))}};
hBI=function(){var q=_.Ta.apply(0,arguments),Z=zBX(q),w=mXe(q);return w.length?new $q(function(r){var Y=w.map(function(){return[]}),C=w.map(function(){return!1});
r.add(function(){Y=C=null});
for(var d={sourceIndex$jscomp$1:0};!r.closed&&d.sourceIndex$jscomp$1<w.length;d={sourceIndex$jscomp$1:d.sourceIndex$jscomp$1},d.sourceIndex$jscomp$1++)C_(w[d.sourceIndex$jscomp$1]).subscribe(new tu(r,function(O){return function(H){Y[O.sourceIndex$jscomp$1].push(H);Y.every(function(L){return L.length})&&(H=Y.map(function(L){return L.shift()}),r.next(Z?Z.apply(null,_.Ju(H)):H),Y.some(function(L,S){return!L.length&&C[S]})&&r.complete())}}(d),void 0,function(O){return function(){C[O.sourceIndex$jscomp$1]=
!0;
!Y[O.sourceIndex$jscomp$1].length&&r.complete()}}(d)));
return function(){Y=C=null}}):EI};
yu2=function(q){var Z,w,r;return!!q&&typeof q.active==="boolean"&&typeof((Z=q.clock)==null?void 0:Z.now)==="function"&&((w=q.clock)==null?void 0:w.timeline)!==void 0&&!((r=q.lastMeasurement)==null||!r.timestamp)&&typeof q.equivalentTo==="function"&&typeof q.extrapolateToNow==="function"&&typeof q.extrapolateToTime==="function"&&typeof q.map==="function"&&typeof q.joinWith==="function"};
i_e=function(q){function Z(w){return typeof w==="boolean"||typeof w==="string"||typeof w==="number"||w===void 0||w===null}
return Z(q)?!0:Array.isArray(q)?q.every(Z):typeof q==="object"?Object.keys(q).every(function(w){return typeof w==="string"})&&Object.values(q).every(function(w){return Array.isArray(w)?w.every(Z):Z(w)}):!1};
gq6=function(q){if(i_e(q))return q;if(yu2(q))return{lastMeasurement:{value:gq6(q.lastMeasurement.value),timestamp:UI(q.lastMeasurement.timestamp,new kq(0,q.lastMeasurement.timestamp.timeline))},active:q.active};try{return JSON.parse(JSON.stringify(q))}catch(Z){}return String(q)};
K_=function(q,Z){return function(w){return new $q(function(r){return w.subscribe(function(Y){q.timeExecution(Z,function(){r.next(Y)})()},function(Y){q.timeExecution(Z,function(){r.error(Y)})()},function(){q.timeExecution(Z,function(){r.complete()})()})})}};
q36=function(q,Z){var w=!1;return new $q(function(r){var Y=q.setTimeout(function(){w=!0;r.next(!0);r.complete()},Z);
return function(){w||q.clearTimeout(Y)}})};
ZC2=function(q){q=q.global;if(q.fetchLater)return q.fetchLater.bind(q)};
sI=function(q){return j8(function(Z,w){var r=null,Y=!1,C;r=Z.subscribe(new tu(w,void 0,function(d){C=C_(q(d,sI(q)(Z)));r?(r.unsubscribe(),r=null,C.subscribe(w)):Y=!0}));
Y&&(r.unsubscribe(),r=null,C.subscribe(w))})};
w3j=function(q,Z,w){return function(r,Y){var C=w,d=Z,O=0;r.subscribe(new tu(Y,function(H){var L=O++;d=C?q(d,H,L):(C=!0,H);Y.next(d)},void 0,void 0))}};
rjj=function(q){q=q===void 0?null:q;return j8(function(Z,w){var r=!1;Z.subscribe(new tu(w,function(Y){r=!0;w.next(Y)},void 0,function(){r||w.next(q);
w.complete()}))})};
I3=function(){return j8(function(q,Z){q.subscribe(new tu(Z,ZJ))})};
cq=function(q){return j8(function(Z,w){Z.subscribe(new tu(w,function(){return w.next(q)}))})};
MX=function(q){return q<=0?function(){return EI}:j8(function(Z,w){var r=0;
Z.subscribe(new tu(w,function(Y){++r<=q&&(w.next(Y),q<=r&&w.complete())}))})};
Fd=function(q){var Z=Z===void 0?r9:Z;var w;q=(w=q)!=null?w:Y3T;return j8(function(r,Y){var C,d=!0;r.subscribe(new tu(Y,function(O){var H=Z(O);if(d||!q(C,H))d=!1,C=H,Y.next(O)}))})};
Y3T=function(q,Z){return q===Z};
eT9=function(q){q=q===void 0?$u9:q;return j8(function(Z,w){var r=!1;Z.subscribe(new tu(w,function(Y){r=!0;w.next(Y)},void 0,function(){return r?w.complete():w.error(q())}))})};
$u9=function(){return new CMN};
NX=function(){var q=_.Ta.apply(0,arguments);return function(Z){return M82(Z,S8.apply(null,_.Ju(q)))}};
PMj=function(q){return j8(function(Z,w){var r=0;Z.subscribe(new tu(w,function(Y){q.call(void 0,Y,r++,Z)||(w.next(!1),w.complete())},void 0,function(){w.next(!0);
w.complete()}))})};
VhO=function(){return j8(function(q,Z){var w=[];q.subscribe(new tu(Z,function(r){w.push(r);1<w.length&&w.shift()},void 0,function(){for(var r=_.P(w),Y=r.next();!Y.done;Y=r.next())Z.next(Y.value);
Z.complete()},function(){w=null}))})};
OC8=function(q,Z){var w=arguments.length>=2;return function(r){return r.pipe(q?T$(function(Y,C){return q(Y,C,r)}):r9,VhO(),w?rjj(Z):eT9(function(){return new CMN}))}};
G$=function(q){var Z=gr(q)?q:function(){return q};
return gr()?j8(function(w,r){var Y=Z();(void 0)(Y).subscribe(r).add(w.subscribe(Y))}):function(w){var r=new lb(w,Z);
gr(w==null?void 0:w.lift)&&(r.lift=w.lift);r.source=w;r.subjectFactory=Z;return r}};
Xd=function(q){var Z=new p_(q,void 0,void 0);return function(w){return G$(function(){return Z})(w)}};
f_=function(q,Z){return j8(w3j(q,Z,arguments.length>=2))};
DJ=function(){var q=_.Ta.apply(0,arguments),Z=L_(q);return j8(function(w,r){(Z?M82(q,w,Z):M82(q,w)).subscribe(r)})};
hu=function(q){return j8(function(Z,w){var r=null,Y=0,C=!1;Z.subscribe(new tu(w,function(d){var O;(O=r)==null||O.unsubscribe();O=Y++;C_(q(d,O)).subscribe(r=new tu(w,function(H){return w.next(H)},void 0,function(){r=null;
C&&!r&&w.complete()}))},void 0,function(){(C=!0,!r)&&w.complete()}))})};
y2=function(q,Z){Z=Z===void 0?!1:Z;return j8(function(w,r){var Y=0;w.subscribe(new tu(r,function(C){var d=q(C,Y++);(d||Z)&&r.next(C);!d&&r.complete()}))})};
HC1=function(q,Z,w){var r=gr(q)||Z||w?{next:q,error:Z,complete:w}:q;return r?j8(function(Y,C){Y.subscribe(new tu(C,function(d){var O;(O=r.next)==null||O.call(r,d);C.next(d)},function(d){var O;
(O=r.error)==null||O.call(r,d);C.error(d)},function(){var d;
(d=r.complete)==null||d.call(r);C.complete()}))}):r9};
WeT=function(){var q=_.Ta.apply(0,arguments),Z=zBX(q);return j8(function(w,r){for(var Y=q.length,C=Array(Y),d=q.map(function(){return!1}),O=!1,H={i$jscomp$273:0};H.i$jscomp$273<Y;H={i$jscomp$273:H.i$jscomp$273},H.i$jscomp$273++)C_(q[H.i$jscomp$273]).subscribe(new tu(r,function(L){return function(S){C[L.i$jscomp$273]=S;
O||d[L.i$jscomp$273]||(d[L.i$jscomp$273]=!0,(O=d.every(r9))&&(d=null))}}(H),void 0,ZJ));
w.subscribe(new tu(r,function(L){O&&(L=[L].concat(_.Ju(C)),r.next(Z?Z.apply(null,_.Ju(L)):L))}))})};
ox9=function(q){var Z=[],w=0,r;for(r in q)Z[w++]=r;return Z};
ug8=function(q,Z){for(var w in q)if(q[w]==Z)return!0;return!1};
LeO=function(q,Z,w){for(var r in q)if(Z.call(w,q[r],r,q))return r};
S3T=function(q){if(!q||typeof q!=="object")return q;if(typeof q.clone==="function")return q.clone();if(typeof Map!=="undefined"&&q instanceof Map)return new Map(q);if(typeof Set!=="undefined"&&q instanceof Set)return new Set(q);if(q instanceof Date)return new Date(q.getTime());var Z=Array.isArray(q)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(q)||q instanceof DataView?{}:new q.constructor(q.length),w;for(w in q)Z[w]=S3T(q[w]);return Z};
vxN=function(q){var Z=arguments.length;if(Z==1&&Array.isArray(arguments[0]))return vxN.apply(null,arguments[0]);if(Z%2)throw Error("oa");for(var w={},r=0;r<Z;r+=2)w[arguments[r]]=arguments[r+1];return w};
j46=function(q){var Z=arguments.length;if(Z==1&&Array.isArray(arguments[0]))return j46.apply(null,arguments[0]);for(var w={},r=0;r<Z;r++)w[arguments[r]]=!0;return w};
_.ib=function(q){return new hdT(q[0].toLowerCase())};
th8=function(q){try{return new URL(q,window.document.baseURI)}catch(Z){return new URL("about:invalid")}};
RT9=function(q,Z){var w=Z.createRange();w.selectNode(Z.body);q=I9(q);return w.createContextualFragment(c8(q))};
bCj=function(q){q=q.nodeName;return typeof q==="string"?q:"FORM"};
Jj1=function(q){q=q.nodeType;return q===1||typeof q!=="number"};
g9=function(q,Z,w){q.setAttribute(Z,w)};
zTj=function(q){return q.parts.map(function(Z){var w=Z.descriptor;return""+Z.url+(w?" "+w:"")}).join(" , ")};
_.qu=function(q){var Z=_.Ta.apply(1,arguments);if(Z.length===0)return _.o9(q[0]);for(var w=q[0],r=0;r<Z.length;r++)w+=encodeURIComponent(Z[r])+q[r+1];return _.o9(w)};
_.ZM=function(q,Z){q=_.ug(q).toString();var w=q.split(/[?#]/),r=/[?]/.test(q)?"?"+w[1]:"";return BDj(w[0],r,/[#]/.test(q)?"#"+(r?w[2]:w[1]):"",Z)};
BDj=function(q,Z,w,r){function Y(d,O){d!=null&&(Array.isArray(d)?d.forEach(function(H){return Y(H,O)}):(Z+=C+encodeURIComponent(O)+"="+encodeURIComponent(d),C="&"))}
var C=Z.length?"&":"?";r.constructor===Object&&(r=Object.entries(r));Array.isArray(r)?r.forEach(function(d){return Y(d[1],d[0])}):r.forEach(Y);
return _.o9(q+Z+w)};
aMO=function(q){q=q.global;if(q.PendingGetBeacon)return q.PendingGetBeacon};
$x=function(q){return function(Z){return Z.pipe(nxj(q,G$(new wD)))}};
eh=function(q){return function(Z){return Z.pipe(nxj(q,Xd(1)))}};
nxj=function(q,Z){function w(r){return new $q(function(Y){return r.subscribe(function(C){CC(q,function(){return void Y.next(C)},3)},function(C){CC(q,function(){return void Y.error(C)},3)},function(){CC(q,function(){return void Y.complete()},3)})})}
return Yq(w,aJ2(),Z,R3(),w)};
xuj=function(q){var Z=Q4z(q);return Z===null?new P3(null):Z.pipe(bb(function(w){w=w.serialize();if(Ex2)w=_.$1.btoa(w);else{for(var r=[],Y=0,C=0;C<w.length;C++){var d=w.charCodeAt(C);d>255&&(r[Y++]=d&255,d>>=8);r[Y++]=d}w=_.Rq(r)}return w}),MX(1),eh(q.queue))};
TDT=function(q){var Z=Z===void 0?{}:Z;if(typeof Event==="function")return new Event(q,Z);if(typeof document!=="undefined"){var w=document.createEvent("CustomEvent");w.initCustomEvent(q,Z.bubbles||!1,Z.cancelable||!1,Z.detail);return w}throw Error();};
Uu9=function(q){return typeof q==="string"?document.getElementById(q):q};
KeT=function(q){var Z=!1;Z=Z===void 0?!1:Z;if(q.tagName==="IMG"){if(q.complete&&(!q.naturalWidth||!q.naturalHeight))return!0;var w;if(Z&&((w=q.style)==null?void 0:w.display)==="none")return!0}var r,Y;return kx9.test((r=q.getAttribute("width"))!=null?r:"")&&kx9.test((Y=q.getAttribute("height"))!=null?Y:"")};
s4X=function(q,Z){if(q.tagName==="IMG")return q.naturalWidth&&q.naturalHeight?!0:!1;try{if(q.readyState)var w=q.readyState;else{var r,Y;w=(r=q.contentWindow)==null?void 0:(Y=r.document)==null?void 0:Y.readyState}return w==="complete"}catch(C){return Z===void 0?!1:Z}};
IM1=function(q){q||(q=function(Z,w,r){Z.addEventListener(w,r)});
return q};
NDI=function(q,Z){var w=cjN();w=w===void 0?new MhT:w;if(q=Uu9(q)){var r=IM1(r);for(var Y=!1,C=function(K){Y||(Y=!0,Z(K))},d,O=2,H=0;H<FeN.length;++H)if(FeN[H]===q.tagName){O=3;
d=[q];break}d||(d=q.querySelectorAll(FeN.join(",")));var L=0,S=0,v=!0,R=q=!1;H={};for(var B=0;B<d.length;H={isImg:void 0},B++){var n=d[B];if(!KeT(n))if(H.isImg=n.tagName==="IMG",s4X(n,w.crossDomainLoadedDefault))q=!0,H.isImg&&(v=!0);else{L++;var x=function(K){return function(k){L--;!L&&v&&C(O);K.isImg&&(k=k&&k.type==="error",S--,k||(v=!0),!S&&R&&v&&C(O))}}(H);
r(n,"load",x);H.isImg&&(S++,r(n,"error",x))}}S===0&&(v=!0);d=null;d=_.$1.document.readyState==="complete";if(L===0&&!q&&d)O=5;else if(L||!q){r(_.$1,"load",function(){!w.pendingImagesBlockLoad||!S&&v?C(4):R=!0});
return}C(O)}};
lMO=function(q,Z,w){if(q)for(var r=0;q!=null&&r<500&&!w(q);++r)q=Z(q)};
GxX=function(q,Z){lMO(q,function(w){try{return w===w.parent?null:w.parent}catch(r){}return null},Z)};
p38=function(q,Z){if(q.tagName=="IFRAME")Z(q);else{q=q.querySelectorAll("IFRAME");for(var w=0;w<q.length&&!Z(q[w]);++w);}};
X3I=function(q){return(q=q.ownerDocument)&&(q.parentWindow||q.defaultView)||null};
muT=function(q,Z,w){try{var r=JSON.parse(w.data)}catch(d){}if(typeof r==="object"&&r&&r.type==="creativeLoad"){var Y=X3I(q);if(w.source&&Y){var C;GxX(w.source,function(d){try{if(d.parent===Y)return C=d,!0}catch(O){}});
C&&p38(q,function(d){if(d.contentWindow===C)return Z(r),!0})}}};
Aj8=function(q){return typeof q==="string"?document.getElementById(q):q};
yjj=function(){var q={};return q[0]=_.qu(fMT,"current"),q[1]=_.qu(Du9),q[2]=_.qu(hTI),q};
dD=function(q,Z){return q.left===Z.left&&q.top===Z.top&&q.width===Z.width&&q.height===Z.height};
iCz=function(q,Z){return{left:Math.max(q.left,Z.left),top:Math.max(q.top,Z.top),width:Math.max(0,Math.min(q.left+q.width,Z.left+Z.width)-Math.max(q.left,Z.left)),height:Math.max(0,Math.min(q.top+q.height,Z.top+Z.height)-Math.max(q.top,Z.top))}};
gxX=function(q,Z){return{left:Math.round(q.left+Z.x),top:Math.round(q.top+Z.y),width:q.width,height:q.height}};
Vg=function(q,Z,w,r){this.top=q;this.right=Z;this.bottom=w;this.left=r};
qJ1=function(q,Z,w){if(q&&Z!==null&&Z!=Z.top){if(!Z.top)return new _.O3(-12245933,-12245933);Z=Z.top}try{return(w===void 0?0:w)?(new _.O3(Z.innerWidth,Z.innerHeight)).round():_.H3(Z).round()}catch(r){return new _.O3(-12245933,-12245933)}};
ZhX=function(q,Z,w){try{if(q){if(!Z.top)return new Vg(-12245933,-12245933,-12245933,-12245933);Z=Z.top}var r=qJ1(q,Z,w),Y=r.height,C=r.width;if(C===-12245933)return new Vg(C,C,C,C);var d=W3(o4(Z.document)),O=d.x,H=d.y;return new Vg(H,O+C,H+Y,O)}catch(L){return new Vg(-12245933,-12245933,-12245933,-12245933)}};
wGT=function(q){var Z;return(Z=q.google_tag_data)!=null?Z:q.google_tag_data={}};
r1z=function(q){var Z,w;return typeof((Z=q.navigator)==null?void 0:(w=Z.userAgentData)==null?void 0:w.getHighEntropyValues)==="function"};
$b6=function(q){if(!r1z(q))return null;var Z=wGT(q);if(Z.uach_promise)return Z.uach_promise;q=q.navigator.userAgentData.getHighEntropyValues(YJe).then(function(w){Z.uach!=null||(Z.uach=w);return w});
return Z.uach_promise=q};
SJ6=function(q){var Z;return eOz(C6O(P6I(dbI(VC1(Ohz(Hh2(Wtz(oiN(new usI,q.architecture||""),q.bitness||""),q.mobile||!1),q.model||""),q.platform||""),q.platformVersion||""),q.uaFullVersion||""),((Z=q.fullVersionList)==null?void 0:Z.map(function(w){var r=new Lt2;r=_.uM(r,1,w.brand);return _.uM(r,2,w.version)}))||[]),q.wow64||!1)};
viz=function(q){var Z,w;return(w=(Z=$b6(q))==null?void 0:Z.then(function(r){return SJ6(r)}))!=null?w:null};
j12=function(q,Z){return new $q(function(w){var r=!1,Y=Array(Z.length);Y.fill(void 0);var C=new Set,d=new Set,O=function(v,R){q.running?(Y[R]=v,C.add(R),r||(r=!0,CC(q,function(){r=!1;w.next(_.Ge(Y))},1))):w.error(new LC(R))},H=function(v,R){d.add(R);
C.add(R);CC(q,function(){w.error(v)},1)},L=function(v){d.add(v);
CC(q,function(){d.size===Z.length&&w.complete()},1)},S=Z.map(function(v,R){return v.subscribe(function(B){return void O(B,R)},function(B){return void H(B,R)},function(){return void L(R)})});
return function(){S.forEach(function(v){return void v.unsubscribe()})}})};
bhT=function(q,Z,w){function r(){if(Z.debugChannel){var K=Z.debugChannel,k=K.next;var G={creativeId:Z.debugNames.getName(w),requiredSignals:Y,signals:Object.assign({},C),hasPrematurelyCompleted:d,errorMessage:O,erroredSignalKey:H};G={specMajor:2,specMinor:0,specPatch:0,timestamp:UI(Z.timeProvider.now(),new kq(0,Z.timeProvider.timeline)),instanceId:Z.debugNames.getName(Z.symbol),creativeState:G};k.call(K,G)}}
for(var Y=Object.keys(q),C={},d=!1,O=null,H=null,L={},S=new Set,v=[],R=[],B=_.P(Y),n=B.next(),x={};!n.done;x={key$jscomp$372:void 0},n=B.next())x.key$jscomp$372=n.value,n=q[x.key$jscomp$372],n instanceof P3?(L[x.key$jscomp$372]=n.value,S.add(x.key$jscomp$372),Z.debugChannel&&(C[String(x.key$jscomp$372)]=gq6(n.value))):(n=n.pipe(Fd(function(K,k){return yu2(K)||yu2(k)?!1:K===k}),bb(function(K){return function(k){Z.debugChannel&&(C[String(K.key$jscomp$372)]=gq6(k),r());
var G={};return G[K.key$jscomp$372]=k,G}}(x)),sI(function(K){return function(k){if(k instanceof LC)throw new tC9(String(K.key$jscomp$372));
throw k;}}(x)),HC1(function(K){return function(){S.add(K.key$jscomp$372)}}(x),function(K){return function(k){H=String(K.key$jscomp$372);
O=String(k);r()}}(x),function(K){return function(){S.has(K.key$jscomp$372)||(d=!0,r())}}(x))),R.push(x.key$jscomp$372),v.push(n));
(q=Object.keys(C).length>0)&&r();B=j12(Z.queue,v).pipe(sI(function(K){if(K instanceof LC)throw new ROT(String(R[K.inputObservableIndex]));throw K;}),bb(function(K){return Object.freeze(Object.assign.apply(Object,[{},
L].concat(_.Ju(K))))}));
return(v=v.length>0)&&q?xq(S8(Object.freeze(L)),B):v?B:S8(Object.freeze(L))};
J16=function(q,Z,w,r,Y){return q.performanceMonitor.timeExecution.bind(q.performanceMonitor)(733,function(){var C={};try{return Z.pipe(sI(function(d){r(Object.assign({},C,{error:d}));return EI}),n_(function(d){try{var O=w(q,d)}catch(L){return r(Object.assign({},C,{error:L instanceof Error?L:String(L)})),EI}var H={};
return bhT(O,q,d.symbol).pipe(HC1(function(L){H=L}),Xd(1),R3()).pipe(Y,sI(function(L){r(Object.assign({},H,{error:L}));
return EI}),NX(void 0),bb(function(){return!0}))})).pipe(f_(function(d){return d+1},0),sI(function(d){r(Object.assign({},C,{error:d}));
return EI}))}catch(d){return r(Object.assign({},C,{error:d})),EI}})()};
Sh=function(q){var Z=new Map;if(typeof q!=="object"||q===null)return Z;Object.values(q).forEach(function(w){w&&typeof w.extrapolateToNow==="function"&&(Z.has(w.clock.timeline)||Z.set(w.clock.timeline,w.clock.now()))});
return Z};
zO2=function(q,Z){return typeof q==="string"?encodeURIComponent(q):typeof q==="number"?String(q):Array.isArray(q)?q.map(function(w){return zO2(w,Z)}).join(","):q instanceof kq?q.toString():q&&typeof q.extrapolateToNow==="function"?zO2(q.extrapolateUsingTimestampMap(Z).value,Z):q===!0?"1":q===!1?"0":q===void 0||q===null?null:q instanceof BXX?aA2(q):[q.top,
q.left,q.top+q.height,q.left+q.width].join()};
niX=function(q,Z){q=Object.entries(q).map(function(w){var r=_.P(w);w=r.next().value;r=r.next().value;r=zO2(r,Z);return r===null?"":w+"="+r}).filter(function(w){return w!==""});
return q.length?q.join("&"):""};
xbj=function(q,Z){var w=Q12,r=Ei6;Z=Z===void 0?.01:Z;return function(Y){Z>0&&Math.random()<=Z&&(q.global.HTMLFencedFrameElement&&q.global.fence&&typeof q.global.fence.reportEvent==="function"&&q.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),Y=Object.assign({},Y,{errorMessage:Y.error instanceof Error&&Y.error.message?Y.error.message:String(Y.error),errorStack:Y.error instanceof Error&&Y.error.stack?String(Y.error.stack):null,errorName:Y.error instanceof
Error&&Y.error.name?String(Y.error.name):null,errorContext:String(q.performanceMonitor.timedFunctionContext),errorEscapedQueryId:Y.escapedQueryId}),w(Object.assign({},Y,{payloadMapper:function(){return function(C){try{return r(Object.assign({},C))}catch(d){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),Sh(Y)).forEach(function(C){q.beaconFactory.makeBeacon(C).sendNow()}))}};
TX8=function(){var q=_.Ta.apply(0,arguments);return function(Z){var w=Z.pipe(Xd(1),R3());Z=q.map(function(r){return w.pipe(r,NX(!0))});
return Bq(Z).pipe(MX(1),I3())}};
UbI=function(){var q=_.Ta.apply(0,arguments);return function(Z){var w=Z.pipe(Xd(1),R3());Z=q.map(function(r){return w.pipe(r,NX(!0))});
return xq.apply(null,_.Ju(Z)).pipe(MX(1),I3())}};
k12=function(q,Z){return function(w){var r=w.pipe(Xd(1),R3());w=r.pipe(q,NX(!0));r=r.pipe(Yq(Z,Xd(),R3()),NX(!0));w=Bq([w,r]);return DX1(w,r).pipe(MX(1),I3())}};
KtN=function(q,Z,w){w(!0)};
s1z=function(q,Z){return Yq(hu(function(w){var r=q(w),Y=Z(w),C={};return r&&Y&&C?new $q(function(d){Y(r,C,function(O){d.next(Object.assign({},w,{canEmit:O}));d.complete()});
return function(){}}):v3}),T$(function(w){return w.canEmit}))};
IA9=function(q){var Z={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(w){return w.pipe(hu(function(r){return new $q(function(Y){function C(){O.disconnect();H.unsubscribe()}
var d=q.MutationObserver;if(d&&r.ref!==void 0){var O=new d(function(L){Y.next(L)});
O.observe(r.ref,Z);var H=r.JSC$7213_released.subscribe(C);return C}})}))}};
c1T=function(q){if(q.measurementDeferralState===3)return null;if(q.timeOnScreenReason!==void 0){var Z=q.creativeFound===!1?"n":null;if(Z!==null)return Z}return q.geometricMeasurementErrors instanceof jh?"msf":q.contextValidationErrors instanceof tj?"c":q.contextVisibilityKnown===!1?"pv":q.geometricMeasurementErrors||q.contextValidationErrors?"x":null};
Ft9=function(q,Z){return q.replace(MCe,function(w,r){try{var Y=_.R4.get(Z,r);if(Y==null||Y.toString()==null)return w;Y=Y.toString();if(Y==""||!_.W6(Y==null?"":String(Y)))return encodeURIComponent(Y).replace(/%2C/g,",")}catch(C){}return w})};
NX9=function(q,Z){var w=Object.assign({},q),r=q.userAgentClientHints;w=(delete w.userAgentClientHints,w);w=q.payloadMapper(w);var Y=niX(w,Z);return _.bM(q.urlPrefixes,function(C){var d="";typeof r==="string"&&(d="&"+niX({uach:r},Z));var O={};return Ft9(C,(O.VIEWABILITY=Y,O))+d})};
Q12=function(q,Z){var w=q.payloadMapper(q),r=niX(w,Z);return r?_.bM(q.urlPrefixes,function(Y){Y=Y.indexOf("?")>=0?Y:Y+"?";Y="?&".indexOf(Y.slice(-1))>=0?Y:Y+"&";return Y+r}):q.urlPrefixes};
lAX=function(){return Yq(T$(function(q){return q!==void 0}),bb(function(q){return q}))};
G1I=function(q){return Yq(bb(function(){return!0}),DJ(!1),eh(q))};
pGT=function(q){return q.length<=0?EI:Bq(q.map(function(Z){var w=0;return Z.pipe(bb(function(r){return{index:w++,value:r}}))})).pipe(T$(function(Z){return Z.every(function(w){return w.index===Z[0].index})}),bb(function(Z){return Z.map(function(w){return w.value})}))};
XGO=function(q,Z){q.currentState&&(q.previousState=q.currentState);q.currentState=Z;q.previousState&&q.previousState.value?(Z=Math.max(0,UI(Z.timestamp,q.previousState.timestamp)),q.totalTime+=Z,q.consecutiveTime+=Z):q.consecutiveTime=0;return q};
mb8=function(){return Yq(f_(XGO,{totalTime:0,consecutiveTime:0}),bb(function(q){return q.totalTime}))};
A1T=function(){return Yq(f_(XGO,{totalTime:0,consecutiveTime:0}),bb(function(q){return q.consecutiveTime}))};
fAX=function(q,Z){return function(w){return pGT(Z.map(function(r){return w.pipe(q(r))}))}};
Dbj=function(){var q;return Yq(HC1(function(Z){return void(q=Z.timestamp)}),A1T(),bb(function(Z){return{timestamp:q,
value:Math.round(Z)}}))};
hOX=function(q,Z){return dD(q.topWindowViewportExternalGeometry,Z.topWindowViewportExternalGeometry)&&dD(q.elementGeometry,Z.elementGeometry)&&dD(q.exposedViewportLocalGeometry,Z.exposedViewportLocalGeometry)&&dD(q.intersectionGeometry,Z.intersectionGeometry)&&q.elementGeometrySourceName===Z.elementGeometrySourceName&&q.measurementRequests===Z.measurementRequests&&q.viewportGeometrySourceName===Z.viewportGeometrySourceName&&q.viewportLocalAppOffset.x===Z.viewportLocalAppOffset.x&&q.viewportLocalAppOffset.y===
Z.viewportLocalAppOffset.y};
Z7O=function(q,Z){return function(w){return function(r){var Y=r.pipe(G$(new wD),R3());r=w.element.pipe(Fd());Y=Y.pipe(bb(function(C){return C.value}));
return Bq([r,Y,Z]).pipe(bb(function(C){var d=_.P(C);C=d.next().value;var O=d.next().value;d=d.next().value;if(C.ref===void 0)var H={top:0,left:0,width:0,height:0};else{H=C.ref.getBoundingClientRect();var L=C.ref,S=q.global,v=new _.B3(0,0),R=a4(_.nC(L));if(y19(R,"parent")){do{if(R==S)var B=_.Qg(L);else B=ihT(L),B=new _.B3(B.left,B.top);v.x+=B.x;v.y+=B.y}while(R&&R!=S&&R!=R.parent&&(L=R.frameElement)&&(R=R.parent))}H={top:v.y,left:v.x,width:H.width,height:H.height}}H=gxX(H,O.viewportLocalAppOffset);
S=iCz(H,O.exposedViewportLocalGeometry);v=q.timeProvider.now();R=Object;L=R.assign;if(d!==2||q.inCrossDomainIframe||S.width<=0||S.height<=0)var n=!1;else try{var x=q.document.elementFromPoint(S.left+S.width/2,S.top+S.height/2);n=x?!giX(x,C):!1}catch(K){n=!1}return{timestamp:v,value:L.call(R,{},O,{elementGeometrySourceName:"geo",intersectionGeometry:n?quj.intersectionGeometry:S,elementGeometry:H})}}),$x(q.queue))}}};
giX=function(q,Z,w){w=w===void 0?0:w;return q.ref===void 0||Z.ref===void 0?!1:q.ref===Z.ref||_.E3(Z.ref,function(r){return r===q.ref})?!0:Z.ref.ownerDocument&&Z.ref.ownerDocument.defaultView&&Z.ref.ownerDocument.defaultView===Z.ref.ownerDocument.defaultView.top?!1:w<10&&Z.ref.ownerDocument&&Z.ref.ownerDocument.defaultView&&Z.ref.ownerDocument.defaultView.frameElement?giX(q,new Tx(Z.ref.ownerDocument.defaultView.frameElement),w+1):!0};
Yu9=function(q){return function(Z){return Z.pipe(q.ResizeObserver?wN1(q):rXT(q),Xd(1),R3())}};
wN1=function(q){return function(Z){return Z.pipe(hu(function(w){var r=q.ResizeObserver;if(!r||w.ref===void 0)return S8(quj.elementGeometry);var Y=(new $q(function(C){function d(){w.ref!==void 0&&O.unobserve(w.ref);O.disconnect();H.unsubscribe()}
if(w.ref===void 0)return C.complete(),function(){};
var O=new r(function(L){L.forEach(function(S){C.next(S)})});
O.observe(w.ref);var H=w.JSC$7213_released.subscribe(d);return d})).pipe(K_(q.performanceMonitor,736),bb(function(C){return C.contentRect}));
return xq(S8(w.ref.getBoundingClientRect()),Y)}),Fd(dD))}};
rXT=function(q){return function(Z){var w=Z.pipe(IA9(q)),r=q.onResize;w=xq(Z.pipe(bb(function(){return TDT("resize")})),w,r);
return Bq(Z,w).pipe(K_(q.performanceMonitor,737),bb(function(Y){Y=_.P(Y).next().value;return Y.ref===void 0?void 0:Y.ref.getBoundingClientRect()}),lAX(),Fd(dD))}};
CSj=function(q,Z){var w=$oX(q,Z).pipe(Xd(1),R3());return function(r){return function(Y){Y=Y.pipe(hu(function(C){return C.element}),Fd());
return Bq([w,Y]).pipe(hu(function(C){var d=_.P(C);C=d.next().value;d=d.next().value;return e2N(q,C.intersectionObserver,Yu9(q),C.observations,r,C.flushRecords,d)}),$x(q.queue))}}};
PS1=function(q){return bb(function(Z){return Z.value.viewportGeometrySourceName!=="nio"?Z:Object.assign({},Z,{value:Object.assign({},Z.value,{exposedViewportLocalGeometry:U3(q,!0),topWindowViewportExternalGeometry:U3(q,!0)})})})};
doe=function(q,Z){return S8(Z).pipe(q,bb(function(){return Z}))};
$oX=function(q,Z){return q.timeProvider.timeline!==VG9?vq(new jh(2)):q.MutationObserver?typeof IntersectionObserver==="undefined"?vq(new jh(0)):(new $q(function(w){var r=new wD,Y=new kx(r.next.bind(r),{threshold:[].concat(_.Ju(Z))});w.next({observations:r.pipe(K_(q.performanceMonitor,735)),intersectionObserver:Y,flushRecords:function(C){C=Y.takeRecords(C);C.length>0&&r.next(C)}})})).pipe(MX(1),Xd(1),R3()):vq(new jh(1))};
O7T=function(q){return ud6(q.sort(function(Z,w){return Z.time-w.time}),B9e)};
e2N=function(q,Z,w,r,Y,C,d){return new $q(function(O){function H(){n||(n=!0,d.ref!==void 0&&Z.unobserve(Y,d.ref),S.unsubscribe(),B.unsubscribe(),R.unsubscribe(),x.unsubscribe())}
if(d.ref!==void 0){H7j(Z,Y);Z.observe(Y,d.ref);var L=new KC({timestamp:q.timeProvider.now(),value:Object.assign({},quj,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),S=r.pipe(n_(function(K){return O7T(K)}),T$(function(K){return K.target===d.ref}),bb(function(K){return{timestamp:new kq(K.time,VG9),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:K.rootBounds||s3,topWindowViewportExternalGeometry:K.rootBounds||U3(q,!0),measurementRequests:v,elementGeometrySourceName:"nio",intersectionGeometry:K.intersectionRect,elementGeometry:K.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:K.isIntersecting,isV2Visible:K.isVisible}}}),G$(L),R3()).subscribe(O),v=new wD,R=v.subscribe(function(){C(Y);
O.next({timestamp:q.timeProvider.now(),value:L.value.value});d.ref!==void 0&&(Z.unobserve(Y,d.ref),Z.observe(Y,d.ref))}),B=doe(w,d).subscribe(function(){v.next()}),n=!1,x=d.JSC$7213_released.subscribe(function(){return H()});
return H}})};
WPT=function(q,Z){var w=q.getOnBackgrounded().pipe(bb(function(){return"b"}));
return DX1(Z,w).pipe(MX(1),eh(q.queue))};
I4=function(q){return function(Z){var w;return Z.pipe(HC1(function(r){return void(w=r.timestamp)}),bb(function(r){return r.value}),q,bb(function(r){return{timestamp:w,
value:r}}))}};
c3=function(q,Z,w){w=w===void 0?function(r,Y){return r===Y}:w;
return q.timestamp.equals(Z.timestamp)&&w(q.value,Z.value)};
Fg=function(q,Z){return Z.pipe(bb(function(w){return new Mu(q.timeProvider,{timestamp:q.timeProvider.now(),value:w})}))};
o62=function(q){return function(Z){return Z.pipe(WeT(q),bb(function(w){var r=_.P(w);w=r.next().value;r=r.next().value;var Y=w.value;return{timestamp:w.timestamp,value:Y>=1?!0:Y<=0?!1:Y>=r}}))}};
LP6=function(){return Yq(T$(function(q,Z){return Z>0}),u4e,DJ(-1),Fd())};
SuN=function(q,Z,w){return q?Bq([Z,w]).pipe(T$(function(r){var Y=_.P(r);r=Y.next().value;Y=Y.next().value;return r.timestamp.equals(Y.timestamp)}),bb(function(r){var Y=_.P(r);
r=Y.next().value;Y=Y.next().value;return r.value>Y.value?r:Y})):Z};
tGX=function(q){return function(Z){var w=Z.pipe(v6I),r=Z.pipe(jF8);return q instanceof $q?q.pipe(hu(function(Y){return SuN(Y,w,r)})):SuN(q.value,w,r)}};
xoI=function(q,Z,w,r){var Y=r.geometryIsOccluded,C=r.exposureThreshold,d=r.wasLargeAdAtRender,O=r.allowLargeAdThreshold,H=r.largeAdExposureThreshold,L=r.mayUseViewportShareExposure,S=r.hasMeasurementStarted;r=r.useIntersectionObserverV2;Z=R22(q,w,Z);w=b7j(q,w);r=JXI(Z,r);var v=z28(q,Y,L,Z),R=v.pipe(bb(function(eO){return eO.value}),Fd(),eh(q),f_(function(eO,g){return Math.max(eO,g)},0)),B=v.pipe(bb(function(eO){return eO.value}),LP6(),eh(q)),n=Z.pipe(BcT,bb(function(eO){return eO.value}),MX(2),Fd(),
eh(q));
d=aBI(q,Z,d,O);var x=d.pipe(DJ(!1),Fd(),bb(function(eO){return eO?H:C}));
O=v.pipe(o62(x),Fd(),eh(q));var K=Bq([O,Z]).pipe(T$(function(eO){var g=_.P(eO);eO=g.next().value;g=g.next().value;return eO.timestamp.equals(g.timestamp)}),bb(function(eO){var g=_.P(eO);
eO=g.next().value;g=g.next().value;return{visible:eO.value,geometry:g.value.elementGeometry}}),f_(function(eO,g){return!g.visible&&eO.visible?eO:g},{visible:!1,
geometry:s3}),bb(function(eO){return eO.geometry}),DJ(s3),eh(q),Fd(dD));
L=L instanceof $q?L.pipe(Fd(),cq()):v3;x=Bq([L,x]).pipe(cq());var k=Z.pipe(T$(function(eO){return eO.value.viewportGeometrySourceName!=="ns"&&eO.value.elementGeometrySourceName!=="ns"}),f_(function(eO){return eO+1},0),DJ(0),eh(q)),G=w.pipe(cq(!0),DJ(!1),eh(q));
G=Bq([S,G]).pipe(bb(function(eO){var g=_.P(eO);eO=g.next().value;g=g.next().value;return eO&&!g}),eh(q));
var rz=Z.pipe(n69,Fd()),f=rz.pipe(bb(function(eO){return eO.value}),f_(function(eO,g){return Math.max(eO,g)},0),Fd(),eh(q));
q=rz.pipe(bb(function(eO){return eO.value}),LP6(),eh(q));
return{shouldResetExposureSignals:L,shouldResetViewabilitySignals:x,geometrySignals:{readyGeometryWithDefault:Z,measurementStrategy:Z.pipe(QF2),creativePosition:K.pipe(Fd(dD)),visible:O.pipe(Fd(c3)),timestampedExposure:v.pipe(Fd(c3)),maximumExposure:R,minimumExposure:B,browserSize:Z.pipe(E62,Fd(_.iN)),timestampedScreenShare:rz,maxScreenShare:f,minScreenShare:q,geometricMeasurementErrors:w,measurementRequests:Z.pipe(bb(function(eO){return eO.value.measurementRequests})),
isLargeAd:d,geometryIsOccluded:Y,hasMeasurementStarted:S,geometryMeasurable:G,validMeasurementCount:k,loadTimeExposure:n,v2VisibilityBitVector:r}}};
b7j=function(q,Z){return Z.pipe(T$(function(){return!1}),bb(function(w){return w}),sI(function(w){return Nu(new P3(w),q)}))};
R22=function(q,Z,w){return Z.pipe(AuI(v3),eh(q)).pipe(Fd(function(r,Y){return c3(r,Y,hOX)}),DJ({timestamp:w.now(),
value:quj}),eh(q))};
z28=function(q,Z,w,r){w=r.pipe(tGX(w),I4(bb(function(Y){return Math.round(Y*100)/100})),eh(q));
return Z instanceof P3?w:Bq([w,Z]).pipe(bb(function(Y){var C=_.P(Y);Y=C.next().value;C=C.next().value;return{timestamp:C.timestamp.maximum(Y.timestamp),value:C.value?0:Y.value}}),Fd(c3),eh(q))};
aBI=function(q,Z,w,r){Z=[Z.pipe(bb(function(Y){return Y.value.elementGeometry.width*Y.value.elementGeometry.height>=242500}))];
w instanceof $q&&Z.push(w.pipe(bb(function(Y){return!!Y})));
w=Bq(Z);return r?w.pipe(bb(function(Y){return Y.some(function(C){return C})}),DJ(!1),Fd(),eh(q)):Nu(new P3(!1),q)};
JXI=function(q,Z){q=Bq([q,Z]).pipe(bb(function(Y){var C=_.P(Y);Y=C.next().value;if(C.next().value&&Y.value.isIntersecting)return Y.value.isV2Visible}),Fd());
var w=q.pipe(bb(function(Y){return Y===void 0?!0:Y}),f_(function(Y,C){return Y||!C},!1)),r=q.pipe(f_(function(Y,C){return C===void 0?Y:C?!1:Y!=null?Y:!0},void 0),bb(function(Y){return!!Y}));
return Bq([Z,hBI(q,w,r)]).pipe(bb(function(Y){var C=_.P(Y);Y=C.next().value;var d=_.P(C.next().value);C=d.next().value;var O=d.next().value;d=d.next().value;var H=0;if(!Y)return 0;if(C===void 0)return 16;C&&(H|=1);C||(H|=2);O&&(H|=4);d&&(H|=8);return H}))};
IBj=function(q,Z,w,r,Y){var C=Tc2.timeThresholdMs;var d=d===void 0?new Uoj(Z,r):d;return(new $q(function(O){var H=w.pipe(DJ(void 0),hu(function(){return k22(Y)})).pipe(bb(function(L){var S=L.value;
L=L.timestamp;var v=S.visible;S=S.consecutiveViewTime;var R=S>=C;R||!v?KP2(d):(L=Math.max(0,UI(Z.now(),L)),sF8(d,Math.max(0,C-S-L)));return R}),f_(function(L,S){return S||L},!1),Fd()).subscribe(O);
return function(){d.dispose();H.unsubscribe()}})).pipe(y2(function(O){return!O},!0),eh(q))};
k22=function(q){return pGT([q,q.pipe(Dbj())]).pipe(bb(function(Z){var w=_.P(Z);Z=w.next().value;w=w.next().value;return{timestamp:Z.timestamp,value:{visible:Z.value,consecutiveViewTime:w.value}}}),Fd(function(Z,w){return c3(Z,w,function(r,Y){return r.consecutiveViewTime===Y.consecutiveViewTime&&r.visible===Y.visible})}))};
cXT=function(){return Yq(A1T(),f_(function(q,Z){return Math.max(q,Z)},0),bb(function(q){return Math.round(q)}))};
MGI=function(q){return Yq(o62(S8(q)),cXT())};
FP6=function(q,Z){return Z instanceof $q?Z.pipe(hu(function(w){return(w=w?15:null)?vq(new jh(w)):q})):(Z=Z.value?15:null)?vq(new jh(Z)):q};
Nc8=function(q){var Z=new jh(13);if(q.length<1)return{chain:EI,capturedErrors:EI};var w=new wD,r=q[0];return{chain:q.slice(1).reduce(function(Y,C){return Y.pipe(sI(function(d){w.next(d);return C}))},r).pipe(sI(function(Y){w.next(Y);
return vq(Z)}),G$(new wD),R3()),
capturedErrors:w}};
lBz=function(q,Z){var w=q.pipe(G$(new wD),R3());return hu(function(r){return w.pipe(Z(r))})};
pNX=function(q,Z){if(q.inCrossDomainIframe)return vq(new jh(6));var w=new wD;return xq(S8({}),Z,w).pipe(bb(function(){return{timestamp:q.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:G2T(q),topWindowViewportExternalGeometry:U3(q,!0),measurementRequests:w,viewportLocalAppOffset:{x:0,y:0}}}}),$x(q.queue))};
G2T=function(q){var Z=U3(q,!1);if(!q.inIframe||!XN2(q.global.parent)||q.global.parent===q.global)return Z;var w=new lM(q.global.parent,q.debugChannel);w.beaconFactory=q.beaconFactory;w=G2T(w);q=q.global.frameElement.getBoundingClientRect();return iCz(gxX(iCz(w,q),{x:Z.left-q.left,y:Z.top-q.top}),Z)};
moT=function(q){if(q.prerendering)return 3;var Z;return(Z={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[q.visibilityState||q.webkitVisibilityState||q.mozVisibilityState||""])!=null?Z:0};
AXN=function(q){return q.document.JSC$7224_onVisibilityChange.pipe(bb(function(Z){return Z==="visible"}),Fd(),eh(q.queue))};
fBO=function(q,Z,w){var r;return Z.pipe(Fd(),hu(function(Y){return w.pipe(bb(function(){if(!r){r=!0;try{Y.next()}finally{r=!1}}return!0}))}),DJ(!1),eh(q.queue))};
Do1=function(q){return Yq(I4(bb(function(Z){return Z>=1?!0:Z<=0?!1:Z>=q})),mb8(),bb(function(Z){return Math.round(Z)}))};
yX8=function(q,Z,w,r,Y){var C=h2I;if(C.length>1)for(var d=0;d<C.length-1;d++)if(C[d]<C[d+1])throw Error();d=Y.pipe(DJ(void 0),hu(function(){return w.pipe(Dbj())}),Fd(),eh(q));
Y=Y.pipe(DJ(void 0),hu(function(){return w.pipe(cXT())}),Fd(),eh(q));
return{totalMeasurementTime:r.pipe(DJ(void 0),hu(function(){return Z.pipe(bb(function(O){return{timestamp:O.timestamp,value:!0}}),mb8())}),Fd(),eh(q)),
totalUnviewedTime:r.pipe(DJ(void 0),hu(function(){return Z.pipe(bb(function(O){return{timestamp:O.timestamp,value:O.value===0}}),mb8())}),Fd(),eh(q)),
maxTimeOnScreen:r.pipe(DJ(void 0),hu(function(){return Z.pipe(fAX(MGI,C))}),Fd(_.iN),eh(q)),
timeOnScreen:r.pipe(DJ(void 0),hu(function(){return Z.pipe(fAX(Do1,C),bb(function(O){return O.map(function(H,L){return L>0?H-O[L-1]:H})}))}),Fd(_.iN),eh(q)),
maxConsecutiveViewTime:Y,consecutiveViewTime:d.pipe(Fd(c3),eh(q))}};
g6O=function(q){var Z=!0;Z=Z===void 0?!1:Z;return Yq(hu(function(w){return i7T(q.document,w,Z)}),eh(q.queue))};
qq6=function(q,Z,w){var r=w.pipe(bb(function(Y){return{value:Y,timestamp:q.timeProvider.now()}}),Fd(c3));
return Z instanceof $q?Z.pipe(Fd(),hu(function(Y){return Y?Nu(new P3({value:!1,timestamp:q.timeProvider.now()}),q.queue):r})):Z.value===!1?r:new P3(!1)};
Zsz=function(q,Z,w,r,Y,C,d){var O=Tc2;Z=Z instanceof $q?Z.pipe(DJ(!1),Fd()):Z;var H=!q.isMobile();w=qq6(q,w,r);q=d.measurableCreative.pipe(G1I(q.queue));return Object.assign({},O,{geometryIsOccluded:w,wasLargeAdAtRender:Y,allowLargeAdThreshold:H,mayUseViewportShareExposure:Z,hasMeasurementStarted:q,useIntersectionObserverV2:C})};
rfN=function(q,Z,w,r,Y,C){var d=1;C=C===void 0?!0:C;d=d===void 0?.01:d;var O=O===void 0?q.timeProvider.intervalObservable(100).pipe(eh(q.queue)):O;return q.performanceMonitor.timeExecution(916,function(){return wF6(q,Z.pipe($x(q.queue)),w.pipe($x(q.queue)),r,Y,C,d,O)})()};
wF6=function(q,Z,w,r,Y,C,d,O){var H=AXN(q).pipe(bb(function(S){return!S})),L=new Yqj(q,[new $R2(q,h2I),
new eeT(q,O)]);O=TX8(COj,POX);return J16(q,Z,function(S,v){var R=Nu(new P3(v.element),S.queue).pipe(g6O(S),eh(S.queue)),B={loadedElement:R,shouldMeasure:R.pipe(cq(!0)),measurableCreative:R.pipe(bb(function(eO){var g=g===void 0?Symbol():g;return Object.freeze({symbol:g,element:Nu(new P3(eO),S.queue)})})),
creativeSearchResult:Nu(new P3("mue"),S.queue)},n=new P3(!1),x=new P3(!1),K=new P3(17),k=new P3(!1),G=new P3(!1),rz=Nu(Gx,S.queue);n=L.buildGeometrySource(B,{inApp:n,useV2:!1,requestSource:Nu(K,S.queue)}).geometrySource;B=Zsz(S,k,x,H,G,rz,B);x=xoI(S.queue,S.timeProvider,n,B);B=x.geometrySignals;k=x.shouldResetViewabilitySignals;x=yX8(S.queue,B.timestampedExposure,B.visible,x.shouldResetExposureSignals,k);k=IBj(S.queue,S.timeProvider,k,B.measurementRequests,B.visible);G=w.pipe(T$(function(eO){return eO===
v.element.ref}),bb(function(){return"ur"}));
rz=q36(S.timeProvider,Y).pipe(cq("t"));G=WPT(S,xq(G,rz));rz=fBO(S,B.measurementRequests,G.pipe(T$(function(eO){return eO!==null})));
n=G.pipe(T$(function(eO){return eO!==null}),bb(function(){return moT(S.global.document)===1}));
var f=dRj(S.document);return Object.assign({},{beaconFactory:new P3(S.beaconFactory),context:new P3(S),inferredPingId:new P3("lidar2"),timeOnScreenPingId:new P3("lidartos"),binaryContext:new P3(17),binaryVersion:new P3(r),requestSource:K,contextValidationErrors:new P3(S.validate()?null:new tj),contextVisibilityKnown:new P3(f),payloadMapper:new P3(Ei6),endOfSessionReason:G,timeOnScreenReason:G,requestMeasurementOnEndOfSession:rz,hasImpressionFired:V92,crossDomainIframeState:new P3(S.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Gx,inFetchLaterBeaconExperiment:Gx,isTurtlex:Gx,turtlexReportEventData:new P3(""),reportFencedFrameEvent:v3,isViewableAttributionEnabled:Gx,inViewableAttributionExperiment:new P3(0),fetchBeaconFactory:v3,supportsPendingBeacon:Gx,supportsFetchLater:Gx,emit:new P3(KtN),beginToRenderEvent:new P3(Symbol()),activeViewUnmeasurableEvent:new P3(Symbol()),activeViewViewableEvent:new P3(Symbol()),creativeFound:V92,immediateUrlPrefixes:new P3(v.immediateUrls),timeOnScreenUrlPrefixes:new P3(v.timeOnScreenUrls),
cpmavUrls:v3,viewableRelayUrls:v3,measurementDeferralState:new P3(2),urlSerializer:new P3(NX9),viewUrlSerializer:new P3(Os2),isCreativeLoaded:R.pipe(G1I(S.queue)),pageVisible:H.pipe(bb(function(eO){return!eO})),
eosPageVisible:n,timestampedExposureHistory:B.timestampedExposure.pipe(f_(function(eO,g){eO.push(g);return eO},[]))},B,{viewable:Fg(S,k),
maxTimeOnScreen:Fg(S,x.maxTimeOnScreen),timeOnScreen:Fg(S,x.timeOnScreen),maxConsecutiveViewTime:Fg(S,x.maxConsecutiveViewTime),consecutiveViewTime:x.consecutiveViewTime.pipe(bb(function(eO){return new Mu(S.timeProvider,eO)})),
totalMeasurementTime:Fg(S,x.totalMeasurementTime),totalUnviewedTime:Fg(S,x.totalUnviewedTime),userAgentClientHints:xuj(S),clientOrderPingCounter:new P3(new BXX)})},xbj(q,d),UbI(C?k12(O,Hs9):k12(O,W6X),oTj))};
ueT=function(q,Z){return(q=(new RegExp("[^#]*[?&]"+Z+"=([^&#]*)")).exec(q))?q[1]:null};
L68=function(q){var Z=_.Ta.apply(1,arguments).filter(Boolean).join("&");if(!Z)return q;var w=q.match(/[?&]adurl=/);return w?q.slice(0,w.index+1)+Z+"&"+q.slice(w.index+1):q+(q.indexOf("?")<0?"?":"&")+Z};
pC=function(q,Z){return Z?"&"+q+"="+encodeURIComponent(Z):""};
Sq8=function(){try{var q,Z;return!!((q=window)==null?0:(Z=q.top)==null?0:Z.location.href)&&!1}catch(w){return!0}};
_.Xg=function(q){q&&typeof q.dispose=="function"&&q.dispose()};
_.vT6=function(q){for(var Z=0,w=arguments.length;Z<w;++Z){var r=arguments[Z];_.pX(r)?_.vT6.apply(null,r):_.Xg(r)}};
t99=function(){var q=jz6();q=q===void 0?"bevasrsg":q;return new Promise(function(Z){var w=window===window.top?window:Sq8()?window:window.top,r=w[q],Y;((Y=r)==null?0:Y.bevasrs)?Z(new me(r.bevasrs)):(r||(r={},r=(r.nqfbel=[],r),w[q]=r),r.nqfbel.push(function(C){Z(new me(C))}))})};
Re9=function(q){var Z={c:q.pP,e:q.bR1,mc:q.zOt,me:q.kZw};q.aO&&(Z.co={c:q.aO.vuH,a:q.aO.vow,s:q.aO.brY});return Z};
bsX=function(q){var Z,w,r={pP:q.c,bR1:q.e,zOt:(Z=q.mc)!=null?Z:!1,kZw:(w=q.me)!=null?w:!1};q.co&&(r.aO={vuH:q.co.c,vow:q.co.a,brY:q.co.s});return r};
Jfe=function(q){return function(){var Z;return _.V(function(w){if(w.nextAddress==1)return _.W(w,q(),2);Z=w.yieldResult;return w.return({f:function(){return Z.ci2()},
c:function(r){return Z.uXN(r)},
m:function(r){return Z.iQ(bsX(r))},
mws:function(r){return Z.gZ(bsX(r))}})})}};
zeN=function(q,Z){var w=jz6();w=w===void 0?"bevasrsg":w;Z={s:function(C){var d;return q.snapshot(Object.assign({},C.c&&{pP:C.c},C.s&&{ei7:C.s},{vZE:(d=C.p)!=null?d:!0}))},
e:function(C){var d;return void((d=q.gE1)==null?void 0:d.call(q,C))},
c:function(C,d){return q.oJ2(C,d)},
p:q.xN7,l:function(){return q.hW0()},
wpc:Z?Jfe(Z):void 0};var r=window===window.top?window:Sq8()?window:window.top,Y=r[w];if(Y){Y.bevasrs=Z;if(Y.nqfbel!==void 0)for(w=_.P(Y.nqfbel),r=w.next();!r.done;r=w.next())r=r.value,r(Z);Y.nqfbel=void 0}else Y={},Y=(Y.bevasrs=Z,Y.nqfbel=void 0,Y),r[w]=Y};
aV8=function(q){var Z=Z===void 0?49:Z;var w=[];_.Aj(q,BAO,6,_.fC()).forEach(function(r){_.DM(r,2)<=Z&&w.push(_.DM(r,1))});
return w};
nT2=function(q){var Z=Z===void 0?49:Z;var w=[];_.Aj(q,BAO,6,_.fC()).forEach(function(r){_.DM(r,2)>Z&&w.push(_.DM(r,1))});
return w};
QzT=function(q){q.then(function(){},function(){})};
_.yg=function(q){return{fieldType:1,fieldName:q}};
iM=function(q){return{fieldType:2,fieldName:q}};
_.qb=function(q){return{fieldType:3,fieldName:q}};
ETj=function(){function q(){Y[0]=1732584193;Y[1]=4023233417;Y[2]=2562383102;Y[3]=271733878;Y[4]=3285377520;S=L=0}
function Z(v){for(var R=d,B=0;B<64;B+=4)R[B/4]=v[B]<<24|v[B+1]<<16|v[B+2]<<8|v[B+3];for(B=16;B<80;B++)v=R[B-3]^R[B-8]^R[B-14]^R[B-16],R[B]=(v<<1|v>>>31)&4294967295;v=Y[0];var n=Y[1],x=Y[2],K=Y[3],k=Y[4];for(B=0;B<80;B++){if(B<40)if(B<20){var G=K^n&(x^K);var rz=1518500249}else G=n^x^K,rz=1859775393;else B<60?(G=n&x|K&(n|x),rz=2400959708):(G=n^x^K,rz=3395469782);G=((v<<5|v>>>27)&4294967295)+G+k+rz+R[B]&4294967295;k=K;K=x;x=(n<<30|n>>>2)&4294967295;n=v;v=G}Y[0]=Y[0]+v&4294967295;Y[1]=Y[1]+n&4294967295;
Y[2]=Y[2]+x&4294967295;Y[3]=Y[3]+K&4294967295;Y[4]=Y[4]+k&4294967295}
function w(v,R){if(typeof v==="string"){v=unescape(encodeURIComponent(v));for(var B=[],n=0,x=v.length;n<x;++n)B.push(v.charCodeAt(n));v=B}R||(R=v.length);B=0;if(L==0)for(;B+64<R;)Z(v.slice(B,B+64)),B+=64,S+=64;for(;B<R;)if(C[L++]=v[B++],S++,L==64)for(L=0,Z(C);B+64<R;)Z(v.slice(B,B+64)),B+=64,S+=64}
function r(){var v=[],R=S*8;L<56?w(O,56-L):w(O,64-(L-56));for(var B=63;B>=56;B--)C[B]=R&255,R>>>=8;Z(C);for(B=R=0;B<5;B++)for(var n=24;n>=0;n-=8)v[R++]=Y[B]>>n&255;return v}
for(var Y=[],C=[],d=[],O=[128],H=1;H<64;++H)O[H]=0;var L,S;q();return{reset:q,update:w,digest:r,digestString:function(){for(var v=r(),R="",B=0;B<v.length;B++)R+="0123456789ABCDEF".charAt(Math.floor(v[B]/16))+"0123456789ABCDEF".charAt(v[B]%16);return R}}};
szI=function(q,Z){Z=Z===void 0?xRI:Z;if(!TAT){var w;q=(w=q.navigator)==null?void 0:w.userAgentData;if(!q||typeof q.getHighEntropyValues!=="function"||q.brands&&typeof q.brands.map!=="function")return Promise.reject(Error("ya"));UR6((q.brands||[]).map(function(Y){var C=new kj8;C=_.uM(C,1,Y.brand);return _.uM(C,2,Y.version)}));
typeof q.mobile==="boolean"&&_.ZA(K69,2,q.mobile);TAT=q.getHighEntropyValues(Z)}var r=new Set(Z);return TAT.then(function(Y){var C=K69.clone();r.has("platform")&&_.uM(C,3,Y.platform);r.has("platformVersion")&&_.uM(C,4,Y.platformVersion);r.has("architecture")&&_.uM(C,5,Y.architecture);r.has("model")&&_.uM(C,6,Y.model);r.has("uaFullVersion")&&_.uM(C,7,Y.uaFullVersion);return C.serialize()}).catch(function(){return K69.serialize()})};
wX=function(q,Z,w,r){this.initialValue_=q;this.maxValue_=Z;this.currBaseValue_=this.currValue_=q;this.randomFactor_=w||0;this.backoffFactor_=r||2};
rX=function(q){this.src=q;this.listeners={};this.typeCount_=0};
F69=function(){for(var q;q=IV2.remove();){try{q.fn.call(q.scope)}catch(Z){P6(Z)}cfT.put(q)}M9e=!1};
_.NA1=function(q){switch(q){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}};
lV2=function(q){switch(q){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""}};
_.GjT=function(){};
is6=function(q){return{nN2:new pF2(q),errorCount:new XFX(q),eventCount:new mRz(q),mZU:new AfI(q),h1l:new fV8(q),hAP:new DR6(q),r3t:new heT(q),xH9:new yfX(q)}};
Cp8=function(q,Z,w,r){q=gTT(qkz(ZYT(new _.Yi(1828,"0"),q),new wg8));Z.length&&rm8(q,YkI(new $4j,Z));r!==void 0&&(q.destinationUrl=r);var Y=new eR6(1828,"","",!1,"",q.build());_.$i(Y,q);var C=new eC({flush:function(d){try{Y.flush(d)}catch(O){w(O)}}});
C.addOnDisposeCallback(function(){setTimeout(function(){try{C.snapshotAndFlush()}finally{Y.dispose()}})});
C.invocationLimit=1E5;C.flushInterval=3E4;C.JSC$7660_flushTimer.setInterval(3E4);return C};
Ch=function(){var q,Z,w;return(w=(q=globalThis.performance)==null?void 0:(Z=q.now)==null?void 0:Z.call(q))!=null?w:Date.now()};
VTT=function(q,Z,w){if(q.disable)return new PpT;Z=Z?aV8(Z):[];if(w)return w.nwx(Z),w.share();q={xz:q.xz,rBx:q.giz,qqc:q.v5v,destinationUrl:q.destinationUrl,e70:q.e70,j2c:q.j2c};w=Z;w=w===void 0?[]:w;return new d49(q,w)};
_.OYj=function(q){if(!q)return null;q=_.PG(q,4);return q===null||q===void 0?null:_.o9(q)};
orz=function(q,Z){return Z?HYN(Z):q?Wh6(q):Promise.resolve()};
HYN=function(q){return new Promise(function(Z,w){var r=_.dX("SCRIPT"),Y=_.OYj(q);_.AI(r,Y);r.onload=function(){_.Vb(r);Z()};
r.onerror=function(){_.Vb(r);w(Error("Ja"))};
(OJ("HEAD")[0]||document.documentElement).appendChild(r)})};
Wh6=function(q){return new Promise(function(Z){var w=_.dX("SCRIPT");if(q){var r=_.PG(q,6);r=r===null||r===void 0?null:_.pA(r)}else r=null;_.X5(w,r);(OJ("HEAD")[0]||document.documentElement).appendChild(w);_.Vb(w);Z()})};
HG=function(q,Z,w){var r,Y=new Promise(function(C){r=setTimeout(C,Z)});
return Promise.race([q.finally(function(){return void clearTimeout(r)}),
Y.then(w)])};
uyj=function(q,Z){try{return globalThis.sessionStorage.setItem(q,Z),!0}catch(w){return!1}};
LhX=function(q,Z,w,r){Z=Z===void 0?0:Z;w=w===void 0?q.length:w;var Y=0;for(r&&(Y=LhX(r));Z<w;Z++)r=typeof q==="string"?q.charCodeAt(Z):q[Z],Y=SkX(31,Y)+r|0;return Y};
vrI=function(q,Z){return[LhX(q,0,q.length>>1,Z),LhX(q,q.length>>1)]};
jR6=function(q){var Z=_.P(vrI(q,WG));q=Z.next().value;Z=Z.next().value;return q.toString(16)+Z.toString(16)};
tT2=function(q,Z){var w=vrI(Z);q=new Uint32Array(q.buffer);Z=q[0];var r=_.P(w);w=r.next().value;r=r.next().value;for(var Y=1;Y<q.length;Y+=2){for(var C=Z,d=Y,O=w,H=r,L=0;L<22;L++)d=d>>>8|d<<24,d+=C|0,d^=O+38293,C=C<<3|C>>>29,C^=d,H=H>>>8|H<<24,H+=O|0,H^=L+38293,O=O<<3|O>>>29,O^=H;C=[C,d];q[Y]^=C[0];Y+1<q.length&&(q[Y+1]^=C[1])}};
RRz=function(q,Z,w,r,Y){var C=(4-(WG.length+w.length)%4)%4,d=new Uint8Array(4+C+WG.length+4+w.length),O=new DataView(d.buffer),H=0;O.setUint32(H,Math.random()*4294967295);H=H+4+C;d.set(WG,H);H+=WG.length;O.setUint32(H,Y);d.set(w,H+4);tT2(d,r);return q.insert(Z,function(L){return void globalThis.sessionStorage.removeItem(L)})?uyj(Z,_.Rq(d))?"s":"t":"i"};
bYz=function(q,Z){var w=globalThis.sessionStorage.getItem(q);if(!w)return["m"];try{var r=_.q7(w);tT2(r,Z)}catch(Y){return globalThis.sessionStorage.removeItem(q),["c"]}for(Z=4;Z<7&&r[Z]===0;)Z++;for(w=0;w<WG.length;w++)if(r[Z++]!==WG[w])return globalThis.sessionStorage.removeItem(q),["d"];w=(new DataView(r.buffer)).getUint32(Z);return Math.floor(Date.now()/1E3)>=w?(globalThis.sessionStorage.removeItem(q),["e"]):["a",new Uint8Array(r.buffer,Z+4)]};
JmN=function(q){return globalThis.TextEncoder?(new TextEncoder).encode(q):_.o1(q)};
zR1=function(q){var Z=q,w;return function(){if(Z){var r=Z;Z=void 0;w=r.apply(this,arguments)}return w}};
aLI=function(q){return Up(function(Z){if(Z instanceof q)return!0;var w,r,Y=Z==null?void 0:(w=Z.ownerDocument)==null?void 0:(r=w.defaultView)==null?void 0:r[q.name];return Bf1(Y)&&Z instanceof Y})};
_.SC=function(q,Z,w){_.u6.call(this);this.JSC$7875_listener_=q;this.JSC$7875_interval_=Z||0;this.handler_=w;this.callback_=(0,_.Lh)(this.JSC$7877_doAction_,this)};
_.vG=function(q){q=nrT(q);return _.o9(q)};
nrT=function(q){return q===null?"null":q===void 0?"undefined":q};
Er2=function(q){if(q&&q.focus)if(q!==document.activeElement)q.focus();else return QR8(function(){return _.V(function(Z){document.activeElement&&document.activeElement.blur();return Z.return(QR8(function(){q.focus()}))})})};
_.x4j=function(q){var Z=Z===void 0?5:Z;setTimeout(function(){var w;return _.V(function(r){r.nextAddress==1&&(w=document.activeElement);if(r.nextAddress!=5)return(document.activeElement===w||document.activeElement===document.body)&&Z>=0&&q?_.W(r,Er2(q),5):r.jumpTo(0);if(document.activeElement===q)return r.return();q=q.parentElement;--Z;return r.jumpTo(2)})},15)};
QR8=function(q){return new Promise(function(Z){requestAnimationFrame(function(){Z(q())})})};
U4N=function(q){if(_.jC)q(_.jC);else{var Z;((Z=TfT)!=null?Z:TfT=[]).push(q)}};
R1=function(){!_.jC&&_.t1&&_.kOj(_.t1());return _.jC};
_.kOj=function(q){_.jC=q;var Z;(Z=TfT)==null||Z.forEach(U4N);TfT=void 0};
_.b6=function(q){_.jC&&_.jC.beforeLoadModuleCode(q)};
_.J1=function(){_.jC&&_.jC.JSC$8811_setLoaded()};
z1=function(q){return(0,_.tc)(q)?Number(q):String(q)};
Kh1=function(q){this.action=q;this.wfv=!1};
sRO=function(q,Z){Kh1.call(this,"set-drive-options");this.appId=q;this.appOrigin=Z};
ILj=function(q){Kh1.call(this,"visibility");this.visible=q};
cme=function(q,Z,w){BG.call(this,q,Z,w)};
MTN=function(q){a1.call(this,q)};
Fhj=function(q){q=q&&q.getWindow()||window;return q.gadgets&&q.gadgets.rpc};
lL9=function(q,Z){var w=Z&&Z.getWindow()||window;if(Fhj(Z))q();else if(Nf2)Nf2.push(q);else var r=Nf2=[q],Y=w.setInterval(function(){if(Fhj(Z)){w.clearInterval(Y);for(var C=0;C<r.length;C++)r[C]();Nf2=null}},100)};
pgT=function(q,Z){var w=new nh(q);_.$i(Z,w);var r={passive:!1};Z.listen(w,"mousewheel",function(Y){return void GOe(q,Y)},r).listen(q,"scroll",function(Y){return void GOe(q,Y)},r)};
GOe=function(q,Z){var w;a:{for(w=Z.target;w;){if(w.nodeType==1){var r=_.Qb(w,"overflowY");if(r=="auto"||r=="scroll")break a}w=w.parentNode}w=null}if(!w||!_.EJ(q,w)||w.scrollHeight==w.clientHeight||Z.deltaY>0&&Math.abs(w.scrollTop-(w.scrollHeight-w.clientHeight))<=1||Z.deltaY<0&&w.scrollTop==0)Z.preventDefault(),Z.stopPropagation()};
I1=function(q,Z,w,r,Y,C,d,O,H){O=O===void 0?!1:O;H=H===void 0?!1:H;BG.call(this,void 0,void 0,void 0);BG.call(this,C?C+" picker modal-dialog":"picker modal-dialog",!0,w);_.xi(q,"protocol");this.iframeManager_=new Xg9;this.targetId_=T1();this.rpcToken_=T1();q=_.UJ(q);_.ki(q,"hostId");w=_.ki(q,"parent");this.useGapi_=!H&&!0||(w==null?void 0:w.includes("onepick.corp.google.com"));O&&_.Kh(q,"fv2","true");this.setUrl(q.toString());this.preferredDialogWidth_=r;this.preferredDialogHeight_=Y;r!==void 0||
Y!==void 0?r=!0:(r=_.ki(_.UJ(q.toString()),"hostId"),m46||(m46=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),r=!m46.has(r));this.autoSizeDialog_=r;this.JSC$8065_gadgetsDomHelper_=d||this.JSC$8016_dom_;Z&&(d=this.JSC$8065_gadgetsDomHelper_,Z=_.ki(_.UJ(this.JSC$8067_url_),"grugl")=="true"?AmX:fL8,Fhj(d)||(d=d||o4(document),r=d.createElement("SCRIPT"),_.AI(r,Z),r.type="text/javascript",d.JSC$7242_document_.body.appendChild(r)));
q=q.toString();Z=null;d=q.indexOf("/picker?");d>-1?Z=q.substring(0,d+8-1):O2(q,"/picker")&&(Z=q);Z&&this.setRelayUrl(Z+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(q=this.buttons_,q.JSC$8050_element_=this.buttonEl_,q.render()):_.fA(this.buttonEl_,D42),_.sJ(this.buttonEl_,!!this.buttons_))};
_.grT=function(q){var Z=Z===void 0?hRj:Z;var w=_.yj(q),r=function(C){C=_.P(C);C.next();C=cG(C);return Z(w,C)},Y=function(C){var d=_.P(C);
C=d.next().value;d=cG(d);return q.apply(C,d)};
return function(){var C=_.Ta.apply(0,arguments),d=this||_.$1,O=ymj.get(d);O||(O={},ymj.set(d,O));return _.iY6(O,[this].concat(_.Ju(C)),Y,r)}};
Mb=function(q){var Z={};q=q.replace(/\r/g,"").split("\n");for(var w=0;w<q.length;w++){var r=q[w],Y=r.indexOf(":");Y<0||(Z[r.substring(0,Y)]=r.substring(Y+2,r.length))}return Z};
qGO=function(q,Z,w){w=w===void 0?function(){}:w;
Z=_.P(Z);for(var r=Z.next();!r.done;r=Z.next()){var Y=_.P(r.value);r=Y.next().value;Y=Y.next().value;if(r instanceof Array&&r.includes(q)||r===q)return Y()}return w()};
_.Fs=function(q,Z,w){w=w===void 0?function(){}:w;
return q?Z():w()};
_.w5I=function(q){var Z;return((Z=ZBj.documentOverride)!=null?Z:q).__wizdispatcher};
l6=function(q){var Z=_.Nb;_.Nb=q;return Z};
YG1=function(q,Z){var w;if((w=q)==null?0:w.isDisposed)throw Error("nb`"+String(q.debugName));for(;q!==void 0;){w=q;if(w.retrieve)return w.retrieve(Z,{optional:!0});q=q.parent}return r9I};
G1=function(q){return{"\u0275prov":{providedIn:"root",token:Symbol(q),factory:void 0,value:void 0}}};
_.$Nj=function(q){var Z=l6(q);q={};return q[Symbol.dispose]=function(){l6(Z)},q};
e$N=function(q,Z){q.disposables||(q.disposables=[]);q.disposables.push(Z)};
ph=function(q){var Z=_.Nb;Z&&!Z.isDisposed&&(e$N(Z,function(){return void ChT(q)}),q.parent=Z)};
Phj=function(q){if(q.disposables){for(var Z=_.P(q.disposables),w=Z.next();!w.done;w=Z.next())w=w.value,w();q.disposables.length=0}};
ChT=function(q){if(!q.isDisposed){q.isDisposed=!0;var Z;(Z=q[Symbol.dispose])==null||Z.call(q);delete q.parent;Phj(q)}};
Ll1=function(q){var Z={retrieve:function(w){switch(w.\u0275prov.token){case dN9.\u0275prov.token:var r=q.rootElement;break;case VJj.\u0275prov.token:r=q.modelRootElement;break;case OB8.\u0275prov.token:r=q.appContext;break;case HB2.\u0275prov.token:r=q.rendererData;break;case WlX.\u0275prov.token:r=q.injectingConstructor;break;case oY8.\u0275prov.token:r=q.dispatcher}if(r)w=r;else a:{for(r=Z.parent;r;){var Y=r;if(Y.retrieve){w=Y.retrieve(w);break a}r=r.parent}r=w.\u0275prov.token;Y=uw8[r];Y!==void 0?
w=Y:(Y=w.\u0275prov.providedIn,w.\u0275prov.factory?(w=w.\u0275prov.factory(),r&&Y==="root"&&(uw8[r]=w)):w=r9I)}return w}};
ph(Z);return Z};
vYj=function(q){var Z="";var w=_.$1._F_jsUrl;if(typeof document!=="undefined"&&document&&document.getElementById&&(q=document.getElementById(q))){var r=q.tagName.toUpperCase();if(r=="SCRIPT"||r=="LINK")Z=q.src?q.src:q.getAttribute("href")}if(w&&Z){if(w!=Z)throw Error("vb`"+w+"`"+Z);Z=w}else Z=w||Z;if(!SGT(Z))throw Error("wb");return Z};
R$T=function(){if(!j$N){j$N=!0;try{var q=vYj(_.$1._F_jsUrl?"":"base-js")}catch(r){return}var Z=tJI(Xs(q)),w=Object.keys(Z);w.length!==0&&U4N(function(r){for(var Y=_.P(w),C=Y.next();!C.done;C=Y.next()){C=C.value;for(var d=_.P(Object.keys(Z[C])),O=d.next();!O.done;O=d.next())r.addExtraEdge(C,O.value)}})}};
bBN=function(q,Z,w){var r;return q&&Z?q+"__"+Z:(r=q!=null?q:Z)!=null?r:w};
z$I=function(){var q=Object.assign({},J9e);Object.getOwnPropertyNames(J9e).forEach(function(Z){mt[Z]!==void 0&&(q[Z]=mt[Z])});
return q};
BIj=function(q,Z){if(mt.enablePerformanceTiming){var w,r;(r=(w=performance).mark)==null||r.call(w,q+"Start__"+Z)}};
a$j=function(q,Z){if(mt.enablePerformanceTiming){var w,r;(r=(w=performance).measure)==null||r.call(w,q+"__"+Z,q+"Start__"+Z)}};
Q$1=function(q,Z){var w=Object.create(nYT);w.debugName=Z;!_.Nb||ph(w);Z=l6(w);try{q(w)}finally{l6(Z)}return function(){return void ChT(w)}};
TI9=function(q){return EYT(q)&&xNX in q};
UN9=function(q,Z){return Object.is(q,Z)};
fh=function(q){var Z=A1;A1=q;return Z};
qUN=function(q){if(DA)throw Error("da");if(A1!==null){var Z=A1.nextProducerIndex++;y9X(A1);Z<A1.producerNode.length&&A1.producerNode[Z]!==q&&h1(A1)&&iBI(A1.producerNode[Z],A1.producerIndexOfThis[Z]);A1.producerNode[Z]!==q&&(A1.producerNode[Z]=q,A1.producerIndexOfThis[Z]=h1(A1)?gY6(q,A1,Z):0);A1.producerLastReadVersion[Z]=q.version}};
rYz=function(q){if(!h1(q)||q.dirty)if(q.dirty||q.lastCleanEpoch!==Zb9)(q.producerMustRecompute(q)||wO6(q))&&q.producerRecomputeValue(q),q.dirty=!1,q.lastCleanEpoch=Zb9};
YUj=function(q){if(q.liveConsumerNode!==void 0){var Z=DA;DA=!0;try{for(var w=_.P(q.liveConsumerNode),r=w.next();!r.done;r=w.next()){var Y=r.value;Y.dirty||(q=void 0,Y.dirty=!0,YUj(Y),(q=Y.consumerMarkedDirty)==null||q.call(Y,Y))}}finally{DA=Z}}};
$U8=function(){var q;return((q=A1)==null?void 0:q.consumerAllowSignalWrites)!==!1};
e7e=function(q){q&&(q.nextProducerIndex=0);return fh(q)};
Cx8=function(q,Z){fh(Z);if(q&&q.producerNode!==void 0&&q.producerIndexOfThis!==void 0&&q.producerLastReadVersion!==void 0){if(h1(q))for(Z=q.nextProducerIndex;Z<q.producerNode.length;Z++)iBI(q.producerNode[Z],q.producerIndexOfThis[Z]);for(;q.producerNode.length>q.nextProducerIndex;)q.producerNode.pop(),q.producerLastReadVersion.pop(),q.producerIndexOfThis.pop()}};
wO6=function(q){y9X(q);for(var Z=0;Z<q.producerNode.length;Z++){var w=q.producerNode[Z],r=q.producerLastReadVersion[Z];if(r!==w.version)return!0;rYz(w);if(r!==w.version)return!0}return!1};
gY6=function(q,Z,w){PxI(q);if(q.liveConsumerNode.length===0&&q.producerNode!==void 0)for(var r=0;r<q.producerNode.length;r++)q.producerIndexOfThis[r]=gY6(q.producerNode[r],q,r);q.liveConsumerIndexOfThis.push(w);return q.liveConsumerNode.push(Z)-1};
iBI=function(q,Z){PxI(q);if(q.liveConsumerNode.length===1&&q.producerNode!==void 0)for(var w=0;w<q.producerNode.length;w++)iBI(q.producerNode[w],q.producerIndexOfThis[w]);w=q.liveConsumerNode.length-1;q.liveConsumerNode[Z]=q.liveConsumerNode[w];q.liveConsumerIndexOfThis[Z]=q.liveConsumerIndexOfThis[w];q.liveConsumerNode.length--;q.liveConsumerIndexOfThis.length--;Z<q.liveConsumerNode.length&&(w=q.liveConsumerIndexOfThis[Z],q=q.liveConsumerNode[Z],y9X(q),q.producerIndexOfThis[w]=Z)};
h1=function(q){var Z,w;return q.consumerIsAlwaysLive||((w=q==null?void 0:(Z=q.liveConsumerNode)==null?void 0:Z.length)!=null?w:0)>0};
y9X=function(q){q.producerNode!=null||(q.producerNode=[]);q.producerIndexOfThis!=null||(q.producerIndexOfThis=[]);q.producerLastReadVersion!=null||(q.producerLastReadVersion=[])};
PxI=function(q){q.liveConsumerNode!=null||(q.liveConsumerNode=[]);q.liveConsumerIndexOfThis!=null||(q.liveConsumerIndexOfThis=[])};
VX1=function(q){var Z=Object.create(dUz);Z.computation=q;q=function(){rYz(Z);qUN(Z);if(Z.value===yb)throw Z.error;return Z.value};
q[i6]=Z;return q};
HbI=function(q){var Z=Object.create(ObT);Z.value=q;q=function(){qUN(Z);return Z.value};
q[i6]=Z;return q};
uue=function(q){q=HbI(q);var Z=q[i6];return[q,function(w){return WDT(Z,w)},
function(w){$U8()||o79(Z);WDT(Z,w(Z.value))}]};
WDT=function(q,Z){$U8()||o79(q);if(!q.equal(q.value,Z)){q.value=Z;q.version++;Zb9++;YUj(q);var w;(w=LD6)==null||w(q)}};
gX=function(q){var Z=fh(null);try{return q()}finally{fh(Z)}};
_.qo=function(q,Z,w){w=w===void 0?"":w;q=_.P(uue(q));var r=q.next().value,Y=q.next().value,C=q.next().value,d=r[i6];d.debugName=bBN(Z==null?void 0:Z.debugName,w,"[signal]");(Z==null?void 0:Z.equals)!=null&&(d.equal=Z.equals);return[r,function(O){SUT(function(){return void Y(O)},d)},
function(O){SUT(function(){return void C(O)},d)}]};
SUT=function(q,Z){BIj("signalSet",Z.debugName);try{q()}finally{a$j("signalSet",Z.debugName)}};
jwj=function(q,Z){var w=_.P(_.qo(q,void 0,"cPpJzc"));q=w.next().value;w=w.next().value;q[v7O]=w;q[ZB]=Z;return q};
tXO=function(q){return!!q&&typeof q==="object"&&Object.getPrototypeOf(q)===Object.prototype};
R7O=function(q){return typeof q==="function"&&v7O in q&&typeof q[v7O]==="function"};
bb6=function(q,Z){Object.defineProperty(q,ZB,{get:function(){return Z}})};
rc=function(q,Z){if(wc(q)){var w=q.map(function(C){return rc(C,Z)});
bb6(w,Z);return w}if(tXO(q)){w={};q=_.P(Object.entries(q));for(var r=q.next();!r.done;r=q.next()){var Y=_.P(r.value);r=Y.next().value;Y=Y.next().value;w[r]=rc(Y,Z)}bb6(w,Z);return w}return jwj(q,Z)};
JYe=function(q){if(wc(q))return q.map(function(Y){return JYe(Y)});
if(tXO(q)){var Z={};q=_.P(Object.entries(q));for(var w=q.next();!w.done;w=q.next()){var r=_.P(w.value);w=r.next().value;r=r.next().value;Z[w]=JYe(r)}return Z}return R7O(q)?q():q};
B5I=function(){var q={height:0,width:0};if(!tXO(q))throw Error("Hb");var Z=Symbol("Ib");return[rc(q,Z),function(w,r){if(w[ZB]===Z)if(typeof r==="function"){var Y=[].concat(_.Ju(JYe(w)));r=r(Y)||Y;z7O(w,[].concat(_.Ju(r)))}else z7O(w,r);else throw Error("Jb");}]};
z7O=function(q,Z){if(R7O(q))q[v7O](Z);else if(wc(q)&&wc(Z))Z=rc(Z,q[ZB]),q.length=0,q.push.apply(q,_.Ju(Z));else if((tXO(q)||wc(q))&&(wc(Z)||typeof Z==="object"&&Z!==null)){Z=_.P(Object.entries(Z));for(var w=Z.next();!w.done;w=Z.next()){var r=_.P(w.value);w=r.next().value;r=r.next().value;var Y=q,C=Y[w];Object.hasOwn(q,w)?z7O(C,r):Y[w]=rc(r,q[ZB])}}else throw Error("Kb");};
aU8=function(q){return Object.create(Object.assign({},Y6,q))};
Qwj=function(){var q;return(q=n7I)!=null?q:n7I=aU8({consumerAllowSignalWrites:!0})};
_.$6=function(q,Z,w){w=w===void 0?"":w;q=VX1(q);var r=q[i6];r.debugName=bBN(Z==null?void 0:Z.debugName,w,"[computed]");(Z==null?void 0:Z.equals)!=null&&(r.equal=Z.equals);return q};
eG=function(q){var Z=fh(E7T);try{q()}finally{fh(Z)}};
swj=function(q){if(!q.isDisposed){switch(q.effectType){case xUj:T5j.schedule(q);break;case UUe:kF2.schedule(q);break;default:_.F7(q.effectType)}q.hasRun||KDT()}};
cYj=function(q){IU2.push(q);return function(){var Z=IU2.indexOf(q);Z!==-1&&IU2.splice(Z,1)}};
KDT=function(){for(var q=_.P(MXI),Z=q.next();!Z.done;Z=q.next())Z.value.flush()};
N5T=function(q){for(var Z=_.P(q),w=Z.next();!w.done;w=Z.next()){var r=w.value;for(w=[r];r.parent!==void 0;)r=r.parent,FDe(r)&&q.has(r)&&w.push(r);for(;w.length>0;){r=_.Ep(w.pop());try{r.run()}finally{q.delete(r)}}}};
pOj=function(q){lUz--;if(q)GFT.length=0;else if(!(lUz>0))for(;GFT.length>0;){q=GFT.shift();if(!q)throw Error("Lb");try{q()}catch(Z){P6(Z)}}};
XOe=function(q){var Z=q.component;var w=q.debugInstance;q=q.fn;var r,Y=(r=Z.debugName)!=null?r:Z.name;C7.push({name:w?Y+" ("+w+")":Y,isReactive:Z.componentType!==PN});Z=q();C7.pop();return Z};
Ou=function(){return C7[C7.length-1]};
HN=function(){var q=C7[C7.length-1];return q?q.isReactive:!1};
WN=function(q,Z){Z=Z===void 0?{}:Z;var w=C7.length;Z.stack&&(C7=[].concat(_.Ju(Z.stack)));try{return q()}catch(C){q=C;mU2(q);if(q!==AYN){fUe=C7.slice();Z=[];for(var r=_.Nb;r;){var Y=void 0;Z.push((Y=r.debugName)!=null?Y:"[context]");Y=void 0;r=(Y=r.parent)!=null?Y:null}DU2=Z.reverse()}AYN=q;throw q;}finally{w=C7.length-w,w>0&&C7.splice(-w)}};
mU2=function(q){var Z=C7;if(Z.length!==0&&!q.componentStack){var w=Z.slice(-20).reverse().map(function(r){return r.name}).join(" > ");
w=q.message+"\n\nComponent stack: "+w;try{q.componentStack=Z.slice(),mt.enableComponentStacksInErrorMessages&&(q.stack&&(q.stack=q.stack.replace(q.message,w)),q.message=w)}catch(r){}}};
h71=function(q,Z,w){Z=Object.create(Z);Z.componentStack=C7.slice();Z.effectFn=q;w&&(Z.debugName=w);ph(Z);return Z};
oF=function(q,Z,w){w=w===void 0?3:w;var r,Y;var C=(Y=(r=fUe)==null?void 0:r.slice())!=null?Y:[];var d,O;r=(O=(d=DU2)==null?void 0:d.slice())!=null?O:[];Z={componentStack:C,contextTrace:r,errorSeverity:w,featureFlags:z$I(),tagName:Z};return[q,Z]};
_.uS=function(q,Z){q=h71(q,yYT,Z);Z=A1;if(FDe(Z)&&Z.effectType===UUe){var w;(w=mt.handleError)==null||w.call.apply(w,[mt].concat(_.Ju(oF(Error("tb")))))}swj(q)};
_.L7=function(q,Z){q=h71(q,ibO,Z);swj(q)};
_.SG=function(q){var Z=_.Nb;if(Z){var w=C7.slice();e$N(Z,function(){var r=fh(Qwj());try{WN(function(){return void q()},{stack:w})}finally{fh(r)}})}};
vN=function(q,Z){var w={};(Z===void 0||Z)&&ph(w);Z=l6(w);try{q(w)}finally{l6(Z)}return function(){return void ChT(w)}};
_.jG=function(q){return typeof q==="function"?q():(q==null?0:q[g7N])?q.get():q};
qAX=function(q){if(_.Nb)throw Error("rb");vN(q,!1)};
tX=function(q,Z){q=l6(q);try{return gX(Z)}finally{l6(q)}};
rl1=function(q,Z,w){if(Object.hasOwnProperty.call(ZyI,q)&&(q=ZyI[q],Object.hasOwnProperty.call(q,Z)&&(q=q[Z],q instanceof Array))){for(var r=null,Y=!1,C=0,d=q.length;C<d;++C){var O=q[C],H=O.contingentAttribute;if(!H)return O.contract;r===null&&(r={});H=Object.hasOwnProperty.call(r,H)?r[H]:r[H]=w(H);if(H===O.requiredValue)return O.contract;H==null&&(Y=!0)}if(Y)return null}Z=w0e[Z];return typeof Z==="number"?Z:null};
ePj=function(q,Z,w){var r=null;(q=YAT[q])&&(r=q[Z]);return typeof r!=="number"&&((q=YAT["*"])&&(r=q[Z]),typeof r!=="number")?!1:!0===$yI[r][String(w).toLowerCase()]};
P9O=function(q,Z){Z=rl1(q.toLowerCase(),Z,function(){var r;(r=mt.handleError)==null||r.call.apply(r,[mt].concat(_.Ju(oF(Error("Qb"),q.toLowerCase()))))});
if(Z===null)return null;var w;return(w=C9N[Z])!=null?w:null};
dyj=function(q,Z,w){if(w===null||w===void 0)return w;q=P9O(q,Z);return q===null?w:q(Z,w)};
Vxe=function(){};
RF=function(q,Z){for(;q.length>Z;)q.pop()};
Oy6=function(q){q=Array(q);RF(q,0);return q};
HyO=function(q,Z,w){if(w==null)q.removeAttribute(Z);else{var r;(r=Z.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":Z.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?q.setAttributeNS(r,Z,w):q.setAttribute(Z,w)}};
W36=function(q,Z,w){q[Z]=w};
u1z=function(q,Z,w){q=q.style;if(typeof w==="string")q.cssText=w;else{q.cssText="";for(var r in w)if(oaX.call(w,r)){Z=q;var Y=r,C=w[r];Y.indexOf("-")>=0?Z.setProperty(Y,C):Z[Y]=C}}};
L3N=function(q,Z,w){var r=typeof w;r==="object"||r==="function"?q[Z]=w:HyO(q,Z,w)};
SAT=function(){var q=new Vxe;q[bS.default]=L3N;q.style=u1z;return q};
va1=function(q,Z,w,r){(r[Z]||r[bS.default])(q,Z,w)};
txj=function(q,Z,w){Z=new j_O(Z,w);return q.__incrementalDOMData=Z};
JX=function(q,Z){if(q.__incrementalDOMData)return q.__incrementalDOMData;var w=q.nodeType===1?q.localName:q.nodeName,r=q.nodeType===1?q.getAttribute("key"):null;Z=txj(q,w,q.nodeType===1?r||Z:null);if(q.nodeType===1&&(q=q.attributes,w=q.length)){r=Z._attrsArr||(Z._attrsArr=Oy6(w*2));for(var Y=0,C=0;Y<w;Y+=1,C+=2){var d=q[Y],O=d.value;r[C]=d.name;r[C+1]=O}}return Z};
RP2=function(q,Z,w,r,Y){return Z==w&&r==Y};
by6=function(q){for(var Z=z2,w=aF();w!==q;){var r=w.nextSibling;Z.removeChild(w);n7.deleted.push(w);w=r}};
aF=function(){return QE?QE.nextSibling:z2.firstChild};
Eu=function(){QE=aF()};
BJX=function(q,Z,w){Eu();var r;a:{if(r=QE){do{var Y=r,C=q,d=Z,O=JX(Y,d);if(JlT(Y,C,O.nameOrCtor,d,O.key))break a}while(Z&&(r=r.nextSibling))}r=null}r||(q==="#text"?(w=T2.createTextNode(""),txj(w,"#text",null),q=w):(r=T2,Y=z2,typeof q==="function"?r=new q:r=(Y=q==="svg"?"http://www.w3.org/2000/svg":q==="math"?"http://www.w3.org/1998/Math/MathML":Y==null||JX(Y).nameOrCtor==="foreignObject"?null:Y.namespaceURI)?r.createElementNS(Y,q):r.createElement(q),txj(r,q,Z),q=r,w&&q.setAttribute("nonce",w)),n7.created.push(q),
r=q);w=r;if(w!==QE){if(zPO.indexOf(w)>=0)for(q=z2,Z=w.nextSibling,r=QE;r!==null&&r!==w;)Y=r.nextSibling,q.insertBefore(r,Z),r=Y;else z2.insertBefore(w,QE);QE=w}};
awI=function(q,Z,w){BJX(q,Z,w);z2=QE;QE=null;return z2};
naj=function(){by6(null);QE=z2;z2=z2.parentNode};
Uu=function(){QE=z2.lastChild};
xyT=function(q,Z){Z=Z===void 0?{}:Z;var w=Z.matches===void 0?RP2:Z.matches;return function(r,Y,C){var d=n7,O=T2,H=zPO,L=k6,S=K7,v=QE,R=z2,B=JlT;T2=r.ownerDocument;n7=new Q_T(r);JlT=w;k6=[];K7=[];QE=null;var n=z2=r.parentNode,x,K=EaX.call(r);if((x=K.nodeType===11||K.nodeType===9?K.activeElement:null)&&r.contains(x)){for(K=[];x!==n;)K.push(x),x=x.parentNode||(n?x.host:null);n=K}else n=[];zPO=n;try{return q(r,Y,C)}finally{r=n7,su&&r.deleted.length>0&&su(r.deleted),T2=O,n7=d,JlT=B,k6=L,K7=S,QE=v,z2=R,
zPO=H}}};
TJe=function(q,Z,w,r){IF.push(va1);IF.push(q);IF.push(Z);IF.push(w);IF.push(r)};
kle=function(q,Z,w){var r=K7;Z=Z._attrsArr||(Z._attrsArr=Oy6(r.length));for(var Y=!Z.length||!1,C=0;C<r.length;C+=2){var d=r[C];if(Y)Z[C]=d;else if(Z[C]!==d)break;var O=r[C+1];if(Y||Z[C+1]!==O)Z[C+1]=O,TJe(q,d,O,w)}if(C<r.length||C<Z.length){for(C=Y=C;C<Z.length;C+=2)cN[Z[C]]=Z[C+1];for(C=Y;C<r.length;C+=2)Y=r[C],d=r[C+1],cN[Y]!==d&&TJe(q,Y,d,w),Z[C]=Y,Z[C+1]=d,delete cN[Y];RF(Z,r.length);for(var H in cN)TJe(q,H,void 0,w),delete cN[H]}q=Uye;Uye=w=IF.length;for(H=q;H<w;H+=5)(0,IF[H])(IF[H+1],IF[H+
2],IF[H+3],IF[H+4]);Uye=q;RF(IF,q);RF(r,0)};
Mo=function(q){BJX("#text",null);var Z=QE;var w=JX(Z);if(w.text!==q){w=w.text=q;for(var r=1;r<arguments.length;r+=1)w=(0,arguments[r])(w);Z.data!==w&&(Z.data=w)}};
F3e=function(q,Z,w){if(w===!1&&K3O.has(Z))HyO(q,Z,null);else if(Z!=="idomKey"&&Z!=="skip"&&Z!=="skipchildren"&&Z!=="children"&&Z!=="el"){if(Z.startsWith("on"))if(Z[2]===":"){if(w===void 0||w===null){var r;(r=mt.handleError)==null||r.call.apply(r,[mt].concat(_.Ju(oF(Error("Wb`"+Z),q.tagName))));q[Z]=void 0;return}if(typeof w!=="object"||w===null)throw Error("Xb`"+Z+"`"+typeof w);if(typeof w.getFn!=="function")throw Error("Yb`"+Z+"`"+Object.keys(w));var Y=w.getFn(0),C=Z.slice(3);if((r=HN())&&q["on"+
C]===void 0)q.addEventListener(C,Y),_.SG(function(){return void q.removeEventListener(C,Y)});
else if(r||!s_1.includes(C))q["on"+C]=Y}else{IwN(q,Z,w);return}else if(Z.startsWith("data-")&&typeof w==="string")try{w=clj(w)}catch(d){w="zSoyz"}typeof w!=="function"||q._disposeEffects!=null?(mt.enableAttributeSanitization&&(w=dyj(q.tagName,Z,w)),Z==="style"?MxI(q,Z,w):Z.startsWith("prop:")?(Z=Z.slice(5),q[Z]=w):IwN(q,Z,w)):(q._signalProps||(q._signalProps=[]),q._signalValues||(q._signalValues=[]),q._signalProps.push(Z))}};
NJ2=function(q,Z,w){w=(w===void 0?{}:w).isReactive;if(Z==null?0:Z.el){var r=Z.el;if(typeof r==="function")r(q);else{var Y;(Y=r.onRender)==null||Y.call(r,q);q._disposeRef||(q._disposeRef=function(){var C;(C=r.onUnmount)==null||C.call(r);delete q._disposeRef},w&&_.SG(function(){var C;
return void((C=q._disposeRef)==null?void 0:C.call(q))}))}}};
lw6=function(q){return EYT(q)&&F4 in q};
GlX=function(q){return lw6(q)?q[F4].flattened:q};
p0e=function(q,Z){var w=_.Ta.apply(2,arguments),r;Z=(r=Z)!=null?r:{};r={};return r.type=q,r.props=Z,r.children=w,r[No]=!0,r};
_.lS=function(q){return q.children};
G2=function(q){var Z=X0X!==p0e;X0X=q?my8:p0e;return Z};
p7=function(q){return _.DT(q)?"nodeType"in q:!1};
X4=function(){return document.createTextNode("")};
mP=function(q){q=document.createTextNode(String(q));q._isSignalTextNode=!0;return q};
Al6=function(q){var Z=document.createElement("div");if(!(q instanceof sX)){if(q.contentKind!==AX)throw Error("Ub");q=I9(q.toString())}_.fA(Z,q);q=_.P(Z.childNodes);for(var w=q.next();!w.done;w=q.next())w.value._isSafeOrSanitizedHtmlNode=!0;return Z};
f7=function(q){q=typeof q;return q==="string"||q==="number"||q==="boolean"};
fwj=function(q){return q instanceof W8||R9(q)||"function"==typeof _.ig&&q instanceof _.ig||!1};
Dy2=function(q,Z){var w=q.parentElement;if(!w)return Z;w.replaceChild(Z,q);return Z};
hPj=function(q,Z){var w=q[0].parentElement;if(w)if(q[0].previousSibling||q[q.length-1].nextSibling){w.insertBefore(Z,q[0]);for(var r=q.length-1;r>=0;r--)w.removeChild(q[r])}else w.textContent="",w.appendChild(Z);return Z};
yl2=function(q,Z){if(q[0].parentElement)for(var w=q[0].parentElement,r=Z.length,Y=q.length,C=r,d=0,O=0,H=q[Y-1].nextSibling,L=null;d<Y||O<C;)if(q[d]===Z[O])d++,O++;else{for(;q[Y-1]===Z[C-1];)Y--,C--;if(Y===d)for(var S=C<r?O?Z[O-1].nextSibling:Z[C-O]:H;O<C;){var v=Z[O++];w.insertBefore(v,S)}else if(C===O)for(;d<Y;)S=q[d],L&&L.has(S)||w.removeChild(S),d++;else if(q[d]===Z[C-1]&&Z[O]===q[Y-1])S=q[--Y].nextSibling,w.insertBefore(Z[O++],q[d++].nextSibling),w.insertBefore(Z[--C],S),q[Y]=Z[C];else{if(!L)for(L=
new Map,S=O;S<C;)L.set(Z[S],S++);S=L.get(q[d]);if(S==null)w.removeChild(q[d]),d++;else if(O<S&&S<C){v=d;for(var R=1,B=void 0;++v<Y&&v<C&&(B=L.get(q[v]))!=null&&B===S+R;)R++;if(R>S-O)for(v=q[d];O<S;)w.insertBefore(Z[O++],v);else w.replaceChild(Z[O++],q[d++])}else d++}}return Z};
ga1=function(q){if(Array.isArray(q)){if(q.length>1)throw Error("gc`"+q.length+"`"+q.map(iyj).join(", "));q=q[0]}if(q==null)return null;if(!(q instanceof _.Ga)){var Z,w;if((Z=window)==null?0:(w=Z.trustedTypes)==null?0:w.isScript(q))throw Error("fc");if(String(q).trim().length===0)return null;throw Error("hc`"+iyj(q));}return q};
qPj=function(q){if(Array.isArray(q)){if(q.length>1)throw Error("ic`"+q.length+"`"+q.map(iyj).join(", "));q=q[0]}if(q==null)return null;if(!iA2(q)){if(String(q).trim().length===0)return null;throw Error("jc`"+iyj(q));}return q};
iyj=function(q){return"("+typeof q+") "+(q!=null&&typeof q==="object"?q.constructor.name:typeof q)+" "+q};
wkX=function(q,Z){return ZpX(q,Z)};
ZpX=function(q,Z){function w(){Y=!1;lUz++;var C=r[0],d=r[F4].flattened,O=G2(!0);try{var H=q(),L=ryT(C,H,r);Array.isArray(L)||(r[F4].flattened=[L]);var S=r[F4].flattened;if(d&&(!Array.isArray(d)||d.length!==0)){var v=Array.isArray(d)?d[0]:d,R=v[DB],B=v._disposeEffects;v._disposeEffects=void 0;v=Array.isArray(S)?S[0]:S;v[DB]=R;v[DB]&&(v[DB].numNodes=v===S?1:S.length);v._disposeEffects=B}r[0]=L;pOj(!1)}catch(n){throw pOj(!0),n;}finally{G2(O)}}
var r=YP8(),Y=!0;_.uS(function(){($$1==null?0:$$1.logger)&&!Y?$$1.logger.logGraft(r[0],w):w()},Z);
return r};
ryT=function(q,Z,w){for(;typeof Z==="function";)Z=Z();if(Z!=null&&Z[No]){var r,Y,C;(C=mt.handleError)==null||C.call.apply(C,[mt].concat(_.Ju(oF(Error("kc`"+((r=Z.type)==null?void 0:r.TAG_NAME)),(Y=Z.type)==null?void 0:Y.TAG_NAME))))}if(q==null)return Z==null?X4():f7(Z)?mP(Z):fwj(Z)?mP(Z.toString()):p7(Z)?Z:Z.length===0?X4():eEj(Z,w);if(p7(q)){if(Z==null)return Dy2(q,X4());if(f7(Z))return C5z(q,Z);if(fwj(Z))return C5z(q,Z.toString());if(p7(Z))return Dy2(q,Z);if(Z.length===0)return Dy2(q,X4());Z=eEj(Z,
w);yl2([q],w[F4].flattened);return Z}q=hX(q);if(Z==null)return hPj(q,X4());if(f7(Z))return hPj(q,mP(Z));if(fwj(Z))return hPj(q,mP(Z.toString()));if(p7(Z))return yl2(q,[Z])[0];if(Z.length===0)return hPj(q,X4());Z=eEj(Z,w);yl2(q,w[F4].flattened);return Z};
C5z=function(q,Z){q.nodeType===Node.TEXT_NODE?q.textContent!==String(Z)&&(q.textContent=String(Z)):q=Dy2(q,mP(Z));return q};
hX=function(q,Z,w){return P5N(q,Z!=null?Z:[],w===void 0?!1:w)};
eEj=function(q,Z){var w=hX(q,void 0,!0);if(w.length===0)return X4();Z[F4].flattened=w;return q};
P5N=function(q,Z,w,r,Y){Z=Z===void 0?[]:Z;w=w===void 0?!1:w;Y=Y===void 0?-1:Y;if(q==null)return Z;if(q instanceof yE)return q=q.render(),P5N(q,Z,w,r,Y);if(p7(Z)&&Z.nodeType===Node.ELEMENT_NODE)switch(Z.tagName){case "SCRIPT":w=ga1(q);w!==null&&_.X5(Z,w);return;case "STYLE":w=qPj(q);w!==null&&(Z.textContent=_.gv2(w));return}f7(q)&&(q=mP(q),r&&w&&(r[Y]=q));if(q!=null&&q.contentKind===AX||q instanceof sX){w=Al6(q);w=Array.from(w.childNodes);w=_.P(w);for(q=w.next();!q.done;q=w.next())d$I(Z,q.value);return Z}fwj(q)&&
(q=mP(q.toString()),r&&w&&(r[Y]=q));if(p7(q))return d$I(Z,q);if(Array.isArray(q)){for(var C=0;C<q.length;C++)P5N(q[C],Z,w,q,C);return Z}if(typeof q==="function"){q=ZpX(q,"qmF2ne")[0];if(Array.isArray(q)){w=_.P(q);for(q=w.next();!q.done;q=w.next())d$I(Z,q.value);return Z}r&&w&&(r[Y]=q);return d$I(Z,q)}if(q!=null&&q[No]){r=G2(!0);Y=X0X;try{C=Y.apply(null,[q.type,q.props].concat(_.Ju(q.children)))}finally{G2(r)}return P5N(C,Z,w)}var d;(d=mt.handleError)==null||d.call.apply(d,[mt].concat(_.Ju(oF(Error("lc")))));
return Z};
YP8=function(q){var Z={};Z=Object.assign([],(Z[F4]={flattened:[]},Z));if(!q)return Z;Z[0]=eEj(q,Z);return Z};
d$I=function(q,Z){Array.isArray(q)?q.push(Z):q.appendChild(Z);return q};
iS=function(q){if(!mt.enableLazyTsx)return q;if(Array.isArray(q)){for(var Z=0;Z<q.length;Z++)q[Z]=iS(q[Z]);return q}return q instanceof yE?(q=q.render(),iS(q)):q};
Hp2=function(q,Z){var w,r,Y=VsT(q),C=function(B){r=B;B=G2(!0);var n=fh(qR);BIj("render",Y);try{w=iS(q(Z))}finally{a$j("render",Y),fh(n),G2(B)}};
C=mt.enableContextPerComponent?Q$1(C,Y):vN(C,mt.alwaysTrackContexts||!!_.Nb);TI9(r);if(!Z.renderedFromIdom){var d=l6(r);try{return Opj(q,Z,w),w}finally{l6(d)}}!lw6(w)&&Array.isArray(w)&&(w=YP8(w));var O=GlX(w);d=Array.isArray(O)?O[0]:O;var H=!1;if(d){var L,S=(L=Z==null?void 0:Z.idomKey)!=null?L:q;L=O!==d;d._disposeEffects=C;var v=d[DB]||{},R=lw6(w)?w:v.sourceDynamicRange;Object.assign(v,{key:S,numNodes:L?O.length:1,context:r,higherOrder:!!d[DB],sourceDynamicRange:R});d[DB]=v}else H=!0;(function(){var B=
l6(r);try{Opj(q,Z,O)}finally{l6(B)}})();
H&&C();return w};
VsT=function(q){var Z,w;return(w=(Z=q.debugName)!=null?Z:q.name)!=null?w:"[component]"};
WJI=function(q){var Z={},w;for(w in q)Z={prev$jscomp$23:void 0,next$jscomp$25:void 0},Z.prev$jscomp$23=ZV[w],Z.next$jscomp$25=q[w],ZV[w]=function(r){return function(){var Y=_.Ta.apply(0,arguments);r.prev$jscomp$23.apply(null,_.Ju(Y));r.next$jscomp$25.apply(null,_.Ju(Y))}}(Z)};
oQ1=function(){if(HN())throw Error("mc");return wA};
uK2=function(q,Z){if(!q.__unmounted&&Z){q.__unmounted=!0;try{q.didUnmount()}catch(Y){var w,r;(r=mt.handleError)==null||r.call.apply(r,[mt].concat(_.Ju(oF(Y,(w=q.JSC$8134___type)==null?void 0:w.TAG_NAME))))}ZV.didUnmount(q);q.el=null;Z.__instance&&delete Z.__instance}};
SP8=function(q,Z,w){q._signalProps!=null&&q._disposeEffects==null&&((w===void 0?0:w)?q._disposeEffects=vN(function(){return void LJ8(q,Z)},mt.alwaysTrackContexts||!!_.Nb):LJ8(q,Z))};
LJ8=function(q,Z){_.uS(function(){for(var w=q._signalProps,r=q._signalValues,Y=0;Y<w.length;Y++){var C=w[Y],d=Z[C]();r[Y]!==d&&(r[Y]=d,F3e(q,C,d))}},"e3YVbb")};
vQT=function(q,Z,w){var r,Y=[];q._disposeEffects=vN(function(){_.uS(function(){var C=w();if(C===null||C===void 0)C="";if(f7(C)||C===null)r!=null||(r=document.createTextNode("")),r.parentNode!==q&&(r._isSignalTextNode=!0,q.insertBefore(r,Z)),r.textContent=String(C);else if(C!=null&&C.contentKind===AX||C instanceof sX){for(var d=Y.length>0?Y[Y.length-1].nextSibling:Z,O=_.P(Y),H=O.next();!H.done;H=O.next())q.removeChild(H.value);C=Al6(C);Y=Array.from(C.childNodes);C=_.P(Y);for(O=C.next();!O.done;O=C.next())q.insertBefore(O.value,
d)}else throw H=(O=(d=Ou())==null?void 0:d.name)!=null?O:"unknown",Error("bc`"+H+"`"+typeof C);},"VvDgC")},mt.alwaysTrackContexts||!!_.Nb)};
RE2=function(q,Z){var w=_.Ta.apply(2,arguments);Z!=null||(Z={});return!mt.enableLazyTsx||Ou()!=null&&!HN()?js6(q,Z,w):new ts8(q,Z,w)};
js6=function(q,Z,w){if(q===_.lS)return w;if(typeof q==="function")return Ou()&&!HN()&&(Z.renderedFromIdom=!0),XOe({component:q,debugInstance:Z.debugInstance,fn:function(){var C=bp8(q,Z,w);if(C)return C;w.length>0&&(Z.children=w.length===1?w[0]:w);C=Z;if(q.componentType!==PN)var d=!1;else{C||(C={});var O=new rA(C,q),H=fh(qR);try{d=O.render(C)}finally{fh(H)}d instanceof HTMLElement&&(d.__instance=O,O.el=d,O.JSC$8134___type=q,q.TAG_NAME=d.tagName.toLowerCase(),ZV.didPatch(O))}return d===!1?Hp2(q,Z):
d}});
var r=Jyj(q,Z),Y;for(Y in Z)F3e(r,Y,Z[Y]);SP8(r,Z);hX(w,r);NJ2(r,Z,{isReactive:!0});zEe(r,Z);return r};
Jyj=function(q,Z){q=(B0j.has(q.toLowerCase())?0:aj8.has(q.startsWith("svg:")?q.replace("svg:",""):q))?document.createElementNS("http://www.w3.org/2000/svg",q.startsWith("svg:")?q.replace("svg:",""):q):nQ2(q,Z)||document.createElement(q);q[QsI]=!0;return q};
EQ8=function(q){if(q){var Z;(Z=q._disposeRef)==null||Z.call(q);var w;(w=q._disposeEffects)==null||w.call(q);q.__instance&&q.__instance instanceof $T&&(Z=q.__instance,uK2(Z,q),Z instanceof rA&&Z.disposeEffects());for(Z=0;Z<q.childNodes.length;Z++)EQ8(q.childNodes[Z])}};
T0O=function(q){x$6.push(q)===1&&requestAnimationFrame(function(){setTimeout(function(){var Z=[].concat(_.Ju(x$6));x$6=[];Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next()){w=w.value;try{for(var r=0;r<w.length;r++)EQ8(w[r])}catch(Y){r=w=void 0,(r=(w=mt).handleError)==null||r.call.apply(r,[w].concat(_.Ju(oF(Y))))}}})})};
_.u=function(q,Z){return X0X.apply(null,[q,Z].concat(_.Ju(_.Ta.apply(2,arguments))))};
kX6=function(){var q=document.body.firstElementChild;window.ng||q.__ngContext__||(q.__ngContext__={},q.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=U$O)};
_.PF=function(q){var Z=q.cond;if(Z===void 0)return q.else&&q.else();var w=_.$6(function(){return!!Z()},void 0,"y0Xknf"),r=function(){var Y=Z();
if(!Y){var C;(C=mt.handleError)==null||C.call.apply(C,[mt].concat(_.Ju(oF(KJN.nonNullableCondIsNull()))))}return Y};
return wkX(function(){var Y=w(),C;vN(function(){var d=fh(qR);try{C=iS(Y?q.then(r):q.else&&q.else())}finally{fh(d)}},!0);
return C},q.debugInstance)};
ssT=function(q){return _.PF(q)};
_.dA=function(q){return q.keyBy==="INDEX"?Ij2(q):cy6(q)};
MsT=function(q){q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next()){var w=void 0;(w=Z.value)==null||w()}};
cy6=function(q){var Z=q.keyBy===void 0||q.keyBy==="REFERENCE",w=Z?function(S){return S}:q.keyBy,r=[],Y=[],C=[],d=[],O=[],H=[],L=!0;
_.SG(function(){MsT(d)});
return wkX(function(){var S=q.each(),v=S.length;if(v===0){if(r.length===0&&!L)return C;MsT(d);r=S;Y=[];for(S=0;S<r.length;S++)Y.push(w(r[S]));C=[];d=[];O=[];H=[];q.fallback&&(d[0]=FJ2(function(){C[0]=iS(q.fallback())}));
L=!1;return C}for(var R=new N0I,B=r.length-1;B>=0;B--)R.push(Y[B],B);B=Array(v);for(var n=Array(v),x=Array(v),K=Array(v),k=Array(Z?0:v),G={i$jscomp$486:0};G.i$jscomp$486<v;G={i$jscomp$486:G.i$jscomp$486,item$jscomp$105:void 0,key$jscomp$517:void 0},G.i$jscomp$486++){G.item$jscomp$105=S[G.i$jscomp$486];G.key$jscomp$517=w(G.item$jscomp$105);var rz=R.pop(G.key$jscomp$517);rz!=null?(x[G.i$jscomp$486]=C[rz],n[G.i$jscomp$486]=Y[rz],B[G.i$jscomp$486]=d[rz],K[G.i$jscomp$486]=O[rz],Z||(k[G.i$jscomp$486]=H[rz]),
eG(function(f){return function(){K[f.i$jscomp$486](f.i$jscomp$486);if(!Z)k[f.i$jscomp$486](f.item$jscomp$105)}}(G)),delete d[rz]):B[G.i$jscomp$486]=FJ2(function(f){return function(){var eO=_.P(_.qo(f.i$jscomp$486,void 0,"g4fKif")),g=eO.next().value;
eO=eO.next().value;K[f.i$jscomp$486]=eO;n[f.i$jscomp$486]=f.key$jscomp$517;if(Z)x[f.i$jscomp$486]=iS(q.children(f.item$jscomp$105,g));else{var H6=_.P(_.qo(f.item$jscomp$105,void 0,"Ile0Kc"));eO=H6.next().value;H6=H6.next().value;k[f.i$jscomp$486]=H6;x[f.i$jscomp$486]=iS(q.children(eO,g))}}}(G))}MsT(d);
r=S;Y=n;C=x;d=B;O=K;H=k;L=!1;return x},q.debugInstance)};
Ij2=function(q){var Z=[],w=[],r=[],Y=[],C=!1;_.SG(function(){for(var d=_.P(Y),O=d.next();!O.done;O=d.next())O=O.value,O()});
return wkX(function(){var d=q.each();C&&d.length>0&&(Y.pop()(),Z.pop(),C=!1);for(var O=Array(d.length),H={i$jscomp$487:0};H.i$jscomp$487<d.length;H={i$jscomp$487:H.i$jscomp$487},H.i$jscomp$487++)if(H.i$jscomp$487<Z.length)Z[H.i$jscomp$487]!==d[H.i$jscomp$487]&&(eG(function(S){return function(){return void w[S.i$jscomp$487](d[S.i$jscomp$487])}}(H)),Z[H.i$jscomp$487]=d[H.i$jscomp$487]),O[H.i$jscomp$487]=r[H.i$jscomp$487];
else{var L=FJ2(function(S){return function(){Z[S.i$jscomp$487]=d[S.i$jscomp$487];var v=_.P(_.qo(d[S.i$jscomp$487],void 0,"C53T8b")),R=v.next().value;v=v.next().value;w[S.i$jscomp$487]=v;O[S.i$jscomp$487]=iS(q.children(R,S.i$jscomp$487))}}(H));
Y[H.i$jscomp$487]=L}for(;Z.length>d.length;)Z.pop(),Y.pop()(),w.pop();d.length===0&&!C&&q.fallback&&(H=FJ2(function(){O[0]=iS(q.fallback())}),Y[0]=H,C=!0);
return r=O},q.debugInstance)};
FJ2=function(q){var Z=_.Nb;return vN(function(w){var r=fh(qR);try{w.parent=Z,q(w)}finally{fh(r)}},!1)};
_.VV=function(q){return q};
_.lj9=function(q){return{isDefault:!0,children:q.children}};
_.Oq=function(q){var Z=GXO(q),w=_.$6(function(){return pk9(Z)},void 0,"BHmkEe");
return wkX(function(){var r=w(),Y;vN(function(){var C=fh(qR);try{Y=iS(r())}finally{fh(C)}});
return Y},q.debugInstance)};
GXO=function(q){q=q.children;return Array.isArray(q)?q:[q]};
Xke=function(q){var Z=q.props;q=q.getChildren()[0];return Z.when?{when:Z.when,children:q}:{isDefault:!0,children:q}};
pk9=function(q){var Z=function(){return null};
q=_.P(q);for(var w=q.next();!w.done;w=q.next())if(w=w.value,w!=null&&w[No]&&(w=w.type===_.lj9?{isDefault:!0,children:w.children[0]}:{when:w.props.when,children:w.children[0]}),w instanceof yE&&(w=Xke(w)),w.isDefault)Z=w.children;else if(w.when())return w.children;return Z};
m$I=function(q){var Z=null,w;return{value:null,onRender:function(r){if(w&&r!==w){var Y;(Y=Z)==null||Y();w._disposeRef=void 0}w=r;Z=q(r)||null},
onUnmount:function(){var r;(r=Z)==null||r();Z=null}}};
fj9=function(q){var Z=oQ1();if(Z==null)throw Ay6.PRIMITIVE_INVALID_HOOK_CALL();var w=Z.hookCounter++;Z.hooks||(Z.hooks=[]);var r=Z.hooks;r[w]||(r[w]={key:q,host:Z});if(q!==r[w].key){var Y,C;q=((Y=Z.JSC$8134___type)==null?void 0:Y.name)||((C=Z.functionComponent)==null?void 0:C.name);throw Ay6.OUT_OF_ORDER_HOOK_CALL(q);}return r[w]};
D$z=function(q,Z){return!q||q.length!==(Z==null?void 0:Z.length)||q.some(function(w,r){return w!==Z[r]})};
HF=function(q,Z){var w=fj9("onChange"),r=oQ1();D$z(w.deps,Z)&&(w.deps=Z,w.pendingEffect=q,r.__syncEffects||(r.__syncEffects=[]),r.__syncEffects.push(w))};
gQ2=function(q,Z){var w;Z!=null?w=Z:w=_.w5I(document).getAppContext();w.get(hEI).JSC$25214_getEventTarget().dispatchEvent(new yyN(ipz,q,AX))};
_.WF=function(q,Z){var w=w===void 0?{enableDevtools:!1}:w;var r=WN(function(){var Y=fh(qR);try{return vN(function(){var C=_.w5I(_.nC(q)),d;var O=Ll1({appContext:w.appContext||(C==null?void 0:(d=C.getOptionalAppContext)==null?void 0:d.call(C)),dispatcher:C});C=l6(O);O=G2(!0);lUz++;try{hX(Z(),q),pOj(!1)}catch(H){throw pOj(!0),H;}finally{G2(O),l6(C)}},!1)}finally{fh(Y)}});
q[qhI]=!0;w.legacyTriggerSoyRendererEvents&&gQ2(q,w.appContext);return function(){q.textContent="";r();q[qhI]=!1}};
_.oz=function(q){if(FDe(A1)){var Z;(Z=mt.handleError)==null||Z.call.apply(Z,[mt].concat(_.Ju(oF(Error("ac")))))}var w=_.Nb,r=C7.slice();Promise.resolve().then(function(){w&&!w.isDisposed&&WN(function(){var Y=l6(w);try{q()}finally{l6(Y)}},{stack:r})})};
uO=function(q,Z){HF(function(){return gX(q)},Z)};
_.Ls=function(q){HN()?_.oz(function(){gX(q)}):HF(function(){return gX(q)},[])};
wdT=function(q){var Z=[].concat(_.Ju(q));q.length=0;q=_.P(Z);for(Z=q.next();!Z.done;Z=q.next()){Z=Z.value;ZRN(Z);var w=Z.pendingEffect;Z.pendingEffect=null;if(w=w==null?void 0:w())Z.pendingCleanup=w}};
ZRN=function(q){var Z=q.pendingCleanup;q.pendingCleanup=null;Z==null||Z()};
rTj=function(q,Z){if(HN())return q();var w=fj9("useMemoInternal");D$z(w.deps,Z)&&(w.deps=Z,w.value=q());return w.value};
S9=function(q,Z){return rTj(q,Z)};
vF=function(q){return rTj(q,[])};
Yhj=function(){var q=_.Ta.apply(0,arguments),Z=vF(function(){return q.map(function(w){return _.qo(w,void 0,"lnSD0c")})});
uO(function(){for(var w=0;w<q.length;w++)(0,Z[w][1])(q[w])},q);
return Z.map(function(w){return _.P(w).next().value})};
j9=function(q){return vF(function(){return{value:q}})};
_.tf=function(q,Z){if(!q)return null;q=Object.keys(q);q=_.P(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;var r=w.toLowerCase();if(r.indexOf(Z,r.length-Z.length)>-1)return w}return null};
_.bO=function(){var q=arguments,Z=_.Rz;q.length>1?Z[q[0]]=q[1]:q.length===1&&Object.assign(Z,q[0])};
_.zj=function(q,Z){return q in _.Rz?_.Rz[q]:Z};
_.BF=function(q,Z){return!!_.zj(q,Z)};
$Me=function(q){var Z=_.Rz.EXPERIMENT_FLAGS;return Z?Z[q]:void 0};
CI6=function(q){eA6.forEach(function(Z){return Z(q)})};
_.QV=function(q){return q&&window.yterr?function(){try{return q.apply(this,arguments)}catch(Z){_.ns(Z)}}:q};
_.ns=function(q){var Z=_.Eq("yt.logging.errors.log");Z?Z(q,"ERROR",void 0,void 0,void 0,void 0,void 0):(Z=_.zj("ERRORS",[]),Z.push([q,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.bO("ERRORS",Z));CI6(q)};
_.xT=function(q,Z,w,r,Y){var C=_.Eq("yt.logging.errors.log");C?C(q,"WARNING",Z,w,r,void 0,Y):(C=_.zj("ERRORS",[]),C.push([q,"WARNING",Z,w,r,void 0,Y]),_.bO("ERRORS",C))};
dMX=function(q,Z){Z=q.split(Z);for(var w={},r=0,Y=Z.length;r<Y;r++){var C=Z[r].split("=");if(C.length===1&&C[0]||C.length===2)try{var d=PIT(C[0]||""),O=PIT(C[1]||"");if(d in w){var H=w[d];Array.isArray(H)?_.X9(H,O):w[d]=[H,O]}else w[d]=O}catch(R){var L=R,S=C[0],v=String(dMX);L.args=[{key:S,value:C[1],query:q,method:VKz===v?"unchanged":v}];ORO.hasOwnProperty(S)||_.xT(L)}}return w};
HRz=function(q){var Z=[];_.R4.forEach(q,function(w,r){var Y=_.Tj(r);_.Uq(Array.isArray(w)?w:[w],function(C){C==""?Z.push(Y):Z.push(Y+"="+_.Tj(C))})});
return Z.join("&")};
_.kT=function(q){q.charAt(0)==="?"&&(q=q.substring(1));return dMX(q,"&")};
_.Ks=function(q){return q.indexOf("?")!==-1?(q=(q||"").split("#")[0],q=q.split("?",2),_.kT(q.length>1?q[1]:q[0])):{}};
_.sq=function(q,Z){return Wu6(q,Z||{},!0)};
oKj=function(q,Z){return Wu6(q,Z||{},!1)};
Wu6=function(q,Z,w){var r=q.split("#",2);q=r[0];r=r.length>1?"#"+r[1]:"";var Y=q.split("?",2);q=Y[0];Y=_.kT(Y[1]||"");for(var C in Z)if(w||!_.R4.containsKey(Y,C))Y[C]=Z[C];return _.Iz(q,Y)+r};
NR=function(q){if(!Z)var Z=window.location.href;var w=_.cF(q)[1]||null,r=_.MR(q);return w&&r?Fe(q,Z):r?_.MR(Z)===r&&(Number(_.cF(Z)[4]||null)||null)===(Number(_.cF(q)[4]||null)||null):!0};
_.LuT=function(q){q=umX(q);return q===null?!1:q[0]==="com"&&q[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
umX=function(q){q=_.MR(q);return q!==null?q.split(".").reverse():null};
PIT=function(q){return q&&q.match(ShO)?q:lO(q)};
_.Gj=function(q){return new vKe(q)};
_.t=function(){jVT||(jVT=new tK8);return jVT};
bR2=function(q){var Z=_.ps,w,r;_.V(function(Y){w=_.t();return(r=w.resolve(_.Gj(Z)))?(q(r),Y.return(Promise.resolve(r))):Y.return(w.resolve(new RAI(Z)).then(function(C){q(C);return C}))})};
_.b=function(q){q=Xe(q);return typeof q==="string"&&q==="false"?!1:!!q};
_.m6=function(q,Z){q=Xe(q);return q===void 0&&Z!==void 0?Z:Number(q||0)};
JTN=function(q){q=Xe(q);return Array.isArray(q)?_.bM(q,function(Z){return Number(Z||0)}):[Number(q||0)]};
_.Af=function(q){q=Xe(q);return q!==void 0?String(q):""};
_.fs=function(q){q=Xe(q);return Array.isArray(q)?_.bM(q,function(Z){return String(Z||"")}):[String(q||"")]};
zA1=function(){return _.zj("EXPERIMENTS_TOKEN","")};
Xe=function(q){return _.zj("EXPERIMENT_FLAGS",{})[q]};
BTX=function(){for(var q=[],Z=_.zj("EXPERIMENTS_FORCED_FLAGS",{}),w=_.P(Object.keys(Z)),r=w.next();!r.done;r=w.next())r=r.value,q.push({key:r,value:String(Z[r])});w=_.zj("EXPERIMENT_FLAGS",{});r=_.P(Object.keys(w));for(var Y=r.next();!Y.done;Y=r.next())Y=Y.value,Y.startsWith("force_")&&Z[Y]===void 0&&q.push({key:Y,value:String(w[Y])});return q};
nKj=function(){if(!aCj)return null;var q=aCj();return"open"in q?q:null};
QV9=function(q){switch(DV(q)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
DV=function(q){return q&&"status"in q?q.status:-1};
_.hf=function(q,Z){typeof q==="function"&&(q=_.QV(q));return window.setTimeout(q,Z)};
_.yV=function(q,Z){typeof q==="function"&&(q=_.QV(q));return window.setInterval(q,Z)};
_.iO=function(q){window.clearTimeout(q)};
xMO=function(q){q=_.Ks(q);for(var Z=_.P(EKT),w=Z.next();!w.done;w=Z.next())if(q[w.value]!==void 0)return!0;return!1};
k7z=function(q,Z,w,r,Y,C,d,O){w=w===void 0?"GET":w;r=r===void 0?"":r;O=O===void 0?!1:O;var H=nKj();if(!H)return null;var L=function(){(H&&"readyState"in H?H.readyState:0)===4&&Z&&_.QV(Z)(H)};
"onloadend"in H?H.addEventListener("loadend",L,!1):H.onreadystatechange=L;_.b("debug_forward_web_query_parameters")&&(q=TTz(q,window.location.search));H.open(w,q,!0);C&&(H.responseType=C);d&&(H.withCredentials=!0);w=w==="POST"&&(window.FormData===void 0||!(r instanceof FormData));if(Y=UM2(q,Y))for(var S in Y)H.setRequestHeader(S,Y[S]),"content-type"===S.toLowerCase()&&(w=!1);w&&H.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(O&&"setAttributionReporting"in XMLHttpRequest.prototype){q=
{eventSourceEligible:!0,triggerEligible:!1};try{H.setAttributionReporting(q)}catch(v){_.xT(v)}}H.send(r);return H};
UM2=function(q,Z){Z=Z===void 0?{}:Z;var w=NR(q),r=_.zj("INNERTUBE_CLIENT_NAME"),Y=_.b("web_ajax_ignore_global_headers_if_set"),C;for(C in Kuj){var d=_.zj(Kuj[C]),O=C==="X-Goog-AuthUser"||C==="X-Goog-PageId";C!=="X-Goog-Visitor-Id"||d||(d=_.zj("VISITOR_DATA"));var H;if(!(H=!d)){if(!(H=w||(_.MR(q)?!1:!0))){H=q;var L;if(L=_.b("add_auth_headers_to_remarketing_google_dot_com_ping")&&C==="Authorization"&&(r==="TVHTML5"||r==="TVHTML5_UNPLUGGED"||r==="TVHTML5_SIMPLY"))L=umX(H),L=L===null?!1:L[1]==="google"?
!0:L[2]==="google"?L[0]==="au"&&L[1]==="com"?!0:L[0]==="uk"&&L[1]==="co"?!0:!1:!1;L&&(H=_.gA(H)||"",H=H.split("/"),H="/"+(H.length>1?H[1]:""),L=H==="/pagead");H=L?!0:!1}H=!H}H||Y&&Z[C]!==void 0||r==="TVHTML5_UNPLUGGED"&&O||(Z[C]=d)}"X-Goog-EOM-Visitor-Id"in Z&&"X-Goog-Visitor-Id"in Z&&delete Z["X-Goog-Visitor-Id"];if(w||!_.MR(q))Z["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(w||!_.MR(q)){try{var S=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(v){}S&&(Z["X-YouTube-Time-Zone"]=
S)}document.location.hostname.endsWith("youtubeeducation.com")||!w&&_.MR(q)||(Z["X-YouTube-Ad-Signals"]=HRz(sV6()));return Z};
_.IC9=function(q,Z){var w=_.MR(q);_.b("debug_handle_relative_url_for_query_forward_killswitch")||!w&&NR(q)&&(w=document.location.hostname);var r=_.gA(q);r=(w=w&&(w.endsWith("youtube.com")||w.endsWith("youtube-nocookie.com")))&&r&&r.startsWith("/api/");if(!w||r)return q;var Y=_.kT(Z),C={};_.Uq(EKT,function(d){Y[d]&&(C[d]=Y[d])});
return oKj(q,C)};
cT1=function(q,Z){Z.method="POST";Z.postParams||(Z.postParams={});return _.q4(q,Z)};
MKj=function(q,Z){var w=_.zj("XSRF_FIELD_NAME"),r;Z.headers&&(r=Z.headers["Content-Type"]);return!Z.excludeXsrf&&(!_.MR(q)||Z.withCredentials||_.MR(q)===document.location.hostname)&&Z.method==="POST"&&(!r||r==="application/x-www-form-urlencoded")&&!(Z.postParams&&Z.postParams[w])};
_.q4=function(q,Z){var w=Z.format||"JSON";q=Fu8(q,Z);var r=NTX(q,Z),Y=!1,C=lCO(q,function(H){if(!Y){Y=!0;O&&_.iO(O);var L=QV9(H),S=null,v=400<=H.status&&H.status<500,R=500<=H.status&&H.status<600;if(L||v||R)S=G7O(q,w,H,Z.convertToSafeHtml);L&&(L=pd2(w,H,S));S=S||{};v=Z.context||_.$1;L?Z.onSuccess&&Z.onSuccess.call(v,H,S):Z.onError&&Z.onError.call(v,H,S);Z.onFinish&&Z.onFinish.call(v,H,S)}},Z.method,r,Z.headers,Z.responseType,Z.withCredentials);
r=Z.timeout||0;if(Z.onTimeout&&r>0){var d=Z.onTimeout;var O=_.hf(function(){Y||(Y=!0,C.abort(),_.iO(O),d.call(Z.context||_.$1,C))},r)}return C};
Fu8=function(q,Z){Z.includeDomain&&(q=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+q);var w=_.zj("XSRF_FIELD_NAME");if(Z=Z.urlParams)Z[w]&&delete Z[w],q=_.sq(q,Z);return q};
NTX=function(q,Z){var w=_.zj("XSRF_FIELD_NAME"),r=_.zj("XSRF_TOKEN"),Y=Z.postBody||"",C=Z.postParams;MKj(q,Z)&&(C||(C={}),C[w]=r);(_.b("ajax_parse_query_data_only_when_filled")&&C&&Object.keys(C).length>0||C)&&typeof Y==="string"&&(Y=_.kT(Y),_.R4.extend(Y,C),Y=Z.postBodyFormat&&Z.postBodyFormat==="JSON"?JSON.stringify(Y):_.ZL(Y));C=Y||C&&!_.R4.isEmpty(C);!Xd1&&C&&Z.method!=="POST"&&(Xd1=!0,_.ns(Error("Gc")));return Y};
G7O=function(q,Z,w,r){var Y=null;switch(Z){case "JSON":try{var C=w.responseText}catch(d){throw r=Error("Hc"),r.params=q,_.xT(r),d;}q=w.getResponseHeader("Content-Type")||"";C&&q.indexOf("json")>=0&&(C.substring(0,5)===")]}'\n"&&(C=C.substring(5)),Y=JSON.parse(C));break;case "XML":if(q=(q=w.responseXML)?mM2(q):null)Y={},_.Uq(q.getElementsByTagName("*"),function(d){Y[d.tagName]=AT6(d)})}r&&fC2(Y);
return Y};
fC2=function(q){if(_.DT(q))for(var Z in q)Z==="html_content"||O2(Z,"_html")?q[Z]=I9(q[Z]):fC2(q[Z])};
pd2=function(q,Z,w){if(Z&&Z.status===204)return!0;switch(q){case "JSON":return!!w;case "XML":return Number(w&&w.return_code)===0;case "RAW":return!0;default:return!!w}};
mM2=function(q){return q?(q=("responseXML"in q?q.responseXML:q).getElementsByTagName("root"))&&q.length>0?q[0]:null:null};
AT6=function(q){var Z="";_.Uq(q.childNodes,function(w){Z+=w.nodeValue});
return Z};
DMz=function(q){if(q.name==="JavaException")return!0;q=q.stack;return q.includes("chrome://")||q.includes("chrome-extension://")||q.includes("moz-extension://")};
_.wf=function(q){_.u6.call(this);this.JSC$8306_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!q};
yT1=function(q,Z){var w=q.length,r=0,Y=function(){return q.charCodeAt(r++)};
do{var C=hAj(Y);if(C===Infinity)break;var d=C>>3;switch(C&7){case 0:C=hAj(Y);if(d===Z)return C;break;case 1:if(d===Z)return;r+=8;break;case 2:C=hAj(Y);if(d===Z)return q.substr(r,C);r+=C;break;case 5:if(d===Z)return;r+=4;break;default:return}}while(r<w)};
hAj=function(q){var Z=q(),w=Z&127;if(Z<128)return w;Z=q();w|=(Z&127)<<7;if(Z<128)return w;Z=q();w|=(Z&127)<<14;if(Z<128)return w;Z=q();return Z<128?w|(Z&127)<<21:Infinity};
gKX=function(q,Z,w,r){if(q)if(Array.isArray(q)){var Y=r;for(r=0;r<q.length&&!(q[r]&&(Y+=iR6(r,q[r],Z,w),Y>500));r++);r=Y}else if(typeof q==="object")for(Y in q){if(q[Y]){var C=Y;var d=q[Y],O=Z,H=w;C=typeof d!=="string"||C!=="clickTrackingParams"&&C!=="trackingParams"?0:(d=yT1(atob(d.replace(/-/g,"+").replace(/_/g,"/")),2))?iR6(C+".ve",d,O,H):0;r+=C;r+=iR6(Y,q[Y],Z,w);if(r>500)break}}else w[Z]=rf(q),r+=w[Z].length;else w[Z]=rf(q),r+=w[Z].length;return r};
iR6=function(q,Z,w,r){w+="."+q;q=rf(Z);r[w]=q;return w.length+q.length};
rf=function(q){try{return(typeof q==="string"?q:String(JSON.stringify(q))).substr(0,500)}catch(Z){return"unable to serialize "+typeof q+" ("+Z.message+")"}};
qEN=function(q){switch(q){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}};
_.$r=function(q,Z,w,r,Y){_.Yr.set(q,Z,{maxAge:w,path:"/",domain:r===void 0?"youtube.com":r,secure:Y===void 0?!1:Y})};
_.Zzj=function(q,Z,w){_.Yr.remove(q,Z===void 0?"/":Z,w===void 0?"youtube.com":w)};
_.eT=function(){if(_.b("embeds_web_enable_cookie_detection_fix")){if(!_.$1.navigator.cookieEnabled)return!1}else if(!_.Yr.isEnabled())return!1;if(!_.Yr.isEmpty())return!0;_.b("embeds_web_enable_cookie_detection_fix")?_.Yr.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.Yr.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.Yr.get("TESTCOOKIESENABLED")!=="1")return!1;_.Yr.remove("TESTCOOKIESENABLED");return!0};
wX8=function(){var q=_.$1.navigator;return q?q.connection:void 0};
r01=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(q){}};
_.$9j=function(){var q=wX8();if(q){var Z=YEj[q.type||"unknown"]||"CONN_UNKNOWN";q=YEj[q.effectiveType||"unknown"]||"CONN_UNKNOWN";Z==="CONN_CELLULAR_UNKNOWN"&&q!=="CONN_UNKNOWN"&&(Z=q);if(Z!=="CONN_UNKNOWN")return Z;if(q!=="CONN_UNKNOWN")return q}};
CF6=function(){var q=wX8();if(q!=null&&q.effectiveType)return eW2.hasOwnProperty(q.effectiveType)?eW2[q.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.Pg=function(){try{return _.CY(),!0}catch(q){return!1}};
_.CY=function(q){if(_.zj("DATASYNC_ID")!==void 0)return _.zj("DATASYNC_ID");throw new _.df("Datasync ID not set",q===void 0?"unknown":q);};
_.VL=function(q){this.mechanism=q};
Ok=function(q){this.mechanism=q};
Hg=function(q){this.storage_=q;this.cachedIsStorageAvailable_=null};
PF9=function(){var q=null;try{q=_.$1.localStorage||null}catch(Z){}Hg.call(this,q)};
d9X=function(){var q=null;try{q=_.$1.sessionStorage||null}catch(Z){}Hg.call(this,q)};
Wg=function(q,Z){this.mechanism_=q;this.JSC$8408_prefix_=Z+"::"};
_.VZ2=function(q){var Z=new PF9;return Z.isAvailable()?q?new Wg(Z,q):Z:null};
_.Oz2=function(q){var Z=new d9X;return Z.isAvailable()?q?new Wg(Z,q):Z:null};
WST=function(){var q;return(q=Hz2())==null?void 0:q.get("LAST_RESULT_ENTRY_KEY",!0)};
_.LY=function(q){oON||(_.oR?_.oR.logError(q):(_.up.push({type:"ERROR",payload:q}),_.up.length>10&&_.up.shift()))};
ST=function(q,Z){oON||(_.oR?_.oR.logEvent(q,Z):(_.up.push({type:"EVENT",eventType:q,payload:Z}),_.up.length>10&&_.up.shift()))};
vg=function(q){if(q.indexOf(":")>=0)throw Error("Oc");};
jT=function(q){return q.substr(0,q.indexOf(":"))||q};
SE2=function(){return(uRz||LST)&&tm("applewebkit")&&!tm("version")&&(!tm("safari")||tm("gsa/"))};
tm=function(q){var Z=_.jO();return Z?Z.toLowerCase().indexOf(q)>=0:!1};
tZ8=function(q,Z,w,r){Z=jT(Z);var Y=q instanceof Error?q:Error("Pc`"+q);if(Y instanceof RR)return Y;q={objectStoreNames:w,dbName:Z,dbVersion:r};if(Y.name==="QuotaExceededError")return new RR("QUOTA_EXCEEDED",q);if(_.bp&&Y.name==="UnknownError")return new RR("QUOTA_MAYBE_EXCEEDED",q);if(Y instanceof vO1)return new RR("MISSING_INDEX",Object.assign({},q,{objectStore:Y.objectStore,index:Y.index}));if(Y.name==="InvalidStateError"&&jZj.some(function(C){return Y.message.includes(C)}))return new RR("EXECUTE_TRANSACTION_ON_CLOSED_DB",
q);
if(Y.name==="AbortError")return new RR("UNKNOWN_ABORT",q,Y.message);Y.args=[Object.assign({},q,{name:"IdbError",originalName:Y.name})];Y.level="WARNING";return Y};
Jm=function(q,Z,w){var r=WST();return new RR("IDB_NOT_SUPPORTED",{context:{caller:q,publicName:Z,version:w,hasSucceededOnce:r==null?void 0:r.hasSucceededOnce}})};
RWz=function(q){if(!q)throw Error();throw q;};
bzX=function(q){return q};
J0T=function(q,Z,w){var r=function(){try{q.removeEventListener("success",Y),q.removeEventListener("error",C)}catch(d){}},Y=function(){Z(q.result);
r()},C=function(){w(q.error);
r()};
q.addEventListener("success",Y);q.addEventListener("error",C)};
zWT=function(q){return new Promise(function(Z,w){J0T(q,Z,w)})};
aR=function(q){return new zO(new Bg(function(Z,w){J0T(q,Z,w)}))};
Btj=function(q,Z){return new zO(new Bg(function(w,r){var Y=function(){var C=q?Z(q):null;C?C.then(function(d){q=d;Y()},r):w()};
Y()}))};
nO8=function(q,Z,w){return new Promise(function(r,Y){var C=Z!==void 0?self.indexedDB.open(q,Z):self.indexedDB.open(q);var d=w.blocked,O=w.blocking,H=w.terminated,L=w.upgrade,S=w.closed,v,R=function(){v||(v=new nY(C.result,{closed:S}));return v};
C.addEventListener("upgradeneeded",function(B){try{if(B.newVersion===null)throw Error("Uc");if(C.transaction===null)throw Error("Vc");B.dataLoss&&B.dataLoss!=="none"&&ST("IDB_DATA_CORRUPTED",{reason:B.dataLossMessage||"unknown reason",dbName:jT(q)});var n=R(),x=new akz(C.transaction);L&&L(n,function(K){return B.oldVersion<K&&B.newVersion>=K},x);
x.done.catch(function(K){Y(K)})}catch(K){Y(K)}});
C.addEventListener("success",function(){var B=C.result;O&&B.addEventListener("versionchange",function(){O(R())});
B.addEventListener("close",function(){ST("IDB_UNEXPECTEDLY_CLOSED",{dbName:jT(q),dbVersion:B.version});H&&H()});
r(R())});
C.addEventListener("error",function(){Y(C.error)});
d&&C.addEventListener("blocked",function(){d()})})};
QZ9=function(q,Z,w){w=w===void 0?{}:w;return nO8(q,Z,w)};
_.Ek=function(q,Z){Z=Z===void 0?{}:Z;var w,r,Y,C;return _.V(function(d){if(d.nextAddress==1)return _.d9(d,2),w=self.indexedDB.deleteDatabase(q),r=Z,(Y=r.blocked)&&w.addEventListener("blocked",function(){Y()}),_.W(d,zWT(w),4);
if(d.nextAddress!=2)return _.QL(d,0);C=_.o3(d);throw tZ8(C,q,"",-1);})};
x9j=function(q,Z){var w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,_.xr(EO9,Z),2);w=r.yieldResult;return r.return(_.TO(w,["databases"],{enableRetries:!0,mode:"readwrite"},function(Y){var C=Y.objectStore("databases");return C.get(q.actualName).then(function(d){if(d?q.actualName!==d.actualName||q.publicName!==d.publicName||q.userIdentifier!==d.userIdentifier:1)return C.put(q).then(function(){})})}))})};
_.Uk=function(q,Z){var w;return _.V(function(r){if(r.nextAddress==1)return q?_.W(r,_.xr(EO9,Z),2):r.return();w=r.yieldResult;return r.return(w.delete("databases",q))})};
_.Tt2=function(q,Z){var w,r;return _.V(function(Y){return Y.nextAddress==1?(w=[],_.W(Y,_.xr(EO9,Z),2)):Y.nextAddress!=3?(r=Y.yieldResult,_.W(Y,_.TO(r,["databases"],{enableRetries:!0,mode:"readonly"},function(C){w.length=0;return kr(C.objectStore("databases"),{},function(d){q(d.getValue())&&w.push(d.getValue());return d.continue()})}),3)):Y.return(w)})};
U9I=function(q,Z){return _.Tt2(function(w){return w.publicName===q&&w.userIdentifier!==void 0},Z)};
sZN=function(){var q,Z,w,r;return _.V(function(Y){switch(Y.nextAddress){case 1:q=WST();if((Z=q)==null?0:Z.hasSucceededOnce)return Y.return(!0);var C;if(C=k92)C=/WebKit\/([0-9]+)/.exec(_.jO()),C=!!(C&&parseInt(C[1],10)>=600);C&&(C=/WebKit\/([0-9]+)/.exec(_.jO()),C=!(C&&parseInt(C[1],10)>=602));if(C||_.KY)return Y.return(!1);try{if(w=self,!(w.indexedDB&&w.IDBIndex&&w.IDBKeyRange&&w.IDBObjectStore))return Y.return(!1)}catch(d){return Y.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return Y.return(!1);
_.d9(Y,2);r={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.W(Y,x9j(r,KST),4);case 4:return _.W(Y,_.Uk("yt-idb-test-do-not-use",KST),5);case 5:return Y.return(!0);case 2:return _.o3(Y),Y.return(!1)}})};
c0e=function(){if(Ik1!==void 0)return Ik1;oON=!0;return Ik1=sZN().then(function(q){oON=!1;var Z;if((Z=Hz2())!=null&&Z.expiringStorage_){var w;Z={hasSucceededOnce:((w=WST())==null?void 0:w.hasSucceededOnce)||q};var r;(r=Hz2())==null||r.set("LAST_RESULT_ENTRY_KEY",Z,2592E3,!0)}return q})};
sk=function(){return _.Eq("ytglobal.idbToken_")||void 0};
_.cg=function(){var q=sk();return q?Promise.resolve(q):c0e().then(function(Z){(Z=Z?KST:void 0)&&_.IR("ytglobal.idbToken_",Z);return Z})};
MZT=function(q){if(!_.Pg())throw q=new RR("AUTH_INVALID",{dbName:q}),_.LY(q),q;var Z=_.CY();return{actualName:q+":"+Z,publicName:q,userIdentifier:Z}};
FS1=function(q,Z,w,r){var Y,C,d,O,H,L;return _.V(function(S){switch(S.nextAddress){case 1:return C=(Y=Error().stack)!=null?Y:"",_.W(S,_.cg(),2);case 2:d=S.yieldResult;if(!d)throw O=Jm("openDbImpl",q,Z),_.b("ytidb_async_stack_killswitch")||(O.stack=O.stack+"\n"+C.substring(C.indexOf("\n")+1)),_.LY(O),O;vg(q);H=w?{actualName:q,publicName:q,userIdentifier:void 0}:MZT(q);_.d9(S,3);return _.W(S,x9j(H,d),5);case 5:return _.W(S,QZ9(H.actualName,Z,r),6);case 6:return S.return(S.yieldResult);case 3:return L=
_.o3(S),_.d9(S,7),_.W(S,_.Uk(H.actualName,d),9);case 9:_.QL(S,8);break;case 7:_.o3(S);case 8:throw L;}})};
Nt8=function(q,Z,w){w=w===void 0?{}:w;return FS1(q,Z,!1,w)};
lk1=function(q,Z,w){w=w===void 0?{}:w;return FS1(q,Z,!0,w)};
G92=function(q,Z){Z=Z===void 0?{}:Z;var w,r;return _.V(function(Y){if(Y.nextAddress==1)return _.W(Y,_.cg(),2);if(Y.nextAddress!=3){w=Y.yieldResult;if(!w)return Y.return();vg(q);r=MZT(q);return _.W(Y,_.Ek(r.actualName,Z),3)}return _.W(Y,_.Uk(r.actualName,w),0)})};
pXz=function(q,Z,w){q=q.map(function(r){return _.V(function(Y){return Y.nextAddress==1?_.W(Y,_.Ek(r.actualName,Z),2):_.W(Y,_.Uk(r.actualName,w),0)})});
return Promise.all(q).then(function(){})};
XX9=function(q){var Z=Z===void 0?{}:Z;var w,r;return _.V(function(Y){if(Y.nextAddress==1)return _.W(Y,_.cg(),2);if(Y.nextAddress!=3){w=Y.yieldResult;if(!w)return Y.return();vg(q);return _.W(Y,U9I(q,w),3)}r=Y.yieldResult;return _.W(Y,pXz(r,Z,w),0)})};
m9N=function(q,Z){Z=Z===void 0?{}:Z;var w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,_.cg(),2);if(r.nextAddress!=3){w=r.yieldResult;if(!w)return r.return();vg(q);return _.W(r,_.Ek(q,Z),3)}return _.W(r,_.Uk(q,w),0)})};
M4=function(q,Z){return A0j(q,Z)};
D92=function(q){return _.xr(fk2(),q)};
hWe=function(q,Z,w,r){var Y,C,d;return _.V(function(O){switch(O.nextAddress){case 1:return Y={config:q,hashData:Z,timestamp:r!==void 0?r:(0,_.lp)()},_.W(O,D92(w),2);case 2:return C=O.yieldResult,_.W(O,C.clear("hotConfigStore"),3);case 3:return _.W(O,C.put("hotConfigStore",Y),4);case 4:return d=O.yieldResult,O.return(d)}})};
y09=function(q,Z,w,r,Y){var C,d,O;return _.V(function(H){switch(H.nextAddress){case 1:return C={config:q,hashData:Z,configData:w,timestamp:Y!==void 0?Y:(0,_.lp)()},_.W(H,D92(r),2);case 2:return d=H.yieldResult,_.W(H,d.clear("coldConfigStore"),3);case 3:return _.W(H,d.put("coldConfigStore",C),4);case 4:return O=H.yieldResult,H.return(O)}})};
izI=function(q){var Z,w;return _.V(function(r){return r.nextAddress==1?_.W(r,D92(q),2):r.nextAddress!=3?(Z=r.yieldResult,w=void 0,_.W(r,_.TO(Z,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(Y){return _.GO(Y.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(C){w=C.getValue()})}),3)):r.return(w)})};
gOT=function(q){var Z,w;return _.V(function(r){return r.nextAddress==1?_.W(r,D92(q),2):r.nextAddress!=3?(Z=r.yieldResult,w=void 0,_.W(r,_.TO(Z,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(Y){return _.GO(Y.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(C){w=C.getValue()})}),3)):r.return(w)})};
q8T=function(){return _.V(function(q){return _.W(q,XX9("ytGcfConfig"),0)})};
Zo9=function(){return"INNERTUBE_API_KEY"in _.Rz&&"INNERTUBE_API_VERSION"in _.Rz};
_.pY=function(){return{innertubeApiKey:_.zj("INNERTUBE_API_KEY"),innertubeApiVersion:_.zj("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.zj("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.zj("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.zj("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.zj("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.zj("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.zj("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.zj("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.BF("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.BF("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.zj("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.Pq9=function(q){var Z={client:{hl:q.innertubeContextHostLanguage,gl:q.innertubeContextGeoLocation,clientName:q.innertubeContextClientName,clientVersion:q.innertubeContextClientVersion,configInfo:q.innertubeContextClientConfigInfo}};navigator.userAgent&&(Z.client.userAgent=String(navigator.userAgent));var w=_.$1.devicePixelRatio;w&&w!=1&&(Z.client.screenDensityFloat=String(w));w=zA1();w!==""&&(Z.client.experimentsToken=w);w=BTX();w.length>0&&(Z.request={internalExperimentFlags:w});wPT(q,void 0,Z);
rr6(void 0,Z);Y81(void 0,Z);$Z8(q,void 0,Z);eyj(void 0,Z);_.b("start_client_gcf")&&Cq9(void 0,Z);_.zj("DELEGATED_SESSION_ID")&&!_.b("pageid_as_header_web")&&(Z.user={onBehalfOfUser:_.zj("DELEGATED_SESSION_ID")});!_.b("fill_delegate_context_in_gel_killswitch")&&(q=_.zj("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Z.user=Object.assign({},Z.user,{serializedDelegationContext:q}));q=_.zj("INNERTUBE_CONTEXT");var r;if(_.b("enable_persistent_device_token")&&(q==null?0:(r=q.client)==null?0:r.rolloutToken)){var Y;
Z.client.rolloutToken=q==null?void 0:(Y=q.client)==null?void 0:Y.rolloutToken}r=Object;Y=r.assign;q=Z.client;w={};for(var C=_.P(Object.entries(_.kT(_.zj("DEVICE","")))),d=C.next();!d.done;d=C.next()){var O=_.P(d.value);d=O.next().value;O=O.next().value;d==="cbrand"?w.deviceMake=O:d==="cmodel"?w.deviceModel=O:d==="cbr"?w.browserName=O:d==="cbrver"?w.browserVersion=O:d==="cos"?w.osName=O:d==="cosver"?w.osVersion=O:d==="cplatform"&&(w.platform=O)}Z.client=Y.call(r,q,w);return Z};
wPT=function(q,Z,w){q=q.innertubeContextClientName;if(q==="WEB"||q==="MWEB"||q===1||q===2)if(Z){w=_.Xy(Z,dZT,96)||new dZT;var r=VaN();r=Object.keys(OoT).indexOf(r);r=r===-1?null:r;r!==null&&_.mh(w,3,r);_.CA(Z,96,w)}else w&&(w.client.mainAppWebInfo=(r=w.client.mainAppWebInfo)!=null?r:{},w.client.mainAppWebInfo.webDisplayMode=VaN())};
rr6=function(q,Z){var w=_.Eq("yt.embedded_player.embed_url");w&&(q?(Z=_.Xy(q,HoI,7)||new HoI,_.uM(Z,4,w),_.CA(q,7,Z)):Z&&(Z.thirdParty={embedUrl:w}))};
Y81=function(q,Z){var w;if(_.b("web_log_memory_total_kbytes")&&((w=_.$1.navigator)==null?0:w.deviceMemory)){var r;w=(r=_.$1.navigator)==null?void 0:r.deviceMemory;q?_.Am(q,95,$8(w*1E6)):Z&&(Z.client.memoryTotalKbytes=""+w*1E6)}};
$Z8=function(q,Z,w){if(q.appInstallData)if(Z){var r;w=(r=_.Xy(Z,fY,62))!=null?r:new fY;_.uM(w,6,q.appInstallData);_.CA(Z,62,w)}else w&&(w.client.configInfo=w.client.configInfo||{},w.client.configInfo.appInstallData=q.appInstallData)};
eyj=function(q,Z){var w=_.$9j();w&&(q?_.mh(q,61,W22[w]):Z&&(Z.client.connectionType=w));_.b("web_log_effective_connection_type")&&(w=CF6())&&(q?_.mh(q,94,oz8[w]):Z&&(Z.client.effectiveConnectionType=w))};
_.S8j=function(q,Z,w){w=w===void 0?{}:w;var r={};_.zj("EOM_VISITOR_DATA")?r={"X-Goog-EOM-Visitor-Id":_.zj("EOM_VISITOR_DATA")}:r={"X-Goog-Visitor-Id":w.visitorData||_.zj("VISITOR_DATA","")};if(Z&&Z.includes("www.youtube-nocookie.com"))return r;Z=w.authorization||_.zj("AUTHORIZATION");Z||(q?Z="Bearer "+_.Eq("gapi.auth.getToken")().access_token:(uNe.instance||(uNe.instance=new uNe),q=L28(),_.b("pageid_as_header_web")||delete q["X-Goog-PageId"],r=Object.assign({},r,q)));Z&&(r.Authorization=Z);return r};
Cq9=function(q,Z){var w=vzN();if(w){var r=w.coldConfigData,Y=w.coldHashData;w=w.hotHashData;if(q){var C;Z=(C=_.Xy(q,fY,62))!=null?C:new fY;r=_.uM(Z,1,r);_.uM(r,3,Y).setHotHashData(w);_.CA(q,62,Z)}else Z&&(Z.client.configInfo=Z.client.configInfo||{},r&&(Z.client.configInfo.coldConfigData=r),Y&&(Z.client.configInfo.coldHashData=Y),w&&(Z.client.configInfo.hotHashData=w))}};
DL=function(q){for(var Z=q.length;--Z>=0;)q[Z]=0};
jJ6=function(q,Z,w,r,Y){this.static_tree=q;this.extra_bits=Z;this.extra_base=w;this.elems=r;this.max_length=Y;this.has_stree=q&&q.length};
taT=function(q,Z){this.dyn_tree=q;this.max_code=0;this.stat_desc=Z};
hm=function(q,Z){q.pending_buf[q.pending++]=Z&255;q.pending_buf[q.pending++]=Z>>>8&255};
yL=function(q,Z,w){q.bi_valid>16-w?(q.bi_buf|=Z<<q.bi_valid&65535,hm(q,q.bi_buf),q.bi_buf=Z>>16-q.bi_valid,q.bi_valid+=w-16):(q.bi_buf|=Z<<q.bi_valid&65535,q.bi_valid+=w)};
ip=function(q,Z,w){yL(q,w[Z*2],w[Z*2+1])};
Ry2=function(q,Z){var w=0;do w|=q&1,q>>>=1,w<<=1;while(--Z>0);return w>>>1};
bo9=function(q,Z,w){var r=Array(16),Y=0,C;for(C=1;C<=15;C++)r[C]=Y=Y+w[C-1]<<1;for(w=0;w<=Z;w++)Y=q[w*2+1],Y!==0&&(q[w*2]=Ry2(r[Y]++,Y))};
Jr2=function(q){var Z;for(Z=0;Z<286;Z++)q.dyn_ltree[Z*2]=0;for(Z=0;Z<30;Z++)q.dyn_dtree[Z*2]=0;for(Z=0;Z<19;Z++)q.bl_tree[Z*2]=0;q.dyn_ltree[512]=1;q.opt_len=q.static_len=0;q.last_lit=q.matches=0};
zyT=function(q){q.bi_valid>8?hm(q,q.bi_buf):q.bi_valid>0&&(q.pending_buf[q.pending++]=q.bi_buf);q.bi_buf=0;q.bi_valid=0};
B3N=function(q,Z,w){zyT(q);hm(q,w);hm(q,~w);gf.arraySet(q.pending_buf,q.window,Z,w,q.pending);q.pending+=w};
a5z=function(q,Z,w,r){var Y=Z*2,C=w*2;return q[Y]<q[C]||q[Y]===q[C]&&r[Z]<=r[w]};
nze=function(q,Z,w){for(var r=q.heap[w],Y=w<<1;Y<=q.heap_len;){Y<q.heap_len&&a5z(Z,q.heap[Y+1],q.heap[Y],q.depth)&&Y++;if(a5z(Z,r,q.heap[Y],q.depth))break;q.heap[w]=q.heap[Y];w=Y;Y<<=1}q.heap[w]=r};
UZT=function(q,Z,w){var r=0;if(q.last_lit!==0){do{var Y=q.pending_buf[q.d_buf+r*2]<<8|q.pending_buf[q.d_buf+r*2+1];var C=q.pending_buf[q.l_buf+r];r++;if(Y===0)ip(q,C,Z);else{var d=qN[C];ip(q,d+256+1,Z);var O=QJ2[d];O!==0&&(C-=Ez2[d],yL(q,C,O));Y--;d=Y<256?Z$[Y]:Z$[256+(Y>>>7)];ip(q,d,w);O=xZj[d];O!==0&&(Y-=T39[d],yL(q,Y,O))}}while(r<q.last_lit)}ip(q,256,Z)};
kIX=function(q,Z){var w=Z.dyn_tree,r=Z.stat_desc.static_tree,Y=Z.stat_desc.has_stree,C=Z.stat_desc.elems,d,O=-1;q.heap_len=0;q.heap_max=573;for(d=0;d<C;d++)w[d*2]!==0?(q.heap[++q.heap_len]=O=d,q.depth[d]=0):w[d*2+1]=0;for(;q.heap_len<2;){var H=q.heap[++q.heap_len]=O<2?++O:0;w[H*2]=1;q.depth[H]=0;q.opt_len--;Y&&(q.static_len-=r[H*2+1])}Z.max_code=O;for(d=q.heap_len>>1;d>=1;d--)nze(q,w,d);H=C;do d=q.heap[1],q.heap[1]=q.heap[q.heap_len--],nze(q,w,1),r=q.heap[1],q.heap[--q.heap_max]=d,q.heap[--q.heap_max]=
r,w[H*2]=w[d*2]+w[r*2],q.depth[H]=(q.depth[d]>=q.depth[r]?q.depth[d]:q.depth[r])+1,w[d*2+1]=w[r*2+1]=H,q.heap[1]=H++,nze(q,w,1);while(q.heap_len>=2);q.heap[--q.heap_max]=q.heap[1];d=Z.dyn_tree;H=Z.max_code;r=Z.stat_desc.static_tree;Y=Z.stat_desc.has_stree;C=Z.stat_desc.extra_bits;var L=Z.stat_desc.extra_base,S=Z.stat_desc.max_length,v,R=0;for(v=0;v<=15;v++)q.bl_count[v]=0;d[q.heap[q.heap_max]*2+1]=0;for(Z=q.heap_max+1;Z<573;Z++){var B=q.heap[Z];v=d[d[B*2+1]*2+1]+1;v>S&&(v=S,R++);d[B*2+1]=v;if(!(B>
H)){q.bl_count[v]++;var n=0;B>=L&&(n=C[B-L]);var x=d[B*2];q.opt_len+=x*(v+n);Y&&(q.static_len+=x*(r[B*2+1]+n))}}if(R!==0){do{for(v=S-1;q.bl_count[v]===0;)v--;q.bl_count[v]--;q.bl_count[v+1]+=2;q.bl_count[S]--;R-=2}while(R>0);for(v=S;v!==0;v--)for(B=q.bl_count[v];B!==0;)r=q.heap[--Z],r>H||(d[r*2+1]!==v&&(q.opt_len+=(v-d[r*2+1])*d[r*2],d[r*2+1]=v),B--)}bo9(w,O,q.bl_count)};
K2O=function(q,Z,w){var r,Y=-1,C=Z[1],d=0,O=7,H=4;C===0&&(O=138,H=3);Z[(w+1)*2+1]=65535;for(r=0;r<=w;r++){var L=C;C=Z[(r+1)*2+1];++d<O&&L===C||(d<H?q.bl_tree[L*2]+=d:L!==0?(L!==Y&&q.bl_tree[L*2]++,q.bl_tree[32]++):d<=10?q.bl_tree[34]++:q.bl_tree[36]++,d=0,Y=L,C===0?(O=138,H=3):L===C?(O=6,H=3):(O=7,H=4))}};
sJ9=function(q,Z,w){var r,Y=-1,C=Z[1],d=0,O=7,H=4;C===0&&(O=138,H=3);for(r=0;r<=w;r++){var L=C;C=Z[(r+1)*2+1];if(!(++d<O&&L===C)){if(d<H){do ip(q,L,q.bl_tree);while(--d!==0)}else L!==0?(L!==Y&&(ip(q,L,q.bl_tree),d--),ip(q,16,q.bl_tree),yL(q,d-3,2)):d<=10?(ip(q,17,q.bl_tree),yL(q,d-3,3)):(ip(q,18,q.bl_tree),yL(q,d-11,7));d=0;Y=L;C===0?(O=138,H=3):L===C?(O=6,H=3):(O=7,H=4)}}};
I51=function(q){var Z=4093624447,w;for(w=0;w<=31;w++,Z>>>=1)if(Z&1&&q.dyn_ltree[w*2]!==0)return 0;if(q.dyn_ltree[18]!==0||q.dyn_ltree[20]!==0||q.dyn_ltree[26]!==0)return 1;for(w=32;w<256;w++)if(q.dyn_ltree[w*2]!==0)return 1;return 0};
wI=function(q,Z,w){q.pending_buf[q.d_buf+q.last_lit*2]=Z>>>8&255;q.pending_buf[q.d_buf+q.last_lit*2+1]=Z&255;q.pending_buf[q.l_buf+q.last_lit]=w&255;q.last_lit++;Z===0?q.dyn_ltree[w*2]++:(q.matches++,Z--,q.dyn_ltree[(qN[w]+256+1)*2]++,q.dyn_dtree[(Z<256?Z$[Z]:Z$[256+(Z>>>7)])*2]++);return q.last_lit===q.lit_bufsize-1};
YY=function(q,Z){q.msg=rI[Z];return Z};
$Y=function(q){for(var Z=q.length;--Z>=0;)q[Z]=0};
eJ=function(q){var Z=q.state,w=Z.pending;w>q.avail_out&&(w=q.avail_out);w!==0&&(gf.arraySet(q.output,Z.pending_buf,Z.pending_out,w,q.next_out),q.next_out+=w,Z.pending_out+=w,q.total_out+=w,q.avail_out-=w,Z.pending-=w,Z.pending===0&&(Z.pending_out=0))};
dI=function(q,Z){var w=q.block_start>=0?q.block_start:-1,r=q.strstart-q.block_start,Y=0;if(q.level>0){q.strm.data_type===2&&(q.strm.data_type=I51(q));kIX(q,q.l_desc);kIX(q,q.d_desc);K2O(q,q.dyn_ltree,q.l_desc.max_code);K2O(q,q.dyn_dtree,q.d_desc.max_code);kIX(q,q.bl_desc);for(Y=18;Y>=3&&q.bl_tree[cr9[Y]*2+1]===0;Y--);q.opt_len+=3*(Y+1)+5+5+4;var C=q.opt_len+3+7>>>3;var d=q.static_len+3+7>>>3;d<=C&&(C=d)}else C=d=r+5;if(r+4<=C&&w!==-1)yL(q,Z?1:0,3),B3N(q,w,r);else if(q.strategy===4||d===C)yL(q,2+(Z?
1:0),3),UZT(q,CB,P5);else{yL(q,4+(Z?1:0),3);w=q.l_desc.max_code+1;r=q.d_desc.max_code+1;Y+=1;yL(q,w-257,5);yL(q,r-1,5);yL(q,Y-4,4);for(C=0;C<Y;C++)yL(q,q.bl_tree[cr9[C]*2+1],3);sJ9(q,q.dyn_ltree,w-1);sJ9(q,q.dyn_dtree,r-1);UZT(q,q.dyn_ltree,q.dyn_dtree)}Jr2(q);Z&&zyT(q);q.block_start=q.strstart;eJ(q.strm)};
VP=function(q,Z){q.pending_buf[q.pending++]=Z};
OG=function(q,Z){q.pending_buf[q.pending++]=Z>>>8&255;q.pending_buf[q.pending++]=Z&255};
Ma2=function(q,Z){var w=q.max_chain_length,r=q.strstart,Y=q.prev_length,C=q.nice_match,d=q.strstart>q.w_size-262?q.strstart-(q.w_size-262):0,O=q.window,H=q.w_mask,L=q.prev,S=q.strstart+258,v=O[r+Y-1],R=O[r+Y];q.prev_length>=q.good_match&&(w>>=2);C>q.lookahead&&(C=q.lookahead);do{var B=Z;if(O[B+Y]===R&&O[B+Y-1]===v&&O[B]===O[r]&&O[++B]===O[r+1]){r+=2;for(B++;O[++r]===O[++B]&&O[++r]===O[++B]&&O[++r]===O[++B]&&O[++r]===O[++B]&&O[++r]===O[++B]&&O[++r]===O[++B]&&O[++r]===O[++B]&&O[++r]===O[++B]&&r<S;);
B=258-(S-r);r=S-258;if(B>Y){q.match_start=Z;Y=B;if(B>=C)break;v=O[r+Y-1];R=O[r+Y]}}}while((Z=L[Z&H])>d&&--w!==0);return Y<=q.lookahead?Y:q.lookahead};
W5=function(q){var Z=q.w_size,w;do{var r=q.window_size-q.lookahead-q.strstart;if(q.strstart>=Z+(Z-262)){gf.arraySet(q.window,q.window,Z,Z,0);q.match_start-=Z;q.strstart-=Z;q.block_start-=Z;var Y=w=q.hash_size;do{var C=q.head[--Y];q.head[Y]=C>=Z?C-Z:0}while(--w);Y=w=Z;do C=q.prev[--Y],q.prev[Y]=C>=Z?C-Z:0;while(--w);r+=Z}if(q.strm.avail_in===0)break;Y=q.strm;w=q.window;C=q.strstart+q.lookahead;var d=Y.avail_in;d>r&&(d=r);d===0?w=0:(Y.avail_in-=d,gf.arraySet(w,Y.input,Y.next_in,d,C),Y.state.wrap===
1?Y.adler=F26(Y.adler,w,d,C):Y.state.wrap===2&&(Y.adler=H5(Y.adler,w,d,C)),Y.next_in+=d,Y.total_in+=d,w=d);q.lookahead+=w;if(q.lookahead+q.insert>=3)for(r=q.strstart-q.insert,q.ins_h=q.window[r],q.ins_h=(q.ins_h<<q.hash_shift^q.window[r+1])&q.hash_mask;q.insert&&!(q.ins_h=(q.ins_h<<q.hash_shift^q.window[r+3-1])&q.hash_mask,q.prev[r&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=r,r++,q.insert--,q.lookahead+q.insert<3););}while(q.lookahead<262&&q.strm.avail_in!==0)};
N3T=function(q,Z){for(var w;;){if(q.lookahead<262){W5(q);if(q.lookahead<262&&Z===0)return 1;if(q.lookahead===0)break}w=0;q.lookahead>=3&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,w=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart);w!==0&&q.strstart-w<=q.w_size-262&&(q.match_length=Ma2(q,w));if(q.match_length>=3)if(w=wI(q,q.strstart-q.match_start,q.match_length-3),q.lookahead-=q.match_length,q.match_length<=q.max_lazy_match&&q.lookahead>=3){q.match_length--;
do q.strstart++,q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart;while(--q.match_length!==0);q.strstart++}else q.strstart+=q.match_length,q.match_length=0,q.ins_h=q.window[q.strstart],q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+1])&q.hash_mask;else w=wI(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++;if(w&&(dI(q,!1),q.strm.avail_out===0))return 1}q.insert=q.strstart<2?q.strstart:2;return Z===4?(dI(q,
!0),q.strm.avail_out===0?3:4):q.last_lit&&(dI(q,!1),q.strm.avail_out===0)?1:2};
o$=function(q,Z){for(var w,r;;){if(q.lookahead<262){W5(q);if(q.lookahead<262&&Z===0)return 1;if(q.lookahead===0)break}w=0;q.lookahead>=3&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,w=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart);q.prev_length=q.match_length;q.prev_match=q.match_start;q.match_length=2;w!==0&&q.prev_length<q.max_lazy_match&&q.strstart-w<=q.w_size-262&&(q.match_length=Ma2(q,w),q.match_length<=5&&(q.strategy===1||q.match_length===3&&
q.strstart-q.match_start>4096)&&(q.match_length=2));if(q.prev_length>=3&&q.match_length<=q.prev_length){r=q.strstart+q.lookahead-3;w=wI(q,q.strstart-1-q.prev_match,q.prev_length-3);q.lookahead-=q.prev_length-1;q.prev_length-=2;do++q.strstart<=r&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart);while(--q.prev_length!==0);q.match_available=0;q.match_length=2;q.strstart++;if(w&&(dI(q,!1),q.strm.avail_out===0))return 1}else if(q.match_available){if((w=
wI(q,0,q.window[q.strstart-1]))&&dI(q,!1),q.strstart++,q.lookahead--,q.strm.avail_out===0)return 1}else q.match_available=1,q.strstart++,q.lookahead--}q.match_available&&(wI(q,0,q.window[q.strstart-1]),q.match_available=0);q.insert=q.strstart<2?q.strstart:2;return Z===4?(dI(q,!0),q.strm.avail_out===0?3:4):q.last_lit&&(dI(q,!1),q.strm.avail_out===0)?1:2};
l5O=function(q,Z){for(var w,r,Y,C=q.window;;){if(q.lookahead<=258){W5(q);if(q.lookahead<=258&&Z===0)return 1;if(q.lookahead===0)break}q.match_length=0;if(q.lookahead>=3&&q.strstart>0&&(r=q.strstart-1,w=C[r],w===C[++r]&&w===C[++r]&&w===C[++r])){for(Y=q.strstart+258;w===C[++r]&&w===C[++r]&&w===C[++r]&&w===C[++r]&&w===C[++r]&&w===C[++r]&&w===C[++r]&&w===C[++r]&&r<Y;);q.match_length=258-(Y-r);q.match_length>q.lookahead&&(q.match_length=q.lookahead)}q.match_length>=3?(w=wI(q,1,q.match_length-3),q.lookahead-=
q.match_length,q.strstart+=q.match_length,q.match_length=0):(w=wI(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++);if(w&&(dI(q,!1),q.strm.avail_out===0))return 1}q.insert=0;return Z===4?(dI(q,!0),q.strm.avail_out===0?3:4):q.last_lit&&(dI(q,!1),q.strm.avail_out===0)?1:2};
GIT=function(q,Z){for(var w;;){if(q.lookahead===0&&(W5(q),q.lookahead===0)){if(Z===0)return 1;break}q.match_length=0;w=wI(q,0,q.window[q.strstart]);q.lookahead--;q.strstart++;if(w&&(dI(q,!1),q.strm.avail_out===0))return 1}q.insert=0;return Z===4?(dI(q,!0),q.strm.avail_out===0?3:4):q.last_lit&&(dI(q,!1),q.strm.avail_out===0)?1:2};
uh=function(q,Z,w,r,Y){this.good_length=q;this.max_lazy=Z;this.nice_length=w;this.max_chain=r;this.func=Y};
pPj=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 gf.Buf16(1146);this.dyn_dtree=new gf.Buf16(122);this.bl_tree=new gf.Buf16(78);$Y(this.dyn_ltree);$Y(this.dyn_dtree);$Y(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new gf.Buf16(16);this.heap=new gf.Buf16(573);$Y(this.heap);this.heap_max=this.heap_len=0;this.depth=new gf.Buf16(573);$Y(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};
XP2=function(q,Z){if(!q||!q.state||Z>5||Z<0)return q?YY(q,-2):-2;var w=q.state;if(!q.output||!q.input&&q.avail_in!==0||w.status===666&&Z!==4)return YY(q,q.avail_out===0?-5:-2);w.strm=q;var r=w.last_flush;w.last_flush=Z;if(w.status===42)if(w.wrap===2)q.adler=0,VP(w,31),VP(w,139),VP(w,8),w.gzhead?(VP(w,(w.gzhead.text?1:0)+(w.gzhead.hcrc?2:0)+(w.gzhead.extra?4:0)+(w.gzhead.name?8:0)+(w.gzhead.comment?16:0)),VP(w,w.gzhead.time&255),VP(w,w.gzhead.time>>8&255),VP(w,w.gzhead.time>>16&255),VP(w,w.gzhead.time>>
24&255),VP(w,w.level===9?2:w.strategy>=2||w.level<2?4:0),VP(w,w.gzhead.os&255),w.gzhead.extra&&w.gzhead.extra.length&&(VP(w,w.gzhead.extra.length&255),VP(w,w.gzhead.extra.length>>8&255)),w.gzhead.hcrc&&(q.adler=H5(q.adler,w.pending_buf,w.pending,0)),w.gzindex=0,w.status=69):(VP(w,0),VP(w,0),VP(w,0),VP(w,0),VP(w,0),VP(w,w.level===9?2:w.strategy>=2||w.level<2?4:0),VP(w,3),w.status=113);else{var Y=8+(w.w_bits-8<<4)<<8;Y|=(w.strategy>=2||w.level<2?0:w.level<6?1:w.level===6?2:3)<<6;w.strstart!==0&&(Y|=
32);w.status=113;OG(w,Y+(31-Y%31));w.strstart!==0&&(OG(w,q.adler>>>16),OG(w,q.adler&65535));q.adler=1}if(w.status===69)if(w.gzhead.extra){for(Y=w.pending;w.gzindex<(w.gzhead.extra.length&65535)&&(w.pending!==w.pending_buf_size||(w.gzhead.hcrc&&w.pending>Y&&(q.adler=H5(q.adler,w.pending_buf,w.pending-Y,Y)),eJ(q),Y=w.pending,w.pending!==w.pending_buf_size));)VP(w,w.gzhead.extra[w.gzindex]&255),w.gzindex++;w.gzhead.hcrc&&w.pending>Y&&(q.adler=H5(q.adler,w.pending_buf,w.pending-Y,Y));w.gzindex===w.gzhead.extra.length&&
(w.gzindex=0,w.status=73)}else w.status=73;if(w.status===73)if(w.gzhead.name){Y=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>Y&&(q.adler=H5(q.adler,w.pending_buf,w.pending-Y,Y)),eJ(q),Y=w.pending,w.pending===w.pending_buf_size)){var C=1;break}C=w.gzindex<w.gzhead.name.length?w.gzhead.name.charCodeAt(w.gzindex++)&255:0;VP(w,C)}while(C!==0);w.gzhead.hcrc&&w.pending>Y&&(q.adler=H5(q.adler,w.pending_buf,w.pending-Y,Y));C===0&&(w.gzindex=0,w.status=91)}else w.status=91;if(w.status===
91)if(w.gzhead.comment){Y=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>Y&&(q.adler=H5(q.adler,w.pending_buf,w.pending-Y,Y)),eJ(q),Y=w.pending,w.pending===w.pending_buf_size)){C=1;break}C=w.gzindex<w.gzhead.comment.length?w.gzhead.comment.charCodeAt(w.gzindex++)&255:0;VP(w,C)}while(C!==0);w.gzhead.hcrc&&w.pending>Y&&(q.adler=H5(q.adler,w.pending_buf,w.pending-Y,Y));C===0&&(w.status=103)}else w.status=103;w.status===103&&(w.gzhead.hcrc?(w.pending+2>w.pending_buf_size&&eJ(q),
w.pending+2<=w.pending_buf_size&&(VP(w,q.adler&255),VP(w,q.adler>>8&255),q.adler=0,w.status=113)):w.status=113);if(w.pending!==0){if(eJ(q),q.avail_out===0)return w.last_flush=-1,0}else if(q.avail_in===0&&(Z<<1)-(Z>4?9:0)<=(r<<1)-(r>4?9:0)&&Z!==4)return YY(q,-5);if(w.status===666&&q.avail_in!==0)return YY(q,-5);if(q.avail_in!==0||w.lookahead!==0||Z!==0&&w.status!==666){r=w.strategy===2?GIT(w,Z):w.strategy===3?l5O(w,Z):LB[w.level].func(w,Z);if(r===3||r===4)w.status=666;if(r===1||r===3)return q.avail_out===
0&&(w.last_flush=-1),0;if(r===2&&(Z===1?(yL(w,2,3),ip(w,256,CB),w.bi_valid===16?(hm(w,w.bi_buf),w.bi_buf=0,w.bi_valid=0):w.bi_valid>=8&&(w.pending_buf[w.pending++]=w.bi_buf&255,w.bi_buf>>=8,w.bi_valid-=8)):Z!==5&&(yL(w,0,3),B3N(w,0,0),Z===3&&($Y(w.head),w.lookahead===0&&(w.strstart=0,w.block_start=0,w.insert=0))),eJ(q),q.avail_out===0))return w.last_flush=-1,0}if(Z!==4)return 0;if(w.wrap<=0)return 1;w.wrap===2?(VP(w,q.adler&255),VP(w,q.adler>>8&255),VP(w,q.adler>>16&255),VP(w,q.adler>>24&255),VP(w,
q.total_in&255),VP(w,q.total_in>>8&255),VP(w,q.total_in>>16&255),VP(w,q.total_in>>24&255)):(OG(w,q.adler>>>16),OG(w,q.adler&65535));eJ(q);w.wrap>0&&(w.wrap=-w.wrap);return w.pending!==0?0:1};
mZe=function(q){if(!(this instanceof mZe))return new mZe(q);q=this.options=gf.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},q||{});q.raw&&q.windowBits>0?q.windowBits=-q.windowBits:q.gzip&&q.windowBits>0&&q.windowBits<16&&(q.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new Are;this.strm.avail_out=0;var Z=this.strm;var w=q.level,r=q.method,Y=q.windowBits,C=q.memLevel,d=q.strategy;if(Z){var O=1;w===-1&&(w=6);Y<0?(O=0,Y=-Y):Y>15&&
(O=2,Y-=16);if(C<1||C>9||r!==8||Y<8||Y>15||w<0||w>9||d<0||d>4)Z=YY(Z,-2);else{Y===8&&(Y=9);var H=new pPj;Z.state=H;H.strm=Z;H.wrap=O;H.gzhead=null;H.w_bits=Y;H.w_size=1<<H.w_bits;H.w_mask=H.w_size-1;H.hash_bits=C+7;H.hash_size=1<<H.hash_bits;H.hash_mask=H.hash_size-1;H.hash_shift=~~((H.hash_bits+3-1)/3);H.window=new gf.Buf8(H.w_size*2);H.head=new gf.Buf16(H.hash_size);H.prev=new gf.Buf16(H.w_size);H.lit_bufsize=1<<C+6;H.pending_buf_size=H.lit_bufsize*4;H.pending_buf=new gf.Buf8(H.pending_buf_size);
H.d_buf=H.lit_bufsize;H.l_buf=3*H.lit_bufsize;H.level=w;H.strategy=d;H.method=r;if(Z&&Z.state){Z.total_in=Z.total_out=0;Z.data_type=2;w=Z.state;w.pending=0;w.pending_out=0;w.wrap<0&&(w.wrap=-w.wrap);w.status=w.wrap?42:113;Z.adler=w.wrap===2?0:1;w.last_flush=0;if(!f5N){r=Array(16);for(C=d=0;C<28;C++)for(Ez2[C]=d,Y=0;Y<1<<QJ2[C];Y++)qN[d++]=C;qN[d-1]=C;for(C=d=0;C<16;C++)for(T39[C]=d,Y=0;Y<1<<xZj[C];Y++)Z$[d++]=C;for(d>>=7;C<30;C++)for(T39[C]=d<<7,Y=0;Y<1<<xZj[C]-7;Y++)Z$[256+d++]=C;for(Y=0;Y<=15;Y++)r[Y]=
0;for(Y=0;Y<=143;)CB[Y*2+1]=8,Y++,r[8]++;for(;Y<=255;)CB[Y*2+1]=9,Y++,r[9]++;for(;Y<=279;)CB[Y*2+1]=7,Y++,r[7]++;for(;Y<=287;)CB[Y*2+1]=8,Y++,r[8]++;bo9(CB,287,r);for(Y=0;Y<30;Y++)P5[Y*2+1]=5,P5[Y*2]=Ry2(Y,5);DZT=new jJ6(CB,QJ2,257,286,15);hy2=new jJ6(P5,xZj,0,30,15);yr9=new jJ6([],io8,0,19,7);f5N=!0}w.l_desc=new taT(w.dyn_ltree,DZT);w.d_desc=new taT(w.dyn_dtree,hy2);w.bl_desc=new taT(w.bl_tree,yr9);w.bi_buf=0;w.bi_valid=0;Jr2(w);w=0}else w=YY(Z,-2);w===0&&(Z=Z.state,Z.window_size=2*Z.w_size,$Y(Z.head),
Z.max_lazy_match=LB[Z.level].max_lazy,Z.good_match=LB[Z.level].good_length,Z.nice_match=LB[Z.level].nice_length,Z.max_chain_length=LB[Z.level].max_chain,Z.strstart=0,Z.block_start=0,Z.lookahead=0,Z.insert=0,Z.match_length=Z.prev_length=2,Z.match_available=0,Z.ins_h=0);Z=w}}else Z=-2;if(Z!==0)throw Error(rI[Z]);q.header&&(Z=this.strm)&&Z.state&&Z.state.wrap===2&&(Z.state.gzhead=q.header);if(q.dictionary){var L;typeof q.dictionary==="string"?L=gz8(q.dictionary):qDI.call(q.dictionary)==="[object ArrayBuffer]"?
L=new Uint8Array(q.dictionary):L=q.dictionary;q=this.strm;C=L;d=C.length;if(q&&q.state)if(L=q.state,Z=L.wrap,Z===2||Z===1&&L.status!==42||L.lookahead)Z=-2;else{Z===1&&(q.adler=F26(q.adler,C,d,0));L.wrap=0;d>=L.w_size&&(Z===0&&($Y(L.head),L.strstart=0,L.block_start=0,L.insert=0),w=new gf.Buf8(L.w_size),gf.arraySet(w,C,d-L.w_size,L.w_size,0),C=w,d=L.w_size);w=q.avail_in;r=q.next_in;Y=q.input;q.avail_in=d;q.next_in=0;q.input=C;for(W5(L);L.lookahead>=3;){C=L.strstart;d=L.lookahead-2;do L.ins_h=(L.ins_h<<
L.hash_shift^L.window[C+3-1])&L.hash_mask,L.prev[C&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=C,C++;while(--d);L.strstart=C;L.lookahead=2;W5(L)}L.strstart+=L.lookahead;L.block_start=L.strstart;L.insert=L.lookahead;L.lookahead=0;L.match_length=L.prev_length=2;L.match_available=0;q.next_in=r;q.input=Y;q.avail_in=w;L.wrap=Z;Z=0}else Z=-2;if(Z!==0)throw Error(rI[Z]);this._dict_set=!0}};
Z5T=function(q,Z){Z=Z||{};Z.gzip=!0;Z=new mZe(Z);Z.push(q,!0);if(Z.err)throw Z.msg||rI[Z.err];return Z.result};
rJe=function(q,Z){var w=wpT();w&&w.publish.call(w,q.toString(),q,Z)};
PyT=function(q,Z,w){var r=wpT();if(!r)return 0;var Y=r.subscribe(q.toString(),function(C,d){var O=_.Eq("ytPubsub2Pubsub2SkipSubKey");O&&O==Y||(O=function(){if(YD6[Y])try{if(d&&q instanceof $Te&&q!=C)try{var H=q.dataClass,L=d;if(!L.args||!L.version)throw Error("Xc");try{if(!H.version_){var S=new H;H.version_=S.version}var v=H.version_}catch(R){}if(!v||L.version!=v)throw Error("Yc");try{d=Reflect.construct(H,_.Ge(L.args))}catch(R){throw R.message="yt.pubsub2.Data.deserialize(): "+R.message,R;}}catch(R){throw R.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+q.toString()+": "+R.message,R;}Z.call(w||window,d)}catch(R){_.ns(R)}},esj[q.toString()]?_.Eq("yt.scheduler.instance")?_.v5.addLowPriorityJob(O):_.hf(O,0):O())});
YD6[Y]=!0;Cy6[q.toString()]||(Cy6[q.toString()]=[]);Cy6[q.toString()].push(Y);return Y};
H5N=function(){var q=dTN,Z=PyT(VHN,function(w){q.apply(void 0,arguments);O5X(Z)});
return Z};
O5X=function(q){var Z=wpT();Z&&(typeof q==="number"&&(q=[q]),_.Uq(q,function(w){Z.unsubscribeByKey(w);delete YD6[w]}))};
wpT=function(){return _.Eq("ytPubsub2Pubsub2Instance")};
Wyj=function(q,Z,w){w=w===void 0?{sampleRate:.1}:w;Math.random()<Math.min(.02,w.sampleRate/100)&&rJe("meta_logging_csi_event",{timerName:q,timelineData:Z})};
_.ol2=function(q){return q?(q=q.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.pA(q):null:null};
_.jJ=function(q){return q?(q=q.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.o9(q):null:null};
Ly2=function(){ulT||(ulT=_.jJ(_.zj("WORKER_SERIALIZATION_URL")));return ulT||void 0};
_.vlz=function(){var q=Ly2();SDI||q===void 0||(SDI=new Worker(_.ug(q),void 0));return SDI};
_.jAI=function(){return typeof Worker==="function"&&Ly2()?!0:!1};
_.JJT=function(){if(_.jAI()&&!tH9){var q=function(w){w=w.data;if(w.op==="gzippedGelBatch"){var r=RsN.get(w.key);r&&(b5X(w.gzippedBatch,r.latencyPayload,r.url,r.options,r.sendFn),RsN.delete(w.key))}},Z=_.vlz();
Z&&(Z.addEventListener("message",q),Z.onerror=function(){RsN.clear()},tH9=!0)}};
xTz=function(q,Z,w,r,Y){Y=Y===void 0?!1:Y;var C={startTime:(0,_.lp)(),ticks:{},infos:{}};if(R$)try{var d=zsT(Z);if(d!=null&&(d>BxO||d<aN6))r(q,w);else{if(_.b("gzip_gel_with_worker")&&(_.b("initial_gzip_use_main_thread")&&!nlT||!_.b("initial_gzip_use_main_thread"))){tH9||_.JJT();var O=_.vlz();if(O&&!Y){RsN.set(QAO,{latencyPayload:C,url:q,options:w,sendFn:r});O.postMessage({op:"gelBatchToGzip",serializedBatch:Z,key:QAO});QAO++;return}}var H=Z5T(El2(Z));b5X(H,C,q,w,r)}}catch(L){_.xT(L),r(q,w)}else r(q,
w)};
b5X=function(q,Z,w,r,Y){nlT=!1;var C=(0,_.lp)();Z.ticks.gelc=C;bh++;_.b("disable_compression_due_to_performance_degredation")&&C-Z.startTime>=TxX&&(UT2++,_.b("abandon_compression_after_N_slow_zips")?bh===_.m6("compression_disable_point")&&UT2>kpj&&(R$=!1):R$=!1);Kyz(Z);r.headers||(r.headers={});r.headers["Content-Encoding"]="gzip";r.postBody=q;r.postParams=void 0;Y(w,r)};
sAT=function(q){var Z=Z===void 0?!1:Z;var w=w===void 0?!1:w;var r=(0,_.lp)(),Y={startTime:r,ticks:{},infos:{}},C=Z?_.Eq("yt.logging.gzipForFetch",!1):!0;if(R$&&C){if(!q.body)return q;try{var d=w?q.body:typeof q.body==="string"?q.body:JSON.stringify(q.body);C=d;if(!w&&typeof d==="string"){var O=zsT(d);if(O!=null&&(O>BxO||O<aN6))return q;w=Z?{level:1}:void 0;C=Z5T(El2(d),w);var H=(0,_.lp)();Y.ticks.gelc=H;if(Z){bh++;if((_.b("disable_compression_due_to_performance_degredation")||_.b("disable_compression_due_to_performance_degradation_lr"))&&
H-r>=TxX)if(UT2++,_.b("abandon_compression_after_N_slow_zips")||_.b("abandon_compression_after_N_slow_zips_lr")){Z=UT2/bh;var L=kpj/_.m6("compression_disable_point");bh>0&&bh%_.m6("compression_disable_point")===0&&Z>=L&&(R$=!1)}else R$=!1;Kyz(Y)}}q.headers=Object.assign({},{"Content-Encoding":"gzip"},q.headers||{});q.body=C;return q}catch(S){return _.xT(S),q}}else return q};
zsT=function(q){try{return(new Blob(q.split(""))).size}catch(Z){return _.xT(Z),null}};
Kyz=function(q){_.b("gel_compression_csi_killswitch")||!_.b("log_gel_compression_latency")&&!_.b("log_gel_compression_latency_lr")||Wyj("gel_compression",q,{sampleRate:.1})};
INI=function(){this.blockSize=-1};
J9=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var q=1;q<this.blockSize;++q)this.pad_[q]=0;this.total_=this.inbuf_=0;this.reset()};
MH6=function(q){q=Object.assign({},q);delete q.Authorization;var Z=cJ6();if(Z){var w=new J9;w.update(_.zj("INNERTUBE_API_KEY"));w.update(Z);q.hash=_.Rq(w.digest(),3)}return q};
B5=function(){Fy9||(Fy9=new _.zo("yt.innertube"));return Fy9};
NxN=function(q,Z,w,r){if(r)return null;r=B5().get("nextId",!0)||1;var Y=B5().get("requests",!0)||{};Y[r]={method:q,request:Z,authState:MH6(w),requestTime:Math.round((0,_.lp)())};B5().set("nextId",r+1,86400,!0);B5().set("requests",Y,86400,!0);return r};
lNN=function(q){var Z=B5().get("requests",!0)||{};delete Z[q];B5().set("requests",Z,86400,!0)};
ppI=function(q){var Z=B5().get("requests",!0);if(Z){for(var w in Z){var r=Z[w];if(!(Math.round((0,_.lp)())-r.requestTime<6E4)){var Y=r.authState,C=MH6(_.S8j(!1));_.R4.equals(Y,C)&&(Y=r.request,"requestTimeMs"in Y&&(Y.requestTimeMs=Math.round((0,_.lp)())),Gpe(q,r.method,Y,{}));delete Z[w]}}B5().set("requests",Z,86400,!0)}};
Xp9=function(q){var Z;return(q=q==null?void 0:(Z=q.error)==null?void 0:Z.code)&&q>=400&&q<=599?!1:!0};
mTT=function(q){var Z;q=q==null?void 0:(Z=q.error)==null?void 0:Z.code;return!(q!==400&&q!==415)};
fN1=function(){if(AJ2)return AJ2();var q={};AJ2=M4("LogsDatabaseV2",{objectStores:(q.LogsRequestsStore={addedAtVersion:2},q),shared:!1,upgrade:function(Z,w,r){w(2)&&a$(Z,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});w(3);w(5)&&(r=r.objectStore("LogsRequestsStore"),r.JSC$8467_wrapped.indexNames.contains("newRequest")&&r.JSC$8467_wrapped.deleteIndex("newRequest"),nB(r,"newRequestV2",["status","interface","timestamp"]));w(7)&&Z.JSC$8452_wrapped.objectStoreNames.contains("sapisid")&&Z.JSC$8452_wrapped.deleteObjectStore("sapisid");
w(9)&&Z.JSC$8452_wrapped.objectStoreNames.contains("SWHealthLog")&&Z.JSC$8452_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return AJ2()};
QP=function(q){return _.xr(fN1(),q)};
hs2=function(q,Z){var w,r,Y,C;return _.V(function(d){if(d.nextAddress==1)return w={startTime:(0,_.lp)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.W(d,QP(Z),2);if(d.nextAddress!=3)return r=d.yieldResult,Y=Object.assign({},q,{options:JSON.parse(JSON.stringify(q.options)),interface:_.zj("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.W(d,r.put("LogsRequestsStore",Y),3);C=d.yieldResult;w.ticks.tc=(0,_.lp)();DT1(w);return d.return(C)})};
yJI=function(q,Z){var w,r,Y,C,d,O,H,L;return _.V(function(S){if(S.nextAddress==1)return w={startTime:(0,_.lp)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.W(S,QP(Z),2);if(S.nextAddress!=3)return r=S.yieldResult,Y=_.zj("INNERTUBE_CONTEXT_CLIENT_NAME",0),C=[q,Y,0],d=[q,Y,(0,_.lp)()],O=IDBKeyRange.bound(C,d),H="prev",_.b("use_fifo_for_networkless")&&(H="next"),L=void 0,_.W(S,_.TO(r,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(v){return _.GO(v.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:O,direction:H},function(R){R.getValue()&&(L=R.getValue(),q==="NEW"&&(L.status="QUEUED",R.update(L)))})}),3);
w.ticks.tc=(0,_.lp)();DT1(w);return S.return(L)})};
i59=function(q,Z){var w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,QP(Z),2);w=r.yieldResult;return r.return(_.TO(w,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Y){var C=Y.objectStore("LogsRequestsStore");return C.get(q).then(function(d){if(d)return d.status="QUEUED",C.put(d).then(function(){return d})})}))})};
gl9=function(q,Z,w,r){w=w===void 0?!0:w;var Y;return _.V(function(C){if(C.nextAddress==1)return _.W(C,QP(Z),2);Y=C.yieldResult;return C.return(_.TO(Y,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(d){var O=d.objectStore("LogsRequestsStore");return O.get(q).then(function(H){return H?(H.status="NEW",w&&(H.sendCount+=1),r!==void 0&&(H.options.compress=r),O.put(H).then(function(){return H})):zO.resolve(void 0)})}))})};
qL2=function(q,Z){var w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,QP(Z),2);w=r.yieldResult;return r.return(w.delete("LogsRequestsStore",q))})};
Znj=function(q){var Z,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,QP(q),2);Z=r.yieldResult;w=(0,_.lp)()-2592E6;return _.W(r,_.TO(Z,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Y){return kr(Y.objectStore("LogsRequestsStore"),{},function(C){if(C.getValue().timestamp<=w)return C.delete().then(function(){return C.continue()})})}),0)})};
wJN=function(){_.V(function(q){return _.W(q,XX9("LogsDatabaseV2"),0)})};
DT1=function(q){_.b("nwl_csi_killswitch")||Wyj("networkless_performance",q,{sampleRate:1})};
_.YLj=function(q){return _.xr(rEI(),q)};
$x9=function(q){var Z,w;_.V(function(r){if(r.nextAddress==1)return _.W(r,_.YLj(q),2);Z=r.yieldResult;w=(0,_.lp)()-2592E6;return _.W(r,_.TO(Z,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(Y){return kr(Y.objectStore("SWHealthLog"),{},function(C){if(C.getValue().timestamp<=w)return C.delete().then(function(){return C.continue()})})}),0)})};
eK8=function(q){var Z;return _.V(function(w){if(w.nextAddress==1)return _.W(w,_.YLj(q),2);Z=w.yieldResult;return _.W(w,Z.clear("SWHealthLog"),0)})};
_.EG=function(q,Z,w,r,Y,C,d){Y=Y===void 0?"":Y;C=C===void 0?!1:C;d=d===void 0?!1:d;if(q)if(w&&!tm("cobalt"))_.xT(new _.df("Legacy referrer-scrubbed ping detected")),q&&Cmj(q,void 0,{scrubReferrer:!0});else if(Y)k7z(q,Z,"POST",Y,r);else if(_.zj("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||r||d)k7z(q,Z,"GET","",r,void 0,C,d);else{b:{try{c:{var O=new PmO({url:q});if(ueT(O.JSC$7353_url_,"dsh")==="1")var H=null;else{var L=ueT(O.JSC$7353_url_,"ae");if(L==="1"){var S=ueT(O.JSC$7353_url_,"adurl");if(S)try{H={version:3,
directUrl:decodeURIComponent(S),asyncUrl:L68(O.JSC$7353_url_,"act=1","ri=1",dxj(O))};break c}catch(n){}}H=L==="2"?{version:4,directUrl:L68(O.JSC$7353_url_,"dct=1","suid="+O.suid_,""),asyncUrl:L68(O.JSC$7353_url_,"act=1","ri=1","suid="+O.suid_)}:null}}if(H){var v=_.gA(q);var R=!(!v||!v.endsWith("/aclk")||_.xi(q,"ri")!=="1");break b}}catch(n){}R=!1}if(R){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(q,"")){var B=!0;break b}}catch(n){}B=!1}B?(Z&&Z(),w=!0):w=!1}else w=
!1;w||Cmj(q,Z)}};
Cmj=function(q,Z,w){w=w===void 0?{}:w;var r=new Image,Y=""+VpT++;OnX[Y]=r;r.onload=r.onerror=function(){Z&&OnX[Y]&&Z();delete OnX[Y]};
w.scrubReferrer&&(r.referrerPolicy="no-referrer");r.src=q};
xY=function(q,Z){Hnz(q,Z==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
WqN=function(q){var Z;return((Z=document.featurePolicy)==null?0:Z.allowedFeatures().includes("attribution-reporting"))?q+"&nis=6":q+"&nis=5"};
ocO=function(q){if(!q)return!1;try{var Z;if(((Z=_.kT(q))==null?void 0:Z.asm)==="4")return!0}catch(w){_.ns(w)}return!1};
Hnz=function(q,Z){Z?(q=WqN(q),_.EG(q,void 0,void 0,void 0,"",!0,!0)):_.EG(q)};
LqT=function(){uAX||(uAX=new _.zo("yt.offline"));return uAX};
SLj=function(q){if(_.b("offline_error_handling")){var Z=LqT().get("errors",!0)||{};Z[q.message]={name:q.name,stack:q.stack};q.level&&(Z[q.message].level=q.level);LqT().set("errors",Z,2592E3,!0)}};
jQe=function(q,Z,w,r){r=r===void 0?!1:r;Z=_.b("web_fp_via_jspb")?Object.assign({},Z):Z;_.b("use_cfr_monitor")&&vcI(q,Z);if(_.b("use_request_time_ms_header"))Z.headers&&NR(q)&&(Z.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.lp)())));else{var Y;if((Y=Z.postParams)==null?0:Y.requestTimeMs)Z.postParams.requestTimeMs=Math.round((0,_.lp)())}w&&Object.keys(Z).length===0?_.EG(q):Z.compress?Z.postBody?(typeof Z.postBody!=="string"&&(Z.postBody=JSON.stringify(Z.postBody)),xTz(q,Z.postBody,
Z,_.q4,r)):xTz(q,JSON.stringify(Z.postParams),Z,cT1,r):_.q4(q,Z)};
tpe=function(q,Z){_.b("use_event_time_ms_header")&&NR(q)&&(Z.headers||(Z.headers={}),Z.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.lp)())));return Z};
_.bn1=function(){RK2||(RK2=new _.To({logOfflineErrors:!0,enablePolling:!0}));return RK2};
vcI=function(q,Z){var w=Z.onError?Z.onError:function(){};
Z.onError=function(Y,C){UG().requestComplete(q,!1);w(Y,C)};
var r=Z.onSuccess?Z.onSuccess:function(){};
Z.onSuccess=function(Y,C){UG().requestComplete(q,!0);r(Y,C)}};
_.JEe=function(){return _.MR(document.location.toString())!=="www.youtube-nocookie.com"};
_.afX=function(){return _.Eq("ytNetworklessLoggingInitializationOptions")?_.zKe.isNwlInitialized:_.Baj};
ncj=function(q,Z){if(_.b("polymer_on_demand_shady_dom")){var w;var r=(w=q.__shady_native_firstElementChild)!=null?w:q.firstElementChild}else r=q.firstElementChild;for(;r;){if(q=Z(r)?r:ncj(r,Z))return q;r=r.nextElementSibling}return null};
Ec8=function(){var q=document;if("visibilityState"in q)return q.visibilityState;var Z=QQ2+"VisibilityState";if(Z in q)return q[Z]};
_.xxj=function(q,Z){var w;kY(q,function(r){w=Z[r];return!!w});
return w};
_.sG=function(q){var Z=TaN(q);Z?Z.focus():_.KB(q)};
TaN=function(q){return(q=ncj(q,function(Z){return _.I$(Z)?Uxj(Z)&&!!Z.offsetParent:!1}))?q:null};
_.KB=function(q,Z){q.hasAttribute("tabindex")||q.setAttribute("tabindex","-1");q.focus(Z)};
kLT=function(q,Z,w,r){r=r===void 0?{}:r;q.addEventListener&&(Z!="mouseenter"||"onmouseenter"in document?Z!="mouseleave"||"onmouseenter"in document?Z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Z="MozMousePixelScroll"):Z="mouseout":Z="mouseover");return _.R4.findKey(c5,function(Y){var C=typeof Y[4]==="boolean"&&Y[4]==!!r,d=_.DT(Y[4])&&_.DT(r)&&_.R4.equals(Y[4],r);return!!Y.length&&Y[0]==q&&Y[1]==Z&&Y[2]==w&&(C||d)})};
_.Fw=function(q,Z,w,r){r=r===void 0?{}:r;if(!q||!q.addEventListener&&!q.attachEvent)return"";var Y=kLT(q,Z,w,r);if(Y)return Y;Y=++Kqz.count+"";var C=!(Z!="mouseenter"&&Z!="mouseleave"||!q.addEventListener||"onmouseenter"in document);var d=C?function(O){O=new MN(O);if(!_.E3(O.relatedTarget,function(H){return H==q},!0))return O.currentTarget=q,O.type=Z,w.call(q,O)}:function(O){O=new MN(O);
O.currentTarget=q;return w.call(q,O)};
d=_.QV(d);q.addEventListener?(Z=="mouseenter"&&C?Z="mouseover":Z=="mouseleave"&&C?Z="mouseout":Z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Z="MozMousePixelScroll"),sQ8()||typeof r==="boolean"?q.addEventListener(Z,d,r):q.addEventListener(Z,d,!!r.capture)):q.attachEvent("on"+Z,d);c5[Y]=[q,Z,w,d,r];return Y};
_.cEz=function(q,Z,w){var r=r===void 0?{}:r;var Y=_.Fw(q,Z,function(){_.IfO(Y);w.apply(q,arguments)},r)};
_.IfO=function(q){q&&(typeof q=="string"&&(q=[q]),_.Uq(q,function(Z){if(Z in c5){var w=c5[Z],r=w[0],Y=w[1],C=w[3];w=w[4];r.removeEventListener?sQ8()||typeof w==="boolean"?r.removeEventListener(Y,C,w):r.removeEventListener(Y,C,!!w.capture):r.detachEvent&&r.detachEvent("on"+Y,C);delete c5[Z]}}))};
NN=function(q){this.callback_=q;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(q=0;q<4;q++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Fw(window,"mousemove",(0,_.Lh)(this.onMouseMove_,this));this.timerId_=_.yV((0,_.Lh)(this.checkPosition_,this),25)};
Fq8=function(){var q={};var Z=q.preferMobileEvents===void 0?!1:q.preferMobileEvents;q=q.enableScrollEventListener===void 0?!0:q.enableScrollEventListener;if(_.Eq("_lact",window)==null){var w=parseInt(_.zj("LACT"),10);w=isFinite(w)?Date.now()-Math.max(w,0):-1;_.IR("_lact",w,window);_.IR("_fact",w,window);w==-1&&_.lh();_.Fw(document,"keydown",_.lh);_.Fw(document,"keyup",_.lh);_.Fw(document,"mousedown",_.lh);_.Fw(document,"mouseup",_.lh);Z?_.Fw(window,"touchmove",function(){MpT("touchmove",200)},{passive:!0}):
(_.Fw(window,"resize",function(){MpT("resize",200)}),q&&_.Fw(window,"scroll",function(){MpT("scroll",200)}));
new NN(function(){MpT("mouse",100)});
_.Fw(document,"touchstart",_.lh,{passive:!0});_.Fw(document,"touchend",_.lh,{passive:!0})}};
MpT=function(q,Z){Nae[q]||(Nae[q]=!0,_.v5.addLowPriorityJob(function(){_.lh();Nae[q]=!1},Z))};
_.lh=function(){_.Eq("_lact",window)==null&&Fq8();var q=Date.now();_.IR("_lact",q,window);_.Eq("_fact",window)==-1&&_.IR("_fact",q,window);(q=_.Eq("ytglobal.ytUtilActivityCallback_"))&&q()};
_.pB=function(){var q=_.Eq("_lact",window);return q==null?-1:Math.max(Date.now()-q,0)};
_.h9=function(q,Z,w){var r=_.Xw();if(r&&Z){var Y=r.subscribe(q,function(){var C=arguments,d=function(){fB[Y]&&Z.apply&&typeof Z.apply=="function"&&Z.apply(w||window,C)};
try{_.lf1[q]?d():_.hf(d,0)}catch(O){_.ns(O)}},w);
fB[Y]=!0;D$[q]||(D$[q]=[]);D$[q].push(Y);return Y}return 0};
_.GLX=function(q){var Z=_.Xw();Z&&(typeof q==="number"?q=[q]:typeof q==="string"&&(q=[parseInt(q,10)]),_.Uq(q,function(w){Z.unsubscribeByKey(w);delete fB[w]}))};
_.pJe=function(q,Z){var w=_.Xw();w&&w.publish.apply(w,arguments)};
_.mxj=function(q){var Z=_.Xw();if(Z)if(Z.clear(q),q)XJ2(q);else for(var w in D$)XJ2(w)};
_.Xw=function(){return _.$1.ytPubsubPubsubInstance};
XJ2=function(q){D$[q]&&(q=D$[q],_.Uq(q,function(Z){fB[Z]&&delete fB[Z]}),q.length=0)};
AEj=function(){var q,Z;return"h5vcc"in yP&&((q=yP.h5vcc.traceEvent)==null?0:q.traceBegin)&&((Z=yP.h5vcc.traceEvent)==null?0:Z.traceEnd)?1:"performance"in yP&&yP.performance.mark&&yP.performance.measure?2:0};
ffO=function(q){var Z=AEj();switch(Z){case 1:yP.h5vcc.traceEvent.traceBegin("YTLR",q);break;case 2:yP.performance.mark(q+"-start");break;case 0:break;default:_.F7(Z,"unknown trace type")}};
DxI=function(q){var Z=AEj();switch(Z){case 1:yP.h5vcc.traceEvent.traceEnd("YTLR",q);break;case 2:Z=q+"-start";var w=q+"-end";yP.performance.mark(w);yP.performance.measure(q,Z,w);break;case 0:break;default:_.F7(Z,"unknown trace type")}};
hKz=function(q){var Z,w;(w=(Z=window).onerror)==null||w.call(Z,q.message,"",0,0,q)};
yE1=function(q){if(_.b("web_lifecycle_error_handling_killswitch"))return q();try{return q()}catch(Z){hKz(Z)}};
in2=function(q){return[q.auth===void 0?"undefined":q.auth,q.isJspb===void 0?"undefined":q.isJspb,q.cttAuthInfo===void 0?"undefined":q.cttAuthInfo,q.tier===void 0?"undefined":q.tier].join("/")};
_.J=function(q,Z){if(q)return q[Z.name]};
_.ih=function(q){return q};
qU=function(){var q=_.Eq("yt.logging.ims");q||(q=new gI,_.IR("yt.logging.ims",q));return q};
ClT=function(q,Z){if(q.endpoint==="log_event"){gcX(q);var w=q1O(q),r=Z6j(q.payload)||"",Y=weO(r),C=200;if(Y){if(Y.enabled===!1&&!_.b("web_payload_policy_disabled_killswitch"))return;C=r79(Y.tier);if(C===400){Y1O(q,Z);return}}ZU[w]=!0;w={cttAuthInfo:w,isJspb:!1,tier:C};qU().storePayload(w,q.payload);$0e(Z,!1,w,eIX(r))}};
d0e=function(q,Z,w){if(Z.endpoint==="log_event"){gcX(void 0,Z);var r=q1O(Z,!0),Y=weO(q),C=200;if(Y){if(Y.enabled===!1&&!_.b("web_payload_policy_disabled_killswitch"))return;C=r79(Y.tier);if(C===400){Ple(q,Z,w);return}}ZU[r]=!0;r={cttAuthInfo:r,isJspb:!0,tier:C};qU().storePayload(r,Jc(Z.payload));$0e(w,!0,r,eIX(q))}};
$0e=function(q,Z,w,r){Z=Z===void 0?!1:Z;r=r===void 0?!1:r;q&&(w5=new q);q=_.m6("tvhtml5_logging_max_batch_ads_fork")||_.m6("tvhtml5_logging_max_batch")||_.m6("web_logging_max_batch")||100;var Y=(0,_.lp)(),C=VjX(Z,w.tier),d=C.lastDebounceQueueFromLogTimeMs;r&&(C.useVideoStatsEndPoint=!0);r=0;w&&(r=qU().getSequenceCount(w));var O=function(){O6N({writeThenSend:!0},Z,w.tier)};
r>=1E3?O():r>=q?H6X||(H6X=Wj6(function(){O();H6X=void 0},0)):Y-d>=10&&(oBz(Z,w.tier),C.lastDebounceQueueFromLogTimeMs=Y)};
Y1O=function(q,Z){if(q.endpoint==="log_event"){_.b("more_accurate_gel_parser")&&qU().storePayload({isJspb:!1},q.payload);gcX(q);var w=q1O(q),r=new Map;r.set(w,[q.payload]);var Y=Z6j(q.payload)||"";Z&&(w5=new Z);return new _.r5(function(C,d){w5&&w5.isReady()?u6I(r,w5,C,d,{bypassNetworkless:!0},!0,eIX(Y)):C()})}};
Ple=function(q,Z,w){if(Z.endpoint==="log_event"){gcX(void 0,Z);var r=q1O(Z,!0),Y=new Map;Y.set(r,[Jc(Z.payload)]);w&&(w5=new w);return new _.r5(function(C){w5&&w5.isReady()?LjO(Y,w5,C,{bypassNetworkless:!0},!0,eIX(q)):C()})}};
q1O=function(q,Z){var w="";if(q.dangerousLogToVisitorSession)w="visitorOnlyApprovedKey";else if(q.cttAuthInfo){if(Z===void 0?0:Z){Z=q.cttAuthInfo.token;w=q.cttAuthInfo;var r=new S18;w.videoId?r.setVideoId(w.videoId):w.playlistId&&Y7(r,2,vB1,V7(w.playlistId));jk9[Z]=r}else Z=q.cttAuthInfo,w={},Z.videoId?w.videoId=Z.videoId:Z.playlistId&&(w.playlistId=Z.playlistId),tjO[q.cttAuthInfo.token]=w;w=q.cttAuthInfo.token}return w};
O6N=function(q,Z,w){q=q===void 0?{}:q;Z=Z===void 0?!1:Z;new _.r5(function(r,Y){var C=VjX(Z,w),d=C.useVideoStatsEndPoint;C.useVideoStatsEndPoint=!1;RI8(C.queueTimer);RI8(C.queueMaxTimer);C.queueMaxTimer=0;w5&&w5.isReady()?w===void 0&&_.b("enable_web_tiered_gel")?b66(r,Y,q,Z,300,d):b66(r,Y,q,Z,w,d):(oBz(Z,w),r())})};
b66=function(q,Z,w,r,Y,C){var d=w5;w=w===void 0?{}:w;r=r===void 0?!1:r;Y=Y===void 0?200:Y;C=C===void 0?!1:C;var O=new Map,H=new Map,L={isJspb:r,cttAuthInfo:void 0,tier:Y},S={isJspb:r,cttAuthInfo:void 0};if(r){Z=_.P(Object.keys(ZU));for(Y=Z.next();!Y.done;Y=Z.next())Y=Y.value,H=_.b("enable_web_tiered_gel")?qU().smartExtractMatchingEntries({keys:[L,S],sizeLimit:1E3}):qU().extractMatchingEntries({isJspb:!0,cttAuthInfo:Y}),H.length>0&&O.set(Y,H),(_.b("web_fp_via_jspb_and_json")&&w.writeThenSend||!_.b("web_fp_via_jspb_and_json"))&&
delete ZU[Y];LjO(O,d,q,w,!1,C)}else{O=_.P(Object.keys(ZU));for(L=O.next();!L.done;L=O.next())L=L.value,S=_.b("enable_web_tiered_gel")?qU().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:L,tier:Y},{isJspb:!1,cttAuthInfo:L}],sizeLimit:1E3}):qU().extractMatchingEntries({isJspb:!1,cttAuthInfo:L}),S.length>0&&H.set(L,S),(_.b("web_fp_via_jspb_and_json")&&w.writeThenSend||!_.b("web_fp_via_jspb_and_json"))&&delete ZU[L];u6I(H,d,q,Z,w,!1,C)}};
oBz=function(q,Z){q=q===void 0?!1:q;Z=Z===void 0?200:Z;var w=function(){O6N({writeThenSend:!0},q,Z)},r=VjX(q,Z),Y=r===J7j||r===zIj?5E3:B69;
_.b("web_gel_timeout_cap")&&!r.queueMaxTimer&&(Y=Wj6(function(){w()},Y),r.queueMaxTimer=Y);
RI8(r.queueTimer);Y=_.zj("LOGGING_BATCH_TIMEOUT",_.m6("web_gel_debounce_ms",1E4));_.b("shorten_initial_gel_batch_timeout")&&adT&&(Y=nBT);Y=Wj6(function(){_.m6("gel_min_batch_size")>0?qU().getSequenceCount({cttAuthInfo:void 0,isJspb:q,tier:Z})>=Qke&&w():w()},Y);
r.queueTimer=Y};
u6I=function(q,Z,w,r,Y,C,d){Y=Y===void 0?{}:Y;var O=Math.round((0,_.lp)()),H=q.size,L=EBT(d);q=_.P(q);var S=q.next();for(d={};!S.done;d={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},S=q.next()){var v=_.P(S.value);S=v.next().value;v=v.next().value;d.batchRequest=_.R4.unsafeClone({context:_.Pq9(Z.config_||_.pY())});if(!_.pX(v)&&!_.b("throw_err_when_logevent_malformed_killswitch")){r();break}d.batchRequest.events=v;
(v=tjO[S])&&x0T(d.batchRequest,S,v);delete tjO[S];d.dangerousLogToVisitorSession=S==="visitorOnlyApprovedKey";T6T(d.batchRequest,O,d.dangerousLogToVisitorSession);U06(Y);d.onSuccess$jscomp$3=function(R){_.b("start_client_gcf")&&_.v5.addLowPriorityJob(function(){return _.V(function(B){return _.W(B,kRI(R),0)})});
H--;H||w()};
d.networkFailures=0;d.onError$jscomp$5=function(R){return function(){R.networkFailures++;if(Y.bypassNetworkless&&R.networkFailures===1)try{Gpe(Z,L,R.batchRequest,Kjj({writeThenSend:!0},R.dangerousLogToVisitorSession,R.onSuccess$jscomp$3,R.onError$jscomp$5,C)),adT=!1}catch(B){_.ns(B),r()}H--;H||w()}}(d);
try{Gpe(Z,L,d.batchRequest,Kjj(Y,d.dangerousLogToVisitorSession,d.onSuccess$jscomp$3,d.onError$jscomp$5,C)),adT=!1}catch(R){_.ns(R),r()}}};
LjO=function(q,Z,w,r,Y,C){r=r===void 0?{}:r;var d=Math.round((0,_.lp)()),O={value:q.size},H=new Map([].concat(_.Ju(q)));H=_.P(H);for(var L=H.next();!L.done;L=H.next()){var S=_.P(L.value).next().value,v=q.get(S);L=new sk2;var R=Z.config_||_.pY(),B=new $7,n=new Id1;_.uM(n,1,R.innertubeContextHostLanguage);_.uM(n,2,R.innertubeContextGeoLocation);_.mh(n,16,R.innertubeContextClientNameFieldNumber);_.uM(n,17,R.innertubeContextClientVersion);if(R.innertubeContextClientConfigInfo){var x=R.innertubeContextClientConfigInfo,
K=new fY;x.coldConfigData&&_.uM(K,1,x.coldConfigData);x.appInstallData&&_.uM(K,6,x.appInstallData);x.coldHashData&&_.uM(K,3,x.coldHashData);x.hotHashData&&K.setHotHashData(x.hotHashData);_.CA(n,62,K)}(x=_.$1.devicePixelRatio)&&x!=1&&_.Am(n,65,_.N7(x));x=zA1();x!==""&&_.uM(n,54,x);x=BTX();if(x.length>0){K=new c7z;for(var k=0;k<x.length;k++){var G=new eX;G.setKey(x[k].key);Y7(G,2,Mj6,V7(x[k].value));Cb(K,15,eX,G)}_.CA(B,5,K)}wPT(R,n);rr6(B);Y81(n);$Z8(R,n);eyj(n);_.b("start_client_gcf")&&Cq9(n);_.zj("DELEGATED_SESSION_ID")&&
!_.b("pageid_as_header_web")&&(R=new PO,_.uM(R,3,_.zj("DELEGATED_SESSION_ID")));!_.b("fill_delegate_context_in_gel_killswitch")&&(x=_.zj("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(K=_.Xy(B,PO,3)||new PO,R=B,x=_.uM(K,18,x),_.CA(R,3,x));R=n;x=_.P(Object.entries(_.kT(_.zj("DEVICE",""))));for(K=x.next();!K.done;K=x.next())k=_.P(K.value),K=k.next().value,k=k.next().value,K==="cbrand"?_.uM(R,12,k):K==="cmodel"?_.uM(R,13,k):K==="cbr"?_.uM(R,87,k):K==="cbrver"?_.uM(R,88,k):K==="cos"?_.uM(R,18,
k):K==="cosver"?_.uM(R,19,k):K==="cplatform"&&_.mh(R,42,qEN(k));B.setClient(n);_.CA(L,1,B);if(n=jk9[S])a:{if(_.PG(n,d5(n,vB1,1)))B=1;else if(n.getPlaylistId())B=2;else break a;_.CA(L,4,n);n=L.getContext()||new $7;R=_.Xy(n,PO,3)||new PO;x=new Vo;x.setToken(S);_.mh(x,1,B);Cb(R,12,Vo,x);_.CA(n,3,R)}delete jk9[S];S=S==="visitorOnlyApprovedKey";Fjj()||_.OU(L,2,d);!S&&(B=_.zj("EVENT_ID"))&&(n=N62(),R=new lde,_.uM(R,1,B),_.OU(R,2,n),_.CA(L,5,R));U06(r);if(_.b("jspb_serialize_with_worker")&&(B=_.vlz())&&
r.writeThenSend){_.GRT.set(peO,{client:Z,resolve:w,networklessOptions:r,isIsolated:Y,useVSSEndpoint:C,dangerousLogToVisitorSession:S,requestsOutstanding:O});B.postMessage({op:"gelBatchToSerialize",batchRequest:Jc(L),clientEvents:v,key:peO});peO++;break}if(v){B=[];for(n=0;n<v.length;n++)try{B.push(new HO(v[n]))}catch(rz){_.ns(new _.df("Transport failed to deserialize "+String(v[n])))}v=B}else v=[];v=_.P(v);for(B=v.next();!B.done;B=v.next())Cb(L,3,HO,B.value);v={startTime:(0,_.lp)(),ticks:{},infos:{}};
L=L.serialize();v.ticks.geljspc=(0,_.lp)();_.b("log_jspb_serialize_latency")&&Wyj("gel_jspb_serialize",v,{sampleRate:.1});_.Xej(L,Z,w,r,Y,C,S,O)}};
_.Xej=function(q,Z,w,r,Y,C,d,O){r=r===void 0?{}:r;O=O===void 0?{value:0}:O;C=EBT(C);r=Kjj(r,d,function(H){_.b("start_client_gcf")&&_.v5.addLowPriorityJob(function(){return _.V(function(L){return _.W(L,kRI(H),0)})});
O.value--;O.value||w()},function(){O.value--;
O.value||w()},Y);
r.headers["Content-Type"]="application/json+protobuf";r.postBodyFormat="JSPB";r.postBody=q;Gpe(Z,C,"",r);adT=!1};
U06=function(q){_.b("always_send_and_write")&&(q.writeThenSend=!1)};
Kjj=function(q,Z,w,r,Y){q={retry:!0,onSuccess:w,onError:r,networklessOptions:q,dangerousLogToVisitorSession:Z,bypassMonitoring:!!Y,headers:{},postBodyFormat:"",postBody:"",compress:_.b("compress_gel")||_.b("compress_gel_lr")};Fjj()&&(q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.lp)())));return q};
T6T=function(q,Z,w){Fjj()||(q.requestTimeMs=String(Z));_.b("unsplit_gel_payloads_in_logs")&&(q.unsplitGelPayloadsInLogs=!0);!w&&(Z=_.zj("EVENT_ID"))&&(w=N62(),q.serializedClientEventId={serializedEventId:Z,clientCounter:String(w)})};
N62=function(){var q=_.zj("BATCH_CLIENT_COUNTER")||0;q||(q=Math.floor(Math.random()*65535/2));q++;q>65535&&(q=1);_.bO("BATCH_CLIENT_COUNTER",q);return q};
x0T=function(q,Z,w){if(w.videoId)var r="VIDEO";else if(w.playlistId)r="PLAYLIST";else return;q.credentialTransferTokenTargetId=w;q.context=q.context||{};q.context.user=q.context.user||{};q.context.user.credentialTransferTokens=[{token:Z,scope:r}]};
gcX=function(q,Z){var w=_.Af("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Eq("yt.logging.transport.enableScrapingForTest"))if(w)m08=[],_.IR("yt.logging.transport.enableScrapingForTest",!0),_.IR("yt.logging.transport.scrapedPayloadsForTesting",m08),_.IR("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.IR("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.IR("yt.logging.transport.scrapeClientEvent",!0);else return;w=_.Eq("yt.logging.transport.scrapedPayloadsForTesting");var r=_.Eq("yt.logging.transport.payloadToScrape");Z&&(Z=_.Eq("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(Z.payload)())&&w.push(Z);Z=_.Eq("yt.logging.transport.scrapeClientEvent");if(r&&r.length>=1)for(var Y=0;Y<r.length;Y++)if(q&&q.payload[r[Y]])if(Z)w.push(q.payload);else{var C=void 0;w.push(((C=q)==null?void 0:C.payload)[r[Y]])}_.IR("yt.logging.transport.scrapedPayloadsForTesting",
w)};
Fjj=function(){return _.b("use_request_time_ms_header")||_.b("lr_use_request_time_ms_header")};
Wj6=function(q,Z){return _.b("transport_use_scheduler")===!1?_.hf(q,Z):_.b("logging_avoid_blocking_during_navigation")||_.b("lr_logging_avoid_blocking_during_navigation")?_.WO(_.v5,function(){if(_.A7N().currentState==="none")q();else{var w={};_.A7N().install((w.none={callback:q},w))}},Z):_.WO(_.v5,q,Z)};
RI8=function(q){_.b("transport_use_scheduler")?_.v5.cancelJob(q):_.iO(q)};
kRI=function(q){var Z,w,r,Y,C,d,O,H,L,S;return _.V(function(v){return v.nextAddress==1?(r=(Z=q)==null?void 0:(w=Z.responseContext)==null?void 0:w.globalConfigGroup,Y=_.J(r,fde),d=(C=r)==null?void 0:C.hotHashData,O=_.J(r,D0z),L=(H=r)==null?void 0:H.coldHashData,(S=_.t().resolve(_.Gj(ow)))?d?Y?_.W(v,hIN(S,d,Y),2):_.W(v,hIN(S,d),2):v.jumpTo(2):v.return()):L?O?_.W(v,y72(S,L,O),0):_.W(v,y72(S,L),0):v.jumpTo(0)})};
VjX=function(q,Z){Z=Z===void 0?200:Z;return q?Z===300?J7j:i69:Z===300?zIj:gBz};
weO=function(q){if(_.b("enable_web_tiered_gel")){q=qM8[q||""];var Z,w,r,Y=_.t().resolve(_.Gj(ow))==null?void 0:(Z=ZV2())==null?void 0:(w=Z.loggingHotConfig)==null?void 0:(r=w.eventLoggingConfig)==null?void 0:r.payloadPolicies;if(Y)for(Z=0;Z<Y.length;Z++)if(Y[Z].payloadNumber===q)return Y[Z]}};
Z6j=function(q){q=Object.keys(q);q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,qM8[Z])return Z};
r79=function(q){switch(q){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}};
eIX=function(q){return q==="gelDebuggingEvent"};
EBT=function(q){return(q===void 0?0:q)&&_.b("vss_through_gel_video_stats")?"video_stats":"log_event"};
Lb=function(q,Z,w,r){r=r===void 0?{}:r;var Y={},C=Math.round(r.timestamp||(0,_.lp)());Y.eventTimeMs=C<Number.MAX_SAFE_INTEGER?C:0;Y[q]=Z;q=_.pB();Y.context={lastActivityMs:String(r.timestamp||!isFinite(q)?-1:q)};r.sequenceGroup&&!_.b("web_gel_sequence_info_killswitch")&&(q=Y.context,Z=r.sequenceGroup,Z={index:wx6(Z),groupKey:Z},q.sequence=Z,r.endOfSequence&&delete ux[r.sequenceGroup]);(r.sendIsolatedPayload?Y1O:ClT)({endpoint:"log_event",payload:Y,cttAuthInfo:r.cttAuthInfo,dangerousLogToVisitorSession:r.dangerousLogToVisitorSession},
w)};
wx6=function(q){ux[q]=q in ux?ux[q]+1:0;return ux[q]};
_.vO=function(q,Z,w){w=w===void 0?{}:w;var r=SX;_.BF("ytLoggingEventsDefaultDisabled",!1)&&SX===SX&&(r=null);Lb(q,Z,r,w)};
_.jX=function(){if(_.b("web_fp_via_jspb")){var q=!0;q=q===void 0?!1:q;var Z=rL2;rL2=[];if(Z){Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next())w=w.value,q?Lb(w.payloadName,w.payload,SX,w.options):_.vO(w.payloadName,w.payload,w.options)}O6N(void 0,!0);if(!_.b("web_fp_via_jspb_and_json"))return}O6N(void 0,!1)};
$AX=function(q,Z){var w;if((w=Z)==null?0:w.componentStack)return Z;if(q=q.componentStack)Z||(Z={}),Z.componentStack=YMN(q);return Z};
YMN=function(q){return q.slice(0,void 0).map(function(Z){return Z.name}).join(" > ")};
eYj=function(){_.Uq(_.zj("ERRORS")||[],function(q){_.tY.apply(null,q)});
_.bO("ERRORS",[])};
_.Rw=function(q){_.tY(q)};
_.bx=function(q){_.tY(q,"WARNING")};
Co2=function(q){q instanceof Error?_.tY(q):(q=_.DT(q)?JSON.stringify(q):String(q),q=new _.df(q),q.name="RejectedPromiseError",_.bx(q))};
Po9=function(q,Z,w,r,Y,C){Z=Z===void 0?"Unknown file":Z;w=w===void 0?0:w;var d=!1,O=$Me("log_window_onerror_fraction");if(O&&Math.random()<O)d=!0;else{O=document.getElementsByTagName("script");for(var H=0,L=O.length;H<L;H++)if(O[H].src.indexOf("/debug-")>0){d=!0;break}}d&&(d=!1,Y?d=!0:(typeof q==="string"?O=q:ErrorEvent&&q instanceof ErrorEvent?(d=!0,O=q.message,Z=q.filename,w=q.lineno,r=q.colno):(O="Unknown error",Z="Unknown file",w=0),Y=new _.df(O),Y.name="UnhandledWindowError",Y.message=O,Y.fileName=
Z,Y.lineNumber=w,isNaN(r)?delete Y.columnNumber:Y.columnNumber=r),_.b("wiz_enable_component_stack_propagation_killswitch")||(C=$AX(Y,C)),C&&_.JY(Y,C),d?_.tY(Y):_.bx(Y))};
_.tY=function(q,Z,w,r,Y,C,d,O){C=C===void 0?{}:C;C.name=w||_.zj("INNERTUBE_CONTEXT_CLIENT_NAME",1);C.version=r||_.zj("INNERTUBE_CONTEXT_CLIENT_VERSION");w=C;Z=Z===void 0?"ERROR":Z;d=d===void 0?!1:d;Z=Z===void 0?"ERROR":Z;d=d===void 0?!1:d;if(q&&(q.hasOwnProperty("level")&&q.level&&(Z=q.level),_.b("console_log_js_exceptions")&&(r=[],r.push("Name: "+q.name),r.push("Message: "+q.message),q.hasOwnProperty("params")&&r.push("Error Params: "+JSON.stringify(q.params)),q.hasOwnProperty("args")&&r.push("Error args: "+
JSON.stringify(q.args)),r.push("File name: "+q.fileName),r.push("Stacktrace: "+q.stack),r=r.join("\n"),window.console.log(r,q)),!(dA9>=5))){r=[];Y=_.P(VrI);for(C=Y.next();!C.done;C=Y.next()){C=C.value;try{C()&&r.push(C())}catch(K){}}r=[].concat(_.Ju(OVN),_.Ju(r));var H=HVN(q);Y=H.message||"Unknown Error";C=H.name||"UnknownError";var L=H.stack||q.stacktrace||"Not available";if(L.startsWith(C+": "+Y)){var S=L.split("\n");S.shift();L=S.join("\n")}S=H.lineNumber||"Not available";H=H.fileName||"Not available";
var v=0;if(q.hasOwnProperty("args")&&q.args&&q.args.length)for(var R=0;R<q.args.length&&!(v=gKX(q.args[R],"params."+R,w,v),v>=500);R++);else if(q.hasOwnProperty("params")&&q.params){var B=q.params;if(typeof q.params==="object")for(R in B){if(B[R]){var n="params."+R,x=rf(B[R]);w[n]=x;v+=n.length+x.length;if(v>500)break}}else w.params=rf(B)}if(r.length)for(R=0;R<r.length&&!(v=gKX(r[R],"params.context."+R,w,v),v>=500);R++);navigator.vendor&&!w.hasOwnProperty("vendor")&&(w["device.vendor"]=navigator.vendor);
R={message:Y,name:C,lineNumber:S,fileName:H,stack:L,params:w,sampleWeight:1};w=Number(q.columnNumber);isNaN(w)||(R.lineNumber=R.lineNumber+":"+w);if(q.level==="IGNORED")q=0;else a:{q=WWz();w=_.P(q.messageWeights);for(r=w.next();!r.done;r=w.next())if(r=r.value,R.message&&R.message.match(r.messageRegExp)){q=r.weight;break a}q=_.P(q.callbackWeights);for(w=q.next();!w.done;w=q.next())if(w=w.value,w.callback(R)){q=w.weight;break a}q=1}R.sampleWeight=q;q=_.P(oLT);for(w=q.next();!w.done;w=q.next())if(w=
w.value,w.patternsForType[R.name])for(Y=_.P(w.patternsForType[R.name]),r=Y.next();!r.done;r=Y.next())if(C=r.value,r=R.message.match(C.regexp)){R.params["params.error.original"]=r[0];Y=C.groups;C={};for(S=0;S<Y.length;S++)C[Y[S]]=r[S+1],R.params["params.error."+Y[S]]=r[S+1];R.message=w.messageFn(C);break}R.params||(R.params={});q=WWz();R.params["params.errorServiceSignature"]="msg="+q.messageWeights.length+"&cb="+q.callbackWeights.length;R.params["params.serviceWorker"]="false";_.$1.document&&_.$1.document.querySelectorAll&&
(R.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new zF(u_X,"sample")).constructor!==zF&&(R.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(R);if(R.sampleWeight!==0&&!LW1.has(R.message)){if(d&&_.b("web_enable_error_204"))SMI(Z===void 0?"ERROR":Z,R);else{Z=Z===void 0?"ERROR":Z;Z==="ERROR"?(vLI.publish("handleError",R),_.b("record_app_crashed_web")&&j5j===0&&R.sampleWeight===1&&(j5j++,d={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.b("report_client_error_with_app_crash_ks")||(d.systemHealth={crashData:{clientError:{logMessage:{message:R.message}}}}),_.vO("appCrashed",d)),trT++):Z==="WARNING"&&vLI.publish("handleWarning",R);if(_.b("kevlar_gel_error_routing")){d=Z;O=O===void 0?{}:O;b:{q=_.P(RY2);for(w=q.next();!w.done;w=q.next())if(tm(w.value.toLowerCase())){q=!0;break b}q=!1}if(q)O=void 0;else{w={stackTrace:R.stack};R.fileName&&(w.filename=R.fileName);q=R.lineNumber&&R.lineNumber.split?R.lineNumber.split(":"):[];q.length!==
0&&(q.length!==1||isNaN(Number(q[0]))?q.length!==2||isNaN(Number(q[0]))||isNaN(Number(q[1]))||(w.lineNumber=Number(q[0]),w.columnNumber=Number(q[1])):w.lineNumber=Number(q[0]));q={level:"ERROR_LEVEL_UNKNOWN",message:R.message,errorClassName:R.name,sampleWeight:R.sampleWeight};d==="ERROR"?q.level="ERROR_LEVEL_ERROR":d==="WARNING"&&(q.level="ERROR_LEVEL_WARNNING");w={isObfuscated:!0,browserStackInfo:w};O.pageUrl=window.location.href;O.kvPairs=[];_.zj("FEXP_EXPERIMENTS")&&(O.experimentIds=_.zj("FEXP_EXPERIMENTS"));
r=_.zj("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!$Me("web_disable_gel_stp_ecatcher_killswitch")&&r)for(Y=_.P(Object.keys(r)),C=Y.next();!C.done;C=Y.next())C=C.value,O.kvPairs.push({key:C,value:String(r[C])});if(r=R.params)for(Y=_.P(Object.keys(r)),C=Y.next();!C.done;C=Y.next())C=C.value,O.kvPairs.push({key:"client."+C,value:String(r[C])});r=_.zj("SERVER_NAME");Y=_.zj("SERVER_VERSION");r&&Y&&(O.kvPairs.push({key:"server.name",value:r}),O.kvPairs.push({key:"server.version",value:Y}));O={errorMetadata:O,
stackTrace:w,logMessage:q}}O&&(_.vO("clientError",O),(d==="ERROR"||_.b("errors_flush_gel_always_killswitch"))&&_.jX())}_.b("suppress_error_204_logging")||SMI(Z,R)}try{LW1.add(R.message)}catch(K){}dA9++}}};
SMI=function(q,Z){var w=Z.params||{};q={urlParams:{a:"logerror",t:"jserror",type:Z.name,msg:Z.message.substr(0,250),line:Z.lineNumber,level:q,"client.name":w.name},postParams:{url:_.zj("PAGE_NAME",window.location.href),file:Z.fileName},method:"POST"};w.version&&(q["client.version"]=w.version);if(q.postParams){Z.stack&&(q.postParams.stack=Z.stack);Z=_.P(Object.keys(w));for(var r=Z.next();!r.done;r=Z.next())r=r.value,q.postParams["client."+r]=w[r];if(w=_.zj("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(Z=
_.P(Object.keys(w)),r=Z.next();!r.done;r=Z.next())r=r.value,q.postParams[r]=w[r];(w=_.zj("LAVA_VERSION"))&&(q.postParams["lava.version"]=w);w=_.zj("SERVER_NAME");Z=_.zj("SERVER_VERSION");w&&Z&&(q.postParams["server.name"]=w,q.postParams["server.version"]=Z)}_.q4(_.zj("ECATCHER_REPORT_HOST","")+"/error_204",q)};
_.bVj=function(q,Z){Z=Z===void 0?"ERROR":Z;var w=w===void 0?{}:w;var r=_.Eq("ytbin.polymer.shared.lib.tampering.info");r&&(r=r())&&(w["params.tamperingInfo"]=r.sort().join(","));_.tY(q,Z,void 0,void 0,!0,w)};
_.JY=function(q){var Z=_.Ta.apply(1,arguments);q.args||(q.args=[]);Array.isArray(q.args)&&q.args.push.apply(q.args,_.Ju(Z))};
JL2=function(q){q.level="IGNORED"};
zY2=function(q,Z){OVN.push(q);Z();OVN.pop()};
Qo=function(q,Z){for(var w in Z)Z.hasOwnProperty(w)&&(q=_.nb(q,w,Z[w]));return q};
_.BpX=function(q,Z,w){w=w===void 0?!1:w;if(!q)return null;if(q.adInfoDialogEndpoint||q.backstageImageUploadEndpoint||q.confirmDialogEndpoint||q.clientActionEndpoint||q.createBackstagePostDialogEndpoint||q.createCommentReplyDialogEndpoint||q.flowEndpoint||q.guideBuilderEndpoint||q.liveChatDialogEndpoint||q.modalEndpoint||q.openPopupAction||q.shareEndpoint||q.shareEntityEndpoint||q.showLiveChatItemEndpoint||q.subscriptionManagerEndpoint||q.unlimitedCreateFamilyEndpoint||q.unlimitedFamilyFlowEndpoint||
q.updateCommentDialogEndpoint||q.updateCommentReplyDialogEndpoint||q.userFeedbackEndpoint||q.videoEditorEndpoint||q.ypcCancelSurveyEndpoint)return Z=_.m6("polymer_report_client_url_requested_rate"),!w&&Math.random()<Z&&_.bx(new _.df("urlForEndpoint used on client endpoint",q)),null;var r=_.m6("polymer_report_missing_web_navigation_endpoint_rate");if(q.liveChatEndpoint||q.liveChatReplayEndpoint)r=0;if(!q.commandMetadata&&!q.clickTrackingParams&&Math.random()<r){var Y={},C;for(C in q)Y[C]="1";_.bx(new _.df("Missing navigation data",
Y))}Y="";if(q.commandMetadata&&q.commandMetadata.webCommandMetadata&&q.commandMetadata.webCommandMetadata.url)Y=q.commandMetadata.webCommandMetadata.url;else if(q.searchEndpoint)Math.random()<r&&_.bx(new _.df("Should not manually handle search",q)),Y="/results?search_query="+encodeURIComponent(q.searchEndpoint.query).replace(/%20/g,"+"),q.searchEndpoint.params&&(Y+="&sp="+q.searchEndpoint.params);else if(q.watchEndpoint)Math.random()<r&&_.bx(new _.df("Should not manually handle watch",q)),Y="/watch?v="+
q.watchEndpoint.videoId,q.watchEndpoint.playlistId&&(Y+="&list="+q.watchEndpoint.playlistId),q.watchEndpoint.index&&(Y+="&index="+q.watchEndpoint.index),q.watchEndpoint.startTimeSeconds&&(Y+="&t="+q.watchEndpoint.startTimeSeconds);else if(q.browseEndpoint)r=q.browseEndpoint.browseId,(C=q.browseEndpoint.canonicalBaseUrl)?Y=C:r&&(Y=r.substr(0,2),Y=Y==="FE"?r==="FEwhat_to_watch"?"/":r==="FEmy_videos"?"/my_videos":"/feed/"+r.substr(2):Y==="VL"?"/playlist?list="+r.substr(2):"/channel/"+r),Y&&q.browseEndpoint.query&&
(Y=Qo(Y+"/search",{query:q.browseEndpoint.query})),Y&&q.browseEndpoint.params&&(Y=Qo(Y,{params:q.browseEndpoint.params}));else{if(q.urlEndpoint)return q.urlEndpoint.url;q.signInEndpoint?(Y="https://accounts.google.com/ServiceLogin",r={},_.R4.extend(r,Z||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),Z=r):q.uploadEndpoint?Y="//www.youtube.com/upload":q.liveChatEndpoint?(Y=q.liveChatEndpoint,r=_.R4.clone(Y),_.DT(Y.continuation)&&(C=Object.keys(Y.continuation)[0],
r.continuation=Y.continuation[C].continuation),Y=Qo("/youtubei/v1/live_chat/get_live_chat",r)):q.liveChatReplayEndpoint?(Y=_.R4.clone(q.liveChatReplayEndpoint),Y.currentPlayerState&&(_.R4.extend(Y,Y.currentPlayerState),delete Y.currentPlayerState),Y=Qo("/youtubei/v1/live_chat/get_live_chat_replay",Y)):q.liveChatItemContextMenuEndpoint?Y=Qo("/youtubei/v1/live_chat/get_item_context_menu",q.liveChatItemContextMenuEndpoint):q.liveChatPurchaseMessageEndpoint?Y=Qo("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
q.liveChatPurchaseMessageEndpoint):q.openSuperStickerBuyFlowCommand?Y=Qo("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",q.openSuperStickerBuyFlowCommand):q.videoEditEndpoint?Y=Qo("/edit",{video_id:q.videoEditEndpoint.videoId}):q.liveDashboardEndpoint?Y=q.liveDashboardEndpoint.videoId?Qo("/live_dashboard",{v:q.liveDashboardEndpoint.videoId}):"/live_dashboard":q.signalNavigationEndpoint&&q.signalNavigationEndpoint.signal&&q.signalNavigationEndpoint.signal==="WEBCAM"?Y="/webcam":q.getPdgBuyFlowCommand&&
(Y=Qo(q.getPdgBuyFlowCommand.buyflowApiPath,{params:q.getPdgBuyFlowCommand.params}))}return Y||w?Qo(Y,Z||{}):(_.bx(new _.df("Error: Can't construct url for endpoint","keys:"+Object.keys(q).sort().join(","),q)),null)};
av6=function(q){if(q){if(q.browseEndpoint)return!!q.browseEndpoint.nofollow;if(q.watchEndpoint)return!!q.watchEndpoint.nofollow;if(q.urlEndpoint)return!!q.urlEndpoint.nofollow}return!1};
_.Q5z=function(q,Z){var w=Z+q,r=nL2.get(w);if(r)return r;q=Z+"-"+q.replace(/([A-Z])/g,"-$1").toLowerCase();nL2.set(w,q);return q};
EL9=function(q){var Z=_.tf(q,"action")||_.tf(q,"command")||_.tf(q,"endpoint");if(!Z)return null;Z=_.Q5z(Z,"yt");_.J(q,_.EU)&&(Z+="-"+_.J(q,_.EU).signal.toLowerCase().replace(/_/g,"-"));return Z};
kdO=function(q){try{var Z=Object.keys(q)}catch(Y){return[]}for(var w=0;w<Z.length;w++){var r=Z[w];if(xA2.test(r)||Tpe.test(r))return UA9(q[r])}return[]};
UA9=function(q){return q.command?[q.command]:q.onExecutionAction?[q.onExecutionAction]:q.onResponseReceivedCommand?[q.onResponseReceivedCommand]:q.updateFlowCommand?[q.updateFlowCommand]:q.clientActions?q.clientActions:q.action?[q.action]:q.actions||q.commands||q.onResponseReceivedActions||q.onResponseReceivedCommands||q.onResponseReceivedEndpoints||[]};
s5O=function(q,Z){Z=Z===void 0?!1:Z;var w=_.t().resolve(_.Gj(x7));w||(w=new KWO,_.t().addProvider({provide:x7,useValue:w}));return w&&q&&!_.R4.isEmpty(q)?w.getUrl(q,Z):""};
Iv9=function(q,Z,w){w=w===void 0?"":w;if(Z){q.data=Z;var r=s5O(Z);r?(KA(q,r),av6(Z)||!NR(r)?q.rel="nofollow":q.removeAttribute("rel"),_.J(Z,_.TF)&&_.J(Z,_.TF).target==="TARGET_NEW_WINDOW"?q.target="_blank":w?q.target=w:q.removeAttribute("target")):(q.removeAttribute("href"),q.removeAttribute("rel"),q.removeAttribute("target"))}};
_.sU=function(q,Z){var w=_.Nb;if(HN())cLj(q,function(){var C=_.Ta.apply(0,arguments);tX(w,function(){Z.apply(null,_.Ju(C))})});
else{var r=_.UU.getInstance(),Y=j9(Z);HF(function(){Y.value=Z});
_.Ls(function(){var C={},d=_.k7(r,(C[q]=function(){var O=_.Ta.apply(0,arguments);tX(w,function(){Y.value.apply(Y,_.Ju(O))})},C));
return function(){var O={};_.Kb(r,(O[q]="",O),d)}})}};
_.Iw=function(q){return HN()?Mrj(q):FW6(q)};
_.cO=function(q){return HN()?Mrj(q):FW6(q)};
FW6=function(q){return vF(function(){return Mrj(q)})};
Mrj=function(q){var Z=m$I(function(w){Z.value&&Z.value===w||(Z.__count=Z.__count?Z.__count+1:1);Z.value=w;var r=function(){var Y=fh(null);try{return q==null?void 0:q(w)}finally{fh(Y)}}();
return function(){r==null||r();Z.value=null}});
return Z};
Npj=function(q){var Z=_.Nb,w=C7.slice();return{getFn:function(){return function(r){Z.isDisposed||WN(function(){return gX(function(){return q(r)})},{stack:w})!==!0&&r.stopPropagation()}}}};
_.MU=function(q,Z,w){if(HN())lv2(q,Z,function(Y){var C=fh(null);try{w(Y)}finally{fh(C)}});
else{var r=j9(w);HF(function(){r.value=w});
_.Ls(function(){var Y=q.value;if(Y){var C=function(d){r.value(d)};
Y.addEventListener(Z,C,void 0);return function(){Y?Y.removeEventListener(Z,C,void 0):Gd6(q)}}Gd6(q)})}};
Gd6=function(q){var Z;(Z=mt.handleError)==null||Z.call.apply(Z,[mt].concat(_.Ju(oF(Ay6.LOG_NULL_EL_REF_VALUE(),q.__expectedTagName,2))))};
Fu=function(q){if(typeof q.children==="function")return q.children(),null;q=_.P(q.children);for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z();return null};
pxj=function(q){var Z;return((Z=q.prototype)==null?void 0:Z.render)===void 0};
XxX=function(q){q=q.items.map(q.children);return q.length>0&&typeof q[0]==="string"?q.join(""):q};
ALT=function(q,Z,w){w=w===void 0?!1:w;WN(function(){return mAI(q,Z,w)})};
mAI=function(q,Z,w){w=((w===void 0?0:w)?fv2:DAT)(q,function(){NU(Z)});
return w===null?q:w};
NU=function(q){if(q!==void 0&&q!==null)if(q instanceof yE)for(var Z=z2;aF()!=null&&QsI in aF()&&Z.contains(aF());)Eu();else if(Array.isArray(q))for(Z=_.P(q),q=Z.next();!q.done;q=Z.next())NU(q.value);else if(q instanceof W8||"function"==typeof _.ig&&q instanceof _.ig)Mo(q.toString());else if(p7(q)){if(aF()!==q){var w,r;Z=(r=(w=Ou())==null?void 0:w.name)!=null?r:"unknown";throw Error("ec`"+q.tagName+"`"+Z);}Eu()}else if(q!=null&&q.contentKind===AX||q instanceof sX)for(Z=Al6(q),Z=Array.from(Z.childNodes),
Z=_.P(Z),q=Z.next();!q.done;q=Z.next())z2.appendChild(q.value),Eu();else if(R9(q)&&(q=q.toString()),w=typeof q,w==="boolean"||w==="number"||w==="string")Mo(q);else if(typeof q==="function"){Z=z2;var Y=aF();Y&&(Y._isSignalTextNode||Y._isSafeOrSanitizedHtmlNode)||vQT(Z,Y,q);Eu()}else if(q.type===XxX)NU(q.type(Object.assign({},q.props,{children:q.children[0]})));else{ZV.beforeVisit(q);if(typeof q.type==="string"){a:{q.__open||awI(q.type,q.props.idomKey);Y=z2;for(Z in q.props)if(q.props[Z]!==hY6){var C=
q.props[Z];w=K7;w.push(Z);w.push(C)}Z=mt.attributes;Z=Z===void 0?lx:Z;C=z2;w=JX(C);kle(C,w,Z);SP8(Y,q.props,!0);if((q.props.skip||q.props.skipchildren)&&z2.hasChildNodes())Uu();else{if(q.type==="style"&&qPj(q.children)===null){Uu();Z=void 0;break a}NU(q.children)}naj();q.__open&&(q.__open=!1);NJ2(Y,q.props);Z=Y}return Z}if(q.type===_.lS)NU(q.children);else if(!yLT(q)){Z=q;try{iV1(Z)}catch(d){q=d,(C=mt.handleError)==null||C.call.apply(C,[mt].concat(_.Ju(oF(q,(Y=Z.type)==null?void 0:Y.TAG_NAME))))}Z.__open&&
(naj(),Z.__open=!1)}}};
gL6=function(q,Z){var w;pxj(q)?w=new rA(Z,q):w=new q(Z);w.JSC$8134___type=q;w.__updateContext={nextState:w.state,isForced:!1};return w};
iV1=function(q){var Z=q.type,w=Z.TAG_NAME;if(Z===Fu)q.props.children=q.children,Z(q.props);else{q.children.length>0&&(q.props.children=q.children);var r;(r=q.props).idomKey||(r.idomKey=Z);if(w){var Y=awI(w,q.props.idomKey);q.__open=!0;var C=Y.__instance}C||(C=gL6(Z,q.props),C.props=null,Y&&(Y.__instance=C,C.el=Y));var d;w=((d=C.__updateContext)!=null?d:{nextState:C.state,isForced:!1}).nextState;C.__updateContext=void 0;Z.getDerivedStateFromProps&&(w=Z.getDerivedStateFromProps(q.props,w));C.props=
q.props;C.state=w;d=function(){var O=C;ZV.beforeRender(O);var H=O.render(O.props);ZV.afterRender(O,H);H?(O.props.idomKey&&(H.props.idomKey=O.props.idomKey),O=H):O=void 0;if(H=O)if(H.__open=q.__open,O=NU(H),q.__open=H.__open,!Z.TAG_NAME)if(O)Z.TAG_NAME=O.tagName.toLowerCase(),O.__instance=C,C.el=O;else{var L;if((L=C.hooks)==null?0:L.length){var S;(S=mt.handleError)==null||S.call.apply(S,[mt].concat(_.Ju(oF(Error("kd")))))}}C.didPatch();ZV.didPatch(C)};
(w=C.functionComponent)?XOe({component:w,debugInstance:C.props.debugInstance,fn:d}):d()}};
yLT=function(q){var Z=q.type;if(!pxj(Z)||Z===Fu||Z.componentType===PN)return!1;q.props.children=q.children.length>1?q.children:q.children[0];var w,r=(w=q.props.idomKey)!=null?w:q.type,Y;if(aF()&&((Y=aF()[DB])==null?void 0:Y.key)===r){var C=aF(),d=C[DB];if(!d)throw Error("dc`"+C.tagName);var O;(O=d.updateSignalsFromIdomProps)==null||O.call(d,q.props);qz9(d);return!0}if(ZPj.has(Z.name))throw O=Z.name,Z=(d=(C=Ou())==null?void 0:C.name)!=null?d:"unknown",Error("cc`"+O+"`"+Z);bp8(q.type,q.props,q.children);
q.props.renderedFromIdom=!0;(O=XOe({component:q.type,debugInstance:q.props.debugInstance,fn:function(){return Hp2(q.type,q.props)}}))&&wQz(O);
return!0};
rQO=function(q){for(var Z=0;Z<hX(q).length;Z++)Eu()};
qz9=function(q){var Z=Yzj();if(Z)rQO(Z);else for(var w=0;w<q.numNodes;w++)(Z=Yzj())?rQO(Z):Eu()};
Yzj=function(){var q;return(q=aF()[DB])==null?void 0:q.sourceDynamicRange};
wQz=function(q){q=GlX(q);q=Array.isArray(q)?q:[q];q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next())z2.insertBefore(Z.value,aF()),Eu()};
$lj=function(q){var Z=oQ1(),w=vF(function(){return{value:typeof q==="function"?q():q}});
return[w.value,function(r){if(wA!==null){var Y;(Y=mt.handleError)==null||Y.call.apply(Y,[mt].concat(_.Ju(oF(Error("ld")))))}w.value=typeof r==="function"?r(w.value):r;Z.__updateContext={nextState:Z.state,isForced:!0};r=l6(Z.effectContext);Y=G2(!1);try{if(Z.el){var C,d={},O=(d.props=Z.props,d.type=Z.JSC$8134___type,d.children=(C=Z.props.children)!=null?C:[],d[No]=!0,d);try{ALT(Z.el,O,!0)}catch(S){var H,L;(L=mt.handleError)==null||L.call.apply(L,[mt].concat(_.Ju(oF(S,(H=Z.JSC$8134___type)==null?void 0:
H.TAG_NAME))))}}}finally{G2(Y),l6(r)}}]};
GF=function(q,Z){var w=_.Nb,r=function(Y){tX(w,function(){Z(Y)})};
window.addEventListener(q,r,void 0);_.SG(function(){window.removeEventListener(q,r,void 0)})};
_.Xu=function(q,Z){var w=_.Nb;_.Ls(function(){var r,Y=(r=Z.observer)!=null?r:_.t().resolve(pb);if(r=q.value){var C=ekX(r),d=[];Z.showOption&&d.push(Y.observe(r,function(){tX(w,function(){Z.visibilityCallback(!0)})},Z.showOption));
Z.hideOption&&d.push(Y.observe(r,function(){tX(w,function(){Z.visibilityCallback(!1)})},Z.hideOption));
Z.prescanOption&&Z.prescanCallback&&d.push(Y.observe(r,function(){tX(w,function(){Z.prescanCallback()})},Z.prescanOption));
var O;C.visibilityMonitorKeys=((O=C.visibilityMonitorKeys)!=null?O:[]).concat(d)}})};
ekX=function(q){var Z;return(Z=q.polymerController)!=null?Z:q};
_.mD=function(q){q.componentType=PN};
Ve2=function(q,Z){var w=C2T;return _.u(_.lS,null,_.Fs(mt.enableLazyTsx,function(){return _.u(P2X,{id:w,value:q,children:Z})},function(){var r=dl6(w,q);
ph(r);r=l6(r);try{return Z()}finally{l6(r)}}))};
P2X=function(q){var Z=q.children;q=dl6(q.id,q.value);ph(q);q=l6(q);try{return _.u(_.lS,null,iS(Z()))}finally{l6(q)}};
dl6=function(q,Z){return Object.assign(Object.create(OP1),{id:q,contextValue:Z})};
HPe=function(q){var Z,w=_.Nb;_.uS(function(){var r=l6(w),Y=G2(!Z);try{if(Z)ALT(Z,q.children(),!0);else if(Z=iS(q.children()),!(Z instanceof Element))throw Error("md");}finally{G2(Y),l6(r)}});
return Z};
WBj=function(q){var Z,w=vN(function(){var r=G2(!0);try{Z=hX(q())}finally{G2(r)}},!1);
return[Z,w]};
LBO=function(q,Z,w){o_9(q,Z);q[Z][uaO].unshift(w)};
o_9=function(q,Z){if(!q[Z]||!q[Z][uaO]){var w=q[Z],r=w?[w]:[];q[Z]=function(){for(var Y=_.P(r),C=Y.next();!C.done;C=Y.next())C.value.apply(this,arguments)};
q[Z][uaO]=r}};
Sz8=function(q){if(!q)return[];var Z=[];q=_.P(q);for(var w=q.next();!w.done;w=q.next())w=w.value,Array.isArray(w)?Z.push.apply(Z,_.Ju(Sz8(w))):Z.push(w);return Z};
_.fb=function(q,Z){if(q&&v_T.test(q)||q==="//")return q;if(jg9===void 0){jg9=!1;try{var w=new URL("b","http://a");w.pathname="c%20d";jg9=w.href==="http://a/c%20d"}catch(r){}}Z||(Z=document.baseURI||window.location.href);if(jg9)try{return(new URL(q,Z)).href}catch(r){return q}AY||(AY=document.implementation.createHTMLDocument("temp"),AY.base=AY.createElement("base"),AY.head.appendChild(AY.base),AY.anchor=AY.createElement("a"),AY.body.appendChild(AY.anchor));AY.base.href=Z;AY.anchor.href=q;return AY.anchor.href||
q};
Rk6=function(q,Z){return q.replace(te6,function(w,r,Y,C){return r+"'"+_.fb(Y.replace(/["']/g,""),Z)+"'"+C})};
bPI=function(q){return q.substring(0,q.lastIndexOf("/")+1)};
Bn1=function(){JQT=!1;for(var q=DU.length,Z=0;Z<q;Z++){var w=DU[Z];if(w)try{w()}catch(r){setTimeout(function(){throw r;})}}DU.splice(0,q);
zkO+=q};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(q){console.log("["+q.is+"]: registered")};
n_j=function(q){aQI.push(q)};
hY=function(q){return Qgj[q]||(Qgj[q]=q.indexOf("-")<0?q:q.replace(E_O,function(Z){return Z[1].toUpperCase()}))};
yo=function(q){return Qgj[q]||(Qgj[q]=q.replace(xl8,"-$1").toLowerCase())};
Tnj=function(q,Z){var w=Z.parentInfo&&Tnj(q,Z.parentInfo);if(w)for(q=w.firstChild,w=0;q;q=q.nextSibling){if(Z.parentIndex===w++)return q}else return q};
UlT=function(q,Z){q=q._methodHost||q;return function(w){if(q[Z])q[Z](w,w.detail);else console.warn("listener method `"+Z+"` not defined")}};
ix=function(q){return q.indexOf(".")>=0};
g5=function(q){var Z=q.indexOf(".");return Z===-1?q:q.slice(0,Z)};
ksj=function(q,Z){return q.indexOf(Z+".")===0};
qy=function(q,Z){return Z.indexOf(q+".")===0};
Zw=function(q,Z,w){return Z+w.slice(q.length)};
KB8=function(q,Z){return q===Z||ksj(q,Z)||qy(q,Z)};
wJ=function(q){if(Array.isArray(q)){for(var Z=[],w=0;w<q.length;w++)for(var r=q[w].toString().split("."),Y=0;Y<r.length;Y++)Z.push(r[Y]);return Z.join(".")}return q};
sg2=function(q){return Array.isArray(q)?wJ(q).split("."):q.toString().split(".")};
rJ=function(q,Z,w){Z=sg2(Z);for(var r=0;r<Z.length;r++){if(!q)return;q=q[Z[r]]}w&&(w.path=Z.join("."));return q};
IQT=function(q,Z,w){var r=sg2(Z),Y=r[r.length-1];if(r.length>1){for(Z=0;Z<r.length-1;Z++)if(q=q[r[Z]],!q)return;q[Y]=w}else q[Z]=w;return r.join(".")};
cQ9=function(q,Z,w){var r=q[Z];if(!r)r=q[Z]={};else if(!q.hasOwnProperty(Z)&&(r=q[Z]=Object.create(q[Z]),w))for(var Y in r)for(q=r[Y],Z=r[Y]=Array(q.length),w=0;w<q.length;w++)Z[w]=q[w];return r};
ex=function(q,Z,w,r,Y,C){if(Z){var d=!1,O=Ya++,H;for(H in w){var L=Y?g5(H):H;if(L=Z[L])for(var S=0,v=L.length,R=void 0;S<v&&(R=L[S]);S++)R.info&&R.info.lastRun===O||Y&&!MeO(H,R.trigger)||(R.info&&(R.info.lastRun=O),R.fn(q,H,w,r,R.info,Y,C),d=!0)}return d}return!1};
MeO=function(q,Z){if(Z){var w=Z.name;return w==q||!(!Z.structured||!ksj(w,q))||!(!Z.wildcard||!qy(w,q))}return!0};
FBO=function(q,Z,w,r,Y){Z=typeof Y.method==="string"?q[Y.method]:Y.method;w=Y.property;Z?Z.call(q,q.__data[w],r[w]):Y.dynamicFn||console.warn("observer method `"+Y.method+"` not defined")};
Nn2=function(q,Z,w,r){w={value:w,queueProperty:!0};r&&(w.path=r);(0,_.Cy)(q).dispatchEvent(new CustomEvent(Z,{detail:w}))};
lQ9=function(q,Z,w,r,Y,C){C=(r=(C?g5(Z):Z)!=Z?Z:null)?rJ(q,r):q.__data[Z];r&&C===void 0&&(C=w[Z]);Nn2(q,Y.eventName,C,r)};
GsO=function(q,Z,w,r,Y){w=q.__data[Z];P0&&(w=P0(w,Y.attrName,"attribute",q));q._propertyToAttribute(Z,Y.attrName,w)};
XQN=function(q){var Z=q.constructor.__orderedComputedDeps;if(!Z){Z=new Map;for(var w=q.__computeEffects,r=pQj(q),Y=r.counts,C=r.ready,d=r.total;r=C.shift();)Z.set(r,Z.size),(r=w[r])&&r.forEach(function(O){O=O.info.methodInfo;--d;--Y[O]===0&&C.push(O)});
d!==0&&console.warn("Computed graph for "+q.localName+" incomplete; circular?");q.constructor.__orderedComputedDeps=Z}return Z};
pQj=function(q){var Z=q.__computeInfo,w={};q=q.__computeEffects;var r=[],Y=0,C;for(C in Z){var d=Z[C];Y+=w[C]=d.args.filter(function(H){return!H.literal}).length+(d.dynamicFn?1:0)}for(var O in q)Z[O]||r.push(O);
return{counts:w,ready:r,total:Y}};
AQ2=function(q,Z,w,r,Y){Z=mlj(q,Z,w,r,Y);if(Z===dJ)return!1;Y=Y.methodInfo;if(q.__dataHasAccessor&&q.__dataHasAccessor[Y])return q._setPendingProperty(Y,Z,!0);q[Y]=Z;return!1};
hk1=function(q,Z,w,r,Y,C,d){w.bindings=w.bindings||[];r={kind:r,target:Y,parts:C,literal:d,isCompound:C.length!==1};w.bindings.push(r);r.target&&r.kind!="attribute"&&r.kind!="text"&&!r.isCompound&&r.parts[0].mode==="{"&&(w=r.parts[0],C=w.negate,r.listenerEvent=w.event||yo(Y)+"-changed",r.listenerNegate=C);Y=Z.nodeInfoList.length;for(w=0;w<r.parts.length;w++){var O=r.parts[w];O.compoundIndex=w;C=q;d=Z;var H=r,L=O,S=Y;if(!L.literal)if(H.kind==="attribute"&&H.target[0]==="-")console.warn("Cannot set attribute "+
H.target+' because "-" is not a valid attribute starting character');else for(O=L.dependencies,H={index:S,binding:H,part:L,evaluator:C},L=0;L<O.length;L++)S=O[L],typeof S=="string"&&(S=fQ9(S),S.wildcard=!0),C._addTemplatePropertyEffect(d,S.rootProperty,{fn:DlO,info:H,trigger:S})}};
DlO=function(q,Z,w,r,Y,C,d){d=d[Y.index];var O=Y.binding,H=Y.part;C&&H.source&&Z.length>H.source.length&&O.kind=="property"&&!O.isCompound&&d.__isPropertyEffectsClient&&d.__dataHasAccessor&&d.__dataHasAccessor[O.target]?(w=w[Z],Z=Zw(H.source,O.target,Z),d._setPendingPropertyOrPath(Z,w,!1,!0)&&q._enqueueClient(d)):(Z=Y.evaluator._evaluateBinding(q,H,Z,w,r,C),Z!==dJ&&(O.isCompound&&(w=d.__dataCompoundStorage[O.target],w[H.compoundIndex]=Z,Z=w.join("")),O.kind==="attribute"||O.target!=="textContent"&&
(O.target!=="value"||d.localName!=="input"&&d.localName!=="textarea")||(Z=Z==void 0?"":Z),H=Z,P0&&(H=P0(H,O.target,O.kind,d)),O.kind=="attribute"?q._valueToNodeAttribute(d,H,O.target):(O=O.target,d.__isPropertyEffectsClient&&d.__dataHasAccessor&&d.__dataHasAccessor[O]?d.__readOnly&&d.__readOnly[O]||d._setPendingProperty(O,H)&&q._enqueueClient(d):q._setUnmanagedPropertyToNode(d,O,H))))};
yQT=function(q,Z,w){if(w.listenerEvent){var r=w.parts[0];q.addEventListener(w.listenerEvent,function(Y){var C=w.target,d=r.source,O=r.negate,H=Y.detail,L=H&&H.path;L?(d=Zw(C,d,L),Y=H&&H.value):Y=Y.currentTarget[C];Z.__readOnly&&Z.__readOnly[d]||!Z._setPendingPropertyOrPath(d,O?!Y:Y,!0,!!L)||H&&H.queueProperty||Z._invalidateProperties()})}};
iPI=function(q,Z,w,r,Y,C){C=Z.static||C&&(typeof C!=="object"||C[Z.methodName]);Y={methodName:Z.methodName,args:Z.args,methodInfo:Y,dynamicFn:C};for(var d=0,O=void 0;d<Z.args.length&&(O=Z.args[d]);d++)O.literal||q._addPropertyEffect(O.rootProperty,w,{fn:r,info:Y,trigger:O});C&&q._addPropertyEffect(Z.methodName,w,{fn:r,info:Y});return Y};
mlj=function(q,Z,w,r,Y){r=q._methodHost||q;var C=r[Y.methodName];if(C)return q=q._marshalArgs(Y.args,Z,w),q===dJ?dJ:C.apply(r,q);Y.dynamicFn||console.warn("method `"+Y.methodName+"` not defined")};
g_9=function(q){for(var Z="",w=0;w<q.length;w++)Z+=q[w].literal||"";return Z};
wHT=function(q){if(q=q.match(/([^\s]+?)\(([\s\S]*)\)/)){var Z={methodName:q[1],static:!0,args:qn2};return q[2].trim()?Zdz(q[2].replace(/\\,/g,"&comma;").split(","),Z):Z}return null};
Zdz=function(q,Z){Z.args=q.map(function(w){w=fQ9(w);w.literal||(Z.static=!1);return w},this);
return Z};
fQ9=function(q){q=q.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var Z={name:q,value:"",literal:!1},w=q[0];w==="-"&&(w=q[1]);w>="0"&&w<="9"&&(w="#");switch(w){case "'":case '"':Z.value=q.slice(1,-1);Z.literal=!0;break;case "#":Z.value=Number(q),Z.literal=!0}Z.literal||(Z.rootProperty=g5(q),Z.structured=ix(q),Z.structured&&(Z.wildcard=q.slice(-2)==".*",Z.wildcard&&(Z.name=q.slice(0,-2))));return Z};
rWI=function(q,Z,w){q=rJ(q,w);q===void 0&&(q=Z[w]);return q};
Yn8=function(q,Z,w,r){r={indexSplices:r};V4&&!q._overrideLegacyUndefined&&(Z.splices=r);q.notifyPath(w+".splices",r);q.notifyPath(w+".length",Z.length);V4&&!q._overrideLegacyUndefined&&(r.indexSplices=[])};
OA=function(q,Z,w,r,Y,C){Yn8(q,Z,w,[{index:r,addedCount:Y,removed:C,object:Z,type:"splice"}])};
$d1=function(q){q=Rk6((q.body?q.body:q).textContent,q.baseURI);var Z=document.createElement("style");Z.textContent=q;return Z};
Cie=function(q){q=q.trim().split(/\s+/);for(var Z=[],w=0;w<q.length;w++)Z.push.apply(Z,_.Ju(eDe(q[w])));return Z};
eDe=function(q){var Z=H0.import(q);if(!Z)return console.warn("Could not find style data in module named",q),[];if(Z._styles===void 0){q=[];q.push.apply(q,_.Ju(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Z)));var w=Z.querySelector("template");w&&q.push.apply(q,_.Ju(PiT(w,Z.assetpath)));Z._styles=q}return Z._styles};
PiT=function(q,Z){if(!q._styles){for(var w=[],r=q.content.querySelectorAll("style"),Y=0;Y<r.length;Y++){var C=r[Y],d=C.getAttribute("include");d&&w.push.apply(w,_.Ju(Cie(d).filter(function(O,H,L){return L.indexOf(O)===H})));
Z&&(C.textContent=Rk6(C.textContent,Z));w.push(C)}q._styles=w}return q._styles};
ddI=function(q){return(q=H0.import(q))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(q):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(q){var Z=[];q=q.querySelectorAll("link[rel=import][type~=css]");for(var w=0;w<q.length;w++){var r=q[w];if(r.import){var Y=r.import;if((r=r.hasAttribute("shady-unscoped"))&&!Y._unscopedStyle){var C=$d1(Y);C.setAttribute("shady-unscoped","");Y._unscopedStyle=C}else Y._style||(Y._style=$d1(Y));Z.push(r?Y._unscopedStyle:Y._style)}}return Z};
OdT=function(q){q=q.trim().split(/\s+/);for(var Z="",w=0;w<q.length;w++)Z+=VlO(q[w]);return Z};
VlO=function(q){var Z=H0.import(q);if(Z&&Z._cssText===void 0){var w=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Z),r=Z.querySelector("template");r&&(w+=HdN(r,Z.assetpath));Z._cssText=w||null}Z||console.warn("Could not find style data in module named",q);return Z&&Z._cssText||""};
HdN=function(q,Z){var w="";q=PiT(q,Z);for(Z=0;Z<q.length;Z++){var r=q[Z];r.parentNode&&r.parentNode.removeChild(r);w+=r.textContent}return w};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(q){var Z="";q=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(q);for(var w=0;w<q.length;w++)Z+=q[w].textContent;return Z};
W0=function(q,Z){return{index:q,removed:[],addedCount:Z}};
o4I=function(q,Z,w,r){var Y=0,C=0,d=0,O=0,H=Math.min(Z-Y,r-C);if(Y==0&&C==0)a:{for(d=0;d<H;d++)if(q[d]!==w[d])break a;d=H}if(Z==q.length&&r==w.length){O=q.length;for(var L=w.length,S=0;S<H-d&&W12(q[--O],w[--L]);)S++;O=S}Y+=d;C+=d;Z-=O;r-=O;if(Z-Y==0&&r-C==0)return[];if(Y==Z){for(Z=W0(Y,0);C<r;)Z.removed.push(w[C++]);return[Z]}if(C==r)return[W0(Y,Z-Y)];H=Y;d=C;r=r-d+1;O=Z-H+1;Z=Array(r);for(L=0;L<r;L++)Z[L]=Array(O),Z[L][0]=L;for(L=0;L<O;L++)Z[0][L]=L;for(L=1;L<r;L++)for(S=1;S<O;S++)if(q[H+S-1]===
w[d+L-1])Z[L][S]=Z[L-1][S-1];else{var v=Z[L-1][S]+1,R=Z[L][S-1]+1;Z[L][S]=v<R?v:R}H=Z.length-1;d=Z[0].length-1;r=Z[H][d];for(q=[];H>0||d>0;)H==0?(q.push(2),d--):d==0?(q.push(3),H--):(O=Z[H-1][d-1],L=Z[H-1][d],S=Z[H][d-1],v=L<S?L<O?L:O:S<O?S:O,v==O?(O==r?q.push(0):(q.push(1),r=O),H--,d--):v==L?(q.push(3),H--,r=L):(q.push(2),d--,r=S));q.reverse();Z=void 0;H=[];for(d=0;d<q.length;d++)switch(q[d]){case 0:Z&&(H.push(Z),Z=void 0);Y++;C++;break;case 1:Z||(Z=W0(Y,0));Z.addedCount++;Y++;Z.removed.push(w[C]);
C++;break;case 2:Z||(Z=W0(Y,0));Z.addedCount++;Y++;break;case 3:Z||(Z=W0(Y,0)),Z.removed.push(w[C]),C++}Z&&H.push(Z);return H};
urj=function(q,Z){return o4I(q,q.length,Z,Z.length)};
W12=function(q,Z){return q===Z};
Snj=function(q){if(q instanceof L1e)return q.value;throw Error("Dd`"+q);};
v4N=function(q,Z){for(var w in Z)w===null?q.style.removeProperty(w):q.style.setProperty(w,Z[w])};
j0N=function(q,Z){return(q=window.getComputedStyle(q).getPropertyValue(Z))?q.trim():""};
JWj=function(q){requestAnimationFrame(function(){tlT?tlT(q):(RDj||(RDj=new Promise(function(Z){bdj=Z}),document.readyState==="complete"?bdj():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&bdj()})),RDj.then(function(){q&&q()}))})};
abI=function(q){zD6=q&&q.shimcssproperties?!1:B11||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
T16=function(q){if(!(n4X.indexOf(q)>-1)&&q!=="touchend"&&Q0I&&E4e&&xd9)return{passive:!0}};
s0z=function(q){for(var Z=UdT?["click"]:n4X,w=0,r;w<Z.length;w++)r=Z[w],q?(kf2.length=0,document.addEventListener(r,K1O,!0)):document.removeEventListener(r,K1O,!0)};
o_=function(q){var Z=q.type;return n4X.indexOf(Z)>-1?Z==="mousemove"?(Z=q.buttons===void 0?1:q.buttons,q instanceof window.MouseEvent&&!IbX&&(Z=cWj[q.which]||0),!!(Z&1)):(q.button===void 0?0:q.button)===0:!1};
Ml9=function(q){if(q.type==="click"){if(q.detail===0)return!0;var Z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q);if(!Z.nodeType||Z.nodeType!==Node.ELEMENT_NODE)return!0;Z=Z.getBoundingClientRect();var w=q.pageX;q=q.pageY;return!(w>=Z.left&&w<=Z.right&&q>=Z.top&&q<=Z.bottom)}return!1};
F12=function(q,Z,w){q.movefn=Z;q.upfn=w;document.addEventListener("mousemove",Z);document.addEventListener("mouseup",w)};
u9=function(q){document.removeEventListener("mousemove",q.movefn);document.removeEventListener("mouseup",q.upfn);q.movefn=null;q.upfn=null};
N1e=function(q,Z){for(var w=document.elementFromPoint(q,Z),r=w;r&&r.shadowRoot&&!window.ShadyDOM;){var Y=r;r=r.shadowRoot.elementFromPoint(q,Z);if(Y===r)break;r&&(w=r)}return w};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q){var Z=lbI(q);return Z.length>0?Z[0]:q.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q){var Z=q.type,w=q.currentTarget.__polymerGestures;if(w&&(w=w[Z])){if(!q.__polymerGesturesHandled&&(q.__polymerGesturesHandled={},Z.slice(0,5)==="touch")){var r=q.changedTouches[0];Z==="touchstart"&&q.touches.length===1&&(GfO=r.identifier);if(GfO!==r.identifier)return;Q0I||(Z==="touchstart"||Z==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q)}r=
q.__polymerGesturesHandled;if(!r.skip){for(var Y=0,C;Y<Ly.length;Y++)C=Ly[Y],w[C.name]&&!r[C.name]&&C.flow&&C.flow.start.indexOf(q.type)>-1&&C.reset&&C.reset();for(Y=0;Y<Ly.length;Y++)C=Ly[Y],w[C.name]&&!r[C.name]&&(r[C.name]=!0,C[Z](q))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q){var Z=q.changedTouches[0],w=q.type;if(w==="touchstart")pHz=Z.clientX,XH2=Z.clientY,md2=!1;else if(w==="touchmove"&&!md2){md2=!0;w="auto";for(var r=lbI(q),Y=0,C;Y<r.length;Y++)if(C=r[Y],C.__polymerGesturesTouchAction){w=C.__polymerGesturesTouchAction;break}r=!1;Y=Math.abs(pHz-Z.clientX);Z=Math.abs(XH2-Z.clientY);q.cancelable&&(w==="none"?r=!0:w==="pan-x"?r=Z>Y:w==="pan-y"&&(r=Y>Z));r?q.preventDefault():
Sx("track")}};
jx=function(q,Z,w){return v0[Z]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q,Z,w),!0):!1};
tl=function(q,Z,w){return v0[Z]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q,Z,w),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q,Z,w){var r=v0[Z],Y=r.deps,C=r.name,d=q.__polymerGestures;d||(q.__polymerGestures=d={});for(var O=0,H,L;O<Y.length;O++)H=Y[O],UdT&&n4X.indexOf(H)>-1&&H!=="click"||((L=d[H])||(d[H]=L={_count:0}),L._count===0&&q.addEventListener(H,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,T16(H)),L[C]=(L[C]||0)+1,L._count=(L._count||0)+1);q.addEventListener(Z,w);r.touchAction&&_.R_(q,r.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q,Z,w){var r=v0[Z],Y=r.deps;r=r.name;var C=q.__polymerGestures;if(C)for(var d=0,O,H;d<Y.length;d++)O=Y[d],(H=C[O])&&H[r]&&(H[r]=(H[r]||1)-1,H._count=(H._count||1)-1,H._count===0&&q.removeEventListener(O,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,T16(O)));q.removeEventListener(Z,w)};
AW9=function(q){Ly.push(q);for(var Z=0;Z<q.emits.length;Z++)v0[q.emits[Z]]=q};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q){for(var Z=0,w;Z<Ly.length;Z++){w=Ly[Z];for(var r=0,Y;r<w.emits.length;r++)if(Y=w.emits[r],Y===q)return w}return null};
_.R_=function(q,Z){Q0I&&q instanceof HTMLElement&&b9.run(function(){q.style.touchAction=Z});
q.__polymerGesturesTouchAction=Z};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q,Z,w){Z=new Event(Z,{bubbles:!0,cancelable:!0,composed:!0});Z.detail=w;(0,_.Cy)(q).dispatchEvent(Z);Z.defaultPrevented&&(q=w.preventer||w.sourceEvent)&&q.preventDefault&&q.preventDefault()};
Sx=function(q){q=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q);q.info&&(q.info.prevent=!0)};
Jl=function(q,Z,w,r){Z&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Z,q,{x:w.clientX,y:w.clientY,sourceEvent:w,preventer:r,prevent:function(Y){return Sx(Y)}})};
fb2=function(q,Z,w){if(q.prevent)return!1;if(q.started)return!0;w=Math.abs(q.y-w);return Math.abs(q.x-Z)>=5||w>=5};
DdI=function(q,Z,w){if(Z){var r=q.moves[q.moves.length-2],Y=q.moves[q.moves.length-1],C=Y.x-q.x,d=Y.y-q.y,O=0;if(r){var H=Y.x-r.x;O=Y.y-r.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Z,"track",{state:q.state,x:w.clientX,y:w.clientY,dx:C,dy:d,ddx:H,ddy:O,sourceEvent:w,hover:function(){return N1e(w.clientX,w.clientY)}})}};
yW8=function(q,Z,w){var r=Math.abs(Z.clientX-q.x),Y=Math.abs(Z.clientY-q.y),C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(w||Z);!C||hDT[C.localName]&&C.hasAttribute("disabled")||!(isNaN(r)||isNaN(Y)||r<=25&&Y<=25||Ml9(Z))||q.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C,"tap",{x:Z.clientX,y:Z.clientY,sourceEvent:Z,preventer:w})};
idX=function(q,Z,w,r,Y){var C;Y&&(C=typeof w==="object"&&w!==null)&&(r=q.__dataTemp[Z]);r=r!==w&&(r===r||w===w);C&&r&&(q.__dataTemp[Z]=w);return r};
qg2=function(){if(zl&&!B0){if(!g4j){g4j=!0;var q=document.createElement("style");q.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(q)}return!0}return!1};
wIT=function(){return Zcz};
rz2=function(q,Z){Zcz=q;Object.setPrototypeOf(q,Z.prototype);new Z;Zcz=null};
Ygj=function(q,Z){for(var w=0;w<Z.length;w++){var r=Z[w];if(!!q!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)q?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(q)r.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Cy)((0,_.Cy)(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{var Y=r.__polymerReplaced__;Y&&(0,_.Cy)((0,_.Cy)(Y).parentNode).replaceChild(r,Y)}else r.style&&(q?(r.__polymerDisplay__=
r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=q;r._showHideChildren&&r._showHideChildren(q)}};
$Yj=function(q){return(q=q.__dataHost)&&q._methodHost||q};
PYO=function(q,Z,w){var r=w.mutableData?eL9:a_;ny.mixin&&(r=ny.mixin(r));var Y=function(){return r.apply(this,arguments)||this};
_.z(Y,r);Y.prototype.__templatizeOptions=w;Y.prototype._bindTemplate(q);CY2(Y,q,Z,w);return Y};
Wg1=function(q,Z,w,r){var Y=w.forwardHostProp;if(Y&&Z.hasHostProps){var C=q.localName=="template",d=Z.templatizeTemplateClass;if(!d){if(C){var O=w.mutableData?dY8:VFI;d=function(){return O.apply(this,arguments)||this};
_.z(d,O);d=Z.templatizeTemplateClass=d}else{var H=q.constructor;d=function(){return H.apply(this,arguments)||this};
_.z(d,H);d=Z.templatizeTemplateClass=d}var L=Z.hostProps,S;for(S in L)d.prototype._addPropertyEffect("_host_"+S,d.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Oce(Y)}),d.prototype._createNotifyingProperty("_host_"+S);Q4&&r&&HcX(Z,w,r)}q.__dataProto&&Object.assign(q.__data,q.__dataProto);if(C)rz2(q,d),q.__dataTemp={},q.__dataPending=null,q.__dataOld=null,q._enableProperties();else{Object.setPrototypeOf(q,d.prototype);Z=Z.hostProps;for(var v in Z)v="_host_"+v,v in q&&(Z=q[v],delete q[v],q.__data[v]=
Z)}}};
Oce=function(q){return function(Z,w,r){q.call(Z.__templatizeOwner,w.substring(6),r[w])}};
CY2=function(q,Z,w,r){var Y=w.hostProps||{},C;for(C in r.instanceProps){delete Y[C];var d=r.notifyInstanceProp;d&&q.prototype._addPropertyEffect(C,q.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:oZ9(d)})}if(r.forwardHostProp&&Z.__dataHost)for(var O in Y)w.hasHostProps||(w.hasHostProps=!0),q.prototype._addPropertyEffect(O,q.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:uH8()})};
oZ9=function(q){return function(Z,w,r){q.call(Z.__templatizeOwner,Z,w,r[w])}};
uH8=function(){return function(q,Z,w){q.__dataHost._setPendingPropertyOrPath("_host_"+Z,w[Z],!0,!0)}};
ny=function(q,Z,w){if(EA&&!$Yj(q))throw Error("Jd");w=w||{};if(q.__templatizeOwner)throw Error("Kd");q.__templatizeOwner=Z;var r=(Z?Z.constructor:a_)._parseTemplate(q),Y=r.templatizeInstanceClass;Y||(Y=PYO(q,r,w),r.templatizeInstanceClass=Y);var C=$Yj(q);Wg1(q,r,w,C);w=function(){return Y.apply(this,arguments)||this};
_.z(w,Y);w.prototype._methodHost=C;w.prototype.__dataHost=q;w.prototype.__templatizeOwner=Z;w.prototype.__hostProps=r.hostProps;return w};
HcX=function(q,Z,w){w=w.constructor._properties;q=q.propertyEffects;Z=Z.instanceProps;for(var r in q)if(!(w[r]||Z&&Z[r]))for(var Y=q[r],C=0;C<Y.length;C++){var d=Y[C].info.part;if(!d.signature||!d.signature.static){console.warn("Property '"+r+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
Lg2=function(q,Z){for(var w;Z;)if(w=Z.__dataHost?Z:Z.__templatizeInstance)if(w.__dataHost!=q)Z=w.__dataHost;else return w;else Z=(0,_.Cy)(Z).parentNode;return null};
xa=function(q){return q.localName==="slot"};
Sg1=function(){for(var q=Tl.prototype,Z="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),w={},r=0;r<Z.length;w={method$jscomp$32:void 0},r++)w.method$jscomp$32=Z[r],q[w.method$jscomp$32]=function(Y){return function(){return this.node[Y.method$jscomp$32].apply(this.node,arguments)}}(w)};
vZ8=function(q,Z){for(var w={},r=0;r<Z.length;w={name$jscomp$377:void 0},r++)w.name$jscomp$377=Z[r],Object.defineProperty(q,w.name$jscomp$377,{get:function(Y){return function(){return this.node[Y.name$jscomp$377]}}(w),
configurable:!0})};
jlX=function(){for(var q=Tl.prototype,Z=["textContent","innerHTML","className"],w={},r=0;r<Z.length;w={name$jscomp$378:void 0},r++)w.name$jscomp$378=Z[r],Object.defineProperty(q,w.name$jscomp$378,{get:function(Y){return function(){return this.node[Y.name$jscomp$378]}}(w),
set:function(Y){return function(C){this.node[Y.name$jscomp$378]=C}}(w),
configurable:!0})};
tFN=function(){UA=document.documentElement.getAttribute("dir");UA=document.documentElement.getAttribute("dir");for(var q=0;q<ka.length;q++){var Z=ka[q];Z.__autoDirOptOut||Z.setAttribute("dir",UA)}};
zL6=function(){Ky=!0;requestAnimationFrame(function(){Ky=!1;RLX(bcI);setTimeout(function(){for(var q=0,Z=sA.length;q<Z;q++)JzT(sA.shift())})})};
RLX=function(q){for(;q.length;)JzT(q.shift())};
JzT=function(q){var Z=q[0],w=q[1];q=q[2];try{w.apply(Z,q)}catch(r){setTimeout(function(){throw r;})}};
_.BST=function(q,Z,w){Ky||zL6();bcI.push([q,Z,w])};
_.I_=function(q,Z,w){Ky||zL6();sA.push([q,Z,w])};
Ql2=function(q,Z){Z=Z===void 0?!1:Z;if(!a81||!nZ9||!a81.handlesDynamicScoping)return null;var w=nZ9.ScopingShim;if(!w)return null;var r=w.scopeForNode(q),Y=(0,_.Cy)(q).getRootNode(),C=function(d){if((0,_.Cy)(d).getRootNode()===Y){var O=Array.from(a81.nativeMethods.querySelectorAll.call(d,"*"));O.push(d);for(d=0;d<O.length;d++){var H=O[d];if((0,_.Cy)(H).getRootNode()===Y){var L=w.currentScopeForNode(H);L!==r&&(L!==""&&w.unscopeNode(H,L),w.scopeNode(H,r))}}}};
C(q);return Z?(Z=new MutationObserver(function(d){for(var O=0;O<d.length;O++)for(var H=d[O],L=0;L<H.addedNodes.length;L++){var S=H.addedNodes[L];S.nodeType===Node.ELEMENT_NODE&&C(S)}}),Z.observe(q,{childList:!0,
subtree:!0}),Z):null};
EZj=function(){document.body.removeAttribute("unresolved")};
KgN=function(q){var Z=q=q.replace(xYe,"").replace(TS2,""),w=new UY9;w.start=0;w.end=Z.length;for(var r=w,Y=0,C=Z.length;Y<C;Y++)if(Z[Y]==="{"){r.rules||(r.rules=[]);var d=r,O=d.rules[d.rules.length-1]||null;r=new UY9;r.start=Y+1;r.parent=d;r.previous=O;d.rules.push(r)}else Z[Y]==="}"&&(r.end=Y+1,r=r.parent||w);return kPz(w,q)};
kPz=function(q,Z){var w=Z.substring(q.start,q.end-1);q.parsedCssText=q.cssText=w.trim();q.parent&&(w=Z.substring(q.previous?q.previous.end:q.parent.start,q.start-1),w=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(w),w=w.replace(sl1," "),w=w.substring(w.lastIndexOf(";")+1),w=q.parsedSelector=q.selector=w.trim(),q.atRule=w.indexOf("@")===0,q.atRule?w.indexOf("@media")===0?q.type=4:w.match(I8j)&&(q.type=7,q.keyframesName=q.selector.split(sl1).pop()):w.indexOf("--")===
0?q.type=1E3:q.type=1);if(w=q.rules)for(var r=0,Y=w.length,C=void 0;r<Y&&(C=w[r]);r++)kPz(C,Z);return q};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(q){return q.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var Z=arguments[1],w=6-Z.length;w--;)Z="0"+Z;return"\\"+Z})};
czN=function(q,Z,w){w=w===void 0?"":w;var r="";if(q.cssText||q.rules){var Y=q.rules;if(Y&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(Y))for(var C=0,d=Y.length,O=void 0;C<d&&(O=Y[C]);C++)r=czN(O,Z,r);else Z?Z=q.cssText:(Z=q.cssText,Z=Z.replace(MFN,"").replace(Fge,""),Z=Z.replace(NS8,"").replace(l8X,"")),(r=Z.trim())&&(r="  "+r+"\n")}r&&(q.selector&&(w+=q.selector+" {\n"),w+=r,q.selector&&(w+="}\n\n"));return w};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(q){q=q[0];return!!q&&!!q.selector&&q.selector.indexOf("--")===0};
pI1=function(q){if(q=GP8[q])q._applyShimCurrentVersion=q._applyShimCurrentVersion||0,q._applyShimValidatingVersion=q._applyShimValidatingVersion||0,q._applyShimNextVersion=(q._applyShimNextVersion||0)+1};
XI6=function(q){return q._applyShimCurrentVersion===q._applyShimNextVersion};
AzI=function(q){q._applyShimValidatingVersion=q._applyShimNextVersion;q._validating||(q._validating=!0,mY2.then(function(){q._applyShimCurrentVersion=q._applyShimNextVersion;q._validating=!1}))};
DYz=function(q){if(!q)return"";typeof q==="string"&&(q=KgN(q));return czN(q,f8T)};
hL6=function(q){!q.__cssRules&&q.textContent&&(q.__cssRules=KgN(q.textContent));return q.__cssRules||null};
icz=function(q,Z,w,r){if(q){var Y=!1,C=q.type;if(r&&C===4){var d=q.selector.match(yze);d&&(window.matchMedia(d[1]).matches||(Y=!0))}C===1?Z(q):w&&C===7?w(q):C===1E3&&(Y=!0);if((q=q.rules)&&!Y)for(Y=0,C=q.length,d=void 0;Y<C&&(d=q[Y]);Y++)icz(d,Z,w,r)}};
gZz=function(q,Z){var w=q.indexOf("var(");if(w===-1)return Z(q,"","","");a:{var r=0;var Y=w+3;for(var C=q.length;Y<C;Y++)if(q[Y]==="(")r++;else if(q[Y]===")"&&--r===0)break a;Y=-1}r=q.substring(w+4,Y);w=q.substring(0,w);q=gZz(q.substring(Y+1),Z);C=r.indexOf(",");if(C===-1)return Z(w,r.trim(),"",q);Y=r.substring(0,C).trim();r=r.substring(C+1).trim();return Z(w,Y,r,q)};
qvT=function(q){if(c0!==void 0)return c0;if(q.__cssBuild===void 0){var Z=q.getAttribute("css-build");if(Z)q.__cssBuild=Z;else{a:{Z=q.localName==="template"?q.content.firstChild:q.firstChild;if(Z instanceof Comment&&(Z=Z.textContent.trim().split(":"),Z[0]==="css-build")){Z=Z[1];break a}Z=""}if(Z!==""){var w=q.localName==="template"?q.content.firstChild:q.firstChild;w.parentNode.removeChild(w)}q.__cssBuild=Z}}return q.__cssBuild||""};
wrI=function(q,Z,w,r){for(var Y=Z._noAccessors,C=Object.getOwnPropertyNames(Z),d=0;d<C.length;d++){var O=C[d];if(!(O in r))if(Y)q[O]=Z[O];else{var H=Object.getOwnPropertyDescriptor(Z,O);H&&(H.configurable=!0,Object.defineProperty(q,O,H))}}for(var L in ZI6)Z[L]&&(w[L]=w[L]||[],w[L].push(Z[L]))};
r$N=function(q,Z,w){Z=Z||[];for(var r=q.length-1;r>=0;r--){var Y=q[r];Y?Array.isArray(Y)?r$N(Y,Z):Z.indexOf(Y)<0&&(!w||w.indexOf(Y)<0)&&Z.unshift(Y):console.warn("behavior is null, check for missing or 404 import")}return Z};
YvX=function(q,Z){for(var w in Z){var r=q[w],Y=Z[w];q[w]=!("value"in Y)&&r&&"value"in r?Object.assign({value:r.value},Y):Y}};
C42=function(q,Z,w){var r={},Y=function(){return Z.apply(this,arguments)||this};
_.z(Y,Z);Y._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(d)for(var H=0,L;H<d.length;H++)L=d[H],L.properties&&this.createProperties(L.properties),L.observers&&this.createObservers(L.observers,L.properties);q.properties&&this.createProperties(q.properties);q.observers&&this.createObservers(q.observers,q.properties);this._prepareTemplate()}else Z._finalizeClass.call(this)};
Y.prototype.created=function(){Z.prototype.created.call(this);var H=r.created;if(H)for(var L=0;L<H.length;L++)H[L].call(this)};
Y.prototype._registered=function(){var H=Y.prototype;if(!H.hasOwnProperty("__hasRegisterFinished")){H.__hasRegisterFinished=!0;Z.prototype._registered.call(this);zl&&O(H);H=Object.getPrototypeOf(this);var L=r.beforeRegister;if(L)for(var S=0;S<L.length;S++)L[S].call(H);if(L=r.registered)for(S=0;S<L.length;S++)L[S].call(H)}};
Y.prototype._applyListeners=function(){Z.prototype._applyListeners.call(this);var H=r.listeners;if(H)for(var L=0;L<H.length;L++){var S=H[L];if(S)for(var v in S)this._addMethodEventListenerToNode(this,v,S[v])}};
Y.prototype._ensureAttributes=function(){var H=r.hostAttributes;if(H)for(var L=H.length-1;L>=0;L--){var S=H[L],v;for(v in S)this._ensureAttribute(v,S[v])}Z.prototype._ensureAttributes.call(this)};
Y.prototype.ready=function(){Z.prototype.ready.call(this);var H=r.ready;if(H)for(var L=0;L<H.length;L++)H[L].call(this)};
Y.prototype.attached=function(){Z.prototype.attached.call(this);var H=r.attached;if(H)for(var L=0;L<H.length;L++)H[L].call(this)};
Y.prototype.detached=function(){Z.prototype.detached.call(this);var H=r.detached;if(H)for(var L=0;L<H.length;L++)H[L].call(this)};
Y.prototype.attributeChanged=function(H,L,S){Z.prototype.attributeChanged.call(this);var v=r.attributeChanged;if(v)for(var R=0;R<v.length;R++)v[R].call(this,H,L,S)};
_.My.Object.defineProperties(Y,{properties:{configurable:!0,enumerable:!0,get:function(){var H={};if(d)for(var L=0;L<d.length;L++)YvX(H,d[L].properties);YvX(H,q.properties);return H}},
observers:{configurable:!0,enumerable:!0,get:function(){var H=[];if(d)for(var L=0,S;L<d.length;L++)S=d[L],S.observers&&(H=H.concat(S.observers));q.observers&&(H=H.concat(q.observers));return H}}});
if(w){Array.isArray(w)||(w=[w]);var C=Z.prototype.behaviors;var d=r$N(w,null,C);Y.prototype.behaviors=C?C.concat(w):d}var O=function(H){if(d)for(var L=d,S=0;S<L.length;S++)wrI(H,L[S],r,$f2);wrI(H,q,r,evX)};
zl||O(Y.prototype);Y.generatedFrom=q;return Y};
OIj=function(q){var Z=typeof q!=="string"?q:{is:q,notifyObserversOnUndefined:!0};Z.fastInit===void 0&&(Z.fastInit=!0);return function(w){if(!Z.disableInheritanceCheck&&Object.getPrototypeOf(w.prototype).constructor!==_.F1)throw Error("Od");var r=w.prototype;r.is=Z.is;LBO(r,"created",function(){this.hostElement=this;this.polymerController=this});
P48(r,w,Z.fastInit);Z.notifyObserversOnUndefined&&(r._overrideLegacyUndefined=!0);if(df1)for(var Y=_.P(Object.getOwnPropertyNames(r)),C=Y.next();!C.done;C=Y.next()){C=C.value;var d=Object.getOwnPropertyDescriptor(r,C);d.enumerable===!1&&(d.enumerable=!0,Object.defineProperty(r,C,d))}if("template"in w)var O=function(){return w.template};
else Z.template!==void 0&&(O=Z.template);if(O!==void 0){var H;Object.defineProperty(r,"_template",{get:function(){H===void 0&&(H=O());return H},
set:function(L){H=L},
configurable:!0,enumerable:!0})}Polymer(r);w[VzI]=r}};
HII=function(q){q=q===void 0?{}:q;q.fastInit===void 0&&(q.fastInit=!0);return function(Z){if(!q.disableInheritanceCheck&&Object.getPrototypeOf(Z.prototype).constructor!==l9)throw Error("Pd");P48(Z.prototype,Z,q.fastInit)}};
P48=function(q,Z,w){w=w===void 0?!1:w;W96(Z);w?LBO(q,"created",function(){this.disableEnforceFastDefaultValuesCheck||oAX(Z,this)}):LBO(q,"ready",function(){for(var r={},Y=_.P(Sz8(this.behaviors)),C=Y.next();!C.done;C=Y.next())C=C.value,C.properties&&Object.assign(r,ub2(this,C.properties));
Object.assign(r,ub2(this,this.properties));oAX(Z,this);Y=_.P(Object.keys(r));for(C=Y.next();!C.done;C=Y.next())C=C.value,this[C]=r[C]})};
oAX=function(q,Z){if(df1){q=new q;for(var w=_.P(Object.getOwnPropertyNames(q)),r=w.next();!r.done;r=w.next())r=r.value,Z[r]=q[r];for(w=Z;w&&w!==Object.prototype;w=Object.getPrototypeOf(w)){r=_.P(Object.getOwnPropertyNames(w));for(var Y=r.next();!Y.done;Y=r.next())Y=Y.value,q.hasOwnProperty(Y)||Object.defineProperty(q,Y,L9N(Z,Y))}}else q.apply(Z)};
L9N=function(q,Z){return{get:function(){var w=q[Z];return w instanceof Function?w.bind(q):w},
set:function(w){q[Z]=w}}};
ub2=function(q,Z){if(!Z)return{};for(var w={},r=_.P(Object.keys(Z)),Y=r.next();!Y.done;Y=r.next())if(Y=Y.value,!Z[Y].readOnly){var C=q[Y];C!==void 0&&(w[Y]=C)}return w};
W96=function(q){var Z=new q;q=q.prototype.properties||{};for(var w=_.P(Object.keys(q)),r=w.next();!r.done;r=w.next())if(r=r.value,Z.hasOwnProperty(r)){var Y=q[r];typeof Y==="function"&&(q[r]=Y={type:Y});Z[r]!=null&&Y.type===Object&&(Y.type=Sv6(Z[r].constructor))}};
Sv6=function(q){for(var Z=_.P(vAj),w=Z.next();!w.done;w=Z.next())if(w=w.value,q===w)return w;return Object};
jr1=function(q){return function(Z,w){Z.behaviors=Z.behaviors||[];Z.behaviors.push(q||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",Z,w).prototype:void 0));Object.defineProperty(Z,w,{get:function(){return this},
enumerable:!0,configurable:!0})}};
tzX=function(q){q=q===void 0?{}:q;return function(Z,w){Z.properties=Z.properties||{};q.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?q.type=Sv6(Reflect.getMetadata("design:type",Z,w)):q.type=String);var r=q,Y=Z.properties[w];Z.properties[w]=Y?Object.assign({},Y,r):r}};
Rv6=function(q){return function(Z,w){Z.listeners=Z.listeners||{};Z.listeners[q]=w}};
bIO=function(){var q=_.Ta.apply(0,arguments);if(q.length===0)throw Error("Qd");return function(Z,w){Z.observers=Z.observers||[];Z.observers.push(w+"("+q.join(",")+")")}};
J$O=function(){var q=_.Ta.apply(0,arguments);return function(Z,w,r){var Y=Object.getOwnPropertyDescriptor(Z,w).get,C="__compute__"+w;Object.defineProperty(Z,C,{value:Y,enumerable:!0});Z.properties=Z.properties||{};Y=Z.properties[w];Y||(Y={},Z.properties[w]=Y);Y.computed=C+"("+q.join(",")+")";r.get=void 0}};
_.Gl=function(q,Z,w){_.u6.call(this);this.JSC$9076_id_=null;this.usingListeners_=!1;this.JSC$9076_listener_=q;this.handler_=w;this.JSC$9076_win_=Z||window;this.callback_=(0,_.Lh)(this.JSC$9078_doAction_,this)};
py=function(q){this.range_=q};
X1=function(q){this.range_=q};
fy=function(q,Z,w){_.u6.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=q;this.scrollTimer_=new _.m3(50);this.JSC$9155_eventHandler_=new _.Al(this);this.scrollDelta_=new _.B3;this.containerIsActuallyContent_=q.tagName==="BODY"||q.tagName==="HTML";this.containerBounds_=zv1(q);this.containerIsActuallyContent_&&(q=_.H3(),this.containerBounds_.height=q.height,this.containerBounds_.width=q.width);this.margin_=Z||0;if(Z){if(Z=this.containerBounds_.clone(),q=this.margin_){var r=
Math.min(q,Z.height*.25);Z.top+=r;Z.height-=2*r;q=Math.min(q,Z.width*.25);Z.left+=q;Z.width-=2*q}}else Z=this.containerBounds_;this.scrollBounds_=Z;w||this.JSC$9155_eventHandler_.listen(_.nC(this.containerNode_),"mousemove",this.JSC$9157_onMouseMove);this.JSC$9155_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9157_onTick_)};
_.Dw=function(q){this.mechanism=q};
hl=function(q,Z){this.JSC$9253_key_=q;this.JSC$9253_value_=Z};
aI6=function(q){if(q>=55296&&q<=57343||q>1114111)return"\ufffd";q in BM6&&(q=BM6[q]);var Z="";q>65535&&(q-=65536,Z+=String.fromCharCode(q>>>10&1023|55296),q=56320|q&1023);return Z+=String.fromCharCode(q)};
nAN=function(q,Z){return q<Z?1:-1};
EAT=function(){return function(q){return q.charAt(1)==="#"?q.charAt(2)==="X"||q.charAt(2)==="x"?aI6(parseInt(q.substr(3),16)):aI6(parseInt(q.substr(2),10)):Qr9[q.slice(1,-1)]}};
Uf6=function(q){return q.slice(1,q.length-1).trim().replace(xfI,function(Z){return TMT[Z]||" "})};
y4=function(q){return q===32||q===9};
i9=function(q,Z){return Z<q.length?q.charCodeAt(Z):-1};
k3z=function(q){for(;q;){if(q._lastLineBlank)return!0;var Z=q.type;if(Z==="list"||Z==="item")q=q._lastChild;else break}return!1};
q$=function(q){if(K9z.test(q)){var Z=1,w=0,r=0;for(q[w]=="|"&&w++;w<q.length;){switch(q[w]){case "|":r=1;break;case " ":break;case "\t":break;default:r&&(r=0,Z++)}w++}return sr1.test(q)?-Z:Z}return 0};
IIe=function(q){return q=="table"||q=="row"||q=="cell"};
c$X=function(){return new Zj("document",[[1,1],[0,0]])};
Mz2=function(){};
w0=function(){var q={safe:!1};q=q||{};q.softbreak=q.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=q};
prO=function(q,Z){var w="";if(q)if(q=q.toLowerCase(),q===" "||F9O.test(q))w="space";else if(NMO.test(q))w="esc";else if(q.length==1){if(!Z||lIe.test(q))w=q}else w=G3T.test(q)?q.replace("arrow",""):q=="multiply"?"*":q;return w};
fIX=function(q,Z){var w=q.hasModifiers;if(Z.key)w=prO(Z.key,w);else if(Z.detail&&Z.detail.key)w=prO(Z.detail.key,w);else{w=Z.keyIdentifier;var r="";w&&(w in XrT?r=XrT[w]:mfI.test(w)?(w=parseInt(w.replace("U+","0x"),16),r=String.fromCharCode(w).toLowerCase()):r=w.toLowerCase());(w=r)||(w=Z.keyCode,r="",Number(w)&&(w>=65&&w<=90?r=String.fromCharCode(32+w):w>=112&&w<=123?r="f"+(w-112+1):w>=48&&w<=57?r=String(w-48):w>=96&&w<=105?r=String(w-96):r=A$j[w]),w=r);w=w||""}return w===q.key&&(!q.hasModifiers||
!!Z.shiftKey===!!q.shiftKey&&!!Z.ctrlKey===!!q.ctrlKey&&!!Z.altKey===!!q.altKey&&!!Z.metaKey===!!q.metaKey)};
hvz=function(q){return q.length===1?{combo:q,key:q,event:"keydown"}:q.split("+").reduce(function(Z,w){var r=w.split(":");w=r[0];r=r[1];w in DfI?(Z[DfI[w]]=!0,Z.hasModifiers=!0):(Z.key=w,Z.event=r||"keydown");return Z},{combo:q.split(":").shift()})};
y$j=function(q){return q.trim().split(" ").map(function(Z){return hvz(Z)})};
iIX=function(q,Z){if(q&&q.fn){var w=q.fn;q.fn=function(){try{w.apply(this,arguments)}catch(r){if(r instanceof r0)console.warn("Argument '"+r.arg+"'"+(Z?" for method '"+Z+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw r;}}}return q};
gAj=function(){var q=_.Ta.apply(0,arguments);return q.length===0?function(Z){return Z}:q.length===1?q[0]:q.reduce(function(Z,w){return function(){return Z(w.apply(null,_.Ju(_.Ta.apply(0,arguments))))}})};
qTI=function(){var q=_.Ta.apply(0,arguments);return function(Z){return function(w,r){w=Z(w,r);var Y=function(){throw Error("Ae");},C={getState:w.getState,
dispatch:function(d){return Y.apply(null,[d].concat(_.Ju(_.Ta.apply(1,arguments))))}};
r=q.map(function(d){return d(C)});
Y=gAj.apply(null,_.Ju(r))(w.dispatch);return Object.assign({},w,{dispatch:Y})}}};
rq6=function(q){Object.keys(q).forEach(function(Z){var w=q[Z];if(typeof w(void 0,{type:ZNO})==="undefined")throw Error("Be`"+Z);if(typeof w(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+wDj()})==="undefined")throw Error("Ce`"+Z+"`"+ZNO);})};
YQ=function(q){for(var Z=Object.keys(q),w={},r=0;r<Z.length;r++){var Y=Z[r];typeof q[Y]==="function"&&(w[Y]=q[Y])}var C=Object.keys(w);try{rq6(w)}catch(O){var d=O}return function(O,H){O=O===void 0?{}:O;if(d)throw d;for(var L=!1,S={},v=0;v<C.length;v++){var R=C[v],B=O[R],n=(0,w[R])(B,H);if(typeof n==="undefined")throw O=H&&H.type,Error("De`"+(O?'"'+String(O)+'"':"(unknown type)")+"`"+R);S[R]=n;L=L||n!==B}return(L=L||C.length!==Object.keys(O).length)?S:O}};
YTO=function(q,Z,w){function r(){if(S)throw Error("Ee");return O}
function Y(B){if(typeof B!=="function")throw Error("Fe`"+typeof B);if(S)throw Error("Ge");var n=!0;L===H&&(L=H.slice());L.push(B);return function(){if(n){if(S)throw Error("He");n=!1;L===H&&(L=H.slice());var x=L.indexOf(B);L.splice(x,1);H=null}}}
function C(B){if(typeof B!=="object"||B===null)var n=!1;else{for(n=B;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);n=Object.getPrototypeOf(B)===n}if(!n)throw Error("Ie`"+typeof B);if(typeof B.type==="undefined")throw Error("Je");if(S)throw Error("Ke");try{S=!0,O=d(O,B)}finally{S=!1}n=H=L;for(var x=0;x<n.length;x++)(0,n[x])();return B}
if(typeof Z==="function"&&typeof w==="function"||typeof w==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof Z==="function"&&typeof w==="undefined"&&(w=Z,Z=void 0);if(typeof w!=="undefined"){if(typeof w!=="function")throw Error("Me`"+typeof w);return w(YTO)(q,Z)}if(typeof q!=="function")throw Error("Ne`"+typeof q);var d=q,O=Z,H=[],L=H,S=!1;C({type:ZNO});var v={},R=(v.dispatch=C,v.subscribe=Y,v.getState=r,v.replaceReducer=function(B){if(typeof B!=="function")throw Error("Oe`"+
typeof B);d=B;C({type:$C2});return R},v[eUO]=function(){var B={};
return B.subscribe=function(n){function x(){n.next&&n.next(r())}
if(typeof n!=="object"||n===null)throw new TypeError("Pe`"+typeof n);x();return{unsubscribe:Y(x)}},B[eUO]=function(){return this},B},v);
return R};
CQT=function(q){function Z(){Y&&(Y=!1,q());C&&r()}
function w(){requestAnimationFrame(Z)}
function r(){var O=Date.now();if(Y){if(O-d<2)return;C=!0}else Y=!0,C=!1,setTimeout(w,20);d=O}
var Y=!1,C=!1,d=0;return r};
$Q=function(q){return typeof q==="number"?q:parseFloat(q)||0};
PQz=function(q){return _.Ta.apply(1,arguments).reduce(function(Z,w){return Z+$Q(q["border-"+w+"-width"])},0)};
_.a=function(q,Z){Z=c8(I9(Z));q.innerHTML=Z};
ONO=function(q){var Z=dCT;Z||(Z=V3j(),Z=dCT=_.R4.transpose(Z));Z=Z[q];return typeof Z==="string"?Z:_.es(q)};
HN6=function(q){q=String(q).toLowerCase();var Z=V3j()[q];return typeof Z==="string"?Z:_.Cp(q)};
Wx9=function(q){q=q.toLowerCase();q=V3j()[q];return typeof q==="string"?q:null};
V3j=function(){if(!o2j){for(var q=Object.assign({},uij),Z=_.P(Lxj),w=Z.next();!w.done;w=Z.next())w=w.value,q[w.toLowerCase()]=w;o2j=q}return o2j};
jnz=function(q,Z){var w=window.customElements;return w&&w.get(q)||STz[q]===!0?2:Z.name==="HTMLUnknownElement"?1:Z.name==="HTMLElement"&&v2T.test(q)?3:0};
bNO=function(q,Z){switch(Z){case "innerHTML":return t3T(q)===1?2:null;case "textContent":return q=t3T(q),q===1||q===6?1:null;default:var w,r;return(r=(w=RU2[q.localName])==null?void 0:w[Z])!=null?r:null}};
t3T=function(q){var Z=q.localName,w=jnz(Z,q.constructor);switch(w){case 0:case 1:return Jq6(Z,q);case 3:case 2:return 1;default:_.F7(w,"got an unknown element classification")}};
Jq6=function(q,Z){var w=Object.hasOwnProperty.call(zU9,q)?zU9[q]:null;return w!==null?w:Object.hasOwnProperty.call(B_T,q)&&Z instanceof SVGElement?B_T[q]:null};
aS8=function(q,Z){return Z};
Qn9=function(q){return(q=q.split(n22,2))?{url:q[0],metadata:q[1]}:null};
xCN=function(q){var Z=String(q.url).replace(E2O,encodeURIComponent);if(q=q.metadata){E2O.lastIndex=0;if(E2O.test(q))return null;Z+=" "+q}return Z};
KxO=function(q){function Z(L){var S=L.localName;if(!L.getAttribute("is")&&jnz(S,L.constructor)===2){var v;return(v=H)!=null?v:H=document.createElement("polyresinuncustomized")}(L=O[S])||(L=O[S]=document.createElement(S));return L}
var w=q.reportHandler||void 0,r=q.safeTypesBridge||T_T,Y=/^$/;if(q=q.allowedIdentifierPrefixes){q=_.P(q);for(var C=q.next();!C.done;C=q.next())Y=new RegExp(Y.source+"|^"+_.UCX(C.value))}w&&w(!1,"initResin",null);var d=kM8(Y,r,w),O={},H=null;return function(L,S,v){var R=L.nodeType;if(R!==Node.ELEMENT_NODE){if(R===Node.TEXT_NODE){S=L.parentElement;v=!S;if(S&&S.nodeType===Node.ELEMENT_NODE){R=S.localName;var B=jnz(R,S.constructor);switch(B){case 0:case 1:S=Jq6(R,S);v=S===1||S===6;break;case 3:case 2:v=
!0;break;default:_.F7(B,"got an unknown element classification")}}if(v)return function(k){return""+r(k,"STRING",k)}}return function(k){if(!k&&k!==document.all)return k;
w&&w(!0,"Failed to sanitize "+(L.parentElement&&L.parentElement.nodeName)+" #text node to value "+k,L.parentElement);return Pk}}var n=L.localName;
R=Z(L);var x=null;switch(v){case "attribute":if(HN6(S)in R)break;return function(k){return k};
case "property":if(S in R){x=bNO(R,S);break}if((B=Wx9(S))&&B in R)break;return function(k){return k};
default:_.F7(v,"got an unknown resin type, expected either 'property' or 'attribute'")}var K=v==="attribute"?S.toLowerCase():ONO(S);x||(x=rl1(n,K,function(k){var G=L.getAttribute(k);return!G||/[\[\{]/.test(k)?null:G}));
return function(k){var G=d0,rz=null;if(!k&&k!==document.all)return k;if(x!=null){var f=d[x],eO=f.safeType;rz=f.safeReplacement;eO&&(G=r(k,eO,d0));G===d0&&(f.filterString?(G=String(r(k,"STRING",k)),G=f.filterString(n,K,G)):f.filterRaw&&(G=f.filterRaw(n,K,k,L)),G===rz&&(G=d0))}G===d0&&(G=rz||Pk,w&&w(!0,"Failed to sanitize attribute of <"+n+">: <"+n+" "+K+'="'+k+'">',L));return G}}};
kM8=function(q,Z,w){return[,{filterRaw:function(r,Y,C){return C},
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:snT,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:snT,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Pk,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:IS1,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(r,Y,C){C=
String(C).toLowerCase();return ePj(r,Y,C)?C:Pk},
safeReplacement:Pk,safeType:void 0},,{filterRaw:void 0,filterString:function(r,Y,C){return q.test(C)?C:Pk},
safeReplacement:Pk,safeType:"CONSTANT"},{filterRaw:function(r,Y,C,d){if(typeof C==="string")var O=(O=C.match(cqN))?O.map(Qn9).filter(Boolean):[];else if(Array.isArray(C))O=C;else return snT;var H=O;O=[];var L=[],S={};if(Array.isArray(H))for(var v=0,R=H.length;v<R;++v){var B=H[v],n=B&&B.url;if(n){var x=Z(n,"URL",S);if(x){var K=x!==S;(K?O:L).push({url:K?x:n,metadata:B.metadata})}}}else L.push(H);H=L.length?JSON.stringify(L):null;L=d0;if(O.length){if(!Array.isArray(O))throw Error();L=O.map(xCN).filter(Boolean).join(" , ")||
d0}H&&w&&w(!0,"Failed to sanitize attribute value of <"+r+">: <"+r+" "+Y+'="'+C+'">: '+H,d);return L===d0?snT:L},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
M3N=function(q){var Z=KxO(q);return function(w,r,Y,C){return C||C===document.all?Z(w,r,Y)(C):C}};
VY=function(q,Z){function w(){function Y(O,H,L){for(H=Reflect.getMetadata("parameters",O)||[];H.length<=L;)H.push(null);H[L]=H[L]||[];H[L].push(d);Reflect.defineMetadata(H,O);return O}
var C=_.Ta.apply(0,arguments);if(this instanceof w)return r.apply(this,C),this;var d=new (Function.prototype.bind.apply(w,[null].concat(_.Ju(C))));Y.annotation=d;return Y}
var r=FxT(Z);w.prototype.toString=function(){return"@"+q};
return w.annotationCls=w};
FxT=function(q){return function(){var Z=_.Ta.apply(0,arguments),w=this;q.forEach(function(r,Y){Y=Z[Y];if(Array.isArray(r))w[r[0]]=Y&&Y!==void 0?Y:r[1];else for(var C in r)w[C]=Y&&Y[C]!==void 0?Y[C]:r[C]})}};
N_9=function(q){return q!==void 0&&q!==null};
OP=function(q){if(typeof q==="string")return q;if(q===void 0||q===null)return""+q;if(q.overriddenName)return q.overriddenName;if(q.name)return q.name;q=q.toString();var Z=q.indexOf("\n");return Z===-1?q:q.substring(0,Z)};
lS2=function(q){q.__forward_ref__=lS2;q.toString=function(){return OP(this())};
return q};
Hk=function(q){return typeof q==="function"&&q.hasOwnProperty("__forward_ref__")&&q.__forward_ref__===lS2?q():q};
GMX=function(q){return q?q.map(function(Z){return new (Function.prototype.bind.apply(Z.type.annotationCls,[null].concat(_.Ju(Z.args?Z.args:[]))))}):[]};
pDj=function(q){for(var Z=[],w=0;w<q.length;++w){if(Z.indexOf(q[w])>-1){Z.push(q[w]);break}Z.push(q[w])}return Z};
XDj=function(q){return q.length>1?" ("+pDj(q.slice().reverse()).map(function(Z){return OP(Z.token)}).join(" -> ")+")":""};
AqT=function(q,Z,w,r){if(r){var Y=Error("We``"+(r instanceof Error?r.message:r));Y.ngOriginalError=r}else Y=Error();Y.addKey=mCj;Y.keys=[Z];Y.injectors=[q];Y.constructResolvingMessage=w;Y.message=Y.constructResolvingMessage();Y.ngOriginalError=r;return Y};
mCj=function(q,Z){this.injectors.push(q);this.keys.push(Z);this.message=this.constructResolvingMessage()};
fST=function(q,Z){return AqT(q,Z,function(){return"No provider for "+OP(this.keys[0].token)+"!"+XDj(this.keys)})};
DC9=function(q,Z){return AqT(q,Z,function(){return"Cannot instantiate cyclic dependency!"+XDj(this.keys)})};
hUj=function(q,Z,w){return AqT(q,w,function(){var r=OP(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+r+"!"+XDj(this.keys)+"."},Z)};
yqT=function(q,Z){for(var w=[],r=0,Y=Z.length;r<Y;r++){var C=Z[r];C&&C.length!=0?w.push(C.map(OP).join(" ")):w.push("?")}return Error("$e`"+OP(q)+"`"+w.join(", ")+"`"+OP(q))};
Ys8=function(q){var Z=void 0,w=void 0;if(q&&q.useClass!==void 0){Z=q.useClass;var r=Hk(q.useClass);var Y=iNN.factory(r);r=g2j(r)}else q&&q.useExisting!==void 0?(Y=function(C){return C},r=[qsO(Wk.get(Hk(q.useExisting)))]):q&&q.useFactory!==void 0?(Y=q.useFactory,r=ZG6(q.useFactory,q.deps)):(w=q.useValue,Y=function(){return q.useValue},r=wWj);
return new r36(Y,r,Z,w)};
en2=function(q){return new $1T(Wk.get(Hk(q.provide)),[Ys8(q)],q.multi)};
PU2=function(q){q=CU1(q,[]).map(en2);for(var Z=new Map,w=0;w<q.length;w++){var r=q[w],Y=Z.get(r.key.id);if(Y){if(r.multiProvider!==Y.multiProvider)throw Error("bf`"+Y+"`"+r);if(r.multiProvider)for(var C=0;C<r.resolvedFactories.length;C++)Y.resolvedFactories.push(r.resolvedFactories[C]);else Z.set(r.key.id,r)}else Y=void 0,r.multiProvider?Y=new $1T(r.key,r.resolvedFactories.slice(),r.multiProvider):Y=r,Z.set(r.key.id,Y)}return Array.from(Z.values())};
CU1=function(q,Z){q.forEach(function(w){if(w instanceof d11)Z.push({provide:w,useClass:w});else if(w&&typeof w=="object"&&w.provide!==void 0)Z.push(w);else if(w instanceof Array)CU1(w,Z);else throw Error("Ze`"+w);});
return Z};
ZG6=function(q,Z){if(Z){var w=Z.map(function(r){return[r]});
return Z.map(function(r){return Vie(q,r,w)})}return g2j(q)};
g2j=function(q){var Z=iNN.parameters(q);if(!Z)return[];if(Z.some(function(w){return w==null}))throw yqT(q,Z);
return Z.map(function(w){return Vie(q,w,Z)})};
Vie=function(q,Z,w){var r=null,Y=!1;if(!Array.isArray(Z))return Z instanceof OGN?HGX(Z.token,Y,null):HGX(Z,Y,null);for(var C=null,d=0;d<Z.length;++d){var O=Z[d];if(O instanceof d11)r=O;else if(O instanceof OGN)r=O.token;else if(O instanceof Wn2)Y=!0;else if(O instanceof oX9||O instanceof u$z)C=O}r=Hk(r);if(r!=null)return HGX(r,Y,C);throw yqT(q,w);};
HGX=function(q,Z,w){return new Lnj(Wk.get(Hk(q)),Z,w)};
Ss6=function(q,Z){for(var w=Array(q.providers.length),r=0;r<q.providers.length;++r){var Y=r;if(r<0||r>=q.providers.length)throw Error("af`"+r);w[Y]=Z(q.providers[r])}return w};
vXj=function(q){return typeof q==="function"&&iNN.parameters(q).every(function(Z){return!!Z})};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(q)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(q)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q,Z){var w,r;if(q.contains(Z))return!0;q=_.os(q).querySelectorAll("content,slot");for(w=0;w<q.length;++w){var Y=_.os(q[w]).getDistributedNodes();for(r=0;r<Y.length;++r)if(Y[r].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Y[r],Z))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q){q.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(q)&&q.preventDefault();q.targetTouches&&(q=q.targetTouches[0],jtj=q.pageX,tiI=q.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 q=0,Z=u5.length;q<Z;q++)document.addEventListener(u5[q],_._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 q=0,Z=u5.length;q<Z;q++)document.removeEventListener(u5[q],_._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(q){var Z=_.os(q).rootTarget;q.type!=="touchmove"&&Rn2!==Z&&(Rn2=Z,bGT=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.os(q).path));if(!bGT.length)return!0;if(q.type==="touchstart")return!1;q=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(q);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(bGT,q.deltaX,q.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q){for(var Z=[],w=q.indexOf(J32),r=0;r<=w;r++)if(q[r].nodeType===Node.ELEMENT_NODE){var Y=q[r],C=Y.style;C.overflow!=="scroll"&&C.overflow!=="auto"&&(C=window.getComputedStyle(Y));C.overflow!=="scroll"&&C.overflow!=="auto"||Z.push(Y)}return Z};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q,Z,w){if(Z||w)for(var r=Math.abs(w)>=Math.abs(Z),Y=0;Y<q.length;Y++){var C=q[Y];if(r?w<0?C.scrollTop>0:C.scrollTop<C.scrollHeight-C.clientHeight:Z<0?C.scrollLeft>0:C.scrollLeft<C.scrollWidth-C.clientWidth)return C}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q){var Z={deltaX:q.deltaX,deltaY:q.deltaY};"deltaX"in q||("wheelDeltaX"in q&&"wheelDeltaY"in q?(Z.deltaX=-q.wheelDeltaX,Z.deltaY=-q.wheelDeltaY):"wheelDelta"in q?(Z.deltaX=0,Z.deltaY=-q.wheelDelta):"axis"in q?(Z.deltaX=q.axis===1?q.detail:0,Z.deltaY=q.axis===2?q.detail:0):q.targetTouches&&(q=q.targetTouches[0],Z.deltaX=jtj-q.pageX,Z.deltaY=tiI-q.pageY));return Z};
znX=function(q){this.element=q;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
ag1=function(q){this.element=q;this.color=window.getComputedStyle(q).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");_.os(this.waveContainer).appendChild(this.wave);Bk2(this)};
Lp=function(q,Z){for(var w in q)if(w.toLowerCase()===Z.toLowerCase())return q[w]};
nXT=function(q,Z){for(var w in q)if(w.toLowerCase()===Z.toLowerCase()){delete q[w];break}};
EX9=function(q){q=_.R4.clone(q);for(var Z=0;Z<Qte.length;++Z){var w=Qte[Z],r=Lp(q,w);r&&(q["X-Goog-Upload-Header-"+w]=r,nXT(q,w))}return q};
x1O=function(q){q=_.R4.clone(q);nXT(q,"X-Goog-Upload-Status")};
U1j=function(q){return Tk2.some(function(Z){return Z.test(q)})};
IgT=function(q,Z){var w;var r=(w=q.formContent)==null?void 0:w.locale;w=r==null?void 0:r.split("-")[0];r=r&&kSj.includes(r)?r:w&&kSj.includes(w)?w:void 0;r=(r!=null?r:"en").replaceAll("-","_").toLowerCase();var Y;q=((Y=q.initializationData)==null?0:Y.useNightlyRelease)?"nightly":"live";var C;return(Z==null?0:(C=Z.getEnableAlohaBinarySplit)==null?0:C.call(Z))?_.qu(KnX,q):_.qu(stN,q,r)};
Mij=function(q,Z,w,r){if(c39)return c39;var Y=IgT(q,r);return c39=Z.feedbackV2GlobalObject?Promise.resolve(Z.feedbackV2GlobalObject):new Promise(function(C,d){var O=_.dX("SCRIPT");_.AI(O,Y);O.onload=function(){Z.feedbackV2GlobalObject?C(Z.feedbackV2GlobalObject):d(Error("ef"))};
O.onerror=function(){d(Error("ff`"+Y.toString()))};
w.body.appendChild(O)})};
NkI=function(q,Z,w,r){if(Fn6)return Fn6;var Y=IgT(q,r);return Fn6=Z.feedbackV2GlobalObject?Promise.resolve(Z.feedbackV2GlobalObject):new Promise(function(C,d){var O=_.dX("SCRIPT");_.AI(O,Y);O.onload=function(){Z.feedbackV2GlobalObject?C(Z.feedbackV2GlobalObject):d(Error("ef"))};
O.onerror=function(){d(Error("ff`"+Y.toString()))};
w.body.appendChild(O)})};
lge=function(q,Z,w,r,Y){Y=Y===void 0?!0:Y;var C,d,O,H,L;return _.V(function(S){switch(S.nextAddress){case 1:return C=Date.now(),_.W(S,Mij(q,w,r,Z),2);case 2:d=S.yieldResult;if(!(Y||((H=q.initializationData)==null?0:H.useNightlyRelease)||((L=q.initializationData)==null?0:L.isLocalServer))){O=d.initializeFeedbackClient(q,C,Z);S.jumpTo(3);break}return _.W(S,d.initializeFeedbackClientAsync(q,C,Z),4);case 4:O=S.yieldResult;case 3:return O.initiateAloha(),S.return(O)}})};
GS2=function(q,Z,w,r){var Y,C,d;return _.V(function(O){if(O.nextAddress==1)return Y=Date.now(),_.W(O,NkI(q,w,r.document,Z),2);if(O.nextAddress!=3)return C=O.yieldResult,_.W(O,C.initializeFeedbackClientAsync(q,Y,Z,r),3);d=O.yieldResult;d.initiateAloha();return O.return(d)})};
pW8=function(q,Z,w){var r=!0;r=r===void 0?!0:r;var Y,C,d,O,H,L,S,v,R,B;return _.V(function(n){Y=w||_.$1;if((C=Z)==null?0:(O=(d=C).getEnableAlohaBinarySplit)==null?0:O.call(d)){H=Y;if(H.isFormOpened)throw L=Error("gf"),L.name="DuplicateFormError",L;H.isFormOpened=!0;q.callbacks=q.callbacks||{};S=q.callbacks.onClose||function(){};
q.callbacks.onClose=function(x){H.isFormOpened=!1;S(x)};
try{return n.return(GS2(q,Z,H,Y))}catch(x){throw H.isFormOpened=!1,x;}}else{v=Y;if(v.isFormOpened)throw R=Error("gf"),R.name="DuplicateFormError",R;v.isFormOpened=!0;q.callbacks=q.callbacks||{};B=q.callbacks.onClose||function(){};
q.callbacks.onClose=function(x){v.isFormOpened=!1;B(x)};
try{return n.return(lge(q,Z,v,Y.document,r))}catch(x){throw v.isFormOpened=!1,x;}}_.ub(n)})};
D1X=function(q,Z){return _.V(function(w){return w.return(new Promise(function(r){var Y=XWj(Z!=null?Z:"")+"/aloha_form_properties?productId="+q;m1O(Y,function(C){C=C.target;var d=null;try{var O=JSON,H=O.stringify;if(C.JSC$7669_xhr_){var L=C.JSC$7669_xhr_.responseText;L.indexOf(")]}'\n")==0&&(L=L.substring(5));var S=(0,_.Ss)(L)}else S=void 0;d=Q9e(A3j,H.call(O,S))}catch(v){H=new A3j,S=fg6(),S=_.vk(S,13,!1),S=_.vk(S,14,!0),S=_.vk(S,15,!0),S=_.vk(S,20,!1),d=_.CA(H,1,S)}r(d)},"GET","",{},2E3,!0)}))})};
XWj=function(q){return U1j(q)?q:"https://www.google.com/tools/feedback"};
gXO=function(q){q=q.match(new RegExp(hnO,"gi"))||[];q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next()){Z=Z.value;a:{var w=_.P(y3z);for(var r=w.next();!r.done;r=w.next())if(r.value.test(Z)){w=!1;break a}w=!0}if(!w)a:{w=_.P(iGj);for(r=w.next();!r.done;r=w.next())if(r.value.test(Z)){w=!0;break a}w=!1}if(w)return!0}return!1};
qiN=function(q){switch(q){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"}};
wBN=function(q){if(window.crypto&&window.crypto.getRandomValues)try{var Z=Array(q),w=new Uint8Array(q);window.crypto.getRandomValues(w);for(var r=0;r<Z.length;r++)Z[r]=w[r];return Z}catch(C){}Z=Array(q);for(w=0;w<q;w++){r=Date.now();for(var Y=0;Y<r%23;Y++)Z[w]=Math.random();Z[w]=Math.floor(Math.random()*256)}if(Zj9)for(w=1,r=0;r<Zj9.length;r++)Z[w%q]^=Z[(w-1)%q]/4^Zj9.charCodeAt(r),w++;return Z};
js=function(q){q=wBN(q);for(var Z=[],w=0;w<q.length;w++)Z.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(q[w]&63));return Z.join("")};
Yij=function(q){q&&_.vO("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:rH2,clientScreenNonce:q})};
$LT=function(q){return _.zj("client-screen-nonce-store",{})[q===void 0?0:q]};
e1T=function(q,Z){Z=Z===void 0?0:Z;var w=_.zj("client-screen-nonce-store");w||(w={},_.bO("client-screen-nonce-store",w));w[Z]=q};
CaO=function(q){q=q===void 0?0:q;return q===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+q};
PaN=function(q){return _.zj(CaO(q===void 0?0:q))};
_.Rs=function(q){return(q=PaN(q===void 0?0:q))?new _.ty({veType:q,youtubeData:void 0,jspbYoutubeData:void 0}):null};
dL2=function(){var q=_.zj("csn-to-ctt-auth-info");q||(q={},_.bO("csn-to-ctt-auth-info",q));return q};
Vb9=function(){return Object.values(_.zj("client-screen-nonce-store",{})).filter(function(q){return q!==void 0})};
_.b5=function(q){q=$LT(q===void 0?0:q);if(!q&&!_.BF("USE_CSN_FALLBACK",!0))return null;q||(q="UNDEFINED_CSN");return q?q:null};
Hj2=function(q){for(var Z=_.P(Object.values(Oj2)),w=Z.next();!w.done;w=Z.next())if(_.b5(w.value)===q)return!0;return!1};
WwT=function(q,Z,w){var r=dL2();(w=_.b5(w))&&delete r[w];Z&&(r[q]=Z)};
Jy=function(q){return dL2()[q]};
_.onz=function(q,Z,w,r){w=w===void 0?0:w;if(q!==$LT(w)||Z!==_.zj(CaO(w)))if(WwT(q,r,w),e1T(q,w),_.bO(CaO(w),Z),Z=function(){setTimeout(function(){Yij(q)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(Z)}catch(Y){Z()}else Z()};
uJz=function(q,Z){Z=Z===void 0?"":Z;var w=[],r;for(r in q)if(q.hasOwnProperty(r)){var Y=Z!==""?Z+"."+r:r;typeof q[r]==="object"?w.push.apply(w,_.Ju(uJz(q[r],Y))):w.push([Y,q[r]])}w.sort();return w};
_.Si9=function(q){var Z=_.Ta.apply(1,arguments);if(!zX(q)||Z.some(function(r){return!zX(r)}))throw Error("hf");
Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next())Lw6(q,w.value)};
Lw6=function(q,Z){for(var w in Z)if(zX(Z[w])){if(w in q&&!zX(q[w]))throw Error("jf");w in q||(q[w]={});Lw6(q[w],Z[w])}else if(vn8(Z[w])){if(w in q&&!vn8(q[w]))throw Error("kf");w in q||(q[w]=[]);j7j(q[w],Z[w])}else q[w]=Z[w];return q};
j7j=function(q,Z){Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next())w=w.value,zX(w)?q.push(Lw6({},w)):vn8(w)?q.push(j7j([],w)):q.push(w);return q};
zX=function(q){return typeof q==="object"&&!Array.isArray(q)};
vn8=function(q){return typeof q==="object"&&Array.isArray(q)};
R16=function(q){for(var Z=_.P(Object.entries(tb6)),w=Z.next();!w.done;w=Z.next())if(w=_.P(w.value),w.next(),w=w.next().value,w==="SLI_STATUS_"+q)return w;return"SLI_STATUS_UNKNOWN"};
_.Bk=function(q,Z,w,r){return bjz(q,Z,function(){return new _.JHz(q,Z,w,r)})};
_.z1X=function(){return _.Bk("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
B2j=function(){return _.Bk("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
as=function(){return _.Bk("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
a7X=function(){return _.Bk("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
nnT=function(){return _.Bk("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
Q71=function(){return _.Bk("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
T2z=function(q){q&&(q.dataset?q.dataset[En1()]="true":_.DF([_.ib(xLX)],q,"data-loaded","true".toString()))};
UL1=function(q){return q?q.dataset?q.dataset[En1()]:q.getAttribute("data-loaded"):null};
En1=function(){return kZj.loaded||(kZj.loaded="loaded".replace(/\-([a-z])/g,function(q,Z){return Z.toUpperCase()}))};
_.np=function(q,Z,w){Kw2(q,Z,w===void 0?null:w)};
_.I71=function(q,Z){q&&Z&&(q=""+_.yj(Z),(q=s7z[q])&&_.GLX(q))};
Kw2=function(q,Z,w){w=w===void 0?null:w;var r=_.cHj(q),Y=document.getElementById(r),C=Y&&UL1(Y),d=Y&&!C;C?Z&&Z():(Z&&(C=_.h9(r,Z),Z=""+_.yj(Z),s7z[Z]=C),d||(Y=MbO(q,r,function(){UL1(Y)||(T2z(Y),_.pJe(r),_.hf(function(){_.mxj(r)},0))},w)))};
MbO=function(q,Z,w,r){r=r===void 0?null:r;var Y=_.dX("SCRIPT");Y.id=Z;Y.onload=function(){w&&setTimeout(w,0)};
Y.onreadystatechange=function(){switch(Y.readyState){case "loaded":case "complete":Y.onload()}};
r&&Y.setAttribute("nonce",r);_.AI(Y,_.vG(q));q=document.getElementsByTagName("head")[0]||document.body;q.insertBefore(Y,q.firstChild);return Y};
_.cHj=function(q){var Z=document.createElement("a");KA(Z,q);return"js-"+QY(Z.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.l7z=function(){var q=_.R4.clone(FwO),Z;return(new _.r5(function(w,r){q.onSuccess=function(Y){QV9(Y)?w(new N2I(Y)):r(new _.EP("Request failed, status="+DV(Y),"net.badstatus",Y))};
q.onError=function(Y){r(new _.EP("Unknown request error","net.unknown",Y))};
q.onTimeout=function(Y){r(new _.EP("Request timed out","net.timeout",Y))};
Z=_.q4("//googleads.g.doubleclick.net/pagead/id",q)})).thenCatch(function(w){if(w instanceof _.xQ){var r;
(r=Z)==null||r.abort()}return _.TX(w)})};
GZN=function(q){var Z=_.zj("INNERTUBE_HOST_OVERRIDE");Z&&(q=String(Z)+String(_.UP(q)));return q};
pBN=function(q){var Z={};_.b("json_condensed_response")&&(Z.prettyPrint="false");return q=oKj(q,Z)};
_.kQ=function(q){return NR(q)?"same-origin":"include"};
_.Kp=function(q){return NR(q)?"same-origin":"cors"};
sP=function(q,Z,w){w=w===void 0?{}:w;q={method:Z===void 0?"POST":Z,mode:_.Kp(q),credentials:_.kQ(q)};Z={};for(var r=_.P(Object.keys(w)),Y=r.next();!Y.done;Y=r.next())Y=Y.value,w[Y]&&(Z[Y]=w[Y]);Object.keys(Z).length>0&&(q.headers=Z);return q};
_.Is=function(q,Z){Z=Z===void 0?{}:Z;return"service:"+q+"/"+Object.keys(Z).sort().map(function(w){return w+":"+Z[w]}).join("/")};
XB2=function(q){var Z,w,r,Y;q=(Z=_.J(q,_.ck))==null?void 0:(w=Z.watchEndpointSupportedOnesieConfig)==null?void 0:(r=w.html5PlaybackOnesieConfig)==null?void 0:(Y=r.commonConfig)==null?void 0:Y.url;if(!q)return[];Z=new _.M$(q);return Z.JSC$7906_domain_?["https://"+Z.JSC$7906_domain_+"/generate_204"]:[]};
_.f7N=function(){return mL1()||SE2()||AHI&&tm("version/")?!0:_.zj("EOM_VISITOR_DATA")?!1:!0};
DLe=function(q){var Z=q.docid||q.video_id||q.videoId||q.id;if(Z)return Z;Z=q.raw_player_response;Z||(q=q.player_response)&&(Z=JSON.parse(q));return Z&&Z.videoDetails&&Z.videoDetails.videoId||null};
_.yHz=function(q){a:{var Z="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(Z="EMBEDDED_PLAYER_MODE_PFL");var w=q.raw_embedded_player_response;if(!w&&(q=q.embedded_player_response))try{w=JSON.parse(q)}catch(Y){break a}if(w)b:for(var r in h1N)if(h1N[r]==w.embeddedPlayerMode){Z=h1N[r];break b}}return Z==="EMBEDDED_PLAYER_MODE_PFL"};
_.ijT=function(){if(_.b("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.f7N())return Error("pf");var q=_.zj("PLAYER_VARS",{});if(_.R4.get(q,"privembed",!1)=="1")return Error("qf");if(_.yHz(q))return Error("rf")};
gn6=function(q){return q.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
FK=function(q){return!isNaN(Number(q))&&!_.W6(q)};
_.l5=function(q,Z,w,r){r=r===void 0?!0:r;var Y=_.zj("VALID_SESSION_TEMPDATA_DOMAINS",[]),C=_.MR(window.location.href);C&&Y.push(C);C=_.MR(q);if(_.Mj(Y,C)||!C&&_.Vj(q,"/"))if(Y=document.createElement("a"),KA(Y,q),q=Y.href)if(q=_.UP(q),q=_.N$(q))r&&!Z.csn&&(Z.itct||Z.ved)&&(Z=Object.assign({csn:_.b5()},Z)),w?(w=parseInt(w,10),isFinite(w)&&w>0&&qmj(q,Z,w)):qmj(q,Z)};
wR8=function(q){var Z=_.zj("VALID_SESSION_TEMPDATA_DOMAINS",[]),w=_.MR(window.location.href);w&&Z.push(w);w=_.MR(q);if(!(_.Mj(Z,w)||!w&&_.Vj(q,"/")))return null;q=_.UP(q);(q=_.N$(q))?(q=ZD8(q),q=(q=_.Yr.get(q,void 0)||null)?_.kT(q):{}):q=null;return q};
qmj=function(q,Z,w){q=ZD8(q);Z=Z?_.ZL(Z):"";w=w||5;_.f7N()&&_.$r(q,Z,w)};
ZD8=function(q){for(var Z=_.P(r5N),w=Z.next();!w.done;w=Z.next())q=_.pp(q,w.value);return"ST-"+QY(q).toString(36)};
YmT=function(q,Z){q.commandMetadata&&_.J(q.commandMetadata,_.XK)&&_.J(q.commandMetadata,_.XK).url&&(q=_.Ks(_.J(q.commandMetadata,_.XK).url).adurl)&&_.LuT(q)&&_.l5(_.UP(q),{encoded_ad_playback_context:Z})};
_.$B2=function(q){if(q.requestFullscreen)q=q.requestFullscreen(void 0);else if(q.webkitRequestFullscreen)q=q.webkitRequestFullscreen();else if(q.mozRequestFullScreen)q=q.mozRequestFullScreen();else if(q.msRequestFullscreen)q=q.msRequestFullscreen();else if(q.webkitEnterFullscreen)q=q.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return q instanceof Promise?q:Promise.resolve()};
_.Ay=function(q){var Z;_.xxj(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.mJ()==q&&(Z=document):Z=q;if(Z&&(q=_.xxj(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],Z))){q.call(Z)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.mJ=function(){var q=q===void 0?!1:q;var Z=_.xxj(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(q)for(;Z&&Z.shadowRoot;)Z=Z.shadowRoot.fullscreenElement;return Z?Z:null};
_.fp=function(q,Z){Z=Z===void 0?!0:Z;q.addEventListener("wheel",et1);q.overscrollConfig={cooldown:Z}};
_.Dj=function(q){q.overscrollConfig=void 0;q.removeEventListener("wheel",et1)};
et1=function(q){var Z=q.deltaY,w=q.target,r=null;if(window.Polymer&&window.Polymer.Element){if(w=q.path||q.composedPath&&q.composedPath()){w=_.P(w);for(var Y=w.next();!Y.done&&(Y=Y.value,!CBI(Y,Z));Y=w.next())if(Y.overscrollConfig){r=Y;break}}}else for(;w&&!CBI(w,Z);){if(w.overscrollConfig){r=w;break}w=w.parentElement}r&&(Z=r.overscrollConfig,Z.cooldown?(r=q.deltaY,w=Z.lastDeltaY||0,Z.lastDeltaY=r,Y=Z.lastStopped||0,w&&Y&&w>0==r>0?Math.abs(w)>=Math.abs(r)?(r=Y+1200,w=!1):(r=Y+600,w=!0):(r=Date.now()+
600,w=!0),r>Date.now()&&(q.preventDefault(),w&&(Z.lastStopped=Date.now()))):q.preventDefault())};
CBI=function(q,Z){return Z<0&&q.scrollTop>0||Z>0&&q.scrollTop<q.scrollHeight-q.clientHeight-1?(q=getComputedStyle(q).overflowY,q=="auto"||q=="scroll"):!1};
_.hy=function(q,Z,w,r){r||(r={bubbles:!0,cancelable:!1,composed:!0});w!==null&&w!==void 0&&(r.detail=w);Z=new CustomEvent(Z,r);q.dispatchEvent(Z);return Z};
_.yY=function(q,Z,w,r){Z=new PBI(Z,!(r===void 0||!r),w);_.hy(q,"yt-action",Z);return Z.returnValue};
_.i5=function(q,Z,w){return _.yY(q,Z,w,!0)};
_.g0=function(q,Z,w){return _.yY(q,Z,w)[0]};
_.ZC=function(q,Z,w,r){Z&&Z.length&&Z.forEach(function(Y){var C=EL9(Y);C&&(_.b("handle_service_request_actions")&&Y.commandMetadata&&Y.commandMetadata.webCommandMetadata&&Y.commandMetadata.webCommandMetadata.sendPost?_.qM(w?w:q,[Y]):_.i5(q,C,[Y,w,r]))})};
_.qM=function(q,Z){var w=[q];Z&&w.push.apply(w,Z);Z=_.yY(q,"yt-service-request",w);return Z.length>0&&(Z=Z[0],_.hy(q,"yt-service-request-sent",Z),Z&&Z.ajaxPromise)?(Z.ajaxPromise.then(function(r){_.hy(q,"yt-service-request-completed",r)},function(r){_.hy(q,"yt-service-request-error",{error:r,
params:w})},q),Z.ajaxPromise):_.YK()};
_.eK=function(q,Z){if(_.b("handle_service_request_actions"))_.ZC(Z,q,Z);else{q=_.P(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;var r=void 0;((r=_.J(w,_.$K))==null?0:r.commands)?_.eK(_.J(w,_.$K).commands,Z):(r=void 0,((r=_.J(w,_.CR))==null?0:r.actions)?_.eK(_.J(w,_.CR).actions,Z):(r=void 0,((r=_.J(w.commandMetadata,_.XK))==null?0:r.sendPost)?_.qM(Z,[w]):_.ZC(Z,[w],Z)))}}};
_.Vgj=function(q,Z,w){Z=Z===void 0?{}:Z;typeof Z==="function"&&(Z={callback:Z});w||Z._c&&Z._c.jsl&&Z._c.jsl.h||_.R4.extend(Z,{_c:{jsl:{h:_.zj("GAPI_HINT_PARAMS")}}});(Z.gapiHintOverride||_.zj("GAPI_HINT_OVERRIDE"))&&(w=_.Ks(document.location.href).gapi_jsh)&&_.R4.extend(Z,{_c:{jsl:{h:w}}});dB9(q,Z)};
_.dT=function(q,Z,w){Z=Z===void 0?{}:Z;q=(q=q in Pd?Pd[q]:w)||"";w={};for(var r in Z){w={key$jscomp$782:w.key$jscomp$782};w.key$jscomp$782=r;var Y=function(C){return function(){return String(Z[C.key$jscomp$782])}}(w);
q=q.replace(new RegExp("\\$\\{"+w.key$jscomp$782+"\\}","gi"),Y);q=q.replace(new RegExp("\\$"+w.key$jscomp$782,"gi"),Y)}return q};
_.VG=function(q,Z){return ODN(q in Pd?Pd[q]:{},Z)};
ODN=function(q,Z){var w=_.zj("I18N_PLURAL_RULES");w||(w=function(r){return r==1?"one":"other"});
return(q=q["case"+Z]||q[w(Z)])?q.replace("#",Z.toString()):Z+""};
oDe=function(q){var Z=HD9(q),w=document.getElementById(Z),r=w&&UL1(w);r||w&&!r||(w=W7O(q,Z,function(){if(!UL1(w)){T2z(w);_.pJe(Z);var Y=_.Oh(_.mxj,Z);_.hf(Y,0)}}))};
W7O=function(q,Z,w){var r=document.createElement("link");r.id=Z;r.onload=function(){w&&setTimeout(w,0)};
q=_.vG(q);_.hI(r,q,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(r);return r};
HD9=function(q){var Z=_.dX("A");KA(Z,j6(q));return"css-"+QY(Z.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.L72=function(q){var Z=uO1();q!==Z&&(Z=_.Hd(),!_.b("web_autonav_allow_off_by_default")&&q||_.Wd(0,141,!0),_.Wd(0,140,!q),Z.save())};
uO1=function(){var q=_.Hd();return _.b("web_autonav_allow_off_by_default")&&!q.getFlag(141)&&_.zj("AUTONAV_OFF_BY_DEFAULT")?!1:!q.getFlag(140)};
Sm8=function(q,Z){var w,r;q=((w=q.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(r=w.videoAuthorizationToken)==null?void 0:r.credentialTransferTokens)||[];for(w=0;w<q.length;++w)if(q[w].scope===Z)return q[w].token||void 0};
vDT=function(q){for(var Z=0,w=0;w<q.length;w++)Z=Z*31+q.charCodeAt(w),w<q.length-1&&(Z%=0x800000000000);return Z%1E5};
_.oV=function(q){return _.Eq("ytcsi."+(q||"")+"data_")||jWI(q)};
_.tg9=function(q){q=_.oV(q);q.metadata||(q.metadata={});return q.metadata};
_.Rt9=function(q){q=_.oV(q);q.tick||(q.tick={});return q.tick};
_.bDT=function(q){q=_.oV(q);if(q.gel){var Z=q.gel;Z.gelInfos||(Z.gelInfos={});Z.gelTicks||(Z.gelTicks={})}else q.gel={gelTicks:{},gelInfos:{}};return q.gel};
_.J5e=function(q){q=_.bDT(q);q.gelInfos||(q.gelInfos={});return q.gelInfos};
ztN=function(q){var Z=_.oV(q).nonce;Z||(Z=js(16),_.oV(q).nonce=Z);return Z};
jWI=function(q){var Z={tick:{},info:{}};_.IR("ytcsi."+(q||"")+"data_",Z);return Z};
B4O=function(){var q=_.Eq("ytcsi.debug");q||(q=[],_.IR("ytcsi.debug",q),_.IR("ytcsi.reference",{}));return q};
_.nDj=function(q){q=q||"";var Z=aGT();if(Z[q])return Z[q];var w=B4O(),r={timerName:q,info:{},tick:{},span:{},jspbInfo:[]};w.push(r);return Z[q]=r};
QW8=function(q){q=q||"";var Z=aGT();Z[q]&&delete Z[q];var w=B4O(),r={timerName:q,info:{},tick:{},span:{},jspbInfo:[]};w.push(r);Z[q]=r};
aGT=function(){var q=_.Eq("ytcsi.reference");if(q)return q;B4O();return _.Eq("ytcsi.reference")};
_.xB9=function(q){return EDj[q]||"LATENCY_ACTION_UNKNOWN"};
K7j=function(q,Z,w){w=w===void 0?{}:w;var r=!1;_.BF("ytLoggingEventsDefaultDisabled",!1)&&(r=!0);r=r?null:SX;w=w===void 0?{}:w;var Y=Math.round(w.timestamp||(0,_.lp)());_.OU(Z,1,Y<Number.MAX_SAFE_INTEGER?Y:0);Y=new T41;if(w.lact)_.OU(Y,1,isFinite(w.lact)?w.lact:-1);else if(w.timestamp)_.OU(Y,1,-1);else{var C=_.pB();_.OU(Y,1,isFinite(C)?C:-1)}if(w.sequenceGroup&&!_.b("web_gel_sequence_info_killswitch")){C=w.sequenceGroup;var d=wx6(C),O=new UBe;O.setIndex(d);_.uM(O,1,C);_.CA(Y,3,O);w.endOfSequence&&
delete kTe[w.sequenceGroup]}_.CA(Z,33,Y);(w.sendIsolatedPayload?Ple:d0e)(q,{endpoint:"log_event",payload:Z,cttAuthInfo:w.cttAuthInfo,dangerousLogToVisitorSession:w.dangerousLogToVisitorSession},r)};
_.LR=function(){return(_.b("csi_use_time_origin")||_.b("csi_use_time_origin_tvhtml5"))&&_.uI.timeOrigin?Math.floor(_.uI.timeOrigin):_.uI.timing.navigationStart};
_.sWe=function(q,Z){_.SK("_start",q,Z)};
_.vd=function(q,Z){if(!_.b("web_csi_action_sampling_enabled")||!_.oV(Z).actionDisabled){var w=_.nDj(Z||"");_.Si9(w.info,q);q.loadType&&(w=q.loadType,_.tg9(Z).loadType=w);_.Si9(_.J5e(Z),q);w=ztN(Z);Z=_.oV(Z).cttAuthInfo;IG2().info(q,w,Z)}};
c56=function(){var q,Z,w,r;return((r=_.t().resolve(_.Gj(ow))==null?void 0:(q=ZV2())==null?void 0:(Z=q.loggingHotConfig)==null?void 0:(w=Z.csiConfig)==null?void 0:w.debugTicks)!=null?r:[]).map(function(Y){return Object.values(Y)[0]})};
_.SK=function(q,Z,w){if(!_.b("web_csi_action_sampling_enabled")||!_.oV(w).actionDisabled){var r=ztN(w),Y;if(Y=_.b("web_csi_debug_sample_enabled")&&r){(_.t().resolve(_.Gj(ow))==null?0:ZV2())&&!Mg8&&(Mg8=!0,_.SK("gcfl",(0,_.lp)(),w));var C,d,O;Y=(_.t().resolve(_.Gj(ow))==null?void 0:(C=ZV2())==null?void 0:(d=C.loggingHotConfig)==null?void 0:(O=d.csiConfig)==null?void 0:O.debugSampleWeight)||0;if(C=Y!==0)b:{C=c56();if(C.length>0)for(d=0;d<C.length;d++)if(q===C[d]){C=!0;break b}C=!1}C?(Y=vDT(r)%Y!==0,
_.oV(w).debugTicksExcludedLogged||(C={},C.debugTicksExcluded=Y,_.vd(C,w)),_.oV(w).debugTicksExcludedLogged=!0):Y=!1}if(!Y){q[0]!=="_"&&F7j(q,w,Z);Y=_.nDj(w||"");Y.tick[q]=Z||(0,_.lp)();if(Y.callback&&Y.callback[q])for(Y=_.P(Y.callback[q]),C=Y.next();!C.done;C=Y.next())C=C.value,C();Y=_.bDT(w);Y.gelTicks&&(Y.gelTicks[q]=!0);C=_.Rt9(w);Y=Z||(0,_.lp)();_.b("log_repeated_ytcsi_ticks")?q in C||(C[q]=Y):C[q]=Y;C=_.oV(w).cttAuthInfo;q==="_start"?IG2().baseline(r,Z,C):IG2().tick(q,r,Z,C);_.N49(w);return Y}}};
F7j=function(q,Z,w){if(_.uI.mark)if(q.startsWith("mark_")||(q="mark_"+q),Z&&(q+=" ("+Z+")"),w===void 0||_.b("web_csi_disable_alt_time_performance_mark"))_.uI.mark(q);else{w=_.b("csi_use_performance_navigation_timing")||_.b("csi_use_performance_navigation_timing_tvhtml5")?w-_.uI.timeOrigin:w-(_.uI.timeOrigin||_.uI.timing.navigationStart);try{_.uI.mark(q,{startTime:w})}catch(r){}}};
lG2=function(){var q,Z=(q=_.uI.getEntriesByType)==null?void 0:q.call(_.uI,"mark");Z&&Z.forEach(function(w){if(w.name.startsWith("mark_")){var r;(r=_.uI.clearMarks)==null||r.call(_.uI,w.name)}})};
_.GTI=function(){switch(Ec8()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.pRX=function(q){var Z={},w=function(C,d,O){d=d.match("_rid")?d.split("_rid")[0]:d;typeof O==="number"&&(O=JSON.stringify(O));C.requestIds?C.requestIds.push({endpoint:d,id:O}):C.requestIds=[{endpoint:d,id:O}]};
q=_.P(Object.entries(q));for(var r=q.next();!r.done;r=q.next()){var Y=_.P(r.value);r=Y.next().value;Y=Y.next().value;switch(r){case "GetBrowse_rid":w(Z,r,Y);break;case "GetGuide_rid":w(Z,r,Y);break;case "GetHome_rid":w(Z,r,Y);break;case "GetPlayer_rid":w(Z,r,Y);break;case "GetSearch_rid":w(Z,r,Y);break;case "GetSettings_rid":w(Z,r,Y);break;case "GetTrending_rid":w(Z,r,Y);break;case "GetWatchNext_rid":w(Z,r,Y);break;case "yt_red":Z.isRedSubscriber=!!Y;break;case "yt_ad":Z.isMonetized=!!Y}}return Z};
_.XRI=function(q){var Z=_.jK("aft",q);if(Z)return Z;Z=_.zj((q||"")+"TIMING_AFT_KEYS",["ol"]);for(var w=Z.length,r=0;r<w;r++){var Y=_.jK(Z[r],q);if(Y)return Y}return NaN};
_.mBe=function(q,Z){_.IR("ytglobal.timing"+(Z||"")+"ready_",q)};
_.jK=function(q,Z){if(q=_.Rt9(Z)[q])return typeof q==="number"?q:q[q.length-1]};
_.N49=function(q){var Z=_.jK("_start",q),w=_.XRI(q),r=!A5N;Z&&w&&r&&(rJe(fGI,new DBj(Math.round(w-Z),q)),A5N=!0)};
y5X=function(q){jWI(q);ht2();lG2();q||(_.zj("TIMING_ACTION")&&_.bO("PREVIOUS_ACTION",_.zj("TIMING_ACTION")),_.bO("TIMING_ACTION",""))};
_.iDI=function(q){q=q===void 0?{}:q;_.QV(function(){tT();QW8();y5X();_.mBe(!1);q.cttAuthInfo&&(_.oV().cttAuthInfo=q.cttAuthInfo);_.bO("TIMING_AFT_KEYS",[]);q.isHot?_.RV({loadType:"hot"}):_.RV({loadType:"warm"});_.bO("TIMING_ACTION","");delete _.zj("TIMING_INFO",{}).yt_lt;_.QV(_.sWe)(q.startTime,void 0)})()};
_.bI=function(q,Z,w,r){Z=Z===void 0?{}:Z;_.QV(function(){var Y=w?w:q;gDN(Y);var C=Z.sampleRate;if(!_.b("web_csi_action_sampling_enabled")||C===void 0||C<=1)C=!1;else{var d=ztN(Y);C=vDT(d)%C!==0}C&&(_.oV(Y).actionDisabled=!0);_.nDj(Y||"").info.actionType=q;Z.cttAuthInfo&&(_.oV(Y).cttAuthInfo=Z.cttAuthInfo);_.bO(Y+"TIMING_ACTION",q);_.QV(_.sWe)(Z.startTime,Y);C={actionType:r||_.xB9(q)};Z.logPreviousAction&&(C.previousAction=_.xB9(_.zj("TIMING_ACTION")));(d=_.b5())&&d!=="UNDEFINED_CSN"&&(C.clientScreenNonce=
d);_.RV(C,Y);_.mBe(!0,Y)})()};
gDN=function(q){_.QV(function(){tT(q);QW8(q);y5X(q)})()};
qZX=function(){_.QV(function(){var q=[],Z;for(Z in _.Eq("ytcsi.".slice(0,-1)))Z.endsWith("data_")&&q.push(Z.slice(0,-5));q=_.P(q);for(Z=q.next();!Z.done;Z=q.next())gDN(Z.value);tT()})()};
_.wte=function(q){return _.QV(function(){return _.Zke("_start",q)})()};
_.RV=function(q,Z,w){_.QV(_.vd)(q,Z,w===void 0?!1:w)};
_.JT=function(q,Z,w){return _.QV(_.SK)(q,Z,w)};
_.Zke=function(q,Z){return _.QV(function(){var w=_.Rt9(Z);return q in w})()};
YZT=function(q){if(!_.b("universal_csi_network_ticks"))return"";q=_.gA(q)||"";for(var Z=Object.keys(r41),w=0;w<Z.length;w++){var r=Z[w];if(q.includes(r))return r}return""};
CJ2=function(q){if(!_.b("universal_csi_network_ticks"))return function(){};
var Z=r41[q];return Z?(_.z7(Z),function(){var w=_.b("universal_csi_network_ticks")?(w=$I8[q])?_.z7(w):!1:!1;return w}):function(){}};
_.z7=function(q,Z,w){return _.QV(function(){if(_.Zke(q,w))return!1;_.JT(q,Z,w);return!0})()};
_.Bd=function(q,Z,w){_.QV(function(){if(!_.wte(w)||_.Zke(q,w))return!1;_.JT(q,Z,w);return!0})()};
_.aV=function(q){return _.QV(_.jK)(q,void 0)};
tT=function(q){_.wte(q)&&_.JT("aa",void 0,q)};
_.HkT=function(q,Z,w,r,Y,C,d,O,H){var L=PJ8();O=new _.ty({veType:Z,youtubeData:C,jspbYoutubeData:O});C=nR({},L);Y&&(C.cttAuthInfo=Y);Y={csn:L,pageVe:O.getAsJson()};_.b("expectation_logging")&&H&&H.screenCreatedLoggingExpectations&&(Y.screenCreatedLoggingExpectations=H.screenCreatedLoggingExpectations);w&&w.visualElement?(Y.implicitGesture={parentCsn:w.clientScreenNonce,gesturedVe:w.visualElement.getAsJson()},d&&(Y.implicitGesture.gestureType=d)):w&&_.bx(new _.df("newScreen() parent element does not have a VE - rootVe",
Z));r&&(Y.cloneCsn=r);q?Lb("screenCreated",Y,q,C):_.vO("screenCreated",Y,C);rJe(VHN,new dIN(L));QG.clear();VQ6.clear();OkO.clear();return L};
Eh=function(q,Z,w,r,Y){_.Wb8(q,Z,w,[r],Y===void 0?!1:Y)};
_.Wb8=function(q,Z,w,r,Y){Y=Y===void 0?!1:Y;for(var C=nR({cttAuthInfo:Jy(Z)||void 0},Z),d=_.P(r),O=d.next();!O.done;O=d.next()){O=O.value;var H=O.getAsJson();(_.R4.isEmpty(H)||!H.trackingParams&&!H.veType)&&_.bx(Error("uf"));if(_.b("no_client_ve_attach_unless_shown")){var L=oJO(O,Z);if(H.veType&&!VQ6.has(L)&&!OkO.has(L)&&!Y){if(!_.b("il_attach_cache_limit")||QG.size<1E3){QG.set(L,[q,Z,w,O]);return}_.b("il_attach_cache_limit")&&QG.size>1E3&&_.bx(new _.df("IL Attach cache exceeded limit"))}O=oJO(w,
Z);QG.has(O)?uWz(w,Z):OkO.set(O,!0)}}r=r.filter(function(S){S.csn!==Z?(S.csn=Z,S=!0):S=!1;return S});
w={csn:Z,parentVe:w.getAsJson(),childVes:_.bM(r,function(S){return S.getAsJson()})};
Z==="UNDEFINED_CSN"?xK("visualElementAttached",C,w):q?Lb("visualElementAttached",w,q,C):_.vO("visualElementAttached",w,C)};
SZ2=function(q,Z,w,r,Y){Lb2(q,Z,w,Y)};
Lb2=function(q,Z,w,r){vJT(w,Z);var Y=nR({cttAuthInfo:Jy(Z)||void 0},Z);w={csn:Z,ve:w.getAsJson(),eventType:1};r&&(w.clientData=r);Z==="UNDEFINED_CSN"?xK("visualElementShown",Y,w):q?Lb("visualElementShown",w,q,Y):_.vO("visualElementShown",w,Y)};
jD1=function(q,Z,w,r){vJT(w,Z);var Y=nR({cttAuthInfo:Jy(Z)||void 0},Z);w={csn:Z,ve:w.getAsJson(),eventType:4};r&&(w.clientData=r);Z==="UNDEFINED_CSN"?xK("visualElementShown",Y,w):q?Lb("visualElementShown",w,q,Y):_.vO("visualElementShown",w,Y)};
tQ2=function(q,Z,w,r,Y){var C=(r=r===void 0?!1:r)?16:8;r=nR({cttAuthInfo:Jy(Z)||void 0,endOfSequence:r},Z);w={csn:Z,ve:w.getAsJson(),eventType:C};Y&&(w.clientData=Y);Z==="UNDEFINED_CSN"?xK("visualElementHidden",r,w):q?Lb("visualElementHidden",w,q,r):_.vO("visualElementHidden",w,r)};
bk2=function(q,Z,w,r,Y){R3e(q,Z,w,void 0,r,Y)};
R3e=function(q,Z,w,r,Y){vJT(w,Z);r=r||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var C=nR({cttAuthInfo:Jy(Z)||void 0},Z);w={csn:Z,ve:w.getAsJson(),gestureType:r};Y&&(w.clientData=Y);Z==="UNDEFINED_CSN"?xK("visualElementGestured",C,w):q?Lb("visualElementGestured",w,q,C):_.vO("visualElementGestured",w,C)};
J4z=function(q,Z,w,r){var Y=nR({cttAuthInfo:Jy(Z)||void 0},Z);w={csn:Z,ve:w.getAsJson(),clientData:r};Z==="UNDEFINED_CSN"?xK("visualElementStateChanged",Y,w):q?Lb("visualElementStateChanged",w,q,Y):_.vO("visualElementStateChanged",w,Y)};
z3X=function(){var q=wBN(16);for(var Z=[],w=0;w<q.length;w++)Z.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(q[w]&63));return Z.join("")};
xK=function(q,Z,w){BlT.push({payloadName:q,payload:w,jspbPayload:void 0,options:Z});ai8||(ai8=H5N())};
dTN=function(q){if(BlT){for(var Z=_.P(BlT),w=Z.next();!w.done;w=Z.next())w=w.value,w.payload&&(w.payload.csn=q.csn,_.vO(w.payloadName,w.payload,w.options));BlT.length=0}ai8=0};
oJO=function(q,Z){return""+q.getAsJson().veType+q.getAsJson().veCounter+Z};
vJT=function(q,Z){if(_.b("no_client_ve_attach_unless_shown")){var w=oJO(q,Z);VQ6.set(w,!0);uWz(q,Z)}};
uWz=function(q,Z){q=oJO(q,Z);QG.has(q)&&(Z=QG.get(q)||[],Eh(Z[0],Z[1],Z[2],Z[3],!0),QG.delete(q))};
nR=function(q,Z){_.b("log_sequence_info_on_gel_web")&&(q.sequenceGroup=Z);return q};
_.T7=function(q,Z,w){_.QV(Eh)(void 0,q,Z,w)};
_.Uh=function(q,Z){_.QV(SZ2)(void 0,q,Z,void 0,void 0,void 0)};
_.kK=function(q,Z,w){_.QV(function(){_.Uq(Z,function(r){jD1(void 0,q,r,w)})})()};
_.KR=function(q,Z,w,r){_.QV(function(){_.Uq(Z,function(Y){tQ2(void 0,q,Y,w,r)})})()};
_.sh=function(q,Z,w){_.QV(bk2)(void 0,q,Z,w,void 0)};
_.IV=function(q,Z,w,r){_.QV(R3e)(void 0,q,Z,w,r,void 0)};
_.cd=function(q,Z,w){_.QV(J4z)(void 0,q,Z,w,void 0)};
nJ2=function(q,Z){MM.set(q,Z)};
QDI=function(q,Z){var w=Object.keys(q);q=new _.df("[Command Handler] "+Z,{filteredCommandNames:w,originalCommand:q});_.tY(q)};
EJ8=function(q,Z){QDI(q,Z+" was called but not set")};
xI6=function(q){return function(){return new q}};
Fm=function(q){return function(){return _.t().resolve(q)}};
Tl2=function(q,Z){var w=_.J(q,_.EU);if(w&&(w=Z[w.signal]))return w();q=_.P(Object.keys(q));for(w=q.next();!w.done;w=q.next())if(w=w.value,Z[w]&&(w=Z[w]))return w()};
NM=function(q,Z,w,r){return{browseEndpoint:{browseId:q},commandMetadata:{webCommandMetadata:{url:Z,rootVe:w,webPageType:r===void 0?"WEB_PAGE_TYPE_BROWSE":r}}}};
UI6=function(q,Z,w){var r=Z=Z===void 0?0:Z;w=w===void 0?0:w;var Y=w-r;return _.lI(q,"PPSV",void 0,void 0,(Y>600?0:Y<60||w<=0||r/w>.9)?0:Z)};
_.lI=function(q,Z,w,r,Y){var C="/watch?v="+q;q={videoId:q};Z&&(q.playlistId=Z,C+="&list="+Z);r&&(C+="&pp="+r);Y&&(q.startTimeSeconds=Y,C+="&t="+Y+"s");Z={watchEndpoint:q,commandMetadata:{webCommandMetadata:{url:C,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};w&&(Z.clickTrackingParams=w);r&&(_.J(Z,_.ck).playerParams=r);return Z};
kv8=function(q){return{browseEndpoint:{browseId:"VL"+q},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+q,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
Kb2=function(q){if(q){var Z;if(q){var w=(Z=_.J(q.commandMetadata,_.XK))==null?void 0:Z.url;Z=!(!w||w==="/service_ajax")}else Z=!1;if(Z)return q;var r;if(q=(r=_.J(q,_.$K))==null?void 0:r.commands)for(r=_.P(q),q=r.next();!q.done;q=r.next())if(q=Kb2(q.value))return q}};
_.G7=function(q){return{runs:[{text:q}]}};
sD2=function(q,Z){return q&&Z?{runs:[{text:q,navigationEndpoint:Z}]}:void 0};
pR=function(q){return q?_.G7(q):void 0};
_.Xm=function(q){return q?{simpleText:q}:void 0};
_.mu=function(q){var Z=q.type;q=q.payload;Z={type:Z};q!==void 0&&(Z.payload=q);return Z};
Iie=function(q,Z,w){for(var r=Object.assign({},q),Y=_.P(Object.keys(Z)),C=Y.next();!C.done;C=Y.next()){C=C.value;var d=q[C],O=Z[C];if(O===void 0)delete r[C];else if(d===void 0)r[C]=O;else if(Array.isArray(O)&&Array.isArray(d))r[C]=w?[].concat(_.Ju(d),_.Ju(O)):O;else if(!Array.isArray(O)&&_.DT(O)&&!Array.isArray(d)&&_.DT(d))r[C]=Iie(d,O,w);else if(typeof O===typeof d)r[C]=O;else return Z=new _.df("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:C,originalValue:d,updateValue:O}),
_.tY(Z),q}return r};
Fbe=function(q){if(!q.length)return"";try{if(c4O)return c4O.decode(q);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(q)}catch(d){}for(var Z=0,w=[],r=q.length;Z<r;){for(var Y=0;Y<1024&&Z<r;){var C=q[Z++];if(C<128)MQ2[Y++]=C;else{if(C<224)C=(C&31)<<6|q[Z++]&63;else if(C<240)C=(C&15)<<12|(q[Z++]&63)<<6|q[Z++]&63;else{if(Y+1===1024){--Z;break}C=(C&7)<<18|(q[Z++]&63)<<12|(q[Z++]&63)<<6|q[Z++]&63;C-=65536;MQ2[Y++]=55296|C>>10;C=56320|C&1023}MQ2[Y++]=C}}C=String.fromCharCode.apply(String,
MQ2);Y<1024&&(C=C.substring(0,Y));w.push(C)}return w.join("")};
li6=function(q,Z){var w;if((w=Nl9)==null?0:w.encodeInto)return Z=Nl9.encodeInto(q,Z),Z.read<q.length?q.length*4:Z.written;for(var r=w=0;r<q.length;r++){var Y=q.charCodeAt(r);Y<128?Z[w++]=Y:(Y<2048?Z[w++]=Y>>6|192:((Y&64512)===55296&&r+1<q.length&&(q.charCodeAt(r+1)&64512)===56320?(Y=65536+((Y&1023)<<10)+(q.charCodeAt(++r)&1023),Z[w++]=Y>>18|240,Z[w++]=Y>>12&63|128):Z[w++]=Y>>12|224,Z[w++]=Y>>6&63|128),Z[w++]=Y&63|128)}return w};
GvO=function(q,Z){q=new Uint8Array(q);Z&&q.set(Z);return q};
_.fR=function(q){q=new pt1(new XtO([_.q7(decodeURIComponent(q))]));if(mIe(q,2)){var Z=AT(q);var w=q.pos;w=q.arrayView.getDataView(w===void 0?0:w,Z===void 0?-1:Z);w=new Uint8Array(w.buffer,w.byteOffset,w.byteLength);q.pos+=Z;Z=w}else Z=void 0;Z=Z?Fbe(Z):void 0;q=mIe(q,4)?AT(q):void 0;w=A4N[q];if(typeof w==="undefined")throw q=new _.df("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:q}),_.tY(q),q;return{entityTypeFieldNumber:q,entityType:w,entityId:Z}};
_.yG=function(q,Z,w){w=w===void 0?0:w;var r=new fiN;if(Nl9)q=Nl9.encode(q);else{var Y=new Uint8Array(Math.ceil(q.length*1.2)),C=li6(q,Y);Y.length<C&&(Y=new Uint8Array(C),C=li6(q,Y));Y.length>C&&(Y=Y.subarray(0,C));q=Y}q!==void 0&&(DC(r,18),Y=q.length,DC(r,Y),hT(r,Y),r.buf.set(q,r.pos),r.pos+=Y);q=DIT[Z];if(typeof q==="undefined")throw w=new _.df("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:Z}),_.tY(w),w;q!==void 0&&(DC(r,32),DC(r,q));DC(r,40);DC(r,1);Z=new Uint8Array(r.buf.buffer,
r.buf.byteOffset,r.pos);return encodeURIComponent(_.Rq(Z,w))};
h3j=function(q){q=q.key||q.id;if(!q)throw Error("xf");return q};
ik6=function(q,Z){q=q===void 0?{}:q;return y41(q,Z)};
gJT=function(q,Z,w,r){if(r===void 0)return r=Object.assign({},q[Z]||{}),w=(delete r[w],r),r={},Object.assign({},q,(r[Z]=w,r));var Y={},C={};return Object.assign({},q,(C[Z]=Object.assign({},q[Z],(Y[w]=r,Y)),C))};
qN6=function(q,Z,w,r,Y){var C=q[Z];if(C==null||!C[w])return q;r=Iie(C[w],r,Y==="REPEATED_FIELDS_MERGE_OPTION_APPEND");Y={};C={};return Object.assign({},q,(C[Z]=Object.assign({},q[Z],(Y[w]=r,Y)),C))};
_.iI=function(q,Z,w){return q[Z]?q[Z][w]||null:null};
wZT=function(){if(ZHe)return ZHe();var q={};ZHe=M4("PersistentEntityStoreDb",{objectStores:(q.EntityStore={addedAtVersion:1},q.EntityAssociationStore={addedAtVersion:2},q),shared:!1,upgrade:function(Z,w){w(1)&&nB(a$(Z,"EntityStore",{keyPath:"key"}),"entityType","entityType");w(2)&&(Z=a$(Z,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),nB(Z,"byParentEntityKey","parentEntityKey"),nB(Z,"byChildEntityKey","childEntityKey"))},
version:3});return ZHe()};
rAe=function(q){return _.xr(wZT(),q)};
gT=function(q){return window.Int32Array?new Int32Array(q):Array(q)};
$r8=function(q){return _.xr(YN6(),q)};
ef2=function(q){return new q9("WRONG_DATA_TYPE",{encoderVersion:q})};
CGe=function(q){return q instanceof Error?new q9("UNKNOWN_ENCODE_ERROR",{originalMessage:q.message}):new q9("UNKNOWN_ENCODE_ERROR")};
PGN=function(q){return q instanceof Error?new q9("UNKNOWN_DECODE_ERROR",{originalMessage:q.message}):new q9("UNKNOWN_DECODE_ERROR")};
dr8=function(q,Z){q=q instanceof q9?q:Z(q);_.tY(q);throw q;};
VE1=function(q){q=(new TextEncoder).encode(q).subarray(0,16);var Z=new Uint8Array(16);Z.set(q);return Z};
HHe=function(q){var Z=OH2[q];if(Z)return Z;_.bx(new _.df("Entity model not found.",{entityType:q}))};
_.Zk=function(){WG2||(WG2=o52());return WG2};
o52=function(){var q,Z,w;return _.V(function(r){if(r.nextAddress==1)return _.d9(r,2),_.W(r,_.cg(),4);if(r.nextAddress!=2){q=r.yieldResult;if(!q||!_.Pg()||typeof _.$1.BroadcastChannel==="undefined")return r.return();Z=new uGe;return r.return(new wt(q,Z))}w=_.o3(r);w instanceof Error&&_.tY(w);return r.return()})};
_.rt=function(q,Z){var w;return _.V(function(r){if(r.nextAddress==1){w=q.mutations;if(!w||w.length<=0)return r.return();Z&&Z.dispatch(_.mu({type:"ENTITY_LOADED",payload:w}));return _.W(r,LGT(w),2)}w.length=0;_.ub(r)})};
LGT=function(q){var Z;return _.V(function(w){return w.nextAddress==1?_.W(w,_.Zk(),2):(Z=w.yieldResult)?_.W(w,_.YO(Z,"readwrite",function(r){for(var Y={},C=_.P(q),d=C.next(),O={};!d.done;O={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},d=C.next())O.mutation$jscomp$4=d.value,O.mutation$jscomp$4.entityKey&&SNN(O.mutation$jscomp$4)&&(O.mutationEntityType$jscomp$3=(0,_.R4.getAnyKey)(O.mutation$jscomp$4.payload),d=void 0,O.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(d=function(H){return function(){return _.v5j(r,
H.mutation$jscomp$4.payload[H.mutationEntityType$jscomp$3],H.mutationEntityType$jscomp$3)}}(O)),O.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(d=function(H){return function(){return jxI(r,H.mutation$jscomp$4.entityKey)}}(O)),O.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(d=function(H){return function(){return tEN(r,H.mutation$jscomp$4.entityKey,H.mutation$jscomp$4.payload[H.mutationEntityType$jscomp$3],H.mutationEntityType$jscomp$3)}}(O)),d&&(Y[O.mutation$jscomp$4.entityKey]=
Y[O.mutation$jscomp$4.entityKey]?Y[O.mutation$jscomp$4.entityKey].then(d):d()));
return zO.all(Object.values(Y))}),0):w.return()})};
SNN=function(q){var Z;q=(Z=q.options)==null?void 0:Z.persistenceOption;return q==="ENTITY_PERSISTENCE_OPTION_PERSIST"||q==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
JA2=function(q,Z){var w,r;_.V(function(Y){if(Y.nextAddress==1)return _.W(Y,_.Zk(),2);if(Y.nextAddress!=3)return(w=Y.yieldResult)?_.W(Y,_.YO(w,"readonly",function(C){var d={},O=Object.keys(Z).map(function(H){var L=Z[H]?[].concat(_.Ju(Z[H])):[];return RfT(C,H,L,d)});
return zO.all(O).then(function(){return d})}),3):Y.return();
r=Y.yieldResult;Object.keys(r).length>0&&q.dispatch(bH2(r));_.ub(Y)})};
RfT=function(q,Z,w,r){return $O(q,Z,w).then(function(Y){r[Z]=zf2(w,Y)})};
zf2=function(q,Z){if(Z.length!==q.length)throw Error("Af");return Z.reduce(function(w,r,Y){w[q[Y]]=r;return w},{})};
n5j=function(q){var Z=q.filter(function(Y){var C;return(Y==null?void 0:(C=Y.transferEntity)==null?void 0:C.transferState)==="TRANSFER_STATE_COMPLETE"}).length,w=q.filter(function(Y){var C;
return(Y==null?void 0:(C=Y.transferEntity)==null?void 0:C.transferState)==="TRANSFER_STATE_FAILED"}).length,r=q.filter(function(Y){var C;
return(Y==null?void 0:(C=Y.transferEntity)==null?void 0:C.transferState)&&BZ9.includes(Y.transferEntity.transferState)});
if(!(Z||r!=null&&r.length))return 0;Z=_.a1O(r)+Z;q=q.length-w;return q===0?0:Math.round(Z*100/q)/100};
_.a1O=function(q){var Z=[];Z=Z.concat.apply(Z,_.Ju(q.filter(function(C){return C.streamEntity}).map(function(C){var d=Object.assign({},C.streamEntity),O,H=(O=C.transferEntity)==null?void 0:O.transferState;
d.streamsProgress=d.streamsProgress||[];d.streamsProgress=d.streamsProgress.map(function(L){var S=Object.assign({},L);S.numBytesDownloaded=H==="TRANSFER_STATE_COMPLETE"?L.numTotalBytes:L.numBytesDownloaded;return S});
return d}).map(function(C){return C.streamsProgress})));
var w=q=0;Z=_.P(Z);for(var r=Z.next();!r.done;r=Z.next()){var Y=r.value;r=Number(Y.numBytesDownloaded);Y=Number(Y.numTotalBytes);w+=isNaN(r)?0:r;q+=isNaN(Y)?0:Y}return q===0?0:Math.round(w*100/q)/100};
Qx8=function(q){if(!q||!q.expirationTimestamp||!q.action)return!1;var Z=(0,_.lp)()/1E3;return Number(q.expirationTimestamp)>=Z};
Cz=function(q){return q&&q.expirationTimestamp&&q.action?Qx8(q)&&q.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.PX=function(q){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(q||"TRANSFER_STATE_UNKNOWN")};
E5O=function(q){var Z=new fiN;if(q!==void 0){var w=Math.ceil(Math.log2(q.length*4+2)/7);w=w===void 0?2:w;DC(Z,10);Z.submessagePosStack.push(Z.pos);Z.submessagePosStack.push(w);Z.pos+=w;hT(Z,q.length*1.2);w=li6(q,Z.buf.subarray(Z.pos));Z.pos+w>Z.buf.length&&(hT(Z,w),w=li6(q,Z.buf.subarray(Z.pos)));Z.pos+=w;q=Z.submessagePosStack.pop();w=Z.submessagePosStack.pop();for(var r=Z.pos-w-q;q--;){var Y=q?128:0;Z.view.setUint8(w++,r&127|Y);r>>=7}}Z=new Uint8Array(Z.buf.buffer,Z.buf.byteOffset,Z.pos);return(new TextDecoder("utf-8")).decode(Z)};
_.dt=function(q){var Z=0;q=_.P(q);for(var w=q.next(),r={};!w.done;r={transferState$jscomp$3:void 0},w=q.next()){var Y=w.value,C=void 0;w=(C=Y.streamEntity)!=null?C:{};C=void 0;r.transferState$jscomp$3=(C=Y.transferEntity)==null?void 0:C.transferState;C=Y=void 0;((Y=w)==null?0:(C=Y.streamsProgress)==null?0:C.length)&&w.streamsProgress.forEach(function(d){return function(O){O=Number(d.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?O.numTotalBytes:O.numBytesDownloaded);isFinite(O)&&(Z+=O)}}(r))}return Z};
xrX=function(q){return q.some(function(Z){var w;if(!(Z==null?0:(w=Z.transferEntity)==null?0:w.transferState)){var r;return!(Z==null?0:(r=Z.policyEntity)==null?0:r.action)||Z.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return BZ9.includes(Z.transferEntity.transferState)})};
TZj=function(q,Z){if(!Z)return!1;if(_.b("of_pb_en_po_ks"))return!0;var w;q=(w=_.iI(q,"offlineVideoPolicy",_.yG(Z,"offlineVideoPolicy")))!=null?w:void 0;return!!q&&Cz(q)};
_.kge=function(q){var Z=["TRANSFER_STATE_COMPLETE"];Z=Z===void 0?Ur2:Z;return q.filter(function(w){var r,Y;return Z.includes((Y=(r=w.transferEntity)==null?void 0:r.transferState)!=null?Y:"TRANSFER_STATE_UNKNOWN")})};
KGX=function(q,Z){if(Z){var w,r=(w=_.iI(q,"playbackData",_.yG(Z,"playbackData")))!=null?w:null,Y;w=(Y=_.iI(q,"transfer",_.yG(Z,"transfer")))!=null?Y:null;var C;Y=(C=_.iI(q,"offlineVideoStreams",_.yG(Z,"offlineVideoStreams")))!=null?C:null;var d;q=(d=_.iI(q,"offlineVideoPolicy",_.yG(Z,"offlineVideoPolicy")))!=null?d:null;if(r||w||Y||q)return{playbackDataEntity:r,transferEntity:w,streamEntity:Y,policyEntity:q}}};
_.VR=function(q){var Z=q.playbackData;if(!Z)return[];var w=[];Z=_.P(Object.keys(Z));for(var r=Z.next();!r.done;r=Z.next()){var Y=r.value;if(!sxz(q,_.fR(Y).entityId)&&(r=KGX(q,_.fR(Y).entityId))){var C=void 0,d=void 0;Y=(d=Number((C=_.iI(q,"playbackData",Y))==null?void 0:C.streamDownloadTimestampSeconds))!=null?d:(0,_.lp)();w.push({entity:r,streamDownloadTimestamp:Y})}}return w.sort(function(O,H){var L=O.streamDownloadTimestamp,S=H.streamDownloadTimestamp;return S===L?O.entity.streamEntity&&!H.entity.streamEntity?
1:-1:S-L}).map(function(O){return O.entity})};
I12=function(q){return _.kge(_.VR(q))};
_.cAO=function(q){return _.VR(q).filter(function(Z){var w;if(((w=Z.policyEntity)==null?0:w.action)&&Z.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var r;if((r=Z.transferEntity)==null?0:r.transferState){var Y;return BZ9.includes((Y=Z.transferEntity)==null?void 0:Y.transferState)}return!0})};
sxz=function(q,Z){var w;return((w=_.iI(q,"downloadStatusEntity",_.yG(Z,"downloadStatusEntity")))==null?void 0:w.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
ME2=function(q){var Z;if(q==null?0:(Z=q.playbackDataEntity)==null?0:Z.key)return _.fR(q.playbackDataEntity.key).entityId;var w;if(q==null?0:(w=q.transferEntity)==null?0:w.key)return _.fR(q.transferEntity.key).entityId;var r;if(q==null?0:(r=q.streamEntity)==null?0:r.key)return _.fR(q.streamEntity.key).entityId;var Y;if(q==null?0:(Y=q.policyEntity)==null?0:Y.key)return _.fR(q.policyEntity.key).entityId};
NZ2=function(q){var Z=new Set,w;q=(w=q.mainDownloadsListEntity)==null?void 0:w[FGN];var r;if(!(q==null?0:(r=q.downloads)==null?0:r.length))return Z;var Y;q==null||(Y=q.downloads)==null||Y.forEach(function(C){(C==null?0:C.videoItem)&&Z.add(C.videoItem)});
return Z};
OE=function(q,Z){if(Z){var w=_.iI(q,"mainVideoEntity",_.yG(Z,"mainVideoEntity")),r=_.iI(q,"downloadStatusEntity",_.yG(Z,"downloadStatusEntity")),Y=_.iI(q,"ytMainChannelEntity",_.yG(Z,"ytMainChannelEntity")),C={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};q=KGX(q,Z);r=(r==null?void 0:r.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.b("woffle_render_failed_download_state_ks")&&(r==null?void 0:r.downloadState)==="DOWNLOAD_STATE_FAILED";!q&&r&&(q=C);if(q&&w&&
Y)return Object.assign({},{videoEntity:w,channelEntity:Y},q)}};
Gg8=function(q,Z){return l11(q,Z)==="TRANSFER_STATE_COMPLETE"&&TZj(q,Z)};
pZ2=function(q,Z){if(!Z)return!1;var w;q=(w=_.iI(q,"playbackData",_.yG(Z,"playbackData")))!=null?w:void 0;return!!q&&!!q.playerResponseJson};
l11=function(q,Z){if(!Z)return"TRANSFER_STATE_UNKNOWN";var w=_.iI(q,"transfer",_.yG(Z,"transfer"));if(w){var r;return(r=w.transferState)!=null?r:"TRANSFER_STATE_UNKNOWN"}w=_.iI(q,"offlineOrchestrationActionWrapperEntity",_.yG(Z,"offlineOrchestrationActionWrapperEntity"));q=_.iI(q,"mainVideoEntity",_.yG(Z,"mainVideoEntity"));return w||q?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
XZN=function(q,Z){if(!Z)return"TRANSFER_STATE_UNKNOWN";if(q=_.iI(q,"transfer",_.yG(Z,"transfer"))){var w;return(w=q.transferState)!=null?w:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
mrj=function(q,Z){return Z&&(q=_.iI(q,"videoPlaybackPositionEntity",_.yG(Z,"videoPlaybackPositionEntity")),q==null?0:q.lastPlaybackPositionSeconds)?Number(q.lastPlaybackPositionSeconds):0};
f1I=function(q,Z){return AAI(q).some(function(w){var r;return(w==null?void 0:(r=w.mainPlaylistEntity)==null?void 0:r.playlistId)===Z})};
hfT=function(q,Z,w){var r=Dr6(q,Z);if(!r.length)return[];Z=[];r=_.P(r);for(var Y=r.next();!Y.done;Y=r.next()){Y=Y.value;var C=OE(q,Y);w&&l11(q,Y)!=="TRANSFER_STATE_COMPLETE"||C&&Z.push(C)}return Z};
Dr6=function(q,Z){if(!Z)return[];var w=_.yG(Z,"mainPlaylistEntity"),r;Z=(r=q.mainPlaylistEntity)==null?void 0:r[w];r=[];if(Z==null||!Z.videos)return r;Z=_.P(Z.videos);for(w=Z.next();!w.done;w=Z.next()){w=w.value;var Y=void 0,C=void 0,d=void 0,O=(Y=q)==null?void 0:(C=Y.mainPlaylistVideoEntity)==null?void 0:(d=C[w])==null?void 0:d.video;O&&(w=_.fR(O).entityId)&&r.push(w)}return r};
yAT=function(q,Z){if(Z){var w=_.iI(q,"mainPlaylistEntity",_.yG(Z,"mainPlaylistEntity")),r=_.iI(q,"mainPlaylistDownloadStateEntity",_.yG(Z,"mainPlaylistDownloadStateEntity"));q=_.iI(q,"ytMainChannelEntity",_.yG(Z,"ytMainChannelEntity"));if(r&&w)return Object.assign({},{mainPlaylistEntity:w,mainPlaylistDownloadStateEntity:r},!!q&&{channelEntity:q})}};
AAI=function(q){return iH2(q).sort(function(Z,w){return w.addedTimestampMillis-Z.addedTimestampMillis}).map(function(Z){return Z.downloadedPlaylistEntities})};
iH2=function(q){var Z=q.mainPlaylistDownloadStateEntity,w=[];if(!Z)return w;for(var r=_.P(Object.keys(Z)),Y=r.next();!Y.done;Y=r.next()){var C=Y.value;Y=yAT(q,_.fR(C).entityId);var d=void 0;C=Number((d=Z[C])==null?void 0:d.addedTimestampMillis);d=isNaN(C)?(0,_.lp)():C;Y!==void 0&&w.push({downloadedPlaylistEntities:Y,addedTimestampMillis:d})}return w};
g59=function(q){var Z,w=(Z=q.mainPlaylistVideoEntity)!=null?Z:{};return new Set(AAI(q).reduce(function(r,Y){r=r===void 0?[]:r;var C,d;Y==null||(C=Y.mainPlaylistEntity)==null||(d=C.videos)==null||d.forEach(function(O){var H;(O=(H=w[O])==null?void 0:H.video)&&r.push(O)});
return r},[]))};
qK2=function(q){return"downloadedMusicPlaylistEntities"in q};
ZqI=function(q){return"mainPlaylistEntity"in q&&"mainPlaylistDownloadStateEntity"in q};
wV6=function(q){return"videoEntity"in q&&"channelEntity"in q};
rD6=function(q){var Z=q.musicPlaylistDownloadMetadataEntity,w=[];if(!Z)return w;for(var r=_.P(Object.keys(Z)),Y=r.next();!Y.done;Y=r.next()){Y=Y.value;a:{var C=q,d=_.fR(Y).entityId;if(d){var O=_.iI(C,"musicPlaylist",_.yG(d,"musicPlaylist"));C=_.iI(C,"musicPlaylistDownloadMetadataEntity",_.yG(d,"musicPlaylistDownloadMetadataEntity"));if(O&&C){O={musicPlaylistEntity:O,musicPlaylistDownloadStateEntity:C};break a}}O=void 0}C=void 0;Y=Number((C=Z[Y])==null?void 0:C.addedTimestampMillis);Y=isNaN(Y)?(0,_.lp)():
Y;O!==void 0&&w.push({downloadedMusicPlaylistEntities:O,addedTimestampMillis:Y})}return w};
YKj=function(q){var Z=new Set;q=_.P(q);for(var w=q.next();!w.done;w=q.next())if(w=w.value,"musicPlaylistEntity"in w&&"musicPlaylistDownloadStateEntity"in w){w=_.P(w.musicPlaylistEntity.tracks);for(var r=w.next();!r.done;r=w.next())Z.add(r.value)}return Z};
$ke=function(q,Z){if(Z){var w=_.iI(q,"musicTrack",_.yG(Z,"musicTrack")),r=_.iI(q,"musicArtist",_.yG(Z,"musicArtist"))||{};if((q=KGX(q,Z))&&w&&r)return Object.assign({},{musicTrackEntity:w,musicArtistEntity:r},q)}};
ep6=function(q){var Z=q.musicTrackDownloadMetadataEntity,w=[];if(!Z)return[];Z=_.P(Object.keys(Z));for(var r=Z.next();!r.done;r=Z.next()){var Y=r.value;r=$ke(q,_.fR(Y).entityId);var C=void 0;Y=Number((C=_.iI(q,"musicTrackDownloadMetadataEntity",Y))==null?void 0:C.addedTimestampMillis);C=isNaN(Y)?(0,_.lp)():Y;r!==void 0&&w.push({downloadedMusicEntities:r,addedTimestampMillis:C})}return w};
dkX=function(q,Z){if(!Z)return[];if(Object.values(C8e).includes(Z))return P82(q,Z);Z=_.yG(Z,"musicPlaylist");var w;q=(w=q.musicPlaylist)==null?void 0:w[Z];w=[];if(q==null||!q.tracks)return w;q=_.P(q.tracks);for(Z=q.next();!Z.done;Z=q.next())(Z=_.fR(Z.value).entityId)&&w.push(Z);return w};
P82=function(q,Z){var w=new Set,r=rD6(q).map(function(C){return C.downloadedMusicPlaylistEntities});
r=YKj(r);r=_.P(r);for(var Y=r.next();!Y.done;Y=r.next())(Y=_.fR(Y.value).entityId)&&w.add(Y);return V1O(q).downloadedMusicEntities.filter(function(C){var d;if((d=C.musicTrackEntity)!=null&&d.videoId){C=C.musicTrackEntity;if(d=Z==="PPOM"?!0:!w.has(C.videoId))b:switch(C=C.musicVideoType,Z){case "PPSE":d=C==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:d=C!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}C=d}else C=!1;return C}).map(function(C){var d;
return(d=C.musicTrackEntity)==null?void 0:d.videoId})};
V1O=function(q){var Z=ep6(q).sort(function(w,r){return r.addedTimestampMillis-w.addedTimestampMillis}).map(function(w){return"downloadedMusicEntities"in w?w.downloadedMusicEntities:qK2(w)?w.downloadedMusicPlaylistEntities:{}});
q=rD6(q).sort(function(w,r){return r.addedTimestampMillis-w.addedTimestampMillis}).map(function(w){return"downloadedMusicEntities"in w?w.downloadedMusicEntities:qK2(w)?w.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:Z,downloadedMusicPlaylistEntities:q}};
Hq9=function(q,Z){Z=_.zj("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?dkX(q,Z):Dr6(q,Z);if(!Z.length)return"TRANSFER_STATE_UNKNOWN";Z=Z.map(function(w){return XZN(q,w)});
return OqN(Z)};
OqN=function(q){var Z=new Set(q);if(Z.has("TRANSFER_STATE_FAILED")&&Z.size===1)return"TRANSFER_STATE_FAILED";Z.delete("TRANSFER_STATE_FAILED");if(Z.has("TRANSFER_STATE_UNKNOWN")&&Z.size===1)return"TRANSFER_STATE_PRE_TRANSFER";Z.delete("TRANSFER_STATE_UNKNOWN");if(Z.has("TRANSFER_STATE_PRE_TRANSFER")&&Z.size===1||Z.size===0)return"TRANSFER_STATE_PRE_TRANSFER";q=Z.has("TRANSFER_STATE_TRANSFERRING");Z=Z.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return q||Z?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
HX=function(q){var Z=q.mainVideoDownloadStateEntity,w=[];if(!Z)return[];Z=_.P(Object.keys(Z));for(var r=Z.next();!r.done;r=Z.next()){var Y=r.value;if(!sxz(q,_.fR(Y).entityId)){r=OE(q,_.fR(Y).entityId);var C=void 0,d=void 0;Y=(d=Number((C=_.iI(q,"mainVideoDownloadStateEntity",Y))==null?void 0:C.addedTimestampMillis))!=null?d:(0,_.lp)();r!==void 0&&w.push({downloadedVideoEntities:r,addedTimestampMillis:Y})}}return w};
WM6=function(q){return HX(q).sort(function(Z,w){return w.addedTimestampMillis-Z.addedTimestampMillis}).map(function(Z){return Z.downloadedVideoEntities})};
_.uf8=function(q){var Z=g59(q),w=_.WX(q),r=NZ2(q),Y=HX(q).filter(function(d){var O,H;if((d==null?void 0:(O=d.downloadedVideoEntities)==null?void 0:(H=O.transferEntity)==null?void 0:H.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var L,S;d=d==null?void 0:(L=d.downloadedVideoEntities)==null?void 0:(S=L.videoEntity)==null?void 0:S.key;return _.b("kevlar_use_library_entity")?d&&(r.has(d)||w[d]):d&&!Z.has(d)}),C=iH2(q).filter(function(d){return Hq9(q,d.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.Ju(Y),_.Ju(C)).sort(function(d,O){return O.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return oC1(d)})};
LM2=function(q,Z){if(Z&&TZj(q,Z)){var w,r,Y=(r=(w=_.iI(q,"playbackData",_.yG(Z,"playbackData")))!=null?w:void 0)==null?void 0:r.playerResponseJson;if(Y){try{var C=JSON.parse(Y);var d=_.iI(q,"transfer",_.yG(Z,"transfer")),O=mrj(q,Z);O&&(C=Object.assign({},C,{playerConfig:Object.assign({},C.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+O*1E3}}})}));C.cotn=d==null?void 0:d.cotn}catch(H){}return C}}};
_.jaT=function(q){var Z,w,r;q=(r=(w=((Z=q.downloadsPageViewConfigurationEntity)!=null?Z:{})[SKT])==null?void 0:w.smartDownloadsOptInBannerVisibility)!=null?r:{};var Y;return(Y=_.J(q,vCI))!=null?Y:{}};
_.WX=function(q){var Z,w,r;q=(r=(w=((Z=q.mainDownloadsListEntity)!=null?Z:{})[_.t1O])==null?void 0:w.downloads)!=null?r:[];Z={};w=_.P(q);for(r=w.next();!r.done;r=w.next())q=void 0,Z[(q=r.value.videoItem)!=null?q:""]=!0;return Z};
RpO=function(q){var Z=_.WX(q);if(Object.keys(Z).length===0)return!1;var w=q.mainVideoEntity;if(!w)return!0;w=_.P(Object.keys(w));for(var r=w.next();!r.done;r=w.next()){r=r.value;var Y=_.fR(r).entityId;if(Z[r]&&!sxz(q,Y))return!1}return!0};
_.oZ=function(q){var Z=_.WX(q);return HX(q).sort(function(w,r){return w.addedTimestampMillis-r.addedTimestampMillis}).map(function(w){return w.downloadedVideoEntities}).filter(function(w){var r;
return(w=w==null?void 0:(r=w.videoEntity)==null?void 0:r.key)&&!!Z[w]})};
oC1=function(q){return"downloadedVideoEntities"in q?q.downloadedVideoEntities:"downloadedPlaylistEntities"in q?q.downloadedPlaylistEntities:{}};
bqO=function(q){var Z=_.WX(q),w=g59(q),r=HX(q).filter(function(Y){var C,d;return(Y=Y==null?void 0:(C=Y.downloadedVideoEntities)==null?void 0:(d=C.videoEntity)==null?void 0:d.key)&&!Z[Y]&&!w.has(Y)});
q=iH2(q);return[].concat(_.Ju(r),_.Ju(q)).sort(function(Y,C){return C.addedTimestampMillis-Y.addedTimestampMillis}).map(function(Y){return oC1(Y)})};
_.uF=function(q){if(!_.b("kevlar_use_library_entity"))return bqO(q);var Z=HX(q).filter(function(r){var Y,C;if(Y=r=r==null?void 0:(Y=r.downloadedVideoEntities)==null?void 0:(C=Y.videoEntity)==null?void 0:C.key){var d,O,H;Y=((O=(d=q.mainDownloadsListEntity)==null?void 0:d[FGN])==null?0:(H=O.downloads)==null?0:H.length)?NZ2(q).has(r):!1}return Y}),w=iH2(q);
return[].concat(_.Ju(Z),_.Ju(w)).sort(function(r,Y){return Y.addedTimestampMillis-r.addedTimestampMillis}).map(function(r){return oC1(r)})};
JDO=function(q){var Z=_.WX(q),w=g59(q);return WM6(q).filter(function(r){var Y;return(r=r==null?void 0:(Y=r.videoEntity)==null?void 0:Y.key)&&!Z[r]&&!w.has(r)})};
zp2=function(q){if(!_.b("kevlar_use_library_entity"))return JDO(q);var Z=_.WX(q),w=NZ2(q);return WM6(q).filter(function(r){var Y;return(r=r==null?void 0:(Y=r.videoEntity)==null?void 0:Y.key)&&!Z[r]&&w.has(r)})};
BFX=function(q,Z){Z=_.yG(Z,"settingEntity");var w,r,Y;return!!((Y=(r=((w=q.settingEntity)!=null?w:{})[Z])==null?void 0:r.settingOptionValue)!=null?Y:{}).boolValue};
_.Lz=function(q){var Z=_.oZ(q);if(xrX(Z))return 0;var w=[];Z=_.P(Z);for(var r=Z.next();!r.done;r=Z.next()){r=r.value;var Y=void 0,C=void 0;if((Y=r)==null?0:(C=Y.videoEntity)==null?0:C.key)Y=_.fR(r.videoEntity.key).entityId,r=q,Y=_.yG(Y,"mainVideoDownloadStateEntity"),r=_.iI(r,"mainVideoDownloadStateEntity",Y),(r=Number(r==null?void 0:r.addedTimestampMillis))&&w.push(r)}return Math.max.apply(Math,_.Ju(w))};
_.SZ=function(q){return q.ui.richGridMiniMode};
_.vX=function(q){return q.ui.richGridItemsPerRow};
_.aKO=function(q){return q.ui.richGridSlimItemsPerRow};
_.nC2=function(q){return q.ui.guideIsExpanded};
_.jZ=function(q){return q.ui.miniplayerIsActive};
_.QaN=function(q){return q.ui.singleOptionSurveyIsActive};
_.t0=function(q){return q.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.ECN=function(q){return q.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.xkX=function(q){return q.ui.inlinePreviewIsActive};
_.TFz=function(q){return q.ui.inlinePreviewIsEnabled};
_.Ukz=function(q){return q.ui.miniplayerPlaybackState};
kB9=function(q){return q.ui.isOnline};
_.KM2=function(q){return q.ui.frostedGlassMode};
_.RZ=function(q,Z){return l11(q.entities,Z)};
_.bF=function(q,Z){return Hq9(q.entities,Z)};
sa2=function(q,Z){var w;if(Z){var r;q=(r=_.iI(q.entities,"offlineVideoPolicy",_.yG(Z,"offlineVideoPolicy")))==null?void 0:r.action}else q=void 0;return(w=q)!=null?w:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
IK1=function(q,Z){var w;Z?(q=_.iI(q.entities,"offlineVideoPolicy",_.yG(Z,"offlineVideoPolicy")),q=Number(q==null?void 0:q.expirationTimestamp)):q=void 0;return(w=q)!=null?w:0};
_.cD2=function(q){return _.VR(q.entities).length};
M1e=function(q,Z){return OE(q.entities,Z)};
FM2=function(q,Z){return yAT(q.entities,Z)};
J0=function(q,Z){return(q=OE(q.entities,Z))?_.a1O([q]):0};
_.NFO=function(q,Z){var w=_.zj("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(w){var r=q.entities;var Y=dkX(r,Z);if(Y.length){var C=[];Y=_.P(Y);for(var d=Y.next();!d.done;d=Y.next())(d=$ke(r,d.value))&&C.push(d);r=C}else r=[]}else r=hfT(q.entities,Z);var O;if(w){var H=q.entities;Z?(Z=_.yG(Z,"musicPlaylist"),H=(O=H.musicPlaylist)==null?void 0:O[Z],O=H!=null&&H.tracks?H.tracks.length:0):O=0}else O=q.entities,Z?(Z=_.yG(Z,"mainPlaylistEntity"),O=(H=O.mainPlaylistEntity)==null?void 0:H[Z],O=O!=null&&O.videos?
O.videos.length:0):O=0;return r.length!==O?0:r?n5j(r):0};
_.lKz=function(q){return q.download.isLeaderTab};
_.GBe=function(q,Z,w){if(!Z&&w){var r=q.entities;if(w){var Y=E5O(w),C,d;Z=(d=(C=_.iI(r,"offlineabilityEntity",_.yG(Y,"offlineabilityEntity")))==null?void 0:C.addToOfflineButtonState)!=null?d:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else Z="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else C=q.entities,Z?(d=E5O(Z),Z=(Y=(r=_.iI(C,"offlineabilityEntity",_.yG(d,"offlineabilityEntity")))==null?void 0:r.addToOfflineButtonState)!=null?Y:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):Z="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return Z};
pV8=function(q,Z){q=q.entities;if(Z){Z=E5O(Z);var w,r;Z=(r=(w=_.iI(q,"offlineabilityEntity",_.yG(Z,"offlineabilityEntity")))==null?void 0:w.addToOfflineButtonState)!=null?r:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else Z="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return Z};
_.XVT=function(q){var Z=q.entities;q=kB9(q);var w=BFX(Z,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.b("kevlar_modern_downloads_page")&&w)var r=!1;else{var Y,C;Z=(C=(Y=((r=Z.downloadsPageViewConfigurationEntity)!=null?r:{})[SKT])==null?void 0:Y.smartDownloadsOptInBannerVisibility)!=null?C:{};r=q?!!Z.visibleWithConnection:!!Z.visibleWithoutConnection}return r};
_.mk9=function(q){return BFX(q.entities,"SMART_DOWNLOADS_ENABLED")};
_.ADT=function(q){return RpO(q.entities)};
fKj=function(q){return _.oZ(q.entities).every(function(Z){var w;return(Z==null?void 0:(w=Z.transferEntity)==null?void 0:w.transferState)&&!BZ9.includes(Z.transferEntity.transferState)})};
_.Dk6=function(q,Z){return sxz(q.entities,Z)};
hpI=function(q,Z){if(Z){var w,r;q=(r=(w=_.iI(q.entities,"downloadStatusEntity",_.yG(Z,"downloadStatusEntity")))==null?void 0:w.downloadState)!=null?r:"DOWNLOAD_STATE_UNKNOWN"}else q="DOWNLOAD_STATE_UNKNOWN";return q};
z9=function(q,Z){return mrj(q.entities,Z)};
qYI=function(q){q=_.yDX(q);var Z=q.hours===void 0?0:q.hours,w=q.minutes===void 0?0:q.minutes,r=q.seconds===void 0?0:q.seconds,Y=Z>0;q=[];Y&&(Z=_.iqX(Z),q.push(Z));Z=Y;Z=Z===void 0?!1:Z;w=(["af","be","lt"].includes(_.BX)||Z)&&w<10?gC2().format(w):(new Intl.NumberFormat("en-u-nu-latn")).format(w);q.push(w);w=gC2().format(r);q.push(w);w=":";"da fi id si sr sr-Latn".split(" ").includes(_.BX)&&(w=".");return q.join(w)};
_.yDX=function(q){var Z=q.hours||0,w=q.minutes||0,r=q.seconds||0;Z=r+w*60+Z*3600+(q.days||0)*86400+(q.weeks||0)*604800+(q.months||0)*2629800+(q.years||0)*31557600;if(Z<=0)return{hours:0,minutes:0,seconds:0};q=Z;Z=Math.floor(q/3600);q%=3600;w=Math.floor(q/60);r=Math.floor(q%60);return{hours:Z,minutes:w,seconds:r}};
_.iqX=function(q){q=(new Intl.NumberFormat("en-u-nu-latn")).format(q);var Z=["fr"],w="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(_.BX)?q.replace(",","\u00a0"):Z.includes(_.BX)?q.replace(",","\u202f"):w.includes(_.BX)?q.replace(",","."):q};
gC2=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
ZK6=function(q){try{return(new _.aZ(5)).format(q)}catch(Z){}};
nz=function(q){return{thumbnailOverlayDownloadingRenderer:{state:q}}};
wE8=function(q){if(q=ZK6(q))return{thumbnailOverlaySidePanelRenderer:{text:_.G7(q),icon:{iconType:"PLAYLISTS"}}}};
rgO=function(){var q=_.dT("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.G7(q),icon:{iconType:"PLAY_ALL"}}}};
YYz=function(q){q=_.QR(q,2);return _.BX!=="ru"&&_.BX!=="es_419"&&_.BX!=="es-419"&&_.BX!=="es"&&_.BX!=="es_US"&&_.BX!=="es-US"&&_.BX!=="fr"&&_.BX!=="pl"&&_.BX!=="it"&&_.BX!=="nl"&&_.BX!=="uk"&&_.BX!=="fr_CA"&&_.BX!=="fr-CA"||q===""?q:q[0].toLocaleUpperCase()+q.substring(1)};
eFO=function(q){return function(Z){var w=q(),r=_.QR(Z,w.dateFormat);Z=_.QR(Z,w.timeFormat);var Y=$ne.DATETIMEFORMATS[w.joinerStyle];Y=Y.replace(/'(?!')/g,"");Y=Y.replace("{0}",Z);Y=Y.replace("{1}",r);return w.capitalize(Y)}};
C3z=function(q){return q?typeof q.seconds==="string"&&(q.nanos===void 0||typeof q.nanos==="number"):!1};
P3T=function(q){return new Date(Number(q.seconds)*1E3+(q.nanos||0)*1E-6)};
_.QR=function(q,Z){if(typeof q.getTime==="function")q={date:q};else if(C3z(q))q={date:P3T(q)};else if(typeof C3z(q.timestamp)&&typeof q.i18nInternalSecondsEastOfUtc==="number")q={date:P3T(q.timestamp),timeZone:EE(-q.i18nInternalSecondsEastOfUtc/60)};else throw Error("Bf`"+JSON.stringify(q));var w=q;q=w.date;w=w.timeZone;Z=dnI(Z).format(q,w);_.BX==="zh-TW"&&(q=w?Number(dnI("H").format(q,w)):q.getHours(),Z=q<5?Z.replace("\u4e0a\u5348","\u51cc\u6668"):q<8?Z.replace("\u4e0a\u5348","\u65e9\u4e0a"):q<12?
Z.replace("\u4e0a\u5348","\u4e0a\u5348"):q<13?Z.replace("\u4e0b\u5348","\u4e2d\u5348"):q<19?Z.replace("\u4e0b\u5348","\u4e0b\u5348"):Z.replace("\u4e0b\u5348","\u665a\u4e0a"));return Z};
dnI=function(q){if(V_1.has(q))return V_1.get(q);var Z=OKX(q);Z=HK2(Z);Wa2!==!0&&(Wa2=!0);obN=!0;obN=!1;Z=new xO(Z,$ne);V_1.set(q,Z);return Z};
OKX=function(q){return(new xO(q,$ne)).patternParts_.map(function(Z){return Z.type===0?"'"+Z.text+"'":Z.text}).join("")};
HK2=function(q){return _.BX==="en"||_.BX==="es_US"||_.BX==="es-US"?q:q.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(Z,w,r){return"H".repeat(w.length)+r})};
bK6=function(q,Z){up1||(_.T9=_.LaN,up1=new SY2);var w=up1;a:if(q=vb2(q),Z=vb2(Z||new Date),q>Z)w=q.getTime()-Z.getTime()>6048E5?_.QR(q,1):jLj(q);else{for(var r=0;t_9(q,12*(r+1))<Z;)++r;if(r>0)w=w.format(-r,0);else{for(r=0;t_9(q,r+1)<Z;)++r;if(r>0)w=w.format(-r,2);else{q=Z.getTime()-q.getTime();Z=_.P(RF8);for(r=Z.next();!r.done;r=Z.next()){r=r.value;var Y=r.unit,C=Math.floor(q/r.unitDuration);if(C>=(r.threshold===void 0?1:r.threshold)){w=w.format(-C,Y);break a}}w=w.format(-0,7)}}}return w};
vb2=function(q){if(typeof q.getTime==="function")return q;if(C3z(q))return P3T(q);throw Error("Cf`"+JSON.stringify(q));};
t_9=function(q,Z){for(var w=0,r;;++w)if(r=new Date(q.getFullYear(),q.getMonth()+Z,q.getDate()-w,q.getHours(),q.getMinutes(),q.getSeconds()),r.getMonth()===(q.getMonth()+Z)%12)return r};
_.UE=function(q){return{runs:[{text:q}]}};
_.kO=function(q){if(q&&q.simpleText)return q.simpleText;var Z="";if(q&&q.runs)for(var w=0;w<q.runs.length;w++)q.runs[w].text&&(Z+=q.runs[w].text);return Z};
zF2=function(q,Z,w,r){return q.videoEntity&&!q.policyEntity&&w!=="DOWNLOAD_STATE_FAILED"?[nz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Cz(q.policyEntity)&&Z!=="TRANSFER_STATE_FAILED"&&Z!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?Z==="TRANSFER_STATE_PAUSED_BY_USER"?[nz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.PX(Z)?[nz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:q.videoEntity.lengthSeconds?Jg2(q.videoEntity.lengthSeconds,r):[]:
[nz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
Jg2=function(q,Z){var w=[{thumbnailOverlayTimeStatusRenderer:{text:_.G7(qYI({seconds:q})),style:"DEFAULT"}}];Z&&(q=Z<=0||q<=0?0:Z>=q?100:Math.ceil(Z*100/q),q>0&&w.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:q}}));return w};
BjO=function(q,Z,w,r,Y){if(Z==="TRANSFER_STATE_UNKNOWN"||!q)return{};if(_.PX(Z)||Z==="TRANSFER_STATE_PRE_TRANSFER")var C=[nz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var d,O;if(Z==="TRANSFER_STATE_COMPLETE"&&((d=q.mainPlaylistEntity)==null?0:(O=d.videos)==null?0:O.length)){if(_.b("web_modern_collections_v2")){var H;var L=(C=q.mainPlaylistEntity)==null?void 0:(H=C.videos)==null?void 0:H.length;C=(C=ZK6(L))?{thumbnailOverlayBottomPanelRenderer:{text:_.G7(C),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var S;C=wE8((L=q.mainPlaylistEntity)==null?void 0:(S=L.videos)==null?void 0:S.length)}var v;C=[rgO(),Object.assign({},(v=C)!=null?v:{})]}else C=[]}v=C;a:if(Z==="TRANSFER_STATE_PRE_TRANSFER")w=pR(_.dT("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(Z==="TRANSFER_STATE_TRANSFER_IN_QUEUE")w=pR(_.dT("WAITING_TO_DOWNLOAD"));else if(_.PX(Z))w=Math.floor(w*100).toString(),w=pR(_.dT("DOWNLOADING_PERCENT",{percent:w},"Downloading... "+w+"%"));else{if(r&&(_.b("playlist_is_offline_selector_killswitch")&&
(Y=_.t().resolve(_.To).isNetworkAvailable()),Y)){w=sD2(_.dT("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),kv8(r));break a}w=void 0}Z=Z==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.dT("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},v.length?{thumbnailOverlays:v}:{},w?{viewPlaylistText:w}:{viewPlaylistText:_.UE("")},Z.length?{badges:Z}:{})};
aZN=function(q,Z,w,r,Y,C){if(Z==="TRANSFER_STATE_UNKNOWN"||!q)return{};if(r==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var d=zF2(q,Z,r);if(q.videoEntity&&!q.policyEntity&&r!=="DOWNLOAD_STATE_FAILED"){var O=_.dT("WAITING_TO_DOWNLOAD");if(O)return{shortViewCountText:_.UE(O),publishedTimeText:void 0,thumbnailOverlays:d}}if(!Cz(q.policyEntity)){C=q.policyEntity&&!Qx8(q.policyEntity)?_.dT("DOWNLOAD_EXPIRED",{},"Download expired"):
_.dT("TRANSFER_FAILED",{},"Download failed");var H;if((H=q.policyEntity)==null?0:H.shortMessageForDisabledAction)C=q.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:pR(C),publishedTimeText:void 0,thumbnailOverlays:d}}if(Z==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.UE(_.dT("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:d};if(Z==="TRANSFER_STATE_FAILED"||Z==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.UE(_.dT("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:d};if(Z==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(H=_.dT("WAITING_TO_DOWNLOAD"),r==="DOWNLOAD_STATE_PAUSED"&&(H=_.dT("DOWNLOAD_PAUSED",{},"Download paused")),H))return{shortViewCountText:_.UE(H),publishedTimeText:void 0,thumbnailOverlays:d};if(_.PX(Z))return q=Math.floor(w*100).toString(),{shortViewCountText:_.UE(_.dT("DOWNLOADING_PERCENT",{percent:q},"Downloading... "+q+"%")),publishedTimeText:void 0,thumbnailOverlays:d};Z=void 0;q.videoEntity.publishedTimestampMillis&&
(Z=new Date,Y&&(Z=new Date(Y)),Z=pR(bK6(new Date(Number(q.videoEntity.publishedTimestampMillis)),Z)));Y=[];_.b("kevlar_woffle_badge_killswitch")||(Y=[{metadataBadgeRenderer:{label:_.dT("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var L;q=pR((L=q.videoEntity.localizedStrings)==null?void 0:L.viewCount);return Object.assign({},C?{shortViewCountText:void 0}:{shortViewCountText:q},C?{}:{publishedTimeText:Z},{badges:Y,thumbnailOverlays:d})};
QL2=function(q,Z){q=q===void 0?nbN:q;switch(Z.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:Z.payload.playlistId,inviteLinkURL:Z.payload.inviteLinkUrl};default:return q}};
xnj=function(q,Z){q=q===void 0?Eb1:q;switch(Z.type){case "SET_CURRENT_FORM_ID":return Z=Z.payload.formId,q.currentFormId===Z?q:{currentFormId:Z,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var w=Z.payload;Z=w.groupId;w=w.command;if(q.currentFormId){var r=Object.assign({},q.commandsMap);r[Z]=w;q=Object.assign({},q,{commandsMap:r})}return q;case "RESET_COMMAND_MAP":return Object.assign({},q,{commandsMap:{}});default:return q}};
Un9=function(q,Z){q=q===void 0?TjT:q;switch(Z.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},q,{guideIsExpanded:Z.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},q,{scrollAtTop:Z.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},q,{guideIsVisibleButNotPersistent:Z.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},q,{miniplayerIsActive:Z.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},q,{singleOptionSurveyIsActive:Z.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},q,{slimlineSurveyRatingSelectedIndex:Z.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},q,{richGridMiniMode:Z.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},q,{richGridItemsPerRow:Z.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},q,{richGridSlimItemsPerRow:Z.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},q,{richGridContainerWidth:Z.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},q,{richGridStyle:Z.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},q,{currentPageType:Z.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},q,{inlinePreviewIsActive:Z.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},q,{inlinePreviewIsEnabled:Z.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},q,{darkModeIsEnabled:Z.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
q,{miniplayerPlaybackState:Z.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},q,{tabGesturesIsActive:Z.payload});case "SET_ONLINE_STATUS":return Object.assign({},q,{isOnline:Z.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},q,{chipBarIsSticky:Z.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},q,{frostedGlassMode:Z.payload});default:return q}};
Ka1=function(q,Z){q=q===void 0?kG9:q;switch(Z.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},q,{transcription:Z.payload});case "SET_OVERLAY_STATE":return Object.assign({},q,{overlay:Z.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return q}};
XEe=function(){return YQ(Object.assign({},{continuation:sLe,entities:ik6,download:IZe,reportChannelAbuse:cg9,share:M_2,talkToRecs:Fa8,ui:Un9,voiceSearch:Ka1,watch:NjX,ypc:lZ2,shorts:GGN,radioButtonGroup:xnj,collabInviteLink:QL2},pET))};
fZe=function(){return _.b("web_player_entities_middleware")?new Kz(XEe(),[mn9,AgT]):new Kz(XEe(),[mn9])};
_.sE=function(){Dn8||(Dn8=fZe());return Dn8};
hFj=function(q,Z,w){if(q.length)return{titleText:_.G7(Z!=null?Z:_.dT("DOWNLOADS",void 0,"Downloads")),contents:q.map(function(r){var Y=r.videoEntity;r={videoId:Y.videoId,title:pR(Y.title),shortBylineText:pR(r.channelEntity.title),thumbnail:Y.thumbnail};var C=Y.videoId?z9(_.sE().getState(),Y.videoId):0;Y.videoId&&w?r.navigationEndpoint=_.lI(Y.videoId,w,void 0,void 0,C):Y.videoId&&(r.navigationEndpoint=UI6(Y.videoId,C,Y.lengthSeconds));Y.lengthSeconds&&(r.thumbnailOverlays=Jg2(Y.lengthSeconds,C));return{playlistPanelVideoRenderer:r}}),
totalVideos:q.length}};
yg2=function(q){return(q=(0,_.R4.getValueByKeys)(q,"playlistId"))?{playlistId:q}:null};
iKO=function(){return{}};
gbO=function(q,Z){return new _.r5(function(w,r){q.then(function(Y){if(Y){if(Y=Z(Y))return w(Y);r()}},r)})};
qte=function(q){var Z,w,r,Y=(Z=q.contents)==null?void 0:(w=Z.twoColumnWatchNextResults)==null?void 0:(r=w.autoplay)==null?void 0:r.autoplay,C,d,O;Z=(C=q.contents)==null?void 0:(d=C.twoColumnWatchNextResults)==null?void 0:(O=d.playlist)==null?void 0:O.playlist;return Y&&Z&&Z.playlistId?{rawResponse:q,autoplayRenderer:Y,playlistPanelRenderer:Z,playlistId:Z.playlistId}:null};
wv9=function(q){var Z=Z===void 0?"UNKNOWN_INTERFACE":Z;if(q.length===1)return q[0];var w=ZZz[Z];if(w){w=new RegExp(w);for(var r=_.P(q),Y=r.next();!Y.done;Y=r.next())if(Y=Y.value,w.exec(Y))return Y}var C=[];Object.entries(ZZz).forEach(function(d){var O=_.P(d);d=O.next().value;O=O.next().value;Z!==d&&C.push(O)});
w=new RegExp(C.join("|"));q.sort(function(d,O){return d.length-O.length});
r=_.P(q);for(Y=r.next();!Y.done;Y=r.next())if(Y=Y.value,!w.exec(Y))return Y;return q[0]};
_.IZ=function(q){return"/youtubei/v1/"+wv9(q)};
_.cX=function(q){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:q}}}}};
_.M9=function(q){return _.cX(_.UE(q))};
rCI=function(q,Z){var w={mode:"NORMAL"};q&&(w.autoplayVideo=q.navigationEndpoint,w.nextButtonVideo=q.navigationEndpoint);Z&&(w.previousButtonVideo=Z.navigationEndpoint);return w};
e6j=function(q,Z,w){if(!w||!w.sets)return{sets:[rCI(q,Z)]};var r=w.sets.find(function(d){return d.mode==="NORMAL"}),Y=(0,_.R4.unsafeClone)(w);
if(!r)return Y.sets.push(rCI(q,Z)),Y;if(!q)return w;r=_.R4.getValueByKeys.apply(null,[r].concat(_.Ju(Ytz)));var C=_.R4.getValueByKeys.apply(null,[q].concat(_.Ju($WT)));if(r===C)return w;Y.sets=Y.sets.filter(function(d){return d.mode!=="NORMAL"});
Y.sets.push(rCI(q,Z));return Y};
CP2=function(q){return!!q.playlistPanelVideoRenderer&&!q.playlistPanelVideoRenderer.unplayableText};
PPT=function(q){return!!q.playlistPanelVideoRenderer&&!!q.playlistPanelVideoRenderer.title};
dW8=function(q,Z){if(Z.contents&&!(q>=Z.contents.length)&&(q=Z.contents.slice(q).find(CP2)))return q.playlistPanelVideoRenderer};
VL8=function(q,Z){if(Z.contents)return(Z=Z.contents.find(function(w){return!!w.playlistPanelVideoRenderer&&w.playlistPanelVideoRenderer.videoId===q}))?Z.playlistPanelVideoRenderer:void 0};
OZj=function(q,Z){return Z.contents?Z.contents.findIndex(function(w){return!!w.playlistPanelVideoRenderer&&w.playlistPanelVideoRenderer.videoId===q}):-1};
HZ9=function(q,Z){return Z.contents?Z.contents.findIndex(function(w){return!!w.playlistPanelVideoRenderer&&w.playlistPanelVideoRenderer.playlistSetVideoId===q}):-1};
Wr9=function(q,Z){q.contents&&Z!==-1&&q.contents.splice(Z,1).length===1&&q.totalVideos!==void 0&&(--q.totalVideos,delete q.videoCountText)};
_.ok1=function(q){var Z=[];if(!q||!q.contents)return Z;q=_.P(q.contents);for(var w=q.next();!w.done;w=q.next())w=w.value,w.playlistPanelVideoRenderer&&w.playlistPanelVideoRenderer.videoId&&Z.push(w.playlistPanelVideoRenderer.videoId);return Z};
_.uXe=function(q){if(q&&q.contents)return(q=q.contents.find(function(Z){return!!Z.playlistPanelVideoRenderer&&!!Z.playlistPanelVideoRenderer.selected})||q.contents[q.currentIndex])?q.playlistPanelVideoRenderer:void 0};
LrT=function(q,Z,w,r,Y,C,d){Y=Y===void 0?!1:Y;C=C===void 0?!1:C;d=d===void 0?!1:d;if(q.contents&&q.contents.length!==0){r&&(q.contents=q.contents.filter(r));r=q.contents.length;for(var O=0;O<r;O++){var H=q.contents[O].playlistPanelVideoRenderer;H&&(O===Z?(C&&delete H.menu,H.indexText=_.UE("\u25b6")):Y||q.isInfinite||H.indexText===void 0?delete H.indexText:H.indexText=_.UE((O+1+w).toString()))}q.currentIndex=Z+w;d&&(delete q.videoCountText,q.totalVideos=r)}};
j26=function(q){q=St8(q,!0);if(q){var Z=q.length;var w=-69%Z;w<0&&(w=Z+w);q=q.slice(Z-w)+q.slice(0,Z-w)}else q="";w="";for(Z=0;Z<q.length&&q[Z]!==vk2;Z++)w+=q[Z];return w};
tLN=function(q,Z){var w=document.body;Z=Z===void 0?function(O){return O}:Z;
var r,Y=null;q=_.P(q);for(r=q.next();!r.done;r=q.next()){var C=r.value;r=document.createElement("div");Y||(Y=r);var d=C[0];C=C[1];d&&(r.id=Z(d));if(C)for(d=_.P(C),C=d.next();!C.done;C=d.next())r.classList.add(Z(C.value));w.appendChild(r);w=r}return[Y,w]};
R6N=function(q,Z){for(var w="",r=0;r<Z;r++)w+=q.charAt(Math.floor(Math.random()*q.length));return w};
FR=function(q){return R6N("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",q)};
N9=function(q){return R6N("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",q)};
lF=function(q){return R6N("0123456789",q)};
G9=function(){var q=performance.now(),Z=new Date;var w="2."+Z.getFullYear()+String(Z.getMonth()+1).padStart(2,"0")+String(Z.getDate()).padStart(2,"0");for(var r,Y=Math.floor(Math.random()*11)+15,C=[],d=0;d<Y;d++)C.push(Math.floor(Math.random()*26476865)+24547720);r=C.join(",");var O=FR(10),H=FR(100),L=FR(102),S=FR(106),v=FR(108),R=FR(11),B=FR(1140),n=FR(123),x=FR(14),K=FR(16),k=FR(1900),G=FR(23),rz=FR(26),f=FR(34),eO=FR(397),g=FR(44),H6=FR(5),nX=FR(72),Qj=FR(74),SO=FR(75),Te=FR(88),Ze=FR(91),W1="rr3---sn-5hnekn7l rr4---sn-q4fl6nss rr4---sn-q4flrney rr3---sn-q4fl6nsy rr2---sn-q4fl6nd7 rr2---sn-q4fl6n6y rr3---sn-q4flrn7r rr5---sn-q4fzen7s rr4---sn-q4fl6nde rr1---sn-q4fl6nd6 rr1---sn-aigzrnz7 rr1---sn-q4fl6nds rr3---sn-q4fl6n66 rr5---sn-q4flrnlz rr5---sn-q4flrnle rr2---sn-q4fzen7l rr4---sn-q4flrnsl rr4---sn-5hneknee rr3---sn-ntqe6n76 rr4---sn-q4fl6nds".split(" ");
var A2=W1[Math.floor(Math.random()*W1.length)];var f9=(new Date("2010-01-01")).getTime();var Dl=(new Date(f9+Math.random()*((new Date).getTime()-f9))).toISOString().split("T")[0];for(var $g,De=[],n9=0;n9<4;n9++)De.push(Math.floor(Math.random()*100));$g=De.join(".");var Rh=Number(lF(5)),xg=Number(lF(6)),ZF=Number(lF(7)),mm=Number(lF(9)),CX=lF(1),rb=lF(10),mv=lF(16),lC=lF(19),L9=lF(2),ah=lF(20),gz=lF(21),lN=lF(3),Op=lF(4),hK=lF(5),wr=lF(6),TJ=lF(7),Iq=lF(8),B8=lF(9);var Ny=R6N("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var P8=[N9(5),N9(5),N9(5)].join("%2C"),xx=[lF(3),lF(5),lF(5)].join("%2C"),GX=N9(0),Jj=N9(1),gc=N9(10),Jf=N9(108),a9=N9(11),hr=N9(12),Fy=N9(13),BN=N9(14),N4=N9(15),mT=N9(16),Go=N9(17),v6=N9(18),U2=N9(19),c6=N9(2),oh=N9(20),Y8=N9(22),Yg=N9(23),dW=N9(24),X7=N9(266),tK=N9(3),tI=N9(30),hj=N9(34),B1=N9(35),$a=N9(36),zd=N9(4),yw=N9(40),rD=N9(43),SJ=N9(47),Bx=N9(5),Nj=N9(6),oq=N9(7),LA=N9(75),S6=N9(8),Yx=N9(80),zx=N9(9),JI="https://www."+N9(12)+".com",AQ={},fP={},Gi={},duN={},pO={},St={},vT={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:r}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:w},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+N9(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:w},{key:"client.name",value:"WEB"},{key:"client.fexp",value:r}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:gz+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+N9(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:yw,ypcGetOfflineUpsellEndpoint:{params:Yx}},trackingParams:B1+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+xx+"&mn="+P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fmp4&ns="+dW+"&cnr="+L9+"&ratebypass=yes&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&c=WEB&txp="+TJ+"&n="+K+"&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:xg,width:640,height:360,lastModified:mv,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:TJ,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+xx+"&mn="+
P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fmp4&ns="+dW+"&cnr="+L9+"&ratebypass=yes&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&c=WEB&txp="+TJ+"&n="+K+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Jf+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:xg,width:1280,
height:720,lastModified:mv,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:TJ,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+xx+"&mn="+P8+"&ms="+
P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fmp4&ns="+dW+"&gir="+tK+"&clen="+B8+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:ZF,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:B8,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:ZF,approxDurationMs:TJ},{itag:248,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+xx+"&mn="+P8+"&ms="+P8+"&mv="+
Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fwebm&ns="+dW+"&gir="+tK+"&clen="+B8+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/webm; codecs="vp9"',bitrate:ZF,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:B8,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:ZF,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TJ},{itag:399,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+
xx+"&mn="+P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fmp4&ns="+dW+"&gir="+tK+"&clen="+B8+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:ZF,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:B8,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:ZF,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TJ},{itag:136,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+
xx+"&mn="+P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fmp4&ns="+dW+"&gir="+tK+"&clen="+B8+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&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:ZF,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:B8,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:xg,approxDurationMs:TJ},{itag:247,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+xx+"&mn="+
P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fwebm&ns="+dW+"&gir="+tK+"&clen="+B8+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&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:ZF,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:B8,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:xg,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TJ},{itag:398,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+
xx+"&mn="+P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fmp4&ns="+dW+"&gir="+tK+"&clen="+B8+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&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:ZF,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:B8,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:xg,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TJ},{itag:135,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+
xx+"&mn="+P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fmp4&ns="+dW+"&gir="+tK+"&clen="+Iq+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&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:xg,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:Iq,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:xg,approxDurationMs:TJ},{itag:244,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+xx+"&mn="+
P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fwebm&ns="+dW+"&gir="+tK+"&clen="+Iq+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Jf+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/webm; codecs="vp9"',bitrate:xg,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:Iq,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:xg,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TJ},{itag:397,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+
xx+"&mn="+P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fmp4&ns="+dW+"&gir="+tK+"&clen="+Iq+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:xg,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:Iq,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:xg,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TJ},{itag:134,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+
xx+"&mn="+P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fmp4&ns="+dW+"&gir="+tK+"&clen="+Iq+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&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:xg,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:Iq,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:xg,highReplication:!0,approxDurationMs:TJ},{itag:243,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+
xx+"&mn="+P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fwebm&ns="+dW+"&gir="+tK+"&clen="+Iq+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/webm; codecs="vp9"',bitrate:xg,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:Iq,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:xg,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TJ},{itag:396,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+
xx+"&mn="+P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fmp4&ns="+dW+"&gir="+tK+"&clen="+Iq+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&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:xg,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:Iq,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:xg,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TJ},{itag:133,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+
xx+"&mn="+P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fmp4&ns="+dW+"&gir="+tK+"&clen="+Iq+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&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:xg,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:Iq,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:xg,approxDurationMs:TJ},{itag:242,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+xx+"&mn="+
P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fwebm&ns="+dW+"&gir="+tK+"&clen="+Iq+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&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:xg,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:Iq,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:xg,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TJ},{itag:395,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+
xx+"&mn="+P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fmp4&ns="+dW+"&gir="+tK+"&clen="+Iq+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&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:xg,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:Iq,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:xg,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TJ},{itag:160,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+
xx+"&mn="+P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fmp4&ns="+dW+"&gir="+tK+"&clen="+Iq+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:xg,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:Iq,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Rh,approxDurationMs:TJ},{itag:278,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+xx+"&mn="+
P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fwebm&ns="+dW+"&gir="+tK+"&clen="+Iq+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&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:xg,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:Iq,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Rh,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TJ},{itag:394,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&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="+
xx+"&mn="+P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=video%2Fmp4&ns="+dW+"&gir="+tK+"&clen="+Iq+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Rh,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:Iq,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Rh,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TJ},{itag:140,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
xx+"&mn="+P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=audio%2Fmp4&ns="+dW+"&gir="+tK+"&clen="+Iq+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:xg,
initRange:{start:"0",end:"631"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:Iq,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:xg,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:TJ,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+xx+"&mn="+P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+
L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=audio%2Fwebm&ns="+dW+"&gir="+tK+"&clen="+TJ+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'audio/webm; codecs="opus"',bitrate:Rh,initRange:{start:"0",end:"265"},indexRange:{start:lN,
end:Op},lastModified:mv,contentLength:TJ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Rh,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:TJ,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+xx+"&mn="+P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=audio%2Fwebm&ns="+
dW+"&gir="+tK+"&clen="+TJ+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+TJ+"&n="+mT+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'audio/webm; codecs="opus"',bitrate:Rh,initRange:{start:"0",end:"265"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:TJ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Rh,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:TJ,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+A2+".googlevideo.com/videoplayback?expire="+rb+"&ei="+G+"&ip="+$g+"&id=o-AF"+rD+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+xx+"&mn="+P8+"&ms="+P8+"&mv="+Jj+"&mvi="+CX+"&pl="+L9+"&initcwndbps="+TJ+"&siu="+CX+"&spc="+g+"&vprv="+CX+"&svpuc="+CX+"&mime=audio%2Fwebm&ns="+dW+"&gir="+tK+"&clen="+Iq+"&dur="+Iq+"&lmt="+mv+"&mt="+rb+"&fvip=3&keepalive="+tK+"&c=WEB&txp="+
TJ+"&n="+mT+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'audio/webm; codecs="opus"',bitrate:xg,initRange:{start:"0",end:"265"},indexRange:{start:lN,end:Op},lastModified:mv,contentLength:Iq,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:xg,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:TJ,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="+B8+"&docid="+R+"&ei="+G+"&feature="+O+"&fexp="+GX+"&ns="+c6+"&plid="+K+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Jj+"&el="+gc+"&len="+Op+"&of="+Y8+
"&uga="+L9+"&vm="+X7},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+B8+"&docid="+R+"&ei="+G+"&feature="+O+"&fexp="+GX+"&ns="+c6+"&plid="+K+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Jj+"&el="+gc+"&len="+Op+"&of="+Y8+"&uga="+L9+"&vm="+X7},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+B8+"&docid="+R+"&ei="+G+"&feature="+O+"&fexp="+GX+"&ns="+c6+"&plid="+K+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Jj+"&el="+gc+"&len="+Op+"&of="+Y8+"&uga="+L9+"&vm="+X7},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+G+"&m="+Te+"&oid="+Y8+"&plid="+K+"&pltype="+oq+"&ptchn="+Y8+"&ptk="+x+"&video_id="+R},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+B8+"&docid="+R+"&ei="+G+"&event="+BN+"&feature="+O+"&fexp="+GX+"&ns="+c6+"&plid="+K+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Jj},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+R+"&ei="+G+"&feature="+
O+"&len="+Op+"&ns="+c6+"&plid="+K+"&ver="+CX,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+R+"&caps="+tK+"&opi="+B8+"&xoaf="+CX+"&hl="+c6+"&ip="+$g+"&ipbits="+CX+"&expire="+rb+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+$g+"&key="+tK+"&lang="+H6,name:{simpleText:mT},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+R+"&caps="+tK+"&opi="+B8+"&xoaf="+CX+"&hl="+c6+"&ip="+$g+"&ipbits="+CX+"&expire="+rb+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+$g+"&key="+tK+"&kind="+tK+"&lang="+c6,name:{simpleText:N4},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:a9,title:mT,lengthSeconds:"1155",keywords:[Bx,oh,oq,hr],
channelId:dW,isOwnerViewing:!1,shortDescription:v6,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+R+"/hqdefault.jpg?sqp=-oaymwE"+$a+"G&rs="+hj,width:168,height:94},{url:"https://i.ytimg.com/vi/"+R+"/hqdefault.jpg?sqp=-oaymwE"+$a+"G&rs="+hj,width:196,height:110},{url:"https://i.ytimg.com/vi/"+R+"/hqdefault.jpg?sqp=-oaymwE"+$a+"G&rs="+f,width:246,height:138},{url:"https://i.ytimg.com/vi/"+R+"/hqdefault.jpg?sqp=-oaymwE"+$a+"G&rs="+f,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
R+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:TJ,author:Fy,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:TJ,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+Y8+"/featured_channel.jpg?v="+S6,width:40,height:40}]},trackingParams:B1+"=",navigationEndpoint:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{url:"/channel/"+dW,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:dW}},channelName:Fy,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:U2}]},subscribed:!1,enabled:!0,type:"FREE",channelId:dW,showPreferences:!1,subscribedButtonText:{runs:[{text:zx}]},unsubscribedButtonText:{runs:[{text:BN}]},trackingParams:B1+"=",unsubscribeButtonText:{runs:[{text:Bx}]},serviceEndpoints:[{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[dW],params:S6}},{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:yw,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:B1+"=",dialogMessages:[{runs:[{text:N4},{text:BN},{text:mT}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:BN}]},serviceEndpoint:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[dW],params:S6}},accessibility:{label:mT},trackingParams:B1+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Fy}]},accessibility:{label:hr},trackingParams:B1+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:oh}},unsubscribeAccessibility:{accessibilityData:{label:oh}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Iq},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[dW],params:S6}},unsubscribeCommand:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[dW],params:S6}},addToWatchLaterCommand:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:a9,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:a9}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+R+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+$a+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
R+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+a9,width:1280,height:720},title:{simpleText:BN},description:{simpleText:Go},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+zd,externalChannelId:dW,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:TJ,category:"Travel & Events",publishDate:Dl,ownerChannelName:Fy,uploadDate:Dl}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:gc},trackingParams:B1+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:yw,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:B1+"="}}],headerText:{simpleText:oh},icon:{infoCardIconRenderer:{trackingParams:B1+"="}},closeButton:{infoCardIconRenderer:{trackingParams:B1+"="}},trackingParams:B1+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:B1+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+a9+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Ny,interpreterSafeUrl:(AQ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+tI+".js",AQ),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Go},{text:Nj,bold:!0}]},endpoint:{clickTrackingParams:yw,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:B1+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:Nj}]},actionButton:{buttonRenderer:{text:{runs:[{text:BN}]},navigationEndpoint:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+R,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
R,target:"TARGET_NEW_WINDOW"}},trackingParams:B1+"="}},trackingParams:B1+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+nX+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+nX+"=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:TJ,endMs:TJ,title:{accessibility:{accessibilityData:{label:Go}},simpleText:Nj},metadata:{simpleText:BN},callToAction:{simpleText:oh},dismiss:{simpleText:Bx},endpoint:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{url:"/channel/"+dW,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:dW}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:BN}]},subscribed:!1,enabled:!0,type:"FREE",channelId:dW,showPreferences:!1,
subscribedButtonText:{runs:[{text:BN}]},unsubscribedButtonText:{runs:[{text:Nj}]},trackingParams:B1+"=",unsubscribeButtonText:{runs:[{text:N4}]},serviceEndpoints:[{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[dW],params:S6}},{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:yw,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:B1+
"=",dialogMessages:[{runs:[{text:Bx},{text:gc},{text:Nj}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Nj}]},serviceEndpoint:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[dW],params:S6}},accessibility:{label:gc},trackingParams:B1+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:hr}]},
accessibility:{label:Nj},trackingParams:B1+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:v6}},unsubscribeAccessibility:{accessibilityData:{label:oh}}}},trackingParams:B1+"=",isSubscribe:!0,id:ah}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+R+"/hqdefault.jpg?sqp=-oaymwE"+$a+"G&rs="+f,width:168,height:94},{url:"https://i.ytimg.com/vi/"+R+"/hqdefault.jpg?sqp=-oaymwE"+$a+"G&rs="+hj,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+R+"/hqdefault.jpg?sqp=-oaymwE"+$a+"G&rs="+f,width:246,height:138},{url:"https://i.ytimg.com/vi/"+R+"/hqdefault.jpg?sqp=-oaymwE"+$a+"G&rs="+f,width:336,height:188},{url:"https://i.ytimg.com/vi/"+R+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:TJ,endMs:TJ,title:{accessibility:{accessibilityData:{label:S6}},simpleText:oh},metadata:{simpleText:gc},endpoint:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
a9,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:a9,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+A2+".googlevideo.com/videoplayback?source=youtube&oeis="+CX+"&c=WEB&oad="+Op+"&ovd="+Op+"&oaad="+hK+"&oavd="+hK+"&ocs="+lN+"&oewis="+CX+"&oputc="+CX+"&ofpcc="+CX+"&siu="+CX+"&msp="+CX+"&odepv="+CX+
"&id=o-AF"+rD+"&ip="+$g+"&initcwndbps="+TJ+"&mt="+rb+"&oweuc="+GX}}}}},trackingParams:B1+"=",id:ah,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:Go}},simpleText:Go},style:"DEFAULT"}}]}}],startMs:TJ,trackingParams:B1+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:CX,offsetEndMilliseconds:hK},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+B8+";dc_trk_cid="+B8+";dc_dbm_token="+v+";ord="+rb+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+CX+";dc_rui="+CX+";dc_exteid="+ah+";dc_av="+lN+";dc_sk="+CX+";dc_ctype="+L9+";dc_ref=http://www.youtube.com/video/"+a9+";dc_pubid="+CX+";dc_btype=23?gclid="+Ze+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+CX+"&ns="+CX+"&event="+CX+"&device="+CX+"&content_v="+R+"&el="+gc+"&ei="+G+"&devicever="+w+"&bti="+TJ+"&format="+wr+"&break_type="+CX+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+CX+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+$g+"&slot_pos="+CX+"&slot_len="+CX+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+xx+"&ad_len="+hK+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
a9+"&aqi="+G+"&ad_rmp="+CX+"&sli="+CX}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+
CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+wr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+TJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&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"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&ctype="+lN+"&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"+
B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_engaged_view&ctype="+lN+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+wr+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
B8+";dc_trk_cid="+B8+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+CX+";ord="+B8+";dc_rui="+CX+";dc_exteid="+lC+";dc_av="+CX+";dc_sk="+CX+";dc_ctype="+L9+";dc_pubid="+CX+";dc_btype=3?gclid="+Ze+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+"&sig="+Yg+"&ad_cpn=[AD_CPN]&id="+Nj+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Nj+"&dc_pubid="+CX+"&dc_exteid="+ah+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+"&sig="+Yg+"&ad_cpn=[AD_CPN]&id="+Nj+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+CX},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Nj+"&avm="+CX+"&dc_pubid="+CX+"&dc_exteid="+
ah+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&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="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
L+"&sig="+Yg+"&ad_cpn=[AD_CPN]&id="+Nj+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+CX},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Nj+"&dc_pubid="+CX+"&dc_exteid="+ah+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+wr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+wr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:yw,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+
lN+"&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/"+R+"/mqdefault.jpg",width:320,height:180}]},trackingParams:B1+"="},trackingParams:B1+
"=",templatedCountdown:{templatedAdText:{text:N4,isTemplated:!0,trackingParams:B1+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Fy,isTemplated:!1,trackingParams:B1+"="},trackingParams:B1+"="}},trackingParams:B1+"=",skipOffsetMilliseconds:5E3}},trackingParams:B1+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:N4},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:B1+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:zx,isTemplated:!1,trackingParams:B1+"="},trackingParams:B1+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:hr,isTemplated:!0,trackingParams:B1+"="}},trackingParams:B1+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:yw,openPopupAction:{popup:{aboutThisAdRenderer:{url:(fP.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+k+"&hl="+c6+"&origin=www.youtube.com&ata_theme="+zd,fP),trackingParams:B1+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:B1+"="}},hoverText:{runs:[{text:hr}]},trackingParams:B1+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+SJ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:B1+"="},headline:{text:U2,isTemplated:!1,trackingParams:B1+"="},description:{text:v6,
trackingParams:B1+"="},actionButton:{buttonRenderer:{text:{simpleText:U2},navigationEndpoint:{clickTrackingParams:yw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+B8+";dc_trk_cid="+B8+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+CX+";ord="+B8+";dc_rui="+CX+";dc_exteid="+ah+";dc_av="+CX+";dc_sk="+CX+";dc_ctype="+L9+";dc_pubid="+CX+";dc_btype=3?gclid="+Ze+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:B1+"="}},startMs:CX,trackingParams:B1+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:zx},elementId:oh}},elementId:a9,trackingParams:B1+"=",legacyInfoCardVastExtension:Go,sodarExtensionData:{siub:Go,bgub:BN,scs:v6,bgp:Bx},externalVideoId:a9,adLayoutLoggingData:{serializedAdServingDataEntry:oh},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+SJ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:B1+"="},
headline:{text:S6,isTemplated:!1,trackingParams:B1+"="},description:{text:v6,isTemplated:!1,trackingParams:B1+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:a9},navigationEndpoint:{clickTrackingParams:yw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+B8+";dc_trk_cid="+B8+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+CX+";ord="+B8+";dc_rui="+CX+";dc_exteid="+
ah+";dc_av="+CX+";dc_sk="+CX+";dc_ctype="+L9+";dc_pubid="+CX+";dc_btype=3?gclid="+Ze+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+
CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:B1+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:B1+"="}},navigationEndpoint:{clickTrackingParams:yw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+B8+";dc_trk_cid="+
B8+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+CX+";ord="+B8+";dc_rui="+CX+";dc_exteid="+ah+";dc_av="+CX+";dc_sk="+CX+";dc_ctype="+L9+";dc_pubid="+CX+";dc_btype=3?gclid="+Ze+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+
n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:B1+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:B1+"="},abandonCommands:{commands:[{clickTrackingParams:yw,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&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="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+
CX+"="+CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:yw,commandExecutorCommand:{commands:[{clickTrackingParams:yw,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:U2,isTemplated:!1,trackingParams:B1+
"="},trackingParams:B1+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Fy},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+TJ+";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="+B8+";dc_trk_cid="+B8+";ord="+rb+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+CX+";dc_rui="+CX+";dc_exteid="+ah+";dc_av="+lN+";dc_sk="+CX+";dc_ctype="+L9+";dc_ref=http://www.youtube.com/video/"+a9+";dc_pubid="+CX+";dc_btype=23?gclid="+Ze+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+CX+"&ns="+CX+"&event="+CX+"&device="+CX+"&content_v="+R+"&el="+gc+"&ei="+G+"&devicever="+w+"&bti="+TJ+"&format="+wr+"&break_type="+CX+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+CX+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+$g+"&slot_pos="+CX+"&slot_len="+CX+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
xx+"&ad_len="+hK+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+a9+"&aqi="+G+"&ad_rmp="+CX+"&sli="+CX}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+wr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+a9+"&cid="+
rz+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+TJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&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"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&ctype="+lN+"&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"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_engaged_view&ctype="+lN+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+wr+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+"&sig="+Yg+"&ad_cpn=[AD_CPN]&id="+
Nj+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Nj+"&dc_pubid="+CX+"&dc_exteid="+ah+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+
"&sig="+Yg+"&ad_cpn=[AD_CPN]&id="+Nj+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+CX},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Nj+"&avm="+CX+"&dc_pubid="+CX+"&dc_exteid="+ah+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&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="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+"&sig="+Yg+"&ad_cpn=[AD_CPN]&id="+Nj+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+CX},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Nj+"&dc_pubid="+CX+"&dc_exteid="+ah+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+wr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+wr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+
lN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&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/"+R+"/mqdefault.jpg",width:320,height:180}]},trackingParams:B1+"="},trackingParams:B1+"=",templatedCountdown:{templatedAdText:{text:zx,isTemplated:!0,trackingParams:B1+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Go,isTemplated:!1,trackingParams:B1+"="},trackingParams:B1+"="}},
trackingParams:B1+"=",skipOffsetMilliseconds:5E3}},trackingParams:B1+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:BN},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:B1+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Nj,isTemplated:!1,trackingParams:B1+"="},trackingParams:B1+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Nj,
isTemplated:!0,trackingParams:B1+"="}},trackingParams:B1+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:yw,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Gi.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+k+"&hl="+c6+"&origin=www.youtube.com&ata_theme="+zd,Gi),trackingParams:B1+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:B1+"="}},hoverText:{runs:[{text:v6}]},trackingParams:B1+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Qj+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:B1+"="},headline:{text:zd,isTemplated:!1,trackingParams:B1+"="},description:{text:v6,trackingParams:B1+"="},actionButton:{buttonRenderer:{text:{simpleText:zx},navigationEndpoint:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:B1+"="}},startMs:CX,trackingParams:B1+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Fy},elementId:a9}},elementId:gc,trackingParams:B1+"=",legacyInfoCardVastExtension:N4,sodarExtensionData:{siub:Fy,bgub:Go,scs:U2,bgp:mT},externalVideoId:a9,adLayoutLoggingData:{serializedAdServingDataEntry:U2},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Qj+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:B1+"="},headline:{text:zd,
isTemplated:!1,trackingParams:B1+"="},description:{text:mT,isTemplated:!1,trackingParams:B1+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:gc},navigationEndpoint:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:B1+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:B1+"="}},navigationEndpoint:{clickTrackingParams:yw,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+
CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:B1+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:B1+"="},abandonCommands:{commands:[{clickTrackingParams:yw,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&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="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+CX+"="+CX+";etm1="+CX+";eid1="+L9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:yw,commandExecutorCommand:{commands:[{clickTrackingParams:yw,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&label=video_card_endcap_impression"}],
pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:a9,isTemplated:!1,trackingParams:B1+"="},trackingParams:B1+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Bx},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+CX+";dc_exteid="+ah+";met="+CX+";ecn"+
CX+"="+CX+";etm1="+CX+";eid1="+TJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Fy}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:zx}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:hK,offsetEndMilliseconds:wr},hideCueRangeMarker:!0}},
renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+L9+"&token=ALHj"+eO+"&index="+CX+"&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="+w+"&m_pos_ms="+hK}},adSlotLoggingData:{serializedSlotAdServingDataEntry:oq}}},
{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:wr,offsetEndMilliseconds:wr},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+lN+"&token=ALHj"+eO+"&index="+CX+"&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="+
w+"&m_pos_ms="+wr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Fy}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:wr,offsetEndMilliseconds:wr},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+lN+"&token=ALHj"+eO+"&index="+CX+"&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="+
w+"&m_pos_ms="+wr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:BN}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:wr,offsetEndMilliseconds:wr},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+lN+"&token=ALHj"+eO+"&index="+CX+"&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="+
w+"&m_pos_ms="+wr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Nj}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:wr,offsetEndMilliseconds:L9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+lN+"&token=ALHj"+eO+"&index="+CX+"&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="+
w+"&m_pos_ms="+wr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:U2}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:L9,offsetEndMilliseconds:L9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+L9+"&token=ALHj"+eO+"&index="+CX+"&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="+
w+"&m_pos_ms="+L9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Nj}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:U2,isTemplated:!1,trackingParams:B1+"="},description:{text:BN,isTemplated:!1,trackingParams:B1+"="},actionButton:{buttonRenderer:{text:{simpleText:mT},navigationEndpoint:{clickTrackingParams:yw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
B8+";dc_trk_cid="+B8+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+CX+";ord="+B8+";dc_rui="+CX+";dc_exteid="+ah+";dc_av="+CX+";dc_sk="+CX+";dc_ctype="+L9+";dc_pubid="+CX+";dc_btype=3?gclid="+Ze+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:B1+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+SJ+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:B1+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+SO+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:B1+"="},navigationEndpoint:{clickTrackingParams:yw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+B8+";dc_trk_cid="+B8+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+CX+";ord="+B8+
";dc_rui="+CX+";dc_exteid="+ah+";dc_av="+CX+";dc_sk="+CX+";dc_ctype="+L9+";dc_pubid="+CX+";dc_btype=3?gclid="+Ze+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:B1+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:yw,openPopupAction:{popup:{aboutThisAdRenderer:{url:(duN.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+k+"&hl="+c6+"&origin=www.youtube.com&ata_theme="+zd,duN),trackingParams:B1+"="}},popupType:"DIALOG"}},trackingParams:B1+"="}},hoverText:{runs:[{text:a9}]},trackingParams:B1+"="}},adVideoId:a9,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:U2},associatedCompositePlayerBytesLayoutId:mT}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:S6}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Fy,isTemplated:!1,trackingParams:B1+"="},description:{text:Fy,isTemplated:!1,trackingParams:B1+"="},actionButton:{buttonRenderer:{text:{simpleText:gc},navigationEndpoint:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+
n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:B1+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Qj+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:B1+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+LA+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:B1+"="},navigationEndpoint:{clickTrackingParams:yw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+
CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:B1+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:yw,openPopupAction:{popup:{aboutThisAdRenderer:{url:(pO.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+k+"&hl="+c6+"&origin=www.youtube.com&ata_theme="+zd,pO),trackingParams:B1+"="}},popupType:"DIALOG"}},trackingParams:B1+"="}},
hoverText:{runs:[{text:Fy}]},trackingParams:B1+"="}},adVideoId:a9,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+a9+"&cid="+rz+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:oq},associatedCompositePlayerBytesLayoutId:mT}},adSlotLoggingData:{serializedSlotAdServingDataEntry:BN}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:oh,
isTemplated:!1,trackingParams:B1+"="},description:{text:zx,isTemplated:!1,trackingParams:B1+"="},actionButton:{buttonRenderer:{text:{simpleText:a9},navigationEndpoint:{clickTrackingParams:yw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+B8+";dc_trk_cid="+B8+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+CX+";ord="+B8+";dc_rui="+CX+";dc_exteid="+ah+";dc_av="+CX+";dc_sk="+CX+";dc_ctype="+
L9+";dc_pubid="+CX+";dc_btype=3?gclid="+Ze+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+
f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:B1+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+SJ+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:B1+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+SO+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:B1+
"="},navigationEndpoint:{clickTrackingParams:yw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+B8+";dc_trk_cid="+B8+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+CX+";ord="+B8+";dc_rui="+CX+";dc_exteid="+ah+";dc_av="+CX+";dc_sk="+CX+";dc_ctype="+L9+";dc_pubid="+CX+";dc_btype=3?gclid="+Ze+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+n+"AxAA&ase=2&num="+CX+"&cid="+rz+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+JI+"&label=video_click_to_advertiser_site&ctype="+lN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:B1+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:yw,openPopupAction:{popup:{aboutThisAdRenderer:{url:(St.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+k+"&hl="+c6+"&origin=www.youtube.com&ata_theme="+zd,St),trackingParams:B1+"="}},popupType:"DIALOG"}},trackingParams:B1+
"="}},hoverText:{runs:[{text:Go}]},trackingParams:B1+"="}},adVideoId:a9,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+n+"AxAA&sigh="+R+"&cid="+rz+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Nj},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:mT}},adSlotLoggingData:{serializedSlotAdServingDataEntry:BN}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:tI,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:tI,command:{innertubeCommand:{clickTrackingParams:yw,ypcGetOfflineUpsellEndpoint:{params:Yx}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:B1+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:rb,nanos:mm}}}},e3z=JSON.stringify(vT),jt=performance.now()-q;return{objectRepresentation:vT,jsonRepresentation:e3z,generationTime:jt}};
bZ2=function(q,Z){if(q===Z)return!0;if(!q||!Z||typeof q!==typeof Z)return!1;if(q instanceof Array&&Z instanceof Array){if(q.length!==Z.length)return!1;for(var w=0;w<q.length;w++)if(!bZ2(q[w],Z[w]))return!1;return!0}if(typeof q==="object"&&typeof Z==="object"&&q&&Z){for(w in q)if(!(w in Z&&bZ2(q[w],Z[w])))return!1;for(var r in Z)if(!(r in q))return!1;return!0}return!1};
_.mS=function(){if(!pz){pz=new eC(new JC9);var q=_.m6("client_streamz_web_flush_count",-1);q!==-1&&(pz.invocationLimit=q)}return pz};
A0=function(q,Z,w,r){if(q===Z)return!0;if(Array.isArray(q)&&Array.isArray(Z)){if(q.length!==Z.length)return!1;for(var Y=0;Y<q.length;Y++)if(!A0(q[Y],Z[Y],w,r))return!1;return!0}if(q instanceof Set||Z instanceof Set){if(q instanceof Set&&Z instanceof Set){if(q.size!==Z.size)return!1;r=_.P(q.values());for(Y=r.next();!Y.done;Y=r.next())if(!Z.has(Y.value))return!1;return!0}return!1}if(q instanceof Function){if(r)return!0;q.name===""&&_.tY(Error("Gf"),"ERROR");return!1}if(q instanceof Date&&Z instanceof
Date)return q.getTime()===Z.getTime();if(q instanceof Object&&Z instanceof Object){if(z62(q)&&z62(Z))try{return q.equals(Z)}catch(d){_.tY(Error("Hf`"+d),"ERROR")}Y=Object.getOwnPropertyNames(q).filter(function(d){return w?q[d]!==void 0:!0});
var C=Object.getOwnPropertyNames(Z).filter(function(d){return w?Z[d]!==void 0:!0});
if(Y.length!==C.length)return!1;Y=_.P(Y);for(C=Y.next();!C.done;C=Y.next())if(C=C.value,!A0(q[C],Z[C],w,r))return!1;return!0}return!1};
z62=function(q){q=Object.getPrototypeOf(q).equals;return q instanceof Function&&q.length===1};
nkz=function(){return _.V(function(q){if(q.nextAddress==1)return BKT!==2?q.jumpTo(2):_.W(q,ah1(),3);q.nextAddress!=2&&(BKT=q.yieldResult);return q.return(BKT)})};
xWj=function(){return _.V(function(q){if(q.nextAddress==1)return _.b("ab_pl_man")?Q22!==2?q.jumpTo(2):_.W(q,EkX(),3):q.return(1);q.nextAddress!=2&&(Q22=q.yieldResult);return q.return(Q22)})};
kU2=function(){return _.V(function(q){if(q.nextAddress==1)return _.b("ab_fk_sk_cl")?TK2!==2?q.jumpTo(2):_.W(q,UW9(),3):q.return(1);q.nextAddress!=2&&(TK2=q.yieldResult);return q.return(TK2)})};
IhI=function(){return _.V(function(q){if(q.nextAddress==1)return _.b("ab_det_apb_b")?Kre!==2?q.jumpTo(2):_.W(q,s22(),3):q.return(1);q.nextAddress!=2&&(Kre=q.yieldResult);return q.return(Kre)})};
Fr8=function(){var q;return _.V(function(Z){if(Z.nextAddress==1)return _.W(Z,Promise.all([nkz(),IhI(),xWj(),kU2()]),2);if(Z.nextAddress!=3)return cCI()?Z.return(!0):_.W(Z,MLe(),3);q=Z.yieldResult;return Z.return(q===0)})};
cCI=function(){var q=new NKN;fz(q,lhz(),"j.s_");_.b("disable_enf_isd")||fz(q,GUT(),"i.s_");fz(q,BKT,"f.i_");fz(q,Kre,"a.b_");fz(q,Q22,"p.m_");fz(q,TK2,"i.f_");pvj===2&&(pvj=Xv8(tLN(mWj)));fz(q,pvj,"e.h_");_.b("ks_det_gpbl")||fz(q,ACO(),"p.i_");_.b("ks_get_o_pp")||fz(q,fh6(),"g.o_");_.b("ab_deg_unex_thr")||fz(q,DWe(),"a.o_");fz(q,h6N,"s.t_");_.b("ab_det_sc_inj_enf")&&fz(q,yC9(),"s.i_");fz(q,iZN,"d.p_");_.b("ab_det_pp_ov")&&fz(q,gk8(qWO),"o.p_");_.b("ab_det_apm")&&fz(q,ZOT(),"o.a_");return _.b("debug_sk_em_precheck")?
!0:q.jD0};
r_j=function(){var q=[].concat(_.Ju(wj8));try{var Z=G9();q.push({jsonRepresentation:Z.jsonRepresentation,objectRepresentation:Z.objectRepresentation})}catch(w){q=[].concat(_.Ju(wj8))}return q};
YWT=function(){var q=["adPlacements","adSlots"];try{return q.filter(function(){return!0}).length!==q.length?0:1}catch(Z){return 0}};
fh6=function(){if(YWT()===0)return 0;var q=G9(),Z=q.objectRepresentation,w=(0,_.R4.unsafeClone)(Z),r=[];if(Z&&typeof Z==="object")for(var Y in Z)r.push(Y);else return 4;q=q.objectRepresentation.adPlacements;if(!(q&&q.length>0))return 4;try{if(!bZ2(r,Object.getOwnPropertyNames(Z)))return 0}catch(C){return 0}return bZ2(w,Z)?1:0};
gk8=function(q){var Z=Object.getOwnPropertyNames(Object.prototype);q=_.P(q);for(var w=q.next();!w.done;w=q.next()){w=St8(w.value);for(var r=_.P(Z),Y=r.next();!Y.done;Y=r.next())if(w===Y.value)return 0}return 1};
ZOT=function(){for(var q=$t8,Z=0;Z<q.length;Z++){var w=q[Z];var r=j26(w[1]);if(w[0]!==null){w=w[0];for(var Y={},C=0;C<w.length;C++){var d=j26(w[C]);if(C===0)Y[d]=r;else{var O={};O[d]=Y;Y=O}}r=Y}w=[];w.push(r);if(w.length===0)return 0}return 1};
lhz=function(){for(var q=_.P(r_j()),Z=q.next();!Z.done;Z=q.next()){var w=Z.value;Z=w.jsonRepresentation;w=w.objectRepresentation;try{var r=JSON.parse(Z);if(!A0(r,w,!1,!1))return 0}catch(Y){return 0}}return 1};
yC9=function(){try{var q=_.fs("ab_det_sc_inj_val");q.length===1&&q[0]===""&&(q=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var Z=document.querySelectorAll("script"),w=_.P(Z),r=w.next();!r.done;r=w.next())for(var Y=r.value,C=_.P(q),d=C.next();!d.done;d=C.next()){var O=d.value;Z=void 0;if((Z=Y.textContent)==null?0:Z.includes(O))return 0}}catch(H){return 4}return 1};
MLe=function(){var q,Z,w,r,Y,C,d;return _.V(function(O){switch(O.nextAddress){case 1:_.d9(O,2),q=_.P(wj8),Z=q.next();case 4:if(Z.done)return O.return(1);r=w=Z.value;Y=r.jsonRepresentation;C=r.objectRepresentation;return _.W(O,(new Response(Y,{status:200})).json(),7);case 7:d=O.yieldResult;if(!A0(d,C,!1,!1))return O.return(0);Z=q.next();O.jumpTo(4);break;case 2:return _.o3(O),O.return(4)}})};
DWe=function(){try{btoa("abc")}catch(q){return 0}return 1};
ah1=function(){var q,Z,w,r,Y,C,d,O,H,L,S;return _.V(function(v){switch(v.nextAddress){case 1:_.d9(v,2),q=_.P(r_j()),Z=q.next();case 4:if(Z.done)return v.return(1);r=w=Z.value;Y=r.jsonRepresentation;C=r.objectRepresentation;d=btoa(Y);O="data:application/json;base64,"+d;H=new Request(O);Object.defineProperty(H,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(H,"method",{get:function(){return"POST"}});
Object.defineProperty(H,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(H,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(H,"body",{get:function(){return new ReadableStream}});
return _.W(v,fetch(H),7);case 7:return L=v.yieldResult,_.W(v,L.json(),8);case 8:S=v.yieldResult;if(!A0(S,C,!1,!1))return v.return(0);Z=q.next();v.jumpTo(4);break;case 2:return _.o3(v),v.return(4)}})};
Xv8=function(q){var Z=_.P(q);q=Z.next().value;Z=Z.next().value;try{var w=document.createElement("div");document.body.appendChild(w);var r=getComputedStyle(w).display;document.body.removeChild(w);if(r==="none")return 4;var Y=getComputedStyle(Z).display==="none"?0:1;document.body.removeChild(q);return Y}catch(C){return 4}};
UW9=function(){var q,Z,w;return _.V(function(r){q=new _.Dk;Z=document.createElement("button");Z.classList.add("ytp-ad-skip-button");Z.style.opacity="0";Z.style.height="0px";Z.style.width="0px";Z.style.padding="0px";Z.style.border="none";w=function(){Z.parentElement&&Z.parentElement.removeChild(Z)};
Z.onclick=function(){q.resolve(0);w()};
document.body.appendChild(Z);setTimeout(function(){w();q.resolve(1)},50);
return r.return(q.promise)})};
EkX=function(){var q,Z,w,r,Y,C,d;return _.V(function(O){q=new _.Dk;Z=document.createElement("ytd-player");try{document.body.prepend(Z)}catch(H){return O.return(4)}w=function(){Z.parentElement&&Z.parentElement.removeChild(Z)};
Z.getElementsByTagName("div").length>0?r=Z.getElementsByTagName("div")[0]:(r=document.createElement("div"),Z.appendChild(r));Y=document.createElement("div");r.appendChild(Y);C=document.createElement("video");d=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"});C.src=_.bg(xv(d));C.ontimeupdate=function(){w();q.resolve(0)};
Y.appendChild(C);C.classList.add("html5-main-video");setTimeout(function(){Y.classList.add("ad-interrupting")},200);
setTimeout(function(){w();q.resolve(1)},5E3);
return O.return(q.promise)})};
eGN=function(q,Z){var w,r;return _.V(function(Y){switch(Y.nextAddress){case 1:w=[],r=0;case 2:if(!(r<3)){Y.jumpTo(4);break}return _.W(Y,fetch(q,{cache:"no-store",method:Z}).then(function(C){w.push(C.status)}).catch(function(){w.push(-1)}),3);
case 3:r++;Y.jumpTo(2);break;case 4:return Y.return(w)}})};
Cc9=function(q){return q.domainLookupStart===0&&q.domainLookupEnd===0&&q.connectStart===0&&q.connectEnd===0};
Pcz=function(q,Z,w){w=w===void 0?"GET":w;var r,Y,C,d,O,H,L,S,v,R;return _.V(function(B){if(B.nextAddress==1)return _.W(B,Promise.all([eGN(q,w),eGN(Z,w)]),2);r=B.yieldResult;Y=_.P(r);C=Y.next().value;d=Y.next().value;O=C;H=d;if(Math.min.apply(Math,_.Ju(H))!==Math.max.apply(Math,_.Ju(H))||Math.min.apply(Math,_.Ju(O))!==Math.max.apply(Math,_.Ju(O)))return B.return(2);if(Math.min.apply(Math,_.Ju(H))===Math.min.apply(Math,_.Ju(O)))return B.return(1);S=(L=performance.getEntriesByName(q))==null?void 0:L[0];
R=(v=performance.getEntriesByName(Z))==null?void 0:v[0];return S&&R?Cc9(R)?B.return(1):Cc9(S)?B.return(0):B.return(1):B.return(2)})};
s22=function(){var q;return _.V(function(Z){var w=[];var r;var Y,C,d;(Y=r=(Y=G9().objectRepresentation.streamingData)==null?void 0:(C=Y.formats)==null?void 0:(d=C[0])==null?void 0:d.url)&&Y&&!r.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(Y=Y.replace("initcwndbps","ctier=L&initcwndbps"),r={testUrl:Y,baseUrl:r,method:"GET"}):r=void 0;r&&w.push(r);_.b("ab_net_tp_e")&&w.push({testUrl:_.$1.location.origin+"/ad_companion",baseUrl:_.$1.location.origin+"/generate_204",method:"OPTIONS"});if(_.b("ad_net_pb_ab")){var O;
b:{r=/api\/stats\/ads/;var H,L,S,v;Y=(O=G9().objectRepresentation.adPlacements)==null?void 0:(H=O[0])==null?void 0:(L=H.adPlacementRenderer)==null?void 0:(S=L.renderer)==null?void 0:(v=S.linearAdSequenceRenderer)==null?void 0:v.linearAds;if(Y!=null&&Y.length&&(O=_.J(Y[0],dtT))&&(O=O.pings,O!=null&&O.impressionPings))for(H=[].concat(_.Ju(O.impressionPings)),O.progressPings&&(H=[].concat(_.Ju(H),_.Ju(O.progressPings))),O=_.P(H),H=O.next();!H.done;H=O.next())if(H=H.value,H.baseUrl&&r.test(H.baseUrl)){O=
H.baseUrl.replace("https://www.youtube.com","");break b}O=void 0}O&&w.push({testUrl:_.$1.location.origin+O,baseUrl:_.$1.location.origin+"/feed/download",method:"GET"})}if(_.b("ad_net_pb_pbp")){var R;b:{O=/api\/stats\/qoe/;if(H=G9().objectRepresentation.playbackTracking){L=[];L.push(H==null?void 0:(R=H.videostatsPlaybackUrl)==null?void 0:R.baseUrl);var B;L.push(H==null?void 0:(B=H.videostatsDelayplayUrl)==null?void 0:B.baseUrl);var n;L.push(H==null?void 0:(n=H.videostatsWatchtimeUrl)==null?void 0:
n.baseUrl);var x;L.push(H==null?void 0:(x=H.ptrackingUrl)==null?void 0:x.baseUrl);var K;L.push(H==null?void 0:(K=H.qoeUrl)==null?void 0:K.baseUrl);var k;L.push(H==null?void 0:(k=H.atrUrl)==null?void 0:k.baseUrl);R=_.P(L);for(B=R.next();!B.done;B=R.next())if((B=B.value)&&O.test(B)){R=B.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}R=void 0}R&&w.push({testUrl:_.$1.location.origin+R,baseUrl:_.$1.location.origin+"/feed/download",method:"GET"})}w=w.length!==0?w[Math.floor(Math.random()*
w.length)]:void 0;return(q=w)?Z.return(Pcz(q.testUrl,q.baseUrl,q.method)):Z.return(4)})};
GUT=function(){return _.zj("ISDSTAT",2)};
ACO=function(){if(_.$1.u0m===void 0||_.$1.u0m===null||typeof _.$1.u0m!=="function")return 2;try{return _.$1.u0m()===!0?0:1}catch(q){return 0}};
VAI=function(q){switch(q){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.F7(q,"unknown result type")}};
_.OOX=function(q,Z){var w=Number(_.zj("CATSTAT",0));if(Z.sr1===void 0)return w;Z=Z.sr1;q=VAI(q);return w&~(3<<Z)|q<<Z};
HOz=function(q){var Z,w;if((q=(Z=q.auxiliaryUi)==null?void 0:(w=Z.messageRenderers)==null?void 0:w.bkaEnforcementMessageViewModel)&&q.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return q};
oNj=function(){for(var q=_.P(Object.values(_.WO8)),Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.isAsync&&Z.sr1&&_.bO("CATSTAT",_.OOX(2,Z))};
_.gt=function(q,Z){q=_.h0("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",q);(Z===void 0?0:Z)?_.uYN(q,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.yR(_.iF(),q,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
SW9=function(){if(!LOO){if(Polymer.Base){var q=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{q.apply(this,arguments)}catch(v){_.ns(v)}};
var Z=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{Z.apply(this,arguments)}catch(v){_.ns(v)}};
var w=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{w.apply(this,arguments)}catch(v){_.ns(v)}};
var r=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{r.apply(this,arguments)}catch(v){_.ns(v)}};
var Y=Polymer.Base._listen,C=new WeakMap;Polymer.Base._listen=function(v,R,B){var n=function(){try{B.apply(this,arguments)}catch(x){_.ns(x)}};
C.set(B,n);Y.call(this,v,R,n)};
var d=Polymer.Base._unlisten;Polymer.Base._unlisten=function(v,R,B){d.call(this,v,R,C.get(B))}}if(Polymer.Async){var O=Polymer.Async,H=O._atEndOfMicrotask;
O._atEndOfMicrotask=function(){try{H.apply(O,arguments)}catch(v){_.ns(v)}}}if(Polymer.RenderStatus){var L=Polymer.RenderStatus,S=L.afterNextRender;
L.afterNextRender=function(v,R,B){S.call(L,v,function(){try{R.apply(this,arguments)}catch(n){_.ns(n)}},B)}}LOO=!0}};
_.jye=function(q){var Z=q?_.gA(q):"";if(Z){if(Z.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(Z.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(Z.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(Z.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(Z.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(Z.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";Z=Z.toLowerCase();if(Z==="/")return"home";if(Z===
"/channel_memberships")return"channel-memberships-shopfront";if(Z.indexOf("/feed/trending")===0)return"trending";if(Z.indexOf("/feed/explore")===0)return"explore";if(Z.indexOf("/live")===0)return"live";if(Z.indexOf("/results")===0)return"search";if(Z.indexOf("/sports")===0)return"sports";if(Z.indexOf("/fashion")===0||Z.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(Z))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(Z))return"learning";
if(Z.indexOf("/channel/")===0||Z.indexOf("/user/")===0||Z.indexOf("/gaming")===0||Z.indexOf("/post/")===0)return"channel";if(vNX(q))return"show";if(Z==="/playlist"||Z.indexOf("/playlist/")===0||Z==="/view_play_list"||Z.indexOf("/view_play_list/")===0||Z.indexOf("/show/")===0)return"playlist";if(Z==="/feed/history"||Z.indexOf("/feed/history/")===0)return"history";if(Z==="/new")return"labs";if(Z==="/feed/subscriptions")return"subscriptions";if(Z.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(Z==="/history_controls")return"standalone";if(Z.indexOf("/account")===0||Z==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(Z.indexOf("/paid_memberships")===0||Z.indexOf("/refund")===0||Z.indexOf("/purchases")===0||Z.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(Z.indexOf("/product")===0)return"yts-products";if(Z.indexOf("/premium")===0||Z.indexOf("/musicpremium")===0)return Z.indexOf("/premium/offers")===0||Z.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(Z===
"/cart/checkout"||Z==="/cart")return"ypc-checkout";if(Z.indexOf("/feed/downloads")===0||Z.indexOf("/redeem")===0||Z.indexOf("/reporthistory")===0)return"browse";if(Z.indexOf("/hashtag")===0)return"hashtag-landing-page";if(Z.indexOf("/handle")===0)return"handle";if(Z.indexOf("/source")===0)return"audio-pivot";if(Z.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(Z.indexOf("/playables")===0)return"playables";if(Z.indexOf("/create/live/join")===0)return"open-in-app";if(Z.indexOf("/shorts")===
0)return"shorts";if(Z.indexOf("/feed/channels")===0)return"subscriptions-channels";(Z=q?_.gA(q):"")&&Z.indexOf("/watch")===0&&_.b("web_watch_enable_learning_journey")?(q=_.Ks(q),q=!!q.list&&q.list.indexOf("LJPP")===0):q=!1;if(q)return"learning-journey-watch"}};
vNX=function(q){var Z=q?_.gA(q):"";if(!Z)return!1;Z=Z.toLowerCase();return Z.indexOf("/show/")===0||Z.indexOf("/playlist")===0&&(q=_.Ks(q),q.list&&q.list.indexOf("EL")===0)?!0:!1};
w3=function(q){var Z="unknown",w;var r=((w=_.J(q==null?void 0:q.commandMetadata,_.XK))==null?void 0:w.webPageType)||"";r?(w=r.toLowerCase(),w.startsWith("web_page_type_")&&(w=w.slice(14))):w=r;w&&tAT[w.toUpperCase()]?Z=tAT[w.toUpperCase()]:_.J(q,_.qZ)||_.J(q,RGO)?Z="browse":_.J(q,_.Z5)?Z="search":_.J(q,_.ck)&&(Z="watch");Z==="unknown"&&_.bx(Error("Jf`"+JSON.stringify({clickTrackingParams:q==null?void 0:q.clickTrackingParams,commandMetadata:q==null?void 0:q.commandMetadata,allEndpointKeys:Object.keys(q||
[])})));return Z};
_.r3=function(q){if(!_.bOT||q)_.bOT=_.H3();return _.bOT};
_.J_1=function(q){return!!_.J(q,_.ck)||!!_.J(q,_.Yz)&&_.b("kevlar_enable_shorts_prefetch")};
_.zG6=function(q,Z){q=_.J(q,_.ck)||_.J(q,_.Yz);return"v"+q.videoId+(q.playlistId?"-pl"+q.playlistId:"")+(Z?"-an1":"")+(q.params?"-pr"+q.params:"")};
apN=function(q){var Z=_.m6("web_pbj_log_warning_rate",0);Z=Z>0&&Math.random()<Z;if(!_.J(q,_.Yz))return Z&&_.bx(Error("Mf")),!1;var w;return _.b("shorts_controller_retrieve_seedless_sequence_v2")&&((w=_.J(q,_.Yz))==null?void 0:w.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:Bmj(q)?!0:(Z&&_.bx(Error("Nf")),!1)};
Bmj=function(q){var Z=(_.J(q,_.ck)||_.J(q,_.Yz)).videoId;if(!Z||!nN1.test(Z))return!1;var w;return(q=(w=_.J(q.commandMetadata,_.XK))==null?void 0:w.url)&&(q.includes(Z)||q.startsWith("/clip"))?!0:!1};
_.ENN=function(){var q=_.Hd();return q.getFlag(192)?q.getFlag(190):!(_.b("web_watch_cinematics_disabled_by_default")||_.b("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&QyO())};
_.$z=function(q,Z,w){var r={};r.currentUrl=Z;r.vis=q.vis!==void 0?q.vis:0;r.splay=!1;Z=_.Hd();r.autoCaptionsDefaultOn=Z.getFlag(66);Z.getFlag(141)?Z.getFlag(140)?r.autonavState="STATE_OFF":r.autonavState="STATE_ON":r.autonavState="STATE_NONE";r.html5Preference="HTML5_PREF_WANTS";isNaN(_.zj("STS"))||(r.signatureTimestamp=_.zj("STS"));q.autonav&&(r.autoplay=!0,r.autonav=!0);q.mutedAutoplay&&(r.autoplay=!0,r.mutedAutoplay=!0);q.inlinePlayback&&(r.autoplay=!0,r.autonav=!1,r.isInlineUnmutedPlayback=!!q.inlineUnmuted);
r.referer=w;r.lactMilliseconds=q.lact!==void 0?q.lact.toString():"-1";_.b("enable_unknown_lact_fix_on_html5")&&r.lactMilliseconds==="-1"&&_.bx(new _.df("Unknown LACT is set in playbackContext.",{"lact in tempData":q.lact||"undefined",autonav:q.autonav||"undefined"}));q={};Z.getFlag(194)&&(q.hasShownAmbientMode=!0);Z.getFlag(192)&&(q.hasToggledOffAmbientMode=!0);_.ENN()&&(q.watchAmbientModeEnabled=!0);r.watchAmbientModeContext=q;return r};
xt8=function(q){var Z={},w=q.pbis||0;w&&(Z.playbackBeginsInSeconds=w);q.prefetch_reason&&q.prefetch_reason==="hc_pbis"&&(Z.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return Z};
_.Tmz=function(q){var Z=new ea(_.zj("ONE_PICK_URL",""));Z.urlParamMap_.set("hostId",q);(q=_.zj("GAPI_LOCALE"))&&Z.urlParamMap_.set("hl",q);(q=_.zj("SESSION_INDEX"))&&Z.urlParamMap_.set("authuser",q);(q=_.zj("DELEGATED_SESSION_ID"))&&Z.urlParamMap_.set("groupId",q);return Z};
ki2=function(){var q=_.t(),Z=q.resolve(_.Co);q=q.resolve(_.PP);return new Ut8(Z,q)};
syz=function(q){if(window.IntersectionObserver)return new KO6(q,400);throw new TypeError("Wf");};
c_6=function(){var q=Hammer.TouchAction,Z=q.prototype.preventDefaults;q.prototype.preventDefaults=function(w){var r=this.actions.indexOf("pan-down")>-1;if(!r)return Z.call(this,w);if(!IpT){var Y=w.srcEvent;w=w.direction;var C;if((C=this.manager)==null?0:C.session.prevented)Y.preventDefault();else if(r&&w&Hammer.DIRECTION_DOWN)return this.preventSrc(Y)}}};
MA8=function(q){if(!q||q.size===0)return Hammer.DIRECTION_ALL;if(q.size===2){if(q.has("up")&&q.has("down"))return Hammer.DIRECTION_VERTICAL;if(q.has("right")&&q.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(q.size===1){if(q.has("up"))return Hammer.DIRECTION_UP;if(q.has("down"))return Hammer.DIRECTION_DOWN;if(q.has("right"))return Hammer.DIRECTION_RIGHT;if(q.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.NmX=function(){return FOX?Promise.resolve(FOX):new Promise(function(q,Z){var w=self.indexedDB.open("swpushnotificationsdb");w.onerror=Z;w.onsuccess=function(){var r=w.result;if(r.objectStoreNames.contains("swpushnotificationsstore"))FOX=r,q(FOX);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.NmX()};
w.onupgradeneeded=lp1})};
lp1=function(q){q=q.target.result;q.objectStoreNames.contains("swpushnotificationsstore")&&q.deleteObjectStore("swpushnotificationsstore");q.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
pj6=function(q){var Z=Gi8(),w;return _.V(function(r){switch(r.nextAddress){case 1:return _.d9(r,2),_.W(r,q.match(Z,{cacheName:"yt-appshell-assets"}),4);case 4:w=r.yieldResult;_.QL(r,3);break;case 2:_.o3(r);case 3:return r.return(w)}})};
Gi8=function(){var q=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?XjN.registration.scope:mtN;q.endsWith("/")&&(q=q.slice(0,-1));return q+"/app_shell_home"};
A_z=function(q){q.map(function(Z){return Z.source}).join("|")};
_.fp2=function(q){return _.V(function(Z){return Z.return(pj6(q))})};
DtT=function(){var q=window.caches,Z;return _.V(function(w){if(w.nextAddress==1)return _.W(w,_.fp2(q),2);Z=w.yieldResult;return w.return(!!Z)})};
waI=function(){_.V(function(q){if(q.nextAddress==1){if(hG2)return q.jumpTo(0);hG2=!0;if(_.b("enable_system_health_primes_monitoring"))return _.yV(y_z,3E4),iOT(),q.return();if(!(Math.random()<_.m6("web_system_health_fraction")))return q.jumpTo(0);gNz={heightPixels:screen.height,widthPixels:screen.width};O8&&!isNaN(O8.jsHeapSizeLimit)&&(gNz.memoryTotalKbytes=String(Math.round(O8.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(gNz.devicePixelRatio=window.devicePixelRatio);return _.W(q,qfI(),4)}_.yV(y_z,
3E4);return _.W(q,ZLz(),0)})};
qfI=function(){return _.V(function(q){if(q.nextAddress==1)return HP.intersectionObserverPresent="IntersectionObserver"in window,HP.serviceWorkerPresent="serviceWorker"in navigator,HP.webSharePresent="share"in navigator,HP.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,HP.cacheStoragePresent="caches"in window,HP.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,HP.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
HP.webkitTemporaryStoragePresent="webkitTemporaryStorage"in WP&&WP.webkitTemporaryStorage&&"queryUsageAndQuota"in WP.webkitTemporaryStorage,HP.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.W(q,c0e(),2);HP.indexedDbPresent=q.yieldResult;HP.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;HP.broadcastChannelPresent="BroadcastChannel"in window;HP.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(HP.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,HP.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.ub(q)})};
y_z=function(){var q=9E4+Math.random()*2E3;_.pB()>q||(_.b("enable_system_health_primes_monitoring")?iOT():ZLz())};
ZLz=function(){var q;return _.V(function(Z){if(Z.nextAddress==1)return _.W(Z,rpX(),2);q=Z.yieldResult;_.vO("systemHealthCaptured",q);_.ub(Z)})};
iOT=function(){var q={metric:{}},Z=Yf2();Z.networkEvents.length&&(q.metric.networkEvents=$O6(Z));_.vO("systemHealthCaptured",q)};
rpX=function(){var q,Z,w,r,Y,C,d,O,H,L;return _.V(function(S){switch(S.nextAddress){case 1:q={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)};Z=window.screen;_.b("enable_is_extended_monitoring")&&Z&&"isExtended"in Z&&(q.isExtended=!!Z.isExtended);w={metric:{staticContext:gNz,dynamicContext:q,webMetric:ehj,webApiSupport:HP}};
if(r=_.b5())w.csn=r;O8&&(w.metric.webMetric.currentHeapKbytes=Math.round(O8.usedJSHeapSize/1E3));window.matchMedia&&(w.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,w.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,w.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in WP&&typeof WP.getBattery==="function")){S.jumpTo(2);break}return _.W(S,WP.getBattery(),3);case 3:if(Y=
S.yieldResult)w.metric.dynamicContext.chargingStatus=Y.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(w.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(HP.storageEstimatePresent)return _.W(S,navigator.storage.estimate(),8);if(!HP.webkitTemporaryStoragePresent){S.jumpTo(5);break}return _.W(S,C$2(),7);case 7:C=S.yieldResult;S.jumpTo(5);break;case 8:C=S.yieldResult;case 5:return w.metric.dynamicContext.deviceStorageQuotaMbytes=((d=C)==null?0:d.quota)?String(Math.round(C.quota/
1048576/10)*10):"-1",w.metric.dynamicContext.deviceStorageUsageMbytes=((O=C)==null?0:O.usage)?String(Math.round(C.usage/1048576/10)*10):"-1",H=w.metric.dynamicContext,_.W(S,DtT(),9);case 9:return H.hasAppShell=S.yieldResult,L=Yf2(),L.networkEvents.length&&(w.metric.networkEvents=$O6(L)),S.return(w)}})};
C$2=function(){return new Promise(function(q){var Z;HP.webkitTemporaryStoragePresent&&(Z=WP.webkitTemporaryStorage)!=null&&Z.queryUsageAndQuota?WP.webkitTemporaryStorage.queryUsageAndQuota(function(w,r){q({usage:w,quota:r})}):q(void 0)})};
_.oJ=function(q){q&=16777215;q=[(q&16711680)>>16,(q&65280)>>8,q&255];return P$T(q[0],q[1],q[2])};
_.uq=function(q){q=[(q&16711680)>>>16,(q&65280)>>>8,q&255,(q&4278190080)>>>24];var Z=_.dOj(q,function(w){return w==(w&255)});
q[3]=(q[3]/255).toFixed(3);if(!Z)throw Error("Xf`"+q.join(","));return"rgba("+q.join(",")+")"};
_.VRj=function(q){return[(q&16711680)>>>16,(q&65280)>>>8,q&255]};
_.OLX=function(q){q=q.map(function(Z){Z/=255;return Z<=.03928?Z/12.92:Math.pow((Z+.05)/1.05,2.4)});
return q[0]*.2126+q[1]*.7152+q[2]*.0722};
Lo=function(q,Z){q=_.VRj(q);return"rgba("+q[0]+", "+q[1]+", "+q[2]+", "+Z+")"};
_.HL2=function(){try{return!!self.localStorage}catch(q){return!1}};
L5I=function(){if(W5T())_.bx(Error("Yf"));else{var q=document.createElement("iframe");q.style.display="none";var Z=Z===void 0?window.location.href:Z;var w=_.jJ(_.zj("PERSIST_IDENTITY_IFRAME_URL"));Z=w?w:(new URL(Z)).host.indexOf("studio")===0?_.qu(od6,"persist_identity"):_.qu(uE2,"persist_identity");_.AI8(q,1,Z);q.id="persist_identity";var r;(r=document.body)==null||r.appendChild(q)}};
W5T=function(){var q=Sfj;q||(q=document.querySelector("#persist_identity"));return q};
vde=function(){var q=!1;try{q=!!window.sessionStorage.getItem("session_logininfo")}catch(Z){q=!0}return(_.zj("INNERTUBE_CLIENT_NAME")==="WEB"||_.zj("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&q};
j6N=function(q,Z){if(!vde())return!1;Z||(Z=_.zj("LOGIN_INFO"));return Z?(q.session_logininfo=Z,!0):!1};
Rh8=function(q,Z){q=q===void 0?!1:q;if((Z===void 0||!Z)&&tRe!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.BF("LOG_STICKINESS",!1)){Z=_.b5();var w=_.Rs(),r={identityStickinessData:{initialState:tRe}};Z&&w&&_.cd(Z,w,r)}if(Z=W5T())if(w=Z.src?(new URL(Z.src)).origin:"*",q){var Y;(Y=Z.contentWindow)==null||Y.postMessage({action:"clear"},w)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(q=window.sessionStorage.getItem("session_logininfo"))){var C;(C=Z.contentWindow)==null||C.postMessage({loginInfo:q},w)}};
_.Sa=function(q){q=q===void 0?!0:q;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.bO("LOGIN_INFO",""),q&&window.sessionStorage.setItem("from_switch_account","1"),Rh8(!0,q)}catch(Z){}};
bLI=function(q){q&&(q.startsWith("https://accounts.google.com/AddSession")?_.Sa():q.startsWith("https://accounts.google.com/ServiceLogin")?_.Sa():q.startsWith("https://myaccount.google.com")&&_.UJ(q).getPath().endsWith("/youtubeoptions")&&_.Sa())};
vP=function(q,Z){bLI(q);if(_.BF("LOGGED_IN",!0)&&vde()){var w=wR8(q);w==null&&(w={});j6N(w,Z)&&_.l5(q,w)}};
JpO=function(){function q(Z){for(Z=Z.target;Z&&Z.nodeName!=="A";)if(Z=Z.parentNode,!(Z&&Z instanceof HTMLElement))return;if(Z&&!Z.hasAttribute("download")&&Z.getAttribute("rel")!=="external"&&Z.href)return Z.href}
document.addEventListener("mousedown",function(Z){Z.button!==0&&(Z=q(Z))&&vP(Z)});
document.addEventListener("click",function(Z){(Z=q(Z))&&vP(Z)})};
axj=function(){var q=new zh2;try{if(_.BF("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(O){q.increment(5,!1);return}if(_.zj("LOGIN_INFO")){var Z=B7e?B7e:window.location;_.zj("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&L5I();var w=wR8(Z.href);w==null&&(w={});var r=w.session_logininfo,Y=Number(window.sessionStorage.getItem("stickiness_reload")),C=r===_.zj("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
Y>=2||C)Y>=2?q.increment(2,C):C?q.increment(7,C):window.sessionStorage.getItem("session_logininfo")||(q.increment(3,C),tRe="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.zj("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.zj("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))q.increment(4,C),window.sessionStorage.removeItem("stickiness_reload");
else if(Y<2){window.sessionStorage.setItem("stickiness_reload",String(Y+1));var d=Z.href;d=_.pp(d,"sttick");vP(d,window.sessionStorage.getItem("session_logininfo"));d=_.sq(d,{sttick:Y});q.increment(Y,C);_.qI2(Z,d)}}else q.increment(6,!1)}else _.Sa(!1)}catch(O){}};
_.ja=function(q,Z,w,r,Y){Z=Z===void 0?{}:Z;w=w===void 0?"":w;r=r===void 0?window:r;q=_.Iz(q,Z);vP(q);w=_.EX(q+w,Y);_.qI2(r.location,w)};
nd8=function(q){if(q.urlEndpoint){if(q=_.Ks(q.urlEndpoint.url),q.adurl)return lO(q.adurl)}else if(q.watchEndpoint)return"//www.youtube.com/watch?v="+q.watchEndpoint.videoId;return null};
Q6I=function(q){if(!q||!q.reportingPings)return null;var Z={};q.reportingPings.forEach(function(w){w.pingType in Z?Z[w.pingType].push(w.url):Z[w.pingType]=[w.url]});
return{adpings:HRz(Z)}};
_.RJ=function(q){q=q===void 0?!1:q;var Z=_.Hd(),w="USER_INTERFACE_THEME_LIGHT";Z.getFlag(165)?w="USER_INTERFACE_THEME_DARK":Z.getFlag(174)?w="USER_INTERFACE_THEME_LIGHT":_.tr()&&(w="USER_INTERFACE_THEME_DARK");return q?w:Ed2()||w};
_.xO2=function(){return!_.b("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.tr=function(){return _.xO2()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.bq=function(){var q=_.Hd();return _.xO2()&&!q.getFlag(165)&&!q.getFlag(174)};
Ed2=function(){var q=q===void 0?window.location.href:q;if(_.b("kevlar_disable_theme_param"))return null;var Z=_.gA(q);if(_.T7e(Z))return"USER_INTERFACE_THEME_DARK";try{var w=_.Ks(q).theme;return UO2.get(w)||null}catch(r){}return null};
_.T7e=function(q){return _.b("enable_dark_theme_only_on_shorts")?!(q==null||!q.startsWith("/shorts/")):!1};
_.s61=function(q,Z,w,r,Y){Z=Z===void 0?!1:Z;w=w===void 0?!1:w;var C=_.zj("INNERTUBE_CONTEXT");if(!C)return _.tY(Error("bg")),{};C=(0,_.R4.unsafeClone)(C);_.b("web_no_tracking_params_in_shell_killswitch")||delete C.clickTracking;C.client||(C.client={});var d=C.client;d.clientName==="MWEB"&&d.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(d.clientFormFactor=_.zj("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");d.screenWidthPoints=window.innerWidth;d.screenHeightPoints=window.innerHeight;d.screenPixelDensity=
Math.round(window.devicePixelRatio||1);d.screenDensityFloat=window.devicePixelRatio||1;d.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());d.userInterfaceTheme=_.RJ();if(!Z){var O=_.$9j();O&&(d.connectionType=O);_.b("web_log_effective_connection_type")&&(O=CF6())&&(C.client.effectiveConnectionType=O)}var H;if(_.b("web_log_memory_total_kbytes")&&((H=_.$1.navigator)==null?0:H.deviceMemory)){var L;H=(L=_.$1.navigator)==null?void 0:L.deviceMemory;C.client.memoryTotalKbytes=""+H*1E6}Z&&r&&!_.b("web_it_context_set_original_url_ks")&&
(d.originalUrl=kz2(_.$1.location.href,r).toString());_.b("web_gcf_hashes_innertube")&&(O=vzN())&&(L=O.coldConfigData,H=O.coldHashData,O=O.hotHashData,C.client.configInfo=C.client.configInfo||{},L&&(C.client.configInfo.coldConfigData=L),H&&(C.client.configInfo.coldHashData=H),O&&(C.client.configInfo.hotHashData=O));L=_.Ks(_.$1.location.href);!_.b("web_populate_internal_geo_killswitch")&&L.internalcountrycode&&(d.internalGeo=L.internalcountrycode);!_.b("web_populate_client_screen_killswitch")&&Y&&(d.clientScreen=
Y);d.clientName==="MWEB"||d.clientName==="WEB"?(d.mainAppWebInfo={graftUrl:r||_.$1.location.href},_.b("kevlar_woffle")&&_.Jr.instance&&(r=_.Jr.instance,d.mainAppWebInfo.pwaInstallabilityStatus=!r.appInstalledEventFired&&r.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),d.mainAppWebInfo.webDisplayMode=VaN(),d.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):d.clientName==="TVHTML5"&&(!_.b("web_lr_app_quality_killswitch")&&
(r=_.zj("LIVING_ROOM_APP_QUALITY"))&&(d.tvAppInfo=Object.assign(d.tvAppInfo||{},{appQuality:r})),r=_.zj("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(d.tvAppInfo=Object.assign(d.tvAppInfo||{},{certificationScope:r}));!_.b("web_populate_time_zone_itc_killswitch")&&(r=r01())&&(d.timeZone=r);(r=zA1())?d.experimentsToken=r:delete d.experimentsToken;d=BTX();r=_.K5O();r=(0,_.R4.getValues)(r.tokenJars);C.request=Object.assign({},C.request,{internalExperimentFlags:d,consistencyTokenJars:r});!_.b("web_prequest_context_killswitch")&&
(d=_.zj("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(C.request.externalPrequestContext=d);r=_.Hd();d=r.getFlag(58);r=r.get("gsml","");C.user=Object.assign({},C.user);d&&(C.user.enableSafetyMode=d);r&&(C.user.lockedSafetyMode=!0);_.b("warm_op_csn_cleanup")?w&&(Z=_.b5())&&(C.clientScreenNonce=Z):!Z&&(Z=_.b5())&&(C.clientScreenNonce=Z);q&&(C.clickTracking={clickTrackingParams:q});if(q=_.Eq("yt.mdx.remote.remoteClient_"))C.remoteClient=q;_.zI.getInstance().setLocationOnInnerTubeContext(C);try{var S=sV6(),
v=S.bid;delete S.bid;C.adSignalsInfo={params:[],bid:v};for(var R=_.P(Object.entries(S)),B=R.next();!B.done;B=R.next()){var n=_.P(B.value),x=n.next().value,K=n.next().value;S=x;v=K;q=void 0;(q=C.adSignalsInfo.params)==null||q.push({key:S,value:""+v})}var k,G;if(((k=C.client)==null?void 0:k.clientName)==="TVHTML5"||((G=C.client)==null?void 0:G.clientName)==="TVHTML5_UNPLUGGED"){var rz=_.zj("INNERTUBE_CONTEXT");rz.adSignalsInfo&&(C.adSignalsInfo.advertisingId=rz.adSignalsInfo.advertisingId,C.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",C.adSignalsInfo.limitAdTracking=rz.adSignalsInfo.limitAdTracking)}}catch(f){_.tY(f)}return C};
_.BP=function(){return{isShellLoad:_.BF("IS_SHELL_LOAD",!1)}};
cpX=function(){navigator.serviceWorker.getRegistrations().then(function(q){q.forEach(Ix1)})};
Ix1=function(q){q&&_.MRX(F52,q.scope)};
_.MRX=function(q,Z){Z={scope:Z||_.Af("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.ug(q),Z)};
aJ=function(q,Z,w,r){if(Z&&Z.serializedYpcCujLoggingParams){if(w){var Y={};Y.transactionErrorType=w;r&&(Y.errorMessage=r);Z.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:Y}}}w={};w.ypcCujContext=Z;q=_.h0("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",q,w);_.yR(_.iF(),q,"FLOW_TYPE_YPC_ACQUISITION")}};
_.N7I=function(q,Z,w,r){var Y={};Y.serializedTransactionFlowLoggingParams=Z;w&&(Y.errorType=w);r&&(Y.errorMessage=r);_.vO(q,Y);_.jX()};
_.lxj=function(q){q&&_.N7I("transactionFlowStarted",q)};
_.Gz9=function(q){q&&_.N7I("transactionFlowCancelled",q)};
_.no=function(q,Z,w){Z&&_.N7I("transactionFlowFailed",Z,q,w)};
_.Q5=function(){this.megabloxUrl_=null};
_.E8=function(q){try{var Z=pa8==null?void 0:pa8.composedPath(q)}catch(w){Z=q.composedPath?q.composedPath():[]}return Z&&Z.length>0?Z:q.composedPath?q.composedPath():[]};
_.xz=function(q){return _.E8(q)[0]};
_.TI=function(q){if(!(q instanceof Element))return null;q=q.classList?Array.from(q.classList):void 0;if(!q)return null;var Z=q.indexOf("style-scope");return Z>-1&&Z+1<q.length?q[Z+1]:null};
U8=function(q){if(!(q instanceof HTMLElement))return null;var Z=q&&(q.$$||q.polymerController)?q.tagName.toLowerCase():null;return Z?Z:_.TI(q)};
XaI=function(q,Z){return q.replace(/[^a-z]*[^\s]+/g,function(w){return w+".style-scope."+Z})};
mOX=function(q,Z){return Z?q.split(",").map(function(w){return XaI(w.trim(),Z)}).join(", "):q};
_.kz=function(q){var Z,w,r,Y;return(Y=(r=(w=(Z=q.root)!=null?Z:q.shadowRoot)!=null?w:q.__shady_native_shadowRoot)!=null?r:q.__shady_shadowRoot)!=null?Y:q};
Ko=function(q){return q instanceof ShadowRoot?ShadowRoot:q instanceof DocumentFragment?DocumentFragment:q instanceof Document?Document:HTMLElement};
Apj=function(q){var Z,w,r;return(r=(w=(Z=q.parentElement)!=null?Z:q.__shady_native_parentElement)!=null?w:q.__shady_parentElement)!=null?r:null};
fx9=function(q){var Z,w,r;return(r=(w=(Z=q.parentNode)!=null?Z:q.__shady_native_parentNode)!=null?w:q.__shady_parentNode)!=null?r:null};
DOj=function(q){var Z,w,r;return(r=(w=(Z=q.__shady_parentNode)!=null?Z:q.__shady_native_parentNode)!=null?w:q.parentNode)!=null?r:null};
hhe=function(q){var Z,w;return(w=(Z=fx9(q))!=null?Z:q.host)!=null?w:null};
ype=function(q){var Z,w,r;return(r=(w=(Z=q.nextSibling)!=null?Z:q.__shady_native_nextSibling)!=null?w:q.__shady_nextSibling)!=null?r:null};
iLN=function(q){var Z,w,r;return(r=(w=(Z=q.previousSibling)!=null?Z:q.__shady_native_previousSibling)!=null?w:q.__shady_previousSibling)!=null?r:null};
gdX=function(q){var Z,w,r;return(r=(w=(Z=q.nextElementSibling)!=null?Z:q.__shady_native_nextElementSibling)!=null?w:q.__shady_nextElementSibling)!=null?r:null};
qFj=function(q){var Z,w,r;return(r=(w=(Z=q.previousElementSibling)!=null?Z:q.__shady_native_previousElementSibling)!=null?w:q.__shady_previousElementSibling)!=null?r:null};
Zt6=function(q){var Z,w,r;return new Set([].concat(_.Ju((Z=q.children)!=null?Z:[]),_.Ju((w=q.__shady_native_children)!=null?w:[]),_.Ju((r=q.__shady_children)!=null?r:[])))};
whO=function(q){var Z,w,r;return new Set([].concat(_.Ju((Z=q.childNodes)!=null?Z:[]),_.Ju((w=q.__shady_native_childNodes)!=null?w:[]),_.Ju((r=q.__shady_childNodes)!=null?r:[])))};
rO9=function(q){if(!q)return null;var Z=_.TI(q);if(!Z){var w;return(w=Node.prototype.getRootNode)==null?void 0:w.call(q)}Z=Z.toUpperCase();for(q=Apj(q);q&&q.tagName!==Z;)q=Apj(q);return q?_.kz(q):null};
YFO=function(q){for(;q&&!(q instanceof HTMLElement);)q=hhe(q);return q};
$h9=function(q){var Z=YFO(q);return q===Z?_.TI(q):Z?U8(Z):null};
eMz=function(q){return(q=YFO(q))?U8(q):null};
C_T=function(q){if(q instanceof Comment)return!1;if(q instanceof Text){var Z,w;if(((w=(Z=q.textContent)==null?void 0:Z.trim())!=null?w:"")==="")return!1}return!0};
s8=function(q,Z,w){var r=Z(q);for(w=w===void 0?eMz(q):w;r&&($h9(r)!==w||!C_T(r));)q=r,r=Z(q);return r};
P_2=function(q,Z,w){if(!Z)return null;q=eMz(q);return $h9(Z)===q&&C_T(Z)?Z:s8(Z,w,q)};
dh6=function(q){return s8(q,DOj,_.TI(q))};
V4j=function(q){return s8(q,gdX)};
Otj=function(q){return s8(q,ype)};
HtO=function(q){return s8(q,qFj)};
W4O=function(q){return s8(q,iLN)};
oj2=function(q){return P_2(q,q.firstChild||q.__shady_native_firstChild||q.__shady_firstChild||null,ype)};
uxT=function(q){var Z,w,r;var Y=(r=(w=(Z=q.firstElementChild)!=null?Z:q.__shady_native_firstElementChild)!=null?w:q.__shady_firstElementChild)!=null?r:null;return P_2(q,Y,gdX)};
L46=function(q){var Z,w,r;var Y=(r=(w=(Z=q.lastChild)!=null?Z:q.__shady_native_lastChild)!=null?w:q.__shady_lastChild)!=null?r:null;return P_2(q,Y,iLN)};
SFT=function(q){var Z,w,r;var Y=(r=(w=(Z=q.lastElementChild)!=null?Z:q.__shady_native_lastElementChild)!=null?w:q.__shady_lastElementChild)!=null?r:null;return P_2(q,Y,qFj)};
vj2=function(q){var Z=eMz(q);return Array.from(whO(q)).filter(function(w){return $h9(w)===Z})};
jeN=function(q){var Z=U8(q);return Array.from(Zt6(q)).filter(function(w){return _.TI(w)===Z})};
_.IJ=function(q,Z,w){if(q instanceof HTMLElement&&_.TI(q)===w){var r=Array.from(q.classList).indexOf("style-scope");if(r===-1)q.classList.add("style-scope"),q.classList.add(Z);else if(!(r+1>=q.classList.length)){r=q.classList[r+1];var Y,C;q==null||(Y=q.classList)==null||(C=Y.replace)==null||C.call(Y,r,Z)}}if(q instanceof HTMLElement||q instanceof DocumentFragment)for(Y=_.P(Zt6(q)),C=Y.next();!C.done;C=Y.next())_.IJ(C.value,Z,w);return q};
cP=function(q,Z){if(q instanceof HTMLElement&&_.TI(q)===Z){var w=Array.from(q.classList).indexOf("style-scope");w===-1||w+1>=q.classList.length||q.classList.remove("style-scope",q.classList[w+1])}if(q instanceof HTMLElement||q instanceof DocumentFragment){w=_.P(q.children);for(var r=w.next();!r.done;r=w.next())cP(r.value,Z)}return q};
_.t48=function(q,Z){return Ko(q).prototype.appendChild.call(q,Z)};
RMe=function(q,Z){if(q===Z)return!0;q=whO(q);return Array.from(q).some(function(w){return RMe(w,Z)})};
_.E=function(q,Z){if(q instanceof MZ)return q;(Z==null?0:Z.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(q,"ownerDocument")&&Object.defineProperty(q,"ownerDocument",{get:function(){return window.document}});
return new MZ(q)};
JO2=function(){var q=MZ.prototype,Z=[].concat(_.Ju(btI?[]:["getRootNode"]),["setAttribute","removeAttribute"]);Z=_.P(Z);for(var w=Z.next(),r={};!w.done;r={method$jscomp$49:void 0},w=Z.next())r.method$jscomp$49=w.value,q[r.method$jscomp$49]=function(Y){return function(){return this.host[Y.method$jscomp$49].apply(this.host,arguments)}}(r)};
B8j=function(){var q=MZ.prototype,Z=[].concat(_.Ju(btI?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.Ju(zM1?[]:["querySelector","querySelectorAll"]));Z=_.P(Z);for(var w=Z.next(),r={};!w.done;r={method$jscomp$50:void 0},w=Z.next())r.method$jscomp$50=w.value,q[r.method$jscomp$50]=function(Y){return function(){return this.root[Y.method$jscomp$50].apply(this.root,arguments)}}(r)};
Qej=function(){var q=MZ.prototype,Z=[].concat(_.Ju(auO?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.Ju(njT?[]:["parentNode"]));Z=_.P(Z);for(var w=Z.next(),r={};!w.done;r={prop$jscomp$62:void 0},w=Z.next())r.prop$jscomp$62=w.value,Object.defineProperty(q,r.prop$jscomp$62,{get:function(Y){return function(){return this.host[Y.prop$jscomp$62]}}(r),
configurable:!0})};
T89=function(){var q=MZ.prototype,Z=["activeElement"].concat(_.Ju(auO?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.Ju(Ej6?[]:["children"]),_.Ju(xhe?[]:["lastChild"]));Z=_.P(Z);for(var w=Z.next(),r={};!w.done;r={prop$jscomp$63:void 0},w=Z.next())r.prop$jscomp$63=w.value,Object.defineProperty(q,r.prop$jscomp$63,{get:function(Y){return function(){return this.root[Y.prop$jscomp$63]}}(r),
configurable:!0})};
Uhj=function(){for(var q=MZ.prototype,Z=_.P(["innerHTML","textContent"]),w=Z.next(),r={};!w.done;r={prop$jscomp$64:void 0},w=Z.next())r.prop$jscomp$64=w.value,Object.defineProperty(q,r.prop$jscomp$64,{get:function(Y){return function(){return this.root[Y.prop$jscomp$64]}}(r),
set:function(Y){return function(C){this.root[Y.prop$jscomp$64]=C}}(r),
configurable:!0})};
kWT=function(q){var Z=MZ.prototype;q=_.P(Object.entries(q));for(var w=q.next(),r={};!w.done;r={fn$jscomp$359:void 0},w=q.next()){var Y=_.P(w.value);w=Y.next().value;Y=Y.next().value;r.fn$jscomp$359=Y;Z[w]=function(C){return function(){return C.fn$jscomp$359.apply(null,[this.host.node||this.host].concat(_.Ju(arguments)))}}(r)}};
seT=function(){for(var q=MZ.prototype,Z=_.P(Object.entries(K42)),w=Z.next(),r={};!w.done;r={fn$jscomp$360:void 0},w=Z.next()){var Y=_.P(w.value);w=Y.next().value;Y=Y.next().value;r.fn$jscomp$360=Y;Object.defineProperty(q,w,{get:function(C){return function(){return C.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.Ju(arguments)))}}(r),
configurable:!0})}};
_.FN=function(q){return q instanceof IuT||q instanceof Document?q:new IuT(q)};
cO2=function(){for(var q=IuT.prototype,Z=_.P("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),w=Z.next(),r={};!w.done;r={method$jscomp$51:void 0},w=Z.next())r.method$jscomp$51=w.value,q[r.method$jscomp$51]=function(Y){return function(){return HTMLElement.prototype[Y.method$jscomp$51].call.apply(HTMLElement.prototype[Y.method$jscomp$51],[this.node].concat(_.Ju(arguments)))}}(r)};
M4I=function(){for(var q=IuT.prototype,Z=_.P("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),w=Z.next(),r={};!w.done;r={prop$jscomp$65:void 0},w=Z.next())r.prop$jscomp$65=w.value,Object.defineProperty(q,r.prop$jscomp$65,{get:function(Y){return function(){var C;return(C=this.node["__shady_native_"+Y.prop$jscomp$65])!=null?C:this.node[Y.prop$jscomp$65]}}(r),
configurable:!0})};
_.NZ=function(q,Z,w){w===void 0&&(w=!q.classList.contains(Z));w?q.classList.add(Z):q.classList.remove(Z)};
_.lq=function(q,Z,w){w===void 0&&(w=!q.hasAttribute(Z));if(Z==="class")throw Error("fg");w?_.FN(q).setAttribute(Z,""):_.FN(q).removeAttribute(Z)};
F4e=function(q){return(q.localName!=="slot"?[]:(0,_.GI)(q).assignedNodes({flatten:!0})).filter(function(Z){return Z.nodeType===Node.ELEMENT_NODE})};
_.N86=function(q){return(q=_.E(q).querySelector("slot"))&&q.localName==="slot"?F4e(q):[]};
_.po=function(q,Z){window.ShadyCSS&&window.ShadyCSS.styleSubtree(q,Z)};
luT=function(q,Z){var w=Z.bind(q);return function(r){w(r,r.detail)}};
_.XN=function(q,Z){var w=GWe.get(q);w||(w=new WeakMap,GWe.set(q,w));if(w.has(Z))return w.get(Z);if(_.b("web_fi_listen_disable_bound_fn_helper")){var r=Z.bind(q);q=function(Y){r(Y,Y==null?void 0:Y.detail)}}else q=luT(q,Z);
w.set(Z,q);return q};
mh2=function(q,Z){phX(q);q.created[XhI].push(Z)};
phX=function(q){if(!q.created||!q.created[XhI]){var Z=q.created,w=Z?[Z]:[];q.created=function(){for(var r=_.P(w),Y=r.next();!Y.done;Y=r.next())Y.value.apply(this)};
q.created[XhI]=w}};
AO8=function(q){return function(){var Z=_.Ta.apply(0,arguments);return function(w,r,Y){q.apply(null,_.Ju(Z))(w,r,Y)}}};
fu1=function(){return function(){var q=_.Ta.apply(0,arguments);return function(Z,w,r){jr1.apply(null,_.Ju(q))(Z,w,r)}}};
_.U=function(q){return fu1()(q)};
_.I=function(){return AO8(J$O).apply(null,_.Ju(_.Ta.apply(0,arguments)))};
_.m2=function(q){return _.b("pbcm_fi_listen_decorators")?DhN(q):AO8(Rv6)(q)};
DhN=function(q){return function(Z,w){mh2(Z,function(){var r=this[w],Y=_.b("web_fi_listen_disable_bound_fn_helper")?function(C){r(C,C.detail)}.bind(this):luT(this,r);
hMj.has(q)?jx(this.hostElement,q,Y):this.hostElement.addEventListener(q,Y)})}};
_.M=function(){return AO8(bIO).apply(null,_.Ju(_.Ta.apply(0,arguments)))};
_.F=function(q){q=q===void 0?{}:q;return AO8(tzX)(q)};
_.Ar=function(q){if(q.hostElement&&q!==q.hostElement){var Z=_.os(q.hostElement);Z=q.renderIdom?Z:Z.shadowRoot}Z||(q=q.root,Z=q instanceof Node?_.os(q):null);return Z};
_.fo=function(q){return yO6?itN(q):function(Z,w){Object.defineProperty(Z,w,{get:function(){var r;return(r=_.Ar(this))==null?void 0:r.querySelector(q)},
enumerable:!0,configurable:!0})}};
itN=function(q){return function(Z,w){Object.defineProperty(Z,w,{get:function(){var r,Y=(r=_.E(this.hostElement))==null?void 0:r.querySelector(q);if(Y)return Y;var C;r=(C=this.is)!=null?C:"yt-undefined-target";gjT!=null||(gjT=Date.now());(QY(r)+gjT)%100>_.m6("pbcm_fi_query_decorators_fallback_logging_pct")||(qyj!=null||(qyj=new Z22),wY6.has(r)||(wY6.add(r),qyj.increment(r)));var d;return(d=_.Ar(this))==null?void 0:d.querySelector(q)},
enumerable:!0,configurable:!0})}};
_.D5=function(q){return yO6?rZ9(q):function(Z,w){Object.defineProperty(Z,w,{get:function(){var r;return(r=_.Ar(this))==null?void 0:r.querySelectorAll(q)},
enumerable:!0,configurable:!0})}};
rZ9=function(q){return function(Z,w){Object.defineProperty(Z,w,{get:function(){var r,Y=(r=_.E(this.hostElement))==null?void 0:r.querySelectorAll(q);if(Y==null?0:Y.length)return Y;var C;return(C=_.Ar(this))==null?void 0:C.querySelectorAll(q)},
enumerable:!0,configurable:!0})}};
Yyj=function(q){return function(Z){if(![_.F1,_.N].includes(Object.getPrototypeOf(Z.prototype).constructor))throw Error("gg");OIj(Object.assign({},typeof q!=="string"?q:{is:q,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(Z)}};
_.iq=function(){var q=q===void 0?{}:q;return function(Z){if(![l9,_.y5].includes(Object.getPrototypeOf(Z.prototype).constructor))throw Error("hg");HII(Object.assign({},q,{disableInheritanceCheck:!0}))(Z)}};
eH9=function(q,Z){$sT[q]!=null||($sT[q]=new Set);$sT[q].add(Z)};
_.g3=function(){var q=_.M.apply(null,_.Ju(_.Ta.apply(0,arguments)));return function(Z,w){eH9(Z.is,w);q(Z,w)}};
wx=function(q,Z,w){if(qT(q)&&!CR2.has(Z)){Z=Z.replace(/^JSC\$[\d]+_/,"");Z=Z.replace(/\.\d+(\.|$)/g,function(C,d){return".#"+d});
ZN[q]!=null||(ZN[q]={});var r,Y;(r=ZN[q])[Y=Z]!=null||(r[Y]=new Set);ZN[q][Z].has(w)||(ZN[q][Z].add(w),_.vO("polymerPropertyAccessEvent",{componentName:q,propertyName:Z,accessType:w}))}};
PRe=function(){return _.b("polymer_property_access_logging_debug")||_.b("polymer_enable_property_access_logging")};
qT=function(q){if(_.b("polymer_property_access_logging_debug"))return!0;if(!_.b("polymer_enable_property_access_logging"))return!1;dsj||(dsj=Date.now());return(QY(q)+dsj)%100<_.m6("polymer_property_access_logging_percent")};
VdX=function(q,Z){return qT(Z)&&q.hostElement.loggingStatus?new Proxy(q,{get:function(w,r,Y){if(w.hostElement.loggingStatus.bypassProxyController)return w[r];w.hostElement.loggingStatus.isExternalGet=!0;var C=w[r];w.hostElement.loggingStatus.isExternalGet=!1;if(C instanceof Function)return function(){var d=_.Ta.apply(0,arguments);try{return w.hostElement.loggingStatus.currentExternalCall=r,wx(Z,r,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),C.apply(this===Y?w:this,d)}finally{w.hostElement.loggingStatus.currentExternalCall=
void 0}};
wx(Z,r,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return C},
set:function(w,r,Y){if(w.hostElement.loggingStatus.bypassProxyController)return w[r]=Y,!0;w.hostElement.loggingStatus.isRendererStamper?wx(Z,r,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):w.hostElement.loggingStatus.isDeclarativeExternal||wx(Z,r,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{w.hostElement.loggingStatus.currentExternalSet=r,w[r]=Y}finally{w.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):q};
O2X=function(q,Z){q&&q.loggingStatus&&!q.loggingStatus.isDeclarativeExternal&&!q.loggingStatus.isExternalGet&&q.loggingStatus.currentExternalSet!==Z&&wx(q.tagName.toLowerCase(),Z,"PROPERTY_ACCESS_GET_INTERNAL")};
rx=function(q,Z,w){q&&(w||q.loggingStatus&&!q.loggingStatus.isInitializing&&!q.loggingStatus.isDefiningPropertyAccessor&&q.loggingStatus.currentExternalSet!==Z)&&wx(q.tagName.toLowerCase(),Z,"PROPERTY_ACCESS_SET_INTERNAL")};
H2z=function(){return{_definePropertyAccessor:function(q,Z){var w=this,r=w.hostElement.loggingStatus;r&&(r.isDefiningPropertyAccessor=!0);var Y=w[q];Y!==void 0&&(w.__data?w._setPendingProperty(q,Y):(w.__dataProto!=null||(w.__dataProto={}),w.__dataProto[q]=Y));r&&(r.isDefiningPropertyAccessor=!1);Object.defineProperty(this,q,{get:function(){O2X(w.hostElement,q);return this.__data[q]},
set:function(C){Z||this._setPendingProperty(q,C,!0)&&this._invalidateProperties()}})},
created:function(){var q=this._setPendingProperty.bind(this);this._setPendingProperty=function(Z,w,r){rx(this.hostElement,Z);return q.apply(this,[Z,w,r])}}}};
ohe=function(q){PRe()&&_.U(W8z.prototype)(q.prototype,"__templateBindingLoggingBehavior")};
uPz=function(q,Z){if(Z.resolvedFactories.length!==q.resolvedFactories.length)return!0;Z=_.P(Z.resolvedFactories.entries());for(var w=Z.next();!w.done;w=Z.next()){var r=_.P(w.value);w=r.next().value;r=r.next().value;if(r.providerClass){if(r.providerClass!==q.resolvedFactories[w].providerClass)return!0}else if(r.providerValue){if(r.providerValue!==q.resolvedFactories[w].providerValue)return!0}else if(r.factory!==q.resolvedFactories[w].factory)return!0}return!1};
L81=function(q,Z){q=_.P(q);for(var w=q.next();!w.done;w=q.next())if(w=w.value,w.constructor===Array)L81(w,Z);else{var r=Z;r.has(w)||(w.inject&&r.add(w),w.behaviors&&L81(w.behaviors,r))}};
Yl=function(q,Z){var w=q[Z];q[Z]=function(){var r=_.Ta.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(w)return w.apply(this,r)}};
tdj=function(){_.$l.Class=function(w,r){w=Syz(w,r);Yl(w.prototype,"created");return w};
Yl(eH.prototype,"_initializeProperties");Yl(_.C5.prototype,"_initializeProperties");if(vhe)Yl(jXT,"created");else{var q=function(){Yl(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))q();else{var Z=customElements.define;customElements.define=function(w,r,Y){Z.call(customElements,w,r,Y);w==="tp-yt-iron-list"&&(q(),customElements.define=Z)}}}};
b22=function(q,Z){q.prototype.behaviors=q.prototype.behaviors||[];q.prototype.behaviors.unshift(RH2.InjectBehavior);q.prototype.provide=Z};
_.dx=function(q){return function(Z){if(!q.disableElementRegistration){q.noInjection||b22(Z,q.providers);var w=Z.prototype;w.__templateHelpers||jr1(Pp.prototype)(w,"__templateHelpers");w=q.is;JZz||(JZz=Date.now());(QY(w)+JZz)%100<_.m6("polymer_log_prop_change_observer_percent")&&jr1(zH2.prototype)(Z.prototype,"__propertyObserverObserver");Z.prototype.behaviors=Z.prototype.behaviors||[];Z.prototype.behaviors.unshift(_.Bqz.YtHostElementBehavior);ohe(Z);Yyj({is:q.is,notifyObserversOnUndefined:q.notifyObserversOnUndefined!==
!1,fastInit:q.fastInit,template:q.template,disableEnforceFastDefaultValuesCheck:!0})(Z)}}};
_.l=function(q){return _.dx({is:q.is,template:q.template,disableElementRegistration:q.disableElementRegistration,cssBuildOptOut:q.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
QXI=function(q,Z){if(aq1){q=new q;for(var w=_.P(Object.getOwnPropertyNames(q)),r=w.next();!r.done;r=w.next())r=r.value,Z[r]=q[r];for(w=Z;w&&w!==Object.prototype;w=Object.getPrototypeOf(w)){r=_.P(Object.getOwnPropertyNames(w));for(var Y=r.next();!Y.done;Y=r.next())Y=Y.value,q.hasOwnProperty(Y)||Object.defineProperty(q,Y,nhO(Z,Y))}}else q.apply(Z)};
nhO=function(q,Z){return{get:function(){var w=q[Z];return w instanceof Function?w.bind(q):w},
set:function(w){q[Z]=w}}};
xs9=function(q,Z){for(var w=q._noAccessors,r=_.P(Object.getOwnPropertyNames(q)),Y=r.next();!Y.done;Y=r.next())if(Y=Y.value,!Eh8.has(Y))if(w)Z[Y]=q[Y];else{var C=Object.getOwnPropertyDescriptor(q,Y);C&&(C.configurable=!0,Object.defineProperty(Z,Y,C))}};
Tq6=function(q,Z,w){return function(r){if(w){var Y=w();r.model=Y}if(q[Z])q[Z](r,r.detail)}};
Vy=function(q){var Z=[];if(typeof q==="string")q.length>0&&Z.push.apply(Z,_.Ju(q.split(".")));else{q=_.P(q);for(var w=q.next();!w.done;w=q.next())w=w.value,typeof w==="string"?Z.push.apply(Z,_.Ju(w.split("."))):Z.push(w)}return Z};
OD=function(q,Z){if(Z[Z.length-1]!=="*"&&Z[Z.length-1]!=="splices"){for(var w=0;w<Z.length;w++){if(!q)return;q=q[Z[w]]}return q}};
UsI=function(q,Z){if(q.length>Z.length)return!1;for(var w=0;w<q.length;w++)if(q[w]!==Z[w])return!1;return!0};
K82=function(q,Z,w){if(Z.type==="compute"){var r=Z.getter.bind(w);var Y=Z.args}else r=function(){return w[Z.method.methodName].apply(w,_.Ju(_.Ta.apply(0,arguments)))},Y=Z.method.args;
kYj(q,Z.propertyKey,r,Y,Z.value)};
Iqj=function(q,Z){if(Z.readOnly){var w=Object.getOwnPropertyDescriptor(q.model,Z.propertyKey);Object.defineProperty(q.model,Z.propertyKey,{get:w.get,set:function(){}});
q.model[sX2(Z.propertyKey)]=w.set}};
cZI=function(q,Z,w){if(w){var r=Z.propertyKey,Y=Z.selector;Z=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.Ju(Z.selectorArgs.map(function(C){return{type:"path",path:C}})));
kYj(q,r,function(C){var d=_.Ta.apply(1,arguments);return Y.apply(null,[w.getState()].concat(_.Ju(d)))},Z)}};
F8O=function(q,Z,w){var r=_.es(Z.propertyKey)+"-changed";Mdj(q,function(Y){var C={value:Y.value,queueProperty:!0};Y.path.split(".").length>1&&(C.path=Y.path);w.dispatchEvent(new CustomEvent(r,{detail:C}))},[{type:"wildcard",
path:Z.propertyKey}])};
NqT=function(q,Z,w){Mdj(q,function(){w[Z.method.methodName].apply(w,_.Ju(_.Ta.apply(0,arguments)))},Z.method.args)};
sX2=function(q){return"_set"+(q.charAt(0).toUpperCase()+q.slice(1))};
lqX=function(){var q,Z=vN(function(w){q=w},!1);
return[q,Z]};
AZ6=function(q){q=q.trim().replace(GYT,",").replace(pY6,"$1");var Z=q[0];Z==="-"&&(Z=q[1]);if(Z>="0"&&Z<="9")return{type:"literal",value:Number(q)};if(Z==="'"||Z==='"')return{type:"literal",value:q.slice(1,-1)};if(Z=q.match(XY9)){Z=Z[1];var w=ms6[Z];if(w)return{type:w,path:q.slice(0,-(Z.length+1))}}return{type:"path",path:q}};
nM2=function(q){var Z=q.match(fq2);if(Z)return q={methodName:Z[1],args:Dsj},Z[2].trim()&&(Z=Z[2].replace(anj,"&comma;").split(","),q.args=Z.map(AZ6)),q};
Qce=function(q,Z,w){Z=_.es(Z);var r=P0;r&&(w=r(w,Z,"attribute",q));Hp(q,w,Z)};
Hp=function(q,Z,w){Z=EM8(Z);Z===void 0?q.removeAttribute(w):q.setAttribute(w,Z)};
EM8=function(q){switch(typeof q){case "object":if(q instanceof Date)return q.toString();if(q){var Z=window.trustedTypes?window.trustedTypes.isHTML(q)||window.trustedTypes.isScript(q)||window.trustedTypes.isScriptURL(q):void 0;if(Z)return q;try{return JSON.stringify(q)}catch(w){_.bx(Error("Dg`"+q))}}break;case "boolean":return q?"":void 0;default:return q!==null&&q!==void 0?q.toString():void 0}};
xH8=function(q){if(q===void 0)throw Error("Eg");return q};
scj=function(q,Z,w,r){var Y=Tdj(r);if(Y.length){r=w;var C="property";UH8.test(w)?C="attribute":w[w.length-1]==="$"&&(w=w.slice(0,-1),C="attribute");var d=kKN(Y);d&&C==="attribute"&&(w==="class"&&q.hasAttribute("class")&&(d+=" "+q.getAttribute(w)),Hp(q,d,w));C==="attribute"&&r==="disable-upgrade$"&&q.setAttribute("disable-upgrade","");q.localName==="input"&&r==="value"&&q.setAttribute("value","");q.removeAttribute(r);C==="property"&&(w=_.Cp(w));Z=xH8(Z);KX6(Z,C,w,Y);return!0}return w.slice(0,3)===
"on-"?(q.removeAttribute(w),(C=Z).events!=null||(C.events=[]),Z.events.push({name:w.slice(3),value:r}),!0):w==="id"?(Z.id=r,!0):!1};
Tdj=function(q){for(var Z=[],w=0,r;(r=InT.exec(q))!==null;){r.index>w&&Z.push({type:"literal",value:q.slice(w,r.index)});var Y=r[1][0];w=!!r[2];r=r[3].trim();if(Y==="{")throw Error("Fg");(Y=nM2(r))?Z.push({type:"method",negate:w,signature:Y}):Z.push({type:"path",negate:w,path:r});w=InT.lastIndex}w&&w<q.length&&(q=q.substring(w))&&Z.push({type:"literal",value:q});return Z};
kKN=function(q){for(var Z="",w=0;w<q.length;w++){var r=q[w];r.type==="literal"&&(Z+=r.value)}return Z};
KX6=function(q,Z,w,r){q.bindings!=null||(q.bindings=[]);q.bindings.push({kind:Z,target:w,parts:r})};
lnX=function(q,Z,w){var r=!1;if(q.localName==="template"){r=w;var Y=Z.stripWhitespace;Y=cw6(q,Y===void 0?!1:Y);var C=q.content.ownerDocument.createDocumentFragment();Y.content=C;C.appendChild(q.content);r&&(r.templateInfo=Y);r=!0}else q.localName==="slot"&&(Z.hasInsertionPoint=!0);if(q.firstChild&&(Y=w,q.localName!=="script"&&q.localName!=="style")){C=0;for(var d=q.firstChild;d;){var O=d;if(O.localName==="template"){var H=O.getAttribute("is");if((d=H==="dom-if")||H==="dom-repeat"){O.removeAttribute("is");
H=O.ownerDocument.createElement("ps-"+H);O.parentNode.replaceChild(H,O);H.appendChild(O);var L=Array.from(O.attributes);L=_.P(L);for(var S=L.next();!S.done;S=L.next())S=S.value,d?MDj.has(S.name)&&Hp(H,S.value,S.name):FX1.has(S.name)?Hp(H,S.value,S.name):NdI.has(S.name),O.removeAttribute(S.name);d=H}else d=O}if(d.nodeType===Node.TEXT_NODE){O=void 0;H=q;for(L=d;((O=L.nextSibling)==null?void 0:O.nodeType)===Node.TEXT_NODE;)S=void 0,(S=L).textContent!=null||(S.textContent=""),L.nextSibling.textContent&&
(L.textContent+=L.nextSibling.textContent),H.removeChild(L.nextSibling);if(Z.stripWhitespace&&d.textContent&&!d.textContent.trim()){q.removeChild(d);d=d.nextSibling;continue}}lnX(d,Z,{parentIndex:C,parentInfo:Y});d.parentNode&&C++;d=d.nextSibling}}var v;if((v=q.hasAttributes)==null?0:v.call(q)){v=w=xH8(w);Y=!1;C=Array.from(q.attributes);C=_.P(C);for(O=C.next();!O.done;O=C.next())O=O.value,Y=scj(q,v,O.name,O.value)||Y;r=Y||r}q.nodeType===Node.TEXT_NODE&&(v=Tdj(q.textContent),v.length&&(q.textContent=
kKN(v)||" ",w=xH8(w),KX6(w,"text","textContent",v),r=!0));w&&r&&(w.infoIndex=Z.nodeInfoList.push(w)-1)};
cw6=function(q,Z){Z={nodeInfoList:[],stripWhitespace:(Z===void 0?!1:Z)||q.hasAttribute("strip-whitespace")};lnX(q.content,Z);return Z};
GKX=function(q){Object.assign(q,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
pwT=function(q,Z){for(;q;){var w=q.signals[Z];if(w)return w;q=q.parentScope}};
mHT=function(q,Z,w,r){Z.signalCache!=null||(Z.signalCache={});var Y=Z.signalCache[w];if(!Y){var C=w.split("."),d=pwT(r,C[0]);if((d==null?void 0:d.type)==="signal")Y=function(){var R=d.type==="mutable"?d.signal.getWithPath([]):d.getter();return{rootWasDefined:R!==void 0,value:OD(R,C.slice(1))}};
else if((d==null?void 0:d.type)==="mutable"){var O=d.signal,H=d.signal.getPathMutationSignal(C.slice(1));Y=function(){var R=tX(q.owner,function(){return O.getWithPath([])}),B,n=(B=H())==null?void 0:B.value;
return{rootWasDefined:R!==void 0,value:n}}}else{var L,S;
r=_.b("web_polysi_immutable_root_fix_killswitch")?!((L=q.options)==null?0:(S=L.immutableProps)==null?0:S.has(C[0])):!XwO(q,C[0]);if(C.length>1&&r){var v=q.getPathMutationSignal(C);Y=function(){var R=tX(q.owner,function(){return q.getWithPath([C[0]])}),B,n=(B=v())==null?void 0:B.value;
return{rootWasDefined:R!==void 0,value:n}}}else Y=function(){var R=q.getWithPath(C);
return{rootWasDefined:R!==void 0,value:R}}}Z.signalCache[w]=Y}return Y()};
fnj=function(q,Z,w,r,Y,C){Z=Z.parts.map(function(O,H){if(O.type==="literal"){w.partWasDefined!=null||(w.partWasDefined=[]);var L;(L=w.partWasDefined)[H]||(L[H]=O.value!==void 0);return O.value}var S;if(O.type==="method"){var v,R=(v=(S=w.partWasDefined)==null?void 0:S[H])!=null?v:!1;R||(R=O.signature.args.every(function(x){return x.type==="literal"}));
var B=!1,n=!0;S=O.signature.args.map(function(x){if(x.type==="literal")return x.value;if(x.type!=="path")throw Error("Gg`"+x.type);var K=mHT(q,w,x.path,Y);x=K.value;K=K.rootWasDefined;B||(B=K);n&&(n=K);return x});
R||(R=C===1?n:B);w.partWasDefined!=null||(w.partWasDefined={});w.partWasDefined[H]=R;if(!R)return;S=(H=mHT(q,w,O.signature.methodName,Y).value)&&typeof H==="function"?H.apply(r,S):void 0}else v=mHT(q,w,O.path,Y),S=v.value,w.partWasDefined!=null||(w.partWasDefined={}),(R=w.partWasDefined)[H]||(R[H]=S!==void 0||v.rootWasDefined);O.negate&&(S=!S);return S});
if(Z.length===1){var d;return((d=w.partWasDefined)==null?0:d[0])?Z[0]:AwO}return Z.join("")};
DHX=function(q){return typeof q==="object"&&!!q&&"notifyPath"in q&&"canNotifyPath"in q};
hNX=function(q){return typeof q==="object"&&!!q&&"notifyPath"in q};
ywI=function(q){return"polymerController"in q};
iMN=function(q,Z){Z=""+Vy(Z)[0];if(DHX(q))return q.canNotifyPath(Z);if(ywI(q)&&DHX(q.polymerController))return q.polymerController.canNotifyPath(Z);if(hNX(q)){var w;return!((w=q.properties)==null||!w[Z])}if(ywI(q)&&hNX(q.polymerController)){var r;return!((r=q.polymerController.properties)==null||!r[Z])}return!1};
gMN=function(q,Z,w){DHX(q)||hNX(q)?q.notifyPath(Z,w):ywI(q)&&(DHX(q.polymerController)||hNX(q.polymerController))&&q.polymerController.notifyPath(Z,w)};
ZSe=function(q,Z,w){if(w!==AwO){q.kind==="attribute"||q.target!=="textContent"&&(q.target!=="value"||Z.localName!=="input"&&Z.localName!=="textarea")||(w=w===void 0?"":w);var r,Y=(r=qB2.Polymer)==null?void 0:r.sanitizeDOMValue;Y&&(w=Y(w,q.target,q.kind,Z));if(q.kind==="attribute"){q=q.target;if(q==="class"||q==="name"||q==="slot")Z=(0,_.GI)(Z);Hp(Z,w,q)}else if(q=q.target,w!==Z[q]||typeof w==="object")Z.loggingStatus&&(Z.loggingStatus.isDeclarativeExternal=!0,wx(Z.localName,q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
Z[q]=w,Z.loggingStatus&&(Z.loggingStatus.isDeclarativeExternal=!1)}};
w_8=function(q,Z,w,r,Y){var C=Z.parts[0];if(Z.parts.length!==1||C.type!=="path"||!iMN(w,Z.target))return!1;var d=_.P(C.path.split(".")),O=d.next().value,H=cG(d);if(!_.b("web_polysi_immutable_root_fix_killswitch")&&XwO(q,O))return!1;d=pwT(Y,O);if((d==null?void 0:d.type)==="signal")return!1;r.signalCache!=null||(r.signalCache={});Y=r.signalCache[C.path];var L;Y=(L=Y)==null?void 0:L().value;if((Y==null?void 0:Y.path)!==void 0){r=Vy(Y.path);var S=Vy(C.path);r=[Z.target].concat(_.Ju(r.slice(S.length-1)));
gMN(w,r,C.negate?!Y.value:Y.value);return!0}var v;d?v=d.signal:v=Wp(q,O);var R=v.getChangeRecordSignal(H),B=!1;Y=function(){if(!B){var x=tX(q.owner,function(){return v.getWithPath([])});
B||(B=x!==void 0)}return{value:R(),rootWasDefined:B}};
r.signalCache[C.path]=Y;r.partWasDefined!=null||(r.partWasDefined={});O=Y();(S=r.partWasDefined)[0]||(S[0]=O.rootWasDefined);var n=tX(q.owner,function(){return v.getWithPath(H)});
r.partWasDefined[0]&&tX(q.owner,function(){return void ZSe(Z,w,C.negate?!n:n)});
return!0};
rn2=function(q,Z,w,r,Y,C,d){if(!w_8(q,Z,w,r,C)){var O=fnj(q,Z,r,Y,C,d);tX(q.owner,function(){return void ZSe(Z,w,O)})}};
YBj=function(q,Z,w,r,Y,C,d){w=_.P(w);for(var O=w.next(),H={};!O.done;H={infoIndex:void 0},O=w.next()){O=O.value;var L=O.bindings;H.infoIndex=O.infoIndex;O=O.parentInfo;if(L){L=_.P(L);for(var S=L.next(),v={};!S.done;v={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},S=L.next()){v.b$jscomp$254=S.value;if(H.infoIndex===void 0)throw Error("Hg");v.bindingCtx$jscomp$4={};q.effect(function(R,B){return function(){Y&&!Y()||rn2(q,R.b$jscomp$254,Z[B.infoIndex],R.bindingCtx$jscomp$4,r,C,d)}}(v,H))}}O&&YBj(q,
Z,[O],r,Y,C,d)}};
$eO=function(q,Z){q=(Z.parentInfo?$eO(q,Z.parentInfo):q).firstChild;for(var w=0;q;q=q.nextSibling)if(Z.parentIndex===w++)return q;throw Error("Ig");};
CZ9=function(q,Z,w,r){q=document.importNode(q.content,!0);q.__noInsertionPoint=!(r==null?0:r.hasInsertionPoint);for(var Y=Array(Z.length),C={},d=0;d<Z.length;d++){var O=Z[d],H=$eO(q,O);Y[d]=H;O.id&&(C[O.id]=H);if(O.templateInfo){var L=H.parentElement;L&&(L.templateInfo=O.templateInfo,L.parentSignalProxy=w,L.eventListenerHost=r.eventListenerHost,L.stampingEnabled=r.enabledSignal,L.parentScope=r.scope)}L=void 0;if((L=O.events)==null?0:L.length)for(L=0;L<O.events.length;L++){var S=O.events[L];elj(r.eventListenerHost,
H,S.name,S.value,r.getModel)}}YBj(w,Y,Z,r.thisCtx,r.enabledSignal,r.scope,r.methodInvocationRequirement);return{root:q,nodes:Y,nodesById:C}};
deN=function(q,Z){q=q();var w;(w=PZ9.ShadyCSS)==null||w.prepareTemplate(q,Z);Z=cw6(q);return{template:q,nodeInfoList:Z.nodeInfoList,hasInsertionPoint:Z.hasInsertionPoint}};
HST=function(){VYN=!1;for(var q=oA.length,Z=0;Z<q;Z++){var w=oA[Z];if(w)try{w()}catch(r){Promise.resolve().then(function(){throw r;})}}oA.splice(0,q);
OS2+=q};
LA6=function(q){VYN||(VYN=!0,WAe.textContent=(os2++).toString());oA.push(q);return u0X++};
_.SH=function(q,Z,w){uy++;q=Z?new SB1(uy,q,Z,w):new vsj(uy,q);L5.set(uy,q);return uy};
jO2=function(q){(q=L5.get(q))&&q.cancel()};
Rl2=function(q,Z){q=tY2.get(q);return q?(Z=q.get(Z))?Z:null:null};
_.vp=function(q,Z,w,r){var Y=Rl2(q,Z);if(!Y){Y=new bSI;var C=tY2.get(q);C||(C=new Map,tY2.set(q,C));C.set(Z,Y)}q=w.bind(q);Y.run(q,r,void 0)};
_.JnI=function(q,Z){var w;(w=Rl2(q,Z))==null||w.cancel()};
zlz=function(q){var Z;(Z=Rl2(q,"doRender"))==null||Z.flush()};
jH=function(q){var Z;return(Z=q.hostElement)!=null?Z:q};
BEe=function(q){var Z=q.indexOf(".");return Z===-1?q:q.slice(0,Z)};
acT=function(q,Z,w,r,Y,C){C=(Y=(r=C?BEe(Z):Z)?Z:null)?q.get(Y):q.__data[Z];Y&&C===void 0&&(C=w[Z]);_.hy(q.hostElement,gn6(r)+"-changed",{value:C,queueProperty:!0,path:Y!=null?Y:void 0},{bubbles:!1,composed:!1})};
nse=function(q,Z){q.__isReflecting=!0;Qce(q.hostElement,Z,q.__data[Z]);q.__isReflecting=!1};
QON=function(q){if(q._onIronRequestResizeNotifications){var Z=q._onIronRequestResizeNotifications.bind(q);q._onIronRequestResizeNotifications=function(w){_.xz(w)!==q.hostElement&&Z(w)}}q._ariaActiveAttributeChanged&&(q._ariaActiveAttributeChanged=q._ariaActiveAttributeChanged.bind(q.hostElement));
q._activeChanged&&(q._activeChanged=function(w){q.toggles?Hp(q.hostElement,w?"true":"false",q.ariaActiveAttribute):q.hostElement.removeAttribute(q.ariaActiveAttribute);q._changedButtonState()});
q._asyncClick&&(q._asyncClick=function(){_.SH(function(){q.hostElement.click()},1)});
!q.keyEventTarget||q.keyEventTarget instanceof EventTarget||(q.keyEventTarget=jH(q.keyEventTarget));q._disabledChanged&&(q._disabledChanged=q._disabledChanged.bind(q.hostElement));q._observeItems&&(q._observeItems=function(w){var r=jH(w);return _.os(r).observeNodes(function(Y){q._updateItems();q._updateSelected();_.hy(r,"iron-items-changed",Y,{bubbles:!1,cancelable:!1})})});
q._updateItems&&q._updateItems===_.tJ._updateItems&&(q._updateItems=function(){var w=_.os(q.hostElement).queryDistributedElements(q.selectable||"*");w=Array.prototype.filter.call(w,q._bindFilterItem);q._setItems(w)});
q._computeKeyboardClass&&(q._computeKeyboardClass=function(w){_.NZ(q.hostElement,"keyboard-focus",w)});
q.ensureRipple&&(q.ensureRipple=function(w){if(q.hasRipple&&!q.hasRipple()){if(!q._createRipple)return;q._ripple=q._createRipple();q._ripple.noink=q.noink;var r=q._rippleContainer||q.hostElement;r&&_.E(r).appendChild(q._ripple)}var Y;if(w&&((Y=q._ripple)==null?0:Y.uiDownAction)){r=_.E(q._rippleContainer||q.hostElement);var C;Y=(C=w.composedPath())==null?void 0:C[0];r.contains(Y)&&q._ripple.uiDownAction(w)}});
q._updateMultiselectable&&(q._updateMultiselectable=function(w){w?q.hostElement.setAttribute("aria-multiselectable","true"):q.hostElement.removeAttribute("aria-multiselectable")})};
Es6=function(q,Z,w){w=_.P(w);for(var r=w.next();!r.done;r=w.next())QXI(r.value.constructor,q);QXI(Z.constructor,q)};
TE1=function(q,Z){q=_.P(q);for(var w=q.next();!w.done;w=q.next())if(w=w.value,w.type==="signal"){var r=w.propertyKey;if(Z.hasOwnProperty(r)&&Z[r]!=null&&w.attributeType===Object){a:{r=Z[r].constructor;for(var Y=_.P(xez),C=Y.next();!C.done;C=Y.next())if(C=C.value,r===C){r=C;break a}r=Object}w.attributeType=r}}};
Uej=function(){};
kbX=function(q){var Z;return(Z=q.hostElement)!=null?Z:q};
KAj=function(){throw Error("Mg");};
sO8=function(q,Z){q.constructor.prototype.useSignals=!0;var w=new q.constructor;Es6(w,q,Z.behaviors);TE1(Z.reactiveSchemas,w);w={};for(var r=_.P(Z.reactiveSchemas),Y=r.next();!Y.done;Y=r.next())Y=Y.value,Y.type==="signal"&&(w[Y.propertyKey]=Y.attributeType);var C={copyPropertiesToProto:KAj,didRegister:!1,typesForSignals:w},d=["disable-upgrade"].concat(_.Ju(Z.observedAttributes)),O=function(H){RA.call(this,q,Z,C,H)};
_.z(O,RA);_.My.Object.defineProperties(O,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return d}}});
C.copyPropertiesToProto=function(){for(var H=0;H<Z.behaviors.length;H++)xs9(Z.behaviors[H],O.prototype);xs9(q,O.prototype)};
Z.legacyOptimizations||C.copyPropertiesToProto();O.prototype.is=q.is;return O};
Ic2=function(q,Z){if(Object.getPrototypeOf(Z.prototype).constructor!==_.N)throw Error("Ng");Z.prototype.is=q.is;return sO8(Z.prototype,q)};
cn1=function(q){return q.type==="compute"||q.type==="computeWithMethod"};
MY8=function(q){for(var Z=q.reactiveSchemas.filter(cn1),w=new Map,r=new Map,Y=new Map,C=_.P(Z),d=C.next();!d.done;d=C.next())d=d.value,w.set(d.propertyKey,d),r.set(d.propertyKey,[]),Y.set(d.propertyKey,0);C=0;Z=_.P(Z);for(d=Z.next();!d.done;d=Z.next()){d=d.value;for(var O=_.P(d.type==="computeWithMethod"?d.method.args:d.args),H=O.next();!H.done;H=O.next())H=H.value,H.type!=="literal"&&(H=H.path.split(".")[0],r.has(H)&&(r.get(H).push(d.propertyKey),Y.set(d.propertyKey,Y.get(d.propertyKey)+1),C++))}d=
[].concat(_.Ju(r.keys())).filter(function(L){return Y.get(L)===0});
for(Z=[];d.length;)for(O=d.shift(),Z.push(w.get(O)),O=_.P(r.get(O)),H=O.next();!H.done;H=O.next())H=H.value,Y.set(H,Y.get(H)-1),C--,Y.get(H)===0&&d.push(H);w=q.reactiveSchemas.filter(function(L){return!cn1(L)});
q.reactiveSchemas=[].concat(_.Ju(w),_.Ju(Z))};
FA2=function(q,Z){if(Z.properties)for(var w=_.P(Object.entries(Z.properties)),r=w.next();!r.done;r=w.next()){var Y=_.P(r.value);r=Y.next().value;Y=Y.next().value;q.properties[r]=typeof Y==="function"?{type:Y}:Y}Z.observers&&q.observers.push.apply(q.observers,_.Ju(Z.observers));Z.disabledPolySiReactions&&q.disabledPolySiReactions.push.apply(q.disabledPolySiReactions,_.Ju(Z.disabledPolySiReactions))};
NEz=function(q,Z){for(var w=Z.length-1;w>=0;w--){var r=Z[w];Array.isArray(r)?NEz(q,r):q.indexOf(r)<0&&q.unshift(r)}};
lcz=function(q,Z){q.reactiveSchemas=q.reactiveSchemas.filter(function(w){return w.type==="observe"&&Z.includes(w.method.methodName)||cn1(w)&&Z.includes(w.propertyKey)?!1:!0})};
p_z=function(q,Z){var w=Z.prototype,r,Y,C={is:q.is,reactiveSchemas:[],observedAttributes:[],behaviors:[RH2.InjectBehavior,Pp.prototype],disableElementRegistration:q.disableElementRegistration,provide:(r=q.providers)!=null?r:[],reactivityMode:q.reactivityMode,signalProperties:(Y=w.signalProperties)!=null?Y:[]};"template"in Z?C.templateGetter=function(){return Z.template}:q.getTemplate&&(C.templateGetter=q.getTemplate);
w.behaviors&&NEz(C.behaviors,w.behaviors);Gb2(C,Z);return C};
Gb2=function(q,Z){for(var w=Z.prototype,r={properties:{},observers:[],disabledPolySiReactions:[]},Y=_.P(q.behaviors),C=Y.next();!C.done;C=Y.next())FA2(r,C.value);FA2(r,w);if(q.signalProperties)for(w=_.P(q.signalProperties),Y=w.next();!Y.done;Y=w.next())delete r.properties[Y.value];w=_.P(Object.entries(r.properties));for(Y=w.next();!Y.done;Y=w.next()){C=_.P(Y.value);Y=C.next().value;C=C.next().value;var d=void 0;if((d=q.signalProperties)==null||!d.includes(Y)){d=void 0;var O=q,H=C.type;if(!H)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{H=Reflect.getMetadata("design:type",Z,Y);for(var L=_.P(X_I),S=L.next();!S.done;S=L.next())if(S=S.value,H===S){H=S;break a}H=Object}else H=String;C.computed||C.selector||(O.reactiveSchemas.push({type:"signal",propertyKey:Y,value:C.value,attributeType:H,readOnly:C.readOnly}),O.observedAttributes.push(_.es(Y)));C.reflectToAttribute&&O.reactiveSchemas.push({type:"reflect",propertyKey:Y});if(C.computed){H=nM2(C.computed);if(!H)throw Error("Og");O.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:Y,method:H,value:C.value})}C.observer&&O.reactiveSchemas.push({type:"observe",method:{methodName:C.observer,args:[{type:"path",path:Y}]}});C.notify&&O.reactiveSchemas.push({type:"notify",propertyKey:Y});C.selector&&O.reactiveSchemas.push({type:"redux",propertyKey:Y,selector:C.selector,selectorArgs:(d=C.selectorArgs)!=null?d:[]})}}meO&&MY8(q);Z=_.P(r.observers);for(Y=Z.next();!Y.done;Y=Z.next())w=q,Y=Y.value,(C=nM2(Y))?w.reactiveSchemas.push({type:"observe",method:C}):console.log('Warning: unable to parse observe declaration: "'+
Y+'"');lcz(q,r.disabledPolySiReactions)};
Anj=function(q,Z){for(var w=0;w<Z.length;w++){var r=Z[w],Y=void 0;(Y=r).showHideApi!=null||(Y.showHideApi={});Y=void 0;!!q!==!((Y=r.showHideApi)==null||!Y.hideTemplateChildren)&&(r.nodeType===Node.TEXT_NODE?q?(r.showHideApi.polymerTextContent=r.textContent,r.textContent=""):(Y=void 0,r.textContent=(Y=r.showHideApi.polymerTextContent)!=null?Y:null):r instanceof Element&&r.localName==="slot"?q?(r.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.GI)((0,_.GI)(r).parentNode).replaceChild(r.showHideApi.polymerReplaced,
r)):(Y=r.showHideApi.polymerReplaced)&&(0,_.GI)((0,_.GI)(Y).parentNode).replaceChild(r,Y):r instanceof HTMLElement&&r.style&&(q?(r.showHideApi.polymerDisplay=r.style.display,r.style.display="none"):r.style.display=r.showHideApi.polymerDisplay));r.showHideApi.hideTemplateChildren=q;r.showHideChildren&&r.showHideChildren(q)}};
Dee=function(){if(!fcX){var q=document.createElement("style");q.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(q);fcX=!0}};
hl2=function(q,Z){return tX(q,function(){for(var w={},r=Z,Y=new Set;r;){for(var C=_.P(Object.entries(r.signals)),d=C.next();!d.done;d=C.next()){var O=_.P(d.value);d=O.next().value;O=O.next().value;Y.has(d)||(Y.add(d),w[d]=O.type==="mutable"?O.signal.getWithPath([]):O.getter())}r=r.parentScope}return w})};
by=function(){return _.b("disable_hidden_dom_if_using_stamper")||_.b("creator_disable_hidden_dom_if_using_stamper")};
ynz=function(){var q=!1,Z=_.P(_.qo(!0,void 0,"UQbJQc")),w=Z.next().value,r=Z.next().value;return[function(){return q?!1:w()},
function(){q=!0;r(!1)}]};
iS2=function(q,Z){var w=_.JJ().getState();return Z?q.apply(null,[w].concat(_.Ju(Z))):q(w)};
Ze2=function(){if(gsI)return gsI;var q=_.P(_.qo(0,void 0,"Nl6eIe")),Z=q.next().value;q.next();var w=q.next().value;_.JJ().subscribe(function(){qQj(w)});
return gsI=Z};
qQj=function(q){_.b("delay_redux_signal_update_killswitch")?q(function(Z){return Z+1}):w$e||(w$e=!0,Promise.resolve().then(function(){q(function(Z){return Z+1});
w$e=!1}))};
_.JJ=function(){return rie.getAppStore()};
zp=function(q,Z){return rie.getSelectFn()(q,Z)};
_.Bp=function(q){rie.getDispatchFn()(q)};
YQj=function(q,Z){var w={},r;for(r in q)w[r]=Z(q[r],r);return w};
_.aA=function(q,Z){return function(){var w;return(w=_.jG(q))!=null?w:Z}};
_.n5=function(q,Z){var w=Object.assign({},q),r;for(r in Z)Z.hasOwnProperty(r)&&(w[r]=_.aA(q[r],Z[r]));return w};
$qO=function(q,Z,w){q instanceof Element&&(w.debugName||(w.debugName="<"+q.tagName.toLowerCase()+(q.tagName.includes("-")?">":"."+q.className+">")),_.b("ytwiz_enable_debug_component_props")&&(q.debugProps||(q.debugProps=YQj(Z,function(r){return function(){return r()}}))))};
_.xl=function(q,Z){var w=function(r){var Y={stack:[],error:void 0,hasError:!1};try{var C=eSj={};var d=_.Qy(Y),O;if(((O=w)==null?0:O.idomCompat)&&r.renderedFromIdom){d==null||d.attr("idomCompat",!0);var H,L=typeof w.idomCompat==="object"?(H=w)==null?void 0:H.idomCompat.callbacks:{},S=_.P(CkN(r,L,w.debugName)),v=S.next().value;S.next();var R=S.next().value,B=PkT(q,v);C.privateValue=B;eSj=void 0;$qO(B,v,w);d==null||d.attr("debugName",w.debugName);var n=GlX(B),x=Array.isArray(n)?n[0]:n;x[DB]||(x[DB]=
{});x[DB].updateSignalsFromIdomProps=R;return B}var K=YQj(r,dqX);var k=PkT(q,K);C.privateValue=k;eSj=void 0;$qO(k,K,w);d==null||d.attr("debugName",w.debugName);return k}catch(G){Y.error=G,Y.hasError=!0}finally{_.ED(Y)}};
w.debugName=Z===void 0?"":Z;return w};
PkT=function(q,Z){q=q(Z);return iS(q)};
VWN=function(q,Z){q[Z]||(q=new _.df("IDOM interop setter undefined. Key:",Z),_.tY(q))};
dqX=function(q,Z){return Z==="children"||typeof q==="function"||q===void 0?q:function(){return _.jG(q)}};
CkN=function(q,Z,w){var r={},Y={},C={},d={},O;for(O in q){d={key$jscomp$880:d.key$jscomp$880};d.key$jscomp$880=O;var H=q[d.key$jscomp$880];if(d.key$jscomp$880==="children")r[d.key$jscomp$880]=H;else if(typeof H==="function")d.key$jscomp$880 in Z||H.length>0?(C[d.key$jscomp$880]=H,r[d.key$jscomp$880]=function(S){return function(){return C[S.key$jscomp$880].apply(C,_.Ju(_.Ta.apply(0,arguments)))}}(d)):r[d.key$jscomp$880]=H;
else if(!(q[d.key$jscomp$880]===void 0&&d.key$jscomp$880 in Z)){var L=_.P(_.qo(q[d.key$jscomp$880],{debugName:"__cwis:"+w+":"+d.key$jscomp$880},"lEtjrb"));H=L.next().value;L=L.next().value;r[d.key$jscomp$880]=H;Y[d.key$jscomp$880]=L}}return[r,Y,function(S){var v={},R;for(R in S)v={key$jscomp$881:v.key$jscomp$881,val$jscomp$116:void 0},v.key$jscomp$881=R,v.val$jscomp$116=S[v.key$jscomp$881],v.key$jscomp$881!=="children"&&(typeof v.val$jscomp$116==="function"?v.key$jscomp$881 in Z?C[v.key$jscomp$881]=
v.val$jscomp$116:v.val$jscomp$116.length>0&&(C[v.key$jscomp$881]=v.val$jscomp$116,_.bx(new _.df("Callback detected that was not set in the idomCompat callbacks map. Key:",v.key$jscomp$881))):v.key$jscomp$881 in Z&&v.val$jscomp$116===void 0||(VWN(Y,v.key$jscomp$881),eG(function(B){return function(){Y[B.key$jscomp$881](B.val$jscomp$116)}}(v))))}]};
WHI=function(q,Z,w){var r=C42(q.prototype,Oej,q.prototype.behaviors);r.prototype.is=Z;r.prototype.localName=Z;w&&HeO(r,w);return function(Y){Y&&(r.prototype.hostElement=Y);var C=new r;C.root=C;C.hostElement=Y;return C}};
HeO=function(q,Z){var w;Object.defineProperty(q.prototype,"_template",{get:function(){w===void 0&&(w=Z());return w},
set:function(r){w=r},
configurable:!0,enumerable:!0})};
vIe=function(q,Z,w,r){function Y(){if(!B){for(var n=new Set,x=_.P(S),K=x.next();!K.done;K=x.next()){K=K.value;for(var k=_.P(Object.getOwnPropertyNames(K)),G=k.next();!G.done;G=k.next()){G=G.value;var rz=void 0,f=(rz=Object.getOwnPropertyDescriptor(K,G))==null?void 0:rz.value;f&&f instanceof Function&&!Tp(G)&&n.add(G)}}x=_.P(Object.entries(Object.getOwnPropertyDescriptors(q.prototype)));for(K=x.next();!K.done;K=x.next())k=_.P(K.value),K=k.next().value,k=k.next().value,k.value instanceof Function&&
!Tp(K)&&n.add(K);B=n}return B}
oIN(q,Z,r==null?void 0:r.providers);P48(q.prototype,q,!0);var C=WHI(q,Z,w),d,O=(d=q.prototype.properties)!=null?d:{},H,L,S=(L=(H=q.prototype.behaviors)==null?void 0:H.flat(Infinity))!=null?L:[];w=_.P(S);for(d=w.next();!d.done;d=w.next())O=Object.assign({},d.value.properties,O);var v=[].concat(_.Ju(uVz),_.Ju(Object.keys(O).map(function(n){return _.es(n)}))),R=!1,B;
return{ctor:function(n,x){var K=C(n),k,G;n=[].concat(_.Ju((k=r==null?void 0:r.allowedProps)!=null?k:[]),_.Ju((G=r==null?void 0:r.allowedPropsFromBehaviors)!=null?G:[]));K.allowedProps=n.length>0?n:void 0;k={};G=_.P(v);for(n=G.next();!n.done;n=G.next())n=n.value,k[n]=_.Cp(n);K.__dataAttributes=k;var rz=K.ready.bind(K);K.ready=function(){x.beforeReady();rz();if(qT(Z)&&!R){var f=K.__templateInfo;if(f==null?0:f.hostProps){f=_.P(Object.keys(f.hostProps));for(var eO=f.next();!eO.done;eO=f.next())wx(Z,eO.value,
"PROPERTY_ACCESS_GET_INTERNAL")}R=!0}};
K._overrideLegacyUndefined=!0;return K},
props:O,observedAttributes:v,getInitialMethods:Y,getPropsToForwardBeforeRegister:function(){for(var n=[],x=new Set,K=_.P(Object.keys(O)),k=K.next();!k.done;k=K.next())k=k.value,n.push([k,O[k].readOnly]),x.add(k);K=Y();k=_.P(Object.keys(Object.getOwnPropertyDescriptors(q.prototype)));for(var G=k.next();!G.done;G=k.next())G=G.value,!LHz(G)||K.has(G)||x.has(G)||(n.push([G,!1]),x.add(G));x=_.P(SQ8);for(K=x.next();!K.done;K=x.next())n.push([K.value,!0]);return n},
getPropsToForwardBeforeReady:function(n){for(var x=[],K=_.P(Object.entries(n)),k=K.next();!k.done;k=K.next()){var G=_.P(k.value);k=G.next().value;G=G.next().value;if(LHz(k)&&!(G instanceof Function)&&(x.push([k,!1]),qT(Z))){var rz=G=void 0;(rz=(G=n)._createPropertyAccessor)==null||rz.call(G,k)}}return x},
shouldForwardProp:LHz,shouldLog:qT}};
oIN=function(q,Z,w){b22(q,w);q.prototype.behaviors.unshift(juI);if(PRe()){if(qT(Z)){var r;(r=q.prototype).behaviors!=null||(r.behaviors=[]);q.prototype.behaviors.unshift(H2z())}ohe(q)}_.U(Pp.prototype)(q.prototype,"__templateHelpers")};
Tp=function(q){return tW2.has(q)||q.startsWith("__compute__")};
LHz=function(q){return!Tp(q)&&!q.startsWith("_")&&!q.endsWith("_")};
Bgz=function(q,Z){function w(){var R=H();R=_.P(R);for(var B=R.next();!B.done;B=R.next()){var n=_.P(B.value);B=n.next().value;n=n.next().value;RST(v.prototype,B,n)}r=!0}
var r=!1,Y=q.ctor,C=q.getInitialMethods,d=q.observedAttributes,O=q.getPropsToForwardBeforeReady,H=q.getPropsToForwardBeforeRegister,L=q.shouldForwardProp,S=q.shouldLog,v=function(){var R=HTMLElement.call(this)||this;R.didForwardDynamicProps=!1;R.loggingStatus={};r||w();R.inst=Y(R,{beforeReady:function(){R.didForwardDynamicProps||(R.forwardDynamicProps(),R.didForwardDynamicProps=!0)}});
R.controllerProxy=VdX(R.inst,Z);R.forwardMethods();return R};
_.z(v,HTMLElement);v.prototype.forwardMethods=function(){for(var R=this,B=_.P(this.inst.getExtraMethodsToForward()),n=B.next(),x={};!n.done;x={method$jscomp$61:void 0},n=B.next()){var K=_.P(n.value);n=K.next().value;K=K.next().value;x.method$jscomp$61=K;this[n]=function(k){return function(){return k.method$jscomp$61.call.apply(k.method$jscomp$61,[R.inst].concat(_.Ju(_.Ta.apply(0,arguments))))}}(x)}B=_.P(C());
for(x=B.next();!x.done;x=B.next())x=x.value,L(x)&&bez(this,x),S(Z)&&!Tp(x)&&Ji6(this.inst,x)};
v.prototype.forwardDynamicProps=function(){var R=O(this.inst);R=_.P(R);for(var B=R.next();!B.done;B=R.next()){var n=_.P(B.value);B=n.next().value;n=n.next().value;RST(this,B,n);S(Z)&&!Tp(B)&&zS1(this.inst,B)}};
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(R,B,n){this.inst.attributeChangedCallbackWrapper(R,B,n)};
_.My.Object.defineProperties(v.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return Z}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.My.Object.defineProperties(v,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return d}}});
customElements.define(Z,v)};
RST=function(q,Z,w){q.hasOwnProperty(Z)||Object.defineProperty(q,Z,{get:function(){var r,Y=((r=q.is)!=null?r:q.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||wx(Y,Z,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,r=this.polymerController[Z],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,r},
set:function(r){if(!w){var Y,C=((Y=q.is)!=null?Y:q.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||wx(C,Z,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=Z,this.loggingStatus.bypassProxyController=!0,this.polymerController[Z]!==r&&(Y={},this.polymerController.setProperties((Y[Z]=r,Y)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
bez=function(q,Z,w){var r=q.polymerController;q[Z]=function(){var Y=_.Ta.apply(0,arguments);q.loggingStatus.currentExternalCall=Z;q.loggingStatus.bypassProxyController=!0;var C,d=((C=q.is)!=null?C:q.tagName).toLowerCase();wx(d,Z,"PROPERTY_ACCESS_CALL_EXTERNAL");var O;C=(O=w!=null?w:r[Z])==null?void 0:O.call.apply(O,[r].concat(_.Ju(Y)));q.loggingStatus.currentExternalCall=void 0;q.loggingStatus.bypassProxyController=!1;return C}};
Ji6=function(q,Z){var w=q.hostElement,r=q[Z];q[Z]=function(){var Y=_.Ta.apply(0,arguments);if(w.loggingStatus.currentExternalCall!==Z){var C,d=((C=w.is)!=null?C:w.tagName).toLowerCase();wx(d,Z,"PROPERTY_ACCESS_CALL_INTERNAL")}return r==null?void 0:r.apply(q,Y)}};
zS1=function(q,Z){var w=Object.getOwnPropertyDescriptor(q,Z);w&&!w.get&&Object.defineProperty(q,Z,{get:function(){O2X(q.hostElement,Z);return w.value},
set:function(r){rx(q.hostElement,Z);w.value=r}})};
a9z=function(q){return _.b("poly_si_dom_repeat_detached_fix_killswitch")||q.tagName!=="PS-DOM-REPEAT"?q.tagName==="DOM-REPEAT":!0};
Quj=function(q,Z){var w=nIO(q);q instanceof Element&&w.unshift(q);q=_.P(w.filter(a9z));for(var r=q.next();!r.done;r=q.next()){r=_.P(r.value.__instances);for(var Y=r.next();!Y.done;Y=r.next())if(Y=Y.value,Y.root){Y=Array.from(Y.root.children);Y=_.P(Y);for(var C=Y.next();!C.done;C=Y.next())w.push.apply(w,_.Ju(Quj(C.value,Z)))}}return w.filter(function(d){return d.usePatchedLifecycles&&d.lifecycleIsConnected===Z})};
nIO=function(q){var Z=null;q instanceof Element?Z=Element.prototype.querySelectorAll:q instanceof DocumentFragment&&(Z=DocumentFragment.prototype.querySelectorAll);return Z?Array.from(Z.call(q,"*")):[]};
UD=function(q){gX(function(){for(var Z=_.P(Quj(q,!1)),w=Z.next();!w.done;w=Z.next()){w=w.value;w.lifecycleIsConnected=!0;try{var r=void 0,Y=void 0,C=void 0,d=void 0;(r=(d=w.polymerController)!=null?d:w)==null||(C=(Y=r).connectedCallback)==null||C.call(Y)}catch(O){_.tY(O)}}})};
kl=function(q){gX(function(){for(var Z=_.P(Quj(q,!0)),w=Z.next();!w.done;w=Z.next()){w=w.value;w.lifecycleIsConnected=!1;try{var r=void 0,Y=void 0,C=void 0,d=void 0;(r=(d=w.polymerController)!=null?d:w)==null||(C=(Y=r).disconnectedCallback)==null||C.call(Y)}catch(O){_.tY(O)}}})};
suT=function(){if(!EI2){EI2=!0;var q=[Node];K5&&q.push(K5.Wrapper);var Z=Node.prototype.insertBefore,w=Node.prototype.removeChild;q=_.P(q);for(var r=q.next(),Y={};!r.done;Y={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},r=q.next())r=r.value,Y.nativeInsertBefore=r.prototype.insertBefore,r.prototype.insertBefore=function(d){return function(O,H){if(O instanceof DocumentFragment){var L=Array.from(O.children);O=d.nativeInsertBefore.call(this,O,H);
if(this.isConnected&&d.nativeInsertBefore===Z)for(H=_.P(L),L=H.next();!L.done;L=H.next())UD(L.value);return O}L=O instanceof Element&&O.isConnected;H=d.nativeInsertBefore.call(this,O,H);L&&kl(O);this.isConnected&&UD(O);return H}}(Y),Y.nativeAppendChild=r.prototype.appendChild,r.prototype.appendChild=function(d){return function(O){if(O instanceof DocumentFragment){var H=Array.from(O.children);
O=d.nativeAppendChild.call(this,O);if(this.isConnected){H=_.P(H);for(var L=H.next();!L.done;L=H.next())UD(L.value)}return O}H=O instanceof Element&&O.isConnected;L=d.nativeAppendChild.call(this,O);H&&kl(O);this.isConnected&&UD(O);return L}}(Y),Y.nativeRemoveChild=r.prototype.removeChild,r.prototype.removeChild=function(d){return function(O){var H=O instanceof Element&&O.isConnected,L=d.nativeRemoveChild.call(this,O);
H&&w===d.nativeRemoveChild&&kl(O);return L}}(Y),Y.nativeReplaceChild=r.prototype.replaceChild,r.prototype.replaceChild=function(d){return function(O,H){if(O instanceof DocumentFragment){var L=Array.from(O.children);
O=d.nativeReplaceChild.call(this,O,H);if(this.isConnected)for(kl(H),H=_.P(L),L=H.next();!L.done;L=H.next())UD(L.value);return O}L=O instanceof Element&&O.isConnected;var S=this.isConnected,v=d.nativeReplaceChild.call(this,O,H);S&&kl(H);L&&kl(O);S&&UD(O);return v}}(Y);
q=[Element];K5&&q.push(K5.Wrapper);q=_.P(q);r=q.next();for(Y={};!r.done;Y={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},r=q.next())r=r.value,r.prototype.before=xq2(r.prototype.before),r.prototype.after=xq2(r.prototype.after),Y.nativeReplaceWith=r.prototype.replaceWith,r.prototype.replaceWith=function(d){return function(){var O=_.Ta.apply(0,arguments),H=_.P(Tg2(O)),L=H.next().value,
S=H.next().value;H=this.isConnected;d.nativeReplaceWith.apply(this,O);O=_.P(S);for(S=O.next();!S.done;S=O.next())kl(S.value);if(H)for(kl(this),L=_.P(L),H=L.next();!H.done;H=L.next())H=H.value,H instanceof Element&&UD(H)}}(Y),Y.nativeRemove=r.prototype.remove,r.prototype.remove=function(d){return function(){var O=this.isConnected;
d.nativeRemove.call(this);O&&kl(this)}}(Y),Y.nativeInsertAdjacentElement=r.prototype.insertAdjacentElement,r.prototype.insertAdjacentElement=function(d){return function(O,H){var L=H.isConnected;
O=d.nativeInsertAdjacentElement.call(this,O,H);L&&kl(H);O.isConnected&&UD(O);return O}}(Y),Y.nativeSetAttribute=r.prototype.setAttribute,r.prototype.setAttribute=function(d){return function(O,H){var L=Uq2(this);
if(!L.usePatchedLifecycles)return d.nativeSetAttribute.call(this,O,H);var S=this.getAttribute(O);d.nativeSetAttribute.call(this,O,H);H=this.getAttribute(O);kE2(L,O,S,H)}}(Y),Y.nativeRemoveAttribute=r.prototype.removeAttribute,r.prototype.removeAttribute=function(d){return function(O){var H=Uq2(this);
if(!H.usePatchedLifecycles)return d.nativeRemoveAttribute.call(this,O);var L=this.getAttribute(O);d.nativeRemoveAttribute.call(this,O);L!==null&&kE2(H,O,L,null)}}(Y),Y.nativeToggleAttribute=r.prototype.toggleAttribute,r.prototype.toggleAttribute=function(d){return function(O,H){var L=Uq2(this);
if(!this.usePatchedLifecycles)return d.nativeToggleAttribute.call(this,O,H);var S=this.getAttribute(O),v=S!==null;H=d.nativeToggleAttribute.call(this,O,H);H!==v&&kE2(L,O,S,H?"":null);return H}}(Y);
q=[Document,DocumentFragment,Element,ShadowRoot];K5&&q.push(K5.Wrapper);q=_.P(q);for(Y=q.next();!Y.done;Y=q.next())Y=Y.value,Y.prototype.prepend=xq2(Y.prototype.prepend),Y.prototype.append=xq2(Y.prototype.append);(K5==null?void 0:K5.noPatch)===!0&&KHI();document.readyState==="complete"?UD(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&UD(document.body)});
var C=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");C&&C.get&&C.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:C.enumerable,configurable:!0,get:C.get,set:function(d){d||kl(this);C.set.call(this,d);return d}})}};
xq2=function(q){return function(){var Z=_.Ta.apply(0,arguments),w=_.P(Tg2(Z)),r=w.next().value;w=w.next().value;q.apply(this,Z);Z=_.P(w);for(w=Z.next();!w.done;w=Z.next())kl(w.value);if(this.isConnected)for(r=_.P(r),Z=r.next();!Z.done;Z=r.next())Z=Z.value,Z instanceof Element&&UD(Z)}};
KHI=function(){for(var q=_.P(I91),Z=q.next();!Z.done;Z=q.next()){Z=Z.value.prototype;for(var w=_.P(ciO),r=w.next();!r.done;r=w.next()){r=r.value;var Y=Object.getOwnPropertyDescriptor(Z,r);Y&&Object.defineProperty(Z,"__shady_native_"+r,Y)}}};
kE2=function(q,Z,w,r){var Y,C;if((Y=q.polymerController)==null?0:(C=Y.observedAttributes)==null?0:C.includes(Z))if(q=q.polymerController,q.attributeChangedCallbackWrapper)q.attributeChangedCallbackWrapper.call(q,Z,w,r);else{var d;(d=q.attributeChangedCallback)==null||d.call(q,Z,w,r)}};
Tg2=function(q){var Z=[],w=[];q=_.P(q);for(var r=q.next();!r.done;r=q.next())r=r.value,r instanceof Element&&r.isConnected&&w.push(r),r instanceof DocumentFragment?Z.push.apply(Z,_.Ju(Array.from(r.children))):Z.push(r);return[Z,w]};
Uq2=function(q){return!(q instanceof Element)&&q.node instanceof Element?q.node:q};
MW2=function(q,Z){var w=Z?["children"].concat(_.Ju(Z)):["children"];Z=[];w=_.P(w);for(var r=w.next();!r.done;r=w.next()){var Y=r.value;if(q.hasOwnProperty(Y)){r=q[Y];r=typeof r==="function"?r():r;r=iS(Array.isArray(r)?r:[r]).flat();if(Y!=="children"){Y=gn6(Y);for(var C=_.P(r),d=C.next();!d.done;d=C.next())d=d.value,d instanceof Element&&d.setAttribute("slot",Y)}Z.push(r)}}Z.length===0?q=[]:(q=iS(_.u("div",null,Z)),q=Array.from(q.childNodes));return q};
FH2=function(q,Z,w){var r={};_.uS(function(){var Y={},C;for(C in Z)if(Z.hasOwnProperty(C)){var d=void 0,O=void 0;if(!(((d=w.slotProps)==null?0:d.includes(C))||C==="children"||((O=w.callbackProps)==null?0:O.includes(C))||C==="ref")&&(d=_.jG(Z[C]),r[C]!==d)){r[C]=d;O=void 0;var H=(O=q.hostElement)!=null?O:q;if(C==="className"||C==="id")H[C]=d;Y[C]=d}}eG(function(){if(q.setProperties)q.setProperties(Y);else for(var L=_.P(Object.entries(Y)),S=L.next();!S.done;S=L.next()){var v=_.P(S.value);S=v.next().value;
v=v.next().value;q[S]=v}})})};
l9j=function(q,Z,w,r){var Y=MW2(w,r.slotProps),C=_.b("web_wcw_disable_slot_host_shady_dom_wrap")?q:(0,_.GI)(q);Y=_.P(Y);for(var d=Y.next();!d.done;d=Y.next())C.appendChild(d.value);FH2(Z,w,r);r=_.P(r.callbackProps||[]);Y=r.next();for(C={};!Y.done;C={kebabEventName:void 0,eventListener:void 0},Y=r.next())d=Y=Y.value,String(Y).substring(0,2)==="on"&&w[d]?(C.kebabEventName=gn6(String(Y).substring(2)),C.eventListener=w[d],q.addEventListener(C.kebabEventName,C.eventListener),_.SG(function(S){return function(){q.removeEventListener(S.kebabEventName,
S.eventListener)}}(C))):Z[d]=w[d];
if(w.ref){w=_.P(Ng2(w.ref));var O=w.next().value,H=w.next().value,L=Z.attached.bind(Z);Z.attached=function(){O(q);L()};
_.SG(function(){H()})}};
Ng2=function(q){if(typeof q==="function"){var Z;return[function(w){Z=q(w)},
function(){var w;(w=Z)==null||w()}]}if(!q.onRender||!q.onUnmount)throw Error("Sg");
return[q.onRender,q.onUnmount]};
mq1=function(q,Z,w,r,Y){r=r===void 0?{}:r;var C=GE1,d=!1;C?(d=!0,GE1=void 0):(p$O=Z,C=document.createElement(Z),p$O=void 0);var O=C;O.usePatchedLifecycles=!0;O.lifecycleIsConnected=!1;C.loggingStatus={};var H=X$1(q,Z,C,r,Y);_.SG(function(){O.lifecycleIsConnected&&(O.lifecycleIsConnected=!1,H.disconnectedCallback())});
d||l9j(C,H,w,r);return C};
X$1=function(q,Z,w,r,Y){Y=Y===void 0?vIe:Y;Aiz[Z]!=null||(Aiz[Z]=Y(q,Z,r==null?void 0:r.getTemplate,r));var C=Aiz[Z],d=C.ctor;Y=C.getInitialMethods;var O=C.getPropsToForwardBeforeReady;q=C.getPropsToForwardBeforeRegister;r=C.shouldForwardProp;var H=C.observedAttributes,L=C.shouldLog,S=d(w,{beforeReady:function(){var v=S;v._takeAttributes?v._takeAttributes():v.setPropertiesFromInitialAttributeValues&&v.setPropertiesFromInitialAttributeValues();v=_.P(O(w.polymerController));for(var R=v.next();!R.done;R=
v.next()){var B=_.P(R.value);R=B.next().value;B=B.next().value;RST(w,R,B);L(Z)&&!Tp(R)&&zS1(w.polymerController,R)}w.polymerController=VdX(S,Z)}});
w.polymerController=S;w.polymerController.observedAttributes=H;C=_.P(S.getExtraMethodsToForward());for(d=C.next();!d.done;d=C.next())H=_.P(d.value),d=H.next().value,H=H.next().value,bez(w,d,H);Y=_.P(Y());for(C=Y.next();!C.done;C=Y.next())C=C.value,r(C)&&bez(w,C),L(Z)&&!Tp(C)&&Ji6(S,C);q=_.P(q());for(r=q.next();!r.done;r=q.next())Y=_.P(r.value),r=Y.next().value,Y=Y.next().value,RST(w,r,Y);return S};
DqT=function(q,Z){return sD===Z?(q.isInert=!0,sD="",!0):f92===Z?(q.isInert=!0,f92="",!0):!1};
hST=function(q){var Z=IA;IA=q;return Z};
iej=function(q){if(cp.has(q))f92=q;else if(MT.has(q)&&IA&&yiX(IA)===q){var Z;(Z=IA)._numRenders!=null||(Z._numRenders=0);IA._numRenders++;if(IA._numRenders>1)throw Error("Tg");return IA}};
gI1=function(q){cp.has(yiX(q))?f92=yiX(q):MT.has(yiX(q))&&IA!==q&&(q._isInert=!0)};
yiX=function(q){var Z;return(Z=q==null?void 0:q.tagName.toLowerCase())!=null?Z:""};
q0e=function(q,Z){if(q.componentType===PN)throw Error("Ug");MT.add(Z);var w=function(){var r=HTMLElement.call(this)||this;r.is=Z;if(p$O===Z)return r.isInert=!0,r;r.createElement();return r};
_.z(w,HTMLElement);w.prototype.createElement=function(){if(!this.isInert){GE1=this;var r=_.P(WBj(function(){return _.u(q,null)})).next().value;
GE1=void 0;GKX(this);return r}};
customElements.define(Z,w)};
wzz=function(q,Z,w,r,Y){q.prototype.is=Z;(r==null?0:r.useSink)?Zwe(q,Z,w,r,Y):(w=vIe(q,Z,w,r),Bgz(w,Z));return q};
Zwe=function(q,Z,w,r,Y){suT();var C=_.xl(function(d){return mq1(q,Z,d,Object.assign({},r,{getTemplate:w}),Y)},"a");
q0e(C,Z);return C};
Y0O=function(q){return!rFX.has(q)};
CV6=function(q,Z,w,r){function Y(){if(!v){for(var R=new Set($5z),B=_.P(C.behaviors),n=B.next();!n.done;n=B.next()){n=n.value;for(var x=_.P(Object.getOwnPropertyNames(n)),K=x.next();!K.done;K=x.next()){K=K.value;var k=void 0,G=(k=Object.getOwnPropertyDescriptor(n,K))==null?void 0:k.value;G&&G instanceof Function&&R.add(K)}}B=_.P(Object.entries(Object.getOwnPropertyDescriptors(q.prototype)));for(n=B.next();!n.done;n=B.next())x=_.P(n.value),n=x.next().value,x=x.next().value,x.value instanceof Function&&
R.add(n);v=R}return v}
var C=p_z({is:Z,disableElementRegistration:!1,getTemplate:w,providers:r==null?void 0:r.providers,reactivityMode:r==null?void 0:r.reactivityMode},q);if((r==null?0:r.allowedProps)||(r==null?0:r.allowedPropsFromBehaviors)){var d,O;C.allowedProps=[].concat(_.Ju((d=r.allowedProps)!=null?d:[]),_.Ju((O=r.allowedPropsFromBehaviors)!=null?O:[]))}var H=Ic2(C,q);Z=H.observedAttributes;var L={};w=_.P(C.reactiveSchemas);for(r=w.next();!r.done;r=w.next())if(r=r.value,r.type==="signal")L[r.propertyKey]={readOnly:r.readOnly},
r.readOnly&&(L[sX2(r.propertyKey)]={readOnly:!0});else if(r.type==="compute"||r.type==="computeWithMethod"||r.type==="redux")L[r.propertyKey]={readOnly:!0};var S=C.reactiveSchemas.length,v;return{ctor:function(R,B){R=new H(R);R.beforeReady=B.beforeReady;return R},
props:L,observedAttributes:Z,getInitialMethods:Y,getPropsToForwardBeforeRegister:function(){for(var R=[],B=new Set,n=_.P(eX6),x=n.next();!x.done;x=n.next())x=x.value,R.push([x,x!=="observers"&&x!=="properties"]),B.add(x);n=_.P(Object.keys(L));for(x=n.next();!x.done;x=n.next())x=x.value,R.push([x,L[x].readOnly]),B.add(x);n=Y();x=_.P(Object.keys(Object.getOwnPropertyDescriptors(q.prototype)));for(var K=x.next();!K.done;K=x.next())K=K.value,!Y0O(K)||n.has(K)||B.has(K)||(R.push([K,!1]),B.add(K));R.push(["allowedProps",
!0]);return R},
getPropsToForwardBeforeReady:function(R){var B=[];R=_.P(Object.keys(R));for(var n=R.next();!n.done;n=R.next()){n=n.value;var x=Y();Y0O(n)&&!x.has(n)&&B.push([n,!1])}R=_.P(C.reactiveSchemas.slice(S));for(n=R.next();!n.done;n=R.next())n=n.value,n.type!=="compute"&&n.type!=="computeWithMethod"&&n.type!=="redux"&&n.type!=="signal"||B.push([n.propertyKey,n.type==="signal"?n.readOnly:!0]);return B},
shouldForwardProp:Y0O,shouldLog:qT}};
_.p=function(q,Z,w,r){var Y,C,d=(C=(Y=r)==null?void 0:Y.mode)!=null?C:0;r!=null||(r={});var O;(O=r).reactivityMode!=null||(O.reactivityMode=0);d===1&&_.fs("creator_poly_si_disable_list").includes(Z)&&(d=2);return d===1?wzz(q,Z,w,Object.assign({},r,{useSink:!0}),CV6):wzz(q,Z,w,Object.assign({},r,{useSink:d===2}))};
_.Fl=function(){return function(q,Z,w,r){var Y,C,d=(C=(Y=r)==null?void 0:Y.mode)!=null?C:2;r!=null||(r={});var O;(O=r).reactivityMode!=null||(O.reactivityMode=0);if(d===0)throw Error("Vg`"+d);return Zwe(q,Z,w,r,d===1?CV6:void 0)}};
_.NT=function(q){return _.b("creator_poly_si_killswitch")?!1:_.b("force_all_poly_si_batches")&&(q==="poly_si_all_on_test_check"||q==="creator_poly_si_batch_050"?0:q)||document.documentElement.hasAttribute("use-signals")?!0:!q||_.b(q+"_holdback_enabled")&&_.b("kevlar_polysi_holdback")?!1:_.b(q)};
ly=function(q){return q?q.icon?q.icon.iconType.toLowerCase():q.customThumbnail?"member":"":""};
PV2=function(q){if(!q)return"";q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next())if((Z=Z.value)&&Z.liveChatAuthorBadgeRenderer&&(Z=ly(Z.liveChatAuthorBadgeRenderer))&&Z!=="verified")return Z;return""};
d52=function(q,Z){if(!q)return null;var w;return((w=q.find(function(r){return r&&r.liveChatAuthorBadgeRenderer?ly(r.liveChatAuthorBadgeRenderer)===Z:!1}))==null?void 0:w.liveChatAuthorBadgeRenderer)||null};
_.uSX=function(q){var Z=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;q=VcT(q);Z=VcT(Z);var w=Owz(q.hex);Z=Owz(Z.hex);var r=Z[0]/255;var Y=Z[1]/255,C=Z[2]/255,d=Math.max(r,Y,C),O=Math.min(r,Y,C),H=0,L=0,S=.5*(d+O);d!=O&&(d==r?H=60*(Y-C)/(d-O):d==Y?H=60*(C-r)/(d-O)+120:d==C&&(H=60*(r-Y)/(d-O)+240),L=0<S&&S<=.5?(d-O)/(2*S):(d-O)/(2-2*S));r=[Math.round(H+360)%360,L,S];w=Hwe(w,Z);for(q=WRN(q.hex);w<4.5;){q=r[2]>=.5?q.darker((4.5-w)/2):q.brighter((4.5-w)/2);w=q.toString();
Y=oRX(w);if(!Y.length)throw Error("Sd`"+w);w=Y;w=Hwe(w,Z)}return q.hex()};
Hwe=function(q,Z){q=_.OLX(q);Z=_.OLX(Z);return(Math.max(q,Z)+.05)/(Math.min(q,Z)+.05)};
_.Gp=function(q){return"#"+("000000"+(q&16777215).toString(16)).slice(-6)};
_.LR1=function(q){for(var Z=0,w=0;w<q.length;w++)Z=q.charCodeAt(w)+((Z<<5)-Z);q="#";for(w=0;w<3;w++)q+=("00"+(Z>>w*8&255).toString(16)).slice(-2);return q};
S02=function(q){q=(q||"").split(":");q.length===1&&q.unshift("yt-icons");q[1]=q[1].toLowerCase();return q};
JF6=function(q,Z){var w=(Z=Z===void 0?!1:Z)?vR2:jM9,r=Z?tc2:RXz;q.getIconNames().forEach(function(Y){Y=Z?Y:Y.substring(Y.indexOf(":")+1);q.name==="yt-icons"?bwT.add(Y):Y.includes("-filled")?w.add(Y):r.add(Y)})};
p5=function(q,Z,w,r){w=w===void 0?!1:w;r=r===void 0?!1:r;var Y,C,d;return _.V(function(O){if(O.nextAddress==1)return _.W(O,zX9,2);if(r)return O.return(bwT.has(q));Y=w?vR2:jM9;C=w?tc2:RXz;return Z?(d=q.includes("-filled")?q:q.concat("-filled"),O.return(Y.has(d))):O.return(C.has(q))})};
_.nRX=function(q){if(BOz(q))return q;var Z=q=q.toLowerCase();(q=a4j.get(q))&&(Z=q);return Z};
_.Xl=function(q){if(BOz(q))return q.toString();var Z=QMO.get(q);if(Z)return Z;Z=q.toLowerCase();var w="yt-icons",r=Z.replace(/_/g,"-");switch(q){case "MY_CHANNEL":Z="account_circle";break;case "ADD_TO_LIBRARY":Z="add";break;case "ALERT_WARN_RED":Z="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":Z="person_music";break;case "BLOCK_USER":Z="block";break;case "CAPTIONS":Z="closed_caption";break;case "CLOSED_CAPTION":w="av";Z="closed-caption";break;case "COLLECTION":w="maps";Z="layers";break;case "CONTACT":w=
"icons";Z="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":w="ytcp-icons";Z=r.split("creator-studio-")[1];break;case "DISMISSAL":Z="close";break;case "DO_NOT_DISTURB":Z="block";break;case "DOGFOOD":w="icons";Z="pets";break;case "DRAFT":Z="paper_corner_folded";break;
case "EMPTY_LIKE":Z="like_outline";break;case "EXIT_APP":Z="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":Z=r;break;case "GAMES":w="ytg";Z="my-games";break;case "GO_TO_PAGE":Z="arrow-forward";break;case "GROUP":w="social";break;case "HIDE":Z="not_interested";break;case "INPUT_COMPONENT":w="icons";Z="settings-input-component";break;case "KIDS_BLOCK":Z="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":w="ytg";Z="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":w=
"ytg";Z="membership-post-purchase";break;case "MULTIVIEW":Z="screen_multi_view";break;case "MY_LOCATION":w="maps";Z=r;break;case "NOTIFICATIONS_INBOX":Z="NOTIFICATIONS";break;case "NEXT":Z="chevron_right";break;case "OFFLINE":Z="power-settings-new";break;case "PAUSE":w="miniplayer";break;case "PAYMENT":w="icons";break;case "PHONE_DOWNLOAD":Z="phone_download";break;case "PREMIUM_STANDALONE":w="yt-logos";Z="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":w="yt-logos";Z="premium_standalone_cairo";
break;case "QUESTION_ANSWER":Z="question_answer";break;case "REDEEM":w="icons";Z="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":Z="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":Z="library_add";break;case "SCHOOL":w="yt-sys-icons";Z="creator_academy";break;case "SETTINGS_LIGHT":Z="settings_applications";break;case "SETTINGS_MATERIAL":Z="settings";break;case "SEARCH_HISTORY":Z="watch_history";break;case "SHOPPING_BAG":Z="bag";break;case "SOCIAL":case "PEOPLE":w=
"yt-icons";Z="people";break;case "STAFF_PICK":w="ytg";Z="spotlight";break;case "START_DVR":Z="add";break;case "STOP_DVR":w="av";Z="stop";break;case "TAB_LIKED":Z="like";break;case "TAB_INBOX":Z="mail";break;case "TERMS_OF_SERVICE":w="icons";Z="description";break;case "TRENDING":Z="fire";break;case "UNBLOCK_USER":Z="remove";break;case "UNPLUGGED_DARK_THEME":w="image";Z="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":Z="live";break;case "UNPLUGGED_SPORTS":w="ytu";Z="visibility-off";break;
case "VIDEOS":w="av";Z="play-circle-filled";break;case "YOUTUBE":w="yt-logos";Z="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":w="yt-logos-ext";Z="yt-logo-red-updated";break;case "YOUTUBE_LOGO":w="yt-logos-ext";Z="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":w="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":w="shorts";Z=r;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":w="yt-sys-icons";Z="youtube_improve_tv";break;case "OUTLINE_BAG":w=
"yt-sys-icons";Z="bag";break;case "QUEUE_PLAY_LAST":w="yt-sys-icons";Z="list_queue_last";break;case "SLASH_CIRCLE_LEFT":Z="slash_circle_left";break;case "SPEED_1_POINT_2X":Z="1_point_2x";break;case "SPEED_1_POINT_5X":Z="1_point_5x";break;case "SPEED_1_POINT_8X":Z="1_point_8x";break;case "SPEED_POINT_2X":Z="point_2x";break;case "SPEED_POINT_5X":Z="point_5x";break;case "SPEED_POINT_8X":Z="point_8x";break;case "SPEED_1X":Z="1x";break;case "SPEED_2X":Z="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":w="yt-sys-icons";
Z="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":w="yt-sys-icons";Z="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":w="yt-sys-icons",Z="tic_tac_toe"}Z=w+":"+Z;QMO.set(q,Z);return Z};
BOz=function(q){var Z;_.b("kevlar_use_wil_icons")?Z=!!_.t().resolve(_.my).resolveIcon({iconName:q.toString()}):Z=!1;return Z};
_.f5=function(q,Z,w,r){w=w===void 0?{}:w;r=r===void 0?!1:r;w===null&&(w={});var Y=_.fs("kevlar_command_handler_command_banlist");Y=_.P(Y);for(var C=Y.next();!C.done;C=Y.next())if(C=q?q.hasOwnProperty(C.value):void 0,C)return!1;Y=_.J(q.commandMetadata,_.XK);return r&&Y!=null&&Y.url?!1:!Z.disableCommandHandlerOverride&&_.AJ.instance?(r=_.AJ.instance,w.form||(w.form={element:Z}),w.form.element||(w.form.element=Z),!w.clickedVisualElement&&Z.visualElement&&(w.clickedVisualElement=Z.visualElement),r.resolveCommand(q,
w),!0):!1};
ERI=function(q,Z){q=DN(q);for(var w=_.P(q.visibilityMonitorKeys||[]),r=w.next();!r.done;r=w.next())Z.unobserveByKey(r.value);q.visibilityMonitorKeys=void 0};
kc9=function(q,Z){if(_.b5()){if(_.b("kevlar_vimio_use_shared_monitor"))x5z(q,Z.data);else if(!x5z(q,Z.data))return;var w=Z.data,r=TO2(w);if(_.b("enable_client_ve_spec_logging"))ERI(q,Z.observer);else{var Y=DN(q);Y.trackedParams&&Y.trackedParams!==r&&ERI(q,Z.observer)}Y=DN(q);!w||Y.data&&Y.data===w||(Y.data=w);U56(q,Z);Y.trackedParams=r}};
U56=function(q,Z){var w=Z.observer;if(!w&&_.b("web_skip_missing_vimio_observer")){var r,Y;_.bx(new _.df("VisibilityObserver is not defined.",q.tagName,q.trackedParams,(r=Z.data)==null?void 0:r.trackingParams,(Y=Z.data)==null?void 0:Y.loggingDirectives))}else{var C=Z.layer,d=Z.visibilityCallback||function(){},O=Z.prescanCallback,H=DN(q);
r=[];Z.showOption&&r.push(w.observe(q,function(){Z.skipLogging&&Z.skipLogging()||_.hJ().reportShown(H,void 0,C);d(!0)},Z.showOption));
Z.hideOption&&r.push(w.observe(q,function(){_.hJ().reportHidden(H,void 0,C);d(!1)},Z.hideOption));
Z.prescanOption&&O&&r.push(w.observe(q,function(){O()},Z.prescanOption));
H.visibilityMonitorKeys=r}};
x5z=function(q,Z){q=DN(q);if(q.visualElement&&!Z)return!0;if(!Z)return!1;var w=!1;if(_.b("enable_client_ve_spec_logging")){var r,Y;w=!!((r=Z.loggingDirectives)==null?0:(Y=r.clientVeSpec)==null?0:Y.uiType)}r=TO2(Z);if(!r&&!w)return!1;_.b("mweb_component_visibility_logging")&&(q.veContainer||(q.veContainer={}),q.veContainer.trackingParams=r);if(q.trackedParams&&q.trackedParams===r)return!1;var C;if(_.b("enable_client_ve_spec_logging")&&((C=q.visualElement)==null?0:C.isClientVe())){var d;C=(d=q.visualElement)==
null?void 0:d.getAsJspb();var O,H,L,S;if(_.DM(C,2)===((O=Z.loggingDirectives)==null?void 0:(H=O.clientVeSpec)==null?void 0:H.uiType)&&_.DM(C,3,-1)===((L=Z.loggingDirectives)==null?void 0:(S=L.clientVeSpec)==null?void 0:S.elementIndex))return!1}if(_.b("enable_client_ve_spec_logging")){var v,R;!q.visualElement&&((v=Z.loggingDirectives)==null?0:(R=v.clientVeSpec)==null?0:R.uiType)&&(O=Z.loggingDirectives.clientVeSpec,Z=O.uiType,d=O.elementIndex,O=O.clientYoutubeData,q.visualElement=_.yy(_.iy(),{veType:Z,
elementIndex:d,clientYouTubeData:O}))}return!0};
TO2=function(q){if(q==null?0:q.rendererContext){var Z=_.J(q.rendererContext,_.KRT);if(Z==null?0:Z.loggingDirectives)return Z.loggingDirectives.trackingParams}return(q==null?0:q.loggingDirectives)?q.loggingDirectives.trackingParams:q==null?void 0:q.trackingParams};
DN=function(q){var Z;return(Z=q.polymerController)!=null?Z:q};
McT=function(q){_.hJ();if(_.QV(gx().JSC$10316_elementShouldLogGesture).bind(gx())(q,4)){sM1(q);var Z=I4I(q);cF6.set(q,Z)}};
sM1=function(q){cF6.has(q)&&(cF6.get(q).cancel("untrack hover element"),cF6.delete(q))};
I4I=function(q){var Z,w=[],r=!1,Y=new _.r5(function(C,d){qx(q,"mouseenter",_.QV(function(){var O,H,L;return _.V(function(S){if(S.nextAddress==1)return Z=(0,_.lp)(),O=FRj(q),w.push(O),H=NO1(q,function(){r=!0;d(Error("Wg"))}),_.W(S,O,2);
if(S.nextAddress!=3)return H&&Zf(H),L=l4j(q),w.push(L),_.W(S,L,3);C();_.ub(S)})}))});
Y.then(function(){var C=(0,_.lp)()-Z;C=Math.round(C);if(!(500>C||6E5<=C)){var d=q.getScreenLayer?q.getScreenLayer():void 0;d=_.b5(d)||"";var O=GcT(_.hJ(),q);_.IV(d,q.visualElement?q.visualElement:_.wa(O),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:C}})}McT(q)},function(){ra&&(ra(),ra=null);
r&&(sM1(q),McT(q))});
return Y};
FRj=function(q){var Z;return(new _.r5(function(w,r){ra=function(){r(Error("Xg"))};
Z=_.v5.debounce(_.QV(function(){Zf(Y);w()}),1,100);
var Y=_.Yc(q,"mousemove",Z)})).thenCatch(function(){var w=_.v5.cancelDebouncedJobMap.get(Z);
w&&_.v5.cancelJob(w)})};
l4j=function(q){var Z;return(new _.r5(function(w,r){ra=function(){r(Error("Yg"))};
Z=qx(q,"mouseleave",_.QV(function(){w()}))})).thenCatch(function(){Zf(Z)})};
NO1=function(q,Z){return qx(q,"mouseleave",_.QV(Z))};
Xz9=function(q){pz9&&_.$c.cancel(pz9);pz9=_.$c.run(function(){_.hy(q,"yt-visibility-refresh");pz9=0})};
m5j=function(q){q=Number(q);return"rgba("+[q>>16&255,q>>8&255,q&255,(q>>24&255)/255].join()+")"};
f41=function(q){if(!q)return!1;if(_.J(q,_.AF6))return!0;var Z;if(q=(Z=_.J(q,_.$K))==null?void 0:Z.commands)for(Z=_.P(q),q=Z.next();!q.done;q=Z.next())if(_.J(q.value,_.AF6))return!0;return!1};
D5O=function(q){var Z=!0;Z=Z===void 0?!0:Z;if(!q.useSignals&&!q.experimentalPropertiesChanged||_.b("experimental_templating_behavior_nopatch_killswitch")){var w=q._propertiesChanged;q._propertiesChanged=function(r,Y,C){Z?q.debounceRender():q.doRender();w&&w.call(q,r,Y,C)}}};
hX2=function(q,Z){if(q.useSignals||q.experimentalPropertiesChanged)if(_.b("experimental_templating_behavior_nopatch_killswitch"))q.experimentalPropertiesChanged=function(){};
else return;var w=new Set,r=[q].concat(_.Ju(q.behaviors));r=_.P(r);for(var Y=r.next();!Y.done;Y=r.next()){Y=Y.value;for(var C in Y.properties)w.has(C)||(q._addPropertyEffect(C,"function",Z),w.add(C))}};
yF6=function(){var q=Polymer.Element,Z=q._prepareTemplate;q._prepareTemplate=function(){Z.call(this);var w=this.prototype;if(w.experimentalTemplatingInUse&&w.experimentalTemplatingInUse()&&w.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.tY(Error("Zg"));else{w=this.template.content.childNodes;for(var r=w.length-1;r>=0;r--){var Y=w[r];Y.nodeName!=="STYLE"&&Y.nodeName!=="LINK"&&Y.nodeName!=="SCRIPT"&&Y.nodeName!=="#comment"&&Y.remove()}}}};
iwI=function(q){var Z=!0;Z=Z===void 0?!0:Z;yF6();var w=q.ready;q.ready=function(){this._template=null;w.call(this)};
hX2(q,Z?q.debounceRender:q.doRender)};
qaO=function(q,Z,w){if(w===null||w===void 0)return w;var r=rl1(q.tagName.toLowerCase(),Z,function(){throw Error("Qb");});
if(r===null)return w;r=gRe[r];var Y;if((Y=r.isUnwrappable)==null?0:Y.call(r,w)){if(r.unwrap)return r.unwrap(w);throw Error("bh");}return r.filterString?r.filterString(q.tagName,Z,String(w)):w};
Z8T=function(q,Z,w){var r=Z[Z.length-1]!=="$",Y=qaO(q,Z,w);if(r)if(typeof Y==="function"&&Z.startsWith("reactiveon")&&Z===Z.toLowerCase()){var C=_.Nb;W36(q,Z.slice(8),function(d){tX(C,function(){Y(d)})})}else q[Z]=Y;
else w=Y==null?null:String(Y),HyO(q,Z.slice(0,-1),w)};
ep=function(q){wmz.length===0&&requestAnimationFrame(function(){setTimeout(function(){var Z=wmz.slice();wmz.length=0;Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next()){w=w.value;try{w()}catch(r){_.TX(r)}}})});
wmz.push(q)};
rS9=function(q){if(q){var Z=q.component;if(Z){var w;Z==null||(w=Z.events)==null||w.publish("DISCONNECTED");var r;Z==null||(r=Z.onDisconnected)==null||r.call(Z)}var Y,C;(Y=q.__spec)==null||(C=Y.didUnmount)==null||C.call(Y);for(Z=0;Z<q.childNodes.length;Z++)rS9(q.childNodes[Z])}};
PJ=function(q,Z,w){var r=Z&&Z.key,Y=k6;Y[0]=q;Y[1]=r;Y[2]=void 0;for(var C in Z)Z.hasOwnProperty(C)&&(q=Z[C],r=K7,r.push(C),r.push(q));Z=k6;a:{if(C=k6[2])for(q=0;q<C.length;q+=2)if(C[q]==="nonce"){C=C[q+1];break a}C=""}C=awI(Z[0],Z[1],C);q=JX(C);r=Z[2];if(!q.staticsApplied&&(q.staticsApplied=!0,r&&r.length))if((Y=q._attrsArr)&&Y.length){for(Y=0;Y<r.length;Y+=2)Cn[r[Y]]=Y+1;Y=q._attrsArr||(q._attrsArr=Oy6(0));for(var d=0,O=0;O<Y.length;O+=2){var H=Y[O],L=Y[O+1],S=Cn[H];S?r[S]===L&&delete Cn[H]:(Y[d]=
H,Y[d+1]=L,d+=2)}RF(Y,d);for(var v in Cn)va1(C,v,r[Cn[v]],lx),delete Cn[v]}else for(v=0;v<r.length;v+=2)va1(C,r[v],r[v+1],lx);kle(C,q,lx);RF(Z,0);w&&w(z2);naj()};
YaO=function(q){var Z=q.toString().toLowerCase();return function(w,r){PJ(Z,w,r)}};
_.da=function(q,Z,w){w===void 0?delete q[Z.name]:q[Z.name]=w};
_.V1=function(q){var Z={androidIncludeFontPadding:!1},w=0,r=[],Y=[],C=[];if(q.simpleText)return Z.content=q.simpleText,Z;if(q.runs===void 0)return Z.content="",Z;q=_.P(q.runs);for(var d=q.next();!d.done;d=q.next()){d=d.value;var O=d.text,H=void 0,L=(H=O)==null?void 0:H.length;if(O&&L){r.push(O);if(d.bold||d.italics||d.strikethrough||d.underline||d.textColor!=null&&d.textColor!==0||d.deemphasize){O=Y;H=O.push;var S={startIndex:w,length:L};d.bold&&(S.weightLabel="FONT_WEIGHT_MEDIUM");d.italics&&(S.italic=
!0);d.strikethrough&&(S.strikethrough="LINE_STYLE_SINGLE");d.underline&&(S.underline="LINE_STYLE_SINGLE");d.textColor!=null&&d.textColor!==0?document.documentElement.hasAttribute("dark")?S.fontColor=d.darkModeTextColor||d.textColor:S.fontColor=d.textColor:d.deemphasize&&(document.documentElement.hasAttribute("dark")?S.fontColor=parseInt("ff"+$wj("#aaa").substring(1),16):S.fontColor=parseInt("ff"+$wj("#606060").substring(1),16));H.call(O,S)}d.navigationEndpoint&&(O=C,H=O.push,S={startIndex:w,length:L,
onTap:{innertubeCommand:d.navigationEndpoint}},d.loggingDirectives&&_.da(S,ebz,d.loggingDirectives),H.call(O,S));w+=L}}Z.content=r.join("");Z.styleRuns=Y.length?Y:void 0;Z.commandRuns=C.length?C:void 0;return Z};
PHj=function(q){if(q==null||!q.runs)return!0;q=_.P(q.runs);for(var Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,Z.bracket||Z.errorUnderline||Z.deemphasize||_.J(Z,OL)||_.J(Z,CH9))return!1;return!0};
dwX=function(q,Z){return function(w){var r=Z.unit;if(r!==w)throw Error("eh`"+q+"`"+r+"`"+w);return Z}};
HJ=function(q){if(!((q==null?0:q.value)&&(q==null?0:q.unit)))return"";switch(q.unit){case "DIMENSION_UNIT_FRACTION":var Z="%";break;default:Z="px"}q=q.value;Z==="%"&&(q*=100);return""+q+Z};
Vq8=function(q){try{return q()}catch(Z){_.bx(Z)}};
_.oQ=function(q){var Z=_.J(q,_.WJ);if(Z)return Z;if((Z=_.J(q,O88))&&Z.commands)return H8z(Z.commands);if((Z=_.J(q,W$j))&&Z.commands)return H8z(Z.commands);if((q=_.J(q,otX))&&q.identifier&&q.command&&(u26||(u26=[]),!u26.includes(q.identifier)))return u26.push(q.identifier),_.J(q.command,_.WJ)};
H8z=function(q){if(q.length!==0){var Z=[];q=_.P(q);for(var w=q.next();!w.done;w=q.next())(w=_.oQ(w.value))&&Z.push(w);return{commandExecutorCommand:{commands:Z}}}};
_.Ln=function(q){var Z=q.defaultTarget,w=q.elementConfig,r=q.elementsCommand,Y=q.skipOnClick,C=q.forceNewState,d=q.additionalCommandArgs,O=q.innertubeCommand||_.oQ(r);if(O){q={};var H=L$1(O);r=H.navigatingCommand;H=H.href;r&&H?(q.href$=H,Sa8(q,r,H,Z),_.b("web_atagconfig_pointerdown")&&vtT(q,r),C&&(q["force-new-state$"]=!0)):(q.role$="button",q.href$="javascript:void(0);");_.J(O,jYT)&&(q["aria-haspopup$"]=!0);Y||(q.onclick=function(L){if(tqX(L)){var S=Object.assign({},{form:{element:L.target,event:L}},
d);L.preventDefault();_.um(O,S)}});
return Object.assign({},w,q)}};
RbN=function(q){if(q.length){if(q.length===1)return q[0];var Z={};_.da(Z,_.$K,{commands:q});return Z}};
b8e=function(q){return q&&q.href$!=="javascript:void(0);"};
L$1=function(q){var Z,w=((Z=_.J(q,_.$K))==null?void 0:Z.commands)||[q];q=_.P(w);for(Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var r=void 0,Y=void 0;w=(Y=_.J((r=Z)==null?void 0:r.commandMetadata,_.XK))==null?void 0:Y.url;_.b("web_remove_web_navigation_endpoint_data")||(r=void 0,w=w||((r=_.J(Z,JSz))==null?void 0:r.url));if(w&&w!=="/service_ajax"){if(r=nA(w,zbz))return q=_.bg(r),{navigatingCommand:Z,href:q};_.bx(new _.df("AttributedString URL could not be sanitized",w))}}return{}};
tqX=function(q){return q.button!==void 0?q.button===0&&!(q.shiftKey||q.altKey||q.metaKey||q.ctrlKey):!(q.shiftKey||q.altKey||q.metaKey||q.ctrlKey)};
Sa8=function(q,Z,w,r){w=!NR(w);var Y,C,d;if((Y=_.J(Z,_.qZ))!=null&&Y.nofollow||(C=_.J(Z,_.ck))!=null&&C.nofollow||(d=_.J(Z,_.TF))!=null&&d.nofollow||w)q.rel$="nofollow";var O;Z=((O=_.J(Z,_.TF))==null?void 0:O.target)==="TARGET_NEW_WINDOW"?"_blank":r===void 0?"":r;q.target$=Z};
vtT=function(q,Z){Z.clickTrackingParams&&(q.params={itct:Z.clickTrackingParams});q.onpointerdown=function(w){BH9(w)};
q._data=Z};
aXT=function(q){(q.loggingUrls||[]).forEach(function(Z){xY(Z.baseUrl,Z.attributionSrcMode)})};
nt1=function(q){q.currentTarget._data&&aXT(q.currentTarget._data)};
BH9=function(q){var Z=q.currentTarget;q=Vq8(function(){return Z.href});
var w=Z.params;q&&_.l5(q,w||{},8,!0)};
QY8=function(q,Z){if(Z=_.J(Z,_.TF))(Z==null?void 0:Z.target)==="TARGET_NEW_WINDOW"&&(q.target="_blank"),Z.nofollow&&(q.rel="nofollow")};
Etj=function(q){q=_.J(q==null?void 0:q.commandMetadata,_.XK);return(q==null?0:q.url)?q.url:null};
_.Sp=function(q,Z){(q=_.oQ(q))&&_.um(q,Z)};
_.um=function(q,Z){bR2(function(w){Z?w.resolveCommand(q,Z):w.resolveCommand(q)})};
k41=function(q,Z){var w=["yt-core-attributed-string__link"];Z!=null&&Z.noLinkColor||((Z==null?0:Z.isOverlay)?w.push("yt-core-attributed-string__link--overlay-call-to-action-color"):w.push("yt-core-attributed-string__link--call-to-action-color"),(Z==null?0:Z.linkInheritColor)&&w.push("yt-core-attributed-string--link-inherit-color"));w={className:w.join(" "),tabindex$:"0"};var r=q.onTap||q.onLongPress;if(!r)return w;var Y=xw1(q);Y&&(w["aria-label$"]=Y);Z=_.Ln({elementsCommand:r,elementConfig:w,skipOnClick:!(Z==
null||!Z.skipOnClick),forceNewState:!0});q.onLongPress&&(r=new THT(function(){var C=_.oQ(q.onLongPress);C&&_.t().resolve(_.ps).resolveCommand(C)}),Z&&Uwe(r,Z));
return Z||w};
xw1=function(q){var Z,w;return(Z=q.onTapOptions)==null?void 0:(w=Z.accessibilityInfo)==null?void 0:w.accessibilityLabel};
K$j=function(q){var Z=q;q<=16777215&&(Z+=parseInt("ff000000",16));return _.uq(Z)};
sYO=function(q){var Z=q.isDarkTheme;var w=q.extension;q=q.runColor;var r=void 0;if(w=w==null?void 0:w.colorMap){Z=Z?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";w=_.P(w);for(var Y=w.next();!Y.done;Y=w.next())if(Y=Y.value,Z===Y.key){r=Y.value;break}}r==null&&q&&(r=q);if(r)return K$j(r)};
vJ=function(q){var Z=q.config;var w=q.image;var r=q.imageConfig;var Y=q.imageWrapperConfig;var C=q.run;var d=q.tag;var O=q.textLength;var H=q.startIndex===void 0?0:q.startIndex;q=q.length;H===void 0&&(H=0);C={run:C,startIndex:H,endIndex:q!==void 0?H+q:O,tag:d};w&&(C.image=w);r&&(C.imageConfig=r);Y&&(C.imageWrapperConfig=Y);Z&&(C.config=Z);return C};
cS1=function(q,Z){var w=[];w.push("yt-core-attributed-string");(Z==null?0:Z.className)&&w.push(Z==null?void 0:Z.className);(Z==null?0:Z.ellipsisTruncate)?w.push("yt-core-attributed-string--ellipsis-truncate"):(Z==null?0:Z.noWrap)?w.push("yt-core-attributed-string--white-space-no-wrap"):(Z==null?0:Z.noPreWrap)||w.push("yt-core-attributed-string--white-space-pre-wrap");(Z==null?0:Z.linkInheritColor)&&w.push("yt-core-attributed-string--link-inherit-color");q.alignment&&w.push(IXT(q.alignment));q.lineBreakMode&&
w.push("yt-core-attributed-string--word-wrapping");return w.join(" ")};
Mq8=function(q){if(q.weight)return q.weight;switch(q.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 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
F$N=function(q){switch(q){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"}};
IXT=function(q){switch(q){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"}};
lXz=function(q,Z,w){var r=Z;q.content&&w&&(w=q.content.indexOf("\n"),w!==-1&&(r=Math.min(Z,w)));if(!q.content||q.content.length<=r)Z=q;else if(q.attachmentRuns||q.commandRuns||q.decorationRuns||q.styleRuns||q.paragraphStyleRuns){Z=jp(q.content,r);w=r;var Y=q.attachmentRuns;if(Y){var C=[];Y=_.P(Y);for(var d=Y.next();!d.done;d=Y.next())d=Object.assign({},d.value),d.startIndex===void 0||d.startIndex>=w||(d.length||(d.length=0),d.length+d.startIndex>w&&(d.length=w-d.startIndex),C.push(d));w=C}else w=
void 0;C=NHT(r,q.commandRuns);Y=r;var O=q.decorationRuns;if(O){d=[];O=_.P(O);for(var H=O.next();!H.done;H=O.next()){H=H.value;var L=_.J(H.textDecorator,tE);if(L&&L.startIndex!==void 0&&!(L.startIndex>=Y)){H=Object.assign({},H,{textDecorator:{highlightTextDecorator:Object.assign({},L)}});L=_.J(H.textDecorator,tE);if(!L.length||L.length+L.startIndex>Y)L.length=Y-L.startIndex;d.push(H)}}Y=d}else Y=void 0;d=NHT(r,q.styleRuns);if(O=q.paragraphStyleRuns)for(q=[],O=_.P(O),H=O.next();!H.done;H=O.next()){var S=
H.value;H=Object.assign({},S);if(!(H.startIndex===void 0||H.startIndex>=r)){if(!H.length||H.length+H.startIndex>r)H.length=r-H.startIndex;L=[];var v=void 0,R=void 0;if((v=S)==null?0:(R=v.listGroup)==null?0:R.listItems)for(S=_.P(S.listGroup.listItems),v=S.next();!v.done;v=S.next())if(v=Object.assign({},v.value),!(v.startIndex===void 0||v.startIndex>=r)){if(!v.length||v.length+v.startIndex>r)v.length=r-v.startIndex;L.push(v)}L.length>0&&(H.listGroup||(H.listGroup={}),H.listGroup=Object.assign({},H.listGroup,
{listItems:L}));q.push(H)}}else q=void 0;Z={content:Z,attachmentRuns:w,commandRuns:C,decorationRuns:Y,styleRuns:d,paragraphStyleRuns:q}}else Z=Object.assign({},q,{content:jp(q.content,r)});return Z};
NHT=function(q,Z){if(Z){var w=[];Z=_.P(Z);for(var r=Z.next();!r.done;r=Z.next())if(r=Object.assign({},r.value),!(r.startIndex===void 0||r.startIndex>=q)){if(!r.length||r.length+r.startIndex>q)r.length=q-r.startIndex;w.push(r)}return w}};
jp=function(q,Z){var w=Z,r;if(r=w>0)r=q.charCodeAt(w-1),r=r>=55296&&r<=56319;r&&(w=q.charCodeAt(w),r=w>=56320&&w<=57343);r&&--Z;return q.substring(0,Z)};
mwz=function(q,Z,w){w=w===void 0?G4I:w;if(q){var r=_.t().resolve(pb);r||_.b("mweb_no_observer_killswitch")?kc9(q,{data:Z,observer:r,visibilityCallback:w,hideOption:pm9,showOption:XmX,layer:q.layer}):_.bx(new _.df("Warning: monitorVisibility called with null observer",q.tagName,Z==null?void 0:Z.loggingDirectives,Z==null?void 0:Z.trackingParams))}else _.bx(new _.df("Warning: monitorVisibility called with null element",Z==null?void 0:Z.loggingDirectives,Z==null?void 0:Z.trackingParams,Z==null?void 0:
Z.rendererContext))};
gtj=function(q,Z){var w=[],r=q.content.length,Y,C=(Y=_.t().resolve(_.Gj(_.RQ)))==null?void 0:Y();if(q.paragraphStyleRuns){Y=_.P(q.paragraphStyleRuns);for(var d=Y.next();!d.done;d=Y.next()){var O=w.push,H=O.apply;var L=void 0;d=d.value;if((L=d.listGroup)!=null&&L.listItems){L=[];b:switch(d.listGroup.listType){case "LIST_TYPE_BULLET":var S="ul";break b;default:S="span"}L.push(vJ({run:d,textLength:r,tag:S,config:{className:"yt-core-attributed-string__list-group"},startIndex:d.startIndex,length:d.length}));
S=_.P(d.listGroup.listItems);for(var v=S.next();!v.done;v=S.next()){v=v.value;b:switch(d.listGroup.listType){case "LIST_TYPE_BULLET":var R="li";break b;default:R="span"}L.push(vJ({run:d,textLength:r,tag:R,startIndex:v.startIndex,length:v.length}))}d=L}else d=[];H.call(O,w,_.Ju(d))}}if(q.styleRuns&&(Z==null||!Z.noStyleRuns))for(Y=_.P(q.styleRuns),O=Y.next();!O.done;O=Y.next()){O=O.value;H=sYO({extension:_.J(O.styleRunExtensions,ASN),isDarkTheme:C===void 0?!1:C,runColor:O.fontColor});L=[];H&&L.push("yt-core-attributed-string--link-inherit-color");
O.italic&&L.push("yt-core-attributed-string--italicized");O.underline&&O.strikethrough?L.push("yt-core-attributed-string--underline-strikethrough",F$N(O.underline)):O.underline?L.push("yt-core-attributed-string--underlined",F$N(O.underline)):O.strikethrough&&L.push("yt-core-attributed-string--strikethrough",F$N(O.strikethrough));if(O.baselineOffset){a:switch(O.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":d="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":d=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:d="yt-core-attributed-string--baseline-offset-unknown"}L.push(d)}d=L.join(" ");L=O;S={};if(L.weight||L.weightLabel)S.fontWeight=Mq8(L).toString();H&&(S.color=H);w.push(vJ({run:O,textLength:r,tag:"span",config:{className:d,style:S},startIndex:O.startIndex,length:O.length}))}if(q.decorationRuns)for(Y=_.P(q.decorationRuns),O=Y.next();!O.done;O=Y.next())O=O.value,H={},O.textDecorator&&(S=O.textDecorator,d=C===void 0?!1:C,v=[],L=
_.J(S,tE),S=_.J(S,fX1),L?(S=v,v=S.concat,R=[],(d=sYO({extension:_.J(L.highlightTextDecoratorExtensions,DwO),isDarkTheme:d,runColor:L.backgroundColor}))&&R.push("background-color: "+d+";"),L.backgroundCornerRadius!==void 0&&R.push("border-radius: "+L.backgroundCornerRadius+"px;"),L.leftPadding!==void 0&&R.push("padding-left: "+L.leftPadding+"px;"),L.rightPadding!==void 0&&R.push("padding-right: "+L.rightPadding+"px;"),L.topPadding!==void 0&&R.push("padding-top: "+L.topPadding+"px;"),L.bottomPadding!==
void 0&&R.push("padding-bottom: "+L.bottomPadding+"px;"),v=v.call(S,R)):S&&(L=v,v=L.concat,d=d?"#2ba640":"#107516",d=S.color?K$j(S.color):d,d=["padding: 2px;","border-top: solid "+d+" 2px;","border-bottom: solid "+d+" 2px;","background: linear-gradient(135deg, "+d+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+d+" 3px, rgba(0, 0, 0, 0) 3px);"],v=v.call(L,d)),d=v.join(" "),H.style$=d,d=O.textDecorator,L=[],S=_.J(d,fX1),_.J(d,tE)?L.push("yt-core-attributed-string--highlight-text-decorator"):
S&&L.push("yt-core-attributed-string--bracket-text-decorator"),d=L.join(" "),H.className=d,H.dir="auto"),d=_.J(O.textDecorator,tE),L=_.J(O.textDecorator,fX1),S=_.J(O.textDecorator,tE),v=_.J(O.textDecorator,fX1),w.push(vJ({run:O,textLength:r,tag:"span",config:H,startIndex:(d==null?void 0:d.startIndex)||(L==null?void 0:L.startIndex)||0,length:(S==null?void 0:S.length)||(v==null?void 0:v.length)||0}));if(q.commandRuns&&(Z==null||!Z.noEndpoints))for(C=_.P(q.commandRuns),Y=C.next();!Y.done;Y=C.next())Y=
Y.value,O=k41(Y,Z),w.push(vJ({run:Y,textLength:r,tag:"a",config:O,startIndex:Y.startIndex,length:Y.length}));if(q.attachmentRuns)for(q=_.P(q.attachmentRuns),C=q.next();!C.done;C=q.next()){C=C.value;H=O=void 0;Y={className:"yt-core-attributed-string--inline-block-mod"};if((H=C.element)==null?0:H.properties){H=(O=C.element)==null?void 0:O.properties;O=[];H=_.J(H,hbj);if(H==null?0:H.margin)H=H.margin,H.left&&O.push("margin-left: "+HJ(H.left)+";"),H.right&&O.push("margin-right: "+HJ(H.right)+";"),H.top&&
O.push("margin-top: "+HJ(H.top)+";"),H.bottom&&O.push("margin-bottom: "+HJ(H.bottom)+";");O=O.length!==0?O.join(" "):void 0;Y.style$=O}d=void 0;O={alt:"",preserveHeight:!0,preserveWidth:!0};H=["yt-core-attributed-string__image-element"];if(C.alignment){a:switch(C.alignment){case "ALIGNMENT_BASELINE":L="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":L="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:L=
"yt-core-attributed-string__image-element--image-alignment-bottom"}H.push(L)}if((d=C.element)==null?0:d.properties)d=[],L=_.J(C.element.properties,hbj),(L==null?0:L.height)&&d.push("height: "+HJ(L.height)+";"),(L==null?0:L.width)&&d.push("width: "+HJ(L.width)+";"),d=d.length!==0?d.join(" "):void 0,O.style$=d,L=void 0,d=((L=_.J(C.element.properties,yS9))==null?void 0:L.label)||"",O.alt=d;O.className=H.join(" ");H=void 0;S=L=void 0;d=((S=C.element)==null?0:S.type)?(L=_.J(C.element.type,i8O))==null?
void 0:L.image:void 0;w.push(vJ({run:C,textLength:r,tag:"img",image:d,imageConfig:O,imageWrapperConfig:Y,startIndex:C.startIndex,length:(H=C.length)!=null?H:0}))}if(Z==null?0:Z.headerRuns)for(Z=_.P(Z.headerRuns),q=Z.next();!q.done;q=Z.next())if(q=q.value,q.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(q.headerMapping)){a:{switch(q.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":C=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":C="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":C="yt-core-attributed-string--heading-3";break a}C=void 0}w.push(vJ({run:q,textLength:r,tag:"span",config:C?{className:C}:void 0,startIndex:q.startIndex,length:q.length}))}return w};
_.bm=function(q){return(q==null?void 0:q.content)!==void 0};
qCz=function(q){return _.bm(q)?q:_.V1(q)};
Z1j=function(q){return q.image!==void 0&&q.imageConfig!==void 0};
wLO=function(q,Z){if(Z==null?0:Z.userInput)for(q=_.P(q),Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,Z.tag!=="a"&&Z.tag!=="li"){var w=void 0;(w=Z).config||(w.config={});Z.config.dir=Z.tag==="ul"?_.t().resolve(_.JE):"auto"}};
rBz=function(q){return function(Z){var w=q.run;(w.onTap!==void 0||w.onLongPress!==void 0)&&_.J(w,ebz)&&mwz(Z,{loggingDirectives:_.J(w,ebz)})}};
YC2=function(q){return function(Z){for(var w in q)(lx[w]||lx[bS["default"]])(Z,w,q[w])}};
PtI=function(q,Z){$vT(Z);var w={data:null,start:0,end:q.length,parts:[]};Z=_.P(Z);for(var r=Z.next();!r.done;r=Z.next())r=r.value,e5T(w,r.startIndex,r.endIndex,r);Ctj(q,w);return w};
e5T=function(q,Z,w,r){for(var Y=_.P(q.parts),C=Y.next();!C.done;C=Y.next()){C=C.value;if(typeof C==="string")throw Error("gh");if(C.start<=Z&&w<=C.end){e5T(C,Z,w,r);return}}q.parts.push({data:r,parts:[],start:Z,end:w})};
Ctj=function(q,Z){for(var w=Z.parts.length;w>=0;w--){var r=Z.parts[w],Y=Z.parts[w-1],C=w===Z.parts.length?Z.end:r.start;Y=w===0?Z.start:Y.end;C!==Y&&Z.parts.splice(w,0,q.slice(Y,C));r&&Ctj(q,r)}};
$vT=function(q){q.sort(function(Z,w){if(Z.startIndex<w.startIndex)return-1;if(w.startIndex<Z.startIndex)return 1;Z=Z.endIndex-Z.startIndex;w=w.endIndex-w.startIndex;return Z>w?-1:w>Z?1:0})};
_.dvj=function(q){var Z=q.thumbnails;if(Z){q={sources:[]};Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next()){w=w.value;var r={};r.url=w.url;r.width=w.width;r.height=w.height;q.sources.push(r)}return q}};
VIj=function(q,Z,w,r){if(!Z)return q.length>=1?q[q.length-1]:null;if(r)for(var Y=_.P(q),C=Y.next();!C.done;C=Y.next()){C=C.value;var d=void 0,O=(d=C.url)==null?void 0:d.indexOf(r);if(O!==void 0&&O>=0)return C}r=_.P(q);for(Y=r.next();!Y.done;Y=r.next())if(Y=Y.value,Y.width&&Y.height&&(w&&Y.width>=Z||!w&&Y.height>=Z))return Y;for(Z=q.length-1;Z>=0;Z--)if(w&&q[Z].width||!w&&q[Z].height)return q[Z];return q[0]};
_.O12=function(q){var Z;return(q=(Z=q.sources)==null?void 0:Z[0])?q.width/q.height:0};
H1T=function(q){if(q.sources){q=_.P(q.sources);for(var Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var w=void 0;if((w=Z.clientResource)==null?0:w.imageName)return Z}}};
WK2=function(q){var Z;if((Z=q.clientResource)!=null&&Z.imageColor)return _.uq(q.clientResource.imageColor)};
_.u3N=function(q,Z,w,r,Y,C,d){if(!Z||Z.length===0||Z[0].clientResource)return null;if(w&&Z[0].url)return Z[0].url;r===void 0&&(r=!0);if(r){var O;q=oE2*(Y||(q==null?void 0:(O=q.getBoundingClientRect())==null?void 0:O.width)||0)}else{var H;q=oE2*(C||(q==null?void 0:(H=q.getBoundingClientRect())==null?void 0:H.height)||0)}Z=VIj(Z,q,r,d);return(Z==null?0:Z.url)?Z.url:(Z==null?0:Z.imageData)?Z.imageData:null};
LKO=function(q,Z,w){w=w?[w]:[];q.opacity&&w.push("opacity: "+q.opacity+";");Z&&q.placeholderColor?(q=_.uq(q.placeholderColor),w.push("background-color: "+q+";")):w.push("background-color: transparent;");return w.join(" ")};
SCO=function(q,Z,w,r,Y){var C=["yt-core-image"];Z&&C.push(Z);w||C.push("yt-core-image--fill-parent-height");r||C.push("yt-core-image--fill-parent-width");switch(q.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":C.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":C.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":C.push("yt-core-image--content-mode-center");break;default:C.push("yt-core-image--content-mode-scale-to-fill")}q.flipForRtlLayout&&
C.push("yt-core-image--flip-rtl");switch(Y){case "TOP_START":var d;C.push(((d=document.body)==null?void 0:d.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return C.join(" ")};
jNj=function(q){var Z;if(q==null?0:(Z=q.clientResource)==null?0:Z.imageName){var w;q=(w=q.clientResource)==null?void 0:w.imageName;a:{switch(q){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":w="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":w="yt-logos-ext:yt-logo-updated";break a}w=void 0}return w||vE9.get(q)||q}};
zL=function(q){return _.b("mweb_wiz_skip_render")?tIX(q):R5j(q)};
tIX=function(q){return function(Z){var w=awI("wink-root");Uu();naj();ALT(w,_.u(q,Z))}};
R5j=function(q){var Z=Z===void 0?!1:Z;return function(w){if(!Z||!_.b("mweb_skip_keto_to_c3_if_no_data")||w.data!==void 0){var r=G2(!1);try{var Y=w.children;_.b("mweb_render_outside_patch_killswitch")||z2?Y?NU(_.u(q,w,Y)):NU(_.u(q,w)):_.bx(new _.df("ketoToC3 called outside of a patch",{tagName:q.TAG_NAME}))}finally{G2(r)}}}};
b1e=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
z51=function(q,Z){q.onViewportEntered=Z;JBX.observe(q)};
BNe=function(){var q={rootMargin:"10%",threshold:.01};_.b("mweb_enable_set_io_root_to_null_safari")?q.root=null:_.b("mweb_enable_set_io_root_to_body_safari")&&(q.root=document.body);return new IntersectionObserver(function(Z,w){Z.filter(function(r){return r.intersectionRect.height>0}).forEach(function(r){r=r.target;
if(!_.b("mweb_enable_only_update_image_when_connected")||r.isConnected!==!1){var Y;(Y=r.onViewportEntered)==null||Y.call(r);w.unobserve(r)}})},q)};
a21=function(q,Z,w,r,Y){function C(){if(r){var O=r.loadedClass,H=r.notifyOnUnloaded;O&&_.BJ(q,O);H&&q.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function d(){var O=w(Z,q);O&&q.getAttribute("src")!==O&&(_.b("mweb_enable_only_update_image_when_connected")&&q.isConnected===!1||O===q.src||(q.src=O),C())}
Y=Y===void 0?!0:Y;q.removeAttribute("src");C();Z&&(Y?z51(q,d):d())};
nE2=function(q,Z){for(var w in Z)w==="className"?q.className=Z[w]:(lx[w]||lx[bS.default])(q,w,Z[w])};
QNT=function(q,Z,w,r){zL(_.aQ)({contentMode:Z.contentMode,loadedClass:Z.loadedClass,isPreloaded:Z.isPreloaded,notifyOnLoaded:Z.notifyOnLoaded,notifyOnUnloaded:Z.notifyOnUnloaded,preferredThumbnail:Z.preferredThumbnail,preserveHeight:Z.preserveHeight,preserveWidth:Z.preserveWidth,objectPosition:Z.objectPosition,targetWidth:Z.targetWidth,targetHeight:Z.targetHeight,shouldShowPlaceholder:Z.shouldShowPlaceholder,useWidth:Z.useWidth,alt:Z.alt,className:Z.className,onerror:Z.onerror,onload:Z.onload,style$:Z.style$,
color:Z.color,width:Z.width,height:Z.height,"aria-hidden$":Z["aria-hidden$"],draggable:Z.draggable,"data-disabled$":Z["data-disabled$"],data:q,callback:w,renderLazy:r===void 0?!0:r,hideOn404:!1})};
xvO=function(q,Z,w){w=w===void 0?!1:w;var r=q.sources!==void 0?q:_.dvj(q);if(r){var Y=Z.onload;Z.onload=function(H){var L=H.target;w&&L.naturalWidth===120||_.nn(L,"yt-core-image--loaded");Z.notifyOnLoaded&&L.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));Y==null||Y(H)};
Z.targetWidth&&Z.preserveWidth&&(Z.width=Z.targetWidth);Z.targetHeight&&Z.preserveHeight&&(Z.height=Z.targetHeight);var C=H1T(r),d=C&&jNj(C);if(d)return(q=WK2(C))&&(Z.color=q),{type:"icon",iconName:d,config:Object.assign({},Z,Z.alt?{}:{"aria-hidden$":"true"},{"aria-label$":Z.alt,role:"img"})};if(q.sources===void 0){Z.alt=q.accessibility&&q.accessibility.accessibilityData&&q.accessibility.accessibilityData.label||Z.alt;Z.style$=LKO(q,Z.shouldShowPlaceholder,Z.style$);var O;Z.isPreloaded=!((O=_.J(q,
EE6))==null||!O.isPreloaded)}Z.contentMode&&!r.contentMode&&(r.contentMode=Z.contentMode);Z.className=SCO(r,Z.className,Z.preserveHeight,Z.preserveWidth,Z.objectPosition);Z.loadedClass="yt-core-image--loaded";return{type:"image",image:r,config:Z}}};
_.TNT=function(){var q=_.Ta.apply(0,arguments);return _.cO(function(Z){var w=q.map(function(r){return r(Z)});
return function(){return void w.forEach(function(r){return void(r==null?void 0:r())})}})};
Uv1=function(q,Z){var w=Z==null?void 0:Z.initial;return _.$6(function(){_.jG(!0);return w=q(w)},{equals:Z==null?void 0:Z.isEqual},"rSlKsc")};
ktO=function(q,Z){if(q===Z)return!0;if(q===void 0||Z===void 0)return!1;var w,r,Y,C,d,O,H,L;return q.content===Z.content&&((w=q.styleRuns)==null?void 0:w.length)===((r=Z.styleRuns)==null?void 0:r.length)&&((Y=q.commandRuns)==null?void 0:Y.length)===((C=Z.commandRuns)==null?void 0:C.length)&&((d=q.attachmentRuns)==null?void 0:d.length)===((O=Z.attachmentRuns)==null?void 0:O.length)&&((H=q.decorationRuns)==null?void 0:H.length)===((L=Z.decorationRuns)==null?void 0:L.length)};
I26=function(q,Z){if(q){var w=qCz(q);if(w!=null&&w.content)if(_.b("attr_string_reactive"))zL(KKX)({text:q,config:Z});else{var r=!(Z==null||!Z.ariaLabel)||!(w.commandRuns&&w.commandRuns.length!==0||w.paragraphStyleRuns&&w.paragraphStyleRuns.length!==0);q=r?Z==null?void 0:Z.ariaLabel:null;r=r?"text":null;PJ("span",{className:cS1(w,Z),dir$:(Z==null?0:Z.userInput)?"auto":void 0,"aria-label$":q,role$:r},function(){if(w.styleRuns||w.commandRuns||w.attachmentRuns||w.decorationRuns){var Y=gtj(w,Z);wLO(Y,
Z);Y=PtI(w.content,Y);Y=_.P(Y.parts);for(var C=Y.next();!C.done;C=Y.next())sN6(C.value)}else Mo(w.content)})}}};
sN6=function(q){typeof q==="string"?Mo(q):Z1j(q.data)?PJ("span",q.data.imageWrapperConfig,function(){QNT(q.data.image,q.data.imageConfig)}):PJ(q.data.tag,q.data.config,function(Z){rBz(q.data)(Z);
Z=_.P(q.parts);for(var w=Z.next();!w.done;w=Z.next())sN6(w.value)})};
MIN=function(q){return q.parts.map(cBj)};
cBj=function(q){if(typeof q==="string")return q;q=Z1j(q.data)?_.u("span",{el:_.TNT(YC2(q.data.imageWrapperConfig))},_.u(_.aQ,Object.assign({},{data:q.data.image},q.data.imageConfig))):_.u(q.data.tag,{el:_.TNT(rBz(q.data),YC2(q.data.config))},q.parts.map(cBj));return iS(q)};
FKT=function(q,Z){return q===Z?!0:q===void 0||Z===void 0?!1:q.noStyleRuns===Z.noStyleRuns&&q.noLinkColor===Z.noLinkColor&&q.noEndpoints===Z.noEndpoints&&q.headerRuns===Z.headerRuns&&q.isOverlay===Z.isOverlay&&q.linkInheritColor===Z.linkInheritColor&&q.userInput===Z.userInput};
NN2=function(q){return function(){var Z,w,r,Y,C,d,O,H,L,S,v,R,B,n;return{ariaLabel:(Z=q.ariaLabel)==null?void 0:Z.call(q),className:(w=q.className)==null?void 0:w.call(q),ellipsisTruncate:(r=q.ellipsisTruncate)==null?void 0:r.call(q),isOverlay:(Y=q.isOverlay)==null?void 0:Y.call(q),linkInheritColor:(C=q.linkInheritColor)==null?void 0:C.call(q),noEndpoints:(d=q.noEndpoints)==null?void 0:d.call(q),noStyleRuns:(O=q.noStyleRuns)==null?void 0:O.call(q),noLinkColor:(H=q.noLinkColor)==null?void 0:H.call(q),
noPreWrap:(L=q.noPreWrap)==null?void 0:L.call(q),noWrap:(S=q.noWrap)==null?void 0:S.call(q),skipOnClick:(v=q.skipOnClick)==null?void 0:v.call(q),stopPropagation:(R=q.stopPropagation)==null?void 0:R.call(q),userInput:(B=q.userInput)==null?void 0:B.call(q),headerRuns:(n=q.headerRuns)==null?void 0:n.call(q)}}};
l2j=function(q){return q.value===""||q.value==="true"?!0:q.value==="false"?!1:isNaN(Number(q.value))?q.value:Number(q.value)};
Q1=function(q,Z){q=new Gtj(q,Z);_.tY(q);throw q;};
pLj=function(q,Z,w){var r=hST(q);q._numRenders=0;try{var Y=WBj(function(){return _.u(Z,Object.assign({},w))})}catch(d){var C=function(O){O.args||(O.args=[]);
O.args.push("Error in web component wrapper");O.args.push(q.tagName.toLowerCase());return O};
_.Rw(d instanceof Error?C(d):new Gtj("Wiz rendering error",q.tagName.toLowerCase()));throw d;}finally{hST(r)}return Y};
_.xc=function(q,Z,w){function r(L){var S={};L=_.P(L);for(var v=L.next();!v.done;v=L.next()){v=v.value;var R=void 0,B=void 0,n=void 0,x=_.Cp((n=(B=(R=v).getAttribute)==null?void 0:B.call(R,"slot"))!=null?n:"children");if(R=S[x])R.push(v);else if(x in C||x==="children")S[x]=[v]}if(XLI)for(L=_.P(Object.keys(S)),x=L.next(),v={};!x.done;v={content$jscomp$55:void 0},x=L.next())x=x.value,x!=="children"&&(v.content$jscomp$55=S[x],S[x]=function(K){return function(){return K.content$jscomp$55}}(v));
return S}
w=w===void 0?{}:w;q.componentType!==PN||Q1("Components must be marked reactive to be used from web component wrapper.",Z);cp.has(Z)&&Q1("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",Z);var Y,C=(Y=w.props)!=null?Y:{};MT.add(Z);var d=mvj();w=function(){var L=d.apply(this,arguments)||this;L.rawProps={};L.queuingRender=!1;L.dispose=function(){};
L.isWebComponentWrapper=!0;L.isReparenting=!1;L.hasAttached=!1;return L};
_.z(w,d);w.prototype.render=function(){this.hasAttached=!0;for(var L=_.P([].concat(_.Ju(this.attributes))),S=L.next();!S.done;S=L.next())S=S.value,S.name!=="slot"&&this.removeAttribute(S.name);L=Object.assign({},this.componentProps,this.slotProps);S=_.P(pLj(this,q,L));L=S.next().value;S=S.next().value;!(L[0]instanceof Element)||L.length>1?Q1("Wrapped Wiz components must return a single root element.",Z):(L=L[0].tagName.toLowerCase(),L!==Z&&Q1("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(L+" !== '"+Z),Z),this.dispose=S)};
w.prototype.setUpProps=function(){for(var L=this.rawProps,S=this.attributes,v=_.P(Object.keys(C)),R=v.next();!R.done;R=v.next()){R=R.value;var B=void 0;((B=this)==null?0:B[R])&&this[R]!==ABe&&L[R]===void 0&&(L[R]=this[R],(B=Object.getOwnPropertyDescriptor(this.constructor.prototype,R))&&Object.defineProperty(this,R,B))}v=_.P(S);for(R=v.next();!R.done;R=v.next()){B=R.value;R=_.Cp(B.name);var n=R==="class"&&!S.getNamedItem("class-name");if(R in C||n)B=l2j(B),R!=="class"||L.className?L[R]=B:L.className=
B}S={};for(var x in C)C[x]===_.EL||XLI&&C[x]===f2j||(L[x]instanceof Function&&Q1("Function props must be configured as STATIC, not SIGNAL.",Z),R=_.P(_.qo(L[x],void 0,"vGbZpc")),v=R.next().value,R=R.next().value,S[x]=R,L[x]=v);L=_.P([L,S]);this.componentProps=L.next().value;this.setters=L.next().value;this.slotProps=r(this.childNodes)};
w.prototype.connectedCallback=function(){sD===Z&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in C&&!this.rawProps.data&&!this.getAttribute("data"),this.hasAttached||this.queuingRender||this.setUpProps(),this.queuingRender&&!this.hasAttached||this.render()))};
w.prototype.disconnectedCallback=function(){if(!this._isInert){var L;a:{if(_.Dv2)for(L=this;L;){if(_.h5j.has(L)){L=!0;break a}L=L.parentElement}L=!1}if(L)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){L=_.P([].concat(_.Ju(this.attributes)));for(var S=L.next();!S.done;S=L.next())S=S.value,S.name!=="slot"&&this.removeAttribute(S.name)}this.innerText="";GKX(this)}}};
w.prototype._setPendingPropertyOrPath=function(){};
w.prototype.notifyPath=function(){};
_.My.Object.defineProperties(w.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
Y=_.P(Object.keys(C));for(var O=Y.next(),H={};!O.done;H={prop$jscomp$103:void 0},O=Y.next())H.prop$jscomp$103=O.value,Object.defineProperty(w.prototype,H.prop$jscomp$103,{set:function(L){return function(S){var v=this;this._isInert||(this.setters?eG(function(){var R,B;return void((B=(R=v.setters)[L.prop$jscomp$103])==null?void 0:B.call(R,S))}):(this.rawProps[L.prop$jscomp$103]=S,this.queuingRender&&L.prop$jscomp$103==="data"&&S!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(H),
get:yBj.has(H.prop$jscomp$103)?void 0:function(){return ABe}});
customElements.define(Z,w)};
_.i12=function(q,Z){return(q=_.TL(q,Z))?_.bg(_.EX(q)):null};
_.UL=function(q){if(q=_.TL(q,Number.MAX_VALUE,void 0,"width"))return _.EX(q)};
_.TL=function(q,Z,w,r){r=r===void 0?"width":r;if(!q||!q.length)return null;if(_.b("kevlar_tuner_should_always_use_device_pixel_ratio")){var Y=window.devicePixelRatio;_.b("kevlar_tuner_should_clamp_device_pixel_ratio")?Y=Math.min(Y,_.m6("kevlar_tuner_clamp_device_pixel_ratio")):_.b("kevlar_tuner_should_use_thumbnail_factor")&&(Y=_.m6("kevlar_tuner_thumbnail_factor"));gE2=Y}else gE2||(gE2=window.devicePixelRatio);Y=gE2;_.b("kevlar_tuner_should_always_use_device_pixel_ratio")?Z*=Y:Y>1&&(Z*=Y);if(_.b("kevlar_tuner_min_thumbnail_quality"))return q[0].url||
null;Y=q.length;if(_.b("kevlar_tuner_max_thumbnail_quality"))return q[Y-1].url||null;if(w)for(var C=0;C<Y;C++)if(q[C].url.indexOf(w)>=0)return q[C].url||null;for(w=0;w<Y;w++)if(q[w][r]>=Z)return q[w].url||null;for(Z=Y-1;Z>0;Z--)if(q[Z][r])return q[Z].url||null;return q[0].url||null};
wSO=function(){kc.size?setTimeout(function(){Kn(q$1)},0):ZJj=0};
q$1=function(){var q=(0,_.lp)(),Z=null,w=!1;kc.forEach(function(Y){Y.loaded=!0;Y.loadTime=q;Y.pendingPaint=!1;var C=rdz.get(Y);C&&C.resolve(q);Z=Y;w||!Y.ftlEligible&&Y.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(w=!0)});
var r;((r=Z)==null?0:r.markDirty)&&Z.markDirty();kc.clear();ZJj=0;w&&Y$T(q)};
$V8=function(q){kc.add(q);q.pendingPaint=!0;ZJj||(ZJj=_.sL(_.v5,wSO))};
e42=function(q){q.loaded=!1;q.loadTime=Infinity;var Z=rdz.get(q);Z&&(Z.reject(Error("mh")),rdz.delete(q));q.pendingPaint&&(kc.delete(q),q.pendingPaint=!1)};
_.CT2=function(q){var Z=q.indexOf(":");return Z===-1?{originalName:q}:{originalName:q.substring(0,Z),datasyncId:q.substring(Z+1)}};
_.dVI=function(){return _.V(function(q){if(PTN!==void 0)return q.return(PTN);PTN=new Promise(function(Z){var w;return _.V(function(r){switch(r.nextAddress){case 1:return _.d9(r,2),_.W(r,_.IQ.open("test-only"),4);case 4:return _.W(r,_.IQ.delete("test-only"),5);case 5:_.QL(r,3);break;case 2:if(w=_.o3(r),w instanceof Error&&w.name==="SecurityError")return Z(!1),r.return();case 3:Z("caches"in window),_.ub(r)}})});
return q.return(PTN)})};
HJ6=function(){return _.V(function(q){if(q.nextAddress==1)return _.W(q,_.dVI(),2);if(!q.yieldResult)return q.return(void 0);VmX||(VmX=new OJ1);return q.return(VmX)})};
WCT=function(q){var Z,w,r,Y;return _.V(function(C){switch(C.nextAddress){case 1:return _.W(C,HJ6(),2);case 2:Z=C.yieldResult;if(!Z)throw Error("oh");return _.W(C,Z.open("yt-player-local-img"),3);case 3:return w=C.yieldResult,_.W(C,w.match(q),4);case 4:r=C.yieldResult;if(!r)throw Error("ph");return _.W(C,r.blob(),5);case 5:return Y=C.yieldResult,C.return(Y)}})};
opO=function(q,Z){for(var w in q)if(q.hasOwnProperty(w)&&Z[w])return w;return null};
uM6=function(q){return"stamp"+q.replace("-","_")+"_"};
LC2=function(q){var Z=q.match(/\[\[([\w\.]+)\]\]/);if(Z&&Z.length>1)return Z[1];_.tY(Error("rh`"+q));return null};
S$9=function(q){return q===void 0?_.BF("REUSE_COMPONENTS",!1):q||!1};
tm8=function(q,Z,w){w&&(Z.is?(vpj.has(Z)&&(q=vpj.get(Z),w=q.listener,delete Z[q.property],w.type==="element"&&Z.removeEventListener(w.eventName,w.handler),vpj.delete(Z)),jm9(Z)):Z.__proto__==HTMLElement.prototype&&(Z=new _.df("Rendererstamper removed a non custom element","Stamper: "+q+" element: "+(Z&&Z.nodeName)),_.bx(Z)))};
R4j=function(q,Z,w,r){var Y=Z.node?Z.node:Z;_.E(w).parentNode===Y&&(Z.removeChild(w),tm8(q,w,r));if(q=cJ.get(w))cJ.delete(w),_.v5.cancelJob(q);w.hidden=!1};
bJj=function(q,Z,w,r){if(Z&&Z.children&&(w=Z.children[w]))if(_.BF("DEFERRED_DETACH"))for(;w&&!cJ.has(w);){var Y=q,C=Z,d=w,O=r;d.hidden=!0;Y=_.WO(_.v5,R4j.bind(null,Y,C,d,O),0);cJ.set(d,Y);w=w.nextElementSibling}else for(;(d=Z.lastElementChild)&&(Z.removeChild(d),tm8(q,d,r),d!=w););};
Jde=function(q){var Z=_.Iw();_.Ls(function(){for(var w=_.P(q.slotContent),r=w.next();!r.done;r=w.next())Z.value.appendChild(r.value)});
return _.u("__slot-el",{el:Z,skip:!0})};
_.Mx=function(q,Z,w){w=w===void 0?z42:w;cp.add(Z);var r;(r=w).propNames!=null||(r.propNames=[]);var Y=new Set(w.propNames),C=mvj();r=function(){var L=C.call(this)||this;L.props={};L.isUpdating=!1;L.hasAttached=!1;L.isInert=!1;L.updateQueued=!1;L.initialClasses=[];DqT(L,Z);return L};
_.z(r,C);r.prototype.forwardKebabCaseProp=function(L,S){L=_.Cp(L);if(Y.has(L)||L==="children")this.props[L]=S};
r.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var L=_.P(this.initialClasses),S=L.next();!S.done;S=L.next())(S=S.value)&&this.classList.add(S);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
r.prototype.handleSlottedContent=function(){for(var L=new Map,S=_.P(this.children),v=S.next();!v.done;v=S.next()){v=v.value;var R=void 0,B=(R=v.getAttribute("slot"))!=null?R:"children";(R=L.get(B))?R.push(v):L.set(B,[v]);if(!v.getAttribute("key")){var n=void 0,x=void 0;v.setAttribute("key",B+"_"+((x=(n=R)==null?void 0:n.length)!=null?x:0))}}L=_.P(L);for(S=L.next();!S.done;S=L.next())v=_.P(S.value),S=v.next().value,v=v.next().value,this.forwardKebabCaseProp(S,_.u(Jde,{slotContent:v}))};
r.prototype.connectedCallback=function(){var L=this;if(!DqT(this,Z)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var S=_.P(this.attributes),v=S.next();!v.done;v=S.next())v=v.value,this.forwardKebabCaseProp(v.name,l2j(v));this.handleSlottedContent();w.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){L.afterFirstPatch()});
this.hasAttached=!0}};
r.prototype.attributeChangedCallback=function(L,S,v){this.isInert||this.isUpdating||this.isConnected||L!=="class"||this.initialClasses.push.apply(this.initialClasses,_.Ju(v.split(" ")))};
r.prototype.disconnectedCallback=function(){EQ8(this)};
r.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var L,S;ALT(this,_.u(q,Object.assign({},this.props,{idomKey:(S=(L=this.__incrementalDOMData)==null?void 0:L.key)!=null?S:Z})),!0)}catch(R){var v=R instanceof Error?R:new _.df("Wiz rendering error");v.args||(v.args=[]);v.args.push("Error in deprecated web component wrapper");v.args.push(Z.toLowerCase());_.tY(v);throw R;}finally{this.updateQueued=this.isUpdating=!1}}};
r.prototype.enqueueUpdate=function(){var L=this;return _.V(function(S){if(w.synchronous)return L.update(),S.return();if(L.updateQueued)return S.return();L.updateQueued=!0;return S.return(Promise.resolve().then(function(){L.update()}))})};
r.prototype.notifyPath=function(){w.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.My.Object.defineProperties(r,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var d=_.P(w.propNames),O=d.next(),H={};!O.done;H={prop$jscomp$105:void 0},O=d.next())H.prop$jscomp$105=O.value,Object.defineProperty(r.prototype,H.prop$jscomp$105,{set:function(L){return function(S){this.isInert||S===this.props[L.prop$jscomp$105]||(this.props[L.prop$jscomp$105]=S,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(H)});
customElements.define(Z,r)};
_.BwT=function(q,Z){return _.iI(q.entities,"markersEngagementPanelSyncEntity",Z)};
a62=function(q,Z){return _.iI(q.entities,"fantasyWinProbabilityEntity",Z)};
np1=function(q,Z){return _.iI(q.entities,"fantasyTeamEntity",Z)};
Qm8=function(q,Z){return _.iI(q.entities,"fantasyPlayerEntity",Z)};
Ep8=function(q,Z){return _.iI(q.entities,"booleanEntity",Z)};
xV2=function(q,Z){return _.iI(q.entities,"qrCodeEntity",Z)};
Twj=function(q){return _.iI(q.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
UVT=function(){if(FA)return FA;if(window.lottie)return FA=Promise.resolve(window.lottie);var q=_.jJ(_.zj("LOTTIE_URL"));return q?FA=new Promise(function(Z,w){var r=document.createElement("script");r.addEventListener("load",function(){Z(lottie)});
r.addEventListener("error",function(Y){var C="Lottie library failed to load.";Y?Y.message&&(C+=" Original description: "+Y.message,_.JY(Y,C)):Y=Error(C);_.bx(Y);w(Y)});
r.setAttribute("async","");_.AI(r,q);document.head.appendChild(r)}):Promise.reject(Error("sh"))};
kNj=function(){return FA?FA:UVT()};
KCT=function(){var q=Twj(_.sE().getState());if(q&&q.animationStyle)switch(q.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return Nx.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return Nx.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return Nx.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
smN=function(q){if(q)switch(q){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.b("kevlar_use_wil_icons"))return(q=KCT())?q:Nx.get("LIKE")}};
I66=function(q){var Z=smN(q);if(Z)return Z;switch(q){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Nx.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Nx.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Nx.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Nx.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Nx.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Nx.get("NOTIFICATION_BELL")}};
MmT=function(q,Z){if(!q||cdN)Z=!1;else{if(q.closest){var w=!!smN(Z);w=_.zj("ID_TOKEN")&&w?!!q.closest("segmented-like-dislike-button-view-model"):!1}else w=!1;if(!w)if(q.closest)if(w=!_.zj("ID_TOKEN"),q=q.closest("ytd-subscription-notification-toggle-button-renderer-next"),w||!q)w=!1;else{var r;w=((r=q.data)==null?void 0:r.targetId)==="notification-bell"&&Z!=="EXPAND_MORE"}else w=!1;Z=w}return Z};
FCj=function(q){var Z,w;return _.V(function(r){switch(r.nextAddress){case 1:return _.d9(r,2),_.W(r,fetch(q),4);case 4:return Z=r.yieldResult,_.W(r,Z.json(),5);case 5:return r.return(r.yieldResult);case 2:w=_.o3(r),_.bx(w),_.ub(r)}})};
Nwj=function(q,Z){var w,r,Y;return _.V(function(C){if(C.nextAddress==1)return(w=Z?q.pathDarkTheme:q.path)?_.W(C,Promise.all([FCj(w),UVT()]),2):C.return();r=C.yieldResult;Y=r[0];lm.set(w,Y);_.ub(C)})};
_.GL=function(){var q=_.Ta.apply(0,arguments);return function(){for(var Z="",w=_.P(q),r=w.next();!r.done;r=w.next())if(r=r.value,typeof r==="function"&&(r=r()),r)if(typeof r==="string")Z+=" "+r;else for(var Y in r)if(r.hasOwnProperty(Y)){var C=r[Y];typeof C==="function"&&(C=C());C&&(Z+=" "+Y)}Z=Z.trim()||void 0;return _.jG(Z)}};
_.pn=function(q){var Z;var w=q.data;var r=q.className;var Y=q.animationName;var C=q.animationRef;var d=(Z=q.elRefForInterop)||_.Iw(),O;_.SG(function(){var S;return void((S=O)==null?void 0:S.destroy())});
var H;_.L7(function(){var S=_.jG(Y);if(S!==H){H=S;var v=Object.assign({},{animationName:S,animationRef:_.jG(C)},_.jG(w));try{_.t().resolve(l6T)().then(function(n){var x;(x=O)==null||x.destroy();x=v.animationRef;var K=v.listeners;n=n.loadAnimation(Object.assign({},{container:d.value},v.animationConfig));x&&(x.lottieEl=n);if(K)for(x=_.P(Object.entries(K)),K=x.next();!K.done;K=x.next()){var k=_.P(K.value);K=k.next().value;(k=k.next().value)&&n.addEventListener(K,k)}O=n})}catch(n){S=n;
var R="LottieComponent error.";S.message&&(R+=" Original description: "+S.message);_.JY(S,R);_.bx(S);var B;((B=v.listeners)==null?0:B.error)&&v.listeners.error(S)}}});
var L=_.GL("ytLottieComponentHost",r);return _.u(ssT,{cond:function(){return!Z},
then:function(){return _.u("lottie-component",{class:L,el:d})}})};
GN9=function(q){var Z=_.Iw(),w=_.P(Yhj(q.data.animationConfig.name||"",q.className)),r=w.next().value;w=w.next().value;var Y=vF(function(){return q.data.animationRef});
uO(function(){q.data.animationRef&&(q.data.animationRef.lottieEl=Y==null?void 0:Y.lottieEl)},[q.data.animationRef]);
return _.u("lottie-component",{skip:!0,class:_.GL(w,"ytLottieComponentHost"),el:Z},_.u(_.pn,{data:q.data,animationRef:Y,animationName:r,elRefForInterop:Z}))};
XS9=function(q,Z,w,r,Y){function C(H,L){if(Z.value===L&&q!=null&&q.value){for(;q.value.firstChild;)q.value.removeChild(q.value.firstChild);q.value.classList.add("yt-spec-icon-shape");H(q.value,r)}}
var d;Y=(d=Y)!=null?d:_.t().resolve(_.my);w=_.pSI(Y,w);if(typeof w==="function")Z.value=null,C(w,null);else{var O=new _.r5(w.then,w);Z.value=O;O.then(function(H){C(H,O)})}};
AdO=function(q,Z){var w=document.createElement("div"),r=_.WF(w,function(){return _.u(_.PF,{cond:q,then:function(Y){return _.u(mVI,{data:Y,options:Z})}})});
return[w,r]};
_.XA=function(){for(var q=[],Z=_.P(_.Ta.apply(0,arguments)),w=Z.next();!w.done;w=Z.next())if(w=w.value)if(typeof w==="string")q.push(w);else{w=_.P(Object.entries(w));for(var r=w.next();!r.done;r=w.next()){var Y=_.P(r.value);r=Y.next().value;(Y=Y.next().value)&&q.push(r)}}return q.join(" ")};
yde=function(q){var Z=_.Iw(),w=j9(),r=FK(q.character)||FK(q.previousCharacter);HF(function(){if(q.marginMultiplier){var Y;(Y=w.value)==null||Y.cancel();r?(Y=q.previousCharacter?Number(q.previousCharacter)+10:q.rollUp?0:30,q.shouldAnimate||(Y-=f69(q,Y))):(Y=q.rollUp?0:2,q.shouldAnimate||(Y-=q.rollUp?-1:1));Z.value.style.marginTop="-"+Y*q.marginMultiplier+"px";q.shouldAnimate?w.value=DVj(Z.value,q,Y,r):Z.value.style.display=q.character?"":"none"}});
return _.u("animated-rolling-character",{el:Z,class:"animated-rolling-character-wiz"},_.Fs(r,function(){for(var Y=[],C=1;C<30;C++)Y.push(_.u("div",null,C%10));return _.u(_.lS,null,_.u("div",null,"\u00a0"),Y,_.u("div",null,"\u00a0"))},function(){return h4j(q.character)}))};
h4j=function(q){return _.u(_.lS,null,_.u("div",null,"\u00a0"),_.u(_.lS,null,_.Fs(!q||_.W6(q),function(){return _.u("div",null,"\u00a0")},function(){return _.u("div",null,q)})),_.u("div",null,"\u00a0"))};
DVj=function(q,Z,w,r){w=new Animation(new KeyframeEffect(q,[{transform:"translateY(0px)"},{transform:"translateY("+(r?f69(Z,w):Z.rollUp?-1:1)*Z.marginMultiplier+"px)"}],iJT),document.timeline);Z.character?(q.style.display="",w.onfinish=null):w.onfinish=function(){q.style.display="none"};
w.play();return w};
f69=function(q,Z){var w=Number(q.character)+10;if(q.previousCharacter)if(q.character){var r=Number(q.character),Y=Number(q.previousCharacter);q=q.rollUp?Y<r?w:w+10:Y<r?w-10:w}else q=q.rollUp?30:0;else q=q.character==="0"?w:q.rollUp?w-10:w+10;return Z-q};
_.mq=function(q,Z){return function(w){var r={},Y;for(Y in w){var C=void 0,d=void 0;((C=Z)==null?0:(d=C.callbacks)==null?0:d[Y])||(r[Y]=w[Y])}return _.u(HPe,null,function(){for(var O in r)w[O]=_.jG(r[O]);w.disableReactiveLogging=!0;return _.u(q,Object.assign({},w))})}};
_.AE=function(q){var Z=j9(),w=j9();uO(function(){Z.value=q.numberText;w.value=q.numberValue},[q.numberText]);
var r=q.fontSizeMultiplier?q.heightPx*q.fontSizeMultiplier:q.heightPx,Y=S9(function(){if(q.numberText){var d=q.numberText;var O=q.forceRollUp||!w.value||!q.numberValue||w.value<q.numberValue;var H=!!q.shouldAnimate,L=Z.value,S=[],v=0,R=0,B=(L?L.replace(/\D/g,"").length:0)-(d?d.replace(/\D/g,"").length:0);L=L?L.split(/(\d)/).filter(Boolean):[];for(d=d.split(/(\d)/).filter(Boolean);B<0;){var n=d[R];S.push({character:n,rollUp:O,marginMultiplier:r,shouldAnimate:H});R++;FK(n)&&B++}for(;v<B;)n=L[v],S.push({previousCharacter:n,
rollUp:O,marginMultiplier:r,shouldAnimate:H}),v++,FK(n)||B++;for(;R<d.length;)B=d[R],n=L[v],FK(B)===FK(n)?(R++,v++):FK(B)?(v++,B=void 0):FK(n)&&(R++,n=void 0),S.push({character:B,previousCharacter:n,rollUp:O,marginMultiplier:r,shouldAnimate:H});O=S}else O=[];return O},[q.numberText]),C=q.numberText?["height: "+r+"px;",
"line-height: "+q.heightPx+"px;"].join(" "):"";return _.u("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:C,dir:"ltr","aria-hidden":"true"},Y.map(function(d){return _.u(yde,Object.assign({},d))}))};
_.fn=function(q){return Npj(function(Z){Z=q==null?void 0:q(Z);return typeof Z==="boolean"?Z:!0})};
Df=function(q){return function(){return q()?q():void 0}};
gp2=function(q){return new KeyframeEffect(q,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
q9T=function(q){return new KeyframeEffect(q,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
ZFX=function(q){var Z=_.P(_.qo(q,void 0,"Clci1e")),w=Z.next().value,r=Z.next().value;w.current=q;return[w,function(Y){return void r(w.current=Y)}]};
_.hE=function(q){var Z=Uv1(function(){return ZFX(q())},{isEqual:function(w,r){return w[0].current===r[0].current}});
return[function(){return Z()[0]()},
function(w){return void Z()[1](w)}]};
_.y1=function(q){return function(){var Z="",w;for(w in q){for(var r=q[w];typeof r==="function";)r=r();r!==void 0&&r!==null&&(Z+="; "+w+": "+r)}return Z.length>0?_.jG(Z.slice(2)):_.jG()}};
wuN=function(q){switch(q){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"}};
$GT=function(q,Z,w,r,Y,C){var d=rMT(q),O=d.disabled,H=d.iconPosition,L=d.style,S=d.focused,v=function(){return!!n()&&H()==="icon-only"},R=function(){return!!n()&&H()==="icon-only-40"},B=function(){return!!n()&&H()==="icon-with-label"},n=function(){return!!Z||!(r==null||!r())};
return{type:function(){return L()==="call-to-action-inverse"?"text":L()==="overlay-dark"&&q().type!=="filled"&&q().type!=="tonal"?"tonal":q().type},
shouldFocus:function(){return(S()||(C==null?void 0:C()))&&!O()},
hasIconLeading:function(){return!!n()&&H()==="leading"},
hasIconTrailing:function(){return!!n()&&H()==="trailing"},
hasIconLeadingTrailing:function(){return!!n()&&!!(w||Y!=null&&Y())&&H()==="leading-trailing"},
hasIconOnly:v,hasIconOnly40:R,hasIconWithLabel:B,iconButton:function(){return v()||R()||B()},
visiblyDisabled:function(){return(O()?"disabled":q().state)==="disabled"||O()},
overrideSmallSizeIcon:function(){return im(q(),n())},
iconToRender:Z?Z:function(){return _.u(_.q0,{icon:r,size:function(){return Y9I(q())},
active:function(){return q().toggled}})},
secondaryIconToRender:w?w:function(){return _.u(_.q0,{icon:Y,size:function(){return Y9I(q())},
active:function(){return q().toggled}})}}};
rMT=function(q){return{size:function(){return q().size},
style:function(){return q().style},
focused:function(){return q().focused},
disabled:function(){return q().disabled},
onTap:function(Z){var w,r;return(r=(w=q()).onTap)==null?void 0:r.call(w,Z)},
alignByText:function(){return q().alignByText},
aTagConfig:function(){return q().aTagConfig},
customColors:function(){return q().customColors},
segmentedPosition:function(){return q().segmentedPosition},
toggled:function(){return q().toggled},
toggleable:function(){return q().toggleable},
accessibilityLabel:function(){return q().accessibilityLabel},
onToggle:function(Z){var w,r;return(r=(w=q()).onToggle)==null?void 0:r.call(w,Z)},
iconPosition:function(){return q().iconPosition},
oneOffCustomTextWrap:function(){return q().oneOffCustomTextWrap},
disableTextEllipsis:function(){return q().disableTextEllipsis},
tooltipText:function(){return q().tooltipText},
ariaHidden:function(){return q().ariaHidden},
tabIndex:function(){return q().tabIndex},
buttonText:function(){return q().buttonText},
formattedButtonText:function(){return q().formattedButtonText},
animatedTextProps:function(){return q().animatedTextProps}}};
exN=function(q){return q.style==="overlay-dark"?4:q.style==="overlay"?q.type==="filled"?4:3:q.type==="filled"||q.style==="call-to-action-inverse"||q.style==="mono-inverse"?2:1};
im=function(q,Z){Z=(q.iconPosition==="icon-only"||q.iconPosition==="icon-only-40"||q.iconPosition==="icon-with-label")&&Z;return!q.segmentedPosition&&Z&&q.size==="S"};
Cre=function(){return!_.b("web_disable_backdrop_filter")};
Y9I=function(q){switch(q.size){case "XS":return 16;case "S":return im(q,!0)?24:16;default:return 24}};
Pr2=function(q,Z){if(!_.Nb){var w;qAX(function(){return w=Ve2(q,Z)});
return w}return Ve2(q,Z)};
dGX=function(){var q=YG1(_.Nb||void 0,C2T);return q===r9I||(q==null?void 0:q.name)==="\u0275NotFound"?void 0:q};
VBj=function(q){switch(q){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"}};
OFT=function(q){switch(q){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"}};
HF6=function(q){switch(q){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"}};
WpN=function(q){if(!q)return{};var Z=q.color,w=q.backgroundColor;q=q.borderColor;var r="";Z&&(r+="color: "+Z+";");w&&(r+="background-color: "+w+";");q&&(r+="border-color: "+q+";");return{style:r}};
Lpj=function(q){var Z=q.data;var w=q.icon;var r=q.secondaryIcon;var Y=q.iconName;var C=q.secondaryIconName;dGX();var d=Z.size;q=Z.style;var O=Z.focused,H=Z.disabled,L=Z.onTap,S=Z.alignByText,v=Z.aTagConfig,R=Z.customColors,B=Z.segmentedPosition,n=Z.toggled,x=Z.toggleable,K=Z.accessibilityLabel,k=Z.onToggle,G=Z.iconPosition,rz=Z.oneOffCustomTextWrap,f=Z.disableTextEllipsis,eO=Z.tooltipText,g=Z.ariaHidden,H6=Z.tabIndex,nX=!!w||!!Y,Qj=w,SO=r;if(Y){var Te=Y9I(Z);Qj=function(){return _.u(_.q0,{icon:Y,
size:Te,active:Z.toggled})}}if(C){var Ze=Y9I(Z);
SO=function(){return _.u(_.q0,{icon:C,size:Ze,active:Z.toggled})}}var W1=Z.state;
w=Z.type;q==="call-to-action-inverse"&&(w="text");q==="overlay-dark"&&w!=="filled"&&w!=="tonal"&&(w="tonal");var A2=nX&&G==="leading",f9=nX&&G==="trailing",Dl=nX&&(!!r||!!C)&&G==="leading-trailing";r=nX&&G==="icon-only";var $g=nX&&G==="icon-only-40";G=nX&&G==="icon-with-label";var De=r||$g||G;H&&(W1="disabled");var n9=W1==="disabled"||H;nX=im(Z,nX);W1={};var Rh=_.XA((W1["yt-spec-button-shape-next"]=!0,W1[VBj(w)]=!0,W1[OFT(q)]=!n9,W1["yt-spec-button-shape-next--disabled"]=!!n9,W1[HF6(d)]=!0,W1["yt-spec-button-shape-next--focused"]=
!!O&&!H,W1["yt-spec-button-shape-next--icon-trailing"]=f9,W1["yt-spec-button-shape-next--icon-leading"]=A2,W1["yt-spec-button-shape-next--icon-leading-trailing"]=Dl,W1["yt-spec-button-shape-next--icon-button"]=r||G,W1["yt-spec-button-shape-next--icon-only-default"]=$g,W1["yt-spec-button-shape-next--align-by-text"]=!!S,W1["yt-spec-button-shape-next--segmented-start"]=B==="start",W1["yt-spec-button-shape-next--segmented-end"]=B==="end",W1["yt-spec-button-shape-next--override-small-size-icon"]=nX,W1["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!rz,W1["yt-spec-button-shape-next--disable-text-ellipsis"]=!!f,W1["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=Cre(),W1)),xg=_.fn(function(ZF){L==null||L(ZF);x&&(k==null||k(ZF))});
d=function(){return v?_.u(_.w6,{aTagConfig:v,disabled:H,className:Rh,style:WpN(R).style,title:eO!=null?eO:"",ariaLabel:K,ariaCurrent:x&&n},_.u(_.lS,null,oG2(Z,A2,Dl,f9,De,Qj,SO))):_.u("button",{"on:click":xg,class:Rh,title:eO!=null?eO:"",style:H&&v?"pointer-events:none":WpN(R).style,disabled:H,"aria-pressed":x?!!n:void 0,"aria-label":K?K:void 0,"aria-disabled":n9,"aria-hidden":g,tabindex:H6},_.u(_.lS,null,oG2(Z,A2,Dl,f9,De,Qj,SO)))};
O={};q=(O["yt-spec-button-shape-with-label"]=!0,O["yt-spec-button-shape-with-label--is-overlay"]=q==="overlay"||q==="overlay-dark",O);return _.u("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},G?_.u("label",{class:_.XA(q)},d(),_.u("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},uh9(Z))):d())};
uh9=function(q){var Z=q.formattedButtonText,w=q.animatedTextProps,r=q.buttonText,Y=q.oneOffCustomTextWrap;q=q.iconPosition;return w?_.u(_.AE,{numberText:w.numberText,numberValue:w.numberValue,heightPx:w.heightPx,fontSizeMultiplier:w.fontSizeMultiplier,shouldAnimate:w.shouldAnimate,forceRollUp:w.forceRollUp}):Z?(w=q==="icon-with-label"||Y,_.u(_.r6,{text:Object.assign({},Z,w?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!w})):r};
oG2=function(q,Z,w,r,Y,C,d){return _.u(_.lS,null,_.Fs(C&&(Z||w||Y),function(){return _.u(_.lS,null,_.u("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},C==null?void 0:C()))}),_.Fs((q.buttonText||q.formattedButtonText||q.animatedTextProps)&&!Y,function(){return _.u(_.lS,null,_.u("div",{class:"yt-spec-button-shape-next__button-text-content"},uh9(q)))}),_.Fs(r,function(){return _.u(_.lS,null,_.u("div",{class:"yt-spec-button-shape-next__icon"},C==null?void 0:C()))}),_.Fs(w,function(){return _.u(_.lS,
null,_.u("div",{class:"yt-spec-button-shape-next__secondary-icon"},d==null?void 0:d()))}),_.Fs(!q.disabled&&!0,function(){return _.u(_.YB,{model:{color:exN(q)}})}))};
S9e=function(q,Z){switch(q.size){case "XS":return 16;case "S":return im(q,Z)?24:16;default:return 24}};
vGO=function(q){if(q.style==="overlay-dark"&&q.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
bFj=function(q,Z,w){var r=q.buttonText,Y=q.formattedButtonText,C=q.formattedButtonTextLegacy,d=q.animatedTextProps,O=q.style,H=q.size,L=q.focused,S=q.disabled,v=q.onTap,R=q.alignByText,B=q.aTagConfig,n=q.customColors,x=q.segmentedPosition,K=q.toggled,k=q.toggleable,G=q.accessibilityLabel,rz=q.onToggle,f=q.iconPosition,eO=q.oneOffCustomTextWrap,g=q.disableTextEllipsis,H6=q.tooltipText,nX=q.ariaHidden,Qj=q.tabIndex,SO=q.state,Te=q.type;O==="call-to-action-inverse"&&(Te="text");O==="overlay-dark"&&Te!==
"filled"&&Te!=="tonal"&&(Te="tonal");var Ze=!!Z&&f==="leading",W1=!!Z&&f==="trailing",A2=!!Z&&!!w&&f==="leading-trailing",f9=!!Z&&f==="icon-only",Dl=!!Z&&f==="icon-only-40",$g=!!Z&&f==="icon-with-label",De=f9||Dl||$g;S&&(SO="disabled");var n9=SO==="disabled"||S;SO=im(q,!!Z);var Rh={},xg=(Rh["yt-spec-button-shape-next"]=!0,Rh[VBj(Te)]=!0,Rh[OFT(O)]=!n9,Rh["yt-spec-button-shape-next--disabled"]=!!n9,Rh[HF6(H)]=!0,Rh["yt-spec-button-shape-next--focused"]=!!L&&!S,Rh["yt-spec-button-shape-next--icon-trailing"]=
W1,Rh["yt-spec-button-shape-next--icon-leading"]=Ze,Rh["yt-spec-button-shape-next--icon-leading-trailing"]=A2,Rh["yt-spec-button-shape-next--icon-button"]=f9||$g,Rh["yt-spec-button-shape-next--icon-only-default"]=Dl,Rh["yt-spec-button-shape-next--align-by-text"]=!!R,Rh["yt-spec-button-shape-next--segmented-start"]=x==="start",Rh["yt-spec-button-shape-next--segmented-end"]=x==="end",Rh["yt-spec-button-shape-next--override-small-size-icon"]=SO,Rh["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!eO,Rh["yt-spec-button-shape-next--disable-text-ellipsis"]=!!g,Rh["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=Cre(),Rh),ZF=function(){if(d)zL(_.AE)(d);else if(C)C(f==="icon-with-label"||eO?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(Y){var L9=f==="icon-with-label"||eO;I26(Object.assign({},Y,L9?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!L9})}else r&&Mo(r)},
mm=function(L9){v==null||v(L9);
k&&(rz==null||rz(L9))},CX=B?jf2:tBz,rb=B?"aria-current$":"aria-pressed$",mv=function(){Z&&(Ze||A2||De)&&function(){$B({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){Z()})}();
(r||Y||C||d)&&!De&&function(){$B({className:"yt-spec-button-shape-next__button-text-content"},function(){ZF()})}();
W1&&function(){$B({className:"yt-spec-button-shape-next__icon"},function(){Z()})}();
A2&&function(){$B({className:"yt-spec-button-shape-next__secondary-icon"},function(){w()})}();
S||zL(_.YB)({model:{color:exN(q)}})},lC=function(){var L9={};
CX(Object.assign({},(L9.className=_.XA(xg),L9.onclick=B?void 0:mm,L9.disabled=S,L9["aria-disabled$"]=n9,L9.style=S&&B?"pointer-events:none":void 0,L9[rb]=k?!!K:void 0,L9["aria-label$"]=G,L9.title$=H6!=null?H6:"",L9["aria-hidden$"]=nX,L9.tabindex$=Qj,L9),B,WpN(n)),function(){mv()})};
$g?(H={},O=(H["yt-spec-button-shape-with-label"]=!0,H["yt-spec-button-shape-with-label--is-overlay"]=O==="overlay"||O==="overlay-dark",H),Rxj({className:_.XA(O)},function(){lC();$B({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},ZF)})):lC()};
JM1=function(q,Z,w){_.b("web_wiz_button_shape")?zL(Lpj)({data:q,icon:Z?function(){return _.u(Fu,null,Z)}:void 0,
secondaryIcon:w?function(){return _.u(Fu,null,w)}:void 0}):bFj(q,Z,w)};
ej=function(q,Z){_.um(q,Object.assign({},Z,{forceClickLogging:!0}))};
zxI=function(q,Z,w,r){var Y=void 0;return function(C){var d=_.oQ(w?q==null?void 0:q.onDisabledTap:q==null?void 0:q.onTap);if(d){var O;Y=(O=Y)!=null?O:Z==null?void 0:Z.value;if(d)if(_.b("web_button_vm_click_client_ve_killswitch"))ej(d,Object.assign({},{form:{element:Y,event:C}},void 0));else{var H;O=d==null?void 0:d.clickTrackingParams;var L,S=q==null?void 0:(H=q.loggingDirectives)==null?void 0:(L=H.clientVeSpec)==null?void 0:L.uiType;H=S&&!O?_.C6(S):void 0;ej(d,Object.assign({},{form:{element:Y,event:C}},
{clickedVisualElement:H}))}}r&&r(C)}};
BVO=function(q){switch(q){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"}};
aE2=function(q){switch(q){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"}};
nGI=function(q){switch(q){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"}};
QfT=function(q){switch(q){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"}};
EGT=function(q,Z){return _.iI(q.entities,"engagementToolbarStateEntityPayload",Z)};
TV9=function(q){(q=_.wa(q))&&_.xGj(q)};
_.xGj=function(q){var Z=_.b5();Z&&_.Uh(Z,q)};
UGT=function(q,Z,w){_.yY(q,"yt-open-popup-action",[Z,w||q])};
k62=function(q,Z){var w=_.tf(q,"endpoint"),r=_.tf(q,"action");return(w=r?r:w)&&Z&&(w=Z.navigationEndpointPopupMap[w])&&(q=_.Eq(w,q),(w=_.tf(q,"renderer"))&&Z.supportedPopups.hasOwnProperty(w))?{openPopupAction:{popupType:Z.popupTypeMap[w],popup:q}}:null};
Kp2=function(q,Z,w,r){if(r){var Y;w=w==null?void 0:(Y=w.data)==null?void 0:Y.contents;(Y=w instanceof Array&&w.length?w[0]:w)&&(w=_.tf(Y,"renderer"))&&r.supportedPopups.hasOwnProperty(w)&&(Z.stopPropagation(),UGT(q,{openPopupAction:{popupType:r.popupTypeMap[w],popup:Y}}))}};
cMT=function(q,Z,w,r){r=r===void 0?!1:r;var Y=sf1(Z);if(Y){Y.href&&vP(Y.href);var C=Z.button;C=C!==void 0?C===0&&!Pe(Z):!Pe(Z);Y.data&&C&&IE8(q,Y,Z,w,r)}};
IE8=function(q,Z,w,r,Y){Y=Y===void 0?!1:Y;var C=_.m6("pbj_navigate_limit",-1)===0;MB2(Z);_.t().resolve(_.Gj(x7));var d=Z.data;if(Object.keys(d).length!==0)if(!_.b("unplugged_web_disable_actions_for_cec_endpoint")&&_.J(d,_.$K))_.b("endpoint_behavior_command_executor_fix_killswitch")||(w.preventDefault(),w.stopPropagation()),_.ZC(q,[d],q);else if(r=k62(d,r))d.loggingUrls&&d.loggingUrls.forEach(function(H){H.baseUrl&&_.EG(H.baseUrl)}),w.preventDefault(),w.stopPropagation(),UGT(q,r,Z);
else{var O=Fp9(0,Z.data,w);if(q=Z.getForm)q=q(),O.tempData=O.tempData||{},O.tempData=Object.assign({},O.tempData,q);q=_.E8(w);if(r=q.find(function(H){return!!H.visualElement}))O.createScreenConfig=O.createScreenConfig||{},O.createScreenConfig.clickedVisualElement=r.visualElement;
if(!C)if(w.preventDefault(),w.stopPropagation(),_.J(d,_.NVT)&&!Y&&_.AJ.instance)_.AJ.instance.resolveCommand(d,O);else if(_.b("kevlar_command_handler_formatted_string")&&!Y&&_.AJ.instance&&lEe(d))Y=q.find(function(H){return!!H.is})||w.target,w={form:Object.assign({},O,{event:w,
element:Y,originatingNode:Z})},_.AJ.instance.resolveCommand(d,w);else{d=_.E8(w);w=[];for(Y=0;Y<d.length;Y++)(C=d[Y].is)&&w.push(C);zY2({parents:w.join(","),text:Z.innerText},function(){_.hy(Z,"yt-navigate",O)})}}};
G61=function(q){if(q=sf1(q))MB2(q),bLI(q.href)};
sf1=function(q){q=_.E8(q);for(var Z,w=0;w<q.length;w++)if(Z=q[w],Z.tagName==="A"&&Z.classList.contains("yt-simple-endpoint")){if(!Z.data)break;return Z}return null};
Pe=function(q){return q.shiftKey||q.altKey||q.metaKey||q.ctrlKey};
puj=function(q,Z){var w={itct:Z.clickTrackingParams};_.b("kevlar_client_side_screens")&&(!_.J(Z,_.Yz)||_.b("kevlar_exclude_endpoint_killswitch"))&&(w.endpoint=JSON.stringify(Z));_.b("enable_unknown_lact_fix_on_html5")&&_.t().resolve(_.Gj(_.d6))&&(w.lact=_.pB());j6N(w);_.l5(q,w)};
MB2=function(q){q.href&&Object.keys(q.data).length!==0&&puj(q.href,q.data)};
lEe=function(q){for(var Z=_.P(Xuj),w=Z.next();!w.done;w=Z.next())if(q[w.value])return!1;return!0};
_.VB=function(q,Z){if(Z){var w={};mG6.forEach(function(r){r=AMN(Z,r,"--yt-lightsource-");Object.assign(w,r)});
fEI.forEach(function(r){r=AMN(Z,r,"--yt-basic-");Object.assign(w,r)});
_.po(q,w)}};
AMN=function(q,Z,w){var r={};r[w+_.es(Z)]=q&&q[Z]?_.uq(q[Z]):"";return r};
_.He=function(q,Z,w){O1[q]||(O1[q]={});O1[q][Z]=w};
_.We=function(q){O1[q]||(O1[q]={});return O1[q]};
DGI=function(q){if(!q)return{};var Z=q.foregroundTitleColor,w=q.backgroundColor;q=q.borderColor;var r="text";q?r="outline":w&&(r="filled");return{type:r,customColors:{color:Z?_.uq(Z):void 0,backgroundColor:w?_.uq(w):void 0,borderColor:q?_.uq(q):void 0}}};
qV6=function(q){var Z=q.renderer;var w=q.element;var r=q.commandController;var Y=q.onTapCallback;var C=q.skipCommandHandling;var d=q.overrides;var O=q.forceIcon;var H=q.forceModernIconButton;var L=q.forceDisabled;var S=q.isSubscribe===void 0?!1:q.isSubscribe;var v=q.isPressed===void 0?!1:q.isPressed;var R=q.useButtonSize===void 0?!1:q.useButtonSize;q=hx2(Z);S&&(q.style="mono",q.type="filled");O=!Z.icon||!O&&Z.text?Z.icon?Z.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:H?"icon-only":"icon-only-40";O==="icon-only-40"&&(q.type="text");var B;H=Object;S=H.assign;R=yMI(Z,R);v=!!Z.isSelected||!_.b("web_propagate_is_pressed_killswitch")&&!!v;var n=Z.isSelected!==void 0;L=L===void 0?Z.isDisabled:L;var x=Z.text?_.V1(Z.text):void 0;var K,k,G,rz=((K=Z.accessibilityData)==null?void 0:(k=K.accessibilityData)==null?void 0:k.label)||((G=Z.accessibility)==null?void 0:G.label);K=rz?rz:_.kO(Z.text);w=iFO(Z,w,r,Y,C);r=gGz(Z);r!=null&&r.length?(r=_.Ln({innertubeCommand:RbN(r),
forceNewState:!0}),r=b8e(r)?r:void 0):r=void 0;return S.call(H,{},q,R,{iconPosition:O},d,{focused:!1,toggled:v,toggleable:n,disabled:L,formattedButtonText:x,accessibilityLabel:K,onTap:w,aTagConfig:r},DGI((B=Z.colorData)==null?void 0:B.basicColorPaletteData),{oneOffCustomTextWrap:Z.oneOffCustomTextWrap})};
iFO=function(q,Z,w,r,Y){return function(C){var d=gGz(q);r(d,C);if(!Y){d=_.P(d);for(var O=d.next();!O.done;O=d.next())ej(O.value,{form:{element:Z,event:C},commandController:w})}}};
gGz=function(q){var Z=[];q.command&&Z.push(q.command);q.serviceEndpoint&&Z.push(q.serviceEndpoint);q.navigationEndpoint&&Z.push(q.navigationEndpoint);return Z};
yMI=function(q,Z){if(Z)switch(q.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(q.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
hx2=function(q){switch(q.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"}}};
_.ok=function(q){return _.$6(function(){Ze2()();return zp(q)},void 0,"Icv7j")};
ul=function(q,Z){return _.iI(q.entities,"likeStatusEntity",Z)};
ZiN=function(q,Z){return _.iI(q.entities,"likeCountEntity",Z)};
_.wMI=function(q,Z){return _.iI(q.entities,"stringEntity",Z)};
roz=function(q,Z){if(!q)return!1;var w,r=(w=_.J(q,_.CR))==null?void 0:w.signal;if(r&&Z.signalEndpointMap)return!!Z.signalEndpointMap[r];var Y;if((w=(Y=_.J(q,_.L6))==null?void 0:Y.request)&&Z.continuationEndpointMap)return!!Z.continuationEndpointMap[w];for(var C in q)if(Z.commandEndpointMap[C])return!0;return!1};
YVI=function(q,Z){if(Z.streamingEndpointMap)for(var w in q)if(Z.streamingEndpointMap[w]&&(q=Z.streamingEndpointMap[w]))return q()};
$gT=function(q,Z){var w,r=(w=_.J(q,_.CR))==null?void 0:w.signal;if(r&&Z.signalEndpointMap&&(w=Z.signalEndpointMap[r]))return w();var Y;if((w=(Y=_.J(q,_.L6))==null?void 0:Y.request)&&Z.continuationEndpointMap&&(Y=Z.continuationEndpointMap[w]))return Y();for(var C in q)if(Z.commandEndpointMap[C]&&(q=Z.commandEndpointMap[C]))return q()};
eoT=function(q){var Z={"Content-Type":"application/json"};_.zj("EOM_VISITOR_DATA")?Z["X-Goog-EOM-Visitor-Id"]=_.zj("EOM_VISITOR_DATA"):_.zj("VISITOR_DATA")&&(Z["X-Goog-Visitor-Id"]=_.zj("VISITOR_DATA"));Z["X-Youtube-Bootstrap-Logged-In"]=_.zj("LOGGED_IN",!1);_.zj("DEBUG_SETTINGS_METADATA")&&(Z["X-Debug-Settings-Metadata"]=_.zj("DEBUG_SETTINGS_METADATA"));q!=="cors"&&((q=_.zj("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(Z["X-Youtube-Client-Name"]=q),(q=_.zj("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(Z["X-Youtube-Client-Version"]=
q),(q=_.zj("CHROME_CONNECTED_HEADER"))&&(Z["X-Youtube-Chrome-Connected"]=q),(q=_.zj("DOMAIN_ADMIN_STATE"))&&(Z["X-Youtube-Domain-Admin-State"]=q),_.BF("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(q=_.zj("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(Z["X-YouTube-Lava-Device-Context"]=q));return Z};
CsT=function(q,Z){Z.watchNextResponse||Z.reelItemWatchResponse?Z.watchNextResponse?q.content=Z.watchNextResponse:q.content=Z.reelItemWatchResponse:Z.playerResponse?q.player=Z.playerResponse:Z.reelWatchSequenceResponse&&(q.reelSequence=Z.reelWatchSequenceResponse)};
Sj=function(q){return function(){return new q}};
ve=function(q){var Z=_.t();return function(){return Z.resolve(q)}};
_.jj=function(q){if(!q)return null;for(var Z=[],w=0;w<q.textSegments.length;w++){var r=q.textSegments[w];r.text?Z.push(r):r.emojiId&&Z.push({emoji_id:r.emojiId})}return{text_segments:Z}};
Hi2=function(q,Z,w,r,Y,C,d){C=C===void 0?[]:C;var O=new _.t7;O.endpoint=w;if(!w)return _.Rw(new _.df("handle undefined endpoint",Z.tagName)),O;var H=kdO(w);H.length&&(_.ZC(q,H,Z,r),O.actions=H);w.loggingUrls&&w.loggingUrls.forEach(function(S){S.baseUrl&&xY(S.baseUrl,S.attributionSrcMode)});
H=!_.b("web_skip_impression_click_killswitch")&&r&&r.impression;if(w.clickTrackingParams&&!Ps8(w)&&!dg2(Z)&&!H&&(H=_.iy(),!_.Rk(H,Z))){var L=Z.getScreenLayer&&Z.getScreenLayer();L?H.clickCommand(w,null,L):H.clickCommand(w,null)}H=!1;for(L=0;L<C.length;L++)if((0,C[L])(Z,w,r)){H=!0;break}!H&&Vnj(w)&&(O.ajaxPromise=OiN(q,Z,w,r,Y,d));return O};
dg2=function(q){var Z;return(q=(Z=q.data)==null?void 0:Z.navigationEndpoint)&&!!q.clickTrackingParams};
Ps8=function(q){var Z=_.J(q,_.CR);if(Z&&(Z=Z.signal)&&WU6.indexOf(Z)>=0)return!0;for(var w in q)if(ofI.indexOf(w)>=0)return!0;return!1};
Vnj=function(q){var Z;if(((Z=_.J(q,_.CR))==null?void 0:Z.signal)==="CLIENT_SIGNAL")return!1;for(var w in q)if(uv8.indexOf(w)>=0)return!1;q=Object.keys(q);return q.length===1&&q[0]==="loggingUrls"?!1:!0};
JoT=function(q,Z,w,r,Y,C,d){var O=_.bl.instance;if(O&&_.J7(O,r))var H=_.zR(O,r,Y).then(function(S){return(S==null?0:S.data)?S:{data:S}});
else H=q.requestDataForServiceEndpoint(r,Y),_.J(r,LUz)||_.J(r,SVT)||_.J(r,_.vfX)||_.J(r,jv8)||_.bx(new _.df("No RequestBuilder for endpoint",r));var L=_.Be();L.promise.thenCatch(function(){var S=_.tf(r,"action")||_.tf(r,"command")||_.tf(r,"endpoint");S&&(S=r[S],S.hasOwnProperty("onFailureAction")?_.ZC(Z,[S.onFailureAction],w):S.hasOwnProperty("onFailureCommand")&&_.ZC(Z,S.onFailureCommand,w));H.cancel("Resolver promise rejected")});
H.then(function(S){if(S){var v=S.error;if(v){if(C&&C.onServerError)C.onServerError(r,S);L.reject(new _.df("Response error",r,v))}else if(S=S.data)if(v=S.error){if(C&&C.onServerError)C.onServerError(r,S);L.reject(new _.df("Returned error",r,v))}else{tnz(Z,w,S,r);RoI(S);if(v=UA9(S))for(var R=_.P(v),B=R.next();!B.done;B=R.next()){B=B.value;var n=_.t().resolve(_.Gj(biO))||ak;if(!_.bl.instance||!n.some(function(K){return!!_.J(r,K)})||_.b("kevlar_response_processor_allowlist_killswitch")){var x=n=void 0;
((x=_.J((n=B)==null?void 0:n.commandMetadata,_.XK))==null?0:x.sendPost)?_.qM(Z,[B]):_.ZC(Z,[B],w)}}(R=_.J(S==null?void 0:S.frameworkUpdates,n6))&&d&&d(R);if(C&&C.onSuccess)C.onSuccess(r,S);L.resolve(new _.QB(S,v))}}else L.reject(new _.df("Invalid service endpoint provided",r))},function(S){L.reject(S)});
return L.promise};
RoI=function(q){var Z;(q=(Z=_.J(q==null?void 0:q.onResponseReceivedCommand,_.zoO))==null?void 0:Z.continuationItems)&&(q==null?void 0:q.length)===1&&_.J(q[0],BUz)&&_.JT("so_r",void 0,"search_overview_answer")};
OiN=function(q,Z,w,r,Y,C){var d;return(d=Z.getNetworkManager&&Z.getNetworkManager()?Z.getNetworkManager():_.t().resolve(_.Gj(_.Co)))?JoT(d,q,Z,w,r,Y,C):_.TX("No network manager.")};
tnz=function(q,Z,w,r){if(w=w.trackingParams||w.loggingDirectives&&w.loggingDirectives.trackingParams){var Y;(_.J(r,azT)||_.J(r,nfN)||_.J(r,Qv2))&&r.clickTrackingParams?Y=_.wa(r.clickTrackingParams):_.b("web_graft_to_parent_command")&&r.clickTrackingParams&&(Y=_.wa(r.clickTrackingParams));var C;r=(C=Z.getScreenLayer)==null?void 0:C.call(Z);Z=_.iy().graftServerVe(w,Y,r);_.i5(q,"yt-store-grafted-ve-action",[Z])}};
_.Ef2=function(q){var Z=new Image;return new _.r5(function(w,r){Z.addEventListener("load",function(){w()});
Z.addEventListener("error",function(){r()});
Z.src=q})};
xg6=function(q){return!!q};
TUO=function(q){return!!q};
Ug1=function(q,Z,w){var r=q.rowIndex;r!==void 0&&_.i5(q.hostElement,"yt-section-reactive-dismissal",[r,Z,w])};
_.E1=function(q,Z,w){q=_.P(q);for(var r=q.next();!r.done;r=q.next()){r=r.value;if(r===Z)break;for(var Y=_.P(w),C=Y.next();!C.done;C=Y.next())if(C=C.value,r.tagName===C||!_.b("web_event_button_role_check_killswitch")&&r.role==="button"&&C==="BUTTON")return!0}return!1};
_.xB=function(q,Z,w){q=_.P(q);for(var r=q.next();!r.done;r=q.next()){r=r.value;if(r===Z)break;for(var Y=_.P(w),C=Y.next();!C.done;C=Y.next())if(r.id===C.value)return!0}return!1};
TR=function(q,Z){if(!q&&!Z)return"medium";q=Math.max(q||0,Z||0);return q>=256?"large":q>=96?"medium":"small"};
kq8=function(q){switch(q){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.K6=function(){var q=_.t().resolve(_.Gj(_.U1));return q?(q=q.getCurrentPage())?_.kB(q):null:null};
_.s1=function(){var q=_.K6();if(!q){var Z=_.t().resolve(_.Gj(_.U1)),w=Z?typeof Z:"no page manager";Z=Z?Z.getCurrentPage():null;w=new _.df("Player is missing when requested.",w,Z?Z.tagName:"no page");_.tY(w)}return q};
_.kB=function(q){return q&&q.getPlayer?q.getPlayer():null};
KUT=function(q,Z){q={args:{raw_player_response:q}};Z&&(q.args=Object.assign({},q.args,Z));return q};
sv1=function(q){if(q.args){if(q.args.raw_player_response)return q.args.raw_player_response;if(q.args.player_response)return JSON.parse(q.args.player_response)}};
_.Ize=function(q,Z){var w={url:"/watch?v="+q.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};q.playlistId&&(w.url+="&list="+q.playlistId);q.playerParams&&(w.url+="&pp="+q.playerParams);q={watchEndpoint:q,commandMetadata:{webCommandMetadata:w}};Z&&(q.clickTrackingParams=Z);return q};
Mn9=function(){return co6||!!_.Eq("yt.player.Application")};
NUO=function(){return FUj||!!document.querySelector("link#player-css")};
Gq8=function(){function q(){co6=!0;lze.resolve()}
var Z,w;return _.V(function(r){lze||(lze=new _.Dk,Mn9()?q():(Z=document.createElement("script"),Z.addEventListener("load",q),w=_.vG(_.zj("PLAYER_JS_URL")),_.AI(Z,w),document.head.appendChild(Z)));return r.return(lze.promise)})};
XM2=function(){function q(){FUj=!0;pMN.resolve()}
if(!pMN)if(pMN=new _.Dk,NUO())q();else{var Z=document.createElement("link");Z.id="player-css";Z.addEventListener("load",q);var w=_.vG(_.zj("PLAYER_CSS_URL"));_.hI(Z,w,"stylesheet");document.head.appendChild(Z)}return pMN.promise};
mg9=function(){return Mn9()&&NUO()?Promise.resolve([]):Promise.all([Gq8(),XM2()])};
AoX=function(q,Z,w){var r={args:{}};q&&(r.args.raw_player_response=q);Z&&(r.args.raw_watch_next_response=Z);w&&(r.args=Object.assign({},r.args,w));return r};
yoX=function(q,Z,w){var r=!1;r=r===void 0?!0:r;q=typeof q==="string"?_.Ik(document,q):q;var Y=fzT+"_"+_.yj(q),C=DgT[Y];if(C&&r)return hoe(Z,w)?C.api.loadVideoByPlayerVars(Z.args||null):C.loadNewVideoConfig(Z),C.api;C=new ce(q,Y,Z,w,void 0);DgT[Y]=C;C.addOnDisposeCallback(function(){delete DgT[C.getId()]});
return C.api};
hoe=function(q,Z){return Z&&Z.serializedExperimentFlags?Z.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):q&&q.args&&q.args.fflags?q.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
iiN=function(){var q=new _.Dk;q.resolved=!1;var Z=q.resolve;q.resolve=function(w){q.resolved=!0;Z(w)};
return q};
qo1=function(q){var Z={};gf6().install((Z.document_disposed={callback:q},Z))};
M0=function(q,Z){if(!q&&Math.random()<=_.m6("kevlar_unified_player_logging_threshold")){q=Error("uh`"+(Z?Z:"Unspecified error"));if(_.b("kevlar_unified_player_throw_errors"))throw q;_.bx(q)}};
_.ZrI=function(){var q=_.Eq("ytDebugData.callbacks");q||(q={},_.IR("ytDebugData.callbacks",q));return q};
raO=function(q,Z){var w=_.ZrI();if(_.b("web_dd_iu")||ws2.includes(q))w[q]=Z};
YoT=function(){return _.V(function(q){return q.return({isLeader:_.lKz(_.sE().getState()),c:_.zj("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.zj("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
$pN=function(){var q;_.V(function(Z){if(Z.nextAddress==1)return raO("APP_STATE",YoT),_.W(Z,_.t().resolve(_.F6),2);q=Z.yieldResult;raO("PI",function(){return _.V(function(w){return w.return(q.getVideoStats())})});
_.ub(Z)})};
eJ9=function(q){var Z=_.N$(_.UP(_.$1.location.href));q=_.N$(_.UP(q));return _.b("kevlar_clear_non_displayable_url_params")?Z==N0(q):N0(Z)==N0(q)};
N0=function(q){var Z=_.CwO(q);q=q.slice(0);var w=["frags"];_.b("kevlar_hide_pp_url_param")&&w.push("pp");_.b("kevlar_hide_time_continue_url_param")&&w.push("time_continue");w=_.P(w);for(var r=w.next();!r.done;r=w.next())r=r.value,q=_.pp(_.N$(q),r);return _.N$(q)+(Z?"#"+Z:"")};
ll=function(q,Z){Z=Number(Z)*1E3;var w=Math.round((0,_.lp)()),r=w.toString();q={innertubeResponse:q,serverDateTimestampMs:r,lastModifiedTimestampMs:r,expireTimestampMs:(w+Z).toString()};if(Z=_.zj("INNERTUBE_CONTEXT_CLIENT_NAME"))q.clientName=Z;return q};
dpj=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++PwN};
_.VMN=function(){var q=_.Rs(),Z=_.b5();Z&&q&&_.KR(Z,[q],!0)};
Hrj=function(q){return q&&OrN.some(function(Z){return q.includes(Z)})};
vSX=function(q){var Z=_.J(q,_.TF);if(!Z)return!1;var w=Z.url,r=Z.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!w)return _.tY(Error("zh")),!1;if(Z.target==="TARGET_NEW_WINDOW"){var Y={};_.b("resolve_url_parent_tracking_params")&&(!_.MR(w)||Fe(window.location.href,w))&&(Y={endpoint:q,itct:q.clickTrackingParams});j6N(Y);q=null;try{if(r){a:{var C=w,d=Y;r=r===void 0?!1:r;d&&_.l5(C,d);var O=_.EX(C),H=_.bg(O);C!=H&&_.xT(Error("Zf`"+C));C=H;try{if(r){H=C;H=WqN(H);vP(H);q=_.NK(window,H,"_blank",
"attributionsrc");break a}}catch(R){_.ns(R)}vP(C);q=_.NK(window,O,"_blank")}Wze(_.t().resolve(oS9),q,w);return!0}}catch(R){_.tY(R)}_.l5(w,Y);Y={target:"_blank",noopener:_.b("set_window_noopener_ks")&&!Z.allowOpener};Z=window;O=R9(w)?w:_.EX(typeof w.href!="undefined"?w.href:String(w));q=self.crossOriginIsolated!==void 0;C="strict-origin-when-cross-origin";window.Request&&(C=(new Request("/")).referrerPolicy);H=Y.noreferrer;if(q&&H&&C==="unsafe-url")throw Error("qe");C=H&&!q;H=Y.target||w.target;r=
[];d=[];var L=!1;for(v in Y){var S=Y[v];switch(v){case "width":case "height":case "top":case "left":r.push(v+"="+S);break;case "target":break;case "noopener":case "noreferrer":S?d.push(v):(L=!0,d.push(v+"=false"));break;case "attributionsrc":r.push(v+(S?"="+S:""));break;default:r.push(v+"="+(S?1:0))}}var v=H!==void 0&&!["_blank","_self","_top","_parent",""].includes(H);v=B6()&&v;ut1&&q&&r.length===0&&d.length>0&&!v&&!L?(d.length===2&&(d=["noreferrer"]),_.NK(Z,O,H,d[0]),q=Lzj()):(v=r.join(","),_.x1()&&
Z.navigator&&Z.navigator.standalone&&H&&H!="_self"?(v=_.dX("A"),KA(v,O),v.target=H,C&&(v.rel="noreferrer"),((Y=Y.attributionsrc)||Y==="")&&v.setAttribute("attributionsrc",Y),Y=document.createEvent("MouseEvent"),Y.initMouseEvent("click",!0,!0,Z,1),v.dispatchEvent(Y),v=Lzj()):C?(v=_.NK(Z,"",H,v),Z=_.bg(O),v&&(v.opener=null,Z===""&&(Z="javascript:''"),Z='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+GR(Z)+'">',Z=I9(Z),(Y=v.document)&&Y.write&&(Y.write(c8(Z)),
Y.close()))):((v=_.NK(Z,O,H,v))&&Y.noopener&&(v.opener=null),v&&Y.noreferrer&&(v.opener=null)),q=v);Wze(_.t().resolve(oS9),q,w);return!0}v=_.gA(w);v=Hrj(v)||w==="https://studio.youtube.com/";Z=!(!_.MR(w)||Fe(window.location.href,w));Y=w.indexOf("disable_polymer=1")>=0;if(Z||Y||v)vP(w),tT(),_.ja(w,void 0,void 0,window.top,SoI);else return _.bx(new _.df("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",q)),!1;return!0};
_.RJT=function(q,Z){Z=Z===void 0?0:Z;if(!(_.J(q,jp2)||_.J(q,tM9)||_.J(q,_.TF)&&_.J(q,_.TF).url))return!1;var w,r=(w=_.J(q,_.TF))==null?void 0:w.url;w=r?{externalLinkData:{url:r}}:null;return _.iy().clickCommand(q,w,Z)};
_.p6=function(q,Z){return _.iI(q.entities,"subscriptionStateEntity",Z)};
br8=function(q,Z){return _.iI(q.entities,"subscriptionNotificationStateEntity",Z)};
Ja2=function(q,Z){return _.iI(q.entities,"upcomingEventReminderStateEntity",Z)};
zJe=function(q,Z){return _.iI(q.entities,"engagementToolbarSurfaceEntityPayload",Z)};
BPI=function(q,Z){return _.iI(q.entities,"triStateButtonStateEntityPayload",Z)};
a02=function(q,Z){return _.iI(q.entities,"commerceCartCheckoutButtonEntity",Z)};
_.nSz=function(q,Z){return _.iI(q.entities,"playlistLoopStateEntity",Z)};
QpO=function(q,Z){return _.iI(q.entities,"commandEntity",Z)};
xp2=function(q,Z,w,r,Y){Y=Y===void 0?{}:Y;return function(C){var d,O;var H=((d=q.loggingDirectives)==null?0:(O=d.clientVeSpec)==null?0:O.uiType)?_.C6(q.loggingDirectives.clientVeSpec.uiType):void 0;Y.clickedVisualElement||(Y.clickedVisualElement=H);H=ESj(q,Z);w(H,C);H=_.P(H);for(d=H.next();!d.done;d=H.next()){d=d.value;O=r;var L=C,S=Y;S.form?S.form.event=L:S.form={element:O,event:L};ej(d,S)}}};
ESj=function(q,Z){var w=[];Z?(q.toggledCommand&&w.push(q.toggledCommand),q.toggledServiceEndpoint&&w.push(q.toggledServiceEndpoint)):(q.defaultCommand&&w.push(q.defaultCommand),q.defaultServiceEndpoint&&w.push(q.defaultServiceEndpoint),q.defaultNavigationEndpoint&&w.push(q.defaultNavigationEndpoint));return w};
TPO=function(q,Z){var w=q.toggledStyle||q.style,r;switch((r=Z?w:q.style)==null?void 0:r.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"}}};
Up6=function(q,Z){Z=Z.uniqueId+"-border";var w,r;var Y=(r=(w=_.t().resolve(_.Gj(_.RQ)))==null?void 0:w())!=null?r:!1;return{animationRef:q,animationConfig:{name:Z,autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+(Y?"dark":"light")+"_v2.json"}}};
_.mj=function(){return _.V(function(q){return q.nextAddress==1?_.W(q,_.t().resolve(_.F6),2):q.return(_.t().resolve(_.X6)())})};
_.A7=function(){return vF(function(){return{lottieEl:void 0}})};
kV9=function(q,Z){return q.startsWith(Z.uniqueId)};
KzT=function(q){var Z,w;_.V(function(r){if(r.nextAddress==1)return _.W(r,_.mj(),2);Z=r.yieldResult;if((w=Z)==null||!w.addEventListener)return f6(),r.return();Z.addEventListener("onCueRangeEnter",q);_.ub(r)})};
spO=function(q){var Z,w;_.V(function(r){if(r.nextAddress==1)return _.W(r,_.mj(),2);Z=r.yieldResult;if((w=Z)==null||!w.removeEventListener)return f6(),r.return();Z.removeEventListener("onCueRangeEnter",q);_.ub(r)})};
I0O=function(q){var Z,w,r,Y,C;_.V(function(d){if(d.nextAddress==1)return _.W(d,_.mj(),2);Z=d.yieldResult;if((w=Z)==null||!w.addCueRange)return f6(),d.return();r=_.P(q.timings);for(Y=r.next();!Y.done;Y=r.next())C=Y.value,Z.addCueRange(q.uniqueId+"-"+C,C/1E3,(C+100)/1E3);_.ub(d)})};
caX=function(q){var Z,w,r,Y,C;_.V(function(d){if(d.nextAddress==1)return _.W(d,_.mj(),2);Z=d.yieldResult;if((w=Z)==null||!w.removeCueRange)return f6(),d.return();r=_.P(q.timings);for(Y=r.next();!Y.done;Y=r.next())C=Y.value,Z.removeCueRange(q.uniqueId+"-"+C);_.ub(d)})};
MMz=function(q){return q.join("")};
Fzz=function(){var q,Z,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,_.mj(),2);q=r.yieldResult;if((Z=q)==null||!Z.getPlayerState)return f6(),r.return();w=q.getPlayerState();return r.return(w===2)})};
f6=function(){_.bx(new _.df("Smartimation player does not exist or is corrupted"))};
psz=function(q){var Z=NP1;l09.push(q);GVj||(Z(function(){for(var w=_.P(l09),r=w.next();!r.done;r=w.next())r=r.value,r();l09.length=0;GVj=!1}),GVj=!0)};
NP1=function(q){Promise.resolve().then(q)};
Dd=function(q){q=_.P($lj(q));var Z=q.next().value,w=q.next().value,r=!1;_.Ls(function(){return function(){r=!0}});
return[Z,function(Y){psz(function(){r&&!_.b("cow_prevent_state_setter_after_cleanup_killswitch")||w(Y)})}]};
mpj=function(q){function Z(L){var S;return _.V(function(v){if(v.nextAddress==1)return(S=!kV9(L,r)||!r.enabled)?v.jumpTo(2):_.W(v,Fzz(),3);v.nextAddress!=2&&(S=v.yieldResult);if(S)return v.return();w();setTimeout(function(){H(!1)},1500);
_.ub(v)})}
function w(){setTimeout(function(){H(!0);var L;(L=C.lottieEl)==null||L.goToAndPlay(0)},150)}
var r=q.settings;var Y=q.className;q=q.children;var C=_.A7(),d=_.P(Dd(!1)),O=d.next().value,H=d.next().value;r||(r={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.bx(new _.df("Smartimation Settings is undefined")));uO(function(){if(r.experimentEnabled)return r.enabled?KzT(Z):(H(!1),spO(Z)),function(){spO(Z)}},[r.enabled,
r.experimentEnabled]);uO(function(){if(r.experimentEnabled)return I0O(r),function(){caX(r)}},[MMz(r.timings)]);
return _.u("yt-smartimation",{class:_.GL(Y,Xsj(O,r))},_.Fs(r.experimentEnabled,function(){return _.u("div",{class:"smartimation__border"},_.u(GN9,{className:"smartimation__border-gradient",data:Up6(C,r)}))}),_.u("div",{class:"smartimation__content"},q))};
Xsj=function(q,Z){var w=["smartimation"];Z.experimentEnabled&&w.push("smartimation--experiment-enabled");q&&w.push("smartimation--active-border");try{var r;var Y=(r=window.CSS)!=null&&r.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(C){_.bx(new _.df("Smartimation CSS.supports threw an error")),Y=!1}Y&&w.push("smartimation--enable-masking");
return w.join(" ")};
Aa1=function(){try{var q;return(q=window.CSS)!=null&&q.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(Z){return _.bx(new _.df("Smartimation CSS.supports threw an error")),!1}};
qHT=function(q,Z,w,r,Y){var C=q.playlistId?f08:Dpe;Z=Z();w=w();Y=!!q.videoId&&Y()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.PX(Z))return hJX({data:q,actionType:C,disabled:Y},w);if(q.videoId&&r())return yaj({data:q,actionType:C,disabled:Y});switch(Z){case "TRANSFER_STATE_UNKNOWN":return yaj({data:q,actionType:C,disabled:Y});case "TRANSFER_STATE_FAILED":return q.videoId?irO({data:q,actionType:C,disabled:Y}):gS2({data:q,actionType:C,disabled:Y});case "TRANSFER_STATE_COMPLETE":return gS2({data:q,
actionType:C,disabled:Y});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return hJX({data:q,actionType:C,disabled:Y},w);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return q.videoId?irO({data:q,actionType:C,disabled:Y}):yaj({data:q,actionType:C,disabled:Y});default:return yaj({data:q,actionType:C,disabled:Y})}};
ZWI=function(q,Z){var w=q.onTapCommand,r=_.oQ(w);if(q.videoId&&_.J(r,_.h7))return _.J(r,_.h7).action=Z,w;q.playlistId&&_.J(r,_.yB)&&(_.J(r,_.yB).action=Z);return w};
yaj=function(q){var Z=q.data;var w=q.actionType;q=q.disabled;return{text:w9j,iconType:"OFFLINE_DOWNLOAD",onTap:ZWI(Z,w.ACTION_ADD),disabled:q}};
hJX=function(q,Z){var w=q.data;var r=q.actionType;q=q.disabled;var Y="OFFLINE_DOWNLOAD";Z>=0&&Z<=.1?Y="OFFLINE_DOWNLOADING_ZERO":Z>.1&&Z<=.3?Y="OFFLINE_DOWNLOADING_TWENTY":Z>.3&&Z<=.5?Y="OFFLINE_DOWNLOADING_FORTY":Z>.5&&Z<=.7?Y="OFFLINE_DOWNLOADING_SIXTY":Z>.7&&Z<1?Y="OFFLINE_DOWNLOADING_EIGHTY":Z===1&&(Y="OFFLINE_PIN");return{text:rV2,iconType:Y,onTap:ZWI(w,r.ACTION_REMOVE_WITH_PROMPT),disabled:q}};
gS2=function(q){var Z=q.data;var w=q.actionType;q=q.disabled;return{text:YHj,iconType:"OFFLINE_PIN",onTap:ZWI(Z,w.ACTION_REMOVE_WITH_PROMPT),disabled:q}};
irO=function(q){var Z=q.data;var w=q.actionType;q=q.disabled;return{text:$3N,iconType:"OFFLINE_DOWNLOAD",onTap:ZWI(Z,w.ACTION_RETRY),disabled:q}};
e_2=function(){var q=_.P(Dd(!1)),Z=q.next().value,w=q.next().value;return function(){w(!Z)}};
Cu2=function(q){return vF(function(){return{value:q}})};
PuT=function(q,Z){var w=Cu2(q),r=Cu2(Z);uO(function(){w.value=q},[q]);
uO(function(){r.value=Z},Z&&Z.length>=1?Z:[void 0]);
var Y=vF(function(){return{value:void 0}});
if(q!==w.value||r.value!==Z||Y.value===void 0)Y.value=zp(q,Z);var C=e_2();_.Ls(function(){function d(){var H=zp(w.value,Z);H!==Y.value&&(Y.value=H,C())}
var O=_.JJ().subscribe(d);d();return O});
return Y.value};
_.il=function(q,Z){return PuT(q,[Z])};
_.g6=function(q,Z){var w=Ze2();return _.$6(function(){w();return zp(q,[_.jG(Z)||""])},void 0,"HaeHEc")};
d3j=function(q){var Z=_.g6(_.RZ,function(){return q().videoId}),w=_.g6(_.bF,function(){return q().playlistId});
return function(){return q().videoId?Z:q().playlistId?w:_.P(_.qo("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
VN6=function(q){var Z=_.g6(J0,function(){return q().videoId}),w=_.g6(_.NFO,function(){return q().playlistId});
return function(){return q().videoId?Z:q().playlistId?w:_.P(_.qo(0,void 0,"K4tgOc")).next().value}};
OWX=function(q){var Z=_.g6(_.Dk6,function(){return q().videoId});
return function(){return q().videoId?Z:_.P(_.qo(!1,void 0,"Oaxwcf")).next().value}};
HWX=function(q){var Z=_.g6(pV8,function(){return q().videoId});
return function(){return q().videoId?Z:_.P(_.qo("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
WkX=function(){return{}};
LkT=function(q){var Z=q.backgroundLottieRef;var w=q.foregroundLottieRef;var r=q.children;var Y=q.wrapperClass;q=q.disableAnimation;q=(_.b("web_animated_actions")||_.b("web_animated_actions_v2"))&&!q;return _.u("yt-animated-action",{class:_.GL("animated-action__container",Y)},_.u("div",{class:"animated-action__content-with-background"},_.Fs(q,function(){return _.u(oy9,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:Z,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(uo6()?"dark":"light")+"_v5.json"}}})}),r),_.Fs(q,function(){return _.u(oy9,{lottiePlayerProps:{animationRef:w,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(uo6()?"dark":"light")+"_v4.json"}}})}))};
oy9=function(q){var Z=q.wrapperClass;var w=q.lottieClass;q=q.lottiePlayerProps;return _.u("div",{class:_.XA("animated-action__lottie",Z),"aria-hidden":"true"},_.u(GN9,{className:w,data:q}))};
uo6=function(){var q,Z;return(Z=(q=_.t().resolve(_.Gj(_.RQ)))==null?void 0:q())!=null?Z:!1};
SHj=function(){var q,Z;return(Z=(q=_.t().resolve(_.Gj(_.RQ)))==null?void 0:q())!=null?Z:!1};
jIj=function(q,Z){q=q===void 0?vy8:q;switch(Z.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},q,{isOpen:Z.payload});default:return q}};
R_8=function(q,Z){q=q===void 0?tNj:q;switch(Z.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},q,{isAllowed:Z.payload});default:return q}};
JV2=function(q,Z){q=q===void 0?bW6:q;switch(Z.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},q,{errorMessage:Z.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},q,{title:Z.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},q,{privacy:Z.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},q,{isDisabled:Z.payload});default:return q}};
Buj=function(q,Z){q=q===void 0?z_X:q;switch(Z.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},q,{isOpen:Z.payload});default:return q}};
ny2=function(q,Z){q=q===void 0?ay6:q;switch(Z.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},q,{isFullscreen:Z.payload});case "SET_NAVIGATION_BUTTON":var w=Z.payload.targetId,r=Object.assign({},q.navigationButtons);r[w]=Z.payload.button;return Object.assign({},q,{navigationButtons:r});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},q,{topPanelId:Z.payload});case "SET_SECONDARY_HEADER":return w=Z.payload.panelId,r=Object.assign({},q.secondaryHeader),r[w]=Z.payload.secondaryHeader,
Object.assign({},q,{secondaryHeader:r});default:return q}};
TuT=function(){return YQ(Object.assign({},{entities:ik6,voiceSearch:Ka1,engagementPanel:ny2,bottomSheet:jIj,cinematicSetting:R_8,shorts:GGN,drawerLayout:Buj,createPlaylist:JV2,locationCollection:QII,reportChannel:Ey1,reportForm:x3e},pET))};
U3X=function(q,Z){return"https://www.gstatic.com/youtube/img/lottie/"+q+"/"+Z+".json"};
kmj=function(q){return{lottiePlayerProps:{animationConfig:{name:q.name,path:U3X("custom_animated_like_icon",q.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:q.totalFrames,lazyLoad:!0}};
Kk2=function(q,Z){_.v5.addLowPriorityJob(function(){var w,r,Y;return _.V(function(C){switch(C.nextAddress){case 1:return _.d9(C,2),_.W(C,UVT(),4);case 4:return _.W(C,fetch(q),5);case 5:return w=C.yieldResult,_.W(C,w.json(),6);case 6:r=C.yieldResult;lm.set(q,r);requestAnimationFrame(function(){Z(r)});
_.QL(C,0);break;case 2:Y=_.o3(C),_.bx(Y),_.ub(C)}})})};
sI8=function(q){var Z={animationConfig:{},listeners:{}},w=function(){q(!0)};
Z.listeners.data_failed=w;Z.listeners.error=w;Z.listeners.data_ready=function(){q(!1)};
return Z};
qA=function(q){var Z=q.model;var w=q.subscribed;var r=q.isOverlay;var Y=q.element;var C=q.commandController;var d=q.notificationState;if(w){var O,H;var L=(Z==null?void 0:(O=Z.buttonStyle)==null?void 0:O.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:Z==null?void 0:(H=Z.unsubscribeButtonContent)==null?void 0:H.buttonText}else{var S;L=Z==null?void 0:(S=Z.subscribeButtonContent)==null?void 0:S.buttonText}a:{var v;switch(Z==null?void 0:(v=Z.buttonStyle)==
null?void 0:v.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":O="S";break a;default:O="M"}}a:if(r)r="overlay";else switch(Z.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":r="overlay";break a;default:r="mono"}a:if(w)var R="tonal";else switch((R=Z.buttonStyle)==
null?void 0:R.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":R="tonal";break a;default:R="filled"}return{style:r,type:R,state:Z.disableSubscribeButton?"disabled":"active",size:O,focused:q.focused,toggled:w,accessibilityLabel:Iy2(Z,w,d),buttonText:L,iconPosition:Z.disableNotificationBell?"none":"leading-trailing",onTap:cVz(Z,w,Y,C),disableTextEllipsis:!!q.disableTextEllipsis}};
cVz=function(q,Z,w,r){return function(Y){if(Z){var C;var d=q.disableNotificationBell?_.oQ(q==null?void 0:(C=q.unsubscribeButtonContent)==null?void 0:C.onTapCommand):_.oQ(q==null?void 0:q.onShowSubscriptionOptions)}else{var O;d=_.oQ(q==null?void 0:(O=q.subscribeButtonContent)==null?void 0:O.onTapCommand)}d&&ej(d,{form:{element:w},commandController:r});Y.stopPropagation()}};
Iy2=function(q,Z,w){if(Z){if(q==null?0:q.disableNotificationBell){var r;return q==null?void 0:(r=q.unsubscribeButtonContent)==null?void 0:r.accessibilityText}switch(w){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var Y;return q==null?void 0:(Y=q.bellAccessibilityData)==null?void 0:Y.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var C;return q==null?void 0:(C=q.bellAccessibilityData)==null?void 0:C.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var d;return q==null?void 0:(d=
q.bellAccessibilityData)==null?void 0:d.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var O;return q==null?void 0:(O=q.bellAccessibilityData)==null?void 0:O.disabledLabel;default:var H;return q==null?void 0:(H=q.unsubscribeButtonContent)==null?void 0:H.accessibilityText}}else{var L;return q==null?void 0:(L=q.subscribeButtonContent)==null?void 0:L.accessibilityText}};
Zv=function(q){if(!q)return null;switch(q){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":q="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":q="NOTIFICATIONS_OFF";break;default:q="NOTIFICATIONS_NONE"}return q};
MNj=function(q,Z,w){w.subscribed!==Z&&((w=w.key)&&_.Bp(_.wp("subscriptionStateEntity",w,{key:w,subscribed:Z})),q.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:Z})),Z||_.yY(q,"yt-unsubscribe-action"))};
NuT=function(q){q=_.J(_.oQ(q),_.rp);var Z,w,r,Y;return(Y=_.J(q==null?void 0:(Z=q.panelLoadingStrategy)==null?void 0:(w=Z.inlineContent)==null?void 0:(r=w.sheetViewModel)==null?void 0:r.content,Fkj))==null?void 0:Y.listItems};
ly1=function(q,Z){if(q.onShowSubscriptionOptions&&Z&&(q=NuT(q.onShowSubscriptionOptions),q!=null&&q.length)){var w=Zv(Z);q.forEach(function(r){r=_.J(r,_.YL);var Y,C,d,O,H=r==null?void 0:(Y=r.leadingImage)==null?void 0:(C=Y.sources)==null?void 0:(d=C[0])==null?void 0:(O=d.clientResource)==null?void 0:O.imageName;r&&H&&(r.isSelected=H===w)})}};
Gmj=function(q,Z,w,r){Z&&w?q.style.width=w+"px":!Z&&r&&(q.style.width=r+"px")};
p9N=function(q,Z,w){var r;(r=q.lottieEl)==null||r.goToAndPlay(0);var Y;(Y=Z.lottieEl)==null||Y.goToAndPlay(0);_.$L(_.v5,function(){var C;(C=w.lottieEl)==null||C.goToAndPlay(0)},300)};
D3T=function(q){var Z=_.Iw(),w=_.Iw(),r=_.Iw(),Y=_.A7(),C=_.A7(),d=_.A7(),O=_.t().resolve(X9O),H,L=(H=_.il(_.p6,q.data.stateEntityStoreKey))!=null?H:void 0,S,v,R,B=(R=_.il(br8,(v=(S=q.data.notificationStateEntityStoreKeys)==null?void 0:S.subsNotificationStateKey)!=null?v:""))!=null?R:void 0;H=!!q.data.disableNotificationBell;var n=!q.data.enableSubscribeButtonPostClickAnimation;S=_.P(Dd(0));var x=S.next().value,K=S.next().value;S=_.P(Dd(0));var k=S.next().value,G=S.next().value;S=_.P(Dd(!1));var rz=
S.next().value,f=S.next().value;S=_.P(Dd(!1));var eO=S.next().value,g=S.next().value,H6=j9(!1),nX=j9("");S=_.P(Dd(!1));var Qj=S.next().value,SO=S.next().value,Te=function(){g(!0);_.$L(_.v5,function(){g(!1)},1500)};
uO(function(){eO&&!n&&L&&p9N(Y,C,d)},[eO]);
uO(function(){!n&&L&&(q.animateWidth&&Gmj(Z.value,!!L.subscribed,x,k),L.subscribed&&L.key===nX.value&&Te(),L.key&&(nX.value=L.key))},[L==null?void 0:L.subscribed,
L==null?void 0:L.key]);var Ze=S9(function(){var Rh=q.data,xg=!(L==null||!L.subscribed),ZF=!!q.isOverlay,mm=rz?Z.value:void 0,CX=B==null?void 0:B.state;ly1(Rh,CX);return qA({model:Rh,subscribed:xg,isOverlay:ZF,element:mm,notificationState:CX,disableTextEllipsis:!0,focused:Qj})},[q.data,
L,B,Qj,q.isOverlay,rz]),W1=function(){var Rh=_.t().resolve(_.Gj(_.er));Rh&&SO(Rh.isKeyBoardInUse())},A2=function(){SO(!1)};
_.MU(Z,"yt-service-request-sent",function(Rh){f9();L&&(Rh.detail.endpoint.subscribeEndpoint||Rh.detail.endpoint.unsubscribeEndpoint)&&MNj(Z.value,!L.subscribed,L)});
_.sU("yt-player-subscribe",function(Rh){L&&Rh===q.data.channelId&&MNj(Z.value,!0,L)});
_.sU("yt-player-unsubscribe",function(Rh){L&&Rh===q.data.channelId&&MNj(Z.value,!1,L)});
_.sU("yt-update-subscribe-button-action",function(Rh){Rh=_.J(Rh,m32);L&&Rh&&Rh.channelId===q.data.channelId&&MNj(Z.value,!!Rh.subscribed,L)});
_.Ls(function(){Z.value&&(Z.value.addEventListener("focusin",W1),Z.value.addEventListener("focusout",A2));_.WO(_.v5,function(){f9()});
f(!0);return function(){Z.value&&(Z.value.removeEventListener("focusin",W1),Z.value.removeEventListener("focusout",A2))}});
var f9=function(){if(!n&&q.animateWidth&&(w==null?0:w.value)&&(r==null?0:r.value)&&!H6.value){var Rh=_.P((L==null?0:L.subscribed)?[w,r]:[r,w]),xg=Rh.next().value;Rh=Rh.next().value;xg=Math.ceil(xg.value.getBoundingClientRect().width);Rh=Math.ceil(Rh.value.getBoundingClientRect().width);K(xg);G(Rh);Gmj(Z.value,!(L==null||!L.subscribed),xg,Rh);H6.value=!0}},Dl=function(){var Rh=Zv(B==null?void 0:B.state);
return n||Rh!=="NOTIFICATIONS_NONE"?function(){return O(Rh)}:function(){zL(AVe)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:d})}};
S=function(){var Rh=Zv(B==null?void 0:B.state);return n||Rh!=="NOTIFICATIONS_NONE"?function(){return _.u(_.q0,{icon:Rh!=null?Rh:void 0})}:function(){return _.u(AVe,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:d})}};
var $g=!(L==null||!L.subscribed)&&!H&&!(B==null||!B.state),De=!(L==null?0:L.subscribed),n9=De&&!H&&!(B==null||!B.state);H={};v={};return _.u("yt-subscribe-button-view-model",{class:_.XA("yt-subscribe-button-view-model-wiz",(H["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(L==null||!L.subscribed)&&q.animateWidth&&eO,H["yt-subscribe-button-view-model-wiz--hidden"]=!(L==null?0:L.subscribed)&&q.data.hideWhenUnsubscribed,H)),el:Z},_.u(fyO,{backgroundLottieRef:Y,foregroundLottieRef:C,wrapperClass:_.XA("yt-subscribe-button-view-model-wiz__animated-action-wrapper",
(v["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=q.animateWidth&&eO,v["yt-subscribe-button-view-model-wiz__static-width"]=!q.animateWidth,v)),disableAnimation:n},_.u("div",{el:w,class:_.XA("yt-subscribe-button-view-model-wiz__container"),idomKey:q.data.channelId},_.b("web_wiz_button_shape")?_.u(Lpj,{data:Ze,icon:$g?S():void 0,secondaryIcon:$g?function(){return _.u(_.q0,{icon:"EXPAND"})}:void 0}):_.u(Fu,null,function(){JM1(Ze,$g?Dl():void 0,$g?function(){return O("EXPAND")}:
void 0)}))),_.u("div",{el:r,
class:"yt-subscribe-button-view-model-wiz__invisible"},!q.animateWidth||n||H6.value?null:_.b("web_wiz_button_shape")?_.u(Lpj,{data:qA({model:q.data,subscribed:De,isOverlay:!!q.isOverlay,element:Z.value,disableTextEllipsis:!0}),icon:n9?function(){var Rh;return _.u(_.q0,{icon:(Rh=Zv(B==null?void 0:B.state))!=null?Rh:void 0})}:void 0,
secondaryIcon:n9?function(){return _.u(_.q0,{icon:"EXPAND"})}:void 0}):_.u(Fu,null,function(){JM1(qA({model:q.data,
subscribed:De,isOverlay:!!q.isOverlay,element:Z.value,disableTextEllipsis:!0}),n9?function(){return O(Zv(B==null?void 0:B.state))}:function(){},n9?function(){return O("EXPAND")}:void 0)})))};
h_N=function(q){if(q){switch(q){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":q="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":q="NOTIFICATIONS_OFF";break;default:q="NOTIFICATIONS_NONE"}return q}};
yVX=function(q,Z,w){w.subscribed!==Z&&((w=w.key)&&_.Bp(_.wp("subscriptionStateEntity",w,{key:w,subscribed:Z})),q.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:Z})),Z||_.yY(q,"yt-unsubscribe-action"))};
iWI=function(q){q=_.J(_.oQ(q),_.rp);var Z,w,r,Y;return(Y=_.J(q==null?void 0:(Z=q.panelLoadingStrategy)==null?void 0:(w=Z.inlineContent)==null?void 0:(r=w.sheetViewModel)==null?void 0:r.content,Fkj))==null?void 0:Y.listItems};
gyT=function(q,Z){if(q.onShowSubscriptionOptions&&Z&&(q=iWI(q.onShowSubscriptionOptions),q!=null&&q.length)){var w=h_N(Z);q.forEach(function(r){r=_.J(r,_.YL);var Y,C,d,O,H=r==null?void 0:(Y=r.leadingImage)==null?void 0:(C=Y.sources)==null?void 0:(d=C[0])==null?void 0:(O=d.clientResource)==null?void 0:O.imageName;r&&H&&(r.isSelected=H===w)})}};
qdT=function(q,Z,w,r){Z&&w?q.style.width=w+"px":!Z&&r&&(q.style.width=r+"px")};
ZET=function(q,Z,w){var r;(r=q.lottieEl)==null||r.goToAndPlay(0);var Y;(Y=Z.lottieEl)==null||Y.goToAndPlay(0);_.$L(_.v5,function(){var C;(C=w.lottieEl)==null||C.goToAndPlay(0)},300)};
CV=function(){return _.t().resolve(_.Gj(wn1))||{}};
rh8=function(q){return typeof q==="function"};
_.Px=function(q){Object.keys(q);var Z=function(w,r){var Y=Z.mapping||q;if(!w)return _.u(_.lS,null);if(Array.isArray(w)&&(w=Yd2(Y,Z,w),Array.isArray(w))){if(!w.length)return _.u(_.lS,null);if(w.length>1){for(var C=!1,d=!1,O=[],H={},L=0;L<w.length;H={data$jscomp$1819:void 0},L++)if(H.data$jscomp$1819=w[L],H.data$jscomp$1819){var S=$mT(H.data$jscomp$1819,Y),v=S.mappingEntry;S=S.rendererName;v&&S&&(v&&(!rh8(v)&&eQj(v)&&(d=!0),!rh8(v)&&v.asyncId||(C=!0)),O.push(Cj1(H.data$jscomp$1819,v,S,Z,r)))}return d&&
!C?_.u(_.lS,null,PjO()):_.u(_.lS,null,O)}w=w[0]}if(!w)return _.u(_.lS,null);w=Yd2(Y,Z,[w])[0];if(!w)return _.u(_.lS,null);C=$mT(w,Y);Y=C.mappingEntry;C=C.rendererName;return Y&&C?_.u(_.lS,null,Cj1(w,Y,C,Z,r)):_.u(_.lS,null)};
Z.mapping=q;return Z};
_.dm9=function(q){var Z=void 0,w;for(w in q)if(q.hasOwnProperty(w)){Z=w;break}return Z};
Yd2=function(q,Z,w){var r,Y=(r=CV().preProcessOptions)==null?void 0:r.idomOptions;if(!Y)return w;CV();return Y.preProcessPropsIdom(q,w,Z.triggerRerender)};
$mT=function(q,Z){return(q=_.dm9(q))?{mappingEntry:Z[q],rendererName:q}:{mappingEntry:void 0,rendererName:void 0}};
Cj1=function(q,Z,w,r,Y){if(!Z)return _.u(_.lS,null);var C={};Y&&Y[w]&&(C=Object.assign({},Y[w]));q[w]!==void 0&&(C.data=q[w]);if(rh8(Z))return Z.debugName||(Z.debugName=w),_.u(Z,C);Z.asyncId&&(r.pendingIdsMap=r.pendingIdsMap||{},r.pendingIdsMap[w]=Z.asyncId);return Z.templateFn?Z.templateFn(C):eQj(Z)?PjO():_.u(_.lS,null)};
eQj=function(q){var Z;return(Z=q.showPlaceholder)!=null?Z:CV().defaultShowPlaceholder};
PjO=function(){var q=CV().placeholder;return q()};
VPO=function(q,Z){Z=Z===void 0?{shouldPersist:!0}:Z;return{useUpdatableData:function(w,r){var Y=[],C=_.P(_.hE(function(){var L=w();if(r!=null&&r.length&&Y){var S=Y.length>0;for(var v=!1,R=0;R<r.length;R++){var B=r[R]();S&&B!==Y[R]&&(v=!0);Y[R]=B}S=v}else S=!1;if(S)_.dp.remove(H());else if(S=_.dp.get(H()))return S;return L})),d=C.next().value,O=C.next().value,H=_.$6(function(){return q(w())},void 0,"VFraLb");
_.L7(function(){if(H()!=null){V0.set(H(),[d,O,!1]);var L=H();_.SG(function(){V0.delete(L)})}});
return[d,function(L){O(L);Z.shouldPersist&&_.dp.set(H(),L)}]},
getData:function(w){var r;return(r=V0.get(q(w)))==null?void 0:r[0]()},
updateData:function(w,r){w=q(w);var Y=V0.get(w);if(!Y)return!1;var C=_.P(Y);Y=C.next().value;C=C.next().value;r=r(Y());C(r);Z.shouldPersist&&_.dp.set(w,r);return!0},
useUpdatableDataIdom:function(w,r){var Y=q(w),C=_.dp.get(Y),d=_.P(Dd(C!=null?C:w)),O=d.next().value,H=d.next().value,L=j9(C!=null?C:w);uO(function(){if(Y!=null)return V0.set(Y,[function(){return L.value},
function(S){H(S);L.value=S},
V0.has(Y)]),_.v5.addJob(function(){_.OM(_.v5,function(){var S=V0.get(Y);S&&(S[2]=!1)},0)},8),function(){var S;
((S=V0.get(Y))==null?0:S[2])||V0.delete(Y)}},[Y]);
uO(function(){O!==w&&(H(w),L.value=w)},r?[].concat(_.Ju(r),[Y]):[Y]);
return[O,H]}}};
OEz=function(q){var Z=_.P(_.qo(!0,void 0,"bKtO6d")),w=Z.next().value;Z.next();return function(){var r=iS(q.children());return _.u(_.PF,{cond:w,then:function(){return r},
else:q.fallback})}()};
_.Hx=function(q){var Z=HEj(q),w=Z.data,r=Z.mapping,Y=Z.wrapper;Z=Z.pendingFallback;var C=function(){return WEj(_.jG(w))},d=function(){var O=C(),H=[];
O=_.P(O);for(var L=O.next();!L.done;L=O.next()){var S=void 0;L=L.value;var v=void 0;for(S in L)if(!(!L).hasOwnProperty(S)){v=S;break}(S=v)&&H.push(S)}return H};
return q.data?_.u(OEz,{fallback:Z},function(){return _.u(_.dA,{each:d},function(O,H){var L=Y?function(v){return Y(function(){return r[O](v,H)},S,H)}:function(v){return r[O](v,H)};
L.debugName||(L.debugName=String(O));if(!r[String(O)])return document.createComment("");var S=o02(C,O,H);return _.u(L,{data:S})})}):_.u(_.lS,null)};
HEj=function(q){var Z=q.targetId||uF1(q.children);if(!q.data||!Z||_.b("mweb_new_replaceables_killswitch"))return Object.assign({},q,{mapping:q.children,wrapper:void 0});var w="stamper-"+LEz++,r=function(){var O;return(O=_.jG(q.targetId))!=null?O:w};
Z=_.P(Sdz(function(){var O=WEj(q.data());O.targetId=r;return O})).next().value;
var Y=Object.assign({},CV().replaceableMapping,q.children);if(q.replacementWrapper){var C=Y.notificationTextRenderer,d=Y.notificationMultiActionRenderer;C&&(Y.notificationTextRenderer=function(O,H){return q.replacementWrapper(C({data:O.data},H))});
d&&(Y.notificationMultiActionRenderer=function(O,H){return q.replacementWrapper(d({data:O.data},H))})}return Object.assign({},q,{data:Z,
mapping:Y,wrapper:function(O,H,L){return Pr2({targetId:r,stamperIndex:L},O)}})};
o02=function(q,Z,w){var r;return _.$6(function(){var Y=q()[w()];if(Y)r=Y[Z];else return _.bx(new _.df("Stamper failed to find "+String(Z)+" at index "+w()+" of data array of length "+(q().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),r;return Y[Z]},void 0,"DHuMIe")};
uF1=function(q){q=_.P(Object.keys(q));for(var Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,v0T.includes(Z)||jdN.includes(Z)||tPO.includes(Z))return!0;return!1};
WEj=function(q){return q?Array.isArray(q)?q:[q]:[]};
RQO=function(q){q=_.J(q,_.Wx);return(q==null?void 0:q.iconName)&&!(q==null?0:q.title)};
zQI=function(q,Z,w){var r;return _.u(_.lS,null,q==null?void 0:(r=q.actions)==null?void 0:r.map(function(Y){return _.u("div",{class:function(){var C={"yt-flexible-actions-view-model-wiz__action":!0};C["yt-flexible-actions-view-model-wiz__action--row-action"]=Z;C["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(RQO(Y))var d=!0;else if(d=_.J(Y,_.o5),(d==null?0:d.isToggled)&&RQO(d==null?void 0:d.toggledButtonViewModel)||(d==null||!d.isToggled)&&RQO(d==null?void 0:d.defaultButtonViewModel))d=
!0;else{var O;d=((O=_.J(Y,bET))==null?0:O.playlistId)?!0:!1}C=(C["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=d,C["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=w,C);return _.XA(C)}},Jhz([Y],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!Z}}))}))};
B$N=function(q){var Z=q.layout===1,w,r=((w=q.data)==null?void 0:w.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";w={};r=(w["yt-flexible-actions-view-model-wiz"]=!0,w["yt-flexible-actions-view-model-wiz--inline"]=!Z,w["yt-flexible-actions-view-model-wiz--scrollable"]=r,w);var Y,C;return _.u("yt-flexible-actions-view-model",{class:_.XA(q.className,r)},(Y=q.data)==null?void 0:(C=Y.actionsRows)==null?void 0:C.map(function(d){if(Z){var O;return _.u("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
zQI(d,Z,!((O=q.data)==null||!O.respectActionIntrinsicWidth)))}return zQI(d,Z,!1)}))};
aRI=function(q){return!(q==null||!q.iconName||(q==null?0:q.title))};
n0N=function(q){var Z=_.J(q.data.toggleButtonViewModel,_.o5),w,r=(w=q.data.dislikeEntityKey)!=null?w:"",Y=_.il(ul,r);Z=Object.assign({},Z,{isToggled:Y?Y.likeStatus==="DISLIKE":Z.isToggled});return _.u("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.u(_.uo,{data:Z,buttonShapeOverrides:q.buttonShapeOverrideables,onToggle:function(C){Y&&C!==(Y.likeStatus==="DISLIKE")&&Y.key&&_.Bp(_.LV("likeStatusEntity",Y.key,{likeStatus:C?"DISLIKE":"INDIFFERENT",hadUserInteraction:C}))}}))};
E09=function(q){var Z=_.b("web_supports_animations_api"),w=_.J(q.data.toggleButtonViewModel,_.o5),r,Y,C,d,O=_.P(Dd({numberText:(d=(r=q.likeCountEntity)==null?void 0:(Y=r.likeCountIfIndifferent)==null?void 0:Y.content)!=null?d:"",numberValue:Number((C=q.likeCountEntity)==null?void 0:C.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),H=O.next().value,L=O.next().value,S,v,R,B;r=_.P(Dd({numberText:(B=(S=q.likeCountEntity)==null?void 0:(v=S.likeCountIfLiked)==null?void 0:v.content)!=null?
B:"",numberValue:Number((R=q.likeCountEntity)==null?void 0:R.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));S=r.next().value;var n=r.next().value;v=_.P(Dd());var x=v.next().value,K=v.next().value,k;v=(k=q.data.likeStatusEntityKey)!=null?k:"";var G,rz;k=(rz=(G=q.likeCountEntity)==null?void 0:G.key)!=null?rz:"";var f=_.il(ul,v),eO=_.il(ZiN,k);G=S9(function(){return(f==null?void 0:f.likeStatus)==="LIKE"},[f]);
uO(function(){var g,H6=eO&&((g=eO.likeCountIfIndifferent)==null?void 0:g.content)!==H.numberText;if(!x&&H6){var nX,Qj;L({numberText:(Qj=eO==null?void 0:(nX=eO.likeCountIfIndifferent)==null?void 0:nX.content)!=null?Qj:"",numberValue:Number(eO==null?void 0:eO.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var SO,Te;n({numberText:(Te=eO==null?void 0:(SO=eO.likeCountIfLiked)==null?void 0:SO.content)!=null?Te:"",numberValue:Number(eO==null?void 0:eO.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[eO]);
w=Object.assign({},w,{isToggled:G});Z=Z&&q.likeCountEntity;return _.u("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.u(_.uo,{data:w,buttonShapeOverrides:q.buttonShapeOverrideables,animatedTextPropsDefault:Z?H:void 0,animatedTextPropsToggled:Z?S:void 0,onToggle:function(g){QdI(g,f,x,K)},
style:function(){return q.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
QdI=function(q,Z,w,r){w&&_.v5.cancelJob(w);w=_.v5.addLowPriorityJob(function(){r(void 0)},5E3);
r(w);Z&&q!==(Z.likeStatus==="LIKE")&&Z.key&&_.Bp(_.wp("likeStatusEntity",Z.key,{key:Z.key,likeStatus:q?"LIKE":"INDIFFERENT",hadUserInteraction:q}))};
KE9=function(q){var Z,w=_.J((Z=q.data)==null?void 0:Z.likeButtonViewModel,xm1),r;Z=_.J((r=q.data)==null?void 0:r.dislikeButtonViewModel,T$e);var Y,C=(Y=_.il(ul,(w==null?void 0:w.likeStatusEntityKey)||""))!=null?Y:w==null?void 0:w.likeStatusEntity;r=S9(function(){var d=q.data,O;d=(d==null?void 0:(O=d.timedAnimationData)==null?void 0:O.animationTiming)||[];return{uniqueId:"like-dislike",timings:d,enabled:(C==null?void 0:C.likeStatus)==="INDIFFERENT"&&d.length>0,experimentEnabled:d.length>0}},[q.data,
C]);return _.u("segmented-like-dislike-button-view-model",{class:_.XA(q.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.u(_.UmN,{settings:r},_.u("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},w?_.u(E09,{data:w,likeCountEntity:q.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,Z?_.u(k_2,{data:Z,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
sd2=function(q,Z){var w=MM.get(q)||{layerNode:Z};w.layerNode=Z;nJ2(q,w);q.getScreenLayer=function(){return Sr(w.layerNode)}};
IRT=function(q){var Z;q=q.parentNode;for(var w;q&&((Z=MM.get(q))==null||!Z.isRenderer)&&!((w=q.polymerController)!=null?w:q).isRenderer_;)q=q.parentNode||q.host;if(Z=q)return MM.get(Z)};
ch2=function(q){if(q){MM.delete(q);var Z=_.t().resolve(pb);ERI(q,Z)}};
FE6=function(q,Z,w){if(w===void 0?0:w){if(w=q.getAttribute("client-ve-type"),Z.data&&!Z.disableReactiveLogging||w)_.uS(function(){MP2(q,_.jG(Z.data))}),_.SG(function(){return void ch2(q)})}else typeof Z.data!=="function"&&MP2(q,Z.data)};
MP2=function(q,Z){N$2++;lRT(q,Z)&&_.v5.addJob(function(){_.OM(_.v5,function(){if(lRT(q,Z)&&q.ownerDocument.documentElement===document.documentElement&&q){var w;if(q.getAttribute("layer")){var r=w=Number(q.getAttribute("layer")),Y=MM.get(q);Y?Y.layerNode.layer=r:sd2(q,new G_z(r));(r=IRT(q))&&(Y=MM.get(q))!=null&&(Y.layerNode.parent=r.layerNode)}else if(w=MM.get(q))w=Sr(w.layerNode);else{w=Sr;r=new G_z;if(Y=IRT(q))r.parent=Y.layerNode;sd2(q,r);w=w(r)}w!=null||(w=0);r=q.getAttribute("client-ve-type");
Y=Number(r);var C=!1;r=!1;var d=MM.get(q),O;if((O=d)&&!(O=d[pnN]!==Z)&&(O=Y)){var H;O=((H=MM.get(q))==null?void 0:H.clientVeType)===void 0}O&&(d[pnN]=Z,C=r=d.isRenderer=!0);MM.has(q)&&(MM.get(q).clientVeType=Y);q.visualElement&&(r=!0);(H=Z==null?void 0:Z.loggingDirectives)&&H.clientVeSpec&&(d=XnT(_.hJ(),q),H=_.mmO(_.iy(),H,d||void 0,w))&&(q.visualElement=H);!q.visualElement&&Y&&C&&(q.veType=Y,H=void 0,_.b("wiz_next_client_ve_parent_fix")&&(H=XnT(_.hJ(),q)),H=_.yy(_.iy(),q,H,w),q.visualElement=H);
r&&(H=_.t().resolve(pb),kc9(q,{data:Z,observer:H,layer:w,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
lRT=function(q,Z){return(Z==null?0:Z.trackingParams)||(Z==null?0:Z.loggingDirectives)||_.J(Z==null?void 0:Z.rendererContext,_.KRT)||q.getAttribute("client-ve-type")?!0:!1};
fR1=function(q){return _.b("cow_logging_in_component_wrapper")?function(Z){FE6(Z,q,!0)}:Ahj};
Ahj=function(){};
_.DmT=function(q,Z){return _.iI(q.entities,"accountLinkStatusEntity",Z)};
hQN=function(q,Z){return _.iI(q.entities,"hatsSurveyEntity",Z)};
yh2=function(q,Z){return _.iI(q.entities,"hatsSurveyStateEntity",Z)};
iET=function(q,Z){return _.iI(q.entities,"quantityIncrementerEntity",Z)};
rNN=function(q){var Z=q.data;var w=q.className===void 0?"":q.className;var r=q.setMinWidth;q=q.forceIconOnly;var Y=_.Iw(fR1({data:Z}));r=r?"ytwAccountLinkButtonViewModelHostMinWidth":"";var C=_.g6(_.DmT,function(){var v;return(v=_.jG(Z).accountLinkStatusEntityKey)!=null?v:""}),d=_.g6(_.DmT,function(){var v;
return(v=_.jG(Z).accountLinkStatusSecondaryEntityKey)!=null?v:""}),O=function(){if(!_.b("web_account_link_secondary_killswitch")){var v,R;
return((v=C())==null?void 0:v.linked)||((R=d())==null?void 0:R.linked)}var B;return(B=C())==null?void 0:B.linked};
_.L7(function(){var v=C();if(v){var R=g09(new qx9,Zv9(new w21,!!v.linked));_.mj().then(function(B){B&&(B.setAccountLinkState(_.Rq(R.JSC$9923_serializeBinary(),4)),B.updateAccountLinkingConfig(!!v.linked))})}});
var H=function(){return _.J(_.jG(Z).toggleButtonViewModel,_.o5)};
_.sU("yt-signal-action-show-account-link-dialog",function(){if(H()){var v=O()?H().toggledButtonViewModel:H().defaultButtonViewModel;v=_.J(v,_.Wx);var R;if((R=C())==null?0:R.isWarning){R=_.J(_.jG(Z).warningButtonViewModel,_.Wx);if(!R){_.xT(Error("Ah"));return}v=R}var B;(R=_.oQ((B=v)==null?void 0:B.onTap))&&_.eK([R],Y.value)}else _.xT(Error("Bh"))});
var L=function(){var v=H();return Object.assign({},v,{isToggled:O()})},S=q?{iconPosition:"icon-only"}:{};
return _.u("account-link-button-view-model",{class:_.XA("ytwAccountLinkButtonViewModelHost",w,r),el:Y,"button-renderer":!0},_.u("div",null,_.u(_.PF,{cond:function(){var v;if((v=C())==null?0:v.isWarning)return(v=_.J(_.jG(Z).warningButtonViewModel,_.Wx))||_.xT(Error("Ah")),v},
then:function(v){return _.u(_.vx,{data:v,buttonOverrides:S})},
else:function(){return _.u(_.uo,{data:L,buttonShapeOverrides:S})}})))};
Yxz=function(q){switch(q){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
$QN=function(q){switch(q){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}};
e0T=function(q){switch(q){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--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.PEX=function(q){var Z=_.m6("web_generic_client_event_wait_period ",0);Z||(Z=3E5);var w=CE8.get(q);!_.b("enable_web_client_experiment_event_timeout_killswitch")&&w&&(0,_.lp)()-w<Z||(CE8.set(q,(0,_.lp)()),_.vO("genericClientExperimentEvent",{eventType:q}))};
Ovj=function(q){var Z=q.data;var w=q.children;var r=dQ6(Z),Y=(Z==null?0:Z.thumbnailSize)?Z.thumbnailSize:"medium";q=!(Z==null||!Z.doubleStack);var C=!(Z==null||!Z.experimentEnabled),d={},O=(d["collections-stack-wiz__collection-stack1"]=!0,d[Vf2(Y)]=!0,d);if(Z==null?0:Z.customClassName1stStack)O[Z.customClassName1stStack]=!0;Y={};var H=(Y["collections-stack-wiz__collection-stack2"]=q,Y["collections-stack-wiz__collection-stack2--responsive-mode"]=Z==null?void 0:Z.enableResponsiveMode,Y);if(Z==null?
0:Z.customClassName2ndStack)H[Z.customClassName2ndStack]=!0;return _.u("yt-collections-stack",{class:"collections-stack-wiz",hidden:!C},_.Fs(Z,function(){return _.u("div",null,_.Fs(Z.doubleStack,function(){return _.u("div",{class:_.XA(H),style:"background-color:"+r})}),_.u("div",{class:_.XA(O),
style:"background-color:"+r}),w)}))};
Vf2=function(q){switch(q){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""}};
dQ6=function(q){if(!q)return"";var Z,w=(Z=_.t().resolve(_.Gj(_.RQ)))==null?void 0:Z(),r;if(!w&&((r=q.vibrantColorPalette)==null?0:r.iconInactiveColor))return Lo(q.vibrantColorPalette.iconInactiveColor,"1");var Y;return w&&((Y=q.darkColorPalette)==null?0:Y.iconInactiveColor)?Lo(q.darkColorPalette.iconInactiveColor,"1"):q.color?Lo(q.color,"1"):q.sampledThumbnailColor?(q=q.sampledThumbnailColor,"rgba("+q.red+","+q.green+","+q.blue+");"):""};
_.jr=function(q,Z){if(!q.includes("DATE_PLACEHOLDER"))return q;var w=new Date(0);w.setUTCSeconds(Z);return q.replace("DATE_PLACEHOLDER",HvT(w))};
_.tL=function(q){q=_.WQT(q);return _.b("web_watch_enable_single_column_grid_view")?q:!1};
_.WQT=function(q){return q.watch.isWatchNarrowWidth};
o9j=function(q,Z,w){return function(r){var Y=q.command;Y&&(ej(Y,{form:{element:w}}),Z([Y],r))}};
LQ1=function(q,Z,w,r,Y){return function(C){var d=uqX(q,w);d&&ej(d,{form:{element:r},commandController:Y});Z&&Z.stopPropagation&&C.stopPropagation()}};
uqX=function(q,Z){if(q.signInEndpoint&&!_.b("web_subscribe_sign_in_endpoint_killswitch"))return q.signInEndpoint;if(Z){if(q.serviceEndpoints)return q.serviceEndpoints[1];if(q.onUnsubscribeEndpoints)return q.onUnsubscribeEndpoints[0]}else{if(q.serviceEndpoints)return q.serviceEndpoints[0];if(q.onSubscribeEndpoints)return q.onSubscribeEndpoints[0]}};
Sxj=function(q,Z){var w,r,Y,C;Z=Z&&((w=q.unsubscribeAccessibility)==null?void 0:(r=w.accessibilityData)==null?void 0:r.label)||((Y=q.subscribeAccessibility)==null?void 0:(C=Y.accessibilityData)==null?void 0:C.label);return q.longSubscriberCountText?[Z,_.kO(q.longSubscriberCountText)].filter(function(d){return d}).join(" "):Z};
R5=function(q,Z){return Z||(q==null?0:q.isChannelDelegate)?"disabled":"active"};
v91=function(q,Z){var w;switch((w=q.style)==null?void 0:w.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:R5(q)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:R5(q)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:R5(q,!0)};case "OVERLAY":return Z?{style:"overlay",type:"tonal",state:R5(q)}:{style:"overlay",type:"filled",state:R5(q)};default:return Z?{style:"mono",type:"tonal",state:R5(q)}:{style:"mono",type:"filled",state:R5(q)}}};
jEX=function(q,Z){var w=q.map(function(r){return r.toString()});
return _.fn(function(r){if(w.includes(r.key)){Z&&r.preventDefault();var Y;(Y=r.currentTarget)==null||Y.click()}})};
_.bo=function(){return jEX(["Enter"])};
_.tfj=function(){return jEX(["Enter"," "],!0)};
_.JL=function(q){if(q.composedPath)return q.composedPath();if(!q.__composedPath){for(var Z=[],w=q.target;w;)Z.push(w),w=w.parentNode;Z.push(window);q.__composedPath=Z}return q.__composedPath};
_.R0j=function(q,Z,w){q=_.P(q);for(var r=q.next();!r.done;r=q.next()){r=r.value;if(r===Z)break;for(var Y=_.P(w),C=Y.next();!C.done;C=Y.next())if(C=C.value,r.tagName===C||r.role==="button"&&C==="BUTTON")return!0}return!1};
JNN=function(q,Z){var w,r=(w=Z.observer)!=null?w:_.t().resolve(pb);if(q){w=bvj(q);var Y=[];Z.showOption&&Y.push(r.observe(q,function(){Z.visibilityCallback(!0)},Z.showOption));
Z.hideOption&&Y.push(r.observe(q,function(){Z.visibilityCallback(!1)},Z.hideOption));
Z.prescanOption&&Z.prescanCallback&&Y.push(r.observe(q,function(){Z.prescanCallback()},Z.prescanOption));
var C;w.visibilityMonitorKeys=((C=w.visibilityMonitorKeys)!=null?C:[]).concat(Y)}};
bvj=function(q){var Z;return(Z=q.polymerController)!=null?Z:q};
_.nV=function(q){return!!_.a5(q)};
_.Q0=function(q,Z){var w=dGX();uO(function(){var r=q.value;if(r)return z0j(r,Z),BoX(r,Z,void 0,void 0,void 0,w)},[Z])};
_.EM=function(q,Z,w,r,Y,C){var d=dGX();_.L7(function(){var O=q.value;O&&(z0j(O,Z(),C),O=BoX(O,Z(),w,r,Y,d),_.SG(O))})};
z0j=function(q,Z,w){var r=a_j(Z),Y=n92(Z);Z=r&&QE2;var C=Y&&E9e;(r||Y)&&JNN(q,{visibilityCallback:function(d){var O=_.t().resolve(_.ps);d&&r?O.resolveCommand(r,{form:{element:w?q:void 0},disableClickTracking:!0}):!d&&Y&&O.resolveCommand(Y,{form:{element:w?q:void 0},disableClickTracking:!0})},
showOption:Z,hideOption:C})};
BoX=function(q,Z,w,r,Y,C){var d=new Map;if(Z=_.a5(Z)){var O;q=(r==null?void 0:(O=r.onTap)==null?void 0:O.value)||q;w=xQ2(Z,q,w==null?void 0:w.onTap,Y,C);q.addEventListener("click",w);d.set("click",w)}return function(){for(var H=_.P(d),L=H.next();!L.done;L=H.next()){var S=_.P(L.value);L=S.next().value;S=S.next().value;q.removeEventListener(L,S)}}};
_.a5=function(q){var Z;return(q=(Z=_.J(q,To2))==null?void 0:Z.onTap)&&_.oQ(q)};
a_j=function(q){var Z;return(q=(Z=_.J(q,To2))==null?void 0:Z.onVisible)&&_.oQ(q)};
n92=function(q){var Z;return(q=(Z=_.J(q,To2))==null?void 0:Z.onHidden)&&_.oQ(q)};
xQ2=function(q,Z,w,r,Y){var C=function(O){_.t().resolve(_.ps).resolveCommand(q,O)},d=function(O){r&&_.R0j(_.JL(O),Z,r)||C(O.target?{form:{element:O.target,
sourceData:q,mutationContext:Y}}:void 0)};
w&&(d=function(O){w(O,C)});
return d};
UQj=function(q){var Z=q.data;var w=q.className;q=q.alwaysShow;var r=_.Iw();_.Q0(r,Z.rendererContext);a:switch(Z.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var Y="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:Y="ytThumbnailHoverOverlayViewModelStyleCover"}Y=_.XA("ytThumbnailHoverOverlayViewModelScrim",Y);var C,d=(C=_.J(Z==null?void 0:Z.rendererContext,_.xL))==null?void 0:C.label,O=_.a5(Z.rendererContext)!==void 0;C=O?"button":void 0;O=O?0:void 0;var H=_.tfj(),L={};return _.u("thumbnail-hover-overlay-view-model",
{el:r,class:_.XA("ytThumbnailHoverOverlayViewModelHost",w,(L.ytThumbnailHoverOverlayViewModelHostForceHover=q,L)),"aria-label":d,role:C,tabindex:O,"on:keypress":H},_.u("div",{class:Y},Z.icon?_.u(_.aQ,{data:Z.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,Z.text?_.u(_.r6,{text:Z.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
kDj=function(q){switch(q){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}};
KQ1=function(q){switch(q){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""}};
sE6=function(q){switch(q){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""}};
I_2=function(q){switch(q){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}};
cNe=function(q){return q==="medium"||q==="48"||q==="large"||q==="extra-large"||q==="extra-extra-large"||q==="giant"};
Mfj=function(q){return!!((q==null?0:q.includes(3))||(q==null?0:q.includes(5)))};
NoT=function(q){return{size:FQe(q.data.avatarImageSize),onTap:q.onTap,decorations:q.decorations||[],badgeText:q.badgeText,accessibilityText:q.accessibilityText,avatarButtonCustomClassName:q.avatarButtonCustomClassName}};
FQe=function(q){switch(q){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_48":return"48";default:return"medium"}};
l_6=function(q){function Z(){w.endpoint&&_.Sp(w.endpoint)}
var w=q.data;var r=q.decorations;var Y=q.avatarButtonCustomClassName;q=q.isOverlay;return _.u("avatar-view-model",null,w.image?_.u(Td,{data:NoT({data:w,onTap:w.endpoint?Z:void 0,decorations:r,badgeText:void 0,accessibilityText:w.accessibilityText,avatarButtonCustomClassName:Y}),image:w.image,iconType:"RADAR_LIVE",overlays:function(){return _.u(UM,{data:w})},
isOverlay:q}):null)};
p2j=function(q){var Z=q.data;var w=q.avatar;var r=q.onTap;var Y=q.element;q=q.commandController;r=r?GDe(r,Y,q):void 0;Y=[];Z.liveData&&Y.push(0);var C;q=(C=Z.liveData)==null?void 0:C.liveBadgeText;var d;C=(d=_.J(Z.rendererContext,_.xL))==null?void 0:d.label;return NoT({data:w,onTap:r,decorations:Y,badgeText:q,accessibilityText:C?C:Z.a11yLabel})};
GDe=function(q,Z,w){return function(){ej(q,{form:{element:Z},commandController:w})}};
X2z=function(q,Z,w,r){return Z?p2j({data:q,avatar:Z,onTap:w,element:r}):{size:"medium"}};
mQI=function(q){var Z=q.data;q=q.className;var w=_.cO(),r=_.J(Z.avatar,_.kL),Y=_.a5(Z.rendererContext),C,d=X2z(Z,r,Y,(C=w.value)!=null?C:void 0);return _.u("yt-decorated-avatar-view-model",{class:_.XA("yt-decorated-avatar-view-model-wiz",q),el:w},_.Fs(r==null?void 0:r.image,function(){var O,H,L;return _.u(Td,{data:d,image:r.image,iconType:"RADAR_LIVE",overlays:function(){return _.u(UM,{data:r})},
idomKey:r==null?void 0:(O=r.image)==null?void 0:(H=O.sources)==null?void 0:(L=H.at(0))==null?void 0:L.url})}))};
ANT=function(q){switch(q){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_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}};
f_N=function(q){switch(q){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""}};
DQ8=function(q){var Z=0;q.avatars&&(Z+=q.avatars.length);q.decoratedText&&(Z+=1);return Z};
yNO=function(q){var Z=q.data,w=Z.avatars,r=Z.text,Y=Z.rendererContext,C=Z.decoratedText,d=(Z=_.Iw())&&_.nV(Y);_.Q0(Z,Y);var O=DQ8(q.data)>1,H,L=w&&w.length>0?ANT((H=_.J(w[0],_.kL))==null?void 0:H.avatarImageSize):0,S,v=w&&w.length>0?(S=_.J(w[0],_.kL))==null?void 0:S.avatarImageSize:"AVATAR_SIZE_UNKNOWN",R,B;H={};return _.u("yt-avatar-stack-view-model",{el:Z,class:_.XA("yt-avatar-stack-view-model-wiz",q.className,(H["yt-avatar-stack-view-model-wiz--tappable"]=d,H["yt-avatar-stack-view-model-wiz--is-overlay"]=
q.isOverlay,H["yt-avatar-stack-view-model-wiz--medium-text"]=q.useMediumText,H)),tabindex:d?0:void 0,role:d?"link":void 0,"aria-label":(B=(R=_.J(Y,_.xL))==null?void 0:R.label)!=null?B:""},_.Fs(w&&!q.hideAvatar,function(){return _.u("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.Fs(C,function(){var n={};return _.u("div",{class:_.XA("yt-avatar-stack-view-model-wiz__text-container",(n["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=v==="AVATAR_SIZE_XXS"||v==="AVATAR_SIZE_XS",
n["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=q.isOverlay&&(v==="AVATAR_SIZE_XXS"||v==="AVATAR_SIZE_XS"),n)),style:"width: "+L+"px; height: "+L+"px"},_.u(_.r6,{text:C,className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}),w.slice().reverse().map(function(n){return _.u("div",{class:f_N(v)},h06(n,{avatarViewModel:{decorations:q.decorations?q.decorations:O?[3]:[],
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:q.isOverlay}}))}))}),_.Fs(r,function(){return _.u(_.r6,{text:r,
className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}))};
ivT=function(q){switch(q){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_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}};
g92=function(q){switch(q){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""}};
q4z=function(q){switch(q){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
ZuX=function(q){var Z=q.data;return _.u("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:q.hidden===void 0?!1:q.hidden},_.u(_.r6,{text:Z.title,className:"yt-thumbnail-overlay-title-view-model__title"}),Z.subtitle?_.u(_.r6,{text:Z.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
wi1=function(q){switch(q){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"}};
rtO=function(q){var Z=q.data;q=q.hidden===void 0?!1:q.hidden;var w={};q={class:_.XA("yt-page-indicator-view-model",(w["yt-page-indicator-view-model__indicator--hidden"]=!Z.indicatorCount,w)),hidden:q};if(Z.indicatorCount){w=[];for(var r=0;r<Z.indicatorCount;r++){var Y={};Y=_.XA("yt-page-indicator-view-model__indicator",(Y["yt-page-indicator-view-model__indicator--selected"]=Z.selectedIndex===r,Y));w.push(_.u("div",{class:Y}))}Z=_.u(_.lS,null,w)}else Z=_.u(_.lS,null);return _.u("yt-page-indicator-view-model",
q,Z)};
$DT=function(q){q&&(Y4T(q)?delete q.inlinePlayerData:"inlinePlaybackEndpoint"in q&&delete q.inlinePlaybackEndpoint)};
egT=function(q){if("accessibilityText"in q)return q.accessibilityText||"";if("title"in q){var Z,w,r;return((Z=q.title)==null?void 0:(w=Z.accessibility)==null?void 0:(r=w.accessibilityData)==null?void 0:r.label)||""}if("accessibility"in q){var Y,C;return((Y=q.accessibility)==null?void 0:(C=Y.accessibilityData)==null?void 0:C.label)||""}return""};
Y4T=function(q){return"inlinePlayerData"in q};
KV=function(q){return new C16(q)};
_.P1N=function(q,Z,w,r,Y,C){var d=function(L){L.preventDefault()},O=function(){var L=q.value;
if(L)return(L._data=Z)?(L.addEventListener("touchstart",BH9,{passive:!0}),L.addEventListener("click",nt1),Z.clickTrackingParams&&(L.params={itct:Z.clickTrackingParams}),QY8(L,Z),KA(L,Etj(Z)||"")):L.addEventListener("click",d),function(){Z?(L.removeEventListener("touchstart",BH9,{passive:!0}),L.removeEventListener("click",nt1)):L.removeEventListener("click",d)}},H=function(){var L=q.value;
if(L){var S=_.Ln({innertubeCommand:Z,elementsCommand:w,forceNewState:r,stopPropagation:C});if(S)return L._data=S._data,S["aria-haspopup$"]&&L.setAttribute("aria-haspopup",S["aria-haspopup$"].toString()),S["force-new-state$"]&&L.setAttribute("force-new-state",S["force-new-state$"].toString()),S.href$&&KA(L,S.href$),S.rel$&&(L.rel=S.rel$),S.role$&&L.setAttribute("role",S.role$),S.target$&&(L.target=S.target$),L.params=S.params,S.onclick&&L.addEventListener("click",S.onclick),S.onpointerdown&&L.addEventListener("onpointerdown",
S.onpointerdown),function(){S.onclick&&L.removeEventListener("click",S.onclick);S.onpointerdown&&L.removeEventListener("onpointerdown",S.onpointerdown)}}};
uO(Y?H:O,[Z,w])};
dDe=function(q){var Z=q.children;var w=q.className;var r=q.dir;var Y=q.style;var C=q.role;var d=q.ariaSelected;var O=q.ariaLabel;var H=q.ariaHidden;var L=q.ariaLabelledby;var S=q.ariaDescribedby;var v=q.command;var R=q.elementsCommand;var B=q.forceNewState;var n=q.isPlaceholder;var x=q.tabIdentifier;var K=q.target;var k=q.tabIndex;var G=q.useATagConfig;var rz=q.stopPropagation;q=_.Iw();_.P1N(q,v,R,B,G,rz);R=_.fn(function(){return rz===!1});
return _.u("a",{el:q,"on:click":R,class:w,style:Y,dir:r,role:C?C:v?void 0:"group","aria-hidden":H?!0:void 0,"aria-label":O,"aria-labelledby":L,"aria-describedby":S,"aria-selected":d,tabindex:k!==void 0?k:void 0,target:K,"tab-identifier":x,"force-new-state":B?!0:void 0,"is-placeholder":n?!0:void 0},Z)};
Ouz=function(q){var Z=q.data;q=_.fn(function(){var Y=_.J(Z.onTap,_.WJ);Y&&_.t().resolve(_.ps).resolveCommand(Y);return!1});
var w={sources:[{url:Z.thumbnailUrl,width:120,height:90}]},r=Z.rating&&Z.ratingA11yLabel&&Z.reviewsCount&&Z.reviewsCountA11yLabel;return _.u("place-data-view-model",null,Z.placeName&&Z.placeCategory?_.u("div",{class:"yt-spec-place-data-view-model-shape","on:click":q},_.u(_.aQ,{data:w,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+Vk2}),_.u(dDe,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.J(Z.onTap,_.WJ),forceNewState:!0,
useATagConfig:!0},_.u("h3",{class:"yt-spec-place-data-view-model-shape__name",title:Z.placeName},Z.placeName)),_.u("div",{class:"yt-spec-place-data-view-model-shape__metadata"},r?_.u("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.u("span",{class:"score",title:Z.ratingA11yLabel},Z.rating),_.u("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.u(_.q0,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.u("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:Z.reviewsCountA11yLabel},Z.reviewsCount)):_.u("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.u("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.u("span",{class:"category",title:Z.placeCategory},Z.placeCategory)))):null)};
Hue=function(q){return function(Z){q&&(q.thumbnailElRef=Z.thumbnailElRef,q.thumbnail=Z.thumbnail,q.thumbnailOverlays=Z.thumbnailOverlays,q.thumbnailSize=Z.thumbnailSize)}};
W0T=function(q){var Z;return(Z=q.sharedUi)==null?void 0:Z.animatedThumbnailEnabled};
ooN=function(q){var Z;return(Z=q.sharedUi)==null?void 0:Z.inlinePreviewEnabled};
_.uk9=function(q){var Z;return(Z=q.sharedUi)==null?void 0:Z.currentPageSubType};
L02=function(){return _.u("div",{class:"yt-pinking"},_.u("svg",{class:"yt-pinking__pinking-left"},_.u("defs",null,_.u("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.u("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.u("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.u("svg",{class:"yt-pinking__pinking-right"},_.u("defs",null,_.u("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.u("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.u("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
S4T=function(q){switch(q){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"}};
Jtj=function(q){var Z=[],w=q.data,r=TR(q.width,q.height),Y=_.t().resolve(_.Gj(voj)),C=_.Iw(function(){Z.push("elRef.value set")});
_.Ls(function(){Z.push("onInit");return function(){Z.push("onCleanup")}});
_.Ls(function(){var K;(K=q.playbackRef)==null||K.call(q,{thumbnailElRef:C,thumbnail:w.image,thumbnailOverlays:w.overlays,thumbnailSize:r})});
var d=PuT(W0T),O,H=(O=q.aspectRatio)!=null?O:0,L=(O=(w.image?_.O12(w.image):H)<=1&&H===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",S=function(){C.value||_.bx(new _.df("Thumbnail elRef.value is null",Z.join("\n")));Y&&C.value&&Y(C.value)},v={};
a:{if(!q.disableRounding&&!q.isClip)switch(r){case "large":var R="yt-thumbnail-view-model--large";break a;case "small":R="yt-thumbnail-view-model--small";break a;default:R="yt-thumbnail-view-model--medium";break a}R=void 0}H=_.XA("yt-thumbnail-view-model",q.className,S4T(H),R,(v["yt-thumbnail-view-model--cinematic"]=O,v));v=void 0;var B,n;(R=O?(B=q.data)==null?void 0:(n=B.backgroundColor)==null?void 0:n.lightTheme:void 0)&&(v="background-color:"+Lo(R,"1")+";");var x;B=q.hovered&&r!=="large"&&((x=
w.overlays)==null?void 0:x.some(function(K){return _.J(K,jPT)}));
return _.u("yt-thumbnail-view-model",{class:H,style:v,el:C},_.Fs(O,function(){return _.u("div",{class:"yt-thumbnail-view-model__blurred-image"},_.u(_.aQ,{data:w.image,alt:"",contentMode:L,targetWidth:q.width,onload:S}))}),_.u("div",{class:"yt-thumbnail-view-model__image"},_.u(_.aQ,{data:w.image,
alt:"",contentMode:L,targetWidth:q.width,onload:S}),null),_.Fs(!B,function(){return tkT(w.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:r,isClip:q.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:q.lockupExperiments}})}),_.Fs(q.hovered,function(){return RgO(w.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),_.Fs(q.hovered&&d,function(){return buj(w.overlays)}),_.Fs(q.isClip,function(){return L02()}))};
zg1=function(q){switch(q){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"}};
Eoj=function(q){var Z=_.P(Dd(-1)),w=Z.next().value,r=Z.next().value,Y=vF(function(){return new BYj(r)});
_.Ls(function(){aWz(Y,q.data.thumbnails.length);return function(){noz(Y)}});
var C;return _.u("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(C=q.data.thumbnails)==null?void 0:C.map(function(d,O){var H=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!q.data.primaryThumbnail&&O===0&&H.push("yt-collection-thumbnail-slideshow--first-slide");O<=w&&H.push("yt-collection-thumbnail-slideshow--show-slide");O=H.join(" ");return _.u("div",{class:O},QPI(d,{thumbnailViewModel:{disableRounding:q.disableRounding}}))}))};
TY2=function(q){var Z=_.P(Dd(!1)),w=Z.next().value,r=Z.next().value;_.Ls(function(){if(q){var Y=_.t().resolve(_.Gj(xD6));if(Y){var C={triggeringElement:q,onDwellTriggeredFn:function(){r(!0)},
onDwellEndFn:function(){r(!1)}};
Y.registerElement(C);return function(){Y.unregisterElement(C)}}}});
return w};
UD1=function(q){var Z=_.P(_.qo(!1,void 0,"RIOonf")),w=Z.next().value,r=Z.next().value;_.Ls(function(){var Y=q==null?void 0:q();if(Y){var C=_.t().resolve(_.Gj(xD6));if(C){var d={triggeringElement:Y,onDwellTriggeredFn:function(){r(!0)},
onDwellEndFn:function(){r(!1)}};
C.registerElement(d);_.SG(function(){C.unregisterElement(d)})}}});
return w};
sP1=function(q){var Z,w=(Z=_.t().resolve(_.Gj(_.RQ)))==null?void 0:Z(),r=TY2(q.triggeringElement),Y=!!q.data.primaryThumbnail,C=function(){var O;return _.u("div",null,k56(q.data.primaryThumbnail,{thumbnailViewModel:{width:q.width,height:q.height,aspectRatio:q.aspectRatio,disableRounding:q.disableRounding,className:Y?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:q.hovered,playbackRef:q.playbackRef}}),_.Fs(r&&((O=q.data.thumbnails)==null?void 0:O.length),function(){return _.u("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.u(K0z,{data:q.data,disableRounding:!Y}))}))};
Z=q.data.stackColor;var d={experimentEnabled:Y,thumbnailSize:TR(q.width,q.height),doubleStack:q.doubleStack,color:w?Z==null?void 0:Z.darkTheme:Z==null?void 0:Z.lightTheme,enableResponsiveMode:!1};return _.u("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.Fs(Y,function(){return _.u(Ovj,{data:d},C())}),_.Fs(!Y,C))};
IWT=function(q,Z,w){w?w(Z):_.Sp(Z,q.target?{form:{element:q.target}}:void 0)};
_.MA=function(q,Z,w,r){_.L7(function(){var Y=q.value;if(Y){var C=new Map,d,O=(d=Z())==null?void 0:d.onTap;O&&(d=function(H){a:{var L=H.composedPath();L=_.P(L);for(var S=L.next();!S.done;S=L.next()){S=S.value;if(S===Y)break;if(S.className.indexOf("HostIsClickableAdComponent")>=0||S.tagName==="A".toString()||S.tagName==="BUTTON".toString()){L=!0;break a}}L=!1}L||(_.b("enable_square_image_components_ui_web_with_float_button")?_.hy(q.value,"yt-navigate",{endpoint:_.oQ(O)}):IWT(H,O,w))},(r==null?0:r())||
_.b("enable_web_home_top_landscape_image_layout_level_click")?(Y.addEventListener("tap",d),C.set("tap",d)):(Y.addEventListener("click",d),C.set("click",d)));
_.SG(function(){for(var H=_.P(C),L=H.next();!L.done;L=H.next()){var S=_.P(L.value);L=S.next().value;S=S.next().value;Y.removeEventListener(L,S)}})}})};
ct6=function(q,Z){var w,r=(w=q.interaction)==null?void 0:w.onTap;if(q=_.Ln({elementsCommand:r,forceNewState:!0,skipOnClick:!0}))return q.onclick=function(Y){tqX(Y)&&(Y.preventDefault(),r&&IWT(Y,r,Z))},b8e(q)?q:void 0};
Mk8=function(q){switch(q){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
F08=function(q){switch(q){case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
NY1=function(q){switch(q){case "AD_BUTTON_STYLE_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.lWX=function(q){return _.b("rich_grid_enable_dynamic_offset")&&q?Math.max(Math.round((q-_.m6("rich_grid_dynamic_offset_anchor_width",1300))/100*_.m6("rich_grid_dynamic_offset_offset_per_100",10)),_.m6("rich_grid_dynamic_offset_lower_bound",-60)):0};
G59=function(q,Z){switch(Z){case 4:return 16;case 1:return q<528?16:q<1024?32:48;case 2:return(q>=528?16:8)/2;case 3:return(q<528?16:q<1024?32:48)+(q>=528?16:8)/2;default:return 0}};
pi6=function(q){var Z=q.originalContainerWidth;var w=q.sizing;var r=q.standardUnit;if(q.isCompactList&&Z<528)return 1;switch(w){case "STANDARD":return r;case "COMPACT":return r+1;case "EXTRA_COMPACT":return _.b("web_responsive_extra_compact_2x")?r*2:_.b("web_responsive_current")?r===1?2:r%2===0?r/2*3:r+2:r<4?r*2:Math.ceil(r*3/2);case "MINI":return r>1?r*2:3;default:return r}};
mD9=function(q){var Z=q.containerWidth;var w=q.peek;var r=q.gutter;var Y=q.numItems;q=q.ignoreMaxWidthLimit;Z=w?Math.max((Z-w-r*Y)/Y,0):Math.max((Z-r*(Y-1))/Y,0);return q?Z:Math.min(Z,Xi2)};
_.F_=function(q){var Z=q.containerWidth;var w=q.hasPeek;var r=q.sizing;var Y=q.marginSettings;var C=q.isCompactList;var d=q.enableFullBleedForSingleCol;var O=q.standardUnitMinWidth;r=r||"STANDARD";w=!!w;q=Z>=528?16:8;var H=w?Z>=528?48:24:0;Y=G59(Z,Y);var L=Math.max(Z-Y*2,0);O=_.b("kevlar_disable_min_width_override")?void 0:O;O=Math.min(Math.max(Math.floor((L-H+q)/((O!=null?O:At8)+_.lWX(Z)+q)),1),6);var S=(d=!!d&&O===1)||O===1&&r!=="STANDARD";w=w||S?L:Math.min(L,(Xi2+q)*O-q);r=pi6({originalContainerWidth:Z,
sizing:r,standardUnit:O,isCompactList:C});return{itemWidth:mD9({containerWidth:w,peek:H,gutter:q,numItems:r,ignoreMaxWidthLimit:S}),gutter:q,maxContainerWidth:w,numItems:r,margin:d?0:Y,contentMargin:G59(Z,1),typographyBump:mD9({containerWidth:w,peek:H,gutter:q,numItems:O,ignoreMaxWidthLimit:S})>400&&!(C&&Z<528),standardUnit:O}};
fW8=function(q){switch(q){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.DD6=function(q){if(q){var Z;if((Z=q.responsiveContainerConfiguration)==null?0:Z.responsiveSize)return fW8(q.responsiveContainerConfiguration.responsiveSize);if(q.layoutSizing)switch(q.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"}}};
hgI=function(q){if(q.fullbleed)return 1;switch(q.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
qj9=function(q,Z,w,r,Y,C,d,O){a:switch(q){case 4:C=!!(C&&C<100);break a;default:C=!1}a:switch(q){case 3:case 4:var H=r==="LOCKUP_CONTENT_TYPE_CHANNEL"||r==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:H=!1}a:switch(q){case 5:var L=!0;break a;case 4:L=!1;break a;default:L=!1}a:if(q===4&&r==="LOCKUP_CONTENT_TYPE_SOURCE")var S=1;else switch(q){case 3:S=1;break a;default:S=0}return{isOverlay:L,isCard:yt9(r,d),sizing:Z!=null?Z:"STANDARD",typographyBump:w!=null?w:!1,isTiny:C,isCentered:H,isCollection:iue(r),
arrangement:S,addMarginForFullbleed:q===1&&r!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:q===1&&r==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:go9(r,Y,O),disableRounding:q===5||yt9(r,d)||q===1&&r==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:iue(r)?2:0,useLegacyTypography:!(O==null||!O.useLegacyTypography),useRichGridLegacyTypography:!(O==null||!O.useRichGridLegacyTypography)}};
iue=function(q){switch(q){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}};
yt9=function(q,Z){if(Z&&q==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(q){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
go9=function(q,Z,w){if(Z&&(w==null||!w.alwaysRespectPodcastShowAspectRatio||q!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(q){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}};
ZUz=function(q){switch(q){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"}};
Yj6=function(q,Z,w){a:switch(q.badgeStyle){case "BADGE_OVERLAY":var r=!0;break a;default:r=!1}return{type:Z?16:wbI(q.badgeStyle),brNzRatingBadgeType:rP9(q.badgeStyle),text:q.badgeText,icon:q.iconName,isOverlay:r,modern:w||_.b("web_modern_badge_view_model")}};
wbI=function(q){switch(q){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
rP9=function(q){switch(q){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}};
eVO=function(q){var Z=q.data?Yj6(q.data,!!q.workaroundShortsIsThumbnailBadge,q.modern):void 0;return _.u("yt-badge-view-model",{class:_.XA("yt-badge-view-model-wiz",q.class)},_.Fs(Z==null?void 0:Z.brNzRatingBadgeType,function(){return _.u($69,{data:Z})}),_.Fs(Z&&!Z.brNzRatingBadgeType,function(){return _.u(_.NA,{data:Z})}))};
_.lo=function(q){if(q){var Z;return((Z=_.t().resolve(_.Gj(_.RQ)))==null?0:Z())?q.darkThemeImage:q.image}};
d6z=function(q,Z,w,r,Y,C){if(!w)return Y&&C&&Z==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+Y+"px; height: "+C+"px;":"";Y=w.size;w=w.allowFullWidth;if(Z==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&w)return"width: 100%;";if(Y===void 0)return"";switch(q){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+Y+"px; height: "+Y+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+Y+"px; height: "+1/C0N*
Y+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+Y*P0X+"px; height: "+Y+"px;";default:return(r==null?0:r.height)&&(r==null?0:r.width)?r.width/r.height>1?"max-width: "+Y*P0X+"px;":"max-width: "+Y+"px;":"max-width: "+Y+"px;"}};
V$j=function(q){var Z;return q&&((Z=_.lo(q.themedImage))!=null?Z:q.image)};
OU9=function(q){var Z;return q==null?void 0:(Z=q.sources)==null?void 0:Z[0]};
WZ8=function(q,Z){var w,r;return!!((q==null?0:(w=q.byline)==null?0:w.hideAvatar)&&((r=_.J(Z,HU2))==null?void 0:r.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
oPj=function(q,Z){var w,r;return!!((q==null?0:(w=q.byline)==null?0:w.addPadding)&&((r=_.J(Z,HU2))==null?void 0:r.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
u8e=function(q,Z,w,r){var Y={},C=(Y["yt-content-metadata-view-model-wiz__delimiter"]=!0,Y["yt-content-metadata-view-model-wiz__delimiter--standalone"]=r,Y);return _.Fs(Z-1>w,function(){return _.u("span",{class:_.XA(C),"aria-hidden":!0},q)})};
SjO=function(q,Z){return _.u(_.r6,{text:q.text,linkInheritColor:!0,className:LZe(Z),userInput:!0})};
j81=function(q){var Z=q.metadataPart;var w=q.isOverlay;var r=q.useMediumText;var Y=q.hideAvatar;var C=1;Z.maxLines!==void 0&&(C=Z.maxLines);return _.u(_.lS,null,_.Fs(Z.avatarStack,function(){return vPj(Z.avatarStack,{avatarStackViewModel:{isOverlay:w,useMediumText:r,hideAvatar:Y}})}),_.Fs(Z.text,function(){var d=C;
return _.u(_.lS,null,Z.tooltip?_.u("span",{title:Z.tooltip,role:"tooltip"},SjO(Z,d)):SjO(Z,d))}))};
LZe=function(q){switch(q){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"}};
t$e=function(q){var Z=q.metadataRow;var w=q.isInline;var r=q.delimiter;var Y=q.isOverlay;var C=q.useMediumText;var d=q.extensions;var O=WZ8(d==null?void 0:d.lockupMetadata,Z);q=oPj(d==null?void 0:d.lockupMetadata,Z);d=!!((d==null?0:d.lockupMetadata)&&Z.badges);var H={};q=(H["yt-content-metadata-view-model-wiz__metadata-row"]=!0,H["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=w,H["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=q,H["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
d,H);var L,S;return _.u("div",{class:_.XA(q)},(L=Z.badges)==null?void 0:L.map(function(v){return _.u("div",{class:"yt-content-metadata-view-model-wiz__badge"},vPj(v))}),(S=Z.metadataParts)==null?void 0:S.map(function(v,R){return _.u(_.lS,null,j81({metadataPart:v,
isOverlay:Y,useMediumText:C,hideAvatar:O}),u8e(r,Z.metadataParts.length,R,!1))}),_.Fs(Z.isSpacerRow&&!w,function(){return _.u("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
RVI=function(q){var Z=q.className;var w=q.data;var r=q.layout===void 0?0:q.layout;var Y=q.isOverlay===void 0?!1:q.isOverlay;var C=q.useMediumText;var d=q.extensions;q=_.Iw();var O=r===0;r={};r=(r["yt-content-metadata-view-model-wiz"]=!0,r["yt-content-metadata-view-model-wiz--inline"]=O,r["yt-content-metadata-view-model-wiz--tappable"]=_.nV(w.rendererContext),r["yt-content-metadata-view-model-wiz--medium-text"]=C,r);_.Q0(q,w.rendererContext);return _.u("yt-content-metadata-view-model",{class:_.XA(Z,
r),el:q},_.Fs(w.metadataRows,function(){return w.metadataRows.map(function(H,L){return _.u(_.lS,null,t$e({metadataRow:H,isInline:O,delimiter:w.delimiter,isOverlay:Y,useMediumText:C,extensions:d}),_.Fs(O&&!H.isSpacerRow,function(){return u8e(w.delimiter,w.metadataRows.length,L,!0)}))})}))};
bUO=function(q){switch(q){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"}};
JP8=function(q){if(q==null?0:q.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(q==null?void 0:q.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
zVj=function(q){if(q==null?0:q.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(q==null?void 0:q.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":return"yt-lockup-metadata-view-model-wiz--compact";default:return"yt-lockup-metadata-view-model-wiz--standard"}};
BeI=function(q){var Z,w,r,Y,C,d,O={},H=_.XA(JP8(q.lockupStyle),zVj(q.lockupStyle),(O["yt-lockup-metadata-view-model-wiz"]=!0,O["yt-lockup-metadata-view-model-wiz--overlay"]=(Z=q.lockupStyle)==null?void 0:Z.isOverlay,O["yt-lockup-metadata-view-model-wiz--card"]=(w=q.lockupStyle)==null?void 0:w.isCard,O["yt-lockup-metadata-view-model-wiz--centered"]=(r=q.lockupStyle)==null?void 0:r.isCentered,O["yt-lockup-metadata-view-model-wiz--typography-bump"]=(Y=q.lockupStyle)==null?void 0:Y.typographyBump,O["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(C=q.lockupStyle)==null?void 0:C.useLegacyTypography,O["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(d=q.lockupStyle)==null?void 0:d.useRichGridLegacyTypography,O)),L,S,v,R,B,n;return _.u("yt-lockup-metadata-view-model",{class:H},_.Fs(q.data.image,function(){return _.u("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},Gd(q.data.image))}),_.u("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.u("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(L=q.data.title)==null?void 0:L.content},_.Fs(q.data.title,function(){return _.u(_.w6,{command:q.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:q.lockupAccessibilityLabel},_.u(_.r6,{text:q.data.title}))})),_.u("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},Gd(q.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((S=q.lockupStyle)==null?void 0:S.typographyBump)||((v=q.lockupStyle)==null?void 0:v.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((R=q.lockupStyle)==null?void 0:R.arrangement)===0,addPadding:((B=q.lockupStyle)==null?void 0:B.arrangement)===1}}}}})),_.Fs(q.data.attribution,function(){return _.u("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},Gd(q.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))}),_.u("div",null,Gd(q.data.attachmentSlot,
{lockupAttachmentsViewModel:{lockupStyle:q.lockupStyle}}))),_.u("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},Gd(q.data.menuButton,((n=q.lockupStyle)==null?0:n.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
aOT=function(q){switch(q.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"}}};
nPO=function(q){var Z=_.uk9(_.JJ().getState())||"";return q?q+Z:""};
Q8N=function(q){switch(q){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
x62=function(q){var Z=_.P(_.qo(void 0,void 0,"BIquNb")),w=Z.next().value,r=Z.next().value,Y=_.P(_.qo(void 0,void 0,"eR0GH"));Z=Y.next().value;var C=Y.next().value,d=_.P(_.qo(void 0,void 0,"UmkP0"));Y=d.next().value;var O=d.next().value;d=_.fn(function(L){if(EPT(_.JL(L)))return!1;r(L);C(void 0);O(void 0);return!0});
var H=_.fn(function(L){q==null||q(L);if(EPT(_.JL(L)))return!1;C(L);r(void 0);O(void 0);return!0});
return{touchFeedbackEvents:{pointerUpEvent:w,pointerDownEvent:Z,pointerLeaveEvent:Y},touchFeedbackOnPointerUp:d,touchFeedbackOnPointerDown:H,touchFeedbackOnPointerLeave:function(L){EPT(_.JL(L))||(O(L),C(void 0),r(void 0))}}};
EPT=function(q){var Z=["BUTTON".toString()];q=_.P(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;for(var r=_.P(Z),Y=r.next();!Y.done;Y=r.next())if(w.tagName===Y.value)return!0}return!1};
Tee=function(q){switch(q){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"}};
U6T=function(q){var Z;return lXz(q,((Z=q.content)==null?void 0:Z.length)||0,!0)};
k0j=function(q){var Z=U6T(q),w,r;return(((w=q.content)==null?void 0:w.length)||0)>(((r=Z.content)==null?void 0:r.length)||0)};
KZ2=function(q){var Z=q.isTruncated;var w=q.isAbsoluteButton;var r=q.lineHeight;var Y=q.contentRef.value,C=q.placeholderTruncationTextRef.value,d=q.truncationTextRef.value;q=q.appDirection==="rtl";if(Y&&C){var O=C.offsetLeft;q&&(O=Y.offsetWidth-C.offsetWidth-C.offsetLeft);if(Z){Z=C.offsetWidth;C=Y.offsetWidth;var H=w?C-Z-70:O-70;r="linear-gradient(\n      to top, transparent 0%,\n      transparent "+r+"px,\n      #000 "+r+"px,\n      #000 100%), linear-gradient(\n      to "+((q?"left":"right")+",\n      #000 0px,\n      #000 "+
H+"px,\n      transparent "+(w?C-Z:H+70)+"px)");Y.style.setProperty("-webkit-mask-image",r);Y.style.setProperty("mask-image",r)}else Y.style.setProperty("-webkit-mask-image",""),Y.style.setProperty("mask-image","");w?q?(d.style.setProperty("left","0"),d.style.setProperty("right","unset")):(d.style.setProperty("left",""),d.style.setProperty("right","0")):q?(d.style.setProperty("left","unset"),d.style.setProperty("right",O+"px")):(d.style.setProperty("left",O+"px"),d.style.setProperty("right","unset"))}};
s8z=function(q,Z,w,r,Y){var C=_.Iw(),d=_.Iw(),O=_.Iw(),H=U6T(q),L=_.t().resolve(_.JE),S=_.P(Dd(k0j(q))),v=S.next().value,R=S.next().value,B=j9(null);uO(function(){function n(){if(C.value&&d.value&&O.value){var k=C.value;k.scrollHeight-k.offsetHeight>1?(R(!0),r||KZ2({isTruncated:!0,isAbsoluteButton:!0,lineHeight:w,contentRef:C,placeholderTruncationTextRef:d,truncationTextRef:O,appDirection:L})):(k=k0j(q),R(k),r||KZ2({isTruncated:k,isAbsoluteButton:!1,lineHeight:w,contentRef:C,placeholderTruncationTextRef:d,
truncationTextRef:O,appDirection:L}))}}
var x,K;(x=B.value)==null||(K=x.stop)==null||K.call(x);x=new _.pV(n,17);n();B.value=x},[q.content,
Z,w,L,r,Y]);_.Ls(function(){var n=function(){var K,k;(K=B.value)==null||(k=K.fire)==null||k.call(K)};
if(window.ResizeObserver){var x=new ResizeObserver(n);x.observe(C.value);return function(){var K,k;(K=B.value)==null||(k=K.stop)==null||k.call(K);x.disconnect()}}window.addEventListener("resize",n);
return function(){var K,k;(K=B.value)==null||(k=K.stop)==null||k.call(K);window.removeEventListener("resize",n)}});
return{isTruncated:v,displayText:H,contentRef:C,placeholderTruncationTextRef:d,truncationTextRef:O}};
IO2=function(q){return _.u("button",{"aria-disabled":!0,disabled:!0,class:q.className,el:q.elRef,style:"line-height: "+q.lineHeight+"px;"},_.u(_.r6,{text:q.text}))};
cPe=function(q){var Z=q.text;var w=q.alwaysShowTruncationText;var r=q.truncationText;var Y=q.onExpandClick;var C=q.lineHeight===void 0?16:q.lineHeight;var d=q.maxLines===void 0?2:q.maxLines;var O=q.disableTextMask===void 0?!1:q.disableTextMask;var H=q.isOverlay===void 0?!1:q.isOverlay;var L=q.accessibilityLabel===void 0?"":q.accessibilityLabel;var S=q.useMediumText===void 0?!1:q.useMediumText;q=_.fn(function(){return void(Y==null?void 0:Y())});
var v=s8z(Z,d,C,O,S),R=v.isTruncated;Z=v.displayText;var B=v.contentRef,n=v.placeholderTruncationTextRef;v=v.truncationTextRef;var x={};w=_.XA((x["truncated-text-wiz__absolute-button"]=!O,x["truncated-text-wiz__bottom-button"]=O,x["truncated-text-wiz--hidden"]=!(w||R),x));O={};H=_.XA((O["truncated-text-wiz"]=!0,O["truncated-text-wiz--overlay"]=H,O["truncated-text-wiz--medium-text"]=S,O));return _.u("truncated-text",{class:H,"on:click":q,style:"line-height: "+C+"px;"},_.u("truncated-text-content",
{class:"truncated-text-wiz__truncated-text-content",el:B,style:"max-height: "+d*C+"px;"},_.u(_.r6,{text:Z}),_.u(IO2,{text:r,lineHeight:C,elRef:n,className:"truncated-text-wiz__inline-button"})),_.u("button",{"aria-label":L,class:w,el:v,style:"line-height: "+C+"px;"},_.u(_.r6,{text:r})))};
M$6=function(q){return{content:q!=null?q:""}};
lO8=function(q){var Z=q.data;var w;q={class:q.className};a:switch(Z.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var r="yt-video-attribute-view-model--vertical";break a;default:r="yt-video-attribute-view-model--horizontal"}a:switch(Z.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var Y="yt-video-attribute-view-model--image-small";break a;default:Y="yt-video-attribute-view-model--image-large"}a:switch(Z.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var C="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":C="yt-video-attribute-view-model--image-avatar";break a;default:C=""}a:switch(Z.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var d="yt-video-attribute-view-model--metadata-header";break a;default:d=""}a:switch(Z.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var O="yt-video-attribute-view-model--container-card";break a;default:O=""}var H=_.oQ(Z.onTap)||_.a5(Z.rendererContext)?"yt-video-attribute-view-model--clickable":"";
r=["yt-video-attribute-view-model",r,Y,C,d,O,H].join(" ");if(Z.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var L="";else Y=Z.lightColorPalette,C=Z.darkColorPalette,d=((L=_.t().resolve(_.Gj(_.RQ)))==null?0:L())&&C?C:Y,L=(L=d==null?void 0:d.section2Color)?_.uq(L):"";return _.u("yt-video-attribute-view-model",q,_.u("div",{class:r,style:_.y1({"background-color":L})},_.u(dDe,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(w=_.oQ(Z.onTap))!=
null?w:_.a5(Z.rendererContext),role:"group",forceNewState:!0},Z.heroText||Z.image?_.u(FZT,{data:Z}):null,_.u(Ne1,{data:Z,sizeSmall:Z.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
G0j=function(q){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:q.overflowMenuA11yLabel,onTap:function(Z){Z.preventDefault();Z.stopPropagation();if(q.overflowMenuOnTap){var w=_.Ln({elementsCommand:q.overflowMenuOnTap,forceNewState:!0});if(w==null?0:w.onclick)w.onclick(Z)}}}};
FZT=function(q){q=q.data;var Z,w=((Z=_.t().resolve(_.Gj(_.RQ)))==null?0:Z())&&q.darkThemeImage?q.darkThemeImage:q.image;Z=G0j(q);return _.u("div",{class:"yt-video-attribute-view-model__hero-section"},w?_.u(_.aQ,{data:w,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):q.heroText?_.u("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.u("span",{class:"yt-video-attribute-view-model__hero-text"},q.heroText)):null,q.overflowMenuOnTap?
_.u("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.u(X_,{data:Z,iconName:"MORE_VERT"})):null)};
Ne1=function(q){var Z=q.data;var w=Z.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",r={};q={class:_.XA("yt-video-attribute-view-model__metadata",(r["yt-video-attribute-view-model--small-font"]=q.sizeSmall,r)),role:"link"};r=_.u("h1",{class:"yt-video-attribute-view-model__title"},Z.title);w=Z.subtitle?_.u("h4",{class:"yt-video-attribute-view-model__subtitle"},w?_.u(cPe,{text:M$6(Z.subtitle),truncationText:M$6(Z.subtitleTruncationText),maxLines:2}):_.u("span",null,Z.subtitle)):null;if(Z.secondarySubtitle){var Y=
Z.secondarySubtitle;if(Y!=null&&Y.attachmentRuns){for(var C=[],d=_.P(Y.attachmentRuns),O=d.next();!O.done;O=d.next())O=O.value,O.element&&C.push(Object.assign({},O,{element:Object.assign({},O.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));Y=Object.assign({},Y,{attachmentRuns:C})}Y=_.u("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.u(_.r6,{text:Y}))}else Y=null;return _.u("div",q,r,w,Y,Z.buttonViewModel?
pb8(Z.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
m62=function(q){var Z={};Z=_.XA("video-summary-content-view-model-wiz",q.className,(Z["video-summary-content-view-model-wiz--is-search"]=!!q.isSearch,Z));var w=_.J(q.data.likeButtonViewModel,xm1),r=_.J(q.data.dislikeButtonViewModel,T$e),Y=S9(function(){var C=[],d,O=(d=q.data)==null?void 0:d.paragraphs;if(O==null||!O.length)return[];for(d=0;d<O.length;d++){var H=_.J(O[d],Xb9),L=void 0;d>0&&(L=_.J(O[d-1],Xb9));L&&!!L.marker===!!H.marker?C[C.length-1].paragraphs.push(H):C.push({isList:!!H.marker,paragraphs:[H]})}return C},
[q.data]);
return _.u("video-summary-content-view-model",{class:Z},Y.map(function(C){return C.isList?_.u("ul",{class:"video-summary-content-view-model-wiz__list"},C.paragraphs.map(function(d){return _.u("li",{class:"video-summary-content-view-model-wiz__list-item"},_.u(_.r6,{text:d.text}))})):C.paragraphs.map(function(d){return _.u("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.u(_.r6,{text:d.text}))})}),_.Fs(!!w&&!!r,function(){return _.u("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.u("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.u(E09,{data:w,
disableIconAnimation:!0})),_.u(k_2,{data:r}))}))};
_.mW=function(q,Z,w,r,Y){r=r===void 0?{}:r;if(!Y||Math.random()<5E-4){Z=Z||null;w=w||null;q=q instanceof Error?q:new _.df(q);if(q.args)for(var C=_.P(q.args),d=C.next();!d.done;d=C.next())d=d.value,d instanceof Object&&(r=Object.assign({},d,r));r.category="H5 Ads Control Flow";Z&&(r.slot=Z?"slot:  "+Z.slotType:"");w&&(r.layout=w?"layout:  "+w.layoutType:"",r.layoutId=w.layoutId);Y&&(r.known_error_aggressively_sampled=!0);q.args=[r];_.bx(q)}};
_.AP1=function(q,Z){_.yY(q,"yt-open-popup-action",[_.cX(Z),q])};
D6N=function(q){if(!q)return"";if(fO1[q])return fO1[q];AL||(AL=_.dX("A"));AL.href!==q&&KA(AL,q);var Z=AL.pathname;fO1[q]=Z.startsWith("/")?Z:"/"+Z;return fO1[q]};
hVT=function(){var q=D6N(window.location.href);if(q==="/")return"home";if(q.startsWith("/results"))return"search";if(q.startsWith("/watch"))return"watch";if(q.startsWith("/shorts"))return"shorts";if(q.startsWith("/hashtag"))return"hashtag";if(q.startsWith("/create_channel"))return"create_channel";if(q.startsWith("/@")||q.startsWith("/user/")||q.startsWith("/channel/"))return"channel";if(q.startsWith("/experiments"))return"experiments";if(q.startsWith("/sponsor_channel"))return"sponsorship";if(q.startsWith("/select_site"))return"settings";
if(q.startsWith("/locate"))return"locate";if(q.startsWith("/redeem"))return"redeem";if(q.startsWith("/musicpremium")||q.startsWith("/premium")||q.startsWith("/red"))return"premium";if(q.startsWith("/paid_memberships"))return"paid_memberships";if(q.startsWith("/oops"))return"oops";if(q.startsWith("/clip"))return"clip";var Z;return(fV==null?void 0:(Z=fV.response)==null?void 0:Z.page)==="404"?"404":q.startsWith("/feed/history")?"history":q.startsWith("/feed/library")?"library":q.startsWith("/feed/subscriptions")?
"subscriptions":q.startsWith("/feed/trending")?"trending":q.startsWith("/feed/news_destination")?"news":q.startsWith("/playlist")?"playlist":q.startsWith("/minor_moment")?"minor_moment":q.startsWith("/playable/")||q.match("^/playables/(?!saved).")?"mini_app":q.startsWith("/playables")?"playables":q.startsWith("/create/live/join")?"open_in_app":q.startsWith("/feed/explore")?"explore":"browse"};
_.qOj=function(){var q=fV==null?void 0:fV.response,Z=q==null?void 0:q.endpoint;if(!Z)return(q==null?void 0:q.page)==="watch"?"watch":hVT();var w;q=(w=_.J(Z==null?void 0:Z.commandMetadata,_.XK))==null?void 0:w.webPageType;w=!1;if(q&&!yPj.includes(q))switch(q){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 r;return((r=_.J(Z==null?void 0:Z.commandMetadata,_.XK))==null?0:r.url)&&D6N(_.J(Z.commandMetadata,_.XK).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var Y;return(Z=(Y=_.J(Z,_.qZ))==null?void 0:Y.browseId)?iUX[Z]||"browse":"browse";default:w=!0}if(_.J(Z,_.Dv)||_.J(Z,gPN))return"sponsorship";Y=D6N(window.location.href);if(Y.startsWith("/experiments"))return"experiments";if(Y.startsWith("/create_channel"))return"create_channel";
if(_.J(Z,_.TF)&&Y.startsWith("/shorts"))return"shorts";if(_.J(Z,_.TF)&&Y.startsWith("/watch"))return"watch";w&&(Z=new _.df("Unsupported mWeb page type",{pathname:Y,webPageType:q}),_.tY(Z));return"browse"};
C78=function(q){var Z=q.data;var w=q.inlineMetadata;var r=q.aspectRatio;var Y=q.scrimStyle;var C=q.useDefaultStyle;var d=q.className;var O=j9(new Z$2);q=_.b("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";q=C?q==="SHORTS_LOCKUP_STYLE_SLIM":Z.style==="SHORTS_LOCKUP_STYLE_SLIM";w=w||q||!1;Y=Y!==void 0?Y:1;var H=_.Iw(function(K){O.value&&(O.value.hostElement=K,x())});
_.Xu(H,{visibilityCallback:function(K){K&&Z.onFirstVisible&&_.Sp(Z.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});d=_.XA("shortsLockupViewModelHost",d);var L=_.Ln({elementsCommand:Z.onTap}),S=_.Iw();_.P1N(S,_.oQ(Z.onTap));var v=_.fn(function(K){if(L==null?0:L.onclick)L.onclick(K);return!1}),R=_.Iw(),B=[];
B.push("shortsLockupViewModelHostThumbnailContainer");r===1?B.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):r===2&&B.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");q||B.push("shortsLockupViewModelHostThumbnailContainerRounded");_.b("web_shorts_2_by_3_lockups_study")||_.b("desktop_search_enable_two_by_three_shorts_aspect_ratio")||B.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var n,x=function(){if(O.value){var K;(K=n)==null||
hL(K);K=O.value;var k;K.hostElement&&((k=K.data)==null?0:k.inlinePlayerData)&&(n=KV({mediaRenderer:K,lockupElement:K.hostElement,thumbnailElement:R.value,videoPreviewOpts:wTN}))}};
uO(function(){O.value&&(O.value.data=Z,x())},[Z]);
return _.u("ytm-shorts-lockup-view-model",{el:H,class:d},_.u("a",{el:S,"on:click":v,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!w,tabindex:w?0:-1},_.u("div",{el:R,class:B.join(" ")},_.Fs(Z.thumbnail,function(){return _.u(_.lS,null,_.u(_.aQ,{data:Z.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),w?_.u(rx1,{data:Z,
scrimStyle:Y,useDefaultStyle:C}):null,YON(Z.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),w&&Z.menuOnTap?_.u($z1,{data:Z,inlineMetadata:w}):null,w?null:_.u(ez2,{useDefaultStyle:C,data:Z}))};
rx1=function(q){var Z=q.data;var w=q.scrimStyle;var r=q.useDefaultStyle;var Y=_.b("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";q=r&&_.b("web_hide_primary_text_for_pivot_panel");var C={};r=_.XA("shortsLockupViewModelHostInlineMetadata",(C.shortsLockupViewModelHostMetadataRounded=!(r?Y==="SHORTS_LOCKUP_STYLE_SLIM":Z.style==="SHORTS_LOCKUP_STYLE_SLIM"),C.shortsLockupViewModelHostInlineMetadataShortScrim=w===3&&!_.b("enable_shorts_lockup_new_scrim"),
C.shortsLockupViewModelHostInlineMetadataShortScrimNew=w===3&&_.b("enable_shorts_lockup_new_scrim"),C.shortsLockupViewModelHostInlineMetadataMediumScrim=w===2||w===4,C.shortsLockupViewModelHostShowOverPlayer=!0,C));var d,O;Y={};return _.u("div",{class:r+" image-overlay-text"},_.u("h3",{class:_.GL("shortsLockupViewModelHostMetadataTitle",(Y.shortsLockupViewModelHostMetadataTitleTextShadow=w===4,Y)),"aria-label":Z.accessibilityText},_.Fs(((d=Z.overlayMetadata)==null?void 0:d.primaryText)&&!q,function(){return _.u(_.r6,
{text:Z.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((O=Z.overlayMetadata)==null?0:O.secondaryText)?_.u(P72,{data:Z,
scrimStyle:w}):null)};
ez2=function(q){var Z=q.data;var w=_.b("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";q=(q.useDefaultStyle?w==="SHORTS_LOCKUP_STYLE_SLIM":Z.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var r=_.Ln({elementsCommand:Z.onTap});w=_.Iw();_.P1N(w,_.oQ(Z.onTap));var Y=_.fn(function(v){if(r==null?0:r.onclick)r.onclick(v);return!1}),C,d,
O,H,L,S={};
return _.u("div",{class:q+" image-overlay-text","on:click":Y},_.u("h3",{class:_.GL("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(S.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((C=Z.overlayMetadata)==null?0:(d=C.primaryText)==null?0:d.content),S)),"aria-label":Z.accessibilityText},_.u("a",{el:w,"on:click":Y,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(O=Z.overlayMetadata)==null?void 0:(H=O.primaryText)==
null?void 0:H.content},_.Fs(Z.overlayMetadata,function(){return _.u(_.r6,{text:Z.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((L=Z.overlayMetadata)==null?0:L.secondaryText)?_.u(P72,{data:Z,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,Z.menuOnTap?_.u($z1,{data:Z,inlineMetadata:!1}):null)};
P72=function(q){var Z=q.data;var w=q.scrimStyle;q=q.className;var r,Y={};return _.u("div",{class:_.GL((Y.shortsLockupViewModelHostMetadataSubhead=w!==4,Y.shortsLockupViewModelHostMetadataSubheadNew=_.b("enable_shorts_lockup_new_scrim"),Y.shortsLockupViewModelHostMetadataSubheadTextShadow=w===4,Y),q),"aria-hidden":"true"},_.u(_.r6,{text:(r=Z.overlayMetadata)==null?void 0:r.secondaryText,noStyleRuns:!0}))};
$z1=function(q){var Z={};Z=_.XA((Z.shortsLockupViewModelHostInlineMetadataMenu=q.inlineMetadata,Z.shortsLockupViewModelHostOutsideMetadataMenu=!q.inlineMetadata,Z.shortsLockupViewModelHostShowOverPlayer=!0,Z));return _.u("div",{class:Z},_.u(X_,{data:{style:q.inlineMetadata?"overlay":"mono",accessibilityLabel:q.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(w){w.preventDefault();w.stopPropagation();var r=_.Ln({elementsCommand:q.data.menuOnTap,forceNewState:!0});
if(r==null?0:r.onclick)r.onclick(w)}},
iconName:"MORE_VERT"}))};
y0=function(q,Z,w,r){return q&&Z?q!==w||Z!==r?(_.mW(Error("Hh"),void 0,void 0,{"stored-slot":q,"stored-layout":Z,"latest-slot":w,"latest-layout":r}),!1):!0:!1};
dz2=function(q,Z,w){return q({targetId:Z},function(r){return w.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},r,{header:w.continuationItems?w.continuationItems[0]:void 0}):Object.assign({},r,{contents:w.continuationItems?w.continuationItems:[]})})};
Vtj=function(q,Z,w,r){if(Z=Z.trackingParams){var Y,C=(Y=w.getScreenLayer)==null?void 0:Y.call(w);w=_.b5(C);Y=_.Rs(C);if(w&&Y){var d=_.wa(Z);_.b("combine_ve_grafts")?q.graftServerVe(Z,Y,C):_.T7(w,Y,d);r==null||r(d)}}};
H$9=function(q){var Z;return((Z=O$j.get(q))==null?void 0:Z.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
uQ9=function(q,Z){var w={type:Z.slotType,controlFlowManagerLayer:Wcz.get(Z.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Z.slotEntryTrigger&&(w.entryTriggerType=Z.slotEntryTrigger.triggerType);Z.slotPhysicalPosition!==1&&(w.slotPhysicalPosition=Z.slotPhysicalPosition);if(q){w.debugData={slotId:Z.slotId};if(q=Z.slotEntryTrigger)w.debugData.slotEntryTriggerData=oF6(q);q=Z.slotFulfillmentTriggers;w.debugData.fulfillmentTriggerData=[];q=_.P(q);for(var r=q.next();!r.done;r=q.next())w.debugData.fulfillmentTriggerData.push(oF6(r.value));
Z=Z.slotExpirationTriggers;w.debugData.expirationTriggerData=[];Z=_.P(Z);for(q=Z.next();!q.done;q=Z.next())w.debugData.expirationTriggerData.push(oF6(q.value))}return w};
oF6=function(q,Z){var w={type:q.triggerType};Z!=null&&(w.category=Z);q.triggeringSlotId!=null&&(w.triggerSourceData||(w.triggerSourceData={}),w.triggerSourceData.associatedSlotId=q.triggeringSlotId);q.triggeringLayoutId!=null&&(w.triggerSourceData||(w.triggerSourceData={}),w.triggerSourceData.associatedLayoutId=q.triggeringLayoutId);return w};
LcX=function(q,Z,w,r){Z={opportunityType:Z};q&&(r||w)&&(r=_.bM(r||[],function(Y){return uQ9(q,Y)}),Z.debugData=Object.assign({},w&&w.length>0?{associatedSlotId:w}:{},r.length>0?{slots:r}:{}));
return Z};
SO1=function(q){return io(q.opportunityAdapterMap).concat(io(q.triggerAdapterMap)).concat(io(q.fulfillmentAdapterFactoryMap)).concat(io(q.slotAdapterFactoryMap)).concat(io(q.layoutRenderingAdapterFactoryMap))};
io=function(q){var Z=[];q=_.P(q.values());for(var w=q.next();!w.done;w=q.next())w=w.value,w.isAdsControlFlowEventListener&&Z.push(w);return Z};
ql=function(q){var Z=q.slotId,w=q.slotType,r=q.slotPhysicalPosition;return Z===void 0?new gp("Cannot construct a slot due to the missing id.",{adSlotMetadata:q}):w===void 0?new gp("Cannot construct a slot due to the missing type.",{adSlotMetadata:q}):r===void 0?new gp("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:q}):{slotId:Z,slotType:w,slotPhysicalPosition:r,managerLayer:"external",adSlotLoggingData:q.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new vF8}};
jS6=function(q){var Z=q.layoutId,w=q.layoutType;return Z===void 0?new ZQ("Cannot construct a layout due to the missing id.",{adLayoutMetadata:q}):w===void 0?new ZQ("Cannot construct a layout due to the missing type.",{adLayoutMetadata:q}):{layoutId:Z,layoutType:w,managerLayer:"external",adLayoutLoggingData:q.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new vF8,interactionLoggingAdsClientData:{}}};
tt2=function(q){if((q=q.value)&&q.querySelector("img")){var Z=q.querySelector("img");Z.addEventListener("error",function(){WCT(Z.src).then(function(w){(w=xv(w).toString())?Z.src=w:Z.removeAttribute("src")}).catch(function(){Z.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
rn=function(q,Z){if(Z&&(Rz2(Z.viewableCommand)||Rz2(Z.endOfSessionCommand))){q=q.value;var w=b$T(Z==null?void 0:Z.viewableCommand);Z=b$T(Z==null?void 0:Z.endOfSessionCommand);if(!wn){var r=_.zj("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);wn=new Jxe((r==null?void 0:r.length)===2?r[1]:null)}zz2(wn,q);BvX(wn,q,w,Z)}};
Y_=function(q){wn&&zz2(wn,q.value)};
Rz2=function(q){q=_.oQ(q);return!(q==null||!q.loggingUrls)&&q.loggingUrls.length>0};
b$T=function(q){if(!q)return[];var Z=[],w,r;((r=(w=_.oQ(q))==null?void 0:w.loggingUrls)!=null?r:[]).forEach(function(Y){Y.baseUrl&&Z.push(Y.baseUrl)});
return Z};
aoO=function(q){return q.shorts.isDesktopSmallWidth};
_.nFI=function(q){return q.shorts.isWatchWhileMode};
_.$_=function(q){return q.shorts.isFullscreen};
_.ee=function(q){return q.shorts.isShortsPipActive};
EFe=function(q){var Z,w;if(q=(Z=_.J(q.reelsAdCardButtoned,QSN))==null?void 0:(w=Z.animatedRenderingConfig)==null?void 0:w.easeOutSeconds)return q+"s"};
TvN=function(q,Z,w){return _.V(function(r){return r.return(new Promise(function(Y){var C=new Image;C.onload=function(){Y(new xzz(q,Z,w,C.naturalWidth,C.naturalHeight))};
C.src=w.toString()}))})};
UzN=function(q,Z){return Math.round(q/1E-5)===Math.round(Z/1E-5)};
kw2=function(q,Z){return Math.round(q/1E-5)===Math.round(Z/1E-5)};
Kc9=function(q,Z){return q.year===Z.year&&q.month===Z.month&&q.day===Z.day};
sS2=function(q,Z){return q.year!==Z.year?q.year<Z.year:q.month!==Z.month?q.month<Z.month:q.day<Z.day};
cx8=function(q){return q.day===Ioe(q.year,q.month)?q.month===11?{year:q.year+1,month:0,day:1}:{year:q.year,month:q.month+1,day:1}:{year:q.year,month:q.month,day:q.day+1}};
MtT=function(){var q=new Date,Z={year:q.getFullYear(),month:q.getMonth(),day:q.getDate()};return{start:Z,end:{year:q.getFullYear()+2,month:q.getMonth(),day:q.getDate()},selectedDate:cx8(Z)}};
Fce=function(q){return(new xO(2)).format(new Date(q.year,q.month,q.day))};
NvT=function(q){return{year:q.getFullYear(),month:q.getMonth(),day:q.getDate()}};
loj=function(q,Z){q=(q+(Number(Z.utcOffsetSec)+(new Date(q*1E3)).getTimezoneOffset()*60))*1E3;Z=NvT(new Date(q));return{date:Z,secondsSinceMidnight:Math.floor((q-(new Date(Z.year,Z.month,Z.day)).getTime())/1E3)}};
GwO=function(q,Z){Z=Z.months.findIndex(function(w){return w.year===q.year&&w.month===q.month});
return Z>=0?Z:void 0};
pT9=function(q){if(!q)return!1;try{if(q.host&&q.host.tagName==="YT-FORMATTED-STRING"&&q.host.id==="contenteditable-textarea"||q.nodeType===Node.ELEMENT_NODE&&q.tagName==="YTD-COMMENTBOX")return!0}catch(Z){return!1}return pT9(q.parentNode)};
CP=function(q){return q?!(q.tagName!=="A"||!q.href||!q.classList.contains("yt-simple-endpoint")):!1};
XT1=function(q){return q?q.tagName==="IMG"&&q.classList.contains("emoji"):!1};
mze=function(q,Z,w){if(!q)return null;var r=CP(q);if(r&&w)return Z=q.pathname.substring(q.pathname.indexOf("/channel/")+9),document.createTextNode("@"+Z);if(r&&!w)return document.createTextNode("");if(XT1(q))return w=q.alt,q=q.dataset.emojiId,!q&&Z&&(Z=_.PQ(Z,w))&&Z.isCustomEmoji&&(q=Z.emojiId),q?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+q+">"):document.createTextNode(w);r=q.cloneNode(!1);for(var Y=0;Y<q.childNodes.length;++Y){var C=mze(q.childNodes[Y],Z,w);C&&r.appendChild(C)}return r};
dn=function(q){return q?CP(q)?q:dn(q.lastChild):null};
AxO=function(q){return q?CP(q)?q:AxO(q.firstChild):null};
fo2=function(q){if(!q)return null;for(var Z=q.previousSibling;Z;)if(Z.nodeType===Node.ELEMENT_NODE&&Z.nodeName==="BR")Z=Z.previousSibling;else if(Z.nodeType===Node.TEXT_NODE&&/\s+/.test(Z.textContent))Z=Z.previousSibling;else break;(Z=dn(Z))?q=Z:q=(q=q.parentNode)?dn(q.previousElementSibling):null;return q};
DzT=function(q){if(!q)return null;for(var Z=q.nextSibling;Z;)if(Z.nodeType===Node.ELEMENT_NODE&&Z.nodeName==="BR")Z=Z.nextSibling;else if(Z.nodeType===Node.TEXT_NODE&&/\s+/.test(Z.textContent))Z=Z.nextSibling;else break;return(Z=AxO(Z))?Z:DzT(q.parentNode)};
hzj=function(q){var Z=_.Vt(),w=Z.JSC$9109_getStartNode();if(!pT9(w.parentNode))return null;Z=Z.JSC$9109_getStartOffset();if(w.nodeType===Node.TEXT_NODE){var r=_.E3(w,CP);if(r){if(q&&Z===0||!q&&Z===w.length)return r}else{if(q&&Z===w.length)return!w||w.nodeName==="BR"||w.nextElementSibling&&_.Oz(w.nextElementSibling,"display")==="block"?null:AxO(w.nextElementSibling);if(!q&&Z===0)return w?dn(w.previousElementSibling):null}}if(w.nodeType===Node.ELEMENT_NODE)if(q){if(0<=Z&&Z<w.childNodes.length)return AxO(w.childNodes[Z])}else if(0<
Z&&Z<=w.childNodes.length)return dn(w.childNodes[Z-1]);return null};
yx9=function(q,Z,w){if(!q)return null;if(q.nodeType===Node.TEXT_NODE)if(w){var r=fo2(q);if(r&&!/^\s+\S/.test(q.wholeText.substr(0,Z)))return r}else if((r=DzT(q))&&!/\S\s+/.test(q.wholeText.substr(Z,q.wholeText.length)))return r;return q.nodeType===Node.ELEMENT_NODE?w?fo2(q.childNodes[Z]):DzT(q.childNodes[Z]):yx9(q.parentNode,Z,w)};
i$I=function(q){if(q.hasChildNodes())switch(q.tagName){case "DIV":case "A":case "SPAN":var Z="";for(q=q.firstChild;q;q=q.nextSibling)Z+=i$I(q);return Z;default:return""}else switch(q.nodeType){case 3:return q.textContent;default:return""}};
HQ=function(q,Z){return q.year===Z.year&&q.month===Z.month&&q.day===Z.day};
WQ=function(q,Z){return q.year!==Z.year?q.year<Z.year:q.month!==Z.month?q.month<Z.month:q.day<Z.day};
gFT=function(q){return{year:q.getFullYear(),month:q.getMonth(),day:q.getDate()}};
qcO=function(q){var Z=YYz;Z=Z===void 0?YYz:Z;Z(new Date(q.year,q.month,q.day))};
og=function(q){return gFT(new Date(Number(q.seconds)*1E3))};
Zaz=function(q){return q.year!==void 0&&q.month!==void 0&&q.day!==void 0};
w7z=function(q){return q.start!==void 0&&q.end!==void 0};
reI=function(q){return w7z(q)?q.start:q};
YcT=function(q){return w7z(q)?q.end:void 0};
ej2=function(q,Z){for(var w=[],r=new Date(q.start.year,q.start.month);r.getFullYear()<q.end.year||r.getFullYear()===q.end.year&&r.getMonth()<=q.end.month;){var Y=w,C=Y.push,d=r.getFullYear(),O=r.getMonth(),H=q,L=Z,S=void 0,v=[],R=Object.freeze({extraCssClass:"invisible"}),B=new Date(d,O),n=gFT(B);B=B.getDay();for(var x=gFT(new Date);n.month===O;){B!==$8N&&S||(S=Array.from({length:7}).fill(R),v.push(S));var K={date:{year:d,month:O,day:n.day},extraCssClass:"",debugClass:""};K.extraCssClass=L(K.date,
n,x,H).trim();S[(B-$8N+7)%7]=K;n=n.day===Ioe(n.year,n.month)?n.month===11?{year:n.year+1,month:0,day:1}:{year:n.year,month:n.month+1,day:1}:{year:n.year,month:n.month,day:n.day+1};B=(B+1)%7}C.call(Y,{weeks:v,monthLabel:u2.SHORTMONTHS[O]+" "+d,year:d,month:O,monthLabelExtraCssClass:v[0][2]===R?"shift-down-label":""});r.setMonth(r.getMonth()+1)}return w};
Cnj=function(q,Z){Z=Z.months.findIndex(function(w){return w.year===q.year&&w.month===q.month});
return Z>=0?Z:void 0};
d82=function(q,Z){a:{var w=w===void 0?[2,3]:w;w=_.P(w);for(var r=w.next();!r.done;r=w.next()){var Y=new Date;if((new PnT(r.value)).parse(Z,Y,{validate:!0})){Y.setHours(0,0,0,0);Z=Y;break a}}Z=null}if(!Z)return{isValid:!1,value:void 0};Z=gFT(Z);w=q.end;return WQ(Z,q.start)||WQ(w,Z)?{isValid:!1,value:void 0}:{isValid:!0,value:Z}};
o3e=function(q){var Z=VoI;Z=Z===void 0?OaX:Z;var w=q.columnsToShow||[],r=HaN(q.columnDimensions,q.columnsToShow,q.leftFloatingColumns,Z);return w.map(function(Y,C){var d=q.columns[Y];if(d===void 0)throw Error("Nh");var O=r?r[C]:"";var H=q.getCustomTooltip?q.getCustomTooltip(Y,d.headerTooltipParagraphs):d.headerTooltipParagraphs;var L=WNO(q,Y);return{type:Y,index:C,style:O,classes:L,headerName:d.headerName||"",headerIcon:d.headerIcon,headerTooltipParagraphs:H||[],headerTooltipHelpContext:d.headerTooltipHelpContext,
sortOrders:d.sortOrders||[],selectionState:d.isSelectionCheckbox?q.selectionState:void 0}})};
WNO=function(q,Z){var w=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],r=q.columns[Z];if(r===void 0)return"";var Y=w.includes("DEFAULTS")&&r.cssClass?[r.cssClass]:[];if(w.includes("SORTING")){r.sortOrders&&r.sortOrders.length&&Y.push("sortable");if(q.sorting&&q.sorting.columnType===Z)a:switch(q.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var C="column-sorted";break a;default:C=""}else C="";C&&Y.push(C)}w.includes("FLOATING")&&(Z=q.columnsToShow.indexOf(Z),q.leftFloatingColumns&&Z<q.leftFloatingColumns&&
Y.push("floating-column"),q.leftFloatingColumns&&Z===q.leftFloatingColumns-1&&Y.push("last-floating-column"));w.includes("RIGHT_ALIGN")&&r.rightAlignHeader&&Y.push("right-align");return Y.filter(function(d){return d}).join(" ")};
HaN=function(q,Z,w,r){w=w===void 0?0:w;r=r===void 0?OaX:r;if(q){var Y=[],C=0;unO(q,Z,r).forEach(function(d,O){var H="min-width:"+d.minWidth+"px;padding-left:"+d.paddingLeft+"px;padding-right:"+d.paddingRight+"px;flex:"+d.flexGrow+" 0 "+d.minWidth+"px;";d.maxWidth!==Infinity&&(H=[H,"max-width:"+d.maxWidth+"px;"].join(""));C>0&&O<w&&(H=[H,"left:"+C+"px;"].join(""));Y.push(H);C+=d.minWidth+d.paddingLeft+d.paddingRight});
return Y}};
unO=function(q,Z,w){w=w===void 0?OaX:w;return Z.map(function(r,Y){r=q&&q[r]||{};var C=Y===0?w.paddingLeftFirstColumn:w.padding;r.paddingLeft!==void 0&&(C=r.paddingLeft);Y=Y===Z.length-1?w.paddingRightLastColumn:w.padding;r.paddingRight!==void 0&&(Y=r.paddingRight);return{paddingLeft:C,paddingRight:Y,minWidth:r.minWidth!==void 0?r.minWidth:w.minWidth,maxWidth:r.maxWidth!==void 0?r.maxWidth:w.maxWidth,flexGrow:r.flexGrow!==void 0?r.flexGrow:w.flexGrow}})};
LNT=function(q){var Z=q.reduce(function(r,Y){var C=Y.columnId,d={};Y.headerText&&(d.headerName=_.kO(Y.headerText));Y.rightAlignHeader&&(d.rightAlignHeader=Y.rightAlignHeader);var O;if((O=Y.headerIcon)==null?0:O.iconType)d.headerIcon=_.Xl(Y.headerIcon.iconType);r[C]=d;return r},{}),w=q.filter(function(r){return!r.hideColumn}).map(function(r){return r.columnId});
q=q.filter(function(r){return!!r.dimensions}).reduce(function(r,Y){r[Y.columnId]=Y.dimensions;
return r},{});
return{columns:Z,columnsToShow:w,columnDimensions:q}};
_.ScX=function(q){return q?q.simpleText?q.simpleText:q.runs?q.runs.map(function(Z){return Z.text}).join(""):"":""};
baI=function(q){var Z=q.data;var w=q.onTap;var r=q.isSelected;var Y=q.onFocusIn;if(!Z)return{};q=v32(Z);r===void 0&&(r=Z==null?void 0:Z.isSelected);var C;return{text:jH2(Z,q),startIcon:(C=Z.icon)==null?void 0:C.iconType,state:r?0:2,type:0,onTap:to6(Z,w),accessibilityLabel:RjO(Z,q),onFocusIn:function(){return Y==null?void 0:Y()}}};
jH2=function(q,Z){if(!Z)return q.text?_.ScX(q.text):void 0};
to6=function(q,Z){return function(w){Z==null||Z(w,q)}};
v32=function(q){q=q.style&&q.style.styleType;return!JeT&&q==="STYLE_EXPLORE_LAUNCHER_CHIP"};
RjO=function(q,Z){if(Z){var w,r,Y;return(Y=(w=q.accessibilityData)==null?void 0:(r=w.accessibilityData)==null?void 0:r.label)!=null?Y:jH2(q,!1)}};
LP=function(q){return{signalAction:{signal:q}}};
aHO=function(){return _.zj("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?zjT:_.BsX};
n31=function(q,Z){q=q===void 0?"SOFT_RELOAD_PAGE":q;Z=Z===void 0?49504:Z;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.G7(_.dT("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:Z}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:q}}]}}}};
QH9=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.G7(_.dT("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:aHO()}};
E3X=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.G7(_.dT("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:aHO()}};
x8j=function(q,Z){var w=_.G7(_.dT("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),r=_.G7(_.dT("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),Y={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.G7(_.dT("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};Y.serviceEndpoint=q?q:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[LP("SOFT_RELOAD_PAGE")]}};return{title:w,bodyText:r,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:Y},
style:{value:Z!=null?Z:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
U86=function(q){q=q===void 0?{}:q;return{title:_.G7(q.localizedZeroStateTitleText===void 0?"":q.localizedZeroStateTitleText),bodyText:_.G7(q.localizedZeroStateMessage===void 0?"":q.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.G7(q.localizedZeroStateButtonText===void 0?"":q.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[TsX]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.sH9=function(q,Z,w,r,Y,C,d,O){r=r===void 0?!1:r;Y=Y===void 0?!1:Y;C=C===void 0?0:C;d=d===void 0?-Infinity:d;O=O===void 0?!1:O;var H=[],L=_.G7(_.dT("SMART_DOWNLOADS",void 0,"Smart downloads"));d=_.G7(kHz(C,d,q.length));C=void 0;r?(q.length>0?w=KNX(q,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.b("kevlar_manual_downloads_above"),L,d):O?(C={content:w.localizedOptInBannerTitleText===void 0?"":w.localizedOptInBannerTitleText},w={content:w.localizedPromptMessage===void 0?"":w.localizedPromptMessage},
Y={buttonViewModel:{title:_.dT("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.dT("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:_.t1O}]}}}}},
w={alertBannerViewModel:{heading:C,body:w,type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:Y,rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}):w={backgroundPromoRenderer:{bodyText:_.G7(_.dT("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"}}},C=w):Y&&(C={content:w.localizedOptInBannerTitleText===
void 0?"":w.localizedOptInBannerTitleText},w={content:w.localizedOptInMessage===void 0?"":w.localizedOptInMessage},Y={buttonViewModel:{title:_.dT("TURN_ON",void 0,"Turn on"),accessibilityText:_.dT("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}}}}},C={alertBannerViewModel:{heading:C,body:w,type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:Y,rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});w=_.G7(_.dT("YOUR_DOWNLOADS",void 0,"Your downloads"));Y=void 0;Z.length>0?(Y=void 0,_.b("kevlar_display_downloads_numbers")&&(Y=_.G7(_.VG("VIDEO_COUNT",Z.length))),Y=KNX(Z,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,w,Y)):r||q.length||(Y={backgroundPromoRenderer:{bodyText:_.G7(_.dT("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}}}});C&&!_.b("kevlar_manual_downloads_above")&&H.push({richSectionRenderer:{content:C,loggingDirectives:{clientVeSpec:{uiType:139572}}}});Y&&H.push({richSectionRenderer:{content:Y,loggingDirectives:{clientVeSpec:{uiType:51721}}}});C&&_.b("kevlar_manual_downloads_above")&&
H.push({richSectionRenderer:{content:C,loggingDirectives:{clientVeSpec:{uiType:139572}}}});if(Z.length>0||r&&q.length>0)q=H.push,Z={richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.G7(_.dT("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}}}}}},q.call(H,Z);return{contents:H}};
_.cee=function(q){return IH2(q,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.Mo8=function(q){return IH2(q,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
IH2=function(q,Z){var w=[];q=KNX(q,Z,!0);w.push({richSectionRenderer:{content:q}});return{contents:w}};
KNX=function(q,Z,w,r,Y){w=w===void 0?!1:w;q={isExpanded:w,contents:Se(q),entitySelectorType:Z};r&&(q.title=r);Y&&(q.subtitle=Y);w||(_.b("kevlar_smart_downloads_show_more_button")?(w={buttonRenderer:{accessibility:{label:_.dT("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.G7(_.dT("SHOW_MORE",void 0,"Show more"))}},q.showMoreButton=w,w={buttonRenderer:{accessibility:{label:_.dT("SHOW_LESS",void 0,
"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.G7(_.dT("SHOW_LESS",void 0,"Show less"))}},q.showLessButton=w):(w={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.dT("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}}}},q.previousButton=w,w=
{buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.dT("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}}}},q.nextButton=w,w={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.dT("VIEW_ALL",void 0,"View all"),accessibilityText:_.dT("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:NM("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}},q.menu=w));return{richShelfRenderer:q}};
Se=function(q){var Z=[];q=_.P(q);for(var w=q.next();!w.done;w=q.next())if(w=w.value,wV6(w)){var r=Z,Y=r.push;var C=void 0;if(w==null?0:(C=w.videoEntity)==null?0:C.videoId){C=z9(_.sE().getState(),w.videoEntity.videoId);var d=_.sE().getState();var O=_.yG(w.videoEntity.videoId,"mainVideoEntity");d=!!_.WX(d.entities)[O];d={videoId:w.videoEntity.videoId,title:pR(w.videoEntity.title),shortBylineText:pR(w.channelEntity.title),thumbnail:w.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:d&&_.b("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:UI6(w.videoEntity.videoId,C,w.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.dT("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};w.videoEntity.lengthSeconds&&(d.thumbnailOverlays=Jg2(w.videoEntity.lengthSeconds,C));d.isWatched=C>0;_.b("kevlar_modern_downloads_page")&&(d.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:w.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.dT("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},d.badges=void 0);w=d}else w={};Y.call(r,{richItemRenderer:{content:{videoRenderer:w},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(ZqI(w)){r=Z;Y=r.push;var H=O=C=void 0,L=void 0,S=void 0,v=void 0,R=void 0,B=void 0,n=void 0,x=void 0,K=void 0,k=void 0;d=w.mainPlaylistEntity.playlistId;var G=w==null?void 0:(k=w.mainPlaylistEntity)==null?void 0:(K=k.thumbnailStyleData)==null?void 0:(x=K[0])==null?void 0:(n=x.value)==null?void 0:(B=n.collageThumbnail)==
null?void 0:B.coverThumbnail;if(d&&G){B=kv8(d);!_.b("enable_offline_playlist_page")&&(w==null?0:(R=w.mainPlaylistEntity)==null?0:R.videos)&&(R=w==null?void 0:(v=w.mainPlaylistEntity)==null?void 0:(S=v.videos)==null?void 0:S[0],S=_.fR(R).entityId,S=JSON.parse(S).videoId,S!==void 0&&(v=z9(_.sE().getState(),S),B=_.lI(S,d,void 0,void 0,v)));S=[];if(w==null?0:(L=w.mainPlaylistEntity)==null?0:(H=L.videos)==null?0:H.length)S=[rgO(),Object.assign({},(O=wE8(w==null?void 0:w.mainPlaylistEntity.videos.length))!=
null?O:{})];w={playlistId:d,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:G}},navigationEndpoint:B,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:S,title:pR(w.mainPlaylistEntity.title),shortBylineText:pR(w==null?void 0:(C=w.channelEntity)==null?void 0:C.title),badges:[{metadataBadgeRenderer:{label:_.dT("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.b("kevlar_modern_downloads_page")&&(w.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:FNN,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:d,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.dT("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},w.badges=void 0)}else w=void 0;Y.call(r,{richItemRenderer:{content:{playlistRenderer:w},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return Z};
kHz=function(q,Z,w){q=q?Nse(q):"";Z!==void 0&&isFinite(Z)?Z===0?Z=_.dT("UPDATING",void 0,"Updating..."):(Z=bK6(new Date(Z),new Date),Z=_.dT("UPDATED_TIME",{relative_time:Z},"Updated "+Z)):Z="";var r="";q&&Z&&(r=" \u2022 ");if(w&&_.b("kevlar_display_downloads_numbers")){w=_.VG("VIDEO_COUNT",w);if(q||Z)r=" \u2022 ";return w+r+q+r+Z}return q+r+Z};
lH9=function(q){return AAI(q.entities).length};
_.GHX=function(q,Z){var w=fW8(q.responsiveSize),r;q=!((r=q.responsiveMap)==null||!r.some(function(Y){return Y.containerSize==="CONTAINER_SIZE_NARROW"&&Y.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:Z,sizing:w,enableFullBleedForSingleCol:!1,isCompactList:w==="COMPACT"&&q}};
p71=function(q,Z){return _.iI(q.entities,"votingEntity",Z)};
X7I=function(q){if(q){var Z;return((Z=_.t().resolve(_.Gj(_.RQ)))==null?0:Z())?q.darkTheme:q.lightTheme}};
m8X=function(q,Z,w){return _.u(_.lS,null,qGO(w,[[0,function(){return _.u("h2",{class:Z},q)}],
[1,function(){return _.u("h3",{class:Z},q)}],
[2,function(){return _.u("h4",{class:Z},q)}]],function(){return _.u("h2",{class:Z},q)}))};
AeX=function(q){var Z=["shelf-header-layout-wiz"];q.disableHorizontalPadding&&Z.push("shelf-header-layout-wiz--disable-horizontal-padding");q.disableVerticalPadding&&Z.push("shelf-header-layout-wiz--disable-vertical-padding");q.useResponsiveLayout&&(Z.push("shelf-header-layout-wiz--responsive"),q.forceSmallLayout&&Z.push("shelf-header-layout-wiz--narrow"));q.isOverlay&&Z.push("shelf-header-layout-wiz--is-overlay");q.onClick&&Z.push("shelf-header-layout-wiz--tappable");var w=["shelf-header-layout-wiz__title"];
q.forceSmallLayout&&w.push("shelf-header-layout-wiz__title--small-title");var r=["shelf-header-layout-wiz__leading-image"];q.circularImage&&r.push("shelf-header-layout-wiz__leading-image--circular-image");var Y=_.fn(function(C){var d;(d=q.onClick)==null||d.call(q,C)});
return _.u("yt-shelf-header-layout",{class:Z.join(" "),"on:click":Y,tabindex:q.onClick?0:void 0},q.leadingIcon?_.u("div",{class:"shelf-header-layout-wiz__leading-icon"},_.u(_.q0,{icon:q.leadingIcon})):q.leadingImage?_.u("div",{class:r.join(" ")},q.leadingImage()):_.u(_.lS,null),_.u("div",{class:"shelf-header-layout-wiz__label-container"},q.superlabel?_.u("div",{class:"shelf-header-layout-wiz__superlabel"},q.superlabel()):_.u(_.lS,null),_.u("div",{class:"shelf-header-layout-wiz__title-row"},m8X(q.title(),
w.join(" "),q.tagLevel),_.Fs(q.detail,function(){return _.u("div",{class:"shelf-header-layout-wiz__detail"},q.detail())})),q.sublabel?_.u("div",{class:"shelf-header-layout-wiz__sublabel"},q.sublabel()):_.u(_.lS,null)),q.trailingActions?_.u("div",{class:"shelf-header-layout-wiz__trailing-actions"},q.trailingActions()):_.u(_.lS,null))};
fHe=function(q){var Z=_.J(q==null?void 0:q.avatar,_.kL),w,r=(w=q==null?void 0:q.image)!=null?w:_.lo(q==null?void 0:q.themedImage);return _.u(_.lS,null,_.Fs(r,function(){return _.u(_.aQ,{data:r,alt:"",preserveWidth:!0,preserveHeight:!0})}),_.Fs(Z,function(){return _.u(_.vQ,{data:Z})}))};
ye2=function(q){var Z=_.J(q.bottomBadge,D81),w=Z&&q.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.u(_.lS,null,_.Fs(Z,function(){return Z&&_.u(hjX,{data:Z,class:w})}),_.Fs(q.sublabel,function(){return _.u(_.r6,{text:q.sublabel})}))};
iaz=function(q){var Z=_.J(q.topBadge,D81),w=Z&&q.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.u(_.lS,null,_.Fs(Z,function(){return Z&&_.u(hjX,{data:Z,class:w})}),_.Fs(q.superlabel,function(){return _.u(_.r6,{text:q.superlabel})}))};
ql9=function(q){var Z=q.data;var w=q.disableHorizontalPadding;var r=q.disableVerticalPadding;var Y=q.forceSmallLayout;var C=q.useResponsiveLayout;q=q.isOverlay;var d=Z.sublabel||Z.bottomBadge,O=Z.superlabel||Z.topBadge,H=_.nV(Z.rendererContext);w={title:function(){return _.u(_.r6,{text:Z.headline})},
sublabel:d&&function(){return ye2(Z)},
superlabel:O&&function(){return iaz(Z)},
leadingImage:Z.leadingAccessory&&function(){return fHe(Z.leadingAccessory)},
trailingActions:Z.trailingActions&&function(){return _.u(_.lS,null,g3O(Z.trailingActions))},
disableHorizontalPadding:w,disableVerticalPadding:r,forceSmallLayout:Y,useResponsiveLayout:C,isOverlay:q,onClick:H?function(L){var S=_.a5(Z.rendererContext);S&&_.um(S,{form:{element:L.target,event:L}})}:void 0};
r=(r=X7I(Z==null?void 0:Z.backgroundColor))?"background-color: "+_.uq(r)+";":void 0;return _.u("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:r},_.u(AeX,Object.assign({},w)))};
ZQX=function(q,Z){if(q.simpleText)return Object.assign({},q,{simpleText:jp(q.simpleText,Z)});if(!q.runs)return q;for(var w=Object.assign({},q,{runs:[]}),r=0,Y=_.P(q.runs),C=Y.next();!C.done;C=Y.next())if(C=C.value,C.text)if(r+C.text.length<=Z)w.runs.push(C),r+=C.text.length;else return w.runs.push(Object.assign({},C,{text:jp(C.text,Z-r)})),w;return q};
w4z=function(q,Z){return _.iI(q.entities,"chipBarStateEntity",Z)};
rv9=function(q,Z){return _.iI(q.entities,"chipEntity",Z)};
$iN=function(q,Z,w,r){return function(){var Y=Yl2.has(q.displayType)&&q.selected,C=Y&&q.deselectCommand?q.deselectCommand:q.tapCommand;!C||Y&&r||_.Sp(C,{form:{element:Z==null?void 0:Z.value}});w==null||w()}};
ewX=function(q,Z){return{triggeringElement:q,onDwellTriggeredFn:function(){var w={triggeringElement:q,loadVideoPreviewEventData:Z},r=document.querySelector(".video-preview");r&&r.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:w}))},
onDwellEndFn:function(){var w=document.querySelector(".video-preview");w&&w.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
Cz6=function(q,Z){var w=_.t().resolve(_.Gj(xD6)),r=function(){var Y=Z();return w&&Y?ewX(q.value,Y):null};
_.L7(function(){var Y=r();w&&Y&&Promise.resolve().then(function(){w.registerElement(Y)});
_.SG(function(){w&&Y&&Promise.resolve().then(function(){w.unregisterElement(Y)})})})};
diO=function(q){var Z=q.dataset.resizeObserverId;if(Z)return Z;Z=""+PzI++;return q.dataset.resizeObserverId=Z};
Vw8=function(q,Z){var w=diO(q);je.has(w)||je.set(w,new Set);je.get(w).add(Z);tQ.has(w)&&Z(Object.assign({},{target:q},tQ.get(w)))};
OQT=function(q){q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var w=diO(Z.target),r=Object.assign({},{target:Z.target},tQ.get(w));if(r!=null&&r.contentRect?r.contentRect.width!==Z.contentRect.width||r.contentRect.height!==Z.contentRect.height:1)for(tQ.set(w,{borderBoxSize:Z.borderBoxSize,contentBoxSize:Z.contentBoxSize,contentRect:Z.contentRect,devicePixelContentBoxSize:Z.devicePixelContentBoxSize}),w=_.P(je.get(w)||[]),r=w.next();!r.done;r=w.next())r=r.value,r(Z)}};
WsI=function(){return Rg?Rg:Rg=new HQ2(OQT)};
oH6=function(q,Z){var w=diO(q);je.has(w)&&(je.get(w).delete(Z),je.get(w).size===0&&(je.delete(w),tQ.delete(w),Rg.unobserve(q),delete q.dataset.resizeObserverId));je.size===0&&Rg&&(Rg.disconnect(),Rg=void 0)};
Ls9=function(q,Z){var w=_.t().resolve(pb);return uI9.map(function(r){return w.observe(q,Z,r)})};
Sl8=function(q){var Z=_.t().resolve(pb);q.forEach(function(w){Z.unobserveByKey(w)})};
tw8=function(q){var Z=Object.assign({},vHe,{canHaveZeroSize:!1}),w=_.P(B5I()),r=w.next().value,Y=w.next().value,C=function(d){var O=d.contentRect.height;if((d=d.contentRect.width)||O||Z.canHaveZeroSize)r.width()===d&&r.height()===O||Y(r,{height:O,width:d})};
_.Ls(function(){var d=q instanceof HTMLElement?q:q.value,O=jB2(C,Z.throttleMs),H=[];Z.useVisibilityObserver&&(H=Ls9(d,function(L,S){requestAnimationFrame(function(){S==="visible"?(Vw8(d,O),WsI().observe(d)):oH6(d,O)})}));
H.length||(Vw8(d,O),WsI().observe(d));_.SG(function(){H.length&&(Sl8(H),H.length=0);oH6(d,O)})});
return r};
bQj=function(q){var Z=q.data;var w=q.callback;var r=q.enableSingleChipSelection;var Y=q.disableChipsScrollAnimation;var C=_.Iw();q={};q=_.P(Dd(Z.autoselectedChipIndex!=null?(q[Z.autoselectedChipIndex]=!0,q):{}));var d=q.next().value,O=q.next().value,H=Z.isHorizontallyScrollable,L=function(B){C.value!=null&&(_.zj("HTML_DIR")==="rtl"&&(B=-B),C.value.scrollBy({left:B,behavior:Y?"instant":"smooth"}))},S=function(){L(-320)},v=function(){L(320)};
q={};var R={};return _.u("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},(Z==null?void 0:Z.title)&&_.u("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},Z.title),_.u("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.Fs(Z.previousButton!=null,function(){return _.u("div",{class:"ytChipsShelfViewModelLeftArrowContainer"},Rwj(Z.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:S}}))}),_.u("div",{el:C,
class:_.GL("ytChipsShelfViewModelChipsScrollContainer",(q.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=function(){return!!H},q))},_.u("div",{class:_.GL("ytChipsShelfViewModelChipsContainer",(R.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=function(){return!!H},R.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=function(){return!!H&&!1},R))},(Z.contents||[]).map(function(B,n){return _.u("div",{class:"ytChipsShelfViewModelChipWrapper"},Rwj(B,
{chipViewModel:{callback:function(x,K){if(r){var k={};
O((k[n]=K,k))}else k={},O(Object.assign({},d,(k[n]=K,k)));w==null||w(x,K,n)},
disableDeselection:r,selected:!!d[n]}}))}))),_.Fs(Z.nextButton!=null,function(){return _.u("div",{class:"ytChipsShelfViewModelRightArrowContainer"},Rwj(Z.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",
onClick:v}}))})))};
zw8=function(q,Z,w,r,Y){q=Z?q.switchOffCommand:q.switchOnCommand;if(r&&Y)Jv6(q,w,Y);else{var C,d;(C=_.Ln({elementsCommand:q}))==null||(d=C.onclick)==null||d.call(C,w)}};
Jv6=function(q,Z,w){q=_.Ln({elementsCommand:q,additionalCommandArgs:{commandController:{onSuccess:function(){w(!1)},
onServerError:function(){w(!1)}}}});
if(q==null?0:q.onclick)q.onclick(Z),w(!0)};
a32=function(q){if(q)return _.J(q,BRj)};
nHN=function(q){q=q.selectElementClass;var Z={};q=_.XA("checkbox-shape-wiz__checkbox",q,(Z["checkbox-shape-wiz__checkbox--checkbox-default-style"]=!q,Z));return _.u("div",{class:q,"aria-hidden":"true"},_.u(_.q0,{icon:"BOX_EMPTY"}),_.u(_.q0,{icon:"BOX_CHECK",active:!0}))};
QBz=function(q){var Z=q.name;var w=q.onChange;var r=q.onClick;var Y=q.checked===void 0?!1:q.checked;var C=q.labelRenderable;var d=q.hasLeadingLabel;var O=q.labelClass;var H=q.isCompact;var L=q.selectElementClass;var S=q.disableHorizontalPadding;q="checkbox"+_.b2(_.JQ);var v=_.Iw(),R=_.fn(function(x){r==null||r(x);return!1}),B=_.fn(function(x){v.value.checked=Y;
w==null||w(x);return!1}),n={};
O=_.XA("checkbox-shape-wiz",O,(n["checkbox-shape-wiz--compact"]=!!H,n["checkbox-shape-wiz--disable-horizontal-padding"]=!!S,n));return _.u("checkbox-shape",null,_.u("label",{class:O},_.u("input",{el:v,class:"checkbox-shape-wiz__input",id:q,checked:Y,name:Z,type:"checkbox","on:change":B,"on:click":R}),_.Fs(!d,function(){return nHN({isLeading:!0,selectElementClass:L})}),_.Fs(C,function(){return _.u("div",{class:"checkbox-shape-wiz__label"},C==null?void 0:C())}),_.Fs(d,function(){return nHN({isLeading:!1,
selectElementClass:L})})))};
EH9=function(q){var Z=q.useCheckIcon===void 0?!1:q.useCheckIcon;var w=q.selectElementClass;q=Z?"CHECK":"CIRCLE";var r="",Y=_.b("radio_shape_filled_icon_manual_setting_killswitch");Y&&(r=Z?"CHECK":"CIRCLE_FILLED");var C={};w=_.XA("radio-shape-wiz__radio",w,(C["radio-shape-wiz__radio--check-icon"]=!!Z,C["radio-shape-wiz__radio--radio-default-style"]=!w,C));return Y?_.u("div",{class:w,"aria-hidden":"true"},_.u(_.q0,{icon:q}),_.u(_.q0,{icon:r,active:!Z})):_.u("div",{class:w,"aria-hidden":"true"},_.u(_.q0,
{icon:q}),_.u(_.q0,{icon:q,active:!Z}))};
xi8=function(q){function Z(){var f;((f=_.t().resolve(_.Gj(_.er)))==null?0:f.isKeyBoardInUse())&&K.value.classList.add("radio-shape-wiz__label-container--keyboard-focused")}
function w(){K.value.classList.remove("radio-shape-wiz__label-container--keyboard-focused")}
var r=q.name;var Y=q.onChange;var C=q.onClick;var d=q.checked===void 0?!1:q.checked;var O=q.labelRenderable;var H=q.useCheckIcon;var L=q.hasLeadingLabel;var S=q.labelClass;var v=q.isCompact;var R=q.selectElementClass;var B=q.ariaLabel;var n=q.className;q=vF(function(){return"radio"+_.b2(_.JQ)});
var x=_.Iw(),K=_.Iw(),k=_.fn(function(f){x.value.checked=d;Y==null||Y(f);return!1}),G=_.fn(function(f){C==null||C(f);
return!1}),rz=["radio-shape-wiz"];
n&&rz.push(n);n={};S=_.XA("radio-shape-wiz__label-container",S,(n["radio-shape-wiz--compact"]=!!v,n));HF(function(){document.activeElement===x.value&&Z()});
_.Ls(function(){var f=x.value;f.addEventListener("focusin",Z);f.addEventListener("focusout",w);return function(){f.removeEventListener("focusin",Z);f.removeEventListener("focusout",w)}});
return _.u("radio-shape",{class:rz.join(" ")},_.u("input",{el:x,class:"radio-shape-wiz__input",id:q,"prop:checked":d,name:r,type:"radio","on:change":k,"on:click":G,"aria-label":B}),_.u("label",{class:S,for:q,el:K},_.Fs(!L,function(){return EH9({checked:d,useCheckIcon:H,isLeading:!0,selectElementClass:R})}),_.Fs(O,function(){return _.u("div",{class:"radio-shape-wiz__label",
"aria-hidden":B?"true":"false"},O==null?void 0:O())}),_.Fs(L,function(){return EH9({checked:d,
useCheckIcon:H,isLeading:!1,selectElementClass:R})})))};
Ui2=function(q){var Z=q.data;var w=q.isLeading;var r=q.hideSelectionTextChevron;if(w&&(Z.leadingImage||Z.leadingAccessory)||!w&&(Z.trailingImage||Z.trailingButton||Z.trailingButtons||Z.selectionText)){var Y=_.XA("yt-list-item-view-model-wiz__button-container");q={};var C=_.XA("yt-list-item-view-model-wiz__image-container",(q["yt-list-item-view-model-wiz__leading"]=w,q["yt-list-item-view-model-wiz__trailing"]=!w,q)),d=w?Z.leadingImage:Z.trailingImage,O=_.XA("yt-list-item-view-model-wiz__accessory",
"yt-list-item-view-model-wiz__image");q={};var H=_.XA("yt-list-item-view-model-wiz__accessory",(q["yt-list-item-view-model-wiz__leading"]=w,q["yt-list-item-view-model-wiz__trailing"]=!w,q)),L=!!Z.selectionText;a:switch(Z.listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":q="expand_more";break a;default:q="chevron_right"}var S=q;return function(){var v;return _.u(_.lS,null,_.Fs(d,function(){return _.u("div",{class:C,"aria-hidden":"true"},_.u(_.aQ,{data:d,alt:"",
preserveWidth:!0,preserveHeight:!0,className:O}))}),_.Fs(w&&Z.leadingAccessory,function(){return _.u("div",{class:C},TRX(Z.leadingAccessory,{avatarViewModel:{avatarButtonCustomClassName:O}}))}),_.Fs(!w&&Z.trailingButton,function(){return _.u("div",{class:Y},TRX(Z.trailingButton,{buttonViewModel:{className:H}}))}),_.Fs(!w&&((v=Z.trailingButtons)==null?void 0:v.buttons),function(){var R;
return _.u("div",{class:Y},TRX((R=Z.trailingButtons)==null?void 0:R.buttons,{buttonViewModel:{className:H},accountLinkButtonViewModel:{className:H},switchButtonViewModel:{className:H},subscribeButtonViewModel:{isOverlay:!1,animateWidth:!1},toggleButtonViewModel:{className:H}}))}),_.Fs(!w&&L,function(){return _.u(_.lS,null,_.u(_.r6,{text:Z.selectionText,
className:_.XA("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.Fs(!r,function(){return _.u(_.q0,{icon:S,className:"yt-list-item-view-model-wiz__chevron-icon"})}))}))}}};
kk2=function(q){return q.title||q.subtitle?function(){return _.u("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.u("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.Fs(q.title,function(){return _.u(_.r6,{text:q.title,className:"yt-list-item-view-model-wiz__title"})})),_.Fs(q.subtitle,function(){return _.u(_.r6,{text:q.subtitle,
className:"yt-list-item-view-model-wiz__subtitle"})}))}:function(){return _.u(_.lS,null)}};
Kse=function(q){function Z(){var Te;((Te=_.t().resolve(_.Gj(_.er)))==null?0:Te.isKeyBoardInUse())&&eO.value.classList.add("yt-list-item-view-model-wiz--keyboard-focused")}
function w(){eO.value.classList.remove("yt-list-item-view-model-wiz--keyboard-focused")}
var r=q.data;var Y=q.isMenuItem;var C=q.isCompact;var d=q.onTap;var O=q.trailingAccessory;var H=q.hideSelectionTextChevron;var L=q.disabled;var S=q.inPopup;var v=q.disableHorizontalPadding;var R=q.isOverlay;q=PuT(function(Te){a:if((r==null?0:r.entitySelectorType)&&(r==null?0:r.entityKey))switch(r.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":Te=_.wMI(Te,r.entityKey);Te=Te==null?void 0:Te.value;var Ze=!1;Te==="CAPTIONS_UNAVAILABLE"&&(Ze=!0,Te=
"");Te=Object.assign({},!!Te&&{selectionText:{content:Te}},{isSelected:!!Te},!!Te&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:Ze});break a;default:Te={}}else Te={};return Te});
var B=_.b("enable_web_shorts_captions_language_command")?Object.assign({},r,q):r;q=!(B.isSelected===void 0||!B.selectionStyle||B.selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED");var n=(_.nV(B.rendererContext)||d)&&!q,x=_.nV(B.rendererContext)||q;L=!!B.isDisabled||!!L;var K={};R=_.XA("yt-list-item-view-model-wiz",(K["yt-list-item-view-model-wiz--is-overlay"]=!!R,K));K={};var k=_.XA("yt-list-item-view-model-wiz__label",(K["yt-list-item-view-model-wiz__container"]=!q,K["yt-list-item-view-model-wiz__container--disabled"]=
L,K["yt-list-item-view-model-wiz__container--has-subtitle"]=!!B.subtitle,K["yt-list-item-view-model-wiz__container--compact"]=!!C,K["yt-list-item-view-model-wiz__container--tappable"]=n,K["yt-list-item-view-model-wiz__container--in-popup"]=!!S,K));L={};L=_.XA("yt-list-item-view-model-wiz__container",(L["yt-list-item-view-model-wiz__container--tappable"]=x,L["yt-list-item-view-model-wiz__container--compact"]=!!C,L["yt-list-item-view-model-wiz__container--in-popup"]=!!S,L["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=
!!v,L));K=B.leadingImage||B.leadingAccessory;var G=_.XA("yt-list-item-view-model-wiz__image-container",K?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"),rz=_.b("apply_button_role_to_list_item");S=_.Iw();var f=_.Iw(),eO=rz?f:S,g=function(){var Te,Ze,W1;return _.u(_.lS,null,(Te=Ui2({data:B,isLeading:!0,hideSelectionTextChevron:!!H}))==null?void 0:Te(),(Ze=kk2(B))==null?void 0:Ze(),O?_.u("div",{class:"yt-list-item-view-model-wiz__trailing"},O):(W1=Ui2({data:B,isLeading:!1,
hideSelectionTextChevron:!!H}))==null?void 0:W1())},H6=function(){return rz?_.u("div",{class:k,
el:f,role:x||n?"button":void 0,tabindex:d||n?0:void 0,"on:keydown":SO,"on:click":Qj},g()):_.u("div",{class:k,el:f},g())},nX={labelRenderable:H6,
isCompact:C,checked:B.isSelected,hasLeadingLabel:!!K,labelClass:L,selectElementClass:G,disableHorizontalPadding:!!v};_.Q0(S,B.rendererContext);var Qj=_.fn(function(Te){return void(d==null?void 0:d(Te))}),SO=_.bo();
_.Ls(function(){n&&(eO.value.addEventListener("focusin",Z),eO.value.addEventListener("focusout",w));return function(){eO.value&&n&&(eO.value.removeEventListener("focusin",Z),eO.value.removeEventListener("focusout",w))}});
C=_.fn(function(){return!1});
return _.u("yt-list-item-view-model",{el:S,class:R,role:Y?"menuitem":"listitem",tabindex:rz?void 0:d||n?0:void 0,"on:keydown":rz?C:SO,"on:click":rz?C:Qj},_.Fs(q,function(){return qGO(B.selectionStyle,[["LIST_ITEM_SELECTION_STYLE_CHECKBOX",function(){return _.u(QBz,Object.assign({},nX))}],
["LIST_ITEM_SELECTION_STYLE_RADIO",function(){return _.u(xi8,Object.assign({},nX))}],
["LIST_ITEM_SELECTION_STYLE_DEFAULT",function(){return _.u(xi8,Object.assign({},nX,{useCheckIcon:!0}))}]],function(){return H6()})},function(){return H6()}))};
Fs9=function(q,Z,w){if(Z)return[sBN];switch(q){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[zs];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return w?[zs]:[I3z,zs];case "TRANSFER_STATE_PAUSED_BY_USER":return[cv9,zs];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[Mw9,zs];default:return[sBN]}};
NRT=function(q,Z,w,r){return Fs9(q,Z,r).map(function(Y){var C=Y.text,d=Y.iconType,O=Y.videoAction;Y=Y.playlistAction;C=C?{content:C}:void 0;d=d&&{sources:[{clientResource:{imageName:d}}]};var H=(0,_.R4.unsafeClone)(w);if(H){var L=_.J(H,_.h7),S=_.J(H,_.yB);L&&O?L.action=O:S&&Y&&(S.action=Y)}return{title:C,leadingImage:d,rendererContext:H&&{commandContext:{onTap:{innertubeCommand:H}}}}})};
l31=function(q){q=_.a5(q.rendererContext);var Z;return(Z=_.J(q,_.yB))==null?void 0:Z.playlistId};
Gkj=function(q){var Z;return(Z=q.listItems)==null?void 0:Z.some(function(w){var r;return _.nV((r=_.J(w,_.YL))==null?void 0:r.rendererContext)})};
X46=function(q){var Z=q.data;var w=q.isCompact;var r=q.hideSelectionTextChevron;var Y=q.inPopup;q=q.isOverlay;var C=Gkj(Z)&&Y,d={};return _.u("yt-list-view-model",{class:_.XA("yt-list-view-model-wiz",(d["yt-list-view-model-wiz--kaios-spat-nav"]=JeT&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",d)),role:C?"menu":"list"},p42(Z.listItems,{listItemViewModel:{isMenuItem:C,isCompact:w,hideSelectionTextChevron:r,inPopup:Y,isOverlay:q},
downloadListItemViewModel:{isMenuItem:C,isCompact:w,inPopup:Y}}))};
BQ=function(q){var Z=_.t().resolve(_.Gj(_.RQ));return Z!=null&&Z()?q.darkThemeColorPalette:q.lightThemeColorPalette};
nP=function(q){return{primaryTextColor:ag(q,0),secondaryTextColor:ag(q,1),optionColor:ag(q,2),backgroundColor:ag(q,3),videoBackgroundColor:ag(q,4)}};
ag=function(q,Z){if(q){switch(Z){case 0:q=q.primaryTitleColor;break;case 1:q=q.secondaryTitleColor;break;case 2:q=q.surgeColor;break;case 3:q=q.section2Color;break;case 4:q=q.section3Color;break;default:return}if(q)return _.oJ(q)}};
miT=function(q){return q?_.uq(q):""};
Avj=function(q){return(q==null?void 0:q.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
f32=function(q,Z){var w;return"linear-gradient(to bottom, "+((w=Z==null?void 0:Z.map(function(r){var Y=q?r.darkThemeColor:r.lightThemeColor;return Y?_.uq(Y)+" "+((r==null?void 0:r.startLocation)||0)*100+"%":"transparent"}))==null?void 0:w.join(", "))+")"};
DiN=function(q){var Z=q.className;var w=q.data;var r=q.isOverlay;var Y=q.maxLinesOverride;var C=q.useMediumText;q=_.Iw();var d=w.description,O=w.alwaysShowTruncationText,H=w.truncationText,L=w.maxLines,S,v=!((S=_.J(w.rendererContext,To2))==null||!S.onTap),R,B,n=(B=(R=_.J(w.rendererContext,_.xL))==null?void 0:R.label)!=null?B:"";S=_.P(Dd(!1));var x=S.next().value,K=S.next().value;_.Q0(q,w.rendererContext);S=_.fn(function(){w.expandOnTap&&K(!x);return!1});
R={};return _.u("yt-description-preview-view-model",{el:q,class:_.XA("yt-description-preview-view-model-wiz",Z,(R["yt-description-preview-view-model-wiz--clickable"]=v,R["yt-description-preview-view-model-wiz--is-overlay"]=r,R)),"on:click":S},_.Fs(d,function(){var k={};return x?_.u("div",{class:_.XA("yt-description-preview-view-model-wiz__description",(k["yt-description-preview-view-model-wiz__description--medium-text"]=C,k))},_.u(_.r6,{text:d})):_.u(cPe,{text:d,alwaysShowTruncationText:O,truncationText:H,
maxLines:Y!=null?Y:L,isOverlay:r,accessibilityLabel:n,useMediumText:C})}))};
iQ1=function(q,Z,w,r,Y){var C=!q.metadata;var d=Z?_.J(q.heroImage,hw2):_.J(q.animatedImage||q.image,hw2);if(!d)return{size:0};q=d.style;var O=d.layoutMode;d=OU9(V$j(d));if(Z)Z=yvI(w,q,O,d,Y);else a:if(C)Z=w===1?{size:48}:{size:72};else switch(w){case 1:Z={size:72};break a;case 2:Z={size:120};break a;default:Z=r<4?{size:120}:{size:160}}return Z};
yvI=function(q,Z,w,r,Y){if(!((r==null?0:r.height)&&(r==null?0:r.width)))return{size:0};var C=r.width;r=r.height;if(Y)return Z==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||Z==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&C>r?{size:312/P0X}:Z==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(w!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||q!==1&&q!==2||Z!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&Z!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&Z!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(Z==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||Z==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||r===C)switch(q){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(Z==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||r>C)switch(q){case 1:case 3:return{size:240*C0N};default:return{size:360*C0N}}switch(q){case 1:case 2:return{size:1/P0X*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.gHX=function(q){if(!("matchMedia"in window))return _.xT(Error("Oh")),function(){return!1};
var Z=window.matchMedia(q);q=_.P(_.qo(Z.matches,void 0,"jLJc8e"));var w=q.next().value,r=q.next().value,Y=function(C){r(C.matches)};
Z.addEventListener?(Z.addEventListener("change",Y),_.SG(function(){Z.removeEventListener("change",Y)})):Z.addListener&&(Z.addListener(Y),_.SG(function(){Z.removeListener(Y)}));
return w};
qbT=function(q){return q==="IMAGE_BANNER_STYLE_INSET"||q==="IMAGE_BANNER_STYLE_UNKNOWN"};
Z4N=function(){if(!("matchMedia"in window))return _.xT(Error("Oh")),0;var q=vF(function(){return window.matchMedia("(max-width: 527.9px)")}),Z=vF(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),w=vF(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),r=vF(function(){return window.matchMedia("(min-width: 1024px)")}),Y=_.P(Dd(q.matches)),C=Y.next().value,d=Y.next().value,O=_.P(Dd(Z.matches));
Y=O.next().value;var H=O.next().value,L=_.P(Dd(w.matches));O=L.next().value;var S=L.next().value;L=_.P(Dd(r.matches));var v=L.next().value,R=L.next().value,B=vF(function(){return function(k){d(k.matches)}}),n=vF(function(){return function(k){H(k.matches)}}),x=vF(function(){return function(k){S(k.matches)}}),K=vF(function(){return function(k){R(k.matches)}});
_.Ls(function(){q.addEventListener?(q.addEventListener("change",B),Z.addEventListener("change",n),w.addEventListener("change",x),r.addEventListener("change",K)):q.addListener&&(q.addListener(B),Z.addListener(n),w.addListener(x),r.addListener(K));return function(){q.removeEventListener?(q.removeEventListener("change",B),Z.removeEventListener("change",n),w.removeEventListener("change",x),r.removeEventListener("change",K)):q.removeListener&&(q.removeListener(B),Z.removeListener(n),w.removeListener(x),
r.removeListener(K))}});
return C?1:Y?2:O?3:v?4:0};
wcT=function(q){var Z=0;q=_.P([q.title,q.metadata,q.actions,q.description,q.attribution]);for(var w=q.next();!w.done;w=q.next())w.value&&Z++;return Z};
Yb1=function(q,Z,w){var r;if(q=_.J((r=_.J(q.image,rUN))==null?void 0:r.avatar,_.kL))switch(Z){case 1:q.avatarImageSize="AVATAR_SIZE_XL";break;case 2:q.avatarImageSize="AVATAR_SIZE_XXL";break;default:w<4?q.avatarImageSize="AVATAR_SIZE_XXL":q.avatarImageSize="AVATAR_SIZE_XXXL"}};
$cN=function(q,Z){return q?_.u("div",{class:"page-header-view-model-wiz__scroll-container"},Z()):Z()};
_.CKO=function(q){var Z=q.data;var w=q.noPadding;var r=q.enableBanner;var Y=q.cinematicContainerTopbarOffset;var C=q.allowCinematicContainerOverflow;var d=q.displayAsSidebar;var O=q.displayAsPanel;q=wcT(Z);var H=!!Z.heroImage,L=!!Z.image||!!Z.animatedImage,S=!!Z.background,v=d||O?1:Z4N(),R=v===1,B=v===2,n=R||B,x=v===4,K=iQ1(Z,H,v,q,d),k={};w=_.XA((k["page-header-view-model-wiz"]=!0,k["page-header-view-model-wiz--no-padding"]=!!w,k["page-header-view-model-wiz--small-top-padding"]=R&&!Z.actions||B&&
!(L||H),k["page-header-view-model-wiz--small-bottom-padding"]=n&&!Z.actions,k["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=!C,k["page-header-view-model-wiz--display-as-sidebar"]=d,k["page-header-view-model-wiz--display-as-panel"]=O,k));C={};var G=_.XA((C["page-header-view-model-wiz__page-header-headline"]=!0,C["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=K.allowFullWidth,C)),rz=n&&!K.allowFullWidth;O=(C=R&&(H||L)&&q>0)&&O;B={};O=
(B["page-header-view-model-wiz__page-header-title"]=!0,B["page-header-view-model-wiz__page-header-title--page-header-title-large"]=!C,B["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=C&&!O,B["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=O,B["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=S,B);C={};C=(C["page-header-view-model-wiz__page-header-headline-image"]=!0,C["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=
H&&n,C);var f;B={};var eO=(B["page-header-view-model-wiz__page-header-banner-container"]=r,B["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=r&&((f=_.J(Z.banner,_.eaO))==null?void 0:f.style)==="IMAGE_BANNER_STYLE_FULL_BLEED",B);f={};f=(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"]=S,f);B={};B=(B["page-header-view-model-wiz__page-header-flexible-actions"]=!0,
B["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=!!Z.metadata||n,B["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=!n,B);k={};k=(k["page-header-view-model-wiz__page-header-attribution"]=!0,k["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=S,k);var g={descriptionPreviewViewModel:{className:"page-header-view-model-wiz__page-header-description",isOverlay:S,
maxLinesOverride:R?void 0:1,useMediumText:x},dynamicTextViewModel:{className:_.XA(O)},contentPreviewImageViewModel:{className:_.XA(C),imageSizeConfig:K},contentMetadataViewModel:{layout:R?1:0,className:_.XA(f),isOverlay:S,useMediumText:x},flexibleActionsViewModel:{layout:v===1||v===2?1:0,className:_.XA(B)},attributionViewModel:{className:_.XA(k),useMediumText:x},decoratedAvatarViewModel:{className:_.XA(C)},cinematicContainerViewModel:{topbarOffset:Y},flexibleContainer:{isOverlay:S}};L&&Yb1(Z,v,q);
return _.u("yt-page-header-view-model",{class:w},_.Fs(S,function(){return _.u("div",{class:"page-header-view-model-wiz__page-header-background"},Qt(Z.background,g))}),$cN(!!d,function(){return _.u("div",{class:"page-header-view-model-wiz__page-header-content"},_.Fs(r&&(Z==null?void 0:Z.banner),function(){return _.u("div",{class:_.XA(eO)},Qt(Z==null?void 0:Z.banner,g))}),_.u("div",{class:G},_.Fs(L,function(){return Qt((Z==null?void 0:Z.animatedImage)||(Z==null?void 0:Z.image),g)}),_.Fs(H&&!rz,function(){return Qt(Z==
null?void 0:Z.heroImage,g)}),_.u("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Fs(H&&rz,function(){return _.u("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},Qt(Z==null?void 0:Z.heroImage,g))}),_.Fs(Z==null?void 0:Z.title,function(){return Qt(Z==null?void 0:Z.title,g)}),_.Fs(Z.metadata,function(){return Qt(Z.metadata,g)}),_.Fs(Z.description&&!R,function(){return Qt(Z.description,g)}),_.Fs(Z.attribution&&!n,function(){return Qt(Z.attribution,
g)}),_.Fs(Z.actions&&!n,function(){return Qt(Z.actions,g)}))),_.u("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Fs(Z.description&&R,function(){return Qt(Z.description,g)}),_.Fs(Z.attribution&&n,function(){return Qt(Z.attribution,g)}),_.Fs(Z.actions&&n,function(){return Qt(Z.actions,g)})),_.u("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Fs(Z.bottomMetadataFlexibleContainer,function(){return Qt(Z.bottomMetadataFlexibleContainer,g)})))}))};
dcX=function(q){var Z,w=((Z=_.t().resolve(_.Gj(_.RQ)))==null?0:Z())&&q.data.darkThemeImage?q.data.darkThemeImage:q.data.image;Z=_.u("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.u("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},w?_.u(_.aQ,{data:w,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),PK1(q.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));w=_.u(_.r6,{text:q.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var r=q.data;if(r.bodyText){var Y=[];r=_.P(r.bodyText);for(var C=r.next();!C.done;C=r.next())Y.push(_.u(_.r6,{text:C.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else Y=_.u(_.lS,null);return _.u("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},Z,w,Y,PK1(q.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.u(_.r6,{text:q.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.u(_.r6,{text:q.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
O4T=function(q){q=(new VvX).parse(q);return(new w0).render(q).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(Z){var w=Z.split(":").map(Number),r=0,Y=0;if(w.length===3)w=_.P(w),r=w.next().value,Y=w.next().value,w=w.next().value;else if(w.length===2)w=_.P(w),Y=w.next().value,w=w.next().value;else if(w.length===1)w=_.P(w).next().value;else throw Error("Ph");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(r*3600+Y*60+w)+'" role="button">'+Z+"</span>"})};
H4X=function(q){q=_.P(q.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var Z=q.next(),w={};!Z.done;w={clickHandler$jscomp$4:void 0},Z=q.next()){Z=Z.value;w.clickHandler$jscomp$4=function(Y){Y=Number(Y.target.getAttribute("data-time"));if(isNaN(Y))throw Error("Qh");var C=document.querySelector("video");C&&(C.currentTime=Y)};
var r=function(Y){return function(C){C.key!=="Enter"&&C.key!=="Space"||(0,Y.clickHandler$jscomp$4)(C)}}(w);
Z.setAttribute("tabindex","0");Z.removeEventListener("click",w.clickHandler$jscomp$4);Z.removeEventListener("keydown",r);Z.addEventListener("click",w.clickHandler$jscomp$4);Z.addEventListener("keydown",r)}};
WVz=function(){return _.u("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.u(Ez,{percentWidth:100}),_.u(Ez,{animationDelay:200}),_.u(Ez,{animationDelay:400}),_.u(Ez,{animationDelay:600}),_.u(Ez,{animationDelay:800,percentWidth:60}),_.u("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.u(Ez,{percentWidth:100}),_.u(Ez,{animationDelay:200}),_.u(Ez,{animationDelay:400}),_.u(Ez,{animationDelay:600,percentWidth:50}))};
Ez=function(q){return _.u("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(q.percentWidth===void 0?100:q.percentWidth)+"%"},_.u("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(q.animationDelay===void 0?0:q.animationDelay)+"ms"}))};
owj=function(){var q=_.P(_.qo(function(){return""},void 0,"v2wS5e")),Z=q.next().value;
return[function(){return Z()()},
q.next().value]};
LV9=function(q){q=q===void 0?{}:q;return{title:_.G7(q.localizedOptInBannerTitleText===void 0?"":q.localizedOptInBannerTitleText),titleLength:19,subtitle:_.G7(q.localizedOptInMessage===void 0?"":q.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.G7(_.dT("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:_.G7(_.dT("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:[uzN]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
SbT=function(q,Z){q=q?Nse(q):"";Z!==void 0&&isFinite(Z)?Z===0?Z=_.dT("UPDATING",void 0,"Updating..."):(Z=bK6(new Date(Z),new Date),Z=_.dT("UPDATED_TIME",{relative_time:Z},"Updated "+Z)):Z="";var w="";q&&Z&&(w=" \u2022 ");return _.G7(q+w+Z)};
tv2=function(q,Z,w,r,Y,C){Z=Z===void 0?0:Z;var d=vw8[Z],O=d.title,H=d.iconType,L=d.topButtonRenderer,S=d.sectionClientVE;d=d.videoClientVE;var v;if(Z!==1||q.length){w=[];q=_.P(q);for(r=q.next();!r.done;r=q.next()){var R=r.value;if(wV6(R))w.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:R.videoEntity.videoId,title:pR(R.videoEntity.title),shortBylineText:pR(R.channelEntity.title),thumbnail:R.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:R.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.dT("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:d}}}}}});else if(ZqI(R)){r=w;var B=r.push;var n=void 0,x=void 0,K=void 0,k=void 0,G=void 0,rz=void 0,f=void 0,eO=void 0,g=R.mainPlaylistEntity.playlistId,H6=R==null?void 0:(eO=R.mainPlaylistEntity)==null?void 0:(f=eO.thumbnailStyleData)==null?void 0:(rz=f[0])==null?void 0:(G=rz.value)==null?void 0:(k=G.collageThumbnail)==null?void 0:k.coverThumbnail;k=kv8(g);if(!_.b("enable_offline_playlist_page")&&
(R==null?0:(K=R.mainPlaylistEntity)==null?0:K.videos)){b:{K=R==null?void 0:(x=R.mainPlaylistEntity)==null?void 0:x.videos;x=_.sE().getState().entities;if(K!=null&&K.length&&x)for(K=_.P(K),G=K.next();!G.done;G=K.next())if(G=_.fR(G.value).entityId,(G=JSON.parse(G).videoId)&&XZN(x,G)==="TRANSFER_STATE_COMPLETE"){x=G;break b}x=""}x!==void 0&&(k=z9(_.sE().getState(),x),k=_.lI(x,g,void 0,void 0,k))}x=sD2(_.dT("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),kv8(g));R=g&&H6&&x?{playlistId:g,navigationEndpoint:k,
viewPlaylistText:x,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:H6}},title:pR(R.mainPlaylistEntity.title),shortBylineText:pR(R==null?void 0:(n=R.channelEntity)==null?void 0:n.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:jUO,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:g,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.dT("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:d}}}:
void 0;B.call(r,{gridPlaylistRenderer:R})}}d={gridRenderer:{items:w}};Z===1&&(v=SbT(Y,C))}else if(r){var nX=_.G7((B=w==null?void 0:w.localizedPromptMessage)!=null?B:"");d={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.G7(_.dT("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.t1O}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.G7(_.dT("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=SbT(Y,C)}else nX=_.G7(_.dT("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
d={};return{contents:[{shelfRenderer:{title:O,titleAnnotation:v,icon:{iconType:H},subtitle:nX,content:d,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:L}]}}}}],loggingDirectives:{clientVeSpec:{uiType:S}}}};
RaI=function(q,Z,w,r,Y,C,d,O){w=w===void 0?{}:w;r=r===void 0?!1:r;Y=Y===void 0?!1:Y;C=C===void 0?!1:C;d=d===void 0?0:d;O=O===void 0?-Infinity:O;if(!Z.length&&!q.length&&!r)return Y?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:U86(w)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.G7(_.dT("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 H=[];q.length&&H.push(tv2(q,0));r?H.push(tv2(Z,1,w,C,d,O)):Y&&H.push({contents:[{statementBannerRenderer:LV9(w)}]});(r&&Z.length||q.length)&&H.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.G7(_.dT("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 H.map(function(L){return{itemSectionRenderer:L}})};
x_=function(q,Z){if(typeof q!=="object")return null;q=_.P(Object.entries(q));for(var w=q.next();!w.done;w=q.next()){var r=_.P(w.value);w=r.next().value;r=r.next().value;if(w===Z)return w;if(r=x_(r,Z))return w+"."+r}return null};
Ts=function(q){var Z=q.content;return(q=q.styleRuns)&&Z?{runs:q.map(function(w){var r={text:Z.slice(w.startIndex,w.startIndex+w.length)};w.fontColor&&(r.textColor=w.fontColor);return r})}:{simpleText:Z}};
za2=function(q,Z,w,r){var Y=b4X;r&&(q.quantity=r);if(!q.quantity||!q.maxQuantity)return{};r=q.minusButton;var C=q.plusButton,d,O,H,L;return{value:q.quantity,maxValue:q.maxQuantity,onChangeCallback:function(S){Y(q,S)},
minusLabel:(d=_.J(r,JU8))==null?void 0:d.label,minimumReachedLabel:(O=_.J(r,JU8))==null?void 0:O.limitReachedLabel,plusLabel:(H=_.J(C,JU8))==null?void 0:H.label,maximumReachedLabel:(L=_.J(C,JU8))==null?void 0:L.limitReachedLabel,disabled:Z,onRemoveCommand:w}};
b4X=function(q,Z){var w=q.quantityIncrementerEntityKey;if(w){var r={};r.quantity=Z;_.Bp(_.LV("quantityIncrementerEntity",w,r));q.onChangeCommand&&_.Sp(q.onChangeCommand)}};
Biz=function(q){return _.b("kevlar_comments_clone_data_killswitch")?q:_.R4.unsafeClone(q)};
QU6=function(q,Z){(q=amz(q))&&(Z?nwz.push({command:q,sourceData:{},commandContext:void 0}):_.t().resolve(_.ps).resolveCommand(q))};
amz=function(q){return _.J(q,_.WJ)};
Ewe=function(){var q=window.performance.timeOrigin+window.performance.now(),Z=(new _.Uz).setSeconds(q/1E9);return _.cy(Z,2,_.iX(q%1E9),0)};
k_=function(q,Z){var w=_.J(_.J(q,_.WJ),xce);w&&(Z&&(w.serializedAdditionalMetadata=_.Rq(Z)),QU6(q,!0))};
Ti1=function(q){switch(q){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"}};
Uc2=function(){return!!_.zj("ID_TOKEN")};
sUI=function(q){return q instanceof Error&&q.cause instanceof kr6&&q.cause.rpcErrorCode!==void 0?!KVj.includes(q.cause.rpcErrorCode):!0};
cUe=function(){return _.Iz(Imj,{authuser:""+(_.zj("SESSION_INDEX")||0)})};
KP=function(q,Z,w,r){w=w===void 0?"MINI_APP_SDK_API_UNSPECIFIED":w;r=r===void 0?"":r;var Y=new _.df;w={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:r,sdkApi:w};q instanceof Error&&(Y.message=q.message,Y.name=q.name,q.cause instanceof kr6&&q.cause.rpcErrorCode!==void 0&&(w.rpcErrorCode=q.cause.rpcErrorCode));var C;(C=Z.onError)==null||C.call(Z,{loggingError:Y,metadata:w})};
FVO=function(q,Z,w,r){switch(q){case "MINI_APP_SOURCE_GAMESNACKS":return new sz(Z,w,r);default:return new MvI(Z,w,r)}};
NiI=function(q){switch(q){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"}};
lmO=function(q){switch(q){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"}};
GrT=function(q){switch(q){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"}};
pcz=function(){return Math.floor(Math.random()*4)+1};
Xc8=function(q,Z,w,r){q=_.P(Object.entries(q));for(var Y=q.next(),C={};!Y.done;C={message$jscomp$954:void 0},Y=q.next()){var d=_.P(Y.value);Y=d.next().value;d=d.next().value;C.message$jscomp$954=d;Z.push(setTimeout(function(O){return function(){r(!1);w(O.message$jscomp$954.text)}}(C),C.message$jscomp$954.delayMs));
Number(Y)>0&&Z.push(setTimeout(function(){r(!0)},C.message$jscomp$954.delayMs-400))}};
mcz=function(q,Z){var w=w===void 0?G4I:w;_.b("mweb_fix_monitor_visibility_after_render")?q&&ep(function(){mwz(q,Z,w)}):ep(function(){mwz(q,Z,w)})};
ha2=function(q){AU1||(AU1=fmN(new _.aZ(1,void 0,void 0,DcT),0));var Z=AU1.format(Math.floor(q));Z=_.BX==="be"||_.BX==="bg"||_.BX==="es"||_.BX==="et"||_.BX==="hu"||_.BX==="ka"||_.BX==="lv"||_.BX==="pl"||_.BX==="pt-PT"||_.BX==="sq"?Z.replace(new RegExp("^(\\d)"+DcT.GROUP_SEP.replace(".","\\.")+"(\\d+("+DcT.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):Z;return q>=1E3&&q<=9999&&Z[1]==="."&&(_.BX==="sl"||_.BX==="it")?Z.replace(".",""):Z};
yUe=function(q,Z){PJ("ytd-button-renderer",{data:q,className:Z?Z.className:"",overrides:Z==null?void 0:Z.buttonOverrides},Uu)};
qej=function(q,Z,w,r){if(q)return r=r||q.likeStatus,Z?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:r==="LIKE",isDisabled:!q.likesAllowed,defaultIcon:{iconType:w},defaultText:r==="LIKE"?q.likeCountWithUnlikeText:q.likeCountText,toggledText:r==="LIKE"?q.likeCountText:q.likeCountWithLikeText,defaultNavigationEndpoint:i4O(q,"LIKE"),defaultServiceEndpoint:gwO(q,"LIKE"),toggledServiceEndpoint:gwO(q,"INDIFFERENT"),defaultTooltip:_.kO(q.likeCountTooltipText),toggledTooltip:_.kO(q.likeCountTooltipText),
targetId:q.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:r==="DISLIKE",isDisabled:!q.likesAllowed,defaultIcon:{iconType:w},defaultText:r==="DISLIKE"?q.dislikeCountWithUndislikeText:q.dislikeCountText,toggledText:r==="DISLIKE"?q.dislikeCountText:q.dislikeCountWithDislikeText,defaultNavigationEndpoint:i4O(q,"DISLIKE"),defaultServiceEndpoint:gwO(q,"DISLIKE"),toggledServiceEndpoint:gwO(q,"INDIFFERENT"),defaultTooltip:_.kO(q.dislikeCountTooltipText),
toggledTooltip:_.kO(q.dislikeCountTooltipText)}};
i4O=function(q,Z){if(Z==="LIKE")return q.likeCommand;if(Z==="DISLIKE")return q.dislikeNavigationEndpoint};
gwO=function(q,Z){var w;return(w=q.serviceEndpoints)==null?void 0:w.find(function(r){var Y;return((Y=_.J(r,_.Ig))==null?void 0:Y.status)===Z})};
Zg8=function(q,Z){Z=Z===void 0?{}:Z;if(q){var w=!!Z.activeState,r=Z.iconSize,Y=Z.className,C=Z["aria-hidden$"],d=Z["aria-label$"],O=Z.role;Z=Z.style$+";width: "+((Z.width||r)+"px;height: ")+((Z.height||r)+"px;color: ")+(Z.color+";");q={icon:q};w!==void 0&&(q.active=w);r!==void 0&&(q.size=r);Z!==void 0&&(q.style=Z);Y!==void 0&&(q.className=Y);C!==void 0&&(q.ariaHidden=C);d!==void 0&&(q.ariaLabel=d);O!==void 0&&(q.role=O);PJ("yt-icon",q,Uu)}};
_.Ye2=function(q,Z,w){return window.spf&&!_.b("web_disable_spfjs_client")?wKj(q,Z,w):r8X(q,Z)};
wKj=function(q,Z,w){var r=null,Y=(new _.r5(function(C,d){var O={};if(Z){O.method=Z.method;var H=Z.postParams||{};MKj(q,Z)&&(H[_.zj("XSRF_FIELD_NAME")]=_.zj("XSRF_TOKEN"));O.postData=_.ZL(H);Z.type&&(O.type=Z.type);H=Z.headers}O.headers=UM2(q,H);_.b("debug_forward_web_query_parameters")&&(q=_.IC9(q,window.location.search));O.experimental_headers=O.headers;O.onError=function(L){L.err&&L.xhr&&(L.err.params={url:L.xhr.responseURL,response:L.xhr.responseText.substr(0,64)});d(L.err)};
O.onPartDone=function(L){w&&w.call(null,L.part)};
O.onDone=function(L){var S=$EX(L.response,"xsrf_token");Fe(window.location.href,q)&&S&&_.bO("XSRF_TOKEN",S);if(S=$EX(L.response,"service_worker_killswitch"))_.bO("SERVICE_WORKER_KILLSWITCH",S),cpX();C(L.response)};
r=spf.request(q,O)})).then(eqT);
Y.thenCatch(function(C){var d=C instanceof _.xQ,O=C&&C.hasOwnProperty("params")&&C.params.response?C.params.response:"";C instanceof Error&&(O?d?JL2(C):O===')]}\'\n{"reload":"now"}'?JL2(C):(CAe(C,q,O),PA8(C,O)?_.bx(C):_.tY(C)):JL2(C));r&&r.abort()});
return Y};
eqT=function(q){if(q.type==="multipart"){var Z=q.timing;q=q.parts.reduce(function(w,r){Object.assign(w,r);return w},{});
q.timing=q.timing||{};Object.assign(q.timing,Z);q.type="reduced"}return q};
r8X=function(q,Z){Z=Z===void 0?{}:Z;var w=null,r=new _.r5(function(Y,C){Z.onFinish=function(d){if(d.readyState===XMLHttpRequest.DONE)if(d.status===200){if(d.responseType!=="json"){var O=d.response;O.substring(0,5)===")]}'\n"&&(O=O.substring(5));try{var H=JSON.parse(O)}catch(L){H=L}}else H=d.response;H instanceof Error?C(H):(O=$EX(H,"xsrf_token"),Fe(window.location.href,q)&&O&&_.bO("XSRF_TOKEN",O),d=d.responseURL,window.performance&&window.performance.getEntriesByName?(O=window.performance.getEntriesByName(d).pop())?
d={responseStart:(0,_.lp)()-(O.responseEnd-O.responseStart)}:(Math.random()<.01&&(O=Error("bi"),O.params=d,_.bx(O)),d={responseStart:-1}):d={responseStart:0},H.timing=H.timing||{},Object.assign(H.timing,d),Y(H))}else C(Error("ai`"+d.status))};
(w=_.q4(q,Z))||C(Error("ai`"+w.status))});
r.thenCatch(function(Y){Y instanceof Error&&(CAe(Y,q),PA8(Y)&&(Y.level="WARNING"))});
_.b("cancel_pending_navs")&&r.thenCatch(function(){w.abort()});
return r};
$EX=function(q,Z){var w=q[Z],r=q.parts;q.type==="multipart"&&r&&(w=(q=r.find(function(Y){return Z in Y}))&&q[Z]);
return w};
CAe=function(q,Z,w){var r=q.message||"";Z={original:r,url:Z};if(w)if(r=r.match(/position:?\s*(\d+)/)){r=r&&Number(r[1])?Number(r[1]):0;var Y=Math.max(r-25,0);Z.position=r;Z.response=w.substring(Y,r+25)}else Z.response=w.substring(0,50);_.JY(q,Z);try{q.message="JSON parse error"}catch(C){}};
PA8=function(q,Z){q=q.message||"";q=!!(q.indexOf("<")>=0||q.indexOf("end of ")>=0||q.indexOf("Unterminated string")>=0||q.indexOf("Unexpected EOF"));if(!q&&Z)for(var w=Z.length,r=!1,Y=0;Y<w;Y++)if(r&&Z[Y]==="\\")Y++;else if(Z[Y]==='"')r=!r;else if(Z[Y]==="<"&&!r){q=!0;break}return q};
dE1=function(){return document.documentElement.hasAttribute("dark")};
_.VS9=function(q,Z){if(q!=="GFEEDBACK"&&q!=="GUIDED_HELP")_.ns(Error("ci`"+q));else{var w=_.t().resolve(_.Gj(_.U1));if(w&&(w=w.getCurrentPage())&&w.getServiceTrackingParams&&(w=w.getServiceTrackingParams()))for(var r=0,Y;Y=w[r++];)if(Y.service===q){if(q=Y.params)for(w=0;r=q[w++];)Z[r.key]=r.value;break}}};
_.Og1=function(q){var Z=_.K6();Z&&(Z=Z.getPlayer())&&(Z.pauseVideo(),q.playback_id=Z.getVideoData().cpn,q.eid=Z.getVideoData().eventId,Object.assign(q,Z.getFeedbackProductData()))};
Hg6=function(){var q={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.zj("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(q.enableAnonymousFeedback=!0);_.zj("SESSION_INDEX")&&(q.authuser=String(_.zj("SESSION_INDEX")));_.b("enable_pageid_for_feedback")&&_.zj("DELEGATED_SESSION_ID")&&(q.pageId=String(_.zj("DELEGATED_SESSION_ID")));return q};
_.cQ=function(q){_.b("enable_ypc_spinners")&&_.yY(q,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},q])};
_.Ml=function(q){_.b("enable_ypc_spinners")&&_.yY(q,"yt-close-popup-action",["yt-loading-renderer"])};
W_T=function(q){return new Promise(function(Z,w){_.um({verifyCommand:{recaptchaToken:q.recaptchaResponse}},{commandController:{onSuccess:function(r,Y){Y||w("ChallengeService did not return a response.");var C;Z({challengeCompleted:(C=Y.verified)!=null?C:!1})},
onServerError:function(r,Y){w(Y)}}})})};
om8=function(q,Z,w,r){Z({recaptchaResponse:r}).then(function(Y){Y.challengeCompleted?_.eT()?(w(3),_.t().resolve(_.ps).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:q}})):w(2):w(4)},function(){w(4)})};
ucT=function(q,Z,w){_.np("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.zj("HL"),function(){var r;(r=window.grecaptcha)==null||r.ready(function(){var Y=window.grecaptcha;Y?(w(Y.render(q,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:om8.bind(null,q,W_T,Z)})),Z(1)):Z(4)})})};
L_j=function(q,Z){return function(){switch(Z()){case 0:return q().captchaLoadingMessage;case 1:return q().challengeReason;case 3:return q().captchaSuccessfulMessage;case 2:return q().captchaCookieSetFailureMessage;case 4:return q().captchaFailedMessage;default:return q().challengeReason}}()};
_.Fa=function(){if(!SeT){var q=document.querySelector("#player.skeleton");q&&(_.Vb(q),SeT=!0)}};
_.jC9=function(){return vm2=cCI()};
bgj=function(){return _.V(function(q){return tS1!==void 0?q.return():_.W(q,Rq1(),0)})};
Rq1=function(){return _.V(function(q){if(q.nextAddress==1)return _.W(q,Fr8(),2);vm2=q.yieldResult;tS1=_.v5.addLowPriorityJob(Rq1,5E3);_.ub(q)})};
QCj=function(q){var Z=Z===void 0?J8j:Z;var w,r,Y=(w=q.responseContext)==null?void 0:(r=w.mainAppWebResponseContext)==null?void 0:r.trackingParam;if(!Y){Z.increment("MISSING");var C,d,O,H,L,S;_.bx(new _.df("282054944_a",{d2f:!!((C=q.responseContext)==null?0:(d=C.mainAppWebResponseContext)==null?0:d.loggedOut),x0V:((O=q.responseContext)==null?void 0:O.mainAppWebResponseContext)===void 0,isj:q.responseContext===void 0,iH1:(H=q.playabilityStatus)==null?void 0:H.contextParams,dCV:(((L=q.streamingData)==
null?void 0:L.formats)||[]).length>0,cDS:(((S=q.streamingData)==null?void 0:S.adaptiveFormats)||[]).length>0,os:!!q.offlineState,cotn:q.cotn}));return 2}w="";try{w=zq2(Y)}catch(B){return Z.increment("C_ERROR"),_.tY(B),2}try{var v=_.BBX(w);var R=aaN(v)}catch(B){return Z.increment("P_ERROR"),_.tY(B),2}R=_.Aj(R,nm9,1,_.fC());Y=[];R=_.P(R);for(v=R.next();!v.done;v=R.next())r=v.value,v=r.getPath(),w=(0,_.R4.getValueByKeys)(q,v.split(".")),w=String(w===void 0||w===null?"":w),r=r.getValue()||"",C=/[+\-\/_]/g,
w.replace(C,"")!==r.replace(C,"")&&(Z.increment("MISMATCH"),_.b("ab_mis_log_err")&&(w=new _.df("282054944_p",{nQS:v,g:String(w),e:String(r)}),_.tY(w)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(v)||(v.match(/enforcementMessageViewModel/i)?Y.push(3):Y.push(2)));if(Y.length>0)return Math.max.apply(Math,_.Ju(Y));Z.increment("SUCCESS");return 1};
TBN=function(q){var Z=new Nl;if(q.interpreterJavascript){var w=_.ol2(q.interpreterJavascript);w=fFj(w).toString();var r=new EmN;_.uM(r,6,w);_.CA(Z,1,r,zJ)}else q.interpreterUrl&&(w=_.jJ(q.interpreterUrl),w=_.ug(w).toString(),r=new _.xE2,_.uM(r,4,w),_.CA(Z,2,r,zJ));q.interpreterHash&&_.l2(Z,3,q.interpreterHash,zJ);q.program&&_.l2(Z,4,q.program,zJ);q.globalName&&_.l2(Z,5,q.globalName,zJ);q.clientExperimentsStateBlob&&_.l2(Z,7,q.clientExperimentsStateBlob,zJ);return Z};
Gs=function(q){var Z={};q=_.P(q.split("&"));for(var w=q.next();!w.done;w=q.next())w=w.value.split("="),w.length===2&&(Z[w[0]]=w[1]);return Z};
UE2=function(q){return Number(q.t)||7200};
jz6=function(){if(_.b("bg_st_hr"))return"havuokmhhs-0";var q,Z=((q=performance)==null?void 0:q.timeOrigin)||0;return"havuokmhhs-"+Math.floor(Z)};
kyO=function(){return new Promise(function(q){var Z=window.top;Z.ntpevasrs!==void 0?q(new pP(Z.ntpevasrs)):(Z.ntpqfbel===void 0&&(Z.ntpqfbel=[]),Z.ntpqfbel.push(function(w){q(new pP(w))}))})};
K_1=function(q){var Z=q.qDQ.bind(q);_.IR("yt.aba.att",Z);q=q.jfd.bind(q);_.IR("yt.aba.att2",q)};
Ia1=function(q){switch(_.gA(q.input)){case _.IZ(sC9):var Z={};return Z.encryptedVideoId=q.innerTubeRequest.externalVideoId,Z}return{}};
MS8=function(q){switch(_.gA(q.input)){case _.IZ(sC9):if(_.b("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.IZ(Xa):if(_.b("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&q.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.IZ(c8I):var Z,w;if(_.b("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((w=_.J((Z=q.config)==null?void 0:Z.command,
azT))==null?0:w.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.NB9=function(q){var Z;if(q.playlistVideoRenderer&&((Z=q.playlistVideoRenderer)==null?0:Z.engagementBar))return F_O(q.playlistVideoRenderer.engagementBar);if(_.J(q,mB)){var w;if(q=(w=_.J(q,mB))==null?void 0:w.engagementBar)return F_O(q)}return""};
F_O=function(q){if(!q)return"";q=_.J(q,_.laI);if(q==null||!q.actions)return"";q=_.P(q.actions);for(q=q.next();!q.done;q=q.next()){q=_.J(q.value,_.GyX);var Z=void 0;if((Z=q)==null||!Z.itemId)break;return q.itemId}return""};
_.pKz=function(q){var Z;if(q.playlistVideoRenderer&&((Z=q.playlistVideoRenderer)==null?0:Z.videoId))return q.playlistVideoRenderer.videoId;if(_.J(q,mB)){var w,r;if(q=(w=_.J(q,mB))==null?void 0:(r=w.playlistItemData)==null?void 0:r.videoId)return q}return""};
_.XK1=function(q){var Z;if(q.playlistVideoRenderer&&((Z=q.playlistVideoRenderer)==null?0:Z.voteCount))return q.playlistVideoRenderer.voteCount;if(_.J(q,mB)){var w,r;if(q=(w=_.J(q,mB))==null?void 0:(r=w.playlistItemData)==null?void 0:r.voteCount)return q}return 0};
_.DQ=function(q,Z){return _.iI(q.entities,"flowStateEntity",Z)};
A8O=function(q,Z,w,r){var Y=void 0;q=_.P(q[Z.iconName]||[]);for(var C=q.next();!C.done;C=q.next()){C=C.value;var d=Z.iconSize;var O=Z.iconStyle;d=!d||d===C[2];var H=mE2[C[0]];r&&r!==C[1]||!d||O&&O!==H?O=!1:Y?(O=mE2[C[0]],O=!!Z.iconStyle||O==="youtube_outline",d=Y.version<=C[1],O=(!!Z.iconSize||C[2]===24)&&O&&d):O=!0;O&&(Y={name:Z.iconName,style:mE2[C[0]],size:C[2],version:C[1],allowMirroring:!!C[3],url:w(Z.iconName,C)})}return Y};
fa2=function(q,Z,w,r){return q+(""+mE2[w[0]]+((r===void 0?0:r)?"_experimental":"")+"/"+Z+"/v"+w[1]+"/")+(w[2]+"px.svg")};
hQ=function(q){return _.b("web_bookmark_playlist_save_icon")?"bookmark":q};
DEN=function(q,Z){return fa2("https://fonts.gstatic.com/s/i/",q,Z)};
hq9=function(q,Z){return fa2("https://fonts.gstatic.com/s/i/",q,Z,!0)};
y82=function(q,Z){return fa2("https://www.gstatic.com/youtube/img/icons/web/",q,Z)};
igX=function(q){var Z=q.enabled;var w=q.itemPlaybackModel;var r=q.thumbnailElRef;var Y=q.containerElRef;var C=q.options;var d;_.L7(function(){var O=Y==null?void 0:Y.value;var H,L=(H=r())==null?void 0:H.value;H=w();var S=C();if(Z&&H&&O&&L&&(S==null?0:S.thumbnail)){var v,R;O={mediaRenderer:{data:H,hostElement:O},lockupElement:O,thumbnailElement:L,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.oQ((v=H.inlinePlayerData)==null?void 0:v.onVisible),navigationEndpoint:_.oQ((R=H.inlinePlayerData)==
null?void 0:R.onSelect),thumbnail:S.thumbnail,thumbnailOverlays:S.thumbnailOverlays||[],accessibilityText:S.accessibilityText||""},thumbnailSize:S.thumbnailSize,enableRounding:S.enableRounding}}}else O=void 0;if(v=O){var B;(B=d)==null||hL(B);d=KV(v)}});
_.SG(function(){var O;(O=d)==null||hL(O)})};
gm1=function(q){q=atob(q);for(var Z=[],w=0;w<q.length;w++)Z.push(q.charCodeAt(w));return new Blob([new Uint8Array(Z)],{type:"image/png"})};
Zxj=function(q,Z,w,r){r=r===void 0?"INSERTION_POSITION_UNSPECIFIED":r;return q({targetId:Z},function(Y){var C,d=(C=Y.contents)!=null?C:[];C=w!=null?w:[];var O=qr2(d);switch(r){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},Y,{contents:[].concat(_.Ju(d.slice(0,O)),_.Ju(C),_.Ju(d.slice(O+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},Y,{contents:[].concat(_.Ju(C),_.Ju(d))});case "INSERTION_POSITION_LAST":return Object.assign({},Y,{contents:[].concat(_.Ju(d),_.Ju(C))});
default:return Y}})};
r62=function(q,Z,w,r,Y){Y=Y===void 0?"RELATIVE_INSERTION_POSITION_AFTER":Y;return q({targetId:Z},function(C){var d,O=(d=C.contents)!=null?d:[];d=woz(O,w);if(d<0)return C;d=Y==="RELATIVE_INSERTION_POSITION_BEFORE"?d:d+1;return Object.assign({},C,{contents:[].concat(_.Ju(O.slice(0,d)),_.Ju(r),_.Ju(O.slice(d)))})})};
qr2=function(q){var Z=q.findIndex(function(w){return _.J(w,_.i2)});
return Z>=0?Z:q.length};
woz=function(q,Z){return q.map(function(w){return _.J(w,_.Yrz)}).findIndex(function(w){return(w==null?void 0:w.targetId)===Z})};
eu1=function(q,Z,w){return q({targetId:Z},function(r){var Y,C=(Y=r.contents)!=null?Y:[];return Object.assign({},r,{contents:$22(C,w)})})};
$22=function(q,Z){return q.filter(function(w){var r=Z.includes;a:{w=_.P(Object.values(w));for(var Y=w.next();!Y.done;Y=w.next())if((Y=Y.value)&&Y.targetId){w=Y.targetId;break a}w=""}return!r.call(Z,w||"")})};
_.CLj=function(q,Z){return{engagementPanelSectionListRenderer:{panelIdentifier:q,identifier:Z,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
PLz=function(q){return q.getOption("captions","tracklist",{includeAsr:!0})};
d29=function(q){var Z=PLz(q);if(Z==null?0:Z.length)return Z;q.loadModule("captions");return PLz(q)};
VyO=function(q,Z,w){if(q.getVideoData){var r,Y=(r=d29(q))==null?void 0:r.find(function(C){return C.languageCode===w});
r=_.yG("/youtube/app/player_caption_language_entity_key","stringEntity",2);Z.dispatch(_.wp("stringEntity",r,{key:r,value:(Y==null?void 0:Y.displayName)||""}));Y?q.setOption("captions","track",Y):(q.setOption("captions","stickyLoading",{}),q.setOption("captions","track",{}))}};
Oxe=function(q){return q.getOption("captions","tracklist",{includeAsr:!0})};
Hxz=function(q){return q.getOption("captions","tracklist",{includeAsr:!0})};
Wd2=function(q){var Z=Hxz(q);if(Z==null?0:Z.length)return Z;q.loadModule("captions");return Hxz(q)};
oeX=function(q){var Z=q.getOption("captions","track");if(Z)return Z;q.loadModule("captions");return q.getOption("captions","track")};
uB2=function(q){var Z=Wd2(q);if(Z!=null&&Z.length){var w=oeX(q);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[_.ih({listItemViewModel:{title:{content:_.dT("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(w==null?0:w.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}})].concat(_.Ju(Z.map(function(r){return{listItemViewModel:{title:{content:r.displayName},
isSelected:r.languageCode===(w==null?void 0:w.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:r.languageCode}}]}}}}}}}})))}}}}}}}}};
jKT=function(q){return new Promise(function(Z,w){if(q===void 0)_.tY(Error("Di"),"ERROR"),w(Error("Di"));else{w=new _.LdN;var r=_.SrI();w=w.init();var Y=_.vej(_.zj("YPC_MB_URL"),!0);Promise.all([w,Y]).then(function(){var C=payments.business.integration.ClientTokenFactory.createClientToken(q,r);Z(C)})}})};
bxI=function(q,Z,w,r,Y,C,d){var O=_.Be();w=w.replace(/-/g,"+").replace(/_/g,"/");var H=_.Hd().get("hl"),L=_.gn(_.Q5),S=Z==null?void 0:Z.element;S&&_.cQ(S);ty1(Z,!0);_.RuX(L,w,O.resolve,function(){S&&_.Ml(S)},function(v){S&&_.Ml(S);
O.reject(v)},H,r?function(v){r&&_.zR(q,r,{backend_analytics:v})}:void 0,O.resolve,Y,C,d);
return O.promise};
ty1=function(q,Z){!(q=q==null?void 0:q.element)||q.tagName!=="YT-BUTTON-RENDERER"&&q.tagName!=="YTD-BUTTON-RENDERER"||(q.disabled=Z)};
J6z=function(){var q=_.dT("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.G7(q),actionButton:{buttonRenderer:E3X()}}},popupType:"TOAST"}};
zuN=function(){var q=_.dT("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.G7(q),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
By2=function(q){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:q}]}}};
qd=function(q,Z,w,r){var Y;return _.V(function(C){if(C.nextAddress==1)return _.d9(C,2),_.W(C,q,4);if(C.nextAddress!=2)return(Y=_.VR(Z.getState().entities).length>0)?C.return({title:_.G7(_.dT("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.G7(_.dT("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:QH9()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
C.return(x8j(w,r));_.o3(C);return C.return(x8j(w,r))})};
aDO=function(q,Z){return Z?Z==="PPSV"||f1I(q,Z):!1};
neI=function(q){q.responseContext||(q.responseContext={});q.responseContext.maxAgeSeconds=0;return q};
w1=function(q){var Z;return _.V(function(w){return w.nextAddress==1?_.W(w,QKN(q,"service:topbar:fallback"),2):(Z=w.yieldResult)&&_.Zb(Z)?w.return(neI(_.Zb(Z))):w.return()})};
Ee2=function(q){var Z;return _.V(function(w){return w.nextAddress==1?_.W(w,QKN(q,"service:downloads_settings:fallback"),2):(Z=w.yieldResult)&&_.Zb(Z)?w.return(Z):w.return()})};
QKN=function(q,Z){var w;return _.V(function(r){if(r.nextAddress==1)return q?_.W(r,q.get(Z),2):r.return();w=r.yieldResult;return!w||!_.Zb(w)||!isNaN(Number(w.data.expireTimestampMs))&&w.isExpired()?r.return():r.return(w)})};
x22=function(q){var Z=_.t().resolve(r1).getState().entities;return q.playlistId?aDO(Z,q.playlistId):!1};
Ty2=function(q,Z){var w;if(Z==null?0:(w=Z.requestTemplate)==null?0:w.panelId)q.panelId=Z.requestTemplate.panelId;var r;if(Z==null?0:(r=Z.requestTemplate)==null?0:r.params)q.params=Z.requestTemplate.params};
kAz=function(){if(U2j)return U2j();var q=!_.b("idb_response_store_auth_killswitch"),Z={};U2j=M4("yt-it-response-store",{objectStores:(Z.ResponseStore={addedAtVersion:1},Z),shared:!q,upgrade:function(w,r){r(1)&&(w=a$(w,"ResponseStore",{keyPath:["key","clientName"]}),nB(w,"byExpiration","expireTimestampMs"),nB(w,"byInterface","clientName"))},
version:1});return U2j()};
Kd1=function(q){return _.xr(kAz(),q)};
ID9=function(q,Z){var w;return _.V(function(r){return r.nextAddress==1?_.W(r,_.cg(),2):(w=r.yieldResult)?r.return(new sK2(q,Z,w)):r.return()})};
c66=function(q){var Z=Object.keys(q)[0];if(Z)return q.screenExit&&(Z=Z+";"+q.screenExit.screen),Z};
MyN=function(q){var Z=new Map;q=_.P(q);for(var w=q.next();!w.done;w=q.next())w=w.value,w!=null&&(Z.has(w.taskType)||Z.set(w.taskType,[]),Z.get(w.taskType).push(w));return Z};
Fd6=function(q){return!isNaN(q)&&q>0};
NyT=function(q){q=[].concat(_.Ju(q)).sort(function(w,r){return w-r});
var Z=Math.floor(q.length/2);return q.length%2?q[Z]:(q[Z-1]+q[Z])/2};
GAI=function(){lDN||(Object.assign(mt,{handleError:function(q,Z){var w={errorSeverity:Z.errorSeverity.toString(),wizFeatureFlags:Object.entries(Z.featureFlags).join("\n")};$AX(Z,w);Z=Z.errorSeverity;Z===3?_.tY(q,"ERROR",void 0,void 0,void 0,w):Z===2&&_.tY(q,"WARNING",void 0,void 0,void 0,w);_.b("cow_if_errors_in_popup")&&Z===3&&q.message.indexOf("<If>")!==-1&&window.alert(q.message)},
enableComponentStacksInErrorMessages:!1}),lDN=!0)};
m2j=function(q,Z){_.IR("yt.logging.errors.log",_.tY);eYj();poj(WWz(),Z);window.onerror=q;_.b("wiz_next_error_handler_killswitch")||GAI();Xoe=Co2;window.addEventListener("unhandledrejection",function(w){if(w.reason instanceof Error){var r=w.reason;_.JY(r,{source:"unhandledrejection"});r.name==="AbortError"&&(r.level="WARNING")}Co2(w.reason);w.preventDefault()})};
_.A6j=function(q){return q.a11y.ephemeralAction||null};
_.fD2=function(q){var Z,w,r,Y,C,d,O,H,L,S,v,R,B,n,x,K,k,G,rz,f,eO,g,H6,nX,Qj,SO,Te,Ze,W1,A2,f9,Dl,$g,De,n9,Rh,xg,ZF,mm,CX;return _.V(function(rb){if(rb.nextAddress==1)return _.W(rb,_.YO(q,{mode:"readonly",enableRetries:!0},function(mv){return $O(mv,"playbackData").then(function(lC){var L9=lC.map(function(Op){return Op.transfer}).filter(function(Op){return!!Op}),ah=lC.map(function(Op){return Op.offlineVideoPolicy}).filter(function(Op){return!!Op}),gz=lC.filter(function(Op){return!!Op.key}).map(function(Op){return _.yG(_.fR(Op.key).entityId,
"downloadStatusEntity")});
L9=$O(mv,"transfer",L9);ah=$O(mv,"offlineVideoPolicy",ah);gz=$O(mv,"downloadStatusEntity",gz);var lN=L9.then(function(Op){Op=Op.reduce(function(hK,wr){(wr==null?0:wr.offlineVideoStreams)&&hK.push.apply(hK,_.Ju(wr.offlineVideoStreams));return hK},[]).filter(function(hK){return!!hK});
return $O(mv,"offlineVideoStreams",Op)});
return zO.all([L9,ah,lN,gz]).then(function(Op){var hK=_.P(Op);Op=hK.next().value;var wr=hK.next().value;var TJ=hK.next().value;hK=hK.next().value;return[lC,Op,wr,TJ,hK]})})}),2);
if(rb.nextAddress!=3)return Z=rb.yieldResult,_.W(rb,_.YO(q,{mode:"readonly",enableRetries:!0},function(mv){return $O(mv,"mainDownloadsListEntity").then(function(lC){var L9,ah;return(ah=(L9=lC[0])==null?void 0:L9.downloads)!=null?ah:[]})}),3);
w=rb.yieldResult;r=_.P(Z);Y=r.next().value;C=r.next().value;d=r.next().value;O=r.next().value;H=r.next().value;L=Y;S=C;v=d;R=O;B=H;n={};x={};K={};k={};G={};rz=[];f=_.P(S);for(eO=f.next();!eO.done;eO=f.next())(g=eO.value)&&(n[g.key]=g);H6=_.P(v);for(nX=H6.next();!nX.done;nX=H6.next())(Qj=nX.value)&&(x[Qj.key]=Qj);SO=_.P(B);for(Te=SO.next();!Te.done;Te=SO.next())(Ze=Te.value)&&(K[Ze.key]=Ze);W1=_.P(R);for(A2=W1.next();!A2.done;A2=W1.next())(f9=A2.value)&&(k[f9.key]=f9);Dl=_.P(w);for($g=Dl.next();!$g.done;$g=
Dl.next())De=$g.value,n9=void 0,G[(n9=De.videoItem)!=null?n9:""]=!0,De.videoItem&&(xg=Rh=void 0,ZF=(xg=(Rh=_.fR(De.videoItem))==null?void 0:Rh.entityId)!=null?xg:"",rz.push({externalVideoId:ZF}));mm=L.filter(function(mv){if(!mv||!mv.key||!mv.offlineVideoPolicy)return!1;mv=_.fR(mv.key).entityId;mv=_.yG(mv,"downloadStatusEntity");var lC;return!(mv&&((lC=K[mv])==null?void 0:lC.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
CX=mm.map(function(mv){var lC=n[mv.transfer],L9=[];if(lC==null?0:lC.offlineVideoStreams)for(var ah=_.P(lC.offlineVideoStreams),gz=ah.next();!gz.done;gz=ah.next())(gz=k[gz.value])&&L9.push(gz);ah=x[mv.offlineVideoPolicy];gz=G;var lN=mv==null?void 0:mv.playerResponseTimestamp,Op=_.fR(ah.key).entityId;mv=_.yG(Op,"mainVideoEntity");if(ah.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var hK="OFFLINE_VIDEO_STATE_DISABLED";ah.expirationTimestamp&&Number(ah.expirationTimestamp)<Date.now()/1E3&&(hK="OFFLINE_VIDEO_STATE_EXPIRED")}else if(ah.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")hK="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(lC==null?void 0:lC.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":hK="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":hK="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":hK="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":hK="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":hK="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":hK="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:hK="OFFLINE_VIDEO_STATE_UNKNOWN"}if(hK==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(lC==null?void 0:lC.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":hK="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":hK="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":hK=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Op={id:Op,videoState:hK};if(lC==null?0:lC.cotn)Op.cotn=lC.cotn;if(lC==null?0:lC.maximumDownloadQuality)Op.selectedVideoQuality=lC==null?void 0:lC.maximumDownloadQuality;if(lC==null?0:lC.lastProgressTimeMs)Op.lastProgressTimeMs=lC.lastProgressTimeMs;lN&&(Op.playerResponseSavedTimeMs=String(Number(lN)*1E3));lC=String;lN=0;L9=_.P(L9);for(hK=L9.next();!hK.done;hK=L9.next())if(hK=hK.value,hK.streamsProgress){hK=_.P(hK.streamsProgress);for(var wr=hK.next();!wr.done;wr=
hK.next()){var TJ=void 0;lN+=Number((TJ=wr.value.numBytesDownloaded)!=null?TJ:0)}}Op.downloadedBytes=lC(lN);Op.selectedOfflineMode=gz[mv]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";ah.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Op.offlinePlaybackDisabledReason=ah.offlinePlaybackDisabledReason);return Op});
return rb.return({offlineVideos:CX,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:rz}}})})};
D26=function(){var q;return _.V(function(Z){return Z.nextAddress==1?_.W(Z,_.Zk(),2):(q=Z.yieldResult)?Z.return(_.fD2(q)):Z.return({state:"PES Unavailable"})})};
ixz=function(){var q,Z,w,r;return _.V(function(Y){if(Y.nextAddress==1)return _.W(Y,_.Zk(),2);if(Y.nextAddress!=3)return(q=Y.yieldResult)?_.W(Y,hu2(q),3):Y.return({state:"PES Unavailable"});Z=Y.yieldResult;w={};r=Z.reduce(function(C,d){C[d.key]=d;return C},w);
return Y.return(y66(r))})};
y66=function(q){for(var Z={},w=[],r=_.P(Object.keys(q)),Y=r.next();!Y.done;Y=r.next()){var C=Y.value;Y=q[C];var d=void 0;if(((d=Y)==null?void 0:d.entityType)==="mainVideoEntity"){delete q[C];var O=Y.data;Y={};if(O){var H=void 0;d=(H=O.videoId)!=null?H:"vid-"+C;C=q;Y.video=O;delete Y.video.formattedDescription;delete Y.video.thumbnail;O.owner&&(H=C[O.owner],H==null?0:H.data)&&(delete C[H.key],Y.video.owner=H.data,delete Y.video.owner.avatar);if(O=O.downloadState)if(H=C[O],H==null?0:H.data)if(delete C[O],
O=H.data.playbackData)if(H=C[O],H!=null&&H.data){delete C[O];O=H.data;delete O.playerResponseJson;Y.playbackData=O;if(O.transfer&&(H=C[O.transfer],H==null?0:H.data)){delete C[H.key];var L=H.data;Y.transfer=L;H=[];L=_.P(L.offlineVideoStreams||[]);for(var S=L.next();!S.done;S=L.next())if(S=C[S.value])delete C[S.key],H.push(S.data);H&&(Y.streams=H)}(O=O.offlineVideoPolicy)&&(O=C[O])&&O.data&&(delete C[O.key],Y.offlineVideoPolicy=O.data)}Z[d]=Y}}else Y&&Y.entityType==="offlineOrchestrationActionWrapperEntity"&&
Y.data&&(delete q[Y.key],d=Y.data,C=void 0,w.push({id:d.rootActionId,type:((C=d.actionProto)==null?void 0:C.actionType)||"",entity:Y}))}Z.wrapperEntities=w;Object.keys(q).length>0&&(Z.unknownKeys=q);return Z};
ge9=function(){var q,Z,w,r,Y,C,d,O,H;return _.V(function(L){if(L.nextAddress==1)return q=!!(new _.zo("")).expiringStorage_,r=!!((Z=_.$1.crypto)==null?0:(w=Z.subtle)==null?0:w.importKey),Y=!!_.$1.BroadcastChannel,C=!!_.$1.navigator.locks,_.W(L,c0e(),2);d=L.yieldResult;O=q&&r&&Y&&C&&d;H={isSupported:O};if(O)return L.return(H);H.missingBrowserFeatures=[];d||H.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");q||H.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
r||H.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");Y||H.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");C||H.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return L.return(H)})};
qS2=function(){var q;return!((q=Y4?Y4:null)==null||!q.window)};
_.wf1=function(q){if(_.aT()&&_.WI8("Chromium")>=120){var Z=_.Z02().mediaSession;try{Z.setActionHandler("enterpictureinpicture",function(){q()})}catch(w){}}};
rkj=function(q){for(var Z=[],w=_.P(document.styleSheets),r=w.next(),Y={};!r.done;Y={node$jscomp$720:void 0},r=w.next())Y.node$jscomp$720=r.value.ownerNode,Y.node$jscomp$720&&(Y.node$jscomp$720 instanceof HTMLStyleElement||Y.node$jscomp$720 instanceof HTMLLinkElement)&&Z.push(new Promise(function(C){return function(d){var O=C.node$jscomp$720.cloneNode(!0);O.onload=function(){d()};
O.onerror=function(){_.bx(Error("fj"));d()};
q.document.head.appendChild(O)}}(Y)));
return Promise.all(Z)};
WfI=function(q){var Z=[_.ib(YSe),_.ib($Pz),_.ib(ecj)];CfT(window.document.documentElement,q.document.documentElement,[_.ib(Pf1),_.ib(dPN),_.ib(V59),_.ib(O02),_.ib(H02)]);CfT(window.document.body,q.document.body,Z)};
CfT=function(q,Z,w){q=_.P(q.attributes);for(var r=q.next();!r.done;r=q.next())if(r=r.value)try{_.DF(w,Z,r.name,r.value)}catch(Y){}};
uT2=function(q,Z){q=new _.$4(q.document.documentElement);q.start(oV1,Z);return q};
LfN=function(q){var Z=q.document.documentElement;Z.addEventListener("click",function(w){cMT(Z,w)});
Z.addEventListener("touchstart",function(w){G61(w)});
Z.addEventListener("mousedown",function(w){G61(w)})};
vV1=function(q,Z,w,r){r=r===void 0?!1:r;Z=new SS9(Z||q,w||q);return{x:q.x+((r===void 0?0:r)?Z.lengthX*-1:Z.lengthX)*.2,y:q.y+((r===void 0?0:r)?Z.lengthY*-1:Z.lengthY)*.2}};
jjN=function(q){if(!q)return!1;var Z=q.status==="OK"||q.status==="LIVE_STREAM_OFFLINE",w,r,Y,C=(Y=(w=q.errorScreen)==null?void 0:w.playerLegacyDesktopYpcTrailerRenderer)!=null?Y:(r=q.errorScreen)==null?void 0:r.ypcTrailerRenderer;return!!Z||!!C};
_.t5j=function(q,Z){if(!q)return!1;var w,r=(w=q.errorScreen)==null?void 0:w.playerLegacyDesktopYpcOfferRenderer,Y;Z=!!(Z==null?0:(Y=Z.playerOverlayRenderer)==null?0:Y.gatedActionsOverlayRenderer);return!!jjN(q)||!!r||!!Z};
Rc2=function(q){return q.includes("gclid")||q.includes("gad_source")};
b0N=function(q){return new Promise(function(Z){window.setTimeout(Z,q)})};
JkT=function(q){var Z={bicf:function(C){q.t4B=C},
blc:function(){return q.getLatestChallengeResponse()},
bcr:function(C){q.sjW.push(C)}},w=window.top;
w.ntpevasrs=Z;if(w.ntpqfbel!==void 0)for(var r=_.P(w.ntpqfbel),Y=r.next();!Y.done;Y=r.next())Y=Y.value,Y(Z);w.ntpqfbel=void 0};
zc8=function(q){return _.V(function(Z){if(Z.nextAddress==1)return _.d9(Z,2),_.W(Z,q.ci2(),4);if(Z.nextAddress!=2)return _.QL(Z,0);_.o3(Z);_.ub(Z)})};
Bh9=function(q){var Z,w;(Z=q.ytcsi)==null||(w=Z.tick)==null||w.call(Z,"pot_ist")};
as6=function(q){if(q instanceof Error){var Z=_.Eq("yt.logging.errors.log");Z&&Z(q,"WARNING")}};
nVz=function(q){try{var Z=JSON.parse(q);if(Z.bgChallenge)return Z}catch(w){}};
EVe=function(){var q=window,Z={networkStatusManagerPromise:_.t().resolve(new RAI(_.To)),initialChallengeSli:_.b("wpo_att_sli")?new _.JHz("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};q=q===void 0?window:q;var w=q.ytAtR,r;Z==null||(r=Z.initialChallengeSli)==null||_.el(r);if(w){if(w=nVz(w)){var Y;Z==null||(Y=Z.initialChallengeSli)==null||_.Cd(Y,"SUCCESS");Qj6(w,Z)}q.ytAtR=void 0}else q.ytAtRC=function(C){if(C=nVz(C)){var d;Z==null||(d=Z.initialChallengeSli)==null||_.Cd(d,
"SUCCESS");Qj6(C,Z);q.ytAtRC=void 0}}};
UP6=function(){if(xP1)return xP1;try{var q=_.dX("IFRAME");_.F5(q,_.qu(Th2));q.sandbox.add("allow-same-origin");q.style.display="none";document.body.appendChild(q);return xP1=q}catch(Z){q=new _.df("Failed to create sandbox iframe"),_.tY(q)}};
k8j=function(q){var Z,w;return(w=q==null?void 0:(Z=q.contentWindow)==null?void 0:Z.fetch)!=null?w:window.fetch};
Kf8=function(q){var Z,w;return(w=q==null?void 0:(Z=q.contentWindow)==null?void 0:Z.JSON.parse)!=null?w:JSON.parse};
sjI=function(q){var Z,w;return(w=q==null?void 0:(Z=q.contentWindow)==null?void 0:Z.Request)!=null?w:window.Request};
M5j=function(){if(Ec8()==="hidden")var q="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else Ec8()==="visible"&&(q="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",Isz=null);q&&ckj(q)};
ckj=function(q){if(q==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||q==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(FfT===q)return;FfT=q}var Z=9E4+Math.random()*2E3;if(q!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.pB()>Z)&&Ec8()==="visible"){Z=-1;Isz&&(Z=Math.round((0,_.lp)()-Isz));var w=String;var r=_.Eq("_fact",window);r=r==null||r==-1?-1:Math.max(Date.now()-r,0);_.vO("foregroundHeartbeat",{firstActivityMs:w(r),clientDocumentNonce:rH2,index:String(NhT),lastEventDeltaMs:String(Z),trigger:q});
_.IR("_fact",-1,window);NhT++;Isz=(0,_.lp)()}};
_.lsX=function(){try{return!!self.sessionStorage}catch(q){return!1}};
G89=function(){var q=navigator;return new Promise(function(Z,w){var r;(r=q.webkitTemporaryStorage)!=null&&r.queryUsageAndQuota?q.webkitTemporaryStorage.queryUsageAndQuota(function(Y,C){Z({usage:Y,quota:C})},function(Y){w(Y)}):w(Error("nj"))})};
pfT=function(q,Z,w){q.componentType!==PN&&w instanceof HTMLElement&&Z&&!_.b("cow_logging_in_component_wrapper")&&FE6(w,Z,!0)};
XfI=function(q,Z,w){Z=Z===void 0?{}:Z;var r,Y=(r=_.J(q.commandMetadata,_.XK))==null?void 0:r.url;r=Z.form||{};!w||r.element||r.skipDefaultElement||(Z.form=Z.form||{},Z.form.element=w);if(Y&&Y!=="/service_ajax")return{type:0,command:q,form:Z.form};if(_.b("kevlar_service_command_check")){if(_.J7(_.t().resolve(_.PP),q))return Object.assign({},{type:1,command:q},Z)}else{var C;if((C=_.J(q.commandMetadata,_.XK))==null?0:C.apiUrl)return Object.assign({},{type:1,command:q},Z)}return{type:2,command:q,form:Z.form}};
mP1=function(q){if(q.form){var Z=q.form,w=Object.assign({},Z);Z=Z.element;w=(delete w.element,w);if(Z)return[_.qM(Z,[q.command,w,q.commandController])]}return[]};
Ak8=function(q){if(q.form){var Z=q.form,w=Object.assign({},Z);Z=Z.element;w=(delete w.element,w);Z&&_.ZC(Z,[q.command],Z,w)}};
DPT=function(q,Z,w){var r=new fs2(q,Z),Y=new PH(q,Z,w);q={"/youtubei/v1/browse":new d1(q,Z,w),"/youtubei/v1/player":r,"/youtubei/v1/navigation/resolve_url":new VU,"/youtubei/v1/next":Y,"/youtubei/v1/guide":new On(w),"/youtubei/v1/search":new HH(q,Z,w),"/youtubei/v1/reel/reel_item_watch":new WH(q,Z,w),"/youtubei/v1/get_watch":new ui(r,Y)};q["/youtubei/v1/account/account_menu"]=new Ld;q["/youtubei/v1/notification/get_notification_menu"]=new Sl;return q};
jl=function(){var q=_.t().resolve(vH);return Promise.resolve(hce(q,_.$1.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
ykz=function(q){return q&&(q=_.tW(_.CwO(q)))?(new URLSearchParams(q)).get("service"):null};
JW=function(q,Z){_.sL(_.R0(),function(){_.JT("adl")});
_.t().resolve(i0e)(Z);q=q.root;q.loadData&&q.loadData(Z);(Z==null?0:Z.response)?_.Cd(a7X(),"SUCCESS"):_.bx(new _.df("Lifecycle: No response in data",_.BF("IS_SHELL_LOAD"),Z?Z.page:"NO_PAGE",Z?Z.endpoint:"NO_ENDPOINT"));q.polymerController.$["page-manager"].lazyPrepareCriticalPages((Z==null?void 0:Z.page)||"",Z.endpoint);var w,r;((r=_.J(Z==null?void 0:(w=Z.endpoint)==null?void 0:w.commandMetadata,_.XK))==null?0:r.webPageType)&&_.sE().dispatch(_.bi(_.J(Z.endpoint.commandMetadata,_.XK).webPageType))};
gV9=function(){var q,Z;return _.V(function(w){switch(w.nextAddress){case 1:q=window;if(!q.getDataPromise){w.jumpTo(2);break}_.d9(w,3);return _.W(w,q.getDataPromise(),5);case 5:return w.return(w.yieldResult);case 3:return _.o3(w),_.W(w,jl(),6);case 6:return w.return(w.yieldResult);case 2:if(q.getInitialData)return Z=q.getInitialData(),q.getInitialData=void 0,w.return(Z);throw Error("pj`"+_.$1.location.href);}})};
Z32=function(){_.bO("CSI_SERVICE_NAME","youtube");_.RV({loadType:"cold"});_.b("kevlar_log_lcp")&&q_1(function(q){_.JT("lcp",q.value)})};
wU8=function(){var q=_.xi(document.location.href,"enable");q&&q.indexOf("scraper")>-1&&_.bO("ADD_SCRAPER_ATTRIBUTES",!0)};
CvN=function(q){var Z=q.root;q=[rs2,Y_z,_.zf];_.b("web_feedback_endpoint_autolog_allowlist_killswitch")&&q.push(_.BH,$az);erT(function(w,r){return XfI(w,r,Z)},function(w){if(!w.command)return[];
var r;((r=w.form)==null?0:r.element)?w.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},w.form,{endpoint:w.command})})):Z.handleNavigate(w);return[]},q);
_.t().addProvider({provide:_.ps,useValue:_.AJ.instance})};
daX=function(){var q={},Z={},w;for(w in Pv8){var r=_.P(_.qo(Pv8[w],void 0,"UAX5pb"));q[w]=r.next().value;Z[w]=r.next().value}return[q,function(Y){for(var C in Y){var d=void 0;(d=Z[C])==null||d(Y[C])}}]};
_.H3T=function(q,Z){var w=_.R4.getValueByKeys(q,"contents","twoColumnWatchNextResults","results","results","contents"),r=_.R4.getValueByKeys(q,"contents","twoColumnWatchNextResults","playlist","playlist")||null,Y=null,C=null;if(r)Y=_.R4.getValueByKeys(r,"titleText"),C=_.R4.unsafeClone(_.R4.getValueByKeys(r,"longBylineText")),w="",C&&(w=_.kO(C)),C=_.UE(w);else if(w){w=_.P(w);for(var d=w.next();!d.done;d=w.next())d=d.value,d.videoPrimaryInfoRenderer&&(Y=_.R4.getValueByKeys.apply(_.R4,[d].concat(_.Ju(Vue)))),
d.videoSecondaryInfoRenderer&&(C=_.R4.getValueByKeys.apply(_.R4,[d].concat(_.Ju(O38))))}else _.xT(Error("uj"));var O;q.currentVideoEndpoint?O=q.currentVideoEndpoint:_.xT(Error("vj"));var H;Z&&(H=_.R4.getValueByKeys(Z,"playabilityStatus","miniplayer","miniplayerRenderer"));q={miniplayerTitle:Y,miniplayerSubtitle:C,watchEndpoint:O,playlistData:r};H&&(q.miniplayerRenderer=H);return q};
Wi6=function(q){if(q)return _.V1(q)};
_.o$O=function(){return{isFullscreen:function(){throw Error("wj");},
toggleFullscreen:function(){throw Error("xj");},
exitFullscreen:function(){throw Error("yj");},
isAutonavEnabled:function(){throw Error("zj");},
setAutonavEnabled:function(){throw Error("Aj");},
isAutoplaySetExplicitly:function(){throw Error("Bj");}}};
ujN=function(q){return q.videoDuration?q.numTaps>1&&q.tapDirection!==0?_.a0(q.draggedTime/q.videoDuration,0,1):_.a0((q.playedTime||0)/q.videoDuration,0,1):0};
LiO=function(q){return q.videoDuration?q.isDragging||q.numTaps>1&&q.tapDirection!==0?_.a0(q.draggedTime/q.videoDuration,0,1):_.a0((q.playedTime||0)/q.videoDuration,0,1):0};
v$9=function(q){var Z,w,r;return _.J(q==null?void 0:(Z=q.markersMap)==null?void 0:(w=Z.find(function(Y){return Y.key==="HEATSEEKER"}))==null?void 0:(r=w.value)==null?void 0:r.heatmap,S_6)};
jiO=function(q){var Z,w;return(w=(Z=v$9(q))==null?void 0:Z.heatMarkersDecorations)!=null?w:[]};
tuT=function(q){if(_.b("mweb_supported_chapters_killswitch"))return!0;var Z;return!!(q==null?0:(Z=q.markersMap)==null?0:Z.find(function(w){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(w.key)}))};
_.Rr2=function(q){var Z=Object,w=Z.assign,r;q={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(r=q==null?void 0:q.getPlayerState())!=null?r:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return w.call(Z,{},{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},q,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
b38=function(q){return function(Z){var w=q(),r,Y=(r=w.playerApi)==null?void 0:r.getPlayerState();Z&&Z!==w.playerState&&(Z===1||Z===2)&&w.setState({playerState:Y})}};
zr9=function(q){return function(Z){var w=q(),r=w.playerApi;r&&(Z==null?void 0:Z.type)==="newdata"&&(Jsj&&(clearTimeout(Jsj),Jsj=void 0),_.b("web_shorts_use_progress_state_for_gapless")?(Z=r==null?void 0:r.getProgressState(Z==null?void 0:Z.playertype),Z=Z.seekableEnd-Z.seekableStart):Z=r==null?void 0:r.getDuration(Z==null?void 0:Z.playertype),w.setState({playedTime:0,videoDuration:Z}))}};
BG8=function(q){return function(Z){var w=q(),r=w.playerApi;if(r){var Y=r.getPresentingPlayerType();_.b("web_shorts_use_progress_state_for_gapless")?(r=r.getProgressState(Y),r=r.seekableEnd-r.seekableStart):r=r.getDuration(Y);w.setState({playedTime:Z,videoDuration:r})}}};
Qi1=function(q){var Z=q.element;var w=q.veType;var r=q.storedVisualElement===void 0?null:q.storedVisualElement;var Y=q.elementIndex===void 0?0:q.elementIndex;q=q.clientYouTubeData;var C=_.b5();C!==aYN&&(n$8.clear(),aYN=C);if(Z.visualElement&&n$8.has(Z.visualElement))return null;if(r&&n$8.has(r))return Z.visualElement=r,null;w=_.yy(_.iy(),{veType:w,elementIndex:Y,clientYouTubeData:q});if(!w)return null;Z.visualElement=w;n$8.add(w);return w};
_.nd=function(q,Z,w,r){w=w===void 0?null:w;r=r===void 0?G4I:r;var Y=Y===void 0?null:Y;ep(function(){if(Z){w instanceof Function&&(w=w());var C=Qi1({element:Z,veType:q,storedVisualElement:w,clientYouTubeData:void 0});C&&(mwz(Z,Y),r(C))}})};
xa2=function(q){_.nd(112394,q,function(){return E$8},function(Z){E$8=Z})};
khI=function(q,Z){if(!q)return[];var w,r,Y;q=((w=q.markersMap)==null?void 0:(r=w.find(function(C){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(C.key)}))==null?void 0:(Y=r.value)==null?void 0:Y.chapters)||[];
!TG9(q)||(Z==null?0:Z.ignoreStub)||(q=[Ua9()].concat(_.Ju(q)));return q};
Ua9=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
TG9=function(q){if(q.length===0)return!1;var Z;return((Z=_.J(q[0],QU))==null?void 0:Z.timeRangeStartMillis)!==0};
En=function(q){return q?q.timeRangeStartMillis||0:0};
siz=function(q,Z){if(q.isDragging&&Z)return q=Kij(q,Z),q===-1?Ua9():khI(Z)[q]};
Kij=function(q,Z){return q.isDragging&&Z?khI(Z,{ignoreStub:!0}).findIndex(function(w,r,Y){w=IY2(q);return csz(w,Y,r).scrubberHovering}):-1};
IY2=function(q){return Object.assign({},q,{videoDuration:q.videoDuration*1E3,playedTime:q.playedTime*1E3,draggedTime:q.draggedTime*1E3})};
csz=function(q,Z,w){var r=En(_.J(Z[w],QU));Z=En(_.J(Z[w+1],QU))||q.videoDuration;w=q.isDragging;var Y;if(Y=q.isDragging)Y=q.draggedTime,Y=Y!==null&&Y>=r&&Y<Z;var C=q.playedTime;return C!==null&&C>=r&&C<Z?{videoPosition:"active",isScrubbing:w,scrubberHovering:Y}:q.playedTime<r?{videoPosition:"pending",isScrubbing:w,scrubberHovering:Y}:{videoPosition:"seen",isScrubbing:w,scrubberHovering:Y}};
MuT=function(q,Z){return q.videoPosition==="seen"||(Z===void 0?0:Z)>0};
Fij=function(q,Z,w){Z=q/Z.storyboardInterval;var r=khI(w);if(!r.length)return-Z*72;w=0;r=_.P(r);for(var Y=r.next();!Y.done;Y=r.next())if(En(_.J(Y.value,QU))/1E3<q)w++;else break;return-(Z*72)-w*56};
NG2=function(q){return q?q.width/q.columns:0};
lY9=function(q){return q.isHovering?q.hoveredTime:q.draggedTime};
Ghj=function(q,Z){q=q.draggedTime*1E3;return q>=Z.visibleTimeRangeStartMillis&&q<=Z.visibleTimeRangeEndMillis};
_.pUj=function(q){if(q===void 0||Number.isNaN(q))return"--:--";var Z=Math.abs(Math.floor(q)),w=Math.floor(Z/86400),r=Math.floor(Z%86400/3600),Y=Math.floor(Z%3600/60);Z=Math.floor(Z%60);var C="";w>0&&(C+=w+":",r<10&&(C+="0"));if(w>0||r>0)C+=r+":",Y<10&&(C+="0");C+=Y+":";Z<10&&(C+="0");C+=Z;return q>=0?C:"-"+C};
XUI=function(q,Z){return function(){var w=lY9(q());var r=Z();var Y=q().playerApi;if(Y&&Y.getNumberOfStoryboardLevels()!==0){var C=Y.getStoryboardFrameIndex(w,1);C!==-1?r=Y.getStoryboardFrame(C,1):(w=Y.getStoryboardFrameIndex(w,0),Y=Y.getStoryboardFrame(w,0),r&&Y&&(Y.height*=3,Y.width*=3),r=Y)}else r=null;if(!r)return null;Z()&&(r.width=90*r.columns,r.height=160*r.rows);return r}};
_.x4=function(q){if(!q||q.getVideoData)return q};
maO=function(){var q;return{playerApi:(q=_.t().resolve(_.X6)())!=null?q:void 0}};
_.ysN=function(q){function Z(k){k!==0||S?k>50&&(S||!R)?(v(!1),B(!0)):k<=50&&(S||R)&&(v(!1),B(!1)):v(!0)}
function w(){var k;return _.V(function(G){if(G.nextAddress==1)return _.W(G,_.mj(),2);(k=G.yieldResult)&&(k.isMuted()?v(!0):v(!1));_.ub(G)})}
var r=q.noSlider;q=_.Iw();var Y=_.Iw(),C=_.cO(),d=_.P(Dd(!1)),O=d.next().value,H=d.next().value,L=_.P(Dd(!1));d=L.next().value;L=L.next().value;var S=d,v=L;L=_.P(Dd(!0));d=L.next().value;L=L.next().value;var R=d,B=L;_.Ls(function(){function k(){H(!0)}
function G(){H(!1)}
r?(w(),Z(S?0:100)):C&&C.value&&(C.value.addEventListener("focus",k),C.value.addEventListener("focusout",G),AsO(C.value).then(function(){Z(Number(fY9(C.value)))}));
Y&&Y.value&&(Y.value.addEventListener("focus",k),Y.value.addEventListener("focusout",G));return function(){var rz;C==null||(rz=C.value)==null||rz.removeEventListener("focus",k);var f;C==null||(f=C.value)==null||f.removeEventListener("focusout",G);Y.value.removeEventListener("focus",k);Y.value.removeEventListener("focusout",G)}});
var n=_.fn(function(){if(C&&C.value){var k=Number(fY9(C.value));Daz(k);C.value.style.setProperty("--gradient-percent",k+"%");Z(k)}return!1});
d={};var x=(d.ytdDesktopShortsVolumeControlsSliderContainer=!0,d.ytdDesktopShortsVolumeControlsSliderContainerExpanded=O,d);d={};O=(d.ytdDesktopShortsVolumeControlsBackgroundScrim=!0,d.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=r?!1:O,d);_.MU(Y,"pointerenter",function(){H(!0)});
_.MU(q,"pointerleave",function(){H(!1)});
d=_.fn(function(){if(C&&C.value||r)hr1(C.value,S,r),v(!S);return!1});
L=_.b("web_shorts_keyboard_enable_mute_shortcut")?S?_.dT("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.dT("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):S?_.dT("UNMUTE_VOLUME",void 0,"Unmute"):_.dT("MUTE_VOLUME",void 0,"Mute");var K={sources:[{clientResource:{imageName:S?"VOLUME_OFF_FILLED":R?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};return _.u("desktop-shorts-volume-controls",{class:"ytdDesktopShortsVolumeControlsHost",el:q},_.u("div",{class:_.XA(O)}),_.u("button",{"aria-label":L,title:L,el:Y,"on:click":d,
class:"ytdDesktopShortsVolumeControlsMuteIconButton"},K?_.u(_.aQ,{data:K,alt:L,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null),_.Fs(!r,function(){return _.u("div",{class:_.XA(x)},_.u("input",{"aria-label":_.dT("VOLUME"),title:_.dT("VOLUME"),el:C,"on:input":n,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
AsO=function(q){var Z,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,_.mj(),2);Z=r.yieldResult;w=50;Z&&(w=Z.getVolume(),Z.isMuted()?i36(q,0):i36(q,w));_.ub(r)})};
Daz=function(q){var Z;_.V(function(w){if(w.nextAddress==1)return _.W(w,_.mj(),2);if(Z=w.yieldResult)Z.unMute(!0),Z.setVolume(q,!0);_.ub(w)})};
i36=function(q,Z){q&&(q.value=""+Z,q.style.setProperty("--gradient-percent",Z+"%"))};
fY9=function(q){var Z;return(Z=q==null?void 0:q.value)!=null?Z:0};
hr1=function(q,Z,w){var r;_.V(function(Y){if(Y.nextAddress==1)return _.W(Y,_.mj(),2);r=Y.yieldResult;Z&&r?(r.unMute(!0),!w&&q&&i36(q,r.getVolume())):r&&(r.mute(!0),!w&&q&&i36(q,0));_.ub(Y)})};
g$I=function(){var q;_.V(function(Z){if(Z.nextAddress==1)return _.W(Z,_.mj(),2);q=Z.yieldResult;if(!q)return Z.return();q.isMuted()?q.unMute(!0):q.mute(!0);_.ub(Z)})};
qRz=function(q){var Z=_.t().resolve(_.Tf).getPlayerElement();Z&&q&&(q===1?Z.pause():Z.play())};
ZTO=function(q){_.i5(q,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
wC2=function(q){_.i5(q,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
YR2=function(q){return _.WF(q.document.body,function(){return _.u(rbj,null)})};
$J2=function(){var q=window.performance.getEntriesByType("navigation");return q?q.map(function(Z){return Z.type}).includes("reload"):!1};
Wo9=function(){Un(Un(Un(Un(Un(Un(Un(_.t().resolve(_.k4),_.eCO),_.CeO),_.Pe8),_.dJO),_.VUI),_.OTe),_.HT6)};
oW1=function(q,Z){Z=Z===void 0?!1:Z;var w,r,Y,C;return _.V(function(d){if(d.nextAddress==1)return Z||!_.b("kevlar_shorts_seedless_retry_initial_load")||(w=window,r=!(!w.getDataPromise&&!w.getInitialData),r)?_.W(d,gV9(),2):(setTimeout(oW1.bind(window,q,!0),1E3),d.return());if(d.nextAddress!=3)return Y=d.yieldResult,_.W(d,uCI(Y),3);C=d.yieldResult;JW(q,C);_.ub(d)})};
uCI=function(q){var Z;if((Z=q.response)==null||!Z.replacementEndpoint)return _.YK(q);Z=_.t().resolve(vH);q=q.response;_.J(q.replacementEndpoint,_.Yz)&&q.sequenceContinuation&&(_.J(q.replacementEndpoint,_.Yz).sequenceParams=q.sequenceContinuation);return Kd(Z,q.replacementEndpoint,{},_.$1.location.href,"shorts",function(){},function(){return!1})};
LoI=function(q){var Z=_.sE(),w,r=_.J((w=q.response)==null?void 0:w.frameworkUpdates,n6),Y;w=_.J((Y=q.playerResponse)==null?void 0:Y.frameworkUpdates,n6);var C;q=_.J((C=q.reelWatchSequenceResponse)==null?void 0:C.frameworkUpdates,n6);r&&_.rt(r,Z);w&&_.rt(w,Z);q&&_.rt(q,Z)};
SRX=function(q){var Z;_.b("enable_redirect_linking_for_desktop_web_client")&&((Z=window.location.hash)==null?0:Z.includes("redirect_state"))&&q.url&&(q.url=q.url.toString()+window.location.hash)};
tU9=function(q){var Z=_.t(),w=Z.resolve(vH);Z=Z.resolve(_.vWT);q.endpoint&&(w=jb1(w,q.endpoint),w.content&&q.response&&_.sn(Z,q.response,w.content),w.player&&q.playerResponse&&_.sn(Z,q.playerResponse,w.player),w.reelSequence&&q.reelWatchSequenceResponse&&_.sn(Z,q.reelWatchSequenceResponse,w.reelSequence))};
I0=function(q,Z){LoI(Z);var w;(Z==null?0:Z.url)&&((w=window.location.hash)==null?0:w.includes("redirect_state"))&&(SRX(Z),(w=ykz(Z.url))&&_.yY(q.root,"yt-initialize-third-party",[w,Z]));tU9(Z);w=_.t();var r=w.resolve(RCO);Z.playerResponse&&w.resolve(bT2).handleResponse(Z.playerResponse);if(Z.playerResponse){w=void 0;if(_.b("ab_v_vid_sig")&&Z.endpoint){var Y,C=(Y=_.J(Z.endpoint,_.ck))!=null?Y:_.J(Z.endpoint,_.Yz);C&&(w=C.videoId)}JbN(r,Z.playerResponse,w)}Z.playerResponse&&HOz(Z.playerResponse)&&_.b("web_enable_ab_rsp_cl")?
bgj().then(function(){zC2(r,Z.playerResponse);JW(q,Z)}):JW(q,Z)};
atX=function(q){if(q=q.root.data){var Z=_.t().resolve(BL6);q.endpoint&&(q.response&&Z.handleResponse(q.response,void 0,document.querySelector("ytd-app")),q.playerResponse&&Z.handleResponse(q.playerResponse),q.reelWatchSequenceResponse&&Z.handleResponse(q.reelWatchSequenceResponse))}};
nW1=function(q){var Z,w,r,Y,C,d;return _.V(function(O){switch(O.nextAddress){case 1:Z=window;if(!Z.getDataPromise){O.jumpTo(2);break}_.d9(O,3);return _.W(O,Z.getDataPromise(),5);case 5:w=O.yieldResult;I0(q,w);_.QL(O,4);break;case 3:return _.o3(O),_.W(O,jl(),6);case 6:r=O.yieldResult,JW(q,r);case 4:return O.return();case 2:if(!_.b("sw_nav_preload_pbj")){O.jumpTo(7);break}Z.fetchInitialData=function(){var H;return _.V(function(L){if(L.nextAddress==1)return _.W(L,jl(),2);H=L.yieldResult;JW(q,H);_.ub(L)})};
if(Z.getInitialData){Z.loadInitialData=function(H){I0(q,H)};
Y=Z.getInitialData();Z.getInitialData=void 0;I0(q,Y);O.jumpTo(8);break}Z.fetchInitialData=void 0;return _.W(O,jl(),9);case 9:C=O.yieldResult,JW(q,C);case 8:return O.return();case 7:Z.getInitialData?(d=Z.getInitialData(),Z.getInitialData=void 0,I0(q,d)):Z.loadInitialData=function(H){I0(q,H)},_.ub(O)}})};
Qb2=function(q){var Z=0;return function(){return Z<q.length?{done:!1,value:q[Z++]}:{done:!0}}};
EW6=typeof Object.defineProperties=="function"?Object.defineProperty:function(q,Z,w){if(q==Array.prototype||q==Object.prototype)return q;q[Z]=w.value;return q};
xJe=function(q){q=["object"==typeof globalThis&&globalThis,q,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var Z=0;Z<q.length;++Z){var w=q[Z];if(w&&w.Math==Math)return w}throw Error("a");};
_.My=xJe(this);cH=function(q,Z){if(Z)a:{var w=_.My;q=q.split(".");for(var r=0;r<q.length-1;r++){var Y=q[r];if(!(Y in w))break a;w=w[Y]}q=q[q.length-1];r=w[q];Z=Z(r);Z!=r&&Z!=null&&EW6(w,q,{configurable:!0,writable:!0,value:Z})}};
cH("Symbol",function(q){if(q)return q;var Z=function(C,d){this.$jscomp$symbol$id_=C;EW6(this,"description",{configurable:!0,writable:!0,value:d})};
Z.prototype.toString=function(){return this.$jscomp$symbol$id_};
var w="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",r=0,Y=function(C){if(this instanceof Y)throw new TypeError("b");return new Z(w+(C||"")+"_"+r++,C)};
return Y});
cH("Symbol.iterator",function(q){if(q)return q;q=Symbol("c");for(var Z="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),w=0;w<Z.length;w++){var r=_.My[Z[w]];typeof r==="function"&&typeof r.prototype[q]!="function"&&EW6(r.prototype,q,{configurable:!0,writable:!0,value:function(){return TL2(Qb2(this))}})}return q});
cH("Symbol.asyncIterator",function(q){return q?q:Symbol("d")});
var TL2=function(q){q={next:q};q[Symbol.iterator]=function(){return this};
return q},UJj=typeof Object.create=="function"?Object.create:function(q){var Z=function(){};
Z.prototype=q;return new Z},kQ2=function(){function q(){function w(){}
new w;Reflect.construct(w,[],function(){});
return new w instanceof w}
if(typeof Reflect!="undefined"&&Reflect.construct){if(q())return Reflect.construct;var Z=Reflect.construct;return function(w,r,Y){w=Z(w,r);Y&&Reflect.setPrototypeOf(w,Y.prototype);return w}}return function(w,r,Y){Y===void 0&&(Y=w);
Y=UJj(Y.prototype||Object.prototype);return Function.prototype.apply.call(w,Y,r)||Y}}(),KoO;
if(typeof Object.setPrototypeOf=="function")KoO=Object.setPrototypeOf;else{var sbz;a:{var Itj={a:!0},cb6={};try{cb6.__proto__=Itj;sbz=cb6.a;break a}catch(q){}sbz=!1}KoO=sbz?function(q,Z){q.__proto__=Z;if(q.__proto__!==Z)throw new TypeError("e`"+q);return q}:null}_.Md=KoO;
_.z=function(q,Z){q.prototype=UJj(Z.prototype);q.prototype.constructor=q;if(_.Md)(0,_.Md)(q,Z);else for(var w in Z)if(w!="prototype")if(Object.defineProperties){var r=Object.getOwnPropertyDescriptor(Z,w);r&&Object.defineProperty(q,w,r)}else q[w]=Z[w];q.superClass_=Z.prototype};
_.P=function(q){var Z=typeof Symbol!="undefined"&&Symbol.iterator&&q[Symbol.iterator];if(Z)return Z.call(q);if(typeof q.length=="number")return{next:Qb2(q)};throw Error("f`"+String(q));};
cG=function(q){for(var Z,w=[];!(Z=q.next()).done;)w.push(Z.value);return w};
_.Ju=function(q){return q instanceof Array?q:cG(_.P(q))};
_.Fr=function(q){return MUj(q,q)};
MUj=function(q,Z){q.raw=Z;Object.freeze&&(Object.freeze(q),Object.freeze(Z));return q};
Nd=function(q,Z){return Object.prototype.hasOwnProperty.call(q,Z)};
FoN=typeof Object.assign=="function"?Object.assign:function(q,Z){for(var w=1;w<arguments.length;w++){var r=arguments[w];if(r)for(var Y in r)Nd(r,Y)&&(q[Y]=r[Y])}return q};
cH("Object.assign",function(q){return q||FoN});
var NLX=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},lte=function(q){if(q.isRunning_)throw new TypeError("h");
q.isRunning_=!0};
NLX.prototype.JSC$6609_next_=function(q){this.yieldResult=q};
var GQe=function(q,Z){q.abruptCompletion_={exception:Z,isException:!0};q.nextAddress=q.catchAddress_||q.finallyAddress_};
NLX.prototype.return=function(q){this.abruptCompletion_={return:q};this.nextAddress=this.finallyAddress_};
_.W=function(q,Z,w){q.nextAddress=w;return{value:Z}};
NLX.prototype.jumpTo=function(q){this.nextAddress=q};
_.ub=function(q){q.nextAddress=0};
_.d9=function(q,Z,w){q.catchAddress_=Z;w!=void 0&&(q.finallyAddress_=w)};
_.Hq=function(q,Z){q.catchAddress_=0;q.finallyAddress_=Z||0};
_.QL=function(q,Z,w){q.nextAddress=Z;q.catchAddress_=w||0};
_.o3=function(q,Z){q.catchAddress_=Z||0;Z=q.abruptCompletion_.exception;q.abruptCompletion_=null;return Z};
_.V2=function(q,Z,w,r){r?q.finallyContexts_[r]=q.abruptCompletion_:q.finallyContexts_=[q.abruptCompletion_];q.catchAddress_=Z||0;q.finallyAddress_=w||0};
_.Wq=function(q,Z,w){w=q.finallyContexts_.splice(w||0)[0];(w=q.abruptCompletion_=q.abruptCompletion_||w)?w.isException?q.nextAddress=q.catchAddress_||q.finallyAddress_:w.jumpTo!=void 0&&q.finallyAddress_<w.jumpTo?(q.nextAddress=w.jumpTo,q.abruptCompletion_=null):q.nextAddress=q.finallyAddress_:q.nextAddress=Z};
_.pCe=function(q){this.JSC$6614_context_=new NLX;this.program_=q};
mJe=function(q,Z){lte(q.JSC$6614_context_);var w=q.JSC$6614_context_.yieldAllIterator_;if(w)return XCI(q,"return"in w?w["return"]:function(r){return{value:r,done:!0}},Z,q.JSC$6614_context_.return);
q.JSC$6614_context_.return(Z);return li(q)};
XCI=function(q,Z,w,r){try{var Y=Z.call(q.JSC$6614_context_.yieldAllIterator_,w);if(!(Y instanceof Object))throw new TypeError("g`"+Y);if(!Y.done)return q.JSC$6614_context_.isRunning_=!1,Y;var C=Y.value}catch(d){return q.JSC$6614_context_.yieldAllIterator_=null,GQe(q.JSC$6614_context_,d),li(q)}q.JSC$6614_context_.yieldAllIterator_=null;r.call(q.JSC$6614_context_,C);return li(q)};
li=function(q){for(;q.JSC$6614_context_.nextAddress;)try{var Z=q.program_(q.JSC$6614_context_);if(Z)return q.JSC$6614_context_.isRunning_=!1,{value:Z.value,done:!1}}catch(w){q.JSC$6614_context_.yieldResult=void 0,GQe(q.JSC$6614_context_,w)}q.JSC$6614_context_.isRunning_=!1;if(q.JSC$6614_context_.abruptCompletion_){Z=q.JSC$6614_context_.abruptCompletion_;q.JSC$6614_context_.abruptCompletion_=null;if(Z.isException)throw Z.exception;return{value:Z.return,done:!0}}return{value:void 0,done:!0}};
_.AbI=function(q){this.next=function(Z){lte(q.JSC$6614_context_);q.JSC$6614_context_.yieldAllIterator_?Z=XCI(q,q.JSC$6614_context_.yieldAllIterator_.next,Z,q.JSC$6614_context_.JSC$6609_next_):(q.JSC$6614_context_.JSC$6609_next_(Z),Z=li(q));return Z};
this.throw=function(Z){lte(q.JSC$6614_context_);q.JSC$6614_context_.yieldAllIterator_?Z=XCI(q,q.JSC$6614_context_.yieldAllIterator_["throw"],Z,q.JSC$6614_context_.JSC$6609_next_):(GQe(q.JSC$6614_context_,Z),Z=li(q));return Z};
this.return=function(Z){return mJe(q,Z)};
this[Symbol.iterator]=function(){return this}};
ft6=function(q){function Z(r){return q.next(r)}
function w(r){return q.throw(r)}
return new Promise(function(r,Y){function C(d){d.done?r(d.value):Promise.resolve(d.value).then(Z,w).then(C,Y)}
C(q.next())})};
_.V=function(q){return ft6(new _.AbI(new _.pCe(q)))};
b_T=function(q){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return q};
this.next=function(Z){return Promise.resolve(q.next(Z))};
this["throw"]=function(Z){return new Promise(function(w,r){var Y=q["throw"];Y!==void 0?w(Y.call(q,Z)):(w=q["return"],w!==void 0&&w.call(q),r(new TypeError("i")))})};
q["return"]!==void 0&&(this["return"]=function(Z){return Promise.resolve(q["return"](Z))})};
_.Ta=function(){for(var q=Number(this),Z=[],w=q;w<arguments.length;w++)Z[w-q]=arguments[w];return Z};
cH("globalThis",function(q){return q||_.My});
cH("Reflect",function(q){return q?q:{}});
cH("Reflect.construct",function(){return kQ2});
cH("Reflect.setPrototypeOf",function(q){return q?q:_.Md?function(Z,w){try{return(0,_.Md)(Z,w),!0}catch(r){return!1}}:null});
cH("Promise",function(q){function Z(){this.batch_=null}
function w(d){return d instanceof Y?d:new Y(function(O){O(d)})}
if(q&&(typeof _.My.PromiseRejectionEvent!=="undefined"||!_.My.Promise||_.My.Promise.toString().indexOf("[native code]")===-1))return q;Z.prototype.asyncExecute=function(d){if(this.batch_==null){this.batch_=[];var O=this;this.asyncExecuteFunction(function(){O.executeBatch_()})}this.batch_.push(d)};
var r=_.My.setTimeout;Z.prototype.asyncExecuteFunction=function(d){r(d,0)};
Z.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var d=this.batch_;this.batch_=[];for(var O=0;O<d.length;++O){var H=d[O];d[O]=null;try{H()}catch(L){this.asyncThrow_(L)}}}this.batch_=null};
Z.prototype.asyncThrow_=function(d){this.asyncExecuteFunction(function(){throw d;})};
var Y=function(d){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var O=this.createResolveAndReject_();try{d(O.resolve,O.reject)}catch(H){O.reject(H)}};
Y.prototype.createResolveAndReject_=function(){function d(L){return function(S){H||(H=!0,L.call(O,S))}}
var O=this,H=!1;return{resolve:d(this.resolveTo_),reject:d(this.JSC$6630_reject_)}};
Y.prototype.resolveTo_=function(d){if(d===this)this.JSC$6630_reject_(new TypeError("j"));else if(d instanceof Y)this.settleSameAsPromise_(d);else{a:switch(typeof d){case "object":var O=d!=null;break a;case "function":O=!0;break a;default:O=!1}O?this.resolveToNonPromiseObj_(d):this.fulfill_(d)}};
Y.prototype.resolveToNonPromiseObj_=function(d){var O=void 0;try{O=d.then}catch(H){this.JSC$6630_reject_(H);return}typeof O=="function"?this.settleSameAsThenable_(O,d):this.fulfill_(d)};
Y.prototype.JSC$6630_reject_=function(d){this.settle_(2,d)};
Y.prototype.fulfill_=function(d){this.settle_(1,d)};
Y.prototype.settle_=function(d,O){if(this.state_!=0)throw Error("k`"+d+"`"+O+"`"+this.state_);this.state_=d;this.result_=O;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
Y.prototype.scheduleUnhandledRejectionCheck_=function(){var d=this;r(function(){if(d.notifyUnhandledRejection_()){var O=_.My.console;typeof O!=="undefined"&&O.error(d.result_)}},1)};
Y.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var d=_.My.CustomEvent,O=_.My.Event,H=_.My.dispatchEvent;if(typeof H==="undefined")return!0;typeof d==="function"?d=new d("unhandledrejection",{cancelable:!0}):typeof O==="function"?d=new O("unhandledrejection",{cancelable:!0}):(d=_.My.document.createEvent("CustomEvent"),d.initCustomEvent("unhandledrejection",!1,!0,d));d.promise=this;d.reason=this.result_;return H(d)};
Y.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var d=0;d<this.onSettledCallbacks_.length;++d)C.asyncExecute(this.onSettledCallbacks_[d]);this.onSettledCallbacks_=null}};
var C=new Z;Y.prototype.settleSameAsPromise_=function(d){var O=this.createResolveAndReject_();d.callWhenSettled_(O.resolve,O.reject)};
Y.prototype.settleSameAsThenable_=function(d,O){var H=this.createResolveAndReject_();try{d.call(O,H.resolve,H.reject)}catch(L){H.reject(L)}};
Y.prototype.then=function(d,O){function H(R,B){return typeof R=="function"?function(n){try{L(R(n))}catch(x){S(x)}}:B}
var L,S,v=new Y(function(R,B){L=R;S=B});
this.callWhenSettled_(H(d,L),H(O,S));return v};
Y.prototype.catch=function(d){return this.then(void 0,d)};
Y.prototype.callWhenSettled_=function(d,O){function H(){switch(L.state_){case 1:d(L.result_);break;case 2:O(L.result_);break;default:throw Error("l`"+L.state_);}}
var L=this;this.onSettledCallbacks_==null?C.asyncExecute(H):this.onSettledCallbacks_.push(H);this.isRejectionHandled_=!0};
Y.resolve=w;Y.reject=function(d){return new Y(function(O,H){H(d)})};
Y.race=function(d){return new Y(function(O,H){for(var L=_.P(d),S=L.next();!S.done;S=L.next())w(S.value).callWhenSettled_(O,H)})};
Y.all=function(d){var O=_.P(d),H=O.next();return H.done?w([]):new Y(function(L,S){function v(n){return function(x){R[n]=x;B--;B==0&&L(R)}}
var R=[],B=0;do R.push(void 0),B++,w(H.value).callWhenSettled_(v(R.length-1),S),H=O.next();while(!H.done)})};
return Y});
var Gf=function(q,Z,w){if(q==null)throw new TypeError("m`"+w);if(Z instanceof RegExp)throw new TypeError("n`"+w);return q+""};
cH("String.prototype.startsWith",function(q){return q?q:function(Z,w){var r=Gf(this,Z,"startsWith"),Y=r.length,C=Z.length;w=Math.max(0,Math.min(w|0,r.length));for(var d=0;d<C&&w<Y;)if(r[w++]!=Z[d++])return!1;return d>=C}});
cH("Object.setPrototypeOf",function(q){return q||_.Md});
cH("Symbol.dispose",function(q){return q?q:Symbol("o")});
cH("SuppressedError",function(q){function Z(w,r,Y){if(!(this instanceof Z))return new Z(w,r,Y);Y=Error(Y);"stack"in Y&&(this.stack=Y.stack);this.message=Y.message;this.error=w;this.suppressed=r}
if(q)return q;_.z(Z,Error);Z.prototype.name="SuppressedError";return Z});
var DJ2=function(q,Z,w){q instanceof String&&(q=String(q));for(var r=q.length,Y=0;Y<r;Y++){var C=q[Y];if(Z.call(w,C,Y,q))return{i:Y,v:C}}return{i:-1,v:void 0}};
cH("Array.prototype.find",function(q){return q?q:function(Z,w){return DJ2(this,Z,w).v}});
cH("WeakMap",function(q){function Z(){}
function w(H){var L=typeof H;return L==="object"&&H!==null||L==="function"}
function r(H){if(!Nd(H,C)){var L=new Z;EW6(H,C,{value:L})}}
function Y(H){var L=Object[H];L&&(Object[H]=function(S){if(S instanceof Z)return S;Object.isExtensible(S)&&r(S);return L(S)})}
if(function(){if(!q||!Object.seal)return!1;try{var H=Object.seal({}),L=Object.seal({}),S=new q([[H,2],[L,3]]);if(S.get(H)!=2||S.get(L)!=3)return!1;S.delete(H);S.set(L,4);return!S.has(H)&&S.get(L)==4}catch(v){return!1}}())return q;
var C="$jscomp_hidden_"+Math.random();Y("freeze");Y("preventExtensions");Y("seal");var d=0,O=function(H){this.JSC$6637_id_=(d+=Math.random()+1).toString();if(H){H=_.P(H);for(var L;!(L=H.next()).done;)L=L.value,this.set(L[0],L[1])}};
O.prototype.set=function(H,L){if(!w(H))throw Error("p");r(H);if(!Nd(H,C))throw Error("q`"+H);H[C][this.JSC$6637_id_]=L;return this};
O.prototype.get=function(H){return w(H)&&Nd(H,C)?H[C][this.JSC$6637_id_]:void 0};
O.prototype.has=function(H){return w(H)&&Nd(H,C)&&Nd(H[C],this.JSC$6637_id_)};
O.prototype.delete=function(H){return w(H)&&Nd(H,C)&&Nd(H[C],this.JSC$6637_id_)?delete H[C][this.JSC$6637_id_]:!1};
return O});
cH("Map",function(q){if(function(){if(!q||typeof q!="function"||!q.prototype.entries||typeof Object.seal!="function")return!1;try{var O=Object.seal({x:4}),H=new q(_.P([[O,"s"]]));if(H.get(O)!="s"||H.size!=1||H.get({x:4})||H.set({x:4},"t")!=H||H.size!=2)return!1;var L=H.entries(),S=L.next();if(S.done||S.value[0]!=O||S.value[1]!="s")return!1;S=L.next();return S.done||S.value[0].x!=4||S.value[1]!="t"||!L.next().done?!1:!0}catch(v){return!1}}())return q;
var Z=new WeakMap,w=function(O){this[0]={};this[1]=C();this.size=0;if(O){O=_.P(O);for(var H;!(H=O.next()).done;)H=H.value,this.set(H[0],H[1])}};
w.prototype.set=function(O,H){O=O===0?0:O;var L=r(this,O);L.list||(L.list=this[0][L.id]=[]);L.entry?L.entry.value=H:(L.entry={next:this[1],previous:this[1].previous,head:this[1],key:O,value:H},L.list.push(L.entry),this[1].previous.next=L.entry,this[1].previous=L.entry,this.size++);return this};
w.prototype.delete=function(O){O=r(this,O);return O.entry&&O.list?(O.list.splice(O.index,1),O.list.length||delete this[0][O.id],O.entry.previous.next=O.entry.next,O.entry.next.previous=O.entry.previous,O.entry.head=null,this.size--,!0):!1};
w.prototype.clear=function(){this[0]={};this[1]=this[1].previous=C();this.size=0};
w.prototype.has=function(O){return!!r(this,O).entry};
w.prototype.get=function(O){return(O=r(this,O).entry)&&O.value};
w.prototype.entries=function(){return Y(this,function(O){return[O.key,O.value]})};
w.prototype.keys=function(){return Y(this,function(O){return O.key})};
w.prototype.values=function(){return Y(this,function(O){return O.value})};
w.prototype.forEach=function(O,H){for(var L=this.entries(),S;!(S=L.next()).done;)S=S.value,O.call(H,S[1],S[0],this)};
w.prototype[Symbol.iterator]=w.prototype.entries;var r=function(O,H){var L=H&&typeof H;L=="object"||L=="function"?Z.has(H)?L=Z.get(H):(L=""+ ++d,Z.set(H,L)):L="p_"+H;var S=O[0][L];if(S&&Nd(O[0],L))for(O=0;O<S.length;O++){var v=S[O];if(H!==H&&v.key!==v.key||H===v.key)return{id:L,list:S,index:O,entry:v}}return{id:L,list:S,index:-1,entry:void 0}},Y=function(O,H){var L=O[1];
return TL2(function(){if(L){for(;L.head!=O[1];)L=L.previous;for(;L.next!=L.head;)return L=L.next,{done:!1,value:H(L)};L=null}return{done:!0,value:void 0}})},C=function(){var O={};
return O.previous=O.next=O.head=O},d=0;
return w});
cH("Set",function(q){if(function(){if(!q||typeof q!="function"||!q.prototype.entries||typeof Object.seal!="function")return!1;try{var w=Object.seal({x:4}),r=new q(_.P([w]));if(!r.has(w)||r.size!=1||r.add(w)!=r||r.size!=1||r.add({x:4})!=r||r.size!=2)return!1;var Y=r.entries(),C=Y.next();if(C.done||C.value[0]!=w||C.value[1]!=w)return!1;C=Y.next();return C.done||C.value[0]==w||C.value[0].x!=4||C.value[1]!=C.value[0]?!1:Y.next().done}catch(d){return!1}}())return q;
var Z=function(w){this.JSC$6651_map_=new Map;if(w){w=_.P(w);for(var r;!(r=w.next()).done;)this.add(r.value)}this.size=this.JSC$6651_map_.size};
Z.prototype.add=function(w){w=w===0?0:w;this.JSC$6651_map_.set(w,w);this.size=this.JSC$6651_map_.size;return this};
Z.prototype.delete=function(w){w=this.JSC$6651_map_.delete(w);this.size=this.JSC$6651_map_.size;return w};
Z.prototype.clear=function(){this.JSC$6651_map_.clear();this.size=0};
Z.prototype.has=function(w){return this.JSC$6651_map_.has(w)};
Z.prototype.entries=function(){return this.JSC$6651_map_.entries()};
Z.prototype.values=function(){return this.JSC$6651_map_.values()};
Z.prototype.keys=Z.prototype.values;Z.prototype[Symbol.iterator]=Z.prototype.values;Z.prototype.forEach=function(w,r){var Y=this;this.JSC$6651_map_.forEach(function(C){return w.call(r,C,C,Y)})};
return Z});
cH("Math.log2",function(q){return q?q:function(Z){return Math.log(Z)/Math.LN2}});
cH("Object.values",function(q){return q?q:function(Z){var w=[],r;for(r in Z)Nd(Z,r)&&w.push(Z[r]);return w}});
cH("Object.is",function(q){return q?q:function(Z,w){return Z===w?Z!==0||1/Z===1/w:Z!==Z&&w!==w}});
cH("Array.prototype.includes",function(q){return q?q:function(Z,w){var r=this;r instanceof String&&(r=String(r));var Y=r.length;w=w||0;for(w<0&&(w=Math.max(w+Y,0));w<Y;w++){var C=r[w];if(C===Z||Object.is(C,Z))return!0}return!1}});
cH("String.prototype.includes",function(q){return q?q:function(Z,w){return Gf(this,Z,"includes").indexOf(Z,w||0)!==-1}});
cH("Array.from",function(q){return q?q:function(Z,w,r){w=w!=null?w:function(O){return O};
var Y=[],C=typeof Symbol!="undefined"&&Symbol.iterator&&Z[Symbol.iterator];if(typeof C=="function"){Z=C.call(Z);for(var d=0;!(C=Z.next()).done;)Y.push(w.call(r,C.value,d++))}else for(C=Z.length,d=0;d<C;d++)Y.push(w.call(r,Z[d],d));return Y}});
cH("Object.entries",function(q){return q?q:function(Z){var w=[],r;for(r in Z)Nd(Z,r)&&w.push([r,Z[r]]);return w}});
cH("Number.isFinite",function(q){return q?q:function(Z){return typeof Z!=="number"?!1:!isNaN(Z)&&Z!==Infinity&&Z!==-Infinity}});
cH("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
cH("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
cH("Number.isInteger",function(q){return q?q:function(Z){return Number.isFinite(Z)?Z===Math.floor(Z):!1}});
cH("Number.isSafeInteger",function(q){return q?q:function(Z){return Number.isInteger(Z)&&Math.abs(Z)<=Number.MAX_SAFE_INTEGER}});
cH("String.prototype.endsWith",function(q){return q?q:function(Z,w){var r=Gf(this,Z,"endsWith");w===void 0&&(w=r.length);w=Math.max(0,Math.min(w|0,r.length));for(var Y=Z.length;Y>0&&w>0;)if(r[--w]!=Z[--Y])return!1;return Y<=0}});
var hCN=function(q,Z){q instanceof String&&(q+="");var w=0,r=!1,Y={next:function(){if(!r&&w<q.length){var C=w++;return{value:Z(C,q[C]),done:!1}}r=!0;return{done:!0,value:void 0}}};
Y[Symbol.iterator]=function(){return Y};
return Y};
cH("Array.prototype.entries",function(q){return q?q:function(){return hCN(this,function(Z,w){return[Z,w]})}});
cH("Math.imul",function(q){return q?q:function(Z,w){Z=Number(Z);w=Number(w);var r=Z&65535,Y=w&65535;return r*Y+((Z>>>16&65535)*Y+r*(w>>>16&65535)<<16>>>0)|0}});
cH("Math.trunc",function(q){return q?q:function(Z){Z=Number(Z);if(isNaN(Z)||Z===Infinity||Z===-Infinity||Z===0)return Z;var w=Math.floor(Math.abs(Z));return Z<0?-w:w}});
cH("Number.isNaN",function(q){return q?q:function(Z){return typeof Z==="number"&&isNaN(Z)}});
cH("Array.prototype.keys",function(q){return q?q:function(){return hCN(this,function(Z){return Z})}});
cH("Array.prototype.values",function(q){return q?q:function(){return hCN(this,function(Z,w){return w})}});
cH("Array.prototype.fill",function(q){return q?q:function(Z,w,r){var Y=this.length||0;w<0&&(w=Math.max(0,Y+w));if(r==null||r>Y)r=Y;r=Number(r);r<0&&(r=Math.max(0,Y+r));for(w=Number(w||0);w<r;w++)this[w]=Z;return this}});
var pd=function(q){return q?q:Array.prototype.fill};
cH("Int8Array.prototype.fill",pd);cH("Uint8Array.prototype.fill",pd);cH("Uint8ClampedArray.prototype.fill",pd);cH("Int16Array.prototype.fill",pd);cH("Uint16Array.prototype.fill",pd);cH("Int32Array.prototype.fill",pd);cH("Uint32Array.prototype.fill",pd);cH("Float32Array.prototype.fill",pd);cH("Float64Array.prototype.fill",pd);
cH("Object.fromEntries",function(q){return q?q:function(Z){var w={};if(!(Symbol.iterator in Z))throw new TypeError("r`"+Z);Z=Z[Symbol.iterator].call(Z);for(var r=Z.next();!r.done;r=Z.next()){r=r.value;if(Object(r)!==r)throw new TypeError("s");w[r[0]]=r[1]}return w}});
cH("String.prototype.replaceAll",function(q){return q?q:function(Z,w){if(Z instanceof RegExp&&!Z.global)throw new TypeError("t");return Z instanceof RegExp?this.replace(Z,w):this.replace(new RegExp(String(Z).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),w)}});
cH("Object.getOwnPropertySymbols",function(q){return q?q:function(){return[]}});
cH("String.prototype.repeat",function(q){return q?q:function(Z){var w=Gf(this,null,"repeat");if(Z<0||Z>1342177279)throw new RangeError("u");Z|=0;for(var r="";Z;)if(Z&1&&(r+=w),Z>>>=1)w+=w;return r}});
cH("Array.prototype.findIndex",function(q){return q?q:function(Z,w){return DJ2(this,Z,w).i}});
cH("Array.prototype.flatMap",function(q){return q?q:function(Z,w){var r=[];Array.prototype.forEach.call(this,function(Y,C){Y=Z.call(w,Y,C,this);Array.isArray(Y)?r.push.apply(r,Y):r.push(Y)});
return r}});
cH("String.prototype.codePointAt",function(q){return q?q:function(Z){var w=Gf(this,null,"codePointAt"),r=w.length;Z=Number(Z)||0;if(Z>=0&&Z<r){Z|=0;var Y=w.charCodeAt(Z);if(Y<55296||Y>56319||Z+1===r)return Y;Z=w.charCodeAt(Z+1);return Z<56320||Z>57343?Y:(Y-55296)*1024+Z+9216}}});
cH("String.fromCodePoint",function(q){return q?q:function(Z){for(var w="",r=0;r<arguments.length;r++){var Y=Number(arguments[r]);if(Y<0||Y>1114111||Y!==Math.floor(Y))throw new RangeError("v`"+Y);Y<=65535?w+=String.fromCharCode(Y):(Y-=65536,w+=String.fromCharCode(Y>>>10&1023|55296),w+=String.fromCharCode(Y&1023|56320))}return w}});
cH("String.prototype.padStart",function(q){return q?q:function(Z,w){var r=Gf(this,null,"padStart");Z-=r.length;w=w!==void 0?String(w):" ";return(Z>0&&w?w.repeat(Math.ceil(Z/w.length)).substring(0,Z):"")+r}});
cH("Promise.prototype.finally",function(q){return q?q:function(Z){return this.then(function(w){return Promise.resolve(Z()).then(function(){return w})},function(w){return Promise.resolve(Z()).then(function(){throw w;
})})}});
cH("Object.hasOwn",function(q){return q?q:function(Z,w){return Object.prototype.hasOwnProperty.call(Z,w)}});
var yb2=function(q){q=Math.trunc(q)||0;q<0&&(q+=this.length);if(!(q<0||q>=this.length))return this[q]};
cH("Array.prototype.at",function(q){return q?q:yb2});
var Xr=function(q){return q?q:yb2};
cH("Int8Array.prototype.at",Xr);cH("Uint8Array.prototype.at",Xr);cH("Uint8ClampedArray.prototype.at",Xr);cH("Int16Array.prototype.at",Xr);cH("Uint16Array.prototype.at",Xr);cH("Int32Array.prototype.at",Xr);cH("Uint32Array.prototype.at",Xr);cH("Float32Array.prototype.at",Xr);cH("Float64Array.prototype.at",Xr);cH("String.prototype.at",function(q){return q?q:yb2});
cH("Math.sign",function(q){return q?q:function(Z){Z=Number(Z);return Z===0||isNaN(Z)?Z:Z>0?1:-1}});
cH("Array.prototype.flat",function(q){return q?q:function(Z){Z=Z===void 0?1:Z;var w=[];Array.prototype.forEach.call(this,function(r){Array.isArray(r)&&Z>0?(r=Array.prototype.flat.call(r,Z-1),w.push.apply(w,r)):w.push(r)});
return w}});
cH("String.raw",function(q){return q?q:function(Z,w){if(Z==null)throw new TypeError("w");for(var r=Z.raw,Y=r.length,C="",d=0;d<Y;++d)C+=r[d],d+1<Y&&d+1<arguments.length&&(C+=String(arguments[d+1]));return C}});
cH("Reflect.ownKeys",function(q){return q?q:function(Z){var w=[],r=Object.getOwnPropertyNames(Z);Z=Object.getOwnPropertySymbols(Z);for(var Y=0;Y<r.length;Y++)(r[Y].substring(0,14)=="jscomp_symbol_"?Z:w).push(r[Y]);return w.concat(Z)}});
cH("Object.getOwnPropertyDescriptors",function(q){return q?q:function(Z){for(var w={},r=Reflect.ownKeys(Z),Y=0;Y<r.length;Y++)w[r[Y]]=Object.getOwnPropertyDescriptor(Z,r[Y]);return w}});
cH("WeakSet",function(q){if(function(){if(!q||!Object.seal)return!1;try{var w=Object.seal({}),r=Object.seal({}),Y=new q([w]);if(!Y.has(w)||Y.has(r))return!1;Y.delete(w);Y.add(r);return!Y.has(w)&&Y.has(r)}catch(C){return!1}}())return q;
var Z=function(w){this.JSC$6657_map_=new WeakMap;if(w){w=_.P(w);for(var r;!(r=w.next()).done;)this.add(r.value)}};
Z.prototype.add=function(w){this.JSC$6657_map_.set(w,!0);return this};
Z.prototype.has=function(w){return this.JSC$6657_map_.has(w)};
Z.prototype.delete=function(w){return this.JSC$6657_map_.delete(w)};
return Z});
cH("Promise.allSettled",function(q){function Z(r){return{status:"fulfilled",value:r}}
function w(r){return{status:"rejected",reason:r}}
return q?q:function(r){var Y=this;r=Array.from(r,function(C){return Y.resolve(C).then(Z,w)});
return Y.all(r)}});
cH("Number.parseInt",function(q){return q||parseInt});
_._DumpException=window._DumpException||function(q){throw q;};
window._DumpException=_._DumpException;var iTN,m1,AW,fd,gWX,qwX,Zm9,wl8,vy,rG1;iTN=iTN||{};_.$1=this||self;_.IR=function(q,Z,w){q=q.split(".");w=w||_.$1;for(var r;q.length&&(r=q.shift());)q.length||Z===void 0?w[r]&&w[r]!==Object.prototype[r]?w=w[r]:w=w[r]={}:w[r]=Z};
m1=function(q){var Z=_.Eq("WIZ_global_data.oxN3nb");q=Z&&Z[q];return q!=null?q:!1};
AW=_.$1._F_toggles||[];fd=function(){};
fd.get=function(){return null};
_.Eq=function(q,Z){q=q.split(".");Z=Z||_.$1;for(var w=0;w<q.length;w++)if(Z=Z[q[w]],Z==null)return null;return Z};
_.Db=function(q){q.instance_=void 0;q.getInstance=function(){return q.instance_?q.instance_:q.instance_=new q}};
_.d7N=function(q){var Z=typeof q;return Z!="object"?Z:q?Array.isArray(q)?"array":Z:"null"};
_.pX=function(q){var Z=_.d7N(q);return Z=="array"||Z=="object"&&typeof q.length=="number"};
_.DT=function(q){var Z=typeof q;return Z=="object"&&q!=null||Z=="function"};
_.yj=function(q){return Object.prototype.hasOwnProperty.call(q,gWX)&&q[gWX]||(q[gWX]=++qwX)};
gWX="closure_uid_"+(Math.random()*1E9>>>0);qwX=0;Zm9=function(q,Z,w){return q.call.apply(q.bind,arguments)};
wl8=function(q,Z,w){if(!q)throw Error();if(arguments.length>2){var r=Array.prototype.slice.call(arguments,2);return function(){var Y=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(Y,r);return q.apply(Z,Y)}}return function(){return q.apply(Z,arguments)}};
_.Lh=function(q,Z,w){_.Lh=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Zm9:wl8;return _.Lh.apply(null,arguments)};
_.Oh=function(q,Z){var w=Array.prototype.slice.call(arguments,1);return function(){var r=w.slice();r.push.apply(r,arguments);return q.apply(this,r)}};
_.hW=function(){return Date.now()};
vy=function(q){return q};
_.yU=function(q,Z){function w(){}
w.prototype=Z.prototype;q.superClass_=Z.prototype;q.prototype=new w;q.prototype.constructor=q;q.base=function(r,Y,C){for(var d=Array(arguments.length-2),O=2;O<arguments.length;O++)d[O-2]=arguments[O];return Z.prototype[Y].apply(r,d)}};
rG1=function(q){return q};_.X=function(q,Z,w,r){var Y=arguments.length,C=Y<3?Z:r===null?r=Object.getOwnPropertyDescriptor(Z,w):r,d;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")C=Reflect.decorate(q,Z,w,r);else for(var O=q.length-1;O>=0;O--)if(d=q[O])C=(Y<3?d(C):Y>3?d(Z,w,C):d(Z,w))||C;return Y>3&&C&&Object.defineProperty(Z,w,C),C};
_.A=function(q,Z){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(q,Z)};
_.Qy=function(q,Z){if(Z!==null&&Z!==void 0){if(typeof Z!=="object"&&typeof Z!=="function")throw new TypeError("x");if(w===void 0){if(!Symbol.dispose)throw new TypeError("z");var w=Z[Symbol.dispose]}if(typeof w!=="function")throw new TypeError("A");q.stack.push({value:Z,dispose:w,async:!1})}return Z};
_.ED=function(q){function Z(C){q.error=q.hasError?new SuppressedError(C,q.error,"An error was suppressed during disposal."):C;q.hasError=!0}
function w(){for(;r=q.stack.pop();)try{if(!r.async&&Y===1)return Y=0,q.stack.push(r),Promise.resolve().then(w);if(r.dispose){var C=r.dispose.call(r.value);if(r.async)return Y|=2,Promise.resolve(C).then(w,function(d){Z(d);return w()})}else Y|=1}catch(d){Z(d)}if(Y===1)return q.hasError?Promise.reject(q.error):Promise.resolve();
if(q.hasError)throw q.error;}
var r,Y=0;w()};_.yU(_.qj,Error);_.qj.prototype.name="CustomError";var Ywj;var $_8=void 0,e9X,Cdj=typeof TextDecoder!=="undefined",r2N,w6X=typeof String.prototype.isWellFormed==="function",ZX9=typeof TextEncoder!=="undefined";var Pd6;_.o1=function(q){for(var Z=[],w=0,r=0;r<q.length;r++){var Y=q.charCodeAt(r);Y<128?Z[w++]=Y:(Y<2048?Z[w++]=Y>>6|192:((Y&64512)==55296&&r+1<q.length&&(q.charCodeAt(r+1)&64512)==56320?(Y=65536+((Y&1023)<<10)+(q.charCodeAt(++r)&1023),Z[w++]=Y>>18|240,Z[w++]=Y>>12&63|128):Z[w++]=Y>>12|224,Z[w++]=Y>>6&63|128),Z[w++]=Y&63|128)}return Z};
Pd6=function(q){for(var Z=[],w=0,r=0;w<q.length;){var Y=q[w++];if(Y<128)Z[r++]=String.fromCharCode(Y);else if(Y>191&&Y<224){var C=q[w++];Z[r++]=String.fromCharCode((Y&31)<<6|C&63)}else if(Y>239&&Y<365){C=q[w++];var d=q[w++],O=q[w++];Y=((Y&7)<<18|(C&63)<<12|(d&63)<<6|O&63)-65536;Z[r++]=String.fromCharCode(55296+(Y>>10));Z[r++]=String.fromCharCode(56320+(Y&1023))}else C=q[w++],d=q[w++],Z[r++]=String.fromCharCode((Y&15)<<12|(C&63)<<6|d&63)}return Z.join("")};var d_8,V0O,Om1,HmI,WLz,oUj,uUj;_.ii=String.prototype.trim?function(q){return q.trim()}:function(q){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(q)[1]};
d_8=/&/g;V0O=/</g;Om1=/>/g;HmI=/"/g;WLz=/'/g;oUj=/\x00/g;uUj=/[\x00&<>"']/;var g1=!!(AW[0]&4096),LL1=!!(AW[0]&8192),Sw9=!!(AW[0]&2),vUT=!!(AW[0]&4),jo2=!!(AW[0]&16),t0I=!!(AW[0]>>14&1);var t2=g1?LL1:m1(610401301),R9X=g1?Sw9:m1(513659523),bm9=g1?vUT:m1(568333945),ut1=g1?jo2:m1(1331761403),JGN=g1?t0I:m1(1981196515);var RT,z99=_.$1.navigator;RT=z99?z99.userAgentData||null:null;var kY;_.IT=function(q,Z){return Array.prototype.indexOf.call(q,Z,void 0)};
_.Uq=function(q,Z,w){Array.prototype.forEach.call(q,Z,w)};
_.qY=function(q,Z,w){return Array.prototype.filter.call(q,Z,w)};
_.bM=function(q,Z,w){return Array.prototype.map.call(q,Z,w)};
kY=function(q,Z,w){return Array.prototype.some.call(q,Z,w)};
_.dOj=function(q,Z,w){return Array.prototype.every.call(q,Z,w)};var Z8=function(q){Z8[" "](q);return q},y19;
Z8[" "]=function(){};
y19=function(q,Z){try{return Z8(q[Z]),!0}catch(w){}return!1};
_.iY6=function(q,Z,w,r){r=r?r(Z):Z;return Object.prototype.hasOwnProperty.call(q,r)?q[r]:q[r]=w(Z)};var BCT,aP2,nU2,EUI,x_T,AHI,TCz,U_N,kCN,JeT,soe,IP1,lPT;_.Z02=function(){return _.$1.navigator||null};
BCT=e82();_.wS=CNN();_.KY=bN("Edge");aP2=_.KY||_.wS;_.rS=bN("Gecko")&&!(_.LX(_.jO(),"WebKit")&&!bN("Edge"))&&!(bN("Trident")||bN("MSIE"))&&!bN("Edge");_.YZ=_.LX(_.jO(),"WebKit")&&!bN("Edge");nU2=_.YZ&&bN("Mobile");_.Qo8=_.LIT();EUI=_.S2e();x_T=(E2()?RT.platform==="Linux":bN("Linux"))||_.v1I();AHI=_.o1j();TCz=u9O();U_N=bN("iPad");kCN=bN("iPod");_.KL6=_.x1();JeT=_.LX(_.jO(),"KaiOS");soe=function(){var q=_.$1.document;return q?q.documentMode:void 0};
a:{var cG8="",M0T=function(){var q=_.jO();if(_.rS)return/rv:([^\);]+)(\)|;)/.exec(q);if(_.KY)return/Edge\/([\d\.]+)/.exec(q);if(_.wS)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(q);if(_.YZ)return/WebKit\/(\S+)/.exec(q);if(BCT)return/(?:Version)[ \/]?(\S+)/.exec(q)}();
M0T&&(cG8=M0T?M0T[1]:"");if(_.wS){var FLO=soe();if(FLO!=null&&FLO>parseFloat(cG8)){IP1=String(FLO);break a}}IP1=cG8}_.NCX=IP1;if(_.$1.document&&_.wS){var GC1=soe();lPT=GC1?GC1:parseInt(_.NCX,10)||void 0}else lPT=void 0;_.plj=lPT;var uRz,LST,Xl2;_.$Z=B6();uRz=u9O()||bN("iPod");LST=bN("iPad");Xl2=_.VOz();_.eF=_.aT();_.bp=_.djz()&&!_.x1();var m_2,Cc,AG9,Ex2,fP8,St8,h91,D_2;m_2={};Cc=null;AG9=_.rS||_.YZ;Ex2=AG9||typeof _.$1.btoa=="function";fP8=AG9||!_.bp&&typeof _.$1.atob=="function";_.Rq=function(q,Z){Z===void 0&&(Z=0);D_2();Z=m_2[Z];for(var w=Array(Math.floor(q.length/3)),r=Z[64]||"",Y=0,C=0;Y<q.length-2;Y+=3){var d=q[Y],O=q[Y+1],H=q[Y+2],L=Z[d>>2];d=Z[(d&3)<<4|O>>4];O=Z[(O&15)<<2|H>>6];H=Z[H&63];w[C++]=L+d+O+H}L=0;H=r;switch(q.length-Y){case 2:L=q[Y+1],H=Z[(L&15)<<2]||r;case 1:q=q[Y],w[C]=Z[q>>2]+Z[(q&3)<<4|L>>4]+H+r}return w.join("")};
St8=function(q,Z){if(fP8&&!Z)return _.$1.atob(q);var w="";h91(q,function(r){w+=String.fromCharCode(r)});
return w};
_.BBX=function(q){var Z=[];h91(q,function(w){Z.push(w)});
return Z};
_.q7=function(q){var Z=q.length,w=Z*3/4;w%3?w=Math.floor(w):_.uN("=.",q[Z-1])&&(w=_.uN("=.",q[Z-2])?w-2:w-1);var r=new Uint8Array(w),Y=0;h91(q,function(C){r[Y++]=C});
return Y!==w?r.subarray(0,Y):r};
h91=function(q,Z){function w(H){for(;r<q.length;){var L=q.charAt(r++),S=Cc[L];if(S!=null)return S;if(!_.W6(L))throw Error("E`"+L);}return H}
D_2();for(var r=0;;){var Y=w(-1),C=w(0),d=w(64),O=w(64);if(O===64&&Y===-1)break;Z(Y<<2|C>>4);d!=64&&(Z(C<<4&240|d>>2),O!=64&&Z(d<<6&192|O))}};
D_2=function(){if(!Cc){Cc={};for(var q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Z=["+/=","+/","-_=","-_.","-_"],w=0;w<5;w++){var r=q.concat(Z[w].split(""));m_2[w]=r;for(var Y=0;Y<r.length;Y++){var C=r[Y];Cc[C]===void 0&&(Cc[C]=Y)}}}};var X68=typeof Uint8Array!=="undefined",Uj2=!_.wS&&typeof btoa==="function",keN=/[-_.]/g,xjj={"-":"+",_:"/",".":"="},j2={};var v1,imz;v1=function(q,Z){if(Z!==j2)throw Error("G");this.JSC$6688_value_=q;if(q!=null&&q.length===0)throw Error("F");};
_.bX=function(){return yGT||(yGT=new v1(null,j2))};
imz=function(q){return new Uint8Array(Qq8(q)||0)};
v1.prototype.isEmpty=function(){return this.JSC$6688_value_==null};
v1.prototype.sizeBytes=function(){var q=Qq8(this);return q?q.length:0};
var Qq8=function(q){if(j2!==j2)throw Error("G");var Z=q.JSC$6688_value_;Z=Z==null||X68&&Z!=null&&Z instanceof Uint8Array?Z:typeof Z==="string"?KIT(Z):null;return Z==null?Z:q.JSC$6688_value_=Z},yGT;var ITX=void 0;var C9=typeof Symbol==="function"&&typeof Symbol()==="symbol",gUz=rW("jas",void 0,!0),U7I=rW(void 0,"0di"),MS=rW(void 0,"1oa"),jV=rW(void 0,Symbol()),X1j=rW(void 0,"0ub"),VV9=rW(void 0,"0actk"),Wy=rW("m_m","messagePrototypeMarker",!0),rc1=rW(void 0,"vps"),AKz=rW();var FIT,MOj,x8,q5T;FIT={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};MOj=Object.defineProperties;_.P1=C9?gUz:"internalArrayState";q5T=[];VD(q5T,7);x8=Object.freeze(q5T);var Ll={},p68={},Zf2=function(q,Z,w){this.iterable=q;this.mapper=Z;this.thisArg=w};
Zf2.prototype.next=function(){var q=this.iterable.next();q.done||(q.value=this.mapper.call(this.thisArg,q.value));return q};
Zf2.prototype[Symbol.iterator]=function(){return this};
var wAj=Object.freeze({}),zJ={};_.rR2=Up(function(q){return q!==null&&q!==void 0});var y2e=Up(function(q){return typeof q==="number"}),h88=Up(function(q){return typeof q==="string"}),g1T=Up(function(q){return typeof q==="boolean"}),Y56=Up(function(q){return q!=null&&typeof q==="object"&&typeof q.then==="function"}),Bf1=Up(function(q){return typeof q==="function"}),EYT=Up(function(q){return!!q&&(typeof q==="object"||typeof q==="function")});var iXI=typeof _.$1.BigInt==="function"&&typeof _.$1.BigInt(0)==="bigint";var CW2,$F1,PWT,eiX;_.tc=Up(function(q){return iXI?q>=$F1&&q<=eiX:q[0]==="-"?qpT(q,CW2):qpT(q,PWT)});
CW2=Number.MIN_SAFE_INTEGER.toString();$F1=iXI?BigInt(Number.MIN_SAFE_INTEGER):void 0;PWT=Number.MAX_SAFE_INTEGER.toString();eiX=iXI?BigInt(Number.MAX_SAFE_INTEGER):void 0;var dFj=typeof Uint8Array.prototype.slice==="function",K9=0,sp=0,V6z;var Zl,eV,GJ,Cl,H9T;Zl=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Py=typeof BigInt==="function"?BigInt.asUintN:void 0;eV=Number.isSafeInteger;GJ=Number.isFinite;Cl=Math.trunc;H9T=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Y61={};var leI={},V7I=function(){try{var q=function(){return kQ2(Map,[],this.constructor)};
_.z(q,Map);Z8(new q);return!1}catch(Z){return!0}}(),PI=function(){this.JSC$6716_map_=new Map};
_.e=PI.prototype;_.e.get=function(q){return this.JSC$6716_map_.get(q)};
_.e.set=function(q,Z){this.JSC$6716_map_.set(q,Z);this.size=this.JSC$6716_map_.size;return this};
_.e.delete=function(q){q=this.JSC$6716_map_.delete(q);this.size=this.JSC$6716_map_.size;return q};
_.e.clear=function(){this.JSC$6716_map_.clear();this.size=this.JSC$6716_map_.size};
_.e.has=function(q){return this.JSC$6716_map_.has(q)};
_.e.entries=function(){return this.JSC$6716_map_.entries()};
_.e.keys=function(){return this.JSC$6716_map_.keys()};
_.e.values=function(){return this.JSC$6716_map_.values()};
_.e.forEach=function(q,Z){return this.JSC$6716_map_.forEach(q,Z)};
PI.prototype[Symbol.iterator]=function(){return this.entries()};
var bC=function(){if(V7I)return Object.setPrototypeOf(PI.prototype,Map.prototype),Object.defineProperties(PI.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),PI;var q=function(){return kQ2(Map,[],this.constructor)};
_.z(q,Map);return q}(),SV=function(q,Z,w,r){w=w===void 0?Ie2:w;
r=r===void 0?Ie2:r;var Y=bC.call(this)||this;Y.arrayState=q[_.P1]|0;Y.valueCtor=Z;Y.keyToApi=w;Y.valueToApi=Y.valueCtor?M2I:r;for(var C=0;C<q.length;C++){var d=q[C],O=w(d[0],!1,!0),H=d[1];Z?H===void 0&&(H=null):H=r(d[1],!1,!0,void 0,void 0,Y.arrayState);bC.prototype.set.call(Y,O,H)}return Y};
_.z(SV,bC);var OfX=function(q){if(q.arrayState&2)throw Error("K");};
_.e=SV.prototype;_.e.clear=function(){OfX(this);bC.prototype.clear.call(this)};
_.e.delete=function(q){OfX(this);return bC.prototype.delete.call(this,this.keyToApi(q,!0,!1))};
_.e.entries=function(){if(this.valueCtor){var q=bC.prototype.keys.call(this);q=new Zf2(q,FvN,this)}else q=bC.prototype.entries.call(this);return q};
_.e.values=function(){if(this.valueCtor){var q=bC.prototype.keys.call(this);q=new Zf2(q,SV.prototype.get,this)}else q=bC.prototype.values.call(this);return q};
_.e.forEach=function(q,Z){this.valueCtor?bC.prototype.forEach.call(this,function(w,r,Y){q.call(Z,Y.get(r),r,Y)}):bC.prototype.forEach.call(this,q,Z)};
_.e.set=function(q,Z){OfX(this);q=this.keyToApi(q,!0,!1);return q==null?this:Z==null?(bC.prototype.delete.call(this,q),this):bC.prototype.set.call(this,q,this.valueToApi(Z,!0,!0,this.valueCtor,!1,this.arrayState))};
_.e.has=function(q){return bC.prototype.has.call(this,this.keyToApi(q,!1,!1))};
_.e.get=function(q){q=this.keyToApi(q,!1,!1);var Z=bC.prototype.get.call(this,q);if(Z!==void 0){var w=this.valueCtor;return w?(w=this.valueToApi(Z,!1,!0,w,this.callToMutableOnAccess,this.arrayState),w!==Z&&bC.prototype.set.call(this,q,w),w):Z}};
SV.prototype[Symbol.iterator]=function(){return this.entries()};
SV.prototype.toJSON=void 0;var NW9;var yKT=function(){},qXI=function(q,Z){for(var w in q)!isNaN(w)&&Z(q,+w,q[w])},i9N=function(q){var Z=new yKT;
qXI(q,function(w,r,Y){Z[r]=M7(Y)});
Z.reviveUnknownFields=q.reviveUnknownFields;return Z},fee={reviveIntoImmutable:!0};var hmI;var $ST,eZX;var HfN,Kl,Y7,d5,WY9,Lc,Cb,ou1,uL1,tz,LY1,Rl,zP,BI;HfN=_.kg(0);_.dS={};_.VM=function(q,Z,w,r,Y){Z=Kl(q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z,w,Y);if(Z!==null||r&&q.noLegacyNull!==p68)return Z};
Kl=function(q,Z,w,r){if(Z===-1)return null;var Y=Z+(w?0:-1),C=q.length-1;if(!(C<1+(w?0:-1))){if(Y>=C){var d=q[C];if(d!=null&&typeof d==="object"&&d.constructor===Object){w=d[Z];var O=!0}else if(Y===C)w=d;else return}else w=q[Y];if(r&&w!=null){r=r(w);if(r==null)return r;if(!Object.is(r,w))return O?d[Z]=r:q[Y]=r,r}return w}};
_.Am=function(q,Z,w,r){Q7(q);var Y=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;E6(Y,Y[_.P1]|0,Z,w,r);return q};
_.Og=function(q,Z,w){q=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Jce(q,q[_.P1]|0,Z,w)!==void 0};
_.HI=function(q,Z,w,r){var Y=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Jce(Y,Y[_.P1]|0,Z,d5(q,r,w))!==void 0};
_.fC=function(q){return q===wAj?2:4};
_.WI=function(q,Z){q=_.VM(q,Z,void 0,void 0,S6O);return q==null?_.bX():q};
Y7=function(q,Z,w,r){Q7(q);var Y=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=Y[_.P1]|0;if(r==null){var d=tV8(Y);if(RZ9(d,Y,C,w)===Z)d.set(w,0);else return q}else C=bl6(Y,C,w,Z);E6(Y,C,Z,r);return q};
_.ol=function(q,Z,w,r){var Y=q[_.P1]|0,C=QD(Y);Y=bl6(q,Y,w,Z,C);E6(q,Y,Z,r,C)};
d5=function(q,Z,w){return _.uY(q,Z)===w?w:-1};
_.uY=function(q,Z){q=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return RZ9(tV8(q),q,void 0,Z,void 0)};
WY9=function(q,Z,w){var r=q[_.P1]|0,Y=QD(r),C=Kl(q,w,Y);if(C!=null&&C[Wy]===Ll){if(!S2(C))return nl(C),C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var d=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(C)&&(d=C);if(d){var O=d[_.P1]|0;O&2&&(d=aq(d,O))}d=PC1(d,Z,!0);d!==C&&E6(q,r,w,d,Y);return d};
_.Xy=function(q,Z,w,r){var Y=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=Y[_.P1]|0;Z=Jce(Y,C,Z,w,r);if(Z==null)return Z;C=Y[_.P1]|0;if(!S2(q,C)){var d=cK8(Z);d!==Z&&(nl(q)&&(Y=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=Y[_.P1]|0),Z=d,E6(Y,C,w,Z,r))}return Z};
_.Aj=function(q,Z,w,r){var Y=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return zZj(q,Y,Y[_.P1]|0,Z,w,r,!1,!0)};
_.CA=function(q,Z,w,r){w=Bb9(w);_.Am(q,Z,w,r);return q};
_.dr=function(q,Z,w,r){r=Bb9(r);Y7(q,Z,w,r);return q};
Lc=function(q,Z,w){Q7(q);var r=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=r[_.P1]|0;if(w==null)return E6(r,Y,Z),q;for(var C=w===x8?7:w[_.P1]|0,d=C,O=k8(C),H=O||Object.isFrozen(w),L=!0,S=!0,v=0;v<w.length;v++){var R=w[v];O||(R=S2(R),L&&(L=!R),S&&(S=R))}O||(C=L?13:5,C=S?C&-4097:C|4096);H&&C===d||(w=M7(w),d=0,C=Tu(C,Y));C!==d&&VD(w,C);E6(r,Y,Z,w);return q};
Cb=function(q,Z,w,r){n81(q,Z,w,r);return q};
ou1=function(q,Z,w){n81(q,Z,SF,void 0,w,1,!0);return q};
_.vI=function(q,Z,w){q=_.VM(q,Z,void 0,w);q!=null&&(typeof q==="bigint"?(0,_.tc)(q)?q=Number(q):(q=Zl(64,q),q=(0,_.tc)(q)?Number(q):String(q)):q=_.p9(q)?typeof q==="number"?wb(q):qS(q):void 0);return q};
_.jF=function(q,Z){var w=w===void 0?!1:w;var r;return(r=_.O9j(_.VM(q,Z)))!=null?r:w};
_.DM=function(q,Z,w){w=w===void 0?0:w;var r;return(r=_.gW(_.VM(q,Z)))!=null?r:w};
uL1=function(q,Z){var w=w===void 0?0:w;q=_.og1(_.VM(q,Z));return q!=null?q:w};
tz=function(q,Z,w){w=w===void 0?HfN:w;q=_.VM(q,Z);Z=typeof q;q=q==null?q:Z==="bigint"?_.kg(Zl(64,q)):_.p9(q)?Z==="string"?Lv8(q):Spj(q):void 0;return q!=null?q:w};
LY1=function(q){var Z=Z===void 0?HfN:Z;q=_.VM(q,23);var w=typeof q;q=q==null?q:w==="bigint"?_.kg((0,_.Py)(64,q)):_.p9(q)?w==="string"?_.Qh2(q):_.ae9(q):void 0;return q!=null?q:Z};
Rl=function(q,Z){var w=w===void 0?0:w;var r;return(r=_.VM(q,Z,void 0,void 0,_.PX2))!=null?r:w};
_.bY=function(q,Z,w,r){w=w===void 0?"":w;var Y;return(Y=_.Hy(_.VM(q,Z,r)))!=null?Y:w};
_.Jz=function(q,Z){var w=w===void 0?0:w;var r;return(r=_.yD(_.VM(q,Z)))!=null?r:w};
zP=function(q,Z){var w=w===void 0?"0":w;q=Ege(_.VM(q,Z),!0);return q!=null?q:w};
BI=function(q,Z,w){return _.bY(q,d5(q,w,Z))};
_.al=function(q,Z,w,r){return _.Xy(q,Z,d5(q,r,w),void 0)};
_.PG=function(q,Z){return _.Hy(_.VM(q,Z,void 0,_.dS))};
_.ZA=function(q,Z,w){return _.Am(q,Z,V2N(w))};
_.vk=function(q,Z,w){return _.cy(q,Z,V2N(w),!1)};
_.nc=function(q,Z,w){return _.Am(q,Z,_.iX(w))};
_.OU=function(q,Z,w){return _.Am(q,Z,$8(w))};
_.uM=function(q,Z,w){return _.Am(q,Z,V7(w))};
_.l2=function(q,Z,w,r){return _.cy(q,Z,V7(w),"",r)};
_.mh=function(q,Z,w){return _.Am(q,Z,w==null?w:_.AK(w))};
_.QM=function(q,Z,w){return _.cy(q,Z,w==null?w:_.AK(w),0)};var FD=function(q,Z,w){this.buffer=q;if(w&&!Z)throw Error();this.JSC$6728_isImmutable=Z};var S51=function(q,Z,w,r){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6731_start_=0;this.init(q,Z,w,r)},Eg,jG6,t7I,bfN,hZz;
_.e=S51.prototype;_.e.init=function(q,Z,w,r){var Y=r===void 0?{}:r;r=Y.aliasBytesFields===void 0?!1:Y.aliasBytesFields;Y=Y.treatNewDataAsImmutable===void 0?!1:Y.treatNewDataAsImmutable;this.aliasBytesFields=r;this.treatNewDataAsImmutable=Y;q&&(q=E8e(q,this.treatNewDataAsImmutable),this.bytes_=q.buffer,this.bytesAreImmutable_=q.JSC$6728_isImmutable,this.JSC$6731_start_=Z||0,this.end_=w!==void 0?this.JSC$6731_start_+w:this.bytes_.length,this.cursor_=this.JSC$6731_start_)};
_.e.free=function(){this.clear();vu8.length<100&&vu8.push(this)};
_.e.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6731_start_=0;this.aliasBytesFields=!1};
_.e.reset=function(){this.cursor_=this.JSC$6731_start_};
_.e.atEnd=function(){return this.cursor_==this.end_};
_.xZ=function(q,Z){var w=0,r=0,Y=0,C=q.bytes_,d=q.cursor_;do{var O=C[d++];w|=(O&127)<<Y;Y+=7}while(Y<32&&O&128);Y>32&&(r|=(O&127)>>4);for(Y=3;Y<32&&O&128;Y+=7)O=C[d++],r|=(O&127)<<Y;Eg(q,d);if(O<128)return Z(w>>>0,r>>>0);throw Error("X");};
Eg=function(q,Z){q.cursor_=Z;if(Z>q.end_)throw Error("Y`"+Z+"`"+q.end_);};
_.TP=function(q){var Z=q.bytes_,w=q.cursor_,r=Z[w++],Y=r&127;if(r&128&&(r=Z[w++],Y|=(r&127)<<7,r&128&&(r=Z[w++],Y|=(r&127)<<14,r&128&&(r=Z[w++],Y|=(r&127)<<21,r&128&&(r=Z[w++],Y|=r<<28,r&128&&Z[w++]&128&&Z[w++]&128&&Z[w++]&128&&Z[w++]&128&&Z[w++]&128)))))throw Error("X");Eg(q,w);return Y};
_.Ug=function(q){var Z=q.bytes_,w=q.cursor_,r=Z[w],Y=Z[w+1],C=Z[w+2];Z=Z[w+3];Eg(q,q.cursor_+4);return(r<<0|Y<<8|C<<16|Z<<24)>>>0};
jG6=function(q){var Z=_.Ug(q);q=_.Ug(q);return rKz(Z,q)};
t7I=function(q){var Z=_.Ug(q),w=_.Ug(q);q=(w>>31)*2+1;var r=w>>>20&2047;Z=4294967296*(w&1048575)+Z;return r==2047?Z?NaN:q*Infinity:r==0?q*4.9E-324*Z:q*Math.pow(2,r-1075)*(Z+4503599627370496)};
_.RiO=function(q){for(var Z=0,w=q.cursor_,r=w+10,Y=q.bytes_;w<r;){var C=Y[w++];Z|=C;if((C&128)===0)return Eg(q,w),!!(Z&127)}throw Error("X");};
bfN=function(q,Z){if(Z<0)throw Error("Z`"+Z);var w=q.cursor_,r=w+Z;if(r>q.end_)throw Error("Y`"+(q.end_-w)+"`"+Z);q.cursor_=r;return w};
hZz=function(q,Z){if(Z==0)return _.bX();var w=bfN(q,Z);q.aliasBytesFields&&q.bytesAreImmutable_?w=q.bytes_.subarray(w,w+Z):(q=q.bytes_,Z=w+Z,w=w===Z?new Uint8Array(0):dFj?q.slice(w,Z):new Uint8Array(q.subarray(w,Z)));return w.length==0?_.bX():new v1(w,j2)};
S51.prototype.getDataView=function(){var q=this.dataView_;q||(q=this.bytes_,q=this.dataView_=new DataView(q.buffer,q.byteOffset,q.byteLength));return q};
var vu8=[];var ziT=function(q,Z,w,r){if(vu8.length){var Y=vu8.pop();Y.init(q,Z,w,r);q=Y}else q=new S51(q,Z,w,r);this.decoder_=q;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;JRT(this,r)},JRT=function(q,Z){Z=Z===void 0?{}:Z;
q.discardUnknownFields=Z.discardUnknownFields===void 0?!1:Z.discardUnknownFields},g8O=function(q,Z,w,r){if(BQ2.length){var Y=BQ2.pop();
JRT(Y,r);Y.decoder_.init(q,Z,w,r);return Y}return new ziT(q,Z,w,r)},Ac6,DSj,arN,BQ2;
ziT.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;BQ2.length<100&&BQ2.push(this)};
ziT.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
Ac6=function(q){if(q.decoder_.atEnd())return!1;q.fieldCursor_=q.decoder_.cursor_;var Z=_.TP(q.decoder_)>>>0,w=Z>>>3;Z&=7;if(!(Z>=0&&Z<=5))throw Error("T`"+Z+"`"+q.fieldCursor_);if(w<1)throw Error("U`"+w+"`"+q.fieldCursor_);q.nextField_=w;q.nextWireType_=Z;return!0};
DSj=function(q){switch(q.nextWireType_){case 0:q.nextWireType_!=0?DSj(q):_.RiO(q.decoder_);break;case 1:q=q.decoder_;Eg(q,q.cursor_+8);break;case 2:if(q.nextWireType_!=2)DSj(q);else{var Z=_.TP(q.decoder_)>>>0;q=q.decoder_;Eg(q,q.cursor_+Z)}break;case 5:q=q.decoder_;Eg(q,q.cursor_+4);break;case 3:Z=q.nextField_;do{if(!Ac6(q))throw Error("V");if(q.nextWireType_==4){if(q.nextField_!=Z)throw Error("W");break}DSj(q)}while(1);break;default:throw Error("T`"+q.nextWireType_+"`"+q.fieldCursor_);}};
arN=function(q,Z,w){var r=q.decoder_.end_,Y=_.TP(q.decoder_)>>>0,C=q.decoder_.cursor_+Y,d=C-r;d<=0&&(q.decoder_.end_=C,w(Z,q,void 0,void 0,void 0),d=C-q.decoder_.cursor_);if(d)throw Error("S`"+Y+"`"+(Y-d));q.decoder_.cursor_=C;q.decoder_.end_=r};
_.nuT=function(q){var Z=_.TP(q.decoder_)>>>0;q=q.decoder_;var w=bfN(q,Z);q=q.bytes_;if(Cdj){var r=q,Y;(Y=e9X)||(Y=e9X=new TextDecoder("utf-8",{fatal:!0}));Z=w+Z;r=w===0&&Z===r.length?r:r.subarray(w,Z);try{var C=Y.decode(r)}catch(L){if($_8===void 0){try{Y.decode(new Uint8Array([128]))}catch(S){}try{Y.decode(new Uint8Array([97])),$_8=!0}catch(S){$_8=!1}}!$_8&&(e9X=void 0);throw L;}}else{C=w;Z=C+Z;w=[];for(var d=null,O,H;C<Z;)O=q[C++],O<128?w.push(O):O<224?C>=Z?Y1():(H=q[C++],O<194||ZT(H)?(C--,Y1()):
w.push((O&31)<<6|H&63)):O<240?C>=Z-1?Y1():(H=q[C++],ZT(H)||O===224&&H<160||O===237&&H>=160||ZT(Y=q[C++])?(C--,Y1()):w.push((O&15)<<12|(H&63)<<6|Y&63)):O<=244?C>=Z-2?Y1():(H=q[C++],ZT(H)||(O<<28)+(H-144)>>30!==0||ZT(Y=q[C++])||ZT(r=q[C++])?(C--,Y1()):(O=(O&7)<<18|(H&63)<<12|(Y&63)<<6|r&63,O-=65536,w.push((O>>10&1023)+55296,(O&1023)+56320))):Y1(),w.length>=8192&&(d=q2T(d,w),w.length=0);C=q2T(d,w)}return C};
_.QG6=function(q){var Z=_.TP(q.decoder_)>>>0;return hZz(q.decoder_,Z)};
_.EuX=function(q,Z,w){var r=_.TP(q.decoder_)>>>0;for(r=q.decoder_.cursor_+r;q.decoder_.cursor_<r;)w.push(Z(q.decoder_))};
BQ2=[];_.XD=function(q,Z,w){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q,Z,w)};
_.XD.prototype.toJSON=function(){return Jc(this)};
_.XD.prototype.serialize=function(q){return JSON.stringify(Jc(this,q))};
var Q9e=function(q,Z){if(Z==null||Z=="")return new q;Z=JSON.parse(Z);if(!Array.isArray(Z))throw Error("$");return new q(Ge1(Z))};
_.XD.prototype.getExtension=function(q){m7T(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q.fieldIndex);D7j(this,q.fieldIndex);return q.ctor?q.isRepeated?q.getExtensionFn(this,q.ctor,q.fieldIndex,_.fC(),q.JSC$6741_hasMessageId):q.getExtensionFn(this,q.ctor,q.fieldIndex,q.JSC$6741_hasMessageId):q.isRepeated?q.getExtensionFn(this,q.fieldIndex,_.fC(),q.JSC$6741_hasMessageId):q.getExtensionFn(this,q.fieldIndex,q.defaultValue,q.JSC$6741_hasMessageId)};
_.XD.prototype.clone=function(){var q=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return new this.constructor(aq(q,q[_.P1]|0,!1))};
_.XD.prototype[Wy]=Ll;_.XD.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var xFN=function(q,Z){this.JSC$6743_lo=q>>>0;this.JSC$6743_hi=Z>>>0},UF9=function(q){if(!q)return TQ8||(TQ8=new xFN(0,0));
if(!/^\d+$/.test(q))return null;CX9(q);return new xFN(K9,sp)},TQ8,ovX=function(q,Z){this.JSC$6745_lo=q>>>0;
this.JSC$6745_hi=Z>>>0},HAX=function(q){if(!q)return knz||(knz=new ovX(0,0));
if(!/^-?\d+$/.test(q))return null;CX9(q);return new ovX(K9,sp)},knz;var KYN=function(){this.JSC$6747_buffer_=[]},WmI,sG2;
KYN.prototype.length=function(){return this.JSC$6747_buffer_.length};
KYN.prototype.end=function(){var q=this.JSC$6747_buffer_;this.JSC$6747_buffer_=[];return q};
WmI=function(q,Z,w){for(;w>0||Z>127;)q.JSC$6747_buffer_.push(Z&127|128),Z=(Z>>>7|w<<25)>>>0,w>>>=7;q.JSC$6747_buffer_.push(Z)};
sG2=function(q,Z){for(;Z>127;)q.JSC$6747_buffer_.push(Z&127|128),Z>>>=7;q.JSC$6747_buffer_.push(Z)};
_.u5X=function(q,Z){if(Z>=0)sG2(q,Z);else{for(var w=0;w<9;w++)q.JSC$6747_buffer_.push(Z&127|128),Z>>=7;q.JSC$6747_buffer_.push(1)}};
_.iC=function(q,Z){q.JSC$6747_buffer_.push(Z>>>0&255);q.JSC$6747_buffer_.push(Z>>>8&255);q.JSC$6747_buffer_.push(Z>>>16&255);q.JSC$6747_buffer_.push(Z>>>24&255)};var Ire,Ac,SX2,t6T;Ire=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new KYN};
Ac=function(q,Z){Z.length!==0&&(q.blocks_.push(Z),q.totalLength_+=Z.length)};
_.kuN=function(q,Z){_.y7(q,Z,2);Z=q.encoder_.end();Ac(q,Z);Z.push(q.totalLength_);return Z};
_.KFz=function(q,Z){var w=Z.pop();for(w=q.totalLength_+q.encoder_.length()-w;w>127;)Z.push(w&127|128),w>>>=7,q.totalLength_++;Z.push(w);q.totalLength_++};
_.y7=function(q,Z,w){sG2(q.encoder_,Z*8+w)};
SX2=function(q,Z,w){if(w!=null){switch(typeof w){case "string":UF9(w)}_.y7(q,Z,1);switch(typeof w){case "number":q=q.encoder_;Z9I(w);_.iC(q,K9);_.iC(q,sp);break;case "bigint":w=BigInt.asUintN(64,w);w=new xFN(Number(w&BigInt(4294967295)),Number(w>>BigInt(32)));q=q.encoder_;Z=w.JSC$6743_hi;_.iC(q,w.JSC$6743_lo);_.iC(q,Z);break;default:w=UF9(w),q=q.encoder_,Z=w.JSC$6743_hi,_.iC(q,w.JSC$6743_lo),_.iC(q,Z)}}};
t6T=function(q,Z,w){_.y7(q,Z,2);sG2(q.encoder_,w.length);Ac(q,q.encoder_.end());Ac(q,w)};var xSO,FYT,lr1;xSO=_.NS();_.cRe=_.NS();_.M7X=_.NS();FYT=_.NS();_.kZ=_.NS();_.NQ2=_.NS();lr1=_.NS();_.Gn2=_.NS();_.pAX=_.NS();var Gu=function(q,Z,w){this.$$binaryReaderFn=q;this.$$binaryWriterFn=Z;q=vy(xSO);this.$$isMsg=!!q&&w===q||!1},MV9=Tbj(function(q,Z,w,r,Y){if(q.nextWireType_!==2)return!1;
arN(q,WY9(Z,r,w),Y);return!0},sqO),FFj=Tbj(function(q,Z,w,r,Y){if(q.nextWireType_!==2)return!1;
arN(q,WY9(Z,r,w),Y);return!0},sqO),w8T=Symbol(),Gu6=Symbol(),mSj=Symbol(),$K1=Symbol(),yc1=Symbol(),Ilj,cc6;var Br9,XA8,mFz,AR8,frT,DFN,hiz,yRT,ifT,guT,q2h,w69,r2X,$j1,e8p;Br9=function(q,Z){var w=new Ire;edI(q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w,pl(w8T,ZA9,rIT,Z));Ac(w,w.encoder_.end());q=new Uint8Array(w.totalLength_);Z=w.blocks_;for(var r=Z.length,Y=0,C=0;C<r;C++){var d=Z[C];q.set(d,Y);Y+=d.length}w.blocks_=[q];return q};
XA8=_.fl(function(q,Z,w){if(q.nextWireType_!==1)return!1;_.hc(Z,w,t7I(q.decoder_));return!0},OAj,lr1);
mFz=_.fl(function(q,Z,w,r){if(q.nextWireType_!==1)return!1;_.ol(Z,w,r,t7I(q.decoder_));return!0},OAj,lr1);
AR8=_.fl(function(q,Z,w,r){if(q.nextWireType_!==5)return!1;var Y=_.Ug(q.decoder_);q=(Y>>31)*2+1;var C=Y>>>23&255;Y&=8388607;_.ol(Z,w,r,C==255?Y?NaN:q*Infinity:C==0?q*1.401298464324817E-45*Y:q*Math.pow(2,C-150)*(Y+8388608));return!0},function(q,Z,w){Z=_.PX2(Z);
Z!=null&&(_.y7(q,w,5),q=q.encoder_,w=V6z||(V6z=new DataView(new ArrayBuffer(8))),w.setFloat32(0,+Z,!0),sp=0,K9=w.getUint32(0,!0),_.iC(q,K9))},_.NS());
_.Kc=_.fl(function(q,Z,w){if(q.nextWireType_!==0)return!1;_.hc(Z,w,_.xZ(q.decoder_,Yp2));return!0},_.gb,_.kZ);
frT=_.fl(function(q,Z,w){if(q.nextWireType_!==0)return!1;q=_.xZ(q.decoder_,Yp2);_.hc(Z,w,q===0?void 0:q);return!0},_.gb,_.kZ);
DFN=_.fl(function(q,Z,w,r){if(q.nextWireType_!==0)return!1;_.ol(Z,w,r,_.xZ(q.decoder_,Yp2));return!0},_.gb,_.kZ);
_.sg=_.fl(function(q,Z,w){if(q.nextWireType_!==0)return!1;_.hc(Z,w,_.TP(q.decoder_));return!0},Lm8,FYT);
hiz=_.fl(function(q,Z,w){if(q.nextWireType_!==0)return!1;q=_.TP(q.decoder_);_.hc(Z,w,q===0?void 0:q);return!0},Lm8,FYT);
yRT=_.fl(function(q,Z,w,r){if(q.nextWireType_!==0)return!1;_.ol(Z,w,r,_.TP(q.decoder_));return!0},Lm8,FYT);
ifT=_.fl(function(q,Z,w){if(q.nextWireType_!==1)return!1;_.hc(Z,w,jG6(q.decoder_));return!0},_.vv2,_.NQ2);
guT=_.dKe(function(q,Z,w){if(q.nextWireType_!==1&&q.nextWireType_!==2)return!1;Z=_.jq6(Z,Z[_.P1]|0,w);q.nextWireType_==2?_.EuX(q,jG6,Z):Z.push(jG6(q.decoder_));return!0},function(q,Z,w){Z=_.PgN(TW1,Z,!1);
if(Z!=null)for(var r=0;r<Z.length;r++)SX2(q,w,Z[r])},_.NQ2);
_.Il=_.fl(function(q,Z,w){if(q.nextWireType_!==0)return!1;_.hc(Z,w,_.RiO(q.decoder_));return!0},_.j9T,_.cRe);
q2h=_.fl(function(q,Z,w,r){if(q.nextWireType_!==0)return!1;_.ol(Z,w,r,_.RiO(q.decoder_));return!0},_.j9T,_.cRe);
_.cI=_.fl(function(q,Z,w){if(q.nextWireType_!==2)return!1;_.hc(Z,w,_.nuT(q));return!0},_.Rde,_.M7X);
_.ZX7=_.fl(function(q,Z,w,r){if(q.nextWireType_!==2)return!1;_.ol(Z,w,r,_.nuT(q));return!0},_.Rde,_.M7X);
w69=_.dKe(function(q,Z,w){if(q.nextWireType_!==2)return!1;q=_.nuT(q);_.jq6(Z,Z[_.P1]|0,w).push(q);return!0},function(q,Z,w){Z=_.PgN(_.Hy,Z,!0);
if(Z!=null)for(var r=0;r<Z.length;r++){var Y=q,C=w,d=Z[r];d!=null&&t6T(Y,C,Y2I(d))}},_.M7X);
r2X=void 0;r2X=r2X===void 0?xSO:r2X;_.MY=new Gu(function(q,Z,w,r,Y){if(q.nextWireType_!==2)return!1;r=PC1(void 0,r,!0);_.jq6(Z,Z[_.P1]|0,w).push(r);arN(q,r,Y);return!0},function(q,Z,w,r,Y){if(Array.isArray(Z))for(var C=0;C<Z.length;C++)bAT(q,Z[C],w,r,Y)},r2X);
_.FH=Tbj(function(q,Z,w,r,Y,C){if(q.nextWireType_!==2)return!1;var d=Z[_.P1]|0;bl6(Z,d,C,w,QD(d));Z=WY9(Z,r,w);arN(q,Z,Y);return!0},bAT);
_.Y2v=_.fl(function(q,Z,w){if(q.nextWireType_!==2)return!1;_.hc(Z,w,_.QG6(q));return!0},_.JIe,_.Gn2);
$j1=_.fl(function(q,Z,w,r){if(q.nextWireType_!==2)return!1;_.ol(Z,w,r,_.QG6(q));return!0},_.JIe,_.Gn2);
e8p=_.fl(function(q,Z,w,r){if(q.nextWireType_!==0)return!1;_.ol(Z,w,r,_.TP(q.decoder_)>>>0);return!0},function(q,Z,w){Z=_.og1(Z);
Z!=null&&Z!=null&&(_.y7(q,w,0),sG2(q.encoder_,Z))},_.NS());
_.NY=_.fl(function(q,Z,w){if(q.nextWireType_!==0)return!1;_.hc(Z,w,_.TP(q.decoder_));return!0},_.zdO,_.pAX);var djW=function(){var q=CNX,Z=PN2;this.fieldIndex=175237375;this.ctor=Z;this.isRepeated=0;this.getExtensionFn=_.Xy;this.defaultValue=void 0;this.JSC$6741_hasMessageId=q.messageId!=null?zJ:void 0};
djW.prototype.register=function(){Z8(this)};var VOW=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(VOW,_.XD);var OXg=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(OXg,_.XD);var Tr2=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Tr2,_.XD);var HXg=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(HXg,_.XD);var WIm=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(WIm,_.XD);var o1D=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(o1D,_.XD);var u92=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(u92,_.XD);u92.prototype.getData=function(){return _.WI(this,2)};var LIh=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(LIh,_.XD);var S2J=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(S2J,_.XD);S2J.prototype.getStyle=function(){return _.Xy(this,VOW,1)};var e6=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(e6,_.XD);e6.prototype.getPayloadCase=function(){return _.uY(this,OX)};
e6.prototype.getStyle=function(){return _.al(this,S2J,6,OX)};
var v1v=function(){var q=new e6,Z=new WIm;return _.dr(q,7,OX,Z)},jTv=function(){var q=new e6,Z=new o1D;
return _.dr(q,8,OX,Z)},OX=[1,
2,3,4,5,6,7,8];var tO1=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(tO1,_.XD);var R8h=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(R8h,_.XD);var bX9=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(bX9,_.XD);var J2p=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(J2p,_.XD);var z8g=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(z8g,_.XD);var BzK=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(BzK,_.XD);var aTg=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(aTg,_.XD);var n11=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(n11,_.XD);n11.prototype.getData=function(){return _.WI(this,2)};var QT7=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(QT7,_.XD);var xKT=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(xKT,_.XD);xKT.prototype.getPayloadCase=function(){return _.uY(this,lY)};
var lY=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var GP=function(q,Z){q=Error.call(this,q);this.message=q.message;"stack"in q&&(this.stack=q.stack);this.code=Z===void 0?2:Z};
_.z(GP,Error);var E1D=Promise;var xjD=function(q){this.channelPromise=q};
xjD.prototype.send=function(q,Z,w){this.channelPromise.then(function(r){r.send(q,Z,w)})};var TzW=function(q,Z){this.data=q;this.channel=Z};
TzW.prototype.reply=function(q,Z,w){this.channel.send(q,Z,w)};var Ujp=function(q){this.JSC$6819_port_=q};
Ujp.prototype.send=function(q,Z,w){w=w===void 0?[]:w;var r=new MessageChannel;keX(r.port1,Z);this.JSC$6819_port_.postMessage(q,[r.port2].concat(w))};
var KIe=function(q,Z){keX(q,Z);return new Ujp(q)},keX=function(q,Z){Z&&(q.onmessage=function(w){Z(new TzW(w.data,KIe(w.ports[0])))})};var sTJ=function(q){this.verifier_=q},IT9=function(q){var Z=Object.create(null);
(typeof q==="string"?[q]:q).forEach(function(w){if(w==="null")throw Error("ba");Z[w]=!0});
return function(w){return Z[w]===!0}};_.c22=function(){if(!_.$1.addEventListener||!Object.defineProperty)return!1;var q=!1,Z=Object.defineProperty({},"passive",{get:function(){q=!0}});
try{var w=function(){};
_.$1.addEventListener("test",w,Z);_.$1.removeEventListener("test",w,Z)}catch(r){}return q}();var MO7;_.pc=function(q){var Z=q.destination;var w=q.iframe;var r=q.origin;var Y=q.channelName===void 0?"ZNWN1d":q.channelName;var C=q.onMessage===void 0?void 0:q.onMessage;q=q.onEstablished===void 0?void 0:q.onEstablished;return MO7({destination:Z,getSource:function(){return w.contentWindow},
originVerifier:r instanceof sTJ?r:typeof r==="function"?new sTJ(r):new sTJ(IT9(r)),channelName:Y,onMessage:C,onEstablished:q})};
MO7=function(q){var Z=q.destination;var w=q.getSource;var r=q.originVerifier;var Y=q.token===void 0?void 0:q.token;var C=q.channelName;var d=q.onMessage===void 0?void 0:q.onMessage;var O=q.onEstablished===void 0?void 0:q.onEstablished;return new xjD(new E1D(function(H,L){var S=function(v){v.source&&v.source===w()&&r.verifier_(v.origin)&&(v.data.n||v.data)===C&&(Z.removeEventListener("message",S,!1),Y&&v.data.t!==Y?L(Error("ca`"+C+"`"+Y+"`"+v.data.t)):(H(KIe(v.ports[0],d)),O&&O(v)))};
Z.addEventListener("message",S,!1)}))};var FIe=function(q){try{q()}catch(Z){P6(Z)}};var lTD=function(q){var Z=this;var w=q.getMessageType;var r=q.onUnregisteredMessage===void 0?function(){}:q.onUnregisteredMessage;
var Y=q.onBeforeRegisteredMessage===void 0?function(){}:q.onBeforeRegisteredMessage;
q=q.onAfterRegisteredMessage===void 0?function(){}:q.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=w;this.onUnregisteredMessage_=r;this.onBeforeRegisteredMessage_=Y;this.onAfterRegisteredMessage_=q;this.onMessage=function(C){return NzW(Z,C)}};
lTD.prototype.register=function(q,Z){this.registry_.set(q,Z);return this};
var NzW=function(q,Z){var w=q.getMessageType_(Z.data),r=q.registry_.get(w);r?(FIe(function(){return q.onBeforeRegisteredMessage_(Z,w)}),FIe(function(){return r(Z)}),FIe(function(){return q.onAfterRegisteredMessage_(Z,w)})):FIe(function(){return q.onUnregisteredMessage_(Z,w)})};var Geg=function(q){this.JSC$6836_channel_=q},X6m,mj9;
Geg.prototype.send=function(q,Z,w){this.JSC$6836_channel_.send(Jc(q),Z,w)};
_.p6m=function(q,Z){return function(w){var r=new q(w.data);return Z(new TzW(r,w.channel))}};
X6m=function(q){return function(Z){return q(new TzW(Z.data,new Geg(Z.channel)))}};
mj9=function(q,Z){return X6m(_.p6m(q,Z))};var A2W=function(q,Z,w,r){this.registry=q;this.delegate=Z;this.receiveMessageConstructor=w;this.createInitMessage=r;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},EvT=function(q){var Z=new lTD({getMessageType:q.getPayloadCase});
return new A2W(Z,new Geg(_.pc({iframe:q.child,destination:window,origin:q.origin,channelName:q.channelName,onMessage:mj9(q.receiveMessageConstructor,Z.onMessage)})),q.receiveMessageConstructor,q.createInitMessage)},fT9=function(q,Z){q.createInitMessage=Z};
A2W.prototype.send=function(q){if(!this.initialised)throw new GP("Attempted to send a message before initialisation.");this.delegate.send(q)};
var Djg=function(q,Z){return _.V(function(w){if(!q.initialised)throw new GP("Attempted to send a message before initialisation.");return w.return(new Promise(function(r){q.delegate.send(Z,mj9(q.receiveMessageConstructor,r))}))})};
A2W.prototype.init=function(){var q=this;return _.V(function(Z){if(q.initialised)throw new GP("Attempted to initialise twice. The SDK can only be initialised once.");if(q.createInitMessage!==void 0){var w=q.delegate,r=w.send,Y=q.createInitMessage;var C=new OXg;var d=[].concat(_.Ju(q.features));C=_.s6(C,1,d,_.AK);r.call(w,Y.call(q,C))}q.initialised=!0;_.ub(Z)})};
var XH=function(q,Z){if(q.initialised)throw new GP("Attempted to use a new API after initialisation. All APIs must be set up before initialising the SDK.");q.features.add(Z);return q.registry};
_.My.Object.defineProperties(A2W.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var h8m=function(q){this.channel=q;this.registered=!1};
h8m.prototype.update=function(q){if(this.channel.isInitialised){if(!this.registered)throw new GP("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var Z=new e6;var w=new HXg;w=_.ZA(w,1,q);Z=_.dr(Z,2,OX,w);this.channel.send(Z)}else this.register();this.JSC$6850_audioEnabled=q};
h8m.prototype.register=function(){XH(this.channel,1);this.registered=!0};
h8m.prototype.isAudioEnabled=function(){return this.JSC$6850_audioEnabled};var y2J=function(q){this.channel=q};
_.e=y2J.prototype;_.e.onFirstFrameReady=function(q){XH(this.channel,2).register(11,function(Z){Z=_.al(Z.data,tO1,11,lY);if(!Z)throw new GP("Unexpectedly nonexistent GameFirstFrameReadyEvent");q(_.bY(Z,1))})};
_.e.onReady=function(q){XH(this.channel,2).register(4,function(Z){Z=_.al(Z.data,bX9,4,lY);if(!Z)throw new GP("Unexpectedly nonexistent GameReadyEvent");q(_.bY(Z,1))})};
_.e.onLevelComplete=function(q){XH(this.channel,2).register(5,function(Z){Z=_.al(Z.data,J2p,5,lY);if(!Z)throw new GP("Unexpectedly nonexistent LevelCompleteEvent");q(_.bY(Z,1),_.DM(Z,2))})};
_.e.onGameOver=function(q){XH(this.channel,2).register(6,function(Z){Z=_.al(Z.data,R8h,6,lY);if(!Z)throw new GP("Unexpectedly nonexistent GameOverEvent");q(_.bY(Z,1))})};
_.e.pause=function(){var q=this;if(!this.channel.isInitialised)return XH(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new GP("Using unregistered Game Feature: pause.");var Z=v1v();return new Promise(function(w){return _.V(function(r){if(r.nextAddress==1)return _.W(r,Djg(q.channel,Z),2);w();_.ub(r)})})};
_.e.resume=function(){var q=this;if(!this.channel.isInitialised)return XH(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new GP("Using unregistered Game Feature: resume.");var Z=jTv();return new Promise(function(w){return _.V(function(r){if(r.nextAddress==1)return _.W(r,Djg(q.channel,Z),2);w();_.ub(r)})})};var iXv=function(q){this.channel=q};
iXv.prototype.onReady=function(q){XH(this.channel,5).register(8,function(Z){if(!_.al(Z.data,z8g,8,lY))throw new GP("Unexpectedly nonexistent PageReadyEvent");q()})};var g1e=function(q){this.channel=q};
g1e.prototype.onChange=function(q){XH(this.channel,3).register(7,function(Z){Z=_.al(Z.data,BzK,7,lY);if(!Z)throw new GP("Unexpectedly nonexistent ScoreEvent");q(_.bY(Z,1),_.DM(Z,2))})};var qph={load:function(){throw new GP("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new GP("Storage used, but storage.onSave() listener not set!");}},Z9v=function(q){this.channel=q;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},w1v=function(q){XH(q.channel,4).register(2,qph.load).register(3,qph.save);
q.initialSetupDone=!0};
Z9v.prototype.onLoad=function(q){this.initialSetupDone||w1v(this);this.loadRegistered||(this.loadRegistered=!0,XH(this.channel,4).register(2,function(Z){var w,r,Y;return _.V(function(C){if(C.nextAddress==1){w=_.al(Z.data,aTg,2,lY);if(!w)throw new GP("Unexpectedly nonexistent StorageLoad");r=_.bY(w,1);return _.W(C,q(r),2)}Y=C.yieldResult;var d=Z.reply,O=new e6;var H=new u92;H=_.uM(H,1,r);H=_.Am(H,2,_.JK(Y,!1));O=_.dr(O,3,OX,H);d.call(Z,O);_.ub(C)})}))};
Z9v.prototype.onSave=function(q){this.initialSetupDone||w1v(this);this.saveRegistered||(this.saveRegistered=!0,XH(this.channel,4).register(3,function(Z){var w,r,Y;return _.V(function(C){if(C.nextAddress==1){w=_.al(Z.data,n11,3,lY);if(!w)throw new GP("Unexpectedly nonexistent StorageSave");r=_.bY(w,1);Y=imz(w.getData());return _.W(C,q(r,Y),2)}var d=Z.reply,O=new e6;var H=new LIh;H=_.uM(H,1,r);O=_.dr(O,4,OX,H);d.call(Z,O);_.ub(C)})}))};var rKW=function(q){this.channel=q};
rKW.prototype.update=function(q){if(!this.channel.features.has(6))throw new GP("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var Z=new e6,w=new S2J;q=_.CA(w,1,q);Z=_.dr(Z,6,OX,q);this.channel.send(Z)};
rKW.prototype.register=function(){XH(this.channel,6)};var Ypp=function(q){this.channel=q;this.userActivityLoggingIntervalMs=0};
Ypp.prototype.onUserActivity=function(q,Z){this.userActivityLoggingIntervalMs=Z;XH(this.channel,7).register(9,function(w){if(!_.al(w.data,QT7,9,lY))throw new GP("Unexpectedly nonexistent ClickEvent");q()})};var $77=function(q){var Z=this;this.channel=q;this.init=this.channel.init.bind(this.channel);this.page=new iXv(this.channel);this.game=new y2J(this.channel);this.audio=new h8m(this.channel);this.score=new g1e(this.channel);this.storage=new Z9v(this.channel);this.style=new rKW(this.channel);this.userActivity=new Ypp(this.channel);fT9(this.channel,function(w){var r=new Tr2;w=_.CA(r,1,w);w=_.nc(w,3,Z.userActivity.userActivityLoggingIntervalMs);r=Z.audio.isAudioEnabled();r!==void 0&&_.ZA(w,2,r);r=new e6;
return _.dr(r,5,OX,w)})};var emv=function(){this.timedFunctionContext=0};
emv.prototype.timeExecution=function(q,Z){var w=this;return function(){var r=_.Ta.apply(0,arguments);w.timedFunctionContext=q;return Z.apply(null,_.Ju(r))}};var CX7=function(){var q={};this.priorityTasks=(q[3]=[],q[2]=[],q[1]=[],q);this.isFlushing=!1},CC=function(q,Z,w){var r=PXp(q,w);
q.priorityTasks[w].push(Z);r&&q.priorityTasks[w].length===1&&q.flush()},PXp=function(q,Z){return Object.keys(q.priorityTasks).map(function(w){return Number(w)}).filter(function(w){return!isNaN(w)&&w>Z}).every(function(w){return q.priorityTasks[w].length===0})};
CX7.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(q){return q.length>0});)d7X(this,3),d7X(this,2),d7X(this,1)}catch(q){throw Object.values(this.priorityTasks).forEach(function(Z){return void Z.splice(0,Z.length)}),q;
}finally{this.isFlushing=!1}}};
var d7X=function(q,Z){for(;PXp(q,Z)&&q.priorityTasks[Z].length>0;)q.priorityTasks[Z][0](),q.priorityTasks[Z].shift()};
_.My.Object.defineProperties(CX7.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(q){return q.length>0})}}});var M6O={};var V2X=globalThis.trustedTypes,ka2=V2X,s9T;var W8=function(q){this.privateDoNotAccessOrElseWrappedResourceUrl=q};
W8.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var O9D=_.Fr([""]),H9h=MUj(["\x00"],["\\0"]),WvW=MUj(["\n"],["\\n"]),ogg=MUj(["\x00"],["\\u0000"]);cIj(function(q){return q(O9D)})||cIj(function(q){return q(H9h)})||cIj(function(q){return q(WvW)})||cIj(function(q){return q(ogg)});var Qw;_.v8=function(q,Z){this.privateDoNotAccessOrElseWrappedUrl=Z};
_.v8.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.u79=j6("about:blank");Qw=j6("about:invalid#zClosurez");var FmI=function(q){this.isValid=q},Lvm=new FmI(function(q){return/^[^:]*([/?#]|$)/.test(q)}),SpD=za("data"),vgp=za("http"),jhm=za("https"),t27=za("ftp"),RmD=za("mailto"),b9g=za("intent"),JKD=za("vnd.youtube"),Nr9=[SpD,
vgp,jhm,RmD,t27,Lvm],lFj=H8(function(){return typeof URL==="function"}),zmW=["data:",
"http:","https:","mailto:","ftp:"],p82=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var sX=function(q){this.privateDoNotAccessOrElseWrappedHtml=q};
sX.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var D42=H8(function(){return new sX(V2X?V2X.emptyHTML:"")});var BWD={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"},mK8=function(q,Z){var w=Error.call(this,q+" cannot be used with intent "+BWD[Z]);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.type=q;this.intent=Z;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.z(mK8,Error);_.Ga=function(q){this.privateDoNotAccessOrElseWrappedScript=q};
_.Ga.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var hdT=function(q){this.privateDoNotAccessOrElseWrappedAttributePrefix=q};
hdT.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var yIz="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var HVN=function(q){var Z=_.Eq("window.location.href");q==null&&(q='Unknown Error of type "null/undefined"');if(typeof q==="string")return{message:q,name:"Unknown error",lineNumber:"Not available",fileName:Z,stack:"Not available"};var w=!1;try{var r=q.lineNumber||q.line||"Not available"}catch(d){r="Not available",w=!0}try{var Y=q.fileName||q.filename||q.sourceURL||_.$1.$googDebugFname||Z}catch(d){Y="Not available",w=!0}Z=ae7(q);if(!(!w&&q.lineNumber&&q.fileName&&q.stack&&q.message&&q.name)){w=q.message;
if(w==null){if(q.constructor&&q.constructor instanceof Function){if(q.constructor.name)w=q.constructor.name;else if(w=q.constructor,mg[w])w=mg[w];else{w=String(w);if(!mg[w]){var C=/function\s+([^\(]+)/m.exec(w);mg[w]=C?C[1]:"[Anonymous]"}w=mg[w]}w='Unknown Error of type "'+w+'"'}else w="Unknown Error of unknown type";typeof q.toString==="function"&&Object.prototype.toString!==q.toString&&(w+=": "+q.toString())}return{message:w,name:q.name||"UnknownError",lineNumber:r,fileName:Y,stack:Z||"Not available"}}return{message:q.message,
name:q.name,lineNumber:q.lineNumber,fileName:q.fileName,stack:Z}},ae7=function(q,Z){Z||(Z={});
Z[ng7(q)]=!0;var w=q.stack||"",r=q.cause;r&&!Z[ng7(r)]&&(w+="\nCaused by: ",r.stack&&r.stack.indexOf(r.toString())==0||(w+=typeof r==="string"?r:r.message+"\n"),w+=ae7(r,Z));q=q.errors;if(Array.isArray(q)){r=1;var Y;for(Y=0;Y<q.length&&!(r>4);Y++)Z[ng7(q[Y])]||(w+="\nInner error "+r++ +": ",q[Y].stack&&q[Y].stack.indexOf(q[Y].toString())==0||(w+=typeof q[Y]==="string"?q[Y]:q[Y].message+"\n"),w+=ae7(q[Y],Z));Y<q.length&&(w+="\n... "+(q.length-Y)+" more inner errors")}return w},ng7=function(q){var Z=
"";
typeof q.toString==="function"&&(Z=""+q);return Z+q.stack},mg={};var Qhp,lO,GR,x79,TWg,EgJ,T1,QY,kJ7;Qhp=function(q,Z){for(var w=q.split("%s"),r="",Y=Array.prototype.slice.call(arguments,1);Y.length&&w.length>1;)r+=w.shift()+Y.shift();return r+w.join("%s")};
_.Tj=function(q){return encodeURIComponent(String(q))};
lO=function(q){return decodeURIComponent(q.replace(/\+/g," "))};
GR=function(q){uUj.test(q)&&(q.indexOf("&")!=-1&&(q=q.replace(d_8,"&amp;")),q.indexOf("<")!=-1&&(q=q.replace(V0O,"&lt;")),q.indexOf(">")!=-1&&(q=q.replace(Om1,"&gt;")),q.indexOf('"')!=-1&&(q=q.replace(HmI,"&quot;")),q.indexOf("'")!=-1&&(q=q.replace(WLz,"&#39;")),q.indexOf("\x00")!=-1&&(q=q.replace(oUj,"&#0;")));return q};
x79=function(q){var Z={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var w=_.$1.document.createElement("div");return q.replace(EgJ,function(r,Y){var C=Z[r];if(C)return C;Y.charAt(0)=="#"&&(Y=Number("0"+Y.slice(1)),isNaN(Y)||(C=String.fromCharCode(Y)));C||(_.fA(w,I9(r+" ")),C=w.firstChild.nodeValue.slice(0,-1));return Z[r]=C})};
TWg=function(q){return q.replace(/&([^;]+);/g,function(Z,w){switch(w){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return w.charAt(0)!="#"||(w=Number("0"+w.slice(1)),isNaN(w))?Z:String.fromCharCode(w)}})};
EgJ=/&([^;\s<&]+);?/g;_.UCX=function(q){return String(q).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.U7v=String.prototype.repeat?function(q,Z){return q.repeat(Z)}:function(q,Z){return Array(Z+1).join(q)};
_.Az=function(q,Z){if(!Number.isFinite(q))return String(q);q=String(q);var w=q.indexOf(".");w===-1&&(w=q.length);var r=q[0]==="-"?"-":"";r&&(q=q.substring(1));return r+(0,_.U7v)("0",Math.max(0,Z-w))+q};
T1=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.hW()).toString(36)};
QY=function(q){for(var Z=0,w=0;w<q.length;++w)Z=31*Z+q.charCodeAt(w)>>>0;return Z};
_.Cp=function(q){return String(q).replace(/\-([a-z])/g,function(Z,w){return w.toUpperCase()})};
_.es=function(q){return String(q).replace(/([A-Z])/g,"-$1").toLowerCase()};
kJ7=function(q){return q.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(Z,w,r){return w+r.toUpperCase()})};var KvX=function(){this.names=new Map};
KvX.prototype.getName=function(q){var Z=this.names.get(q);if(Z)return Z;var w;Z=(w=q.description)!=null?w:T1();this.names.set(q,Z);return Z};var sh1=function(q){var Z=Error.call(this,q?q.length+" errors occurred during unsubscription:\n"+q.map(function(w,r){return r+1+") "+w.toString()}).join("\n  "):"");
this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.errors=q;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.z(sh1,Error);var qX=function(q){this.initialTeardown=q;this.closed=!1;this._teardowns=this._parentage=null};
_.e=qX.prototype;
_.e.unsubscribe=function(){if(!this.closed){this.closed=!0;var q=this._parentage;if(Array.isArray(q))for(var Z=_.P(q),w=Z.next();!w.done;w=Z.next())w.value.remove(this);else q==null||q.remove(this);Z=this.initialTeardown;if(gr(Z))try{Z()}catch(C){var r=C instanceof sh1?C.errors:[C]}var Y=this._teardowns;if(Y)for(this._teardowns=null,Z=_.P(Y),w=Z.next();!w.done;w=Z.next()){w=w.value;try{gr(w)?w():w.unsubscribe()}catch(C){w=void 0,r=(w=r)!=null?w:[],C instanceof sh1?r=[].concat(_.Ju(r),_.Ju(C.errors)):
r.push(C)}}if(r)throw new sh1(r);}};
_.e.add=function(q){if(q&&q!==this)if(this.closed)gr(q)?q():q.unsubscribe();else{if(q instanceof qX){if(q.closed||q._hasParent(this))return;q._addParent(this)}var Z;(this._teardowns=(Z=this._teardowns)!=null?Z:[]).push(q)}};
_.e._hasParent=function(q){var Z=this._parentage;return Z===q||Array.isArray(Z)&&Z.includes(q)};
_.e._addParent=function(q){var Z=this._parentage;this._parentage=Array.isArray(Z)?(Z.push(q),Z):Z?[Z,q]:q};
_.e._removeParent=function(q){var Z=this._parentage;Z===q?this._parentage=null:Array.isArray(Z)&&Z_T(Z,q)};
_.e.remove=function(q){var Z=this._teardowns;Z&&Z_T(Z,q);q instanceof qX&&q._removeParent(this)};
var Iep=new qX;Iep.closed=!0;qX.JSC$6946_EMPTY=Iep;var ruj=function(){setTimeout.apply(null,_.Ju(_.Ta.apply(0,arguments)))};var fc=function(q){qX.call(this);this.JSC$6951_isStopped=!1;this.destination=q instanceof fc?q:new D8(!q||gr(q)?{next:q!=null?q:void 0}:q);wqN(q)&&q.add(this)};
_.z(fc,qX);fc.JSC$6946_EMPTY=qX.JSC$6946_EMPTY;fc.create=function(q,Z,w){return new hz(q,Z,w)};
_.e=fc.prototype;_.e.next=function(q){this.JSC$6951_isStopped||this._next(q)};
_.e.error=function(q){this.JSC$6951_isStopped||(this.JSC$6951_isStopped=!0,this._error(q))};
_.e.complete=function(){this.JSC$6951_isStopped||(this.JSC$6951_isStopped=!0,this._complete())};
_.e.unsubscribe=function(){this.closed||(this.JSC$6951_isStopped=!0,qX.prototype.unsubscribe.call(this))};
_.e._next=function(q){this.destination.next(q)};
_.e._error=function(q){this.destination.error(q);this.unsubscribe()};
_.e._complete=function(){this.destination.complete();this.unsubscribe()};
var D8=function(q){this.partialObserver=q};
D8.prototype.next=function(q){var Z=this.partialObserver;if(Z.next)try{Z.next(q)}catch(w){w9(w)}};
D8.prototype.error=function(q){var Z=this.partialObserver;if(Z.error)try{Z.error(q)}catch(w){w9(w)}else w9(q)};
D8.prototype.complete=function(){var q=this.partialObserver;if(q.complete)try{q.complete()}catch(Z){w9(Z)}};
var hz=function(q,Z,w){fc.call(this);var r;gr(q)||!q?r={next:q!=null?q:void 0,error:Z!=null?Z:void 0,complete:w!=null?w:void 0}:r=q;this.destination=new D8(r)};
_.z(hz,fc);hz.JSC$6946_EMPTY=fc.JSC$6946_EMPTY;hz.create=fc.create;var e8=typeof Symbol==="function"&&Symbol.observable||"@@observable";var $q=function(q){q&&(this._subscribe=q)};
_.e=$q.prototype;_.e.lift=function(q){var Z=new $q;Z.source=this;Z.operator=q;return Z};
_.e.subscribe=function(q,Z,w){q=q&&q instanceof fc||q&&gr(q.next)&&gr(q.error)&&gr(q.complete)&&wqN(q)?q:new hz(q,Z,w);Z=this.operator;w=this.source;q.add(Z?Z.call(q,w):w?this._subscribe(q):this._trySubscribe(q));return q};
_.e._trySubscribe=function(q){try{return this._subscribe(q)}catch(Z){q.error(Z)}};
_.e.forEach=function(q,Z){var w=this;Z=$XT(Z);return new Z(function(r,Y){var C=w.subscribe(function(d){try{q(d)}catch(O){Y(O),C==null||C.unsubscribe()}},Y,r)})};
_.e._subscribe=function(q){var Z;return(Z=this.source)==null?void 0:Z.subscribe(q)};
$q.prototype[e8]=function(){return this};
$q.prototype.pipe=function(){var q=_.Ta.apply(0,arguments);return q.length?YIT(q)(this):this};
$q.create=function(q){return new $q(q)};var cKm=function(){var q=Error.call(this,"object unsubscribed");this.message=q.message;"stack"in q&&(this.stack=q.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.z(cKm,Error);var wD=function(){this.observers=[];this.hasError=this.JSC$6967_isStopped=this.closed=!1;this.thrownError=null};
_.z(wD,$q);_.e=wD.prototype;_.e.lift=function(q){var Z=new yM(this,this);Z.operator=q;return Z};
_.e._throwIfClosed=function(){if(this.closed)throw new cKm;};
_.e.next=function(q){this._throwIfClosed();if(!this.JSC$6967_isStopped){var Z=this.observers.slice();Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next())w.value.next(q)}};
_.e.error=function(q){this._throwIfClosed();if(!this.JSC$6967_isStopped){this.hasError=this.JSC$6967_isStopped=!0;this.thrownError=q;for(var Z=this.observers;Z.length;)Z.shift().error(q)}};
_.e.complete=function(){this._throwIfClosed();if(!this.JSC$6967_isStopped){this.JSC$6967_isStopped=!0;for(var q=this.observers;q.length;)q.shift().complete()}};
_.e.unsubscribe=function(){this.JSC$6967_isStopped=this.closed=!0;this.observers=null};
_.e._trySubscribe=function(q){this._throwIfClosed();return $q.prototype._trySubscribe.call(this,q)};
_.e._subscribe=function(q){this._throwIfClosed();this._checkFinalizedStatuses(q);return this._innerSubscribe(q)};
_.e._innerSubscribe=function(q){var Z=this,w=this.JSC$6967_isStopped,r=this.observers;return this.hasError||w?qX.JSC$6946_EMPTY:(r.push(q),new qX(function(){return Z_T(Z.observers,q)}))};
_.e._checkFinalizedStatuses=function(q){var Z=this.thrownError,w=this.JSC$6967_isStopped;this.hasError?q.error(Z):w&&q.complete()};
wD.create=function(q,Z){return new yM(q,Z)};
var yM=function(q,Z){wD.call(this);this.destination=q;this.source=Z};
_.z(yM,wD);yM.create=wD.create;yM.prototype.next=function(q){var Z,w;(Z=this.destination)==null||(w=Z.next)==null||w.call(Z,q)};
yM.prototype.error=function(q){var Z,w;(Z=this.destination)==null||(w=Z.error)==null||w.call(Z,q)};
yM.prototype.complete=function(){var q,Z;(q=this.destination)==null||(Z=q.complete)==null||Z.call(q)};
yM.prototype._subscribe=function(q){var Z,w;return(w=(Z=this.source)==null?void 0:Z.subscribe(q))!=null?w:qX.JSC$6946_EMPTY};var KC=function(q){wD.call(this);this._value=q};
_.z(KC,wD);KC.create=wD.create;KC.prototype._subscribe=function(q){var Z=wD.prototype._subscribe.call(this,q);!Z.closed&&q.next(this._value);return Z};
KC.prototype.getValue=function(){var q=this.thrownError,Z=this._value;if(this.hasError)throw q;this._throwIfClosed();return Z};
KC.prototype.next=function(q){wD.prototype.next.call(this,this._value=q)};
_.My.Object.defineProperties(KC.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var EI=new $q(function(q){return q.complete()});var dX8=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var oqT=function(q){return q&&typeof q.length==="number"&&typeof q!=="function"};var M2v={now:function(){return(M2v.delegate||Date).now()},
delegate:void 0};var p_=function(q,Z,w){q=q===void 0?Infinity:q;Z=Z===void 0?Infinity:Z;w=w===void 0?M2v:w;wD.call(this);this.JSC$6989_bufferSize=q;this.windowTime=Z;this.timestampProvider=w;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=Z===Infinity;this.JSC$6989_bufferSize=Math.max(1,q);this.windowTime=Math.max(1,Z)};
_.z(p_,wD);p_.create=wD.create;p_.prototype.next=function(q){var Z=this.buffer,w=this.infiniteTimeWindow,r=this.timestampProvider,Y=this.windowTime;this.JSC$6967_isStopped||(Z.push(q),!w&&Z.push(r.now()+Y));FvX(this);wD.prototype.next.call(this,q)};
p_.prototype._subscribe=function(q){this._throwIfClosed();FvX(this);for(var Z=this._innerSubscribe(q),w=this.infiniteTimeWindow,r=this.buffer.slice(),Y=0;Y<r.length&&!q.closed;Y+=w?1:2)q.next(r[Y]);this._checkFinalizedStatuses(q);return Z};
var FvX=function(q){var Z=q.JSC$6989_bufferSize,w=q.timestampProvider,r=q.buffer;q=q.infiniteTimeWindow;var Y=(q?1:2)*Z;Z<Infinity&&Y<r.length&&r.splice(0,r.length-Y);if(!q){Z=w.now();w=0;for(q=1;q<r.length&&r[q]<=Z;q+=2)w=q;w&&r.splice(0,w+1)}};var lev=function(q,Z){Z=Z===void 0?NW7:Z;this.schedulerActionCtor=q;this.now=Z};
lev.prototype.schedule=function(q,Z,w){Z=Z===void 0?0:Z;return(new this.schedulerActionCtor(this,q)).schedule(w,Z)};
var NW7=M2v.now;var CMN=function(){var q=Error.call(this,"no elements in sequence");this.message=q.message;"stack"in q&&(this.stack=q.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.z(CMN,Error);var tu=function(q,Z,w,r,Y){fc.call(this,q);this.onUnsubscribe=Y;Z&&(this._next=function(C){try{Z(C)}catch(d){this.destination.error(d)}});
w&&(this._error=function(C){try{w(C)}catch(d){this.destination.error(d)}this.unsubscribe()});
r&&(this._complete=function(){try{r()}catch(C){this.destination.error(C)}this.unsubscribe()})};
_.z(tu,fc);tu.JSC$6946_EMPTY=fc.JSC$6946_EMPTY;tu.create=fc.create;tu.prototype.unsubscribe=function(){var q;this.closed||(q=this.onUnsubscribe)!=null&&q.call(this);fc.prototype.unsubscribe.call(this)};var lb=function(q,Z){this.source=q;this.subjectFactory=Z;this._subject=null;this._refCount=0;this._connection=null};
_.z(lb,$q);lb.create=$q.create;lb.prototype._subscribe=function(q){return GJ7(this).subscribe(q)};
var GJ7=function(q){var Z=q._subject;if(!Z||Z.JSC$6967_isStopped)q._subject=q.subjectFactory();return q._subject};
lb.prototype._teardown=function(){this._refCount=0;var q=this._connection;this._subject=this._connection=null;q==null||q.unsubscribe()};
lb.prototype.connect=function(){var q=this,Z=this._connection;if(!Z){Z=this._connection=new qX;var w=GJ7(this);Z.add(this.source.subscribe(new tu(w,void 0,function(r){q._teardown();w.error(r)},function(){q._teardown();
w.complete()},function(){return q._teardown()})));
Z.closed&&(this._connection=null,Z=qX.JSC$6946_EMPTY)}return Z};var nq8=Array.isArray;var Eq9=Array.isArray,p17=Object,xXT=p17.getPrototypeOf,T92=p17.prototype,UX6=p17.keys;var a3=function(q,Z,w){fc.call(this,q);this._next=Z;this.shouldComplete=w};
_.z(a3,fc);a3.JSC$6946_EMPTY=fc.JSC$6946_EMPTY;a3.create=fc.create;a3.prototype._complete=function(){this.shouldComplete()?fc.prototype._complete.call(this):this.unsubscribe()};var lJ1=["addListener","removeListener"],N9T=["addEventListener","removeEventListener"],pqX=["on","off"];var iY=function(){qX.call(this)};
_.z(iY,qX);iY.JSC$6946_EMPTY=qX.JSC$6946_EMPTY;iY.prototype.schedule=function(){return this};var X17=function(q,Z){return setInterval.apply(null,[q,Z].concat(_.Ju(_.Ta.apply(2,arguments))))};var gS=function(q,Z){qX.call(this);this.scheduler=q;this.work=Z;this.pending=!1};
_.z(gS,iY);gS.JSC$6946_EMPTY=iY.JSC$6946_EMPTY;gS.prototype.schedule=function(q,Z){Z=Z===void 0?0:Z;if(this.closed)return this;this.state=q;q=this.id;var w=this.scheduler;q!=null&&(this.id=m7h(this,q,Z));this.pending=!0;this.delay=Z;this.id=this.id||this.requestAsyncId(w,this.id,Z);return this};
gS.prototype.requestAsyncId=function(q,Z,w){w=w===void 0?0:w;return X17(q.flush.bind(q,this),w)};
var m7h=function(q,Z,w){w=w===void 0?0:w;if(w!=null&&q.delay===w&&q.pending===!1)return Z;clearInterval(Z)};
gS.prototype.execute=function(q,Z){if(this.closed)return Error("la");this.pending=!1;if(q=this._execute(q,Z))return q;this.pending===!1&&this.id!=null&&(this.id=m7h(this,this.id,null))};
gS.prototype._execute=function(q){var Z=!1;try{this.work(q)}catch(r){Z=!0;var w=!!r&&r||Error(r)}if(Z)return this.unsubscribe(),w};
gS.prototype.unsubscribe=function(){if(!this.closed){var q=this.id,Z=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Z_T(Z,this);q!=null&&(this.id=m7h(this,q,null));this.delay=null;iY.prototype.unsubscribe.call(this)}};var AKW=function(q,Z){Z=Z===void 0?NW7:Z;lev.call(this,q,Z);this.actions=[];this.active=!1;this.scheduled=void 0};
_.z(AKW,lev);AKW.prototype.flush=function(q){var Z=this.actions;if(this.active)Z.push(q);else{var w;this.active=!0;do if(w=q.execute(q.state,q.delay))break;while(q=Z.shift());this.active=!1;if(w){for(;q=Z.shift();)q.unsubscribe();throw w;}}};var v3=new $q(ZJ);var Xq1=Array.isArray;var qf=function(q,Z){gS.call(this,q,Z);this.scheduler=q;this.work=Z};
_.z(qf,gS);qf.JSC$6946_EMPTY=gS.JSC$6946_EMPTY;qf.prototype.schedule=function(q,Z){Z=Z===void 0?0:Z;if(Z>0)return gS.prototype.schedule.call(this,q,Z);this.delay=Z;this.state=q;this.scheduler.flush(this);return this};
qf.prototype.execute=function(q,Z){return Z>0||this.closed?gS.prototype.execute.call(this,q,Z):this._execute(q,Z)};
qf.prototype.requestAsyncId=function(q,Z,w){w=w===void 0?0:w;return w!=null&&w>0||w==null&&this.delay>0?gS.prototype.requestAsyncId.call(this,q,Z,w):q.flush(this)};var feJ=function(){AKW.apply(this,arguments)};
_.z(feJ,AKW);var B9e=new feJ(qf);var D77=function(){this.performanceMonitor=new emv;this.queue=new CX7;this.internalSymbol=Symbol();this.debugNames=new KvX};
D77.prototype.getOnBackgrounded=function(){return v3};
_.My.Object.defineProperties(D77.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var ZI=function(q,Z){Z=Error.call(this,Z?q+": "+Z:String(q));this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.code=q;this.__proto__=ZI.prototype;this.name=String(q)};
_.z(ZI,Error);var jh=function(q){ZI.call(this,1E3,'sfr:"'+q+'"');this.measurementStrategyFailureReason=q;this.__proto__=jh.prototype};
_.z(jh,ZI);var tj=function(){ZI.call(this,1003);this.__proto__=tj.prototype};
_.z(tj,ZI);var wM=function(){ZI.call(this,1009);this.__proto__=wM.prototype};
_.z(wM,ZI);var hmv=function(){ZI.call(this,1011);this.__proto__=hmv.prototype};
_.z(hmv,ZI);var yKh=function(){ZI.call(this,1007);this.__proto__=tj.prototype};
_.z(yKh,ZI);var LC=function(q){ZI.call(this,1004,String(q));this.inputObservableIndex=q;this.__proto__=LC.prototype};
_.z(LC,ZI);var tC9=function(q){ZI.call(this,1010,q);this.__proto__=ROT.prototype};
_.z(tC9,ZI);var ROT=function(q){ZI.call(this,1005,q);this.__proto__=ROT.prototype};
_.z(ROT,ZI);var i9X=function(q){var Z=_.Ta.apply(1,arguments),w=this;this.orderedFactories=[];this.orderedFactories.push(q);Z.forEach(function(r){w.orderedFactories.push(r)})};
i9X.prototype.isSupported=function(q){return this.orderedFactories.some(function(Z){return Z.isSupported(q)})};
i9X.prototype.makeBeacon=function(q,Z){for(var w=0;w<this.orderedFactories.length;w++)if(this.orderedFactories[w].isSupported(Z))return this.orderedFactories[w].makeBeacon(q,Z);throw new wM;};var VG9=Symbol("ma"),gge=Symbol("na"),kq=function(q,Z){this.value=q;this.timeline=Z},UI=function(q,Z){if(Z.timeline!==q.timeline)throw new yKh;
return q.value-Z.value};
_.e=kq.prototype;_.e.equals=function(q){return UI(this,q)===0};
_.e.maximum=function(q){if(q.timeline!==this.timeline)throw new yKh;return this.value>=q.value?this:q};
_.e.round=function(){return new kq(Math.round(this.value),this.timeline)};
_.e.add=function(q){return new kq(this.value+q,this.timeline)};
_.e.toString=function(){return String(this.value)};var rM=function(q,Z){this.context=q;this.JSC$7073_pinger=Z};
rM.prototype.isSupported=function(q){return this.JSC$7073_pinger.isSupported(q)};
rM.prototype.makeBeacon=function(q,Z){if(!this.isSupported(Z))throw new wM;return new YA(this.context,this.JSC$7073_pinger,Z!=null?Z:void 0,q)};
var YA=function(q,Z,w,r){var Y=this;this.JSC$7079_pinger=Z;this.properties=w;this.url=r;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var C;this.method=(C=w==null?void 0:w.beaconMethod)!=null?C:"GET";this.backgroundedSubscription=q.getOnBackgrounded().subscribe(function(){Y.sendNow()})};
YA.prototype.deactivate=function(){this.internalIsPending=!1};
YA.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7079_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var q,Z;this.JSC$7079_pinger.pingWithHeadersAndBody((q=this.properties)!=null?q:{},this.customHeaders,(Z=this.body)!=null?Z:"",this.url)}else this.JSC$7079_pinger.ping(this.url);this.internalIsPending=!1}catch(w){}else this.internalIsPending=!1};
YA.prototype.setHeader=function(q){this.customHeaders.set(q,void 0)};
_.My.Object.defineProperties(YA.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var ZlK=function(){for(var q=_.P(_.Ta.apply(0,arguments)),Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,Z.available()){this.timeProvider=Z;return}this.timeProvider=new q6X};
_.e=ZlK.prototype;_.e.available=function(){return this.timeProvider.available()};
_.e.now=function(){return this.timeProvider.now()};
_.e.setTimeout=function(q,Z){return this.timeProvider.setTimeout(q,Z)};
_.e.clearTimeout=function(q){this.timeProvider.clearTimeout(q)};
_.e.interval=function(q,Z){var w=this.intervalObservable(q).subscribe(Z);return function(){return void w.unsubscribe()}};
_.e.intervalObservable=function(q){return this.timeProvider.intervalObservable(q)};
_.My.Object.defineProperties(ZlK.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var q6X=function(){this.timeline=Symbol()};
_.e=q6X.prototype;_.e.available=function(){return!1};
_.e.now=function(){return new kq(0,this.timeline)};
_.e.setTimeout=function(){return 0};
_.e.clearTimeout=function(){};
_.e.interval=function(){return function(){}};
_.e.intervalObservable=function(){return v3};var $A=function(q,Z){this.intrinsicFunctionNamespace=q;this.performanceMonitor=Z};
_.e=$A.prototype;_.e.setTimeout=function(q,Z){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,q),Z)};
_.e.clearTimeout=function(q){this.intrinsicFunctionNamespace.clearTimeout(q)};
_.e.interval=function(q,Z){var w=this.intervalObservable(q).subscribe(Z);return function(){return void w.unsubscribe()}};
_.e.intervalObservable=function(q){var Z=this;return new $q(function(w){var r=0,Y=Z.intrinsicFunctionNamespace.setInterval(function(){w.next(r++)},q);
return function(){Z.intrinsicFunctionNamespace.clearInterval(Y)}})};
_.e.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var wy7=function(q,Z){$A.call(this,q,Z);this.timeline=gge};
_.z(wy7,$A);wy7.prototype.now=function(){return new kq(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
wy7.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&$A.prototype.available.call(this)};var rcg=function(q,Z){$A.call(this,q,Z);this.timeline=VG9};
_.z(rcg,$A);rcg.prototype.now=function(){return new kq(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
rcg.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&$A.prototype.available.call(this)};var $Sh=function(q){this.context=q;if(Y6g===void 0)a:{var Z,w,r=(Z=q.global)==null?void 0:(w=Z.document)==null?void 0:w.createElement("meta");if(r)try{r.httpEquiv="origin-trial";r.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";q.global.document.head.append(r);Y6g=r;break a}catch(Y){}Y6g=void 0}},
Y6g;
$Sh.prototype.isSupported=function(q){return ZC2(this.context)!==void 0&&!(q==null||!q.endOfSession)&&!ez(this.context)&&!(q==null?0:q.attributionEnabled)&&!(q==null?0:q.customHeaders)&&!(q==null?0:q.customBody)};
$Sh.prototype.makeBeacon=function(q,Z){if(!this.isSupported(Z))throw new wM;return new CI(this.context,q,Z)};
var CI=function(q,Z,w){this.context=q;this.properties=w;this.JSC$7106_urlWithoutToken=Z;var r;this.beaconMethod=(r=w==null?void 0:w.beaconMethod)!=null?r:"GET";q=ZC2(this.context);if(q===void 0)throw Error();this.fetchLater=q;eZ9(this,CCm(this))},eZ9=function(q,Z){q.beaconResult&&q.beaconResult.activated||(q.beaconAbort=new AbortController,q.beaconResult=q.fetchLater(Z,{method:q.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:q.beaconAbort.signal,activateAfter:96E4}))},CCm=function(q){q=q.JSC$7106_urlWithoutToken;
return(q.slice(-1)[0]==="&"?q:q+"&")+"flapi=1"};
CI.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
CI.prototype.sendNow=function(){};
CI.prototype.setHeader=function(){};
_.My.Object.defineProperties(CI.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7106_urlWithoutToken},
set:function(q){this.JSC$7106_urlWithoutToken=q;q=CCm(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);eZ9(this,q)}},
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 PCg=function(q){this.context=q};
PCg.prototype.isSupported=function(){return!ez(this.context)&&!!this.context.global.fetch};
PCg.prototype.ping=function(){var q=this;return xq.apply(null,_.Ju(_.Ta.apply(0,arguments).map(function(Z){return Pq(q.context.global.fetch(Z,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(bb(function(w){return w.status===200}))}))).pipe(PMj(function(Z){return Z}),OC8())};
PCg.prototype.pingWithHeadersAndBody=function(q,Z,w){for(var r=_.Ta.apply(3,arguments),Y=this,C=new Headers,d=_.P(Z.entries()),O=d.next();!O.done;O=d.next()){var H=_.P(O.value);O=H.next().value;H=H.next().value;C.set(O,H)}var L,S=(L=q.keepAlive)!=null?L:!1;xq.apply(null,_.Ju(r.map(function(v){return Pq(Y.context.global.fetch(v,Object.assign({},{method:String(q.beaconMethod),cache:"no-cache"},S?{keepalive:!0}:{},{mode:"no-cors",headers:C,body:w}))).pipe(bb(function(R){return R.status===200}))}))).pipe(PMj(function(v){return v}),
OC8())};var dS9,jB2;_.Pr=function(){};
_.s2=function(q){return q};
dS9=function(q){var Z=Z||0;return function(){return q.apply(this,Array.prototype.slice.call(arguments,0,Z))}};
_.dM=function(q){var Z=!1,w;return function(){Z||(w=q(),Z=!0);return w}};
_.VW=function(q,Z){var w=0;return function(r){_.$1.clearTimeout(w);var Y=arguments;w=_.$1.setTimeout(function(){q.apply(void 0,Y)},Z)}};
jB2=function(q,Z){var w=0,r=!1,Y=[],C=function(){w=0;r&&(r=!1,d())},d=function(){w=_.$1.setTimeout(C,Z);
var O=Y;Y=[];q.apply(void 0,O)};
return function(O){Y=arguments;w?r=!0:d()}};var Olm=function(){return t2&&RT?RT.mobile:!VV7()&&(bN("iPod")||bN("iPhone")||bN("Android")||bN("IEMobile"))},VV7=function(){return t2&&RT?!RT.mobile&&(bN("iPad")||bN("Android")||bN("Silk")):bN("iPad")||bN("Android")&&!bN("Mobile")||bN("Silk")};var Hlh;_.R4={};Hlh="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.R4.add=function(q,Z,w){if(q!==null&&Z in q)throw Error("pa`"+Z);q[Z]=w};
_.R4.clear=function(q){for(var Z in q)delete q[Z]};
_.R4.clone=function(q){var Z={},w;for(w in q)Z[w]=q[w];return Z};
_.R4.contains=function(q,Z){return ug8(q,Z)};
_.R4.containsKey=function(q,Z){return q!==null&&Z in q};
_.R4.containsValue=ug8;_.R4.create=vxN;_.R4.createImmutableView=function(q){var Z=q;Object.isFrozen&&!Object.isFrozen(q)&&(Z=Object.create(q),Object.freeze(Z));return Z};
_.R4.createSet=j46;_.R4.equals=function(q,Z){for(var w in q)if(!(w in Z)||q[w]!==Z[w])return!1;for(var r in Z)if(!(r in q))return!1;return!0};
_.R4.every=function(q,Z,w){for(var r in q)if(!Z.call(w,q[r],r,q))return!1;return!0};
_.R4.extend=function(q,Z){for(var w,r,Y=1;Y<arguments.length;Y++){r=arguments[Y];for(w in r)q[w]=r[w];for(var C=0;C<Hlh.length;C++)w=Hlh[C],Object.prototype.hasOwnProperty.call(r,w)&&(q[w]=r[w])}};
_.R4.filter=function(q,Z,w){var r={},Y;for(Y in q)Z.call(w,q[Y],Y,q)&&(r[Y]=q[Y]);return r};
_.R4.findKey=LeO;_.R4.findValue=function(q,Z,w){return(Z=LeO(q,Z,w))&&q[Z]};
_.R4.forEach=function(q,Z,w){for(var r in q)Z.call(w,q[r],r,q)};
_.R4.get=function(q,Z,w){return q!==null&&Z in q?q[Z]:w};
_.R4.getAllPropertyNames=function(q,Z,w){if(!q)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return ox9(q);for(var r={};q&&(q!==Object.prototype||Z)&&(q!==Function.prototype||w);){for(var Y=Object.getOwnPropertyNames(q),C=0;C<Y.length;C++)r[Y[C]]=!0;q=Object.getPrototypeOf(q)}return ox9(r)};
_.R4.getAnyKey=function(q){for(var Z in q)return Z};
_.R4.getAnyValue=function(q){for(var Z in q)return q[Z]};
_.R4.getCount=function(q){var Z=0,w;for(w in q)Z++;return Z};
_.R4.getKeys=ox9;_.R4.getSuperClass=function(q){return(q=Object.getPrototypeOf(q.prototype))&&q.constructor};
_.R4.getValueByKeys=function(q,Z){var w=_.pX(Z),r=w?Z:arguments;for(w=w?0:1;w<r.length;w++){if(q==null)return;q=q[r[w]]}return q};
_.R4.getValues=function(q){var Z=[],w=0,r;for(r in q)Z[w++]=q[r];return Z};
_.R4.isEmpty=function(q){for(var Z in q)return!1;return!0};
_.R4.isImmutableView=function(q){return!!Object.isFrozen&&Object.isFrozen(q)};
_.R4.map=function(q,Z,w){var r={},Y;for(Y in q)r[Y]=Z.call(w,q[Y],Y,q);return r};
_.R4.remove=function(q,Z){var w;(w=Z in q)&&delete q[Z];return w};
_.R4.set=function(q,Z,w){q[Z]=w};
_.R4.setIfUndefined=function(q,Z,w){return Z in q?q[Z]:q[Z]=w};
_.R4.setWithReturnValueIfNotSet=function(q,Z,w){if(Z in q)return q[Z];w=w();return q[Z]=w};
_.R4.some=function(q,Z,w){for(var r in q)if(Z.call(w,q[r],r,q))return!0;return!1};
_.R4.transpose=function(q){var Z={},w;for(w in q)Z[q[w]]=w;return Z};
_.R4.unsafeClone=S3T;var WFv,o8X,uDX,LF7,Fe,v81,JcJ,zZD,Bb7;WFv=function(q,Z,w,r,Y,C,d){var O="";q&&(O+=q+":");w&&(O+="//",Z&&(O+=Z+"@"),O+=w,r&&(O+=":"+r));Y&&(O+=Y);C&&(O+="?"+C);d&&(O+="#"+d);return O};
o8X=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.cF=function(q){return q.match(o8X)};
_.tW=function(q,Z){return q?Z?decodeURI(q):decodeURIComponent(q):q};
uDX=function(q){q=_.cF(q)[1]||null;!q&&_.$1.self&&_.$1.self.location&&(q=_.$1.self.location.protocol.slice(0,-1));return q?q.toLowerCase():""};
_.MR=function(q){return _.tW(_.cF(q)[3]||null,!0)};
_.gA=function(q){return _.tW(_.cF(q)[5]||null,!0)};
_.CwO=function(q){var Z=q.indexOf("#");return Z<0?null:q.slice(Z+1)};
LF7=function(q){q=_.cF(q);return WFv(q[1],q[2],q[3],q[4])};
_.S62=function(q){q=_.cF(q);return WFv(q[1],null,q[3],q[4])};
_.UP=function(q){q=_.cF(q);return WFv(null,null,null,null,q[5],q[6],q[7])};
_.N$=function(q){var Z=q.indexOf("#");return Z<0?q:q.slice(0,Z)};
Fe=function(q,Z){q=_.cF(q);Z=_.cF(Z);return q[3]==Z[3]&&q[1]==Z[1]&&q[4]==Z[4]};
v81=function(q,Z){if(q){q=q.split("&");for(var w=0;w<q.length;w++){var r=q[w].indexOf("="),Y=null;if(r>=0){var C=q[w].substring(0,r);Y=q[w].substring(r+1)}else C=q[w];Z(C,Y?lO(Y):"")}}};
_.jq1=function(q){var Z=q.indexOf("#");Z<0&&(Z=q.length);var w=q.indexOf("?");if(w<0||w>Z){w=Z;var r=""}else r=q.substring(w+1,Z);return[q.slice(0,w),r,q.slice(Z)]};
_.tVm=function(q,Z){return Z?q?q+"&"+Z:Z:q};
_.RZ7=function(q,Z){if(!Z)return q;q=_.jq1(q);q[1]=_.tVm(q[1],Z);return q[0]+(q[1]?"?"+q[1]:"")+q[2]};
_.bl1=function(q,Z,w){if(Array.isArray(Z))for(var r=0;r<Z.length;r++)_.bl1(q,String(Z[r]),w);else Z!=null&&w.push(q+(Z===""?"":"="+_.Tj(Z)))};
_.ZL=function(q){var Z=[],w;for(w in q)_.bl1(w,q[w],Z);return Z.join("&")};
_.Iz=function(q,Z){Z=_.ZL(Z);return _.RZ7(q,Z)};
_.Ov=function(q,Z,w){w=w!=null?"="+_.Tj(w):"";return _.RZ7(q,Z+w)};
JcJ=function(q,Z,w,r){for(var Y=w.length;(Z=q.indexOf(w,Z))>=0&&Z<r;){var C=q.charCodeAt(Z-1);if(C==38||C==63)if(C=q.charCodeAt(Z+Y),!C||C==61||C==38||C==35)return Z;Z+=Y+1}return-1};
zZD=/#|$/;_.xi=function(q,Z){var w=q.search(zZD),r=JcJ(q,0,Z,w);if(r<0)return null;var Y=q.indexOf("&",r);if(Y<0||Y>w)Y=w;r+=Z.length+1;return lO(q.slice(r,Y!==-1?Y:0))};
Bb7=/[?&]($|#)/;_.pp=function(q,Z){for(var w=q.search(zZD),r=0,Y,C=[];(Y=JcJ(q,r,Z,w))>=0;)C.push(q.substring(r,Y)),r=Math.min(q.indexOf("&",Y)+1||w,w);C.push(q.slice(r));return C.join("").replace(Bb7,"$1")};
_.nb=function(q,Z,w){return _.Ov(_.pp(q,Z),Z,w)};var Hr=function(q,Z,w,r,Y){this.allowedElements=q;this.elementPolicies=Z;this.allowedGlobalAttributes=w;this.globalAttributePolicies=r;this.globallyAllowedAttributePrefixes=Y},alX=function(q,Z,w){w=q.elementPolicies.get(w);
return(w==null?0:w.has(Z))?w.get(Z):q.allowedGlobalAttributes.has(Z)?{policyAction:1}:(w=q.globalAttributePolicies.get(Z))?w:q.globallyAllowedAttributePrefixes&&[].concat(_.Ju(q.globallyAllowedAttributePrefixes)).some(function(r){return Z.indexOf(r)===0})?{policyAction:1}:{policyAction:0}};var n8g="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(" "),
Qqm=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["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}]])]],E8J="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 crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
xS2=[["dir",{policyAction:3,conditions:H8(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:H8(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:H8(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:H8(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],Tb7=new Hr(new Set(n8g),new Map(Qqm),new Set(E8J),new Map(xS2)),US7=new Hr(new Set(n8g.concat(["BUTTON",
"INPUT"])),new Map(Qqm),new Set(H8(function(){return E8J.concat(["class","id","name"])})),new Map(H8(function(){return xS2.concat([["style",
{policyAction:1}]])})));var kuX,KFW,IlD;kuX=function(q,Z,w,r){this.JSC$7166_sanitizerTable=q;this.styleElementSanitizer=Z;this.styleAttributeSanitizer=w;this.JSC$7166_resourceUrlPolicy=r;this.changes=[]};
_.sq2=function(q,Z){var w=document.implementation.createHTMLDocument("");q=KFW(q,Z,w);w=w.body;w.appendChild(q);w=(new XMLSerializer).serializeToString(w);w=w.slice(w.indexOf(">")+1,w.lastIndexOf("</"));return I9(w)};
KFW=function(q,Z,w){Z=RT9(Z,w);Z=document.createTreeWalker(Z,5,function(O){if(O.nodeType===3)O=1;else if(Jj1(O))if(O=bCj(O),O===null)O=2;else{var H=q.JSC$7166_sanitizerTable;O=O!=="FORM"&&(H.allowedElements.has(O)||H.elementPolicies.has(O))?1:2}else O=2;return O});
for(var r=Z.nextNode(),Y=w.createDocumentFragment(),C=Y;r!==null;){var d=void 0;if(r.nodeType===3)q.styleElementSanitizer&&C.nodeName==="STYLE"?(r=q.styleElementSanitizer(r.data),d=q.createTextNode(r)):d=q.createTextNode(r.data);else if(Jj1(r))d=IlD(q,r,w);else throw Error("da");C.appendChild(d);if(r=Z.firstChild())C=d;else for(;!(r=Z.nextSibling())&&(r=Z.parentNode());)C=C.parentNode}return Y};
kuX.prototype.createTextNode=function(q){return document.createTextNode(q)};
IlD=function(q,Z,w){var r,Y=bCj(Z);w=w.createElement(Y);Z=Z.attributes;for(var C=_.P(Z),d=C.next();!d.done;d=C.next()){var O=d.value;d=O.name;O=O.value;var H=alX(q.JSC$7166_sanitizerTable,d,Y);a:{if(r=H.conditions){r=_.P(r);for(var L=r.next();!L.done;L=r.next()){var S=_.P(L.value);L=S.next().value;S=S.next().value;var v=void 0;if((L=(v=Z.getNamedItem(L))==null?void 0:v.value)&&!S.has(L)){r=!1;break a}}}r=!0}if(r)switch(H.policyAction){case 1:g9(w,d,O);break;case 2:H=_.GaO(O);O=H!==void 0&&zmW.indexOf(H.toLowerCase())!==
-1?O:"about:invalid#zClosurez";g9(w,d,O);break;case 3:g9(w,d,O.toLowerCase());break;case 4:q.styleAttributeSanitizer?(O=q.styleAttributeSanitizer(O),g9(w,d,O)):g9(w,d,O);break;case 5:q.JSC$7166_resourceUrlPolicy?(H={type:2,attributeName:d,elementName:Y},O=th8(O),(O=q.JSC$7166_resourceUrlPolicy(O,H))&&g9(w,d,O.toString())):g9(w,d,O);break;case 6:if(q.JSC$7166_resourceUrlPolicy){H={type:2,attributeName:d,elementName:Y};r=[];O=_.P(O.split(","));for(L=O.next();!L.done;L=O.next())S=_.P(L.value.trim().split(/\s+/,
2)),L=S.next().value,S=S.next().value,r.push({url:L,descriptor:S});O={parts:[]};r=_.P(r);for(L=r.next();!L.done;L=r.next())L=L.value,S=th8(L.url),(S=q.JSC$7166_resourceUrlPolicy(S,H))&&O.parts.push({url:S.toString(),descriptor:L.descriptor});g9(w,d,zTj(O))}else g9(w,d,O)}}return w};
_.cc1=H8(function(){return new kuX(Tb7)});
_.MV7=H8(function(){return new kuX(US7)});var FF7=function(){this.calledBuild=!1;this.JSC$7178_sanitizerTable=Tb7},NbJ=function(){FF7.apply(this,arguments)};
_.z(NbJ,FF7);NbJ.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new kuX(this.JSC$7178_sanitizerTable,void 0,void 0,this.JSC$7178_resourceUrlPolicy)};var llW=/[^#]*/;var XN2=function(q){try{return!!q&&q.location.href!=null&&y19(q,"foo")}catch(Z){return!1}},py9=function(q){var Z=Gu1;
if(Z)for(var w in Z)Object.prototype.hasOwnProperty.call(Z,w)&&q(Z[w],w,Z)},Xy2=function(){var q=[];
py9(function(Z){q.push(Z)});
return q},Gu1={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"},mS7=_.dM(function(){return Xy2()}),flD=function(){var q=Ac1("IFRAME"),
Z={};
_.Uq(mS7(),function(w){q.sandbox&&q.sandbox.supports&&q.sandbox.supports(w)&&(Z[w]=!0)});
return Z},Ac1=function(q,Z){Z=Z===void 0?document:Z;
return Z.createElement(String(q).toLowerCase())};var Wr=function(q){this.context=q};
Wr.prototype.isSupported=function(q){return(q==null?0:q.attributionEnabled)||(q==null?void 0:q.beaconMethod)==="POST"||(q==null?0:q.customHeaders)||(q==null?0:q.customBody)||(q==null?0:q.keepAlive)?!1:!ez(this.context)};
Wr.prototype.ping=function(){var q=this;return S8(_.Ta.apply(0,arguments).map(function(Z){try{var w=q.context.global,r=!1;r=r===void 0?!1:r;w.google_image_requests||(w.google_image_requests=[]);var Y=Ac1("IMG",w.document);r&&(Y.attributionSrc="");Y.src=Z;w.google_image_requests.push(Y);return!0}catch(C){return!1}}).every(function(Z){return Z}))};
Wr.prototype.pingWithHeadersAndBody=function(q,Z,w){this.ping.apply(this,_.Ju(_.Ta.apply(3,arguments)))};var DS7=function(q){this.context=q};
DS7.prototype.isSupported=function(q){return hZW&&!ez(this.context)&&aMO(this.context)!==void 0&&!(q==null?0:q.attributionEnabled)&&(q==null?void 0:q.beaconMethod)!=="POST"&&!(q==null?0:q.customHeaders)&&!(q==null?0:q.customBody)};
DS7.prototype.makeBeacon=function(q,Z){if(!this.isSupported(Z))throw new wM;return new or(this.context,q)};
var hZW=!1,or=function(q,Z){this.context=q;this.JSC$7200_urlWithoutToken=Z;q=aMO(this.context);if(q===void 0)throw Error();this.wrappedBeacon=new q(ycg(this),{})},ycg=function(q){q=q.JSC$7200_urlWithoutToken;
return(q.slice(-1)[0]==="&"?q:q+"&")+"pbapi=1"};
or.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
or.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
or.prototype.setHeader=function(){};
_.My.Object.defineProperties(or.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7200_urlWithoutToken},
set:function(q){this.JSC$7200_urlWithoutToken=q;this.wrappedBeacon.setURL(ycg(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(q){if(q!=="GET")throw new wM;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var ilK=function(q){this.context=q};
ilK.prototype.isSupported=function(q){if((q==null?0:q.attributionEnabled)||(q==null?void 0:q.beaconMethod)==="GET"||(q==null?0:q.customHeaders)||(q==null?0:q.customBody)||(q==null?0:q.keepAlive))return!1;var Z;return!ez(this.context)&&((Z=this.context.global.navigator)==null?void 0:Z.sendBeacon)!==void 0};
ilK.prototype.ping=function(){var q=this;return S8(_.Ta.apply(0,arguments).map(function(Z){var w;return(w=q.context.global.navigator)==null?void 0:w.sendBeacon(Z)}).every(function(Z){return Z}))};
ilK.prototype.pingWithHeadersAndBody=function(q,Z,w){this.ping.apply(this,_.Ju(_.Ta.apply(3,arguments)))};var P3=function(q){this.value=q},Nu=function(q,Z){return S8(q.value).pipe(eh(Z))},Gx=new P3(!1),V92=new P3(!0);var Tx=function(q){this.value=q;this.releasedSubject=new wD};
Tx.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.My.Object.defineProperties(Tx.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7213_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var FeN=["FRAME","IMG","IFRAME"],kx9=/^[01](px)?$/,MhT=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},cjN=function(){var q=new MhT;
q.crossDomainLoadedDefault=!0;q.pendingImagesBlockLoad=!0;return q};var g82=function(q,Z){var w=Aj8(q);if(w)if(w.onCreativeLoad)w.onCreativeLoad(Z);else{var r=Z?[Z]:[],Y=function(C){for(var d=0;d<r.length;++d)try{r[d](1,C)}catch(O){}r={push:function(O){O(1,C)}}};
w.onCreativeLoad=function(C){r.push(C)};
w.setAttribute("data-creative-load-listener","");w.addEventListener("creativeLoad",function(C){Y(C.detail)});
_.$1.addEventListener("message",function(C){muT(w,Y,C)})}};var u4=function(q,Z){var w=this;this.global=q;this.parentContext=Z;this.JSC$7224_onVisibilityChange=this.document?xq(S8(!0),Q2(this.document,"visibilitychange")).pipe(K_(this.parentContext.performanceMonitor,748),bb(function(){return w.getVisibilityState()}),Fd()):S8("visible");
this.document?Q2(this.document,"DOMContentLoaded").pipe(K_(this.parentContext.performanceMonitor,739),MX(1)):S8(TDT("DOMContentLoaded"))},dRj=function(q){return q.document!==null&&q.document.visibilityState!==void 0};
u4.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
u4.prototype.querySelector=function(q){return this.document?this.document.querySelector(q):null};
u4.prototype.querySelectorAll=function(q){return this.document?_.Ge(this.document.querySelectorAll(q)):[]};
u4.prototype.elementFromPoint=function(q,Z){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;q=this.document.elementFromPoint(q,Z);return q===null?null:new Tx(q)};
var i7T=function(q,Z,w){w=w===void 0?!1:w;if(Z.ref===void 0||!q.document)return S8(Z).pipe(K_(q.parentContext.performanceMonitor,749));var r=new p_(1),Y=function(){r.next(Z)};
w||g82(Z.ref,Y);NDI(Z.ref,Y);return r.pipe(K_(q.parentContext.performanceMonitor,749),MX(1))};
_.My.Object.defineProperties(u4.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return y19(this.global,"document")?this.global.document||null:null}}});var fMT=_.Fr(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),Du9=_.Fr(["./reach_worklet.js"]),hTI=_.Fr(["./reach_worklet.js"]),qXv=_.Fr(["./reach_worklet.html"]),ZA7=_.Fr(["./reach_worklet.js"]),w8h=_.Fr(["./reach_worklet.js"]);_.qu(qXv);_.qu(ZA7);_.qu(w8h);var s3={left:0,top:0,width:0,height:0};var LI;_.a0=function(q,Z,w){return Math.min(Math.max(q,Z),w)};
LI=function(q,Z,w){return q+w*(Z-q)};_.B3=function(q,Z){this.x=q!==void 0?q:0;this.y=Z!==void 0?Z:0};
_.e=_.B3.prototype;_.e.clone=function(){return new _.B3(this.x,this.y)};
_.e.equals=function(q){return q instanceof _.B3&&(this==q?!0:this&&q?this.x==q.x&&this.y==q.y:!1)};
_.e.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.e.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.e.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.e.translate=function(q,Z){q instanceof _.B3?(this.x+=q.x,this.y+=q.y):(this.x+=Number(q),typeof Z==="number"&&(this.y+=Z));return this};
_.e.scale=function(q,Z){this.x*=q;this.y*=typeof Z==="number"?Z:q;return this};_.O3=function(q,Z){this.width=q;this.height=Z};
_.e=_.O3.prototype;_.e.clone=function(){return new _.O3(this.width,this.height)};
_.e.area=function(){return this.width*this.height};
_.e.aspectRatio=function(){return this.width/this.height};
_.e.isEmpty=function(){return!this.area()};
_.e.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.e.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.e.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.e.scale=function(q,Z){this.width*=q;this.height*=typeof Z==="number"?Z:q;return this};var zF=function(q,Z){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=q===u_X&&Z||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=rIe};
zF.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var YXm=function(q){return q instanceof zF&&q.constructor===zF&&q.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===rIe?q.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},rIe={},u_X={};
new zF(u_X,"");var o4,OJ,vr,$Kg,PgX,Cg9,a4,V6W,HA9,OAD,b4,Wmv,t6h,j9h,vvK,RdJ,bAh,JIJ,zd2,Uxj,Br7,nvg,Q9J,aFJ,Sz,xKe;o4=function(q){return q?new Sz(_.nC(q)):Ywj||(Ywj=new Sz)};
_.Ik=function(q,Z){return typeof Z==="string"?q.getElementById(Z):Z};
OJ=function(q,Z){return(Z||document).getElementsByTagName(String(q))};
_.edv=function(q){return $Kg("yt-formatted-string","paper-input-input",q)};
vr=function(q,Z,w,r){q=r||q;return(Z=Z&&Z!="*"?String(Z).toUpperCase():"")||w?q.querySelectorAll(Z+(w?"."+w:"")):q.getElementsByTagName("*")};
$Kg=function(q,Z,w){var r=document,Y=q&&q!="*"?String(q).toUpperCase():"";return Y||Z?(w||r).querySelector(Y+(Z?"."+Z:"")):vr(r,q,Z,w)[0]||null};
PgX=function(q,Z){_.R4.forEach(Z,function(w,r){r=="style"?q.style.cssText=w:r=="class"?q.className=w:r=="for"?q.htmlFor=w:Cg9.hasOwnProperty(r)?q.setAttribute(Cg9[r],w):_.Vj(r,"aria-")||_.Vj(r,"data-")?q.setAttribute(r,w):q[r]=w})};
Cg9={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"};_.H3=function(q){q=(q||window).document;q=q.compatMode=="CSS1Compat"?q.documentElement:q.body;return new _.O3(q.clientWidth,q.clientHeight)};
_.dKJ=function(q){var Z=_.jz(q);q=q.defaultView;return new _.B3(q.pageXOffset||Z.scrollLeft,q.pageYOffset||Z.scrollTop)};
_.jz=function(q){return q.scrollingElement?q.scrollingElement:_.YZ||q.compatMode!="CSS1Compat"?q.body||q.documentElement:q.documentElement};
a4=function(q){return q?q.defaultView:window};
_.t$=function(q,Z,w){return V6W(document,arguments)};
V6W=function(q,Z){var w=Z[1],r=OAD(q,String(Z[0]));w&&(typeof w==="string"?r.className=w:Array.isArray(w)?r.className=w.join(" "):PgX(r,w));Z.length>2&&HA9(q,r,Z,2);return r};
HA9=function(q,Z,w,r){function Y(O){O&&Z.appendChild(typeof O==="string"?q.createTextNode(O):O)}
for(;r<w.length;r++){var C=w[r];if(!_.pX(C)||_.DT(C)&&C.nodeType>0)Y(C);else{a:{if(C&&typeof C.length=="number"){if(_.DT(C)){var d=typeof C.item=="function"||typeof C.item=="string";break a}if(typeof C==="function"){d=typeof C.item=="function";break a}}d=!1}_.Uq(d?_.Ge(C):C,Y)}}};
_.dX=function(q){return OAD(document,q)};
OAD=function(q,Z){Z=String(Z);q.contentType==="application/xhtml+xml"&&(Z=Z.toLowerCase());return q.createElement(Z)};
_.Rr=function(){return document.createTextNode("\n")};
b4=function(q){if(q.nodeType!=1)return!1;switch(q.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};
Wmv=function(q,Z){HA9(_.nC(q),q,arguments,1)};
_.J$=function(q){for(var Z;Z=q.firstChild;)q.removeChild(Z)};
_.Br=function(q,Z){Z.parentNode&&Z.parentNode.insertBefore(q,Z)};
_.ar=function(q,Z){Z.parentNode&&Z.parentNode.insertBefore(q,Z.nextSibling)};
_.Vb=function(q){return q&&q.parentNode?q.parentNode.removeChild(q):null};
_.ov9=function(q,Z){var w=Z.parentNode;w&&w.replaceChild(q,Z)};
_.u59=function(q){var Z,w=q.parentNode;if(w&&w.nodeType!=11)if(q.removeNode)q.removeNode(!1);else{for(;Z=q.firstChild;)w.insertBefore(Z,q);_.Vb(q)}};
_.nI=function(q){return q.children!=void 0?q.children:Array.prototype.filter.call(q.childNodes,function(Z){return Z.nodeType==1})};
_.SXp=function(q){return q.nextElementSibling!==void 0?q.nextElementSibling:_.Lmm(q.nextSibling,!0)};
_.Lmm=function(q,Z){for(;q&&q.nodeType!=1;)q=Z?q.nextSibling:q.previousSibling;return q};
_.I$=function(q){return _.DT(q)&&q.nodeType==1};
_.EJ=function(q,Z){if(!q||!Z)return!1;if(q.contains&&Z.nodeType==1)return q==Z||q.contains(Z);if(typeof q.compareDocumentPosition!="undefined")return q==Z||!!(q.compareDocumentPosition(Z)&16);for(;Z&&q!=Z;)Z=Z.parentNode;return Z==q};
t6h=function(q,Z){if(q==Z)return 0;if(q.compareDocumentPosition)return q.compareDocumentPosition(Z)&2?1:-1;if("sourceIndex"in q||q.parentNode&&"sourceIndex"in q.parentNode){var w=q.nodeType==1,r=Z.nodeType==1;if(w&&r)return q.sourceIndex-Z.sourceIndex;var Y=q.parentNode,C=Z.parentNode;return Y==C?vvK(q,Z):!w&&_.EJ(Y,Z)?-1*j9h(q,Z):!r&&_.EJ(C,q)?j9h(Z,q):(w?q.sourceIndex:Y.sourceIndex)-(r?Z.sourceIndex:C.sourceIndex)}r=_.nC(q);w=r.createRange();w.selectNode(q);w.collapse(!0);q=r.createRange();q.selectNode(Z);
q.collapse(!0);return w.compareBoundaryPoints(_.$1.Range.START_TO_END,q)};
j9h=function(q,Z){var w=q.parentNode;if(w==Z)return-1;for(;Z.parentNode!=w;)Z=Z.parentNode;return vvK(Z,q)};
vvK=function(q,Z){for(;Z=Z.previousSibling;)if(Z==q)return-1;return 1};
RdJ=function(q){var Z,w=arguments.length;if(!w)return null;if(w==1)return arguments[0];var r=[],Y=Infinity;for(Z=0;Z<w;Z++){for(var C=[],d=arguments[Z];d;)C.unshift(d),d=d.parentNode;r.push(C);Y=Math.min(Y,C.length)}C=null;for(Z=0;Z<Y;Z++){d=r[0][Z];for(var O=1;O<w;O++)if(d!=r[O][Z])return C;C=d}return C};
_.nC=function(q){return q.nodeType==9?q:q.ownerDocument||q.document};
bAh=function(q){return q.contentDocument||q.contentWindow.document};
_.QW=function(q,Z){if("textContent"in q)q.textContent=Z;else if(q.nodeType==3)q.data=String(Z);else if(q.firstChild&&q.firstChild.nodeType==3){for(;q.lastChild!=q.firstChild;)q.removeChild(q.lastChild);q.firstChild.data=String(Z)}else _.J$(q),q.appendChild(_.nC(q).createTextNode(String(Z)))};
JIJ={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};zd2={IMG:" ",BR:"\n"};Uxj=function(q){var Z;q.tagName=="A"&&q.hasAttribute("href")||q.tagName=="INPUT"||q.tagName=="TEXTAREA"||q.tagName=="SELECT"||q.tagName=="BUTTON"?Z=!q.disabled&&(!q.hasAttribute("tabindex")||Br7(q)):Z=q.hasAttribute("tabindex")&&Br7(q);return Z};
Br7=function(q){q=q.tabIndex;return typeof q==="number"&&q>=0&&q<32768};
nvg=function(q){var Z=[];aFJ(q,Z,!0);q=Z.join("");q=q.replace(/ \xAD /g," ").replace(/\xAD/g,"");q=q.replace(/\u200B/g,"");q=q.replace(/ +/g," ");q!=" "&&(q=q.replace(/^\s*/,""));return q};
Q9J=function(q){var Z=[];aFJ(q,Z,!1);return Z.join("")};
aFJ=function(q,Z,w){if(!(q.nodeName in JIJ))if(q.nodeType==3)w?Z.push(String(q.nodeValue).replace(/(\r\n|\r|\n)/g,"")):Z.push(q.nodeValue);else if(q.nodeName in zd2)Z.push(zd2[q.nodeName]);else for(q=q.firstChild;q;)aFJ(q,Z,w),q=q.nextSibling};
_.Evh=function(q,Z,w){if(!Z&&!w)return null;var r=Z?String(Z).toUpperCase():null;return _.E3(q,function(Y){return(!r||Y.nodeName==r)&&(!w||typeof Y.className==="string"&&_.Mj(Y.className.split(/\s+/),w))},!0)};
_.E3=function(q,Z,w){q&&!w&&(q=q.parentNode);for(w=0;q;){if(Z(q))return q;q=q.parentNode;w++}return null};
Sz=function(q){this.JSC$7242_document_=q||_.$1.document||document};
xKe=function(q){return q.JSC$7242_document_};
_.e=Sz.prototype;_.e.getElement=function(q){return _.Ik(this.JSC$7242_document_,q)};
_.e.$=Sz.prototype.getElement;_.e.getElementsByTagName=function(q,Z){return(Z||this.JSC$7242_document_).getElementsByTagName(String(q))};
_.e.getElementsByTagNameAndClass=function(q,Z,w){return vr(this.JSC$7242_document_,q,Z,w)};
_.e.$$=Sz.prototype.getElementsByTagNameAndClass;_.e.setProperties=PgX;_.e.JSC$7244_createDom=function(q,Z,w){return V6W(this.JSC$7242_document_,arguments)};
_.e.createElement=function(q){return OAD(this.JSC$7242_document_,q)};
_.e.createTextNode=function(q){return this.JSC$7242_document_.createTextNode(String(q))};
_.e.getWindow=function(){return this.JSC$7242_document_.defaultView};
var W3=function(q){return _.dKJ(q.JSC$7242_document_)};
_.e=Sz.prototype;_.e.appendChild=function(q,Z){q.appendChild(Z)};
_.e.append=Wmv;_.e.canHaveChildren=b4;_.e.removeNode=_.Vb;_.e.getChildren=_.nI;_.e.contains=_.EJ;_.e=Vg.prototype;_.e.getWidth=function(){return this.right-this.left};
_.e.getHeight=function(){return this.bottom-this.top};
_.e.clone=function(){return new Vg(this.top,this.right,this.bottom,this.left)};
_.e.contains=function(q){return this&&q?q instanceof Vg?q.left>=this.left&&q.right<=this.right&&q.top>=this.top&&q.bottom<=this.bottom:q.x>=this.left&&q.x<=this.right&&q.y>=this.top&&q.y<=this.bottom:!1};
_.e.expand=function(q,Z,w,r){_.DT(q)?(this.top-=q.top,this.right+=q.right,this.bottom+=q.bottom,this.left-=q.left):(this.top-=q,this.right+=Number(Z),this.bottom+=Number(w),this.left-=Number(r));return this};
_.e.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};
_.e.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};
_.e.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};
_.e.translate=function(q,Z){q instanceof _.B3?(this.left+=q.x,this.right+=q.x,this.top+=q.y,this.bottom+=q.y):(this.left+=q,this.right+=q,typeof Z==="number"&&(this.top+=Z,this.bottom+=Z));return this};
_.e.scale=function(q,Z){Z=typeof Z==="number"?Z:q;this.left*=q;this.right*=q;this.top*=Z;this.bottom*=Z;return this};var Lt2=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Lt2,_.XD);Lt2.prototype.getVersion=function(){return _.bY(this,2)};var usI=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(usI,_.XD);var dbI=function(q,Z){return _.uM(q,2,Z)},oiN=function(q,Z){return _.uM(q,3,Z)};
usI.prototype.getModel=function(){return _.bY(this,4)};
var Ohz=function(q,Z){return _.uM(q,4,Z)},P6I=function(q,Z){return _.uM(q,5,Z)},Wtz=function(q,Z){return _.uM(q,9,Z)},C6O=function(q,Z){return Lc(q,10,Z)},eOz=function(q,Z){return _.ZA(q,11,Z)},VC1=function(q,Z){return _.uM(q,1,Z)},Hh2=function(q,Z){return _.ZA(q,7,Z)};var YJe="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var lM=function(q,Z,w,r){q=q===void 0?window:q;Z=Z===void 0?null:Z;w=w===void 0?new emv:w;r=r===void 0?yjj():r;D77.call(this);var Y=this;this.global=q;this.debugChannel=Z;this.performanceMonitor=w;this.onPageHide=FTX(function(){return Q2(Y.global,"pagehide")}).pipe(K_(this.performanceMonitor,941));
this.onLoad=FTX(function(){return Q2(Y.global,"load")}).pipe(K_(this.performanceMonitor,738),MX(1));
this.onResize=FTX(function(){return Q2(Y.global,"resize")}).pipe(K_(this.performanceMonitor,741));
this.onMessage=FTX(function(){return Q2(Y.global,"message")}).pipe(K_(this.performanceMonitor,740));
this.document=new u4(this.global,this);this.timeProvider=new ZlK(new rcg(this.intrinsicFunctionNamespace,this.performanceMonitor),new wy7(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new i9X(new $Sh(this),new DS7(this),new rM(this,new PCg(this)),new rM(this,new ilK(this)),new rM(this,new Wr(this)))};
_.z(lM,D77);var ez=function(q){var Z=q.global;return!!q.global.HTMLFencedFrameElement&&!!Z.fence&&typeof Z.fence.reportEvent==="function"};
_.e=lM.prototype;_.e.reportFencedFrameEvent=function(q){ez(this)&&this.global.fence.reportEvent(q)};
_.e.getOnBackgrounded=function(){return this.onPageHide.pipe(K_(this.performanceMonitor,942),eh(this.queue),bb(function(){}))};
_.e.postMessage=function(q,Z,w){w=w===void 0?[]:w;this.global.postMessage(q,Z,w)};
_.e.getWidth=function(){return XN2(this.global)?this.global.width:0};
_.e.getHeight=function(){return XN2(this.global)?this.global.height:0};
_.e.isMobile=function(){return VV7()||Olm()};
var U3=function(q,Z){try{var w=ZhX(Z,q.global,q.isMobile());return{left:w.left,top:w.top,width:w.getWidth(),height:w.getHeight()}}catch(r){return s3}};
lM.prototype.validate=function(){var q=this.beaconFactory.isSupported()||ez(this);return this.global&&this.timeProvider.available()&&q};
var Q4z=function(q){return(q=viz(q.global))?Pq(q):null};
_.My.Object.defineProperties(lM.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(q){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!XN2(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}}});_.Trp=!_.wS&&!_.djz();var Os2=function(q){return q};var W6X=function(q){return q.pipe(T$(function(Z){var w=Z.endOfSessionReason;var r;return((r=Z.viewable)==null?void 0:r.extrapolateToNow().value)||w!=void 0}),MX(1),I3())};var BXX=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},aA2=function(q){var Z=q.sequenceNumber.toString(10).padStart(2,"0");
Z=""+q.startTime+Z;q.sequenceNumber<99&&q.sequenceNumber++;return Z};var POX=Yq(y2(function(q){return q.endOfSessionReason===void 0}),bb(function(q){return Object.assign({},q,{timestamps:Sh(q)})}),T$(function(q){var Z=q.viewable;
q=q.timestamps;var w;return(w=Z==null?void 0:Z.extrapolateUsingTimestampMap(q).value)!=null?w:!1}),bb(function(q){var Z=q.beaconFactory;
var w=q.timestampedExposureHistory;var r=q.timeOnScreen;var Y=q.binaryContext;q=q.timestamps;if(Z===void 0||w===void 0||r===void 0||Y===void 0)return!1;if(r.extrapolateUsingTimestampMap(q).value.every(function(C){return C>=0}))return!0;
w=w.map(function(C){return C.timestamp+":"+C.value}).join(",");
r=niX({bin:Y,tos:r},q);Z.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+r+("&eh="+w)).sendNow();return!0}),y2(function(q){return!q}),I3());var Ei6=function(q){return{id:q.pingId,mcvt:q.maxConsecutiveViewTime,p:q.creativePosition,asp:q.adSpeedPosition,tm:q.totalMeasurementTime,tu:q.totalUnviewedTime,mtos:q.maxTimeOnScreen,tos:q.timeOnScreen,v:q.binaryVersion,bin:q.binaryContext,avms:q.measurementStrategy,bs:q.browserSize,mc:q.maximumExposure,"if":q.crossDomainIframeState,vu:q.delayedImpressionJsState,app:q.inApp,mse:q.mraidError,mtop:q.mraidSituation,itpl:q.injectedTemplateId,adk:q.adKey,exk:q.awbidKey,rs:q.requestSource,la:q.isLargeAd,
cr:q.isContentRecommendationAd,uach:q.userAgentClientHints,vs:q.viewState,r:q.reasonCode,pay:q.hasCpmavUrl,co:q.clientPingOrderCounter,rst:q.adRenderStartTime,rpt:q.adRenderPeriodTime,isd:q.initialScrollDepth,lsd:q.loadedScrollDepth,context:q.errorContext,msg:q.errorMessage,stack:q.errorStack,name:q.errorName,ec:q.hasElementChanged,sfr:q.strategyFailureReasons,met:q.creativeSearchResult,wmsd:q.webMeasurementStartDiagnostic,pv:q.pageVisible,epv:q.eosPageVisible,pbe:q.inStatefulBeaconExperiment,fle:q.inFetchLaterBeaconExperiment,
vae:q.inViewableAttributionExperiment,spb:q.supportsPendingBeacon,sfl:q.supportsFetchLater,ffslot:q.isFencedFrameSlotTurtlex,reach:q.sharedStorageReachMode,io2:q.v2VisibilityBitVector,rxdbg:q.rxDebugger,omida:q.omidAppId,omidp:q.omidPartner,omidpv:q.omidPartnerVersion,omidor:q.omidOcclusionReasons,omidv:q.omidVersion,omids:q.omidSessionType,omidam:q.omidAccessMode,omidct:q.omidCreativeType,omidia:q.omidInApp,omiddc:q.omidDeviceCategory,omidlat:q.omidLastActivity,omiddit:q.omidDeviceIdleTime,qid:q.errorEscapedQueryId}};var Hs9=function(q){var Z=[];return q.pipe(bb(function(w){var r=w.beaconFactory,Y=w.fetchBeaconFactory,C=w.timeOnScreen,d=w.timeOnScreenUrlPrefixes,O=w.payloadMapper,H=w.timeOnScreenPingId,L=w.timeOnScreenReason,S=w.urlSerializer,v=w.viewable,R=w.hasImpressionFired,B=w.inStatefulBeaconExperiment,n=w.supportsPendingBeacon,x=w.supportsFetchLater,K=w.turtlexReportEventData;if(!w.geometryMeasurable||!R||w.maxTimeOnScreen===void 0||C===void 0||d===void 0||O===void 0||H===void 0||S===void 0||r===void 0)return!1;
if(w.isTurtlex){if(L===void 0)return!1;d=w.reportFencedFrameEvent;if(!d)return!1;d({eventType:"active-view-time-on-screen",eventData:K!=null?K:"",destination:["buyer"]});return!0}if(!(B||x||L))return!1;K=Sh(w);var k;v=(k=v==null?void 0:v.extrapolateUsingTimestampMap(K).value)!=null?k:!1;k=S(Object.assign({},w,{pingId:H,viewState:v?4:3,reasonCode:L!=null?L:"u",payloadMapper:O,urlPrefixes:d}),K);if(B){for(;Z.length>d.length;)w=void 0,(w=Z.shift())==null||w.deactivate();k.forEach(function(rz,f){f>=Z.length?
Z.push(r.makeBeacon(rz)):Z[f].url=rz});
return n&&Y&&L!==void 0?(k.forEach(function(rz){Y.makeBeacon(rz).sendNow()}),!0):L!==void 0}if(n&&Y&&L!==void 0)return k.forEach(function(rz){Y.makeBeacon(rz).sendNow()}),!0;
if(x&&Y){for(;Z.length>d.length;)n=void 0,(n=Z.shift())==null||n.deactivate();var G=S(Object.assign({},w,{pingId:H,viewState:v?4:3,reasonCode:L!=null?L:"u",payloadMapper:O,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),K)[0];k.forEach(function(rz,f){f>=Z.length?Z.push(r.makeBeacon(G,{endOfSession:!0})):Z[f].url=G});
return L!==void 0?(k.forEach(function(rz){Y.makeBeacon(rz).sendNow()}),!0):L!==void 0}return L!==void 0?(k.forEach(function(rz){r.makeBeacon(rz).sendNow()}),!0):!1}),y2(function(w){return!w}),I3())};var oTj=Yq(T$(function(q){return q.immediateUrlPrefixes!==void 0&&q.payloadMapper!==void 0&&q.urlSerializer!==void 0&&q.inferredPingId!==void 0&&q.beaconFactory!==void 0}),T$(function(q){return c1T(q)!==null}),s1z(function(q){return q.activeViewUnmeasurableEvent},function(q){return q.emit}),bb(function(q){if(q.isTurtlex){var Z=q.reportFencedFrameEvent;
if(Z){var w;Z({eventType:"active-view-unmeasurable",eventData:(w=q.turtlexReportEventData)!=null?w:"",destination:["buyer"]})}}else{w=void 0;var r=c1T(q);if(r==="x"){var Y,C=(Y=q.geometricMeasurementErrors)!=null?Y:q.contextValidationErrors;C&&(Z=C.stack,w=C.message)}q.urlSerializer(Object.assign({},q,{urlPrefixes:q.immediateUrlPrefixes,payloadMapper:q.payloadMapper,pingId:q.inferredPingId,viewState:2,reasonCode:r,errorMessage:w,errorStack:Z}),Sh(q)).forEach(function(d){q.beaconFactory.makeBeacon(d).sendNow()})}}),
MX(1),I3());var MCe=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var COj=Yq(T$(function(q){return q.payloadMapper!==void 0&&q.immediateUrlPrefixes!==void 0&&q.urlSerializer!==void 0&&q.inferredPingId!==void 0&&q.beaconFactory!==void 0}),bb(function(q){return Object.assign({},q,{timestamps:Sh(q)})}),T$(function(q){var Z=q.viewable;
var w=q.hasImpressionFired;q=q.timestamps;var r;return!!w&&((r=Z==null?void 0:Z.extrapolateUsingTimestampMap(q).value)!=null?r:!1)}),s1z(function(q){return q.activeViewViewableEvent},function(q){return q.emit}),bb(function(q){var Z=q.beaconFactory,w=q.turtlexReportEventData;
if(q.isTurtlex){var r=q.reportFencedFrameEvent;if(!r)return!1;r({eventType:"active-view-viewable",eventData:w!=null?w:"",destination:["buyer"]});return!0}w=q.urlSerializer(Object.assign({},q,{urlPrefixes:q.immediateUrlPrefixes,payloadMapper:q.payloadMapper,pingId:q.inferredPingId,viewState:4,reasonCode:"v"}),q.timestamps);(r=q.cpmavUrls)&&r.length>0&&q.viewUrlSerializer&&q.viewUrlSerializer(r,q).forEach(function(Y){Z.makeBeacon(Y).sendNow()});
(r=q.viewableRelayUrls)&&r.length>0&&q.viewUrlSerializer&&q.viewUrlSerializer(r,q).forEach(function(Y){Z.makeBeacon(Y).sendNow()});
w.forEach(function(Y){Z.makeBeacon(Y,{attributionEnabled:q.isViewableAttributionEnabled}).sendNow()});
return!0}),y2(function(q){return!q}),I3());var E62=bb(function(q){return[q.value.topWindowViewportExternalGeometry.width,q.value.topWindowViewportExternalGeometry.height]});var kx=function(q,Z){this.callback=q;this.options=Z;this.intersectionObserverV2=this.intersectionObserverV1=null},H7j=function(q,Z){Z?q.intersectionObserverV2||(Z=Object.assign({},q.options,{delay:100,
trackVisibility:!0}),q.intersectionObserverV2=new IntersectionObserver(q.callback,Z)):q.intersectionObserverV1||(q.intersectionObserverV1=new IntersectionObserver(q.callback,q.options))},UKX=function(q,Z){q=Z?q.intersectionObserverV2:q.intersectionObserverV1;
if(!q)throw new hmv;return q};
kx.prototype.observe=function(q,Z){UKX(this,q).observe(Z)};
kx.prototype.unobserve=function(q,Z){UKX(this,q).unobserve(Z)};
kx.prototype.disconnect=function(q){UKX(this,q).disconnect()};
kx.prototype.takeRecords=function(q){return UKX(this,q).takeRecords()};var quj={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:s3,topWindowViewportExternalGeometry:s3,measurementRequests:new wD,elementGeometrySourceName:"ns",elementGeometry:s3,intersectionGeometry:s3,viewportLocalAppOffset:{x:0,y:0}};var Ev=function(q,Z,w,r){this.left=q;this.top=Z;this.width=w;this.height=r};
_.e=Ev.prototype;_.e.clone=function(){return new Ev(this.left,this.top,this.width,this.height)};
_.e.boundingRect=function(q){var Z=Math.max(this.left+this.width,q.left+q.width),w=Math.max(this.top+this.height,q.top+q.height);this.left=Math.min(this.left,q.left);this.top=Math.min(this.top,q.top);this.width=Z-this.left;this.height=w-this.top};
_.e.contains=function(q){return q instanceof _.B3?q.x>=this.left&&q.x<=this.left+this.width&&q.y>=this.top&&q.y<=this.top+this.height:this.left<=q.left&&this.left+this.width>=q.left+q.width&&this.top<=q.top&&this.top+this.height>=q.top+q.height};
_.e.distance=function(q){var Z=q.x<this.left?this.left-q.x:Math.max(q.x-(this.left+this.width),0);q=q.y<this.top?this.top-q.y:Math.max(q.y-(this.top+this.height),0);return Math.sqrt(Z*Z+q*q)};
_.e.getSize=function(){return new _.O3(this.width,this.height)};
_.e.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};
_.e.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};
_.e.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};
_.e.translate=function(q,Z){q instanceof _.B3?(this.left+=q.x,this.top+=q.y):(this.left+=q,typeof Z==="number"&&(this.top+=Z));return this};
_.e.scale=function(q,Z){Z=typeof Z==="number"?Z:q;this.left*=q;this.width*=q;this.top*=Z;this.height*=Z;return this};var Kme,Uv,ihT,T3,M62,cID,Fmv,zv1,Nr7,Ga2;_.xA=function(q,Z,w){if(typeof Z==="string")(Z=_.kaK(q,Z))&&(q.style[Z]=w);else for(var r in Z){w=q;var Y=Z[r],C=_.kaK(w,r);C&&(w.style[C]=Y)}};
Kme={};_.kaK=function(q,Z){var w=Kme[Z];if(!w){var r=_.Cp(Z);w=r;q.style[r]===void 0&&(r=(_.YZ?"Webkit":_.rS?"Moz":null)+kJ7(r),q.style[r]!==void 0&&(w=r));Kme[Z]=w}return w};
_.Oz=function(q,Z){var w=_.nC(q);return w.defaultView&&w.defaultView.getComputedStyle&&(q=w.defaultView.getComputedStyle(q,null))?q[Z]||q.getPropertyValue(Z)||"":""};
_.Qb=function(q,Z){return _.Oz(q,Z)||(q.currentStyle?q.currentStyle[Z]:null)||q.style&&q.style[Z]};
_.s9h=function(q){return _.Qb(q,"position")};
Uv=function(q,Z,w){if(Z instanceof _.B3){var r=Z.x;Z=Z.y}else r=Z,Z=w;q.style.left=T3(r,!1);q.style.top=T3(Z,!1)};
ihT=function(q){try{return q.getBoundingClientRect()}catch(Z){return{left:0,top:0,right:0,bottom:0}}};
_.Qg=function(q){var Z=_.nC(q),w=new _.B3(0,0);if(q==(Z?_.nC(Z):document).documentElement)return w;q=ihT(q);Z=W3(o4(Z));w.x=q.left+Z.x;w.y=q.top+Z.y;return w};
_.IFp=function(q,Z,w){if(Z instanceof _.O3)w=Z.height,Z=Z.width;else if(w==void 0)throw Error("sa");q.style.width=T3(Z,!0);q.style.height=T3(w,!0)};
T3=function(q,Z){typeof q=="number"&&(q=(Z?Math.round(q):q)+"px");return q};
M62=function(q){return cID(q)};
cID=function(q){var Z=Fmv;if(_.Qb(q,"display")!="none")return Z(q);var w=q.style,r=w.display,Y=w.visibility,C=w.position;w.visibility="hidden";w.position="absolute";w.display="inline";q=Z(q);w.display=r;w.position=C;w.visibility=Y;return q};
Fmv=function(q){var Z=q.offsetWidth,w=q.offsetHeight,r=_.YZ&&!Z&&!w;return(Z===void 0||r)&&q.getBoundingClientRect?(q=ihT(q),new _.O3(q.right-q.left,q.bottom-q.top)):new _.O3(Z,w)};
zv1=function(q){var Z=_.Qg(q);q=cID(q);return new Ev(Z.x,Z.y,q.width,q.height)};
Nr7=function(q,Z){q=q.style;"opacity"in q?q.opacity=Z:"MozOpacity"in q?q.MozOpacity=Z:"filter"in q&&(q.filter=Z===""?"":"alpha(opacity="+Number(Z)*100+")")};
_.sJ=function(q,Z){q.style.display=Z?"":"none"};
_.lFD=function(q){return"rtl"==_.Qb(q,"direction")};
Ga2=function(q){var Z=_.Oz(q,"marginLeft"),w=_.Oz(q,"marginRight"),r=_.Oz(q,"marginTop");q=_.Oz(q,"marginBottom");return new Vg(parseFloat(r),parseFloat(w),parseFloat(q),parseFloat(Z))};
_.p8p=function(q){var Z=_.Oz(q,"borderLeftWidth"),w=_.Oz(q,"borderRightWidth"),r=_.Oz(q,"borderTopWidth");q=_.Oz(q,"borderBottomWidth");return new Vg(parseFloat(r),parseFloat(w),parseFloat(q),parseFloat(Z))};var X8g=function(q){return q.intersectionGeometry.width*q.intersectionGeometry.height/(q.elementGeometry.width*q.elementGeometry.height)},v6I=I4(Yq(bb(function(q){var Z;
return(Z=q.exposureOverride)!=null?Z:X8g(q)}),bb(function(q){return isFinite(q)?q:0}))),BcT=I4(Yq(bb(function(q){var Z;
return(Z=q.exposureOverride)!=null?Z:X8g(q)}),bb(function(q){return isFinite(q)?q:-1})));var kA=function(q,Z){this.a=q;this.b=Z;if(q.clock.timeline!==Z.clock.timeline)throw Error();};
kA.prototype.equivalentTo=function(q){return q instanceof kA?this.a.equivalentTo(q.a)&&this.b.equivalentTo(q.b):!1};
kA.prototype.extrapolateToTime=function(q){var Z=this.a.extrapolateToTime(q).value,w=this.b.extrapolateToTime(q).value;return{timestamp:q,value:[Z,w]}};
_.My.Object.defineProperties(kA.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 q=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),Z=this.a.lastMeasurement.timestamp.equals(q)?this.a.lastMeasurement.value:this.a.extrapolateToTime(q).value,w=this.b.lastMeasurement.timestamp.equals(q)?this.b.lastMeasurement.value:this.b.extrapolateToTime(q).value;return{timestamp:q,value:[Z,w]}}}});var KI=function(q,Z){this.input=q;this.mapFunction=Z;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
KI.prototype.equivalentTo=function(q){return q instanceof KI?this.input.equivalentTo(q.input)&&this.mapFunction===q.mapFunction:!1};
KI.prototype.extrapolateToTime=function(q){q=this.input.extrapolateToTime(q);return{timestamp:q.timestamp,value:this.mapFunction(q.value)}};
_.My.Object.defineProperties(KI.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var sv=function(){};
sv.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
sv.prototype.extrapolateUsingTimestampMap=function(q){var Z=this.clock.timeline,w,r=(w=q.get(Z))!=null?w:this.clock.now();q.set(Z,r);return this.extrapolateToTime(r)};
sv.prototype.map=function(q){return new mKm(this,q)};
sv.prototype.joinWith=function(q){return new AIm(this,q)};
var AIm=function(){kA.apply(this,arguments);this.map=sv.prototype.map;this.joinWith=sv.prototype.joinWith;this.extrapolateToNow=sv.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=sv.prototype.extrapolateUsingTimestampMap};
_.z(AIm,kA);var mKm=function(){KI.apply(this,arguments);this.map=sv.prototype.map;this.joinWith=sv.prototype.joinWith;this.extrapolateToNow=sv.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=sv.prototype.extrapolateUsingTimestampMap};
_.z(mKm,KI);var Mu=function(q,Z){this.lastMeasurement=Z;this.extrapolateToNow=sv.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=sv.prototype.extrapolateUsingTimestampMap;this.map=sv.prototype.map;this.joinWith=sv.prototype.joinWith;this.clock=q};
Mu.prototype.equivalentTo=function(q){return q.active};
Mu.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.My.Object.defineProperties(Mu.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var QF2=bb(function(q){if(q.value.viewportGeometrySourceName==="omid"){if(q.value.elementGeometrySourceName==="nio")return"omio";if(q.value.elementGeometrySourceName==="geo")return"omgeo"}return q.value.elementGeometrySourceName==="geo"||q.value.elementGeometrySourceName==="nio"?q.value.viewportGeometrySourceName:q.value.elementGeometrySourceName});var u4e=Yq(T$(function(q){return!isNaN(q)}),f_(function(q,Z){return isNaN(q)?Z:Math.min(q,Z)},NaN),Fd());var jF8=I4(Yq(bb(function(q){return q.intersectionGeometry.width*q.intersectionGeometry.height/(q.exposedViewportLocalGeometry.width*q.exposedViewportLocalGeometry.height)}),bb(function(q){return isFinite(q)?Math.min(1,q):0})));var n69=Yq(I4(bb(function(q){q=q.exposureOverride?q.elementGeometry.width*q.elementGeometry.height*q.exposureOverride/(q.topWindowViewportExternalGeometry.width*q.topWindowViewportExternalGeometry.height):q.intersectionGeometry.width*q.intersectionGeometry.height/(q.topWindowViewportExternalGeometry.width*q.topWindowViewportExternalGeometry.height);return isFinite(q)?q:0})));var Uoj=function(q,Z){var w=this;this.timeProvider=q;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=Z.pipe(Fd()).subscribe(function(r){KP2(w);w.measurementRequestObserver=r})},sF8=function(q,Z){KP2(q);
q.lastMeasurementRequest=q.timeProvider.setTimeout(function(){var w;return void((w=q.measurementRequestObserver)==null?void 0:w.next())},Z)},KP2=function(q){q.lastMeasurementRequest!==null&&q.timeProvider.clearTimeout(q.lastMeasurementRequest);
q.lastMeasurementRequest=null};
Uoj.prototype.dispose=function(){KP2(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var fF7=function(){};var Yqj=function(q,Z){this.context=q;this.strategies=Z};
_.z(Yqj,fF7);Yqj.prototype.buildGeometrySource=function(q,Z){var w=this.strategies.map(function(C){return C.buildGeometrySource(q,Z)}),r=Nc8(w.map(function(C){return C.geometrySource})),Y=r.capturedErrors.pipe(DKD());
return{geometrySource:r.chain.pipe(eh(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:Y,strategyErrors:r.capturedErrors}].concat(_.Ju(w.map(function(C){return C.additionalOutputs}))))}};
var DKD=function(){return f_(function(q,Z){Z instanceof jh?q.push(Z.measurementStrategyFailureReason):q.push(-1);return q},[])};var eeT=function(q,Z){this.context=q;this.poller=Z};
_.z(eeT,fF7);eeT.prototype.buildGeometrySource=function(q,Z){var w=lBz(pNX(this.context,this.poller),Z7O(this.context,Z.requestSource));return{geometrySource:FP6(q.measurableCreative.pipe(w),Z.inApp),additionalOutputs:{}}};var $R2=function(q,Z,w){w=w===void 0?CSj(q,Z):w;this.context=q;this.intersectionObserverStrategy=w};
_.z($R2,fF7);$R2.prototype.buildGeometrySource=function(q,Z){var w=this.intersectionObserverStrategy(Z.useV2);return{geometrySource:FP6(q.measurableCreative.pipe(w,PS1(this.context)),Z.inApp),additionalOutputs:{}}};var hde=function(q,Z,w){var r=r===void 0?Symbol():r;this.element=q;this.immediateUrls=Z;this.timeOnScreenUrls=w;this.symbol=r};var Tc2=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),h2I=Object.freeze([1,.75,Tc2.exposureThreshold,Tc2.largeAdExposureThreshold,0]);var Jxe=function(q){var Z=Z===void 0?36E5:Z;var w=w===void 0?!0:w;this.creatives=new wD;this.elementsToUnregister=new wD;this.elementMap=new Map;var r=new lM(window,null);r.beaconFactory=new rM(r,new Wr(r));rfN(r,this.creatives,this.elementsToUnregister,q,Z,w).subscribe()},BvX=function(q,Z,w,r){if(!q.elementMap.has(Z)){var Y=new Tx(Z);
q.elementMap.set(Z,Y);q.creatives.next(new hde(Y,w,r))}},zz2=function(q,Z){q.elementsToUnregister.next(Z);
var w=q.elementMap.get(Z);w!==void 0&&(w.release(),q.elementMap.delete(Z))};var PmO=function(q){var Z=q.url;q=q.uaDataValues;this.JSC$7353_url_=Z;this.uaDataValues_=q;this.suid_=(new Date).getTime()-17040672E5},dxj=function(q){q=q.uaDataValues_;
if(!q)return"";var Z=pC("uap",q.platform)+pC("uapv",q.platformVersion)+pC("uafv",q.uaFullVersion)+pC("uaa",q.architecture)+pC("uam",q.model)+pC("uab",q.bitness);q.fullVersionList&&(Z+="&uafvl="+encodeURIComponent(q.fullVersionList.map(function(w){return encodeURIComponent(w.brand)+";"+encodeURIComponent(w.version)}).join("|")));
q.wow64!=null&&(Z+="&uaw="+Number(q.wow64));return Z.slice(1)};var yIW=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(yIW,_.XD);yIW.prototype.getId=function(){return _.bY(this,1)};var Ir=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Ir,_.XD);Ir.prototype.getSeconds=function(){return tz(this,1)};
Ir.prototype.setSeconds=function(q){return _.cy(this,1,$8(q),"0")};_.Uz=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(_.Uz,_.XD);_.Uz.prototype.getSeconds=function(){return tz(this,1)};
_.Uz.prototype.setSeconds=function(q){return _.cy(this,1,$8(q),"0")};
_.iAp=function(q){var Z=Number(zP(q,1));q=_.DM(q,2);return new Date(Z*1E3+q/1E6)};var cr=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(cr,_.XD);cr.prototype.getUrl=function(){return _.bY(this,1)};
cr.prototype.setUrl=function(q){return _.l2(this,1,q)};
cr.prototype.getHeight=function(){return _.DM(this,2)};
cr.prototype.getWidth=function(){return _.DM(this,3)};var Mf=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Mf,_.XD);Mf.prototype.getAspectRatio=function(){return Rl(this,1)};
Mf.prototype.setAspectRatio=function(q){return _.cy(this,1,_.N7(q),0)};
Mf.prototype.getDuration=function(){return _.Xy(this,Ir,2)};var gvp=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(gvp,_.XD);var qIp=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(qIp,_.XD);var Z_h=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Z_h,_.XD);var wqX=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(wqX,_.XD);var ru7=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(ru7,_.XD);var YIe=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(YIe,_.XD);var $Xe=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z($Xe,_.XD);var eB9=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(eB9,_.XD);var Cb9=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Cb9,_.XD);var Fb=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Fb,_.XD);var Nf=[2,4,5,6,7];var Pb2=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Pb2,_.XD);var SF=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(SF,_.XD);_.e=SF.prototype;_.e.getId=function(){return _.Xy(this,yIW,1)};
_.e.getName=function(){return _.bY(this,2)};
_.e.setDescription=function(q){return _.l2(this,3,q)};
_.e.getUrl=function(){return _.bY(this,8)};
_.e.setUrl=function(q){return _.l2(this,8,q)};
var l4=function(q){return _.Aj(q,cr,10,_.fC())};
SF.prototype.getOwner=function(q){var Z=_.U6(this,40,_.Hy,3,!0);mjX(Z,q);return Z[q]};
SF.prototype.getVersion=function(){return tz(this,45)};
var G3=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(G3,_.XD);_.dXm=[0,frT,hiz];_.V8v=[0,frT,hiz];var O_W=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(O_W,_.XD);var pI=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(pI,_.XD);pI.prototype.getStatus=function(){return _.Jz(this,1)};
pI.prototype.removeItem=function(q){return ou1(this,2,q)};var H_2=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(H_2,_.XD);H_2.prototype.getName=function(){return _.bY(this,8)};var Xb=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Xb,_.XD);Xb.prototype.getCommand=function(){return _.Jz(this,1)};
Xb.prototype.getSource=function(){return _.Xy(this,H_2,2)};
Xb.prototype.setVisible=function(q){return _.vk(this,5,q)};
Xb.prototype.removeItem=function(q){return ou1(this,7,q)};var WT7=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(WT7,_.XD);WT7.prototype.getCommand=function(){return _.Jz(this,1)};
WT7.prototype.removeItem=function(q){return ou1(this,4,q)};
var oqe=_.$v(WT7);var m9=function(q,Z,w){w=w===void 0?Error():w;var r=Error.call(this);this.message=r.message;"stack"in r&&(this.stack=r.stack);this.code=q;Z+=":";w instanceof Error?(this.message=Z+w.message,this.stack=w.stack||""):(this.message=Z+String(w),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(m9,Error);_.u6=function(){this.JSC$7411_disposed_=this.JSC$7411_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.u6.prototype.JSC$7411_disposed_=!1;_.u6.prototype.isDisposed=function(){return this.JSC$7411_disposed_};
_.u6.prototype.dispose=function(){this.JSC$7411_disposed_||(this.JSC$7411_disposed_=!0,this.disposeInternal())};
_.u6.prototype[Symbol.dispose]=function(){this.dispose()};
_.$i=function(q,Z){q.addOnDisposeCallback(_.Oh(_.Xg,Z))};
_.u6.prototype.addOnDisposeCallback=function(q,Z){this.JSC$7411_disposed_?Z!==void 0?q.call(Z):q():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),Z&&(q=q.bind(Z)),this.onDisposeCallbacks_.push(q))};
_.u6.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var A$=function(q){_.u6.call(this);this.wpc=q};
_.z(A$,_.u6);A$.prototype.ci2=function(){return this.wpc.f()};
A$.prototype.uXN=function(q){return this.wpc.c(q)};
A$.prototype.iQ=function(q){return this.wpc.m(Re9(q))};
A$.prototype.gZ=function(q){return this.wpc.mws(Re9(q))};
var me=function(q){_.u6.call(this);var Z=this;this.zU=q;this.aIt="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.w7W=void 0;this.xN7=this.zU.p;this.eqE=this.gE1.bind(this);this.addOnDisposeCallback(function(){return void ud1(Z)})};
_.z(me,_.u6);var LTJ=function(q){var Z;return _.V(function(w){if(w.nextAddress==1){if(!q.zU.wpc)throw new m9(30,"NWA");return q.lG1?w.return(q.lG1):_.W(w,q.zU.wpc(),2)}Z=w.yieldResult;q.lG1=new A$(Z);return w.return(q.lG1)})};
me.prototype.snapshot=function(q){return this.zU.s(Object.assign({},q.pP&&{c:q.pP},q.ei7&&{s:q.ei7},q.l0t!==void 0&&{p:q.l0t}))};
me.prototype.gE1=function(q){this.zU.e(q)};
me.prototype.oJ2=function(q,Z){return this.zU.c(q,Z,!1)};
var ud1=function(q){q.w7W!==void 0&&(q.aIt.forEach(function(Z){var w;(w=q.w7W)==null||w.removeEventListener(Z,q.eqE)}),q.w7W=void 0)};
me.prototype.hW0=function(){return this.zU.l()};var SI1,fI=function(){_.u6.apply(this,arguments);this.cbg=1;this[SI1]=this.dispose};
_.z(fI,_.u6);fI.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.cbg++;return this};
fI.prototype.dispose=function(){--this.cbg||_.u6.prototype.dispose.call(this)};
SI1=Symbol.dispose;var pF2=function(q){this.ozY=q;q.addNewEventMetric("/client_streamz/bg/frs",_.qb("mk"))};
pF2.prototype.record=function(q,Z){this.ozY.record("/client_streamz/bg/frs",q,Z)};
var fV8=function(q){this.gzY=q;q.addNewEventMetric("/client_streamz/bg/wrl",_.qb("mn"),iM("ac"),iM("sc"),_.qb("rk"),_.qb("mk"))};
fV8.prototype.record=function(q,Z,w,r,Y,C){this.gzY.record("/client_streamz/bg/wrl",q,Z,w,r,Y,C)};
var mRz=function(q){this.nzU=q;q.addNewCounter("/client_streamz/bg/ec",_.qb("en"),_.qb("mk"))};
mRz.prototype.increment=function(q,Z){this.nzU.JSC$7660_incrementCounter("/client_streamz/bg/ec",q,Z)};
var AfI=function(q){this.pqz=q;q.addNewEventMetric("/client_streamz/bg/el",_.qb("en"),_.qb("mk"))};
AfI.prototype.record=function(q,Z,w){this.pqz.record("/client_streamz/bg/el",q,Z,w)};
var XFX=function(q){this.wqR=q;q.addNewCounter("/client_streamz/bg/cec",iM("ec"),_.qb("mk"))};
XFX.prototype.increment=function(q,Z){this.wqR.JSC$7660_incrementCounter("/client_streamz/bg/cec",q,Z)};
var DR6=function(q){this.jmh=q;q.addNewCounter("/client_streamz/bg/po/csc",iM("cs"),_.qb("mk"))};
DR6.prototype.increment=function(q,Z){this.jmh.JSC$7660_incrementCounter("/client_streamz/bg/po/csc",q,Z)};
var heT=function(q){this.vzR=q;q.addNewCounter("/client_streamz/bg/po/ctav",_.qb("av"),_.qb("mk"))};
heT.prototype.increment=function(q,Z){this.vzR.JSC$7660_incrementCounter("/client_streamz/bg/po/ctav",q,Z)};
var yfX=function(q){this.f0Y=q;q.addNewCounter("/client_streamz/bg/po/cwsc",_.qb("su"),_.qb("mk"))};
yfX.prototype.increment=function(q,Z){this.f0Y.JSC$7660_incrementCounter("/client_streamz/bg/po/cwsc",q,Z)};var $4j=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z($4j,_.XD);var YkI=function(q,Z){return _.s6(q,3,Z,Wvz)};var vq9=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(vq9,_.XD);var j3W=[1,2,3];var t87=[0,j3W,_.ZX7,yRT,q2h];var RBJ=[0,_.MY,[0,XA8,_.Kc]];var b_h=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(b_h,_.XD);var JuX=[1,2,3];var zB9=[0,JuX,DFN,mFz,_.FH,RBJ];var B9J=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(B9J,_.XD);var aJp=[0,_.MY,t87,zB9];var nqm=[0,[1,2,3],_.FH,[0,_.cI,-1,_.Il],_.FH,[0,_.cI,-1,_.sg,_.Il],_.FH,[0,_.cI]];var Q3e=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Q3e,_.XD);Q3e.prototype.JSC$7480_serializeBinary=aFe([0,_.cI,nqm,w69,_.MY,aJp,ifT,guT]);var Eq7=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Eq7,_.XD);var UX1=function(q){var Z=new Q3e;Z=_.uM(Z,1,q.JSC$7596_metricName);var w=xXh(q);Z=_.s6(Z,3,w,_.db);w=[];for(var r=[],Y=_.P(q.cellMap.keys()),C=Y.next();!C.done;C=Y.next())r.push(C.value.split(","));for(Y=0;Y<r.length;Y++){C=r[Y];for(var d=q.cellType,O=q.getCells(C)||[],H=[],L=0;L<O.length;L++){var S=O[L],v=S&&S.cellValue;S=new b_h;switch(d){case 3:v=Number(v);Number.isFinite(v)&&Y7(S,1,JuX,$8(v));break;case 2:Y7(S,2,JuX,_.N7(Number(v)))}H.push(S)}d=H;for(O=0;O<d.length;O++){H=d[O];L=new B9J;H=_.CA(L,
2,H);L=[];S=T9p(q);for(v=0;v<S.length;v++){var R=S[v],B=C[v],n=new vq9;switch(R){case 3:Y7(n,1,j3W,V7(String(B)));break;case 2:R=Number(B);Number.isFinite(R)&&Y7(n,2,j3W,_.iX(R));break;case 1:Y7(n,3,j3W,V2N(B==="true"))}L.push(n)}Lc(H,1,L);w.push(H)}}Lc(Z,4,w);return Z};var k$J=function(q){if(!q)return"";if(/^about:(?:blank|srcdoc)$/.test(q))return window.origin||"";q.indexOf("blob:")===0&&(q=q.substring(5));q=q.split("#")[0].split("?")[0];q=q.toLowerCase();q.indexOf("//")==0&&(q=window.location.protocol+q);/^[\w\-]*:\/\//.test(q)||(q=window.location.href);var Z=q.substring(q.indexOf("://")+3),w=Z.indexOf("/");w!=-1&&(Z=Z.substring(0,w));w=q.substring(0,q.indexOf("://"));if(!w)throw Error("ua`"+q);if(w!=="http"&&w!=="https"&&w!=="chrome-extension"&&w!=="moz-extension"&&
w!=="file"&&w!=="android-app"&&w!=="chrome-search"&&w!=="chrome-untrusted"&&w!=="chrome"&&w!=="app"&&w!=="devtools")throw Error("va`"+w);q="";var r=Z.indexOf(":");if(r!=-1){var Y=Z.substring(r+1);Z=Z.substring(0,r);if(w==="http"&&Y!=="80"||w==="https"&&Y!=="443")q=":"+Y}return w+"://"+Z+q};var s39=function(q,Z,w){var r=String(_.$1.location.href);return r&&q&&Z?[Z,KT7(k$J(r),q,w||null)].join(" "):null},KT7=function(q,Z,w){var r=[],Y=[];
if((Array.isArray(w)?2:1)==1)return Y=[Z,q],_.Uq(r,function(O){Y.push(O)}),IJ2(Y.join(" "));
var C=[],d=[];_.Uq(w,function(O){d.push(O.key);C.push(O.value)});
w=Math.floor((new Date).getTime()/1E3);Y=C.length==0?[w,Z,q]:[C.join(":"),w,Z,q];_.Uq(r,function(O){Y.push(O)});
q=IJ2(Y.join(" "));q=[w,q];d.length==0||q.push(d.join(""));return q.join("_")},IJ2=function(q){var Z=ETj();
Z.update(q);return Z.digestString().toLowerCase()};var DI=function(q){this.JSC$7491_document_=q||{cookie:""}},cuX;
_.e=DI.prototype;_.e.isEnabled=function(){if(!_.$1.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};
_.e.set=function(q,Z,w){var r=!1;if(typeof w==="object"){var Y=w.sameSite;r=w.secure||!1;var C=w.domain||void 0;var d=w.path||void 0;var O=w.maxAge}if(/[;=\s]/.test(q))throw Error("wa`"+q);if(/[;\r\n]/.test(Z))throw Error("xa`"+Z);O===void 0&&(O=-1);w=C?";domain="+C:"";d=d?";path="+d:"";r=r?";secure":"";O=O<0?"":O==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+O*1E3)).toUTCString();this.JSC$7491_document_.cookie=q+"="+Z+w+d+O+r+(Y!=null?";samesite="+Y:"")};
_.e.get=function(q,Z){for(var w=q+"=",r=(this.JSC$7491_document_.cookie||"").split(";"),Y=0,C;Y<r.length;Y++){C=_.ii(r[Y]);if(C.lastIndexOf(w,0)==0)return C.slice(w.length);if(C==q)return""}return Z};
_.e.remove=function(q,Z,w){var r=this.containsKey(q);this.set(q,"",{maxAge:0,path:Z,domain:w});return r};
_.e.getKeys=function(){return cuX(this).keys};
_.e.getValues=function(){return cuX(this).values};
_.e.isEmpty=function(){return!this.JSC$7491_document_.cookie};
_.e.getCount=function(){return this.JSC$7491_document_.cookie?(this.JSC$7491_document_.cookie||"").split(";").length:0};
_.e.containsKey=function(q){return this.get(q)!==void 0};
_.e.containsValue=function(q){for(var Z=cuX(this).values,w=0;w<Z.length;w++)if(Z[w]==q)return!0;return!1};
_.e.clear=function(){for(var q=cuX(this).keys,Z=q.length-1;Z>=0;Z--)this.remove(q[Z])};
cuX=function(q){q=(q.JSC$7491_document_.cookie||"").split(";");for(var Z=[],w=[],r,Y,C=0;C<q.length;C++)Y=_.ii(q[C]),r=Y.indexOf("="),r==-1?(Z.push(""),w.push(Y)):(Z.push(Y.substring(0,r)),w.push(Y.substring(r+1)));return{keys:Z,values:w}};
_.Yr=new DI(typeof document=="undefined"?null:document);var mL1=function(){var q=_.$1.__SAPISID||_.$1.__APISID||_.$1.__3PSAPISID||_.$1.__1PSAPISID||_.$1.__OVERRIDE_SID;if(q)return!0;typeof document!=="undefined"&&(q=new DI(document),q=q.get("SAPISID")||q.get("APISID")||q.get("__Secure-3PAPISID")||q.get("__Secure-1PAPISID"));return!!q},M8p=function(q,Z,w,r){(q=_.$1[q])||typeof document==="undefined"||(q=(new DI(document)).get(Z));
return q?s39(q,w,r):null},cJ6=function(q){var Z=k$J(String(_.$1.location.href)),w=[];
if(mL1()){Z=Z.indexOf("https:")==0||Z.indexOf("chrome-extension:")==0||Z.indexOf("chrome-untrusted://new-tab-page")==0||Z.indexOf("moz-extension:")==0;var r=Z?_.$1.__SAPISID:_.$1.__APISID;r||typeof document==="undefined"||(r=new DI(document),r=r.get(Z?"SAPISID":"APISID")||r.get("__Secure-3PAPISID"));(r=r?s39(r,Z?"SAPISIDHASH":"APISIDHASH",q):null)&&w.push(r);Z&&((Z=M8p("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",q))&&w.push(Z),(q=M8p("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",q))&&w.push(q))}return w.length==
0?null:w.join(" ")};var FT9=function(){this.minSize=1024};
FT9.prototype.compress=function(q){var Z,w,r,Y;return _.V(function(C){switch(C.nextAddress){case 1:return Z=new CompressionStream("gzip"),w=(new Response(Z.readable)).arrayBuffer(),r=Z.writable.getWriter(),_.W(C,r.write((new TextEncoder).encode(q)),2);case 2:return _.W(C,r.close(),3);case 3:return Y=Uint8Array,_.W(C,w,4);case 4:return C.return(new Y(C.yieldResult))}})};
FT9.prototype.isSupported=function(q){return q<this.minSize?!1:typeof CompressionStream!=="undefined"};var N9h=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(N9h,_.XD);var h$=function(q,Z){this.intervalMs=q;this.callback=Z;this.enabled=!1;this.nowFn=function(){return _.hW()};
this.lastTimeMs=this.nowFn()};
h$.prototype.setInterval=function(q){this.intervalMs=q;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
h$.prototype.start=function(){var q=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){q.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
h$.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
h$.prototype.tick=function(){var q=this;if(this.enabled){var Z=Math.max(this.nowFn()-this.lastTimeMs,0);Z<this.intervalMs*.8?this.timer=setTimeout(function(){q.tick()},this.intervalMs-Z):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var lJg=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(lJg,_.XD);var G$D=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(G$D,_.XD);var pq9=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(pq9,_.XD);pq9.prototype.getTransmissionType=function(){return _.Jz(this,1)};var kj8=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(kj8,_.XD);kj8.prototype.getVersion=function(){return _.bY(this,2)};var yW=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(yW,_.XD);var UR6=function(q){Lc(K69,1,q)};
yW.prototype.getModel=function(){return _.bY(this,6)};
var Xqg=_.$v(yW);var mXJ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(mXJ,_.XD);var xRI=["platform","platformVersion","architecture","model","uaFullVersion"],K69=new yW,TAT=null;var Auv=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Auv,_.XD);var fJ2=function(q){return _.mh(q,1,1)};var DXg=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q,4)};
_.z(DXg,_.XD);_.i4=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q,36)};
_.z(_.i4,_.XD);_.i4.prototype.getExperimentIds=function(){return _.Xy(this,N9h,16)};var hBv=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q,19)};
_.z(hBv,_.XD);hBv.prototype.setLogSource=function(q){return _.mh(this,2,q)};
hBv.prototype.setScheduler=function(q){return _.mh(this,10,q)};var i_J=function(q,Z){this.isServiceWorkerScope=Z=Z===void 0?!1:Z;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new hBv;Number.isInteger(q)&&this.logRequest.setLogSource(q);Z||(this.locale=document.documentElement.getAttribute("lang"));yuK(this,new Auv)};
i_J.prototype.setLogSource=function(q){this.logRequest.setLogSource(q);return this};
var yuK=function(q,Z){_.CA(q.logRequest,1,Z);_.Jz(Z,1)||fJ2(Z);q.isServiceWorkerScope||(Z=gM(q),_.bY(Z,5)||_.uM(Z,5,q.locale));q.uach&&(Z=gM(q),_.Xy(Z,yW,9)||_.CA(Z,9,q.uach))},gq1=function(q,Z){q.transmissionType=Z},q31=function(q){var Z=Z===void 0?xRI:Z;
var w=q.isServiceWorkerScope?void 0:a4();w?szI(w,Z).then(function(r){q.uach=Xqg(r!=null?r:"[]");r=gM(q);_.CA(r,9,q.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},gM=function(q){q=_.Xy(q.logRequest,Auv,1);
var Z=_.Xy(q,mXJ,11);Z||(Z=new mXJ,_.CA(q,11,Z));return Z};
i_J.prototype.build=function(q,Z,w,r,Y,C){Z=Z===void 0?0:Z;w=w===void 0?0:w;r=r===void 0?null:r;Y=Y===void 0?0:Y;C=C===void 0?0:C;if(!this.isServiceWorkerScope){var d=gM(this);var O=new pq9;O=_.mh(O,1,this.transmissionType);O=_.ZA(O,2,this.isFinal);w=_.nc(O,3,w>0?w:void 0);w=_.nc(w,4,Y>0?Y:void 0);w=_.nc(w,5,C>0?C:void 0);Y=w.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;C=Y[_.P1]|0;w=S2(w,C)?w:new w.constructor(aq(Y,C,!0));_.CA(d,10,w)}d=this.logRequest.clone();w=Date.now().toString();d=
_.Am(d,4,$8(w));q=q.slice();q=Lc(d,3,q);r&&(d=new lJg,r=_.nc(d,13,r),d=new G$D,r=_.CA(d,2,r),d=new DXg,r=_.CA(d,1,r),r=_.mh(r,2,9),_.CA(q,18,r));Z&&_.OU(q,14,Z);return q};wX.prototype.currBackoffCount_=0;wX.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
wX.prototype.getValue=function(){return this.currValue_};
var ZCp=function(q){q.currBaseValue_=Math.min(q.maxValue_,q.currBaseValue_*q.backoffFactor_);q.currValue_=Math.min(q.maxValue_,q.currBaseValue_+(q.randomFactor_?Math.round(q.randomFactor_*(Math.random()-.5)*2*q.currBaseValue_):0));q.currBackoffCount_++};var CNX=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q,8)};
_.z(CNX,_.XD);var w37=_.$v(CNX);var PN2=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(PN2,_.XD);var qC;qC=new djW;var ZS=function(q){_.u6.call(this);var Z=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7569_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$7569_sendBeaconApiEnabled=!1;this.logSource=q.logSource;this.getAuthHeaderValue=
q.getAuthHeaderValue||function(){};
this.logRequestBuilder=new i_J(q.logSource,q.isServiceWorkerScope);this.network=q.network||null;this.productID=q.productID||null;this.clearcutUrl=q.urlOverride||null;this.sessionIndex=q.sessionIndex||null;this.disableAutomaticFlush=q.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!q.disableWithCredentials;this.isServiceWorkerScope=q.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!a4()&&!!a4().navigator&&a4().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(rjD())).searchParams&&!!(new URL(rjD())).searchParams.set;var w=fJ2(new Auv);yuK(this.logRequestBuilder,w);this.flushBackoff=new wX(1E4,3E5,.1);q=Y3h(this,q.backgroundJobDeferrer);this.JSC$7569_flushTimer=new h$(this.flushBackoff.getValue(),q);this.backupTimer=new h$(6E5,q);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){$u7(Z);
var r;(r=Z.metalogService)==null||r.flush()}}),document.addEventListener("pagehide",function(){$u7(Z);
var r;(r=Z.metalogService)==null||r.flush()}))};
_.z(ZS,_.u6);var Y3h=function(q,Z){return q.isBrowserSupported?Z?function(){Z().then(function(){q.flush()})}:function(){q.flush()}:function(){}};
ZS.prototype.disposeInternal=function(){$u7(this);this.JSC$7569_flushTimer.stop();this.backupTimer.stop();_.u6.prototype.disposeInternal.call(this)};
var eT7=function(q){q.clearcutUrl||(q.clearcutUrl=rjD());try{return(new URL(q.clearcutUrl)).toString()}catch(Z){return(new URL(q.clearcutUrl,a4().location.origin)).toString()}};
ZS.prototype.dispatch=function(q){if(q instanceof _.i4)this.log(q);else try{var Z=new _.i4,w=q.serialize();var r=_.uM(Z,8,w);this.log(r)}catch(Y){w_(this,4,1)}};
var w_=function(q,Z,w){q.metalogService&&q.metalogService.increment(Z,w)};
ZS.prototype.log=function(q){w_(this,2,1);if(this.isBrowserSupported){q=q.clone();var Z=this.sequencePosition++;q=_.OU(q,21,Z);this.componentId&&_.uM(q,26,this.componentId);Z=q;if(Ege(_.VM(Z,1))==null){var w=Date.now();w=Number.isFinite(w)?w.toString():"0";_.Am(Z,1,$8(w))}_.vI(Z,15)!=null||_.OU(Z,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(w=this.experimentIds.clone(),_.CA(Z,16,w));w_(this,1,1);Z=this.pendingEvents.length-1E3+1;Z>0&&(this.pendingEvents.splice(0,Z),this.numLogsDroppedSinceLastFlush+=
Z,w_(this,3,Z));this.pendingEvents.push(q);this.disableAutomaticFlush||this.JSC$7569_flushTimer.enabled||this.JSC$7569_flushTimer.start()}};
ZS.prototype.flush=function(q,Z){var w=this;if(this.pendingEvents.length===0)q&&q();else if(this.JSC$7569_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,CMX(this);else{var r=Date.now();if(this.noFlushUntilMs>r&&this.startWaitingMs<r)Z&&Z("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?gq1(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var Y=this.pendingEvents.length,
C=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),d=this.getAuthHeaderValue();if(d&&this.lastFailedAuth===d)Z&&Z("stale-auth-token");else{this.pendingEvents=[];this.JSC$7569_flushTimer.enabled&&this.JSC$7569_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;r=C.serialize();var O;this.JSC$7569_compressor&&this.JSC$7569_compressor.isSupported(r.length)&&
(O=this.JSC$7569_compressor.compress(r));var H=PMD(this,r,d),L=function(R){w.flushBackoff.reset();w.JSC$7569_flushTimer.setInterval(w.flushBackoff.getValue());if(R){var B=null;try{var n=JSON.stringify(JSON.parse(R.replace(")]}'\n","")));B=w37(n)}catch(x){}B&&(R=Number(tz(B,1,_.kg("-1"))),R>0&&(w.startWaitingMs=Date.now(),w.noFlushUntilMs=w.startWaitingMs+R),m7T(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,qC.fieldIndex),D7j(B,qC.fieldIndex),B=qC.ctor?qC.getExtensionFn(B,qC.ctor,qC.fieldIndex,
qC.JSC$6741_hasMessageId):qC.getExtensionFn(B,qC.fieldIndex,null,qC.JSC$6741_hasMessageId),B=B===null?void 0:B)&&(B=_.DM(B,1,-1),B!==-1&&(w.flushBackoff=new wX(B<1?1:B,3E5,.1),w.JSC$7569_flushTimer.setInterval(w.flushBackoff.getValue())))}q&&q();w.numRetriesSinceLastSuccessfulFlush=0},S=function(R,B){var n=_.Aj(C,_.i4,3,_.fC());
var x=Number(tz(C,14));ZCp(w.flushBackoff);w.JSC$7569_flushTimer.setInterval(w.flushBackoff.getValue());R===401&&d&&(w.lastFailedAuth=d);x&&(w.numLogsDroppedSinceLastFlush+=x);B===void 0&&(B=w.isRetryable(R));B&&(w.pendingEvents=n.concat(w.pendingEvents),w.disableAutomaticFlush||w.JSC$7569_flushTimer.enabled||w.JSC$7569_flushTimer.start());w_(w,7,1);Z&&Z("net-send-failed",R);++w.numRetriesSinceLastSuccessfulFlush},v=function(){w.network&&w.network.send(H,L,S)};
O?O.then(function(R){w_(w,5,Y);H.requestHeaders["Content-Encoding"]="gzip";H.requestHeaders["Content-Type"]="application/binary";H.body=R;H.bodyType=2;v()},function(){w_(w,6,Y);
v()}):v()}}}};
var PMD=function(q,Z,w){w=w===void 0?null:w;var r=r===void 0?q.withCredentials:r;var Y={},C=new URL(eT7(q));w&&(Y.Authorization=w);q.sessionIndex&&(Y["X-Goog-AuthUser"]=q.sessionIndex,C.searchParams.set("authuser",q.sessionIndex));q.pageId&&(Object.defineProperty(Y,"X-Goog-PageId",{value:q.pageId}),C.searchParams.set("pageId",q.pageId));return{url:C.toString(),body:Z,bodyType:1,requestHeaders:Y,requestType:"POST",withCredentials:r,timeoutMillis:q.timeoutMillis}},$u7=function(q){q.logRequestBuilder.isFinal=
!0;
q.flush();q.logRequestBuilder.isFinal=!1},CMX=function(q){duX(q,function(Z,w){Z=new URL(Z);
Z.searchParams.set("format","json");var r=!1;try{r=a4().navigator.sendBeacon(Z.toString(),w.serialize())}catch(Y){}r||(q.isSendBeaconSupported=!1);return r})},duX=function(q,Z){if(q.pendingEvents.length!==0){var w=new URL(eT7(q));
w.searchParams.delete("format");var r=q.getAuthHeaderValue();r&&w.searchParams.set("auth",r);w.searchParams.set("authuser",q.sessionIndex||"0");for(r=0;r<10&&q.pendingEvents.length;++r){var Y=q.pendingEvents.slice(0,32),C=q.logRequestBuilder.build(Y,q.numLogsDroppedSinceLastFlush,q.numRetriesSinceLastSuccessfulFlush,q.productID,q.persistedLogRecoveredCount,q.persistedLogExpiredCount);if(!Z(w.toString(),C)){++q.numRetriesSinceLastSuccessfulFlush;break}q.numLogsDroppedSinceLastFlush=0;q.numRetriesSinceLastSuccessfulFlush=
0;q.persistedLogRecoveredCount=0;q.persistedLogExpiredCount=0;q.pendingEvents=q.pendingEvents.slice(Y.length)}q.JSC$7569_flushTimer.enabled&&q.JSC$7569_flushTimer.stop()}};
ZS.prototype.isRetryable=function(q){return 500<=q&&q<600||q===401||q===0};
var rjD=function(){return"https://play.google.com/log?format=json&hasfast=true"};var Vh2=function(){this.abortSupported=typeof AbortController!=="undefined"};
Vh2.prototype.send=function(q,Z,w){var r=this,Y,C,d,O,H,L,S,v,R,B;return _.V(function(n){switch(n.nextAddress){case 1:return C=(Y=r.abortSupported?new AbortController:void 0)?setTimeout(function(){Y.abort()},q.timeoutMillis):void 0,_.d9(n,2,3),d=Object.assign({},{method:q.requestType,
headers:Object.assign({},q.requestHeaders)},q.body&&{body:q.body},q.withCredentials&&{credentials:"include"},{signal:q.timeoutMillis&&Y?Y.signal:null}),_.W(n,fetch(q.url,d),5);case 5:O=n.yieldResult;if(O.status!==200){(H=w)==null||H(O.status);n.jumpTo(3);break}if((L=Z)==null){n.jumpTo(7);break}return _.W(n,O.text(),8);case 8:L(n.yieldResult);case 7:case 3:_.V2(n);clearTimeout(C);_.Wq(n,0);break;case 2:S=_.o3(n);switch((v=S)==null?void 0:v.name){case "AbortError":(R=w)==null||R(408);break;default:(B=
w)==null||B(400)}n.jumpTo(3)}})};
Vh2.prototype.getTransmissionType=function(){return 4};_.Yi=function(q,Z){Z=Z===void 0?"0":Z;_.u6.call(this);this.logSource=q;this.sessionIndex=Z;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7587_clearExperimentIds=this.productID=null;this.JSC$7587_sendBeaconApiEnabled=!1;this.pageId=null};
_.z(_.Yi,_.u6);var ZYT=function(q,Z){q.buildLabel=Z;return q},qkz=function(q,Z){q.network=Z;
return q},rm8=function(q,Z){q.JSC$7587_clearExperimentIds=Z},gTT=function(q){q.JSC$7587_sendBeaconApiEnabled=!0;
return q};
_.Yi.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.Yi.prototype.build=function(){this.network||(this.network=new Vh2);var q=new ZS({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:cJ6,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.$i(this,q);if(this.buildLabel){var Z=this.buildLabel,w=gM(q.logRequestBuilder);
_.uM(w,7,Z)}q.JSC$7569_compressor=new FT9;this.componentId&&(q.componentId=this.componentId);this.productID&&(q.productID=this.productID);this.pageId&&(q.pageId=this.pageId);this.JSC$7587_clearExperimentIds&&((w=this.JSC$7587_clearExperimentIds)?(q.experimentIds||(q.experimentIds=new N9h),Z=q.experimentIds,w=w.serialize(),_.uM(Z,4,w)):q.experimentIds&&_.Am(q.experimentIds,4));this.JSC$7587_sendBeaconApiEnabled&&(q.JSC$7569_sendBeaconApiEnabled=q.isSendBeaconSupported);q31(q.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(q);return q};var eR6=function(q,Z,w,r,Y,C,d){q=q===void 0?-1:q;Z=Z===void 0?"":Z;w=w===void 0?"":w;r=r===void 0?!1:r;Y=Y===void 0?"":Y;_.u6.call(this);this.logSource=q;this.componentId=Z;C?Z=C:(q=new _.Yi(q,"0"),q.componentId=Z,_.$i(this,q),w!==""&&(q.destinationUrl=w),r&&(q.serviceWorkerScopeEnabled=!0),Y&&ZYT(q,Y),d&&qkz(q,d),Z=q.build());this.JSC$7591_transport=Z};
_.z(eR6,_.u6);eR6.prototype.flush=function(q){q=q||[];if(q.length){for(var Z=new Eq7,w=[],r=0;r<q.length;r++){var Y=q[r],C=UX1(Y);w.push(C);Y.clear()}Lc(Z,1,w);this.JSC$7591_transport.dispatch(Z);this.JSC$7591_transport.flush()}};var OCm=function(q){this.cellValue=q};var r_=function(q,Z,w){this.JSC$7596_metricName=q;this.cellType=Z;this.fields=w||[];this.cellMap=new Map},T9p=function(q){return q.fields.map(function(Z){return Z.fieldType})},xXh=function(q){return q.fields.map(function(Z){return Z.fieldName})};
_.e=r_.prototype;_.e.addCell=function(q){var Z=_.Ta.apply(1,arguments),w=this.getCells(Z);w?w.push(new OCm(q)):this.JSC$7596_setCell(q,Z)};
_.e.JSC$7596_setCell=function(q){var Z=this.JSC$7596_getKey(_.Ta.apply(1,arguments));this.cellMap.set(Z,[new OCm(q)])};
_.e.getCells=function(){var q=this.JSC$7596_getKey(_.Ta.apply(0,arguments));return this.cellMap.has(q)?this.cellMap.get(q):void 0};
_.e.getCell=function(){var q=this.getCells(_.Ta.apply(0,arguments));return q&&q.length?q[0]:void 0};
_.e.clear=function(){this.cellMap.clear()};
_.e.JSC$7596_getKey=function(){var q=_.Ta.apply(0,arguments);return q?q.join(","):"key"};var HCg=function(q,Z){r_.call(this,q,3,Z)};
_.z(HCg,r_);HCg.prototype.JSC$7599_incrementCounterBy=function(q){var Z=_.Ta.apply(1,arguments),w=0,r=this.getCell(Z);r&&(w=r.cellValue);this.JSC$7596_setCell(w+q,Z)};var Wee=function(q,Z){r_.call(this,q,2,Z)};
_.z(Wee,r_);Wee.prototype.record=function(q){this.addCell(q,_.Ta.apply(1,arguments))};_.Y2=function(q){this.id=q};
_.Y2.prototype.toString=function(){return this.id};_.$2=function(q,Z){this.type=q instanceof _.Y2?String(q):q;this.currentTarget=this.target=Z;this.defaultPrevented=this.propagationStopped_=!1};
_.$2.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.$2.prototype.preventDefault=function(){this.defaultPrevented=!0};_.e3=function(q,Z){_.$2.call(this,q?q.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;q&&this.init(q,Z)};
_.yU(_.e3,_.$2);
_.e3.prototype.init=function(q,Z){var w=this.type=q.type,r=q.changedTouches&&q.changedTouches.length?q.changedTouches[0]:null;this.target=q.target||q.srcElement;this.currentTarget=Z;Z=q.relatedTarget;Z||(w=="mouseover"?Z=q.fromElement:w=="mouseout"&&(Z=q.toElement));this.relatedTarget=Z;r?(this.clientX=r.clientX!==void 0?r.clientX:r.pageX,this.clientY=r.clientY!==void 0?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.offsetX=_.YZ||q.offsetX!==void 0?q.offsetX:q.layerX,
this.offsetY=_.YZ||q.offsetY!==void 0?q.offsetY:q.layerY,this.clientX=q.clientX!==void 0?q.clientX:q.pageX,this.clientY=q.clientY!==void 0?q.clientY:q.pageY,this.screenX=q.screenX||0,this.screenY=q.screenY||0);this.button=q.button;this.keyCode=q.keyCode||0;this.key=q.key||"";this.charCode=q.charCode||(w=="keypress"?q.keyCode:0);this.ctrlKey=q.ctrlKey;this.altKey=q.altKey;this.shiftKey=q.shiftKey;this.metaKey=q.metaKey;this.pointerId=q.pointerId||0;this.pointerType=q.pointerType;this.state=q.state;
this.timeStamp=q.timeStamp;this.event_=q;q.defaultPrevented&&_.e3.superClass_.preventDefault.call(this)};
_.e3.prototype.stopPropagation=function(){_.e3.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.e3.prototype.preventDefault=function(){_.e3.superClass_.preventDefault.call(this);var q=this.event_;q.preventDefault?q.preventDefault():q.returnValue=!1};var ox7="closure_listenable_"+(Math.random()*1E6|0),CN=function(q){return!(!q||!q[ox7])};var ugm=0;var Le2=function(q,Z,w,r,Y){this.listener=q;this.proxy=null;this.src=Z;this.type=w;this.capture=!!r;this.handler=Y;this.key=++ugm;this.removed=this.callOnce=!1},S3e=function(q){q.removed=!0;
q.listener=null;q.proxy=null;q.src=null;q.handler=null};rX.prototype.add=function(q,Z,w,r,Y){var C=q.toString();q=this.listeners[C];q||(q=this.listeners[C]=[],this.typeCount_++);var d=vxX(q,Z,r,Y);d>-1?(Z=q[d],w||(Z.callOnce=!1)):(Z=new Le2(Z,this.src,C,!!r,Y),Z.callOnce=w,q.push(Z));return Z};
rX.prototype.remove=function(q,Z,w,r){q=q.toString();if(!(q in this.listeners))return!1;var Y=this.listeners[q];Z=vxX(Y,Z,w,r);return Z>-1?(S3e(Y[Z]),_.bXX(Y,Z),Y.length==0&&(delete this.listeners[q],this.typeCount_--),!0):!1};
var j41=function(q,Z){var w=Z.type;if(!(w in q.listeners))return!1;var r=_.F9(q.listeners[w],Z);r&&(S3e(Z),q.listeners[w].length==0&&(delete q.listeners[w],q.typeCount_--));return r};
rX.prototype.removeAll=function(q){q=q&&q.toString();var Z=0,w;for(w in this.listeners)if(!q||w==q){for(var r=this.listeners[w],Y=0;Y<r.length;Y++)++Z,S3e(r[Y]);delete this.listeners[w];this.typeCount_--}return Z};
rX.prototype.getListener=function(q,Z,w,r){q=this.listeners[q.toString()];var Y=-1;q&&(Y=vxX(q,Z,w,r));return Y>-1?q[Y]:null};
rX.prototype.hasListener=function(q,Z){var w=q!==void 0,r=w?q.toString():"",Y=Z!==void 0;return _.R4.some(this.listeners,function(C){for(var d=0;d<C.length;++d)if(!(w&&C[d].type!=r||Y&&C[d].capture!=Z))return!0;return!1})};
var vxX=function(q,Z,w,r){for(var Y=0;Y<q.length;++Y){var C=q[Y];if(!C.removed&&C.listener==Z&&C.capture==!!w&&C.handler==r)return Y}return-1};var thm,RT7,bC7,zTD,BDD,qx,Zf,Q4W,aM2,nx7,PD,ExK,Jjg;thm="closure_lm_"+(Math.random()*1E6|0);RT7={};bC7=0;_.Yc=function(q,Z,w,r,Y){if(r&&r.once)return qx(q,Z,w,r,Y);if(Array.isArray(Z)){for(var C=0;C<Z.length;C++)_.Yc(q,Z[C],w,r,Y);return null}w=Jjg(w);return CN(q)?q.listen(Z,w,_.DT(r)?!!r.capture:!!r,Y):zTD(q,Z,w,!1,r,Y)};
zTD=function(q,Z,w,r,Y,C){if(!Z)throw Error("za");var d=_.DT(Y)?!!Y.capture:!!Y,O=PD(q);O||(q[thm]=O=new rX(q));w=O.add(Z,w,r,d,C);if(w.proxy)return w;r=BDD();w.proxy=r;r.src=q;r.listener=w;if(q.addEventListener)_.c22||(Y=d),Y===void 0&&(Y=!1),q.addEventListener(Z.toString(),r,Y);else if(q.attachEvent)q.attachEvent(aM2(Z.toString()),r);else if(q.addListener&&q.removeListener)q.addListener(r);else throw Error("Aa");bC7++;return w};
BDD=function(){var q=nx7,Z=function(w){return q.call(Z.src,Z.listener,w)};
return Z};
qx=function(q,Z,w,r,Y){if(Array.isArray(Z)){for(var C=0;C<Z.length;C++)qx(q,Z[C],w,r,Y);return null}w=Jjg(w);return CN(q)?q.listenOnce(Z,w,_.DT(r)?!!r.capture:!!r,Y):zTD(q,Z,w,!0,r,Y)};
_.d_=function(q,Z,w,r,Y){if(Array.isArray(Z))for(var C=0;C<Z.length;C++)_.d_(q,Z[C],w,r,Y);else r=_.DT(r)?!!r.capture:!!r,w=Jjg(w),CN(q)?q.unlisten(Z,w,r,Y):q&&(q=PD(q))&&(Z=q.getListener(Z,w,r,Y))&&Zf(Z)};
Zf=function(q){if(typeof q==="number"||!q||q.removed)return!1;var Z=q.src;if(CN(Z))return j41(Z.eventTargetListeners_,q);var w=q.type,r=q.proxy;Z.removeEventListener?Z.removeEventListener(w,r,q.capture):Z.detachEvent?Z.detachEvent(aM2(w),r):Z.addListener&&Z.removeListener&&Z.removeListener(r);bC7--;(w=PD(Z))?(j41(w,q),w.typeCount_==0&&(w.src=null,Z[thm]=null)):S3e(q);return!0};
Q4W=function(q,Z,w,r,Y){w=Jjg(w);r=!!r;return CN(q)?q.getListener(Z,w,r,Y):q?(q=PD(q))?q.getListener(Z,w,r,Y):null:null};
aM2=function(q){return q in RT7?RT7[q]:RT7[q]="on"+q};
nx7=function(q,Z){if(q.removed)q=!0;else{Z=new _.e3(Z,this);var w=q.listener,r=q.handler||q.src;q.callOnce&&Zf(q);q=w.call(r,Z)}return q};
PD=function(q){q=q[thm];return q instanceof rX?q:null};
ExK="__closure_events_fn_"+(Math.random()*1E9>>>0);Jjg=function(q){if(typeof q==="function")return q;q[ExK]||(q[ExK]=function(Z){return q.handleEvent(Z)});
return q[ExK]};_.V8=function(){_.u6.call(this);this.eventTargetListeners_=new rX(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.yU(_.V8,_.u6);_.V8.prototype[ox7]=!0;_.e=_.V8.prototype;_.e.setParentEventTarget=function(q){this.parentEventTarget_=q};
_.e.addEventListener=function(q,Z,w,r){_.Yc(this,q,Z,w,r)};
_.e.removeEventListener=function(q,Z,w,r){_.d_(this,q,Z,w,r)};
_.e.dispatchEvent=function(q){var Z,w=this.parentEventTarget_;if(w)for(Z=[];w;w=w.parentEventTarget_)Z.push(w);w=this.actualEventTarget_;var r=q.type||q;if(typeof q==="string")q=new _.$2(q,w);else if(q instanceof _.$2)q.target=q.target||w;else{var Y=q;q=new _.$2(r,w);_.R4.extend(q,Y)}Y=!0;var C;if(Z)for(C=Z.length-1;!q.propagationStopped_&&C>=0;C--){var d=q.currentTarget=Z[C];Y=xu7(d,r,!0,q)&&Y}q.propagationStopped_||(d=q.currentTarget=w,Y=xu7(d,r,!0,q)&&Y,q.propagationStopped_||(Y=xu7(d,r,!1,q)&&
Y));if(Z)for(C=0;!q.propagationStopped_&&C<Z.length;C++)d=q.currentTarget=Z[C],Y=xu7(d,r,!1,q)&&Y;return Y};
_.e.disposeInternal=function(){_.V8.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.e.listen=function(q,Z,w,r){return this.eventTargetListeners_.add(String(q),Z,!1,w,r)};
_.e.listenOnce=function(q,Z,w,r){return this.eventTargetListeners_.add(String(q),Z,!0,w,r)};
_.e.unlisten=function(q,Z,w,r){return this.eventTargetListeners_.remove(String(q),Z,w,r)};
_.e.removeAllListeners=function(q){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(q):0};
var xu7=function(q,Z,w,r){Z=q.eventTargetListeners_.listeners[String(Z)];if(!Z)return!0;Z=Z.concat();for(var Y=!0,C=0;C<Z.length;++C){var d=Z[C];if(d&&!d.removed&&d.capture==w){var O=d.listener,H=d.handler||d.src;d.callOnce&&j41(q.eventTargetListeners_,d);Y=O.call(H,r)!==!1&&Y}}return Y&&!r.defaultPrevented};
_.V8.prototype.getListener=function(q,Z,w,r){return this.eventTargetListeners_.getListener(String(q),Z,w,r)};
_.V8.prototype.hasListener=function(q,Z){return this.eventTargetListeners_.hasListener(q!==void 0?String(q):void 0,Z)};var OT=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(q){return q&&AsyncContext.Snapshot.wrap(q)}:function(q){return q};var TDe=function(q,Z){this.create_=q;this.reset_=Z;this.occupants_=0;this.JSC$7631_head_=null};
TDe.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var q=this.JSC$7631_head_;this.JSC$7631_head_=q.next;q.next=null}else q=this.create_();return q};
TDe.prototype.put=function(q){this.reset_(q);this.occupants_<100&&(this.occupants_++,q.next=this.JSC$7631_head_,this.JSC$7631_head_=q)};var Uu7=function(){this.workTail_=this.workHead_=null};
Uu7.prototype.add=function(q,Z){var w=cfT.get();w.set(q,Z);this.workTail_?this.workTail_.next=w:this.workHead_=w;this.workTail_=w};
Uu7.prototype.remove=function(){var q=null;this.workHead_&&(q=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),q.next=null);return q};
var cfT=new TDe(function(){return new kx7},function(q){return q.reset()}),kx7=function(){this.next=this.scope=this.fn=null};
kx7.prototype.set=function(q,Z){this.fn=q;this.scope=Z;this.next=null};
kx7.prototype.reset=function(){this.next=this.scope=this.fn=null};var Keh,M9e,IV2,s49;M9e=!1;IV2=new Uu7;_.HD=function(q,Z){Keh||s49();M9e||(Keh(),M9e=!0);IV2.add(q,Z)};
s49=function(){var q=Promise.resolve(void 0);Keh=function(){q.then(F69)}};var IMg=function(q){q.prototype.$goog_Thenable=!0},cjX=function(q){if(!q)return!1;
try{return!!q.$goog_Thenable}catch(Z){return!1}};var Mhh,FeX,NDv,Gx9,p3m,X3v,Du7,iCW,wGe,qJg,Xoe;_.r5=function(q,Z){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(q!=_.Pr)try{var w=this;q.call(Z,function(r){w.resolve_(2,r)},function(r){w.resolve_(3,r)})}catch(r){this.resolve_(3,r)}};
Mhh=function(){this.next=this.context=this.JSC$7642_onRejected=this.JSC$7642_onFulfilled=this.child=null;this.always=!1};
Mhh.prototype.reset=function(){this.context=this.JSC$7642_onRejected=this.JSC$7642_onFulfilled=this.child=null;this.always=!1};
FeX=new TDe(function(){return new Mhh},function(q){q.reset()});
NDv=function(q,Z,w){var r=FeX.get();r.JSC$7642_onFulfilled=q;r.JSC$7642_onRejected=Z;r.context=w;return r};
_.YK=function(q){if(q instanceof _.r5)return q;var Z=new _.r5(_.Pr);Z.resolve_(2,q);return Z};
_.TX=function(q){return new _.r5(function(Z,w){w(q)})};
Gx9=function(q,Z,w){lM2(q,Z,w,null)||_.HD(_.Oh(Z,q))};
_.WD=function(q){return new _.r5(function(Z,w){var r=q.length,Y=[];if(r)for(var C=function(L,S){r--;Y[L]=S;r==0&&Z(Y)},d=function(L){w(L)},O,H=0;H<q.length;H++)O=q[H],Gx9(O,_.Oh(C,H),d);
else Z(Y)})};
p3m=function(q){return new _.r5(function(Z){var w=q.length,r=[];if(w)for(var Y=function(O,H,L){w--;r[O]=H?{fulfilled:!0,value:L}:{fulfilled:!1,reason:L};w==0&&Z(r)},C,d=0;d<q.length;d++)C=q[d],Gx9(C,_.Oh(Y,d,!0),_.Oh(Y,d,!1));
else Z(r)})};
X3v=function(q){return new _.r5(function(Z,w){var r=q.length,Y=[];if(r)for(var C=function(L){Z(L)},d=function(L,S){r--;
Y[L]=S;r==0&&w(Y)},O,H=0;H<q.length;H++)O=q[H],Gx9(O,C,_.Oh(d,H));
else Z(void 0)})};
_.Be=function(){var q,Z,w=new _.r5(function(r,Y){q=r;Z=Y});
return new muh(w,q,Z)};
_.r5.prototype.then=function(q,Z,w){return Ajm(this,OT(typeof q==="function"?q:null),OT(typeof Z==="function"?Z:null),w)};
IMg(_.r5);Du7=function(q,Z,w,r){fMe(q,NDv(Z||_.Pr,w||null,r))};
_.on=function(q,Z){Z=OT(Z);Z=NDv(Z,Z);Z.always=!0;fMe(q,Z);return q};
_.r5.prototype.finally=function(q){var Z=this;q=OT(q);return new Promise(function(w,r){Du7(Z,function(Y){q();w(Y)},function(Y){q();
r(Y)})})};
_.r5.prototype.thenCatch=function(q,Z){return Ajm(this,null,OT(q),Z)};
_.r5.prototype.catch=_.r5.prototype.thenCatch;_.r5.prototype.cancel=function(q){if(this.state_==0){var Z=new _.xQ(q);_.HD(function(){hTv(this,Z)},this)}};
var hTv=function(q,Z){if(q.state_==0)if(q.parent_){var w=q.parent_;if(w.callbackEntries_){for(var r=0,Y=null,C=null,d=w.callbackEntries_;d&&(d.always||(r++,d.child==q&&(Y=d),!(Y&&r>1)));d=d.next)Y||(C=d);Y&&(w.state_==0&&r==1?hTv(w,Z):(C?(r=C,r.next==w.callbackEntriesTail_&&(w.callbackEntriesTail_=r),r.next=r.next.next):yjD(w),iCW(w,Y,3,Z)))}q.parent_=null}else q.resolve_(3,Z)},fMe=function(q,Z){q.callbackEntries_||q.state_!=2&&q.state_!=3||gx9(q);
q.callbackEntriesTail_?q.callbackEntriesTail_.next=Z:q.callbackEntries_=Z;q.callbackEntriesTail_=Z},Ajm=function(q,Z,w,r){var Y=NDv(null,null,null);
Y.child=new _.r5(function(C,d){Y.JSC$7642_onFulfilled=Z?function(O){try{var H=Z.call(r,O);C(H)}catch(L){d(L)}}:C;
Y.JSC$7642_onRejected=w?function(O){try{var H=w.call(r,O);H===void 0&&O instanceof _.xQ?d(O):C(H)}catch(L){d(L)}}:d});
Y.child.parent_=q;fMe(q,Y);return Y.child};
_.r5.prototype.unblockAndFulfill_=function(q){this.state_=0;this.resolve_(2,q)};
_.r5.prototype.unblockAndReject_=function(q){this.state_=0;this.resolve_(3,q)};
_.r5.prototype.resolve_=function(q,Z){this.state_==0&&(this===Z&&(q=3,Z=new TypeError("Ba")),this.state_=1,lM2(Z,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=Z,this.state_=q,this.parent_=null,gx9(this),q!=3||Z instanceof _.xQ||qJg(this,Z)))};
var lM2=function(q,Z,w,r){if(q instanceof _.r5)return Du7(q,Z,w,r),!0;if(cjX(q))return q.then(Z,w,r),!0;if(_.DT(q))try{var Y=q.then;if(typeof Y==="function")return Zh9(q,Y,Z,w,r),!0}catch(C){return w.call(r,C),!0}return!1},Zh9=function(q,Z,w,r,Y){var C=!1,d=function(H){C||(C=!0,w.call(Y,H))},O=function(H){C||(C=!0,r.call(Y,H))};
try{Z.call(q,d,O)}catch(H){O(H)}},gx9=function(q){q.executing_||(q.executing_=!0,_.HD(q.executeCallbacks_,q))},yjD=function(q){var Z=null;
q.callbackEntries_&&(Z=q.callbackEntries_,q.callbackEntries_=Z.next,Z.next=null);q.callbackEntries_||(q.callbackEntriesTail_=null);return Z};
_.r5.prototype.executeCallbacks_=function(){for(var q;q=yjD(this);)iCW(this,q,this.state_,this.result_);this.executing_=!1};
iCW=function(q,Z,w,r){if(w==3&&Z.JSC$7642_onRejected&&!Z.always)for(;q&&q.hadUnhandledRejection_;q=q.parent_)q.hadUnhandledRejection_=!1;if(Z.child)Z.child.parent_=null,wGe(Z,w,r);else try{Z.always?Z.JSC$7642_onFulfilled.call(Z.context):wGe(Z,w,r)}catch(Y){Xoe.call(null,Y)}FeX.put(Z)};
wGe=function(q,Z,w){Z==2?q.JSC$7642_onFulfilled.call(q.context,w):q.JSC$7642_onRejected&&q.JSC$7642_onRejected.call(q.context,w)};
qJg=function(q,Z){q.hadUnhandledRejection_=!0;_.HD(function(){q.hadUnhandledRejection_&&Xoe.call(null,Z)})};
Xoe=P6;_.xQ=function(q){_.qj.call(this,q)};
_.yU(_.xQ,_.qj);_.xQ.prototype.name="cancel";var muh=function(q,Z,w){this.promise=q;this.resolve=Z;this.reject=w};var uQ;_.m3=function(q,Z){_.V8.call(this);this.JSC$7654_interval_=q||1;this.timerObject_=Z||_.$1;this.boundTick_=(0,_.Lh)(this.tick_,this);this.last_=_.hW()};
_.yU(_.m3,_.V8);_.e=_.m3.prototype;_.e.enabled=!1;_.e.JSC$7656_timer_=null;_.e.setInterval=function(q){this.JSC$7654_interval_=q;this.JSC$7656_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7656_timer_&&this.stop()};
_.e.tick_=function(){if(this.enabled){var q=_.hW()-this.last_;q>0&&q<this.JSC$7654_interval_*.8?this.JSC$7656_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7654_interval_-q):(this.JSC$7656_timer_&&(this.timerObject_.clearTimeout(this.JSC$7656_timer_),this.JSC$7656_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.e.start=function(){this.enabled=!0;this.JSC$7656_timer_||(this.JSC$7656_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7654_interval_),this.last_=_.hW())};
_.e.stop=function(){this.enabled=!1;this.JSC$7656_timer_&&(this.timerObject_.clearTimeout(this.JSC$7656_timer_),this.JSC$7656_timer_=null)};
_.e.disposeInternal=function(){_.m3.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
uQ=function(q,Z,w){if(typeof q==="function")w&&(q=(0,_.Lh)(q,w));else if(q&&typeof q.handleEvent=="function")q=(0,_.Lh)(q.handleEvent,q);else throw Error("Ca");return Number(Z)>2147483647?-1:_.$1.setTimeout(q,Z||0)};
_.r1W=function(q){var Z=null;return(new _.r5(function(w,r){Z=uQ(function(){w(void 0)},q);
Z==-1&&r(Error("Da"))})).thenCatch(function(w){_.$1.clearTimeout(Z);
throw w;})};var eC=function(q){_.u6.call(this);this.streamzLogger=q;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7660_flushTimer=new _.m3(this.flushInterval);this.JSC$7660_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.$i(this,this.JSC$7660_flushTimer)};
_.z(eC,_.u6);eC.prototype.sendIsolatedPayload=function(q){this.shouldSendIsolatedPayload=q;this.invocationLimit=1};
var YJJ=function(q){q.JSC$7660_flushTimer.enabled||q.JSC$7660_flushTimer.start();q.invocationCount++;q.invocationCount>=q.invocationLimit&&q.snapshotAndFlush()};
eC.prototype.snapshotAndFlush=function(){var q=this.metricMap.values();q=[].concat(_.Ju(q)).filter(function(Z){return Z.cellMap.size});
q.length&&this.streamzLogger.flush(q,this.shouldSendIsolatedPayload);$b1(q);this.invocationCount=0;this.JSC$7660_flushTimer.enabled&&this.JSC$7660_flushTimer.stop()};
eC.prototype.addNewCounter=function(q){var Z=_.Ta.apply(1,arguments);this.metricMap.has(q)||this.metricMap.set(q,new HCg(q,Z))};
eC.prototype.addNewEventMetric=function(q){var Z=_.Ta.apply(1,arguments);this.metricMap.has(q)||this.metricMap.set(q,new Wee(q,Z))};
var eOW=function(q,Z){return q.disabledMetrics.has(Z)?void 0:q.metricMap.get(Z)};
eC.prototype.JSC$7660_incrementCounter=function(q){this.JSC$7660_incrementCounterBy(q,1,_.Ta.apply(1,arguments))};
eC.prototype.JSC$7660_incrementCounterBy=function(q,Z){var w=_.Ta.apply(2,arguments),r=eOW(this,q);r&&r instanceof HCg&&(r.JSC$7599_incrementCounterBy(Z,w),YJJ(this))};
eC.prototype.record=function(q,Z){var w=_.Ta.apply(2,arguments),r=eOW(this,q);r&&r instanceof Wee&&(r.record(Z,w),YJJ(this))};
var $b1=function(q){for(var Z=0;Z<q.length;Z++)q[Z].clear()};_.LN=function(q,Z,w){w=w===void 0?{}:w;Z=Error.call(this,Z);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.code=q;this.metadata=w;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(_.LN,Error);_.LN.prototype.toString=function(){var q="RpcError("+(lV2(this.code)||String(this.code))+")";this.message&&(q+=": "+this.message);return q};_.C62=_.$1.JSON.parse;_.S3=_.$1.JSON.stringify;_.Ss=_.$1.JSON.parse;_.P6v=function(q){switch(q){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 dbv=function(q){switch(q){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var VCg,OhW=function(){};
_.yU(OhW,_.GjT);OhW.prototype.createInstance=function(){return new XMLHttpRequest};
VCg=new OhW;_.vD=function(q){_.V8.call(this);this.headers=new Map;this.JSC$7669_xmlHttpFactory_=q||null;this.JSC$7669_active_=!1;this.JSC$7669_xhr_=null;this.JSC$7669_lastUri_="";this.JSC$7669_lastErrorCode_=0;this.JSC$7669_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7669_timeoutId_=null;this.responseType_="";this.JSC$7669_withCredentials_=!1};
_.yU(_.vD,_.V8);var Hhp=/^https?$/i,WtW=["POST","PUT"],oiX=[],m1O=function(q,Z,w,r,Y,C,d){var O=new _.vD;oiX.push(O);Z&&O.listen("complete",Z);O.listenOnce("ready",O.cleanupSend_);C&&(O.timeoutInterval_=Math.max(0,C));d&&(O.JSC$7669_withCredentials_=d);O.send(q,w,r,Y)};
_.vD.prototype.cleanupSend_=function(){this.dispose();_.F9(oiX,this)};
_.vD.prototype.send=function(q,Z,w,r){if(this.JSC$7669_xhr_)throw Error("Ea`"+this.JSC$7669_lastUri_+"`"+q);Z=Z?Z.toUpperCase():"GET";this.JSC$7669_lastUri_=q;this.JSC$7669_lastError_="";this.JSC$7669_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7669_active_=!0;this.JSC$7669_xhr_=this.createXhr();this.JSC$7669_xhr_.onreadystatechange=OT((0,_.Lh)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7669_xhr_.open(Z,String(q),!0),this.inOpen_=!1}catch(d){usv(this,d);return}q=w||"";w=new Map(this.headers);
if(r)if(Object.getPrototypeOf(r)===Object.prototype)for(var Y in r)w.set(Y,r[Y]);else if(typeof r.keys==="function"&&typeof r.get==="function"){Y=_.P(r.keys());for(var C=Y.next();!C.done;C=Y.next())C=C.value,w.set(C,r.get(C))}else throw Error("Fa`"+String(r));r=Array.from(w.keys()).find(function(d){return"content-type"==d.toLowerCase()});
Y=_.$1.FormData&&q instanceof _.$1.FormData;!_.Mj(WtW,Z)||r||Y||w.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");Z=_.P(w);for(r=Z.next();!r.done;r=Z.next())w=_.P(r.value),r=w.next().value,w=w.next().value,this.JSC$7669_xhr_.setRequestHeader(r,w);this.responseType_&&(this.JSC$7669_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7669_xhr_&&this.JSC$7669_xhr_.withCredentials!==this.JSC$7669_withCredentials_&&(this.JSC$7669_xhr_.withCredentials=this.JSC$7669_withCredentials_);
try{this.JSC$7669_timeoutId_&&(clearTimeout(this.JSC$7669_timeoutId_),this.JSC$7669_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7669_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7669_xhr_.send(q),this.inSend_=!1}catch(d){usv(this,d)}};
_.vD.prototype.createXhr=function(){return this.JSC$7669_xmlHttpFactory_?this.JSC$7669_xmlHttpFactory_.createInstance():VCg.createInstance()};
_.vD.prototype.timeout_=function(){typeof iTN!="undefined"&&this.JSC$7669_xhr_&&(this.JSC$7669_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7669_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var usv=function(q,Z){q.JSC$7669_active_=!1;q.JSC$7669_xhr_&&(q.inAbort_=!0,q.JSC$7669_xhr_.abort(),q.inAbort_=!1);q.JSC$7669_lastError_=Z;q.JSC$7669_lastErrorCode_=5;Ltp(q);SJ1(q)},Ltp=function(q){q.errorDispatched_||(q.errorDispatched_=!0,q.dispatchEvent("complete"),q.dispatchEvent("error"))};
_.vD.prototype.abort=function(q){this.JSC$7669_xhr_&&this.JSC$7669_active_&&(this.JSC$7669_active_=!1,this.inAbort_=!0,this.JSC$7669_xhr_.abort(),this.inAbort_=!1,this.JSC$7669_lastErrorCode_=q||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),SJ1(this))};
_.vD.prototype.disposeInternal=function(){this.JSC$7669_xhr_&&(this.JSC$7669_active_&&(this.JSC$7669_active_=!1,this.inAbort_=!0,this.JSC$7669_xhr_.abort(),this.inAbort_=!1),SJ1(this,!0));_.vD.superClass_.disposeInternal.call(this)};
_.vD.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)viW(this);else this.onReadyStateChangeEntryPoint_()};
_.vD.prototype.onReadyStateChangeEntryPoint_=function(){viW(this)};
var viW=function(q){if(q.JSC$7669_active_&&typeof iTN!="undefined")if(q.inSend_&&_.j3(q)==4)setTimeout(q.onReadyStateChange_.bind(q),0);else if(q.dispatchEvent("readystatechange"),q.isComplete()){q.JSC$7669_active_=!1;try{if(q.isSuccess())q.dispatchEvent("complete"),q.dispatchEvent("success");else{q.JSC$7669_lastErrorCode_=6;try{var Z=_.j3(q)>2?q.JSC$7669_xhr_.statusText:""}catch(w){Z=""}q.JSC$7669_lastError_=Z+" ["+q.getStatus()+"]";Ltp(q)}}finally{SJ1(q)}}},SJ1=function(q,Z){if(q.JSC$7669_xhr_){q.JSC$7669_timeoutId_&&
(clearTimeout(q.JSC$7669_timeoutId_),q.JSC$7669_timeoutId_=null);
var w=q.JSC$7669_xhr_;q.JSC$7669_xhr_=null;Z||q.dispatchEvent("ready");try{w.onreadystatechange=null}catch(r){}}};
_.vD.prototype.isActive=function(){return!!this.JSC$7669_xhr_};
_.vD.prototype.isComplete=function(){return _.j3(this)==4};
_.vD.prototype.isSuccess=function(){var q=this.getStatus(),Z;if(!(Z=dbv(q))){if(q=q===0)q=uDX(String(this.JSC$7669_lastUri_)),q=!Hhp.test(q);Z=q}return Z};
_.j3=function(q){return q.JSC$7669_xhr_?q.JSC$7669_xhr_.readyState:0};
_.e=_.vD.prototype;_.e.getStatus=function(){try{return _.j3(this)>2?this.JSC$7669_xhr_.status:-1}catch(q){return-1}};
_.e.getResponseText=function(){try{return this.JSC$7669_xhr_?this.JSC$7669_xhr_.responseText:""}catch(q){return""}};
_.e.getResponse=function(){try{if(!this.JSC$7669_xhr_)return null;if("response"in this.JSC$7669_xhr_)return this.JSC$7669_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7669_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7669_xhr_)return this.JSC$7669_xhr_.mozResponseArrayBuffer}return null}catch(q){return null}};
_.e.getAllResponseHeaders=function(){return this.JSC$7669_xhr_&&_.j3(this)>=2?this.JSC$7669_xhr_.getAllResponseHeaders()||"":""};
_.e.getLastError=function(){return typeof this.JSC$7669_lastError_==="string"?this.JSC$7669_lastError_:String(this.JSC$7669_lastError_)};var wg8=function(){};
wg8.prototype.send=function(q,Z,w){Z=Z===void 0?function(){}:Z;
w=w===void 0?function(){}:w;
m1O(q.url,function(r){r=r.target;r.isSuccess()?Z(r.getResponseText()):w(r.getStatus())},q.requestType,q.body,q.requestHeaders,q.timeoutMillis,q.withCredentials)};
wg8.prototype.getTransmissionType=function(){return 1};var j1K=function(q,Z){this.logger=q;this.event=Z;this.startTime=Ch()};
j1K.prototype.done=function(){this.logger.zP(this.event,Ch()-this.startTime)};
var tq=function(){fI.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.z(tq,fI);var Rn=function(q,Z,w){var r=Ch();Z=Z();q.zP(w,Ch()-r);return Z},PpT=function(){tq.apply(this,arguments)};
_.z(PpT,tq);_.e=PpT.prototype;_.e.w8d=function(){};
_.e.nF=function(){};
_.e.zP=function(){};
_.e.logError=function(){};
_.e.y5=function(){};
_.e.dM7=function(){};
_.e.fO1=function(){};
_.e.cMt=function(){};
_.e.nwx=function(){};
var tC7=function(q){tq.call(this);var Z=this;this.logger=q;this.TEST_ONLY={mle:function(){return Z.logger},
getExperimentIds:function(){return Z.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void Z.logger.dispose()})};
_.z(tC7,tq);_.e=tC7.prototype;_.e.update=function(q){this.logger.dispose();this.logger=q};
_.e.nF=function(q){this.logger.nF(q)};
_.e.zP=function(q,Z){this.logger.zP(q,Z)};
_.e.logError=function(q){this.logger.logError(q)};
_.e.y5=function(){this.logger.y5()};
_.e.dM7=function(q){this.logger.dM7(q)};
_.e.fO1=function(q){this.logger.fO1(q)};
_.e.cMt=function(q){this.logger.cMt(q)};
_.e.nwx=function(q){this.logger.nwx(q)};
_.e.w8d=function(q){this.logger.w8d(q)};
var ROe=function(q,Z){_.u6.call(this);var w=this;this.callback=q;this.fdU=Z;this.u4N=-Z;this.addOnDisposeCallback(function(){return void clearTimeout(w.timer)})};
_.z(ROe,_.u6);var bhe=function(q){if(q.timer===void 0){var Z=Math.max(0,q.u4N+q.fdU-Ch());q.timer=setTimeout(function(){try{q.callback()}finally{q.u4N=Ch(),q.timer=void 0}},Z)}},J11=function(q,Z){tq.call(this);
this.metrics=q;this.xz=Z};
_.z(J11,tq);_.e=J11.prototype;_.e.w8d=function(q){this.metrics.nN2.record(q,this.xz)};
_.e.nF=function(q){this.metrics.eventCount.increment(q,this.xz)};
_.e.zP=function(q,Z){this.metrics.mZU.record(Z,q,this.xz)};
_.e.logError=function(q){this.metrics.errorCount.increment(q,this.xz)};
_.e.dM7=function(q){this.metrics.hAP.increment(q,this.xz)};
_.e.fO1=function(q){this.metrics.r3t.increment(q,this.xz)};
_.e.cMt=function(q){this.metrics.xH9.increment(q,this.xz)};
var d49=function(q,Z){Z=Z===void 0?[]:Z;var w={xz:q.xz||"_",rBx:q.rBx||[],qqc:q.qqc|0,destinationUrl:q.destinationUrl,e70:q.e70||function(){},
j2c:q.j2c||function(C,d){return Cp8(C,d,w.e70,w.destinationUrl)}},r=w.j2c("49",w.rBx.concat(Z));
J11.call(this,is6(r),w.xz);var Y=this;this.x4w=Z;this.TEST_ONLY={getExperimentIds:function(){return Y.options.rBx.concat(Y.x4w).sort(function(C,d){return C-d})}};
this.options=w;this.service=r;this.sM0=!q.j2c;this.flushDebouncer=new ROe(function(){return void Y.service.snapshotAndFlush()},w.qqc);
this.addOnDisposeCallback(function(){Y.flushDebouncer.dispose();Y.sM0&&Y.service.dispose()})};
_.z(d49,J11);d49.prototype.nwx=function(q){var Z=this;this.flushDebouncer.dispose();this.sM0&&this.service.dispose();this.service=this.options.j2c("49",this.options.rBx.concat(q));this.flushDebouncer=new ROe(function(){return void Z.service.snapshotAndFlush()},this.options.qqc);
this.metrics=is6(this.service);this.x4w=q};
d49.prototype.y5=function(){bhe(this.flushDebouncer)};var EmN=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(EmN,_.XD);_.xE2=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(_.xE2,_.XD);var Nl=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q,0,Nl.messageId)};
_.z(Nl,_.XD);var zOp=_.nv1(Nl);Nl.messageId="bfkj";var BAO=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(BAO,_.XD);var BX9=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(BX9,_.XD);var aAp=_.$v(BX9);_.Dk=function(){var q=this;this.promise=new Promise(function(Z,w){q.resolve=Z;q.reject=w})};_.bQ=function(q){_.u6.call(this);var Z=this;this.hj7=Math.floor(Math.random()*200);this.lBx=new BX9;if("challenge"in q&&zOp(q.challenge)){var w=_.bY(q.challenge,4,void 0,zJ);var r=_.bY(q.challenge,5,void 0,zJ);_.bY(q.challenge,7,void 0,zJ)&&(this.lBx=aAp(_.bY(q.challenge,7,void 0,zJ)))}else w=q.program,r=q.globalName;this.addOnDisposeCallback(function(){var n,x,K;return _.V(function(k){if(k.nextAddress==1)return _.W(k,Z.lq7,2);n=k.yieldResult;x=n.xek;(K=x)==null||K();_.ub(k)})});
this.logger=VTT(q.oa||{},this.lBx,q.odj);_.$i(this,this.logger);var Y=new _.Dk;this.lq7=Y.promise;this.logger.nF("t");var C=this.logger.share(),d=new j1K(C,"t"),O=function(n,x,K,k){if(!Z.logger.isDisposed()){var G="k";x?G="h":K&&(G="u");G!=="k"?k!==0&&(Z.logger.nF(G),Z.logger.zP(G,n)):Z.hj7<=0?(Z.logger.nF(G),Z.logger.zP(G,n),Z.hj7=Math.floor(Math.random()*200)):Z.hj7--}},H=function(n,x,K,k){Promise.resolve().then(function(){d.done();
C.y5();C.dispose();Y.resolve({nvF:n,xek:x,ejd:K,aSY:k})})};
if(!_.$1[r])throw this.logger.logError(25),Error("Ga");if(!_.$1[r].a)throw this.logger.logError(26),Error("Ha");try{var L=_.$1[r].a;r=[];for(var S=[],v=aV8(this.lBx),R=0;R<v.length;R++)r.push(v[R]),S.push(1);var B=nT2(this.lBx);for(v=0;v<B.length;v++)r.push(B[v]),S.push(2);this.up2=_.P(L(w,H,!0,q.jpy,O,[r,S],_.bY(this.lBx,5))).next().value;this.xN7=Y.promise.then(function(){})}catch(n){throw this.logger.logError(28),n;
}};
_.z(_.bQ,_.u6);_.bQ.prototype.snapshot=function(q){if(this.isDisposed())throw Error("Ia");this.logger.nF("n");var Z=this.logger.share();return this.lq7.then(function(w){var r=w.nvF;return new Promise(function(Y){var C=new j1K(Z,"n");r(function(d){C.done();Z.w8d(d.length);Z.y5();Z.dispose();Y(d)},[q.pP,
q.ei7,q.ljh,q.l0t])})})};
_.ni9=function(q,Z){if(q.isDisposed())throw Error("Ia");q.logger.nF("n");var w=Rn(q.logger,function(){return q.up2([Z.pP,Z.ei7,Z.ljh,Z.l0t])},"n");
q.logger.w8d(w.length);q.logger.y5();return w};
_.bQ.prototype.gE1=function(q){this.lq7.then(function(Z){var w;(w=Z.ejd)==null||w(q)})};
_.bQ.prototype.oJ2=function(q,Z){return this.lq7.then(function(w){var r;return(r=w.aSY)==null?void 0:r(q,Z,!1)})};
_.bQ.prototype.hW0=function(){return this.logger.share()};var Q1p=function(){this.jEm={};this.eEN=null},Ei1=function(){Q1p.instance||(Q1p.instance=new Q1p);
return Q1p.instance},TXm=function(q,Z){return xbD(q,_.Xy(Z,EmN,1,zJ),_.Xy(Z,_.xE2,2,zJ),_.bY(Z,3,void 0,zJ))},xbD=function(q,Z,w,r){if(!Z&&!w)return Promise.resolve();
if(!r)return orz(Z,w);var Y;(Y=q.jEm)[r]||(Y[r]=new Promise(function(C,d){orz(Z,w).then(function(){q.eEN=r;C()},function(O){delete q.jEm[r];
d(O)})}));
return q.jEm[r]};var Ubv=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Ubv,_.XD);var k1K=function(q,Z){return _.l2(q,1,Z)},KtX=function(q,Z){return _.l2(q,2,Z)};var Jq=function(q){_.u6.call(this);var Z=this;this.options=q;this.pKx=new _.Dk;this.xN7=this.pKx.promise;this.cp7=new _.Dk;this.tcf=1;this.pI1=new _.Dk;this.iQ1=[];this.xfQ=q.xfQ||function(){};
this.logger=new tC7(VTT(q.oa||{}));s1W(this,q.oN,q.ttd,q.vhB,q.oZf,Object.assign({},IA7,q.lm2||{}));this.addOnDisposeCallback(function(){return void c1h(Z)})};
_.z(Jq,_.u6);Jq.prototype.snapshot=function(q){var Z=this;return _.V(function(w){switch(w.nextAddress){case 1:if(Z.isDisposed())throw Error("Ia");if(Z.sW||Z.y1t){w.jumpTo(2);break}return _.W(w,Z.cp7.promise,2);case 2:if(!Z.sW){w.jumpTo(4);break}return _.W(w,Z.sW.snapshot(q),5);case 5:return w.return(w.yieldResult);case 4:throw Z.y1t;}})};
var MCJ=function(q){var Z;return _.V(function(w){if(q.isDisposed())throw Error("Ia");(Z=q.p3)!=null&&(Z.endTimeMs=0,Z.resolver(1));return _.W(w,q.pI1.promise,0)})},c1h=function(q){q.y1t=Error("Ka");
q.cp7.resolve();QzT(q.pKx.promise);q.pKx.reject(Error("Ka"));q.logger.dispose();Promise.all(q.iQ1).then(function(){var w;return _.V(function(r){(w=q.sW)==null||w.dispose();q.sW=void 0;_.ub(r)})});
q.iQ1=[];var Z;(Z=q.p3)!=null&&(Z.endTimeMs=0,Z.resolver(1));QzT(q.pI1.promise);q.pI1.reject(Error("Ka"))};
Jq.prototype.gE1=function(q){var Z,w;(Z=this.sW)==null||(w=Z.gE1)==null||w.call(Z,q)};
Jq.prototype.oJ2=function(q,Z){var w,r,Y;return(Y=(w=this.sW)==null?void 0:(r=w.oJ2)==null?void 0:r.call(w,q,Z))!=null?Y:Promise.resolve()};
var Ft7=function(q,Z){var w=q.xfQ;q.xfQ=function(){w();Z()}},NX7=function(q,Z){q.isDisposed()||(q.sW=Z,q.logger.update(Z.hW0()),q.cp7.resolve(),q.pKx.resolve(void 0),q.xfQ())};
Jq.prototype.handleError=function(q){if(!this.isDisposed()){this.y1t=q;this.cp7.resolve();var Z,w;(w=(Z=this.options).seE)==null||w.call(Z,q)}};
var lA9=function(q,Z){Z&&(Promise.all(q.iQ1).then(function(){return void Z.dispose()}),q.iQ1=[])},zM=function(q,Z){q.tcf=Z;
var w,r;(r=(w=q.options).nJ1)==null||r.call(w,Z)},G1v=function(q){q.isDisposed()||(q.pI1.resolve(),q.pI1=new _.Dk)},s1W=function(q,Z,w,r,Y,C){r=r===void 0?Ei1():r;
Y=Y===void 0?Promise.resolve(void 0):Y;var d,O,H,L,S,v,R,B,n,x,K,k;_.V(function(G){switch(G.nextAddress){case 1:return _.W(G,0,3);case 3:O=null;if(!d){G.jumpTo(6);break}zM(q,7);_.d9(G,7);return _.W(G,HG(d.snapshot({}),C.qgd,function(){return Promise.resolve("E:CTO")}),9);
case 9:O=G.yieldResult;_.QL(G,6);break;case 7:_.o3(G),O="E:UCE";case 6:H=void 0,L=d?C.fwh:C.qkl,S=new wX(L,C.caz,C.dZE,C.voh),v=1;case 10:if(!(v<=C.maxAttempts)){G.jumpTo(12);break}if(v===1){G.jumpTo(13);break}zM(q,0);q.p3=new pGe(S.getValue(),C.oNv,C.c1v);return _.W(G,q.p3.promise,14);case 14:R=G.yieldResult,q.p3=void 0,R===1?(v=1,S.reset()):ZCp(S);case 13:_.d9(G,15);B=void 0;if(w){B=w;G.jumpTo(17);break}zM(q,5);n=r.eEN;return _.W(G,HG(XG2(Z,n,O),C.cAE,function(){return Promise.reject(Error("La"))}),
18);
case 18:B=G.yieldResult;case 17:return zM(q,3),_.W(G,HG(TXm(r,B),C.p3Y,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return zM(q,8),_.W(G,Y,20);case 20:return x=new _.bQ({challenge:B,oa:q.options.oa,jpy:q.options.jpy}),_.W(G,HG(x.xN7,C.as7,function(){return Promise.reject(Error("Na"))}),21);
case 21:H=x;G.jumpTo(12);break;case 15:K=_.o3(G),q.handleError(K),G1v(q);case 11:v++;G.jumpTo(10);break;case 12:if(q.isDisposed()){G.jumpTo(5);break}H&&(w=void 0,lA9(q,d),d=H,NX7(q,H),G1v(q));zM(q,2);q.p3=new pGe(C.dgt,C.oNv,C.c1v);return _.W(G,q.p3.promise,22);case 22:q.p3=void 0;if(q.isDisposed()){G.jumpTo(5);break}G.jumpTo(3);break;case 5:(k=d)==null||k.dispose(),_.ub(G)}})};
Jq.prototype.hW0=function(){return this.logger.share()};
var IA7={dgt:432E5,oNv:3E5,c1v:10,qgd:1E4,cAE:3E4,p3Y:3E4,as7:6E4,qkl:1E3,fwh:6E4,caz:6E5,dZE:.25,voh:2,maxAttempts:10},pGe=function(q,Z,w){var r=this;this.endTimeMs=Date.now()+q;this.promise=new Promise(function(C){r.resolver=C});
var Y=function(){var C=r.endTimeMs-Date.now();C<=w?r.resolver(0):setTimeout(Y,Math.min(C,Z))};
Y()};var mbm,SkX=(mbm=Math.imul)!=null?mbm:function(q,Z){return q*Z|0},WG=[196,
200,224,18],BD=function(q,Z,w){w=w===void 0?[]:w;this.maxItems=q;this.cZ=Z===void 0?0:Z;this.ez=w},A1e=function(q){var Z=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!Z)return new BD(q);var w=Z.split(",");if(w.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new BD(q);Z=w.slice(1);Z.length===1&&Z[0]===""&&(Z=[]);w=Number(w[0]);return isNaN(w)||w<0||w>Z.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new BD(q)):new BD(q,w,Z)};
BD.prototype.serialize=function(){return String(this.cZ)+","+this.ez.join()};
BD.prototype.insert=function(q,Z){var w=void 0;if(this.ez[this.cZ]!==q){var r=this.ez.indexOf(q);r!==-1?(this.ez.splice(r,1),r<this.cZ&&this.cZ--,this.ez.splice(this.cZ,0,q)):(w=this.ez[this.cZ],this.ez[this.cZ]=q)}this.cZ=(this.cZ+1)%this.maxItems;q=uyj("iU5q-!O9@$",this.serialize());w&&q&&Z(w);return q};
var fA9=function(q,Z){this.logger=Z;try{var w=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(r){w=!1}w&&(this.index=A1e(q))},DbD=function(q,Z,w,r,Y){var C=q.index?Rn(q.logger,function(){return RRz(q.index,jR6(Z),w,r,Y)},"W"):"u";
q.logger.cMt(C)},hO9=function(q,Z,w){var r=_.P(q.index?Rn(q.logger,function(){return bYz(jR6(Z),w)},"R"):["u"]),Y=r.next().value;
r=r.next().value;q.logger.fO1(Y);return r};var y17={toString:function(q){var Z=[],w=0;q-=-2147483648;Z[w++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(q%52);for(q=Math.floor(q/52);q>0;)Z[w++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(q%62),q=Math.floor(q/62);return Z.join("")}};var quD=function(q){q=ihh(q);for(var Z=2654435769,w=2654435769,r=314159265,Y=q.length,C=Y,d=0,O=function(){Z-=w;Z-=r;Z^=r>>>13;w-=r;w-=Z;w^=Z<<8;r-=Z;r-=w;r^=w>>>13;Z-=w;Z-=r;Z^=r>>>12;w-=r;w-=Z;w^=Z<<16;r-=Z;r-=w;r^=w>>>5;Z-=w;Z-=r;Z^=r>>>3;w-=r;w-=Z;w^=Z<<10;r-=Z;r-=w;r^=w>>>15};C>=12;C-=12,d+=12)Z+=gi9(q,d),w+=gi9(q,d+4),r+=gi9(q,d+8),O();
r+=Y;switch(C){case 11:r+=q[d+10]<<24;case 10:r+=q[d+9]<<16;case 9:r+=q[d+8]<<8;case 8:w+=q[d+7]<<24;case 7:w+=q[d+6]<<16;case 6:w+=q[d+5]<<8;case 5:w+=q[d+4];case 4:Z+=q[d+3]<<24;case 3:Z+=q[d+2]<<16;case 2:Z+=q[d+1]<<8;case 1:Z+=q[d]}O();return y17.toString(r)},ihh=function(q){for(var Z=[],w=0;w<q.length;w++)Z.push(q.charCodeAt(w));
return Z},gi9=function(q,Z){return q[Z]+(q[Z+1]<<8)+(q[Z+2]<<16)+(q[Z+3]<<24)};var Z72,an=function(q){_.u6.call(this);this.logger=q;this.fJ4=new _.Dk;this[Z72]=this.dispose};
_.z(an,_.u6);var wNg=function(q,Z){var w=setTimeout(function(){q.fJ4.resolve()},Z);
q.addOnDisposeCallback(function(){return void clearTimeout(w)})};
an.prototype.gZ=function(q,Z){var w=this.iQ(q);Z==null||Z(w);return Rn(this.logger,function(){return _.Rq(w,2)},this.uG0)};
var rXh=function(q,Z,w,r){return Rn(q.logger,function(){return w?q.gZ(Z,r):q.iQ(Z,r)},q.n5)};
Z72=Symbol.dispose;var Yu7=function(q,Z,w,r){an.call(this,q);this.dTR=Z;this.eaE=w;this.n5="m";this.uG0="x";this.yqE=0;wNg(this,r)};
_.z(Yu7,an);Yu7.prototype.iQ=function(q,Z){var w=this;this.logger.nF(this.n5);++this.yqE>=this.eaE&&this.fJ4.resolve();var r=q();q=Rn(this.logger,function(){return w.dTR(r)},"C");
if(q===void 0)throw new m9(17,"YNJ:Undefined");if(!(q instanceof Uint8Array))throw new m9(18,"ODM:Invalid");Z==null||Z(q);return q};
var $o9=function(q,Z,w){an.call(this,q);this.vil=Z;this.n5="f";this.uG0="z";wNg(this,w)};
_.z($o9,an);$o9.prototype.iQ=function(){return this.vil};
var e2X=function(q,Z,w){an.call(this,q);this.rIE=Z;this.n5="w";this.uG0="z";wNg(this,w)};
_.z(e2X,an);e2X.prototype.iQ=function(){var q=this;return Rn(this.logger,function(){return _.q7(q.rIE)},"d")};
e2X.prototype.gZ=function(){return this.rIE};
var CSD=function(q,Z){an.call(this,q);this.error=Z;this.n5="e";this.uG0="y"};
_.z(CSD,an);var PSg=function(q,Z){var w=(Z(q.error.message)+":"+Z(q.error.stack)).substring(0,2048);Z=w.length+1;w=JmN(w);var r=new Uint8Array(4+w.length);r.set([42,Z&127|128,Z>>7,q.error.code]);r.set(w,4);return r};
CSD.prototype.iQ=function(){if(this.cYN)return this.cYN;this.cYN=PSg(this,function(q){return"_"+quD(q)});
return PSg(this,function(q){return q})};
var doJ=function(q,Z,w){an.call(this,q);this.wJR=Z;this.clientState=w;this.n5="S";this.uG0="q"};
_.z(doJ,an);doJ.prototype.iQ=function(){var q=Math.floor(Date.now()/1E3),Z=[Math.random()*255,Math.random()*255],w=Z.concat([this.wJR&255,this.clientState],[q>>24&255,q>>16&255,q>>8&255,q&255]);q=new Uint8Array(2+w.length);q[0]=34;q[1]=w.length;q.set(w,2);w=q.subarray(2);for(var r=Z=Z.length;r<w.length;++r)w[r]^=w[r%Z];this.logger.dM7(this.clientState);return q};var VG7={yYE:3E4,pj7:2E4},nN=function(q){_.u6.call(this);var Z=this;this.o1z=new _.Dk;this.a61=0;this.gw=void 0;this.state=2;this.zU=q.zU;this.oN=q.oN;this.lm2=Object.assign({},VG7,q.lm2||{});this.logger=q.zU.hW0();var w;this.onError=(w=q.onError)!=null?w:function(){};
this.su2=q.su2||!1;if(O7e(q)){var r=this.zU;this.jIw=function(){return MCJ(r).catch(function(d){d=Z.reportError(new m9(Z.qD?20:32,"TRG:Disposed",d));Z.gw=d;var O;(O=Z.qD)==null||O.dispose();Z.qD=void 0;Z.o1z.reject(d)})};
Ft7(r,function(){return void H7D(Z)});
r.tcf===2&&H7D(this)}else this.jIw=q.r3j,H7D(this);var Y=this.logger.share();Y.nF("o");var C=new j1K(Y,"o");this.o1z.promise.then(function(){C.done();Y.y5();Y.dispose()},function(){return void Y.dispose()});
this.addOnDisposeCallback(function(){Z.qD?(Z.qD.dispose(),Z.qD=void 0):Z.gw?Z.logger.y5():(Z.gw=Z.reportError(new m9(32,"TNP:Disposed")),Z.logger.y5(),Z.o1z.reject(Z.gw))});
_.$i(this,this.logger)};
_.z(nN,_.u6);nN.prototype.ci2=function(){return this.o1z.promise};
var WPh=function(q,Z){if(!(Z instanceof m9))if(Z instanceof _.LN){var w=Error(Z.toString());w.stack=Z.stack;Z=new m9(11,"EBH:Error",w)}else Z=new m9(12,"BSO:Unknown",Z);return q.reportError(Z)},H7D=function(q){var Z,w,r,Y,C,d,O,H,L,S,v,R,B,n,x;
return _.V(function(K){switch(K.nextAddress){case 1:Z=void 0;q.a61++;w=new _.Dk;q.zU instanceof Jq&&q.zU.iQ1.push(w.promise);if(!q.su2){K.jumpTo(2);break}r=new _.Dk;setTimeout(function(){return void r.resolve()});
return _.W(K,r.promise,2);case 2:return Y=q.logger.share(),_.d9(K,4,5),q.state=5,C={},d=[],_.W(K,HG(q.zU.snapshot({pP:C,ljh:d}),q.lm2.pj7,function(){return Promise.reject(new m9(15,"MDA:Timeout"))}),7);
case 7:O=K.yieldResult;if(q.isDisposed())throw new m9(q.qD?20:32,"MDA:Disposed");H=d[0];q.state=6;return _.W(K,HG(o6p(q.oN,O),q.lm2.yYE,function(){return Promise.reject(new m9(10,"BWB:Timeout"))}),8);
case 8:L=K.yieldResult;if(q.isDisposed())throw new m9(q.qD?20:32,"BWB:Disposed");q.state=7;Z=Rn(Y,function(){var G=u4J(q,L,w,H);G.fJ4.promise.then(function(){return void q.jIw()});
return G},"i");
case 5:_.V2(K);Y.dispose();_.Wq(K,6);break;case 4:S=_.o3(K);(v=Z)==null||v.dispose();if(!q.gw){R=WPh(q,S);w.resolve();var k;if(k=q.zU instanceof Jq&&q.a61<2)a:if(S instanceof m9)k=S.code!==32&&S.code!==20&&S.code!==10;else{if(S instanceof _.LN)switch(S.code){case 2:case 13:case 14:case 4:break;default:k=!1;break a}k=!0}if(k)return B=(1+Math.random()*.25)*(q.qD?6E4:1E3),n=setTimeout(function(){return void q.jIw()},B),q.addOnDisposeCallback(function(){return void clearTimeout(n)}),K.return();
q.gw=R}Y.logError(q.qD?13:14);q.o1z.reject(q.gw);return K.return();case 6:q.state=8,q.a61=0,(x=q.qD)==null||x.dispose(),q.qD=Z,q.o1z.resolve(),_.ub(K)}})},u4J=function(q,Z,w,r){var Y=uL1(Z,2)*1E3;
if(Y<=0)throw new m9(31,"TTM:Invalid");if(_.bY(Z,4))return new e2X(q.logger,_.bY(Z,4),Y);if(!uL1(Z,3))return new $o9(q.logger,imz(_.WI(Z,1)),Y);if(!r)throw new m9(4,"PMD:Undefined");r=r(imz(_.WI(Z,1)));if(!(r instanceof Function))throw new m9(16,"APF:Failed");q.a5l=Math.floor((Date.now()+Y)/1E3);q=new Yu7(q.logger,r,uL1(Z,3),Y);q.addOnDisposeCallback(function(){return void w.resolve()});
return q};
nN.prototype.iQ=function(q){return LP1(this,Object.assign({},q),!1)};
nN.prototype.gZ=function(q){return LP1(this,Object.assign({},q),!0)};
nN.prototype.uXN=function(q){if(q>150)return!1;try{return this.cache=new fA9(q,this.logger),!0}catch(Z){return this.reportError(new m9(22,"GBJ:init",Z)),!1}};
nN.prototype.reportError=function(q){this.logger.logError(q.code);this.onError(q);return q};
var SuX=function(q,Z){Z=Z instanceof m9?Z:new m9(5,"TVD:error",Z);return q.reportError(Z)},LP1=function(q,Z,w){try{if(q.isDisposed())throw new m9(21,"BNT:disposed");
if(!q.qD&&q.gw)throw q.gw;var r,Y;return(Y=(r=v6v(q,Z,w))!=null?r:jFm(q,Z,w))!=null?Y:tG9(q,Z,w)}catch(C){if(!Z.kZw)throw SuX(q,C);return R2p(q,w,C)}},v6v=function(q,Z,w){var r;
return(r=q.qD)==null?void 0:rXh(r,function(){return b77(q,Z)},w,function(Y){var C;
if(q.qD instanceof Yu7&&((C=Z.aO)==null?0:C.brY))try{var d;(d=q.cache)==null||DbD(d,b77(q,Z),Y,Z.aO.vuH,q.a5l-120)}catch(O){q.reportError(new m9(24,"ELX:write",O))}})},jFm=function(q,Z,w){var r;
if((r=Z.aO)!=null&&r.vow)try{var Y,C=(Y=q.cache)==null?void 0:hO9(Y,b77(q,Z),Z.aO.vuH);return C?w?Rn(q.logger,function(){return _.Rq(C,2)},"a"):C:void 0}catch(d){q.reportError(new m9(23,"RXO:read",d))}},tG9=function(q,Z,w){var r={stack:[],
error:void 0,hasError:!1};try{if(!Z.zOt)throw new m9(29,"SDF:notready");return rXh(_.Qy(r,new doJ(q.logger,0,q.state)),function(){return b77(q,Z)},w)}catch(Y){r.error=Y,r.hasError=!0}finally{_.ED(r)}},R2p=function(q,Z,w){var r={stack:[],
error:void 0,hasError:!1};try{var Y=SuX(q,w);return rXh(_.Qy(r,new CSD(q.logger,Y)),function(){return[]},Z)}catch(C){r.error=C,r.hasError=!0}finally{_.ED(r)}},b77=function(q,Z){return Z.bR1?Z.bR1:Z.pP?Rn(q.logger,function(){return Z.bR1=JmN(Z.pP)},"c"):[]},O7e=function(q){return Up(function(Z){if(!EYT(Z))return!1;
for(var w=_.P(Object.entries(q)),r=w.next();!r.done;r=w.next()){var Y=_.P(r.value);r=Y.next().value;Y=Y.next().value;if(!(r in Z)){if(Y.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!Y(Z[r]))return!1}return!0})}({zU:function(q){return Up(function(Z){return Z instanceof q})}(Jq)},"");var zh2=function(){var q=_.mS();this.JSC$7808_streamzService=q;q.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",iM("tick"),_.yg("from_st_cookie"))};
zh2.prototype.increment=function(q,Z){this.JSC$7808_streamzService.JSC$7660_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",q,Z)};
var JXv=function(){var q=_.mS();this.JSC$7814_streamzService=q;q.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.qb("status"))};
JXv.prototype.increment=function(q){this.JSC$7814_streamzService.JSC$7660_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",q)};
var z2m=function(){var q=_.mS();this.JSC$7817_streamzService=q;q.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.qb("stage"),_.yg("is_using_ytd_player"),_.yg("has_expandable_tiles"))};
z2m.prototype.increment=function(q,Z,w){this.JSC$7817_streamzService.JSC$7660_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",q,Z,w)};
var Bce=function(){var q=_.mS();this.JSC$7820_streamzService=q;q.addNewCounter("/client_streamz/youtube/web/response_signature",_.qb("check_status"))};
Bce.prototype.increment=function(q){this.JSC$7820_streamzService.JSC$7660_incrementCounter("/client_streamz/youtube/web/response_signature",q)};
var aBv=function(){var q=_.mS();this.JSC$7823_streamzService=q;q.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.qb("sig"),iM("de"))};
aBv.prototype.increment=function(q,Z){this.JSC$7823_streamzService.JSC$7660_incrementCounter("/client_streamz/youtube/web/e_sig_log",q,Z)};
var n67=function(){var q=_.mS();this.JSC$7826_streamzService=q;q.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.qb("sig"),iM("de"))};
n67.prototype.increment=function(q,Z){this.JSC$7826_streamzService.JSC$7660_incrementCounter("/client_streamz/youtube/web/e_sig_en",q,Z)};
_.QFp=function(){var q=_.mS();this.JSC$7829_streamzService=q;q.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.qb("action"))};
_.QFp.prototype.increment=function(q){this.JSC$7829_streamzService.JSC$7660_incrementCounter("/client_streamz/youtube/web/enforcement_intent",q)};var Z22=function(){var q=_.mS();this.JSC$7832_streamzService=q;q.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.qb("tagname"))};
Z22.prototype.increment=function(q){this.JSC$7832_streamzService.JSC$7660_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",q)};var Q8=window;var E6K=(new Date).getTime();var xov=function(q){this.servicePromise_=q;q.then((0,_.Lh)(function(){},this),function(){},this)},TcK=function(q,Z,w){q.servicePromise_.then(function(r){var Y=r[Z];
if(!Y)throw Error("Oa`"+Z);return Y.apply(r,w)})},KPp=function(q,Z,w){for(var r=Array(arguments.length-2),Y=2;Y<arguments.length;Y++)r[Y-2]=arguments[Y];
Y=Uo7(q,Z).then(function(C){return C.apply(null,r)},function(C){C=Error("Pa`"+Z+"`"+q,{cause:C});
delete k2p[Z];return _.TX(C)});
return new xov(Y)},k2p={},Uo7=function(q,Z){var w=k2p[Z];
if(w)return w;w=(w=_.Eq(Z))?_.YK(w):(new _.r5(function(r,Y){var C=(new Sz(document)).createElement("SCRIPT");C.async=!0;_.AI(C,_.o9(YXm(q)));C.onload=C.onreadystatechange=function(){C.readyState&&C.readyState!="loaded"&&C.readyState!="complete"||r()};
C.onerror=function(d){Y(Error("Qa`"+Z+"`"+q,{cause:d}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(C)})).then(function(){var r=_.Eq(Z);
if(!r)throw Error("Ra`"+Z+"`"+q);return r});
return k2p[Z]=w};var sFm={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},cXh=function(){var q=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=zR1(function(){return _.V(function(Z){if(Z.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?Z.return(Promise.resolve()):_.W(Z,IB7(q),2);q.rsaForList.length>
0&&document.addEventListener("click",q.requestAccessForHelpPanel);_.ub(Z)})});
this.requestAccessForHelpPanel=function(){if(!(q.rsaForPromises.length>0)){for(var Z=_.P(q.rsaForList),w=Z.next();!w.done;w=Z.next()){w=w.value;try{q.rsaForPromises.push(document.requestStorageAccessFor(w))}catch(r){}}Promise.all(q.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){q.reset()})}}};
cXh.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var IB7=function(q){var Z,w,r,Y;return _.V(function(C){switch(C.nextAddress){case 1:Z=_.P(Object.values(sFm)),w=Z.next();case 2:if(w.done){C.jumpTo(0);break}r=w.value;_.d9(C,5);return _.W(C,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:r}),7);case 7:Y=C.yieldResult;Y.state!=="granted"&&q.rsaForList.push(r);_.QL(C,3);break;case 5:_.o3(C);C.jumpTo(0);break;case 3:w=Z.next(),C.jumpTo(2)}})};(new cXh).initialize();var MGv=function(q){this.JSC$7846_loader_=q};
MGv.prototype.startHelp=function(q){TcK(this.JSC$7846_loader_,"startHelp",arguments)};
MGv.prototype.JSC$7848_loadChatSupport=function(q){TcK(this.JSC$7846_loader_,"loadChatSupport",arguments)};
var Ncm=function(q,Z){Z=Z||{};q=KPp(FP1,"help.service.Lazy.create",q,{apiKey:Z.apiKey||Z.apiKey,asxUiUri:Z.asxUiUri||Z.asxUiUri,environment:Z.environment||Z.environment,flow:Z.flow||Z.flow,frdProductData:Z.frdProductData||Z.frdProductData,frdProductDataSerializedJspb:Z.frdProductDataSerializedJspb||Z.frdProductDataSerializedJspb,helpCenterPath:Z.helpCenterPath||Z.helpCenterPath,locale:Z.locale||Z.locale||"en-US".replace(/-/g,"_"),nonce:Z.nonce||Z.nonce,productData:Z.productData||Z.productData,receiverUri:Z.receiverUri||
Z.receiverUri,renderApiUri:Z.renderApiUri||Z.renderApiUri,theme:Z.theme||Z.theme,window:Z.window||Z.window});return new MGv(q)},FP1=new zF(u_X,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var lBW=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(lBW,_.XD);var G2e=_.$v(lBW);new Uint8Array([]);_.pN9=new function(q,Z,w,r){this.configType=q;this.flagName=w;this.defaultValue=r;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 moh=function(){this.retriever=_.t().resolve(XNK)};aLI(Node);aLI(Element);var AXX=aLI(HTMLElement);aLI(SVGElement);var fB2,Dog,TM,h2v;fB2=function(q){return typeof q.className=="string"?q.className:q.getAttribute&&q.getAttribute("class")||""};
Dog=function(q){return q.classList?q.classList:fB2(q).match(/\S+/g)||[]};
_.ET=function(q,Z){typeof q.className=="string"?q.className=Z:q.setAttribute&&q.setAttribute("class",Z)};
_.x2=function(q,Z){return q.classList?q.classList.contains(Z):_.Mj(Dog(q),Z)};
_.nn=function(q,Z){if(q.classList)q.classList.add(Z);else if(!_.x2(q,Z)){var w=fB2(q);_.ET(q,w+(w.length>0?" "+Z:Z))}};
TM=function(q,Z){if(q.classList)Array.prototype.forEach.call(Z,function(Y){_.nn(q,Y)});
else{var w={};Array.prototype.forEach.call(Dog(q),function(Y){w[Y]=!0});
Array.prototype.forEach.call(Z,function(Y){w[Y]=!0});
Z="";for(var r in w)Z+=Z.length>0?" "+r:r;_.ET(q,Z)}};
_.BJ=function(q,Z){q.classList?q.classList.remove(Z):_.x2(q,Z)&&_.ET(q,Array.prototype.filter.call(Dog(q),function(w){return w!=Z}).join(" "))};
h2v=function(q,Z){q.classList?Array.prototype.forEach.call(Z,function(w){_.BJ(q,w)}):_.ET(q,Array.prototype.filter.call(Dog(q),function(w){return!_.Mj(Z,w)}).join(" "))};var yXm=function(q){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=q.document},qq1=function(q,Z){i7h(q);
var w=document.createElement("div"),r;(r=Z.parentNode)==null||r.insertBefore(w,Z);w.tabIndex=0;w.id="fc-focus-trap-pre-div";w=document.createElement("div");var Y;(Y=Z.parentNode)==null||Y.insertBefore(w,Z.nextSibling);w.tabIndex=0;w.id="fc-focus-trap-post-div";var C=g62(q,Z),d=g62(q,Z,!0);C&&d&&(q.focusChangeHandler=function(){var O=q.document.activeElement;if(O)if(_.EJ(Z,O))q.previouslyFocusedElement=O;else if(O===q.document.activeElement)switch(q.previouslyFocusedElement){case C:d.focus();q.previouslyFocusedElement=
d;break;default:C.focus(),q.previouslyFocusedElement=C}},q.document.addEventListener("focus",q.focusChangeHandler,!0),q.document.addEventListener("focusin",q.focusChangeHandler))},i7h=function(q){q.focusChangeHandler&&(document.removeEventListener("focus",q.focusChangeHandler,!0),document.removeEventListener("focusin",q.focusChangeHandler),q.focusChangeHandler=null);
var Z;(Z=document.getElementById("fc-focus-trap-pre-div"))==null||Z.remove();var w;(w=document.getElementById("fc-focus-trap-post-div"))==null||w.remove()},ZsW=function(q,Z,w,r,Y){w=w===void 0?!0:w;
var C;Y=(C=Y===void 0?null:Y)!=null?C:g62(q,Z,r===void 0?!1:r);Y!==null&&(Y.focus(),w&&qq1(q,Z))};
yXm.prototype.disableButton=function(q,Z){Z=Z===void 0?null:Z;q.disabled=!0;Z&&_.nn(q,Z)};
var g62=function(q,Z,w){w=w===void 0?!1:w;if(Uxj(Z)&&!w)return Z;var r=w?[].slice.call(Z.children,0).reverse():Z.children;r=_.P(r);for(var Y=r.next();!Y.done;Y=r.next())if(Y=Y.value,AXX(Y)&&(Y=g62(q,Y,w)))return Y;return Uxj(Z)&&w?Z:null};var wF1=function(q){this.originalBodyOverflow="";this.JSC$7874_domHelper=o4(q)};_.yU(_.SC,_.u6);_.e=_.SC.prototype;_.e.JSC$7877_id_=0;_.e.disposeInternal=function(){_.SC.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7875_listener_;delete this.handler_};
_.e.start=function(q){this.stop();this.JSC$7877_id_=uQ(this.callback_,q!==void 0?q:this.JSC$7875_interval_)};
_.e.stop=function(){this.isActive()&&_.$1.clearTimeout(this.JSC$7877_id_);this.JSC$7877_id_=0};
_.e.fire=function(){this.stop();this.JSC$7877_doAction_()};
_.e.isActive=function(){return this.JSC$7877_id_!=0};
_.e.JSC$7877_doAction_=function(){this.JSC$7877_id_=0;this.JSC$7875_listener_&&this.JSC$7875_listener_.call(this.handler_)};_.Al=function(q){_.u6.call(this);this.handler_=q;this.JSC$7878_keys_={}};
_.yU(_.Al,_.u6);var rfX=[];_.Al.prototype.listen=function(q,Z,w,r){Array.isArray(Z)||(Z&&(rfX[0]=Z.toString()),Z=rfX);for(var Y=0;Y<Z.length;Y++){var C=_.Yc(q,Z[Y],w||this.handleEvent,r||!1,this.handler_||this);if(!C)break;this.JSC$7878_keys_[C.key]=C}return this};
_.Al.prototype.listenOnce=function(q,Z,w,r){return YqD(this,q,Z,w,r)};
var YqD=function(q,Z,w,r,Y,C){if(Array.isArray(w))for(var d=0;d<w.length;d++)YqD(q,Z,w[d],r,Y,C);else{Z=qx(Z,w,r||q.handleEvent,Y,C||q.handler_||q);if(!Z)return q;q.JSC$7878_keys_[Z.key]=Z}return q};
_.Al.prototype.unlisten=function(q,Z,w,r,Y){if(Array.isArray(Z))for(var C=0;C<Z.length;C++)this.unlisten(q,Z[C],w,r,Y);else if(q=Q4W(q,Z,w||this.handleEvent,_.DT(r)?!!r.capture:!!r,Y||this.handler_||this))Zf(q),delete this.JSC$7878_keys_[q.key];return this};
_.Al.prototype.removeAll=function(){_.R4.forEach(this.JSC$7878_keys_,function(q,Z){this.JSC$7878_keys_.hasOwnProperty(Z)&&Zf(q)},this);
this.JSC$7878_keys_={}};
_.Al.prototype.disposeInternal=function(){_.Al.superClass_.disposeInternal.call(this);this.removeAll()};
_.Al.prototype.handleEvent=function(){throw Error("Sa");};var UT=function(){_.u6.call(this);this.services_={}};
_.yU(UT,_.u6);_.e=UT.prototype;_.e.logger=null;_.e.connect=function(q){q&&q()};
_.e.isConnected=function(){return!0};
_.e.registerService=function(q,Z,w){this.services_[q]={callback:Z,objectPayload:!!w}};
_.e.getService=function(q,Z){var w=this.services_[q];return w?w:this.defaultService_?{callback:_.Oh(this.defaultService_,q),objectPayload:_.DT(Z)}:null};
var $RK=function(q,Z){if(Z&&typeof q==="string")try{return JSON.parse(q)}catch(w){return null}else if(!Z&&typeof q!=="string")return(0,_.S3)(q);return q};
UT.prototype.disposeInternal=function(){UT.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 k2=function(q,Z){this.sequence_=[];this.onCancelFunction_=q;this.defaultScope_=Z||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};
k2.prototype.cancel=function(q){if(this.fired_)this.result_ instanceof k2&&this.result_.cancel();else{if(this.parent_){var Z=this.parent_;delete this.parent_;q?Z.cancel(q):(Z.branches_--,Z.branches_<=0&&Z.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new KN(this))}};
k2.prototype.continue_=function(q,Z){this.blocked_=!1;eeh(this,q,Z)};
var eeh=function(q,Z,w){q.fired_=!0;q.result_=w;q.hadError_=!Z;COD(q)},dRD=function(q){if(q.fired_){if(!q.silentlyCanceled_)throw new PO9(q);
q.silentlyCanceled_=!1}};
k2.prototype.callback=function(q){dRD(this);eeh(this,!0,q)};
k2.prototype.errback=function(q){dRD(this);eeh(this,!1,q)};
var V9K=function(q,Z,w){sT(q,Z,null,w)};
k2.prototype.finally=function(q){var Z=this;return new Promise(function(w,r){sT(Z,function(Y){q();w(Y)},function(Y){q();
r(Y)})})};
var sT=function(q,Z,w,r){var Y=q.fired_;Y||(Z===w?Z=w=OT(Z):(Z=OT(Z),w=OT(w)));q.sequence_.push([Z,w,r]);Y&&COD(q)};
k2.prototype.then=function(q,Z,w){var r,Y,C=new _.r5(function(d,O){Y=d;r=O});
sT(this,Y,function(d){d instanceof KN?C.cancel():r(d);return OsK},this);
return C.then(q,Z,w)};
IMg(k2);var Hs7=function(q,Z){Z instanceof k2?V9K(q,(0,_.Lh)(Z.branch,Z)):V9K(q,function(){return Z})};
k2.prototype.branch=function(q){var Z=new k2;sT(this,Z.callback,Z.errback,Z);q&&(Z.parent_=this,this.branches_++);return Z};
k2.prototype.isError=function(q){return q instanceof Error};
var W69=function(q){return kY(q.sequence_,function(Z){return typeof Z[1]==="function"})},OsK={},COD=function(q){if(q.unhandledErrorId_&&q.fired_&&W69(q)){var Z=q.unhandledErrorId_,w=oTD[Z];
w&&(_.$1.clearTimeout(w.JSC$7895_id_),delete oTD[Z]);q.unhandledErrorId_=0}q.parent_&&(q.parent_.branches_--,delete q.parent_);Z=q.result_;for(var r=w=!1;q.sequence_.length&&!q.blocked_;){var Y=q.sequence_.shift(),C=Y[0],d=Y[1];Y=Y[2];if(C=q.hadError_?d:C)try{var O=C.call(Y||q.defaultScope_,Z);O===OsK&&(O=void 0);O!==void 0&&(q.hadError_=q.hadError_&&(O==Z||q.isError(O)),q.result_=Z=O);if(cjX(Z)||typeof _.$1.Promise==="function"&&Z instanceof _.$1.Promise)r=!0,q.blocked_=!0}catch(H){Z=H,q.hadError_=
!0,W69(q)||(w=!0)}}q.result_=Z;r&&(O=(0,_.Lh)(q.continue_,q,!0),r=(0,_.Lh)(q.continue_,q,!1),Z instanceof k2?(sT(Z,O,r),Z.blocking_=!0):Z.then(O,r));w&&(Z=new ueh(Z),oTD[Z.JSC$7895_id_]=Z,q.unhandledErrorId_=Z.JSC$7895_id_)},PO9=function(){_.qj.call(this)};
_.yU(PO9,_.qj);PO9.prototype.message="Deferred has already fired";PO9.prototype.name="AlreadyCalledError";var KN=function(){_.qj.call(this)};
_.yU(KN,_.qj);KN.prototype.message="Deferred was canceled";KN.prototype.name="CanceledError";var ueh=function(q){this.JSC$7895_id_=_.$1.setTimeout((0,_.Lh)(this.throwError,this),0);this.JSC$7895_error_=q};
ueh.prototype.throwError=function(){delete oTD[this.JSC$7895_id_];throw this.JSC$7895_error_;};
var oTD={};var L6m={1:"NativeMessagingTransport"},Sqm=["pu","lru","pru","lpu","ppu"],jz1=function(){for(var q=10,Z=vT1,w=Z.length,r="";q-- >0;)r+=Z.charAt(Math.floor(Math.random()*w));return r},vT1="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var In=function(q){_.u6.call(this);this.JSC$7898_domHelper_=q||o4()};
_.yU(In,_.u6);In.prototype.transportType=0;In.prototype.getWindow=function(){return this.JSC$7898_domHelper_.getWindow()};
In.prototype.getName=function(){return L6m[String(this.transportType)]||""};var cD=function(q,Z,w,r,Y){In.call(this,w);this.JSC$7901_channel_=q;this.protocolVersion_=Y||2;this.peerHostname_=Z||"*";this.JSC$7901_eventHandler_=new _.Al(this);this.maybeAttemptToConnectTimer_=new _.m3(100,this.getWindow());this.oneSidedHandshake_=!!r;this.setupAckReceived_=new k2;this.setupAckSent_=new k2;this.JSC$7901_connected_=new k2;this.endpointId_=jz1();this.peerEndpointId_=null;this.oneSidedHandshake_?t97(this.JSC$7901_channel_)==1?Hs7(this.JSC$7901_connected_,this.setupAckReceived_):
Hs7(this.JSC$7901_connected_,this.setupAckSent_):(Hs7(this.JSC$7901_connected_,this.setupAckReceived_),this.protocolVersion_==2&&Hs7(this.JSC$7901_connected_,this.setupAckSent_));V9K(this.JSC$7901_connected_,this.notifyConnected_,this);this.JSC$7901_connected_.callback(!0);this.JSC$7901_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.yU(cD,In);cD.prototype.peerProtocolVersion_=null;cD.prototype.initialized_=!1;cD.prototype.transportType=1;var Re7={};cD.prototype.sendTimerId_=0;
var zeX=function(q){var Z=q.event_.data;if(typeof Z!=="string")return!1;var w=Z.indexOf("|"),r=Z.indexOf(":");if(w==-1||r==-1)return!1;var Y=Z.substring(0,w);w=Z.substring(w+1,r);Z=Z.substring(r+1);if(r=MC[Y])return r.xpcDeliver(w,Z,q.event_.origin),!0;r=bs9(Z)[0];for(var C in MC){var d=MC[C];if(t97(d)==1&&!d.isConnected()&&w=="tp"&&(r=="SETUP"||r=="SETUP_NTPV2")&&JfJ(d,q.event_.origin))return delete MC[d.name],d.name=Y,MC[Y]=d,d.xpcDeliver(w,Z),!0}return!1},BA2=function(q){q.protocolVersion_!=2||
q.peerProtocolVersion_!=null&&q.peerProtocolVersion_!=2||q.send("tp","SETUP_NTPV2,"+q.endpointId_);
q.peerProtocolVersion_!=null&&q.peerProtocolVersion_!=1||q.send("tp","SETUP")},aVm=function(q,Z){if(q.protocolVersion_!=2||q.peerProtocolVersion_!=null&&q.peerProtocolVersion_!=2||Z!=2){if(q.peerProtocolVersion_!=null&&q.peerProtocolVersion_!=1||Z!=1)return;
q.send("tp","SETUP_ACK")}else q.send("tp","SETUP_ACK_NTPV2");q.setupAckSent_.fired_||q.setupAckSent_.callback(!0)},nTp=function(q,Z){Z>q.peerProtocolVersion_&&(q.peerProtocolVersion_=Z);
q.peerProtocolVersion_==1&&(q.setupAckSent_.fired_||q.oneSidedHandshake_||q.setupAckSent_.callback(!0),q.peerEndpointId_=null)};
_.e=cD.prototype;_.e.connect=function(){var q=this.getWindow(),Z=_.yj(q),w=Re7[Z];typeof w!=="number"&&(w=0);w==0&&_.Yc(q.postMessage?q:q.document,"message",zeX,!1,cD);Re7[Z]=w+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.e.maybeAttemptToConnect_=function(){var q=t97(this.JSC$7901_channel_)==0;this.oneSidedHandshake_&&q||this.JSC$7901_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),BA2(this))};
_.e.send=function(q,Z){var w=this.JSC$7901_channel_.peerWindowObject_;w&&(this.send=function(r,Y){var C=this,d=this.JSC$7901_channel_.name;this.sendTimerId_=uQ(function(){C.sendTimerId_=0;try{var O=w.postMessage?w:w.document;O.postMessage&&O.postMessage(d+"|"+r+":"+Y,C.peerHostname_)}catch(H){}},0)},this.send(q,Z))};
_.e.notifyConnected_=function(){var q=this.JSC$7901_channel_,Z=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;q.isConnected()||q.connectionDelay_&&q.connectionDelay_.isActive()||(q.state_=2,_.Xg(q.connectionDelay_),Z!==void 0?(q.connectionDelay_=new _.SC(q.connectCb_,Z),q.connectionDelay_.start()):(q.connectionDelay_=null,q.connectCb_()))};
_.e.disposeInternal=function(){if(this.initialized_){var q=this.getWindow(),Z=_.yj(q),w=Re7[Z];Re7[Z]=w-1;w==1&&_.d_(q.postMessage?q:q.document,"message",zeX,!1,cD)}this.sendTimerId_&&(_.$1.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Xg(this.JSC$7901_eventHandler_);delete this.JSC$7901_eventHandler_;_.Xg(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7901_connected_.cancel();delete this.JSC$7901_connected_;delete this.send;cD.superClass_.disposeInternal.call(this)};
var bs9=function(q){q=q.split(",");q[1]=q[1]||null;return q};_.Fi=function(q){if(q.getValues&&typeof q.getValues=="function")return q.getValues();if(typeof Map!=="undefined"&&q instanceof Map||typeof Set!=="undefined"&&q instanceof Set)return Array.from(q.values());if(typeof q==="string")return q.split("");if(_.pX(q)){for(var Z=[],w=q.length,r=0;r<w;r++)Z.push(q[r]);return Z}return _.R4.getValues(q)};
_.Qze=function(q){if(q.getKeys&&typeof q.getKeys=="function")return q.getKeys();if(!q.getValues||typeof q.getValues!="function"){if(typeof Map!=="undefined"&&q instanceof Map)return Array.from(q.keys());if(!(typeof Set!=="undefined"&&q instanceof Set)){if(_.pX(q)||typeof q==="string"){var Z=[];q=q.length;for(var w=0;w<q;w++)Z.push(w);return Z}return _.R4.getKeys(q)}}};
_.ETD=function(q,Z,w){if(q.forEach&&typeof q.forEach=="function")q.forEach(Z,w);else if(_.pX(q)||typeof q==="string")Array.prototype.forEach.call(q,Z,w);else for(var r=_.Qze(q),Y=_.Fi(q),C=Y.length,d=0;d<C;d++)Z.call(w,Y[d],r&&r[d],q)};var kz2,Aq,DS,cfh,TAe,xRv,kjm,UR1,IVp,K67;
_.M$=function(q,Z){this.JSC$7906_domain_=this.userInfo_=this.scheme_="";this.JSC$7906_port_=null;this.fragment_=this.JSC$7906_path_="";this.JSC$7906_ignoreCase_=!1;var w;q instanceof _.M$?(this.JSC$7906_ignoreCase_=Z!==void 0?Z:q.JSC$7906_ignoreCase_,_.NC(this,q.scheme_),this.userInfo_=q.userInfo_,_.lQ(this,q.JSC$7906_domain_),_.GM(this,q.JSC$7906_port_),_.pN(this,q.getPath()),_.Xi(this,q.JSC$7906_queryData_.clone()),_.mx(this,q.fragment_)):q&&(w=_.cF(String(q)))?(this.JSC$7906_ignoreCase_=!!Z,_.NC(this,
w[1]||"",!0),this.userInfo_=Aq(w[2]||""),_.lQ(this,w[3]||"",!0),_.GM(this,w[4]),_.pN(this,w[5]||"",!0),_.Xi(this,w[6]||"",!0),_.mx(this,w[7]||"",!0)):(this.JSC$7906_ignoreCase_=!!Z,this.JSC$7906_queryData_=new _.fN(null,this.JSC$7906_ignoreCase_))};
_.M$.prototype.toString=function(){var q=[],Z=this.scheme_;Z&&q.push(DS(Z,xRv,!0),":");var w=this.JSC$7906_domain_;if(w||Z=="file")q.push("//"),(Z=this.userInfo_)&&q.push(DS(Z,xRv,!0),"@"),q.push(TAe(_.Tj(w))),w=this.JSC$7906_port_,w!=null&&q.push(":",String(w));if(w=this.getPath())this.JSC$7906_domain_&&w.charAt(0)!="/"&&q.push("/"),q.push(DS(w,w.charAt(0)=="/"?UR1:kjm,!0));(w=this.JSC$7906_queryData_.toString())&&q.push("?",w);(w=this.fragment_)&&q.push("#",DS(w,K67));return q.join("")};
_.M$.prototype.resolve=function(q){var Z=this.clone(),w=!!q.scheme_;w?_.NC(Z,q.scheme_):w=!!q.userInfo_;w?Z.userInfo_=q.userInfo_:w=!!q.JSC$7906_domain_;w?_.lQ(Z,q.JSC$7906_domain_):w=q.JSC$7906_port_!=null;var r=q.getPath();if(w)_.GM(Z,q.JSC$7906_port_);else if(w=!!q.JSC$7906_path_){if(r.charAt(0)!="/")if(this.JSC$7906_domain_&&!this.JSC$7906_path_)r="/"+r;else{var Y=Z.getPath().lastIndexOf("/");Y!=-1&&(r=Z.getPath().slice(0,Y+1)+r)}Y=r;if(Y==".."||Y==".")r="";else if(_.uN(Y,"./")||_.uN(Y,"/.")){r=
_.Vj(Y,"/");Y=Y.split("/");for(var C=[],d=0;d<Y.length;){var O=Y[d++];O=="."?r&&d==Y.length&&C.push(""):O==".."?((C.length>1||C.length==1&&C[0]!="")&&C.pop(),r&&d==Y.length&&C.push("")):(C.push(O),r=!0)}r=C.join("/")}else r=Y}w?_.pN(Z,r):w=q.JSC$7906_queryData_.toString()!=="";w?_.Xi(Z,q.JSC$7906_queryData_.clone()):w=!!q.fragment_;w&&_.mx(Z,q.fragment_);return Z};
_.M$.prototype.clone=function(){return new _.M$(this)};
_.NC=function(q,Z,w){q.scheme_=w?Aq(Z,!0):Z;q.scheme_&&(q.scheme_=q.scheme_.replace(/:$/,""));return q};
_.lQ=function(q,Z,w){q.JSC$7906_domain_=w?Aq(Z,!0):Z;return q};
_.GM=function(q,Z){if(Z){Z=Number(Z);if(isNaN(Z)||Z<0)throw Error("Ta`"+Z);q.JSC$7906_port_=Z}else q.JSC$7906_port_=null;return q};
_.M$.prototype.getPath=function(){return this.JSC$7906_path_};
_.pN=function(q,Z,w){q.JSC$7906_path_=w?Aq(Z,!0):Z;return q};
_.Xi=function(q,Z,w){Z instanceof _.fN?(q.JSC$7906_queryData_=Z,szv(q.JSC$7906_queryData_,q.JSC$7906_ignoreCase_)):(w||(Z=DS(Z,IVp)),q.JSC$7906_queryData_=new _.fN(Z,q.JSC$7906_ignoreCase_));return q};
_.Kh=function(q,Z,w){q.JSC$7906_queryData_.set(Z,w);return q};
_.ki=function(q,Z){return q.JSC$7906_queryData_.get(Z)};
_.mx=function(q,Z,w){q.fragment_=w?Aq(Z):Z;return q};
_.hq=function(q){_.Kh(q,"zx",T1());return q};
_.UJ=function(q,Z){return q instanceof _.M$?q.clone():new _.M$(q,Z)};
kz2=function(q,Z){q instanceof _.M$||(q=_.UJ(q));Z instanceof _.M$||(Z=_.UJ(Z));return q.resolve(Z)};
Aq=function(q,Z){return q?Z?decodeURI(q.replace(/%25/g,"%2525")):decodeURIComponent(q):""};
DS=function(q,Z,w){return typeof q==="string"?(q=encodeURI(q).replace(Z,cfh),w&&(q=TAe(q)),q):null};
cfh=function(q){q=q.charCodeAt(0);return"%"+(q>>4&15).toString(16)+(q&15).toString(16)};
TAe=function(q){return q.replace(/%25([0-9a-fA-F]{2})/g,"%$1")};
xRv=/[#\/\?@]/g;kjm=/[#\?:]/g;UR1=/[#\?]/g;IVp=/[#\?@]/g;K67=/#/g;_.fN=function(q,Z){this.count_=this.keyMap_=null;this.encodedQuery_=q||null;this.JSC$7907_ignoreCase_=!!Z};
_.y8=function(q){q.keyMap_||(q.keyMap_=new Map,q.count_=0,q.encodedQuery_&&v81(q.encodedQuery_,function(Z,w){q.add(lO(Z),w)}))};
_.e=_.fN.prototype;_.e.getCount=function(){_.y8(this);return this.count_};
_.e.add=function(q,Z){_.y8(this);this.encodedQuery_=null;q=iQ(this,q);var w=this.keyMap_.get(q);w||this.keyMap_.set(q,w=[]);w.push(Z);this.count_+=1;return this};
_.e.remove=function(q){_.y8(this);q=iQ(this,q);return this.keyMap_.has(q)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(q).length,this.keyMap_.delete(q)):!1};
_.e.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.e.isEmpty=function(){_.y8(this);return this.count_==0};
_.e.containsKey=function(q){_.y8(this);q=iQ(this,q);return this.keyMap_.has(q)};
_.e.containsValue=function(q){var Z=this.getValues();return _.Mj(Z,q)};
_.e.forEach=function(q,Z){_.y8(this);this.keyMap_.forEach(function(w,r){w.forEach(function(Y){q.call(Z,Y,r,this)},this)},this)};
_.e.getKeys=function(){_.y8(this);for(var q=Array.from(this.keyMap_.values()),Z=Array.from(this.keyMap_.keys()),w=[],r=0;r<Z.length;r++)for(var Y=q[r],C=0;C<Y.length;C++)w.push(Z[r]);return w};
_.e.getValues=function(q){_.y8(this);var Z=[];if(typeof q==="string")this.containsKey(q)&&(Z=Z.concat(this.keyMap_.get(iQ(this,q))));else{q=Array.from(this.keyMap_.values());for(var w=0;w<q.length;w++)Z=Z.concat(q[w])}return Z};
_.e.set=function(q,Z){_.y8(this);this.encodedQuery_=null;q=iQ(this,q);this.containsKey(q)&&(this.count_-=this.keyMap_.get(q).length);this.keyMap_.set(q,[Z]);this.count_+=1;return this};
_.e.get=function(q,Z){if(!q)return Z;q=this.getValues(q);return q.length>0?String(q[0]):Z};
_.M9J=function(q,Z,w){q.remove(Z);w.length>0&&(q.encodedQuery_=null,q.keyMap_.set(iQ(q,Z),_.Ge(w)),q.count_+=w.length)};
_.fN.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var q=[],Z=Array.from(this.keyMap_.keys()),w=0;w<Z.length;w++){var r=Z[w],Y=_.Tj(r);r=this.getValues(r);for(var C=0;C<r.length;C++){var d=Y;r[C]!==""&&(d+="="+_.Tj(r[C]));q.push(d)}}return this.encodedQuery_=q.join("&")};
_.fN.prototype.clone=function(){var q=new _.fN;q.encodedQuery_=this.encodedQuery_;this.keyMap_&&(q.keyMap_=new Map(this.keyMap_),q.count_=this.count_);return q};
var iQ=function(q,Z){Z=String(Z);q.JSC$7907_ignoreCase_&&(Z=Z.toLowerCase());return Z},szv=function(q,Z){Z&&!q.JSC$7907_ignoreCase_&&(_.y8(q),q.encodedQuery_=null,q.keyMap_.forEach(function(w,r){var Y=r.toLowerCase();
r!=Y&&(this.remove(r),_.M9J(this,Y,w))},q));
q.JSC$7907_ignoreCase_=Z};
_.fN.prototype.extend=function(q){for(var Z=0;Z<arguments.length;Z++)_.ETD(arguments[Z],function(w,r){this.add(r,w)},this)};var g_=function(q,Z){UT.call(this);for(var w=0,r;r=Sqm[w];w++)if(r in q&&!/^https?:\/\//.test(q[r]))throw Error("Va`"+q[r]+"`"+r);this.cfg_=q;this.name=this.cfg_.cn||jz1();this.JSC$7902_domHelper_=Z||o4();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.Al(this);q.lpu=q.lpu||LF7(this.JSC$7902_domHelper_.getWindow().location.href)+"/robots.txt";q.ppu=q.ppu||LF7(q.pu||"")+"/robots.txt";MC[this.name]=this;Q4W(window,"unload",F67)||qx(window,"unload",F67)};
_.yU(g_,UT);var NAg=RegExp("^%*tp$"),lVp=RegExp("^%+tp$");_.e=g_.prototype;_.e.connectionDelay_=null;_.e.peerWindowDeferred_=null;_.e.transport_=null;_.e.state_=1;_.e.isConnected=function(){return this.state_==2};
_.e.peerWindowObject_=null;_.e.iframeElement_=null;_.e.connect=function(q){this.connectCb_=q||_.Pr;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?V9K(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.e.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7902_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var q=this.iframeElement_.contentWindow;q||(q=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=q}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");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$7902_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new cD(this,this.cfg_.ph,this.JSC$7902_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.e.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Xg(this.transport_);this.connectCb_=this.transport_=null;_.Xg(this.connectionDelay_);this.connectionDelay_=null};
_.e.send=function(q,Z){if(this.isConnected()){try{var w=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(Y){w=!1}if(w){_.DT(Z)&&(Z=(0,_.S3)(Z));w=this.transport_;var r=w.send;NAg.test(q)&&(q="%"+q);q=q.replace(/[%:|]/g,encodeURIComponent);r.call(w,q,Z)}else this.close()}};
_.e.xpcDeliver=function(q,Z,w){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.Lh)(this.xpcDeliver,this,q,Z,w));else if(JfJ(this,w)&&!this.isDisposed()&&this.state_!=3)if(q&&q!="tp")this.isConnected()&&(q=q.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),q=lVp.test(q)?q.substring(1):q,q=this.getService(q,Z))&&(Z=$RK(Z,q.objectPayload),Z!=null&&q.callback(Z));else switch(q=this.transport_,w=bs9(Z),Z=w[1],w[0]){case "SETUP_ACK":nTp(q,1);q.setupAckReceived_.fired_||q.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":q.protocolVersion_==2&&(nTp(q,2),q.setupAckReceived_.fired_||q.setupAckReceived_.callback(!0));break;case "SETUP":nTp(q,1);aVm(q,1);break;case "SETUP_NTPV2":q.protocolVersion_==2&&(w=q.peerProtocolVersion_,nTp(q,2),aVm(q,2),w!=1&&q.peerEndpointId_==null||q.peerEndpointId_==Z||BA2(q),q.peerEndpointId_=Z)}};
var t97=function(q){var Z=q.cfg_.role;return typeof Z==="number"?Z:window.parent==q.peerWindowObject_?1:0},JfJ=function(q,Z){var w=q.cfg_.ph;
return _.W6(Z==null?"":String(Z))||_.W6(w==null?"":String(w))||Z==q.cfg_.ph};
g_.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete MC[this.name];_.Xg(this.peerLoadHandler_);delete this.peerLoadHandler_;g_.superClass_.disposeInternal.call(this)};
var F67=function(){for(var q in MC)_.Xg(MC[q])},MC={};var pFK=function(q,Z){this.JSC$7916_win=q;this.allowAdsHttpEndpoint=Z;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7916_domHelper=o4(q);this.scrollManager=new wF1(q);this.accessibilityManager=new yXm(q);Gje(this)},Gje=function(q){var Z=function(){q.allowAdsPopup&&q.allowAdsPopup.style.setProperty("display","none","important");
q.wallElement.style.setProperty("display","","important");i7h(q.accessibilityManager);ZsW(q.accessibilityManager,q.wallElement.querySelector(".fc-dialog-container"),!1,!1,q.wallElement.querySelector(".fc-button-whitelist"));var Y=q.scrollManager;Y.JSC$7874_domHelper.JSC$7242_document_.body.style.overflow=Y.originalBodyOverflow};
q.allowAdsPopup=q.JSC$7916_domHelper.JSC$7244_createDom("DIV",{"class":"fc-whitelist-root"});q.allowAdsPopup.style.setProperty("display","none","important");q.JSC$7916_domHelper.appendChild(q.JSC$7916_domHelper.JSC$7242_document_.body,q.allowAdsPopup);var w=q.JSC$7916_domHelper.JSC$7244_createDom("DIV",{"class":"fc-dialog-overlay"});q.JSC$7916_domHelper.appendChild(q.allowAdsPopup,w);var r=q.JSC$7916_domHelper.JSC$7244_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:Z});q.JSC$7916_domHelper.appendChild(q.allowAdsPopup,
r);w=q.JSC$7916_domHelper.JSC$7244_createDom("IFRAME");w.className="fc-whitelist-dialog";w.frameBorder="0";w.id="fc-whitelist-iframe";w.tabIndex="0";_.F5(w,q.allowAdsHttpEndpoint);q.JSC$7916_domHelper.appendChild(r,w);r={};r.pu=_.ug(q.allowAdsHttpEndpoint).toString();r.tp=1;r.cn="fc-whitelist-channel";r.ifrid=w.id;r.osh=!0;q.allowAdsCrossPageChannel=new g_(r);q.allowAdsCrossPageChannel.registerService("close",Z);q.allowAdsCrossPageChannel.registerService("refresh",function(){q.JSC$7916_win.location.reload()});
q.allowAdsCrossPageChannel.registerService("resize",function(Y){if(Y){var C=q.allowAdsPopup.querySelector(".fc-whitelist-dialog");Y.width&&C.style.setProperty("width",Y.width,"important");Y.height&&C.style.setProperty("height",Y.height,"important")}},!0);
q.allowAdsCrossPageChannel.connect()};
pFK.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7916_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var q1=window,Zg=document,XF9=q1.location,mRW=function(){},Afv=/\[native code\]/,wk=function(q,Z,w){return q[Z]=q[Z]||w},fVm=function(q){q=q.sort();
for(var Z=[],w=void 0,r=0;r<q.length;r++){var Y=q[r];Y!=w&&Z.push(Y);w=Y}return Z},rk=function(){var q;
if((q=Object.create)&&Afv.test(q))q=q(null);else{q={};for(var Z in q)q[Z]=void 0}return q},YX=wk(q1,"gapi",{});var $X={};$X=wk(q1,"___jsl",rk());wk($X,"I",0);wk($X,"hel",10);var DR1=function(){var q=XF9.href;if($X.dpo)var Z=$X.h;else{Z=$X.h;var w=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),r=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(q=q&&(w.exec(q)||r.exec(q)))try{Z=decodeURIComponent(q[2])}catch(Y){}}return Z},heh=function(q){var Z=wk($X,"PQ",[]);
$X.PQ=[];var w=Z.length;if(w===0)q();else for(var r=0,Y=function(){++r===w&&q()},C=0;C<w;C++)Z[C](Y)},yf9=function(q){return wk(wk($X,"H",rk()),q,rk())};var ei=function(q){this.JSC$7918_obj_=q};
ei.prototype.value=function(){return this.JSC$7918_obj_};
ei.prototype.getWidth=function(){return this.JSC$7918_obj_.width};
ei.prototype.getHeight=function(){return this.JSC$7918_obj_.height};
ei.prototype.getStyle=function(){return this.JSC$7918_obj_.style};var is1=function(q){this.JSC$7921_obj_=q||{}};
_.e=is1.prototype;_.e.value=function(){return this.JSC$7921_obj_};
_.e.setUrl=function(q){this.JSC$7921_obj_.url=q;return this};
_.e.getUrl=function(){return this.JSC$7921_obj_.url};
_.e.getStyle=function(){return this.JSC$7921_obj_.style};
_.e.getId=function(){return this.JSC$7921_obj_.id};
_.e.getContext=function(){return this.JSC$7921_obj_.context};
var gTh=function(q){q.JSC$7921_obj_.attributes=q.JSC$7921_obj_.attributes||{};return new ei(q.JSC$7921_obj_.attributes)};var qkW=function(){is1.apply(this,arguments)};
_.z(qkW,is1);var ZYh=wk($X,"perf",rk());wk(ZYh,"g",rk());var wgm=wk(ZYh,"i",rk());wk(ZYh,"r",[]);rk();rk();var Ykv=function(q,Z,w){Z&&Z.length>0&&(Z=rmm(Z),w&&w.length>0&&(Z+="___"+rmm(w)),Z.length>28&&(Z=Z.substr(0,28)+(Z.length-28)),w=Z,Z=wk(wgm,"_p",rk()),wk(Z,w,rk())[q]=(new Date).getTime(),Z=ZYh.r,typeof Z==="function"?Z(q,"_p",w):Z.push([q,"_p",w]))},rmm=function(q){return q.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var $47=rk(),eR1=[],CG=function(q){throw Error("Ya`"+q);};
eR1.push(["jsl",function(q){for(var Z in q)if(Object.prototype.hasOwnProperty.call(q,Z)){var w=q[Z];typeof w=="object"?$X[Z]=wk($X,Z,[]).concat(w):wk($X,Z,w)}if(Z=q.u)q=wk($X,"us",[]),q.push(Z),(Z=/^https:(.*)$/.exec(Z))&&q.push("http:"+Z[1])}]);
var Cpm=/^(\/[a-zA-Z0-9_\-]+)+$/,Ppe=[/\/amp\//,/\/amp$/,/^\/amp$/],d47=/^[a-zA-Z0-9\-_\.,!]+$/,VTh=/^gapi\.loaded_[0-9]+$/,OYD=/^[a-zA-Z0-9,._-]+$/,uy7=function(q,Z,w,r,Y){var C=q.split(";"),d=C.shift(),O=$47[d],H=null;O?H=O(C,Z,w,r):CG("no hint processor for: "+d);H||CG("failed to generate load url");Z=H;w=Z.match(HYX);(r=Z.match(Wh1))&&r.length===1&&orW.test(Z)&&w&&w.length===1||CG("failed sanity: "+q);try{q="?";if(Y&&Y.length>0){Bz2(Y);var L=Y.join(",");H=H+"?le="+L;q="&"}if($X.rol){var S=$X.ol;
S&&S.length&&(H=""+H+q+"ol="+S.length)}}catch(v){}return H},vrv=function(q,Z,w,r){q=Lh9(q);
VTh.test(w)||CG("invalid_callback");Z=Sk9(Z);r=r&&r.length?Sk9(r):null;var Y=function(C){return encodeURIComponent(C).replace(/%2C/g,",")};
return[encodeURIComponent(q.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",Y(q.version),"/m=",Y(Z),r?"/exm="+Y(r):"","/rt=j/sv=1/d=1/ed=1",q.activeMods?"/am="+Y(q.activeMods):"",q.resourceSig?"/rs="+Y(q.resourceSig):"",q.zcms?"/t="+Y(q.zcms):"","/cb=",Y(w)].join("")},Lh9=function(q){q.charAt(0)!=="/"&&CG("relative path");
for(var Z=q.substring(1).split("/"),w=[];Z.length;){q=Z.shift();if(!q.length||q.indexOf(".")==0)CG("empty/relative directory");else if(q.indexOf("=")>0){Z.unshift(q);break}w.push(q)}q={};for(var r=0,Y=Z.length;r<Y;++r){var C=Z[r].split("="),d=decodeURIComponent(C[0]),O=decodeURIComponent(C[1]);C.length==2&&d&&O&&(q[d]=q[d]||O)}Z="/"+w.join("/");Cpm.test(Z)||CG("invalid_prefix");w=0;for(r=Ppe.length;w<r;++w)Ppe[w].test(Z)&&CG("invalid_prefix");w=jR1(q,"k",!0);r=jR1(q,"am");Y=jR1(q,"rs");q=jR1(q,"t");
return{pathPrefix:Z,version:w,activeMods:r,resourceSig:Y,zcms:q}},Sk9=function(q){for(var Z=[],w=0,r=q.length;w<r;++w){var Y=q[w].replace(/\./g,"_").replace(/-/g,"_");
OYD.test(Y)&&Z.push(Y)}return Z.join(",")},jR1=function(q,Z,w){q=q[Z];
!q&&w&&CG("missing: "+Z);if(q){if(d47.test(q))return q;CG("invalid: "+Z)}return null},orW=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,Wh1=/\/cb=/g,HYX=/\/\//g;
$47.m=function(q,Z,w,r){(q=q[0])||CG("missing_hint");return"https://apis.google.com"+vrv(q,Z,w,r)};
var tTp=decodeURI("%73cript"),RRW=/^[-+_0-9\/A-Za-z]+={0,2}$/,bYW=function(q,Z){for(var w=[],r=0;r<q.length;++r){var Y=q[r],C;if(C=Y){a:{for(C=0;C<Z.length;C++)if(Z[C]===Y)break a;C=-1}C=C<0}C&&w.push(Y)}return w},JmX=function(){var q=$X.nonce;
return q!==void 0?q&&q===String(q)&&q.match(RRW)?q:$X.nonce=null:Zg.querySelector?(q=Zg.querySelector("script[nonce]"))?(q=q.nonce||q.getAttribute("nonce")||"",q&&q===String(q)&&q.match(RRW)?$X.nonce=q:$X.nonce=null):null:null},aLv=function(q){if(Zg.readyState!="loading")zRg(q);
else{var Z=JmX(),w="";Z!==null&&(w=' nonce="'+Z+'"');q="<"+tTp+' src="'+encodeURI(q)+'"'+w+"></"+tTp+">";Zg.write(Bfg?Bfg.createHTML(q):q)}},zRg=function(q){var Z=Zg.createElement(tTp);
Z.setAttribute("src",Bfg?Bfg.createScriptURL(q):q);q=JmX();q!==null&&Z.setAttribute("nonce",q);Z.async="true";(q=Zg.getElementsByTagName(tTp)[0])?q.parentNode.insertBefore(Z,q):(Zg.head||Zg.body||Zg.documentElement).appendChild(Z)},QRm=function(q,Z,w){nrh(function(){var r=Z===DR1()?wk(YX,"_",rk()):rk();
r=wk(yf9(Z),"_",r);q(r)},w)},dB9=function(q,Z){var w=Z||{};
typeof Z=="function"&&(w={},w.callback=Z);var r=(Z=w)&&Z._c;if(r)for(var Y=0;Y<eR1.length;Y++){var C=eR1[Y][0],d=eR1[Y][1];d&&Object.prototype.hasOwnProperty.call(r,C)&&d(r[C],q,Z)}Z=[];q?Z=q.split(":"):w.features&&(Z=w.features);if(!(q=w.h)&&(q=DR1(),!q))throw Error("Za");ErK(Z||[],w,q)},ErK=function(q,Z,w){q=fVm(q)||[];
var r=Z.callback,Y=Z.config,C=Z.timeout,d=Z.ontimeout,O=Z.onerror,H=void 0;typeof O=="function"&&(H=O);var L=null,S=!1;if(C&&!d||!C&&d)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";O=wk(yf9(w),"r",[]).sort();var v=wk(yf9(w),"L",[]).sort(),R=$X.le||[],B=[].concat(O),n=function(rz,f){if(S)return 0;q1.clearTimeout(L);v.push.apply(v,x);var eO=((YX||{}).config||{}).update;eO?eO(Y):Y&&wk($X,"cu",[]).push(Y);if(f){Ykv("me0",rz,B);try{QRm(f,w,H)}finally{Ykv("me1",rz,
B)}}return 1};
C>0&&(L=q1.setTimeout(function(){S=!0;d()},C));
var x=bYW(q,v);if(x.length){x=bYW(q,O);var K=wk($X,"CP",[]),k=K.length;K[k]=function(rz){if(!rz)return 0;Ykv("ml1",x,B);var f=function(g){K[k]=null;n(x,rz)&&heh(function(){r&&r();g()})},eO=function(){var g=K[k+1];
g&&g()};
k>0&&K[k-1]?K[k]=function(){f(eO)}:f(eO)};
if(x.length){var G="loaded_"+$X.I++;YX[G]=function(rz){K[k](rz);YX[G]=null};
q=uy7(w,x,"gapi."+G,O,R);O.push.apply(O,x);Ykv("ml0",x,B);Z.sync||q1.___gapisync?aLv(q):zRg(q)}else K[k](mRW)}else n(x)&&r&&r()},x4D;
var Tfh=null,U4X=_.$1.trustedTypes;if(U4X&&U4X.createPolicy){try{Tfh=U4X.createPolicy("goog#gapi",{createHTML:rG1,createScript:rG1,createScriptURL:rG1})}catch(q){_.$1.console&&_.$1.console.error(q.message)}x4D=Tfh}else x4D=Tfh;var Bfg=x4D,nrh=function(q,Z){if($X.hee&&$X.hel>0)try{return q()}catch(w){Z&&Z(w),$X.hel--,dB9("debug_error",function(){try{window.___jsl.hefn(w)}catch(r){throw w;}})}else try{return q()}catch(w){throw Z&&Z(w),w;
}},kO7=YX.load;
kO7&&wk($X,"ol",[]).push(kO7);YX.load=function(q,Z){return nrh(function(){return dB9(q,Z)})};var TfT;var Khg=function(q,Z){this.serviceId_=q;this.moduleId_=Z||null};
Khg.prototype.toString=function(){return this.serviceId_};
Khg.prototype.getModuleId=function(){return this.moduleId_};var hEI=new Khg("MpJwZc","MpJwZc");var ipz=new _.Y2("a"),yyN=function(q,Z,w){_.$2.call(this,q,Z);this.node=Z;this.kind=w};
_.z(yyN,_.$2);var sR2=function(){this.JSC$7934_keys_={};this.urlPrefix_="";this.JSC$7934_queryData_={}};
sR2.prototype.toString=function(){var q=this.urlPrefix_+IL7(this),Z=_.ZL(this.JSC$7934_queryData_),w="";Z!=""&&(w="?"+Z);return q+w};
var cmJ=function(q){q=PW(q,"md");return!!q&&q!=="0"},IL7=function(q){var Z=[],w=(0,_.Lh)(function(r){this.JSC$7934_keys_[r]!==void 0&&Z.push(r+"="+this.JSC$7934_keys_[r])},q);
cmJ(q)?(w("md"),w("k"),w("ck"),w("am"),w("rs"),w("gssmodulesetproto"),w("slk"),w("dti")):(w("sdch"),w("k"),w("ck"),w("am"),w("rt"),"d"in q.JSC$7934_keys_||dk(q,"d","0"),w("d"),w("exm"),w("excm"),(q.JSC$7934_keys_.excm||q.JSC$7934_keys_.exm)&&Z.push("ed=1"),w("im"),w("dg"),w("sm"),PW(q,"br")!="1"&&PW(q,"br")!="0"||w("br"),w("br-d"),PW(q,"rb")=="1"&&w("rb"),PW(q,"zs")!=="0"&&w("zs"),MTX(q)!==""&&w("wt"),w("gssmodulesetproto"),w("ujg"),w("sp"),w("rs"),w("cb"),w("ee"),w("slk"),w("dti"),w("m"));return Z.join("/")},
PW=function(q,Z){return q.JSC$7934_keys_[Z]?q.JSC$7934_keys_[Z]:null},dk=function(q,Z,w){w?q.JSC$7934_keys_[Z]=w:delete q.JSC$7934_keys_[Z]},Fh7=function(q,Z){q.urlPrefix_=Z},NfK=function(q,Z){Z&&Z.length>0?(Z.sort(),dk(q,"exm",Z.join(","))):dk(q,"exm",null)},lL7=function(q,Z){Z&&Z.length>0?(Z.sort(),dk(q,"excm",Z.join(","))):dk(q,"excm",null)},GOJ=function(q){return(q=PW(q,"m"))?q.split(","):[]},MTX=function(q){switch(PW(q,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},pgh=function(q,Z){var w=Object.keys(Z).filter(function(r){return!!Object.keys(Z[r]).length}).map(function(r){var Y=Object.keys(Z[r]);
Y.length>1&&Y.sort();return r+":"+Y.join(",")});
w.sort();dk(q,"ee",w.join(";"))},tJI=function(q){var Z=PW(q,"ee");
if(!Z)return{};q={};Z=_.P(Z.split(";"));for(var w=Z.next();!w.done;w=Z.next()){var r=_.P(w.value.split(":"));w=r.next().value;r=r.next().value;q[w]={};r=_.P(r.split(","));for(var Y=r.next();!Y.done;Y=r.next())q[w][Y.value]=!0}return q},Xg7=function(q){delete q.JSC$7934_keys_.m;
delete q.JSC$7934_keys_.exm;delete q.JSC$7934_keys_.ed};
sR2.prototype.clone=function(){return Xs(this.toString())};
var Xs=function(q,Z){Z=Z===void 0?!0:Z;var w=m41(q),r=new sR2,Y=_.cF(w)[5];_.R4.forEach(Am9,function(d){var O=Y.match("/"+d+"=([^/]+)");O&&dk(r,d,O[1])});
var C="";C=q.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";Fh7(r,q.substr(0,q.indexOf(C)+C.length));if(!Z)return r;(q=_.cF(w)[6]||null)&&v81(q,function(d,O){r.JSC$7934_queryData_[d]=O});
return r},SGT=function(q){q=_.gA(m41(q));
return q===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(q)?/\/k=/.test(q):!1},m41=function(q){return q.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?q.substr(65):q},Am9={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",INCLUDE_COMPILE_HINTS_COMMENT:"ichc",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},fLm=RegExp("^loaded_(g|h)?[_\\d]+$");_.VT=function(q){this.JSC$7946_id_=q;this.opts={}};
_.VT.prototype.JSC$7948_setLabel=function(q){this.label_=q||void 0;return this};
_.VT.prototype.addUploadMetadata=function(q,Z){var w=this.opts.data||{};w[q]=Z;this.opts.data=w;return this};
var D4K=function(q){var Z=_.R4.filter(q.opts,function(w){return w!==null});
Z=_.R4.isEmpty(Z)?null:Z;q=[q.JSC$7946_id_,q.label_,Z];Z=tO6(q);return q=q.slice(0,Z+1)};
_.VT.prototype.toString=function(){var q=D4K(this);return"("+_.bM(q,function(Z){return JSON.stringify(Z)}).join(",")+")"};
_.VT.prototype.getId=function(){return this.JSC$7946_id_};
_.VT.prototype.getOptions=function(){return _.R4.clone(this.opts)};var Os=function(){_.VT.call(this,"image-search")};
_.z(Os,_.VT);Os.prototype.setSize=function(q){this.opts.imgsz=q;return this};
Os.prototype.JSC$7948_setLabel=function(q){_.VT.prototype.JSC$7948_setLabel.call(this,q);return this};
Os.prototype.addUploadMetadata=function(q,Z){_.VT.prototype.addUploadMetadata.call(this,q,Z);return this};var HW=function(){_.VT.call(this,"maps")};
_.z(HW,_.VT);HW.prototype.setZoom=function(q){this.opts.zoom=q;return this};
HW.prototype.JSC$7948_setLabel=function(q){_.VT.prototype.JSC$7948_setLabel.call(this,q);return this};
HW.prototype.addUploadMetadata=function(q,Z){_.VT.prototype.addUploadMetadata.call(this,q,Z);return this};_.WW=function(){_.VT.call(this,"photos")};
_.z(_.WW,_.VT);_.WW.prototype.JSC$7948_setLabel=function(q){_.VT.prototype.JSC$7948_setLabel.call(this,q);return this};
_.WW.prototype.addUploadMetadata=function(q,Z){_.VT.prototype.addUploadMetadata.call(this,q,Z);return this};var ot=function(){_.VT.call(this,"url")};
_.z(ot,_.VT);var hRD=function(){var q=new ot;q.opts.type="video";q.opts.site="youtube.com";return q};
ot.prototype.JSC$7948_setLabel=function(q){_.VT.prototype.JSC$7948_setLabel.call(this,q);return this};
ot.prototype.addUploadMetadata=function(q,Z){_.VT.prototype.addUploadMetadata.call(this,q,Z);return this};var uU=function(){_.VT.call(this,"video-search")};
_.z(uU,_.VT);var ym7=function(){var q=new uU;q.opts.site="youtube.com";return q};
uU.prototype.JSC$7948_setLabel=function(q){_.VT.prototype.JSC$7948_setLabel.call(this,q);return this};
uU.prototype.addUploadMetadata=function(q,Z){_.VT.prototype.addUploadMetadata.call(this,q,Z);return this};var iY1=function(){_.VT.call(this,"web")};
_.z(iY1,_.VT);iY1.prototype.JSC$7948_setLabel=function(q){_.VT.prototype.JSC$7948_setLabel.call(this,q);return this};
iY1.prototype.addUploadMetadata=function(q,Z){_.VT.prototype.addUploadMetadata.call(this,q,Z);return this};var LG=function(){this.items_=[];this.opts={}},grh=function(q){switch(q){case "image-search":return new Os;
case "maps":return new HW;case "photos":return new _.WW;case "url":return new ot;case "video-search":return new uU;case "web":return new iY1}return new _.VT(q)};
LG.prototype.addView=function(q){this.items_.push(typeof q==="string"?grh(q):q);return this};
var qG2=function(q){return"("+_.bM(q.items_,function(Z){return Z.toString()}).join(",")+")"};
LG.prototype.toString=function(){return qG2(this)};
LG.prototype.getViews=function(q,Z){Z=Z===void 0?[]:Z;for(var w=this.items_,r=0;r<w.length;r++){var Y=w[r];Y instanceof LG?Y.getViews(q,Z):Y.getId()==q&&Z.push(Y)}return Z};
LG.prototype.getOptions=function(){return _.R4.clone(this.opts)};var a1=function(q){this.basePickerUrl_=q||"https://docs.google.com/picker";this.nav_=new LG};
a1.prototype.nav_=null;a1.prototype.addView=function(q){this.nav_.addView(q);return this};
a1.prototype.getBaseUrl=function(){return this.basePickerUrl_};
a1.prototype.getViews=function(q){return this.nav_.getViews(q)};
_.ZBD=function(q,Z){q.callback_=Z;return q};var w5v=new Map;w5v.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");w5v.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");w5v.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var r9v=new Set;r9v.add("application/vnd.google-apps.kix");r9v.add("application/vnd.google-apps.ritz");r9v.add("application/vnd.google-apps.punch");var uwm=function(q,Z,w){var r=w&&_.bY(w,1);w=YGg(w);var Y=q[0].getId();switch(_.Jz(Y,2)){case 13:return $ND(q,Z,r,w);case 3:return e$X(q,Z,r,w);case 10:return Che(q,Z,r,w);case 27:return Che(q,Z,r,w);case 12:return PhD(q,Z);case 2:return dN7(q,Z,r,w);case 5:return VJ7(q,Z,r,w);case 9:return OBm(q,Z,r,w);case 6:return HBp(q,Z,r,w);case 25:return Wl9(q,Z,r,w);case 1:return _.Og(q[0],gvp,26)?oYm(q,Z,r,w):Che(q,Z,r,w);default:return{}}},HBp=function(q,Z,w,r){q=q.map(function(Y){return{id:Y.getId().getId(),
serviceId:"youtube",name:Y.getName(),description:_.bY(Y,3),type:Si(Y),lastEditedUtc:_.iAp(_.Xy(Y,_.Uz,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Y.getUrl(),embedUrl:_.bY(Y,13),thumbnails:vW(l4(Y))}});
return{action:Z,docs:q,viewToken:r,view:w||"youtube",v2Translated:!0}},dN7=function(q,Z,w,r){var Y=q.map(function(C){var d=C.getId().getId(),O=_.bY(C,7),H=C.getName(),L=Si(C),S=_.iAp(_.Xy(C,_.Uz,12)).getTime(),v=C.getUrl(),R=Number(LY1(C)),B=_.bY(C,3),n=_.bY(C,11),x=vW(l4(C));
var K=_.Xy(C,G3,21);K=_.jF(K,1);var k=_.Xy(C,G3,21);k=_.bY(k,10);var G=_.bY(C,13);var rz=_.Xy(C,G3,21);rz=_.jF(rz,9);var f=_.Xy(C,G3,21);f=_.bY(f,11);d={id:d,serviceId:"docs",mimeType:O,name:H,type:L,lastEditedUtc:S,url:v,sizeBytes:R,description:B,iconUrl:n,thumbnails:x,isShared:K,downloadUrl:k,embedUrl:G,copyable:rz,resourceKey:f};O=_.Xy(C,G3,21);_.jF(O,12)&&(d.uploadState="success",d.isNew=!0);O=_.Xy(C,G3,21);_.Og(O,Mf,3)&&(C=_.Xy(C,G3,21),C=_.Xy(C,Mf,3),_.Og(C,Ir,2)&&(O=z1(C.getDuration().getSeconds()),
H=C.getDuration(),H=_.DM(H,2),d.duration=O+H/1E9),d.aspectRatio=C.getAspectRatio());return d});
return{action:Z,docs:Y,viewToken:r,view:w||"all",extraUserInputs:Llg(q),v2Translated:!0}},VJ7=function(q,Z,w,r){q=q.map(function(Y){var C=_.Xy(Y,Pb2,15);
C=_.Xy(C,cr,1);Cb(Y,10,cr,C);return{id:Y.getId().getId(),serviceId:"web",mimeType:_.bY(Y,7),name:Y.getName(),type:Si(Y),url:Y.getUrl(),description:_.bY(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:vW(l4(Y))}});
return{action:Z,docs:q,viewToken:r,view:w||"image-search",v2Translated:!0}},OBm=function(q,Z,w,r){q=q.map(function(Y){return{serviceId:"url",
name:l4(Y)[0].getUrl().split("/").pop(),type:Si(Y),mimeType:_.bY(Y,7),url:Y.getUrl(),description:_.bY(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:vW(l4(Y))}});
return{action:Z,docs:q,viewToken:r,view:w||"url",v2Translated:!0}},oYm=function(q,Z,w,r){q=q.map(function(Y){return{id:Y.getId().getId(),
serviceId:"picasa",name:Y.getName(),type:Si(Y),description:_.bY(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:vW(l4(Y))}});
return{action:Z,docs:q,viewToken:r,view:w||"webcam",v2Translated:!0}},Che=function(q,Z,w,r){return{action:Z,
docs:q.map(SGe),viewToken:r,view:vYD(w||"upload",q),extraUserInputs:Llg(q),v2Translated:!0}},vYD=function(q,Z){return Z.some(function(w){var r;
return((r=_.Xy(w,Fb,30))==null?void 0:_.Jz(r,3))===9})?q+"/gmailphotos":q},e$X=function(q,Z,w,r){var Y=q.map(function(C){var d={id:C.getId().getId(),
serviceId:"picasa",mimeType:_.bY(C,7),name:C.getName(),type:Si(C),lastEditedUtc:_.iAp(_.Xy(C,_.Uz,12)).getTime(),url:C.getUrl(),sizeBytes:Number(LY1(C)),description:_.bY(C,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:vW(l4(C)),mediaKey:C.getId().getId(),parentId:_.bY(C,4)},O,H=(O=_.Xy(C,wqX,18))==null?void 0:_.Xy(O,Z_h,3);H&&(d.latitude=Rl(H,1),d.longitude=Rl(H,2));var L;C=(L=_.Xy(C,wqX,18))==null?void 0:tz(L,6);L=C!=null?z1(C):void 0;L&&(d.version=
L);return d});
return{action:Z,docs:Y,viewToken:r,view:w||"photos",extraUserInputs:Llg(q),v2Translated:!0}},$ND=function(q,Z,w,r){q=q.map(function(Y){return{id:Y.getId().getId(),
serviceId:"et",name:l4(Y)[0].getUrl().split("/").pop(),description:_.bY(Y,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:vW(l4(Y),"etjpg")}});
return{action:Z,docs:q,viewToken:r,view:w||"et",v2Translated:!0}},Wl9=function(q,Z,w,r){q=q.map(function(Y){var C=Y.getId().getId(),d=r["2"];
return{id:C,serviceId:d.type!=="gmail_themes"&&d.parent==="6226252643674576769"?"picasa":"static_themes",name:Y.getName(),mimeType:_.bY(Y,7),type:Si(Y),description:_.bY(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Y.getUrl(),embedUrl:Y.getUrl(),thumbnails:vW(l4(Y))}});
return{action:Z,docs:q,viewToken:r,view:w||"photos",v2Translated:!0}},PhD=function(q,Z){q=q.map(function(w){var r=_.Xy(w,qIp,27);
r=_.U6(r,1,_.Hy,_.fC())[0];return{id:w.getId().getId(),serviceId:"contacts",mimeType:_.bY(w,7),name:w.getName(),description:_.bY(w,3),url:"mailto:"+r,thumbnail:[{url:_.bY(w,11)}],email:r}});
return{action:Z,docs:q,view:"contacts",v2Translated:!0}},YGg=function(q){if(!q)return{};
var Z=_.bY(q,3);Z=Z&&JSON.parse(Z)||{};return{0:_.bY(q,1),1:_.bY(q,2),2:Z}},vW=function(q,Z){Z=Z===void 0?"":Z;
if(!q.length)return null;Z=="etjpg"&&(q=q.filter(function(w){return w.getUrl().includes("w1200-h300")}));
return q.map(function(w){return{url:w.getUrl(),height:w.getHeight(),width:w.getWidth(),type:Z}})},Llg=function(q){return{isAttachment:q.some(function(Z){return _.jF(Z,31)})}},SGe=function(q){var Z,w={id:(Z=q.getId())==null?void 0:Z.getId(),
serviceId:j$X(q),mimeType:_.bY(q,7),name:q.getName(),type:Si(q),sizeBytes:Number(LY1(q)),description:_.bY(q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:vW(l4(q)),isNew:!0};if(Z=_.Xy(q,Fb,30)){w.dataUrl=_.bY(Z,1)||null;a:{var r=_.Xy(q,Fb,30);switch(_.Jz(r,3)){case 9:r=_.al(r,eB9,2,Nf);r={remoteRefs:r&&_.bY(r,1)};break a;case 10:case 15:r=_.al(r,$Xe,4,Nf);var Y=l4(q);r={photo_id:r&&_.bY(r,1),media_key:q.getId().getId(),media_type:_.Jz(q,6)===1?1:2,image_url:Y&&
Y[0].getUrl(),width:Y&&String(Y[0].getWidth()),height:Y&&String(Y[0].getHeight())};break a}r=null}w.uploadMetadata=r;w.uploadId=_.bY(Z,9)||null;w.uploadState=tJv(Z)||null}(r=Z&&_.al(Z,$Xe,4,Nf))&&(w.id=_.bY(r,1));(r=Z&&_.al(Z,Cb9,5,Nf))&&(w.contentId=_.bY(r,1));(r=Z&&_.al(Z,ru7,7,Nf))&&(w.contentId=_.bY(r,1));(r=Z&&_.al(Z,YIe,6,Nf))&&(w.contentId=_.bY(r,1));(Z==null?void 0:_.Jz(Z,3))===1&&(w.mediaKey=q.getId().getId());return w},j$X=function(q){var Z;
switch(((Z=_.Xy(q,Fb,30))==null?void 0:_.Jz(Z,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},Si=function(q){switch(_.Jz(q,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 _.bY(q,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},tJv=function(q){switch(q==null?void 0:_.Jz(q,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 z$v,R$h,bBX,J9J;_.ji=function(q,Z){var w=Z||{};Z=w.document||document;var r=_.ug(q).toString(),Y=(new Sz(Z)).createElement("SCRIPT"),C={script_:Y,timeout_:void 0},d=new k2(R$h,C),O=null,H=w.timeout!=null?w.timeout:5E3;H>0&&(O=window.setTimeout(function(){bBX(Y,!0);d.errback(new J9J(1,"Timeout reached for loading script "+r))},H),C.timeout_=O);
Y.onload=Y.onreadystatechange=function(){Y.readyState&&Y.readyState!="loaded"&&Y.readyState!="complete"||(bBX(Y,w.cleanupWhenDone||!1,O),d.callback(null))};
Y.onerror=function(){bBX(Y,!0,O);d.errback(new J9J(0,"Error while loading script "+r))};
C=w.attributes||{};_.R4.extend(C,{type:"text/javascript",charset:"UTF-8"});PgX(Y,C);_.AI(Y,q);z$v(Z).appendChild(Y);return d};
z$v=function(q){var Z=OJ("HEAD",q);return Z&&Z.length!==0?Z[0]:q.documentElement};
R$h=function(){if(this&&this.script_){var q=this.script_;q&&q.tagName=="SCRIPT"&&bBX(q,!0,this.timeout_)}};
bBX=function(q,Z,w){w!=null&&_.$1.clearTimeout(w);q.onload=function(){};
q.onerror=function(){};
q.onreadystatechange=function(){};
Z&&window.setTimeout(function(){_.Vb(q)},0)};
J9J=function(q,Z){var w="Jsloader error (code #"+q+")";Z&&(w+=": "+Z);_.qj.call(this,w);this.code=q};
_.yU(J9J,_.qj);var BID=_.Fr(["https://apis.google.com/js/api.js"]),a$7=_.qu(BID),xN9=function(q,Z){var w=!1,r=nYh(q,Z).then(function(C){w=!0;return C}),Y=_.r1W(5E3).then(function(){return w?nYh(q,Z):Q$g(Z).then(function(C){return EYe(C,q)})});
return X3v([r,Y])},nYh=function(q,Z){return TI7(Z).then(function(w){return EYe(w,q)})},EYe=function(q,Z){var w=_.Vj(Z,"gapi.")?Z.slice(5):Z;
return q[w]?_.YK(q[w]):new _.r5(function(r,Y){var C=uQ(function(){Y(Error("bb"))},3E4);
q.load(Z,{callback:function(){_.$1.clearTimeout(C);r(q[w])},
onerror:function(d){_.$1.clearTimeout(C);Y(d)}})})},TI7=function(q){return q.gapi&&q.gapi.load?_.YK(q.gapi):Q$g(q)},Q$g=function(q){return _.ji(a$7,{document:q.document}).then(function(){return q.gapi})},UN7=function(){};
UN7.prototype.load=function(q,Z){Z=Z===void 0?window:Z;var w=Date.now();return xN9(q,Z).then(function(r){var Y=Date.now();return{library:r,loadStartMs:w,loadEndMs:Y}},function(r){throw r instanceof Error?r:Error(String(r));
})};var Xg9=function(){_.u6.call(this);this.gapiLoader_=new UN7;this.origin_=null;this.gapiPickerIframeResolver_=_.Be();this.gapiIframesResolver_=_.Be();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.z(Xg9,_.u6);var koW=function(q,Z){var w=_.Eq("gapi.iframes",Z);return w?(q=Date.now(),_.YK({library:w,loadStartMs:q,loadEndMs:q})):q.gapiLoader_.load("gapi.iframes",Z)},KlK=function(q,Z,w,r,Y,C){var d=!0;
d=d===void 0?!1:d;koW(q,a4(Z.ownerDocument)).then(function(O){var H=O.library;q.gapiIframesResolver_.resolve(H);O=q.gapiPickerIframeResolver_;var L=O.resolve,S=d;S=S===void 0?!1:S;var v={};v["host-message-handler"]=w;q.hostMessageHandlerInternal_=v;var R=_.UJ(r);R=_.UJ(R);R=_.GM(_.lQ(_.NC(new _.M$,R.scheme_),R.JSC$7906_domain_),R.JSC$7906_port_).toString();q.origin_=R;R=(new qkW).setUrl(r);R.JSC$7921_obj_.where=Z;R.JSC$7921_obj_.allowPost=S;R.JSC$7921_obj_.messageHandlers=v;S=_.Eq("makeWhiteListIframesFilter",
H)([q.origin_]);R.JSC$7921_obj_.messageHandlersFilter=S;Y!=null&&(R.JSC$7921_obj_.id=Y);C!=null&&(R.JSC$7921_obj_.rpctoken=C);S=gTh(R);S.JSC$7918_obj_.style={display:"block","min-width":"100%",width:"1px"};S.JSC$7918_obj_.height="100%";gTh(R).value().allow="camera 'src' "+q.origin_;H=H.getContext().openChild(R.value());L.call(O,H)},function(O){q.gapiIframesResolver_.reject(O);
q.gapiPickerIframeResolver_.reject(O)});
return q.gapiPickerIframeResolver_.promise},s$g=function(q,Z){return _.WD([q.gapiIframesResolver_.promise,
q.gapiPickerIframeResolver_.promise]).then(function(w){var r=_.P(w);w=r.next().value;return(r=r.next().value)?r.send("picker-message-handler",Z,void 0,_.Eq("makeWhiteListIframesFilter",w)([q.origin_])):_.TX(Error("cb"))})};
Xg9.prototype.disposeInternal=function(){I$p(this);_.u6.prototype.disposeInternal.call(this)};
var I$p=function(q){q.gapiPickerIframeResolver_.promise.then(function(Z){Z&&(Z.unregister("host-message-handler"),delete q.hostMessageHandlerInternal_["host-message-handler"])})};var c9m=function(){this.nextId=0};var FlX=function(q,Z){switch(q.action){case "select-contacts":q=MJ7(q.contacts);break;case "visibility":q=q.visible;var w=new Xb;q=_.QM(w,1,7).setVisible(q);w={};w["iframe-command"]=q.serialize();q=w;break;default:q=null}return q?s$g(Z,q):_.YK()},MJ7=function(q){if(!q||q.length==0)return null;
var Z=new Xb;_.QM(Z,1,11);var w=new c9m;q.forEach(function(r){if(r.email){var Y=new SF;Y=_.l2(Y,2,r.name?r.name:r.email);var C=new qIp;r=_.alN(C,1,_.db,r.email,_.Hy);r=_.CA(Y,27,r);Y=new yIW;C=":"+(w.nextId++).toString(36);Y=_.l2(Y,1,C);Y=_.QM(Y,2,12);r=_.CA(r,1,Y)}else r=null;r&&Cb(Z,7,SF,r)});
q={};q["iframe-command"]=Z.serialize();return q};_.NID=function(){if(EUI){var q=/Windows NT ([0-9.]+)/;return(q=q.exec(_.jO()))?q[1]:"0"}return _.Qo8?(q=/1[0|1][_.][0-9_.]+/,(q=q.exec(_.jO()))?q[0].replace(/_/g,"."):"10"):AHI?(q=/Android\s+([^\);]+)(\)|;)/,(q=q.exec(_.jO()))?q[1]:""):TCz||U_N||kCN?(q=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(q=q.exec(_.jO()))?q[1].replace(/_/g,"."):""):""}();var t3;t3=function(q){return(q=q.exec(_.jO()))?q[1]:""};
_.l$2=function(){if(_.$Z)return t3(/Firefox\/([0-9.]+)/);if(_.wS||_.KY||BCT)return _.NCX;if(_.eF){if(_.x1()||_.LIT()){var q=t3(/CriOS\/([0-9.]+)/);if(q)return q}return t3(/Chrome\/([0-9.]+)/)}if(_.bp&&!_.x1())return t3(/Version\/([0-9.]+)/);if(uRz||LST){if(q=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.jO()))return q[1]+"."+q[2]}else if(Xl2)return(q=t3(/Android\s+([0-9.]+)/))?q:t3(/Version\/([0-9.]+)/);return""}();var Gom=function(){};
_.Db(Gom);Gom.prototype.nextId_=0;_.b2=function(q){return":"+(q.nextId_++).toString(36)};var Rt=function(q){_.V8.call(this);this.JSC$8016_dom_=q||o4();this.JSC$8016_id_=null;this.inDocument_=!1;this.JSC$8016_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.yU(Rt,_.V8);Rt.prototype.idGenerator_=Gom.getInstance();Rt.prototype.getId=function(){return this.JSC$8016_id_||(this.JSC$8016_id_=_.b2(this.idGenerator_))};
Rt.prototype.getElement=function(){return this.JSC$8016_element_};
var bU=function(q){q.googUiComponentHandler_||(q.googUiComponentHandler_=new _.Al(q));return q.googUiComponentHandler_},p5p=function(q,Z){if(q==Z)throw Error("db");
var w;if(w=Z&&q.parent_&&q.JSC$8016_id_){w=q.parent_;var r=q.JSC$8016_id_;w=w.childIndex_&&r?_.R4.get(w.childIndex_,r)||null:null}if(w&&q.parent_!=Z)throw Error("db");q.parent_=Z;Rt.superClass_.setParentEventTarget.call(q,Z)};
Rt.prototype.setParentEventTarget=function(q){if(this.parent_&&this.parent_!=q)throw Error("eb");Rt.superClass_.setParentEventTarget.call(this,q)};
Rt.prototype.JSC$8018_createDom=function(){this.JSC$8016_element_=this.JSC$8016_dom_.createElement("DIV")};
Rt.prototype.render=function(q){X57(this,q)};
var X57=function(q,Z,w){if(q.inDocument_)throw Error("fb");q.JSC$8016_element_||q.JSC$8018_createDom();Z?Z.insertBefore(q.JSC$8016_element_,w||null):q.JSC$8016_dom_.JSC$7242_document_.body.appendChild(q.JSC$8016_element_);q.parent_&&!q.parent_.inDocument_||q.enterDocument()};
_.e=Rt.prototype;_.e.decorate=function(q){if(this.inDocument_)throw Error("fb");if(q&&this.canDecorate(q)){this.wasDecorated_=!0;var Z=_.nC(q);this.JSC$8016_dom_&&this.JSC$8016_dom_.JSC$7242_document_==Z||(this.JSC$8016_dom_=o4(q));this.decorateInternal(q);this.enterDocument()}else throw Error("gb");};
_.e.canDecorate=function(){return!0};
_.e.decorateInternal=function(q){this.JSC$8016_element_=q};
_.e.enterDocument=function(){this.inDocument_=!0;mNW(this,function(q){!q.inDocument_&&q.getElement()&&q.enterDocument()})};
_.e.exitDocument=function(){mNW(this,function(q){q.inDocument_&&q.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.e.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);mNW(this,function(q){q.dispose()});
!this.wasDecorated_&&this.JSC$8016_element_&&_.Vb(this.JSC$8016_element_);this.parent_=this.model_=this.JSC$8016_element_=this.childIndex_=this.children_=null;Rt.superClass_.disposeInternal.call(this)};
_.e.getModel=function(){return this.model_};
_.e.addChild=function(q,Z){var w=this.children_?this.children_.length:0;if(q.inDocument_&&(Z||!this.inDocument_))throw Error("fb");if(w<0||w>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);q.parent_==this?(_.R4.set(this.childIndex_,q.getId(),q),_.F9(this.children_,q)):_.R4.add(this.childIndex_,q.getId(),q);p5p(q,this);_.z81(this.children_,w,0,q);q.inDocument_&&this.inDocument_&&q.parent_==this?(Z=this.getContentElement(),
(Z.childNodes[w]||null)!=q.getElement()&&(q.getElement().parentElement==Z&&Z.removeChild(q.getElement()),w=Z.childNodes[w]||null,Z.insertBefore(q.getElement(),w))):Z?(this.JSC$8016_element_||this.JSC$8018_createDom(),w=this.children_?this.children_[w+1]||null:null,X57(q,this.getContentElement(),w?w.JSC$8016_element_:null)):this.inDocument_&&!q.inDocument_&&q.JSC$8016_element_&&q.JSC$8016_element_.parentNode&&q.JSC$8016_element_.parentNode.nodeType==1&&q.enterDocument()};
_.e.getContentElement=function(){return this.JSC$8016_element_};
var mNW=function(q,Z){q.children_&&q.children_.forEach(Z,void 0)};
Rt.prototype.removeChild=function(q,Z){if(q){var w=typeof q==="string"?q:q.getId();q=this.childIndex_&&w?_.R4.get(this.childIndex_,w)||null:null;w&&q&&(_.R4.remove(this.childIndex_,w),_.F9(this.children_,q),Z&&(q.exitDocument(),q.JSC$8016_element_&&_.Vb(q.JSC$8016_element_)),p5p(q,null))}if(!q)throw Error("ib");return q};_.yU(sRO,Kh1);_.yU(ILj,Kh1);var A9v;var f$W=function(q,Z){Z?q.setAttribute("role",Z):q.removeAttribute("role")},J3=function(q,Z,w){Array.isArray(w)&&(w=w.join(" "));
var r="aria-"+Z;w===""||w==void 0?(A9v||(w={},A9v=(w.atomic=!1,w.autocomplete="none",w.dropeffect="none",w.haspopup=!1,w.live="off",w.multiline=!1,w.multiselectable=!1,w.orientation="vertical",w.readonly=!1,w.relevant="additions text",w.required=!1,w.sort="none",w.busy=!1,w.disabled=!1,w.hidden=!1,w.invalid="false",w)),w=A9v,Z in w?q.setAttribute(r,w[Z]):q.removeAttribute(r)):q.setAttribute(r,w)};var DNe;_.zS=function(q,Z,w){_.V8.call(this);this.target=q;this.handle=Z||q;this.limits=w||new Ev(NaN,NaN,NaN,NaN);this.JSC$8021_document_=_.nC(q);this.JSC$8021_eventHandler_=new _.Al(this);_.$i(this,this.JSC$8021_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;_.Yc(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=DNe};
_.yU(_.zS,_.V8);DNe=_.$1.document&&_.$1.document.documentElement&&!!_.$1.document.documentElement.setCapture&&!!_.$1.document.releaseCapture;_.h$v=function(q,Z){q.hysteresisDistanceSquared_=Math.pow(Z,2)};
_.e=_.zS.prototype;_.e.getEnabled=function(){return this.enabled_};
_.e.setEnabled=function(q){this.enabled_=q};
_.e.disposeInternal=function(){_.zS.superClass_.disposeInternal.call(this);_.d_(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8021_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8021_document_.releaseCapture();this.handle=this.target=null};
_.e.startDrag=function(q){var Z=q.type=="mousedown";if(!this.enabled_||this.dragging_||Z&&(q.event_.button!=0||_.Qo8&&q.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new BW("start",this,q.clientX,q.clientY,q)))this.dragging_=!0,Z&&q.preventDefault();else return;else Z&&q.preventDefault();Z=this.JSC$8021_document_;var w=Z.documentElement,r=!this.useSetCapture_;this.JSC$8021_eventHandler_.listen(Z,["touchmove","mousemove"],this.handleMove_,
{capture:r,passive:!1});this.JSC$8021_eventHandler_.listen(Z,["touchend","mouseup"],this.endDrag,r);this.useSetCapture_?(w.setCapture(!1),this.JSC$8021_eventHandler_.listen(w,"losecapture",this.endDrag)):this.JSC$8021_eventHandler_.listen(a4(Z),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8021_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,r);this.clientX=this.startX=q.clientX;this.clientY=this.startY=q.clientY;this.screenX=q.screenX;this.screenY=q.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=W3(o4(this.JSC$8021_document_))}};
_.e.endDrag=function(q,Z){this.JSC$8021_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8021_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new BW("end",this,q.clientX,q.clientY,q,y99(this,this.deltaX),iBv(this,this.deltaY),Z||q.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.e.handleMove_=function(q){if(this.enabled_){var Z=q.clientX-this.clientX,w=q.clientY-this.clientY;this.clientX=q.clientX;this.clientY=q.clientY;this.screenX=q.screenX;this.screenY=q.screenY;if(!this.dragging_){var r=this.startX-this.clientX,Y=this.startY-this.clientY;if(r*r+Y*Y>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new BW("start",this,q.clientX,q.clientY,q)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(q);return}}w=gY1(this,Z,w);Z=w.x;w=w.y;this.dragging_&&this.dispatchEvent(new BW("beforedrag",
this,q.clientX,q.clientY,q,Z,w))&&(qUX(this,q,Z,w),q.preventDefault())}};
var gY1=function(q,Z,w){var r=W3(o4(q.JSC$8021_document_));Z+=r.x-q.pageScroll.x;w+=r.y-q.pageScroll.y;q.pageScroll=r;q.deltaX+=Z;q.deltaY+=w;return new _.B3(y99(q,q.deltaX),iBv(q,q.deltaY))};
_.zS.prototype.onScroll_=function(q){var Z=gY1(this,0,0);q.clientX=this.clientX;q.clientY=this.clientY;qUX(this,q,Z.x,Z.y)};
var qUX=function(q,Z,w,r){q.target.style.left=w+"px";q.target.style.top=r+"px";q.dispatchEvent(new BW("drag",q,Z.clientX,Z.clientY,Z,w,r))},y99=function(q,Z){var w=q.limits;
q=isNaN(w.left)?null:w.left;w=isNaN(w.width)?0:w.width;return Math.min(q!=null?q+w:Infinity,Math.max(q!=null?q:-Infinity,Z))},iBv=function(q,Z){var w=q.limits;
q=isNaN(w.top)?null:w.top;w=isNaN(w.height)?0:w.height;return Math.min(q!=null?q+w:Infinity,Math.max(q!=null?q:-Infinity,Z))};
_.zS.prototype.isDragging=function(){return this.dragging_};
var BW=function(q,Z,w,r,Y,C,d){_.$2.call(this,q);this.clientX=w;this.clientY=r;this.browserEvent=Y;this.left=C!==void 0?C:Z.deltaX;this.top=d!==void 0?d:Z.deltaY};
_.yU(BW,_.$2);var at=function(q){this.JSC$8028_map_=new Map;var Z=arguments.length;if(Z>1){if(Z%2)throw Error("oa");for(var w=0;w<Z;w+=2)this.set(arguments[w],arguments[w+1])}else q&&this.addAll(q)};
_.e=at.prototype;_.e.getCount=function(){return this.JSC$8028_map_.size};
_.e.getValues=function(){return Array.from(this.JSC$8028_map_.values())};
_.e.getKeys=function(){return Array.from(this.JSC$8028_map_.keys())};
_.e.containsKey=function(q){return this.JSC$8028_map_.has(q)};
_.e.containsValue=function(q){return this.getValues().some(function(Z){return Z==q})};
_.e.equals=function(q,Z){var w=this;Z=Z===void 0?function(r,Y){return r===Y}:Z;
return this===q?!0:this.JSC$8028_map_.size!=q.getCount()?!1:this.getKeys().every(function(r){return Z(w.JSC$8028_map_.get(r),q.get(r))})};
_.e.isEmpty=function(){return this.JSC$8028_map_.size==0};
_.e.clear=function(){this.JSC$8028_map_.clear()};
_.e.remove=function(q){return this.JSC$8028_map_.delete(q)};
_.e.get=function(q,Z){return this.JSC$8028_map_.has(q)?this.JSC$8028_map_.get(q):Z};
_.e.set=function(q,Z){this.JSC$8028_map_.set(q,Z);return this};
_.e.addAll=function(q){if(q instanceof at){q=_.P(q.JSC$8028_map_);for(var Z=q.next();!Z.done;Z=q.next()){var w=_.P(Z.value);Z=w.next().value;w=w.next().value;this.JSC$8028_map_.set(Z,w)}}else if(q)for(q=_.P(Object.entries(q)),Z=q.next();!Z.done;Z=q.next())w=_.P(Z.value),Z=w.next().value,w=w.next().value,this.JSC$8028_map_.set(Z,w)};
_.e.forEach=function(q,Z){var w=this;Z=Z===void 0?this:Z;this.JSC$8028_map_.forEach(function(r,Y){return q.call(Z,r,Y,w)})};
_.e.clone=function(){return new at(this)};(function(){for(var q=["ms","moz","webkit","o"],Z,w=0;Z=q[w]&&!_.$1.requestAnimationFrame;++w)_.$1.requestAnimationFrame=_.$1[Z+"RequestAnimationFrame"],_.$1.cancelAnimationFrame=_.$1[Z+"CancelAnimationFrame"]||_.$1[Z+"CancelRequestAnimationFrame"];if(!_.$1.requestAnimationFrame){var r=0;_.$1.requestAnimationFrame=function(Y){var C=(new Date).getTime(),d=Math.max(0,16-(C-r));r=C+d;return _.$1.setTimeout(function(){Y(C+d)},d)};
_.$1.cancelAnimationFrame||(_.$1.cancelAnimationFrame=function(Y){clearTimeout(Y)})}})();
var Zb7=[[],[]],wO1=0,rYW=!1,YUD=0,e7J=function(q,Z){var w=YUD++,r={measureTask:{id:w,fn:q.measure,context:Z},mutateTask:{id:w,fn:q.mutate,context:Z},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(r.args||(r.args=[]),r.args.length=0,r.args.push.apply(r.args,arguments),r.args.push(r.state)):r.args&&r.args.length!=0?(r.args[0]=r.state,r.args.length=1):r.args=[r.state];r.isScheduled||(r.isScheduled=!0,Zb7[wO1].push(r));rYW||(rYW=!0,window.requestAnimationFrame($Um))}},$Um=
function(){rYW=!1;
var q=Zb7[wO1],Z=q.length;wO1=(wO1+1)%2;for(var w,r=0;r<Z;++r){w=q[r];var Y=w.measureTask;w.isScheduled=!1;Y.fn&&Y.fn.apply(Y.context,w.args)}for(r=0;r<Z;++r)w=q[r],Y=w.mutateTask,w.isScheduled=!1,Y.fn&&Y.fn.apply(Y.context,w.args),w.state={};q.length=0};var Cxm=_.Fr(["about:blank"]),Pxv=_.Fr(["javascript:undefined"]),dUW=_.qu(Cxm);_.ug(dUW);var VXg=_.qu(Pxv);_.ug(VXg);var nG=function(q){_.V8.call(this);this.JSC$8034_element_=q;this.listenKeyIn_=_.Yc(this.JSC$8034_element_,"focus",this,!0);this.listenKeyOut_=_.Yc(this.JSC$8034_element_,"blur",this,!0)};
_.yU(nG,_.V8);nG.prototype.handleEvent=function(q){var Z=new _.e3(q.event_);Z.type=q.type=="focusin"||q.type=="focus"?"focusin":"focusout";this.dispatchEvent(Z)};
nG.prototype.disposeInternal=function(){nG.superClass_.disposeInternal.call(this);Zf(this.listenKeyIn_);Zf(this.listenKeyOut_);delete this.JSC$8034_element_};var Obe=function(q,Z){this.JSC$8037_element_=q;this.JSC$8037_dom_=Z};var QT=function(q,Z){Rt.call(this,Z);this.useIframeMask_=!!q;this.lastFocus_=null;this.resizeBackgroundTask_=e7J({mutate:this.resizeBackground_},this);e7J({mutate:this.updateModalAndBackground_},this)};
_.yU(QT,Rt);_.e=QT.prototype;_.e.focusHandler_=null;_.e.visible_=!1;_.e.bgEl_=null;_.e.bgIframeEl_=null;_.e.tabCatcherElement_=null;_.e.backwardTabWrapInProgress_=!1;_.e.getCssClass=function(){return"goog-modalpopup"};
_.e.getBackgroundElement=function(){return this.bgEl_};
_.e.JSC$8018_createDom=function(){QT.superClass_.JSC$8018_createDom.call(this);var q=this.getElement(),Z=_.ii(this.getCssClass()).split(" ");TM(q,Z);q.tabIndex=0;_.sJ(q,!1);Hbv(this);WDh(this)};
var Hbv=function(q){if(q.useIframeMask_&&!q.bgIframeEl_){var Z=q.JSC$8016_dom_.JSC$7244_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.F5(Z,dUW);q.bgIframeEl_=Z;q.bgIframeEl_.className=q.getCssClass()+"-bg";_.sJ(q.bgIframeEl_,!1);Nr7(q.bgIframeEl_,0)}q.bgEl_||(q.bgEl_=q.JSC$8016_dom_.JSC$7244_createDom("DIV",q.getCssClass()+"-bg"),_.sJ(q.bgEl_,!1))},WDh=function(q){q.tabCatcherElement_||(q.tabCatcherElement_=q.JSC$8016_dom_.createElement("SPAN"),_.sJ(q.tabCatcherElement_,
!1),q.tabCatcherElement_.tabIndex=0,q.tabCatcherElement_.style.position="absolute")};
_.e=QT.prototype;_.e.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.e.canDecorate=function(q){return!!q&&q.tagName=="DIV"};
_.e.decorateInternal=function(q){QT.superClass_.decorateInternal.call(this,q);q=_.ii(this.getCssClass()).split(" ");TM(this.getElement(),q);Hbv(this);WDh(this);this.getElement().tabIndex=0;_.sJ(this.getElement(),!1)};
_.e.enterDocument=function(){this.bgIframeEl_&&_.Br(this.bgIframeEl_,this.getElement());_.Br(this.bgEl_,this.getElement());QT.superClass_.enterDocument.call(this);_.ar(this.tabCatcherElement_,this.getElement());this.focusHandler_=new nG(this.JSC$8016_dom_.JSC$7242_document_);bU(this).listen(this.focusHandler_,"focusin",this.onFocus);o77(this,!1)};
_.e.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Xg(this.focusHandler_);QT.superClass_.exitDocument.call(this);_.Vb(this.bgIframeEl_);_.Vb(this.bgEl_);_.Vb(this.tabCatcherElement_)};
_.e.setVisible=function(q){if(q!=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_&&o77(this,q),q){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8016_dom_.JSC$7242_document_.activeElement}catch(Y){}this.updateModalAndBackground_();bU(this).listen(this.JSC$8016_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8016_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);uuJ(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)qx(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){bU(this).unlisten(this.JSC$8016_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8016_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)qx(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var Z=this.JSC$8016_dom_,w=Z.JSC$7242_document_.body,r=Z.JSC$7242_document_.activeElement||w;if(!this.lastFocus_||this.lastFocus_==w){this.lastFocus_=null;break a}(r==w||Z.contains(this.getElement(),r))&&this.lastFocus_.focus()}catch(Y){}this.lastFocus_=
null}}};
var o77=function(q,Z){q.modalAriaVisibilityHelper_||(q.modalAriaVisibilityHelper_=new Obe(q.JSC$8016_element_,q.JSC$8016_dom_));q=q.modalAriaVisibilityHelper_;if(Z){q.hiddenElements_||(q.hiddenElements_=[]);Z=q.JSC$8037_dom_.getChildren(q.JSC$8037_dom_.JSC$7242_document_.body);for(var w=0;w<Z.length;w++){var r=Z[w],Y;if(Y=r!=q.JSC$8037_element_)Y=r.getAttribute("aria-hidden"),Y=!(Y==null||Y==void 0?0:String(Y));Y&&(J3(r,"hidden",!0),q.hiddenElements_.push(r))}}else if(q.hiddenElements_){for(Z=0;Z<
q.hiddenElements_.length;Z++)q.hiddenElements_[Z].removeAttribute("aria-hidden");q.hiddenElements_=null}};
QT.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var uuJ=function(q,Z){q.bgIframeEl_&&_.sJ(q.bgIframeEl_,Z);q.bgEl_&&_.sJ(q.bgEl_,Z);_.sJ(q.getElement(),Z);_.sJ(q.tabCatcherElement_,Z)};
_.e=QT.prototype;_.e.onShow=function(){this.dispatchEvent("show")};
_.e.onHide=function(){uuJ(this,!1);this.dispatchEvent("hide")};
_.e.isVisible=function(){return this.visible_};
_.e.focus=function(){this.focusElement_()};
_.e.resizeBackground_=function(){this.bgIframeEl_&&_.sJ(this.bgIframeEl_,!1);this.bgEl_&&_.sJ(this.bgEl_,!1);var q=this.JSC$8016_dom_.JSC$7242_document_;var Z=_.H3(a4(this.JSC$8016_dom_.JSC$7242_document_)||window);var w=Math.max(Z.width,Math.max(q.body.scrollWidth,q.documentElement.scrollWidth));q=Math.max(Z.height,Math.max(q.body.scrollHeight,q.documentElement.scrollHeight));this.bgIframeEl_&&(_.sJ(this.bgIframeEl_,!0),_.IFp(this.bgIframeEl_,w,q));this.bgEl_&&(_.sJ(this.bgEl_,!0),_.IFp(this.bgEl_,
w,q))};
_.e.reposition=function(){var q;if(_.s9h(this.getElement())=="fixed")var Z=q=0;else Z=W3(this.JSC$8016_dom_),q=Z.x,Z=Z.y;var w=M62(this.getElement());var r=_.H3(a4(this.JSC$8016_dom_.JSC$7242_document_)||window);q=Math.max(q+r.width/2-w.width/2,0);Z=Math.max(Z+r.height/2-w.height/2,0);Uv(this.getElement(),q,Z);Uv(this.tabCatcherElement_,q,Z)};
_.e.onFocus=function(q){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():q.target==this.tabCatcherElement_&&uQ(this.focusElement_,0,this)};
_.e.focusElement_=function(){try{this.getElement().focus()}catch(q){}};
_.e.disposeInternal=function(){_.Xg(this.popupShowTransition_);this.popupShowTransition_=null;_.Xg(this.popupHideTransition_);this.popupHideTransition_=null;_.Xg(this.bgShowTransition_);this.bgShowTransition_=null;_.Xg(this.bgHideTransition_);this.bgHideTransition_=null;QT.superClass_.disposeInternal.call(this)};var BG=function(q,Z,w){QT.call(this,Z,w);this.JSC$8047_class_=q||"modal-dialog";this.buttons_=(new Es).addButton(LD1,!0).addButton(SUh,!1,!0)};
_.yU(BG,QT);_.e=BG.prototype;_.e.escapeToCancel_=!0;_.e.hasTitleCloseButton_=!0;_.e.modal_=!0;_.e.draggable_=!0;_.e.backgroundElementOpacity_=.5;_.e.title_="";_.e.JSC$8049_dragger_=null;_.e.JSC$8049_disposeOnHide_=!1;_.e.titleEl_=null;_.e.titleTextEl_=null;_.e.titleTextId_=null;_.e.titleCloseEl_=null;_.e.contentEl_=null;_.e.buttonEl_=null;_.e.getCssClass=function(){return this.JSC$8047_class_};
_.e.setTitle=function(q){this.title_=q;this.titleTextEl_&&_.QW(this.titleTextEl_,q)};
_.e.getTitle=function(){return this.title_};
_.e.getContent=function(){return""};
_.e.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var v72=function(q){q.getElement()||q.render();return q.getElement()};
BG.prototype.getBackgroundElement=function(){this.getElement()||this.render();return BG.superClass_.getBackgroundElement.call(this)};
var jwD=function(q,Z){q.backgroundElementOpacity_=Z;q.getElement()&&(Z=q.getBackgroundElement())&&Nr7(Z,q.backgroundElementOpacity_)};
BG.prototype.setDraggable=function(q){this.draggable_=q;tX2(this,q&&this.inDocument_)};
BG.prototype.JSC$8049_handleDrag=function(){};
var tX2=function(q,Z){var w=_.ii(q.JSC$8047_class_+"-title-draggable").split(" ");q.getElement()&&(Z?TM(q.titleEl_,w):h2v(q.titleEl_,w));Z&&!q.JSC$8049_dragger_?(Z=new _.zS(q.getElement(),q.titleEl_),q.JSC$8049_dragger_=Z,TM(q.titleEl_,w),_.Yc(q.JSC$8049_dragger_,"start",q.setDraggerLimits_,!1,q),_.Yc(q.JSC$8049_dragger_,"drag",q.JSC$8049_handleDrag,!1,q)):!Z&&q.JSC$8049_dragger_&&(q.JSC$8049_dragger_.dispose(),q.JSC$8049_dragger_=null)};
_.e=BG.prototype;
_.e.JSC$8018_createDom=function(){BG.superClass_.JSC$8018_createDom.call(this);var q=this.getElement(),Z=this.JSC$8016_dom_;this.titleTextId_=this.getId();var w=this.getId()+".contentEl";this.titleEl_=Z.JSC$7244_createDom("DIV",this.JSC$8047_class_+"-title",this.titleTextEl_=Z.JSC$7244_createDom("SPAN",{className:this.JSC$8047_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=Z.JSC$7244_createDom("SPAN",this.JSC$8047_class_+"-title-close"));Wmv(q,this.titleEl_,this.contentEl_=
Z.JSC$7244_createDom("DIV",{className:this.JSC$8047_class_+"-content",id:w}),this.buttonEl_=Z.JSC$7244_createDom("DIV",this.JSC$8047_class_+"-buttons"));f$W(this.titleTextEl_,"heading");f$W(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;J3(this.titleCloseEl_,"label","Close");f$W(q,"dialog");J3(q,"labelledby",this.titleTextId_||"");_.sJ(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(q=this.buttons_,q.JSC$8050_element_=this.buttonEl_,q.render());_.sJ(this.buttonEl_,!!this.buttons_);
jwD(this,this.backgroundElementOpacity_)};
_.e.decorateInternal=function(q){BG.superClass_.decorateInternal.call(this,q);q=this.getElement();var Z=this.JSC$8047_class_+"-content";this.contentEl_=vr(document,null,Z,q)[0];this.contentEl_||(this.contentEl_=this.JSC$8016_dom_.JSC$7244_createDom("DIV",Z),q.appendChild(this.contentEl_));Z=this.JSC$8047_class_+"-title";var w=this.JSC$8047_class_+"-title-text",r=this.JSC$8047_class_+"-title-close";(this.titleEl_=vr(document,null,Z,q)[0])?(this.titleTextEl_=vr(document,null,w,this.titleEl_)[0],this.titleCloseEl_=
vr(document,null,r,this.titleEl_)[0]):(this.titleEl_=this.JSC$8016_dom_.JSC$7244_createDom("DIV",Z),q.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=nvg(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.t$("SPAN",{className:w,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;J3(q,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8016_dom_.JSC$7244_createDom("SPAN",
r),this.titleEl_.appendChild(this.titleCloseEl_));_.sJ(this.titleCloseEl_,this.hasTitleCloseButton_);Z=this.JSC$8047_class_+"-buttons";(this.buttonEl_=vr(document,null,Z,q)[0])?(this.buttons_=new Es(this.JSC$8016_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8016_dom_.JSC$7244_createDom("DIV",Z),q.appendChild(this.buttonEl_),this.buttons_&&(q=this.buttons_,q.JSC$8050_element_=this.buttonEl_,q.render()),_.sJ(this.buttonEl_,!!this.buttons_));jwD(this,this.backgroundElementOpacity_)};
_.e.enterDocument=function(){BG.superClass_.enterDocument.call(this);bU(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);bU(this).listen(this.buttonEl_,"click",this.onButtonClick_);tX2(this,this.draggable_);bU(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var q=this.getElement();f$W(q,"dialog");this.titleTextEl_.id!==""&&J3(q,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){q=this.JSC$8016_dom_;
var Z=this.getBackgroundElement();q.removeNode(this.bgIframeEl_);q.removeNode(Z)}this.isVisible()&&o77(this,!1)}};
_.e.exitDocument=function(){this.isVisible()&&this.setVisible(!1);tX2(this,!1);BG.superClass_.exitDocument.call(this)};
_.e.setVisible=function(q){q!=this.isVisible()&&(this.inDocument_||this.render(),BG.superClass_.setVisible.call(this,q))};
_.e.onShow=function(){BG.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.e.onHide=function(){BG.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8049_disposeOnHide_&&this.dispose()};
_.e.setDraggerLimits_=function(){var q=this.JSC$8016_dom_.JSC$7242_document_,Z=_.H3(a4(q)||window),w=Math.max(q.body.scrollWidth,Z.width);q=Math.max(q.body.scrollHeight,Z.height);var r=M62(this.getElement());_.s9h(this.getElement())=="fixed"?this.JSC$8049_dragger_.limits=new Ev(0,0,Math.max(0,Z.width-r.width),Math.max(0,Z.height-r.height)):this.JSC$8049_dragger_.limits=new Ev(0,0,w-r.width,q-r.height)};
_.e.onTitleCloseClick_=function(){R72(this)};
var R72=function(q){if(q.hasTitleCloseButton_){var Z=q.buttons_,w=Z&&Z.cancelButton_;w?(Z=Z.get(w),q.dispatchEvent(new xX(w,Z))&&q.setVisible(!1)):q.setVisible(!1)}},bb1=function(q){q.hasTitleCloseButton_=!1;
q.titleCloseEl_&&_.sJ(q.titleCloseEl_,q.hasTitleCloseButton_)};
BG.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;BG.superClass_.disposeInternal.call(this)};
BG.prototype.onButtonClick_=function(q){a:{for(q=q.target;q!=null&&q!=this.buttonEl_;){if(q.tagName=="BUTTON")break a;q=q.parentNode}q=null}if(q&&!q.disabled){q=q.name;var Z=this.buttons_.get(q);this.dispatchEvent(new xX(q,Z))&&this.setVisible(!1)}};
BG.prototype.onKey_=function(q){var Z=!1,w=!1,r=this.buttons_,Y=q.target;if(q.type=="keydown")if(this.escapeToCancel_&&q.keyCode==27){var C=r&&r.cancelButton_;Y=Y.tagName=="SELECT"&&!Y.disabled;C&&!Y?(w=!0,Z=r.get(C),Z=this.dispatchEvent(new xX(C,Z))):Y||(Z=!0)}else{if(q.keyCode==9&&q.shiftKey&&Y==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(S){}uQ(this.resetBackwardTabWrap_,0,this)}}else if(q.keyCode==13){if(Y.tagName=="BUTTON"&&!Y.disabled)C=Y.name;
else if(Y==this.titleCloseEl_)R72(this);else if(r){var d=r.defaultButton_,O;if(O=d)a:{O=OJ("BUTTON",r.JSC$8050_element_);for(var H,L=0;H=O[L];L++)if(H.name==d||H.id==d){O=H;break a}O=null}Y=(Y.tagName=="TEXTAREA"||Y.tagName=="SELECT"||Y.tagName=="A")&&!Y.disabled;!O||O.disabled||Y||(C=d)}C&&r&&(w=!0,Z=this.dispatchEvent(new xX(C,String(r.get(C)))))}else Y!=this.titleCloseEl_||q.keyCode!=32&&q.key!=" "||R72(this);if(Z||w)q.stopPropagation(),q.preventDefault();Z&&this.setVisible(!1)};
var xX=function(q,Z){this.type="dialogselect";this.key=q;this.caption=Z};
_.yU(xX,_.$2);var Es=function(q){at.call(this);q||o4();this.cancelButton_=this.JSC$8050_element_=this.defaultButton_=null};
_.yU(Es,at);_.e=Es.prototype;_.e.clear=function(){at.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.e.set=function(q,Z,w,r){at.prototype.set.call(this,q,Z);w&&(this.defaultButton_=q);r&&(this.cancelButton_=q);return this};
_.e.addButton=function(q,Z,w){return this.set(q.key,q.caption,Z,w)};
_.e.render=function(){if(this.JSC$8050_element_){_.fA(this.JSC$8050_element_,D42);var q=o4(this.JSC$8050_element_);this.forEach(function(Z,w){Z=q.JSC$7244_createDom("BUTTON",{name:w},Z);w==this.defaultButton_&&(Z.className="goog-buttonset-default");this.JSC$8050_element_.appendChild(Z)},this)}};
_.e.decorate=function(q){if(q&&q.nodeType==1){this.JSC$8050_element_=q;q=OJ("BUTTON",this.JSC$8050_element_);for(var Z,w,r,Y=0;Z=q[Y];Y++)if(w=Z.name||Z.id,r=nvg(Z)||Z.value,w){var C=Y==0;this.set(w,r,C,Z.name=="cancel");C&&_.nn(Z,"goog-buttonset-default")}}};
_.e.getElement=function(){return this.JSC$8050_element_};
var LD1={key:"ok",caption:"OK"},SUh={key:"cancel",caption:"Cancel"},JYJ={key:"yes",caption:"Yes"},z72={key:"no",caption:"No"},B5v={key:"save",caption:"Save"},aUm={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new Es).addButton(LD1,!0,!0),(new Es).addButton(LD1,!0).addButton(SUh,!1,!0),(new Es).addButton(JYJ,!0).addButton(z72,!1,!0),(new Es).addButton(JYJ).addButton(z72,!0).addButton(SUh,!1,!0),(new Es).addButton(aUm).addButton(B5v).addButton(SUh,!0,!0));_.yU(cme,BG);_.yU(MTN,a1);var n7v=_.Fr(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),Qw7=_.Fr(["//apis.google.com/js/rpc.js"]),fL8=_.qu(n7v),AmX=_.qu(Qw7),Nf2=null;var nh=function(q,Z){_.V8.call(this);this.JSC$8059_element_=q;q=_.I$(this.JSC$8059_element_)?this.JSC$8059_element_:this.JSC$8059_element_?this.JSC$8059_element_.body:null;this.isRtl_=!!q&&_.lFD(q);this.listenKey_=_.Yc(this.JSC$8059_element_,_.rS?"DOMMouseScroll":"mousewheel",this,Z)};
_.yU(nh,_.V8);nh.prototype.handleEvent=function(q){var Z=0,w=0,r=q.event_;r.type=="mousewheel"?(q=E7h(-r.wheelDelta),r.wheelDeltaX!==void 0?(Z=E7h(-r.wheelDeltaX),w=E7h(-r.wheelDeltaY)):w=q):(q=r.detail,q>100?q=3:q<-100&&(q=-3),r.axis!==void 0&&r.axis===r.HORIZONTAL_AXIS?Z=q:w=q);typeof this.maxDeltaX_==="number"&&(Z=_.a0(Z,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(w=_.a0(w,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(Z=-Z);Z=new xUD(q,r,Z,w);this.dispatchEvent(Z)};
var E7h=function(q){return _.YZ&&(_.Qo8||x_T)&&q%40!=0?q:q/40};
nh.prototype.disposeInternal=function(){nh.superClass_.disposeInternal.call(this);Zf(this.listenKey_);this.listenKey_=null};
var xUD=function(q,Z,w,r){_.e3.call(this,Z);this.type="mousewheel";this.detail=q;this.deltaX=w;this.deltaY=r};
_.yU(xUD,_.e3);_.gn=function(q){var Z="instance_";if(q.instance_&&q.hasOwnProperty(Z))return q.instance_;Z=new q;return q.instance_=Z};var m46;var T5D=_.Fr(["https://about:blank"]),UUJ=_.Fr(['javascript:""']),kFp=_.Fr(["about:blank"]);_.yU(I1,cme);_.e=I1.prototype;_.e.JSC$8067_url_="";_.e.JSC$8067_iframe_=null;_.e.iframeLoaded_=!1;_.e.loadedFired_=!1;_.e.callback_=function(){};
_.e.enterDocument=function(){I1.superClass_.enterDocument.call(this);pgT(this.getBackgroundElement(),bU(this))};
_.e.render=function(q){var Z=this;I1.superClass_.render.call(this,q);this.useGapi_?koW(this.iframeManager_,window).then(function(){return KDe(Z)}).then(null,function(){Z.callback_({action:"error"})}):sw7(this)};
var KDe=function(q){var Z=q.JSC$8016_dom_.JSC$7244_createDom("div",["picker-dialog-content","picker-frame"]);_.sJ(Z,!1);q.getContentElement().appendChild(Z);return KlK(q.iframeManager_,Z,function(w){var r=oqe(w["iframe-command"]);switch(r.getCommand()){case 1:w=q.callback_;r=_.Xy(r,pI,2);var Y="";switch(r.getStatus()){case 2:Y="cancel";break;case 1:Y="picked";break;case 3:Y="error"}var C=_.Aj(r,SF,2,_.fC(wAj));r=C.length===0?{action:Y}:uwm(C,Y,_.Xy(r,O_W,7));w.call(q,r);q.setVisible(!1);break;case 4:bb1(q);
q.callback_({action:"loaded"});break;case 7:case 8:w=q.callback_;a:{Y=r.getCommand();C=_.Xy(r,pI,2);switch(Y){case 7:Y="uploadScheduled";break;case 8:Y="uploadStateChange";break;default:r={};break a}r=_.Aj(C,SF,2,_.fC(wAj));if(r.length===0)r={action:Y};else{var d=_.Xy(C,O_W,7);C=d&&_.bY(d,1);d=YGg(d);r=Che(r,Y,C,d)}}w.call(q,r)}},q.JSC$8067_url_,q.targetId_,q.rpcToken_).then(function(w){q.JSC$8067_iframe_=w.getIframeEl();
IUp(q);_.sJ(q.JSC$8067_iframe_.parentElement,!0);_.nn(q.getElement(),"picker-dialog");cY7(q);return w})},sw7=function(q){q.JSC$8067_iframe_=q.JSC$8016_dom_.JSC$7244_createDom("IFRAME",{id:q.targetId_,
name:q.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.F5(q.JSC$8067_iframe_,MXv(q));_.nn(q.getElement(),"picker-dialog");q.getContentElement().appendChild(q.JSC$8067_iframe_);bU(q).listen(q.JSC$8067_iframe_,"load",function(){return void IUp(q)});
q.JSC$8067_iframe_.src=q.JSC$8067_url_;cY7(q)},N5h=function(q){FDJ(q,(0,_.Lh)(function(Z){Z.setAuthToken(this.targetId_,this.rpcToken_)},q))},cY7=function(q){var Z=_.ki(_.UJ(q.JSC$8067_url_),"title");
Z&&q.setTitle(Z)},MXv=function(q){return _.WI8("Internet Explorer")>=7&&_.Vj(q.JSC$8067_url_,"https")?_.qu(T5D):_.wS?_.qu(UUJ):_.qu(kFp)},IUp=function(q){N5h(q);
q.iframeLoaded_=!0;q.JSC$8067_iframe_.tabIndex=0;q.isVisible()&&q.focus()};
I1.prototype.handleKeydown_=function(q){q.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),q.stopPropagation(),q.preventDefault())};
var FDJ=function(q,Z){var w=q.JSC$8065_gadgetsDomHelper_;lL9(function(){Z(w.getWindow().gadgets.rpc)},w)};
I1.prototype.setUrl=function(q){q=_.Kh(new _.M$(q),"rpcService",this.targetId_);_.Kh(q,"rpctoken",this.rpcToken_);_.mx(q,"rpctoken="+this.rpcToken_);_.NC(q,"https");this.JSC$8067_url_=q.toString();this.JSC$8067_iframe_&&(this.JSC$8067_iframe_.src=this.JSC$8067_url_)};
var lUW=function(q,Z){q.callback_=Z;FDJ(q,(0,_.Lh)(function(w){w.register(this.targetId_,(0,_.Lh)(this.handlePickerAction_,this))},q))};
I1.prototype.handlePickerAction_=function(q){var Z=q.action;Z=="loaded"&&(this.loadedFired_=!0,GFh(this,new ILj(this.isVisible())),pO7(this),bb1(this),bU(this).unlisten(this.JSC$8016_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8067_iframe_.tabIndex=0);Z!="picked"&&Z!="cancel"||this.setVisible(!1);this.callback_(q)};
var pO7=function(q){q.JSC$8067_appId_&&GFh(q,new sRO(q.JSC$8067_appId_,window.location.protocol+"//"+window.location.host))};
I1.prototype.setRelayUrl=function(q){FDJ(this,(0,_.Lh)(function(Z){Z.setRelayUrl(this.targetId_,q)},this))};
var GFh=function(q,Z){q.useGapi_&&FlX(Z,q.iframeManager_).then(null,function(){q.callback_({action:"error"})});
FDJ(q,(0,_.Lh)(function(w){w.call(this.targetId_,"picker",null,Z)},q))};
I1.prototype.resizePicker_=function(){var q=a4(this.JSC$8016_dom_.JSC$7242_document_)||window;if(_.ki(_.UJ(this.JSC$8067_url_),"ignoreLimits")=="true")q=new _.O3(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.ki(_.UJ(this.JSC$8067_url_),"shadeDialog")=="true"){var Z=v72(this);Z=Ga2(Z);var w=_.H3(q);q=w.width-80;w=w.height-40;Z&&(q-=Z.left?Z.left:0,q-=Z.right?Z.right:0,w-=Z.top?Z.top:0,w-=Z.bottom?Z.bottom:0);q=new _.O3(q>0?q:0,w>0?w:0)}else(Z=this.preferredDialogWidth_)?(Z=Math.max(320,
Math.min(1051,Z)),(w=this.preferredDialogHeight_)||(w=_.H3(q).height*.85),w=Math.max(480,Math.min(650,w))):(Z=_.H3(q),w=Z.width*.618,w=w<Z.height?Math.round(Math.max(480,Math.min(650,w*.85))):Math.round(Math.max(480,Math.min(650,Z.height*.85))),Z=Math.round(w/.618)),q=_.H3(q),Z=Math.min(Z,Math.max(q.width,320)),w=Math.min(w,Math.max(q.height,480)),q=new _.O3(Z,w);_.IFp(this.getContentElement(),q);this.reposition()};
I1.prototype.reposition=function(){if(_.ki(_.UJ(this.JSC$8067_url_),"shadeDialog")=="true"){var q=M62(this.getElement()),Z=_.H3(this.JSC$8016_dom_.getWindow());q=Math.floor(Z.width/2-q.width/2);Z=v72(this);if(Z=Ga2(Z)){var w=Z.left?Z.left:0;w+=Z.right?Z.right:0;q=Math.floor(q-w/2)}q=q>0?q:0;Z=W3(this.JSC$8016_dom_).y;Uv(this.getElement(),q,Z)}else I1.superClass_.reposition.call(this)};
I1.prototype.setVisible=function(q){if(q!=this.isVisible()&&this.autoSizeDialog_){var Z=this.JSC$8016_dom_.getWindow();q?(this.resizePicker_(),bU(this).listen(Z,"resize",this.resizePicker_),this.iframeLoaded_||bU(this).listen(Z,"keydown",this.handleKeydown_)):(bU(this).unlisten(Z,"resize",this.resizePicker_),this.iframeLoaded_||bU(this).unlisten(Z,"keydown",this.handleKeydown_))}I1.superClass_.setVisible.call(this,q);GFh(this,new ILj(q))};
I1.prototype.focus=function(){I1.superClass_.focus.call(this);if(this.JSC$8067_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8067_iframe_.focus()}catch(q){}};var ea=function(q,Z){Z=Z===void 0?I1:Z;a1.call(this,q);this.pickerConstructor=Z;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(q=window.location.origin)||(q=window.location.protocol+"//"+window.location.host);q&&this.urlParamMap_.set("origin",q);this.postProcessors_=[]};
_.z(ea,MTN);ea.prototype.JSC$8072_disposeOnHide_=!1;
ea.prototype.build=function(){this.JSC$7973_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$7973_appId_);this.getRelayUrl()||this.setRelayUrl(_.pN(_.mx(_.Xi(_.UJ(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var q=new this.pickerConstructor(XOJ(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);q.JSC$8049_disposeOnHide_=this.JSC$8072_disposeOnHide_;
q.JSC$8067_appId_=this.JSC$7973_appId_;q.loadedFired_&&pO7(q);lUW(q,this.callback_);return q};
var mUp=function(q){q.urlParamMap_.set("multiselectEnabled","true");return q};
ea.prototype.getHeight=function(){return this.dialogHeight_};
ea.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
ea.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
ea.prototype.getWidth=function(){return this.dialogWidth_};
var AYX=function(q){q.JSC$8072_disposeOnHide_=void 0;return q};
ea.prototype.setRelayUrl=function(q){this.urlParamMap_.set("parent",q);return this};
var fUJ=function(q,Z){q.urlParamMap_.set("selectButtonLabel",Z);return q};
ea.prototype.setSize=function(q,Z){this.dialogWidth_=q;this.dialogHeight_=Z;return this};
ea.prototype.setTitle=function(q){this.urlParamMap_.set("title",q);return this};
var XOJ=function(q){q.postProcessors_.length&&q.urlParamMap_.set("pp",JSON.stringify(q.postProcessors_));q.urlParamMap_.set("nav",qG2(q.nav_));var Z=new _.M$(q.getBaseUrl());q.urlParamMap_.forEach(function(w,r){_.Kh(Z,r,w)});
return Z};var yYe=function(q,Z){q.name!==void 0?(this.name=q.name,this.code=DUK[q.name]):(this.code=q=q.code,this.name=h7g(q));_.qj.call(this,Qhp("%s %s",this.name,Z))};
_.yU(yYe,_.qj);var h7g=function(q){var Z=_.R4.findKey(DUK,function(w){return q==w});
if(Z===void 0)throw Error("lb`"+q);return Z},TS={},DUK=(TS.AbortError=3,TS.EncodingError=5,TS.InvalidModificationError=9,TS.InvalidStateError=7,TS.NotFoundError=1,TS.NotReadableError=4,TS.NoModificationAllowedError=6,TS.PathExistsError=12,TS.QuotaExceededError=10,TS.SecurityError=2,TS.SyntaxError=8,TS.TypeMismatchError=11,TS);var ib2=function(q,Z){_.$2.call(this,q.type,Z);this.event_=q};
_.yU(ib2,_.$2);var g7X=function(q,Z,w){w===void 0&&(w=q.size);return q.slice?q.slice(Z,w):null};var ymj=new WeakMap,hRj=function(q,Z){q=[q];for(var w=Z.length-1;w>=0;--w)q.push(typeof Z[w],Z[w]);return q.join("\v")};_.grT(function(){if(!_.$1.Blob)return!1;var q=new Uint8Array(100);try{var Z=new Blob([q])}catch(w){return!1}return Z.size!=100?!1:!0});
var qA9=_.grT(function(){if(!_.$1.Blob)return!1;var q=new Uint8Array(100);try{var Z=new Blob([q])}catch(w){return!1}return g7X(Z,0,1)===null?!1:!0});_.$1.U3bHHf!=null||(_.$1.U3bHHf=0);_.$1.U3bHHf++;var ZBj={};_.Nb=void 0;var r9I=Symbol("ub");var oY8=G1("WizInjectionContext_Dispatcher");var dN9=G1("WizInjectionContext_RootElement");var OB8=G1("WizInjectionContext_AppContext"),VJj=G1("WizInjectionContext_ModelRootElement"),HB2=G1("WizInjectionContext_RendererData"),WlX=G1("WizInjectionContext_InjectingConstructor"),uw8={};var j$N=!1;var Zyv=Symbol("xb"),xUj=Symbol("yb"),UUe=Symbol("zb"),FDe=Up(function(q){return EYT(q)&&Zyv in q});var J9e={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextPerComponent:R9X,enableLazyTsx:bm9,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var mt=Object.assign({},{attributes:{},handleError:function(q){throw q;}},J9e);var xNX=Symbol("Ab"),Us={},nYT=(Us[xNX]=!0,Us.debugName="[component]",Us.getComponentStack=function(){for(var q=[],Z=this;Z;)TI9(Z)&&q.push(Z.debugName),Z=Z.parent;return q.reverse()},Us.registerSignal=function(){},Us.registerEffect=function(){},Us);var A1=null,DA=!1,Zb9=1,i6=Symbol("Bb"),Y6={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var kX=Symbol("Cb"),KG=Symbol("Db"),yb=Symbol("Eb"),dUz=Object.assign({},Y6,{value:kX,dirty:!0,error:null,equal:UN9,kind:"computed",producerMustRecompute:function(q){return q.value===kX||q.value===KG},
producerRecomputeValue:function(q){if(q.value===KG)throw Error("da");var Z=q.value;q.value=KG;var w=e7e(q),r=!1;try{var Y=q.computation();fh(null);r=Z!==kX&&Z!==yb&&Y!==yb&&q.equal(Z,Y)}catch(C){Y=yb,q.error=C}finally{Cx8(q,w)}r?q.value=Z:(q.value=Y,q.version++)}});var o79=function(){throw Error();};var LD6=null,ObT=Object.assign({},Y6,{equal:UN9,value:void 0,kind:"signal"});Object.assign({},Y6,{value:kX,dirty:!0,error:null,equal:UN9,kind:"linkedSignal",producerMustRecompute:function(q){return q.value===kX||q.value===KG},
producerRecomputeValue:function(q){if(q.value===KG)throw Error("da");var Z=q.value;q.value=KG;var w=e7e(q);try{var r=q.source();var Y=q.computation(r,Z===kX||Z===yb?void 0:{source:q.sourceValue,value:Z});q.sourceValue=r}catch(C){Y=yb,q.error=C}finally{Cx8(q,w)}Z!==kX&&Y!==yb&&q.equal(Z,Y)?q.value=Z:(q.value=Y,q.version++)}});Object.assign({},Y6,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(q){q.schedule!==null&&q.schedule(q.ref)},
hasRun:!1,cleanupFn:function(){}});var v7O=Symbol("Fb"),ZB=Symbol("Gb");var wc=Array.isArray;var n7I;var w0J={},E7T=aU8(Object.assign({},{consumerAllowSignalWrites:!0},w0J)),qR=aU8(Object.assign({},{consumerAllowSignalWrites:!0},w0J));var GFT=[];var lUz=0,ss=function(){this.queue=new Set};
ss.prototype.remove=function(q){this.queue.delete(q)};
var rlg=function(){ss.apply(this,arguments)};
_.z(rlg,ss);rlg.prototype.schedule=function(q){q.hasRun?this.queue.add(q):q.run()};
rlg.prototype.flush=function(){if(this.queue.size){var q=this.queue;this.queue=new Set;N5T(q)}};
var T5j=new rlg,YAe=function(){ss.apply(this,arguments)};
_.z(YAe,ss);YAe.prototype.schedule=function(q){var Z=this;return _.V(function(w){if(w.nextAddress==1)return q.hasRun?w.jumpTo(2):_.W(w,Promise.resolve(),3);if(w.nextAddress!=2)return q.run(),w.return();Z.queue.add(q);_.ub(w)})};
YAe.prototype.flush=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1){if(!q.queue.size)return w.return();Z=q.queue;q.queue=new Set;return _.W(w,Promise.resolve(),2)}N5T(Z);_.ub(w)})};
var kF2=new YAe,MXI=[T5j,kF2],IU2=[];LD6=function(){KDT();for(var q=_.P(IU2),Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z()};var PN=Symbol("Mb");var C7=[],AYN,fUe,DU2;var It={},$yv=Object.assign({},Y6,(It[Zyv]=!0,It.effectType=xUj,It.isResettableContext=!0,It.producerNode=void 0,It.hasRun=!1,It.effectFn=null,It.consumerIsAlwaysLive=!0,It.consumerAllowSignalWrites=!0,It.consumerMarkedDirty=swj,It.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(DA)throw Error("Nb");this.dirty=!1;if(!this.hasRun||wO6(this)){this.hasRun=!0;Phj(this);var q=l6(this),Z=e7e(this);BIj("effectRun",this.debugName);try{WN(this.effectFn,{stack:this.componentStack})}finally{a$j("effectRun",
this.debugName),Cx8(this,Z),l6(q)}}}},It.componentStack=void 0,It.debugName="[effect]",It[Symbol.dispose]=function(){y9X(this);
if(h1(this))for(var q=0;q<this.producerNode.length;q++)iBI(this.producerNode[q],this.producerIndexOfThis[q]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);q=_.P(MXI);for(var Z=q.next();!Z.done;Z=q.next())Z.value.remove(this);ChT(this)},It));var yYT=Object.assign({},$yv,{effectType:xUj});var ibO=Object.assign({},$yv,{effectType:UUe});var g7N=Symbol("Ob");var K3O=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var No=Symbol("Pb");var yE=function(){},$T=function(q){this.props=q;
this.__unmounted=!1};
$T.prototype.didPatch=function(){};
$T.prototype.didMount=function(){};
$T.prototype.didUnmount=function(){};
$T.prototype.didUpdate=function(){};var w0e={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,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,
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,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,valign:1,value:1,width:1,wrap:1},ZyI={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}]}},zU9={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},$yI=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],YAT={"*":{async:1,dir:0,loading:2,target:3}};var eP7=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,cW={},C9N=(cW[1]=null,cW[2]=function(q,Z){return Z instanceof sX?c8(Z):Qw.toString()},cW[3]=function(q,Z){return R9(Z)?_.bg(Z):eP7.test(String(Z))?String(Z):Qw.toString()},cW[4]=function(q,Z){return Z instanceof W8?_.ug(Z):Qw.toString()},cW[5]=function(q,Z){return String(Z)},cW[7]=null,cW[8]=null,cW[10]=null,cW);var hY6=Symbol("Sb");var Nse=function(q){var Z=C9X,w=q,r="",Y="",C=1;q<0&&(q=-q);if(q===Infinity)q=(Infinity*Math.sign(w)).toString();else{for(var d=0;d<P92.length;d++){var O=P92[d];C=Z[O];if(q>=C||C<=1&&q>.1*C){r=O;break}}r?(r+="B",Y=" "):C=1;q=Math.round(w/C*10)/10+Y+r}return q},P92="Y Z E P T G M K  m u n".split(" "),C9X={"":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};_.dy7=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 AX={};RegExp.prototype.hasOwnProperty("sticky");var clj=function(q){q=String(q);for(var Z=function(r,Y,C){for(var d=Math.min(Y.length-C,r.length),O=0;O<d;O++){var H=Y[C+O];if(r[O]!==("A"<=H&&H<="Z"?H.toLowerCase():H))return!1}return!0},w=0;(w=q.indexOf("<",w))!=-1;){if(Z("\x3c/script",q,w)||Z("\x3c!--",q,w))return"zSoyz";
w+=1}return q};var bS={default:"__default"};var oaX=Object.prototype.hasOwnProperty;Vxe.prototype=Object.create(null);var lx=SAT();var su=null;var Q_T=function(q){this.created=[];this.deleted=[];this.node=q};var EaX=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var q=this,Z=q;q;)Z=q,q=q.parentNode;return Z};var j_O=function(q,Z){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=q;this.key=Z;this.text=void 0};var n7=null,QE=null,z2=null,T2=null,zPO=[],JlT=RP2,k6=[],K7=[],DAT=function(q){return xyT(function(Z,w,r){z2=QE=Z;QE=null;w(r);by6(null);QE=z2;z2=z2.parentNode;return Z},q)}(),fv2=function(q){return xyT(function(Z,w,r){var Y={nextSibling:Z};
QE=Y;w(r);z2&&by6(Z.nextSibling);return Y===QE?null:QE},q)}();var IF=[],Uye=0;var cN=new Vxe;var Cn=new Vxe;var VxJ=SAT(),IwN=VxJ[bS.default],MxI=VxJ.style,s_1=["focusin","focusout"];var bp8=function(){},Opj=function(){},nQ2=function(){},zEe=function(){};var F4=Symbol("Zb");var my8,X0X=p0e;var DB=Symbol("$b");var $$1={};var aj8=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(" ")),
B0j=new Set(["a","font","script","style","title"]);var ZV={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var wA=null,rA=function(q,Z){$T.call(this,q);var w=this;this.functionComponent=Z;this.hooks=[];this.hookCounter=0;this.disposeEffects=vN(function(r){w.effectContext=r;_.SG(function(){uK2(w,w.el)})},mt.alwaysTrackContexts||!!_.Nb)};
_.z(rA,$T);rA.prototype.render=function(q){var Z=wA;wA=this;this.hookCounter=0;var w=fh(qR),r=l6(this.effectContext);try{return BIj("render",this.componentName),this.functionComponent(q)}finally{a$j("render",this.componentName),l6(r),fh(w),wA=Z}};
_.My.Object.defineProperties(rA.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){var q,Z;return(Z=(q=this.functionComponent.debugName)!=null?q:this.functionComponent.name)!=null?Z:"[component]"}}});var QsI=Symbol("nc"),ts8=function(q,Z,w){this.kind=q;this.props=Z;this.children=w};
_.z(ts8,yE);ts8.prototype.render=function(){return js6(this.kind,this.props,this.children)};
ts8.prototype.getChildren=function(){return this.children};var x$6=[];o79=function(q){throw Error("sb`"+q.debugName);};
(function(){var q=su;su=function(Z){q==null||q(Z);T0O(Z)}})();var Oy1=void 0,Hy2={},W31=new WeakMap,U$O={getComponent:function(q){if(q.hasAttribute("ng-version"))return Hy2;if(!q.__wizComponent)return null;q=q.__wizComponent;W31.set(q.propsAndState,q);return q.propsAndState},
getDirectiveMetadata:function(q){if(q===Hy2)return{framework:"wiz",name:"<Root>",props:{}};q=W31.get(q);if(!q)throw Error("oc");return{framework:"wiz",name:q.name,props:Object.fromEntries(Object.keys(q.props).map(function(Z){return[Z,Z]}))}},
"\u0275setProfiler":function(q){var Z;(Z=Oy1)==null||Z();Oy1=cYj(function(){q(2)})},
isSignal:function(q){return typeof q==="function"&&q[i6]!==void 0}};var KJN={nonNullableCondIsNull:function(){return Error("sc")}};_.u.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.u.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.u.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var N0I=function(){this.map=new Map};
N0I.prototype.push=function(q,Z){var w=this.map;w.has(q)&&(this.multi||(this.multi=new Map),this.multi.set(Z,w.get(q)));w.set(q,Z)};
N0I.prototype.pop=function(q){var Z=this.map,w=Z.get(q),r;w!==void 0&&((r=this.multi)==null?0:r.has(w))?(Z.set(q,this.multi.get(w)),this.multi.delete(w)):Z.delete(q);return w};var Ay6={LOG_NULL_EL_REF_VALUE:function(){return Error("tc")},
OUT_OF_ORDER_HOOK_CALL:function(q){return Error("uc`"+q)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("vc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("wc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("xc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(q,Z){return Error("yc`"+q+"`"+Z)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(q){return Error("zc`"+q)},
USE_ELEMENT_NOT_ASSIGNED:function(q){return Error("Ac`"+String(q))}};my8=RE2;var qhI=Symbol("Bc");WJI({beforeRender:function(q){var Z=l6(q.effectContext);try{var w;((w=q.__syncEffects)==null?0:w.length)&&wdT(q.__syncEffects)}finally{l6(Z)}},
didPatch:function(q){var Z=l6(q.effectContext);try{var w;((w=q.__syncEffects)==null?0:w.length)&&wdT(q.__syncEffects)}finally{l6(Z)}},
didUnmount:function(q){var Z;((Z=q.hooks)==null?0:Z.length)&&q.hooks.forEach(ZRN)}});var oa9,u1W,L3X;oa9=_.$1.window;_.Rz=(oa9==null?void 0:(u1W=oa9.yt)==null?void 0:u1W.config_)||(oa9==null?void 0:(L3X=oa9.ytcfg)==null?void 0:L3X.data_)||{};_.IR("yt.config_",_.Rz);var SAe={},eA6=[];_.df=function(q){var Z=_.Ta.apply(1,arguments);var w=Error.call(this,q);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.args=[].concat(_.Ju(Z));Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(_.df,Error);var PBI=function(q,Z,w){this.actionName=q;this.optionalAction=Z===void 0?!1:Z;this.args=w===void 0?null:w;this.returnValue=[]};_.D=function(q){this.name=q};_.EU=new _.D("signalAction");var ShO=/^[\w.]*$/,ORO={q:!0,search_query:!0},VKz=String(dMX);var M1;M1=Symbol("Cc");_.F$=function(q){this.name=q};
_.F$.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var vKe=function(q){this.key=q},RAI=function(q){this.deferredKey=q},tK8=function(){var q=this;
this.providers=new Map;this.JSC$8276_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(q.providers)}}};
tK8.prototype.addProvider=function(q){this.providers.set(q.provide,q);var Z=this.JSC$8276_deferred.get(q.provide);if(Z)try{Z.resolver(this.resolve(q.provide))}catch(w){Z.rejector(w)}};
tK8.prototype.resolve=function(q){return q instanceof RAI?vag(this,q):q instanceof vKe?j_2(this,q.key,[],!0):j_2(this,q,[])};
var vag=function(q,Z){Z=Z.deferredKey;if(q.JSC$8276_deferred.has(Z))return q.JSC$8276_deferred.get(Z).promise;var w={};w.promise=new Promise(function(r,Y){w.resolver=r;w.rejector=Y});
q.JSC$8276_deferred.set(Z,w);return w.promise},j_2=function(q,Z,w,r){r=r===void 0?!1:r;
if(w.indexOf(Z)>-1)throw Error("Dc`"+Z);if(q.cachedValues.has(Z))return q.cachedValues.get(Z);if(!q.providers.has(Z)){if(r)return;throw Error("Ec`"+Z);}r=q.providers.get(Z);w.push(Z);if(r.useValue!==void 0)var Y=r.useValue;else if(r.useFactory)Y=r[M1]?txD(q,r[M1],w):[],Y=r.useFactory.apply(r,_.Ju(Y));else if(r.useClass){Y=r.useClass;var C=Y[M1]?txD(q,Y[M1],w):[];Y=new (Function.prototype.bind.apply(Y,[null].concat(_.Ju(C))))}else throw Error("Fc`"+Z);w.pop();r.skipCache||q.cachedValues.set(Z,Y);return Y},
txD=function(q,Z,w){return Z?Z.map(function(r){return r instanceof vKe?j_2(q,r.key,w,!0):j_2(q,r,w)}):[]};var jVT;var x7=new _.F$("ENDPOINT_HANDLER_TOKEN");_.TF=new _.D("urlEndpoint");var RPK=function(){this.data=[];this.cachedPackedInt52=-1};
RPK.prototype.set=function(q,Z){Z=Z===void 0?!0:Z;0<=q&&q<52&&Number.isInteger(q)&&this.data[q]!==Z&&(this.data[q]=Z,this.cachedPackedInt52=-1)};
RPK.prototype.get=function(q){return!!this.data[q]};
var by1=function(q){q.cachedPackedInt52===-1&&(q.cachedPackedInt52=q.data.reduce(function(Z,w,r){return Z+(w?Math.pow(2,r):0)},0));
return q.cachedPackedInt52};var sV6=function(q){var Z=Jlh;q=q===void 0?_.Eq("yt.ads.biscotti.lastId_")||"":q;var w=Object,r=w.assign,Y={};Y.dt=E6K;Y.flash="0";a:{try{var C=Z.JSC$8282_win_.top.location.href}catch(nX){C=2;break a}C=C?C===Z.doc_.location.href?0:1:2}Y=(Y.frm=C,Y);try{Y.u_tz=-(new Date).getTimezoneOffset();var d=d===void 0?Q8:d;try{var O=d.history.length}catch(nX){O=0}Y.u_his=O;var H;Y.u_h=(H=Q8.screen)==null?void 0:H.height;var L;Y.u_w=(L=Q8.screen)==null?void 0:L.width;var S;Y.u_ah=(S=Q8.screen)==null?void 0:S.availHeight;
var v;Y.u_aw=(v=Q8.screen)==null?void 0:v.availWidth;var R;Y.u_cd=(R=Q8.screen)==null?void 0:R.colorDepth}catch(nX){}O=Z.JSC$8282_win_;try{var B=O.screenX;var n=O.screenY}catch(nX){}try{var x=O.outerWidth;var K=O.outerHeight}catch(nX){}try{var k=O.innerWidth;var G=O.innerHeight}catch(nX){}try{var rz=O.screenLeft;var f=O.screenTop}catch(nX){}try{k=O.innerWidth,G=O.innerHeight}catch(nX){}try{var eO=O.screen.availWidth;var g=O.screen.availTop}catch(nX){}B=[rz,f,B,n,eO,g,x,K,k,G];n=qJ1(!1,Z.JSC$8282_win_.top);
x={};var H6=H6===void 0?_.$1:H6;K=new RPK;"SVGElement"in H6&&"createElementNS"in H6.document&&K.set(0);k=flD();k["allow-top-navigation-by-user-activation"]&&K.set(1);k["allow-popups-to-escape-sandbox"]&&K.set(2);H6.crypto&&H6.crypto.subtle&&K.set(3);"TextDecoder"in H6&&"TextEncoder"in H6&&K.set(4);H6=by1(K);Z=(x.bc=H6,x.bih=n.height,x.biw=n.width,x.brdim=B.join(),x.vis=moT(Z.doc_),x.wgl=!!Q8.WebGLRenderingContext,x);w=r.call(w,Y,Z);w.ca_type="image";q&&(w.bid=q);return w},Jlh=new function(){var q=
window.document;
this.JSC$8282_win_=window;this.doc_=q};
_.IR("yt.ads_.signals_.getAdSignalsString",function(q){return HRz(sV6(q))});_.hW();navigator.userAgent.indexOf(" (CrKey ");var aCj="XMLHttpRequest"in _.$1?function(){return new XMLHttpRequest}:null;var zP2="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),BJ9=[].concat(_.Ju(zP2),["client_dev_set_cookie"]);var Kuj={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"},EKT="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(_.Ju(zP2)),Xd1=!1,TTz=_.IC9,lCO=k7z;var oLT=[{messageFn:function(q){return"Cannot read property '"+q.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(q){return"Cannot call '"+q.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(q){return q.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var awv={messageWeights:[],callbackWeights:[{callback:DMz,weight:500}]};var naD=function(){this.callbackWeights=[];this.messageWeights=[]},Q_e,WWz=function(){if(!Q_e){var q=Q_e=new naD;
q.messageWeights.length=0;q.callbackWeights.length=0;poj(q,awv)}return Q_e},poj=function(q,Z){Z.messageWeights&&q.messageWeights.push.apply(q.messageWeights,Z.messageWeights);
Z.callbackWeights&&q.callbackWeights.push.apply(q.callbackWeights,Z.callbackWeights)};_.yU(_.wf,_.u6);_.wf.prototype.subscribe=function(q,Z,w){var r=this.topics_[q];r||(r=this.topics_[q]=[]);var Y=this.JSC$8306_key_;this.subscriptions_[Y]=q;this.subscriptions_[Y+1]=Z;this.subscriptions_[Y+2]=w;this.JSC$8306_key_=Y+3;r.push(Y);return Y};
var Ea9=function(q){var Z=vLI,w=!1,r=Z.subscribe("handleError",function(Y){w||(w=!0,this.unsubscribeByKey(r),q.apply(void 0,arguments))},Z)};
_.wf.prototype.unsubscribe=function(q,Z,w){if(q=this.topics_[q]){var r=this.subscriptions_;if(q=q.find(function(Y){return r[Y+1]==Z&&r[Y+2]==w}))return this.unsubscribeByKey(q)}return!1};
_.wf.prototype.unsubscribeByKey=function(q){var Z=this.subscriptions_[q];if(Z){var w=this.topics_[Z];this.publishDepth_!=0?(this.pendingKeys_.push(q),this.subscriptions_[q+1]=function(){}):(w&&_.F9(w,q),delete this.subscriptions_[q],delete this.subscriptions_[q+1],delete this.subscriptions_[q+2])}return!!Z};
_.wf.prototype.publish=function(q,Z){var w=this.topics_[q];if(w){var r=Array(arguments.length-1),Y=arguments.length,C;for(C=1;C<Y;C++)r[C-1]=arguments[C];if(this.async_)for(C=0;C<w.length;C++)Y=w[C],xyh(this.subscriptions_[Y+1],this.subscriptions_[Y+2],r);else{this.publishDepth_++;try{for(C=0,Y=w.length;C<Y&&!this.isDisposed();C++){var d=w[C];this.subscriptions_[d+1].apply(this.subscriptions_[d+2],r)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;w=this.pendingKeys_.pop();)this.unsubscribeByKey(w)}}return C!=
0}return!1};
var xyh=function(q,Z,w){_.HD(function(){q.apply(Z,w)})};
_.wf.prototype.clear=function(q){if(q){var Z=this.topics_[q];Z&&(Z.forEach(this.unsubscribeByKey,this),delete this.topics_[q])}else this.subscriptions_.length=0,this.topics_={}};
_.wf.prototype.getCount=function(q){if(q){var Z=this.topics_[q];return Z?Z.length:0}q=0;for(Z in this.topics_)q+=this.getCount(Z);return q};
_.wf.prototype.disposeInternal=function(){_.wf.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var vLI=new _.wf;var fY=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(fY,_.XD);fY.prototype.getColdHashData=function(){return _.bY(this,3)};
fY.prototype.getHotHashData=function(){return _.bY(this,5)};
fY.prototype.setHotHashData=function(q){return _.uM(this,5,q)};var dZT=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(dZT,_.XD);var Id1=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Id1,_.XD);_.e=Id1.prototype;_.e.getDeviceId=function(){return _.bY(this,6)};
_.e.getExperimentIds=function(q){var Z=_.U6(this,9,_.gW,3,!0);mjX(Z,q);return Z[q]};
_.e.getPlayerType=function(){return _.Jz(this,36)};
_.e.setHomeGroupInfo=function(q){return _.CA(this,81,q)};
_.e.clearLocationPlayabilityToken=function(){return _.Am(this,89)};var eX=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(eX,_.XD);eX.prototype.setKey=function(q){return _.uM(this,1,q)};
eX.prototype.getValue=function(){return BI(this,2,Mj6)};
var Mj6=[2,3,4,5,6];var TJJ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(TJJ,_.XD);TJJ.prototype.setTrackingParams=function(q){return _.Am(this,1,_.JK(q,!1))};var c7z=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(c7z,_.XD);var HoI=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(HoI,_.XD);HoI.prototype.getExperimentIds=function(q){var Z=_.U6(this,5,_.og1,3,!0);mjX(Z,q);return Z[q]};var Vo=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Vo,_.XD);Vo.prototype.getToken=function(){return _.PG(this,2)};
Vo.prototype.setToken=function(q){return _.uM(this,2,q)};var PO=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(PO,_.XD);PO.prototype.setSafetyMode=function(q){return _.mh(this,5,q)};var $7=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z($7,_.XD);$7.prototype.setClient=function(q){return _.CA(this,1,q)};var OoT={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 VaN;_.Jr=function(){var q=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.$1.addEventListener("beforeinstallprompt",function(Z){Z.preventDefault();q.deferredInstallPrompt=Z});
_.$1.addEventListener("appinstalled",function(){q.appInstalledEventFired=!0},{once:!0})};
VaN=function(){if(!_.$1.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.$1.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.$1.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.$1.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.$1.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(q){return"WEB_DISPLAY_MODE_UNKNOWN"}};var uNe=function(){this.syncHeaders=!0},L28=function(q){var Z={},w=[];
"USER_SESSION_ID"in _.Rz&&w.push({key:"u",value:_.zj("USER_SESSION_ID")});if(w=cJ6(w))Z.Authorization=w,w=q=q==null?void 0:q.sessionIndex,w===void 0&&(w=Number(_.zj("SESSION_INDEX",0)),w=isNaN(w)?0:w),_.b("voice_search_auth_header_removal")||(Z["X-Goog-AuthUser"]=w.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Rz||(Z["X-Origin"]=window.location.origin),q===void 0&&"DELEGATED_SESSION_ID"in _.Rz&&(Z["X-Goog-PageId"]=_.zj("DELEGATED_SESSION_ID"));return Z};var UyJ={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var N1=_.Eq("ytglobal.prefsUserPrefsPrefs_")||{},klJ;_.IR("ytglobal.prefsUserPrefsPrefs_",N1);_.lU=function(){this.cookieName=_.zj("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.zj("ALT_PREF_COOKIE_DOMAIN","youtube.com");var q=_.Yr.get(this.cookieName,void 0);q&&this.parse(q)};
_.Hd=function(){klJ||(klJ=new _.lU);return klJ};
_.lU.prototype.get=function(q,Z){K32(q);s_g(q);q=N1[q]!==void 0?N1[q].toString():null;return q!=null?q:Z?Z:""};
_.lU.prototype.set=function(q,Z){K32(q);s_g(q);if(Z==null)throw Error("Ic");N1[q]=Z.toString()};
_.lU.prototype.getFlag=function(q){return!!((IwX("f"+(Math.floor(q/31)+1))||0)&1<<q%31)};
_.Wd=function(q,Z,w){q="f"+(Math.floor(Z/31)+1);Z=1<<Z%31;var r=IwX(q)||0;r=w?r|Z:r&~Z;r===0?delete N1[q]:(w=r.toString(16),N1[q]=w.toString())};
_.lU.prototype.remove=function(q){K32(q);s_g(q);delete N1[q]};
_.lU.prototype.save=function(){var q=!0;_.b("web_secure_pref_cookie_killswitch")&&(q=!1);_.$r(this.cookieName,this.dump(),63072E3,this.cookieDomain,q)};
_.lU.prototype.clear=function(){_.R4.clear(N1)};
_.lU.prototype.dump=function(){var q=[],Z;for(Z in N1)N1.hasOwnProperty(Z)&&q.push(Z+"="+encodeURIComponent(String(N1[Z])));return q.join("&")};
var s_g=function(q){if(/^f([1-9][0-9]*)$/.test(q))throw Error("Jc`"+q);},K32=function(q){if(!/^\w+$/.test(q))throw Error("Kc`"+q);
},IwX=function(q){q=N1[q]!==void 0?N1[q].toString():null;
return q!=null&&/^[A-Fa-f0-9]+$/.test(q)?parseInt(q,16):null};
_.lU.prototype.parse=function(q){q=decodeURIComponent(q).split("&");for(var Z=0;Z<q.length;Z++){var w=q[Z].split("="),r=w[0];(w=w[1])&&(N1[r]=w.toString())}};var YEj={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"},W22={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},oz8={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},eW2={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Kn;_.GS=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.WO=function(q,Z,w){return q.addJob(Z,0,w)};
_.GS.prototype.addLowPriorityJob=function(q,Z){return this.addJob(q,1,Z)};
_.$L=function(q,Z,w){return q.addJob(Z,2,w)};
_.OM=function(q,Z,w){return q.addJob(Z,3,w)};
_.sL=function(q,Z,w){return q.addJob(Z,4,w)};
Kn=function(q){var Z=_.Eq("yt.scheduler.instance.addImmediateJob");Z?Z(q):q()};
_.GS.prototype.debounce=function(q,Z,w){var r=this,Y=0,C=function(){Y&&r.cancelJob(Y);Y=r.addJob(q,Z,w);r.cancelDebouncedJobMap.set(C,Y)};
return C};
_.GS.prototype.cancelThrottle=function(q){(q=this.cancelThrottledJobMap.get(q))&&q()};var pG=function(){_.GS.apply(this,arguments)};
_.z(pG,_.GS);_.R0=function(){pG.instance||(pG.instance=new pG);return pG.instance};
pG.prototype.addJob=function(q,Z,w){w!==void 0&&Number.isNaN(Number(w))&&(w=void 0);var r=_.Eq("yt.scheduler.instance.addJob");return r?r(q,Z,w):w===void 0?(q(),NaN):_.hf(q,w||0)};
pG.prototype.cancelJob=function(q){if(q===void 0||!Number.isNaN(Number(q))){var Z=_.Eq("yt.scheduler.instance.cancelJob");Z?Z(q):_.iO(q)}};
pG.prototype.start=function(){var q=_.Eq("yt.scheduler.instance.start");q&&q()};
pG.prototype.pause=function(){var q=_.Eq("yt.scheduler.instance.pause");q&&q()};
_.v5=_.R0();_.VL.prototype.set=function(q,Z){Z===void 0?this.mechanism.remove(q):this.mechanism.set(q,(0,_.S3)(Z))};
_.VL.prototype.get=function(q){try{var Z=this.mechanism.get(q)}catch(w){return}if(Z!==null)try{return JSON.parse(Z)}catch(w){throw"Storage: Invalid value was encountered";}};
_.VL.prototype.remove=function(q){this.mechanism.remove(q)};var X$=function(q){this.mechanism=q};
_.yU(X$,_.VL);var clD=function(q){this.data=q},Mxv=function(q){return q===void 0||q instanceof clD?q:new clD(q)};
X$.prototype.set=function(q,Z){X$.superClass_.set.call(this,q,Mxv(Z))};
X$.prototype.getWrapper=function(q){q=X$.superClass_.get.call(this,q);if(q===void 0||q instanceof Object)return q;throw"Storage: Invalid value was encountered";};
X$.prototype.get=function(q){if(q=this.getWrapper(q)){if(q=q.data,q===void 0)throw"Storage: Invalid value was encountered";}else q=void 0;return q};_.yU(Ok,X$);_.F3J=function(q){var Z=q.creation;q=q.expiration;return!!q&&q<_.hW()||!!Z&&Z>_.hW()};
Ok.prototype.set=function(q,Z,w){if(Z=Mxv(Z)){if(w){if(w<_.hW()){Ok.prototype.remove.call(this,q);return}Z.expiration=w}Z.creation=_.hW()}Ok.superClass_.set.call(this,q,Z)};
Ok.prototype.getWrapper=function(q,Z){var w=Ok.superClass_.getWrapper.call(this,q);if(w)if(!Z&&_.F3J(w))Ok.prototype.remove.call(this,q);else return w};var mn=function(){};
mn.prototype.next=function(){return A3};
var A3={done:!0,value:void 0},fG=function(q){return{value:q,done:!1}};
mn.prototype.__iterator__=function(){return this};
_.NJK=function(q){if(q instanceof mn)return q;if(typeof q.__iterator__=="function")return q.__iterator__(!1);if(_.pX(q)){var Z=0,w=new mn;w.next=function(){for(;;){if(Z>=q.length)return A3;if(Z in q)return fG(q[Z++]);Z++}};
return w}throw Error("Lc");};var lw1=function(q){if(q instanceof Dg||q instanceof h3||q instanceof yT)return q;if(typeof q.next=="function")return new Dg(function(){return q});
if(typeof q[Symbol.iterator]=="function")return new Dg(function(){return q[Symbol.iterator]()});
if(typeof q.__iterator__=="function")return new Dg(function(){return q.__iterator__()});
throw Error("Mc");},Dg=function(q){this.func_=q};
Dg.prototype.__iterator__=function(){return new h3(this.func_())};
Dg.prototype[Symbol.iterator]=function(){return new yT(this.func_())};
Dg.prototype.toEs6=function(){return new yT(this.func_())};
var h3=function(q){this.JSC$8390_iter_=q};
_.z(h3,mn);h3.prototype.next=function(){return this.JSC$8390_iter_.next()};
h3.prototype[Symbol.iterator]=function(){return new yT(this.JSC$8390_iter_)};
h3.prototype.toEs6=function(){return new yT(this.JSC$8390_iter_)};
var yT=function(q){Dg.call(this,function(){return q});
this.JSC$8393_iter_=q};
_.z(yT,Dg);yT.prototype.next=function(){return this.JSC$8393_iter_.next()};var Gl9=function(){};var iU=function(){};
_.yU(iU,Gl9);iU.prototype.getCount=function(){for(var q=0,Z=_.P(this),w=Z.next();!w.done;w=Z.next())q++;return q};
iU.prototype[Symbol.iterator]=function(){return lw1(this.__iterator__(!0)).toEs6()};
iU.prototype.clear=function(){var q=Array.from(this);q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next())this.remove(Z.value)};_.yU(Hg,iU);_.e=Hg.prototype;_.e.isAvailable=function(){if(!JGN||this.cachedIsStorageAvailable_===null){var q=this.storage_;if(q)try{performance.now();q.setItem("__sak","1");q.removeItem("__sak");performance.now();var Z=!0}catch(w){Z=w instanceof DOMException&&(w.name==="QuotaExceededError"||w.code===22||w.code===1014||w.name==="NS_ERROR_DOM_QUOTA_REACHED")&&q&&q.length!==0}else Z=!1;this.cachedIsStorageAvailable_=Z}return this.cachedIsStorageAvailable_};
_.e.set=function(q,Z){gk(this);try{this.storage_.setItem(q,Z)}catch(w){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.e.get=function(q){gk(this);q=this.storage_.getItem(q);if(typeof q!=="string"&&q!==null)throw"Storage mechanism: Invalid value was encountered";return q};
_.e.remove=function(q){gk(this);this.storage_.removeItem(q)};
_.e.getCount=function(){gk(this);return this.storage_.length};
_.e.__iterator__=function(q){gk(this);var Z=0,w=this.storage_,r=new mn;r.next=function(){if(Z>=w.length)return A3;var Y=w.key(Z++);if(q)return fG(Y);Y=w.getItem(Y);if(typeof Y!=="string")throw"Storage mechanism: Invalid value was encountered";return fG(Y)};
return r};
_.e.clear=function(){gk(this);this.storage_.clear()};
_.e.key=function(q){gk(this);return this.storage_.key(q)};
var gk=function(q){if(q.storage_==null)throw Error("Nc");var Z;(JGN?q.isAvailable():(Z=q.cachedIsStorageAvailable_)!=null?Z:q.isAvailable())||P6(Error("Nc"))};_.yU(PF9,Hg);_.yU(d9X,Hg);_.yU(Wg,iU);Wg.prototype.set=function(q,Z){this.mechanism_.set(this.JSC$8408_prefix_+q,Z)};
Wg.prototype.get=function(q){return this.mechanism_.get(this.JSC$8408_prefix_+q)};
Wg.prototype.remove=function(q){this.mechanism_.remove(this.JSC$8408_prefix_+q)};
Wg.prototype.__iterator__=function(q){var Z=this.mechanism_[Symbol.iterator](),w=this,r=new mn;r.next=function(){var Y=Z.next();if(Y.done)return Y;for(Y=Y.value;Y.slice(0,w.JSC$8408_prefix_.length)!=w.JSC$8408_prefix_;){Y=Z.next();if(Y.done)return Y;Y=Y.value}return fG(q?Y.slice(w.JSC$8408_prefix_.length):w.mechanism_.get(Y))};
return r};_.zo=function(q){this.expiringStorage_=(q=_.VZ2(q))?new Ok(q):null;this.JSC$8412_domain_=document.domain||window.location.hostname};
_.zo.prototype.set=function(q,Z,w,r){w=w||31104E3;this.remove(q);if(this.expiringStorage_)try{this.expiringStorage_.set(q,Z,Date.now()+w*1E3);return}catch(C){}var Y="";if(r)try{Y=escape((0,_.S3)(Z))}catch(C){return}else Y=escape(Z);_.$r(q,Y,w,this.JSC$8412_domain_)};
_.zo.prototype.get=function(q,Z){var w=void 0,r=!this.expiringStorage_;if(!r)try{w=this.expiringStorage_.get(q)}catch(Y){r=!0}if(r&&(w=_.Yr.get(q,void 0))&&(w=unescape(w),Z))try{w=JSON.parse(w)}catch(Y){this.remove(q),w=void 0}return w};
_.zo.prototype.remove=function(q){this.expiringStorage_&&this.expiringStorage_.remove(q);_.Zzj(q,"/",this.JSC$8412_domain_)};
_.zo.prototype.getCreationTime=function(q){return this.expiringStorage_&&(q=(this.expiringStorage_.getWrapper(q)||{}).creation,typeof q==="number")?q:null};var Hz2=function(){var q;return function(){q||(q=new _.zo("ytidb"));return q}}();var oON;_.up=[];oON=!1;var k92=uRz||LST;var qL={},p0J=(qL.AUTH_INVALID="No user identifier specified.",qL.EXPLICIT_ABORT="Transaction was explicitly aborted.",qL.IDB_NOT_SUPPORTED="IndexedDB is not supported.",qL.MISSING_INDEX="Index not created.",qL.MISSING_OBJECT_STORES="Object stores not created.",qL.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",qL.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",qL.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",qL.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",qL.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",qL.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",qL.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",qL),Z7={},X09=(Z7.AUTH_INVALID="ERROR",Z7.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Z7.EXPLICIT_ABORT="IGNORED",
Z7.IDB_NOT_SUPPORTED="ERROR",Z7.MISSING_INDEX="WARNING",Z7.MISSING_OBJECT_STORES="ERROR",Z7.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Z7.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Z7.QUOTA_EXCEEDED="WARNING",Z7.QUOTA_MAYBE_EXCEEDED="WARNING",Z7.UNKNOWN_ABORT="WARNING",Z7.INCOMPATIBLE_DB_VERSION="WARNING",Z7),w2={},mym=(w2.AUTH_INVALID=!1,w2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,w2.EXPLICIT_ABORT=!1,w2.IDB_NOT_SUPPORTED=!1,w2.MISSING_INDEX=!1,w2.MISSING_OBJECT_STORES=!1,w2.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,w2.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,w2.QUOTA_EXCEEDED=!1,w2.QUOTA_MAYBE_EXCEEDED=!0,w2.UNKNOWN_ABORT=!0,w2.INCOMPATIBLE_DB_VERSION=!1,w2),RR=function(q,Z,w,r,Y){Z=Z===void 0?{}:Z;w=w===void 0?p0J[q]:w;r=r===void 0?X09[q]:r;Y=Y===void 0?mym[q]:Y;_.df.call(this,w,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:q},Z));this.type=q;this.message=w;this.level=r;this.retryable=Y;Object.setPrototypeOf(this,RR.prototype)};
_.z(RR,_.df);var Al1=function(q,Z){RR.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:Z,foundObjectStores:q},p0J.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Al1.prototype)};
_.z(Al1,RR);var vO1=function(q,Z){var w=Error.call(this);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.index=q;this.objectStore=Z;Object.setPrototypeOf(this,vO1.prototype)};
_.z(vO1,Error);var jZj=["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 Bg=function(q){this.executor=q},zO=function(q){var Z=this;
this.state={status:"PENDING"};this.JSC$8440_onFulfilled=[];this.JSC$8440_onRejected=[];q=q.executor;var w=function(Y){if(Z.state.status==="PENDING"){Z.state={status:"FULFILLED",value:Y};Y=_.P(Z.JSC$8440_onFulfilled);for(var C=Y.next();!C.done;C=Y.next())C=C.value,C()}},r=function(Y){if(Z.state.status==="PENDING"){Z.state={status:"REJECTED",
reason:Y};Y=_.P(Z.JSC$8440_onRejected);for(var C=Y.next();!C.done;C=Y.next())C=C.value,C()}};
try{q(w,r)}catch(Y){r(Y)}};
zO.all=function(q){return new zO(new Bg(function(Z,w){var r=[],Y=q.length;Y===0&&Z(r);for(var C={i$jscomp$505:0};C.i$jscomp$505<q.length;C={i$jscomp$505:C.i$jscomp$505},++C.i$jscomp$505)zO.resolve(q[C.i$jscomp$505]).then(function(d){return function(O){r[d.i$jscomp$505]=O;Y--;Y===0&&Z(r)}}(C)).catch(function(d){w(d)})}))};
zO.resolve=function(q){return new zO(new Bg(function(Z,w){q instanceof zO?q.then(Z,w):Z(q)}))};
zO.reject=function(q){return new zO(new Bg(function(Z,w){w(q)}))};
zO.prototype.then=function(q,Z){var w=this,r=q!=null?q:bzX,Y=Z!=null?Z:RWz;return new zO(new Bg(function(C,d){w.state.status==="PENDING"?(w.JSC$8440_onFulfilled.push(function(){fwD(w,w,r,C,d)}),w.JSC$8440_onRejected.push(function(){DyK(w,w,Y,C,d)})):w.state.status==="FULFILLED"?fwD(w,w,r,C,d):w.state.status==="REJECTED"&&DyK(w,w,Y,C,d)}))};
zO.prototype.catch=function(q){return this.then(void 0,q)};
var fwD=function(q,Z,w,r,Y){try{if(q.state.status!=="FULFILLED")throw Error("Qc");var C=w(q.state.value);C instanceof zO?hPD(q,Z,C,r,Y):r(C)}catch(d){Y(d)}},DyK=function(q,Z,w,r,Y){try{if(q.state.status!=="REJECTED")throw Error("Rc");
var C=w(q.state.reason);C instanceof zO?hPD(q,Z,C,r,Y):r(C)}catch(d){Y(d)}},hPD=function(q,Z,w,r,Y){Z===w?Y(new TypeError("Sc")):w.then(function(C){C instanceof zO?hPD(q,Z,C,r,Y):r(C)},function(C){Y(C)})};var r2;r2=window;_.lp=r2.ytcsi&&r2.ytcsi.now?r2.ytcsi.now:r2.performance&&r2.performance.timing&&r2.performance.now&&r2.performance.timing.navigationStart?function(){return r2.performance.timing.navigationStart+r2.performance.now()}:function(){return(new Date).getTime()};var nY=function(q,Z){this.JSC$8452_wrapped=q;this.options=Z;this.transactionCount=0;this.startedMs=Math.round((0,_.lp)());this.hasUnknownAbortedTransaction=!1},gag,qP7,eb,ryh;
nY.prototype.add=function(q,Z,w){return _.TO(this,[q],{mode:"readwrite",enableRetries:!0},function(r){return r.objectStore(q).add(Z,w)})};
nY.prototype.clear=function(q){return _.TO(this,[q],{mode:"readwrite",enableRetries:!0},function(Z){return Z.objectStore(q).clear()})};
nY.prototype.close=function(){this.JSC$8452_wrapped.close();var q;((q=this.options)==null?0:q.closed)&&this.options.closed()};
nY.prototype.count=function(q,Z){return _.TO(this,[q],{mode:"readonly",enableRetries:!0},function(w){return w.objectStore(q).count(Z)})};
var a$=function(q,Z,w){q=q.JSC$8452_wrapped.createObjectStore(Z,w);return new Yn(q)};
nY.prototype.delete=function(q,Z){return _.TO(this,[q],{mode:"readwrite",enableRetries:!0},function(w){return w.objectStore(q).delete(Z)})};
var ylK=function(q,Z){return _.TO(q,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(w){return w.objectStore("ResponseStore").index("byInterface").delete(Z)})};
nY.prototype.get=function(q,Z){return _.TO(this,[q],{mode:"readonly",enableRetries:!0},function(w){return w.objectStore(q).get(Z)})};
nY.prototype.getAll=function(q,Z,w){return _.TO(this,[q],{mode:"readonly",enableRetries:!0},function(r){return r.objectStore(q).getAll(Z,w)})};
nY.prototype.put=function(q,Z,w){return _.TO(this,[q],{mode:"readwrite",enableRetries:!0},function(r){return r.objectStore(q).put(Z,w)})};
nY.prototype.objectStoreNames=function(){return Array.from(this.JSC$8452_wrapped.objectStoreNames)};
_.TO=function(q,Z,w,r){var Y,C,d,O,H,L,S,v,R,B,n,x;return _.V(function(K){switch(K.nextAddress){case 1:var k={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof w==="string"?k.mode=w:Object.assign(k,w);Y=k;q.transactionCount++;C=Y.enableRetries?3:1;d=0;case 2:if(O){K.jumpTo(4);break}d++;H=Math.round((0,_.lp)());_.d9(K,5);L=q.JSC$8452_wrapped.transaction(Z,Y.mode);k=new akz(L);k=iy7(k,r);return _.W(K,k,7);case 7:return S=K.yieldResult,v=Math.round((0,_.lp)()),gag(q,H,v,d,void 0,
Z.join(),Y),K.return(S);case 5:R=_.o3(K);B=Math.round((0,_.lp)());n=tZ8(R,q.JSC$8452_wrapped.name,Z.join(),q.JSC$8452_wrapped.version);if((x=n instanceof RR&&!n.retryable)||d>=C)gag(q,H,B,d,n,Z.join(),Y),O=n;K.jumpTo(2);break;case 4:return K.return(Promise.reject(O))}})};
gag=function(q,Z,w,r,Y,C,d){Z=w-Z;Y?(Y instanceof RR&&(Y.type==="QUOTA_EXCEEDED"||Y.type==="QUOTA_MAYBE_EXCEEDED")&&ST("QUOTA_EXCEEDED",{dbName:jT(q.JSC$8452_wrapped.name),objectStoreNames:C,transactionCount:q.transactionCount,transactionMode:d.mode}),Y instanceof RR&&Y.type==="UNKNOWN_ABORT"&&(w-=q.startedMs,w<0&&w>=2147483648&&(w=0),ST("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:C,transactionDuration:Z,transactionCount:q.transactionCount,dbDuration:w}),q.hasUnknownAbortedTransaction=!0),
qP7(q,!1,r,C,Z,d.tag),_.LY(Y)):qP7(q,!0,r,C,Z,d.tag)};
qP7=function(q,Z,w,r,Y,C){ST("TRANSACTION_ENDED",{objectStoreNames:r,connectionHasUnknownAbortedTransaction:q.hasUnknownAbortedTransaction,duration:Y,isSuccessful:Z,tryCount:w,tag:C===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":C})};
nY.prototype.getVersion=function(){return this.JSC$8452_wrapped.version};
nY.prototype.getName=function(){return this.JSC$8452_wrapped.name};
var Yn=function(q){this.JSC$8467_wrapped=q};
Yn.prototype.add=function(q,Z){return aR(this.JSC$8467_wrapped.add(q,Z))};
Yn.prototype.autoIncrement=function(){return this.JSC$8467_wrapped.autoIncrement};
Yn.prototype.clear=function(){return aR(this.JSC$8467_wrapped.clear()).then(function(){})};
var nB=function(q,Z,w){q.JSC$8467_wrapped.createIndex(Z,w,{unique:!1})};
Yn.prototype.count=function(q){return aR(this.JSC$8467_wrapped.count(q))};
var Zp9=function(q,Z){return kr(q,{query:Z},function(w){return w.delete().then(function(){return w.continue()})}).then(function(){})};
Yn.prototype.delete=function(q){return q instanceof IDBKeyRange?Zp9(this,q):aR(this.JSC$8467_wrapped.delete(q))};
Yn.prototype.get=function(q){return aR(this.JSC$8467_wrapped.get(q))};
Yn.prototype.getAll=function(q,Z){return"getAll"in IDBObjectStore.prototype?aR(this.JSC$8467_wrapped.getAll(q,Z)):wk9(this,q,Z)};
var wk9=function(q,Z,w){var r=[];return kr(q,{query:Z},function(Y){if(!(w!==void 0&&r.length>=w))return r.push(Y.getValue()),Y.continue()}).then(function(){return r})};
Yn.prototype.index=function(q){try{return new $n(this.JSC$8467_wrapped.index(q))}catch(Z){if(Z instanceof Error&&Z.name==="NotFoundError")throw new vO1(q,this.JSC$8467_wrapped.name);throw Z;}};
Yn.prototype.getName=function(){return this.JSC$8467_wrapped.name};
Yn.prototype.keyPath=function(){return this.JSC$8467_wrapped.keyPath};
Yn.prototype.put=function(q,Z){return aR(this.JSC$8467_wrapped.put(q,Z))};
var kr=function(q,Z,w){q=q.JSC$8467_wrapped.openCursor(Z.query,Z.direction);return ryh(q).then(function(r){return Btj(r,w)})},akz=function(q){var Z=this;
this.JSC$8475_wrapped=q;this.objectStoreCache=new Map;this.JSC$8475_aborted=!1;this.done=new Promise(function(w,r){Z.JSC$8475_wrapped.addEventListener("complete",function(){w()});
Z.JSC$8475_wrapped.addEventListener("error",function(Y){Y.currentTarget===Y.target&&r(Z.JSC$8475_wrapped.error)});
Z.JSC$8475_wrapped.addEventListener("abort",function(){var Y=Z.JSC$8475_wrapped.error;if(Y)r(Y);else if(!Z.JSC$8475_aborted){Y=RR;for(var C=Z.JSC$8475_wrapped.objectStoreNames,d=[],O=0;O<C.length;O++){var H=C.item(O);if(H===null)throw Error("Tc");d.push(H)}Y=new Y("UNKNOWN_ABORT",{objectStoreNames:d.join(),dbName:Z.JSC$8475_wrapped.db.name,mode:Z.JSC$8475_wrapped.mode});r(Y)}})})},iy7=function(q,Z){var w=new Promise(function(r,Y){try{Z(q).then(function(C){r(C)}).catch(Y)}catch(C){Y(C),q.abort()}});
return Promise.all([w,q.done]).then(function(r){return _.P(r).next().value})};
akz.prototype.abort=function(){this.JSC$8475_wrapped.abort();this.JSC$8475_aborted=!0;throw new RR("EXPLICIT_ABORT");};
akz.prototype.objectStore=function(q){q=this.JSC$8475_wrapped.objectStore(q);var Z=this.objectStoreCache.get(q);Z||(Z=new Yn(q),this.objectStoreCache.set(q,Z));return Z};
var $n=function(q){this.JSC$8477_wrapped=q};
$n.prototype.count=function(q){return aR(this.JSC$8477_wrapped.count(q))};
$n.prototype.delete=function(q){return _.GO(this,{query:q},function(Z){return Z.delete().then(function(){return Z.continue()})})};
$n.prototype.get=function(q){return aR(this.JSC$8477_wrapped.get(q))};
$n.prototype.getAll=function(q,Z){return"getAll"in IDBIndex.prototype?aR(this.JSC$8477_wrapped.getAll(q,Z)):YPm(this,q,Z)};
var YPm=function(q,Z,w){var r=[];return _.GO(q,{query:Z},function(Y){if(!(w!==void 0&&r.length>=w))return r.push(Y.getValue()),Y.continue()}).then(function(){return r})};
$n.prototype.keyPath=function(){return this.JSC$8477_wrapped.keyPath};
$n.prototype.unique=function(){return this.JSC$8477_wrapped.unique};
_.GO=function(q,Z,w){q=q.JSC$8477_wrapped.openCursor(Z.query===void 0?null:Z.query,Z.direction===void 0?"next":Z.direction);return ryh(q).then(function(r){return Btj(r,w)})};
eb=function(q,Z){this.request=q;this.cursor=Z};
ryh=function(q){return aR(q).then(function(Z){return Z?new eb(q,Z):null})};
eb.prototype.continue=function(q){this.cursor.continue(q);return ryh(this.request)};
eb.prototype.delete=function(){return aR(this.cursor.delete()).then(function(){})};
eb.prototype.getValue=function(){return this.cursor.value};
eb.prototype.update=function(q){return aR(this.cursor.update(q))};var Cj=function(q,Z){this.name=q;this.options=Z;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},$$g;
Cj.prototype.openDb=function(q,Z,w){w=w===void 0?{}:w;return QZ9(q,Z,w)};
Cj.prototype.delete=function(q){q=q===void 0?{}:q;return _.Ek(this.name,q)};
$$g=function(q,Z){return new RR("INCOMPATIBLE_DB_VERSION",{dbName:q.name,oldVersion:q.options.version,newVersion:Z})};
_.xr=function(q,Z){if(!Z)throw Jm("openWithToken",jT(q.name));return q.open()};
Cj.prototype.open=function(){var q=this;if(!this.isCompatible)throw $$g(this);if(this.connectionPromise)return this.connectionPromise;var Z,w=function(){q.connectionPromise===Z&&(q.connectionPromise=void 0)},r={blocking:function(C){C.close()},
closed:w,terminated:w,upgrade:this.options.upgrade},Y=function(){var C,d,O,H,L,S,v,R,B,n;return _.V(function(x){switch(x.nextAddress){case 1:return d=(C=Error().stack)!=null?C:"",_.d9(x,2),_.W(x,q.openDb(q.name,q.options.version,r),4);case 4:for(var K=O=x.yieldResult,k=q.options,G=[],rz=_.P(Object.keys(k.objectStores)),f=rz.next();!f.done;f=rz.next()){f=f.value;var eO=k.objectStores[f],g=eO.removedAtVersion===void 0?Number.MAX_VALUE:eO.removedAtVersion;!(K.JSC$8452_wrapped.version>=eO.addedAtVersion)||
K.JSC$8452_wrapped.version>=g||K.JSC$8452_wrapped.objectStoreNames.contains(f)||G.push(f)}H=G;if(H.length===0){x.jumpTo(5);break}L=Object.keys(q.options.objectStores);S=O.objectStoreNames();if(q.timesReopenedToFixMissingObjectStore<_.m6("ytidb_reopen_db_retries",0))return q.timesReopenedToFixMissingObjectStore++,O.close(),_.LY(new RR("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:q.name,expectedObjectStores:L,foundObjectStores:S})),x.return(Y());if(!(q.timesDeletedToFixMissingObjectStore<_.m6("ytidb_remake_db_retries",
1))){x.jumpTo(6);break}q.timesDeletedToFixMissingObjectStore++;return _.W(x,q.delete(),7);case 7:return _.LY(new RR("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:q.name,expectedObjectStores:L,foundObjectStores:S})),x.return(Y());case 6:throw new Al1(S,L);case 5:return x.return(O);case 2:v=_.o3(x);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."){x.jumpTo(8);
break}return _.W(x,q.openDb(q.name,void 0,Object.assign({},r,{upgrade:void 0})),9);case 9:R=x.yieldResult;B=R.getVersion();if(q.options.version!==void 0&&B>q.options.version+1)throw R.close(),q.isCompatible=!1,$$g(q,B);return x.return(R);case 8:throw w(),v instanceof Error&&!_.b("ytidb_async_stack_killswitch")&&(v.stack=v.stack+"\n"+d.substring(d.indexOf("\n")+1)),tZ8(v,q.name,"",(n=q.options.version)!=null?n:-1);}})};
return this.connectionPromise=Z=Y()};var EO9=new Cj("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(q,Z){Z(1)&&a$(q,"databases",{keyPath:"actualName"})}});var Ik1,KST=new function(){}(new function(){});new _.Dk;var eE7=function(q,Z){Cj.call(this,q,Z);this.options=Z;vg(q)};
_.z(eE7,Cj);var A0j=function(q,Z){var w;return function(){w||(w=new eE7(q,Z));return w}};
eE7.prototype.openDb=function(q,Z,w){w=w===void 0?{}:w;return(this.options.shared?lk1:Nt8)(q,Z,Object.assign({},w))};
eE7.prototype.delete=function(q){q=q===void 0?{}:q;return(this.options.shared?m9N:G92)(this.name,q)};var C5W={},fk2=M4("ytGcfConfig",{objectStores:(C5W.coldConfigStore={addedAtVersion:1},C5W.hotConfigStore={addedAtVersion:1},C5W),shared:!1,upgrade:function(q,Z){Z(1)&&(nB(a$(q,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),nB(a$(q,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var P5X=function(){_.u6.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var q=_.Eq("yt.gcf.config.hotUpdateCallbacks");q?(this.localHotConfigJobQueue=[].concat(_.Ju(q)),this.sharedHotConfigJobQueue=q):(this.sharedHotConfigJobQueue=[],_.IR("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.z(P5X,_.u6);P5X.prototype.disposeInternal=function(){for(var q=_.P(this.localHotConfigJobQueue),Z=q.next();!Z.done;Z=q.next()){var w=this.sharedHotConfigJobQueue;Z=w.indexOf(Z.value);Z>=0&&w.splice(Z,1)}this.localHotConfigJobQueue.length=0;_.u6.prototype.disposeInternal.call(this)};var ow=function(){var q=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new P5X;this.TEST_ONLY={initializeConfigDb:function(){q.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return q.coldGlobalConfigGroup},
setHotConfigGroup:function(Z){d$v(q,Z)},
setHotHashData:function(Z){q.setHotHashData(Z)},
setColdConfigGroup:function(Z){Vsh(q,Z)},
getColdHashData:function(){return q.coldHashData},
getHotHashData:function(){return q.hotHashData},
getHotConfigGroup:function(){return q.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return Op7()},
getExportedHotConfigGroup:function(){return PB()},
getExportedColdHashData:function(){return _.Eq("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Eq("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){HpK(q)},
resetInstance:function(){q.setHotHashData(void 0);WJv(q);delete ow.instance},
setDebounceTimer:function(Z){q.debounceTimer=Z},
getDebounceTimer:function(){return q.debounceTimer}}},oQg=function(){if(!ow.instance){var q=new ow;
ow.instance=q}return ow.instance},SPm=function(q){var Z;
_.V(function(w){if(w.nextAddress==1)return _.b("start_client_gcf")||_.b("delete_gcf_config_db")?_.b("start_client_gcf")?_.W(w,_.cg(),3):w.jumpTo(2):w.return();w.nextAddress!=2&&((Z=w.yieldResult)&&_.Pg()&&!_.b("delete_gcf_config_db")?(q.isConfigDbInitialized=!0,HpK(q)):(uKK(q),LJm(q)));return _.b("delete_gcf_config_db")?_.W(w,q8T(),0):w.jumpTo(0)})},ZV2=function(){var q;
return(q=PB())!=null?q:_.zj("RAW_HOT_CONFIG_GROUP")},vQh=function(q){var Z,w,r,Y,C,d;
return _.V(function(O){switch(O.nextAddress){case 1:if(q.hotGlobalConfigGroup)return O.return(PB());if(!q.isConfigDbInitialized)return Z=Jm("getHotConfig IDB not initialized"),_.xT(Z),O.return(Promise.reject(Z));w=sk();r=_.zj("TIME_CREATED_MS");if(!w){Y=Jm("getHotConfig token error");_.xT(Y);O.jumpTo(2);break}return _.W(O,gOT(w),3);case 3:if((C=O.yieldResult)&&C.timestamp>r)return d$v(q,C.config),q.setHotHashData(C.hashData),O.return(PB());case 2:LJm(q);if(!(w&&q.hotGlobalConfigGroup&&q.hotHashData)){O.jumpTo(4);
break}return _.W(O,hWe(q.hotGlobalConfigGroup,q.hotHashData,w,r),4);case 4:return q.hotGlobalConfigGroup?O.return(PB()):(d=new _.df("Config not available in ytConfig"),_.xT(d),O.return(Promise.reject(d)))}})},tsm=function(q){var Z,w,r,Y,C,d;
return _.V(function(O){switch(O.nextAddress){case 1:if(q.coldGlobalConfigGroup)return O.return(Op7());if(!q.isConfigDbInitialized)return Z=Jm("getColdConfig IDB not initialized"),_.xT(Z),O.return(Promise.reject(Z));w=sk();r=_.zj("TIME_CREATED_MS");if(!w){Y=Jm("getColdConfig");_.xT(Y);O.jumpTo(2);break}return _.W(O,izI(w),3);case 3:if((C=O.yieldResult)&&C.timestamp>r)return Vsh(q,C.config),js1(q,C.configData),WJv(q,C.hashData),O.return(Op7());case 2:uKK(q);if(!(w&&q.coldGlobalConfigGroup&&q.coldHashData&&
q.configData)){O.jumpTo(4);break}return _.W(O,y09(q.coldGlobalConfigGroup,q.coldHashData,q.configData,w,r),4);case 4:return q.coldGlobalConfigGroup?O.return(Op7()):(d=new _.df("Config not available in ytConfig"),_.xT(d),O.return(Promise.reject(d)))}})},HpK=function(q){if(!q.hotGlobalConfigGroup||!q.coldGlobalConfigGroup){if(!sk()){var Z=Jm("scheduleGetConfigs");
_.xT(Z)}q.initJob||(q.initJob=_.v5.addLowPriorityJob(function(){return _.V(function(w){switch(w.nextAddress){case 1:return _.d9(w,2),_.W(w,vQh(q),4);case 4:_.QL(w,3);break;case 2:_.o3(w);case 3:return _.d9(w,5),_.W(w,tsm(q),7);case 7:_.QL(w,6);break;case 5:_.o3(w);case 6:q.initJob&&(q.initJob=0),_.ub(w)}})},100))}},hIN=function(q,Z,w){var r,Y,C;
return _.V(function(d){switch(d.nextAddress){case 1:if(!_.b("start_client_gcf")){d.jumpTo(0);break}w&&d$v(q,w);q.setHotHashData(Z);r=sk();if(!r){d.jumpTo(3);break}if(w){d.jumpTo(4);break}return _.W(d,gOT(r),5);case 5:Y=d.yieldResult,w=(C=Y)==null?void 0:C.config;case 4:return _.W(d,hWe(w,Z,r),3);case 3:if(w)for(var O=w,H=_.P(q.configUpdateService.sharedHotConfigJobQueue),L=H.next();!L.done;L=H.next())L=L.value,L(O);_.ub(d)}})},y72=function(q,Z,w){var r,Y,C,d;
return _.V(function(O){if(O.nextAddress==1){if(!_.b("start_client_gcf"))return O.jumpTo(0);WJv(q,Z);return(r=sk())?w?O.jumpTo(4):_.W(O,izI(r),5):O.jumpTo(0)}O.nextAddress!=4&&(Y=O.yieldResult,w=(C=Y)==null?void 0:C.config);if(!w)return O.jumpTo(0);d=w.configData;return _.W(O,y09(w,Z,d,r),0)})},vzN=function(){var q=oQg(),Z=(0,_.lp)()-q.debounceTimer;
if(!(q.debounceTimer!==0&&Z<_.m6("send_config_hash_timer"))){Z=_.Eq("yt.gcf.config.coldConfigData");var w=_.Eq("yt.gcf.config.hotHashData"),r=_.Eq("yt.gcf.config.coldHashData");Z&&w&&r&&(q.debounceTimer=(0,_.lp)());return{coldConfigData:Z,hotHashData:w,coldHashData:r}}},uKK=function(q){Vsh(q,_.zj("RAW_COLD_CONFIG_GROUP"));
WJv(q,_.zj("SERIALIZED_COLD_HASH_DATA"));var Z;js1(q,(Z=q.coldGlobalConfigGroup)==null?void 0:Z.configData)},LJm=function(q){d$v(q,_.zj("RAW_HOT_CONFIG_GROUP"));
q.setHotHashData(_.zj("SERIALIZED_HOT_HASH_DATA"))},d$v=function(q,Z){q.hotGlobalConfigGroup=Z;
_.IR("yt.gcf.config.hotConfigGroup",q.hotGlobalConfigGroup||null)},Vsh=function(q,Z){q.coldGlobalConfigGroup=Z;
_.IR("yt.gcf.config.coldConfigGroup",q.coldGlobalConfigGroup||null)};
ow.prototype.setHotHashData=function(q){this.hotHashData=q;_.IR("yt.gcf.config.hotHashData",this.hotHashData||null)};
var WJv=function(q,Z){q.coldHashData=Z;_.IR("yt.gcf.config.coldHashData",q.coldHashData||null)},js1=function(q,Z){q.configData=Z;
_.IR("yt.gcf.config.coldConfigData",q.configData||null)},PB=function(){return _.Eq("yt.gcf.config.hotConfigGroup")},Op7=function(){return _.Eq("yt.gcf.config.coldConfigGroup")};var gf={},REK=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";gf.assign=function(q){for(var Z=Array.prototype.slice.call(arguments,1);Z.length;){var w=Z.shift();if(w){if(typeof w!=="object")throw new TypeError("Wc`"+w);for(var r in w)Object.prototype.hasOwnProperty.call(w,r)&&(q[r]=w[r])}}return q};
gf.shrinkBuf=function(q,Z){if(q.length===Z)return q;if(q.subarray)return q.subarray(0,Z);q.length=Z;return q};
var bpm={arraySet:function(q,Z,w,r,Y){if(Z.subarray&&q.subarray)q.set(Z.subarray(w,w+r),Y);else for(var C=0;C<r;C++)q[Y+C]=Z[w+C]},
flattenChunks:function(q){var Z,w;var r=w=0;for(Z=q.length;r<Z;r++)w+=q[r].length;var Y=new Uint8Array(w);r=w=0;for(Z=q.length;r<Z;r++){var C=q[r];Y.set(C,w);w+=C.length}return Y}},Jy7={arraySet:function(q,Z,w,r,Y){for(var C=0;C<r;C++)q[Y+C]=Z[w+C]},
flattenChunks:function(q){return[].concat.apply([],q)}};
gf.setTyped=function(){REK?(gf.Buf8=Uint8Array,gf.Buf16=Uint16Array,gf.Buf32=Int32Array,gf.assign(gf,bpm)):(gf.Buf8=Array,gf.Buf16=Array,gf.Buf32=Array,gf.assign(gf,Jy7))};
gf.setTyped();var zEJ=!0;try{new Uint8Array(1)}catch(q){zEJ=!1}
var gz8=function(q){var Z,w,r=q.length,Y=0;for(Z=0;Z<r;Z++){var C=q.charCodeAt(Z);if((C&64512)===55296&&Z+1<r){var d=q.charCodeAt(Z+1);(d&64512)===56320&&(C=65536+(C-55296<<10)+(d-56320),Z++)}Y+=C<128?1:C<2048?2:C<65536?3:4}var O=new gf.Buf8(Y);for(Z=w=0;w<Y;Z++)C=q.charCodeAt(Z),(C&64512)===55296&&Z+1<r&&(d=q.charCodeAt(Z+1),(d&64512)===56320&&(C=65536+(C-55296<<10)+(d-56320),Z++)),C<128?O[w++]=C:(C<2048?O[w++]=192|C>>>6:(C<65536?O[w++]=224|C>>>12:(O[w++]=240|C>>>18,O[w++]=128|C>>>12&63),O[w++]=
128|C>>>6&63),O[w++]=128|C&63);return O};var F26={};F26=function(q,Z,w,r){var Y=q&65535|0;q=q>>>16&65535|0;for(var C;w!==0;){C=w>2E3?2E3:w;w-=C;do Y=Y+Z[r++]|0,q=q+Y|0;while(--C);Y%=65521;q%=65521}return Y|q<<16|0};for(var H5={},d2,B0D=[],ajm=0;ajm<256;ajm++){d2=ajm;for(var nQp=0;nQp<8;nQp++)d2=d2&1?3988292384^d2>>>1:d2>>>1;B0D[ajm]=d2}H5=function(q,Z,w,r){w=r+w;for(q^=-1;r<w;r++)q=q>>>8^B0D[(q^Z[r])&255];return q^-1};var rI={};rI={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 QJ2=[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],xZj=[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],io8=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],cr9=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],CB=Array(576);DL(CB);var P5=Array(60);DL(P5);var Z$=Array(512);DL(Z$);var qN=Array(256);DL(qN);var Ez2=Array(29);DL(Ez2);var T39=Array(30);DL(T39);var DZT,hy2,yr9,f5N=!1;var LB;
LB=[new uh(0,0,0,0,function(q,Z){var w=65535;for(w>q.pending_buf_size-5&&(w=q.pending_buf_size-5);;){if(q.lookahead<=1){W5(q);if(q.lookahead===0&&Z===0)return 1;if(q.lookahead===0)break}q.strstart+=q.lookahead;q.lookahead=0;var r=q.block_start+w;if(q.strstart===0||q.strstart>=r)if(q.lookahead=q.strstart-r,q.strstart=r,dI(q,!1),q.strm.avail_out===0)return 1;if(q.strstart-q.block_start>=q.w_size-262&&(dI(q,!1),q.strm.avail_out===0))return 1}q.insert=0;if(Z===4)return dI(q,!0),q.strm.avail_out===0?3:
4;q.strstart>q.block_start&&dI(q,!1);return 1}),
new uh(4,4,8,4,N3T),new uh(4,5,16,8,N3T),new uh(4,6,32,32,N3T),new uh(4,4,16,16,o$),new uh(8,16,32,32,o$),new uh(8,16,128,128,o$),new uh(8,32,128,256,o$),new uh(32,128,258,1024,o$),new uh(32,258,258,4096,o$)];var Are={};Are=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 qDI=Object.prototype.toString;
mZe.prototype.push=function(q,Z){var w=this.strm,r=this.options.chunkSize;if(this.ended)return!1;var Y=Z===~~Z?Z:Z===!0?4:0;typeof q==="string"?w.input=gz8(q):qDI.call(q)==="[object ArrayBuffer]"?w.input=new Uint8Array(q):w.input=q;w.next_in=0;w.avail_in=w.input.length;do{w.avail_out===0&&(w.output=new gf.Buf8(r),w.next_out=0,w.avail_out=r);q=XP2(w,Y);if(q!==1&&q!==0)return Qsv(this,q),this.ended=!0,!1;if(w.avail_out===0||w.avail_in===0&&(Y===4||Y===2))if(this.options.to==="string"){var C=gf.shrinkBuf(w.output,
w.next_out);Z=C;C=C.length;if(C<65537&&(Z.subarray&&zEJ||!Z.subarray))Z=String.fromCharCode.apply(null,gf.shrinkBuf(Z,C));else{for(var d="",O=0;O<C;O++)d+=String.fromCharCode(Z[O]);Z=d}this.chunks.push(Z)}else Z=gf.shrinkBuf(w.output,w.next_out),this.chunks.push(Z)}while((w.avail_in>0||w.avail_out===0)&&q!==1);if(Y===4)return(w=this.strm)&&w.state?(r=w.state.status,r!==42&&r!==69&&r!==73&&r!==91&&r!==103&&r!==113&&r!==666?q=YY(w,-2):(w.state=null,q=r===113?YY(w,-3):0)):q=-2,Qsv(this,q),this.ended=
!0,q===0;Y===2&&(Qsv(this,0),w.avail_out=0);return!0};
var Qsv=function(q,Z){Z===0&&(q.result=q.options.to==="string"?q.chunks.join(""):gf.flattenChunks(q.chunks));q.chunks=[];q.err=Z;q.msg=q.strm.msg};var EQm=typeof TextEncoder!=="undefined"?new TextEncoder:null,El2=EQm?function(q){return EQm.encode(q)}:function(q){q=_.o1(q);
for(var Z=new Uint8Array(q.length),w=0;w<Z.length;w++)Z[w]=q[w];return Z};var r41={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},$I8={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var VA=function(q,Z){this.version=q;this.args=Z};
VA.prototype.serialize=function(){return{version:this.version,args:this.args}};var $Te=function(q,Z){this.topic=q;this.dataClass=Z};
$Te.prototype.toString=function(){return this.topic};var x$1=_.Eq("ytPubsub2Pubsub2Instance")||new _.wf;_.wf.prototype.subscribe=_.wf.prototype.subscribe;_.wf.prototype.unsubscribeByKey=_.wf.prototype.unsubscribeByKey;_.wf.prototype.publish=_.wf.prototype.publish;_.wf.prototype.clear=_.wf.prototype.clear;_.IR("ytPubsub2Pubsub2Instance",x$1);var YD6=_.Eq("ytPubsub2Pubsub2SubscribedKeys")||{};_.IR("ytPubsub2Pubsub2SubscribedKeys",YD6);var Cy6=_.Eq("ytPubsub2Pubsub2TopicToKeys")||{};_.IR("ytPubsub2Pubsub2TopicToKeys",Cy6);
var esj=_.Eq("ytPubsub2Pubsub2IsAsync")||{};_.IR("ytPubsub2Pubsub2IsAsync",esj);_.IR("ytPubsub2Pubsub2SkipSubKey",null);var SDI=void 0,ulT=void 0;var BxO=_.m6("max_body_size_to_compress",5E5),aN6=_.m6("min_body_size_to_compress",500),R$=!0,UT2=0,bh=0,TxX=_.m6("compression_performance_threshold_lr",250),kpj=_.m6("slow_compressions_before_abandon_count",4),tH9=!1,RsN=new Map,QAO=1,nlT=!0;_.yU(J9,INI);J9.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 T02=function(q,Z,w){w||(w=0);var r=q.W_;if(typeof Z==="string")for(var Y=0;Y<16;Y++)r[Y]=Z.charCodeAt(w)<<24|Z.charCodeAt(w+1)<<16|Z.charCodeAt(w+2)<<8|Z.charCodeAt(w+3),w+=4;else for(Y=0;Y<16;Y++)r[Y]=Z[w]<<24|Z[w+1]<<16|Z[w+2]<<8|Z[w+3],w+=4;for(Z=16;Z<80;Z++)w=r[Z-3]^r[Z-8]^r[Z-14]^r[Z-16],r[Z]=(w<<1|w>>>31)&4294967295;Z=q.chain_[0];w=q.chain_[1];Y=q.chain_[2];for(var C=q.chain_[3],d=q.chain_[4],O,H,L=0;L<80;L++)L<40?L<20?(O=C^w&(Y^C),H=1518500249):(O=w^Y^C,H=1859775393):L<60?(O=w&Y|C&(w|Y),
H=2400959708):(O=w^Y^C,H=3395469782),O=(Z<<5|Z>>>27)+O+d+H+r[L]&4294967295,d=C,C=Y,Y=(w<<30|w>>>2)&4294967295,w=Z,Z=O;q.chain_[0]=q.chain_[0]+Z&4294967295;q.chain_[1]=q.chain_[1]+w&4294967295;q.chain_[2]=q.chain_[2]+Y&4294967295;q.chain_[3]=q.chain_[3]+C&4294967295;q.chain_[4]=q.chain_[4]+d&4294967295};
J9.prototype.update=function(q,Z){if(q!=null){Z===void 0&&(Z=q.length);for(var w=Z-this.blockSize,r=0,Y=this.buf_,C=this.inbuf_;r<Z;){if(C==0)for(;r<=w;)T02(this,q,r),r+=this.blockSize;if(typeof q==="string")for(;r<Z;){if(Y[C]=q.charCodeAt(r),++C,++r,C==this.blockSize){T02(this,Y);C=0;break}}else for(;r<Z;)if(Y[C]=q[r],++C,++r,C==this.blockSize){T02(this,Y);C=0;break}}this.inbuf_=C;this.total_+=Z}};
J9.prototype.digest=function(){var q=[],Z=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var w=this.blockSize-1;w>=56;w--)this.buf_[w]=Z&255,Z/=256;T02(this,this.buf_);for(w=Z=0;w<5;w++)for(var r=24;r>=0;r-=8)q[Z]=this.chain_[w]>>r&255,++Z;return q};var Fy9;var HB=function(q){var Z=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(S){Z.databaseToken=S},
triggerThrottle:function(){Z.throttledSend()},
cancelThrottle:function(){Z.cancelThrottledSend()},
immediateSend:function(S){return _.V(function(v){return _.W(v,Z.immediateSend(S),0)})},
requestWithinAgeLimit:function(S,v){return Z.requestWithinAgeLimit(S,v)},
retryQueuedRequests:function(){Z.retryQueuedRequests()}};
var w;this.throttleTimeout=(w=q.throttleTimeout)!=null?w:100;var r;this.retryMaxAttempts=(r=q.retryMaxAttempts)!=null?r:1;var Y;this.requestAgeLimitMs=(Y=q.requestAgeLimitMs)!=null?Y:2592E6;var C;this.queuedRequestAgeLimitMs=(C=q.queuedRequestAgeLimitMs)!=null?C:12E4;var d;this.retryDelayMs=(d=q.retryDelayMs)!=null?d:5E3;var O;this.databaseToken=(O=q.databaseToken)!=null?O:void 0;this.enableCleaning=!!q.enableCleaning;var H;this.cleaningRate=(H=q.cleaningRate)!=null?H:.1;var L;this.potentialEsfErrorLimit=
(L=q.potentialEsfErrorLimit)!=null?L:10;q.handleError&&(this.handleError=q.handleError);q.handleWarning&&(this.handleWarning=q.handleWarning);q.disableYtIdbTransactions&&(this.disableYtIdbTransactions=q.disableYtIdbTransactions);q.bypassDbTokenDependency&&(this.bypassDbTokenDependency=q.bypassDbTokenDependency);this.getBooleanFlag=q.getBooleanFlag;this.jobManager=q.jobManager;this.logsStore=q.logsStore;this.networkManager=q.networkManager;this.sendFn=q.sendFn;this.onlineEvent=q.onlineEvent;this.offlineEvent=
q.offlineEvent;Oi(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&U$2(this)},U$2=function(q){Oi(q)&&!q.disableYtIdbTransactions&&(q.initialized=!0,q.enableCleaning&&Math.random()<=q.cleaningRate&&q.logsStore.cleanLogsStore(q.databaseToken),q.retryQueuedRequests(),q.networkManager.isNetworkAvailable()&&q.throttledSend(),q.networkManager.listen(q.onlineEvent,q.throttledSend.bind(q)),q.networkManager.listen(q.offlineEvent,q.cancelThrottledSend.bind(q)))};
_.e=HB.prototype;_.e.writeThenSend=function(q,Z){var w=this;Z=Z===void 0?{}:Z;if(Oi(this)&&this.initialized){var r={url:q,options:Z,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(r,this.databaseToken).then(function(Y){r.id=Y;w.networkManager.isNetworkAvailable()&&w.immediateSend(r)}).catch(function(Y){w.immediateSend(r);
kX1(w,Y)})}else this.sendFn(q,Z)};
_.e.sendThenWrite=function(q,Z,w){var r=this;Z=Z===void 0?{}:Z;if(Oi(this)&&this.initialized){var Y={url:q,options:Z,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(Y.skipRetry=w);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!Y.skipRetry){if(!Y.skipRetry){var C=Z.onError?Z.onError:function(){};
Z.onError=function(d,O){return _.V(function(H){if(H.nextAddress==1)return _.W(H,r.logsStore.set(Y,r.databaseToken).catch(function(L){kX1(r,L)}),2);
C(d,O);_.ub(H)})}}this.sendFn(q,Z,Y.skipRetry)}else this.logsStore.set(Y,this.databaseToken).catch(function(d){r.sendFn(q,Z,Y.skipRetry);
kX1(r,d)})}else this.sendFn(q,Z,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&w)};
_.e.sendAndWrite=function(q,Z){var w=this;Z=Z===void 0?{}:Z;if(Oi(this)&&this.initialized){var r={url:q,options:Z,timestamp:this.now(),status:"NEW",sendCount:0},Y=!1,C=Z.onSuccess?Z.onSuccess:function(){};
r.options.onSuccess=function(d,O){r.id!==void 0?w.logsStore.deleteRequest(r.id,w.databaseToken):Y=!0;w.networkManager.networkStatusHint&&w.getBooleanFlag&&w.getBooleanFlag("vss_network_hint")&&w.networkManager.networkStatusHint(!0);C(d,O)};
this.sendFn(r.url,r.options,void 0,!0);this.logsStore.set(r,this.databaseToken).then(function(d){r.id=d;Y&&w.logsStore.deleteRequest(r.id,w.databaseToken)}).catch(function(d){kX1(w,d)})}else this.sendFn(q,Z,void 0,!0)};
_.e.throttledSend=function(){var q=this;if(!Oi(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var Z;return _.V(function(w){if(w.nextAddress==1)return _.W(w,q.logsStore.getMostRecentByStatus("NEW",q.databaseToken),2);if(w.nextAddress!=3)return Z=w.yieldResult,Z?_.W(w,q.immediateSend(Z),3):(q.cancelThrottledSend(),w.return());q.intervalJob&&(q.intervalJob=0,q.throttledSend());_.ub(w)})},this.throttleTimeout))};
_.e.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.e.immediateSend=function(q){var Z=this,w;return _.V(function(r){switch(r.nextAddress){case 1:if(!Oi(Z))throw Error("$c");if(q.id===void 0){r.jumpTo(2);break}return _.W(r,Z.logsStore.markAsQueued(q.id,Z.databaseToken),3);case 3:(w=r.yieldResult)||Z.handleWarning(Error("ad"));case 2:if(Z.requestWithinAgeLimit(q,Z.requestAgeLimitMs)){r.jumpTo(4);break}Z.handleWarning(Error("bd"));if(q.id===void 0){r.jumpTo(5);break}return _.W(r,Z.logsStore.deleteRequest(q.id,Z.databaseToken),5);case 5:return r.return();
case 4:q.skipRetry||(q=KJX(Z,q));if(!q){r.jumpTo(0);break}if(!q.skipRetry||q.id===void 0){r.jumpTo(8);break}return _.W(r,Z.logsStore.deleteRequest(q.id,Z.databaseToken),8);case 8:Z.sendFn(q.url,q.options,!!q.skipRetry),_.ub(r)}})};
var KJX=function(q,Z){if(!Oi(q))throw Error("cd");var w=Z.options.onError?Z.options.onError:function(){};
Z.options.onError=function(Y,C){var d,O,H,L;return _.V(function(S){switch(S.nextAddress){case 1:d=Xp9(C);(O=mTT(C))&&q.getBooleanFlag&&q.getBooleanFlag("web_enable_error_204")&&q.handleError(Error("dd"),Z.url,C);if(!(q.getBooleanFlag&&q.getBooleanFlag("nwl_consider_error_code")&&d||q.getBooleanFlag&&!q.getBooleanFlag("nwl_consider_error_code")&&q.potentialEsfErrorCounter<=q.potentialEsfErrorLimit)){S.jumpTo(2);break}if(!q.networkManager.sendNetworkCheckRequest){S.jumpTo(3);break}return _.W(S,q.networkManager.sendNetworkCheckRequest(),
3);case 3:if(q.networkManager.isNetworkAvailable()){S.jumpTo(2);break}w(Y,C);if(!q.getBooleanFlag||!q.getBooleanFlag("nwl_consider_error_code")||((H=Z)==null?void 0:H.id)===void 0){S.jumpTo(6);break}return _.W(S,q.logsStore.resetRequest(Z.id,q.databaseToken,!1),6);case 6:return S.return();case 2:if(q.getBooleanFlag&&q.getBooleanFlag("nwl_consider_error_code")&&!d&&q.potentialEsfErrorCounter>q.potentialEsfErrorLimit)return S.return();q.potentialEsfErrorCounter++;if(((L=Z)==null?void 0:L.id)===void 0){S.jumpTo(8);
break}return Z.sendCount<q.retryMaxAttempts?_.W(S,q.logsStore.resetRequest(Z.id,q.databaseToken,!0,O?!1:void 0),12):_.W(S,q.logsStore.deleteRequest(Z.id,q.databaseToken),8);case 12:q.jobManager.addLowPriorityJob(function(){q.networkManager.isNetworkAvailable()&&q.throttledSend()},q.retryDelayMs);
case 8:w(Y,C),_.ub(S)}})};
var r=Z.options.onSuccess?Z.options.onSuccess:function(){};
Z.options.onSuccess=function(Y,C){var d;return _.V(function(O){if(O.nextAddress==1)return((d=Z)==null?void 0:d.id)===void 0?O.jumpTo(2):_.W(O,q.logsStore.deleteRequest(Z.id,q.databaseToken),2);q.networkManager.networkStatusHint&&q.getBooleanFlag&&q.getBooleanFlag("vss_network_hint")&&q.networkManager.networkStatusHint(!0);r(Y,C);_.ub(O)})};
return Z};
HB.prototype.requestWithinAgeLimit=function(q,Z){q=q.timestamp;return this.now()-q>=Z?!1:!0};
HB.prototype.retryQueuedRequests=function(){var q=this;if(!Oi(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(Z){Z&&!q.requestWithinAgeLimit(Z,q.queuedRequestAgeLimitMs)?q.jobManager.addLowPriorityJob(function(){return _.V(function(w){if(w.nextAddress==1)return Z.id===void 0?w.jumpTo(2):_.W(w,q.logsStore.resetRequest(Z.id,q.databaseToken),2);q.retryQueuedRequests();_.ub(w)})}):q.networkManager.isNetworkAvailable()&&q.throttledSend()})};
var kX1=function(q,Z){q.writeError&&!q.networkManager.isNetworkAvailable()?q.writeError(Z):q.handleError(Z)},Oi=function(q){return!!q.databaseToken||q.bypassDbTokenDependency};var AJ2;var qM8={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517};var ssh={},rEI=M4("ServiceWorkerLogsDatabase",{objectStores:(ssh.SWHealthLog={addedAtVersion:1},ssh),shared:!0,upgrade:function(q,Z){Z(1)&&nB(a$(q,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var OnX={},VpT=0;var uAX;var WB=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},UG=function(){if(!WB.instance){var q=_.Eq("yt.networkRequestMonitor.instance")||new WB;
_.IR("yt.networkRequestMonitor.instance",q);WB.instance=q}return WB.instance};
WB.prototype.requestComplete=function(q,Z){Z&&(this.anyRequestHasSucceeded=!0);q=this.removeParams(q);this.requestMap.get(q)||this.requestMap.set(q,Z)};
WB.prototype.isEndpointCFR=function(q){q=this.removeParams(q);return(q=this.requestMap.get(q))?!1:q===!1&&this.anyRequestHasSucceeded?!0:null};
WB.prototype.removeParams=function(q){return q.split("?")[0]};
WB.prototype.removeParams=WB.prototype.removeParams;WB.prototype.isEndpointCFR=WB.prototype.isEndpointCFR;WB.prototype.requestComplete=WB.prototype.requestComplete;WB.getInstance=UG;var o7=function(q){_.V8.call(this);var Z=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=q!=null?q:{addLowPriorityJob:function(Y,C){return setTimeout(Y,C)},
cancelJob:function(Y){clearTimeout(Y)}};
var w,r;this.isOnline=(r=(w=window.navigator)==null?void 0:w.onLine)!=null?r:!0;this.onNavigatorChange=function(){return _.V(function(Y){return _.W(Y,IjK(Z),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||cy1(this)};
_.z(o7,_.V8);o7.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete o7.instance};
o7.prototype.isNetworkAvailable=function(){return this.isOnline};
var cy1=function(q){q.pollingJob=q.jobManager.addLowPriorityJob(function(){var Z;return _.V(function(w){if(w.nextAddress==1)return q.isOnline?((Z=window.navigator)==null?0:Z.onLine)?w.jumpTo(3):_.W(w,IjK(q),3):_.W(w,IjK(q),3);cy1(q);_.ub(w)})},3E4)},IjK=function(q,Z){return q.networkRequestPromise?q.networkRequestPromise:q.networkRequestPromise=new Promise(function(w){var r,Y,C,d;
return _.V(function(O){switch(O.nextAddress){case 1:return r=window.AbortController?new window.AbortController:void 0,C=(Y=r)==null?void 0:Y.signal,d=!1,_.d9(O,2,3),r&&(q.abortTimeoutKey=q.jobManager.addLowPriorityJob(function(){r.abort()},Z||2E4)),_.W(O,fetch("/generate_204",{method:"HEAD",
signal:C}),5);case 5:d=!0;case 3:_.V2(O);q.networkRequestPromise=void 0;q.abortTimeoutKey&&(q.jobManager.cancelJob(q.abortTimeoutKey),q.abortTimeoutKey=0);d!==q.isOnline&&(q.isOnline=d,q.isOnline?q.dispatchEvent("networkstatus-online"):q.dispatchEvent("networkstatus-offline"));w(d);_.Wq(O,0);break;case 2:_.o3(O),d=!1,O.jumpTo(3)}})})};var ua=function(){_.V8.call(this);var q=this;this.shouldFlushErrors=!1;o7.instance||(o7.instance=new o7(_.v5));this.sharedNetworkStatusManager=o7.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(q.shouldFlushErrors&&_.b("offline_error_handling")){var Z=LqT().get("errors",!0);if(Z){for(var w in Z)if(Z[w]){var r=new _.df(w,"sent via offline_errors");r.name=Z[w].name;r.stack=Z[w].stack;r.level=Z[w].level;_.ns(r)}LqT().set("errors",{},2592E3,!0)}}})};
_.z(ua,_.V8);var Msh=function(){if(!ua.instance){var q=_.Eq("yt.networkStatusManager.instance")||new ua;_.IR("yt.networkStatusManager.instance",q);ua.instance=q}return ua.instance};
_.e=ua.prototype;_.e.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.e.networkStatusHint=function(q){this.sharedNetworkStatusManager.isOnline=q};
_.e.getWindowStatus=function(){var q=window.navigator.onLine;return q===void 0?!0:q};
_.e.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.e.listen=function(q,Z){return this.sharedNetworkStatusManager.listen(q,Z)};
_.e.sendNetworkCheckRequest=function(q){q=IjK(this.sharedNetworkStatusManager,q);q.then(function(Z){_.b("use_cfr_monitor")&&UG().requestComplete("generate_204",Z)});
return q};
ua.prototype.sendNetworkCheckRequest=ua.prototype.sendNetworkCheckRequest;ua.prototype.listen=ua.prototype.listen;ua.prototype.enableErrorFlushing=ua.prototype.enableErrorFlushing;ua.prototype.getWindowStatus=ua.prototype.getWindowStatus;ua.prototype.networkStatusHint=ua.prototype.networkStatusHint;ua.prototype.isNetworkAvailable=ua.prototype.isNetworkAvailable;ua.getInstance=Msh;_.To=function(q){q=q===void 0?{}:q;_.V8.call(this);var Z=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=Msh();var w=_.Eq("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);w&&(q.rateLimit?(this.rateLimit=q.rateLimit,w("networkstatus-online",function(){FJp(Z,"publicytnetworkstatus-online")}),w("networkstatus-offline",function(){FJp(Z,"publicytnetworkstatus-offline")})):(w("networkstatus-online",function(){Z.dispatchEvent("publicytnetworkstatus-online")}),w("networkstatus-offline",
function(){Z.dispatchEvent("publicytnetworkstatus-offline")})))};
_.z(_.To,_.V8);_.To.prototype.isNetworkAvailable=function(){var q=_.Eq("yt.networkStatusManager.instance.isNetworkAvailable");return q?q.bind(this.nsmInstance)():!0};
_.To.prototype.networkStatusHint=function(q){var Z=_.Eq("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);Z&&Z(q)};
_.To.prototype.sendNetworkCheckRequest=function(q){var Z=this,w;return _.V(function(r){w=_.Eq("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(Z.nsmInstance);return _.b("skip_network_check_if_cfr")&&UG().isEndpointCFR("generate_204")?r.return(new Promise(function(Y){var C;Z.networkStatusHint(((C=window.navigator)==null?void 0:C.onLine)||!0);Y(Z.isNetworkAvailable())})):w?r.return(w(q)):r.return(!0)})};
var FJp=function(q,Z){q.rateLimit?q.lastJobTime?(_.v5.cancelJob(q.schedulerJob),q.schedulerJob=_.v5.addLowPriorityJob(function(){q.lastPublicSignalSent!==Z&&(q.dispatchEvent(Z),q.lastPublicSignalSent=Z,q.lastJobTime=(0,_.lp)())},q.rateLimit-((0,_.lp)()-q.lastJobTime))):(q.dispatchEvent(Z),q.lastPublicSignalSent=Z,q.lastJobTime=(0,_.lp)()):q.dispatchEvent(Z)};var RK2,Lj=function(){HB.call(this,{logsStore:{cleanLogsStore:Znj,deleteRequest:qL2,getMostRecentByStatus:yJI,markAsQueued:i59,resetRequest:gl9,set:hs2},networkManager:_.bn1(),handleError:function(q,Z,w){var r,Y=w==null?void 0:(r=w.error)==null?void 0:r.code;if(Y===400||Y===415){var C;q=new _.df(q.message,Z,w==null?void 0:(C=w.error)==null?void 0:C.code);_.xT(q,void 0,void 0,void 0,!0)}else _.ns(q)},
handleWarning:_.xT,sendFn:jQe,now:_.lp,writeError:SLj,jobManager:_.R0(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.m6("potential_esf_error_limit",10),getBooleanFlag:_.b,disableYtIdbTransactions:!(_.Pg()&&_.JEe())});this.initializationPromise=new _.Dk;_.b("networkless_immediately_drop_all_requests")&&wJN();m9N("LogsDatabaseV2")};
_.z(Lj,HB);_.lj7=function(){var q=_.Eq("yt.networklessRequestController.instance");q||(q=new Lj,_.IR("yt.networklessRequestController.instance",q),_.b("networkless_logging")&&_.cg().then(function(Z){q.databaseToken=Z;U$2(q);q.initializationPromise.resolve();q.enableCleaning&&Math.random()<=q.cleaningRate&&q.databaseToken&&$x9(q.databaseToken);_.b("networkless_immediately_drop_sw_health_store")&&N0v(q)}));
return q};
Lj.prototype.writeThenSend=function(q,Z){Z||(Z={});Z=tpe(q,Z);_.Pg()||(this.initialized=!1);HB.prototype.writeThenSend.call(this,q,Z)};
Lj.prototype.sendThenWrite=function(q,Z,w){Z||(Z={});Z=tpe(q,Z);_.Pg()||(this.initialized=!1);HB.prototype.sendThenWrite.call(this,q,Z,w)};
Lj.prototype.sendAndWrite=function(q,Z){Z||(Z={});Z=tpe(q,Z);_.Pg()||(this.initialized=!1);HB.prototype.sendAndWrite.call(this,q,Z)};
Lj.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var N0v=function(q){var Z;_.V(function(w){if(!q.databaseToken)throw Z=Jm("clearSWHealthLogsDb"),Z;return w.return(eK8(q.databaseToken).catch(function(r){q.handleError(r)}))})};_.Baj=!1;_.zKe=_.$1.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.Baj};_.IR("ytNetworklessLoggingInitializationOptions",_.zKe);var SX=function(q){var Z=this;this.config_=null;q?this.config_=q:Zo9()&&(this.config_=_.pY());_.WO(_.v5,function(){ppI(Z)},5E3)};
SX.prototype.isReady=function(){!this.config_&&Zo9()&&(this.config_=_.pY());return!!this.config_};
var Gpe=function(q,Z,w,r){!_.zj("VISITOR_DATA")&&Z!=="visitor_id"&&Math.random()<.01&&_.xT(new _.df("Missing VISITOR_DATA when sending innertube request.",Z,w,r));if(!q.isReady()){var Y=new _.df("innertube xhrclient not ready",Z,w,r);_.ns(Y);throw Y;}var C={headers:r.headers||{},method:"POST",postParams:w,postBody:r.postBody,postBodyFormat:r.postBodyFormat||"JSON",onTimeout:function(){r.onTimeout()},
onFetchTimeout:r.onTimeout,onSuccess:function(v,R){if(r.onSuccess)r.onSuccess(R)},
onFetchSuccess:function(v){if(r.onSuccess)r.onSuccess(v)},
onError:function(v,R){if(r.onError)r.onError(R)},
onFetchError:function(v){if(r.onError)r.onError(v)},
timeout:r.timeout,withCredentials:!0,compress:r.compress};C.headers["Content-Type"]||(C.headers["Content-Type"]="application/json");var d="";(Y=q.config_.innertubeHostOverride)&&(d=Y);var O=q.config_.innertubeUseThirdPartyAuth||!1,H=_.S8j(O,d,r);Object.assign(C.headers,H);C.headers.Authorization&&!d&&O&&(C.headers["x-origin"]=window.location.origin);var L=_.sq(d+("/youtubei/"+q.config_.innertubeApiVersion+"/"+Z),{alt:"json"}),S=function(v){v=v===void 0?!1:v;var R;if(r.retry&&d!="www.youtube-nocookie.com"&&
(v||_.b("skip_ls_gel_retry")||C.headers["Content-Type"]!=="application/json"||(R=NxN(Z,w,H,O)),R)){var B=C.onSuccess,n=C.onFetchSuccess;C.onSuccess=function(k,G){lNN(R);B(k,G)};
w.onFetchSuccess=function(k,G){lNN(R);n(k,G)}}try{if(v&&r.retry&&!r.networklessOptions.bypassNetworkless)C.method="POST",r.networklessOptions.writeThenSend?_.lj7().writeThenSend(L,C):_.lj7().sendAndWrite(L,C);
else if(r.compress){var x=!r.networklessOptions.writeThenSend;if(C.postBody){var K=C.postBody;typeof K!=="string"&&(K=JSON.stringify(C.postBody));xTz(L,K,C,_.q4,x)}else xTz(L,JSON.stringify(C.postParams),C,cT1,x)}else _.b("web_all_payloads_via_jspb")?_.q4(L,C):cT1(L,C)}catch(k){if(k.name==="InvalidAccessError")R&&(lNN(R),R=0),_.xT(Error("fd"));else throw k;}R&&_.WO(_.v5,function(){ppI(q)},5E3)};
_.afX()?c0e().then(function(v){S(v)}):S(!1)};var UBe=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(UBe,_.XD);UBe.prototype.getIndex=function(){return tz(this,2)};
UBe.prototype.setIndex=function(q){return _.OU(this,2,q)};var GX2=0,QQ2=_.YZ?"webkit":_.rS?"moz":_.wS?"ms":BCT?"o":"";_.IR("ytDomDomGetNextId",_.Eq("ytDomDomGetNextId")||function(){return++GX2});var pk7={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},MN=function(q){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(q=
q||window.event){this.event=q;for(var Z in q)Z in pk7||(this[Z]=q[Z]);this.scale=q.scale;this.rotation=q.rotation;var w=q.target||q.srcElement;w&&w.nodeType==3&&(w=w.parentNode);this.target=w;var r=q.relatedTarget;if(r)try{r=r.nodeName?r:null}catch(Y){r=null}else this.type=="mouseover"?r=q.fromElement:this.type=="mouseout"&&(r=q.toElement);this.relatedTarget=r;this.clientX=q.clientX!=void 0?q.clientX:q.pageX;this.clientY=q.clientY!=void 0?q.clientY:q.pageY;this.keyCode=q.keyCode?q.keyCode:q.which;
this.charCode=q.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=q.altKey;this.ctrlKey=q.ctrlKey;this.shiftKey=q.shiftKey;this.metaKey=q.metaKey;this.pageX_=q.pageX;this.pageY_=q.pageY}}catch(Y){}},XkJ=function(q){if(document.body&&document.documentElement){var Z=document.body.scrollTop+document.documentElement.scrollTop;
q.pageX_=q.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);q.pageY_=q.clientY+Z}};
MN.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
MN.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
MN.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var c5=_.$1.ytEventsEventsListeners||{};_.IR("ytEventsEventsListeners",c5);var Kqz=_.$1.ytEventsEventsCounter||{count:0};_.IR("ytEventsEventsCounter",Kqz);var sQ8=_.dM(function(){var q=!1;try{var Z=Object.defineProperty({},"capture",{get:function(){q=!0}});
window.addEventListener("test",null,Z)}catch(w){}return q});_.yU(NN,_.u6);NN.prototype.onMouseMove_=function(q){q.pageX_===void 0&&XkJ(q);var Z=q.pageX_;q.pageY_===void 0&&XkJ(q);this.position_=new _.B3(Z,q.pageY_)};
NN.prototype.checkPosition_=function(){if(this.position_){var q=(0,_.lp)();if(this.previousTime_!=0){var Z=this.previousPosition_,w=this.position_,r=Z.x-w.x;Z=Z.y-w.y;r=Math.sqrt(r*r+Z*Z)/(q-this.previousTime_);this.cycles_[this.index_]=Math.abs((r-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(w=Z=0;w<4;w++)Z+=this.cycles_[w]||0;Z>=3&&this.callback_();this.previousVelocity_=r}this.previousTime_=q;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
NN.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.IfO(this.mouseListenerKey_)};var Nae={};var D0z=new _.D("rawColdConfigGroup");var fde=new _.D("rawHotConfigGroup");var m$v=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(m$v,_.XD);var T41=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(T41,_.XD);var HO=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q,500)};
_.z(HO,_.XD);HO.prototype.getPayloadCase=function(){return _.uY(this,Ay1)};
HO.prototype.getContext=function(){return _.Xy(this,T41,33)};
var Ay1=[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];var lde=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(lde,_.XD);var S18=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(S18,_.XD);S18.prototype.setVideoId=function(q){return Y7(this,1,vB1,V7(q))};
S18.prototype.getPlaylistId=function(){return _.PG(this,d5(this,vB1,2))};
var vB1=[1,2];var sk2=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(sk2,_.XD);sk2.prototype.getContext=function(){return _.Xy(this,$7,1)};
sk2.prototype.getTier=function(){return _.Jz(this,7)};var fj7,fB,D$;fj7=_.$1.ytPubsubPubsubInstance||new _.wf;fB=_.$1.ytPubsubPubsubSubscribedKeys||{};D$=_.$1.ytPubsubPubsubTopicToKeys||{};_.lf1=_.$1.ytPubsubPubsubIsSynchronous||{};_.wf.prototype.subscribe=_.wf.prototype.subscribe;_.wf.prototype.unsubscribeByKey=_.wf.prototype.unsubscribeByKey;_.wf.prototype.publish=_.wf.prototype.publish;_.wf.prototype.clear=_.wf.prototype.clear;_.IR("ytPubsubPubsubInstance",fj7);_.IR("ytPubsubPubsubTopicToKeys",D$);_.IR("ytPubsubPubsubIsSynchronous",_.lf1);
_.IR("ytPubsubPubsubSubscribedKeys",fB);var yP=window;var Sb=_.b("web_enable_lifecycle_monitoring")&&AEj()!==0,D$W=_.b("web_enable_lifecycle_monitoring");var yyX=function(q){var Z=this;var w=w===void 0?0:w;var r=r===void 0?_.R0():r;this.JSC$8674_defaultPriority=w;this.scheduler=r;this.completedResolver=new _.Dk;this.scheduledPayloads=q;for(q={i$jscomp$529:0};q.i$jscomp$529<this.scheduledPayloads.length;q={payload$jscomp$18:void 0,i$jscomp$529:q.i$jscomp$529},q.i$jscomp$529++)q.payload$jscomp$18=this.scheduledPayloads[q.i$jscomp$529],w=function(Y){return function(){Y.payload$jscomp$18.job();Z.scheduledPayloads[Y.i$jscomp$529].processed=!0;Z.scheduledPayloads.every(function(C){return C.processed===
!0})&&Z.completedResolver.resolve()}}(q),r=this.scheduler.addJob(w,hEv(this,q.payload$jscomp$18)),this.scheduledPayloads[q.i$jscomp$529]=Object.assign({},q.payload$jscomp$18,{job:w,
jobId:r})};
yyX.prototype.flushJobs=function(){var q=this,Z=Array.from(this.scheduledPayloads.keys()).sort(function(r,Y){return hEv(q,q.scheduledPayloads[Y])-hEv(q,q.scheduledPayloads[r])});
Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next())w=this.scheduledPayloads[w.value],w.jobId===void 0||w.processed||(this.scheduler.cancelJob(w.jobId),this.scheduler.addJob(w.job,10))};
yyX.prototype.cancel=function(){for(var q=_.P(this.scheduledPayloads),Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.jobId===void 0||Z.processed||this.scheduler.cancelJob(Z.jobId),Z.processed=!0;this.completedResolver.resolve()};
var hEv=function(q,Z){var w;return(w=Z.priority)!=null?w:q.JSC$8674_defaultPriority};var vB=function(q){this.state=q;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Sb&&ffO(this.state)};
vB.prototype.install=function(q){this.plugins.push(q);return this};
vB.prototype.uninstall=function(){var q=this;_.Ta.apply(0,arguments).forEach(function(Z){Z=q.plugins.indexOf(Z);Z>-1&&q.plugins.splice(Z,1)})};
vB.prototype.transition=function(q,Z){var w=this;Sb&&DxI(this.state);var r=this.transitions.find(function(C){return Array.isArray(C.from)?C.from.find(function(d){return d===w.state&&C.to===q}):C.from===w.state&&C.to===q});
if(r){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);ipW(this,q,Z);this.state=q;Sb&&ffO(this.state);r=r.action.bind(this);var Y=this.plugins.filter(function(C){return C[q]}).map(function(C){return C[q]});
r(gQp(this,Y),Z)}else throw Error("gd`"+this.state+"`"+q);};
var gQp=function(q,Z){var w=Z.filter(function(Y){return qhv(q,Y)===10}),r=Z.filter(function(Y){return qhv(q,Y)!==10});
return q.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var Y=_.Ta.apply(0,arguments);return _.V(function(C){if(C.nextAddress==1)return _.W(C,q.runImmediateJobsAsync.apply(q,[w].concat(_.Ju(Y))),2);q.setJobSetWithScheduledJobs.apply(q,[r].concat(_.Ju(Y)));_.ub(C)})}:function(){var Y=_.Ta.apply(0,arguments);
q.runImmediateJobsSync.apply(q,[w].concat(_.Ju(Y)));q.setJobSetWithScheduledJobs.apply(q,[r].concat(_.Ju(Y)))}};
vB.prototype.runImmediateJobsSync=function(q){var Z=_.Ta.apply(1,arguments);_.R0();for(var w=_.P(q),r=w.next(),Y={};!r.done;Y={lifecycle$jscomp$2:void 0},r=w.next())Y.lifecycle$jscomp$2=r.value,Kn(function(C){return function(){ZRX(C.lifecycle$jscomp$2.name);yE1(function(){return C.lifecycle$jscomp$2.callback.apply(C.lifecycle$jscomp$2,_.Ju(Z))});
jb(C.lifecycle$jscomp$2.name)}}(Y))};
vB.prototype.runImmediateJobsAsync=function(q){var Z=_.Ta.apply(1,arguments),w,r,Y,C;return _.V(function(d){d.nextAddress==1&&(_.R0(),w=_.P(q),r=w.next(),Y={});if(d.nextAddress!=3){if(r.done)return d.jumpTo(0);Y.lifecycle$jscomp$3=r.value;Y.asyncJobCompletion=void 0;C=function(O){return function(){ZRX(O.lifecycle$jscomp$3.name);var H=yE1(function(){return O.lifecycle$jscomp$3.callback.apply(O.lifecycle$jscomp$3,_.Ju(Z))});
Y56(H)?O.asyncJobCompletion=_.b("web_lifecycle_error_handling_killswitch")?H.then(function(){jb(O.lifecycle$jscomp$3.name)}):H.then(function(){jb(O.lifecycle$jscomp$3.name)},function(L){hKz(L);
jb(O.lifecycle$jscomp$3.name)}):jb(O.lifecycle$jscomp$3.name)}}(Y);
Kn(C);return Y.asyncJobCompletion?_.W(d,Y.asyncJobCompletion,3):d.jumpTo(3)}Y={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};r=w.next();return d.jumpTo(2)})};
vB.prototype.setJobSetWithScheduledJobs=function(q){var Z=_.Ta.apply(1,arguments),w=this,r=q.map(function(Y){return{job:function(){ZRX(Y.name);yE1(function(){return Y.callback.apply(Y,_.Ju(Z))});
jb(Y.name)},
priority:qhv(w,Y)}});
r.length&&(this.jobSet=new yyX(r))};
var qhv=function(q,Z){var w,r;return(r=(w=q.overridePriority)!=null?w:Z.priority)!=null?r:0},ZRX=function(q){Sb&&q&&ffO(q)},jb=function(q){Sb&&q&&DxI(q)},ipW=function(q,Z,w){D$W&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+q.constructor.name+"] '"+q.state+"' to '"+Z+"'"),console.log("with message: ",w),console.groupEnd())};
_.My.Object.defineProperties(vB.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var wde=function(q){vB.call(this,q===void 0?"none":q);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(){}}]},rTD;
_.z(wde,vB);wde.prototype.runApplicationNavigationBegin=function(q,Z){var w=this;this.navigationTimer=_.WO(_.v5,function(){w.currentState==="application_navigating"&&w.transition("none")},5E3);
q(Z==null?void 0:Z.event)};
wde.prototype.runApplicationNavigationEnd=function(q,Z){this.navigationTimer&&(_.v5.cancelJob(this.navigationTimer),this.navigationTimer=null);q(Z==null?void 0:Z.event)};
_.A7N=function(){rTD||(rTD=new wde);return rTD};var m08=[];_.IR("yt.logging.transport.getScrapedGelPayloads",function(){return m08});var gI=function(){var q=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return q.totalEntries}}};
gI.prototype.storePayload=function(q,Z){q=in2(q);this.store[q]?this.store[q].push(Z):(this.memoizedKeySequences={},this.store[q]=[Z]);this.totalEntries++;_.b("more_accurate_gel_parser")&&(Z=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(Z));return q};
gI.prototype.smartExtractMatchingEntries=function(q){if(!q.keys.length)return[];for(var Z=Yh7(this,q.keys.splice(0,1)[0]),w=[],r=0;r<Z.length;r++)this.store[Z[r]]&&q.sizeLimit&&(this.store[Z[r]].length<=q.sizeLimit?(w.push.apply(w,_.Ju(this.store[Z[r]])),delete this.store[Z[r]]):w.push.apply(w,_.Ju(this.store[Z[r]].splice(0,q.sizeLimit))));this.totalEntries-=w.length;(q==null?0:q.sizeLimit)&&w.length<(q==null?void 0:q.sizeLimit)&&(q.sizeLimit-=w.length,w.push.apply(w,_.Ju(this.smartExtractMatchingEntries(q))));
return w};
gI.prototype.extractMatchingEntries=function(q){q=Yh7(this,q);for(var Z=[],w=0;w<q.length;w++)this.store[q[w]]&&(Z.push.apply(Z,_.Ju(this.store[q[w]])),delete this.store[q[w]]);this.totalEntries-=Z.length;return Z};
gI.prototype.getSequenceCount=function(q){q=Yh7(this,q);for(var Z=0,w=0;w<q.length;w++){var r=void 0;Z+=((r=this.store[q[w]])==null?void 0:r.length)||0}return Z};
var Yh7=function(q,Z){var w=in2(Z);if(q.memoizedKeySequences[w])return q.memoizedKeySequences[w];var r=Object.keys(q.store)||[];if(r.length<=1&&in2(Z)===r[0])return r;for(var Y=[],C=0;C<r.length;C++){var d=r[C].split("/");if($MJ(Z.auth,d[0])){var O=Z.isJspb;$MJ(O===void 0?"undefined":O?"true":"false",d[1])&&$MJ(Z.cttAuthInfo,d[2])&&(O=Z.tier,O=O===void 0?"undefined":JSON.stringify(O),$MJ(O,d[3])&&Y.push(r[C]))}}return q.memoizedKeySequences[w]=Y},$MJ=function(q,Z){return q===void 0||q==="undefined"?
!0:q===Z};
gI.prototype.getSequenceCount=gI.prototype.getSequenceCount;gI.prototype.extractMatchingEntries=gI.prototype.extractMatchingEntries;gI.prototype.smartExtractMatchingEntries=gI.prototype.smartExtractMatchingEntries;gI.prototype.storePayload=gI.prototype.storePayload;var nBT,B69,Qke,w5,eA1,gBz,i69,zIj,J7j,H6X,adT,peO,tjO;nBT=_.m6("initial_gel_batch_timeout",2E3);B69=_.m6("gel_queue_timeout_max_ms",6E4);Qke=_.m6("gel_min_batch_size",5);w5=void 0;eA1=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
gBz=new eA1;i69=new eA1;zIj=new eA1;J7j=new eA1;adT=!0;peO=1;_.GRT=new Map;tjO=_.$1.ytLoggingTransportTokensToCttTargetIds_||{};_.IR("ytLoggingTransportTokensToCttTargetIds_",tjO);var jk9=_.$1.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.IR("ytLoggingTransportTokensToJspbCttTargetIds_",jk9);var ZU={};var ux=_.$1.ytLoggingGelSequenceIdObj_||{};_.IR("ytLoggingGelSequenceIdObj_",ux);var rL2=[];var LW1=new Set,dA9=0,trT=0,j5j=0,OVN=[],VrI=[],RY2=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var KWO=function(){};
KWO.prototype.getUrl=function(q,Z){Z=Z===void 0?!1:Z;return q.hasOwnProperty("shareEndpoint")?null:_.BpX(q,null,Z)};
var Fp9=function(q,Z,w){q={endpoint:Z,actions:[]};w=(w.path?w.path[0]:w.target).icon||"";Z=w.indexOf(":");Z>0&&(w=w.substr(Z+1));w&&q.actions.push(w);return q};var Tpe=/Command$/,xA2=/Endpoint$/,nL2=new Map;var CI1,PIh;CI1=1;_.UU=function(){this.actionRoutingMap=new Map};
_.UU.prototype.triggerAction=function(q){var Z=new PBI(q,!1,_.Ta.apply(1,arguments));this.handleAction(Z);return Z.returnValue};
_.UU.prototype.triggerOptionalAction=function(q){var Z=new PBI(q,!0,_.Ta.apply(1,arguments));this.handleAction(Z);return Z.returnValue};
_.tH=function(q,Z,w){Z.forEach(function(r){var Y=EL9(r);Y&&q.triggerOptionalAction(Y,r,w,void 0)})};
_.UU.prototype.handleAction=function(q){var Z=this.actionRoutingMap.get(q.actionName);Z&&PIh(q,Z);q.optionalAction||q.returnValue.length!==0||(q=new _.df("Unhandled action",q.actionName),_.xT(q))};
PIh=function(q,Z){Z.forEach(function(w){var r=null;w?r=w.apply(null,q.args):(w=Error("hd"),w.params=q.actionName,_.ns(w));q.returnValue.push(r)})};
_.k7=function(q,Z,w){w||(w=CI1++);for(var r=_.P(Object.keys(Z)),Y=r.next();!Y.done;Y=r.next()){Y=Y.value;var C=q.actionRoutingMap.get(Y);C||(C=new Map,q.actionRoutingMap.set(Y,C));q.registerActionHandler(w,Y,Z[Y],C)}return w};
_.UU.prototype.registerActionHandler=function(q,Z,w,r){r.set(q,_.QV(w))};
_.Kb=function(q,Z,w){Z=_.P(Object.keys(Z));for(var r=Z.next();!r.done;r=Z.next())(r=q.actionRoutingMap.get(r.value))&&r.delete(w)};
_.Db(_.UU);var cLj=function(q,Z){var w=_.UU.getInstance();_.Ls(function(){var r={},Y=_.k7(w,(r[q]=Z,r));_.SG(function(){var C={};_.Kb(w,(C[q]="",C),Y)})})};var lv2=function(q,Z,w){_.Ls(function(){var r=q.value;r?(r.addEventListener(Z,w,void 0),_.SG(function(){r?r.removeEventListener(Z,w,void 0):Gd6(q)})):Gd6(q)})};my8=RE2;var ZPj=new Set(["For","If","Match","Watch"]),dM9={},VKW=(dM9[bS.default]=function(){return F3e},dM9.style=function(){return F3e},dM9),OR2;
for(OR2 in VKW)mt.attributes[OR2]=VKW[OR2](mt.attributes[OR2]);var pb=new _.F$("VISIBILITY_OBSERVER");var OP1={retrieve:function(q){return this.id.\u0275prov.token===q.\u0275prov.token?this.contextValue:this?YG1(this,this.id):r9I}};var HRW=function(q,Z,w){if(q!==Fu)return!1;q=DAT(document.createElement("div"),function(){var r=G2(!1);try{w[0]()}finally{G2(r)}});
q=Array.from(q.childNodes);q.length===1&&(q=q[0]);return q};var Wu1=function(q){q=q.clone();Xg7(q);dk(q,"dg",null);dk(q,"d","0");NfK(q,null);lL7(q,null);dk(q,"ichc","0");return q},oK7=!0,um9=function(q,Z,w){var r=w===void 0?{}:w;
w=r.cssRowKey===void 0?void 0:r.cssRowKey;var Y=r.combinedSignature===void 0?void 0:r.combinedSignature;var C=r.extraEdges===void 0?void 0:r.extraEdges;r=r.callback===void 0?void 0:r.callback;dk(q,"m",Z.join(","));C&&pgh(q,C);w&&(dk(q,"ck",w),Y?dk(q,"rs",Y):oK7&&(oK7=!1));if(r){if(r!=null&&!fLm.test(r))throw Error("ab`"+r);dk(q,"cb",r)}q=q.toString();_.Vj(q,"/")&&(q=LF7(document.location.href)+q);return _.o9(q)};var Sh2=function(q){return Lue(q).then(function(Z){return JSON.parse(Z.responseText)})},Lue=function(q){var Z={},w=Z.xmlHttpFactory?Z.xmlHttpFactory.createInstance():VCg.createInstance();
return(new _.r5(function(r,Y){var C;try{w.open("GET",q,!0)}catch(H){Y(new R7("Error opening XHR: "+H.message,q,w))}w.onreadystatechange=function(){if(w.readyState==4){_.$1.clearTimeout(C);var H;!(H=dbv(w.status))&&(H=w.status===0)&&(H=uDX(q),H=!(H=="http"||H=="https"||H==""));H?r(w):Y(new vKJ(w.status,q,w))}};
w.onerror=function(){Y(new R7("Network error",q,w))};
if(Z.headers)for(var d in Z.headers){var O=Z.headers[d];O!=null&&w.setRequestHeader(d,O)}Z.withCredentials&&(w.withCredentials=Z.withCredentials);Z.responseType&&(w.responseType=Z.responseType);Z.mimeType&&w.overrideMimeType(Z.mimeType);Z.timeoutMs>0&&(C=_.$1.setTimeout(function(){w.onreadystatechange=function(){};
w.abort();Y(new jVe(q,w))},Z.timeoutMs));
try{w.send(null)}catch(H){w.onreadystatechange=function(){},_.$1.clearTimeout(C),Y(new R7("Error sending XHR: "+H.message,q,w))}})).thenCatch(function(r){r instanceof _.xQ&&w.abort();
throw r;})},R7=function(q,Z,w){_.qj.call(this,q+", url="+Z);
this.url=Z;this.xhr=w};
_.yU(R7,_.qj);R7.prototype.name="XhrError";var vKJ=function(q,Z,w){R7.call(this,"Request Failed, status="+q,Z,w);this.status=q};
_.yU(vKJ,R7);vKJ.prototype.name="XhrHttpError";var jVe=function(q,Z){R7.call(this,"Request timed out",q,Z)};
_.yU(jVe,R7);jVe.prototype.name="XhrTimeoutError";fd=fd||{};var ba=function(){_.u6.call(this)};
_.yU(ba,_.u6);ba.prototype.initialize=function(){};var tKm=function(q,Z){this.fn_=q;this.handler_=Z};
tKm.prototype.execute=function(q){this.fn_&&(this.fn_.call(this.handler_||null,q),this.fn_=this.handler_=null)};
tKm.prototype.abort=function(){this.handler_=this.fn_=null};var JH=function(q,Z){_.u6.call(this);this.deps_=q;this.JSC$8801_id_=Z;this.onloadCallbacks_=[];this.JSC$8801_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.yU(JH,_.u6);JH.prototype.moduleConstructor_=ba;JH.prototype.module_=null;JH.prototype.getId=function(){return this.JSC$8801_id_};
JH.prototype.registerCallback=function(q,Z){return RAv(this.onloadCallbacks_,q,Z)};
var bRp=function(q,Z){RAv(q.JSC$8801_onErrorCallbacks_,Z)},RAv=function(q,Z,w){Z=new tKm(Z,w);
q.push(Z);return Z};
JH.prototype.isLoaded=function(){return!!this.module_};
JH.prototype.onLoad=function(q){var Z=new this.moduleConstructor_;Z.initialize(q());this.module_=Z;Z=(Z=!!JTX(this.earlyOnloadCallbacks_,q()))||!!JTX(this.onloadCallbacks_,q());Z||(this.JSC$8801_onErrorCallbacks_.length=0);return Z};
JH.prototype.onError=function(q){(q=JTX(this.JSC$8801_onErrorCallbacks_,q))&&P6(Error("nd`"+q));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var JTX=function(q,Z){for(var w=[],r=0;r<q.length;r++)try{q[r].execute(Z)}catch(Y){P6(Y),w.push(Y)}q.length=0;return w.length?w:null};
JH.prototype.disposeInternal=function(){JH.superClass_.disposeInternal.call(this);_.Xg(this.module_)};var zAg,xM2,QV7,EKh,aCD,nK7,sV1,k7W,KuD;
_.BB=function(q,Z,w,r,Y){r=r===void 0?!1:r;Y=Y===void 0?!1:Y;var C=C===void 0?!0:C;this.scsReferenceUrl_=Xs(_.ug(q).toString(),C);this.cssRowKey_=Z;this.combinedSignature_=w;this.useNegativeLoading_=r;this.requestedModuleMap_={};this.JSC$8804_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(q=PW(this.scsReferenceUrl_,"excm"))?q.split(","):[];this.shouldScanForCss_=Y;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;R$T();this.logger=null;_.zZ(this,GOJ(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
zAg=function(q,Z){if(Z.href||Z.getAttribute("data-href"))if(Z=Z.href||Z.getAttribute("data-href"),SGT(Z)&&!Xs(Z).urlPrefix_.endsWith("_/js/")){Z=GOJ(Xs(Z));Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next())w=w.value,q.loadedCssModuleList_.includes(w)||q.loadedCssModuleList_.push(w)}};
_.BB.prototype.JSC$8806_loadModules=function(q,Z,w){var r=w===void 0?{}:w;w=r.extraEdges;var Y=r.onError;var C=r.onSuccess;r=r.forceReload;this.JSC$8804_moduleInfoMap_=Z;if(!q)throw Error("od");if(this.shouldScanForCss_){Z=_.P(document.getElementsByTagName("style"));for(var d=Z.next();!d.done;d=Z.next())zAg(this,d.value);Z=_.P(document.getElementsByTagName("link"));for(d=Z.next();!d.done;d=Z.next())zAg(this,d.value)}BT9(this,aCD(this,q),w,Y,C,r)};
var BT9=function(q,Z,w,r,Y,C){r=r===void 0?function(){}:r;
Y=Y===void 0?function(){}:Y;
C=C===void 0?!1:C;nK7(q,Z,function(d,O,H){H=H===void 0?O:H;q.enableFallbackFetch&&C?q.loadWithFetch(d,O,r,Y,H):q.load(d,O,r,Y,H,w)},w)||r(-1)};
_.BB.prototype.loadWithFetch=function(){_.V(function(){throw Error("pd");})};
_.BB.prototype.maybeSetAdditionalFields=function(){};
xM2=function(q,Z,w){if(q.useNegativeLoading_){var r=q.scsReferenceUrl_;q={cssRowKey:q.cssRowKey_,combinedSignature:q.combinedSignature_,extraEdges:w,requestedModuleIds:QV7(q),requestedCssModuleIds:EKh(q)};var Y=q===void 0?{}:q;q=Y.requestedModuleIds===void 0?[]:Y.requestedModuleIds;w=Y.requestedCssModuleIds===void 0?[]:Y.requestedCssModuleIds;var C=Y.cssRowKey===void 0?void 0:Y.cssRowKey;var d=Y.combinedSignature===void 0?void 0:Y.combinedSignature;var O=Y.extraEdges===void 0?void 0:Y.extraEdges;
Y=Y.callback===void 0?void 0:Y.callback;r=Wu1(r);dk(r,"d","1");NfK(r,q);lL7(r,w);Z=um9(r,Z,{cssRowKey:C,combinedSignature:d,extraEdges:O,callback:Y})}else r=q.scsReferenceUrl_,q={cssRowKey:q.cssRowKey_,combinedSignature:q.combinedSignature_,requestedModuleIds:QV7(q),requestedCssModuleIds:EKh(q)},O=q===void 0?{}:q,q=O.requestedCssModuleIds===void 0?[]:O.requestedCssModuleIds,w=O.cssRowKey===void 0?void 0:O.cssRowKey,C=O.combinedSignature===void 0?void 0:O.combinedSignature,d=O.extraEdges===void 0?
void 0:O.extraEdges,O=O.callback===void 0?void 0:O.callback,r=Wu1(r),lL7(r,q),Z=um9(r,Z,{cssRowKey:w,combinedSignature:C,extraEdges:d,callback:O});return Z};
_.zZ=function(q,Z){for(var w=!1,r=[],Y=0;Y<Z.length;++Y){var C=Z[Y];q.requestedModuleMap_[C]||(q.requestedModuleMap_[C]=!0,q.requestedModuleList_.push(C),w=!0,r.push(C))}w&&(q.requestedModuleListSorted_=!1)};
_.a7=function(q,Z){for(var w=[],r=0;r<Z.length;++r){var Y=Z[r];q.requestedModuleMap_[Y]&&(delete q.requestedModuleMap_[Y],_.F9(q.requestedModuleList_,Y),w.push(Y))}};
_.BB.prototype.load=function(q,Z,w,r,Y){Y=Y===void 0?Z:Y;_.ug(q);var C=this.useCors_,d=this.corsMode_,O=this.fetchPriority,H=_.dX("SCRIPT");_.AI(H,q);C&&(H.crossOrigin=d);H.async=!1;O&&H.setAttribute("fetchpriority",O);_.zZ(this,Z);_.TTW(this,q,H,Z,w,r,Y)};
_.TTW=function(q,Z,w,r,Y,C,d){d=d===void 0?r:d;q.lastScript_=w;q.insertPos.insertBefore(w,q.insertPos.firstChild);_.UMp(w,r,function(){w.parentElement.removeChild(w);q.lastScript_==w&&(q.lastScript_=null);var O=new Set;r.map(function(L){return O.add(L)});
for(var H in q.JSC$8804_moduleInfoMap_)q.JSC$8804_moduleInfoMap_[H].isLoaded()&&O.add(H);Array.from(O);C()},function(O){w.parentElement.removeChild(w);
q.lastScript_==w&&(q.lastScript_=null);_.a7(q,O);q.pendingModuleGraphUpdate_?q.pendingModuleGraphUpdate_.then(function(){Y(-1,Z)}):Y(-1,Z)},d)};
_.UMp=function(q,Z,w,r,Y){Y=Y===void 0?Z:Y;var C=Z.length,d=function(){C=0;q.onload=null;q.onerror=null;O=function(){}},O=function(){d();
var L=Y.filter(function(S){return!R1().getModuleInfo(S).isLoaded()});
L.length!==0?r(L,"Response was successful but was missing module(s) "+L+"."):w()},H=function(){C--;
C==0&&O()};
Z.forEach(function(L){L=R1().getModuleInfo(L);L.isLoaded()?H():(RAv(L.earlyOnloadCallbacks_,H),bRp(L,H))});
q.onload=function(){return O()};
q.onerror=function(){d();r(Z)}};
QV7=function(q){q.requestedModuleListSorted_||(q.requestedModuleListSorted_=!0,q.requestedModuleList_.sort());return q.requestedModuleList_};
EKh=function(q){q=q.loadedCssModuleList_;q.sort();return q};
aCD=function(q,Z){return Z.filter(function(w){return!q.requestedModuleMap_[w]})};
nK7=function(q,Z,w,r){if(q.pendingModuleGraphUpdate_)return q.pendingModuleGraphUpdate_.then(function(){nK7(q,Z,w,r)}),!0;
if(!q.useNegativeLoading_){var Y=[],C=Object.assign({},q.requestedModuleMap_);k7W(q,Z,function(S){Y.push(S.getId())},r,function(S){return!S.isLoaded()},C);
Z=Y}for(C=0;C<Z.length;){for(var d=Z.length-C,O=C==0?Z:Z.slice(C,Z.length),H=xM2(q,O,r),L=_.ug(H).toString();L.length>q.urlMaxLength;)if(d>1)d-=Math.ceil((L.length-q.urlMaxLength)/6),d=Math.max(d,1),O=Z.slice(C,C+d),H=xM2(q,O,r),L=_.ug(H).toString();else return q.useNegativeLoading_?(q.useNegativeLoading_=!1,q.pendingModuleGraphUpdate_=KuD(q).then(function(S){sV1(q,S,r)}),nK7(q,Z.slice(C),w,r)):!1;
C+=d;q.useNegativeLoading_?w(H,O):w(H,O,C===Z.length?Z:[])}return!0};
sV1=function(q,Z,w){R1().setAllModuleInfoString((Z||{}).moduleGraph);k7W(q,QV7(q),function(r){_.zZ(q,[r.getId()])},w);
q.pendingModuleGraphUpdate_=null};
k7W=function(q,Z,w,r,Y,C){C=C===void 0?{}:C;var d=R1();Z=_.P(Z);for(var O=Z.next();!O.done;O=Z.next()){O=O.value;var H=d.getModuleInfo(O);if(!(C[O]||Y&&!Y(H))){C[O]=!0;var L=H.deps_||[];if(r){var S=[];r[O]&&(S=Object.keys(r[O]));L=L.concat(S)}k7W(q,L,w,r,Y,C);w(H)}}};
KuD=function(q){q=q.scsReferenceUrl_.clone();Xg7(q);dk(q,"dg",null);dk(q,"md","1");return Sh2(q.toString())};var IC7=function(){this.JSC$7928_loader_=null};
_.e=IC7.prototype;_.e.setBatchModeEnabled=function(){};
_.e.setAllModuleInfoString=function(){};
_.e.addExtraEdge=function(){throw Error("qd");};
_.e.removeExtraEdge=function(){throw Error("rd");};
_.e.getModuleContext=function(){return null};
_.e.isActive=function(){return!1};
_.e.isUserActive=function(){return!1};
_.e.registerCallback=function(){};var nj=function(q,Z,w,r){this.type=q;this.status=Z;this.requestedModuleIds=w;this.url=r};
nj.prototype.toString=function(){return cTg(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var cTg=function(q){switch(q.type){case nj.JSC$8813_Type.UNAUTHORIZED:return"Unauthorized";case nj.JSC$8813_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case nj.JSC$8813_Type.TIMEOUT:return"Timed out";case nj.JSC$8813_Type.OLD_CODE_GONE:return"Out of date module id";case nj.JSC$8813_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+q.type}};
fd.ModuleLoadFailure=nj;fd.ModuleLoadFailure.JSC$8813_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var QA=function(){this.moduleIds_=this.JSC$7928_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8816_extraEdges_={};this.JSC$8816_callbackMap_={};this.JSC$8816_currentlyLoadingModule_=this.baseModuleInfo_=new JH([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new k2;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.yU(QA,IC7);var MKD=function(q,Z){_.qj.call(this,"Error loading "+q+": "+Z)};
_.yU(MKD,_.qj);_.e=QA.prototype;_.e.setBatchModeEnabled=function(q){this.batchModeEnabled_=q};
_.e.setAllModuleInfoString=function(q,Z){if(!(this instanceof QA))this.setAllModuleInfoString(q,Z);else if(typeof q==="string"){if(q.startsWith("d$")){q=q.substring(2);for(var w=[],r=0,Y=q.indexOf("/"),C=0,d=!1,O=0;;){var H=d?q.substring(C):q.substring(C,Y);if(H.length===0)r++,C="sy"+r.toString(36),H=[];else{var L=H.indexOf(":");if(L<0)C=H,H=[];else if(L===H.length-1)C=H.substring(0,L),H=Array(w[O-1]);else{C=H.substring(0,L);H=H.substring(L+1).split(",");L=O;for(var S=0;S<H.length;S++)L-=H[S].length===
0?1:Number(H[S]),H[S]=w[L]}L=0;if(C.length===0)L=1;else if(C.charAt(0)==="+"||C.charAt(0)==="-")L=Number(C);L!==0&&(r+=L,C="sy"+r.toString(36))}w.push(C);Fum(this,C,H);if(d)break;C=Y+1;Y=q.indexOf("/",C);Y===-1&&(d=!0);O++}this.moduleIds_=w}else{q=q.split("/");w=[];for(r=0;r<q.length;r++){O=q[r].split(":");Y=O[0];d=[];if(O[1])for(d=O[1].split(","),O=0;O<d.length;O++)d[O]=w[parseInt(d[O],36)];w.push(Y);Fum(this,Y,d)}this.moduleIds_=w}Z&&Z.length?(_.X9(this.loadingModuleIds_,Z),this.lastInitialModuleId_=
_.k1(Z)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8816_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8816_currentlyLoadingModule_=null,this.baseModuleInfo_.onLoad((0,_.Lh)(this.getModuleContext,this))&&NT9(this,new fd.ModuleLoadFailure(fd.ModuleLoadFailure.JSC$8813_Type.INIT_ERROR)),Ei(this))}};
_.e.getModuleInfo=function(q){return this.moduleInfoMap[q]};
_.e.addExtraEdge=function(q,Z){var w=this.getModuleInfo(q);w&&w.isLoaded()?this.load(Z):(this.JSC$8816_extraEdges_[q]||(this.JSC$8816_extraEdges_[q]={}),this.JSC$8816_extraEdges_[q][Z]=!0)};
_.e.removeExtraEdge=function(q,Z){if(this.JSC$8816_extraEdges_[q]){delete this.JSC$8816_extraEdges_[q][Z];for(var w in this.JSC$8816_extraEdges_[q])return;delete this.JSC$8816_extraEdges_[q]}};
_.e.isActive=function(){return this.loadingModuleIds_.length>0};
_.e.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Ei=function(q){var Z=q.lastActive_,w=q.isActive();w!=Z&&(q.executeCallbacks_(w?"active":"idle"),q.lastActive_=w);Z=q.isUserActive();Z!=q.userLastActive_&&(q.executeCallbacks_(Z?"userActive":"userIdle"),q.userLastActive_=Z)},Fum=function(q,Z,w){q.moduleInfoMap[Z]?(q=q.moduleInfoMap[Z].deps_,q!=w&&q.splice.apply(q,[0,
q.length].concat(_.Ju(w)))):q.moduleInfoMap[Z]=new JH(w,Z)},G72=function(q,Z,w){var r=[];
Bz2(Z,r);Z=[];for(var Y={},C=0;C<r.length;C++){var d=r[C],O=q.getModuleInfo(d);if(!O)throw Error("sd`"+d);var H=new k2;Y[d]=H;O.isLoaded()?H.callback(null):(lC2(q,d,O,!!w,H),q.isModuleLoading(d)||Z.push(d))}Z.length>0&&(q.loadingModuleIds_.length===0?q.loadModules_(Z):(q.requestedModuleIdsQueue_.push(Z),Ei(q)));return Y},lC2=function(q,Z,w,r,Y){w.registerCallback(Y.callback,Y);
bRp(w,function(C){Y.errback(new MKD(Z,C))});
q.isModuleLoading(Z)?r&&(pdp(q,Z),Ei(q)):r&&pdp(q,Z)};
QA.prototype.loadModules_=function(q,Z,w){var r=this;Z||(this.consecutiveFailures_=0);var Y=Xdg(this,q);this.loadingModuleIds_=Y;this.requestedLoadingModuleIds_=this.batchModeEnabled_?q:_.Ge(Y);Ei(this);if(Y.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,Y);if(Object.keys(this.JSC$8816_extraEdges_).length>0&&!this.JSC$7928_loader_.supportsExtraEdges)throw Error("td");q=(0,_.Lh)(this.JSC$7928_loader_.JSC$8806_loadModules,this.JSC$7928_loader_,_.Ge(Y),this.moduleInfoMap,{extraEdges:this.JSC$8816_extraEdges_,
forceReload:!!w,onError:function(C,d){var O=r.requestedLoadingModuleIds_;C=C!=null?C:void 0;r.consecutiveFailures_++;var H=_.Ge(Y);r.requestedLoadingModuleIds_=O;Y.forEach(_.Oh(_.F9,r.requestedModuleIds_),r);C==401?(NT9(r,new fd.ModuleLoadFailure(fd.ModuleLoadFailure.JSC$8813_Type.UNAUTHORIZED,C)),r.requestedModuleIdsQueue_.length=0):C==410?(mMK(r,new fd.ModuleLoadFailure(fd.ModuleLoadFailure.JSC$8813_Type.OLD_CODE_GONE,C)),AT1(r)):r.consecutiveFailures_>=3?(mMK(r,new fd.ModuleLoadFailure(fd.ModuleLoadFailure.JSC$8813_Type.CONSECUTIVE_FAILURES,
C,H,d)),AT1(r)):r.loadModules_(r.requestedLoadingModuleIds_,!0,C==8001||!1)},
onTimeout:(0,_.Lh)(this.handleLoadTimeout_,this)});(Z=Math.pow(this.consecutiveFailures_,2)*5E3)?_.$1.setTimeout(q,Z):q()}};
var Xdg=function(q,Z){Z=Z.filter(function(Y){return q.moduleInfoMap[Y].isLoaded()?(_.$1.setTimeout(function(){return Error("ud`"+Y)},0),!1):!0});
for(var w=[],r=0;r<Z.length;r++)w=w.concat(fCp(q,Z[r]));Bz2(w);return!q.batchModeEnabled_&&w.length>1?(Z=w.shift(),q.requestedModuleIdsQueue_=w.map(function(Y){return[Y]}).concat(q.requestedModuleIdsQueue_),[Z]):w},fCp=function(q,Z){var w=_.R4.createSet(q.requestedModuleIds_),r=[];
w[Z]||r.push(Z);Z=[Z];for(var Y=0;Y<Z.length;Y++)for(var C=q.getModuleInfo(Z[Y]).deps_,d=C.length-1;d>=0;d--){var O=C[d];q.getModuleInfo(O).isLoaded()||w[O]||(r.push(O),Z.push(O))}r.reverse();Bz2(r);return r};
QA.prototype.JSC$8811_setLoaded=function(){if(this.JSC$8816_currentlyLoadingModule_){var q=this.JSC$8816_currentlyLoadingModule_.getId(),Z=[];if(this.JSC$8816_extraEdges_[q]){for(var w=_.P(Object.keys(this.JSC$8816_extraEdges_[q])),r=w.next();!r.done;r=w.next()){r=r.value;var Y=this.getModuleInfo(r);Y&&!Y.isLoaded()&&(this.removeExtraEdge(q,r),Z.push(r))}this.loadMultiple(Z)}this.isDisposed()||(this.moduleInfoMap[q].onLoad((0,_.Lh)(this.getModuleContext,this))&&NT9(this,new fd.ModuleLoadFailure(fd.ModuleLoadFailure.JSC$8813_Type.INIT_ERROR)),
_.F9(this.userInitiatedLoadingModuleIds_,q),_.F9(this.loadingModuleIds_,q),this.loadingModuleIds_.length===0&&AT1(this),this.lastInitialModuleId_&&q==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Ei(this),this.JSC$8816_currentlyLoadingModule_=null)}};
QA.prototype.isModuleLoading=function(q){if(_.Mj(this.loadingModuleIds_,q))return!0;for(var Z=0;Z<this.requestedModuleIdsQueue_.length;Z++)if(_.Mj(this.requestedModuleIdsQueue_[Z],q))return!0;return!1};
QA.prototype.load=function(q,Z){return G72(this,[q],Z)[q]};
QA.prototype.loadMultiple=function(q){return G72(this,q)};
var pdp=function(q,Z){_.Mj(q.userInitiatedLoadingModuleIds_,Z)||q.userInitiatedLoadingModuleIds_.push(Z)};
QA.prototype.beforeLoadModuleCode=function(q){var Z=this;this.JSC$8816_currentlyLoadingModule_&&this.JSC$8816_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8811_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[q]&&DMW(this,this.moduleInfoMap[q].deps_||[],function(w){w.module_=new ba;_.F9(Z.loadingModuleIds_,w.getId())},function(w){return!w.isLoaded()});
this.JSC$8816_currentlyLoadingModule_=this.getModuleInfo(q)};
QA.prototype.handleLoadTimeout_=function(){mMK(this,new fd.ModuleLoadFailure(fd.ModuleLoadFailure.JSC$8813_Type.TIMEOUT));AT1(this)};
var mMK=function(q,Z){q.requestedLoadingModuleIds_.length>1?q.requestedModuleIdsQueue_=q.requestedLoadingModuleIds_.map(function(w){return[w]}).concat(q.requestedModuleIdsQueue_):NT9(q,Z)},NT9=function(q,Z){var w=q.requestedLoadingModuleIds_;
q.loadingModuleIds_.length=0;for(var r=[],Y=0;Y<q.requestedModuleIdsQueue_.length;Y++){var C=q.requestedModuleIdsQueue_[Y].filter(function(H){var L=fCp(this,H);return kY(w,function(S){return _.Mj(L,S)})},q);
_.X9(r,C)}for(Y=0;Y<w.length;Y++)_.R8T(r,w[Y]);for(Y=0;Y<r.length;Y++){for(C=0;C<q.requestedModuleIdsQueue_.length;C++)_.F9(q.requestedModuleIdsQueue_[C],r[Y]);_.F9(q.userInitiatedLoadingModuleIds_,r[Y])}if(Y=q.JSC$8816_callbackMap_.error)for(C=0;C<Y.length;C++)for(var d=Y[C],O=0;O<r.length;O++)d("error",r[O],Z);for(r=0;r<w.length;r++)if(q.moduleInfoMap[w[r]])q.moduleInfoMap[w[r]].onError(Z);q.requestedLoadingModuleIds_.length=0;Ei(q)},AT1=function(q){for(;q.requestedModuleIdsQueue_.length;){var Z=
q.requestedModuleIdsQueue_.shift().filter(function(w){return!this.getModuleInfo(w).isLoaded()},q);
if(Z.length>0){q.loadModules_(Z);return}}Ei(q)};
QA.prototype.registerCallback=function(q,Z){Array.isArray(q)||(q=[q]);for(var w=0;w<q.length;w++){var r=q[w],Y=Z,C=this.JSC$8816_callbackMap_;C[r]||(C[r]=[]);C[r].push(Y)}};
QA.prototype.executeCallbacks_=function(q){for(var Z=this.JSC$8816_callbackMap_[q],w=0;Z&&w<Z.length;w++)Z[w](q)};
var DMW=function(q,Z,w,r,Y){r=r===void 0?function(){return!0}:r;
Y=Y===void 0?{}:Y;Z=_.P(Z);for(var C=Z.next();!C.done;C=Z.next()){C=C.value;var d=q.getModuleInfo(C);!Y[C]&&r(d)&&(Y[C]=!0,DMW(q,d.deps_||[],w,r,Y),w(d))}};
QA.prototype.dispose=function(){_.vT6(_.R4.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8816_callbackMap_={};this.isDisposed_=!0};
QA.prototype.isDisposed=function(){return this.isDisposed_};
_.t1=function(){return new QA};var hA7=[5E3,2E4],yTg=function(){this.JSC$7928_loader_=null;this.JSC$8823_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8823_queue_=[];this.JSC$8823_extraEdges_=Object.create(null);this.JSC$8823_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.z(yTg,IC7);_.e=yTg.prototype;_.e.setAllModuleInfoString=function(){this.JSC$8823_currentlyLoadingModule_&&this.JSC$8823_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8811_setLoaded()};
_.e.getModuleInfo=function(q){var Z=this.JSC$8823_moduleInfoMap_[q];Z||(Z=new JH([],q),this.JSC$8823_moduleInfoMap_[q]=Z);return Z};
_.e.addExtraEdge=function(q,Z){this.getModuleInfo(q).isLoaded()?this.load(Z):(this.JSC$8823_extraEdges_[q]||(this.JSC$8823_extraEdges_[q]={}),this.JSC$8823_extraEdges_[q][Z]=!0)};
_.e.removeExtraEdge=function(q,Z){if(this.JSC$8823_extraEdges_[q]){delete this.JSC$8823_extraEdges_[q][Z];for(var w in this.JSC$8823_extraEdges_[q])return;delete this.JSC$8823_extraEdges_[q]}};
_.e.isModuleLoading=function(q){return!!this.loadingModules_[q]};
_.e.load=function(q){iR1(this,[q]);return gK9(this,q)};
_.e.loadMultiple=function(q){var Z=this,w=Object.create(null),r=[];q.forEach(function(Y){w[Y]||(w[Y]=gK9(Z,Y),r.push(Y))});
iR1(this,r);return w};
_.e.beforeLoadModuleCode=function(q){var Z;((Z=this.JSC$8823_currentlyLoadingModule_)==null?void 0:Z.getId())==="synthetic_module_overhead"&&this.JSC$8811_setLoaded();var w,r;qEX(this,(r=(w=this.JSC$8823_moduleInfoMap_[q])==null?void 0:w.deps_)!=null?r:[],function(Y){Y.module_=new ba},function(Y){return!Y.isLoaded()});
this.JSC$8823_currentlyLoadingModule_=this.getModuleInfo(q)};
_.e.JSC$8811_setLoaded=function(){if(this.JSC$8823_currentlyLoadingModule_){var q=this.JSC$8823_currentlyLoadingModule_.getId(),Z=[];if(this.JSC$8823_extraEdges_[q]){for(var w=_.P(Object.keys(this.JSC$8823_extraEdges_[q])),r=w.next();!r.done;r=w.next())r=r.value,this.getModuleInfo(r).isLoaded()||(this.removeExtraEdge(q,r),Z.push(r));this.loadMultiple(Z)}this.JSC$8823_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8823_currentlyLoadingModule_=null;(!this.isModuleLoading(q)&&/^sy[0-9a-z]{0,4}$/.test(q)||q==="synthetic_module_overhead")&&delete this.JSC$8823_moduleInfoMap_[q];this.unsetModulesAsLoading(q)}};
_.e.setModulesAsLoading=function(){var q=this;_.Ta.apply(0,arguments).forEach(function(Z){q.loadingModules_[Z]=!0})};
_.e.unsetModulesAsLoading=function(){var q=this;_.Ta.apply(0,arguments).forEach(function(Z){delete q.loadingModules_[Z]})};
var gK9=function(q,Z){return new _.r5(function(w,r){var Y=q.getModuleInfo(Z);Y.isLoaded()?w(null):(Y.registerCallback(function(){w(null)}),bRp(Y,function(C){var d="Error loading "+Z+": "+C;
C instanceof fd.ModuleLoadFailure&&C.url&&(d=d+", requested url: "+C.url.toString());r(Error(d))}))})},iR1=function(q,Z){Z=Z.filter(function(w){return!q.isModuleLoading(w)&&!q.getModuleInfo(w).isLoaded()});
Z.length>0&&(q.setModulesAsLoading.apply(q,_.Ju(Z)),q.JSC$8823_queue_.push(Z),Zz7(q))},Zz7=function(q){for(var Z={};q.activeLoads_<Infinity&&q.JSC$8823_queue_.length>0;Z={finishLoad:void 0,
ids$jscomp$34:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})Z.ids$jscomp$34=q.JSC$8823_queue_.shift().filter(function(w){return!q.getModuleInfo(w).isLoaded()}),Z.ids$jscomp$34.length>0&&(q.activeLoads_++,Z.finishLoad=function(w){return function(){q.activeLoads_--;
Zz7(q);w.finishLoad=function(){}}}(Z),_.WD(Z.ids$jscomp$34.map(function(w){return gK9(q,w)})).then(function(w){return function(){(0,w.finishLoad)()}}(Z)),Z.attempt$jscomp$6=0,Z.load$jscomp$1=function(w){return function(){if(Object.keys(q.JSC$8823_extraEdges_).length>0&&!q.JSC$7928_loader_.supportsExtraEdges)throw Error("td");
q.JSC$7928_loader_.JSC$8806_loadModules(w.ids$jscomp$34,q.JSC$8823_moduleInfoMap_,{extraEdges:q.JSC$8823_extraEdges_,onError:function(r,Y){var C=hA7[w.attempt$jscomp$6++];C!==void 0?setTimeout(function(){(0,w.load$jscomp$1)()},C):(q.unsetModulesAsLoading.apply(q,_.Ju(w.ids$jscomp$34)),(0,w.finishLoad)(),w.ids$jscomp$34.forEach(function(d){d=q.getModuleInfo(d);
if(!d.isLoaded())d.onError(new fd.ModuleLoadFailure(fd.ModuleLoadFailure.JSC$8813_Type.CONSECUTIVE_FAILURES,r,w.ids$jscomp$34,Y))}))}})}}(Z),(0,Z.load$jscomp$1)())},qEX=function(q,Z,w,r,Y){r=r===void 0?function(){return!0}:r;
Y=Y===void 0?{}:Y;Z=_.P(Z);for(var C=Z.next();!C.done;C=Z.next()){C=C.value;var d=q.getModuleInfo(C);!Y[C]&&r(d)&&(Y[C]=!0,qEX(q,d.deps_||[],w,r,Y),w(d))}};var wXm=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var uaO=Symbol("wd");window.JSCompiler_renameProperty=function(q){return q};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var r0g=!wXm||HTMLElement.es5Shimmed||_.$1.Reflect===void 0||_.$1.customElements===void 0||_.$1.customElements.polyfillWrapFlushCallback||!1,YED,mvj=function(){var q=HTMLElement;if(r0g)return q;if(YED!==void 0)return YED;var Z=_.$1.Reflect,w=function(){return Z.construct(q,[],this.constructor)};
w.prototype=q.prototype;w.prototype.constructor=w;w.es5Shimmed=!0;Object.setPrototypeOf(w,q);return YED=w},$9D=!1;r0g||$9D||($9D=!0,_.$1.HTMLElement=mvj());/*

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 te6=/(url\()([^)]*)(\))/g,v_T=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,jg9,AY;var B0=!window.ShadyDOM||!window.ShadyDOM.inUse,eWp=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),CF1=!window.customElements.polyfillWrapFlushCallback,PF7;if(PF7=B0&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var d99=new CSSStyleSheet;d99.replaceSync("");var VZK=document.createElement("div");VZK.attachShadow({mode:"open"});VZK.shadowRoot.adoptedStyleSheets=[d99];PF7=VZK.shadowRoot.adoptedStyleSheets[0]===d99}catch(q){PF7=!1}
var OzK=PF7,HzK=window.Polymer&&window.Polymer.rootPath||bPI(document.baseURI||window.location.href),P0=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,xd9=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,EA=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,WSh=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,zl=window.Polymer&&window.Polymer.legacyOptimizations||!1,Q4=window.Polymer&&window.Polymer.legacyWarnings||!1,oOX=window.Polymer&&window.Polymer.syncInitialRender||
!1,V4=window.Polymer&&window.Polymer.legacyUndefined||!1,uRW=window.Polymer&&window.Polymer.orderedComputed||!1,xn=window.Polymer&&window.Polymer.removeNestedTemplates||!1,TZ=window.Polymer&&window.Polymer.fastDomIf||!1,Ui=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,LSe=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,SEp=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var kn={},vOg={},H0=function(){return HTMLElement.apply(this,arguments)||this};
_.z(H0,HTMLElement);H0.import=function(q,Z){return q?(q=kn[q]||vOg[q.toLowerCase()])&&Z?q.querySelector(Z):q:null};
H0.prototype.attributeChangedCallback=function(q,Z,w){Z!==w&&this.register()};
H0.prototype.register=function(q){if(q=q||this.id){if(EA&&(kn[q]||vOg[q.toLowerCase()])!==void 0)throw kn[q]=vOg[q.toLowerCase()]=null,Error("xd`"+q);this.id=q;kn[q]=vOg[q.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.My.Object.defineProperties(H0.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var q=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;q=_.fb(this.getAttribute("assetpath")||"",q.baseURI);this.__assetpath=bPI(q)}return this.__assetpath}}});
_.My.Object.defineProperties(H0,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
H0["import"]=H0.import;H0.prototype.modules=kn;customElements.define("dom-module",H0);var jZD=0,zkO=0,DU=[],tZm=0,JQT=!1,RWW=document.createTextNode(""),bz9,b9;(new window.MutationObserver(Bn1)).observe(RWW,{characterData:!0});_.Kj={after:function(q){return{run:function(Z){return window.setTimeout(Z,q)},
cancel:function(Z){window.clearTimeout(Z)}}},
run:function(q,Z){return window.setTimeout(q,Z)},
cancel:function(q){window.clearTimeout(q)}};
_.$c={run:function(q){return window.requestAnimationFrame(q)},
cancel:function(q){window.cancelAnimationFrame(q)}};
bz9={run:function(q){return window.requestIdleCallback?window.requestIdleCallback(q):window.setTimeout(q,16)},
cancel:function(q){window.cancelIdleCallback?window.cancelIdleCallback(q):window.clearTimeout(q)}};
b9={run:function(q){JQT||(JQT=!0,RWW.textContent=tZm++);DU.push(q);return jZD++},
cancel:function(q){var Z=q-zkO;if(Z>=0){if(!DU[Z])throw Error("yd`"+q);DU[Z]=null}}};var J0h=0,si=function(q){var Z=q.__mixinApplications;Z||(Z=new WeakMap,q.__mixinApplications=Z);var w=J0h++;return function(r){var Y=r.__mixinSet;if(Y&&Y[w])return r;var C=Z,d=C.get(r);d||(d=q(r),C.set(r,d),r=Object.create(d.__mixinSet||Y||null),r[w]=!0,d.__mixinSet=r);return d}};_.Cy=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(q){return ShadyDOM.patch(q)}:function(q){return q};var zWe=si(function(q){var Z=function(){var w=q.call(this)||this;w.__dataEnabled=!1;w.__dataReady=!1;w.__dataInvalid=!1;w.__data={};w.__dataPending=null;w.__dataOld=null;w.__dataInstanceProps=null;w.__dataCounter=0;w.__serializing=!1;w._initializeProperties();return w};
_.z(Z,q);Z.createProperties=function(w){var r=this.prototype,Y;for(Y in w)Y in r||r._createPropertyAccessor(Y)};
Z.attributeNameForProperty=function(w){return w.toLowerCase()};
Z.typeForProperty=function(){};
Z.prototype._createPropertyAccessor=function(w,r){this._addPropertyToAttributeMap(w);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[w]||(this.__dataHasAccessor[w]=!0,this._definePropertyAccessor(w,r))};
Z.prototype._addPropertyToAttributeMap=function(w){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var r=this.__dataAttributes[w];r||(r=this.constructor.attributeNameForProperty(w),this.__dataAttributes[r]=w);return r};
Z.prototype._definePropertyAccessor=function(w,r){Object.defineProperty(this,w,{get:function(){return this.__data[w]},
set:r?function(){}:function(Y){this._setPendingProperty(w,Y,!0)&&this._invalidateProperties()}})};
Z.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
Z.prototype._initializeProperties=function(){for(var w in this.__dataHasAccessor)this.hasOwnProperty(w)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[w]=this[w],delete this[w])};
Z.prototype._initializeInstanceProperties=function(w){Object.assign(this,w)};
Z.prototype._setProperty=function(w,r){this._setPendingProperty(w,r)&&this._invalidateProperties()};
Z.prototype._getProperty=function(w){return this.__data[w]};
Z.prototype._setPendingProperty=function(w,r){var Y=this.__data[w],C=this._shouldPropertyChange(w,r,Y);C&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||w in this.__dataOld||(this.__dataOld[w]=Y),this.__data[w]=r,this.__dataPending[w]=r);return C};
Z.prototype._isPropertyPending=function(w){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(w))};
Z.prototype._invalidateProperties=function(){var w=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,b9.run(function(){w.__dataInvalid&&(w.__dataInvalid=!1,w._flushProperties())}))};
Z.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
Z.prototype._flushProperties=function(){this.__dataCounter++;var w=this.__data,r=this.__dataPending,Y=this.__dataOld;this._shouldPropertiesChange(w,r,Y)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(w,r,Y));this.__dataCounter--};
Z.prototype._shouldPropertiesChange=function(w,r){return!!r};
Z.prototype._propertiesChanged=function(){};
Z.prototype._shouldPropertyChange=function(w,r,Y){return Y!==r&&(Y===Y||r===r)};
Z.prototype.attributeChangedCallback=function(w,r,Y,C){r!==Y&&this._attributeToProperty(w,Y);q.prototype.attributeChangedCallback&&q.prototype.attributeChangedCallback.call(this,w,r,Y,C)};
Z.prototype._attributeToProperty=function(w,r,Y){if(!this.__serializing){var C=this.__dataAttributes;w=C&&C[w]||w;this[w]=this._deserializeValue(r,Y||this.constructor.typeForProperty(w))}};
Z.prototype._propertyToAttribute=function(w,r,Y){this.__serializing=!0;Y=arguments.length<3?this[w]:Y;this._valueToNodeAttribute(this,Y,r||this.constructor.attributeNameForProperty(w));this.__serializing=!1};
Z.prototype._valueToNodeAttribute=function(w,r,Y){r=this._serializeValue(r);if(Y==="class"||Y==="name"||Y==="slot")w=(0,_.Cy)(w);r===void 0?w.removeAttribute(Y):w.setAttribute(Y,r===""&&window.trustedTypes?window.trustedTypes.emptyScript:r)};
Z.prototype._serializeValue=function(w){switch(typeof w){case "boolean":return w?"":void 0;default:return w!=null?w.toString():void 0}};
Z.prototype._deserializeValue=function(w,r){switch(r){case Boolean:return w!==null;case Number:return Number(w);default:return w}};
return Z});var Bt7=0,aQI=[];var akW=si(function(q){function Z(C){C=Object.getPrototypeOf(C);return C.prototype instanceof Y?C:null}
function w(C){if(!C.hasOwnProperty("__ownProperties")){var d=null;if(C.hasOwnProperty("properties")){var O=C.properties;if(O){d={};for(var H in O){var L=O[H];d[H]=typeof L==="function"?{type:L}:L}}}C.__ownProperties=d}return C.__ownProperties}
var r=zWe(q),Y=function(){return r.apply(this,arguments)||this};
_.z(Y,r);Y.finalize=function(){if(!this.hasOwnProperty("__finalized")){var C=Z(this);C&&C.finalize();this.__finalized=!0;this._finalizeClass()}};
Y._finalizeClass=function(){var C=w(this);C&&this.createProperties(C)};
Y.typeForProperty=function(C){return(C=this._properties[C])&&C.type};
Y.prototype._initializeProperties=function(){Bt7++;this.constructor.finalize();r.prototype._initializeProperties.call(this)};
Y.prototype.connectedCallback=function(){r.prototype.connectedCallback&&r.prototype.connectedCallback.call(this);this._enableProperties()};
Y.prototype.disconnectedCallback=function(){r.prototype.disconnectedCallback&&r.prototype.disconnectedCallback.call(this)};
_.My.Object.defineProperties(Y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var C=this;if(!this.hasOwnProperty("__observedAttributes")){n_j(this.prototype);var d=this._properties;this.__observedAttributes=d?Object.keys(d).map(function(O){return C.prototype._addPropertyToAttributeMap(O)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var C=Z(this);this.__properties=Object.assign({},C&&C._properties,w(this))}return this.__properties}}});
return Y});var Qgj={},E_O=/-[a-z]/g,xl8=/([A-Z])/g;for(var nOm={},QZ7=HTMLElement.prototype;QZ7;){for(var EO7=Object.getOwnPropertyNames(QZ7),x9D=0;x9D<EO7.length;x9D++)nOm[EO7[x9D]]=!0;QZ7=Object.getPrototypeOf(QZ7)}var TtK=window.trustedTypes?function(q){return trustedTypes.isHTML(q)||trustedTypes.isScript(q)||trustedTypes.isScriptURL(q)}:function(){return!1},U9v=si(function(q){var Z=zWe(q);
q=function(){return Z.apply(this,arguments)||this};
_.z(q,Z);q.createPropertiesForAttributes=function(){for(var w=this.observedAttributes,r=0;r<w.length;r++)this.prototype._createPropertyAccessor(hY(w[r]))};
q.attributeNameForProperty=function(w){return yo(w)};
q.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);Z.prototype._initializeProperties.call(this)};
q.prototype._initializeProtoProperties=function(w){for(var r in w)this._setProperty(r,w[r])};
q.prototype._ensureAttribute=function(w,r){this.hasAttribute(w)||this._valueToNodeAttribute(this,r,w)};
q.prototype._serializeValue=function(w){switch(typeof w){case "object":if(w instanceof Date)return w.toString();if(w){if(TtK(w))return w;try{return JSON.stringify(w)}catch(r){return""}}default:return Z.prototype._serializeValue.call(this,w)}};
q.prototype._deserializeValue=function(w,r){switch(r){case Object:try{var Y=JSON.parse(w)}catch(C){Y=w}break;case Array:try{Y=JSON.parse(w)}catch(C){Y=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+w)}break;case Date:Y=isNaN(w)?String(w):Number(w);Y=new Date(Y);break;default:Y=Z.prototype._deserializeValue.call(this,w,r)}return Y};
q.prototype._definePropertyAccessor=function(w,r){if(!nOm[w]){var Y=this[w];Y!==void 0&&(this.__data?this._setPendingProperty(w,Y):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[w]=Y))}Z.prototype._definePropertyAccessor.call(this,w,r)};
q.prototype._hasAccessor=function(w){return this.__dataHasAccessor&&this.__dataHasAccessor[w]};
q.prototype._isPropertyPending=function(w){return!!(this.__dataPending&&w in this.__dataPending)};
return q});var k9K={"dom-if":!0,"dom-repeat":!0},KSe=!1,sZX=!1,Ikg=function(){var q=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(Z){return Z}});
return function(Z,w,r){w=w.getAttribute(r);q&&r.startsWith("on-")?Z.setAttribute(r,q.createScript(w,r)):Z.setAttribute(r,w)}}(),c0J=si(function(q){var Z=function(){return q.apply(this,arguments)||this};
_.z(Z,q);Z._parseTemplate=function(w,r){if(!w._templateInfo){var Y=w._templateInfo={};Y.nodeInfoList=[];Y.nestedTemplate=!!r;Y.stripWhiteSpace=r&&r.stripWhiteSpace||w.hasAttribute&&w.hasAttribute("strip-whitespace");this._parseTemplateContent(w,Y,{parent:null})}return w._templateInfo};
Z._parseTemplateContent=function(w,r,Y){return this._parseTemplateNode(w.content,r,Y)};
Z._parseTemplateNode=function(w,r,Y){var C=!1;w.localName!="template"||w.hasAttribute("preserve-content")?w.localName==="slot"&&(r.hasInsertionPoint=!0):C=this._parseTemplateNestedTemplate(w,r,Y)||C;if(!KSe){KSe=!0;var d=document.createElement("textarea");d.placeholder="a";sZX=d.placeholder===d.textContent}sZX&&w.localName==="textarea"&&w.placeholder&&w.placeholder===w.textContent&&(w.textContent=null);w.firstChild&&this._parseTemplateChildNodes(w,r,Y);w.hasAttributes&&w.hasAttributes()&&(C=this._parseTemplateNodeAttributes(w,
r,Y)||C);return C||Y.noted};
Z._parseTemplateChildNodes=function(w,r,Y){if(w.localName!=="script"&&w.localName!=="style")for(var C=w.firstChild,d=0,O;C;C=O){if(C.localName=="template"){var H=C.getAttribute("is");if(H&&k9K[H])for(O=C,O.removeAttribute("is"),C=O.ownerDocument.createElement(H),O.parentNode.replaceChild(C,O),C.appendChild(O);O.attributes.length;)H=O.attributes[0].name,Ikg(C,O,H),O.removeAttribute(H)}O=C.nextSibling;if(C.nodeType===Node.TEXT_NODE){for(H=O;H&&H.nodeType===Node.TEXT_NODE;)C.textContent+=H.textContent,
O=H.nextSibling,w.removeChild(H),H=O;if(r.stripWhiteSpace&&!C.textContent.trim()){w.removeChild(C);continue}}H={parentIndex:d,parentInfo:Y};this._parseTemplateNode(C,r,H)&&(H.infoIndex=r.nodeInfoList.push(H)-1);C.parentNode&&d++}};
Z._parseTemplateNestedTemplate=function(w,r,Y){r=this._parseTemplate(w,r);(r.content=w.content.ownerDocument.createDocumentFragment()).appendChild(w.content);Y.templateInfo=r;return!0};
Z._parseTemplateNodeAttributes=function(w,r,Y){for(var C=!1,d=Array.from(w.attributes),O=d.length-1,H;H=d[O];O--)C=this._parseTemplateNodeAttribute(w,r,Y,H.name,H.value)||C;return C};
Z._parseTemplateNodeAttribute=function(w,r,Y,C,d){return C.slice(0,3)==="on-"?(w.removeAttribute(C),Y.events=Y.events||[],Y.events.push({name:C.slice(3),value:d}),!0):C==="id"?(Y.id=d,!0):!1};
Z._contentForTemplate=function(w){var r=w._templateInfo;return r&&r.content||w.content};
Z.prototype._stampTemplate=function(w,r){w&&!w.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(w);r=r||this.constructor._parseTemplate(w);var Y=r.nodeInfoList;w=document.importNode(r.content||w.content,!0);w.__noInsertionPoint=!r.hasInsertionPoint;var C=w.nodeList=Array(Y.length);w.$={};for(var d=0,O=Y.length,H=void 0;d<O&&(H=Y[d]);d++){var L=C[d]=Tnj(w,H);H.id&&(w.$[H.id]=L);var S=L,v=H,R=r;v.templateInfo&&(S._templateInfo=v.templateInfo,S._parentTemplateInfo=
R);if(H.events&&H.events.length)for(S=0,v=H.events,R=void 0;S<v.length&&(R=v[S]);S++)this._addMethodEventListenerToNode(L,R.name,R.value,this)}return w};
Z.prototype._addMethodEventListenerToNode=function(w,r,Y,C){Y=UlT(C||w,Y);this._addEventListenerToNode(w,r,Y);return Y};
Z.prototype._addEventListenerToNode=function(w,r,Y){w.addEventListener(r,Y)};
Z.prototype._removeEventListenerFromNode=function(w,r,Y){w.removeEventListener(r,Y)};
return Z});var Ya=0,dJ=[],MZe={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},FSg=/[A-Z]/,Ntm=function(q,Z,w,r,Y){var C=Y?g5(q):q;if(Z=Z[C])for(C=0;C<Z.length;C++){var d=Z[C];if(d.info.lastRun!==Ya&&(!Y||MeO(q,d.trigger))){d.info.lastRun=Ya;d=d.info;for(var O=w,H=r,L=0,S=O.length-1,v=-1;L<=S;){var R=L+S>>1,B=H.get(O[R].methodInfo)-H.get(d.methodInfo);if(B<0)L=R+1;else if(B>0)S=R-1;else{v=R;break}}v<
0&&(v=S+1);O.splice(v,0,d)}}},qn2=[],lkg=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"),cB=si(function(q){var Z=c0J(U9v(q));
q=function(){var w=Z.call(this)||this;w.__isPropertyEffectsClient=!0;return w};
_.z(q,Z);q.prototype._initializeProperties=function(){Z.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};
q.prototype._registerHost=function(){if(I7.length){var w=I7[I7.length-1];w._enqueueClient(this);this.__dataHost=w}};
q.prototype._initializeProtoProperties=function(w){this.__data=Object.create(w);this.__dataPending=Object.create(w);this.__dataOld={}};
q.prototype._initializeInstanceProperties=function(w){var r=this.__readOnly,Y;for(Y in w)r&&r[Y]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[Y]=this.__dataPending[Y]=w[Y])};
q.prototype._addPropertyEffect=function(w,r,Y){this._createPropertyAccessor(w,r=="__readOnly");var C=cQ9(this,r,!0)[w];C||(C=this[r][w]=[]);C.push(Y)};
q.prototype._removePropertyEffect=function(w,r,Y){w=cQ9(this,r,!0)[w];Y=w.indexOf(Y);Y>=0&&w.splice(Y,1)};
q.prototype._hasPropertyEffect=function(w,r){r=this[r];return!(!r||!r[w])};
q.prototype._hasReadOnlyEffect=function(w){return this._hasPropertyEffect(w,"__readOnly")};
q.prototype._hasNotifyEffect=function(w){return this._hasPropertyEffect(w,"__notifyEffects")};
q.prototype._hasReflectEffect=function(w){return this._hasPropertyEffect(w,"__reflectEffects")};
q.prototype._hasComputedEffect=function(w){return this._hasPropertyEffect(w,"__computeEffects")};
q.prototype._setPendingPropertyOrPath=function(w,r,Y,C){if(C||g5(Array.isArray(w)?w[0]:w)!==w){if(!C&&(C=rJ(this,w),w=IQT(this,w,r),!w||!Z.prototype._shouldPropertyChange.call(this,w,r,C)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(w,r,Y)){if(Y=this.__dataLinkedPaths)for(var d in Y)C=Y[d],qy(d,w)?(C=Zw(d,C,w),this._setPendingPropertyOrPath(C,r,!0,!0)):qy(C,w)&&(C=Zw(C,d,w),this._setPendingPropertyOrPath(C,r,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[w])return this._setPendingProperty(w,
r,Y);this[w]=r}return!1};
q.prototype._setUnmanagedPropertyToNode=function(w,r,Y){if(Y!==w[r]||typeof Y=="object")r==="className"&&(w=(0,_.Cy)(w)),w[r]=Y};
q.prototype._setPendingProperty=function(w,r,Y){var C=this.__dataHasPaths&&ix(w);if(this._shouldPropertyChange(w,r,(C?this.__dataTemp:this.__data)[w])){this.__dataPending||(this.__dataPending={},this.__dataOld={});w in this.__dataOld||(this.__dataOld[w]=this.__data[w]);C?this.__dataTemp[w]=r:this.__data[w]=r;this.__dataPending[w]=r;if(C||this.__notifyEffects&&this.__notifyEffects[w])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[w]=Y;return!0}return!1};
q.prototype._setProperty=function(w,r){this._setPendingProperty(w,r,!0)&&this._invalidateProperties()};
q.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
q.prototype._enqueueClient=function(w){this.__dataPendingClients=this.__dataPendingClients||[];w!==this&&this.__dataPendingClients.push(w)};
q.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
q.prototype.__enableOrFlushClients=function(){var w=this.__dataPendingClients;if(w){this.__dataPendingClients=null;for(var r=0;r<w.length;r++){var Y=w[r];Y.__dataEnabled?Y.__dataPending&&Y._flushProperties():Y._enableProperties()}}};
q.prototype._readyClients=function(){this.__enableOrFlushClients()};
q.prototype.setProperties=function(w,r){for(var Y in w)!r&&this.__readOnly&&this.__readOnly[Y]||this._setPendingPropertyOrPath(Y,w[Y],!0);this._invalidateProperties()};
q.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
q.prototype._propertiesChanged=function(w,r,Y){w=this.__dataHasPaths;this.__dataHasPaths=!1;var C;if(C=this.__computeEffects)if(uRW){Ya++;var d=XQN(this),O=[],H;for(H in r)Ntm(H,C,O,d,w);for(;H=O.shift();)AQ2(this,"",r,Y,H)&&Ntm(H.methodInfo,C,O,d,w);Object.assign(Y,this.__dataOld);Object.assign(r,this.__dataPending);this.__dataPending=null}else for(d=r;ex(this,C,d,Y,w);)Object.assign(Y,this.__dataOld),Object.assign(r,this.__dataPending),d=this.__dataPending,this.__dataPending=null;C=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(r,Y,w);this._flushClients();ex(this,this.__reflectEffects,r,Y,w);ex(this,this.__observeEffects,r,Y,w);if(C){d=this.__notifyEffects;O=Ya++;for(var L in C)if(C[L]){if(H=d){var S=d;H=O;var v=L,R=r,B=Y,n=w,x=!1,K=n?g5(v):v;if(S=S[K]){K=0;for(var k=S.length,G=void 0;K<k&&(G=S[K]);K++)G.info&&G.info.lastRun===H||n&&!MeO(v,G.trigger)||(G.info&&(G.info.lastRun=H),G.fn(this,v,R,B,G.info,n,void 0),x=!0)}H=x}if(H)var rz=!0;else{if(H=w)H=L,v=r,R=g5(H),R!==
H?(R=yo(R)+"-changed",Nn2(this,R,v[H],H),H=!0):H=!1;H&&(rz=!0)}}var f;rz&&(f=this.__dataHost)&&f._invalidateProperties&&f._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
q.prototype._propagatePropertyChanges=function(w,r,Y){this.__propagateEffects&&ex(this,this.__propagateEffects,w,r,Y);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,w,r,Y)};
q.prototype._runEffectsForTemplate=function(w,r,Y,C){var d=this,O=function(H,L){ex(d,w.propertyEffects,H,Y,L,w.nodeList);for(var S=w.firstChild;S;S=S.nextSibling)d._runEffectsForTemplate(S,H,Y,L)};
w.runEffects?w.runEffects(O,r,C):O(r,C)};
q.prototype.linkPaths=function(w,r){w=wJ(w);r=wJ(r);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[w]=r};
q.prototype.unlinkPaths=function(w){w=wJ(w);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[w]};
q.prototype.notifySplices=function(w,r){var Y={path:""};w=rJ(this,w,Y);Yn8(this,w,Y.path,r)};
q.prototype.get=function(w,r){return rJ(r||this,w)};
q.prototype.set=function(w,r,Y){Y?IQT(Y,w,r):this.__readOnly&&this.__readOnly[w]||this._setPendingPropertyOrPath(w,r,!0)&&this._invalidateProperties()};
q.prototype.push=function(w){var r=_.Ta.apply(1,arguments),Y={path:""},C=rJ(this,w,Y),d=C.length,O=C.push.apply(C,_.Ju(r));r.length&&OA(this,C,Y.path,d,r.length,[]);return O};
q.prototype.pop=function(w){var r={path:""};w=rJ(this,w,r);var Y=!!w.length,C=w.pop();Y&&OA(this,w,r.path,w.length,0,[C]);return C};
q.prototype.splice=function(w,r,Y){var C=_.Ta.apply(3,arguments),d={path:""},O=rJ(this,w,d);r<0?r=O.length-Math.floor(-r):r&&(r=Math.floor(r));var H=arguments.length===2?O.splice(r):O.splice.apply(O,[r,Y].concat(_.Ju(C)));(C.length||H.length)&&OA(this,O,d.path,r,C.length,H);return H};
q.prototype.shift=function(w){var r={path:""};w=rJ(this,w,r);var Y=!!w.length,C=w.shift();Y&&OA(this,w,r.path,0,0,[C]);return C};
q.prototype.unshift=function(w){var r=_.Ta.apply(1,arguments),Y={path:""},C=rJ(this,w,Y),d=C.unshift.apply(C,_.Ju(r));r.length&&OA(this,C,Y.path,0,r.length,[]);return d};
q.prototype.notifyPath=function(w,r){if(arguments.length==1){var Y={path:""};r=rJ(this,w,Y);Y=Y.path}else Y=Array.isArray(w)?wJ(w):w;this._setPendingPropertyOrPath(Y,r,!0,!0)&&this._invalidateProperties()};
q.prototype._createReadOnlyProperty=function(w,r){this._addPropertyEffect(w,"__readOnly");r&&(this["_set"+(w[0].toUpperCase()+w.substring(1))]=function(Y){this._setProperty(w,Y)})};
q.prototype._createPropertyObserver=function(w,r,Y){var C={property:w,method:r,dynamicFn:!!Y};this._addPropertyEffect(w,"__observeEffects",{fn:FBO,info:C,trigger:{name:w}});Y&&this._addPropertyEffect(r,"__observeEffects",{fn:FBO,info:C,trigger:{name:r}})};
q.prototype._createMethodObserver=function(w,r){var Y=wHT(w);if(!Y)throw Error("zd`"+w);iPI(this,Y,"__observeEffects",mlj,null,r)};
q.prototype._createNotifyingProperty=function(w){this._addPropertyEffect(w,"__notifyEffects",{fn:lQ9,info:{eventName:yo(w)+"-changed",property:w}})};
q.prototype._createReflectedProperty=function(w){var r=this.constructor.attributeNameForProperty(w);r[0]==="-"?console.warn("Property "+w+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(w,"__reflectEffects",{fn:GsO,info:{attrName:r}})};
q.prototype._createComputedProperty=function(w,r,Y){var C=wHT(r);if(!C)throw Error("Ad`"+r);r=iPI(this,C,"__computeEffects",AQ2,w,Y);cQ9(this,"__computeInfo")[w]=r};
q.prototype._marshalArgs=function(w,r,Y){for(var C=this.__data,d=[],O=0,H=w.length;O<H;O++){var L=w[O],S=L.name,v=L.structured,R=L.wildcard,B=L.value;L.literal||(R?(L=qy(S,r),v=rWI(C,Y,L?r:S),B={path:L?r:S,value:v,base:L?rJ(C,S):v}):B=v?rWI(C,Y,S):C[S]);if(V4&&!this._overrideLegacyUndefined&&B===void 0&&w.length>1)return dJ;d[O]=B}return d};
q.addPropertyEffect=function(w,r,Y){this.prototype._addPropertyEffect(w,r,Y)};
q.createPropertyObserver=function(w,r,Y){this.prototype._createPropertyObserver(w,r,Y)};
q.createMethodObserver=function(w,r){this.prototype._createMethodObserver(w,r)};
q.createNotifyingProperty=function(w){this.prototype._createNotifyingProperty(w)};
q.createReadOnlyProperty=function(w,r){this.prototype._createReadOnlyProperty(w,r)};
q.createReflectedProperty=function(w){this.prototype._createReflectedProperty(w)};
q.createComputedProperty=function(w,r,Y){this.prototype._createComputedProperty(w,r,Y)};
q.bindTemplate=function(w){return this.prototype._bindTemplate(w)};
q.prototype._bindTemplate=function(w,r){var Y=this.constructor._parseTemplate(w),C=this.__preBoundTemplateInfo==Y;if(!C)for(var d in Y.propertyEffects)this._createPropertyAccessor(d);r?(Y=Object.create(Y),Y.wasPreBound=C,this.__templateInfo?(w=w._parentTemplateInfo||this.__templateInfo,r=w.lastChild,Y.parent=w,w.lastChild=Y,(Y.previousSibling=r)?r.nextSibling=Y:w.firstChild=Y):this.__templateInfo=Y):this.__preBoundTemplateInfo=Y;return Y};
q._addTemplatePropertyEffect=function(w,r,Y){(w.hostProps=w.hostProps||{})[r]=!0;w=w.propertyEffects=w.propertyEffects||{};(w[r]=w[r]||[]).push(Y)};
q.prototype._stampTemplate=function(w,r){r=r||this._bindTemplate(w,!0);I7.push(this);w=Z.prototype._stampTemplate.call(this,w,r);I7.pop();r.nodeList=w.nodeList;if(!r.wasPreBound)for(var Y=r.childNodes=[],C=w.firstChild;C;C=C.nextSibling)Y.push(C);w.templateInfo=r;Y=r.nodeList;C=r.nodeInfoList;if(C.length)for(var d=0;d<C.length;d++){var O=Y[d],H=C[d].bindings;if(H)for(var L=0;L<H.length;L++){var S=H[L],v=O,R=S;if(R.isCompound){for(var B=v.__dataCompoundStorage||(v.__dataCompoundStorage={}),n=R.parts,
x=Array(n.length),K=0;K<n.length;K++)x[K]=n[K].literal;n=R.target;B[n]=x;R.literal&&R.kind=="property"&&(n==="className"&&(v=(0,_.Cy)(v)),v[n]=R.literal)}yQT(O,this,S)}O.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients());return w};
q.prototype._removeBoundDom=function(w){w=w.templateInfo;var r=w.previousSibling,Y=w.nextSibling,C=w.parent;r?r.nextSibling=Y:C&&(C.firstChild=Y);Y?Y.previousSibling=r:C&&(C.lastChild=r);w.nextSibling=w.previousSibling=null;w=w.childNodes;for(r=0;r<w.length;r++)Y=w[r],(0,_.Cy)((0,_.Cy)(Y).parentNode).removeChild(Y)};
q._parseTemplateNode=function(w,r,Y){var C=Z._parseTemplateNode.call(this,w,r,Y);if(w.nodeType===Node.TEXT_NODE){var d=this._parseBindings(w.textContent,r);d&&(w.textContent=g_9(d)||" ",hk1(this,r,Y,"text","textContent",d),C=!0)}return C};
q._parseTemplateNodeAttribute=function(w,r,Y,C,d){var O=this._parseBindings(d,r);if(O){d=C;var H="property";FSg.test(C)?H="attribute":C[C.length-1]=="$"&&(C=C.slice(0,-1),H="attribute");var L=g_9(O);L&&H=="attribute"&&(C=="class"&&w.hasAttribute("class")&&(L+=" "+w.getAttribute(C)),w.setAttribute(C,L));H=="attribute"&&d=="disable-upgrade$"&&w.setAttribute(C,"");w.localName==="input"&&d==="value"&&w.setAttribute(d,"");w.removeAttribute(d);H==="property"&&(C=hY(C));hk1(this,r,Y,H,C,O,L);return!0}return Z._parseTemplateNodeAttribute.call(this,
w,r,Y,C,d)};
q._parseTemplateNestedTemplate=function(w,r,Y){var C=Z._parseTemplateNestedTemplate.call(this,w,r,Y),d=w.parentNode,O=Y.templateInfo,H=d.localName==="dom-if",L=d.localName==="dom-repeat";xn&&(H||L)&&(d.removeChild(w),Y=Y.parentInfo,Y.templateInfo=O,Y.noted=!0,C=!1);w=O.hostProps;if(TZ&&H)w&&(r.hostProps=Object.assign(r.hostProps||{},w),xn||(Y.parentInfo.noted=!0));else for(var S in w)hk1(this,r,Y,"property","_host_"+S,[{mode:"{",source:S,dependencies:[S],hostProp:!0}]);return C};
q._parseBindings=function(w,r){for(var Y=[],C=0,d;(d=lkg.exec(w))!==null;){d.index>C&&Y.push({literal:w.slice(C,d.index)});C=d[1][0];var O=!!d[2];d=d[3].trim();var H=!1,L="",S=-1;C=="{"&&(S=d.indexOf("::"))>0&&(L=d.substring(S+2),d=d.substring(0,S),H=!0);S=wHT(d);var v=[];if(S){var R=S,B=R.args;R=R.methodName;for(var n=0;n<B.length;n++){var x=B[n];x.literal||v.push(x)}if((B=r.dynamicFns)&&B[R]||S.static)v.push(R),S.dynamicFn=!0}else v.push(d);Y.push({source:d,mode:C,negate:O,customEvent:H,signature:S,
dependencies:v,event:L});C=lkg.lastIndex}C&&C<w.length&&(w=w.substring(C))&&Y.push({literal:w});return Y.length?Y:null};
q._evaluateBinding=function(w,r,Y,C,d,O){w=r.signature?mlj(w,Y,C,d,r.signature):Y!=r.source?rJ(w,r.source):O&&ix(Y)?rJ(w,Y):w.__data[Y];r.negate&&(w=!w);return w};
_.My.Object.defineProperties(q.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return MZe}}});
return q}),I7=[];var G9p=window.ShadyCSS&&window.ShadyCSS.cssBuild,ML=si(function(q){function Z(r,Y,C,d){if(!G9p){for(var O=Y.content.querySelectorAll("style"),H=PiT(Y),L=ddI(C),S=Y.content.firstElementChild,v=0;v<L.length;v++){var R=L[v];R.textContent=r._processStyleText(R.textContent,d);Y.content.insertBefore(R,S)}for(S=L=0;S<H.length;S++)v=H[S],R=O[L],R!==v?(v=v.cloneNode(!0),R.parentNode.insertBefore(v,R)):L++,v.textContent=r._processStyleText(v.textContent,d)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(Y,
C);if(SEp&&G9p&&OzK&&(Y=Y.content.querySelectorAll("style"))){var B="";Array.from(Y).forEach(function(n){B+=n.textContent;n.parentNode.removeChild(n)});
r._styleSheet=new CSSStyleSheet;r._styleSheet.replaceSync(B)}}
var w=akW(cB(q));q=function(){return w.call(this)||this};
_.z(q,w);q._finalizeClass=function(){w._finalizeClass.call(this);var r;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(r=this.__ownObservers)&&this.createObservers(r,this._properties);this._prepareTemplate()};
q._prepareTemplate=function(){var r=this.template;r&&(typeof r==="string"?(console.error("template getter must return HTMLTemplateElement"),r=null):zl||(r=r.cloneNode(!0)));this.prototype._template=r};
q.createProperties=function(r){for(var Y in r){var C=this.prototype,d=Y,O=r[Y],H=r;O.computed&&(O.readOnly=!0);O.computed&&(C._hasReadOnlyEffect(d)?console.warn("Cannot redefine computed property '"+d+"'."):C._createComputedProperty(d,O.computed,H));O.readOnly&&!C._hasReadOnlyEffect(d)?C._createReadOnlyProperty(d,!O.computed):O.readOnly===!1&&C._hasReadOnlyEffect(d)&&console.warn("Cannot make readOnly property '"+d+"' non-readOnly.");O.reflectToAttribute&&!C._hasReflectEffect(d)?C._createReflectedProperty(d):
O.reflectToAttribute===!1&&C._hasReflectEffect(d)&&console.warn("Cannot make reflected property '"+d+"' non-reflected.");O.notify&&!C._hasNotifyEffect(d)?C._createNotifyingProperty(d):O.notify===!1&&C._hasNotifyEffect(d)&&console.warn("Cannot make notify property '"+d+"' non-notify.");O.observer&&C._createPropertyObserver(d,O.observer,H[O.observer]);C._addPropertyToAttributeMap(d)}};
q.createObservers=function(r,Y){for(var C=this.prototype,d=0;d<r.length;d++)C._createMethodObserver(r[d],Y)};
q.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);w.prototype._initializeProperties.call(this);this.rootPath=HzK;this.importPath=this.constructor.importPath;var r=this.constructor;if(!r.hasOwnProperty("__propertyDefaults")){r.__propertyDefaults=null;var Y=r._properties,C;for(C in Y){var d=Y[C];"value"in d&&(r.__propertyDefaults=r.__propertyDefaults||{},r.__propertyDefaults[C]=d)}}if(r=r.__propertyDefaults)for(var O in r)Y=r[O],
this._canApplyPropertyDefault(O)&&(Y=typeof Y.value=="function"?Y.value.call(this):Y.value,this._hasAccessor(O)?this._setPendingProperty(O,Y,!0):this[O]=Y)};
q.prototype._canApplyPropertyDefault=function(r){return!this.hasOwnProperty(r)};
q._processStyleText=function(r,Y){return Rk6(r,Y)};
q._finalizeTemplate=function(r){var Y=this.prototype._template;if(Y&&!Y.__polymerFinalized){Y.__polymerFinalized=!0;var C=this.importPath;C=C?_.fb(C):"";Z(this,Y,r,C);this.prototype._bindTemplate(Y)}};
q.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);w.prototype.connectedCallback.call(this)};
q.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);w.prototype.ready.call(this)};
q.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));w.prototype._readyClients.call(this)};
q.prototype._attachDom=function(r){var Y=(0,_.Cy)(this);if(Y.attachShadow)return r?(Y.shadowRoot||(Y.attachShadow({mode:"open",shadyUpgradeFragment:r}),Y.shadowRoot.appendChild(r),this.constructor._styleSheet&&(Y.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),oOX&&window.ShadyDOM&&window.ShadyDOM.flushInitial(Y.shadowRoot),Y.shadowRoot):null;throw Error("Cd");};
q.prototype.updateStyles=function(r){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,r)};
q.prototype.resolveUrl=function(r,Y){!Y&&this.importPath&&(Y=_.fb(this.importPath));return _.fb(r,Y)};
q._parseTemplateContent=function(r,Y,C){Y.dynamicFns=Y.dynamicFns||this._properties;return w._parseTemplateContent.call(this,r,Y,C)};
q._addTemplatePropertyEffect=function(r,Y,C){!Q4||Y in this._properties||C.info.part.signature&&C.info.part.signature.static||C.info.part.hostProp||r.nestedTemplate||console.warn("Property '"+Y+"' used in template but not declared in 'properties'; attribute will not be observed.");return w._addTemplatePropertyEffect.call(this,r,Y,C)};
_.My.Object.defineProperties(q,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var r=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof r==="function"&&(r=r());if(r===void 0){if(r=this.hasOwnProperty("is")){r=this.is;var Y=null;if(r&&(!EA||WSh)&&(Y=H0.import(r,"template"),EA&&!Y))throw Error("Bd`"+r);r=Y}r=r||Object.getPrototypeOf(this.prototype).constructor.template}this._template=r}return this._template},
set:function(r){this._template=r}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var r=this.importMeta;r?this._importPath=bPI(r.url):this._importPath=(r=H0.import(this.is))&&r.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return q});var pXW=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(q){return q}}),L1e=function(q,Z){XX7(q,Z);
this.value=Z.reduce(function(w,r,Y){return w+Snj(r)+q[Y+1]},q[0]).toString()},XX7;
L1e.prototype.toString=function(){return this.value};
_.m9X=function(q){var Z=_.Ta.apply(1,arguments);XX7(q,Z);var w=document.createElement("template");Z=Z.reduce(function(r,Y,C){if(Y instanceof HTMLTemplateElement)Y=Y.innerHTML;else if(Y instanceof L1e)Y=Snj(Y);else throw Error("Ed`"+Y);return r+Y+q[C+1]},q[0]);
pXW&&(Z=pXW.createHTML(Z));w.innerHTML=Z;return w};
XX7=function(q,Z){if(!Array.isArray(q)||!Array.isArray(q.raw)||Z.length!==q.length-1)throw new TypeError("Fd");};var FJ=ML(HTMLElement);var A0D=si(function(q){var Z=ML(q);q=function(){var w=Z.call(this)||this;w.__lastItems=null;w.__lastMulti=null;w.__selectedMap=null;return w};
_.z(q,Z);q.prototype.__updateSelection=function(w,r){var Y=r.path;Y=="items"?(r=r.base||[],Y=this.__lastItems,w!==this.__lastMulti&&this.clearSelection(),Y&&(Y=urj(r,Y),this.__applySplices(Y)),this.__lastItems=r,this.__lastMulti=w):r.path=="items.splices"?this.__applySplices(r.value.indexSplices):(w=Y.slice(6),r=parseInt(w,10),w.indexOf(".")<0&&w==r&&this.__deselectChangedIdx(r))};
q.prototype.__applySplices=function(w){for(var r=this,Y=this.__selectedMap,C={},d=0;d<w.length;C={s$jscomp$108:void 0},d++){C.s$jscomp$108=w[d];Y.forEach(function(S){return function(v,R){v<S.s$jscomp$108.index||(v>=S.s$jscomp$108.index+S.s$jscomp$108.removed.length?Y.set(R,v+S.s$jscomp$108.addedCount-S.s$jscomp$108.removed.length):Y.set(R,-1))}}(C));
for(var O=0;O<C.s$jscomp$108.addedCount;O++){var H=C.s$jscomp$108.index+O;Y.has(this.items[H])&&Y.set(this.items[H],H)}}this.__updateLinks();var L=0;Y.forEach(function(S,v){S<0?(r.multi?r.splice("selected",L,1):r.selected=r.selectedItem=null,Y.delete(v)):L++})};
q.prototype.__updateLinks=function(){var w=this;this.__dataLinkedPaths={};if(this.multi){var r=0;this.__selectedMap.forEach(function(Y){Y>=0&&w.linkPaths("items."+Y,"selected."+r++)})}else this.__selectedMap.forEach(function(Y){w.linkPaths("selected","items."+Y);
w.linkPaths("selectedItem","items."+Y)})};
q.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
q.prototype.isSelected=function(w){return this.__selectedMap.has(w)};
q.prototype.isIndexSelected=function(w){return this.isSelected(this.items[w])};
q.prototype.__deselectChangedIdx=function(w){var r=this,Y=this.__selectedIndexForItemIndex(w);if(Y>=0){var C=0;this.__selectedMap.forEach(function(d,O){Y==C++&&r.deselect(O)})}};
q.prototype.__selectedIndexForItemIndex=function(w){if(w=this.__dataLinkedPaths["items."+w])return parseInt(w.slice(9),10)};
q.prototype.deselect=function(w){var r=this.__selectedMap.get(w);if(r>=0){this.__selectedMap.delete(w);var Y;this.multi&&(Y=this.__selectedIndexForItemIndex(r));this.__updateLinks();this.multi?this.splice("selected",Y,1):this.selected=this.selectedItem=null}};
q.prototype.deselectIndex=function(w){this.deselect(this.items[w])};
q.prototype.select=function(w){this.selectIndex(this.items.indexOf(w))};
q.prototype.selectIndex=function(w){var r=this.items[w];this.isSelected(r)?this.toggle&&this.deselectIndex(w):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(r,w),this.__updateLinks(),this.multi?this.push("selected",r):this.selected=this.selectedItem=r)};
_.My.Object.defineProperties(q,{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 q}),fkp=A0D(FJ),NL=function(){return fkp.apply(this,arguments)||this};
_.z(NL,fkp);_.My.Object.defineProperties(NL,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(NL.is,NL);var D9p=window.Polymer;window.Polymer=function(q){return window.Polymer._polymerFn(q)};
D9p&&Object.assign(Polymer,D9p);Polymer._polymerFn=function(){throw Error("Gd");};/*

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:Rk6,resolveUrl:_.fb,pathFromUrl:bPI};Polymer.DomModule=H0;Polymer.Async={timeOut:_.Kj,animationFrame:_.$c,idlePeriod:bz9,microTask:b9};Polymer.dedupingMixin=si;Polymer.wrap=_.Cy;Polymer.PropertiesChanged=zWe;Polymer.telemetry={instanceCount:Bt7,incrementInstanceCount:function(){Bt7++},
registrations:aQI,register:n_j,dumpRegistrations:function(){aQI.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=akW;Polymer.CaseMap={dashToCamelCase:hY,camelToDashCase:yo};Polymer.PropertyAccessors=U9v;Polymer.TemplateStamp=c0J;Polymer.Path={isPath:ix,root:g5,isAncestor:ksj,isDescendant:qy,translate:Zw,matches:KB8,normalize:wJ,split:sg2,get:rJ,set:IQT,isDeep:ix};Polymer.Settings={useShadow:B0,useNativeCSSProperties:eWp,useNativeCustomElements:CF1,get rootPath(){return HzK},setRootPath:function(q){HzK=q},
get sanitizeDOMValue(){return P0},setSanitizeDOMValue:function(q){P0=q},
get passiveTouchGestures(){return xd9},setPassiveTouchGestures:function(q){xd9=q},
get strictTemplatePolicy(){return EA},setStrictTemplatePolicy:function(q){EA=q},
get allowTemplateFromDomModule(){return WSh},setAllowTemplateFromDomModule:function(q){WSh=q},
get legacyOptimizations(){return zl},setLegacyOptimizations:function(q){zl=q},
get syncInitialRender(){return oOX},setSyncInitialRender:function(q){oOX=q},
get legacyUndefined(){return V4},setLegacyUndefined:function(q){V4=q},
get legacyWarnings(){return Q4},setLegacyWarnings:function(q){Q4=q},
get orderedComputed(){return uRW},setOrderedComputed:function(q){uRW=q},
get fastDomIf(){return TZ},setFastDomIf:function(q){TZ=q},
get removeNestedTemplates(){return xn},setRemoveNestedTemplates:function(q){xn=q},
get suppressTemplateNotifications(){return Ui},setSuppressTemplateNotifications:Ui};Polymer.rootPath!==void 0&&(HzK=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(P0=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(xd9=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(EA=Polymer.strictTemplatePolicy);WSh=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(zl=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(oOX=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(V4=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Q4=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(uRW=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(TZ=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(xn=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Ui=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return P0},
set:function(q){P0=q}});Polymer.PropertyEffects=cB;Polymer.StyleGather={stylesFromModules:Cie,stylesFromModule:eDe,stylesFromTemplate:PiT,stylesFromModuleImports:ddI,cssFromModules:OdT,cssFromModule:VlO,cssFromTemplate:HdN,cssFromModuleImports:function(q){return(q=H0.import(q))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(q):""}};Polymer.ElementMixin=ML;Polymer.updateStyles=function(q){window.ShadyCSS&&window.ShadyCSS.styleDocument(q)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:urj};Polymer.html=_.m9X;Polymer.htmlLiteral=function(q){return new L1e(q,_.Ta.apply(1,arguments))};Polymer.Element=FJ;Polymer.ArraySelectorMixin=A0D;Polymer.ArraySelector=NL;var hWJ=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,y07=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,yze=/@media\s(.*)/;var RDj=null,tlT=window.HTMLImports&&window.HTMLImports.whenReady||null,bdj;var izv=null,la=null,pj=function(){this.customStyles=[];this.enqueued=!1;JWj(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},gOh=function(q){!q.enqueued&&la&&(q.enqueued=!0,JWj(la))};
pj.prototype.addCustomStyle=function(q){q.__seenByShadyCSS||(q.__seenByShadyCSS=!0,this.customStyles.push(q),gOh(this))};
pj.prototype.getStyleForCustomStyle=function(q){if(q.__shadyCSSCachedStyle)return q.__shadyCSSCachedStyle;var Z;q.getStyle?Z=q.getStyle():Z=q;return Z};
pj.prototype.processStyles=function(){for(var q=this.customStyles,Z=0;Z<q.length;Z++){var w=q[Z];if(!w.__shadyCSSCachedStyle){var r=this.getStyleForCustomStyle(w);r&&(r=r.__appliedElement||r,izv&&izv(r),w.__shadyCSSCachedStyle=r)}}return q};
pj.prototype.addCustomStyle=pj.prototype.addCustomStyle;pj.prototype.getStyleForCustomStyle=pj.prototype.getStyleForCustomStyle;pj.prototype.processStyles=pj.prototype.processStyles;Object.defineProperties(pj.prototype,{transformCallback:{get:function(){return izv},
set:function(q){izv=q}},
validateCallback:{get:function(){return la},
set:function(q){var Z=!1;la||(Z=!0);la=q;Z&&gOh(this)}}});var B11=!(window.ShadyDOM&&window.ShadyDOM.inUse),zD6,c0;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(c0=window.ShadyCSS.cssBuild);var q8h=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?zD6=window.ShadyCSS.nativeCss:window.ShadyCSS?(abI(window.ShadyCSS),window.ShadyCSS=void 0):abI(window.WebComponents&&window.WebComponents.flags);var f8T=zD6;var Zo7=new pj;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(q,Z){Zo7.processStyles();v4N(q,Z)},
styleElement:function(){Zo7.processStyles()},
styleDocument:function(q){Zo7.processStyles();v4N(document.body,q)},
getComputedStyleValue:function(q,Z){return j0N(q,Z)},
flushCustomStyles:function(){},
nativeCss:f8T,nativeShadow:B11,cssBuild:c0,disableRuntime:q8h});window.ShadyCSS.CustomStyleInterface=Zo7;var wPe=window.ShadyCSS.CustomStyleInterface,XJ=function(){var q=HTMLElement.call(this)||this;q._style=null;wPe.addCustomStyle(q);return q};
_.z(XJ,HTMLElement);XJ.prototype.getStyle=function(){if(this._style)return this._style;var q=this.querySelector("style");if(!q)return null;this._style=q;var Z=q.getAttribute("include");Z&&(q.removeAttribute("include"),q.textContent=OdT(Z)+q.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
XJ.prototype.getStyle=XJ.prototype.getStyle;window.customElements.define("custom-style",XJ);Polymer.CustomStyle=XJ;var mw=function(){this._timer=this._callback=this._asyncModule=null},AH,Y8g;
mw.prototype.setConfig=function(q,Z){var w=this;this._asyncModule=q;this._callback=Z;this._timer=this._asyncModule.run(function(){w._timer=null;AH.delete(w);w._callback()})};
mw.prototype.cancel=function(){this.isActive()&&(rr1(this),AH.delete(this))};
var rr1=function(q){q.isActive()&&(q._asyncModule.cancel(q._timer),q._timer=null)};
mw.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
mw.prototype.isActive=function(){return this._timer!=null};
_.fj=function(q,Z,w){q instanceof mw?rr1(q):q=new mw;q.setConfig(Z,w);return q};
AH=new Set;_.D7=function(q){AH.add(q)};
Y8g=function(){var q=!!AH.size;AH.forEach(function(Z){try{Z.flush()}catch(w){setTimeout(function(){throw w;})}});
return q};var Q0I=typeof document.head.style.touchAction==="string",n4X=["mousedown","mousemove","mouseup","click"],cWj=[0,1,4,2],$Zm;try{$Zm=(new MouseEvent("test",{buttons:1})).buttons===1}catch(q){$Zm=!1}var IbX=$Zm,E4e=!1;(function(){try{var q=Object.defineProperty({},"passive",{get:function(){E4e=!0}});
window.addEventListener("test",null,q);window.removeEventListener("test",null,q)}catch(Z){}})();
var UdT=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),kf2=[],eyD={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},hDT={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},K1O=function(q){var Z=q.sourceCapabilities;if(!Z||Z.firesTouchEvents)if(q.__polymerGesturesHandled={skip:!0},q.type==="click"){Z=!1;for(var w=lbI(q),r=0;r<w.length;r++){if(w[r].nodeType===Node.ELEMENT_NODE)if(w[r].localName==="label")kf2.push(w[r]);
else if(eyD[w[r].localName]){var Y=w[r];var C=Array.prototype.slice.call(Y.labels||[]);if(!C.length){C=[];try{var d=Y.getRootNode();if(Y.id){var O=d.querySelectorAll("label[for = '"+Y.id+"']");for(Y=0;Y<O.length;Y++)C.push(O[Y])}}catch(H){}}for(Y=0;Y<C.length;Y++)Z=Z||kf2.indexOf(C[Y])>-1}if(w[r]===Cq7)return}Z||(q.preventDefault(),q.stopPropagation())}},Cq7=null,hH=null,pHz=0,XH2=0,GfO=-1,md2=!1;
document.addEventListener("touchend",function(q){hH||s0z(!0);Cq7=lbI(q)[0];hH=_.fj(hH,_.Kj.after(2500),function(){s0z();hH=Cq7=null})},E4e?{passive:!0}:!1);
var lbI=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(q){return q.composedPath&&q.composedPath()||[]},v0={},Ly=[];
AW9({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){u9(this.info)},
mousedown:function(q){if(o_(q)){var Z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q),w=this;F12(this.info,function(r){o_(r)||(Jl("up",Z,r),u9(w.info))},function(r){o_(r)&&Jl("up",Z,r);
u9(w.info)});
Jl("down",Z,q)}},
touchstart:function(q){Jl("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q),q.changedTouches[0],q)},
touchend:function(q){Jl("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q),q.changedTouches[0],q)}});
AW9({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(q){this.moves.length>2&&this.moves.shift();this.moves.push(q)},
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;u9(this.info)},
mousedown:function(q){if(o_(q)){var Z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q),w=this,r=function(Y){var C=Y.clientX,d=Y.clientY;fb2(w.info,C,d)&&(w.info.state=w.info.started?Y.type==="mouseup"?"end":"track":"start",w.info.state==="start"&&Sx("tap"),w.info.addMove({x:C,y:d}),o_(Y)||(w.info.state="end",u9(w.info)),Z&&DdI(w.info,Z,Y),w.info.started=!0)};
F12(this.info,r,function(Y){w.info.started&&r(Y);u9(w.info)});
this.info.x=q.clientX;this.info.y=q.clientY}},
touchstart:function(q){q=q.changedTouches[0];this.info.x=q.clientX;this.info.y=q.clientY},
touchmove:function(q){var Z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q);q=q.changedTouches[0];var w=q.clientX,r=q.clientY;fb2(this.info,w,r)&&(this.info.state==="start"&&Sx("tap"),this.info.addMove({x:w,y:r}),DdI(this.info,Z,q),this.info.state="track",this.info.started=!0)},
touchend:function(q){var Z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q);q=q.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:q.clientX,y:q.clientY}),DdI(this.info,Z,q))}});
AW9({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(q){o_(q)&&(this.info.x=q.clientX,this.info.y=q.clientY)},
click:function(q){o_(q)&&yW8(this.info,q)},
touchstart:function(q){q=q.changedTouches[0];this.info.x=q.clientX;this.info.y=q.clientY},
touchend:function(q){yW8(this.info,q.changedTouches[0],q)}});var Pq7=si(function(q){var Z=function(){return q.apply(this,arguments)||this};
_.z(Z,q);Z.prototype._addEventListenerToNode=function(w,r,Y){jx(w,r,Y)||q.prototype._addEventListenerToNode.call(this,w,r,Y)};
Z.prototype._removeEventListenerFromNode=function(w,r,Y){tl(w,r,Y)||q.prototype._removeEventListenerFromNode.call(this,w,r,Y)};
return Z});var yA=si(function(q){var Z=function(){return q.apply(this,arguments)||this};
_.z(Z,q);Z.prototype._shouldPropertyChange=function(w,r,Y){return idX(this,w,r,Y,!0)};
return Z}),dZe=si(function(q){var Z=function(){return q.apply(this,arguments)||this};
_.z(Z,q);Z.prototype._shouldPropertyChange=function(w,r,Y){return idX(this,w,r,Y,this.mutableData)};
_.My.Object.defineProperties(Z,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return Z});
yA._mutablePropertyChange=idX;var g4j=!1;var VaX=Pq7(dZe(cB(HTMLElement))),ia=function(){var q=VaX.call(this)||this;if(EA)throw Error("Hd");q.root=null;q.$=null;q.__children=null;return q};
_.z(ia,VaX);_.e=ia.prototype;_.e.attributeChangedCallback=function(){this.mutableData=!0};
_.e.connectedCallback=function(){qg2()||(this.style.display="none");this.render()};
_.e.disconnectedCallback=function(){this.__removeChildren()};
_.e.__insertChildren=function(){(0,_.Cy)((0,_.Cy)(this).parentNode).insertBefore(this.root,this)};
_.e.__removeChildren=function(){if(this.__children)for(var q=0;q<this.__children.length;q++)this.root.appendChild(this.__children[q])};
_.e.render=function(){var q=this;if(!this.__children){var Z=Z||this.querySelector("template");if(!Z){var w=new MutationObserver(function(){if(Z=q.querySelector("template"))w.disconnect(),q.render();else throw Error("Id");});
w.observe(this,{childList:!0});return}this.root=this._stampTemplate(Z);this.$=this.root.$;this.__children=[];for(var r=this.root.firstChild;r;r=r.nextSibling)this.__children[this.__children.length]=r;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.My.Object.defineProperties(ia,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",ia);Polymer.Debouncer=mw;Polymer.Gestures={gestures:v0,recognizers:Ly,deepTargetFind:N1e,addListener:jx,removeListener:tl,register:AW9,setTouchAction:_.R_,prevent:Sx,resetMouseCanceller:function(){hH&&hH.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:jx,remove:tl};Polymer.GestureEventListeners=Pq7;Polymer.MutableData=yA;Polymer.OptionalMutableData=dZe;Polymer.DomBind=ia;_.g2=function(){do{var q=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var Z=Y8g()}while(q||Z)};var Zcz=null;wIT.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:wIT,writable:!0}});var VFI=cB(wIT),dY8=yA(VFI),Ooh=cB(function(){}),a_=function(q){var Z=Ooh.call(this)||this;
Z._configureProperties(q);Z.root=Z._stampTemplate(Z.__dataHost);var w=[];Z.children=w;for(var r=Z.root.firstChild;r;r=r.nextSibling)w.push(r),r.__templatizeInstance=Z;Z.__templatizeOwner&&Z.__templatizeOwner.__hideTemplateChildren__&&Z._showHideChildren(!0);w=Z.__templatizeOptions;(q&&w.instanceProps||!w.instanceProps)&&Z._enableProperties();return Z};
_.z(a_,Ooh);_.e=a_.prototype;_.e._configureProperties=function(q){if(this.__templatizeOptions.forwardHostProp)for(var Z in this.__hostProps)this._setPendingProperty(Z,this.__dataHost["_host_"+Z]);for(var w in q)this._setPendingProperty(w,q[w])};
_.e.forwardHostProp=function(q,Z){this._setPendingPropertyOrPath(q,Z,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.e._addEventListenerToNode=function(q,Z,w){var r=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(q,Z,function(C){C.model=r;w(C)});
else{var Y=this.__dataHost.__dataHost;Y&&Y._addEventListenerToNode(q,Z,w)}};
_.e._showHideChildren=function(q){Ygj(q,this.children)};
_.e._setUnmanagedPropertyToNode=function(q,Z,w){q.__hideTemplateChildren__&&q.nodeType==Node.TEXT_NODE&&Z=="textContent"?q.__polymerTextContent__=w:Ooh.prototype._setUnmanagedPropertyToNode.call(this,q,Z,w)};
_.e.dispatchEvent=function(){return!0};
_.My.Object.defineProperties(a_.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var q=this.__parentModel;if(!q){var Z;q=this;do q=q.__dataHost.__dataHost;while((Z=q.__templatizeOptions)&&!Z.parentModel);this.__parentModel=q}return q}}});
var eL9=yA(a_);var qB=function(){var q=FJ.call(this)||this;q.__renderDebouncer=null;q._lastIf=!1;q.__hideTemplateChildren__=!1;return q};
_.z(qB,FJ);_.e=qB.prototype;_.e.__debounceRender=function(){var q=this;this.__renderDebouncer=_.fj(this.__renderDebouncer,b9,function(){return q.__render()});
_.D7(this.__renderDebouncer)};
_.e.disconnectedCallback=function(){FJ.prototype.disconnectedCallback.call(this);var q=(0,_.Cy)(this).parentNode;q&&(q.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Cy)(q).host)||this.__teardownInstance()};
_.e.connectedCallback=function(){FJ.prototype.connectedCallback.call(this);qg2()||(this.style.display="none");this.if&&this.__debounceRender()};
_.e.__ensureTemplate=function(){var q=this;if(!this.__template){var Z=this._templateInfo?this:(0,_.Cy)(this).querySelector("template");if(!Z){var w=new MutationObserver(function(){if((0,_.Cy)(q).querySelector("template"))w.disconnect(),q.__render();else throw Error("Ld");});
w.observe(this,{childList:!0});return!1}this.__template=Z}return!0};
_.e.__ensureInstance=function(){var q=(0,_.Cy)(this).parentNode;if(this.__hasInstance()){var Z=this.__getInstanceNodes();if(Z&&Z.length&&(0,_.Cy)(this).previousSibling!==Z[Z.length-1])for(var w=0,r=void 0;w<Z.length&&(r=Z[w]);w++)(0,_.Cy)(q).insertBefore(r,this)}else{if(!q||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(q)}return!0};
_.e.render=function(){_.g2()};
_.e.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Ui&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.e.__hasInstance=function(){};
_.e.__getInstanceNodes=function(){};
_.e.__createAndInsertInstance=function(){};
_.e.__teardownInstance=function(){};
_.e._showHideChildren=function(){};
_.My.Object.defineProperties(qB,{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:qB.prototype.__debounceRender},restamp:{type:Boolean,observer:qB.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var Hov=function(){var q=qB.call(this)||this;q.__instance=null;q.__syncInfo=null;return q};
_.z(Hov,qB);_.e=Hov.prototype;_.e.__hasInstance=function(){return!!this.__instance};
_.e.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.e.__createAndInsertInstance=function(q){var Z=this,w=this.__dataHost||this;if(EA&&!this.__dataHost)throw Error("Jd");var r=w._bindTemplate(this.__template,!0);r.runEffects=function(Y,C,d){var O=Z.__syncInfo;if(Z.if)O&&(Z.__syncInfo=null,Z._showHideChildren(),C=Object.assign(O.changedProps,C)),Y(C,d);else if(Z.__instance)if(O||(O=Z.__syncInfo={runEffects:Y,changedProps:{}}),d)for(var H in C)Y=g5(H),O.changedProps[Y]=Z.__dataHost[Y];else Object.assign(O.changedProps,C)};
this.__instance=w._stampTemplate(this.__template,r);(0,_.Cy)(q).insertBefore(this.__instance,this)};
_.e.__syncHostProperties=function(){var q=this.__syncInfo;q&&(this.__syncInfo=null,q.runEffects(q.changedProps,!1))};
_.e.__teardownInstance=function(){var q=this.__dataHost||this;this.__instance&&(q._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.e._showHideChildren=function(){var q=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==q&&(this.__instance.__hidden=q,Ygj(q,this.__instance.templateInfo.childNodes));q||this.__syncHostProperties()};
var W2p=function(){var q=qB.call(this)||this;q.__ctor=null;q.__instance=null;q.__invalidProps=null;return q};
_.z(W2p,qB);_.e=W2p.prototype;_.e.__hasInstance=function(){return!!this.__instance};
_.e.__getInstanceNodes=function(){return this.__instance.children};
_.e.__createAndInsertInstance=function(q){this.__ctor||(this.__ctor=ny(this.__template,this,{mutableData:!0,forwardHostProp:function(Z,w){this.__instance&&(this.if?this.__instance.forwardHostProp(Z,w):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[g5(Z)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Cy)(q).insertBefore(this.__instance.root,this)};
_.e.__teardownInstance=function(){if(this.__instance){var q=this.__instance.children;if(q&&q.length){var Z=(0,_.Cy)(q[0]).parentNode;if(Z){Z=(0,_.Cy)(Z);for(var w=0,r=void 0;w<q.length&&(r=q[w]);w++)Z.removeChild(r)}}this.__instance=this.__invalidProps=null}};
_.e.__syncHostProperties=function(){var q=this.__invalidProps;if(q){this.__invalidProps=null;for(var Z in q)this.__instance._setPendingProperty(Z,this.__dataHost[Z]);this.__instance._flushProperties()}};
_.e._showHideChildren=function(){var q=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==q&&(this.__instance.__hidden=q,this.__instance._showHideChildren(q));q||this.__syncHostProperties()};
_.C5=TZ?Hov:W2p;customElements.define(_.C5.is,_.C5);Polymer.enqueueDebouncer=_.D7;Polymer.flush=_.g2;Polymer.Templatize={templatize:ny,modelForElement:Lg2};Polymer.TemplateInstanceBase=a_;Polymer.DomIf=_.C5;var ozm=dZe(FJ),eH=function(){var q=ozm.call(this)||this;q.__instances=[];q.__renderDebouncer=null;q.__itemsIdxToInstIdx={};q.__chunkCount=null;q.__renderStartTime=null;q.__itemsArrayChanged=!1;q.__shouldMeasureChunk=!1;q.__shouldContinueChunking=!1;q.__chunkingId=0;q.__sortFn=null;q.__filterFn=null;q.__observePaths=null;q.__ctor=null;q.__isDetached=!0;q.template=null;return q};
_.z(eH,ozm);_.e=eH.prototype;_.e.disconnectedCallback=function(){ozm.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var q=0;q<this.__instances.length;q++)this.__detachInstance(q);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.e.connectedCallback=function(){ozm.prototype.connectedCallback.call(this);qg2()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var q=(0,_.Cy)((0,_.Cy)(this).parentNode),Z=0;Z<this.__instances.length;Z++)this.__attachInstance(Z,q);this.__chunkingId&&this.__render()}};
_.e.__ensureTemplatized=function(){var q=this;if(!this.__ctor){var Z=this.template=this._templateInfo?this:this.querySelector("template");if(!Z){var w=new MutationObserver(function(){if(q.querySelector("template"))w.disconnect(),q.__render();else throw Error("Md");});
w.observe(this,{childList:!0});return!1}var r={};r[this.as]=!0;r[this.indexAs]=!0;r[this.itemsIndexAs]=!0;this.__ctor=ny(Z,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(Y,C){for(var d=this.__instances,O=0,H=void 0;O<d.length&&(H=d[O]);O++)H.forwardHostProp(Y,C)},
notifyInstanceProp:function(Y,C,d){KB8(this.as,C)&&(Y=Y[this.itemsIndexAs],C==this.as&&(this.items[Y]=d),C=Zw(this.as,"items."+Y,C),this.notifyPath(C,d))}})}return!0};
_.e.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.e.__functionFromPropertyValue=function(q){if(typeof q==="string"){var Z=this.__getMethodHost();return function(){return Z[q].apply(Z,arguments)}}return q};
_.e.__sortChanged=function(q){this.__sortFn=this.__functionFromPropertyValue(q);this.items&&this.__debounceRender(this.__render)};
_.e.__filterChanged=function(q){this.__filterFn=this.__functionFromPropertyValue(q);this.items&&this.__debounceRender(this.__render)};
_.e.__computeFrameTime=function(q){return Math.ceil(1E3/q)};
_.e.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.e.__handleObservedPaths=function(q){if(this.__sortFn||this.__filterFn)if(!q)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var Z=this.__observePaths,w=0;w<Z.length;w++)q.indexOf(Z[w])===0&&this.__debounceRender(this.__render,this.delay)};
_.e.__itemsChanged=function(q){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(q.path,q.value)||(q.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.e.__debounceRender=function(q,Z){Z=Z===void 0?0:Z;this.__renderDebouncer=_.fj(this.__renderDebouncer,Z>0?_.Kj.after(Z):b9,q.bind(this));_.D7(this.__renderDebouncer)};
_.e.render=function(){this.__debounceRender(this.__render);_.g2()};
_.e.__render=function(){var q=this;if(this.__ensureTemplatized()){var Z=this.items||[],w=this.__sortAndFilterItems(Z),r=this.__calculateLimit(w.length);this.__updateInstances(Z,r,w);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){q.__chunkingId=null;q.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Ui&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.e.__sortAndFilterItems=function(q){for(var Z=this,w=Array(q.length),r=0;r<q.length;r++)w[r]=r;this.__filterFn&&(w=w.filter(function(Y,C,d){return Z.__filterFn(q[Y],C,d)}));
this.__sortFn&&w.sort(function(Y,C){return Z.__sortFn(q[Y],q[C])});
return w};
_.e.__calculateLimit=function(q){var Z=q,w=this.__instances.length;if(this.initialCount){var r;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(Z=Math.min(q,this.initialCount),this.__chunkCount=(r=Math.max(Z-w,0))||1):(r=Math.min(Math.max(q-w,0),this.__chunkCount),Z=Math.min(w+r,q));this.__shouldMeasureChunk=r===this.__chunkCount;this.__shouldContinueChunking=Z<q;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return Z};
_.e.__continueChunking=function(){if(this.__shouldMeasureChunk){var q=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/q*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.e.__updateInstances=function(q,Z,w){var r=this.__itemsIdxToInstIdx={},Y;for(Y=0;Y<Z;Y++){var C=this.__instances[Y],d=w[Y],O=q[d];r[d]=Y;C?(C._setPendingProperty(this.as,O),C._setPendingProperty(this.indexAs,Y),C._setPendingProperty(this.itemsIndexAs,d),C._flushProperties()):this.__insertInstance(O,Y,d)}for(q=this.__instances.length-1;q>=Y;q--)this.__detachAndRemoveInstance(q)};
_.e.__detachInstance=function(q){q=this.__instances[q];for(var Z=(0,_.Cy)(q.root),w=0;w<q.children.length;w++)Z.appendChild(q.children[w]);return q};
_.e.__attachInstance=function(q,Z){Z.insertBefore(this.__instances[q].root,this)};
_.e.__detachAndRemoveInstance=function(q){this.__detachInstance(q);this.__instances.splice(q,1)};
_.e.__stampInstance=function(q,Z,w){var r={};r[this.as]=q;r[this.indexAs]=Z;r[this.itemsIndexAs]=w;return new this.__ctor(r)};
_.e.__insertInstance=function(q,Z,w){q=this.__stampInstance(q,Z,w);w=(w=this.__instances[Z+1])?w.children[0]:this;(0,_.Cy)((0,_.Cy)(this).parentNode).insertBefore(q.root,w);return this.__instances[Z]=q};
_.e._showHideChildren=function(q){for(var Z=0;Z<this.__instances.length;Z++)this.__instances[Z]._showHideChildren(q)};
_.e.__handleItemPath=function(q,Z){var w=q.slice(6),r=w.indexOf(".");q=r<0?w:w.substring(0,r);if(q==parseInt(q,10)){w=r<0?"":w.substring(r+1);this.__handleObservedPaths(w);if(q=this.__instances[this.__itemsIdxToInstIdx[q]])q._setPendingPropertyOrPath(this.as+(w?"."+w:""),Z,!1,!0),q._flushProperties();return!0}};
_.e.itemForElement=function(q){return(q=this.modelForElement(q))&&q[this.as]};
_.e.indexForElement=function(q){return(q=this.modelForElement(q))&&q[this.indexAs]};
_.e.modelForElement=function(q){return Lg2(this.template,q)};
_.My.Object.defineProperties(eH,{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:eH.prototype.__sortChanged},filter:{type:Function,observer:eH.prototype.__filterChanged},observe:{type:String,observer:eH.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Ui,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.*)"]}}});
eH.prototype._setRenderedItemCount=function(){};
customElements.define(eH.is,eH);Polymer.DomRepeat=eH;var uNJ=function(q,Z){var w=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=q;this.callback=Z;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){w._schedule()};
this.connect();this._schedule()},L2m=function(q){var Z=(0,_.Cy)(q);
if(xa(q))return Z.assignedNodes({flatten:!0});q=[];for(var w=0;w<Z.childNodes.length;w++){var r=Z.childNodes[w];xa(r)?q.push.apply(q,_.Ju((0,_.Cy)(r).assignedNodes({flatten:!0}))):q.push(r)}return q};
_.e=uNJ.prototype;_.e.connect=function(){var q=this;xa(this._target)?this._listenSlots([this._target]):(0,_.Cy)(this._target).children&&(this._listenSlots((0,_.Cy)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(Z){q._processMutations(Z)}):(this._nativeChildrenObserver=new MutationObserver(function(Z){q._processMutations(Z)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.e.disconnect=function(){xa(this._target)?this._unlistenSlots([this._target]):(0,_.Cy)(this._target).children&&(this._unlistenSlots((0,_.Cy)(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};
_.e._schedule=function(){var q=this;this._scheduled||(this._scheduled=!0,b9.run(function(){return q.flush()}))};
_.e._processMutations=function(q){this._processSlotMutations(q);this.flush()};
_.e._processSlotMutations=function(q){if(q)for(var Z=0;Z<q.length;Z++){var w=q[Z];w.addedNodes&&this._listenSlots(w.addedNodes);w.removedNodes&&this._unlistenSlots(w.removedNodes)}};
_.e.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 q={target:this._target,addedNodes:[],removedNodes:[]},Z=L2m(this._target),w=urj(Z,this._effectiveNodes),r=0,Y=void 0;r<w.length&&(Y=w[r]);r++)for(var C=0,d=void 0;C<Y.removed.length&&(d=Y.removed[C]);C++)q.removedNodes.push(d);
r=0;for(Y=void 0;r<w.length&&(Y=w[r]);r++)for(C=Y.index;C<Y.index+Y.addedCount;C++)q.addedNodes.push(Z[C]);this._effectiveNodes=Z;Z=!1;if(q.addedNodes.length||q.removedNodes.length)Z=!0,this.callback.call(this._target,q);return Z};
_.e._listenSlots=function(q){for(var Z=0;Z<q.length;Z++){var w=q[Z];xa(w)&&w.addEventListener("slotchange",this._boundSchedule)}};
_.e._unlistenSlots=function(q){for(var Z=0;Z<q.length;Z++){var w=q[Z];xa(w)&&w.removeEventListener("slotchange",this._boundSchedule)}};var ZG=Element.prototype,S87=ZG.matches||ZG.matchesSelector||ZG.mozMatchesSelector||ZG.msMatchesSelector||ZG.oMatchesSelector||ZG.webkitMatchesSelector,vzX=function(q,Z){return S87.call(q,Z)},Tl=function(q){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(q);
this.node=q},bo7;
_.e=Tl.prototype;_.e.observeNodes=function(q){return new uNJ(this.node,q)};
_.e.unobserveNodes=function(q){q.disconnect()};
_.e.notifyObserver=function(){};
_.e.deepContains=function(q){if((0,_.Cy)(this.node).contains(q))return!0;var Z=q;for(q=q.ownerDocument;Z&&Z!==q&&Z!==this.node;)Z=(0,_.Cy)(Z).parentNode||(0,_.Cy)(Z).host;return Z===this.node};
_.e.getOwnerRoot=function(){return(0,_.Cy)(this.node).getRootNode()};
_.e.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Cy)(this.node).assignedNodes({flatten:!0}):[]};
_.e.getDestinationInsertionPoints=function(){for(var q=[],Z=(0,_.Cy)(this.node).assignedSlot;Z;)q.push(Z),Z=(0,_.Cy)(Z).assignedSlot;return q};
_.e.importNode=function(q,Z){return(0,_.Cy)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(q,Z)};
_.e.getEffectiveChildNodes=function(){return L2m(this.node)};
_.e.queryDistributedElements=function(q){for(var Z=this.getEffectiveChildNodes(),w=[],r=0,Y=Z.length,C=void 0;r<Y&&(C=Z[r]);r++)C.nodeType===Node.ELEMENT_NODE&&vzX(C,q)&&w.push(C);return w};
_.My.Object.defineProperties(Tl.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var q=this.node;return q._activeElement!==void 0?q._activeElement:q.activeElement}}});
var w4=function(q){this.event=q};
_.My.Object.defineProperties(w4.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 jJ1=Tl;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var tah=window.ShadyDOM.Wrapper,RyK=function(){return tah.apply(this,arguments)||this};
_.z(RyK,tah);Object.getOwnPropertyNames(Tl.prototype).forEach(function(q){q!="activeElement"&&q!="constructor"&&(RyK.prototype[q]=Tl.prototype[q])});
vZ8(RyK.prototype,["classList"]);jJ1=RyK;Object.defineProperties(w4.prototype,{localTarget:{get:function(){var q=this.event.currentTarget;q=q&&_.os(q).getOwnerRoot();for(var Z=this.path,w=0;w<Z.length;w++){var r=Z[w];if(_.os(r).getOwnerRoot()===q)return r}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else Sg1(),vZ8(Tl.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),jlX();bo7=jJ1;_.os=function(q){q=q||document;if(q instanceof jJ1)return q;if(q instanceof w4)return q;var Z=q.__domApi;Z||(q instanceof Event?Z=new w4(q):Z=new jJ1(q),q.__domApi=Z);return Z};var Jrp=/:host\(:dir\((ltr|rtl)\)\)/g,zye=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,B3X=/:dir\((?:ltr|rtl)\)/,a5W=!(!window.ShadyDOM||!window.ShadyDOM.inUse),ka=[],r4=null,UA="",nzJ=si(function(q){a5W||r4||(UA=document.documentElement.getAttribute("dir"),r4=new MutationObserver(tFN),r4.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var Z=U9v(q);q=function(){var w=Z.call(this)||this;w.__autoDirOptOut=!1;return w};
_.z(q,Z);q._processStyleText=function(w,r){w=Z._processStyleText.call(this,w,r);!a5W&&B3X.test(w)&&(w=this._replaceDirInCssText(w),this.__activateDir=!0);return w};
q._replaceDirInCssText=function(w){w=w.replace(Jrp,':host([dir="$1"])');return w=w.replace(zye,':host([dir="$2"]) $1')};
q.prototype.ready=function(){Z.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
q.prototype.connectedCallback=function(){Z.prototype.connectedCallback&&Z.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(r4&&r4.takeRecords().length&&tFN(),ka.push(this),this.__autoDirOptOut||this.setAttribute("dir",UA))};
q.prototype.disconnectedCallback=function(){Z.prototype.disconnectedCallback&&Z.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var w=ka.indexOf(this);w>-1&&ka.splice(w,1)}};
q.__activateDir=!1;return q});var QJp=function(q){for(;q;){var Z=Object.getOwnPropertyDescriptor(q,"observedAttributes");if(Z)return Z.get;q=Object.getPrototypeOf(q.prototype).constructor}return function(){return[]}};
si(function(q){var Z=ML(q),w=QJp(Z);q=function(){return Z.call(this)||this};
_.z(q,Z);q.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:Z.prototype._initializeProperties.call(this)};
q.prototype._enableProperties=function(){this.__isUpgradeDisabled||Z.prototype._enableProperties.call(this)};
q.prototype._canApplyPropertyDefault=function(r){return Z.prototype._canApplyPropertyDefault.call(this,r)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(r))};
q.prototype.attributeChangedCallback=function(r,Y,C,d){r=="disable-upgrade"?this.__isUpgradeDisabled&&C==null&&(Z.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Cy)(this).isConnected&&Z.prototype.connectedCallback.call(this)):Z.prototype.attributeChangedCallback.call(this,r,Y,C,d)};
q.prototype.connectedCallback=function(){this.__isUpgradeDisabled||Z.prototype.connectedCallback.call(this)};
q.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||Z.prototype.disconnectedCallback.call(this)};
_.My.Object.defineProperties(q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return w.call(this).concat("disable-upgrade")}}});
return q});var Ky=!1,bcI=[],sA=[];var a81=window.ShadyDOM,nZ9=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",EZj):document.readyState==="interactive"||document.readyState==="complete"?EZj():window.addEventListener("DOMContentLoaded",EZj);var UY9=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=""},xYe=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TS2=/@import[^;]*;/gim,MFN=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Fge=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,NS8=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,l8X=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,I8j=/^@[^\s]*keyframes/,
sl1=/\s+/g;var GP8={};var mY2=Promise.resolve();var EzK=new Set;var xZD=/;\s*/m,T37=/^\s*(initial)|(inherit)\s*$/,UZh=/\s*!important/,kI9=function(){this._map={}};
kI9.prototype.set=function(q,Z){q=q.trim();this._map[q]={properties:Z,dependants:{}}};
kI9.prototype.get=function(q){q=q.trim();return this._map[q]||null};
var K22=null,YD=function(){this._measureElement=this._currentElement=null;this._map=new kI9};
_.e=YD.prototype;_.e.detectMixin=function(q){q=y07.test(q)||hWJ.test(q);y07.lastIndex=0;hWJ.lastIndex=0;return q};
_.e.transformTemplate=function(q,Z){if(q._gatheredStyle===void 0){var w=[];for(var r=q.content.querySelectorAll("style"),Y=0;Y<r.length;Y++){var C=r[Y];if(C.hasAttribute("shady-unscoped")){if(!B11){var d=C.textContent;if(!EzK.has(d)){EzK.add(d);var O=document.createElement("style");O.setAttribute("shady-unscoped","");O.textContent=d;document.head.appendChild(O)}C.parentNode.removeChild(C)}}else w.push(C.textContent),C.parentNode.removeChild(C)}(w=w.join("").trim())?(r=document.createElement("style"),
r.textContent=w,q.content.insertBefore(r,q.content.firstChild),w=r):w=null;q._gatheredStyle=w}return(q=q._gatheredStyle)?this.JSC$9033_transformStyle(q,Z):null};
_.e.JSC$9033_transformStyle=function(q,Z){Z=Z===void 0?"":Z;var w=hL6(q);this.transformRules(w,Z);q.textContent=DYz(w);return w};
_.e.transformCustomStyle=function(q){var Z=this,w=hL6(q);icz(w,function(r){r.selector===":root"&&(r.selector="html");Z.transformRule(r)});
q.textContent=DYz(w);return w};
_.e.transformRules=function(q,Z){var w=this;this._currentElement=Z;icz(q,function(r){w.transformRule(r)});
this._currentElement=null};
_.e.transformRule=function(q){q.cssText=sJ7(this,q.parsedCssText,q);q.selector===":root"&&(q.selector=":host > *")};
var sJ7=function(q,Z,w){Z=Z.replace(hWJ,function(r,Y,C,d){return q._produceCssProperties(r,Y,C,d,w)});
return q._consumeCssProperties(Z,w)};
_.e=YD.prototype;_.e._getInitialValueForProperty=function(q){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(q)};
_.e._fallbacksFromPreviousRules=function(q){for(var Z=this,w=q;w.parent;)w=w.parent;var r={},Y=!1;icz(w,function(C){(Y=Y||C===q)||C.selector===q.selector&&Object.assign(r,Z._cssTextToMap(C.parsedCssText))});
return r};
_.e._consumeCssProperties=function(q,Z){for(var w;w=y07.exec(q);){var r=w[0],Y=w[1];w=w.index;var C=w+r.indexOf("@apply"),d=w+r.length;r=q.slice(0,C);q=q.slice(d);C=Z?this._fallbacksFromPreviousRules(Z):{};Object.assign(C,this._cssTextToMap(r));Y=this._atApplyToCssProperties(Y,C);q=r+Y+q;y07.lastIndex=w+Y.length}return q};
_.e._atApplyToCssProperties=function(q,Z){q=q.replace(xZD,"");var w=[],r=this._map.get(q);r||(this._map.set(q,{}),r=this._map.get(q));if(r){this._currentElement&&(r.dependants[this._currentElement]=!0);var Y,C=r.properties;for(Y in C){var d=Z&&Z[Y];r=[Y,": var(",q,"_-_",Y];d&&r.push(",",d.replace(UZh,""));r.push(")");UZh.test(C[Y])&&r.push(" !important");w.push(r.join(""))}}return w.join("; ")};
_.e._replaceInitialOrInherit=function(q,Z){var w=T37.exec(Z);w&&(Z=w[1]?this._getInitialValueForProperty(q):"apply-shim-inherit");return Z};
_.e._cssTextToMap=function(q,Z){Z=Z===void 0?!1:Z;q=q.split(";");for(var w,r,Y={},C=0;C<q.length;C++)if(w=q[C])r=w.split(":"),r.length>1&&(w=r[0].trim(),r=r.slice(1).join(":"),Z&&(r=this._replaceInitialOrInherit(w,r)),Y[w]=r);return Y};
_.e._invalidateMixinEntry=function(q){if(K22)for(var Z in q.dependants)Z!==this._currentElement&&K22(Z)};
_.e._produceCssProperties=function(q,Z,w,r,Y){var C=this;w&&gZz(w,function(n,x){x&&C._map.get(x)&&(r="@apply "+x+";")});
if(!r)return q;var d=this._consumeCssProperties(""+r,Y);Y=q.slice(0,q.indexOf("--"));var O=d=this._cssTextToMap(d,!0),H=this._map.get(Z),L=H&&H.properties;L?O=Object.assign(Object.create(L),d):this._map.set(Z,O);var S=[],v,R=!1;for(v in O){var B=d[v];B===void 0&&(B="initial");!L||v in L||(R=!0);S.push(Z+"_-_"+v+": "+B)}R&&this._invalidateMixinEntry(H);H&&(H.properties=O);w&&(Y=q+";"+Y);return Y+S.join("; ")+";"};
YD.prototype.detectMixin=YD.prototype.detectMixin;YD.prototype.transformStyle=YD.prototype.JSC$9033_transformStyle;YD.prototype.transformCustomStyle=YD.prototype.transformCustomStyle;YD.prototype.transformRules=YD.prototype.transformRules;YD.prototype.transformRule=YD.prototype.transformRule;YD.prototype.transformTemplate=YD.prototype.transformTemplate;YD.prototype._separator="_-_";Object.defineProperty(YD.prototype,"invalidCallback",{get:function(){return K22},
set:function(q){K22=q}});var $D=new YD,I5g=function(){this.customStyleInterface=null;$D.invalidCallback=pI1},eg=function(q){!q.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(q.customStyleInterface=window.ShadyCSS.CustomStyleInterface,q.customStyleInterface.transformCallback=function(Z){$D.transformCustomStyle(Z)},q.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){q.customStyleInterface.enqueued&&q.flushCustomStyles()})})};
_.e=I5g.prototype;_.e.prepareTemplate=function(q,Z){eg(this);qvT(q)===""&&(GP8[Z]=q,Z=$D.transformTemplate(q,Z),q._styleAst=Z)};
_.e.flushCustomStyles=function(){eg(this);if(this.customStyleInterface){var q=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var Z=0;Z<q.length;Z++){var w=this.customStyleInterface.getStyleForCustomStyle(q[Z]);w&&$D.transformCustomStyle(w)}this.customStyleInterface.enqueued=!1}}};
_.e.styleSubtree=function(q,Z){eg(this);Z&&v4N(q,Z);if(q.shadowRoot)for(this.styleElement(q),q=q.shadowRoot.children||q.shadowRoot.childNodes,Z=0;Z<q.length;Z++)this.styleSubtree(q[Z]);else for(q=q.children||q.childNodes,Z=0;Z<q.length;Z++)this.styleSubtree(q[Z])};
_.e.styleElement=function(q){eg(this);var Z=q.localName,w;Z?Z.indexOf("-")>-1?w=Z:w=q.getAttribute&&q.getAttribute("is")||"":w=q.is;Z=GP8[w];if(!(Z&&qvT(Z)!==""||!Z||XI6(Z))){if(XI6(Z)||Z._applyShimValidatingVersion!==Z._applyShimNextVersion)this.prepareTemplate(Z,w),AzI(Z);if(q=q.shadowRoot)if(q=q.querySelector("style"))q.__cssRules=Z._styleAst,q.textContent=DYz(Z._styleAst)}};
_.e.styleDocument=function(q){eg(this);this.styleSubtree(document.body,q)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var CD=new I5g,cr7=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(q,Z){CD.flushCustomStyles();CD.prepareTemplate(q,Z)},
prepareTemplateStyles:function(q,Z,w){window.ShadyCSS.prepareTemplate(q,Z,w)},
prepareTemplateDom:function(){},
styleSubtree:function(q,Z){CD.flushCustomStyles();CD.styleSubtree(q,Z)},
styleElement:function(q){CD.flushCustomStyles();CD.styleElement(q)},
styleDocument:function(q){CD.flushCustomStyles();CD.styleDocument(q)},
getComputedStyleValue:function(q,Z){return j0N(q,Z)},
flushCustomStyles:function(){CD.flushCustomStyles()},
nativeCss:f8T,nativeShadow:B11,cssBuild:c0,disableRuntime:q8h};cr7&&(window.ShadyCSS.CustomStyleInterface=cr7)}window.ShadyCSS.ApplyShim=$D;var F21;F21=window.ShadyCSS;_.PR=si(function(q){q=Pq7(ML(q));var Z=G9p?q:nzJ(q),w=QJp(Z),r={x:"pan-x",y:"pan-y",none:"none",all:"auto"};q=function(){return Z.call(this)||this};
_.z(q,Z);q.prototype.created=function(){};
q.prototype.__attributeReaction=function(Y,C,d){(this.__dataAttributes&&this.__dataAttributes[Y]||Y==="disable-upgrade")&&this.attributeChangedCallback(Y,C,d,null)};
q.prototype.setAttribute=function(Y,C){if(LSe&&!this._legacyForceObservedAttributes){var d=this.getAttribute(Y);Z.prototype.setAttribute.call(this,Y,C);this.__attributeReaction(Y,d,String(C))}else Z.prototype.setAttribute.call(this,Y,C)};
q.prototype.removeAttribute=function(Y){if(LSe&&!this._legacyForceObservedAttributes){var C=this.getAttribute(Y);Z.prototype.removeAttribute.call(this,Y);this.__attributeReaction(Y,C,null)}else Z.prototype.removeAttribute.call(this,Y)};
q.prototype._enableProperties=function(){this.__isUpgradeDisabled||Z.prototype._enableProperties.call(this)};
q.prototype._canApplyPropertyDefault=function(Y){return Z.prototype._canApplyPropertyDefault.call(this,Y)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Y))};
q.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(Z.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
q.prototype.attached=function(){};
q.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(Z.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
q.prototype.detached=function(){};
q.prototype.attributeChangedCallback=function(Y,C,d,O){C!==d&&(Y=="disable-upgrade"?this.__isUpgradeDisabled&&d==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Cy)(this).isConnected&&this.connectedCallback()):(Z.prototype.attributeChangedCallback.call(this,Y,C,d,O),this.attributeChanged(Y,C,d)))};
q.prototype.attributeChanged=function(){};
q.prototype._initializeProperties=function(){if(zl&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var Y=Object.getPrototypeOf(this);Y.hasOwnProperty("__hasRegisterFinished")||(this._registered(),Y.__hasRegisterFinished=!0);Z.prototype._initializeProperties.call(this);this.root=this;this.created();LSe&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
q.prototype._takeAttributes=function(){for(var Y=this.attributes,C=0,d=Y.length;C<d;C++){var O=Y[C];this.__attributeReaction(O.name,null,O.value)}};
q.prototype._registered=function(){};
q.prototype.ready=function(){this._ensureAttributes();Z.prototype.ready.call(this)};
q.prototype._ensureAttributes=function(){};
q.prototype._applyListeners=function(){};
q.prototype.serialize=function(Y){return this._serializeValue(Y)};
q.prototype.deserialize=function(Y,C){return this._deserializeValue(Y,C)};
q.prototype.reflectPropertyToAttribute=function(Y,C,d){this._propertyToAttribute(Y,C,d)};
q.prototype.serializeValueToAttribute=function(Y,C,d){this._valueToNodeAttribute(d||this,Y,C)};
q.prototype.extend=function(Y,C){if(!Y||!C)return Y||C;for(var d=Object.getOwnPropertyNames(C),O=0,H=void 0;O<d.length&&(H=d[O]);O++){var L=Object.getOwnPropertyDescriptor(C,H);L&&Object.defineProperty(Y,H,L)}return Y};
q.prototype.mixin=function(Y,C){for(var d in C)Y[d]=C[d];return Y};
q.prototype.chainObject=function(Y,C){Y&&C&&Y!==C&&(Y.__proto__=C);return Y};
q.prototype.instanceTemplate=function(Y){Y=this.constructor._contentForTemplate(Y);return document.importNode(Y,!0)};
q.prototype.fire=function(Y,C,d){d=d||{};C=C===null||C===void 0?{}:C;Y=new Event(Y,{bubbles:d.bubbles===void 0?!0:d.bubbles,cancelable:!!d.cancelable,composed:d.composed===void 0?!0:d.composed});Y.detail=C;(0,_.Cy)(d.node||this).dispatchEvent(Y);return Y};
q.prototype.listen=function(Y,C,d){Y=Y||this;var O=this.__boundListeners||(this.__boundListeners=new WeakMap),H=O.get(Y);H||(H={},O.set(Y,H));O=C+d;H[O]||(H[O]=this._addMethodEventListenerToNode(Y,C,d,this))};
q.prototype.unlisten=function(Y,C,d){Y=Y||this;var O=this.__boundListeners&&this.__boundListeners.get(Y);d=C+d;var H=O&&O[d];H&&(this._removeEventListenerFromNode(Y,C,H),O[d]=null)};
q.prototype.setScrollDirection=function(Y,C){_.R_(C||this,r[Y]||"auto")};
q.prototype.$$=function(Y){return this.root.querySelector(Y)};
q.prototype.distributeContent=function(){var Y=_.os(this);window.ShadyDOM&&Y.shadowRoot&&ShadyDOM.flush()};
q.prototype.getEffectiveChildNodes=function(){return _.os(this).getEffectiveChildNodes()};
q.prototype.queryDistributedElements=function(Y){return _.os(this).queryDistributedElements(Y)};
q.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(Y){return Y.nodeType===Node.ELEMENT_NODE})};
q.prototype.getEffectiveTextContent=function(){for(var Y=this.getEffectiveChildNodes(),C=[],d=0,O;O=Y[d];d++)O.nodeType!==Node.COMMENT_NODE&&C.push(O.textContent);return C.join("")};
q.prototype.queryEffectiveChildren=function(Y){return(Y=this.queryDistributedElements(Y))&&Y[0]};
q.prototype.queryAllEffectiveChildren=function(Y){return this.queryDistributedElements(Y)};
q.prototype.getContentChildNodes=function(Y){return(Y=this.root.querySelector(Y||"slot"))?_.os(Y).getDistributedNodes():[]};
q.prototype.getContentChildren=function(Y){return this.getContentChildNodes(Y).filter(function(C){return C.nodeType===Node.ELEMENT_NODE})};
q.prototype.isLightDescendant=function(Y){return this!==Y&&(0,_.Cy)(this).contains(Y)&&(0,_.Cy)(this).getRootNode()===(0,_.Cy)(Y).getRootNode()};
q.prototype.isLocalDescendant=function(Y){return this.root===(0,_.Cy)(Y).getRootNode()};
q.prototype.scopeSubtree=function(Y,C){return Ql2(Y,C===void 0?!1:C)};
q.prototype.getComputedStyleValue=function(Y){return F21.getComputedStyleValue(this,Y)};
q.prototype.debounce=function(Y,C,d){this._debouncers=this._debouncers||{};return this._debouncers[Y]=_.fj(this._debouncers[Y],d>0?_.Kj.after(d):b9,C.bind(this))};
q.prototype.isDebouncerActive=function(Y){this._debouncers=this._debouncers||{};Y=this._debouncers[Y];return!(!Y||!Y.isActive())};
q.prototype.flushDebouncer=function(Y){this._debouncers=this._debouncers||{};(Y=this._debouncers[Y])&&Y.flush()};
q.prototype.cancelDebouncer=function(Y){this._debouncers=this._debouncers||{};(Y=this._debouncers[Y])&&Y.cancel()};
q.prototype.async=function(Y,C){return C>0?_.Kj.run(Y.bind(this),C):~b9.run(Y.bind(this))};
q.prototype.cancelAsync=function(Y){Y<0?b9.cancel(~Y):_.Kj.cancel(Y)};
q.prototype.create=function(Y,C){Y=document.createElement(Y);if(C)if(Y.setProperties)Y.setProperties(C);else for(var d in C)Y[d]=C[d];return Y};
q.prototype.elementMatches=function(Y,C){return vzX(C||this,Y)};
q.prototype.toggleAttribute=function(Y,C){var d=this;arguments.length===3&&(d=arguments[2]);arguments.length==1&&(C=!d.hasAttribute(Y));if(C)return(0,_.Cy)(d).setAttribute(Y,""),!0;(0,_.Cy)(d).removeAttribute(Y);return!1};
q.prototype.toggleClass=function(Y,C,d){d=d||this;arguments.length==1&&(C=!d.classList.contains(Y));C?d.classList.add(Y):d.classList.remove(Y)};
q.prototype.transform=function(Y,C){C=C||this;C.style.webkitTransform=Y;C.style.transform=Y};
q.prototype.translate3d=function(Y,C,d,O){this.transform("translate3d("+Y+","+C+","+d+")",O||this)};
q.prototype.arrayDelete=function(Y,C){if(Array.isArray(Y)){if(C=Y.indexOf(C),C>=0)return Y.splice(C,1)}else if(C=rJ(this,Y).indexOf(C),C>=0)return this.splice(Y,C,1);return null};
q.prototype._logger=function(Y,C){Array.isArray(C)&&C.length===1&&Array.isArray(C[0])&&(C=C[0]);switch(Y){case "log":case "warn":case "error":console[Y].apply(console,_.Ju(C))}};
q.prototype._log=function(){this._logger("log",_.Ta.apply(0,arguments))};
q.prototype._warn=function(){this._logger("warn",_.Ta.apply(0,arguments))};
q.prototype._error=function(){this._logger("error",_.Ta.apply(0,arguments))};
q.prototype._logf=function(Y){return["[%s::%s]",this.is,Y].concat(_.Ju(_.Ta.apply(1,arguments)))};
_.My.Object.defineProperties(q.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var Y=(0,_.Cy)(this).getRootNode();return Y instanceof DocumentFragment?Y.host:Y}}});
_.My.Object.defineProperties(q,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return LSe&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],n_j(this.prototype)),this.__observedAttributes):w.call(this).concat("disable-upgrade")}}});
q.prototype.is="";return q});Polymer.FlattenedNodesObserver=uNJ;Polymer.DomApi=bo7;Polymer.EventApi=w4;Polymer.dom=_.os;Polymer.dom.matchesSelector=vzX;Polymer.dom.flush=_.g2;Polymer.dom.addDebouncer=_.D7;Polymer.DirMixin=nzJ;Polymer.RenderStatus={beforeNextRender:_.BST,afterNextRender:_.I_,flush:function(){for(;bcI.length||sA.length;)RLX(bcI),RLX(sA);Ky=!1}};Polymer.LegacyElementMixin=_.PR;var N3h;N3h=yA._mutablePropertyChange;var l52={properties:{mutableData:Boolean},_shouldPropertyChange:function(q,Z,w){return N3h(this,q,Z,w,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(q,Z,w){return N3h(this,q,Z,w,!0)}};
Polymer.OptionalMutableDataBehavior=l52;var ZI6={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},evX={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},$f2=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},evX),GIh=(0,_.PR)(HTMLElement),Syz=function(q,Z){q||console.warn("Polymer.Class requires `info` argument");Z=Z?Z(GIh):GIh;Z=C42(q,Z,q.behaviors);Z.is=Z.prototype.is=
q.is;return Z};Polymer.Class=Syz;Polymer.mixinBehaviors=function(q,Z){return C42({},(0,_.PR)(Z),q)};
Polymer.GenerateClassFromInfo=C42;_.$l=function(q){var Z=typeof q==="function"?q:_.$l.Class(q);q._legacyForceObservedAttributes&&(Z.prototype._legacyForceObservedAttributes=q._legacyForceObservedAttributes);customElements.define(Z.is,Z);return Z};
_.$l.Class=Syz;Polymer._polymerFn=_.$l;var pPD=window.onLegacyPolymerFunctionDefinedCallback;pPD&&pPD();var jXT={templatize:function(q,Z){this._templatizerTemplate=q;this.ctor=ny(q,this,{mutableData:!!Z,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(q){return new this.ctor(q)},
modelForElement:function(q){return Lg2(this._templatizerTemplate,q)}};Polymer.Templatizer=jXT;_.d4=(0,_.PR)(HTMLElement).prototype;Polymer.Base=_.d4;var df1=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.F1=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.z(_.F1,PolymerFakeBaseClass);var l9=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.z(l9,PolymerFakeBaseClass);var VzI=Symbol("Nd"),vAj=[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 XPK=XPK||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},mZJ;(function(q){function Z(f,eO,g){var H6=rz.get(f);if(!H6){if(!g)return;H6=new k;rz.set(f,H6)}f=H6.get(eO);if(!f){if(!g)return;f=new k;H6.set(eO,f)}return f}
function w(f,eO,g){if(r(f,eO,g))return!0;eO=R(eO);return eO!==null?w(f,eO,g):!1}
function r(f,eO,g){eO=Z(eO,g,!1);return eO===void 0?!1:!!eO.has(f)}
function Y(f,eO,g){if(r(f,eO,g))return C(f,eO,g);eO=R(eO);if(eO!==null)return Y(f,eO,g)}
function C(f,eO,g){eO=Z(eO,g,!1);if(eO!==void 0)return eO.get(f)}
function d(f,eO){var g=O(f,eO);f=R(f);if(f===null)return g;var H6=d(f,eO);if(H6.length<=0)return g;if(g.length<=0)return H6;eO=new G;f=[];g=_.P(g);for(var nX=g.next();!nX.done;nX=g.next())nX=nX.value,eO.has(nX)||(eO.add(nX),f.push(nX));g=_.P(H6);for(H6=g.next();!H6.done;H6=g.next())H6=H6.value,eO.has(H6)||(eO.add(H6),f.push(H6));return f}
function O(f,eO){f=Z(f,eO,!1);var g=[];f&&f.forEach(function(H6,nX){return g.push(nX)});
return g}
function H(f){return f===void 0}
function L(f){return typeof f==="object"?f!==null:typeof f==="function"}
function S(f){return typeof f==="function"}
function v(f){return typeof f==="symbol"?f:String(f)}
function R(f){var eO=Object.getPrototypeOf(f);if(typeof f!=="function"||f===K||eO!==K)return eO;var g=Object.getPrototypeOf(f.prototype);if(g==null||g===Object.prototype)return eO;g=g.constructor;return typeof g!=="function"||g===f?eO:g}
function B(){function f(){this._keys=[];this._values=[];this._cache=eO}
var eO={};f.prototype={get size(){return this._keys.length},has:function(g){return g===this._cache?!0:this._find(g)>=0?(this._cache=g,!0):!1},
get:function(g){var H6=this._find(g);if(H6>=0)return this._cache=g,this._values[H6]},
set:function(g,H6){this.delete(g);this._keys.push(g);this._values.push(H6);this._cache=g;return this},
delete:function(g){g=this._find(g);return g>=0?(this._keys.splice(g,1),this._values.splice(g,1),this._cache=eO,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=eO},
forEach:function(g){for(var H6=this.size,nX=0;nX<H6;++nX){var Qj=this._keys[nX],SO=this._values[nX];this._cache=Qj;g.call(this,SO,Qj,this)}},
_find:function(g){for(var H6=this._keys,nX=H6.length,Qj=0;Qj<nX;++Qj)if(H6[Qj]===g)return Qj;return-1}};
return f}
function n(){function f(){this._map=new k}
f.prototype={get size(){return this._map.length},has:function(eO){return this._map.has(eO)},
add:function(eO){this._map.set(eO,eO);return this},
delete:function(eO){return this._map.delete(eO)},
clear:function(){this._map.clear()},
forEach:function(eO,g){this._map.forEach(eO,g)}};
return f}
function x(){function f(){this._key=g()}
function eO(Ze,W1){for(var A2=0;A2<W1;++A2)Ze[A2]=Math.random()*255|0}
function g(){do{if(nX)var Ze=nX.randomBytes(16);else typeof Uint8Array==="function"?(Ze=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(Ze):eO(Ze,16)):(Ze=Array(16),eO(Ze,16));Ze[6]=Ze[6]&79|64;Ze[8]=Ze[8]&191|128;for(var W1="",A2=0;A2<16;++A2){var f9=Ze[A2];if(A2===4||A2===6||A2===8)W1+="-";f9<16&&(W1+="0");W1+=f9.toString(16).toLowerCase()}Ze="@@WeakMap@@"+W1}while(Qj.call(SO,Ze));SO[Ze]=!0;return Ze}
function H6(Ze,W1){if(!Qj.call(Ze,Te)){if(!W1)return;Object.defineProperty(Ze,Te,{value:Object.create(null)})}return Ze[Te]}
var nX=typeof global!=="undefined"&&typeof XPK==="object"&&typeof require==="function"&&require("crypto"),Qj=Object.prototype.hasOwnProperty,SO={},Te=g();f.prototype={has:function(Ze){return(Ze=H6(Ze,!1))?this._key in Ze:!1},
get:function(Ze){if(Ze=H6(Ze,!1))return Ze[this._key]},
set:function(Ze,W1){H6(Ze,!0)[this._key]=W1;return this},
delete:function(Ze){return(Ze=H6(Ze,!1))&&this._key in Ze?delete Ze[this._key]:!1},
clear:function(){this._key=g()}};
return f}
var K=Object.getPrototypeOf(Function),k=typeof Map==="function"?Map:B(),G=typeof Set==="function"?Set:n(),rz=new (typeof WeakMap==="function"?WeakMap:x());q.decorate=function(f,eO,g,H6){if(H(H6)){if(H(g)){if(!Array.isArray(f))throw new TypeError;if(!S(eO))throw new TypeError;for(g=f.length-1;g>=0;--g)if(H6=(0,f[g])(eO),!H(H6)){if(!S(H6))throw new TypeError;eO=H6}return eO}if(!Array.isArray(f))throw new TypeError;if(!L(eO))throw new TypeError;g=v(g);for(H6=f.length-1;H6>=0;--H6)(0,f[H6])(eO,g)}else{if(Array.isArray(f))if(L(eO)){if(H(g))throw new TypeError;
if(!L(H6))throw new TypeError;}else throw new TypeError;else throw new TypeError;g=v(g);for(var nX=f.length-1;nX>=0;--nX){var Qj=(0,f[nX])(eO,g,H6);if(!H(Qj)){if(!L(Qj))throw new TypeError;H6=Qj}}return H6}};
q.metadata=function(f,eO){return function(g,H6){if(H(H6)){if(!S(g))throw new TypeError;Z(g,void 0,!0).set(f,eO)}else{if(!L(g))throw new TypeError;H6=v(H6);Z(g,H6,!0).set(f,eO)}}};
q.defineMetadata=function(f,eO){var g;if(L(eO))H(g)||(g=v(g));else throw new TypeError;Z(eO,g,!0).set("parameters",f)};
q.hasMetadata=function(f,eO,g){if(L(eO))H(g)||(g=v(g));else throw new TypeError;return w(f,eO,g)};
q.hasOwnMetadata=function(f,eO,g){if(L(eO))H(g)||(g=v(g));else throw new TypeError;return r(f,eO,g)};
q.getMetadata=function(f,eO,g){if(L(eO))H(g)||(g=v(g));else throw new TypeError;return Y(f,eO,g)};
q.getOwnMetadata=function(f,eO,g){if(L(eO))H(g)||(g=v(g));else throw new TypeError;return C(f,eO,g)};
q.getMetadataKeys=function(f,eO){if(L(f))H(eO)||(eO=v(eO));else throw new TypeError;return d(f,eO)};
q.getOwnMetadataKeys=function(f,eO){if(L(f))H(eO)||(eO=v(eO));else throw new TypeError;return O(f,eO)};
q.deleteMetadata=function(f,eO,g){if(L(eO))H(g)||(g=v(g));else throw new TypeError;var H6=Z(eO,g,!1);if(!H(H6)){if(!H6.delete(f))return!1;if(H6.size>0)return!0;f=rz.get(eO);f.delete(g);if(f.size>0)return!0;rz.delete(eO);return!0}};
(function(f){if(typeof f.Reflect!=="undefined"){if(f.Reflect!==q)for(var eO in q)f.Reflect[eO]=q[eO]}else f.Reflect=q})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(mZJ||(mZJ={}));var XjN=self;var ArJ=[0,_.sg,_.cI,_.sg];var f5X=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(f5X,_.XD);var DZh=_.qK(f5X,[0,_.Y2v,_.MY,ArJ,_.cI,_.NY]);_.yU(_.Gl,_.u6);_.e=_.Gl.prototype;_.e.start=function(){this.stop();this.usingListeners_=!1;var q=hyK(this),Z=yr7(this);q&&!Z&&this.JSC$9076_win_.mozRequestAnimationFrame?(this.JSC$9076_id_=_.Yc(this.JSC$9076_win_,"MozBeforePaint",this.callback_),this.JSC$9076_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9076_id_=q&&Z?q.call(this.JSC$9076_win_,this.callback_):this.JSC$9076_win_.setTimeout(dS9(this.callback_),20)};
_.e.stop=function(){if(this.isActive()){var q=hyK(this),Z=yr7(this);q&&!Z&&this.JSC$9076_win_.mozRequestAnimationFrame?Zf(this.JSC$9076_id_):q&&Z?Z.call(this.JSC$9076_win_,this.JSC$9076_id_):this.JSC$9076_win_.clearTimeout(this.JSC$9076_id_)}this.JSC$9076_id_=null};
_.e.fire=function(){this.stop();this.JSC$9078_doAction_()};
_.e.isActive=function(){return this.JSC$9076_id_!=null};
_.e.JSC$9078_doAction_=function(){this.usingListeners_&&this.JSC$9076_id_&&Zf(this.JSC$9076_id_);this.JSC$9076_id_=null;this.JSC$9076_listener_.call(this.handler_,_.hW())};
_.e.disposeInternal=function(){this.stop();_.Gl.superClass_.disposeInternal.call(this)};
var hyK=function(q){q=q.JSC$9076_win_;return q.requestAnimationFrame||q.webkitRequestAnimationFrame||q.mozRequestAnimationFrame||q.oRequestAnimationFrame||q.msRequestAnimationFrame||null},yr7=function(q){q=q.JSC$9076_win_;
return q.cancelAnimationFrame||q.cancelRequestAnimationFrame||q.webkitCancelRequestAnimationFrame||q.mozCancelRequestAnimationFrame||q.oCancelRequestAnimationFrame||q.msCancelRequestAnimationFrame||null};_.pV=function(q,Z,w){_.u6.call(this);this.JSC$9079_listener_=w!=null?q.bind(w):q;this.JSC$9079_interval_=Z;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9079_timer_=null};
_.z(_.pV,_.u6);_.e=_.pV.prototype;_.e.fire=function(q){this.args_=arguments;this.JSC$9079_timer_||this.pauseCount_?this.shouldFire_=!0:iom(this)};
_.e.stop=function(){this.JSC$9079_timer_&&(_.$1.clearTimeout(this.JSC$9079_timer_),this.JSC$9079_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.e.pause=function(){this.pauseCount_++};
_.e.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9079_timer_||(this.shouldFire_=!1,iom(this))};
_.e.disposeInternal=function(){_.u6.prototype.disposeInternal.call(this);this.stop()};
var iom=function(q){q.JSC$9079_timer_=uQ(function(){q.JSC$9079_timer_=null;q.shouldFire_&&!q.pauseCount_&&(q.shouldFire_=!1,iom(q))},q.JSC$9079_interval_);
var Z=q.args_;q.args_=null;q.JSC$9079_listener_.apply(null,Z)};var gzm=function(q,Z){this.childIterator_=q[_.$1.Symbol.iterator]();this.mapFn_=Z};
gzm.prototype[Symbol.iterator]=function(){return this};
gzm.prototype.next=function(){var q=this.childIterator_.next();return{value:q.done?void 0:this.mapFn_.call(void 0,q.value),done:q.done}};
var qDv=function(q,Z){return new gzm(q,Z)};var Z5h={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 VcT=function(q){var Z=wpe(q);if(!Z)throw Error("Rd`"+q);return Z},wpe=function(q){var Z={};
q=String(q);var w=q.charAt(0)=="#"?q:"#"+q;if(rJJ.test(w))return Z.hex=$wj(w),Z.type="hex",Z;w=oRX(q);return w.length?(Z.hex=P$T(w[0],w[1],w[2]),Z.type="rgb",Z):Z5h&&(q=Z5h[q.toLowerCase()])?(Z.hex=q,Z.type="named",Z):null},YD1=/#(.)(.)(.)/,$wj=function(q){if(!rJJ.test(q))throw Error("Td`"+q);
q.length==4&&(q=q.replace(YD1,"#$1$1$2$2$3$3"));return q.toLowerCase()},Owz=function(q){q=$wj(q);
q=parseInt(q.slice(1),16);return[q>>16,q>>8&255,q&255]},P$T=function(q,Z,w){q=Number(q);
Z=Number(Z);w=Number(w);if(q!=(q&255)||Z!=(Z&255)||w!=(w&255))throw Error("Ud`"+q+"`"+Z+"`"+w);Z=q<<16|Z<<8|w;return q<16?"#"+(16777216|Z).toString(16).slice(1):"#"+Z.toString(16)},rJJ=/^#(?:[0-9a-f]{3}){1,2}$/i,$TJ=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,oRX=function(q){var Z=q.match($TJ);
if(Z){q=Number(Z[1]);var w=Number(Z[2]);Z=Number(Z[3]);if(q>=0&&q<=255&&w>=0&&w<=255&&Z>=0&&Z<=255)return[q,w,Z]}return[]};var esD={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},u2=esD;u2=esD;var Ioe,Cy1,Pyh;Ioe=function(q,Z){switch(Z){case 1:return q%4!=0||q%100==0&&q%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
Cy1=function(q,Z,w,r,Y){q=new Date(q,Z,w);Y=Y||0;return q.valueOf()+(((r!==void 0?r:3)-Y+7)%7-((q.getDay()+6)%7-Y+7)%7)*864E5};
_.V6=function(q,Z,w){typeof q==="number"?(this.date=Pyh(q,Z||0,w||1),dTX(this,w||1)):_.DT(q)?(this.date=Pyh(q.getFullYear(),q.getMonth(),q.getDate()),dTX(this,q.getDate())):(this.date=new Date(_.hW()),q=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),dTX(this,q))};
Pyh=function(q,Z,w){Z=new Date(q,Z,w);q>=0&&q<100&&Z.setFullYear(Z.getFullYear()-1900);return Z};
_.e=_.V6.prototype;_.e.firstDayOfWeek_=u2.FIRSTDAYOFWEEK;_.e.firstWeekCutOffDay_=u2.FIRSTWEEKCUTOFFDAY;_.e.clone=function(){var q=new _.V6(this.date);q.firstDayOfWeek_=this.firstDayOfWeek_;q.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return q};
_.e.getFullYear=function(){return this.date.getFullYear()};
_.e.getYear=function(){return this.getFullYear()};
_.e.getMonth=function(){return this.date.getMonth()};
_.e.getDate=function(){return this.date.getDate()};
_.e.getTime=function(){return this.date.getTime()};
_.e.getDay=function(){return this.date.getDay()};
_.e.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.e.getUTCMonth=function(){return this.date.getUTCMonth()};
_.e.getUTCDate=function(){return this.date.getUTCDate()};
_.e.getUTCDay=function(){return this.date.getDay()};
_.e.getUTCHours=function(){return this.date.getUTCHours()};
_.e.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.e.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.e.set=function(q){this.date=new Date(q.getFullYear(),q.getMonth(),q.getDate())};
_.e.setFullYear=function(q){this.date.setFullYear(q)};
_.e.setYear=function(q){this.setFullYear(q)};
_.e.setMonth=function(q){this.date.setMonth(q)};
_.e.setDate=function(q){this.date.setDate(q)};
_.e.setTime=function(q){this.date.setTime(q)};
_.e.setUTCFullYear=function(q){this.date.setUTCFullYear(q)};
_.e.setUTCMonth=function(q){this.date.setUTCMonth(q)};
_.e.setUTCDate=function(q){this.date.setUTCDate(q)};
_.e.add=function(q){if(q.years||q.months){var Z=this.getMonth()+q.months+q.years*12,w=this.getYear()+Math.floor(Z/12);Z%=12;Z<0&&(Z+=12);var r=Math.min(Ioe(w,Z),this.getDate());this.setDate(1);this.setFullYear(w);this.setMonth(Z);this.setDate(r)}q.days&&(w=this.getYear(),Z=w>=0&&w<=99?-1900:0,q=new Date((new Date(w,this.getMonth(),this.getDate(),12)).getTime()+q.days*864E5),this.setDate(1),this.setFullYear(q.getFullYear()+Z),this.setMonth(q.getMonth()),this.setDate(q.getDate()),dTX(this,q.getDate()))};
_.e.JSC$9092_toIsoString=function(q){var Z=this.getFullYear(),w=Z<0?"-":Z>=1E4?"+":"";return[w+_.Az(Math.abs(Z),w?6:4),_.Az(this.getMonth()+1,2),_.Az(this.getDate(),2)].join(q?"-":"")};
_.e.equals=function(q){return!(!q||this.getYear()!=q.getYear()||this.getMonth()!=q.getMonth()||this.getDate()!=q.getDate())};
_.e.toString=function(){return this.JSC$9092_toIsoString()};
var dTX=function(q,Z){q.getDate()!=Z&&q.date.setUTCHours(q.date.getUTCHours()+(q.getDate()<Z?1:-1))};
_.V6.prototype.valueOf=function(){return this.date.valueOf()};var HR=function(q,Z,w,r,Y){this.reversed=!!Z;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!w;q&&Om(this,q,r);this.depth=Y!=void 0?Y:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.yU(HR,mn);var Om=function(q,Z,w,r){if(q.node=Z)q.tagType=typeof w==="number"?w:q.node.nodeType!=1?0:q.reversed?-1:1;typeof r==="number"&&(q.depth=r)};
_.e=HR.prototype;_.e.JSC$9107_copyFrom=function(q){this.node=q.node;this.tagType=q.tagType;this.depth=q.depth;this.reversed=q.reversed;this.constrained=q.constrained};
_.e.clone=function(){return new HR(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.e.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return A3;var q=this.node;var Z=this.reversed?-1:1;if(this.tagType==Z){var w=this.reversed?q.lastChild:q.firstChild;w?Om(this,w):Om(this,q,Z*-1)}else(w=this.reversed?q.previousSibling:q.nextSibling)?Om(this,w):Om(this,q.parentNode,Z*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(q=this.node)?fG(q):A3};
_.e.equals=function(q){return q.node==this.node&&(!this.node||q.tagType==this.tagType)};
_.e.splice=function(q){var Z=this.node,w=this.reversed?1:-1;this.tagType==w&&(this.tagType=w*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;HR.prototype.next.call(this);this.reversed=!this.reversed;w=_.pX(arguments[0])?arguments[0]:arguments;for(var r=w.length-1;r>=0;r--)_.ar(w[r],Z);_.Vb(Z)};var VHX=function(){},WR=function(q){for(var Z=[],w=q.getTextRangeCount(),r=0;r<w;r++)Z.push(q.getTextRange(r));
return Z};
VHX.prototype.isReversed=function(){return!1};
VHX.prototype.getWindow=function(){return a4(_.nC(this.JSC$9109_getStartNode()))};
var O59=function(q,Z){HR.call(this,q,Z,!0)};
_.yU(O59,HR);var oW=function(q,Z,w,r,Y){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!Y;if(q){this.startNode_=q;this.startOffset_=Z;this.endNode_=w;this.endOffset_=r;if(q.nodeType==1&&q.tagName!="BR")if(q=q.childNodes,Z=q[Z])this.startNode_=Z,this.startOffset_=0;else{q.length&&(this.startNode_=_.k1(q));var C=!0}w.nodeType==1&&((this.endNode_=w.childNodes[r])?this.endOffset_=0:this.endNode_=w)}HR.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);C&&this.next()};
_.yU(oW,O59);_.e=oW.prototype;_.e.JSC$9115_getStartNode=function(){return this.startNode_};
_.e.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)};
_.e.next=function(){return this.isLast()?A3:oW.superClass_.next.call(this)};
_.e.JSC$9107_copyFrom=function(q){this.startNode_=q.startNode_;this.endNode_=q.endNode_;this.startOffset_=q.startOffset_;this.endOffset_=q.endOffset_;this.isReversed_=q.isReversed_;oW.superClass_.JSC$9107_copyFrom.call(this,q)};
_.e.clone=function(){var q=new oW(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);q.JSC$9107_copyFrom(this);return q};var H5X=function(){};
H5X.prototype.__iterator__=function(){return new oW(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var uB=function(q){this.range_=q};
_.yU(uB,H5X);var WyD=function(q){var Z=_.nC(q).createRange();if(q.nodeType==3)Z.setStart(q,0),Z.setEnd(q,q.length);else if(b4(q)||q.nodeType==3){for(var w,r=q;(w=r.firstChild)&&(b4(w)||w.nodeType==3);)r=w;Z.setStart(r,0);for(r=q;(w=r.lastChild)&&(b4(w)||w.nodeType==3);)r=w;Z.setEnd(r,r.nodeType==1?r.childNodes.length:r.length)}else w=q.parentNode,q=Array.prototype.indexOf.call(w.childNodes,q),Z.setStart(w,q),Z.setEnd(w,q+1);return Z},olp=function(q,Z,w,r){var Y=_.nC(q).createRange();
Y.setStart(q,Z);Y.setEnd(w,r);return Y};
_.e=uB.prototype;_.e.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.e.getContainer=function(){return this.range_.commonAncestorContainer};
_.e.compareBrowserRangeEndpoints=function(q,Z,w){return this.range_.compareBoundaryPoints(w==1?Z==1?_.$1.Range.START_TO_START:_.$1.Range.START_TO_END:Z==1?_.$1.Range.END_TO_START:_.$1.Range.END_TO_END,q)};
_.e.isCollapsed=function(){return this.range_.collapsed};
_.e.select=function(q){this.selectInternal(a4(_.nC(this.range_.startContainer)).getSelection(),q)};
_.e.selectInternal=function(q){q.removeAllRanges();q.addRange(this.range_)};
_.e.insertNode=function(q,Z){var w=this.range_.cloneRange();w.collapse(Z);w.insertNode(q);w.detach();return q};
_.e.collapse=function(q){this.range_.collapse(q)};_.yU(py,uB);py.prototype.selectInternal=function(q,Z){!Z||this.isCollapsed()?py.superClass_.selectInternal.call(this,q,Z):(q.collapse(this.range_.endContainer,this.range_.endOffset),q.extend(this.range_.startContainer,this.range_.startOffset))};_.yU(X1,uB);X1.prototype.compareBrowserRangeEndpoints=function(q,Z,w){return X1.superClass_.compareBrowserRangeEndpoints.call(this,q,Z,w)};
X1.prototype.selectInternal=function(q,Z){Z?q.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):q.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var ulh=function(q){return _.YZ?new X1(q):_.rS?new py(q):new uB(q)};var LD=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},LyK;
_.yU(LD,VHX);LyK=function(q,Z){var w=new LD;w.browserRangeWrapper_=q;w.isReversed_=!!Z;return w};
_.SDv=function(q){q=_.YZ?new X1(WyD(q)):_.rS?new py(WyD(q)):new uB(WyD(q));return LyK(q)};
_.Sg=function(q,Z,w,r){var Y=new LD;Y.isReversed_=vlW(q,Z,w,r);if(_.I$(q)&&!b4(q)){var C=q.parentNode;Z=Array.prototype.indexOf.call(C.childNodes,q);q=C}_.I$(w)&&!b4(w)&&(C=w.parentNode,r=Array.prototype.indexOf.call(C.childNodes,w),w=C);Y.isReversed_?(Y.startNode_=w,Y.startOffset_=r,Y.endNode_=q,Y.endOffset_=Z):(Y.startNode_=q,Y.startOffset_=Z,Y.endNode_=w,Y.endOffset_=r);return Y};
_.e=LD.prototype;_.e.clone=function(){var q=new LD;q.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();q.startNode_=this.startNode_;q.startOffset_=this.startOffset_;q.endNode_=this.endNode_;q.endOffset_=this.endOffset_;q.isReversed_=this.isReversed_;return q};
_.e.JSC$9109_getType=function(){return"text"};
_.e.getBrowserRangeObject=function(){return vR(this).range_};
_.e.getTextRangeCount=function(){return 1};
_.e.getTextRange=function(){return this};
var vR=function(q){var Z;if(!(Z=q.browserRangeWrapper_)){Z=q.JSC$9109_getStartNode();var w=q.JSC$9109_getStartOffset(),r=q.JSC$9109_getEndNode(),Y=q.JSC$9109_getEndOffset();Z=_.YZ?new X1(olp(Z,w,r,Y)):_.rS?new py(olp(Z,w,r,Y)):new uB(olp(Z,w,r,Y));Z=q.browserRangeWrapper_=Z}return Z};
_.e=LD.prototype;_.e.getContainer=function(){return vR(this).getContainer()};
_.e.JSC$9109_getStartNode=function(){var q;(q=this.startNode_)||(q=this.startNode_=vR(this).range_.startContainer);return q};
_.e.JSC$9109_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=vR(this).range_.startOffset};
_.e.JSC$9109_getEndNode=function(){var q;(q=this.endNode_)||(q=this.endNode_=vR(this).range_.endContainer);return q};
_.e.JSC$9109_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=vR(this).range_.endOffset};
_.e.isReversed=function(){return this.isReversed_};
_.e.JSC$9109_containsRange=function(q,Z){if(q.JSC$9109_getType()=="text"){var w=vR(this);q=vR(q);Z=Z&&!q.isCollapsed();q=q.range_;w=Z?w.compareBrowserRangeEndpoints(q,0,1)>=0&&w.compareBrowserRangeEndpoints(q,1,0)<=0:w.compareBrowserRangeEndpoints(q,0,0)>=0&&w.compareBrowserRangeEndpoints(q,1,1)<=0}else w=!1;return w};
_.e.isCollapsed=function(){return vR(this).isCollapsed()};
_.e.JSC$9109_getText=function(){return vR(this).range_.toString()};
_.e.__iterator__=function(){return new oW(this.JSC$9109_getStartNode(),this.JSC$9109_getStartOffset(),this.JSC$9109_getEndNode(),this.JSC$9109_getEndOffset())};
_.e.select=function(){vR(this).select(this.isReversed_)};
_.e.JSC$9109_removeContents=function(){var q=vR(this).range_;q.extractContents();if(q.startContainer.hasChildNodes()&&(q=q.startContainer.childNodes[q.startOffset])){var Z=q.previousSibling;Q9J(q)==""&&_.Vb(q);Z&&Q9J(Z)==""&&_.Vb(Z)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.e.insertNode=function(q,Z){q=vR(this).insertNode(q,Z);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return q};
_.e.collapse=function(q){q=this.isReversed()?!q:q;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(q);q?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var jAv=function(){};
_.yU(jAv,VHX);jAv.prototype.JSC$9109_containsRange=function(q,Z){var w=WR(this);q=WR(q);return(Z?kY:_.dOj)(q,function(r){return kY(w,function(Y){return Y.JSC$9109_containsRange(r,Z)})})};
jAv.prototype.insertNode=function(q,Z){Z?_.Br(q,this.JSC$9109_getStartNode()):_.ar(q,this.JSC$9109_getEndNode());return q};var tH7,RsX=xKe(o4()).documentElement;tH7=RsX.requestFullscreen?"fullscreenchange":RsX.webkitRequestFullscreen?"webkitfullscreenchange":RsX.mozRequestFullScreen?"mozfullscreenchange":RsX.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var b59=function(){var q=xKe(o4());return!!(q.webkitIsFullScreen||q.mozFullScreen||q.msFullscreenElement||q.fullscreenElement)};var jg=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.yU(jg,jAv);_.e=jg.prototype;_.e.clone=function(){var q=new jg;q.browserRanges_=_.Ge(this.browserRanges_);return q};
_.e.JSC$9109_getType=function(){return"mutli"};
_.e.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.e.getTextRangeCount=function(){return this.browserRanges_.length};
_.e.getTextRange=function(q){this.ranges_[q]||(this.ranges_[q]=LyK(ulh(this.browserRanges_[q])));return this.ranges_[q]};
_.e.getContainer=function(){if(!this.container_){for(var q=[],Z=this.getTextRangeCount(),w=0;w<Z;w++)q.push(this.getTextRange(w).getContainer());this.container_=RdJ.apply(null,q)}return this.container_};
var t5=function(q){q.sortedRanges_||(q.sortedRanges_=WR(q),q.sortedRanges_.sort(function(Z,w){var r=Z.JSC$9109_getStartNode();Z=Z.JSC$9109_getStartOffset();var Y=w.JSC$9109_getStartNode();w=w.JSC$9109_getStartOffset();return r==Y&&Z==w?0:vlW(r,Z,Y,w)?1:-1}));
return q.sortedRanges_};
_.e=jg.prototype;_.e.JSC$9109_getStartNode=function(){return t5(this)[0].JSC$9109_getStartNode()};
_.e.JSC$9109_getStartOffset=function(){return t5(this)[0].JSC$9109_getStartOffset()};
_.e.JSC$9109_getEndNode=function(){return _.k1(t5(this)).JSC$9109_getEndNode()};
_.e.JSC$9109_getEndOffset=function(){return _.k1(t5(this)).JSC$9109_getEndOffset()};
_.e.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.e.JSC$9109_getText=function(){return WR(this).map(function(q){return q.JSC$9109_getText()}).join("")};
_.e.__iterator__=function(){return new RW(this)};
_.e.select=function(){var q=this.getWindow().getSelection();q.removeAllRanges();for(var Z=this.getTextRangeCount(),w=0;w<Z;w++)q.addRange(this.getTextRange(w).getBrowserRangeObject())};
_.e.JSC$9109_removeContents=function(){WR(this).forEach(function(q){q.JSC$9109_removeContents()})};
_.e.collapse=function(q){if(!this.isCollapsed()){var Z=q?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;Z.collapse(q);this.ranges_=[Z];this.sortedRanges_=[Z];this.browserRanges_=[Z.getBrowserRangeObject()]}};
var RW=function(q){this.iterators_=null;this.currentIdx_=0;q&&(this.iterators_=t5(q).map(function(Z){return _.NJK(Z)}));
HR.call(this,q?this.JSC$9115_getStartNode():null,!1,!0)};
_.yU(RW,O59);_.e=RW.prototype;_.e.JSC$9115_getStartNode=function(){return this.iterators_[0].JSC$9115_getStartNode()};
_.e.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.e.next=function(){for(;this.currentIdx_<this.iterators_.length;){var q=this.iterators_[this.currentIdx_],Z=q.next();if(Z.done)this.currentIdx_++;else return Om(this,q.node,q.tagType,q.depth),Z}return A3};
_.e.JSC$9107_copyFrom=function(q){this.iterators_=_.Ge(q.iterators_);RW.superClass_.JSC$9107_copyFrom.call(this,q)};
_.e.clone=function(){var q=new RW(null);q.JSC$9107_copyFrom(this);return q};var JJe,vlW;_.Vt=function(){var q=window.getSelection();return q&&JJe(q)};
JJe=function(q){var Z=!1;if(q.createRange)try{var w=q.createRange()}catch(Y){return null}else if(q.rangeCount){if(q.rangeCount>1){w=new jg;Z=q.rangeCount;for(var r=0;r<Z;r++)w.browserRanges_.push(q.getRangeAt(r));return w}w=q.getRangeAt(0);Z=vlW(q.anchorNode,q.anchorOffset,q.focusNode,q.focusOffset)}else return null;return LyK(ulh(w),Z)};
_.bB=function(q,Z){return _.Sg(q,Z,q,Z)};
_.J5=function(q,Z,w,r){return _.Sg(q,Z,w,r)};
vlW=function(q,Z,w,r){if(q==w)return r<Z;var Y;if(q.nodeType==1&&Z)if(Y=q.childNodes[Z])q=Y,Z=0;else if(_.EJ(q,w))return!0;if(w.nodeType==1&&r)if(Y=w.childNodes[r])w=Y,r=0;else if(_.EJ(w,q))return!1;return(t6h(q,w)||Z-r)>0};var zT=function(){_.V8.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.Lh)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.Lh)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.Lh)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.Lh)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.Lh)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.Lh)(this.dispatchProgressEvent_,this)};
_.yU(zT,_.V8);zT.prototype.abort=function(){try{this.reader_.abort()}catch(q){throw new yYe(q,"aborting read");}};
zT.prototype.getError=function(){return this.reader_.error&&new yYe(this.reader_.error,"reading file")};
zT.prototype.dispatchProgressEvent_=function(q){this.dispatchEvent(new ib2(q,this))};
zT.prototype.disposeInternal=function(){zT.superClass_.disposeInternal.call(this);delete this.reader_};
var Bx2=function(q){var Z=new zT,w=zse(Z);Z.reader_.readAsArrayBuffer(q);return w},aN1=function(q){var Z=new zT,w=zse(Z);
Z.reader_.readAsDataURL(q);return w},zse=function(q){var Z=new k2;
q.listen("loadend",_.Oh(function(w,r){var Y=r.reader_.result,C=r.getError();Y==null||C?w.errback(C):w.callback(Y);r.dispose()},Z,q));
return Z};var BR=function(){_.V8.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9149_eventHandler_=new _.Al(this);this.JSC$9149_isInitialized_=!1};
_.yU(BR,_.V8);var nle=new _.Y2("d"),QA2=new _.Y2("beforedragstart"),ElK=new _.Y2("dragstart"),xTW=new _.Y2("beforedragmove"),Tx9=new _.Y2("dragmove"),UTp=new _.Y2("beforedragend"),kp7=new _.Y2("dragend"),KyW=new _.Y2("e");BR.prototype.isDragging=function(){return!!this.JSC$9149_dragger_};
var sAe=function(q,Z){Z.dlgGrowthDirection_=0;Z.dlgDragHoverClass_=void 0;Z.dlgDragPermission=0;q.dragLists_.push(Z)},INv=function(q,Z){q.getHandleForDragItem_=Z};
BR.prototype.init=function(){if(!this.JSC$9149_isInitialized_){for(var q=this.dragLists_.length,Z=0;Z<q;Z++)for(var w=_.nI(this.dragLists_[Z]),r=w.length,Y=0;Y<r;++Y){var C=w[Y],d=this.getHandleForDragItem_(C),O=_.yj(d);this.dragItemForHandle_[O]=C;this.dragItemHoverClasses_&&(this.JSC$9149_eventHandler_.listen(C,"mouseover",this.handleDragItemMouseover_),this.JSC$9149_eventHandler_.listen(C,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9149_eventHandler_.listen(d,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9149_eventHandler_.listen(d,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(C);this.JSC$9149_eventHandler_.listen(d,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9149_isInitialized_=!0}};
BR.prototype.disposeInternal=function(){this.JSC$9149_eventHandler_.dispose();for(var q=this.dragLists_.length,Z=0;Z<q;Z++){var w=this.dragLists_[Z];w.dlgGrowthDirection_=void 0;w.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;cJ1(this);BR.superClass_.disposeInternal.call(this)};
var MH1=function(q,Z){for(var w=q.dragLists_.length,r=0;r<w;r++){var Y=q.dragLists_[r];Y.dlgBounds_=zv1(Y)}w=q.dragItems_.length;for(r=0;r<w;r++)Y=q.dragItems_[r],Y!=Z&&(Y.dlgBounds_=zv1(Y))};
_.e=BR.prototype;
_.e.handlePotentialDragStart_=function(q){var Z=_.yj(q.currentTarget);Z=this.dragItemForHandle_[Z];if(Z.parentElement.dlgDragPermission!=2){this.currDragItem_=Z;a:{Z=this.currDragItem_;for(var w=Z.cloneNode(!0),r=OJ("TEXTAREA",Z),Y=OJ("TEXTAREA",w),C=0;C<r.length;C++)Y[C].value=r[C].value;switch(Z.tagName){case "TR":Z=_.t$("TABLE",null,_.t$("TBODY",null,w));break a;case "TD":case "TH":Z=_.t$("TABLE",null,_.t$("TBODY",null,_.t$("TR",null,w)));break a;case "TEXTAREA":w.value=Z.value;default:Z=w;break a}Z=
void 0}this.draggerEl_=Z;this.draggerElClasses_&&TM(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.nC(this.currDragItem_).body.appendChild(this.draggerEl_);w=_.Qg(this.currDragItem_);Z=this.draggerEl_;r=_.Qg(Z);if(w instanceof _.B3){var d=w.y;w=w.x}Uv(Z,Z.offsetLeft+(w-r.x),Z.offsetTop+(Number(d)-r.y));this.JSC$9149_dragger_=new _.zS(this.draggerEl_);_.h$v(this.JSC$9149_dragger_,this.hysteresisDistance_);
_.Yc(this.JSC$9149_dragger_,"start",this.handleDragStart_,!1,this);_.Yc(this.JSC$9149_dragger_,"end",this.handleDragEnd_,!1,this);_.Yc(this.JSC$9149_dragger_,"earlycancel",this.JSC$9151_cleanup_,!1,this);this.dispatchEvent(new aW(nle,this,q,this.currDragItem_,this.draggerEl_,this.JSC$9149_dragger_));this.JSC$9149_dragger_.startDrag(q)}};
_.e.handleDragStart_=function(q){if(this.dispatchEvent(new aW(QA2,this,q.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.SXp(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?TM(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var Z=cID(this.draggerEl_);this.draggerEl_.halfWidth=Z.width/2;this.draggerEl_.halfHeight=Z.height/2;Z=this.draggerEl_.getBoundingClientRect();
var w=q.clientY,r=y99(this.JSC$9149_dragger_,q.clientX);if(r>Z.right){var Y=this.currDragItem_.getBoundingClientRect();this.JSC$9149_dragger_.deltaX=r-(r-Y.left)/Y.width*Z.width}w=iBv(this.JSC$9149_dragger_,w);w>Z.bottom&&(this.JSC$9149_dragger_.deltaY+=w-Z.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";MH1(this,this.currDragItem_);this.currDragItem_.style.display="";_.Yc(this.JSC$9149_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new aW(ElK,
this,q.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9149_dragger_))}else q.preventDefault(),this.JSC$9151_cleanup_()};
_.e.handleDragMove_=function(q){var Z=_.Qg(this.draggerEl_);Z=new _.B3(Z.x+this.draggerEl_.halfWidth,Z.y+this.draggerEl_.halfHeight);a:{var w=null;if(this.currDragItem_.style.display!="none"){w=this.currDragItem_.parentNode;var r=zv1(w);if(Fy7(Z,r))break a}r=this.dragLists_.length;for(var Y=0;Y<r;Y++){var C=this.dragLists_[Y];if(C!=w&&Fy7(Z,C.dlgBounds_)){w=C;break a}}w=null}if(w){if(w==null)throw Error("Vd");r=0;Y=!1;C=void 0;switch(w.dlgGrowthDirection_){case 0:r=Z.y;var d=NxX;var O=lNX;break;case 4:Y=
!0;case 2:r=Z.x;d=GpJ;O=lNX;break;case 5:Y=!0;case 3:r=Z.x,d=ppv,O=Xp7}for(var H=null,L,S=_.nI(w),v=S.length,R=0;R<v;R++){var B=S[R];if(B!=this.currDragItem_){var n=d(B.dlgBounds_);if(Y){var x=mTh(B,Z);C===void 0&&(C=x);O(r,n)&&(L==void 0||x<C||x==C&&(O(n,L)||n==L))&&(H=B,L=n);x<C&&(C=x)}else O(r,n)&&(L==void 0||O(n,L))&&(H=B,L=n)}}d=H!==null&&mTh(H,Z)>C?null:H}else d=null;if(!this.dispatchEvent(new aW(xTW,this,q,this.currDragItem_,this.draggerEl_,this.JSC$9149_dragger_,Z,w,d)))return!1;if(w&&w.dlgDragPermission!=
1)this.currDragItem_.parentNode==w&&_.SXp(this.currDragItem_)==d||w.insertBefore(this.currDragItem_,d),this.currDragItem_.style.display="",w.dlgDragHoverClass_&&_.nn(w,w.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",O=this.dragLists_.length,L=0;L<O;L++)r=this.dragLists_[L],r.dlgDragHoverClass_&&_.BJ(r,r.dlgDragHoverClass_);w!=this.currHoverList_&&(this.currHoverList_=w,MH1(this,this.currDragItem_));this.dispatchEvent(new aW(Tx9,this,q,this.currDragItem_,this.draggerEl_,this.JSC$9149_dragger_,
Z,w,d));return!1};
_.e.JSC$9151_cleanup_=function(){cJ1(this);this.JSC$9149_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var q=this.dragLists_.length,Z=0;Z<q;Z++)this.dragLists_[Z].dlgBounds_=null;q=this.dragItems_.length;for(Z=0;Z<q;Z++)this.dragItems_[Z].dlgBounds_=null};
_.e.handleDragEnd_=function(q){if(!this.dispatchEvent(new aW(UTp,this,q,this.currDragItem_,this.draggerEl_,this.JSC$9149_dragger_)))return!1;cJ1(this);this.dispatchEvent(new aW(kp7,this,q,this.currDragItem_,this.draggerEl_,this.JSC$9149_dragger_));this.JSC$9151_cleanup_();return!0};
var cJ1=function(q){_.Xg(q.JSC$9149_dragger_);var Z=q.draggerEl_&&q.draggerEl_.parentElement;q.draggerEl_&&_.Vb(q.draggerEl_);q.currDragItem_&&q.currDragItem_.style.display=="none"&&(q.origList_.insertBefore(q.currDragItem_,q.origNextItem_),q.currDragItem_.style.display="");q.currDragItemClasses_&&q.currDragItem_?h2v(q.currDragItem_,q.currDragItemClasses_||[]):q.currDragItem_&&(q.currDragItem_.style.visibility="");for(var w=q.dragLists_.length,r=0;r<w;r++){var Y=q.dragLists_[r];Y.dlgDragHoverClass_&&
_.BJ(Y,Y.dlgDragHoverClass_)}Z&&q.dispatchEvent(new aW(KyW,q,null,q.currDragItem_,q.draggerEl_,q.JSC$9149_dragger_))};
_.e=BR.prototype;_.e.getHandleForDragItem_=function(q){return q};
_.e.handleDragItemMouseover_=function(q){TM(q.currentTarget,this.dragItemHoverClasses_||[])};
_.e.handleDragItemMouseout_=function(q){h2v(q.currentTarget,this.dragItemHoverClasses_||[])};
_.e.handleDragItemHandleMouseover_=function(q){TM(q.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.e.handleDragItemHandleMouseout_=function(q){h2v(q.currentTarget,this.dragItemHandleHoverClasses_||[])};
var Fy7=function(q,Z){return q.x>Z.left&&q.x<Z.left+Z.width&&q.y>Z.top&&q.y<Z.top+Z.height},mTh=function(q,Z){q=q.dlgBounds_;
return Math.abs(Z.y-(q.top+(q.height-1)/2))},NxX=function(q){return q.top+q.height-1},GpJ=function(q){return q.left+q.width-1},ppv=function(q){return q.left||0},lNX=function(q,Z){return q<Z},Xp7=function(q,Z){return q>Z},aW=function(q,Z,w,r,Y,C){_.$2.call(this,q);
this.event=w;this.currDragItem=r;this.draggerEl=Y;this.JSC$9153_dragger=C};
_.yU(aW,_.$2);_.yU(fy,_.u6);var AJK=new _.B3(0,0);fy.prototype.JSC$9157_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
fy.prototype.JSC$9157_onMouseMove=function(q){var Z=this.containerIsActuallyContent_?AJK:W3(o4(this.containerNode_)),w=this.horizontalScrolling_?this.calculateScrollDelta(q.clientX+Z.x,this.scrollBounds_.left,this.scrollBounds_.width):0,r=this.calculateScrollDelta(q.clientY+Z.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=w;this.scrollDelta_.y=r;!(w=!w&&!r)&&(w=this.constrainScroll_)&&(w=q.clientX+Z.x,q=q.clientY+Z.y,Z=this.containerBounds_,w=!(Z.left<=w&&Z.left+Z.width>=
w&&Z.top<=q&&Z.top+Z.height>=q));w?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
fy.prototype.calculateScrollDelta=function(q,Z,w){var r=0;q<Z?r=-8:q>Z+w&&(r=8);return r};
fy.prototype.disposeInternal=function(){fy.superClass_.disposeInternal.call(this);this.JSC$9155_eventHandler_.dispose();this.scrollTimer_.dispose()};var fNg={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"}}},nD=fNg;nD=fNg;var Q6={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 DTg=function(){},EE=function(q){if(typeof q=="number"){var Z=new DTg;
Z.standardOffset_=q;var w=q;if(w==0)w="Etc/GMT";else{var r=["Etc/GMT",w<0?"-":"+"];w=Math.abs(w);r.push(Math.floor(w/60)%100);w%=60;w!=0&&r.push(":",_.Az(w,2));w=r.join("")}Z.timeZoneId_=w;w=q;w==0?w="UTC":(r=["UTC",w<0?"+":"-"],w=Math.abs(w),r.push(Math.floor(w/60)%100),w%=60,w!=0&&r.push(":",w),w=r.join(""));q=hsp(q);Z.tzNames_=[w,w];Z.tzNamesExt_={STD_LONG_NAME_GMT:q,STD_GENERIC_LOCATION:q};Z.transitions_=[];return Z}Z=new DTg;Z.timeZoneId_=q.id;Z.standardOffset_=-q.std_offset;Z.tzNames_=q.names;
Z.tzNamesExt_=q.names_ext;Z.transitions_=q.transitions;return Z},hsp=function(q){var Z=["GMT"];
Z.push(q<=0?"+":"-");q=Math.abs(q);Z.push(_.Az(Math.floor(q/60)%100,2),":",_.Az(q%60,2));return Z.join("")},yJv=function(q,Z){Z=Date.UTC(Z.getUTCFullYear(),Z.getUTCMonth(),Z.getUTCDate(),Z.getUTCHours(),Z.getUTCMinutes())/36E5;
for(var w=0;w<q.transitions_.length&&Z>=q.transitions_[w];)w+=2;return w==0?0:q.transitions_[w-1]},i57=function(q,Z){q=q.standardOffset_-yJv(q,Z);
return q===-1440?0:q};var xO=function(q,Z){this.patternParts_=[];this.JSC$9168_dateTimeSymbols_=Z||u2;typeof q=="number"?gl7(this,q):qLp(this,q)},Zn7=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Em=function(q){return q.getHours?q.getHours():0},qLp=function(q,Z){for(obN&&(Z=Z.replace(/\u200f/g,""));Z;){for(var w=Z,r=0;r<Zn7.length;++r){var Y=Z.match(Zn7[r]);
if(Y){var C=Y[0];Z=Z.substring(C.length);r==0&&(C=="''"?C="'":(C=C.substring(1,Y[1]=="'"?C.length-1:C.length),C=C.replace(/''/g,"'")));q.patternParts_.push({text:C,type:r});break}}if(w===Z)throw Error("Wd`"+Z);}};
xO.prototype.format=function(q,Z){if(!q)throw Error("Xd");var w=Z?(q.getTimezoneOffset()-i57(Z,q))*6E4:0,r=w?new Date(q.getTime()+w):q,Y=r;Z&&r.getTimezoneOffset()!=q.getTimezoneOffset()&&(r=new Date(r.getTime()+(r.getTimezoneOffset()-q.getTimezoneOffset())*6E4),Y=new Date(q.getTime()+(w+(w>0?-864E5:864E5))));w=[];for(var C=0;C<this.patternParts_.length;++C){var d=this.patternParts_[C].text;1==this.patternParts_[C].type?w.push(wJX(this,d,q,r,Y,Z)):w.push(d)}return w.join("")};
var gl7=function(q,Z){if(Z<4)var w=q.JSC$9168_dateTimeSymbols_.DATEFORMATS[Z];else if(Z<8)w=q.JSC$9168_dateTimeSymbols_.TIMEFORMATS[Z-4];else if(Z<12)w=q.JSC$9168_dateTimeSymbols_.DATETIMEFORMATS[Z-8],w=w.replace("{1}",q.JSC$9168_dateTimeSymbols_.DATEFORMATS[Z-8]),w=w.replace("{0}",q.JSC$9168_dateTimeSymbols_.TIMEFORMATS[Z-8]);else if(Z===12)w=q.JSC$9168_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(Z===13)w=q.JSC$9168_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{gl7(q,10);return}qLp(q,w)},xD=function(q,Z){Z=String(Z);
q=q.JSC$9168_dateTimeSymbols_||u2;if(q.ZERODIGIT!==void 0&&!Wa2){for(var w=[],r=0;r<Z.length;r++){var Y=Z.charCodeAt(r);w.push(48<=Y&&Y<=57?String.fromCharCode(q.ZERODIGIT+Y-48):Z.charAt(r))}Z=w.join("")}return Z},Wa2=!1,obN=!1,YLD=function(q,Z,w,r){w=w.getFullYear();
w<=0&&r&&(w=1-w);return xD(q,rEv(w,Z))},rEv=function(q,Z){Z==2&&(q%=100);
q<0&&Z++;return _.Az(q,Z)},TT=function(q){if(!(q.getHours&&q.getSeconds&&q.getMinutes))throw Error("Yd");
},$x7=function(q,Z){TT(Z);
Z=Em(Z);return q.JSC$9168_dateTimeSymbols_.AMPMS[Z>=12&&Z<24?1:0]},wJX=function(q,Z,w,r,Y,C){var d=Z.length;
switch(Z.charAt(0)){case "G":return w=r.getFullYear()>0?1:0,d>=4?q.JSC$9168_dateTimeSymbols_.ERANAMES[w]:q.JSC$9168_dateTimeSymbols_.ERAS[w];case "y":return YLD(q,d,r,!0);case "Y":return w=(new Date(Cy1(r.getFullYear(),r.getMonth(),r.getDate(),q.JSC$9168_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,q.JSC$9168_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),d==2&&(w%=100),xD(q,rEv(w,d));case "u":return YLD(q,d,r,!1);case "M":a:switch(w=r.getMonth(),d){case 5:d=q.JSC$9168_dateTimeSymbols_.NARROWMONTHS[w];break a;
case 4:d=q.JSC$9168_dateTimeSymbols_.MONTHS[w];break a;case 3:d=q.JSC$9168_dateTimeSymbols_.SHORTMONTHS[w];break a;default:d=xD(q,_.Az(w+1,d))}return d;case "k":return TT(Y),xD(q,_.Az(Em(Y)||24,d));case "S":return xD(q,(Y.getMilliseconds()/1E3).toFixed(Math.min(3,d)).slice(2)+(d>3?_.Az(0,d-3):""));case "E":return w=r.getDay(),d>=4?q.JSC$9168_dateTimeSymbols_.WEEKDAYS[w]:q.JSC$9168_dateTimeSymbols_.SHORTWEEKDAYS[w];case "a":return $x7(q,Y);case "b":return $x7(q,Y);case "B":return $x7(q,Y);case "h":return TT(Y),
xD(q,_.Az(Em(Y)%12||12,d));case "K":return TT(Y),xD(q,_.Az(Em(Y)%12,d));case "H":return TT(Y),xD(q,_.Az(Em(Y),d));case "c":a:switch(w=r.getDay(),d){case 5:d=q.JSC$9168_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[w];break a;case 4:d=q.JSC$9168_dateTimeSymbols_.STANDALONEWEEKDAYS[w];break a;case 3:d=q.JSC$9168_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[w];break a;default:d=xD(q,_.Az(w,1))}return d;case "L":a:switch(w=r.getMonth(),d){case 5:d=q.JSC$9168_dateTimeSymbols_.STANDALONENARROWMONTHS[w];break a;
case 4:d=q.JSC$9168_dateTimeSymbols_.STANDALONEMONTHS[w];break a;case 3:d=q.JSC$9168_dateTimeSymbols_.STANDALONESHORTMONTHS[w];break a;default:d=xD(q,_.Az(w+1,d))}return d;case "Q":return w=Math.floor(r.getMonth()/3),d<4?q.JSC$9168_dateTimeSymbols_.SHORTQUARTERS[w]:q.JSC$9168_dateTimeSymbols_.QUARTERS[w];case "d":return xD(q,_.Az(r.getDate(),d));case "m":return TT(Y),xD(q,_.Az(Y.getMinutes?Y.getMinutes():0,d));case "s":return TT(Y),xD(q,_.Az(Y.getSeconds(),d));case "v":return(C||EE(w.getTimezoneOffset())).timeZoneId_;
case "V":return q=C||EE(w.getTimezoneOffset()),d<=2?q.timeZoneId_:yJv(q,w)>0?q.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?q.tzNamesExt_.DST_GENERIC_LOCATION:q.tzNamesExt_.DST_GENERIC_LOCATION:q.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?q.tzNamesExt_.STD_GENERIC_LOCATION:q.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return w=Cy1(Y.getFullYear(),Y.getMonth(),Y.getDate(),q.JSC$9168_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,q.JSC$9168_dateTimeSymbols_.FIRSTDAYOFWEEK),xD(q,_.Az(Math.floor(Math.round((w-(new Date((new Date(w)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,d));case "z":return q=C||EE(w.getTimezoneOffset()),d<4?q.tzNames_[yJv(q,w)>0?2:0]:q.tzNames_[yJv(q,w)>0?3:1];case "Z":return Z=C||EE(w.getTimezoneOffset()),d<4?(d=-i57(Z,w),q=[d<0?"-":"+"],d=Math.abs(d),q.push(_.Az(Math.floor(d/60)%100,2),_.Az(d%60,2)),d=q.join("")):d=xD(q,hsp(i57(Z,w))),d;default:return""}};var eKm=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Cm7=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,PnT=function(q){this.patternParts_=[];this.JSC$9177_dateTimeSymbols_=u2;if(typeof q=="number"){q>11&&(q=10);if(q<4)var Z=this.JSC$9177_dateTimeSymbols_.DATEFORMATS[q];else q<8?Z=this.JSC$9177_dateTimeSymbols_.TIMEFORMATS[q-4]:(Z=this.JSC$9177_dateTimeSymbols_.DATETIMEFORMATS[q-8],Z=Z.replace("{1}",this.JSC$9177_dateTimeSymbols_.DATEFORMATS[q-8]),Z=Z.replace("{0}",this.JSC$9177_dateTimeSymbols_.TIMEFORMATS[q-
8]));Pm2(this,Z)}else Pm2(this,q)},Pm2=function(q,Z){for(var w=!1,r="",Y=0;Y<Z.length;Y++){var C=Z.charAt(Y);
if(eKm.test(C))for(r.length>0&&(q.patternParts_.push({text:r,count:0,abutStart:!1,numeric:!1}),r=""),q.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});Y<Z.length-1&&Z.charAt(Y+1)==" ";)Y++;else if(w)C=="'"?Y+1<Z.length&&Z.charAt(Y+1)=="'"?(r+="'",Y++):w=!1:r+=C;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(C)>=0){r.length>0&&(q.patternParts_.push({text:r,count:0,abutStart:!1,numeric:!1}),r="");for(var d=Z.charAt(Y),O=Y+1;O<Z.length&&Z.charAt(O)==d;)O++;d=O-Y;d<=0?O=!1:(O="MydhHmsSDkK".indexOf(C),
O=O>0||O==0&&d<3);q.patternParts_.push({text:C,count:d,abutStart:!1,numeric:O});Y+=d-1}else C=="'"?Y+1<Z.length&&Z.charAt(Y+1)=="'"?(r+="'",Y++):w=!0:r+=C}r.length>0&&q.patternParts_.push({text:r,count:0,abutStart:!1,numeric:!1});Z=!1;for(w=0;w<q.patternParts_.length;w++)q.patternParts_[w].numeric?!Z&&w+1<q.patternParts_.length&&q.patternParts_[w+1].numeric&&(Z=!0,q.patternParts_[w].abutStart=!0):Z=!1};
PnT.prototype.parse=function(q,Z,w){var r=!1,Y=!1;w&&(r=w.predictive||!1,Y=w.validate||!1);if(r)for(w=0;w<this.patternParts_.length;w++){var C=this.patternParts_[w];if(C.count>0&&("abBhHkKm".indexOf(C.text.charAt(0))<0||C.count>2||C.abutStart))throw Error("Zd`"+C.text.charAt(0));}C=new dx7;w=[0];C.dayPeriodIndex=-1;for(var d=0;d<this.patternParts_.length&&!(r&&w[0]>=q.length);d++){if(this.patternParts_[d].count==0){a:{var O=q;var H=w,L=this.patternParts_[d],S=r;if(L.text.match(eKm)!=null){if(L=H[0],
Vph(O,H),H[0]>L){O=!0;break a}}else{if(O.indexOf(L.text,H[0])==H[0]){H[0]+=L.text.length;O=!0;break a}if(S&&L.text.indexOf(O.substring(H[0]))==0){H[0]+=O.length-H[0];O=!0;break a}}O=!1}if(O)continue;return 0}if(this.patternParts_[d].abutStart){a:{H=q;L=w;S=d;var v=L[0],R=0;for(O=S;O<this.patternParts_.length;O++){var B=this.patternParts_[O],n=B.count;if(n===0)break;if(O==S&&(n-=R,R++,n==0)){O=0;break a}var x=O>S&&B.numeric,K=L[0];if(!On9(this,H,L,B,n,C,!1)||x&&L[0]-K<n)O=S-1,L[0]=v}O-=S}if(O<=0)return 0;
d+=O-1}else if(!On9(this,q,w,this.patternParts_[d],0,C,r))return 0}a:{q=Y;if(Z==null)throw Error("$d");C.era!=void 0&&C.year!=void 0&&C.era==0&&C.year>0&&(C.year=-(C.year-1));C.year!=void 0&&Z.setFullYear(C.year);r=Z.getDate();Z.setDate(1);C.month!=void 0&&Z.setMonth(C.month);C.day!=void 0?Z.setDate(C.day):(Y=Ioe(Z.getFullYear(),Z.getMonth()),Z.setDate(r>Y?Y:r));typeof Z.setHours==="function"&&(C.hours==void 0&&(C.hours=Z.getHours()),C.hours<12&&(C.ampm!=void 0&&C.ampm>0?C.hours+=12:C.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(C.dayPeriodName)||["night1","night2"].includes(C.dayPeriodName)&&C.hours>=6)&&(C.hours+=12)),Z.setHours(C.hours));typeof Z.setMinutes==="function"&&C.minutes!=void 0&&Z.setMinutes(C.minutes);typeof Z.setSeconds==="function"&&C.seconds!=void 0&&Z.setSeconds(C.seconds);typeof Z.setMilliseconds==="function"&&C.milliseconds!=void 0&&Z.setMilliseconds(C.milliseconds);if(q&&(C.year&&C.year!=Z.getFullYear()||C.month&&C.month!=
Z.getMonth()||C.day&&C.day!=Z.getDate()||C.hours&&C.hours>=24||C.minutes&&C.minutes>=60||C.seconds&&C.seconds>=60||C.milliseconds&&C.milliseconds>=1E3))Z=!1;else{C.tzOffset!=void 0&&Z.setTime(Z.getTime()+(C.tzOffset-Z.getTimezoneOffset())*60*1E3);C.ambiguousYear&&(q=new Date,q.setFullYear(q.getFullYear()-80),Z.getTime()<q.getTime()&&Z.setFullYear(q.getFullYear()+100));if(C.dayOfWeek!=void 0)if(C.day==void 0)C=(7+C.dayOfWeek-Z.getDay())%7,C>3&&(C-=7),q=Z.getMonth(),Z.setDate(Z.getDate()+C),Z.getMonth()!=
q&&Z.setDate(Z.getDate()+(C>0?-7:7));else if(C.dayOfWeek!=Z.getDay()){Z=!1;break a}Z=!0}}return Z?w[0]:0};
var On9=function(q,Z,w,r,Y,C,d){Vph(Z,w);if(r.numeric&&Y>0&&w[0]+Y>Z.length)return!1;switch(r.text.charAt(0)){case "G":return Um(Z,w,[q.JSC$9177_dateTimeSymbols_.ERAS],function(O){return C.era=O}),!0;
case "M":case "L":return HnW(q,Z,w,Y,r,C);case "E":return Um(Z,w,[q.JSC$9177_dateTimeSymbols_.WEEKDAYS,q.JSC$9177_dateTimeSymbols_.SHORTWEEKDAYS],function(O){return C.dayOfWeek=O});
case "B":case "b":return Y=[],q=[[].concat(q.JSC$9177_dateTimeSymbols_.AMPMS)],Y.push("isAm"),Y.push("isPm"),Z=Um(Z,w,q,function(O){return C.dayPeriodIndex=O},d),C.dayPeriodName=Y[C.dayPeriodIndex],d?Z:!0;
case "a":return Z=Um(Z,w,[q.JSC$9177_dateTimeSymbols_.AMPMS],function(O){return C.ampm=O},d),d?Z:!0;
case "y":return WqX(q,Z,w,r,Y,C);case "Q":return Um(Z,w,[q.JSC$9177_dateTimeSymbols_.QUARTERS,q.JSC$9177_dateTimeSymbols_.SHORTQUARTERS],function(O){C.month=O*3;C.day=1});
case "d":return kD(q,Z,w,r,Y,function(O){C.day=O}),!0;
case "S":return oc2(q,Z,w,Y,C);case "h":case "K":case "H":case "k":return Z=kD(q,Z,w,r,Y,function(O){C.hours=r.text.charAt(0)==="h"&&O===12?0:O},d),d?Z:!0;
case "m":return Z=kD(q,Z,w,r,Y,function(O){C.minutes=O},d),d?Z:!0;
case "s":return kD(q,Z,w,r,Y,function(O){C.seconds=O}),!0;
case "z":case "Z":case "v":return uA9(q,Z,w,C);default:return!1}},WqX=function(q,Z,w,r,Y,C){var d=w[0];
Y=KD(q,Z,w,Y);Y===null&&(Y=KD(q,Z,w,0,!0));if(Y===null)return!1;Y>=0&&w[0]-d==2&&r.count==2?(q=Y,Z=(new Date).getFullYear()-80,w=Z%100,C.ambiguousYear=q==w,q+=Math.floor(Z/100)*100+(q<w?100:0),C.year=q):C.year=Y;return!0},HnW=function(q,Z,w,r,Y,C){return Y.numeric&&kD(q,Z,w,Y,r,function(d){C.month=d-1})?!0:Um(Z,w,[q.JSC$9177_dateTimeSymbols_.MONTHS,
q.JSC$9177_dateTimeSymbols_.STANDALONEMONTHS,q.JSC$9177_dateTimeSymbols_.SHORTMONTHS,q.JSC$9177_dateTimeSymbols_.STANDALONESHORTMONTHS],function(d){C.month=d})},oc2=function(q,Z,w,r,Y){var C=w[0];
q=KD(q,Z,w,r);if(q===null)return!1;w=w[0]-C;Y.milliseconds=w<3?q*Math.pow(10,3-w):Math.round(q/Math.pow(10,w-3));return!0},uA9=function(q,Z,w,r){Z.indexOf("GMT",w[0])==w[0]&&(w[0]+=3);
if(w[0]>=Z.length)return r.tzOffset=0,!0;var Y=w[0],C=KD(q,Z,w,0,!0);if(C===null)return!1;if(w[0]<Z.length&&Z.charAt(w[0])==":"){var d=C*60;w[0]++;C=KD(q,Z,w,0);if(C===null)return!1;d+=C}else d=C,d=d<24&&w[0]-Y<=3?d*60:d%100+d/100*60;r.tzOffset=-d;return!0},kD=function(q,Z,w,r,Y,C,d){d=d||!1;
var O=w[0];q=KD(q,Z,w,Y);if(q===null)return!1;if(d&&w[0]-O<r.count){if(w[0]<Z.length)return!1;q*=Math.pow(10,r.count-(w[0]-O))}C(q);return!0},Um=function(q,Z,w,r,Y){Y=Y||!1;
for(var C,d=0;d<w.length;d++){C=Z;for(var O=w[d],H=Y,L=0,S=null,v=q.substring(C[0]).toLowerCase(),R=0;R<O.length;R++){var B=O[R].toLowerCase();if(H&&B.indexOf(v)==0){L=v.length;S=R;break}O[R].length>L&&v.indexOf(B)==0&&(L=O[R].length,S=R)}S!==null&&(C[0]+=L);C=S;if(C!==null)return r(C),!0}return!1},Vph=function(q,Z){(q=q.substring(Z[0]).match(Cm7))&&(Z[0]+=q[0].length)},KD=function(q,Z,w,r,Y){Z=r>0?Z.substring(0,w[0]+r):Z;
Y=Y||!1;if(q.JSC$9177_dateTimeSymbols_.ZERODIGIT){r=[];for(var C=w[0];C<Z.length;C++){var d=Z.charCodeAt(C)-q.JSC$9177_dateTimeSymbols_.ZERODIGIT;r.push(0<=d&&d<=9?String.fromCharCode(d+48):Z.charAt(C))}Z=r.join("")}else Z=Z.substring(w[0]);q=Z.match(new RegExp("^"+(Y?"[+-]?":"")+"\\d+"));if(!q)return null;w[0]+=q[0].length;return parseInt(q[0],10)},dx7=function(){};
dx7.prototype.ambiguousYear=!1;_.Lqh={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 SLD={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"},vcv=SLD,jQJ=SLD;jQJ=vcv=SLD;var RKp,sm,cR,fmN,IW,tpJ;
_.aZ=function(q,Z,w,r){var Y;if(Y=Z){a:if(Z&&Z.length===3){for(Y=0;Y<3;Y++){var C=Z[Y];if(C<"A"||C>"Z"&&C<"a"||C>"z"){Y=!1;break a}}Y=!0}else Y=!1;Y=!Y}if(Y)throw new TypeError("ae");this.intlCurrencyCode_=Z?Z.toUpperCase():null;this.currencyStyle_=w||0;this.overrideNumberFormatSymbols_=r||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_=sm(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof q==="number")switch(q){case 1:IW(this,sm(this).DECIMAL_PATTERN);break;case 2:IW(this,sm(this).SCIENTIFIC_PATTERN);break;case 3:IW(this,sm(this).PERCENT_PATTERN);break;case 4:q=sm(this).CURRENCY_PATTERN;Z=["0"];if(w=
Q6[cR(this)]){w=w[0]&7;if(w>0)for(Z.push("."),r=0;r<w;r++)Z.push("0");q=q.replace(/0.00/g,Z.join(""))}IW(this,q);break;case 5:tpJ(this,1);break;case 6:tpJ(this,2);break;default:throw Error("de");}else IW(this,q)};
RKp=!1;sm=function(q){return q.overrideNumberFormatSymbols_||(RKp?jQJ:vcv)};
cR=function(q){return q.intlCurrencyCode_||sm(q).DEF_CURRENCY_CODE};
fmN=function(q,Z){if(Z>308)throw Error("ce`"+Z);q.maximumFractionDigits_=Z;return q};
IW=function(q,Z){var w=[0];q.positivePrefix_=bng(q,Z,w);for(var r=w[0],Y=-1,C=0,d=0,O=0,H=-1,L=Z.length,S=!0;w[0]<L&&S;w[0]++)switch(Z.charAt(w[0])){case "#":d>0?O++:C++;H>=0&&Y<0&&H++;break;case "0":if(O>0)throw Error("je`"+Z);d++;H>=0&&Y<0&&H++;break;case ",":H>0&&q.groupingArray_.push(H);H=0;break;case ".":if(Y>=0)throw Error("ke`"+Z);Y=C+d+O;break;case "E":if(q.useExponentialNotation_)throw Error("le`"+Z);q.useExponentialNotation_=!0;q.minExponentDigits_=0;w[0]+1<L&&Z.charAt(w[0]+1)=="+"&&(w[0]++,
q.useSignForPositiveExponent_=!0);for(;w[0]+1<L&&Z.charAt(w[0]+1)=="0";)w[0]++,q.minExponentDigits_++;if(C+d<1||q.minExponentDigits_<1)throw Error("me`"+Z);S=!1;break;default:w[0]--,S=!1}d==0&&C>0&&Y>=0&&(d=Y,d==0&&d++,O=C-d,C=d-1,d=1);if(Y<0&&O>0||Y>=0&&(Y<C||Y>C+d)||H==0)throw Error("ne`"+Z);O=C+d+O;q.maximumFractionDigits_=Y>=0?O-Y:0;Y>=0&&(q.minimumFractionDigits_=C+d-Y,q.minimumFractionDigits_<0&&(q.minimumFractionDigits_=0));q.minimumIntegerDigits_=(Y>=0?Y:O)-C;q.useExponentialNotation_&&(q.maximumIntegerDigits_=
C+q.minimumIntegerDigits_,q.maximumFractionDigits_==0&&q.minimumIntegerDigits_==0&&(q.minimumIntegerDigits_=1));q.groupingArray_.push(Math.max(0,H));q.decimalSeparatorAlwaysShown_=Y==0||Y==O;r=w[0]-r;q.positiveSuffix_=bng(q,Z,w);w[0]<Z.length&&Z.charAt(w[0])==";"?(w[0]++,q.multiplier_!=1&&(q.negativePercentSignExpected_=!0),q.negativePrefix_=bng(q,Z,w),w[0]+=r,q.negativeSuffix_=bng(q,Z,w)):(q.negativePrefix_+=q.positivePrefix_,q.negativeSuffix_+=q.positiveSuffix_)};
tpJ=function(q,Z){q.compactStyle_=Z;IW(q,sm(q).DECIMAL_PATTERN);q.minimumFractionDigits_=0;fmN(q,2);if(q.minimumFractionDigits_>0)throw Error("be");q.significantDigits_=2};
_.aZ.prototype.parse=function(q,Z){Z=Z||[0];if(this.compactStyle_!==0)throw Error("ee");q=q.replace(/ |\u202f/g,"\u00a0");var w=q.indexOf(this.positivePrefix_,Z[0])==Z[0],r=q.indexOf(this.negativePrefix_,Z[0])==Z[0];w&&r&&(this.positivePrefix_.length>this.negativePrefix_.length?r=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(w=!1));w?Z[0]+=this.positivePrefix_.length:r&&(Z[0]+=this.negativePrefix_.length);if(q.indexOf(sm(this).INFINITY,Z[0])==Z[0]){Z[0]+=sm(this).INFINITY.length;var Y=
Infinity}else{Y=q;var C=!1,d=!1,O=!1,H=-1,L=1,S=sm(this).DECIMAL_SEP,v=sm(this).GROUP_SEP,R=sm(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");v=v.replace(/\u202f/g,"\u00a0");for(var B="";Z[0]<Y.length;Z[0]++){var n=Y.charAt(Z[0]),x=JEJ(this,n);if(x>=0&&x<=9)B+=x,O=!0;else if(n==S.charAt(0)){if(C||d)break;B+=".";C=!0}else if(n==v.charAt(0)&&("\u00a0"!=v.charAt(0)||Z[0]+1<Y.length&&JEJ(this,Y.charAt(Z[0]+1))>=0)){if(C||d)break}else if(n==R.charAt(0)){if(d)break;B+="E";d=!0;H=Z[0]}else if(n==
"+"||n=="-"){if(O&&H!=Z[0]-1)break;B+=n}else if(this.multiplier_==1&&n==sm(this).PERCENT.charAt(0)){if(L!=1)break;L=100;if(O){Z[0]++;break}}else if(this.multiplier_==1&&n==sm(this).PERMILL.charAt(0)){if(L!=1)break;L=1E3;if(O){Z[0]++;break}}else break}this.multiplier_!=1&&(L=this.multiplier_);Y=parseFloat(B)/L}if(w){if(q.indexOf(this.positiveSuffix_,Z[0])!=Z[0])return NaN;Z[0]+=this.positiveSuffix_.length}else if(r){if(q.indexOf(this.negativeSuffix_,Z[0])!=Z[0])return NaN;Z[0]+=this.negativeSuffix_.length}return r?
-Y:Y};
_.aZ.prototype.format=function(q){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(q))return sm(this).NAN;var Z=[];var w=q;if(this.compactStyle_==0)w=MB;else{w=Math.abs(w);var r=zKJ(this,w<=1?0:Ba7(w)).divisorBase;w=zKJ(this,r+Ba7(af9(this,FO(w,-r)).intValue))}q=FO(q,-w.divisorBase);(r=q<0||q==0&&1/q<0)?w.negative_prefix?Z.push(w.negative_prefix):(Z.push(w.prefix),Z.push(this.negativePrefix_)):(Z.push(w.prefix),Z.push(this.positivePrefix_));if(isFinite(q))if(q*=
r?-1:1,q*=this.multiplier_,this.useExponentialNotation_){var Y=q;if(Y==0)ncD(this,Y,this.minimumIntegerDigits_,Z),QQK(this,0,Z);else{var C=Math.floor(Math.log(Y)/Math.log(10)+2E-15);Y=FO(Y,-C);var d=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(d=C%this.maximumIntegerDigits_,d<0&&(d=this.maximumIntegerDigits_+d),Y=FO(Y,d),C-=d,d=1):this.minimumIntegerDigits_<1?(C++,Y=FO(Y,-1)):(C-=this.minimumIntegerDigits_-1,Y=FO(Y,this.minimumIntegerDigits_-
1));ncD(this,Y,d,Z);QQK(this,C,Z)}}else ncD(this,q,this.minimumIntegerDigits_,Z);else Z.push(sm(this).INFINITY);r?w.negative_suffix?Z.push(w.negative_suffix):(isFinite(q)&&Z.push(w.suffix),Z.push(this.negativeSuffix_)):(isFinite(q)&&Z.push(w.suffix),Z.push(this.positiveSuffix_));return Z.join("")};
var af9=function(q,Z){var w=FO(Z,q.maximumFractionDigits_);q.significantDigits_>0&&(w=Ecm(w,q.significantDigits_,q.maximumFractionDigits_));w=Math.round(w);if(isFinite(w)){var r=Math.floor(FO(w,-q.maximumFractionDigits_));w=Math.floor(w-FO(r,q.maximumFractionDigits_));if(w<0||w>=FO(1,q.maximumFractionDigits_))r=Math.round(Z),w=0}else r=Z,w=0;return{intValue:r,fracValue:w}},ncD=function(q,Z,w,r){if(q.minimumFractionDigits_>q.maximumFractionDigits_)throw Error("ge");
r||(r=[]);Z=af9(q,Z);var Y=Z.intValue,C=Z.fracValue,d=q.minimumFractionDigits_>0||C>0||!1;Z=q.minimumFractionDigits_;d&&(Z=q.minimumFractionDigits_);for(var O="",H=Y;H>1E20;)O="0"+O,H=Math.round(FO(H,-1));O=H+O;var L=sm(q).DECIMAL_SEP;H=sm(q).ZERO_DIGIT.codePointAt(0);var S=O.length,v=0;if(Y>0||w>0){for(Y=S;Y<w;Y++)r.push(String.fromCodePoint(H));if(q.groupingArray_.length>=2)for(w=1;w<q.groupingArray_.length;w++)v+=q.groupingArray_[w];w=S-v;if(w>0){Y=q.groupingArray_;v=S=0;for(var R,B=sm(q).GROUP_SEP,
n=O.length,x=0;x<n;x++)if(r.push(String.fromCodePoint(H+Number(O.charAt(x)))),n-x>1)if(R=Y[v],x<w){var K=w-x;(R===1||R>0&&K%R===1)&&r.push(B)}else v<Y.length&&(x===w?v+=1:R===x-w-S+1&&(r.push(B),S+=R,v+=1))}else{w=O;O=q.groupingArray_;Y=sm(q).GROUP_SEP;R=w.length;B=[];for(S=O.length-1;S>=0&&R>0;S--){v=O[S];for(n=0;n<v&&R-n-1>=0;n++)B.push(String.fromCodePoint(H+Number(w.charAt(R-n-1))));R-=v;R>0&&B.push(Y)}r.push.apply(r,B.reverse())}}else d||r.push(String.fromCodePoint(H));(q.decimalSeparatorAlwaysShown_||
d)&&r.push(L);C=String(C);d=C.split("e+");d.length==2&&(C=String(Ecm(parseFloat(d[0]),q.significantDigits_,1)),C=C.replace(".",""),C+=(0,_.U7v)("0",parseInt(d[1],10)-C.length+1));q.maximumFractionDigits_+1>C.length&&(C="1"+(0,_.U7v)("0",q.maximumFractionDigits_-C.length)+C);for(q=C.length;C.charAt(q-1)=="0"&&q>Z+1;)q--;for(Z=1;Z<q;Z++)r.push(String.fromCodePoint(H+Number(C.charAt(Z))))},QQK=function(q,Z,w){w.push(sm(q).EXP_SYMBOL);
Z<0?(Z=-Z,w.push(sm(q).MINUS_SIGN)):q.useSignForPositiveExponent_&&w.push(sm(q).PLUS_SIGN);Z=""+Z;for(var r=sm(q).ZERO_DIGIT,Y=Z.length;Y<q.minExponentDigits_;Y++)w.push(r);q=r.codePointAt(0)-xxD;for(r=0;r<Z.length;r++)w.push(String.fromCodePoint(q+Z.codePointAt(r)))},JEJ=function(q,Z){Z=Z.codePointAt(0);
if(48<=Z&&Z<58)return Z-48;q=sm(q).ZERO_DIGIT.codePointAt(0);return q<=Z&&Z<q+10?Z-q:-1},xxD="0".codePointAt(0),bng=function(q,Z,w){for(var r="",Y=!1,C=Z.length;w[0]<C;w[0]++){var d=Z.charAt(w[0]);
if(d=="'")w[0]+1<C&&Z.charAt(w[0]+1)=="'"?(w[0]++,r+="'"):Y=!Y;else if(Y)r+=d;else switch(d){case "#":case "0":case ",":case ".":case ";":return r;case "\u00a4":if(w[0]+1<C&&Z.charAt(w[0]+1)=="\u00a4")w[0]++,r+=cR(q);else switch(q.currencyStyle_){case 0:d=cR(q);r+=d in Q6?Q6[d][1]:d;break;case 2:d=cR(q);var O=Q6[d];r+=O?d==O[1]?d:d+" "+O[1]:d;break;case 1:d=cR(q),r+=d in Q6?Q6[d][2]:d}break;case "%":if(!q.negativePercentSignExpected_&&q.multiplier_!=1)throw Error("he");if(q.negativePercentSignExpected_&&
q.multiplier_!=100)throw Error("ie");q.multiplier_=100;q.negativePercentSignExpected_=!1;r+=sm(q).PERCENT;break;case "\u2030":if(!q.negativePercentSignExpected_&&q.multiplier_!=1)throw Error("he");if(q.negativePercentSignExpected_&&q.multiplier_!=1E3)throw Error("ie");q.multiplier_=1E3;q.negativePercentSignExpected_=!1;r+=sm(q).PERMILL;break;default:r+=d}}return r},MB={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},zKJ=function(q,Z){q=q.compactStyle_==1?nD.COMPACT_DECIMAL_SHORT_PATTERN:nD.COMPACT_DECIMAL_LONG_PATTERN;q==null&&(q=nD.COMPACT_DECIMAL_SHORT_PATTERN);if(Z<3)return MB;Z=Math.min(14,Z);var w=q[FO(1,Z)];for(--Z;!w&&Z>=3;)w=q[FO(1,Z)],Z--;if(!w)return MB;w=w.other;var r=q="",Y=w.indexOf(";");Y>=0&&(w=w.substring(0,Y),Y=w.substring(Y+1))&&(r=/([^0]*)(0+)(.*)/.exec(Y),q=r[1],r=r[3]);return w&&w!="0"?(w=/([^0]*)(0+)(.*)/.exec(w))?{divisorBase:Z+
1-(w[2].length-1),negative_prefix:q,negative_suffix:r,prefix:w[1],suffix:w[3]}:MB:MB},Ba7=function(q){if(!isFinite(q))return q>0?q:0;
for(var Z=0;(q/=10)>=1;)Z++;return Z},FO=function(q,Z){if(!q||!isFinite(q)||Z==0)return q;
q=String(q).split("e");return parseFloat(q[0]+"e"+(parseInt(q[1]||0,10)+Z))},TaX=function(q,Z){return q&&isFinite(q)?FO(Math.round(FO(q,Z)),-Z):q},Ecm=function(q,Z,w){if(!q)return q;
Z=Z-Ba7(q)-1;return Z<-w?TaX(q,-w):TaX(q,Z)};var UxD=function(q){return q%10==1&&q%100!=11?"one":q%10==2&&q%100!=12?"two":q%10==3&&q%100!=13?"few":"other"},kLh=UxD;
kLh=UxD;var KqW;KqW=function(q,Z){var w=q|0;if(void 0===Z){Z=Math;var r=Z.min,Y=q+"",C=Y.indexOf(".");Z=r.call(Z,C===-1?0:Y.length-C-1,3)}r=Math.pow(10,Z);q={v:Z,f:(q*r|0)%r};return w==1&&q.v==0?"one":"other"};
_.T9=KqW;_.T9=KqW;var sQm,If2,cEW,Fqm,NaJ;_.Mph=function(q){this.JSC$9220_pattern_=q;this.parsedPattern_=this.literals_=this.initialLiterals_=null;q=vcv;var Z=nD;if(sQm!==q||If2!==Z)sQm=q,If2=Z,cEW=new _.aZ(1);this.numberFormatter_=cEW};
sQm=null;If2=null;cEW=null;Fqm=RegExp("'([{}#].*?)'","g");NaJ=RegExp("''","g");
_.Mph.prototype.format=function(q){if(this.JSC$9220_pattern_){this.initialLiterals_=[];var Z=lfg(this,this.JSC$9220_pattern_);this.parsedPattern_=GL9(this,Z);this.JSC$9220_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Ge(this.initialLiterals_),Z=[],pJJ(this,this.parsedPattern_,q,!1,Z),q=Z.join("");this.literals_.length>0;)q=q.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else q="";return q};
var pJJ=function(q,Z,w,r,Y){for(var C=0;C<Z.length;C++)switch(Z[C].type){case 4:Y.push(Z[C].value);break;case 3:var d=Z[C].value;var O=q,H=Y,L=w[d];L===void 0?H.push("Undefined parameter - "+d):(O.literals_.push(L),H.push(O.buildPlaceholder_(O.literals_)));break;case 2:d=Z[C].value;O=q;H=w;L=r;var S=Y,v=d.argumentIndex;H[v]===void 0?S.push("Undefined parameter - "+v):(v=d[H[v]],v===void 0&&(v=d.other),pJJ(O,v,H,L,S));break;case 0:d=Z[C].value;XJK(q,d,w,_.T9,r,Y);break;case 1:d=Z[C].value,XJK(q,d,
w,kLh,r,Y)}},XJK=function(q,Z,w,r,Y,C){var d=Z.argumentIndex,O=Z.argumentOffset,H=+w[d];
isNaN(H)?C.push("Undefined or invalid parameter - "+d):(O=H-O,d=Z[w[d]],d===void 0&&(r=r(Math.abs(O)),d=Z[r],d===void 0&&(d=Z.other)),Z=[],pJJ(q,d,w,Y,Z),w=Z.join(""),Y?C.push(w):(q=q.numberFormatter_.format(O),C.push(w.replace(/#/g,q))))},lfg=function(q,Z){var w=q.initialLiterals_,r=q.buildPlaceholder_.bind(q);
Z=Z.replace(NaJ,function(){w.push("'");return r(w)});
return Z=Z.replace(Fqm,function(Y,C){w.push(C);return r(w)})},mxD=function(q){var Z=0,w=[],r=[],Y=/[{}]/g;
Y.lastIndex=0;for(var C;C=Y.exec(q);){var d=C.index;C[0]=="}"?(w.pop(),w.length==0&&(C={type:1},C.value=q.substring(Z,d),r.push(C),Z=d+1)):(w.length==0&&(Z=q.substring(Z,d),Z!=""&&r.push({type:0,value:Z}),Z=d+1),w.push("{"))}q=q.substring(Z);q!=""&&r.push({type:0,value:q});return r},AE7=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,ff2=/^\s*(\w+)\s*,\s*selectordinal\s*,/,Dxv=/^\s*(\w+)\s*,\s*select\s*,/,GL9=function(q,Z){var w=[];
Z=mxD(Z);for(var r=0;r<Z.length;r++){var Y={};if(0==Z[r].type)Y.type=4,Y.value=Z[r].value;else if(1==Z[r].type){var C=Z[r].value;switch(AE7.test(C)?0:ff2.test(C)?1:Dxv.test(C)?2:/^\s*\w+\s*/.test(C)?3:5){case 2:Y.type=2;Y.value=hKW(q,Z[r].value);break;case 0:Y.type=0;Y.value=yEg(q,Z[r].value);break;case 1:Y.type=1;Y.value=inp(q,Z[r].value);break;case 3:Y.type=3,Y.value=Z[r].value}}w.push(Y)}return w},hKW=function(q,Z){var w="";
Z=Z.replace(Dxv,function(O,H){w=H;return""});
var r={};r.argumentIndex=w;Z=mxD(Z);for(var Y=0;Y<Z.length;){var C=Z[Y].value;Y++;var d=void 0;1==Z[Y].type&&(d=GL9(q,Z[Y].value));r[C.replace(/\s/g,"")]=d;Y++}return r},yEg=function(q,Z){var w="",r=0;
Z=Z.replace(AE7,function(H,L,S){w=L;S&&(r=parseInt(S,10));return""});
var Y={};Y.argumentIndex=w;Y.argumentOffset=r;Z=mxD(Z);for(var C=0;C<Z.length;){var d=Z[C].value;C++;var O=void 0;1==Z[C].type&&(O=GL9(q,Z[C].value));Y[d.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=O;C++}return Y},inp=function(q,Z){var w="";
Z=Z.replace(ff2,function(O,H){w=H;return""});
var r={};r.argumentIndex=w;r.argumentOffset=0;Z=mxD(Z);for(var Y=0;Y<Z.length;){var C=Z[Y].value;Y++;var d=void 0;1==Z[Y].type&&(d=GL9(q,Z[Y].value));r[C.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=d;Y++}return r};
_.Mph.prototype.buildPlaceholder_=function(q){return"\ufddf_"+(q.length-1).toString(10)+"_"};var gc9;
gc9={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 SY2=function(){this.rdtfSymbols_=q12||gc9;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
SY2.prototype.format=function(q,Z){a:{Z=Z6D(this,Z);switch(this.style_){case 2:if(Z.NARROW!=void 0){Z=Z.NARROW;break a}case 1:if(Z.SHORT!=void 0){Z=Z.SHORT;break a}default:Z=Z.LONG;break a}Z=void 0}if(!this.alwaysNumeric_&&Z&&Z.R&&Z.R[""+q])q=Z.R[""+q];else if(Z){var w=Math.abs(q);q=(new _.Mph("{N,plural,"+(q>0||q==0&&1/q==Infinity?Z.F:Z.P)+"}")).format({N:w})}else q="";return q};
var Z6D=function(q,Z){switch(Z){default:case 0:return q.rdtfSymbols_.YEAR;case 1:return q.rdtfSymbols_.QUARTER;case 2:return q.rdtfSymbols_.MONTH;case 3:return q.rdtfSymbols_.WEEK;case 4:return q.rdtfSymbols_.DAY;case 5:return q.rdtfSymbols_.HOUR;case 6:return q.rdtfSymbols_.MINUTE;case 7:return q.rdtfSymbols_.SECOND}};var we2=function(q,Z,w,r,Y,C,d,O){this.x0=q;this.y0=Z;this.x1=w;this.y1=r;this.x2=Y;this.y2=C;this.x3=d;this.y3=O};
we2.prototype.clone=function(){return new we2(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
we2.prototype.equals=function(q){return this.x0==q.x0&&this.y0==q.y0&&this.x1==q.x1&&this.y1==q.y1&&this.x2==q.x2&&this.y2==q.y2&&this.x3==q.x3&&this.y3==q.y3};
var r77=function(q,Z){if(Z==0)return q.x0;if(Z==1)return q.x3;var w=LI(q.x0,q.x1,Z),r=LI(q.x1,q.x2,Z);q=LI(q.x2,q.x3,Z);w=LI(w,r,Z);r=LI(r,q,Z);return LI(w,r,Z)},Y12=function(q,Z){var w=(Z-q.x0)/(q.x3-q.x0);
if(w<=0)return 0;if(w>=1)return 1;for(var r=0,Y=1,C=0,d=0;d<8;d++){C=r77(q,w);var O=(r77(q,w+1E-6)-C)/1E-6;if(Math.abs(C-Z)<1E-6)return w;if(Math.abs(O)<1E-6)break;else C<Z?r=w:Y=w,w-=(C-Z)/O}for(d=0;Math.abs(C-Z)>1E-6&&d<8;d++)C<Z?(r=w,w=(w+Y)/2):(Y=w,w=(w+r)/2),C=r77(q,w);return w};var NB=function(){_.V8.call(this);this.JSC$9241_name_="closure_frame"+$0J++;this.iframesForDisposal_=[];eI9[this.JSC$9241_name_]=this},lB;
_.yU(NB,_.V8);var eI9={},$0J=0,Cle=function(q,Z){var w=o4(q);_.ETD(Z,function(r,Y){Array.isArray(r)||(r=[r]);_.Uq(r,function(C){C=w.JSC$7244_createDom("INPUT",{type:"hidden",name:Y,value:C});q.appendChild(C)})})};
_.e=NB.prototype;_.e.JSC$9243_form_=null;_.e.JSC$9243_iframe_=null;_.e.iframeName_=null;_.e.nextIframeId_=0;_.e.JSC$9243_active_=!1;_.e.complete_=!1;_.e.success_=!1;_.e.lastContent_=null;_.e.JSC$9243_lastErrorCode_=0;_.e.iframeDisposalTimer_=null;
_.e.send=function(q,Z,w,r){if(this.JSC$9243_active_)throw Error("oe");q=new _.M$(q);Z=Z?Z.toUpperCase():"GET";w&&_.hq(q);lB||(lB=_.t$("FORM"),lB.acceptCharset="utf-8",w=lB.style,w.position="absolute",w.visibility="hidden",w.top=w.left="-10px",w.width=w.height="10px",w.overflow="hidden",document.body.appendChild(lB));this.JSC$9243_form_=lB;Z=="GET"&&Cle(this.JSC$9243_form_,q.JSC$7906_queryData_);r&&Cle(this.JSC$9243_form_,r);w=q.toString();w=nrT(w);r=this.JSC$9243_form_;w=_.kv(j6(w));w!==void 0&&(r.action=
w);this.JSC$9243_form_.method=Z;PlJ(this);d0J(this)};
_.e.abort=function(q){if(this.JSC$9243_active_){var Z=GT(this);if(Z)if(CN(Z))Z.removeAllListeners(void 0);else if(Z=PD(Z)){var w=0,r;for(r in Z.listeners)for(var Y=Z.listeners[r].concat(),C=0;C<Y.length;++C)Zf(Y[C])&&++w}this.success_=this.JSC$9243_active_=this.complete_=!1;this.JSC$9243_lastErrorCode_=q||7;this.dispatchEvent("abort");Vj9(this)}};
_.e.disposeInternal=function(){this.JSC$9243_active_&&this.abort();NB.superClass_.disposeInternal.call(this);this.JSC$9243_iframe_&&O6X(this);d0J(this);this.JSC$9243_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9243_form_=null;this.JSC$9243_lastErrorCode_=0;delete eI9[this.JSC$9241_name_]};
_.e.isComplete=function(){return this.complete_};
_.e.isSuccess=function(){return this.success_};
_.e.isActive=function(){return this.JSC$9243_active_};
_.e.getResponseText=function(){return this.lastContent_};
_.e.getLastError=function(){return _.P6v(this.JSC$9243_lastErrorCode_)};
var PlJ=function(q){q.JSC$9243_active_=!0;q.complete_=!1;q.JSC$9243_lastErrorCode_=0;q.iframeName_=q.JSC$9241_name_+"_"+(q.nextIframeId_++).toString(36);q.JSC$9243_iframe_=o4(q.JSC$9243_form_).JSC$7244_createDom("IFRAME",{name:q.iframeName_,id:q.iframeName_});var Z=q.JSC$9243_iframe_.style;Z.visibility="hidden";Z.width=Z.height="10px";Z.display="none";_.YZ?Z.marginTop=Z.marginLeft="-10px":(Z.position="absolute",Z.top=Z.left="-10px");xKe(o4(q.JSC$9243_form_)).body.appendChild(q.JSC$9243_iframe_);Z=
q.iframeName_+"_inner";var w=bAh(q.JSC$9243_iframe_);if(document.baseURI){var r=GR(Z);r='<head><base href="'+GR(document.baseURI)+'"></head><body><iframe id="'+r+'" name="'+r+'"></iframe>';r=I9(r)}else r=GR(Z),r=I9('<body><iframe id="'+r+'" name="'+r+'"></iframe>');w.write(c8(r));_.Yc(w.getElementById(Z),"load",q.onIframeLoaded_,!1,q);r=OJ("TEXTAREA",q.JSC$9243_form_);for(var Y=0,C=r.length;Y<C;Y++){var d=r[Y].value;Q9J(r[Y])!=d&&(_.QW(r[Y],d),r[Y].value=d)}r=w.importNode(q.JSC$9243_form_,!0);r.target=
Z;r.action=q.JSC$9243_form_.action;w.body.appendChild(r);Y=OJ("SELECT",q.JSC$9243_form_);C=OJ("SELECT",r);d=0;for(var O=Y.length;d<O;d++)for(var H=OJ("OPTION",Y[d]),L=OJ("OPTION",C[d]),S=0,v=H.length;S<v;S++)L[S].selected=H[S].selected;Y=OJ("INPUT",q.JSC$9243_form_);C=OJ("INPUT",r);d=0;for(O=Y.length;d<O;d++)if(Y[d].type=="file"&&Y[d].value!=C[d].value){q.JSC$9243_form_.target=Z;r=q.JSC$9243_form_;break}try{q.errorHandled_=!1,r.submit(),w.close(),_.rS&&setTimeout(q.testForFirefoxSilentError_.bind(q),
250)}catch(R){_.d_(w.getElementById(Z),"load",q.onIframeLoaded_,!1,q),w.close(),pD(q,2)}};
NB.prototype.onIframeLoaded_=function(){_.d_(GT(this),"load",this.onIframeLoaded_,!1,this);try{var q=this.JSC$9243_iframe_?bAh(GT(this)):null;this.complete_=!0;this.JSC$9243_active_=!1;try{var Z=q.body;this.lastContent_=Z.textContent||Z.innerText}catch(Y){var w=1}var r;w||typeof this.errorChecker_!="function"||(r=this.errorChecker_(q))&&(w=4);w?pD(this,w):(this.success_=!0,this.JSC$9243_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),Vj9(this))}catch(Y){pD(this,1)}};
var pD=function(q,Z){q.errorHandled_||(q.success_=!1,q.JSC$9243_active_=!1,q.complete_=!0,q.JSC$9243_lastErrorCode_=Z,q.dispatchEvent("complete"),q.dispatchEvent("error"),Vj9(q),q.errorHandled_=!0)},Vj9=function(q){O6X(q);
d0J(q);q.JSC$9243_form_=null;q.dispatchEvent("ready")},O6X=function(q){var Z=q.JSC$9243_iframe_;
Z&&(Z.onreadystatechange=null,Z.onload=null,Z.onerror=null,q.iframesForDisposal_.push(Z));q.iframeDisposalTimer_&&(clearTimeout(q.iframeDisposalTimer_),q.iframeDisposalTimer_=null);_.rS?q.iframeDisposalTimer_=setTimeout(q.disposeIframes_.bind(q),2E3):q.disposeIframes_();q.JSC$9243_iframe_=null;q.iframeName_=null};
NB.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var q=this.iframesForDisposal_.pop();_.Vb(q)}};
var d0J=function(q){q.JSC$9243_form_&&q.JSC$9243_form_==lB&&_.J$(q.JSC$9243_form_)},GT=function(q){return q.JSC$9243_iframe_?bAh(q.JSC$9243_iframe_).getElementById(q.iframeName_+"_inner"):null};
NB.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9243_active_){var q=this.JSC$9243_iframe_?bAh(GT(this)):null;q&&!y19(q,"documentUri")?(_.d_(GT(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?pD(this,3):pD(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.XO=function(q){return q=="\r"||q=="\n"||q==" "||q=="\t"};var H69;_.m7=function(q){this.errorMessage_=null;this.result_=[];this.JSC$9245_buffer_="";this.stack_=[];this.JSC$9245_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!q||!q.deliverMessageAsRawString)};
H69={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};_.m7.prototype.isInputValid=function(){return this.streamState_!=3};
_.m7.prototype.done=function(){return this.streamState_===2};
var A5=function(q,Z,w){q.streamState_=3;q.errorMessage_="The stream is broken @"+q.JSC$9245_pos_+"/"+w+". With input:\n"+Z;throw Error(q.errorMessage_);};
_.m7.prototype.acceptsBinaryInput=function(){return!1};
_.m7.prototype.parse=function(q){function Z(){for(;R<q.length;)if(_.XO(q[R]))R++,C.JSC$9245_pos_++;else break;return R<L}
function w(){for(var n;;){n=q[R++];if(!n)break;C.JSC$9245_pos_++;switch(C.state_){case H.INIT:n==="{"?C.state_=H.OBJECT_OPEN:n==="["?C.state_=H.ARRAY_OPEN:_.XO(n)||A5(C,q,R);continue;case H.KEY_START:case H.OBJECT_OPEN:if(_.XO(n))continue;if(C.state_===H.KEY_START)d.push(H.KEY_END);else if(n==="}"){Y("{}");C.state_=r();continue}else d.push(H.OBJECT_END);n==='"'?C.state_=H.STRING:A5(C,q,R);continue;case H.KEY_END:case H.OBJECT_END:if(_.XO(n))continue;n===":"?(C.state_===H.OBJECT_END&&(d.push(H.OBJECT_END),
C.depth_++),C.state_=H.VALUE):n==="}"?(C.depth_--,Y(),C.state_=r()):n===","?(C.state_===H.OBJECT_END&&d.push(H.OBJECT_END),C.state_=H.KEY_START):A5(C,q,R);continue;case H.ARRAY_OPEN:case H.VALUE:if(_.XO(n))continue;if(C.state_===H.ARRAY_OPEN)if(C.depth_++,C.state_=H.VALUE,n==="]"){C.depth_--;if(C.depth_===0){C.state_=H.ARRAY_END;return}Y("[]");C.state_=r();continue}else d.push(H.ARRAY_END);n==='"'?C.state_=H.STRING:n==="{"?C.state_=H.OBJECT_OPEN:n==="["?C.state_=H.ARRAY_OPEN:n==="t"?C.state_=H.TRUE1:
n==="f"?C.state_=H.FALSE1:n==="n"?C.state_=H.NULL1:n!=="-"&&("0123456789".indexOf(n)!==-1?C.state_=H.NUM_DIGIT:A5(C,q,R));continue;case H.ARRAY_END:if(n===",")d.push(H.ARRAY_END),C.state_=H.VALUE,C.depth_===1&&(v=R);else if(n==="]"){C.depth_--;if(C.depth_===0)return;Y();C.state_=r()}else if(_.XO(n))continue;else A5(C,q,R);continue;case H.STRING:var x=R;a:for(;;){for(;C.unicodeCount_>0;)if(n=q[R++],C.unicodeCount_===4?C.unicodeCount_=0:C.unicodeCount_++,!n)break a;if(n==='"'&&!C.slashed_){C.state_=
r();break}if(n==="\\"&&!C.slashed_&&(C.slashed_=!0,n=q[R++],!n))break;if(C.slashed_)if(C.slashed_=!1,n==="u"&&(C.unicodeCount_=1),n=q[R++])continue;else break;O.lastIndex=R;n=O.exec(q);if(!n){R=q.length+1;break}R=n.index+1;n=q[n.index];if(!n)break}C.JSC$9245_pos_+=R-x;continue;case H.TRUE1:if(!n)continue;n==="r"?C.state_=H.TRUE2:A5(C,q,R);continue;case H.TRUE2:if(!n)continue;n==="u"?C.state_=H.TRUE3:A5(C,q,R);continue;case H.TRUE3:if(!n)continue;n==="e"?C.state_=r():A5(C,q,R);continue;case H.FALSE1:if(!n)continue;
n==="a"?C.state_=H.FALSE2:A5(C,q,R);continue;case H.FALSE2:if(!n)continue;n==="l"?C.state_=H.FALSE3:A5(C,q,R);continue;case H.FALSE3:if(!n)continue;n==="s"?C.state_=H.FALSE4:A5(C,q,R);continue;case H.FALSE4:if(!n)continue;n==="e"?C.state_=r():A5(C,q,R);continue;case H.NULL1:if(!n)continue;n==="u"?C.state_=H.NULL2:A5(C,q,R);continue;case H.NULL2:if(!n)continue;n==="l"?C.state_=H.NULL3:A5(C,q,R);continue;case H.NULL3:if(!n)continue;n==="l"?C.state_=r():A5(C,q,R);continue;case H.NUM_DECIMAL_POINT:n===
"."?C.state_=H.NUM_DIGIT:A5(C,q,R);continue;case H.NUM_DIGIT:if("0123456789.eE+-".indexOf(n)!==-1)continue;else R--,C.JSC$9245_pos_--,C.state_=r();continue;default:A5(C,q,R)}}}
function r(){var n=d.pop();return n!=null?n:H.VALUE}
function Y(n){C.depth_>1||(n||(n=v===-1?C.JSC$9245_buffer_+q.substring(S,R):q.substring(v,R)),C.deliverMessageAsRawString_?C.result_.push(n):C.result_.push(JSON.parse(n)),v=R)}
for(var C=this,d=C.stack_,O=C.stringInputPattern_,H=H69,L=q.length,S=0,v=-1,R=0;R<L;)switch(C.streamState_){case 3:return A5(C,q,R),null;case 2:return Z()&&A5(C,q,R),null;case 0:if(Z()){var B=q[R++];C.JSC$9245_pos_++;if(B==="["){C.streamState_=1;S=R;C.state_=H.ARRAY_OPEN;continue}else A5(C,q,R)}return null;case 1:return w(),C.depth_===0&&C.state_==H.ARRAY_END?(C.streamState_=2,C.JSC$9245_buffer_=q.substring(R)):C.JSC$9245_buffer_=v===-1?C.JSC$9245_buffer_+q.substring(S):q.substring(v),C.result_.length>
0?(B=C.result_,C.result_=[],B):null}return null};_.yU(_.Dw,Ok);hl.prototype.getValue=function(){return this.JSC$9253_value_};
hl.prototype.clone=function(){return new hl(this.JSC$9253_key_,this.JSC$9253_value_)};var fD=function(q){this.nodes_=[];if(q)a:{if(q instanceof fD){var Z=q.getKeys();q=q.getValues();if(this.getCount()<=0){for(var w=this.nodes_,r=0;r<Z.length;r++)w.push(new hl(Z[r],q[r]));break a}}else Z=_.R4.getKeys(q),q=_.R4.getValues(q);for(w=0;w<Z.length;w++)this.insert(Z[w],q[w])}};
_.e=fD.prototype;_.e.insert=function(q,Z){var w=this.nodes_;w.push(new hl(q,Z));q=w.length-1;Z=this.nodes_;for(w=Z[q];q>0;){var r=q-1>>1;if(Z[r].JSC$9253_key_>w.JSC$9253_key_)Z[q]=Z[r],q=r;else break}Z[q]=w};
_.e.remove=function(){var q=this.nodes_,Z=q.length,w=q[0];if(!(Z<=0)){if(Z==1)q.length=0;else{q[0]=q.pop();q=0;Z=this.nodes_;for(var r=Z.length,Y=Z[q];q<r>>1;){var C=q*2+1,d=q*2+2;C=d<r&&Z[d].JSC$9253_key_<Z[C].JSC$9253_key_?d:C;if(Z[C].JSC$9253_key_>Y.JSC$9253_key_)break;Z[q]=Z[C];q=C}Z[q]=Y}return w.getValue()}};
_.e.peek=function(){var q=this.nodes_;if(q.length!=0)return q[0].getValue()};
_.e.getValues=function(){for(var q=this.nodes_,Z=[],w=q.length,r=0;r<w;r++)Z.push(q[r].getValue());return Z};
_.e.getKeys=function(){for(var q=this.nodes_,Z=[],w=q.length,r=0;r<w;r++)Z.push(q[r].JSC$9253_key_);return Z};
_.e.containsValue=function(q){return this.nodes_.some(function(Z){return Z.getValue()==q})};
_.e.containsKey=function(q){return this.nodes_.some(function(Z){return Z.JSC$9253_key_==q})};
_.e.clone=function(){return new fD(this)};
_.e.getCount=function(){return this.nodes_.length};
_.e.isEmpty=function(){return this.nodes_.length===0};
_.e.clear=function(){this.nodes_.length=0};_.DG=function(q,Z){this.JSC$9259_map_={};this.JSC$9259_keys_=[];this.version_=this.size=0;var w=arguments.length;if(w>1){if(w%2)throw Error("oa");for(var r=0;r<w;r+=2)this.set(arguments[r],arguments[r+1])}else q&&this.addAll(q)};
_.e=_.DG.prototype;_.e.getCount=function(){return this.size};
_.e.getValues=function(){h5(this);for(var q=[],Z=0;Z<this.JSC$9259_keys_.length;Z++)q.push(this.JSC$9259_map_[this.JSC$9259_keys_[Z]]);return q};
_.e.getKeys=function(){h5(this);return this.JSC$9259_keys_.concat()};
_.e.containsKey=function(q){return this.has(q)};
_.e.has=function(q){return y6(this.JSC$9259_map_,q)};
_.e.containsValue=function(q){for(var Z=0;Z<this.JSC$9259_keys_.length;Z++){var w=this.JSC$9259_keys_[Z];if(y6(this.JSC$9259_map_,w)&&this.JSC$9259_map_[w]==q)return!0}return!1};
_.e.equals=function(q,Z){if(this===q)return!0;if(this.size!=q.getCount())return!1;Z=Z||Wj1;h5(this);for(var w,r=0;w=this.JSC$9259_keys_[r];r++)if(!Z(this.get(w),q.get(w)))return!1;return!0};
var Wj1=function(q,Z){return q===Z};
_.DG.prototype.isEmpty=function(){return this.size==0};
_.DG.prototype.clear=function(){this.JSC$9259_map_={};this.version_=this.size=this.JSC$9259_keys_.length=0};
_.DG.prototype.remove=function(q){return this.delete(q)};
_.DG.prototype.delete=function(q){return y6(this.JSC$9259_map_,q)?(delete this.JSC$9259_map_[q],--this.size,this.version_++,this.JSC$9259_keys_.length>2*this.size&&h5(this),!0):!1};
var h5=function(q){if(q.size!=q.JSC$9259_keys_.length){for(var Z=0,w=0;Z<q.JSC$9259_keys_.length;){var r=q.JSC$9259_keys_[Z];y6(q.JSC$9259_map_,r)&&(q.JSC$9259_keys_[w++]=r);Z++}q.JSC$9259_keys_.length=w}if(q.size!=q.JSC$9259_keys_.length){Z={};for(r=w=0;w<q.JSC$9259_keys_.length;){var Y=q.JSC$9259_keys_[w];y6(Z,Y)||(q.JSC$9259_keys_[r++]=Y,Z[Y]=1);w++}q.JSC$9259_keys_.length=r}};
_.e=_.DG.prototype;_.e.get=function(q,Z){return y6(this.JSC$9259_map_,q)?this.JSC$9259_map_[q]:Z};
_.e.set=function(q,Z){y6(this.JSC$9259_map_,q)||(this.size+=1,this.JSC$9259_keys_.push(q),this.version_++);this.JSC$9259_map_[q]=Z};
_.e.addAll=function(q){if(q instanceof _.DG)for(var Z=q.getKeys(),w=0;w<Z.length;w++)this.set(Z[w],q.get(Z[w]));else for(Z in q)this.set(Z,q[Z])};
_.e.forEach=function(q,Z){for(var w=this.getKeys(),r=0;r<w.length;r++){var Y=w[r],C=this.get(Y);q.call(Z,C,Y,this)}};
_.e.clone=function(){return new _.DG(this)};
_.e.transpose=function(){for(var q=new _.DG,Z=0;Z<this.JSC$9259_keys_.length;Z++){var w=this.JSC$9259_keys_[Z];q.set(this.JSC$9259_map_[w],w)}return q};
_.e.keys=function(){return lw1(this.__iterator__(!0)).toEs6()};
_.e.values=function(){return lw1(this.__iterator__(!1)).toEs6()};
_.e.entries=function(){var q=this;return qDv(this.keys(),function(Z){return[Z,q.get(Z)]})};
_.e.__iterator__=function(q){h5(this);var Z=0,w=this.version_,r=this,Y=new mn;Y.next=function(){if(w!=r.version_)throw Error("pe");if(Z>=r.JSC$9259_keys_.length)return A3;var C=r.JSC$9259_keys_[Z++];return fG(q?C:r.JSC$9259_map_[C])};
return Y};
var y6=function(q,Z){return Object.prototype.hasOwnProperty.call(q,Z)};var u6v=function(){this.JSC$9262_map_=new _.DG;this.JSC$9262_head_=new oBW("");this.JSC$9262_head_.next=this.JSC$9262_head_.prev=this.JSC$9262_head_},Lj2=function(q,Z){if(Z=q.JSC$9262_map_.get(Z))Z.remove(),q.insert_(Z);
return Z};
_.e=u6v.prototype;_.e.get=function(q,Z){return(q=Lj2(this,q))?q.value:Z};
_.e.set=function(q,Z){var w=Lj2(this,q);w?w.value=Z:(w=new oBW(q,Z),this.JSC$9262_map_.set(q,w),this.insert_(w))};
_.e.peek=function(){return this.JSC$9262_head_.next.value};
_.e.shift=function(){return S1m(this,this.JSC$9262_head_.next)};
_.e.pop=function(){return S1m(this,this.JSC$9262_head_.prev)};
_.e.remove=function(q){return(q=this.JSC$9262_map_.get(q))?(this.removeNode(q),!0):!1};
_.e.removeNode=function(q){q.remove();this.JSC$9262_map_.remove(q.key)};
_.e.getCount=function(){return this.JSC$9262_map_.getCount()};
_.e.isEmpty=function(){return this.JSC$9262_map_.isEmpty()};
_.e.getKeys=function(){return this.map(function(q,Z){return Z})};
_.e.getValues=function(){return this.map(function(q){return q})};
_.e.contains=function(q){return this.some(function(Z){return Z==q})};
_.e.containsKey=function(q){return this.JSC$9262_map_.containsKey(q)};
_.e.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9262_head_.prev)};
_.e.forEach=function(q,Z){for(var w=this.JSC$9262_head_.next;w!=this.JSC$9262_head_;w=w.next)q.call(Z,w.value,w.key,this)};
_.e.map=function(q,Z){for(var w=[],r=this.JSC$9262_head_.next;r!=this.JSC$9262_head_;r=r.next)w.push(q.call(Z,r.value,r.key,this));return w};
_.e.some=function(q,Z){for(var w=this.JSC$9262_head_.next;w!=this.JSC$9262_head_;w=w.next)if(q.call(Z,w.value,w.key,this))return!0;return!1};
_.e.every=function(q,Z){for(var w=this.JSC$9262_head_.next;w!=this.JSC$9262_head_;w=w.next)if(!q.call(Z,w.value,w.key,this))return!1;return!0};
_.e.insert_=function(q){q.next=this.JSC$9262_head_.next;q.prev=this.JSC$9262_head_;this.JSC$9262_head_.next=q;for(q.next.prev=q;this.getCount()>40;)this.removeNode(this.JSC$9262_head_.prev)};
var S1m=function(q,Z){q.JSC$9262_head_!=Z&&q.removeNode(Z);return Z.value},oBW=function(q,Z){this.key=q;
this.value=Z};
oBW.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var vBg=function(){fD.apply(this,arguments)};
_.z(vBg,fD);vBg.prototype.enqueue=function(q,Z){this.insert(q,Z)};var jk7=function(){var q=Error();q.name="SecurityError";throw q;},Lzj=function(){return{get opener(){return null},
get closed(){return!0},get location(){jk7()},get document(){jk7()},postMessage:function(){},
close:function(){},
focus:function(){}}};var BM6={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 Qr9={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 tj2={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(Qr9).join("|");var RIm=function(){function q(O){O.substr(-1)!==";"&&(O+=";");return d(O)}
for(var Z=Object.keys(tj2).sort(nAN),w=Object.keys(Qr9).sort(nAN),r=0,Y=0;r<w.length;r++)Z[Y]===w[r]?(w[r]+=";?",Y++):w[r]+=";";var C=new RegExp("&(?:"+w.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),d=EAT();return function(O){return String(O).replace(C,q)}}();/*

 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 b61={};var J77=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"),zI7=/[\\&]/,B67=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),ade=RegExp('[&<>"]',"g"),nBh=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),QkJ=function(q){return q.charCodeAt(0)===92?q.charAt(1):RIm(q)},EBh=function(q){return zI7.test(q)?q.replace(B67,QkJ):q},x0h=function(q){try{var Z,w="";
if(typeof Y!=="string"){var r=Y;var Y=";/?:@&=+$,-_.!~*'()#"}typeof r==="undefined"&&(r=!0);var C,d=b61[Y];if(d)var O=d;else{d=b61[Y]=[];for(C=0;C<128;C++){var H=String.fromCharCode(C);/^[0-9a-z]$/i.test(H)?d.push(H):d.push("%"+("0"+C.toString(16).toUpperCase()).slice(-2))}for(C=0;C<Y.length;C++)d[Y.charCodeAt(C)]=Y[C];O=d}var L=0;for(Z=q.length;L<Z;L++){var S=q.charCodeAt(L);if(r&&S===37&&L+2<Z&&/^[0-9a-f]{2}$/i.test(q.slice(L+1,L+3)))w+=q.slice(L,L+3),L+=2;else if(S<128)w+=O[S];else if(S>=55296&&
S<=57343){if(S>=55296&&S<=56319&&L+1<Z){var v=q.charCodeAt(L+1);if(v>=56320&&v<=57343){w+=encodeURIComponent(q[L]+q[L+1]);L++;continue}}w+="%EF%BF%BD"}else w+=encodeURIComponent(q[L])}return w}catch(R){return q}},T6e=function(q){switch(q){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return q}},iB=function(q,Z){return ade.test(q)?Z?q.replace(nBh,T6e):q.replace(ade,T6e):q};/*

 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 g4;if(String.fromCodePoint)g4=function(q){try{return String.fromCodePoint(q)}catch(Z){if(Z instanceof RangeError)return String.fromCharCode(65533);throw Z;}};
else{var U01=String.fromCharCode,kRv=Math.floor;g4=function(){var q=[],Z=-1,w=arguments.length;if(!w)return"";for(var r="";++Z<w;){var Y=Number(arguments[Z]);if(!isFinite(Y)||Y<0||Y>1114111||kRv(Y)!==Y)return String.fromCharCode(65533);if(Y<=65535)q.push(Y);else{Y-=65536;var C=(Y>>10)+55296;Y=Y%1024+56320;q.push(C,Y)}if(Z+1===w||q.length>16384)r+=U01.apply(null,q),q.length=0}return r}};var Kj7=function(q){this.root=this.current=q;this.entering=!0};
Kj7.prototype.next=function(){var q=this.current,Z=this.entering;if(q===null)return null;a:switch(q._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 w=!0;break a;default:w=!1}Z&&w?q._firstChild?(this.current=q._firstChild,this.entering=!0):this.entering=!1:q===this.root?this.current=null:q._next===null?(this.current=
q._parent,this.entering=!1):(this.current=q._next,this.entering=!0);return{entering:Z,node:q}};
var Zj=function(q,Z){this._type=q;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=Z;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};
Zj.prototype.appendChild=function(q){qI(q);q._parent=this;this._lastChild?(this._lastChild._next=q,q._prev=this._lastChild):this._firstChild=q;this._lastChild=q};
var qI=function(q){q._prev?q._prev._next=q._next:q._parent&&(q._parent._firstChild=q._next);q._next?q._next._prev=q._prev:q._parent&&(q._parent._lastChild=q._prev);q._parent=null;q._next=null;q._prev=null},skp=function(q,Z){qI(Z);
Z._next=q._next;Z._next&&(Z._next._prev=Z);Z._prev=q;q._next=Z;Z._parent=q._parent;Z._next||(Z._parent._lastChild=Z)};
Zj.prototype.insertBefore=function(q){qI(q);q._prev=this._prev;q._prev&&(q._prev._next=q);q._next=this;this._prev=q;q._parent=this._parent;q._prev||(q._parent._firstChild=q)};
_.My.Object.defineProperties(Zj.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(q){this._literal=q}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(q){this._destination=q}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(q){this._title=q}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(q){this._info=q}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(q){this._level=q}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(q){this._listData.type=q}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(q){this._listData.tight=q}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(q){this._listData.start=q}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(q){this._onEnter=q}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(q){this._onExit=q}}});var xfI=/[ \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,
TMT={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 Idg=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]/),
c7W=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),Mj1=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),FjD=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),N6p=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),ldJ=/`+/,GRh=/^`+/,pe2=/\.\.\./g,XeD=/--+/g,m0m=/^<([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])?)*)>/,
A7X=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,fdJ=/^ *(?:\n *)?/,D0W=/^[ \t\n\x0b\x0c\x0d]/,hIX=/[ \t\n\x0b\x0c\x0d]+/g,y7K=/^\s/,i67=/ *$/,gBW=/^ */,qMm=/^ *(?:\n|$)/,ZVK=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),wx1=/^[^\n`\[\]\\!<&*_'"]+/m,Zi=function(q){var Z=new Zj("text");Z._literal=q;return Z},wl=function(q){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=q||{}};
wl.prototype.match=function(q){q=q.exec(this.subject.slice(this.pos));if(q===null)return null;this.pos+=q.index+q[0].length;return q[0]};
wl.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var rl=function(q){q.match(fdJ);return!0},rLp=function(q,Z,w){var r=0;
var Y=q.pos;if(Z===39||Z===34)r++,q.pos++;else for(;q.peek()===Z;)r++,q.pos++;if(r===0)r=null;else{var C=Y===0?"\n":q.subject.charAt(Y-1);var d=q.peek();d=d===-1?"\n":g4(d);var O=y7K.test(d);d=Idg.test(d);var H=y7K.test(C);var L=Idg.test(C);C=!O&&!(d&&!H&&!L);O=!H&&!(L&&!O&&!d);Z===95?(H=C&&(!O||L),d=O&&(!C||d)):(H=Z===39||Z===34?C&&!O:C,d=O);q.pos=Y;r={numdelims:r,can_open:H,can_close:d}}if(!r)return!1;Y=r.numdelims;d=q.pos;q.pos+=Y;d=Z===39?"\u2019":Z===34?"\u201c":q.subject.slice(d,q.pos);d=Zi(d);
w.appendChild(d);q.delimiters={cc:Z,numdelims:Y,origdelims:Y,node:d,previous:q.delimiters,next:null,can_open:r.can_open,can_close:r.can_close};q.delimiters.previous!==null&&(q.delimiters.previous.next=q.delimiters);return!0},YMX=function(q,Z){Z.previous!==null&&(Z.previous.next=Z.next);
Z.next===null?q.delimiters=Z.previous:Z.next.previous=Z.previous},$A9=function(q,Z){var w,r,Y=[],C=!1;
Y[95]=Z;Y[42]=Z;Y[39]=Z;Y[34]=Z;for(w=q.delimiters;w!==null&&w.previous!==Z;)w=w.previous;for(;w!==null;){var d=w.cc;if(w.can_close){var O=w.previous;for(r=!1;O!==null&&O!==Z&&O!==Y[d];){C=(w.can_open||O.can_close)&&(O.origdelims+w.origdelims)%3===0;if(O.cc===w.cc&&O.can_open&&!C){r=!0;break}O=O.previous}var H=w;if(d===42||d===95)if(r){var L=w.numdelims>=2&&O.numdelims>=2?2:1;var S=O.node;var v=w.node;O.numdelims-=L;w.numdelims-=L;S._literal=S._literal.slice(0,S._literal.length-L);v._literal=v._literal.slice(0,
v._literal.length-L);var R=new Zj(L===1?"emph":"strong");for(L=S._next;L&&L!==v;){var B=L._next;qI(L);R.appendChild(L);L=B}skp(S,R);L=O;B=w;L.next!==B&&(L.next=B,B.previous=L);O.numdelims===0&&(qI(S),YMX(q,O));w.numdelims===0&&(qI(v),O=w.next,YMX(q,w),w=O)}else w=w.next;else d===39?(w.node._literal="\u2019",r&&(O.node._literal="\u2018"),w=w.next):d===34&&(w.node._literal="\u201d",r&&(O.node.literal="\u201c"),w=w.next);r||C||(Y[d]=H.previous,H.can_open||YMX(q,H))}else w=w.next}for(;q.delimiters!==
null&&q.delimiters!==Z;)YMX(q,q.delimiters)},eY7=function(q){q=q.match(c7W);
return q===null?null:EBh(q.substr(1,q.length-2))},CoK=function(q){var Z=q.match(Mj1);
if(Z===null){Z=q.pos;for(var w=0,r;(r=q.peek())!==-1;)if(r===92)q.pos+=1,q.peek()!==-1&&(q.pos+=1);else if(r===40)q.pos+=1,w+=1;else if(r===41)if(w<1)break;else q.pos+=1,--w;else if(D0W.exec(g4(r))!==null)break;else q.pos+=1;Z=q.subject.substr(Z,q.pos-Z);return x0h(EBh(Z))}return x0h(EBh(Z.substr(1,Z.length-2)))},Po7=function(q){q=q.match(ZVK);
return q===null||q.length>1001?0:q.length},dA7=function(q,Z,w,r){q.brackets!==null&&(q.brackets.bracketAfter=!0);
q.brackets={node:Z,previous:q.brackets,previousDelimiter:q.delimiters,index:w,image:r,active:!0}},Vrv=function(q,Z){var w;
return(w=q.match(wx1))?(q.options.smart?Z.appendChild(Zi(w.replace(pe2,"\u2026").replace(XeD,function(r){var Y=0,C=0;r.length%3===0?C=r.length/3:r.length%2===0?Y=r.length/2:r.length%3===2?(Y=1,C=(r.length-2)/3):(Y=2,C=(r.length-4)/3);r="";var d;for(d=0;d<C;d++)r+="\u2014";for(d=0;d<Y;d++)r+="\u2013";return r}))):Z.appendChild(Zi(w)),!0):!1},OVX=function(q,Z,w){q.subject=Z;
q.pos=0;Z=q.pos;var r=Po7(q);if(r===0)return 0;var Y=q.subject.substr(0,r);if(q.peek()===58)q.pos++;else return q.pos=Z,0;rl(q);r=CoK(q);if(r===null||r.length===0)return q.pos=Z,0;var C=q.pos;rl(q);var d=eY7(q);d===null&&(d="",q.pos=C);var O=!0;q.match(qMm)===null&&(d===""?O=!1:(d="",q.pos=C,O=q.match(qMm)!==null));if(!O)return q.pos=Z,0;Y=Uf6(Y);if(Y==="")return q.pos=Z,0;w[Y]||(w[Y]={destination:r,title:d});return q.pos-Z},HVX=function(q,Z){var w,r=q.peek();
if(r===-1)return!1;switch(r){case 10:q.pos+=1;if((w=Z._lastChild)&&w.type==="text"&&w._literal[w._literal.length-1]===" "){var Y=w._literal[w._literal.length-2]===" ";w._literal=w._literal.replace(i67,"");Z.appendChild(new Zj(Y?"linebreak":"softbreak"))}else Z.appendChild(new Zj("softbreak"));q.match(gBW);w=!0;break;case 92:w=q.subject;q.pos+=1;q.peek()===10?(q.pos+=1,w=new Zj("linebreak"),Z.appendChild(w)):FjD.test(w.charAt(q.pos))?(Z.appendChild(Zi(w.charAt(q.pos))),q.pos+=1):Z.appendChild(Zi("\\"));
w=!0;break;case 96:a:if(w=q.match(GRh),w===null)w=!1;else{Y=q.pos;for(var C;(C=q.match(ldJ))!==null;)if(C===w){C=new Zj("code");C._literal=q.subject.slice(Y,q.pos-w.length).trim().replace(hIX," ");Z.appendChild(C);w=!0;break a}q.pos=Y;Z.appendChild(Zi(w));w=!0}break;case 42:case 95:w=rLp(q,r,Z);break;case 39:case 34:w=q.options.smart&&rLp(q,r,Z);break;case 91:w=q.pos;q.pos+=1;Y=Zi("[");Z.appendChild(Y);dA7(q,Y,w,!1);w=!0;break;case 33:w=q.pos;q.pos+=1;q.peek()===91?(q.pos+=1,Y=Zi("!["),Z.appendChild(Y),
dA7(q,Y,w+1,!0)):Z.appendChild(Zi("!"));w=!0;break;case 93:var d,O=!1,H;q.pos+=1;var L=q.pos;Y=q.brackets;if(Y===null)Z.appendChild(Zi("]"));else if(Y.active){w=Y.image;var S=q.pos;q.peek()===40&&(q.pos++,rl(q)&&(C=CoK(q))!==null&&rl(q)&&(D0W.test(q.subject.charAt(q.pos-1))&&(d=eY7(q)),1)&&rl(q)&&q.peek()===41?(q.pos+=1,O=!0):q.pos=S);if(!O){var v=q.pos,R=Po7(q);R>2?H=q.subject.slice(v,v+R):Y.bracketAfter||(H=q.subject.slice(Y.index,L));R===0&&(q.pos=S);H&&(H=q.refmap[Uf6(H)])&&(C=H.destination,d=
H.title,O=!0)}if(O){L=new Zj(w?"image":"link");L._destination=C;L._title=d||"";for(C=Y.node._next;C;)d=C._next,qI(C),L.appendChild(C),C=d;Z.appendChild(L);$A9(q,Y.previousDelimiter);q.brackets=q.brackets.previous;qI(Y.node);if(!w)for(Y=q.brackets;Y!==null;)Y.image||(Y.active=!1),Y=Y.previous}else q.brackets=q.brackets.previous,q.pos=L,Z.appendChild(Zi("]"))}else Z.appendChild(Zi("]")),q.brackets=q.brackets.previous;w=!0;break;case 60:(w=q.match(m0m))?(w=w.slice(1,w.length-1),Y=new Zj("link"),Y._destination=
x0h("mailto:"+w),Y._title="",Y.appendChild(Zi(w)),Z.appendChild(Y),w=!0):(w=q.match(A7X))?(w=w.slice(1,w.length-1),Y=new Zj("link"),Y._destination=x0h(w),Y._title="",Y.appendChild(Zi(w)),Z.appendChild(Y),w=!0):w=!1;w||(w=q.match(J77),w===null?w=!1:(Y=new Zj("html_inline"),Y._literal=w,Z.appendChild(Y),w=!0));break;case 38:(w=q.match(N6p))?(Z.appendChild(Zi(RIm(w))),w=!0):w=!1;break;default:w=Vrv(q,Z)}w||(q.pos+=1,Z.appendChild(Zi(g4(r))));return!0};
wl.prototype.parseInlines=function(q){this.subject=q._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;HVX(this,q););q._string_content=null;$A9(this,null)};
wl.prototype.parse=wl.prototype.parseInlines;var WWW=[/./,/^<(?: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")],oLh=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],u_9=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,LWg=/^[#`~*+_=<>0-9-\|]|\|/,SMv=/[^ \t\f\v\r\n]/,vLv=/^[*+-]/,j57=/^(\d{1,9})([.)])/,trh=/^#{1,6}(?:[ \t]+|$)/,RYp=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,bV7=/^(?:`{3,}|~{3,})(?= *$)/,JLp=/^(?:=+|-+)[ \t]*$/,zYK=/\r\n|\n|\r/,K9z=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,sr1=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Bp9={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(q){return q!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(q,Z){for(q=Z._firstChild;q;){if(k3z(q)&&q._next){Z._listData.tight=!1;break}for(var w=q._firstChild;w;){if(k3z(w)&&(q._next||w._next)){Z._listData.tight=!1;break}w=w._next}q=q._next}},
canContain:function(q){return q==="item"},
acceptsLines:!1},block_quote:{continue:function(q){var Z=q.currentLine;if(q.indented||i9(Z,q.nextNonspace)!==62)return 1;YJ(q);$J(q,1,!1);y4(i9(Z,q.offset))&&$J(q,1,!0);return 0},
finalize:function(){},
canContain:function(q){return q!=="item"},
acceptsLines:!1},item:{continue:function(q,Z){if(q.blank){if(Z._firstChild==null)return 1;YJ(q)}else if(q.indent>=Z._listData.markerOffset+Z._listData.padding)$J(q,Z._listData.markerOffset+Z._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(q){return q!=="item"&&!IIe(q)},
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(q,Z){var w=q.currentLine,r=q.indent;if(Z._isFenced){if((r=r<=3&&w.charAt(q.nextNonspace)===Z._fenceChar&&w.slice(q.nextNonspace).match(bV7))&&r[0].length>=Z._fenceLength)return q.finalize(Z,q.lineNumber),2;for(Z=Z._fenceOffset;Z>0&&y4(i9(w,q.offset));)$J(q,1,!0),Z--}else if(r>=4)$J(q,4,!0);else if(q.blank)YJ(q);else return 1;return 0},
finalize:function(q,Z){if(Z._isFenced){var w=Z._string_content,r=w.indexOf("\n");q=w.slice(0,r);w=w.slice(r+1);Z.info=EBh(q.trim());Z._literal=w}else Z._literal=Z._string_content.replace(/(\n *)+$/,"\n");Z._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(q,Z){return!q.blank||Z._htmlBlockType!==6&&Z._htmlBlockType!==7?0:1},
finalize:function(q,Z){Z._literal=Z._string_content.replace(/(\n *)+$/,"");Z._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(q){return q.blank?1:0},
finalize:function(q,Z){for(var w,r=!1;i9(Z._string_content,0)===91&&(w=OVX(q.inlineParser,Z._string_content,q.refmap));)Z._string_content=Z._string_content.slice(w),r=!0;r&&!SMv.test(Z._string_content)&&qI(Z)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(q){return q$(q.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(q){return q=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(q,Z){if(!Z._rowIsDelimiter){q=Z._isHeader?"th":"td";for(var w=Z._parent._tableColumns,r=Z._string_content,Y=0,C="",d,O=Z._sourcepos[0][0];Y<r.length;){switch(r[Y]){case "|":d&&(d._string_content=C.trim(),C="",d=null,w--,w<=0&&(Y=r.length));break;default:if(!d){d=new Zj(q,[[O,Y],[O,Y]]);var H=Z._parent._columnAlignment,L=Z._parent._tableColumns-w;H&&L<=H.length&&L>=0&&(d._alignment=H[L]);Z.appendChild(d)}C+=r[Y];d._sourcepos[1][1]=Y}Y++}d&&(d._string_content=C.trim());Z._string_content=
""}},
canContain:function(q){return q!=="row"},
acceptsLines:!1}},av1=[function(q){if(q.indented||i9(q.currentLine,q.nextNonspace)!==62)return 0;YJ(q);$J(q,1,!1);y4(i9(q.currentLine,q.offset))&&$J(q,1,!0);eQ(q);q.addChild("block_quote",q.nextNonspace);return 1},
function(q){var Z;if(!q.indented&&(Z=q.currentLine.slice(q.nextNonspace).match(trh))){YJ(q);$J(q,Z[0].length,!1);eQ(q);var w=q.addChild("heading",q.nextNonspace);w.level=Z[0].trim().length;w._string_content=q.currentLine.slice(q.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");$J(q,q.currentLine.length-q.offset);return 2}return 0},
function(q){var Z;if(!q.indented&&(Z=q.currentLine.slice(q.nextNonspace).match(RYp))){var w=Z[0].length;eQ(q);var r=q.addChild("code_block",q.nextNonspace);r._isFenced=!0;r._fenceLength=w;r._fenceChar=Z[0][0];r._fenceOffset=q.indent;YJ(q);$J(q,w,!1);return 2}return 0},
function(q,Z){if(!q.indented&&i9(q.currentLine,q.nextNonspace)===60){var w=q.currentLine.slice(q.nextNonspace),r;for(r=1;r<=7;r++)if(WWW[r].test(w)&&(r<7||Z.type!=="paragraph"))return eQ(q),q.addChild("html_block",q.offset)._htmlBlockType=r,2}return 0},
function(q,Z){var w;if(!q.indented&&Z.type==="paragraph"&&(w=q.currentLine.slice(q.nextNonspace).match(JLp))){eQ(q);var r=new Zj("heading",Z.sourcepos);r.level=w[0][0]==="="?1:2;r._string_content=Z._string_content;skp(Z,r);qI(Z);q.tip=r;$J(q,q.currentLine.length-q.offset,!1);return 2}return 0},
function(q){return!q.indented&&u_9.test(q.currentLine.slice(q.nextNonspace))?(eQ(q),q.addChild("thematic_break",q.nextNonspace),$J(q,q.currentLine.length-q.offset,!1),2):0},
function(q,Z){var w,r;if(!(r=q.indented&&Z.type!=="list")){a:{var Y=Z,C=q.currentLine.slice(q.nextNonspace);r={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:q.indent};if(w=C.match(vLv))r.type="bullet",r.bulletChar=w[0][0];else{if(!(w=C.match(j57))||Y.type==="paragraph"&&w[1]!=="1"){w=null;break a}r.type="ordered";r.start=parseInt(w[1],10);r.delimiter=w[2]}var d=i9(q.currentLine,q.nextNonspace+w[0].length);if(d!==-1&&d!==9&&d!==32||Y.type==="paragraph"&&!q.currentLine.slice(q.nextNonspace+
w[0].length).match(SMv))w=null;else{YJ(q);$J(q,w[0].length,!0);Y=q.column;C=q.offset;do $J(q,1,!0),d=i9(q.currentLine,q.offset);while(q.column-Y<5&&y4(d));d=i9(q.currentLine,q.offset)===-1;var O=q.column-Y;O>=5||O<1||d?(r.padding=w[0].length+1,q.column=Y,q.offset=C,y4(i9(q.currentLine,q.offset))&&$J(q,1,!0)):r.padding=w[0].length+O;w=r}}r=!w}if(r)return 0;eQ(q);(r=q.tip.type!=="list")||(Z=Z._listData,r=!(Z.type===w.type&&Z.delimiter===w.delimiter&&Z.bulletChar===w.bulletChar));r&&(Z=q.addChild("list",
q.nextNonspace),Z._listData=w);Z=q.addChild("item",q.nextNonspace);Z._listData=w;return 1},
function(q){var Z;return((Z=q.options.shouldParseIndentAsCodeBlock)!=null?Z:1)&&q.indented&&q.tip.type!=="paragraph"&&!q.blank?($J(q,4,!0),eQ(q),q.addChild("code_block",q.offset),2):0},
function(q,Z){var w=q$(q.currentLine),r=q$(q.lookahead);if(w!==0&&r<0&&Math.abs(w)==Math.abs(r)&&!IIe(Z.type)){eQ(q);Z=q.addChild("table",q.nextNonspace);Z._tableRows=1;Z._tableColumns=Math.abs(w);w=q.lookahead;if(sr1.test(w)){r=[];for(var Y=0,C=!1,d=0,O=void 0;Y<w.length;){var H=d>=3;switch(w[Y]){case "-":d++;break;case "|":C&&(r.push(O),O=void 0,d=0);C=!0;break;case ":":O||H||(O="left"),!O&&H&&(O="right"),O==="left"&&H&&(O="center")}Y++}w=r}else w=void 0;Z._columnAlignment=w;Z=q.addChild("row",
q.nextNonspace);Z._isHeader=!0;$J(q,q.currentLine.length-q.offset,!1);Z._string_content=q.currentLine;return 1}return 0},
function(q,Z){if(Z.type=="table"&&q$(q.currentLine)!==0){eQ(q);var w=Z;Z=q.addChild("row",q.nextNonspace);q$(q.currentLine)<0?Z._rowIsDelimiter=!0:w._tableRows+=1;$J(q,q.currentLine.length-q.offset,!1);Z._string_content=q.currentLine;return 2}return 0}],VvX=function(){var q={shouldParseIndentAsCodeBlock:!1};
q=q===void 0?{}:q;this.lastMatchedContainer=this.doc=c$X();this.refmap={};this.lastLineLength=0;this.inlineParser=new wl(q);this.options=q;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=Bp9;this.blockStarts=av1},nLK=function(q){q.partiallyConsumedTab&&(q.offset+=1,q.tip._string_content+=" ".repeat(4-q.column%
4));
q.tip._string_content+=q.currentLine.slice(q.offset)+"\n"};
VvX.prototype.addChild=function(q,Z){for(;!this.blocks[this.tip.type].canContain(q);)this.finalize(this.tip,this.lineNumber-1);q=new Zj(q,[[this.lineNumber,Z+1],[0,0]]);q._string_content="";this.tip.appendChild(q);return this.tip=q};
var eQ=function(q){if(!q.allClosed){for(;q.oldtip!==q.lastMatchedContainer;){var Z=q.oldtip._parent;q.finalize(q.oldtip,q.lineNumber-1);q.oldtip=Z}q.allClosed=!0}},$J=function(q,Z,w){for(var r=q.currentLine,Y,C;Z>0&&(C=r[q.offset]);)C==="\t"?(Y=4-q.column%4,w?(q.partiallyConsumedTab=Y>Z,Y=Y>Z?Z:Y,q.column+=Y,q.offset+=q.partiallyConsumedTab?0:1,Z-=Y):(q.partiallyConsumedTab=!1,q.column+=Y,q.offset+=1,--Z)):(q.partiallyConsumedTab=!1,q.offset+=1,q.column+=1,--Z)},YJ=function(q){q.offset=q.nextNonspace;
q.column=q.nextNonspaceColumn;q.partiallyConsumedTab=!1},Q5W=function(q){for(var Z=q.currentLine,w=q.offset,r=q.column,Y;(Y=Z.charAt(w))!=="";)if(Y===" ")w++,r++;
else if(Y==="\t")w++,r+=4-r%4;else break;q.blank=Y==="\n"||Y==="\r"||Y==="";q.nextNonspace=w;q.nextNonspaceColumn=r;q.indent=q.nextNonspaceColumn-q.column;q.indented=q.indent>=4};
VvX.prototype.finalize=function(q,Z){var w=q._parent;q._open=!1;q.sourcepos[1]=[Z,this.lastLineLength];this.blocks[q.type].finalize(this,q);this.tip=w};
VvX.prototype.parse=function(q){this.tip=this.doc=c$X();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!q)return this.doc;this.options.time&&console.time("preparing input");var Z=q.split(zYK),w=Z.length;q.charCodeAt(q.length-1)===10&&--w;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(q=0;q<w;q++)a:{var r=void 0,Y=Z[q],C=Z[q+1],d=!0,O=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;Y.indexOf("\x00")!==-1&&(Y=Y.replace(/\0/g,"\ufffd"));this.currentLine=Y;for(this.lookahead=C;(r=O._lastChild)&&r._open;){O=r;Q5W(this);switch(this.blocks[O.type].continue(this,O)){case 0:break;case 1:d=!1;break;case 2:this.lastLineLength=Y.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!d){O=O._parent;break}}this.allClosed=O===this.oldtip;this.lastMatchedContainer=
O;r=O.type!=="paragraph"&&Bp9[O.type].acceptsLines;C=this.blockStarts;for(d=C.length;!r;){Q5W(this);if(!this.indented&&!LWg.test(Y.slice(this.nextNonspace))){YJ(this);break}for(var H=0;H<d;){var L=C[H](this,O);if(L===1){O=this.tip;break}else if(L===2){O=this.tip;r=!0;break}else H++}if(H===d){YJ(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){eQ(this);this.blank&&O.lastChild&&(O.lastChild._lastLineBlank=!0);r=O.type;C=this.blank&&!(r==="block_quote"||r==="code_block"&&O._isFenced||
r==="item"&&!O._firstChild&&O.sourcepos[0][0]===this.lineNumber);for(d=O;d;)d._lastLineBlank=C,d=d._parent;this.blocks[r].acceptsLines?(nLK(this),r==="html_block"&&O._htmlBlockType>=1&&O._htmlBlockType<=5&&oLh[O._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(O,this.lineNumber)):this.offset<Y.length&&!this.blank&&(this.addChild("paragraph",this.offset),YJ(this),nLK(this))}else nLK(this);this.lastLineLength=Y.length}for(;this.tip;)this.finalize(this.tip,w);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");Y=new Kj7(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;w=Y.next();)Z=w.node,q=Z.type,w.entering||q!=="paragraph"&&q!=="heading"&&q!=="th"&&q!="td"||this.inlineParser.parse(Z);this.options.time&&console.timeEnd("inline parsing");return this.doc};Mz2.prototype.render=function(q){q=new Kj7(q);var Z;this.buffer="";for(this.lastOut="\n";Z=q.next();){var w=Z.node.type;if(this[w])this[w](Z.node,Z.entering)}return this.buffer};
Mz2.prototype.out=function(q){Ck(this,q)};
var Ck=function(q,Z){q.buffer+=Z;q.lastOut=Z};
Mz2.prototype.cr=function(){this.lastOut!=="\n"&&Ck(this,"\n")};var EL7=/^javascript:|vbscript:|file:|data:/i,xAK=/^data:image\/(?:png|gif|jpeg|webp)/i,TpJ=function(q){return EL7.test(q)&&!xAK.test(q)};
w0.prototype=Object.create(Mz2.prototype);_.e=w0.prototype;_.e.text=function(q){this.out(q.literal)};
_.e.html_inline=function(q){this.options.safe?Ck(this,"\x3c!-- raw HTML omitted --\x3e"):Ck(this,q.literal)};
_.e.html_block=function(q){this.cr();this.options.safe?Ck(this,"\x3c!-- raw HTML omitted --\x3e"):Ck(this,q.literal);this.cr()};
_.e.softbreak=function(){Ck(this,this.options.softbreak)};
_.e.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.e.link=function(q,Z){var w=this.attrs(q);Z?(this.options.safe&&TpJ(q.destination)||w.push(["href",iB(q.destination,!0)]),q.title&&w.push(["title",iB(q.title,!0)]),this.tag("a",w)):this.tag("/a")};
_.e.image=function(q,Z){Z?(this.disableTags===0&&(this.options.safe&&TpJ(q.destination)?Ck(this,'<img src="" alt="'):Ck(this,'<img src="'+iB(q.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(q.title&&Ck(this,'" title="'+iB(q.title,!0)),Ck(this,'" />')))};
_.e.emph=function(q,Z){this.tag(Z?"em":"/em")};
_.e.strong=function(q,Z){this.tag(Z?"strong":"/strong")};
_.e.paragraph=function(q,Z){var w=q.parent.parent;q=this.attrs(q);w!==null&&w.type==="list"&&w.listTight||(Z?(this.cr(),this.tag("p",q)):(this.tag("/p"),this.cr()))};
_.e.heading=function(q,Z){var w="h"+q.level;q=this.attrs(q);Z?(this.cr(),this.tag(w,q)):(this.tag("/"+w),this.cr())};
_.e.code=function(q){this.tag("code");this.out(q.literal);this.tag("/code")};
_.e.code_block=function(q){var Z=q.info?q.info.split(/\s+/):[],w=this.attrs(q);Z.length>0&&Z[0].length>0&&w.push(["class","language-"+iB(Z[0],!0)]);this.cr();this.tag("pre");this.tag("code",w);this.out(q.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.e.thematic_break=function(q){q=this.attrs(q);this.cr();this.tag("hr",q,!0);this.cr()};
_.e.block_quote=function(q,Z){q=this.attrs(q);Z?(this.cr(),this.tag("blockquote",q)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.e.list=function(q,Z){var w=q.listType==="bullet"?"ul":"ol",r=this.attrs(q);Z?(q=q.listStart,q!==null&&q!==1&&r.push(["start",q.toString()]),this.cr(),this.tag(w,r)):(this.cr(),this.tag("/"+w));this.cr()};
_.e.item=function(q,Z){q=this.attrs(q);Z?this.tag("li",q):(this.tag("/li"),this.cr())};
_.e.custom_inline=function(q,Z){Z&&q.onEnter?Ck(this,q.onEnter):!Z&&q.onExit&&Ck(this,q.onExit)};
_.e.custom_block=function(q,Z){this.cr();Z&&q.onEnter?Ck(this,q.onEnter):!Z&&q.onExit&&Ck(this,q.onExit);this.cr()};
_.e.table=function(q,Z){q=this.attrs(q);Z?(this.cr(),this.tag("table",q)):(this.tag("/table"),this.cr())};
_.e.row=function(q,Z){q._rowIsDelimiter||(q=this.attrs(q),Z?this.tag("tr",q):this.tag("/tr"))};
_.e.td=function(q,Z){var w=this.attrs(q);q._alignment&&w.push(["align",q._alignment]);Z?this.tag("td",w):this.tag("/td")};
_.e.th=function(q,Z){var w=this.attrs(q);q._alignment&&w.push(["align",q._alignment]);Z?this.tag("th",w):this.tag("/th")};
_.e.out=function(q){Ck(this,iB(q,!1))};
_.e.tag=function(q,Z,w){if(!(this.disableTags>0)){this.buffer+="<"+q;if(Z&&Z.length>0){q=0;for(var r;(r=Z[q])!==void 0;)this.buffer+=" "+r[0]+'="'+r[1]+'"',q++}w&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.e.attrs=function(q){var Z=[];this.options.sourcepos&&(q=q.sourcepos)&&Z.push(["data-sourcepos",String(q[0][0])+":"+String(q[0][1])+"-"+String(q[1][0])+":"+String(q[1][1])]);return Z};
w0.prototype.text=w0.prototype.text;w0.prototype.html_inline=w0.prototype.html_inline;w0.prototype.html_block=w0.prototype.html_block;w0.prototype.softbreak=w0.prototype.softbreak;w0.prototype.linebreak=w0.prototype.linebreak;w0.prototype.link=w0.prototype.link;w0.prototype.image=w0.prototype.image;w0.prototype.emph=w0.prototype.emph;w0.prototype.strong=w0.prototype.strong;w0.prototype.paragraph=w0.prototype.paragraph;w0.prototype.heading=w0.prototype.heading;w0.prototype.code=w0.prototype.code;
w0.prototype.code_block=w0.prototype.code_block;w0.prototype.thematic_break=w0.prototype.thematic_break;w0.prototype.block_quote=w0.prototype.block_quote;w0.prototype.list=w0.prototype.list;w0.prototype.item=w0.prototype.item;w0.prototype.custom_inline=w0.prototype.custom_inline;w0.prototype.custom_block=w0.prototype.custom_block;w0.prototype.table=w0.prototype.table;w0.prototype.row=w0.prototype.row;w0.prototype.td=w0.prototype.td;w0.prototype.th=w0.prototype.th;w0.prototype.out=w0.prototype.out;
w0.prototype.tag=w0.prototype.tag;w0.prototype.attrs=w0.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 UA7,kd2,WRN;(function(){function q(T,Q){return T<Q?-1:T>Q?1:T>=Q?0:NaN}
function Z(T){return function(Q,c){return q(T(Q),c)}}
function w(){for(var T=0,Q=arguments.length,c={},m;T<Q;++T){if(!(m=arguments[T]+"")||m in c)throw Error("re`"+m);c[m]=[]}return new r(c)}
function r(T){this._=T}
function Y(T,Q){return T.trim().split(/^|\s+/).map(function(c){var m="",wz=c.indexOf(".");wz>=0&&(m=c.slice(wz+1),c=c.slice(0,wz));if(c&&!Q.hasOwnProperty(c))throw Error("se`"+c);return{type:c,name:m}})}
function C(T,Q,c){for(var m=0,wz=T.length;m<wz;++m)if(T[m].name===Q){T[m]=Zwu;T=T.slice(0,m).concat(T.slice(m+1));break}c!=null&&T.push({name:Q,value:c});return T}
function d(T){var Q=T,c=Q.indexOf(":");c>=0&&(Q=T.slice(0,c))!=="xmlns"&&(T=T.slice(c+1));return sM.hasOwnProperty(Q)?{space:sM[Q],local:T}:T}
function O(T){return function(){var Q=this.ownerDocument,c=this.namespaceURI;return c==="http://www.w3.org/1999/xhtml"&&Q.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?Q.createElement(T):Q.createElementNS(c,T)}}
function H(T){return function(){return this.ownerDocument.createElementNS(T.space,T.local)}}
function L(T){T=d(T);return(T.local?H:O)(T)}
function S(){}
function v(T){return T==null?S:function(){return this.querySelector(T)}}
function R(T){return Array(T.length)}
function B(T,Q){this.ownerDocument=T.ownerDocument;this.namespaceURI=T.namespaceURI;this._next=null;this._parent=T;this.__data__=Q}
function n(T){return function(){return T}}
function x(T,Q,c,m,wz,dz){for(var oT=0,ze,fX=Q.length,mI=dz.length;oT<mI;++oT)(ze=Q[oT])?(ze.__data__=dz[oT],m[oT]=ze):c[oT]=new B(T,dz[oT]);for(;oT<fX;++oT)if(ze=Q[oT])wz[oT]=ze}
function K(T,Q,c,m,wz,dz,oT){var ze,fX,mI={},h2=Q.length,e2=dz.length,lX=Array(h2),O6;for(ze=0;ze<h2;++ze)if(fX=Q[ze])lX[ze]=O6="$"+oT.call(fX,fX.__data__,ze,Q),O6 in mI?wz[ze]=fX:mI[O6]=fX;for(ze=0;ze<e2;++ze)O6="$"+oT.call(T,dz[ze],ze,dz),(fX=mI[O6])?(m[ze]=fX,fX.__data__=dz[ze],mI[O6]=null):c[ze]=new B(T,dz[ze]);for(ze=0;ze<h2;++ze)(fX=Q[ze])&&mI[lX[ze]]===fX&&(wz[ze]=fX)}
function k(T,Q){return T<Q?-1:T>Q?1:T>=Q?0:NaN}
function G(T){return function(){this.removeAttribute(T)}}
function rz(T){return function(){this.removeAttributeNS(T.space,T.local)}}
function f(T,Q){return function(){this.setAttribute(T,Q)}}
function eO(T,Q){return function(){this.setAttributeNS(T.space,T.local,Q)}}
function g(T,Q){return function(){var c=Q.apply(this,arguments);c==null?this.removeAttribute(T):this.setAttribute(T,c)}}
function H6(T,Q){return function(){var c=Q.apply(this,arguments);c==null?this.removeAttributeNS(T.space,T.local):this.setAttributeNS(T.space,T.local,c)}}
function nX(T){return function(){this.style.removeProperty(T)}}
function Qj(T,Q,c){return function(){this.style.setProperty(T,Q,c)}}
function SO(T,Q,c){return function(){var m=Q.apply(this,arguments);m==null?this.style.removeProperty(T):this.style.setProperty(T,m,c)}}
function Te(T,Q){return T.style.getPropertyValue(Q)||(T.ownerDocument&&T.ownerDocument.defaultView||T.document&&T||T.defaultView).getComputedStyle(T,null).getPropertyValue(Q)}
function Ze(T){return function(){delete this[T]}}
function W1(T,Q){return function(){this[T]=Q}}
function A2(T,Q){return function(){var c=Q.apply(this,arguments);c==null?delete this[T]:this[T]=c}}
function f9(){this.textContent=""}
function Dl(T){return function(){this.textContent=T}}
function $g(T){return function(){var Q=T.apply(this,arguments);this.textContent=Q==null?"":Q}}
function De(){this.innerHTML=""}
function n9(T){return function(){this.innerHTML=T}}
function Rh(T){return function(){var Q=T.apply(this,arguments);this.innerHTML=Q==null?"":Q}}
function xg(){return null}
function ZF(){var T=this.parentNode;T&&T.removeChild(this)}
function mm(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function CX(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function rb(T,Q,c){T=mv(T,Q,c);return function(m){var wz=m.relatedTarget;wz&&(wz===this||wz.compareDocumentPosition(this)&8)||T.call(this,m)}}
function mv(T,Q,c){return function(){T.call(this,this.__data__,Q,c)}}
function lC(T){return T.trim().split(/^|\s+/).map(function(Q){var c="",m=Q.indexOf(".");m>=0&&(c=Q.slice(m+1),Q=Q.slice(0,m));return{type:Q,name:c}})}
function L9(T){return function(){var Q=this.__on;if(Q){for(var c=0,m=-1,wz=Q.length,dz;c<wz;++c)(dz=Q[c],T.type&&dz.type!==T.type||dz.name!==T.name)?Q[++m]=dz:this.removeEventListener(dz.type,dz.listener,dz.capture);++m?Q.length=m:delete this.__on}}}
function ah(T,Q,c){var m=WpX.hasOwnProperty(T.type)?rb:mv;return function(wz,dz,oT){wz=this.__on;var ze;dz=m(Q,dz,oT);if(wz){oT=0;for(var fX=wz.length;oT<fX;++oT)if((ze=wz[oT]).type===T.type&&ze.name===T.name){this.removeEventListener(ze.type,ze.listener,ze.capture);this.addEventListener(ze.type,ze.listener=dz,ze.capture=c);ze.value=Q;return}}this.addEventListener(T.type,dz,c);ze={type:T.type,name:T.name,value:Q,listener:dz,capture:c};wz?wz.push(ze):this.__on=[ze]}}
function gz(T,Q,c){var m=T.ownerDocument&&T.ownerDocument.defaultView||T.document&&T||T.defaultView,wz=m.CustomEvent;typeof wz==="function"?wz=new wz(Q,c):(wz=m.document.createEvent("Event"),c?(wz.initEvent(Q,c.bubbles,c.cancelable),wz.detail=c.detail):wz.initEvent(Q,!1,!1));T.dispatchEvent(wz)}
function lN(T,Q){return function(){return gz(this,T,Q)}}
function Op(T,Q){return function(){return gz(this,T,Q.apply(this,arguments))}}
function hK(T,Q){this._groups=T;this._parents=Q}
function wr(){return new hK([[document.documentElement]],wzb)}
function TJ(){this._="@"+(++rFl).toString(36)}
function Iq(T,Q,c){T.prototype=Q.prototype=c;c.constructor=T}
function B8(T,Q){T=Object.create(T.prototype);for(var c in Q)T[c]=Q[c];return T}
function Ny(){}
function P8(T){var Q;T=(T+"").trim().toLowerCase();return(Q=Y0V.exec(T))?(Q=parseInt(Q[1],16),new Jf(Q>>8&15|Q>>4&240,Q>>4&15|Q&240,(Q&15)<<4|Q&15,1)):(Q=$5b.exec(T))?xx(parseInt(Q[1],16)):(Q=eXy.exec(T))?new Jf(Q[1],Q[2],Q[3],1):(Q=CVy.exec(T))?new Jf(Q[1]*255/100,Q[2]*255/100,Q[3]*255/100,1):(Q=PV6.exec(T))?GX(Q[1],Q[2],Q[3],Q[4]):(Q=d56.exec(T))?GX(Q[1]*255/100,Q[2]*255/100,Q[3]*255/100,Q[4]):(Q=Vcl.exec(T))?hr(Q[1],Q[2]/100,Q[3]/100,1):(Q=Owb.exec(T))?hr(Q[1],Q[2]/100,Q[3]/100,Q[4]):oGp.hasOwnProperty(T)?
xx(oGp[T]):T==="transparent"?new Jf(NaN,NaN,NaN,0):null}
function xx(T){return new Jf(T>>16&255,T>>8&255,T&255,1)}
function GX(T,Q,c,m){m<=0&&(T=Q=c=NaN);return new Jf(T,Q,c,m)}
function Jj(T){T instanceof Ny||(T=P8(T));if(!T)return new Jf;T=T.rgb();return new Jf(T.r,T.g,T.b,T.opacity)}
function gc(T,Q,c,m){return arguments.length===1?Jj(T):new Jf(T,Q,c,m==null?1:m)}
function Jf(T,Q,c,m){this.r=+T;this.g=+Q;this.b=+c;this.opacity=+m}
function a9(T){T=Math.max(0,Math.min(255,Math.round(T)||0));return(T<16?"0":"")+T.toString(16)}
function hr(T,Q,c,m){m<=0?T=Q=c=NaN:c<=0||c>=1?T=Q=NaN:Q<=0&&(T=NaN);return new N4(T,Q,c,m)}
function Fy(T){if(T instanceof N4)return new N4(T.h,T.s,T.l,T.opacity);T instanceof Ny||(T=P8(T));if(!T)return new N4;if(T instanceof N4)return T;T=T.rgb();var Q=T.r/255,c=T.g/255,m=T.b/255,wz=Math.min(Q,c,m),dz=Math.max(Q,c,m),oT=NaN,ze=dz-wz,fX=(dz+wz)/2;ze?(oT=Q===dz?(c-m)/ze+(c<m)*6:c===dz?(m-Q)/ze+2:(Q-c)/ze+4,ze/=fX<.5?dz+wz:2-dz-wz,oT*=60):ze=fX>0&&fX<1?0:oT;return new N4(oT,ze,fX,T.opacity)}
function BN(T,Q,c,m){return arguments.length===1?Fy(T):new N4(T,Q,c,m==null?1:m)}
function N4(T,Q,c,m){this.h=+T;this.s=+Q;this.l=+c;this.opacity=+m}
function mT(T,Q,c){return(T<60?Q+(c-Q)*T/60:T<180?c:T<240?Q+(c-Q)*(240-T)/60:Q)*255}
function Go(T){if(T instanceof v6)return new v6(T.l,T.a,T.b,T.opacity);if(T instanceof X7){if(isNaN(T.h))return new v6(T.l,0,0,T.opacity);var Q=T.h*uh7;return new v6(T.l,Math.cos(Q)*T.c,Math.sin(Q)*T.c,T.opacity)}T instanceof Jf||(T=Jj(T));var c=Y8(T.r),m=Y8(T.g),wz=Y8(T.b);Q=U2(.2225045*c+.7168786*m+.0606169*wz);if(c===m&&m===wz)var dz=c=Q;else dz=U2((.4360747*c+.3850649*m+.1430804*wz)/.96422),c=U2((.0139322*c+.0971045*m+.7141733*wz)/.82521);return new v6(116*Q-16,500*(dz-Q),200*(Q-c),T.opacity)}
function v6(T,Q,c,m){this.l=+T;this.a=+Q;this.b=+c;this.opacity=+m}
function U2(T){return T>Hwu?Math.pow(T,1/3):T/LpD+S9J}
function c6(T){return T>ut?T*T*T:LpD*(T-S9J)}
function oh(T){return 255*(T<=.0031308?12.92*T:1.055*Math.pow(T,1/2.4)-.055)}
function Y8(T){return(T/=255)<=.04045?T/12.92:Math.pow((T+.055)/1.055,2.4)}
function Yg(T){if(T instanceof X7)return new X7(T.h,T.c,T.l,T.opacity);T instanceof v6||(T=Go(T));if(T.a===0&&T.b===0)return new X7(NaN,0,T.l,T.opacity);var Q=Math.atan2(T.b,T.a)*vG2;return new X7(Q<0?Q+360:Q,Math.sqrt(T.a*T.a+T.b*T.b),T.l,T.opacity)}
function dW(T,Q,c,m){return arguments.length===1?Yg(T):new X7(T,Q,c,m==null?1:m)}
function X7(T,Q,c,m){this.h=+T;this.c=+Q;this.l=+c;this.opacity=+m}
function tK(T,Q,c,m){if(arguments.length===1){var wz=T;if(wz instanceof tI)wz=new tI(wz.h,wz.s,wz.l,wz.opacity);else{wz instanceof Jf||(wz=Jj(wz));var dz=wz.g/255,oT=wz.b/255,ze=(jfp*oT+wz.r/255*-1.7884503806-3.5172982438*dz)/(jfp+-1.7884503806-3.5172982438);oT-=ze;var fX=(1.97294*(dz-ze)- -.29227*oT)/-.90649;oT=(dz=Math.sqrt(fX*fX+oT*oT)/(1.97294*ze*(1-ze)))?Math.atan2(fX,oT)*vG2-120:NaN;wz=new tI(oT<0?oT+360:oT,dz,ze,wz.opacity)}}else wz=new tI(T,Q,c,m==null?1:m);return wz}
function tI(T,Q,c,m){this.h=+T;this.s=+Q;this.l=+c;this.opacity=+m}
function hj(T,Q,c,m,wz){var dz=T*T,oT=dz*T;return((1-3*T+3*dz-oT)*Q+(4-6*dz+3*oT)*c+(1+3*T+3*dz-3*oT)*m+oT*wz)/6}
function B1(T){return function(){return T}}
function $a(T,Q){return function(c){return T+c*Q}}
function zd(T,Q,c){return T=Math.pow(T,c),Q=Math.pow(Q,c)-T,c=1/c,function(m){return Math.pow(T+m*Q,c)}}
function yw(T,Q){var c=Q-T;return c?$a(T,c>180||c<-180?c-360*Math.round(c/360):c):B1(isNaN(T)?Q:T)}
function rD(T){return(T=+T)===1?SJ:function(Q,c){return c-Q?zd(Q,c,T):B1(isNaN(Q)?c:Q)}}
function SJ(T,Q){var c=Q-T;return c?$a(T,c):B1(isNaN(T)?Q:T)}
function Bx(T){return function(Q){var c=Q.length,m=Array(c),wz=Array(c),dz=Array(c),oT;for(oT=0;oT<c;++oT){var ze=gc(Q[oT]);m[oT]=ze.r||0;wz[oT]=ze.g||0;dz[oT]=ze.b||0}m=T(m);wz=T(wz);dz=T(dz);ze.opacity=1;return function(fX){ze.r=m(fX);ze.g=wz(fX);ze.b=dz(fX);return ze+""}}}
function Nj(T,Q){return T=+T,Q-=T,function(c){return T+Q*c}}
function oq(T){return function(){return T}}
function LA(T){return function(Q){return T(Q)+""}}
function S6(T,Q){var c=hHI.lastIndex=yZ9.lastIndex=0,m,wz,dz,oT=-1,ze=[],fX=[];T+="";for(Q+="";(m=hHI.exec(T))&&(wz=yZ9.exec(Q));)(dz=wz.index)>c&&(dz=Q.slice(c,dz),ze[oT]?ze[oT]+=dz:ze[++oT]=dz),(m=m[0])===(wz=wz[0])?ze[oT]?ze[oT]+=wz:ze[++oT]=wz:(ze[++oT]=null,fX.push({i:oT,x:Nj(m,wz)})),c=yZ9.lastIndex;c<Q.length&&(dz=Q.slice(c),ze[oT]?ze[oT]+=dz:ze[++oT]=dz);return ze.length<2?fX[0]?LA(fX[0].x):oq(Q):(Q=fX.length,function(mI){for(var h2=0,e2;h2<Q;++h2)ze[(e2=fX[h2]).i]=e2.x(mI);return ze.join("")})}
function Yx(T,Q,c,m,wz,dz){var oT,ze,fX;if(oT=Math.sqrt(T*T+Q*Q))T/=oT,Q/=oT;if(fX=T*c+Q*m)c-=T*fX,m-=Q*fX;if(ze=Math.sqrt(c*c+m*m))c/=ze,m/=ze,fX/=ze;T*m<Q*c&&(T=-T,Q=-Q,fX=-fX,oT=-oT);return{translateX:wz,translateY:dz,rotate:Math.atan2(Q,T)*tBW,skewX:Math.atan(fX)*tBW,scaleX:oT,scaleY:ze}}
function zx(T,Q,c,m){function wz(mI){return mI.length?mI.pop()+" ":""}
function dz(mI,h2,e2,lX,O6,Vw){mI!==e2||h2!==lX?(O6=O6.push("translate(",null,Q,null,c),Vw.push({i:O6-4,x:Nj(mI,e2)},{i:O6-2,x:Nj(h2,lX)})):(e2||lX)&&O6.push("translate("+e2+Q+lX+c)}
function oT(mI,h2,e2,lX){mI!==h2?(mI-h2>180?h2+=360:h2-mI>180&&(mI+=360),lX.push({i:e2.push(wz(e2)+"rotate(",null,m)-2,x:Nj(mI,h2)})):h2&&e2.push(wz(e2)+"rotate("+h2+m)}
function ze(mI,h2,e2,lX){mI!==h2?lX.push({i:e2.push(wz(e2)+"skewX(",null,m)-2,x:Nj(mI,h2)}):h2&&e2.push(wz(e2)+"skewX("+h2+m)}
function fX(mI,h2,e2,lX,O6,Vw){mI!==e2||h2!==lX?(O6=O6.push(wz(O6)+"scale(",null,",",null,")"),Vw.push({i:O6-4,x:Nj(mI,e2)},{i:O6-2,x:Nj(h2,lX)})):e2===1&&lX===1||O6.push(wz(O6)+"scale("+e2+","+lX+")")}
return function(mI,h2){var e2=[],lX=[];mI=T(mI);h2=T(h2);dz(mI.translateX,mI.translateY,h2.translateX,h2.translateY,e2,lX);oT(mI.rotate,h2.rotate,e2,lX);ze(mI.skewX,h2.skewX,e2,lX);fX(mI.scaleX,mI.scaleY,h2.scaleX,h2.scaleY,e2,lX);mI=h2=null;return function(O6){for(var Vw=-1,z$=lX.length,OI;++Vw<z$;)e2[(OI=lX[Vw]).i]=OI.x(O6);return e2.join("")}}}
function JI(T){return function(Q,c){var m=T((Q=BN(Q)).h,(c=BN(c)).h),wz=SJ(Q.s,c.s),dz=SJ(Q.l,c.l),oT=SJ(Q.opacity,c.opacity);return function(ze){Q.h=m(ze);Q.s=wz(ze);Q.l=dz(ze);Q.opacity=oT(ze);return Q+""}}}
function AQ(T){return function(Q,c){var m=T((Q=dW(Q)).h,(c=dW(c)).h),wz=SJ(Q.c,c.c),dz=SJ(Q.l,c.l),oT=SJ(Q.opacity,c.opacity);return function(ze){Q.h=m(ze);Q.c=wz(ze);Q.l=dz(ze);Q.opacity=oT(ze);return Q+""}}}
function fP(T){return function m(c){function wz(dz,oT){var ze=T((dz=tK(dz)).h,(oT=tK(oT)).h),fX=SJ(dz.s,oT.s),mI=SJ(dz.l,oT.l),h2=SJ(dz.opacity,oT.opacity);return function(e2){dz.h=ze(e2);dz.s=fX(e2);dz.l=mI(Math.pow(e2,c));dz.opacity=h2(e2);return dz+""}}
c=+c;wz.gamma=m;return wz}(1)}
function Gi(){return e4||(RxD(duN),e4=bK.now()+koz)}
function duN(){e4=0}
function pO(){this._call=this._time=this._next=null}
function St(T,Q,c){var m=new pO;m.restart(T,Q,c);return m}
function vT(){e4=(Kl2=bK.now())+koz;L1=JU=0;try{Gi();++L1;for(var T=s$1,Q;T;)(Q=e4-T._time)>=0&&T._call.call(null,Q),T=T._next;--L1}finally{L1=0;T=s$1;for(var c=Infinity;T;)if(T._call){c>T._time&&(c=T._time);var m=T;T=T._next}else Q=T._next,T._next=null,T=m?m._next=Q:s$1=Q;zr=m;jt(c);e4=0}}
function e3z(){var T=bK.now(),Q=T-Kl2;Q>1E3&&(koz-=Q,Kl2=T)}
function jt(T){L1||(JU&&(JU=clearTimeout(JU)),T-e4>24?(T<Infinity&&(JU=setTimeout(vT,T-bK.now()-koz)),Bc&&(Bc=clearInterval(Bc))):(Bc||(Kl2=bK.now(),Bc=setInterval(e3z,1E3)),L1=1,RxD(vT)))}
function bFD(T,Q,c){var m=new pO;Q=Q==null?0:+Q;m.restart(function(wz){m.stop();T(wz+Q)},Q,c);
return m}
function i29(T,Q,c,m,wz,dz){var oT=T.__transition;if(!oT)T.__transition={};else if(c in oT)return;WRC(T,c,{name:Q,index:m,group:wz,on:oRl,tween:uSl,time:dz.time,delay:dz.delay,duration:dz.duration,ease:dz.ease,timer:null,state:0})}
function gh6(T,Q){T=z3(T,Q);if(T.state>0)throw Error("te");return T}
function Ct(T,Q){T=z3(T,Q);if(T.state>2)throw Error("ue");return T}
function z3(T,Q){T=T.__transition;if(!T||!(T=T[Q]))throw Error("ve");return T}
function WRC(T,Q,c){function m(fX){var mI,h2;if(c.state!==1)return dz();for(lX in oT){var e2=oT[lX];if(e2.name===c.name){if(e2.state===3)return bFD(m);e2.state===4?(e2.state=6,e2.timer.stop(),e2.on.call("interrupt",T,T.__data__,e2.index,e2.group),delete oT[lX]):+lX<Q&&(e2.state=6,e2.timer.stop(),delete oT[lX])}}bFD(function(){c.state===3&&(c.state=4,c.timer.restart(wz,c.delay,c.time),wz(fX))});
c.state=2;c.on.call("start",T,T.__data__,c.index,c.group);if(c.state===2){c.state=3;ze=Array(h2=c.tween.length);var lX=0;for(mI=-1;lX<h2;++lX)if(e2=c.tween[lX].value.call(T,T.__data__,c.index,c.group))ze[++mI]=e2;ze.length=mI+1}}
function wz(fX){fX=fX<c.duration?c.ease.call(null,fX/c.duration):(c.timer.restart(dz),c.state=5,1);for(var mI=-1,h2=ze.length;++mI<h2;)ze[mI].call(null,fX);c.state===5&&(c.on.call("end",T,T.__data__,c.index,c.group),dz())}
function dz(){c.state=6;c.timer.stop();delete oT[Q];for(var fX in oT)return;delete T.__transition}
var oT=T.__transition,ze;oT[Q]=c;c.timer=St(function(fX){c.state=1;c.timer.restart(m,c.delay,c.time);c.delay<=fX&&m(fX-c.delay)},0,c.time)}
function LR8(T,Q){var c,m;return function(){var wz=Ct(this,T),dz=wz.tween;if(dz!==c){m=c=dz;dz=0;for(var oT=m.length;dz<oT;++dz)if(m[dz].name===Q){m=m.slice();m.splice(dz,1);break}}wz.tween=m}}
function S06(T,Q,c){var m,wz;if(typeof c!=="function")throw Error();return function(){var dz=Ct(this,T),oT=dz.tween;if(oT!==m){wz=(m=oT).slice();oT={name:Q,value:c};for(var ze=0,fX=wz.length;ze<fX;++ze)if(wz[ze].name===Q){wz[ze]=oT;break}ze===fX&&wz.push(oT)}dz.tween=wz}}
function q7e(T,Q,c){var m=T._id;T.each(function(){var wz=Ct(this,m);(wz.value||(wz.value={}))[Q]=c.apply(this,arguments)});
return function(wz){return z3(wz,m).value[Q]}}
function JMg(T,Q){var c;return(typeof Q==="number"?Nj:Q instanceof P8?zxv:(c=P8(Q))?(Q=c,zxv):S6)(T,Q)}
function vR6(T){return function(){this.removeAttribute(T)}}
function jMD(T){return function(){this.removeAttributeNS(T.space,T.local)}}
function tcc(T,Q,c){var m,wz;return function(){var dz=this.getAttribute(T);return dz===c?null:dz===m?wz:wz=Q(m=dz,c)}}
function RXb(T,Q,c){var m,wz;return function(){var dz=this.getAttributeNS(T.space,T.local);return dz===c?null:dz===m?wz:wz=Q(m=dz,c)}}
function bwq(T,Q,c){var m,wz,dz;return function(){var oT=c(this);if(oT==null)return void this.removeAttribute(T);var ze=this.getAttribute(T);return ze===oT?null:ze===m&&oT===wz?dz:dz=Q(m=ze,wz=oT)}}
function JFy(T,Q,c){var m,wz,dz;return function(){var oT=c(this);if(oT==null)return void this.removeAttributeNS(T.space,T.local);var ze=this.getAttributeNS(T.space,T.local);return ze===oT?null:ze===m&&oT===wz?dz:dz=Q(m=ze,wz=oT)}}
function zXD(T,Q){function c(){var m=this,wz=Q.apply(m,arguments);return wz&&function(dz){m.setAttributeNS(T.space,T.local,wz(dz))}}
c._value=Q;return c}
function BOb(T,Q){function c(){var m=this,wz=Q.apply(m,arguments);return wz&&function(dz){m.setAttribute(T,wz(dz))}}
c._value=Q;return c}
function a47(T,Q){return function(){gh6(this,T).delay=+Q.apply(this,arguments)}}
function nRl(T,Q){return Q=+Q,function(){gh6(this,T).delay=Q}}
function QMV(T,Q){return function(){Ct(this,T).duration=+Q.apply(this,arguments)}}
function ERF(T,Q){return Q=+Q,function(){Ct(this,T).duration=Q}}
function x5b(T,Q){if(typeof Q!=="function")throw Error();return function(){Ct(this,T).ease=Q}}
function TO6(T){return(T+"").trim().split(/^|\s+/).every(function(Q){var c=Q.indexOf(".");c>=0&&(Q=Q.slice(0,c));return!Q||Q==="start"})}
function U5y(T,Q,c){var m,wz,dz=TO6(Q)?gh6:Ct;return function(){var oT=dz(this,T),ze=oT.on;if(ze!==m)(wz=(m=ze).copy()).on(Q,c);oT.on=wz}}
function kcD(T){return function(){var Q=this.parentNode,c;for(c in this.__transition)if(+c!==T)return;Q&&Q.removeChild(this)}}
function KRq(T,Q){var c,m,wz;return function(){var dz=Te(this,T),oT=(this.style.removeProperty(T),Te(this,T));return dz===oT?null:dz===c&&oT===m?wz:wz=Q(c=dz,m=oT)}}
function sM8(T){return function(){this.style.removeProperty(T)}}
function I4F(T,Q,c){var m,wz;return function(){var dz=Te(this,T);return dz===c?null:dz===m?wz:wz=Q(m=dz,c)}}
function cFy(T,Q,c){var m,wz,dz;return function(){var oT=Te(this,T),ze=c(this);ze==null&&(ze=(this.style.removeProperty(T),Te(this,T)));return oT===ze?null:oT===m&&ze===wz?dz:dz=Q(m=oT,wz=ze)}}
function Mcq(T,Q,c){function m(){var wz=this,dz=Q.apply(wz,arguments);return dz&&function(oT){wz.style.setProperty(T,dz(oT),c)}}
m._value=Q;return m}
function FRS(T){return function(){this.textContent=T}}
function NO8(T){return function(){var Q=T(this);this.textContent=Q==null?"":Q}}
function vV(T,Q,c,m){this._groups=T;this._parents=Q;this._name=c;this._id=m}
function ZMj(T){return{type:T}}
function wwI(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function I$2(){}
function BV2(T,Q){var c=new I$2;if(T instanceof I$2)T.each(function(oT,ze){c.set(ze,oT)});
else if(Array.isArray(T)){var m=-1,wz=T.length,dz;if(Q==null)for(;++m<wz;)c.set(m,T[m]);else for(;++m<wz;)c.set(Q(dz=T[m],m,T),dz)}else if(T)for(m in T)c.set(m,T[m]);return c}
function c98(){}
function aEp(T){return function(Q){for(var c={},m=0;m<T.length;m++)c[T[m]]=Q[m]||"";return c}}
function l47(T,Q){var c=aEp(T);return function(m,wz){return Q(c(m),wz,T)}}
function Gcq(T){var Q=Object.create(null),c=[];T.forEach(function(m){for(var wz in m)wz in Q||c.push(Q[wz]=wz)});
return c}
function nGv(T){function Q(oT,ze){function fX(){if(Vw)return rwT;if(z$)return z$=!1,Qfe;var ml,dc=e2,wT;if(oT.charCodeAt(dc)===34){for(;e2++<h2&&oT.charCodeAt(e2)!==34||oT.charCodeAt(++e2)===34;);(ml=e2)>=h2?Vw=!0:(wT=oT.charCodeAt(e2++))===10?z$=!0:wT===13&&(z$=!0,oT.charCodeAt(e2)===10&&++e2);return oT.slice(dc+1,ml-1).replace(/""/g,'"')}for(;e2<h2;){if((wT=oT.charCodeAt(ml=e2++))===10)z$=!0;else if(wT===13)z$=!0,oT.charCodeAt(e2)===10&&++e2;else if(wT!==dz)continue;return oT.slice(dc,ml)}return Vw=
!0,oT.slice(dc,h2)}
var mI=[],h2=oT.length,e2=0,lX=0,O6,Vw=h2<=0,z$=!1;oT.charCodeAt(h2-1)===10&&--h2;for(oT.charCodeAt(h2-1)===13&&--h2;(O6=fX())!==rwT;){for(var OI=[];O6!==Qfe&&O6!==rwT;)OI.push(O6),O6=fX();ze&&(OI=ze(OI,lX++))==null||mI.push(OI)}return mI}
function c(oT){return oT.map(m).join(T)}
function m(oT){return oT==null?"":wz.test(oT)?'"'+oT.replace(/"/g,'""')+'"':oT}
var wz=new RegExp('["'+T+"\n\r]"),dz=T.charCodeAt(0);return{parse:function(oT,ze){var fX,mI;oT=Q(oT,function(h2,e2){if(fX)return fX(h2,e2-1);mI=h2;fX=ze?l47(h2,ze):aEp(h2)});
oT.columns=mI||[];return oT},
parseRows:Q,format:function(oT,ze){ze==null&&(ze=Gcq(oT));return[ze.map(m).join(T)].concat(oT.map(function(fX){return ze.map(function(mI){return m(fX[mI])}).join(T)})).join("\n")},
formatRows:function(oT){return oT.map(c).join("\n")}}}
function pzD(T){if(!T.ok)throw Error("we`"+T.status+"`"+T.statusText);return T.text()}
function EGh(T){return function(Q,c,m){arguments.length===2&&typeof c==="function"&&(m=c,c=void 0);return fetch(Q,c).then(pzD).then(function(wz){return T(wz,m)})}}
function xGD(T,Q,c,m){if(isNaN(Q)||isNaN(c))return T;var wz,dz=T._root;m={data:m};var oT=T._x0,ze=T._y0,fX=T._x1,mI=T._y1,h2,e2,lX,O6,Vw;if(!dz)return T._root=m,T;for(;dz.length;)if((lX=Q>=(h2=(oT+fX)/2))?oT=h2:fX=h2,(O6=c>=(e2=(ze+mI)/2))?ze=e2:mI=e2,wz=dz,!(dz=dz[Vw=O6<<1|lX]))return wz[Vw]=m,T;var z$=+T._x.call(null,dz.data);var OI=+T._y.call(null,dz.data);if(Q===z$&&c===OI)return m.next=dz,wz?wz[Vw]=m:T._root=m,T;do wz=wz?wz[Vw]=Array(4):T._root=Array(4),(lX=Q>=(h2=(oT+fX)/2))?oT=h2:fX=h2,(O6=
c>=(e2=(ze+mI)/2))?ze=e2:mI=e2;while((Vw=O6<<1|lX)===(lX=(OI>=e2)<<1|z$>=h2));return wz[lX]=dz,wz[Vw]=m,T}
function d3(T,Q,c,m,wz){this.node=T;this.x0=Q;this.y0=c;this.x1=m;this.y1=wz}
function XzD(T){return T[0]}
function m57(T){return T[1]}
function Y7j(T,Q,c,m,wz,dz){this._x=T;this._y=Q;this._x0=c;this._y0=m;this._x1=wz;this._y1=dz;this._root=void 0}
function TV7(T){for(var Q={data:T.data},c=Q;T=T.next;)c=c.next={data:T.data};return Q}
function MJj(T,Q){if((Q=(T=Q?T.toExponential(Q-1):T.toExponential()).indexOf("e"))<0)return null;var c=T.slice(0,Q);return[c.length>1?c[0]+c.slice(2):c,+T.slice(Q+1)]}
function AFy(T){return T=MJj(Math.abs(T)),T?T[1]:NaN}
function f48(T,Q){return function(c,m){for(var wz=c.length,dz=[],oT=0,ze=T[0],fX=0;wz>0&&ze>0;){fX+ze+1>m&&(ze=Math.max(1,m-fX));dz.push(c.substring(wz-=ze,wz+ze));if((fX+=ze+1)>m)break;ze=T[oT=(oT+1)%T.length]}return dz.reverse().join(Q)}}
function D5V(T){return function(Q){return Q.replace(/[0-9]/g,function(c){return T[+c]})}}
function $HX(T){return new eNX(T)}
function eNX(T){if(!(Q=hX6.exec(T)))throw Error("xe`"+T);var Q;this.fill=Q[1]||" ";this.align=Q[2]||">";this.sign=Q[3]||"-";this.symbol=Q[4]||"";this.zero=!!Q[5];this.width=Q[6]&&+Q[6];this.comma=!!Q[7];this.precision=Q[8]&&+Q[8].slice(1);this.trim=!!Q[9];this.type=Q[10]||""}
function UGh(T,Q){Q=MJj(T,Q);if(!Q)return T+"";T=Q[0];Q=Q[1];return Q<0?"0."+Array(-Q).join("0")+T:T.length>Q+1?T.slice(0,Q+1)+"."+T.slice(Q+1):T+Array(Q-T.length+2).join("0")}
function k6p(T){return T}
function yFy(T){function Q(ze){function fX(MK){var t9=wT,zu=Zd,rr,mF;if(dc==="c")zu=VE(MK)+zu,MK="";else{MK=+MK;var uC=MK<0;MK=VE(Math.abs(MK),OI);if(ml){var e9=MK.length,BO=1,A9=-1;a:for(;BO<e9;++BO)switch(MK[BO]){case ".":A9=rr=BO;break;case "0":A9===0&&(A9=BO);rr=BO;break;default:if(!+MK[BO])break a;A9>0&&(A9=0)}MK=A9>0?MK.slice(0,A9)+MK.slice(rr+1):MK}uC&&+MK===0&&(uC=!1);t9=(uC?e2==="("?e2:"-":e2==="-"||e2==="("?"":e2)+t9;zu=(dc==="s"?KpK[8+sfg/3]:"")+zu+(uC&&e2==="("?")":"");if(gD)for(uC=-1,
rr=MK.length;++uC<rr;)if(mF=MK.charCodeAt(uC),48>mF||mF>57){zu=(mF===46?wz+MK.slice(uC+1):MK.slice(uC))+zu;MK=MK.slice(0,uC);break}}z$&&!O6&&(MK=c(MK,Infinity));mF=t9.length+MK.length+zu.length;uC=mF<Vw?Array(Vw-mF+1).join(mI):"";z$&&O6&&(MK=c(uC+MK,uC.length?Vw-zu.length:Infinity),uC="");switch(h2){case "<":MK=t9+MK+zu+uC;break;case "=":MK=t9+uC+MK+zu;break;case "^":MK=uC.slice(0,mF=uC.length>>1)+t9+MK+zu+uC.slice(mF);break;default:MK=uC+t9+MK+zu}return dz(MK)}
ze=$HX(ze);var mI=ze.fill,h2=ze.align,e2=ze.sign,lX=ze.symbol,O6=ze.zero,Vw=ze.width,z$=ze.comma,OI=ze.precision,ml=ze.trim,dc=ze.type;dc==="n"?(z$=!0,dc="g"):IEm[dc]||(OI==null&&(OI=12),ml=!0,dc="g");if(O6||mI==="0"&&h2==="=")O6=!0,mI="0",h2="=";var wT=lX==="$"?m[0]:lX==="#"&&/[boxX]/.test(dc)?"0"+dc.toLowerCase():"",Zd=lX==="$"?m[1]:/[%p]/.test(dc)?oT:"",VE=IEm[dc],gD=/[defgprs%]/.test(dc);OI=OI==null?6:/[gprs]/.test(dc)?Math.max(1,Math.min(21,OI)):Math.max(0,Math.min(20,OI));fX.toString=function(){return ze+
""};
return fX}
var c=T.grouping&&T.thousands?f48(T.grouping,T.thousands):k6p,m=T.currency,wz=T.decimal,dz=T.numerals?D5V(T.numerals):k6p,oT=T.percent||"%";return{format:Q,formatPrefix:function(ze,fX){var mI=Q((ze=$HX(ze),ze.type="f",ze));ze=Math.max(-8,Math.min(8,Math.floor(AFy(fX)/3)))*3;var h2=Math.pow(10,-ze),e2=KpK[8+ze/3];return function(lX){return mI(h2*lX)+e2}}}}
function o0(){this.reset()}
function cMe(T,Q,c){var m=T.s=Q+c,wz=m-Q;T.t=Q-(m-wz)+(c-wz)}
function FlN(T){return T>1?I5:T<-1?-I5:Math.asin(T)}
function iwF(){}
function MBp(T){var Q=T[0];T=T[1];var c=cx(T);return[c*cx(Q),c*eZ(Q),eZ(T)]}
function Fp7(T,Q){return[T[1]*Q[2]-T[2]*Q[1],T[2]*Q[0]-T[0]*Q[2],T[0]*Q[1]-T[1]*Q[0]]}
function NVe(T){var Q=NIj(T[0]*T[0]+T[1]*T[1]+T[2]*T[2]);T[0]/=Q;T[1]/=Q;T[2]/=Q}
function gRu(){var T=[],Q;return{point:function(c,m){Q.push([c,m])},
lineStart:function(){T.push(Q=[])},
lineEnd:iwF,rejoin:function(){T.length>1&&T.push(T.pop().concat(T.shift()))},
result:function(){var c=T;T=[];Q=null;return c}}}
function l$O(T,Q,c,m){this.x=T;this.z=Q;this.o=c;this.e=m;this.v=!1;this.n=this.p=null}
function qaV(T,Q,c,m,wz){var dz=[],oT=[];T.forEach(function(e2){if(!((lX=e2.length-1)<=0)){var lX,O6=e2[0],Vw=e2[lX],z$=O6;if(j1(z$[0]-Vw[0])<1E-6&&j1(z$[1]-Vw[1])<1E-6){wz.lineStart();for(ze=0;ze<lX;++ze)wz.point((O6=e2[ze])[0],O6[1]);wz.lineEnd()}else dz.push(lX=new l$O(O6,e2,null,!0)),oT.push(lX.o=new l$O(O6,null,lX,!1)),dz.push(lX=new l$O(Vw,e2,null,!1)),oT.push(lX.o=new l$O(Vw,null,lX,!0))}});
if(dz.length){oT.sort(Q);lEJ(dz);lEJ(oT);var ze=0;for(T=oT.length;ze<T;++ze)oT[ze].e=c=!c;c=dz[0];for(var fX;;){for(var mI=c,h2=!0;mI.v;)if((mI=mI.n)===c)return;Q=mI.z;wz.lineStart();do{mI.v=mI.o.v=!0;if(mI.e){if(h2)for(ze=0,T=Q.length;ze<T;++ze)wz.point((fX=Q[ze])[0],fX[1]);else m(mI.x,mI.n.x,1,wz);mI=mI.n}else{if(h2)for(Q=mI.p.z,ze=Q.length-1;ze>=0;--ze)wz.point((fX=Q[ze])[0],fX[1]);else m(mI.x,mI.p.x,-1,wz);mI=mI.p}mI=mI.o;Q=mI.z;h2=!h2}while(!mI.v);wz.lineEnd()}}}
function lEJ(T){if(Q=T.length){for(var Q,c=0,m=T[0],wz;++c<Q;)m.n=wz=T[c],wz.p=m,m=wz;m.n=wz=T[0];wz.p=m}}
function Z8l(T){return T.length>1}
function wmb(T,Q){return((T=T.x)[0]<0?T[1]-I5-1E-6:I5-T[1])-((Q=Q.x)[0]<0?Q[1]-I5-1E-6:I5-Q[1])}
function CDz(){}
function G6g(T){return function(Q,c){var m=cx(Q),wz=cx(c);m=T(m*wz);return[m*wz*eZ(Q),m*eZ(c)]}}
function aU(T){return function(Q,c){var m=NIj(Q*Q+c*c),wz=T(m),dz=eZ(wz);wz=cx(wz);return[puD(Q*dz,m*wz),FlN(m&&c*dz/m)]}}
function rSD(T){var Q=0,c=T.children,m=c&&c.length;if(m)for(;--m>=0;)Q+=c[m].value;else Q=1;T.value=Q}
function XuD(T,Q){var c=new n4(T);T=+T.value&&(c.value=T.value);var m,wz=[c],dz,oT,ze,fX;for(Q==null&&(Q=YaV);m=wz.pop();)if(T&&(m.value=+m.data.value),(oT=Q(m.data))&&(fX=oT.length))for(m.children=Array(fX),ze=fX-1;ze>=0;--ze)wz.push(dz=m.children[ze]=new n4(oT[ze])),dz.parent=m,dz.depth=m.depth+1;return c.eachBefore($w7)}
function YaV(T){return T.children}
function ebb(T){T.data=T.data.data}
function $w7(T){var Q=0;do T.height=Q;while((T=T.parent)&&T.height<++Q)}
function n4(T){this.data=T;this.depth=this.height=0;this.parent=null}
function gJ(T,Q,c,m){function wz(dz){return T(dz=new Date(+dz)),dz}
wz.floor=wz;wz.ceil=function(dz){return T(dz=new Date(dz-1)),Q(dz,1),T(dz),dz};
wz.round=function(dz){var oT=wz(dz),ze=wz.ceil(dz);return dz-oT<ze-dz?oT:ze};
wz.offset=function(dz,oT){return Q(dz=new Date(+dz),oT==null?1:Math.floor(oT)),dz};
wz.range=function(dz,oT,ze){var fX=[],mI;dz=wz.ceil(dz);ze=ze==null?1:Math.floor(ze);if(!(dz<oT&&ze>0))return fX;do fX.push(mI=new Date(+dz)),Q(dz,ze),T(dz);while(mI<dz&&dz<oT);return fX};
wz.filter=function(dz){return gJ(function(oT){if(oT>=oT)for(;T(oT),!dz(oT);)oT.setTime(oT-1)},function(oT,ze){if(oT>=oT)if(ze<0)for(;++ze<=0;)for(;Q(oT,-1),!dz(oT););
else for(;--ze>=0;)for(;Q(oT,1),!dz(oT););})};
c&&(wz.count=function(dz,oT){PDj.setTime(+dz);dHj.setTime(+oT);T(PDj);T(dHj);return Math.floor(c(PDj,dHj))},wz.every=function(dz){dz=Math.floor(dz);
return isFinite(dz)&&dz>0?dz>1?wz.filter(m?function(oT){return m(oT)%dz===0}:function(oT){return wz.count(0,oT)%dz===0}):wz:null});
return wz}
function Ph(T){return gJ(function(Q){Q.setDate(Q.getDate()-(Q.getDay()+7-T)%7);Q.setHours(0,0,0,0)},function(Q,c){Q.setDate(Q.getDate()+c*7)},function(Q,c){return(c-Q-(c.getTimezoneOffset()-Q.getTimezoneOffset())*6E4)/6048E5})}
function d8(T){return gJ(function(Q){Q.setUTCDate(Q.getUTCDate()-(Q.getUTCDay()+7-T)%7);Q.setUTCHours(0,0,0,0)},function(Q,c){Q.setUTCDate(Q.getUTCDate()+c*7)},function(Q,c){return(c-Q)/6048E5})}
function CHD(T){if(0<=T.y&&T.y<100){var Q=new Date(-1,T.m,T.d,T.H,T.M,T.S,T.L);Q.setFullYear(T.y);return Q}return new Date(T.y,T.m,T.d,T.H,T.M,T.S,T.L)}
function Go8(T){if(0<=T.y&&T.y<100){var Q=new Date(Date.UTC(-1,T.m,T.d,T.H,T.M,T.S,T.L));Q.setUTCFullYear(T.y);return Q}return new Date(Date.UTC(T.y,T.m,T.d,T.H,T.M,T.S,T.L))}
function Qu(T){return{y:T,m:0,d:1,H:0,M:0,S:0,L:0}}
function PH7(T){function Q(zu,rr){return function(mF){var uC=[],e9=-1,BO=0,A9=zu.length,az,GZ;for(mF instanceof Date||(mF=new Date(+mF));++e9<A9;)if(zu.charCodeAt(e9)===37){uC.push(zu.slice(BO,e9));(BO=mG1[az=zu.charAt(++e9)])!=null?az=zu.charAt(++e9):BO=az==="e"?" ":"0";if(GZ=rr[az])az=GZ(mF,BO);uC.push(az);BO=e9+1}uC.push(zu.slice(BO,e9));return uC.join("")}}
function c(zu,rr){return function(mF){var uC=Qu(1900);if(m(uC,zu,mF,0)!=mF.length)return null;if("Q"in uC)return new Date(uC.Q);"p"in uC&&(uC.H=uC.H%12+uC.p*12);if("V"in uC){if(uC.V<1||uC.V>53)return null;"w"in uC||(uC.w=1);if("Z"in uC){mF=Go8(Qu(uC.y));var e9=mF.getUTCDay();mF=e9>4||e9===0?VD8.ceil(mF):VD8(mF);mF=AMX.offset(mF,(uC.V-1)*7);uC.y=mF.getUTCFullYear();uC.m=mF.getUTCMonth();uC.d=mF.getUTCDate()+(uC.w+6)%7}else mF=rr(Qu(uC.y)),e9=mF.getDay(),mF=e9>4||e9===0?OMj.ceil(mF):OMj(mF),mF=fEv.offset(mF,
(uC.V-1)*7),uC.y=mF.getFullYear(),uC.m=mF.getMonth(),uC.d=mF.getDate()+(uC.w+6)%7}else if("W"in uC||"U"in uC)"w"in uC||(uC.w="u"in uC?uC.u%7:"W"in uC?1:0),e9="Z"in uC?Go8(Qu(uC.y)).getUTCDay():rr(Qu(uC.y)).getDay(),uC.m=0,uC.d="W"in uC?(uC.w+6)%7+uC.W*7-(e9+5)%7:uC.w+uC.U*7-(e9+6)%7;return"Z"in uC?(uC.H+=uC.Z/100|0,uC.M+=uC.Z%100,Go8(uC)):rr(uC)}}
function m(zu,rr,mF,uC){for(var e9=0,BO=rr.length,A9=mF.length,az;e9<BO;){if(uC>=A9)return-1;az=rr.charCodeAt(e9++);if(az===37){if(az=rr.charAt(e9++),az=t9[az in mG1?rr.charAt(e9++):az],!az||(uC=az(zu,mF,uC))<0)return-1}else if(az!=mF.charCodeAt(uC++))return-1}return uC}
var wz=T.dateTime,dz=T.date,oT=T.time,ze=T.periods,fX=T.days,mI=T.shortDays,h2=T.months,e2=T.shortMonths,lX=Eb(ze),O6=xw(ze),Vw=Eb(fX),z$=xw(fX),OI=Eb(mI),ml=xw(mI),dc=Eb(h2),wT=xw(h2),Zd=Eb(e2),VE=xw(e2),gD={a:function(zu){return mI[zu.getDay()]},
A:function(zu){return fX[zu.getDay()]},
b:function(zu){return e2[zu.getMonth()]},
B:function(zu){return h2[zu.getMonth()]},
c:null,d:DGv,e:DGv,f:dwl,H:VqZ,I:O8Z,j:H8b,L:hxp,m:W$7,M:otl,p:function(zu){return ze[+(zu.getHours()>=12)]},
Q:yMv,s:iF2,S:u2y,u:L$8,U:SaZ,V:vtq,w:jYl,W:tql,x:null,X:null,y:RbC,Y:b8u,Z:JSb,"%":gGW},MK={a:function(zu){return mI[zu.getUTCDay()]},
A:function(zu){return fX[zu.getUTCDay()]},
b:function(zu){return e2[zu.getUTCMonth()]},
B:function(zu){return h2[zu.getUTCMonth()]},
c:null,d:qV1,e:qV1,f:zbb,H:BHD,I:aXq,j:nt8,L:ZiX,m:QYZ,M:Et7,p:function(zu){return ze[+(zu.getUTCHours()>=12)]},
Q:yMv,s:iF2,S:xw8,u:THl,U:Uwu,V:k48,w:K$7,W:sYV,x:null,X:null,y:IXl,Y:cS8,Z:MqZ,"%":gGW},t9={a:function(zu,rr,mF){return(rr=OI.exec(rr.slice(mF)))?(zu.w=ml[rr[0].toLowerCase()],mF+rr[0].length):-1},
A:function(zu,rr,mF){return(rr=Vw.exec(rr.slice(mF)))?(zu.w=z$[rr[0].toLowerCase()],mF+rr[0].length):-1},
b:function(zu,rr,mF){return(rr=Zd.exec(rr.slice(mF)))?(zu.m=VE[rr[0].toLowerCase()],mF+rr[0].length):-1},
B:function(zu,rr,mF){return(rr=dc.exec(rr.slice(mF)))?(zu.m=wT[rr[0].toLowerCase()],mF+rr[0].length):-1},
c:function(zu,rr,mF){return m(zu,wz,rr,mF)},
d:wMv,e:wMv,f:F$C,H:roW,I:roW,j:NHq,L:lXb,m:G4F,M:pmD,p:function(zu,rr,mF){return(rr=lX.exec(rr.slice(mF)))?(zu.p=O6[rr[0].toLowerCase()],mF+rr[0].length):-1},
Q:Xml,s:mwb,S:ASC,u:fX8,U:DwV,V:hb7,w:ySD,W:i8V,x:function(zu,rr,mF){return m(zu,dz,rr,mF)},
X:function(zu,rr,mF){return m(zu,oT,rr,mF)},
y:gt7,Y:qCb,Z:Z17,"%":wLV};gD.x=Q(dz,gD);gD.X=Q(oT,gD);gD.c=Q(wz,gD);MK.x=Q(dz,MK);MK.X=Q(oT,MK);MK.c=Q(wz,MK);return{format:function(zu){var rr=Q(zu,gD);rr.toString=function(){return zu};
return rr},
parse:function(zu){var rr=c(zu,CHD);rr.toString=function(){return zu};
return rr},
utcFormat:function(zu){var rr=Q(zu,MK);rr.toString=function(){return zu};
return rr},
utcParse:function(zu){var rr=c(zu,Go8);rr.toString=function(){return zu};
return rr}}}
function x6(T,Q,c){var m=T<0?"-":"";T=(m?-T:T)+"";var wz=T.length;return m+(wz<c?Array(c-wz+1).join(Q)+T:T)}
function rBb(T){return T.replace(YC6,"\\$&")}
function Eb(T){return new RegExp("^(?:"+T.map(rBb).join("|")+")","i")}
function xw(T){for(var Q={},c=-1,m=T.length;++c<m;)Q[T[c].toLowerCase()]=c;return Q}
function ySD(T,Q,c){return(Q=rT.exec(Q.slice(c,c+1)))?(T.w=+Q[0],c+Q[0].length):-1}
function fX8(T,Q,c){return(Q=rT.exec(Q.slice(c,c+1)))?(T.u=+Q[0],c+Q[0].length):-1}
function DwV(T,Q,c){return(Q=rT.exec(Q.slice(c,c+2)))?(T.U=+Q[0],c+Q[0].length):-1}
function hb7(T,Q,c){return(Q=rT.exec(Q.slice(c,c+2)))?(T.V=+Q[0],c+Q[0].length):-1}
function i8V(T,Q,c){return(Q=rT.exec(Q.slice(c,c+2)))?(T.W=+Q[0],c+Q[0].length):-1}
function qCb(T,Q,c){return(Q=rT.exec(Q.slice(c,c+4)))?(T.y=+Q[0],c+Q[0].length):-1}
function gt7(T,Q,c){return(Q=rT.exec(Q.slice(c,c+2)))?(T.y=+Q[0]+(+Q[0]>68?1900:2E3),c+Q[0].length):-1}
function Z17(T,Q,c){return(Q=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Q.slice(c,c+6)))?(T.Z=Q[1]?0:-(Q[2]+(Q[3]||"00")),c+Q[0].length):-1}
function G4F(T,Q,c){return(Q=rT.exec(Q.slice(c,c+2)))?(T.m=Q[0]-1,c+Q[0].length):-1}
function wMv(T,Q,c){return(Q=rT.exec(Q.slice(c,c+2)))?(T.d=+Q[0],c+Q[0].length):-1}
function NHq(T,Q,c){return(Q=rT.exec(Q.slice(c,c+3)))?(T.m=0,T.d=+Q[0],c+Q[0].length):-1}
function roW(T,Q,c){return(Q=rT.exec(Q.slice(c,c+2)))?(T.H=+Q[0],c+Q[0].length):-1}
function pmD(T,Q,c){return(Q=rT.exec(Q.slice(c,c+2)))?(T.M=+Q[0],c+Q[0].length):-1}
function ASC(T,Q,c){return(Q=rT.exec(Q.slice(c,c+2)))?(T.S=+Q[0],c+Q[0].length):-1}
function lXb(T,Q,c){return(Q=rT.exec(Q.slice(c,c+3)))?(T.L=+Q[0],c+Q[0].length):-1}
function F$C(T,Q,c){return(Q=rT.exec(Q.slice(c,c+6)))?(T.L=Math.floor(Q[0]/1E3),c+Q[0].length):-1}
function wLV(T,Q,c){return(T=$vl.exec(Q.slice(c,c+1)))?c+T[0].length:-1}
function Xml(T,Q,c){return(Q=rT.exec(Q.slice(c)))?(T.Q=+Q[0],c+Q[0].length):-1}
function mwb(T,Q,c){return(Q=rT.exec(Q.slice(c)))?(T.Q=+Q[0]*1E3,c+Q[0].length):-1}
function DGv(T,Q){return x6(T.getDate(),Q,2)}
function VqZ(T,Q){return x6(T.getHours(),Q,2)}
function O8Z(T,Q){return x6(T.getHours()%12||12,Q,2)}
function H8b(T,Q){return x6(1+fEv.count(SI(T),T),Q,3)}
function hxp(T,Q){return x6(T.getMilliseconds(),Q,3)}
function dwl(T,Q){return hxp(T,Q)+"000"}
function W$7(T,Q){return x6(T.getMonth()+1,Q,2)}
function otl(T,Q){return x6(T.getMinutes(),Q,2)}
function u2y(T,Q){return x6(T.getSeconds(),Q,2)}
function L$8(T){T=T.getDay();return T===0?7:T}
function SaZ(T,Q){return x6(e5q.count(SI(T),T),Q,2)}
function vtq(T,Q){var c=T.getDay();T=c>=4||c===0?HMX(T):HMX.ceil(T);return x6(HMX.count(SI(T),T)+(SI(T).getDay()===4),Q,2)}
function jYl(T){return T.getDay()}
function tql(T,Q){return x6(OMj.count(SI(T),T),Q,2)}
function RbC(T,Q){return x6(T.getFullYear()%100,Q,2)}
function b8u(T,Q){return x6(T.getFullYear()%1E4,Q,4)}
function JSb(T){T=T.getTimezoneOffset();return(T>0?"-":(T*=-1,"+"))+x6(T/60|0,"0",2)+x6(T%60,"0",2)}
function qV1(T,Q){return x6(T.getUTCDate(),Q,2)}
function BHD(T,Q){return x6(T.getUTCHours(),Q,2)}
function aXq(T,Q){return x6(T.getUTCHours()%12||12,Q,2)}
function nt8(T,Q){return x6(1+AMX.count(vL(T),T),Q,3)}
function ZiX(T,Q){return x6(T.getUTCMilliseconds(),Q,3)}
function zbb(T,Q){return ZiX(T,Q)+"000"}
function QYZ(T,Q){return x6(T.getUTCMonth()+1,Q,2)}
function Et7(T,Q){return x6(T.getUTCMinutes(),Q,2)}
function xw8(T,Q){return x6(T.getUTCSeconds(),Q,2)}
function THl(T){T=T.getUTCDay();return T===0?7:T}
function Uwu(T,Q){return x6(Ct7.count(vL(T),T),Q,2)}
function k48(T,Q){var c=T.getUTCDay();T=c>=4||c===0?WX9(T):WX9.ceil(T);return x6(WX9.count(vL(T),T)+(vL(T).getUTCDay()===4),Q,2)}
function K$7(T){return T.getUTCDay()}
function sYV(T,Q){return x6(VD8.count(vL(T),T),Q,2)}
function IXl(T,Q){return x6(T.getUTCFullYear()%100,Q,2)}
function cS8(T,Q){return x6(T.getUTCFullYear()%1E4,Q,4)}
function MqZ(){return"+0000"}
function gGW(){return"%"}
function yMv(T){return+T}
function iF2(T){return Math.floor(+T/1E3)}
function Au(T){for(var Q=T.length/6|0,c=Array(Q),m=0;m<Q;)c[m]="#"+T.slice(m*6,++m*6);return c}
function Cs(T){return PtF(T[T.length-1])}
function p52(T){var Q=T.length;return function(c){return T[Math.max(0,Math.min(Q-1,Math.floor(c*Q)))]}}
function YVv(T){this._context=T}
function $gh(T){this._curve=T}
function eoe(T,Q,c){var m=T._x1-T._x0;Q-=T._x1;var wz=(T._y1-T._y0)/(m||Q<0&&-0);T=(c-T._y1)/(Q||m<0&&-0);return((wz<0?-1:1)+(T<0?-1:1))*Math.min(Math.abs(wz),Math.abs(T),.5*Math.abs((wz*Q+T*m)/(m+Q)))||0}
function Csh(T,Q){var c=T._x1-T._x0;return c?(3*(T._y1-T._y0)/c-Q)/2:Q}
function oM9(T,Q,c){var m=T._x0,wz=T._x1,dz=T._y1,oT=(wz-m)/3;T._context.bezierCurveTo(m+oT,T._y0+oT*Q,wz-oT,dz-oT*c,wz,dz)}
function uZe(T){this._context=T}
function Psm(T){this._context=T}
function Tr(T,Q,c){this.k=T;this.x=Q;this.y=c}
(function(T){T.length===1&&(T=Z(T));return{left:function(Q,c,m,wz){m==null&&(m=0);wz==null&&(wz=Q.length);for(;m<wz;){var dz=m+wz>>>1;T(Q[dz],c)<0?m=dz+1:wz=dz}return m},
right:function(Q,c,m,wz){m==null&&(m=0);wz==null&&(wz=Q.length);for(;m<wz;){var dz=m+wz>>>1;T(Q[dz],c)>0?wz=dz:m=dz+1}return m}}})(q);
var Zwu={value:function(){}};
r.prototype=w.prototype={constructor:r,on:function(T,Q){var c=this._,m=Y(T+"",c),wz,dz=-1,oT=m.length;if(arguments.length<2)for(;++dz<oT;){var ze;if(ze=wz=(T=m[dz]).type){a:{ze=c[wz];for(var fX=0,mI=ze.length;fX<mI;++fX)if((wz=ze[fX]).name===T.name){wz=wz.value;break a}wz=void 0}ze=wz}if(ze)return wz}else{if(Q!=null&&typeof Q!=="function")throw Error("ye`"+Q);for(;++dz<oT;)if(wz=(T=m[dz]).type)c[wz]=C(c[wz],T.name,Q);else if(Q==null)for(wz in c)c[wz]=C(c[wz],T.name,null);return this}},
copy:function(){var T={},Q=this._,c;for(c in Q)T[c]=Q[c].slice();return new r(T)},
call:function(T,Q){if((wz=arguments.length-2)>0)for(var c=Array(wz),m=0,wz,dz;m<wz;++m)c[m]=arguments[m+2];if(!this._.hasOwnProperty(T))throw Error("se`"+T);dz=this._[T];m=0;for(wz=dz.length;m<wz;++m)dz[m].value.apply(Q,c)},
apply:function(T,Q,c){if(!this._.hasOwnProperty(T))throw Error("se`"+T);T=this._[T];for(var m=0,wz=T.length;m<wz;++m)T[m].value.apply(Q,c)}};
var sM={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/"},dgp=function(T){return function(){return this.matches(T)}};
if(typeof document!=="undefined"){var Ub=document.documentElement;if(!Ub.matches){var dvS=Ub.webkitMatchesSelector||Ub.msMatchesSelector||Ub.mozMatchesSelector||Ub.oMatchesSelector;dgp=function(T){return function(){return dvS.call(this,T)}}}}var Vn7=dgp;
B.prototype={constructor:B,appendChild:function(T){return this._parent.insertBefore(T,this._next)},
insertBefore:function(T,Q){return this._parent.insertBefore(T,Q)},
querySelector:function(T){return this._parent.querySelector(T)},
querySelectorAll:function(T){return this._parent.querySelectorAll(T)}};
var WpX={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(WpX={mouseenter:"mouseover",mouseleave:"mouseout"}));var wzb=[null];hK.prototype=wr.prototype={constructor:hK,select:function(T){typeof T!=="function"&&(T=v(T));for(var Q=this._groups,c=Q.length,m=Array(c),wz=0;wz<c;++wz)for(var dz=Q[wz],oT=dz.length,ze=m[wz]=Array(oT),fX,mI,h2=0;h2<oT;++h2)(fX=dz[h2])&&(mI=T.call(fX,fX.__data__,h2,dz))&&("__data__"in fX&&(mI.__data__=fX.__data__),ze[h2]=mI);return new hK(m,this._parents)},
filter:function(T){typeof T!=="function"&&(T=Vn7(T));for(var Q=this._groups,c=Q.length,m=Array(c),wz=0;wz<c;++wz)for(var dz=Q[wz],oT=dz.length,ze=m[wz]=[],fX,mI=0;mI<oT;++mI)(fX=dz[mI])&&T.call(fX,fX.__data__,mI,dz)&&ze.push(fX);return new hK(m,this._parents)},
data:function(T,Q){if(!T)return O6=Array(this.size()),mI=-1,this.each(function(dc){O6[++mI]=dc}),O6;
var c=Q?K:x,m=this._parents,wz=this._groups;typeof T!=="function"&&(T=n(T));for(var dz=wz.length,oT=Array(dz),ze=Array(dz),fX=Array(dz),mI=0;mI<dz;++mI){var h2=m[mI],e2=wz[mI],lX=e2.length,O6=T.call(h2,h2&&h2.__data__,mI,m),Vw=O6.length,z$=ze[mI]=Array(Vw),OI=oT[mI]=Array(Vw);lX=fX[mI]=Array(lX);c(h2,e2,z$,OI,lX,O6,Q);e2=h2=0;for(var ml;h2<Vw;++h2)if(lX=z$[h2]){for(h2>=e2&&(e2=h2+1);!(ml=OI[e2])&&++e2<Vw;);lX._next=ml||null}}oT=new hK(oT,m);oT._enter=ze;oT._exit=fX;return oT},
exit:function(){return new hK(this._exit||this._groups.map(R),this._parents)},
merge:function(T){var Q=this._groups;T=T._groups;for(var c=Q.length,m=Math.min(c,T.length),wz=Array(c),dz=0;dz<m;++dz)for(var oT=Q[dz],ze=T[dz],fX=oT.length,mI=wz[dz]=Array(fX),h2,e2=0;e2<fX;++e2)if(h2=oT[e2]||ze[e2])mI[e2]=h2;for(;dz<c;++dz)wz[dz]=Q[dz];return new hK(wz,this._parents)},
order:function(){for(var T=this._groups,Q=-1,c=T.length;++Q<c;)for(var m=T[Q],wz=m.length-1,dz=m[wz],oT;--wz>=0;)if(oT=m[wz])dz&&dz!==oT.nextSibling&&dz.parentNode.insertBefore(oT,dz),dz=oT;return this},
sort:function(T){function Q(e2,lX){return e2&&lX?T(e2.__data__,lX.__data__):!e2-!lX}
T||(T=k);for(var c=this._groups,m=c.length,wz=Array(m),dz=0;dz<m;++dz){for(var oT=c[dz],ze=oT.length,fX=wz[dz]=Array(ze),mI,h2=0;h2<ze;++h2)if(mI=oT[h2])fX[h2]=mI;fX.sort(Q)}return(new hK(wz,this._parents)).order()},
call:function(){var T=arguments[0];arguments[0]=this;T.apply(null,arguments);return this},
nodes:function(){var T=Array(this.size()),Q=-1;this.each(function(){T[++Q]=this});
return T},
node:function(){for(var T=this._groups,Q=0,c=T.length;Q<c;++Q)for(var m=T[Q],wz=0,dz=m.length;wz<dz;++wz){var oT=m[wz];if(oT)return oT}return null},
size:function(){var T=0;this.each(function(){++T});
return T},
empty:function(){return!this.node()},
each:function(T){for(var Q=this._groups,c=0,m=Q.length;c<m;++c)for(var wz=Q[c],dz=0,oT=wz.length,ze;dz<oT;++dz)(ze=wz[dz])&&T.call(ze,ze.__data__,dz,wz);return this},
attr:function(T,Q){var c=d(T);if(arguments.length<2){var m=this.node();return c.local?m.getAttributeNS(c.space,c.local):m.getAttribute(c)}return this.each((Q==null?c.local?rz:G:typeof Q==="function"?c.local?H6:g:c.local?eO:f)(c,Q))},
style:function(T,Q,c){return arguments.length>1?this.each((Q==null?nX:typeof Q==="function"?SO:Qj)(T,Q,c==null?"":c)):Te(this.node(),T)},
property:function(T,Q){return arguments.length>1?this.each((Q==null?Ze:typeof Q==="function"?A2:W1)(T,Q)):this.node()[T]},
text:function(T){return arguments.length?this.each(T==null?f9:(typeof T==="function"?$g:Dl)(T)):this.node().textContent},
html:function(T){return arguments.length?this.each(T==null?De:(typeof T==="function"?Rh:n9)(T)):this.node().innerHTML},
append:function(T){var Q=typeof T==="function"?T:L(T);return this.select(function(){return this.appendChild(Q.apply(this,arguments))})},
insert:function(T,Q){var c=typeof T==="function"?T:L(T),m=Q==null?xg:typeof Q==="function"?Q:v(Q);return this.select(function(){return this.insertBefore(c.apply(this,arguments),m.apply(this,arguments)||null)})},
remove:function(){return this.each(ZF)},
clone:function(T){return this.select(T?CX:mm)},
datum:function(T){return arguments.length?this.property("__data__",T):this.node().__data__},
on:function(T,Q,c){var m=lC(T+""),wz=m.length,dz;if(arguments.length<2){var oT=this.node().__on;if(oT)for(var ze=0,fX=oT.length,mI;ze<fX;++ze){var h2=0;for(mI=oT[ze];h2<wz;++h2)if((dz=m[h2]).type===mI.type&&dz.name===mI.name)return mI.value}}else{oT=Q?ah:L9;c==null&&(c=!1);for(h2=0;h2<wz;++h2)this.each(oT(m[h2],Q,c));return this}},
dispatch:function(T,Q){return this.each((typeof Q==="function"?Op:lN)(T,Q))}};
var rFl=0;TJ.prototype=function(){return new TJ}.prototype={constructor:TJ,
get:function(T){for(var Q=this._;!(Q in T);)if(!(T=T.parentNode))return;return T[Q]},
set:function(T,Q){return T[this._]=Q},
remove:function(T){return this._ in T&&delete T[this._]},
toString:function(){return this._}};
var jI=1/.7,Y0V=/^#([0-9a-f]{3})$/,$5b=/^#([0-9a-f]{6})$/,eXy=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),CVy=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),PV6=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),d56=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*\\)$"),
Vcl=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Owb=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*\\)$"),oGp={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};
Iq(Ny,P8,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Iq(Jf,gc,B8(Ny,{brighter:function(T){T=T==null?jI:Math.pow(jI,T);return new Jf(this.r*T,this.g*T,this.b*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new Jf(this.r*T,this.g*T,this.b*T,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"#"+a9(this.r)+a9(this.g)+a9(this.b)},
toString:function(){var T=this.opacity;T=isNaN(T)?1:Math.max(0,Math.min(1,T));return(T===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))+(T===1?")":", "+T+")")}}));
Iq(N4,BN,B8(Ny,{brighter:function(T){T=T==null?jI:Math.pow(jI,T);return new N4(this.h,this.s,this.l*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new N4(this.h,this.s,this.l*T,this.opacity)},
rgb:function(){var T=this.h%360+(this.h<0)*360,Q=this.l,c=Q+(Q<.5?Q:1-Q)*(isNaN(T)||isNaN(this.s)?0:this.s);Q=2*Q-c;return new Jf(mT(T>=240?T-240:T+120,Q,c),mT(T,Q,c),mT(T<120?T+240:T-120,Q,c),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 uh7=Math.PI/180,vG2=180/Math.PI,S9J=4/29,ut=6/29,LpD=3*ut*ut,Hwu=ut*ut*ut;Iq(v6,function(T,Q,c,m){return arguments.length===1?Go(T):new v6(T,Q,c,m==null?1:m)},B8(Ny,{brighter:function(T){return new v6(this.l+18*(T==null?1:T),this.a,this.b,this.opacity)},
darker:function(T){return new v6(this.l-18*(T==null?1:T),this.a,this.b,this.opacity)},
rgb:function(){var T=(this.l+16)/116,Q=isNaN(this.a)?T:T+this.a/500,c=isNaN(this.b)?T:T-this.b/200;Q=.96422*c6(Q);T=1*c6(T);c=.82521*c6(c);return new Jf(oh(3.1338561*Q-1.6168667*T-.4906146*c),oh(-.9787684*Q+1.9161415*T+.033454*c),oh(.0719453*Q-.2289914*T+1.4052427*c),this.opacity)}}));
Iq(X7,dW,B8(Ny,{brighter:function(T){return new X7(this.h,this.c,this.l+18*(T==null?1:T),this.opacity)},
darker:function(T){return new X7(this.h,this.c,this.l-18*(T==null?1:T),this.opacity)},
rgb:function(){return Go(this).rgb()}}));
var jfp=1.78277*-.29227-.1347134789;Iq(tI,tK,B8(Ny,{brighter:function(T){T=T==null?jI:Math.pow(jI,T);return new tI(this.h,this.s,this.l*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new tI(this.h,this.s,this.l*T,this.opacity)},
rgb:function(){var T=isNaN(this.h)?0:(this.h+120)*uh7,Q=+this.l,c=isNaN(this.s)?0:this.s*Q*(1-Q),m=Math.cos(T);T=Math.sin(T);return new Jf(255*(Q+c*(-.14861*m+1.78277*T)),255*(Q+c*(-.29227*m+-.90649*T)),255*(Q+1.97294*m*c),this.opacity)}}));
var zxv=function c(Q){function m(dz,oT){var ze=wz((dz=gc(dz)).r,(oT=gc(oT)).r),fX=wz(dz.g,oT.g),mI=wz(dz.b,oT.b),h2=SJ(dz.opacity,oT.opacity);return function(e2){dz.r=ze(e2);dz.g=fX(e2);dz.b=mI(e2);dz.opacity=h2(e2);return dz+""}}
var wz=rD(Q);m.gamma=c;return m}(1),PtF=Bx(function(Q){var c=Q.length-1;
return function(m){var wz=m<=0?m=0:m>=1?(m=1,c-1):Math.floor(m*c),dz=Q[wz],oT=Q[wz+1];return hj((m-wz/c)*c,wz>0?Q[wz-1]:2*dz-oT,dz,oT,wz<c-1?Q[wz+2]:2*oT-dz)}});
Bx(function(Q){var c=Q.length;return function(m){var wz=Math.floor(((m%=1)<0?++m:m)*c);return hj((m-wz/c)*c,Q[(wz+c-1)%c],Q[wz%c],Q[(wz+1)%c],Q[(wz+2)%c])}});
var hHI=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yZ9=new RegExp(hHI.source,"g"),tBW=180/Math.PI,LXz={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},kw,S7j,OiX,X59,VI7=zx(function(Q){if(Q==="none")return LXz;kw||(kw=document.createElement("DIV"),S7j=document.documentElement,OiX=document.defaultView);kw.style.transform=Q;Q=OiX.getComputedStyle(S7j.appendChild(kw),null).getPropertyValue("transform");S7j.removeChild(kw);Q=Q.slice(7,-1).split(",");return Yx(+Q[0],+Q[1],+Q[2],+Q[3],
+Q[4],+Q[5])},"px, ","px)","deg)"),O1c=zx(function(Q){if(Q==null)return LXz;
X59||(X59=document.createElementNS("http://www.w3.org/2000/svg","g"));X59.setAttribute("transform",Q);if(!(Q=X59.transform.baseVal.consolidate()))return LXz;Q=Q.matrix;return Yx(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)},", ",")",")");
JI(yw);JI(SJ);AQ(yw);AQ(SJ);fP(yw);var vMI=fP(SJ),L1=0,JU=0,Bc=0,s$1,zr,Kl2=0,e4=0,koz=0,bK=typeof performance==="object"&&performance.now?performance:Date,RxD=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};
pO.prototype=St.prototype={constructor:pO,restart:function(Q,c,m){if(typeof Q!=="function")throw new TypeError("ze");m=(m==null?Gi():+m)+(c==null?0:+c);this._next||zr===this||(zr?zr._next=this:s$1=this,zr=this);this._call=Q;this._time=m;jt()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,jt())}};
var oRl=w("start","end","interrupt"),uSl=[],H1q=wr.prototype.constructor,Hip=0,tB=wr.prototype;vV.prototype=function(Q){return wr().transition(Q)}.prototype={constructor:vV,
select:function(Q){var c=this._name,m=this._id;typeof Q!=="function"&&(Q=v(Q));for(var wz=this._groups,dz=wz.length,oT=Array(dz),ze=0;ze<dz;++ze)for(var fX=wz[ze],mI=fX.length,h2=oT[ze]=Array(mI),e2,lX,O6=0;O6<mI;++O6)(e2=fX[O6])&&(lX=Q.call(e2,e2.__data__,O6,fX))&&("__data__"in e2&&(lX.__data__=e2.__data__),h2[O6]=lX,i29(h2[O6],c,m,O6,h2,z3(e2,m)));return new vV(oT,this._parents,c,m)},
filter:function(Q){typeof Q!=="function"&&(Q=Vn7(Q));for(var c=this._groups,m=c.length,wz=Array(m),dz=0;dz<m;++dz)for(var oT=c[dz],ze=oT.length,fX=wz[dz]=[],mI,h2=0;h2<ze;++h2)(mI=oT[h2])&&Q.call(mI,mI.__data__,h2,oT)&&fX.push(mI);return new vV(wz,this._parents,this._name,this._id)},
merge:function(Q){if(Q._id!==this._id)throw Error();var c=this._groups;Q=Q._groups;for(var m=c.length,wz=Math.min(m,Q.length),dz=Array(m),oT=0;oT<wz;++oT)for(var ze=c[oT],fX=Q[oT],mI=ze.length,h2=dz[oT]=Array(mI),e2,lX=0;lX<mI;++lX)if(e2=ze[lX]||fX[lX])h2[lX]=e2;for(;oT<m;++oT)dz[oT]=c[oT];return new vV(dz,this._parents,this._name,this._id)},
selection:function(){return new H1q(this._groups,this._parents)},
transition:function(){for(var Q=this._name,c=this._id,m=++Hip,wz=this._groups,dz=wz.length,oT=0;oT<dz;++oT)for(var ze=wz[oT],fX=ze.length,mI,h2=0;h2<fX;++h2)if(mI=ze[h2]){var e2=z3(mI,c);i29(mI,Q,m,h2,ze,{time:e2.time+e2.delay+e2.duration,delay:0,duration:e2.duration,ease:e2.ease})}return new vV(wz,this._parents,Q,m)},
call:tB.call,nodes:tB.nodes,node:tB.node,size:tB.size,empty:tB.empty,each:tB.each,on:function(Q,c){var m=this._id;return arguments.length<2?z3(this.node(),m).on.on(Q):this.each(U5y(m,Q,c))},
attr:function(Q,c){var m=d(Q),wz=m==="transform"?O1c:JMg;return this.attrTween(Q,typeof c==="function"?(m.local?JFy:bwq)(m,wz,q7e(this,"attr."+Q,c)):c==null?(m.local?jMD:vR6)(m):(m.local?RXb:tcc)(m,wz,c+""))},
attrTween:function(Q,c){var m="attr."+Q;if(arguments.length<2)return(m=this.tween(m))&&m._value;if(c==null)return this.tween(m,null);if(typeof c!=="function")throw Error();var wz=d(Q);return this.tween(m,(wz.local?zXD:BOb)(wz,c))},
style:function(Q,c,m){var wz=Q==="transform"?VI7:JMg;return c==null?this.styleTween(Q,KRq(Q,wz)).on("end.style."+Q,sM8(Q)):this.styleTween(Q,typeof c==="function"?cFy(Q,wz,q7e(this,"style."+Q,c)):I4F(Q,wz,c+""),m)},
styleTween:function(Q,c,m){var wz="style."+Q;if(arguments.length<2)return(wz=this.tween(wz))&&wz._value;if(c==null)return this.tween(wz,null);if(typeof c!=="function")throw Error();return this.tween(wz,Mcq(Q,c,m==null?"":m))},
text:function(Q){return this.tween("text",typeof Q==="function"?NO8(q7e(this,"text",Q)):FRS(Q==null?"":Q+""))},
remove:function(){return this.on("end.remove",kcD(this._id))},
tween:function(Q,c){var m=this._id;if(arguments.length<2){m=z3(this.node(),m).tween;for(var wz=0,dz=m.length,oT;wz<dz;++wz)if((oT=m[wz]).name===Q)return oT.value;return null}return this.each((c==null?LR8:S06)(m,Q,c))},
delay:function(Q){var c=this._id;return arguments.length?this.each((typeof Q==="function"?a47:nRl)(c,Q)):z3(this.node(),c).delay},
duration:function(Q){var c=this._id;return arguments.length?this.each((typeof Q==="function"?QMV:ERF)(c,Q)):z3(this.node(),c).duration},
ease:function(Q){var c=this._id;return arguments.length?this.each(x5b(c,Q)):z3(this.node(),c).ease}};
var jc2={time:null,delay:0,duration:250,ease:function(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}};
wr.prototype.transition=function(Q){var c;if(Q instanceof vV){var m=Q._id;Q=Q._name}else m=++Hip,(c=jc2).time=Gi(),Q=Q==null?null:Q+"";for(var wz=this._groups,dz=wz.length,oT=0;oT<dz;++oT)for(var ze=wz[oT],fX=ze.length,mI,h2=0;h2<fX;++h2)if(mI=ze[h2]){var e2=mI,lX=Q,O6=m,Vw=h2,z$=ze,OI;if(!(OI=c))a:{OI=void 0;for(var ml=m;!(OI=mI.__transition)||!(OI=OI[ml]);)if(!(mI=mI.parentNode)){OI=(jc2.time=Gi(),jc2);break a}}i29(e2,lX,O6,Vw,z$,OI)}return new vV(wz,this._parents,Q,m)};
["e","w"].map(ZMj);["n","s"].map(ZMj);"n e s w nw ne se sw".split(" ").map(ZMj);wwI.prototype=function(){return new wwI}.prototype={constructor:wwI,
moveTo:function(Q,c){this._+="M"+(this._x0=this._x1=+Q)+","+(this._y0=this._y1=+c)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(Q,c){this._+="L"+(this._x1=+Q)+","+(this._y1=+c)},
bezierCurveTo:function(Q,c,m,wz,dz,oT){this._+="C"+ +Q+","+ +c+","+ +m+","+ +wz+","+(this._x1=+dz)+","+(this._y1=+oT)},
rect:function(Q,c,m,wz){this._+="M"+(this._x0=this._x1=+Q)+","+(this._y0=this._y1=+c)+"h"+ +m+"v"+ +wz+"h"+-m+"Z"},
toString:function(){return this._}};
I$2.prototype=BV2.prototype={constructor:I$2,has:function(Q){return" "+Q in this},
get:function(Q){return this[" "+Q]},
set:function(Q,c){this[" "+Q]=c;return this},
remove:function(Q){Q=" "+Q;return Q in this&&delete this[Q]},
clear:function(){for(var Q in this)Q[0]===" "&&delete this[Q]},
keys:function(){var Q=[],c;for(c in this)c[0]===" "&&Q.push(c.slice(1));return Q},
values:function(){var Q=[],c;for(c in this)c[0]===" "&&Q.push(this[c]);return Q},
entries:function(){var Q=[],c;for(c in this)c[0]===" "&&Q.push({key:c.slice(1),value:this[c]});return Q},
size:function(){var Q=0,c;for(c in this)c[0]===" "&&++Q;return Q},
empty:function(){for(var Q in this)if(Q[0]===" ")return!1;return!0},
each:function(Q){for(var c in this)c[0]===" "&&Q(this[c],c.slice(1),this)}};
var VS=BV2.prototype;c98.prototype=function(Q,c){var m=new c98;if(Q instanceof c98)Q.each(function(oT){m.add(oT)});
else if(Q){var wz=-1,dz=Q.length;if(c==null)for(;++wz<dz;)m.add(Q[wz]);else for(;++wz<dz;)m.add(c(Q[wz],wz,Q))}return m}.prototype={constructor:c98,
has:VS.has,add:function(Q){this[" "+Q]=Q;return this},
remove:VS.remove,clear:VS.clear,values:VS.keys,size:VS.size,empty:VS.empty,each:VS.each};var Qfe={},rwT={},WK6=nGv(",").parse,oEc=nGv("\t").parse;EGh(WK6);EGh(oEc);var V5=function(Q,c,m){c=new Y7j(c==null?XzD:c,m==null?m57:m,NaN,NaN,NaN,NaN);return Q==null?c:c.addAll(Q)}.prototype=Y7j.prototype;
V5.copy=function(){var Q=new Y7j(this._x,this._y,this._x0,this._y0,this._x1,this._y1),c=this._root,m,wz;if(!c)return Q;if(!c.length)return Q._root=TV7(c),Q;for(m=[{source:c,target:Q._root=Array(4)}];c=m.pop();)for(var dz=0;dz<4;++dz)if(wz=c.source[dz])wz.length?m.push({source:wz,target:c.target[dz]=Array(4)}):c.target[dz]=TV7(wz);return Q};
V5.add=function(Q){var c=+this._x.call(null,Q),m=+this._y.call(null,Q);return xGD(this.cover(c,m),c,m,Q)};
V5.addAll=function(Q){var c,m,wz=Q.length,dz,oT,ze=Array(wz),fX=Array(wz),mI=Infinity,h2=Infinity,e2=-Infinity,lX=-Infinity;for(m=0;m<wz;++m)isNaN(dz=+this._x.call(null,c=Q[m]))||isNaN(oT=+this._y.call(null,c))||(ze[m]=dz,fX[m]=oT,dz<mI&&(mI=dz),dz>e2&&(e2=dz),oT<h2&&(h2=oT),oT>lX&&(lX=oT));e2<mI&&(mI=this._x0,e2=this._x1);lX<h2&&(h2=this._y0,lX=this._y1);this.cover(mI,h2).cover(e2,lX);for(m=0;m<wz;++m)xGD(this,ze[m],fX[m],Q[m]);return this};
V5.cover=function(Q,c){if(isNaN(Q=+Q)||isNaN(c=+c))return this;var m=this._x0,wz=this._y0,dz=this._x1,oT=this._y1;if(isNaN(m))dz=(m=Math.floor(Q))+1,oT=(wz=Math.floor(c))+1;else if(m>Q||Q>dz||wz>c||c>oT){var ze=dz-m,fX=this._root,mI;switch(mI=(c<(wz+oT)/2)<<1|Q<(m+dz)/2){case 0:do{var h2=Array(4);h2[mI]=fX;fX=h2}while(ze*=2,dz=m+ze,oT=wz+ze,Q>dz||c>oT);break;case 1:do h2=Array(4),h2[mI]=fX,fX=h2;while(ze*=2,m=dz-ze,oT=wz+ze,m>Q||c>oT);break;case 2:do h2=Array(4),h2[mI]=fX,fX=h2;while(ze*=2,dz=m+ze,
wz=oT-ze,Q>dz||wz>c);break;case 3:do h2=Array(4),h2[mI]=fX,fX=h2;while(ze*=2,m=dz-ze,wz=oT-ze,m>Q||wz>c)}this._root&&this._root.length&&(this._root=fX)}else return this;this._x0=m;this._y0=wz;this._x1=dz;this._y1=oT;return this};
V5.data=function(){var Q=[];this.visit(function(c){if(!c.length){do Q.push(c.data);while(c=c.next)}});
return Q};
V5.extent=function(Q){return arguments.length?this.cover(+Q[0][0],+Q[0][1]).cover(+Q[1][0],+Q[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
V5.find=function(Q,c,m){var wz=this._x0,dz=this._y0,oT,ze,fX,mI,h2=this._x1,e2=this._y1,lX=[],O6=this._root,Vw;O6&&lX.push(new d3(O6,wz,dz,h2,e2));m==null?m=Infinity:(wz=Q-m,dz=c-m,h2=Q+m,e2=c+m,m*=m);for(;Vw=lX.pop();)if(!(!(O6=Vw.node)||(oT=Vw.x0)>h2||(ze=Vw.y0)>e2||(fX=Vw.x1)<wz||(mI=Vw.y1)<dz))if(O6.length){Vw=(oT+fX)/2;var z$=(ze+mI)/2;lX.push(new d3(O6[3],Vw,z$,fX,mI),new d3(O6[2],oT,z$,Vw,mI),new d3(O6[1],Vw,ze,fX,z$),new d3(O6[0],oT,ze,Vw,z$));if(O6=(c>=z$)<<1|Q>=Vw)Vw=lX[lX.length-1],lX[lX.length-
1]=lX[lX.length-1-O6],lX[lX.length-1-O6]=Vw}else if(Vw=Q-+this._x.call(null,O6.data),z$=c-+this._y.call(null,O6.data),Vw=Vw*Vw+z$*z$,Vw<m){var OI=Math.sqrt(m=Vw);wz=Q-OI;dz=c-OI;h2=Q+OI;e2=c+OI;OI=O6.data}return OI};
V5.remove=function(Q){if(isNaN(mI=+this._x.call(null,Q))||isNaN(h2=+this._y.call(null,Q)))return this;var c,m=this._root,wz,dz=this._x0,oT=this._y0,ze=this._x1,fX=this._y1,mI,h2,e2,lX,O6,Vw,z$;if(!m)return this;if(m.length)for(;;){(O6=mI>=(e2=(dz+ze)/2))?dz=e2:ze=e2;(Vw=h2>=(lX=(oT+fX)/2))?oT=lX:fX=lX;if(!(c=m,m=m[z$=Vw<<1|O6]))return this;if(!m.length)break;if(c[z$+1&3]||c[z$+2&3]||c[z$+3&3]){var OI=c;var ml=z$}}for(;m.data!==Q;)if(!(wz=m,m=m.next))return this;(Q=m.next)&&delete m.next;if(wz)return Q?
wz.next=Q:delete wz.next,this;if(!c)return this._root=Q,this;Q?c[z$]=Q:delete c[z$];(m=c[0]||c[1]||c[2]||c[3])&&m===(c[3]||c[2]||c[1]||c[0])&&!m.length&&(OI?OI[ml]=m:this._root=m);return this};
V5.removeAll=function(Q){for(var c=0,m=Q.length;c<m;++c)this.remove(Q[c]);return this};
V5.root=function(){return this._root};
V5.size=function(){var Q=0;this.visit(function(c){if(!c.length){do++Q;while(c=c.next)}});
return Q};
V5.visit=function(Q){var c=[],m,wz=this._root,dz,oT,ze,fX,mI;for(wz&&c.push(new d3(wz,this._x0,this._y0,this._x1,this._y1));m=c.pop();)if(!Q(wz=m.node,oT=m.x0,ze=m.y0,fX=m.x1,mI=m.y1)&&wz.length){m=(oT+fX)/2;var h2=(ze+mI)/2;(dz=wz[3])&&c.push(new d3(dz,m,h2,fX,mI));(dz=wz[2])&&c.push(new d3(dz,oT,h2,m,mI));(dz=wz[1])&&c.push(new d3(dz,m,ze,fX,h2));(dz=wz[0])&&c.push(new d3(dz,oT,ze,m,h2))}};
V5.visitAfter=function(Q){var c=[],m=[],wz;for(this._root&&c.push(new d3(this._root,this._x0,this._y0,this._x1,this._y1));wz=c.pop();){var dz=wz.node;if(dz.length){var oT,ze=wz.x0,fX=wz.y0,mI=wz.x1,h2=wz.y1,e2=(ze+mI)/2,lX=(fX+h2)/2;(oT=dz[0])&&c.push(new d3(oT,ze,fX,e2,lX));(oT=dz[1])&&c.push(new d3(oT,e2,fX,mI,lX));(oT=dz[2])&&c.push(new d3(oT,ze,lX,e2,h2));(oT=dz[3])&&c.push(new d3(oT,e2,lX,mI,h2))}m.push(wz)}for(;wz=m.pop();)Q(wz.node,wz.x0,wz.y0,wz.x1,wz.y1);return this};
V5.x=function(Q){return arguments.length?(this._x=Q,this):this._x};
V5.y=function(Q){return arguments.length?(this._y=Q,this):this._y};
var hX6=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;$HX.prototype=eNX.prototype;eNX.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 sfg,IEm={"%":function(Q,c){return(Q*100).toFixed(c)},
b:function(Q){return Math.round(Q).toString(2)},
c:function(Q){return Q+""},
d:function(Q){return Math.round(Q).toString(10)},
e:function(Q,c){return Q.toExponential(c)},
f:function(Q,c){return Q.toFixed(c)},
g:function(Q,c){return Q.toPrecision(c)},
o:function(Q){return Math.round(Q).toString(8)},
p:function(Q,c){return UGh(Q*100,c)},
r:UGh,s:function(Q,c){var m=MJj(Q,c);if(!m)return Q+"";var wz=m[0];m=m[1];m=m-(sfg=Math.max(-8,Math.min(8,Math.floor(m/3)))*3)+1;var dz=wz.length;return m===dz?wz:m>dz?wz+Array(m-dz+1).join("0"):m>0?wz.slice(0,m)+"."+wz.slice(m):"0."+Array(1-m).join("0")+MJj(Q,Math.max(0,c+m-1))[0]},
X:function(Q){return Math.round(Q).toString(16).toUpperCase()},
x:function(Q){return Math.round(Q).toString(16)}},KpK="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),u3C;
(function(Q){return u3C=yFy(Q)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});o0.prototype={constructor:o0,reset:function(){this.s=this.t=0},
add:function(Q){cMe(mNz,Q,this.t);cMe(this,mNz.s,this.s);this.s?this.t+=mNz.t:this.s=mNz.t},
valueOf:function(){return this.s}};
var mNz=new o0,aw=Math.PI,I5=aw/2,WU1=aw/4,LKV=aw*2,tD8=aw/180,j1=Math.abs,RNe=Math.atan,puD=Math.atan2,cx=Math.cos,eZ=Math.sin,NIj=Math.sqrt;new o0;new o0;new o0;var bMz=new o0;(function(Q,c,m,wz){return function(dz){function oT(VE,gD){Q(VE,gD)&&dz.point(VE,gD)}
function ze(VE,gD){O6.point(VE,gD)}
function fX(){Zd.point=ze;O6.lineStart()}
function mI(){Zd.point=oT;O6.lineEnd()}
function h2(VE,gD){wT.push([VE,gD]);z$.point(VE,gD)}
function e2(){z$.lineStart();wT=[]}
function lX(){h2(wT[0][0],wT[0][1]);z$.lineEnd();var VE=z$.clean(),gD=Vw.result(),MK=gD.length,t9;wT.pop();ml.push(wT);wT=null;if(MK)if(VE&1){if(MK=gD[0],(gD=MK.length-1)>0){OI||(dz.polygonStart(),OI=!0);dz.lineStart();for(VE=0;VE<gD;++VE)dz.point((t9=MK[VE])[0],t9[1]);dz.lineEnd()}}else MK>1&&VE&2&&gD.push(gD.pop().concat(gD.shift())),dc.push(gD.filter(Z8l))}
var O6=c(dz),Vw=gRu(),z$=c(Vw),OI=!1,ml,dc,wT,Zd={point:oT,lineStart:fX,lineEnd:mI,polygonStart:function(){Zd.point=h2;Zd.lineStart=e2;Zd.lineEnd=lX;dc=[];ml=[]},
polygonEnd:function(){Zd.point=oT;Zd.lineStart=fX;Zd.lineEnd=mI;var VE=dc,gD=VE.length;var MK=-1;for(var t9=0,zu,rr;++MK<gD;)t9+=VE[MK].length;for(zu=Array(t9);--gD>=0;)for(rr=VE[gD],MK=rr.length;--MK>=0;)zu[--t9]=rr[MK];dc=zu;VE=ml;gD=wz[0];t9=wz[1];var mF=eZ(t9);MK=[eZ(gD),-cx(gD),0];rr=zu=0;bMz.reset();mF===1?t9=I5+1E-6:mF===-1&&(t9=-I5-1E-6);mF=0;for(var uC=VE.length;mF<uC;++mF)if(BO=(e9=VE[mF]).length){var e9,BO,A9=e9[BO-1],az=A9[0],GZ=A9[1]/2+WU1,A9I=eZ(GZ),ofv=cx(GZ);for(GZ=0;GZ<BO;++GZ,az=
Jwj,A9I=uvm,ofv=K4,A9=f$z){var f$z=e9[GZ],Jwj=f$z[0];K4=f$z[1]/2+WU1;var uvm=eZ(K4),K4=cx(K4),RN=Jwj-az,zNe=RN>=0?1:-1,BdX=zNe*RN,DNT=BdX>aw;A9I*=uvm;bMz.add(puD(A9I*zNe*eZ(BdX),ofv*K4+A9I*cx(BdX)));zu+=DNT?RN+zNe*LKV:RN;DNT^az>=gD^Jwj>=gD&&(A9=Fp7(MBp(A9),MBp(f$z)),NVe(A9),az=Fp7(MK,A9),NVe(az),az=(DNT^RN>=0?-1:1)*FlN(az[2]),t9>az||t9===az&&(A9[0]||A9[1]))&&(rr+=DNT^RN>=0?1:-1)}}VE=(zu<-1E-6||zu<1E-6&&bMz<-1E-6)^rr&1;dc.length?(OI||(dz.polygonStart(),OI=!0),qaV(dc,wmb,VE,m,dz)):VE&&(OI||(dz.polygonStart(),
OI=!0),dz.lineStart(),m(null,null,1,dz),dz.lineEnd());OI&&(dz.polygonEnd(),OI=!1);dc=ml=null},
sphere:function(){dz.polygonStart();dz.lineStart();m(null,null,1,dz);dz.lineEnd();dz.polygonEnd()}};
return Zd}})(function(){return!0},function(Q){var c=NaN,m=NaN,wz=NaN,dz;
return{lineStart:function(){Q.lineStart();dz=1},
point:function(oT,ze){var fX=oT>0?aw:-aw,mI=j1(oT-c);if(j1(mI-aw)<1E-6)Q.point(c,m=(m+ze)/2>0?I5:-I5),Q.point(wz,m),Q.lineEnd(),Q.lineStart(),Q.point(fX,m),Q.point(oT,m),dz=0;else if(wz!==fX&&mI>=aw){j1(c-wz)<1E-6&&(c-=wz*1E-6);j1(oT-fX)<1E-6&&(oT-=fX*1E-6);mI=c;var h2=m,e2=oT,lX,O6,Vw=eZ(mI-e2);m=j1(Vw)>1E-6?RNe((eZ(h2)*(O6=cx(ze))*eZ(e2)-eZ(ze)*(lX=cx(h2))*eZ(mI))/(lX*O6*Vw)):(h2+ze)/2;Q.point(wz,m);Q.lineEnd();Q.lineStart();Q.point(fX,m);dz=0}Q.point(c=oT,m=ze);wz=fX},
lineEnd:function(){Q.lineEnd();c=m=NaN},
clean:function(){return 2-dz}}},function(Q,c,m,wz){Q==null?(m*=I5,wz.point(-aw,m),wz.point(0,m),wz.point(aw,m),wz.point(aw,0),wz.point(aw,-m),wz.point(0,-m),wz.point(-aw,-m),wz.point(-aw,0),wz.point(-aw,m)):j1(Q[0]-c[0])>1E-6?(Q=Q[0]<c[0]?aw:-aw,m=m*Q/2,wz.point(-Q,m),wz.point(0,m),wz.point(Q,m)):wz.point(c[0],c[1])},[-aw,
-I5]);new o0;new o0;new o0;new o0;CDz.prototype={constructor:CDz,point:function(Q,c){this.stream.point(Q,c)},
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()}};
cx(30*tD8);(function(Q){return function(c){var m=new CDz,wz;for(wz in Q)m[wz]=Q[wz];m.stream=c;return m}})({point:function(Q,c){this.stream.point(Q*tD8,c*tD8)}});
G6g(function(Q){return NIj(2/(1+Q))}).invert=aU(function(Q){return 2*FlN(Q/2)});
G6g(function(Q){return(Q=Q>1?0:Q<-1?aw:Math.acos(Q))&&Q/eZ(Q)}).invert=aU(function(Q){return Q});
NIj(3);aU(RNe);aU(FlN);aU(function(Q){return 2*RNe(Q)});
n4.prototype=XuD.prototype={constructor:n4,count:function(){return this.eachAfter(rSD)},
each:function(Q){var c,m=[this],wz;do{var dz=m.reverse();for(m=[];c=dz.pop();)if(Q(c),c=c.children){var oT=0;for(wz=c.length;oT<wz;++oT)m.push(c[oT])}}while(m.length);return this},
eachAfter:function(Q){for(var c,m=[this],wz=[],dz,oT;c=m.pop();)if(wz.push(c),c=c.children)for(dz=0,oT=c.length;dz<oT;++dz)m.push(c[dz]);for(;c=wz.pop();)Q(c);return this},
eachBefore:function(Q){for(var c,m=[this],wz;c=m.pop();)if(Q(c),c=c.children)for(wz=c.length-1;wz>=0;--wz)m.push(c[wz]);return this},
sum:function(Q){return this.eachAfter(function(c){for(var m=+Q(c.data)||0,wz=c.children,dz=wz&&wz.length;--dz>=0;)m+=wz[dz].value;c.value=m})},
sort:function(Q){return this.eachBefore(function(c){c.children&&c.children.sort(Q)})},
path:function(Q){var c=this;var m=c;var wz=Q;if(m!==wz){var dz=m.ancestors(),oT=wz.ancestors(),ze=null;m=dz.pop();for(wz=oT.pop();m===wz;)ze=m,m=dz.pop(),wz=oT.pop();m=ze}for(wz=[c];c!==m;)c=c.parent,wz.push(c);for(c=wz.length;Q!==m;)wz.splice(c,0,Q),Q=Q.parent;return wz},
ancestors:function(){for(var Q=this,c=[Q];Q=Q.parent;)c.push(Q);return c},
links:function(){var Q=this,c=[];Q.each(function(m){m!==Q&&c.push({source:m.parent,target:m})});
return c},
copy:function(){return XuD(this).eachBefore(ebb)}};
(function(Q,c){this._=Q;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=c}).prototype=Object.create(n4.prototype);
var PDj=new Date,dHj=new Date,LUW=gJ(function(){},function(Q,c){Q.setTime(+Q+c)},function(Q,c){return c-Q});
LUW.every=function(Q){Q=Math.floor(Q);return isFinite(Q)&&Q>0?Q>1?gJ(function(c){c.setTime(Math.floor(c/Q)*Q)},function(c,m){c.setTime(+c+m*Q)},function(c,m){return(m-c)/Q}):LUW:null};
gJ(function(Q){Q.setTime(Math.floor(Q/1E3)*1E3)},function(Q,c){Q.setTime(+Q+c*1E3)},function(Q,c){return(c-Q)/1E3},function(Q){return Q.getUTCSeconds()});
gJ(function(Q){Q.setTime(Math.floor(Q/6E4)*6E4)},function(Q,c){Q.setTime(+Q+c*6E4)},function(Q,c){return(c-Q)/6E4},function(Q){return Q.getMinutes()});
gJ(function(Q){var c=Q.getTimezoneOffset()*6E4%36E5;c<0&&(c+=36E5);Q.setTime(Math.floor((+Q-c)/36E5)*36E5+c)},function(Q,c){Q.setTime(+Q+c*36E5)},function(Q,c){return(c-Q)/36E5},function(Q){return Q.getHours()});
var fEv=gJ(function(Q){Q.setHours(0,0,0,0)},function(Q,c){Q.setDate(Q.getDate()+c)},function(Q,c){return(c-Q-(c.getTimezoneOffset()-Q.getTimezoneOffset())*6E4)/864E5},function(Q){return Q.getDate()-1}),e5q=Ph(0),OMj=Ph(1);
Ph(2);Ph(3);var HMX=Ph(4);Ph(5);Ph(6);gJ(function(Q){Q.setDate(1);Q.setHours(0,0,0,0)},function(Q,c){Q.setMonth(Q.getMonth()+c)},function(Q,c){return c.getMonth()-Q.getMonth()+(c.getFullYear()-Q.getFullYear())*12},function(Q){return Q.getMonth()});
var SI=gJ(function(Q){Q.setMonth(0,1);Q.setHours(0,0,0,0)},function(Q,c){Q.setFullYear(Q.getFullYear()+c)},function(Q,c){return c.getFullYear()-Q.getFullYear()},function(Q){return Q.getFullYear()});
SI.every=function(Q){return isFinite(Q=Math.floor(Q))&&Q>0?gJ(function(c){c.setFullYear(Math.floor(c.getFullYear()/Q)*Q);c.setMonth(0,1);c.setHours(0,0,0,0)},function(c,m){c.setFullYear(c.getFullYear()+m*Q)}):null};
gJ(function(Q){Q.setUTCSeconds(0,0)},function(Q,c){Q.setTime(+Q+c*6E4)},function(Q,c){return(c-Q)/6E4},function(Q){return Q.getUTCMinutes()});
gJ(function(Q){Q.setUTCMinutes(0,0,0)},function(Q,c){Q.setTime(+Q+c*36E5)},function(Q,c){return(c-Q)/36E5},function(Q){return Q.getUTCHours()});
var AMX=gJ(function(Q){Q.setUTCHours(0,0,0,0)},function(Q,c){Q.setUTCDate(Q.getUTCDate()+c)},function(Q,c){return(c-Q)/864E5},function(Q){return Q.getUTCDate()-1}),Ct7=d8(0),VD8=d8(1);
d8(2);d8(3);var WX9=d8(4);d8(5);d8(6);gJ(function(Q){Q.setUTCDate(1);Q.setUTCHours(0,0,0,0)},function(Q,c){Q.setUTCMonth(Q.getUTCMonth()+c)},function(Q,c){return c.getUTCMonth()-Q.getUTCMonth()+(c.getUTCFullYear()-Q.getUTCFullYear())*12},function(Q){return Q.getUTCMonth()});
var vL=gJ(function(Q){Q.setUTCMonth(0,1);Q.setUTCHours(0,0,0,0)},function(Q,c){Q.setUTCFullYear(Q.getUTCFullYear()+c)},function(Q,c){return c.getUTCFullYear()-Q.getUTCFullYear()},function(Q){return Q.getUTCFullYear()});
vL.every=function(Q){return isFinite(Q=Math.floor(Q))&&Q>0?gJ(function(c){c.setUTCFullYear(Math.floor(c.getUTCFullYear()/Q)*Q);c.setUTCMonth(0,1);c.setUTCHours(0,0,0,0)},function(c,m){c.setUTCFullYear(c.getUTCFullYear()+m*Q)}):null};
var mG1={"-":"",_:" ",0:"0"},rT=/^\s*\d+/,$vl=/^%/,YC6=/[\\^$*+?|[\]().{}]/g,h$I;(function(Q){h$I=PH7(Q);UA7=h$I.utcFormat;kd2=h$I.utcParse;return h$I})({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||UA7("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||kd2("%Y-%m-%dT%H:%M:%S.%LZ");Au("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Au("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Au("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Au("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Au("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Au("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Au("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Au("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Au("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Au("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Au("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Au("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var SCV=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Au);Cs(SCV);var vED=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Au);Cs(vED);var jN7=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Au);Cs(jN7);var tIl=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Au);
Cs(tIl);var R57=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Au);Cs(R57);var b1u=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Au);Cs(b1u);var JBl=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Au);Cs(JBl);var z58=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Au);Cs(z58);var BNu=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Au);Cs(BNu);var a28=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Au);Cs(a28);var nE6=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Au);Cs(nE6);var QNq=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Au);Cs(QNq);var EEy=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Au);Cs(EEy);var xvV=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Au);Cs(xvV);var TNq=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Au);Cs(TNq);var Uv8=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Au);Cs(Uv8);var ktV=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Au);Cs(ktV);var KKl=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Au);Cs(KKl);var sNy=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Au);Cs(sNy);var I2y=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Au);Cs(I2y);var cBS=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Au);Cs(cBS);var MIC=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Au);Cs(MIC);var FKq=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Au);Cs(FKq);var NN6=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Au);Cs(NN6);var l27=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Au);Cs(l27);var GtS=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Au);Cs(GtS);var pL7=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Au);Cs(pL7);vMI(tK(300,.5,0),tK(-240,.5,1));vMI(tK(-100,.75,.35),tK(80,1.5,.8));vMI(tK(260,.75,.35),tK(80,1.5,.8));tK();gc();p52(Au("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
p52(Au("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
p52(Au("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
p52(Au("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
YVv.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(Q,c){Q=+Q;c=+c;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(Q,c):this._context.moveTo(Q,c);break;case 1:this._point=2;default:this._context.lineTo(Q,c)}}};
(function(Q){function c(m){return new $gh(Q(m))}
c._curve=Q;return c})(function(Q){return new YVv(Q)});
$gh.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(Q,c){this._curve.point(c*Math.sin(Q),c*-Math.cos(Q))}};
uZe.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:oM9(this,this._t0,Csh(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(Q,c){var m=NaN;Q=+Q;c=+c;if(Q!==this._x1||c!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(Q,c):this._context.moveTo(Q,c);break;case 1:this._point=2;break;case 2:this._point=3;oM9(this,Csh(this,m=eoe(this,Q,c)),m);break;default:oM9(this,this._t0,m=eoe(this,Q,c))}this._x0=this._x1;this._x1=Q;this._y0=this._y1;this._y1=c;this._t0=m}}};
(function(Q){this._context=new Psm(Q)}.prototype=Object.create(uZe.prototype)).point=function(Q,c){uZe.prototype.point.call(this,c,Q)};
Psm.prototype={moveTo:function(Q,c){this._context.moveTo(c,Q)},
closePath:function(){this._context.closePath()},
lineTo:function(Q,c){this._context.lineTo(c,Q)},
bezierCurveTo:function(Q,c,m,wz,dz,oT){this._context.bezierCurveTo(c,Q,wz,m,oT,dz)}};
Tr.prototype={constructor:Tr,scale:function(Q){return Q===1?this:new Tr(this.k*Q,this.x,this.y)},
translate:function(Q,c){return Q===0&c===0?this:new Tr(this.k,this.x+this.k*Q,this.y+this.k*c)},
apply:function(Q){return[Q[0]*this.k+this.x,Q[1]*this.k+this.y]},
invert:function(Q){return[(Q[0]-this.x)/this.k,(Q[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Tr(1,0,0);WRN=P8;sM.svg=sM.svg;sM.xhtml=sM.xhtml;sM.xlink=sM.xlink;sM.xml=sM.xml;sM.xmlns=sM.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 KW2="hammer_"+(Math.random()*1E6|0),s52=function(){var q=document||document;if(!q[KW2]){var Z=function(){(function(w,r,Y,C){function d(v6,U2,c6){return setTimeout(R(v6,c6),U2)}
function O(v6,U2,c6){return Array.isArray(v6)?(H(v6,c6[U2],c6),!0):!1}
function H(v6,U2,c6){var oh;if(v6)if(v6.forEach)v6.forEach(U2,c6);else if(v6.length!==C){var Y8=0;for(oh=v6.length;Y8<oh;Y8++)U2.call(c6,v6[Y8],Y8,v6)}else for(Y8 in v6)v6.hasOwnProperty(Y8)&&U2.call(c6,v6[Y8],Y8,v6)}
function L(v6,U2,c6){for(var oh=Object.keys(U2),Y8=0,Yg=oh.length;Y8<Yg;Y8++)if(!c6||c6&&v6[oh[Y8]]===C)v6[oh[Y8]]=U2[oh[Y8]];return v6}
function S(v6,U2){return L(v6,U2,!0)}
function v(v6,U2,c6){U2=U2.prototype;var oh=v6.prototype=Object.create(U2);oh.constructor=v6;oh._super=U2;c6&&L(oh,c6)}
function R(v6,U2){return function(){return v6.apply(U2,arguments)}}
function B(v6,U2){return typeof v6=="function"?v6.apply(U2?U2[0]||C:C,U2):v6}
function n(v6,U2,c6){H(K(U2),function(oh){v6.addEventListener(oh,c6,!1)})}
function x(v6,U2,c6){H(K(U2),function(oh){v6.removeEventListener(oh,c6,!1)})}
function K(v6){return v6.trim().split(/\s+/g)}
function k(v6,U2,c6){if(v6.indexOf&&!c6)return v6.indexOf(U2);for(var oh=0,Y8=v6.length;oh<Y8;oh++)if(c6&&v6[oh][c6]==U2||!c6&&v6[oh]===U2)return oh;return-1}
function G(v6,U2,c6){for(var oh=[],Y8=[],Yg=0,dW=v6.length;Yg<dW;Yg++){var X7=U2?v6[Yg][U2]:v6[Yg];k(Y8,X7)<0&&oh.push(v6[Yg]);Y8[Yg]=X7}c6&&(oh=U2?oh.sort(function(tK,tI){return tK[U2]>tI[U2]}):oh.sort());
return oh}
function rz(v6,U2){for(var c6,oh=U2[0].toUpperCase()+U2.slice(1),Y8=0,Yg=Op.length;Y8<Yg;Y8++)if(c6=(c6=Op[Y8])?c6+oh:U2,c6 in v6)return c6;return C}
function f(v6,U2){var c6=this;this.manager=v6;this.callback=U2;this.element=v6.element;this.target=v6.options.inputTarget;this.domHandler=function(oh){B(v6.options.enable,[v6])&&c6.handler(oh)};
this.evEl&&n(this.element,this.evEl,this.domHandler);this.evTarget&&n(this.target,this.evTarget,this.domHandler);this.evWin&&n(w,this.evWin,this.domHandler)}
function eO(v6){var U2;xx?U2=W1:GX?U2=A2:P8?U2=f9:U2=Ze;return new U2(v6,g)}
function g(v6,U2,c6){var oh=c6.pointers.length,Y8=c6.changedPointers.length,Yg=U2&1&&oh-Y8===0;c6.isFirst=!!Yg;c6.isFinal=!!(U2&12&&oh-Y8===0);Yg&&(v6.session={});c6.eventType=U2;U2=v6.session;oh=c6.pointers;Y8=oh.length;U2.firstInput||(U2.firstInput=H6(c6));Y8>1&&!U2.firstMultiple?U2.firstMultiple=H6(c6):Y8===1&&(U2.firstMultiple=!1);Yg=U2.firstInput;var dW=(Y8=U2.firstMultiple)?Y8.center:Yg.center,X7=c6.center=nX(oh);c6.timeStamp=Iq();c6.deltaTime=c6.timeStamp-Yg.timeStamp;c6.angle=Te(dW,X7);c6.distance=
SO(dW,X7);Yg=c6.center;dW=U2.offsetDelta||{};X7=U2.prevDelta||{};var tK=U2.prevInput||{};if(c6.eventType===1||tK.eventType===4)X7=U2.prevDelta={x:tK.deltaX||0,y:tK.deltaY||0},dW=U2.offsetDelta={x:Yg.x,y:Yg.y};c6.deltaX=X7.x+(Yg.x-dW.x);c6.deltaY=X7.y+(Yg.y-dW.y);c6.offsetDirection=Qj(c6.deltaX,c6.deltaY);Y8?(Yg=Y8.pointers,Yg=SO(oh[0],oh[1],gc)/SO(Yg[0],Yg[1],gc)):Yg=1;c6.scale=Yg;Y8?(Y8=Y8.pointers,oh=Te(oh[1],oh[0],gc)-Te(Y8[1],Y8[0],gc)):oh=0;c6.rotation=oh;dW=U2.lastInterval||c6;oh=c6.timeStamp-
dW.timeStamp;c6.eventType!=8&&(oh>25||dW.velocity===C)?(Yg=dW.deltaX-c6.deltaX,dW=dW.deltaY-c6.deltaY,X7=Yg/oh||0,tK=dW/oh||0,oh=X7,Y8=tK,X7=TJ(X7)>TJ(tK)?X7:tK,Yg=Qj(Yg,dW),U2.lastInterval=c6):(X7=dW.velocity,oh=dW.velocityX,Y8=dW.velocityY,Yg=dW.direction);c6.velocity=X7;c6.velocityX=oh;c6.velocityY=Y8;c6.direction=Yg;U2=v6.element;a:{for(oh=c6.srcEvent.target;oh;){if(oh==U2){oh=!0;break a}oh=oh.parentNode}oh=!1}oh&&(U2=c6.srcEvent.target);c6.target=U2;v6.emit("hammer.input",c6);v6.recognize(c6);
v6.session.prevInput=c6}
function H6(v6){for(var U2=[],c6=0;c6<v6.pointers.length;c6++)U2[c6]={clientX:wr(v6.pointers[c6].clientX),clientY:wr(v6.pointers[c6].clientY)};return{timeStamp:Iq(),pointers:U2,center:nX(U2),deltaX:v6.deltaX,deltaY:v6.deltaY}}
function nX(v6){var U2=v6.length;if(U2===1)return{x:wr(v6[0].clientX),y:wr(v6[0].clientY)};for(var c6=0,oh=0,Y8=0;Y8<U2;Y8++)c6+=v6[Y8].clientX,oh+=v6[Y8].clientY;return{x:wr(c6/U2),y:wr(oh/U2)}}
function Qj(v6,U2){return v6===U2?1:TJ(v6)>=TJ(U2)?v6>0?2:4:U2>0?8:16}
function SO(v6,U2,c6){c6||(c6=Jj);var oh=U2[c6[0]]-v6[c6[0]];v6=U2[c6[1]]-v6[c6[1]];return Math.sqrt(oh*oh+v6*v6)}
function Te(v6,U2,c6){c6||(c6=Jj);return Math.atan2(U2[c6[1]]-v6[c6[1]],U2[c6[0]]-v6[c6[0]])*180/Math.PI}
function Ze(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;f.apply(this,arguments)}
function W1(){this.evEl=Fy;this.evWin=BN;f.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function A2(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};f.apply(this,arguments)}
function f9(){f.apply(this,arguments);var v6=R(this.handler,this);this.touch=new A2(this.manager,v6);this.mouse=new Ze(this.manager,v6)}
function Dl(v6,U2){this.manager=v6;this.set(U2)}
function $g(v6){if(v6.indexOf("none")>-1)return"none";var U2=v6.indexOf("pan-x")>-1,c6=v6.indexOf("pan-y")>-1;return U2&&c6?"pan-x pan-y":U2||c6?U2?"pan-x":"pan-y":v6.indexOf("manipulation")>-1?"manipulation":"auto"}
function De(v6){this.id=B8++;this.manager=null;this.options=S(v6||{},this.defaults);v6=this.options.enable;this.options.enable=v6===C?!0:v6;this.state=1;this.simultaneous={};this.requireFail=[]}
function n9(v6){return v6==16?"down":v6==8?"up":v6==2?"left":v6==4?"right":""}
function Rh(v6,U2){return(U2=U2.manager)?U2.get(v6):v6}
function xg(){De.apply(this,arguments)}
function ZF(){xg.apply(this,arguments);this.pY=this.pX=null}
function mm(){xg.apply(this,arguments)}
function CX(){De.apply(this,arguments);this._input=this._timer=null}
function rb(){xg.apply(this,arguments)}
function mv(){xg.apply(this,arguments)}
function lC(){De.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function L9(v6,U2){U2=U2||{};var c6=U2.recognizers;U2.recognizers=c6===C?L9.defaults.preset:c6;return new ah(v6,U2)}
function ah(v6,U2){U2=U2||{};this.options=S(U2,L9.defaults);this.options.inputTarget=this.options.inputTarget||v6;this.handlers={};this.session={};this.recognizers=[];this.element=v6;this.input=eO(this);this.touchAction=new Dl(this,this.options.touchAction);gz(this,!0);H(U2.recognizers,function(c6){var oh=this.add(new c6[0](c6[1]));c6[2]&&oh.recognizeWith(c6[2]);c6[3]&&oh.requireFailure(c6[2])},this)}
function gz(v6,U2){var c6=v6.element;H(v6.options.cssProps,function(oh,Y8){c6.style[rz(c6.style,Y8)]=U2?oh:""})}
function lN(v6,U2){var c6=r.createEvent("Event");c6.initEvent(v6,!0,!0);c6.gesture=U2;U2.target.dispatchEvent(c6)}
var Op=" webkit moz MS ms o".split(" "),hK=r.createElement("div"),wr=Math.round,TJ=Math.abs,Iq=Date.now,B8=1,Ny=/mobile|tablet|ip(ad|hone|od)|android/i,P8="ontouchstart"in w,xx=rz(w,"PointerEvent")!==C,GX=P8&&Ny.test(navigator.userAgent),Jj=["x","y"],gc=["clientX","clientY"];f.prototype={handler:function(){},
destroy:function(){this.evEl&&x(this.element,this.evEl,this.domHandler);this.evTarget&&x(this.target,this.evTarget,this.domHandler);this.evWin&&x(w,this.evWin,this.domHandler)}};
var Jf={mousedown:1,mousemove:2,mouseup:4};v(Ze,f,{handler:function(v6){var U2=Jf[v6.type];U2&1&&v6.button===0&&(this.pressed=!0);U2&2&&v6.which!==1&&(U2=4);this.pressed&&this.allow&&(U2&4&&(this.pressed=!1),this.callback(this.manager,U2,{pointers:[v6],changedPointers:[v6],pointerType:"mouse",srcEvent:v6}))}});
var a9={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},hr={2:"touch",3:"pen",4:"mouse",5:"kinect"},Fy="pointerdown",BN="pointermove pointerup pointercancel";w.MSPointerEvent&&(Fy="MSPointerDown",BN="MSPointerMove MSPointerUp MSPointerCancel");v(W1,f,{handler:function(v6){var U2=this.store,c6=!1,oh=v6.type.toLowerCase().replace("ms","");oh=a9[oh];var Y8=hr[v6.pointerType]||v6.pointerType;oh&1&&(v6.button===0||Y8=="touch")?U2.push(v6):oh&12&&(c6=!0);var Yg=k(U2,v6.pointerId,"pointerId");
Yg<0||(U2[Yg]=v6,this.callback(this.manager,oh,{pointers:U2,changedPointers:[v6],pointerType:Y8,srcEvent:v6}),c6&&U2.splice(Yg,1))}});
var N4={touchstart:1,touchmove:2,touchend:4,touchcancel:8};v(A2,f,{handler:function(v6){var U2=N4[v6.type];var c6=Array.prototype.slice.call(v6.touches,0);var oh=this.targetIds;if(U2&3&&c6.length===1)oh[c6[0].identifier]=!0,oh=[c6,c6];else{var Y8,Yg=Array.prototype.slice.call(v6.targetTouches,0),dW=Array.prototype.slice.call(v6.changedTouches,0),X7=[];if(U2===1)for(c6=0,Y8=Yg.length;c6<Y8;c6++)oh[Yg[c6].identifier]=!0;c6=0;for(Y8=dW.length;c6<Y8;c6++)oh[dW[c6].identifier]&&X7.push(dW[c6]),U2&12&&
delete oh[dW[c6].identifier];oh=X7.length?[G(Yg.concat(X7),"identifier",!0),X7]:void 0}oh&&this.callback(this.manager,U2,{pointers:oh[0],changedPointers:oh[1],pointerType:"touch",srcEvent:v6})}});
v(f9,f,{handler:function(v6,U2,c6){var oh=c6.pointerType=="mouse";if(c6.pointerType=="touch")this.mouse.allow=!1;else if(oh&&!this.mouse.allow)return;U2&12&&(this.mouse.allow=!0);this.callback(v6,U2,c6)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var mT=rz(hK.style,"touchAction"),Go=mT!==C;Dl.prototype={set:function(v6){v6=="compute"&&(v6=this.compute());Go&&(this.manager.element.style[mT]=v6);this.actions=v6.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var v6=[];H(this.manager.recognizers,function(U2){B(U2.options.enable,[U2])&&(v6=v6.concat(U2.getTouchAction()))});
return $g(v6.join(" "))},
preventDefaults:function(v6){if(!Go){var U2=v6.srcEvent;v6=v6.offsetDirection;if(this.manager.session.prevented)U2.preventDefault();else{var c6=this.actions,oh=c6.indexOf("none")>-1,Y8=c6.indexOf("pan-y")>-1;c6=c6.indexOf("pan-x")>-1;if(oh||Y8&&c6||Y8&&v6&6||c6&&v6&24)return this.preventSrc(U2)}}},
preventSrc:function(v6){this.manager.session.prevented=!0;v6.preventDefault()}};
De.prototype={defaults:{},set:function(v6){L(this.options,v6);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(v6){if(O(v6,"recognizeWith",this))return this;var U2=this.simultaneous;v6=Rh(v6,this);U2[v6.id]||(U2[v6.id]=v6,v6.recognizeWith(this));return this},
dropRecognizeWith:function(v6){if(O(v6,"dropRecognizeWith",this))return this;v6=Rh(v6,this);delete this.simultaneous[v6.id];return this},
requireFailure:function(v6){if(O(v6,"requireFailure",this))return this;var U2=this.requireFail;v6=Rh(v6,this);k(U2,v6)===-1&&(U2.push(v6),v6.requireFailure(this));return this},
dropRequireFailure:function(v6){if(O(v6,"dropRequireFailure",this))return this;v6=Rh(v6,this);v6=k(this.requireFail,v6);v6>-1&&this.requireFail.splice(v6,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(v6){return!!this.simultaneous[v6.id]},
emit:function(v6){function U2(Y8){c6.manager.emit(c6.options.event+(Y8?oh&16?"cancel":oh&8?"end":oh&4?"move":oh&2?"start":"":""),v6)}
var c6=this,oh=this.state;oh<8&&U2(!0);U2();oh>=8&&U2(!0)},
tryEmit:function(v6){if(this.canEmit())return this.emit(v6);this.state=32},
canEmit:function(){for(var v6=0;v6<this.requireFail.length;v6++)if(!(this.requireFail[v6].state&33))return!1;return!0},
recognize:function(v6){v6=L({},v6);B(this.options.enable,[this,v6])?(this.state&56&&(this.state=1),this.state=this.process(v6),this.state&30&&this.tryEmit(v6)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
v(xg,De,{defaults:{pointers:1},attrTest:function(v6){var U2=this.options.pointers;return U2===0||v6.pointers.length===U2},
process:function(v6){var U2=this.state,c6=v6.eventType,oh=U2&6;v6=this.attrTest(v6);return oh&&(c6&8||!v6)?U2|16:oh||v6?c6&4?U2|8:U2&2?U2|4:2:32}});
v(ZF,xg,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var v6=this.options.direction;if(v6===30)return["none"];var U2=[];v6&6&&U2.push("pan-y");v6&24&&U2.push("pan-x");return U2},
directionTest:function(v6){var U2=this.options,c6=!0,oh=v6.distance,Y8=v6.direction,Yg=v6.deltaX,dW=v6.deltaY;Y8&U2.direction||(U2.direction&6?(Y8=Yg===0?1:Yg<0?2:4,c6=Yg!=this.pX,oh=Math.abs(v6.deltaX)):(Y8=dW===0?1:dW<0?8:16,c6=dW!=this.pY,oh=Math.abs(v6.deltaY)));v6.direction=Y8;return c6&&oh>U2.threshold&&Y8&U2.direction},
attrTest:function(v6){return xg.prototype.attrTest.call(this,v6)&&(this.state&2||!(this.state&2)&&this.directionTest(v6))},
emit:function(v6){this.pX=v6.deltaX;this.pY=v6.deltaY;var U2=n9(v6.direction);U2&&this.manager.emit(this.options.event+U2,v6);this._super.emit.call(this,v6)}});
v(mm,xg,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(v6){return this._super.attrTest.call(this,v6)&&(Math.abs(v6.scale-1)>this.options.threshold||this.state&2)},
emit:function(v6){this._super.emit.call(this,v6);v6.scale!==1&&this.manager.emit(this.options.event+(v6.scale<1?"in":"out"),v6)}});
v(CX,De,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(v6){var U2=this.options,c6=v6.pointers.length===U2.pointers,oh=v6.distance<U2.threshold,Y8=v6.deltaTime>U2.time;this._input=v6;if(!oh||!c6||v6.eventType&12&&!Y8)this.reset();else if(v6.eventType&1)this.reset(),this._timer=d(function(){this.state=8;this.tryEmit()},U2.time,this);
else if(v6.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(v6){this.state===8&&(v6&&v6.eventType&4?this.manager.emit(this.options.event+"up",v6):(this._input.timeStamp=Iq(),this.manager.emit(this.options.event,this._input)))}});
v(rb,xg,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(v6){return this._super.attrTest.call(this,v6)&&(Math.abs(v6.rotation)>this.options.threshold||this.state&2)}});
v(mv,xg,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return ZF.prototype.getTouchAction.call(this)},
attrTest:function(v6){var U2=this.options.direction;if(U2&30)var c6=v6.velocity;else U2&6?c6=v6.velocityX:U2&24&&(c6=v6.velocityY);return this._super.attrTest.call(this,v6)&&U2&v6.direction&&TJ(c6)>this.options.velocity&&v6.eventType&4},
emit:function(v6){var U2=n9(v6.direction);U2&&this.manager.emit(this.options.event+U2,v6);this.manager.emit(this.options.event,v6)}});
v(lC,De,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(v6){var U2=this.options,c6=v6.pointers.length===U2.pointers,oh=v6.distance<U2.threshold,Y8=v6.deltaTime<U2.time;this.reset();if(v6.eventType&1&&this.count===0)return this.failTimeout();if(oh&&Y8&&c6){if(v6.eventType!=4)return this.failTimeout();c6=this.pTime?v6.timeStamp-this.pTime<U2.interval:!0;oh=!this.pCenter||SO(this.pCenter,v6.center)<U2.posThreshold;this.pTime=v6.timeStamp;this.pCenter=v6.center;oh&&c6?this.count+=1:this.count=1;this._input=v6;if(this.count%U2.taps===0)return this.hasRequireFailures()?
(this._timer=d(function(){this.state=8;this.tryEmit()},U2.interval,this),2):8}return 32},
failTimeout:function(){this._timer=d(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))}});
L9.VERSION="2.0.2";L9.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[rb,{enable:!1}],[mm,{enable:!1},["rotate"]],[mv,{direction:6}],[ZF,{direction:6},["swipe"]],[lC],[lC,{event:"doubletap",taps:2},["tap"]],[CX]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};ah.prototype={set:function(v6){L(this.options,v6);return this},
stop:function(v6){this.session.stopped=v6?2:1},
recognize:function(v6){var U2=this.session;if(!U2.stopped){this.touchAction.preventDefaults(v6);var c6=this.recognizers,oh=U2.curRecognizer;if(!oh||oh&&oh.state&8)oh=U2.curRecognizer=null;for(var Y8=0,Yg=c6.length;Y8<Yg;Y8++){var dW=c6[Y8];U2.stopped===2||oh&&dW!=oh&&!dW.canRecognizeWith(oh)?dW.reset():dW.recognize(v6);!oh&&dW.state&14&&(oh=U2.curRecognizer=dW)}}},
get:function(v6){if(v6 instanceof De)return v6;for(var U2=this.recognizers,c6=0;c6<U2.length;c6++)if(U2[c6].options.event==v6)return U2[c6];return null},
add:function(v6){if(O(v6,"add",this))return this;var U2=this.get(v6.options.event);U2&&this.remove(U2);this.recognizers.push(v6);v6.manager=this;this.touchAction.update();return v6},
remove:function(v6){if(O(v6,"remove",this))return this;var U2=this.recognizers;v6=this.get(v6);U2.splice(k(U2,v6),1);this.touchAction.update();return this},
on:function(v6,U2){var c6=this.handlers;H(K(v6),function(oh){c6[oh]=c6[oh]||[];c6[oh].push(U2)});
return this},
off:function(v6,U2){var c6=this.handlers;H(K(v6),function(oh){U2?c6[oh].splice(k(c6[oh],U2),1):delete c6[oh]});
return this},
emit:function(v6,U2){this.options.domEvents&&lN(v6,U2);var c6=this.handlers[v6]&&this.handlers[v6].slice();if(c6&&c6.length){U2.type=v6;U2.preventDefault=function(){U2.srcEvent.preventDefault()};
v6=0;for(var oh=c6.length;v6<oh;v6++)c6[v6](U2)}},
destroy:function(){this.element&&gz(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
L(L9,{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:ah,Input:f,TouchAction:Dl,Recognizer:De,AttrRecognizer:xg,Tap:lC,Pan:ZF,Swipe:mv,Pinch:mm,Rotate:rb,Press:CX,on:n,off:x,each:H,merge:S,extend:L,inherit:v,bindFn:R,prefixed:rz});
w[Y]=L9})(window,document,"Hammer");
return window.Hammer}.call({});
Z.DOCUMENT=q;q[KW2]=Z}return q[KW2]};/*

 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 Iv7=function(q,Z){if(q.length!==Z.length)return!1;for(var w=0;w<q.length;++w)if(q[w]!==Z[w])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var cL7=_.P(["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"]),Mr7=cL7.next();!Mr7.done;Mr7=cL7.next()){var FW1=Mr7.value,NpD=document.createElement("link");NpD.rel="stylesheet";NpD.href=FW1;document.head.appendChild(NpD)};var XrT,A$j,DfI,lIe,mfI,G3T,F9O,NMO;XrT={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};A$j={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:"*"};DfI={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};lIe=/[a-z0-9*]/;mfI=/U\+/;G3T=/^arrow/;F9O=/^space(bar)?/;NMO=/^escape$/;_.Pt={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(q,Z){this._imperativeKeyBindings[q]=Z;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(q,Z){Z=y$j(Z);for(var w=0;w<Z.length;++w)if(fIX(Z[w],q))return!0;return!1},
_collectKeyBindings:function(){var q=this.behaviors.map(function(Z){return Z.keyBindings});
q.indexOf(this.keyBindings)===-1&&q.push(this.keyBindings);return q},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(w){for(var r in w)this._addKeyBinding(r,w[r])},this);
for(var q in this._imperativeKeyBindings)this._addKeyBinding(q,this._imperativeKeyBindings[q]);for(var Z in this._keyBindings)this._keyBindings[Z].sort(function(w,r){w=w[0].hasModifiers;return w===r[0].hasModifiers?0:w?-1:1})},
_addKeyBinding:function(q,Z){y$j(q).forEach(function(w){this._keyBindings[w.event]=this._keyBindings[w.event]||[];this._keyBindings[w.event].push([w,Z])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(q){var Z=this._onKeyBindingEvent.bind(this,this._keyBindings[q]);this._boundKeyHandlers.push([this.keyEventTarget,q,Z]);this.keyEventTarget.addEventListener(q,Z)},this)},
_unlistenKeyEventListeners:function(){for(var q,Z,w;this._boundKeyHandlers.length;)q=this._boundKeyHandlers.pop(),Z=q[0],w=q[1],q=q[2],Z.removeEventListener(w,q)},
_onKeyBindingEvent:function(q,Z){this.stopKeyboardEventPropagation&&Z.stopPropagation();if(!Z.defaultPrevented)for(var w=0;w<q.length;w++){var r=q[w][0],Y=q[w][1];if(fIX(r,Z)&&(this._triggerKeyHandler(r,Y,Z),Z.defaultPrevented))break}},
_triggerKeyHandler:function(q,Z,w){var r=Object.create(q);r.keyboardEvent=w;q=new CustomEvent(q.event,{detail:r,cancelable:!0});this[Z].call(this,q);q.defaultPrevented&&w.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
*/
_.$l({is:"iron-a11y-keys",_template:null,behaviors:[_.Pt],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(q){this.keyEventTarget=q},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(q){this.fire("keys-pressed",q.detail,{})}});_.dl={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(q){this._setFocused(q.type==="focus")},
_disabledChanged:function(q){this.setAttribute("aria-disabled",q?"true":"false");this.style.pointerEvents=q?"none":"";q?(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 Vp={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(q){this._detectKeyboardFocus(q);q||this._setPressed(!1)},
_detectKeyboardFocus:function(q){this._setReceivedFocusFromKeyboard(!this.pointerDown&&q)},
_userActivate:function(q){this.active!==q&&(this.active=q,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(q){q=q.detail.keyboardEvent;var Z=_.os(q).localTarget;this.isLightDescendant(Z)||(q.preventDefault(),q.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(q){q=_.os(q.detail.keyboardEvent).localTarget;this.isLightDescendant(q)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(q,Z){Z&&Z!=q&&this.hasAttribute(Z)&&this.removeAttribute(Z)},
_activeChanged:function(q){this.toggles?this.setAttribute(this.ariaActiveAttribute,q?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},lvp=[_.Pt,
Vp];_.OZ={IronButtonState:lvp,IronButtonStateImpl:Vp};_.Ht={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.Wt=function(q){_.Wt[" "](q);this.type=q&&q.type||"default";this.key=q&&q.key;q&&"value"in q&&(this.value=q.value)};
_.Wt.prototype.byKey=function(q){this.key=q;return this.value};
_.My.Object.defineProperties(_.Wt.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var q=this.type,Z=this.key;if(q&&Z)return oD[q]&&oD[q][Z]},
set:function(q){var Z=this.type,w=this.key;Z&&w&&(Z=oD[Z]=oD[Z]||{},q==null?delete Z[w]:Z[w]=q)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var q=oD[this.type];return q?Object.keys(q).map(function(Z){return oD[this.type][Z]},this):[]}}});
_.Wt[" "]=function(){};
var oD={};_.$l({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(q,Z,w){q=new _.Wt({type:q,key:Z});w!==void 0&&w!==q.value?q.value=w:this.value!==q.value&&(this.value=q.value);return q},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(q){q&&(this.value=this)},
byKey:function(q){return(new _.Wt({type:this.type,key:q})).value}});var Gd1;Gd1=null;_.uJ={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){Gd1=new _.Wt({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return Gd1&&Gd1.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(q){this.invalid=q===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(q);return!this.invalid},
_getValidity:function(q){return this.hasValidator()?this._validator.validate(q):!0}};var px7={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"}},Xx9=[_.Ht,
_.uJ,px7];_.$l({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 _.Wt({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(q){return this.name+":"+q},this)},
applyIcon:function(q,Z){this.removeIcon(q);if(Z=this._cloneIcon(Z,this.rtlMirroring&&this._targetIsRTL(q))){var w=_.os(q.root||q);w.insertBefore(Z,w.childNodes[0]);return q._svgIcon=Z}return null},
removeIcon:function(q){q._svgIcon&&(_.os(q.root||q).removeChild(q._svgIcon),q._svgIcon=null)},
_targetIsRTL:function(q){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(q&&q.nodeType!==Node.ELEMENT_NODE&&(q=q.host),this.__targetIsRTL=q&&window.getComputedStyle(q).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 q=Object.create(null);_.os(this).querySelectorAll("[id]").forEach(function(Z){q[Z.id]=Z});
return q},
_cloneIcon:function(q,Z){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[q],this.size,Z)},
_prepareSvgClone:function(q,Z,w){if(q){q=q.cloneNode(!0);var r=document.createElementNS("http://www.w3.org/2000/svg","svg");Z=q.getAttribute("viewBox")||"0 0 "+Z+" "+Z;var Y="pointer-events: none; display: block; width: 100%; height: 100%;";w&&q.hasAttribute("mirror-in-rtl")&&(Y+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");r.setAttribute("viewBox",Z);r.setAttribute("preserveAspectRatio","xMidYMid meet");r.setAttribute("focusable","false");r.style&&(r.style.cssText=
Y);r.appendChild(q).removeAttribute("id");return r}return null}});var mAv=function(q){this.multi=!1;this.selection=[];this.selectCallback=q};
_.e=mAv.prototype;_.e.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.e.clear=function(q){this.selection.slice().forEach(function(Z){(!q||q.indexOf(Z)<0)&&this.setItemSelected(Z,!1)},this)};
_.e.isSelected=function(q){return this.selection.indexOf(q)>=0};
_.e.setItemSelected=function(q,Z){if(q!=null&&Z!==this.isSelected(q)){if(Z)this.selection.push(q);else{var w=this.selection.indexOf(q);w>=0&&this.selection.splice(w,1)}this.selectCallback&&this.selectCallback(q,Z)}};
_.e.select=function(q){this.multi?this.toggle(q):this.get()!==q&&(this.setItemSelected(this.get(),!1),this.setItemSelected(q,!0))};
_.e.toggle=function(q){this.setItemSelected(q,!this.isSelected(q))};_.tJ={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 mAv(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.os(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(q){return this.items?this.items.indexOf(q):-1},
select:function(q){this.selected=q},
selectPrevious:function(){var q=this.items.length,Z=q-1;this.selected!==void 0&&(Z=(Number(this._valueToIndex(this.selected))-1+q)%q);this.selected=this._indexToValue(Z)},
selectNext:function(){var q=0;this.selected!==void 0&&(q=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(q)},
selectIndex:function(q){this.select(this._indexToValue(q))},
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(q){this.listen(this,q,"_activateHandler")},
_removeListener:function(q){this.unlisten(this,q,"_activateHandler")},
_activateEventChanged:function(q,Z){this._removeListener(Z);this._addListener(q)},
_updateItems:function(){var q=_.os(this).queryDistributedElements(this.selectable||"*");q=Array.prototype.filter.call(q,this._bindFilterItem);this._setItems(q)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var q=this._valueToItem(this.selected);q?this._selection.select(q):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(q){return!this._excludedLocalNames[q.localName]},
_valueToItem:function(q){return q==null?null:this.items[this._valueToIndex(q)]},
_valueToIndex:function(q){if(this.attrForSelected)for(var Z=0,w;w=this.items[Z];Z++){if(this._valueForItem(w)==q)return Z}else return Number(q)},
_indexToValue:function(q){if(this.attrForSelected){if(q=this.items[q])return this._valueForItem(q)}else return q},
_valueForItem:function(q){if(!q)return null;if(!this.attrForSelected)return q=this.indexOf(q),q===-1?null:q;var Z=q[hY(this.attrForSelected)];return Z!=void 0?Z:q.getAttribute(this.attrForSelected)},
_applySelection:function(q,Z){this.selectedClass&&this.toggleClass(this.selectedClass,Z,q);this.selectedAttribute&&this.toggleAttribute.call(q,this.selectedAttribute,Z);this._selectionChange();this.fire("iron-"+(Z?"select":"deselect"),{item:q})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(q){return _.os(q).observeNodes(function(Z){this._updateItems();this._updateSelected();this.fire("iron-items-changed",Z,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(q){q=q.target;for(var Z=this.items;q&&q!=this;){var w=Z.indexOf(q);if(w>=0){Z=this._indexToValue(w);this._itemActivate(Z,q);break}q=q.parentNode}},
_itemActivate:function(q,Z){this.fire("iron-activate",{selected:q,item:Z},{cancelable:!0}).defaultPrevented||this.select(q)}};var ALh={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(q){this.multi?this._toggleSelected(q):this.selected=q},
multiChanged:function(q){this._selection.multi=q;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(q){return this._indexToValue(this.indexOf(q))},this).filter(function(q){return q!=null},this)):_.tJ._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(q){q=q||[];q=(this._valuesToItems(q)||[]).filter(function(w){return w!==null&&w!==void 0});
this._selection.clear(q);for(var Z=0;Z<q.length;Z++)this._selection.setItemSelected(q[Z],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var q=this._selection.get();this.multi?(this._setSelectedItems(q),this._setSelectedItem(q.length?q[0]:null)):q!==null&&q!==void 0?(this._setSelectedItems([q]),this._setSelectedItem(q)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(q){var Z=this.selectedValues.indexOf(q);Z<0?this.push("selectedValues",q):this.splice("selectedValues",Z,1)},
_valuesToItems:function(q){return q==null?null:q.map(function(Z){return this._valueToItem(Z)},this)}},fvK=[_.tJ,
ALh];var DAe;
_.Lk={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(q){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var Z=this._valueToItem(q);Z&&Z.hasAttribute("disabled")||(this._setFocusedItem(Z),ALh.select.apply(this,arguments))},
_resetTabindices:function(){var q=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(Z){Z.setAttribute("tabindex",Z===q?"0":"-1");Z.setAttribute("aria-selected",this._selection.isSelected(Z))},this)},
_updateMultiselectable:function(q){q?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(q){if(this._MODIFIER_KEYS.indexOf(q.key)===-1){this.cancelDebouncer("_clearSearchText");var Z=this._searchText||"";Z+=(q.key&&q.key.length==1?q.key:String.fromCharCode(q.keyCode)).toLocaleLowerCase();q=Z.length;for(var w=0,r;r=this.items[w];w++)if(!r.hasAttribute("disabled")){var Y=this.attrForItemTitle||"textContent";Y=(r[Y]||r.getAttribute(Y)||"").trim();if(!(Y.length<q)&&Y.slice(0,q).toLocaleLowerCase()==Z){this._setFocusedItem(r);break}}this._searchText=Z;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var q=this.items.length,Z=Number(this.indexOf(this.focusedItem)),w=1;w<q+1;w++){var r=this.items[(Z-w+q)%q];if(!r.hasAttribute("disabled")){var Y=_.os(r).getOwnerRoot()||document;this._setFocusedItem(r);if(_.os(Y).activeElement==r)break}}},
_focusNext:function(){for(var q=this.items.length,Z=Number(this.indexOf(this.focusedItem)),w=1;w<q+1;w++){var r=this.items[(Z+w)%q];if(!r.hasAttribute("disabled")){var Y=_.os(r).getOwnerRoot()||document;this._setFocusedItem(r);if(_.os(Y).activeElement==r)break}}},
_applySelection:function(q,Z){Z?q.setAttribute("aria-selected","true"):q.setAttribute("aria-selected","false");_.tJ._applySelection.apply(this,arguments)},
_focusedItemChanged:function(q,Z){Z&&Z.setAttribute("tabindex","-1");!q||q.hasAttribute("disabled")||this.disabled||(q.setAttribute("tabindex","0"),q.focus())},
_onIronItemsChanged:function(q){q.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var q=this.getAttribute("tabindex");_.Lk._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",q);_.Lk._shiftTabPressed=!1},1)},
_onFocus:function(q){!_.Lk._shiftTabPressed&&(q=_.os(q).rootTarget,q===this||typeof q.tabIndex==="undefined"||this.isLightDescendant(q))&&(this._defaultFocusAsync=this.async(function(){var Z=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);Z?this._setFocusedItem(Z):this.items[0]&&this._focusNext()}))},
_onUpKey:function(q){this._focusPrevious();q.detail.keyboardEvent.preventDefault()},
_onDownKey:function(q){this._focusNext();q.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var q=this.focusedItem;q&&q.blur()},
_onKeydown:function(q){this.keyboardEventMatchesKeys(q,"up down esc")||this._focusWithKeyboardEvent(q);q.stopPropagation()},
_activateHandler:function(q){_.tJ._activateHandler.call(this,q);q.stopPropagation()},
_disabledChanged:function(q){q?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};DAe=[fvK,_.Pt,_.Lk];_.hY1={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(q){this.focusedItem&&(this.focusedItem.click(),q.detail.keyboardEvent.preventDefault())},
_onDownKey:function(q){this.focusedItem&&(this.focusedItem.click(),q.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(q){return q.ctrlKey||q.shiftKey||q.altKey||q.metaKey},
_onLeftKey:function(q){this._isSpecialKey(q.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),q.detail.keyboardEvent.preventDefault())},
_onRightKey:function(q){this._isSpecialKey(q.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),q.detail.keyboardEvent.preventDefault())},
_onKeydown:function(q){this.keyboardEventMatchesKeys(q,"up down left right esc")||this._focusWithKeyboardEvent(q)}};
_.yLe=[DAe,_.hY1];var iVg;iVg=new Set;_.SQ={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):(iVg.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(q){this.resizerShouldNotify(q)&&this._notifyDescendant(q)},this),this._fireResize())},
assignParentResizable:function(q){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=q)&&q._interestedResizables.indexOf(this)===-1&&(q._interestedResizables.push(this),q._subscribeIronResize(this))},
stopResizeNotificationsFor:function(q){var Z=this._interestedResizables.indexOf(q);Z>-1&&(this._interestedResizables.splice(Z,1),this._unsubscribeIronResize(q))},
_subscribeIronResize:function(q){q.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(q){q.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(q){this._notifyingDescendant?q.stopPropagation():B0||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(q){var Z=_.os(q).rootTarget;Z!==this&&(Z.assignParentResizable(this),this._notifyDescendant(Z),q.stopPropagation())},
_parentResizableChanged:function(q){q&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(q){this.isAttached&&(this._notifyingDescendant=!0,q.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var q=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function w(){document.removeEventListener("readystatechange",w);q()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(Z){Z!==this&&Z._findParent()},this):(iVg.forEach(function(Z){Z!==this&&Z._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?iVg.delete(this):iVg.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
*/
_.gL1={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(q,Z){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);Z&&(q==="document"?this.scrollTarget=this._doc:typeof q==="string"?this.scrollTarget=(Z=this.domHost)&&Z.$?Z.$[q]:_.os(this.ownerDocument).querySelector("#"+q):this._isValidScrollTarget()&&(this._oldScrollTarget=q,this._toggleScrollListener(this._shouldHaveListener,q)))},
_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(q){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,q):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
q)},set _scrollLeft(q){this.scrollTarget===this._doc?window.scrollTo(q,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=q)},scroll:function(q,Z){if(typeof q==="object"){var w=q.left;Z=q.top}else w=q;w=w||0;Z=Z||0;this.scrollTarget===this._doc?window.scrollTo(w,Z):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=w,this.scrollTarget.scrollTop=Z)},
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(q,Z){Z=Z===this._doc?window:Z;q?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),Z.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(Z.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(q){this._shouldHaveListener=q;this._toggleScrollListener(q,this.scrollTarget)}};_.$l({is:"iron-selector",_template:null,behaviors:[fvK]});var vt={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(q){if(q.timing)for(var Z in q.timing)this.animationTiming[Z]=q.timing[Z];return this.animationTiming},
setPrefixedProperty:function(q,Z,w){for(var r={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[Z],Y,C=0;Y=r[C];C++)q.style[Y]=w;q.style[Z]=w},
complete:function(){}};_.$l({is:"fade-in-animation",_template:null,behaviors:[vt],configure:function(q){return this._effect=new KeyframeEffect(q.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(q))}});_.$l({is:"fade-out-animation",_template:null,behaviors:[vt],configure:function(q){return this._effect=new KeyframeEffect(q.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(q))}});var qz7=[{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(q,Z){for(var w in Z)q[w]=Z[w]},
_cloneConfig:function(q){var Z={isClone:!0};this._copyProperties(Z,q);return Z},
_getAnimationConfigRecursive:function(q,Z,w){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 r=q?this.animationConfig[q]:this.animationConfig;Array.isArray(r)||(r=[r]);if(r)for(var Y,C=0;Y=r[C];C++)if(Y.animatable)Y.animatable._getAnimationConfigRecursive(Y.type||q,Z,w);else if(Y.id){var d=Z[Y.id];
d?(d.isClone||(Z[Y.id]=this._cloneConfig(d),d=Z[Y.id]),this._copyProperties(d,Y)):Z[Y.id]=Y}else w.push(Y)}},
getAnimationConfig:function(q){var Z={},w=[];this._getAnimationConfigRecursive(q,Z,w);for(var r in Z)w.push(Z[r]);return w}},
{_configureAnimations:function(q){var Z=[],w=[];if(q.length>0)for(var r,Y=0;r=q[Y];Y++){var C=document.createElement(r.name);if(C.isNeonAnimation){var d=null;C.configure||(C.configure=function(){return null});
d=C.configure(r);w.push({result:d,config:r})}else console.warn(this.is+":",r.name,"not found!")}for(q=0;q<w.length;q++){d=w[q].result;r=w[q].config;try{typeof d.cancel!="function"&&(d=document.timeline.play(d))}catch(O){d=null,console.warn("Couldnt play","(",r.name,").",O)}d&&Z.push({neonAnimation:C,config:r,animation:d})}return Z},
_shouldComplete:function(q){for(var Z=!0,w=0;w<q.length;w++)if(q[w].animation.playState!="finished"){Z=!1;break}return Z},
_complete:function(q){for(var Z=0;Z<q.length;Z++)q[Z].neonAnimation.complete(q[Z].config);for(Z=0;Z<q.length;Z++)q[Z].animation.cancel()},
playAnimation:function(q,Z){var w=this.getAnimationConfig(q);if(w){this._active=this._active||{};this._active[q]&&(this._complete(this._active[q]),delete this._active[q]);var r=this._configureAnimations(w);if(r.length==0)this.fire("neon-animation-finish",Z,{bubbles:!1});else for(this._active[q]=r,w=0;w<r.length;w++)r[w].animation.onfinish=function(){this._shouldComplete(r)&&(this._complete(r),delete this._active[q],this.fire("neon-animation-finish",Z,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var q in this._active){var Z=this._active[q],w;for(w in Z)Z[w].animation&&Z[w].animation.cancel&&Z[w].animation.cancel()}this._active={}}}];var r0=function(q,Z){q=Error.call(this,q);this.message=q.message;"stack"in q&&(this.stack=q.stack);this.arg=Z;this.name=this.constructor.name;this.constructor=r0;this.__proto__=r0.prototype};
_.z(r0,Error);var ZPD=si(function(q){var Z=function(){return q.apply(this,arguments)||this};
_.z(Z,q);Z.prototype._marshalArgs=function(w,r,Y){r=q.prototype._marshalArgs.call(this,w,r,Y);if(this._legacyUndefinedCheck&&r.length>1)for(Y=0;Y<r.length;Y++)if(r[Y]===void 0||w[Y].wildcard&&r[Y].base===void 0)throw w=w[Y].name,new r0("Argument '"+w+"' is undefined.",w);return r};
Z.prototype._addPropertyEffect=function(w,r,Y){return q.prototype._addPropertyEffect.call(this,w,r,iIX(Y,Y&&Y.info&&Y.info.methodName))};
Z._addTemplatePropertyEffect=function(w,r,Y){return q._addTemplatePropertyEffect.call(this,w,r,iIX(Y))};
return Z}),wQW=_.$l.Class;
_.$l.Class=function(q,Z){return wQW(q,function(w){return Z?Z(ZPD(w)):ZPD(w)})};
var rQ2=si(function(q){var Z=ZPD(q);q=function(){return Z.apply(this,arguments)||this};
_.z(q,Z);_.My.Object.defineProperties(q.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return q}),Yz7=ny.mixin;
ny.mixin=Yz7?function(q){return rQ2(Yz7(q))}:rQ2;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.jQ=_.OZ.IronButtonState;var vhe=zl;/*

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 ek9;_.$lD="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");ek9=function(){var q=[],Z;var w=w||_.$lD.length;for(Z=0;Z<8;Z++)q[Z]=_.$lD[0|Math.random()*w];return q.join("")};var wDj=function(){return Math.random().toString(36).substring(7).split("").join(".")},ZNO="@@redux/INIT"+wDj(),$C2="@@redux/REPLACE"+wDj();var eUO=typeof Symbol==="function"&&Symbol.observable||"@@observable";var C2e=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var P29="top right bottom left width height size weight".split(" "),dl1=typeof MutationObserver!=="undefined",Vep=C2e&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,OPg=function(){this.mutationEventsAdded_=this.JSC$9518_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=CQT(this.refresh.bind(this))},HPJ=function(q,
Z){var w=q.observers_;
Z=w.indexOf(Z);~Z&&w.splice(Z,1);!w.length&&q.JSC$9518_connected_&&C2e&&q.JSC$9518_connected_&&(document.removeEventListener("transitionend",q.onTransitionEnd_),window.removeEventListener("resize",q.refresh),q.mutationsObserver_&&(q.mutationsObserver_.disconnect(),Vep&&(HTMLElement.prototype.attachShadow=Vep)),q.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",q.refresh),q.mutationsObserver_=null,q.mutationEventsAdded_=!1,q.JSC$9518_connected_=!1)};
OPg.prototype.refresh=function(){WBD(this)&&this.refresh()};
var WBD=function(q){q=q.observers_.filter(function(Z){return o_7(Z),Z.activeObservations_.length>0});
q.forEach(function(Z){return ua2(Z)});
return q.length>0},LB2=function(q){if(C2e&&!q.JSC$9518_connected_){document.addEventListener("transitionend",q.onTransitionEnd_);
window.addEventListener("resize",q.refresh);if(dl1){q.mutationsObserver_=new MutationObserver(q.refresh);var Z={attributes:!0,childList:!0,characterData:!0,subtree:!0};q.mutationsObserver_.observe(document,Z);Vep&&(function Y(r){var C=r.shadowRoot;C&&(q.mutationsObserver_.observe(C,Z),Y(C));for(r=r.firstElementChild;r;)Y(r),r=r.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var r=Vep.apply(this,_.Ta.apply(0,arguments));
q.mutationsObserver_.observe(r,Z);return r})}else document.addEventListener("DOMSubtreeModified",q.refresh),q.mutationEventsAdded_=!0;
q.JSC$9518_connected_=!0}};
OPg.prototype.onTransitionEnd_=function(q){var Z=q.propertyName===void 0?"":q.propertyName;P29.some(function(w){return!!~Z.indexOf(w)})&&this.refresh()};
var Szm=null;var v_e=function(q,Z){for(var w=_.P(Object.keys(Z)),r=w.next();!r.done;r=w.next())r=r.value,Object.defineProperty(q,r,{value:Z[r],enumerable:!1,writable:!1,configurable:!0})};var t4=function(q){var Z;return(q==null?void 0:(Z=q.ownerDocument)==null?void 0:Z.defaultView)||globalThis};var jg7={x:0,y:0,width:0,height:0},te1=typeof SVGGraphicsElement!=="undefined"?function(q){return q instanceof t4(q).SVGGraphicsElement}:function(q){return q instanceof t4(q).SVGElement&&typeof q.getBBox==="function"};var Rk1=function(q){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=q};
Rk1.prototype.isActive=function(){var q=this.target;if(C2e)if(te1(q)){var Z=q.getBBox();Z={x:0,y:0,width:Z.width,height:Z.height}}else{var w=q.clientWidth,r=q.clientHeight;if(w||r){var Y=t4(q).getComputedStyle(q);Z=$Q(Y["padding-top"]);var C=$Q(Y["padding-left"]),d=C+$Q(Y["padding-right"]),O=Z+$Q(Y["padding-bottom"]),H=$Q(Y.width),L=$Q(Y.height);Y.boxSizing==="border-box"&&(Math.round(H+d)!==w&&(H-=PQz(Y,"left","right")+d),Math.round(L+O)!==r&&(L-=PQz(Y,"top","bottom")+O));q!==t4(q).document.documentElement&&
(q=Math.round(H+d)-w,r=Math.round(L+O)-r,Math.abs(q)!==1&&(H-=q),Math.abs(r)!==1&&(L-=r));Z={x:C,y:Z,width:H,height:L}}else Z=jg7}else Z=jg7;this.contentRect_=Z;return Z.width!==this.broadcastWidth||Z.height!==this.broadcastHeight};var bPv=function(q,Z){var w=Z.x;var r=Z.y;var Y=Z.width;Z=Z.height;var C=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);v_e(C,{x:w,y:r,width:Y,height:Z,top:r,right:w+Y,bottom:Z+r,left:w});v_e(this,{target:q,contentRect:C})};var JQe=function(q,Z){var w=Szm;this.activeObservations_=[];this.observations_=new Map;if(typeof q!=="function")throw new TypeError("Qe");this.callback_=q;this.controller_=w;this.callbackCtx_=Z};
JQe.prototype.observe=function(q){if(q===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(q instanceof t4(q).Element))throw new TypeError("Se");var Z=this.observations_;Z.has(q)||(Z.set(q,new Rk1(q)),q=this.controller_,~q.observers_.indexOf(this)||q.observers_.push(this),q.JSC$9518_connected_||LB2(q),this.controller_.refresh())}};
JQe.prototype.unobserve=function(q){if(q===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(q instanceof t4(q).Element))throw new TypeError("Se");var Z=this.observations_;Z.has(q)&&(Z.delete(q),Z.size||HPJ(this.controller_,this))}};
JQe.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();HPJ(this.controller_,this)};
var o_7=function(q){q.activeObservations_.splice(0);q.observations_.forEach(function(Z){Z.isActive()&&q.activeObservations_.push(Z)})},ua2=function(q){if(q.activeObservations_.length>0){var Z=q.callbackCtx_,w=q.activeObservations_.map(function(r){var Y=r.target,C=r.contentRect_;
r.broadcastWidth=C.width;r.broadcastHeight=C.height;return new bPv(Y,C)});
q.callback_.call(Z,w,Z);q.activeObservations_.splice(0)}};var RD=function(q){if(!(this instanceof RD))throw new TypeError("Te");if(!arguments.length)throw new TypeError("Re");Szm||(Szm=new OPg);this.observer_=new JQe(q,this)};
RD.prototype.observe=function(q){this.observer_.observe(q)};
RD.prototype.unobserve=function(q){this.observer_.unobserve(q)};
RD.prototype.disconnect=function(){this.observer_.disconnect()};var HQ2=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:RD;var Lxj="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(" "),uij={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},o2j=null,dCT=null;var STz={},v2T=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 B_T={text:1},RU2={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var zk2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Bng={CONSTANT:{isUnwrappable:function(q){return q instanceof zF},
unwrap:YXm},JAVASCRIPT:{isUnwrappable:function(q){return q instanceof _.Ga},
unwrap:fFj},HTML:{isUnwrappable:function(q){return q instanceof sX},
unwrap:function(q){return c8(q)}},
RESOURCE_URL:{isUnwrappable:function(q){return q instanceof W8},
unwrap:_.ug},STRING:{isUnwrappable:function(q){return q instanceof Object},
unwrap:function(q){return String(q)}},
STYLE:{isUnwrappable:function(q){return typeof q==="string"},
unwrap:function(q){return q}},
URL:{isUnwrappable:function(q){return R9(q)},
unwrap:_.bg}},aQv={CONSTANT:aS8,JAVASCRIPT:aS8,HTML:function(q){q=q instanceof sX?q:I9(String(q).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return c8(q)},
RESOURCE_URL:aS8,STRING:String,STYLE:aS8,URL:function(q,Z){q=zk2.test(q)?q:void 0;return q===void 0?Z:q}};var cqN=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,n22=/[\t\n\f\r ]+/,E2O=/[\t\n\f\r ,]+/g,T_T=function(q,Z,w){return w},d0={},n_D=function(){var q=function(){var r={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",r):r}(),Z=q.createHTML(""),w=q.createScript("");
q=q.createScriptURL("");return{INNOCUOUS_STRING:Z,INNOCUOUS_SCRIPT:w,INNOCUOUS_URL:q}}(),Pk=n_D.INNOCUOUS_STRING,IS1=n_D.INNOCUOUS_SCRIPT,snT=n_D.INNOCUOUS_URL;var Qg7=function(q){var Z=M3N(q);return function(w,r,Y,C){return C?Z(C,r,Y,w):Pk}}({reportHandler:function(q,Z){if(q)try{throw Error(Z);
}catch(w){_.tY(w)}},
safeTypesBridge:function(q,Z,w){var r=Bng[Z];return r.isUnwrappable(q)&&(r=r.unwrap(q,w),r!==w)?r:(0,aQv[Z])(String(q),w)},
allowedIdentifierPrefixes:[""]});if(P0!==void 0)throw Error("Ue");P0=Qg7;if(P0!==Qg7)throw Error("Ve");VY("Injectable",[]);var OGN=VY("Inject",[["token",void 0]]),Wn2=VY("Optional",[]);VY("Injectable",[]);var oX9=VY("Self",[]),u$z=VY("SkipSelf",[]);VY("Host",[]);var E_2={},xlm=function(){};
xlm.prototype.resolve=function(){throw Error("Xe");};
xlm.prototype.addProvider=function(){throw Error("Xe");};var d11=Function;var Tn7=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,Ulh=function(){this._reflect=window.Reflect};
_.e=Ulh.prototype;_.e.factory=function(q){return function(){return new (Function.prototype.bind.apply(q,[null].concat(_.Ju(_.Ta.apply(0,arguments)))))}};
_.e._zipTypesAndAnnotations=function(q,Z){var w=typeof q==="undefined"?Array(Z.length):Array(q.length);for(var r=0;r<w.length;r++)w[r]=typeof q==="undefined"?[]:q[r]!=Object?[q[r]]:[],Z&&N_9(Z[r])&&(w[r]=w[r].concat(Z[r]));return w};
_.e._ownParameters=function(q,Z){if(Tn7.exec(q.toString()))return null;if(q.parameters&&q.parameters!==Z.parameters)return q.parameters;var w=q.ctorParameters;return w&&w!==Z.ctorParameters?(Z=typeof w==="function"?w():w,q=Z.map(function(r){return r&&r.type}),Z=Z.map(function(r){return r&&GMX(r.decorators)}),this._zipTypesAndAnnotations(q,Z)):N_9(this._reflect)&&N_9(this._reflect.getOwnMetadata)&&(Z=this._reflect.getOwnMetadata("parameters",q),(w=this._reflect.getOwnMetadata("design:paramtypes",q))||
Z)?this._zipTypesAndAnnotations(w,Z):Array(q.length).fill(void 0)};
_.e.parameters=function(q){if(!q.prototype)return[];var Z=Object.getPrototypeOf(q.prototype).constructor;(q=this._ownParameters(q,Z))||Z===Object||(q=this.parameters(Z));return q||[]};
_.e._ownAnnotations=function(q,Z){if(q.annotations&&q.annotations!==Z.annotations)return q=q.annotations,typeof q==="function"&&q.annotations&&(q=q.annotations),q;if(q.decorators&&q.decorators!==Z.decorators)return GMX(q.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",q)};
_.e.annotations=function(q){var Z=Object.getPrototypeOf(q.prototype).constructor;q=this._ownAnnotations(q,Z)||[];return(Z!==Object?this.annotations(Z):[]).concat(q)};
_.e._ownPropMetadata=function(q,Z){if(q.propMetadata&&q.propMetadata!==Z.propMetadata)return q=q.propMetadata,typeof q==="function"&&q.propMetadata&&(q=q.propMetadata),q;if(q.propDecorators&&q.propDecorators!==Z.propDecorators){var w=q.propDecorators,r={};Object.keys(w).forEach(function(Y){r[Y]=GMX(w[Y])});
return r}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",q)};
_.e.propMetadata=function(q){var Z=Object.getPrototypeOf(q.prototype).constructor,w={};if(Z!==Object){var r=this.propMetadata(Z);Object.keys(r).forEach(function(C){w[C]=r[C]})}var Y=this._ownPropMetadata(q,Z);
Y&&Object.keys(Y).forEach(function(C){var d=[];w.hasOwnProperty(C)&&d.push.apply(d,_.Ju(w[C]));d.push.apply(d,_.Ju(Y[C]));w[C]=d});
return w};
_.e.getter=function(q){return function(Z){return Z[q]}};
_.e.method=function(q){return function(Z,w){if(!Z[q])throw Error("Ye`"+q);return Z[q].apply(Z,w)}};var ks7=function(){};var KBm=function(q){this.reflectionCapabilities=q};
_.z(KBm,ks7);_.e=KBm.prototype;_.e.factory=function(q){return this.reflectionCapabilities.factory(q)};
_.e.parameters=function(q){return this.reflectionCapabilities.parameters(q)};
_.e.annotations=function(q){return this.reflectionCapabilities.annotations(q)};
_.e.propMetadata=function(q){return this.reflectionCapabilities.propMetadata(q)};
_.e.getter=function(q){return this.reflectionCapabilities.getter(q)};
_.e.method=function(q){return this.reflectionCapabilities.method(q)};var iNN=new KBm(new Ulh);var bJ=function(q,Z){this.token=q;this.id=Z;if(q===void 0||q===null)throw Error("cf");};
_.My.Object.defineProperties(bJ.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return OP(this.token)}}});
_.My.Object.defineProperties(bJ,{JSC$9560_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Wk.JSC$9564_numberOfKeys}}});
var sgp=function(){this._allKeys=new Map};
sgp.prototype.get=function(q){if(q instanceof bJ)return q;if(this._allKeys.has(q))return this._allKeys.get(q);var Z=new bJ(q,bJ.JSC$9560_numberOfKeys);this._allKeys.set(q,Z);return Z};
_.My.Object.defineProperties(sgp.prototype,{JSC$9564_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var Wk=new sgp;var Lnj=function(q,Z,w){this.key=q;this.optional=Z;this.visibility=w},qsO=function(q){return new Lnj(q,!1,null)},wWj=[],$1T=function(q,Z,w){this.key=q;
this.resolvedFactories=Z;this.multiProvider=w},r36=function(q,Z,w,r){this.factory=q;
this.dependencies=Z;this.providerClass=w;this.providerValue=r};var J4={},zv=function(q,Z){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=Z===void 0?null:Z;q=_.P(q);for(Z=q.next();!Z.done;Z=q.next())this.addProvider(Z.value)};
_.e=zv.prototype;_.e.addProvider=function(q){this.keyIdToIndex.set(q.key.id,this.keyIds.length);this.providers.push(q);this.keyIds.push(q.key.id);this.objs.push(J4)};
_.e.resolve=function(q,Z){Z=Z===void 0?E_2:Z;return this._getByKey(Wk.get(Hk(q)),null,Z)};
_.e._new=function(q){if(this.constructedKeyIds[q.key.id])throw DC9(this,q.key);this.constructedKeyIds[q.key.id]=!0;return this._instantiateProvider(q)};
_.e._instantiateProvider=function(q){if(q.multiProvider){for(var Z=Array(q.resolvedFactories.length),w=0;w<q.resolvedFactories.length;++w)Z[w]=this._instantiate(q,q.resolvedFactories[w]);return Z}return this._instantiate(q,q.resolvedFactories[0])};
_.e._instantiate=function(q,Z){var w=this,r=Z.factory;try{var Y=Z.dependencies.map(function(d){return w._getByReflectiveDependency(d)})}catch(d){throw d.addKey&&d.addKey(this,q.key),d;
}try{var C=r.apply(null,_.Ju(Y))}catch(d){throw hUj(this,d,q.key);}return C};
_.e._getByReflectiveDependency=function(q){return this._getByKey(q.key,q.visibility,q.optional?null:E_2)};
_.e._getByKey=function(q,Z,w){return q===IQe?this:Z instanceof oX9?this._getByKeySelf(q,w):this._getByKeyDefault(q,w,Z)};
_.e._getObjByKeyId=function(q){for(var Z=0;Z<this.keyIds.length;Z++)if(this.keyIds[Z]===q)return this.objs[Z]===J4&&(this.objs[Z]=this._new(this.providers[Z])),this.objs[Z];return J4};
_.e._throwOrNull=function(q,Z){if(Z!==E_2)return Z;throw fST(this,q);};
_.e._getByKeySelf=function(q,Z){var w=this._getObjByKeyId(q.id);return w!==J4?w:this._throwOrNull(q,Z)};
_.e._getByKeyDefault=function(q,Z,w){for(var r=w=w instanceof u$z?this.parent:this;w instanceof zv;){var Y=w._getObjByKeyId(q.id);if(Y!==J4)return Y;w=w.parent}Y=void 0;if(w!==null)try{var C=w.resolve(q.token,Z);if(C!==J4)return C}catch(d){Y=d}if(!(r instanceof zv&&vXj(q.token))){if(Y)throw Y;return this._throwOrNull(q,Z)}for(C=r;C.parent instanceof zv;)C=C.parent;C.addProvider(en2({provide:q.token,useClass:q.token}));return C.resolve(q.token,Z)};
_.e.toString=function(){return this.displayName};
_.My.Object.defineProperties(zv.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+Ss6(this,function(q){return' "'+q.key.displayName+'" '}).join(", ")+"])"}}});
var IQe=Wk.get(Hk(xlm));(function(){let module=undefined;let exports=undefined;let define=undefined;(function(Y){if(typeof exports==="object"&&typeof module!=="undefined")module.exports=Y();else if(typeof define==="function"&&define.amd)define([],Y);else{var B=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;B.XRegExp=Y()}})(function(){return function F(B,D,f){function t(h,m){if(!D[h]){if(!B[h]){var A=typeof require=="function"&&require;
if(!m&&A)return A(h,!0);if(G)return G(h,!0);m=Error("Cannot find module '"+h+"'");throw m.code="MODULE_NOT_FOUND",m;}m=D[h]={exports:{}};B[h][0].call(m.exports,function(p){var l=B[h][1][p];return t(l?l:p)},m,m.exports,F,B,D,f)}return D[h].exports}
for(var G=typeof require=="function"&&require,u=0;u<f.length;u++)t(f[u]);return t}({1:[function(B,D){D.exports=function(f){function F(h){var m=/^(?:\(\?:\))*\^/,A=/\$(?:\(\?:\))*$/;
return m.test(h)&&A.test(h)&&A.test(h.replace(/\\[\s\S]/g,""))?h.replace(m,"").replace(A,""):h}
function t(h,m){m=m?"x":"";return f.isRegExp(h)?h.xregexp&&h.xregexp.captureNames?h:f(h.source,m):f(h,m)}
var G=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,u=f.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,G],"g",{conjunction:"or"});f.build=function(h,m,A){A=A||"";var p=A.indexOf("x")>-1,l=/^\(\?([\w$]+)\)/.exec(h);l&&(A=f._clipDuplicates(A+l[1]));var g={},v;for(v in m)m.hasOwnProperty(v)&&(l=t(m[v],p),g[v]={pattern:F(l.source),names:l.xregexp.captureNames||[]});h=t(h,p);var w=0,x,e=0,H=[0],y=h.xregexp.captureNames||[];h=h.source.replace(u,function(z,I,M,P,Q){var K=I||M;if(K){if(!g.hasOwnProperty(K))throw new ReferenceError("Undefined property "+
z);if(I){var L=y[e];H[++e]=++w;z="(?<"+(L||K)+">"}else z="(?:";x=w;return z+g[K].pattern.replace(G,function(S,T,N){if(T){if(L=g[K].names[w-x],++w,L)return"(?<"+L+">"}else if(N)return O=+N-1,g[K].names[O]?"\\k<"+g[K].names[O]+">":"\\"+(+N+x);return S})+")"}if(P){if(L=y[e],H[++e]=++w,L)return"(?<"+L+">"}else if(Q){var O=+Q-1;
return y[O]?"\\k<"+y[O]+">":"\\"+H[+Q]}return z});
return f(h,A)}}},
{}],2:[function(B,D){D.exports=function(f){function F(t,G,u,h){return{name:t,value:G,start:u,end:h}}
f.matchRecursive=function(t,G,u,h,m){h=h||"";m=m||{};var A=h.indexOf("g")>-1,p=h.indexOf("y")>-1,l=h.replace(/y/g,""),g=m.escapeChar;m=m.valueNames;var v=[],w=0,x=0,e=0,H=0;G=f(G,l);u=f(u,l);if(g){if(g.length>1)throw Error("Cannot use more than one escape character");g=f.escape(g);var y=new RegExp("(?:"+g+"[\\S\\s]|(?:(?!"+f.union([G,u],"",{conjunction:"or"}).source+")[^"+g+"])+)+",h.replace(/[^imu]+/g,""))}for(;;){g&&(e+=(f.exec(t,y,e,"sticky")||[""])[0].length);h=f.exec(t,G,e);l=f.exec(t,u,e);h&&
l&&(h.index<=l.index?l=null:h=null);if(h||l)x=(h||l).index,e=x+(h||l)[0].length;else if(!w)break;if(p&&!w&&x>H)break;if(h){if(!w){var z=x;var I=e}++w}else if(l&&w){if(!--w&&(m?(m[0]&&z>H&&v.push(F(m[0],t.slice(H,z),H,z)),m[1]&&v.push(F(m[1],t.slice(z,I),z,I)),m[2]&&v.push(F(m[2],t.slice(I,x),I,x)),m[3]&&v.push(F(m[3],t.slice(x,e),x,e))):v.push(t.slice(I,x)),H=e,!A))break}else throw Error("Unbalanced delimiter found in string");x===e&&++e}A&&!p&&m&&m[0]&&t.length>H&&v.push(F(m[0],t.slice(H),H,t.length));
return v}}},
{}],3:[function(B,D){D.exports=function(f){function F(p){return p.replace(/[- _]+/g,"").toLowerCase()}
function t(p){var l=/^\\[xu](.+)/.exec(p);return l?h(l[1]):p.charCodeAt(p.charAt(0)==="\\"?1:0)}
function G(p){var l="",g=-1;f.forEach(p,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(v){var w=t(v[1]);w>g+1&&(l+="\\u"+A(m(g+1)),w>g+2&&(l+="-\\u"+A(m(w-1))));g=t(v[2]||v[1])});
g<65535&&(l+="\\u"+A(m(g+1)),g<65534&&(l+="-\\uFFFF"));return l}
var u={},h=f._dec,m=f._hex,A=f._pad4;f.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(p,l,g){var v=p[1]==="P"||!!p[2],w=g.indexOf("A")>-1;g=F(p[4]||p[3]);var x=u[g];if(p[1]==="P"&&p[2])throw new SyntaxError("Invalid double negation "+p[0]);if(!u.hasOwnProperty(g))throw new SyntaxError("Unknown Unicode token "+p[0]);if(x.inverseOf){g=F(x.inverseOf);if(!u.hasOwnProperty(g))throw new ReferenceError("Unicode token missing data "+p[0]+" -> "+x.inverseOf);x=u[g];v=!v}if(!x.bmp&&!w)throw new SyntaxError("Astral mode required for Unicode token "+
p[0]);if(w){if(l==="class")throw new SyntaxError("Astral mode does not support Unicode tokens within character classes");p=v?"a!":"a=";(l=u[g][p])||(l=u[g],g=u[g],w="",g.bmp&&!g.isBmpLast&&(w="["+g.bmp+"]"+(g.astral?"|":"")),g.astral&&(w+=g.astral),g.isBmpLast&&g.bmp&&(w+=(g.astral?"|":"")+"["+g.bmp+"]"),v=v?"(?:(?!"+w+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+w+")",l=l[p]=v);return v=l}return v=l==="class"?v?u[g]["b!"]||(u[g]["b!"]=G(u[g].bmp)):x.bmp:(v?"[^":"[")+x.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});f.addUnicodeData=function(p){for(var l,g=0;g<p.length;++g){l=p[g];if(!l.name)throw Error("Unicode token requires name");if(!(l.inverseOf||l.bmp||l.astral))throw Error("Unicode token has no character data "+l.name);u[F(l.name)]=l;l.alias&&(u[F(l.alias)]=l)}f.cache.flush("patterns")};
f._getUnicodeProperty=function(p){p=F(p);return u[p]}}},
{}],4:[function(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks");f.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(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");f.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(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Properties");var F=[{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"}];F.push({name:"Assigned",inverseOf:"Cn"});f.addUnicodeData(F)}},
{}],7:[function(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");f.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(B,D){var f=B("./xregexp");B("./addons/build")(f);B("./addons/matchrecursive")(f);B("./addons/unicode-base")(f);B("./addons/unicode-blocks")(f);B("./addons/unicode-categories")(f);B("./addons/unicode-properties")(f);B("./addons/unicode-scripts")(f);D.exports=f},
{"./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(B,D){function f(a){var b=!0;try{b=!!RegExp("",a)}catch(c){b=!1}return b}
function F(a,b,c,d,n){var r;a.xregexp={captureNames:b};if(n)return a;if(a.__proto__)a.__proto__=e.prototype;else for(r in e.prototype)a[r]=e.prototype[r];a.xregexp.source=c;a.xregexp.flags=d?d.split("").sort().join(""):d;return a}
function t(a){return y.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function G(a,b){if(!e.isRegExp(a))throw new TypeError("Type RegExp expected");var c=a.xregexp||{},d=O?a.flags:y.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(a))[1],n="",r="",k=null,q=null;b=b||{};b.removeG&&(r+="g");b.removeY&&(r+="y");r&&(d=y.replace.call(d,new RegExp("["+r+"]+","g"),""));b.addG&&(n+="g");b.addY&&(n+="y");n&&(d=t(d+n));b.isInternalOnly||(c.source!==void 0&&(k=c.source),c.flags!=null&&(q=n?t(c.flags+n):c.flags));return a=F(new RegExp(b.source||a.source,d),a.xregexp&&a.xregexp.captureNames?
c.captureNames.slice(0):null,k,q,b.isInternalOnly)}
function u(a){return parseInt(a,16)}
function h(a,b,c){(b=a.input.charAt(a.index-1)==="("||a.input.charAt(a.index+a[0].length)===")")||(c=c.indexOf("x")>-1?["\\s","#[^#\\n]*","\\(\\?#[^)]*\\)"]:["\\(\\?#[^)]*\\)"],b=y.test.call(new RegExp("^(?:"+c.join("|")+")*(?:[?*+]|{\\d+(?:,\\d*)?})"),a.input.slice(a.index+a[0].length)));return b?"":"(?:)"}
function m(a){return parseInt(a,10).toString(16)}
function A(a,b){var c=a.length,d;for(d=0;d<c;++d)if(a[d]===b)return d;return-1}
function p(a,b){return S.call(a)==="[object "+b+"]"}
function l(a){for(;a.length<4;)a="0"+a;return a}
function g(a,b){var c;if(t(b)!==b)throw new SyntaxError("Invalid duplicate regex flag "+b);a=y.replace.call(a,/^\(\?([\w$]+)\)/,function(d,n){if(y.test.call(/[gy]/,n))throw new SyntaxError("Cannot use flag g or y in mode modifier "+d);b=t(b+n);return""});
for(c=0;c<b.length;++c)if(!Z[b.charAt(c)])throw new SyntaxError("Unknown regex flag "+b.charAt(c));return{pattern:a,flags:b}}
function v(a){var b={};return p(a,"String")?(e.forEach(a,/[^\s,]+/,function(c){b[c]=!0}),b):a}
function w(a){if(!/^[\w$]$/.test(a))throw Error("Flag must be a single character A-Za-z0-9_$");Z[a]=!0}
function x(a){if(a==null)throw new TypeError("Cannot convert null or undefined to object");return a}
function e(a,b){if(e.isRegExp(a)){if(b!==void 0)throw new TypeError("Cannot supply flags when copying a RegExp");return G(a)}a=a===void 0?"":String(a);b=b===void 0?"":String(b);e.isInstalled("astral")&&b.indexOf("A")===-1&&(b+="A");M[a]||(M[a]={});if(!M[a][b]){var c={hasNamedCapture:!1,captureNames:[]},d="default",n="",r=0,k=g(a,b),q=k.pattern;for(k=k.flags;r<q.length;){do{for(var J,E=q,U=k,V=r,W=d,X=c,R=P.length,ba=E.charAt(V),aa=null;R--;){var C=P[R];if(!(C.leadChar&&C.leadChar!==ba||C.scope!==
W&&C.scope!=="all"||C.flag&&U.indexOf(C.flag)===-1)&&(J=e.exec(E,C.regex,V,"sticky"))){aa={matchLength:J[0].length,output:C.handler.call(X,J,W,U),reparse:C.reparse};break}}(C=aa)&&C.reparse&&(q=q.slice(0,r)+C.output+q.slice(r+C.matchLength))}while(C&&C.reparse);C?(n+=C.output,r+=C.matchLength||1):(C=e.exec(q,Q[d],r,"sticky")[0],n+=C,r+=C.length,C==="["&&d==="default"?d="class":C==="]"&&d==="class"&&(d="default"))}M[a][b]={pattern:y.replace.call(n,/(?:\(\?:\))+/g,"(?:)"),flags:y.replace.call(k,/[^gimuy]+/g,
""),captures:c.hasNamedCapture?c.captureNames:null}}c=M[a][b];return F(new RegExp(c.pattern,c.flags),c.captures,a,b)}
var H={astral:!1,natives:!1},y={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},z={},I={},M={},P=[],Q={"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]/},K=/\$(?:{([\w$]+)}|(\d\d?|[\s\S]))/g,
L=y.exec.call(/()??/,"")[1]===void 0,O=/x/.flags!==void 0,S={}.toString,T=f("u"),N=f("y"),Z={g:!0,i:!0,m:!0,u:T,y:N};e.prototype=RegExp();e.version="3.2.0";e._clipDuplicates=t;e._hasNativeFlag=f;e._dec=u;e._hex=m;e._pad4=l;e.addToken=function(a,b,c){c=c||{};var d=c.optionalFlags,n;c.flag&&w(c.flag);if(d)for(d=y.split.call(d,""),n=0;n<d.length;++n)w(d[n]);P.push({regex:G(a,{addG:!0,addY:N,isInternalOnly:!0}),handler:b,scope:c.scope||"default",flag:c.flag,reparse:c.reparse,leadChar:c.leadChar});e.cache.flush("patterns")};
e.cache=function(a,b){I[a]||(I[a]={});return I[a][b]||(I[a][b]=e(a,b))};
e.cache.flush=function(a){a==="patterns"?M={}:I={}};
e.escape=function(a){return y.replace.call(x(a),/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};
e.exec=function(a,b,c,d){var n="g",r,k=!1;(r=N&&!!(d||b.sticky&&d!==!1))?n+="y":d&&(k=!0,n+="FakeY");b.xregexp=b.xregexp||{};d=b.xregexp[n]||(b.xregexp[n]=G(b,{addG:!0,addY:r,source:k?b.source+"|()":void 0,removeY:d===!1,isInternalOnly:!0}));c=c||0;d.lastIndex=c;a=z.exec.call(d,a);k&&a&&a.pop()===""&&(a=null);b.global&&(b.lastIndex=a?d.lastIndex:0);return a};
e.forEach=function(a,b,c){for(var d=0,n=-1;d=e.exec(a,b,d);)c(d,++n,a,b),d=d.index+(d[0].length||1)};
e.install=function(a){a=v(a);!H.astral&&a.astral&&(H.astral=!0);!H.natives&&a.natives&&(RegExp.prototype.exec=z.exec,RegExp.prototype.test=z.test,String.prototype.match=z.match,String.prototype.replace=z.replace,String.prototype.split=z.split,H.natives=!0)};
e.isInstalled=function(a){return!!H[a]};
e.isRegExp=function(a){return S.call(a)==="[object RegExp]"};
e.match=function(a,b,c){var d=b.global&&c!=="one"||c==="all",n=(d?"g":"")+(b.sticky?"y":"")||"noGY";b.xregexp=b.xregexp||{};n=b.xregexp[n]||(b.xregexp[n]=G(b,{addG:!!d,removeG:c==="one",isInternalOnly:!0}));a=y.match.call(x(a),n);b.global&&(b.lastIndex=c==="one"&&a?a.index+a[0].length:0);return d?a||[]:a&&a[0]};
e.replace=function(a,b,c,d){var n=e.isRegExp(b),r=b.global&&d!=="one"||d==="all",k=(r?"g":"")+(b.sticky?"y":"")||"noGY",q=b;n?(b.xregexp=b.xregexp||{},q=b.xregexp[k]||(b.xregexp[k]=G(b,{addG:!!r,removeG:d==="one",isInternalOnly:!0}))):r&&(q=new RegExp(e.escape(String(b)),"g"));a=z.replace.call(x(a),q,c);n&&b.global&&(b.lastIndex=0);return a};
e.split=function(a,b,c){return z.split.call(x(a),b,c)};
e.test=function(a,b,c,d){return!!e.exec(a,b,c,d)};
e.union=function(a,b,c){function d(V,W,X){var R=U[r-E];if(W){if(++r,R)return"(?<"+R+">"}else if(X)return"\\"+(+X+E);return V}
c=c||{};var n=c.conjunction||"or",r=0;if(!p(a,"Array")||!a.length)throw new TypeError("Must provide a nonempty array of patterns to merge");var k=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;c=[];for(var q,J=0;J<a.length;++J)if(q=a[J],e.isRegExp(q)){var E=r;var U=q.xregexp&&q.xregexp.captureNames||[];c.push(y.replace.call(e(q.source).source,k,d))}else c.push(e.escape(q));a=n==="none"?"":"|";return e(c.join(a),b)};
z.exec=function(a){var b=this.lastIndex,c=y.exec.apply(this,arguments),d;if(c){if(!L&&c.length>1&&A(c,"")>-1){var n=G(this,{removeG:!0,isInternalOnly:!0});y.replace.call(String(a).slice(c.index),n,function(){var r=arguments.length,k;for(k=1;k<r-2;++k)arguments[k]===void 0&&(c[k]=void 0)})}if(this.xregexp&&this.xregexp.captureNames)for(d=1;d<c.length;++d)(n=this.xregexp.captureNames[d-1])&&(c[n]=c[d]);
this.global&&!c[0].length&&this.lastIndex>c.index&&(this.lastIndex=c.index)}this.global||(this.lastIndex=b);return c};
z.test=function(a){return!!z.exec.call(this,a)};
z.match=function(a){if(!e.isRegExp(a))a=new RegExp(a);else if(a.global){var b=y.match.apply(this,arguments);a.lastIndex=0;return b}return z.exec.call(a,x(this))};
z.replace=function(a,b){var c=e.isRegExp(a);if(c){if(a.xregexp)var d=a.xregexp.captureNames;var n=a.lastIndex}else a+="";var r=p(b,"Function")?y.replace.call(String(this),a,function(){var k=arguments,q;if(d)for(k[0]=new String(k[0]),q=0;q<d.length;++q)d[q]&&(k[0][d[q]]=k[q+1]);c&&a.global&&(a.lastIndex=k[k.length-2]+k[0].length);return b.apply(void 0,k)}):y.replace.call(this==null?this:String(this),a,function(){var k=arguments;
return y.replace.call(String(b),K,function(q,J,E){if(J){E=+J;if(E<=k.length-3)return k[E]||"";E=d?A(d,J):-1;if(E<0)throw new SyntaxError("Backreference to undefined group "+q);return k[E+1]||""}if(E==="$")return"$";if(E==="&"||+E===0)return k[0];if(E==="`")return k[k.length-1].slice(0,k[k.length-2]);if(E==="'")return k[k.length-1].slice(k[k.length-2]+k[0].length);E=+E;if(!isNaN(E)){if(E>k.length-3)throw new SyntaxError("Backreference to undefined group "+q);return k[E]||""}throw new SyntaxError("Invalid token "+
q);})});
c&&(a.lastIndex=a.global?0:n);return r};
z.split=function(a,b){if(!e.isRegExp(a))return y.split.apply(this,arguments);var c=String(this),d=[],n=a.lastIndex,r=0,k;b=(b===void 0?-1:b)>>>0;e.forEach(c,a,function(q){q.index+q[0].length>r&&(d.push(c.slice(r,q.index)),q.length>1&&q.index<c.length&&Array.prototype.push.apply(d,q.slice(1)),k=q[0].length,r=q.index+k)});
r===c.length?(!y.test.call(a,"")||k)&&d.push(""):d.push(c.slice(r));a.lastIndex=n;return d.length>b?d.slice(0,b):d};
e.addToken(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4}|{[\dA-Fa-f]+})|x(?![\dA-Fa-f]{2}))/,function(a,b){if(a[1]==="B"&&b==="default")return a[0];throw new SyntaxError("Invalid escape "+a[0]);},{scope:"all",
leadChar:"\\"});e.addToken(/\\u{([\dA-Fa-f]+)}/,function(a,b,c){b=u(a[1]);if(b>1114111)throw new SyntaxError("Invalid Unicode code point "+a[0]);if(b<=65535)return"\\u"+l(m(b));if(T&&c.indexOf("u")>-1)return a[0];throw new SyntaxError("Cannot use Unicode code point above \\u{FFFF} without flag u");},{scope:"all",
leadChar:"\\"});e.addToken(/\[(\^?)\]/,function(a){return a[1]?"[\\s\\S]":"\\b\\B"},{leadChar:"["});
e.addToken(/\(\?#[^)]*\)/,h,{leadChar:"("});e.addToken(/\s+|#[^\n]*\n?/,h,{flag:"x"});e.addToken(/\./,function(){return"[\\s\\S]"},{flag:"s",
leadChar:"."});e.addToken(/\\k<([\w$]+)>/,function(a){var b=isNaN(a[1])?A(this.captureNames,a[1])+1:+a[1],c=a.index+a[0].length;if(!b||b>this.captureNames.length)throw new SyntaxError("Backreference to undefined group "+a[0]);return"\\"+b+(c===a.input.length||isNaN(a.input.charAt(c))?"":"(?:)")},{leadChar:"\\"});
e.addToken(/\\(\d+)/,function(a,b){if(!(b==="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:"\\"});e.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(A(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:"("});
e.addToken(/\((?!\?)/,function(a,b,c){if(c.indexOf("n")>-1)return"(?:";this.captureNames.push(null);return"("},{optionalFlags:"n",
leadChar:"("});D.exports=e},
{}]},{},[8])(8)})}).call(globalThis);var cQ7=window.XRegExp;var Me2=-1,FB2=function(q){addEventListener("pageshow",function(Z){Z.persisted&&(Me2=Z.timeStamp,q(Z))},!0)};var lQ7=function(q,Z,w){var r=NnK,Y,C;return function(d){Z.value>=0&&(d||w)&&((C=Z.value-(Y||0))||Y===void 0)&&(Y=Z.value,Z.delta=C,d=Z.value,Z.rating=d>r[1]?"poor":d>r[0]?"needs-improvement":"good",q(Z))}};var Bt=-1,Gs2=function(q){document.visibilityState==="hidden"&&Bt>-1&&(Bt=q.type==="visibilitychange"?q.timeStamp:0,removeEventListener("visibilitychange",Gs2,!0),removeEventListener("prerenderingchange",Gs2,!0))},pQD=function(){addEventListener("visibilitychange",Gs2,!0);
addEventListener("prerenderingchange",Gs2,!0)},XQX=function(){Bt<0&&(Bt=document.visibilityState!=="hidden"||document.prerendering?Infinity:0,pQD(),FB2(function(){setTimeout(function(){Bt=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
pQD()},0)}));
return{get firstHiddenTime(){return Bt}}};var ml7=function(){var q=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(q&&q.responseStart>0&&q.responseStart<performance.now())return q};var AQK=function(){var q=ml7();return q&&q.activationStart||0};var fQ7=function(){var q=ml7(),Z="navigate";Me2>=0?Z="back-forward-cache":q&&(document.prerendering||AQK()>0?Z="prerender":document.wasDiscarded?Z="restore":q.type&&(Z=q.type.replace(/_/g,"-")));return{name:"LCP",value:-1,rating:"good",delta:0,entries:[],id:"v4-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:Z}};var Dl2=function(q){try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var Z=new PerformanceObserver(function(w){Promise.resolve().then(function(){q(w.getEntries())})});
Z.observe(Object.assign({type:"largest-contentful-paint",buffered:!0},{}));return Z}}catch(w){}};var hkg=function(q){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&q()})};var yQe=function(q){var Z=!1;return function(){Z||(q(),Z=!0)}};var iPv=function(q){document.prerendering?addEventListener("prerenderingchange",function(){return q()},!0):q()};var g_7=function(q){requestAnimationFrame(function(){return requestAnimationFrame(function(){return q()})})};var NnK=[2500,4E3],qnK={},q_1=function(q){var Z=Z||{};iPv(function(){var w=XQX(),r=fQ7(),Y=function(H){Z.reportAllChanges||(H=H.slice(-1));H.forEach(function(L){L.startTime<w.firstHiddenTime&&(r.value=Math.max(L.startTime-AQK(),0),r.entries=[L],d())})},C=Dl2(Y);
if(C){var d=lQ7(q,r,Z.reportAllChanges);var O=yQe(function(){qnK[r.id]||(Y(C.takeRecords()),C.disconnect(),qnK[r.id]=!0,d(!0))});
["keydown","click"].forEach(function(H){addEventListener(H,function(){var L=O,S=self.requestIdleCallback||self.setTimeout,v=-1;L=yQe(L);document.visibilityState==="hidden"?L():(v=S(L),hkg(L));return v},!0)});
hkg(O);FB2(function(H){r=fQ7();d=lQ7(q,r,Z.reportAllChanges);g_7(function(){r.value=performance.now()-H.timeStamp;qnK[r.id]=!0;d(!0)})})}})};var ZdW;var wHh;_.h=function(){return wHh!==void 0?wHh:wHh=document.createElement("template")};
document.head.appendChild(_.h().content);var rWv;_.$l({_template:function(){if(rWv!==void 0)return rWv;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
var Z=q.content,w=Z.insertBefore;ZdW===void 0&&(ZdW=document.createElement("template"));var r=ZdW;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return rWv=q},
is:"tp-yt-app-toolbar"});var Ynm;var $dg;_.aD=function(){};
_.aD=_.$l({_template:function(){if($dg!==void 0)return $dg;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Ynm===void 0&&(Ynm=document.createElement("template"));var r=Ynm;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return $dg=q},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.aD.instance||(_.aD.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(q){this._text===q&&(q+="\u00a0");this._text="";this.async(function(){this._text=q},this.timeout)},
_onIronAnnounce:function(q){q.detail&&q.detail.text&&this.announce(q.detail.text)}});
_.aD.instance=null;_.aD.requestAvailability=function(){_.aD.instance||(_.aD.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.aD.instance):document.addEventListener("load",function(){document.body.appendChild(_.aD.instance)})};var eDJ;var CiJ;/*

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
*/
_.$l({_template:function(){if(CiJ!==void 0)return CiJ;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;eDJ===void 0&&(eDJ=document.createElement("template"));var r=eDJ;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return CiJ=q},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.uJ,_.dl],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(q){this.$.textarea.selectionStart=q},set selectionEnd(q){this.$.textarea.selectionEnd=q},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var q=this.$.textarea.validity.valid;q&&(this.required&&this.value===""?q=!1:this.hasValidator()&&(q=_.uJ.validate.call(this,this.value)));this.invalid=!q;this.fire("iron-input-validate");return q},
_bindValueChanged:function(q){this.value=q},
_valueChanged:function(q){var Z=this.textarea;Z&&(Z.value!==q&&(Z.value=q||q===0?q:""),this.bindValue=q,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(q){var Z=_.os(q).path;this.value=Z?Z[0].value:q.target.value},
_constrain:function(q){var Z;q=q||[""];for(Z=this.maxRows>0&&q.length>this.maxRows?q.slice(0,this.maxRows):q.slice(0);this.rows>0&&Z.length<this.rows;)Z.push("");return Z.join("\n")+"\u00a0"},
_valueForMirror:function(){var q=this.textarea;if(q)return this.tokens=q&&q.value?q.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var Pie;var ddv;_.$l({_template:function(){if(ddv!==void 0)return ddv;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
var Z=q.content,w=Z.insertBefore;Pie===void 0&&(Pie=document.createElement("template"));var r=Pie;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return ddv=q},
is:"tp-yt-iron-collapse",behaviors:[_.SQ],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(q,Z){q=q==="auto"?"":q;Z=Z&&!this.noAnimation&&this.isAttached&&this._desiredSize!==q;this._desiredSize=q;this._updateTransition(!1);Z&&(Z=this._calcSize(),q===""&&(this.style[this._dimensionMax]="",q=this._calcSize()),this.style[this._dimensionMax]=Z,this.scrollTop=this.scrollTop,this._updateTransition(!0),Z=q!==Z);this.style[this._dimensionMax]=q;Z||this._transitionEnd()},
enableTransition:function(q){_.d4._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!q},
_updateTransition:function(q){this.style.transitionDuration=q&&!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(q){_.os(q).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var Vl2;var Ode;var HdX=void 0,W1K={properties:{sizingTarget:{type:Object,value:function(){var q;return(q=this.hostElement)!=null?q: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 q,Z=_.os((q=this.hostElement)!=null?q:
this).parentNode;Z&&Z.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(Z=Z.host);return Z},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 q;this._memoizedIsRTL=window.getComputedStyle((q=this.hostElement)!=null?q:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var q;window.getComputedStyle((q=this.hostElement)!=null?q: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 q,Z=window.getComputedStyle((q=this.hostElement)!=null?q:this);q=window.getComputedStyle(this.sizingTarget);var w,r,Y;this._fitInfo={inlineStyle:{top:((w=this.hostElement)!=null?w:this).style.top||"",left:((r=this.hostElement)!=null?r:this).style.left||"",position:((Y=this.hostElement)!=null?Y:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:Z.top!=="auto"?"top":Z.bottom!=="auto"?"bottom":null,horizontally:Z.left!=="auto"?"left":Z.right!=="auto"?"right":null},sizedBy:{height:q.maxHeight!=="none",width:q.maxWidth!=="none",minWidth:parseInt(q.minWidth,10)||0,minHeight:parseInt(q.minHeight,10)||0},margin:{top:parseInt(Z.marginTop,10)||0,right:parseInt(Z.marginRight,10)||0,bottom:parseInt(Z.marginBottom,10)||0,left:parseInt(Z.marginLeft,10)||0}}}},
resetFit:function(){var q=this._fitInfo||{},Z;for(Z in q.sizerInlineStyle)this.sizingTarget.style[Z]=q.sizerInlineStyle[Z];for(Z in q.inlineStyle){var w=void 0;((w=this.hostElement)!=null?w:this).style[Z]=q.inlineStyle[Z]}this._fitInfo=null},
refit:function(){var q=this.sizingTarget.scrollLeft,Z=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=q;this.sizingTarget.scrollTop=Z},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var q;((q=this.hostElement)!=null?q:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var Z;((Z=this.hostElement)!=null?Z:this).style.left="0px";var w;((w=this.hostElement)!=null?w:this).style.top="0px";var r,Y=((r=this.hostElement)!=null?r:this).getBoundingClientRect();Z=this.__getNormalizedRect(this.positionTarget);r=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(r={left:r.left+24,right:r.right-24,top:r.top+24,bottom:r.bottom-24});if(this.expandSizingTargetForScrollbars){var C=this.sizingTarget.offsetWidth;var d=this.sizingTarget.offsetHeight;var O=this.sizingTarget.clientWidth;var H=this.sizingTarget.clientHeight}q=this._fitInfo.margin;Z=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:Y.width+q.left+q.right,height:Y.height+q.top+q.bottom},Y,Z,r);var L=Z.left+q.left,S=Z.top+q.top;w=Math.min(r.right-q.right,L+Y.width);var v=Math.min(r.bottom-
q.bottom,S+Y.height);L=Math.max(r.left+q.left,Math.min(L,w-this._fitInfo.sizedBy.minWidth));S=Math.max(r.top+q.top,Math.min(S,v-this._fitInfo.sizedBy.minHeight));w=Math.max(w-L,this._fitInfo.sizedBy.minWidth);v=Math.max(v-S,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=w+"px";this.sizingTarget.style.maxHeight=v+"px";L-=Y.left;Y=S-Y.top;var R;((R=this.hostElement)!=null?R:this).style.left=L+"px";var B;((B=this.hostElement)!=null?B:this).style.top=Y+"px";if(this.expandSizingTargetForScrollbars){R=
this.sizingTarget.offsetHeight;d=R-this.sizingTarget.clientHeight-(d-H);if(d>0){this.sizingTarget.style.maxHeight=Math.min(r.height-q.top-q.bottom,v+d)+"px";d=this.sizingTarget.offsetHeight;H=d-R;var n;Z.verticalAlign==="top"?n=Y:Z.verticalAlign==="middle"?n=Y-H/2:Z.verticalAlign==="bottom"&&(n=Y-H);n=Math.max(r.top+q.top,Math.min(n,r.bottom-q.bottom-d));var x;((x=this.hostElement)!=null?x:this).style.top=n+"px"}n=this.sizingTarget.offsetWidth;C=n-this.sizingTarget.clientWidth-(C-O);if(C>0){HdX!==
void 0?O=HdX:(O=document.createElement("div"),Object.assign(O.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),x=document.createElement("div"),x.style.width="200px",x.style.height="200px",O.appendChild(x),document.body.appendChild(O),HdX=Math.abs(O.offsetWidth-100)>1?O.offsetWidth-O.clientWidth:0,document.body.removeChild(O),O=HdX);this.sizingTarget.style.maxWidth=Math.min(r.width-q.left-q.right,w+C-O)+"px";C=this.sizingTarget.offsetWidth+O;O=C-n;var K;
Z.horizontalAlign==="left"?K=L:Z.horizontalAlign==="center"?K=L-O/2:Z.horizontalAlign==="right"&&(K=L-O);K=Math.max(r.left+q.left,Math.min(K,r.right-q.right-C));var k;((k=this.hostElement)!=null?k:this).style.left=K+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var q=this._fitInfo;if(!q.positionedBy.vertically){var Z;((Z=this.hostElement)!=null?Z:this).style.position="fixed";var w;((w=this.hostElement)!=null?w:this).style.top="0px"}if(!q.positionedBy.horizontally){var r;((r=this.hostElement)!=null?r:this).style.position="fixed";var Y;((Y=this.hostElement)!=null?Y:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var C;Z=((C=this.hostElement)!=null?C:this).getBoundingClientRect();
q.sizedBy.height||this.__sizeDimension(Z,q.positionedBy.vertically,"top","bottom","Height");q.sizedBy.width||this.__sizeDimension(Z,q.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(q,Z,w,r,Y){this.__sizeDimension(q,Z,w,r,Y)},
__sizeDimension:function(q,Z,w,r,Y){var C=this._fitInfo,d=this.__getNormalizedRect(this.fitInto);d=Y==="Width"?d.width:d.height;q=(Z=Z===r)?d-q[r]:q[w];w=C.margin[Z?w:r];r="offset"+Y;var O;C=((O=this.hostElement)!=null?O:this)[r]-this.sizingTarget[r];this.sizingTarget.style["max"+Y]=d-w-q-C+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var q=this._fitInfo.positionedBy;if(!q.vertically||!q.horizontally){var Z;((Z=this.hostElement)!=null?Z:this).style.position="fixed";if(!q.vertically){var w;((w=this.hostElement)!=null?w:this).style.top="0px"}if(!q.horizontally){var r;((r=this.hostElement)!=null?r:this).style.left="0px"}var Y;Z=((Y=this.hostElement)!=null?Y:this).getBoundingClientRect();Y=this.__getNormalizedRect(this.fitInto);if(!q.vertically){w=Y.top-Z.top+(Y.height-
Z.height)/2;var C;((C=this.hostElement)!=null?C:this).style.top=w+"px"}if(!q.horizontally){q=Y.left-Z.left+(Y.width-Z.width)/2;var d;((d=this.hostElement)!=null?d:this).style.left=q+"px"}}}},
__getNormalizedRect:function(q){return q===document.documentElement||q===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:q.getBoundingClientRect()},
__getOffscreenArea:function(q,Z,w){return Math.abs(Math.min(0,q.top)+Math.min(0,w.bottom-(q.top+Z.height)))*Z.width+Math.abs(Math.min(0,q.left)+Math.min(0,w.right-(q.left+Z.width)))*Z.height},
__getPosition:function(q,Z,w,r,Y,C){var d=[{verticalAlign:"top",horizontalAlign:"left",top:Y.top+this.verticalOffset,left:Y.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:Y.top+this.verticalOffset,left:Y.right-w.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:Y.bottom-w.height-this.verticalOffset,left:Y.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:Y.bottom-w.height-this.verticalOffset,left:Y.right-w.width-
this.horizontalOffset}];if(this.noOverlap){for(var O=0,H=d.length;O<H;O++){var L={},S;for(S in d[O])L[S]=d[O][S];d.push(L)}d[0].top=d[1].top+=Y.height;d[2].top=d[3].top-=Y.height;d[4].left=d[6].left+=Y.width;d[5].left=d[7].left-=Y.width}Z=Z==="auto"?null:Z;q=q==="auto"?null:q;q&&q!=="center"||(d.push({verticalAlign:"top",horizontalAlign:"center",top:Y.top+this.verticalOffset+(this.noOverlap?Y.height:0),left:Y.left-r.width/2+Y.width/2+this.horizontalOffset}),d.push({verticalAlign:"bottom",horizontalAlign:"center",
top:Y.bottom-w.height-this.verticalOffset-(this.noOverlap?Y.height:0),left:Y.left-r.width/2+Y.width/2+this.horizontalOffset}));Z&&Z!=="middle"||(d.push({verticalAlign:"middle",horizontalAlign:"left",top:Y.top-r.height/2+Y.height/2+this.verticalOffset,left:Y.left+this.horizontalOffset+(this.noOverlap?Y.width:0)}),d.push({verticalAlign:"middle",horizontalAlign:"right",top:Y.top-r.height/2+Y.height/2+this.verticalOffset,left:Y.right-w.width-this.horizontalOffset-(this.noOverlap?Y.width:0)}));Z==="middle"&&
q==="center"&&d.push({verticalAlign:"middle",horizontalAlign:"center",top:Y.top-r.height/2+Y.height/2+this.verticalOffset,left:Y.left-r.width/2+Y.width/2+this.horizontalOffset});for(O=0;O<d.length;O++){r=d[O];Y=r.verticalAlign===Z;H=r.horizontalAlign===q;if(!this.dynamicAlign&&!this.noOverlap&&Y&&H){var v=r;break}L=(!Z||Y)&&(!q||H);if(this.dynamicAlign||L){r.offscreenArea=this.__getOffscreenArea(r,w,C);if(r.offscreenArea===0&&L){v=r;break}v=v||r;L=r.offscreenArea-v.offscreenArea;if(L<0||L===0&&(Y||
H))v=r}}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 nk,o4v,urD;nk=Element.prototype;o4v=nk.matches||nk.matchesSelector||nk.mozMatchesSelector||nk.msMatchesSelector||nk.oMatchesSelector||nk.webkitMatchesSelector;urD=function(){};
_.SnD=function(q){var Z=L1J,w=[];return Z._collectTabbableNodes(q,w)?Z._sortByTabIndex(w):w};
_.e=urD.prototype;_.e._normalizedTabIndex=function(q){return(o4v.call(q,"input, select, textarea, button, object")?o4v.call(q,":not([disabled])"):o4v.call(q,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(q=q.getAttribute("tabindex")||0,Number(q)):-1};
_.e._collectTabbableNodes=function(q,Z){if(q.nodeType!==Node.ELEMENT_NODE||!this._isVisible(q))return!1;var w=this._normalizedTabIndex(q),r=w>0;w>=0&&Z.push(q);if(q.localName==="content"||q.localName==="slot")w=_.os(q).getDistributedNodes();else{var Y;w=((Y=_.os(q).shadowRoot)!=null?Y:_.os(q.root||q)).children}for(q=0;q<w.length;q++)r=this._collectTabbableNodes(w[q],Z)||r;return r};
_.e._isVisible=function(q){var Z=q.style;return Z.visibility!=="hidden"&&Z.display!=="none"?(Z=window.getComputedStyle(q),Z.visibility!=="hidden"&&Z.display!=="none"):!1};
_.e._sortByTabIndex=function(q){var Z=q.length;if(Z<2)return q;var w=Math.ceil(Z/2);Z=this._sortByTabIndex(q.slice(0,w));q=this._sortByTabIndex(q.slice(w));return this._mergeSortByTabIndex(Z,q)};
_.e._mergeSortByTabIndex=function(q,Z){for(var w=[];q.length>0&&Z.length>0;)this._hasLowerTabOrder(q[0],Z[0])?w.push(Z.shift()):w.push(q.shift());return w.concat(q,Z)};
_.e._hasLowerTabOrder=function(q,Z){q=Math.max(q.tabIndex,0);Z=Math.max(Z.tabIndex,0);return q===0||Z===0?Z>q:q>Z};
var L1J=new urD;var v4X;var j0X;_.$l({_template:function(){if(j0X!==void 0)return j0X;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;v4X===void 0&&(v4X=document.createElement("template"));var r=v4X;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return j0X=q},
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&&_.os(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.os(this.parentNode).removeChild(this)},
_onTransitionend:function(q){q&&q.target===this&&this.complete()},
_openedChanged:function(q){q?this.prepare():(q=window.getComputedStyle(this),q.transitionDuration!=="0s"&&q.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 Qp=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;jx(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)};
Qp.prototype._bringOverlayAtIndexToFront=function(q){var Z=this._overlays[q];if(Z){var w=this._overlays.length-1,r=this._overlays[w];r&&this._shouldBeBehindOverlay(Z,r)&&w--;if(!(q>=w)){r=Math.max(this._getZ(_.tle(this)),this._minimumZ);for(this._getZ(Z)<=r&&this._applyOverlayZ(Z,r);q<w;)this._overlays[q]=this._overlays[q+1],q++;this._overlays[w]=Z}}};
Qp.prototype.addOverlay=function(q){var Z=this._overlays.indexOf(q);if(Z>=0)this._bringOverlayAtIndexToFront(Z);else{Z=this._overlays.length;var w=this._overlays[Z-1],r=Math.max(this._getZ(w),this._minimumZ),Y=this._getZ(q);w&&this._shouldBeBehindOverlay(q,w)&&(this._applyOverlayZ(w,r),Z--,r=Math.max(this._getZ(this._overlays[Z-1]),this._minimumZ));Y<=r&&this._applyOverlayZ(q,r);this._overlays.splice(Z,0,q)}this.trackBackdrop()};
Qp.prototype.removeOverlay=function(q){q=this._overlays.indexOf(q);q!==-1&&(this._overlays.splice(q,1),this.trackBackdrop())};
_.tle=function(q){return q._overlays[q._overlays.length-1]};
_.e=Qp.prototype;_.e.trackBackdrop=function(){var q=this._overlayWithBackdrop();if(q||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(q)-1,this.backdropElement.opened=!!q,this.backdropElement.prepare()};
_.e._overlayWithBackdrop=function(){for(var q=this._overlays.length-1;q>=0;q--)if(this._overlays[q].withBackdrop)return this._overlays[q]};
_.e._getZ=function(q){var Z=this._minimumZ;if(q){var w,r,Y=Number(((w=q.hostElement)!=null?w:q).style.zIndex||window.getComputedStyle((r=q.hostElement)!=null?r:q).zIndex);Y===Y&&(Z=Y)}return Z};
_.e._setZ=function(q,Z){var w;((w=q.hostElement)!=null?w:q).style.zIndex=Z};
_.e._applyOverlayZ=function(q,Z){this._setZ(q,Z+2)};
_.e._overlayInPath=function(q){q=q||[];for(var Z=0;Z<q.length;Z++){var w=void 0;if(((w=q[Z].polymerController)!=null?w:q[Z])._manager===this)return q[Z]}};
_.e._onCaptureClick=function(q){var Z=this._overlays.length-1;if(Z!==-1)for(var w=_.os(q).path,r,Y;(r=this._overlays[Z])&&this._overlayInPath(w)!==((Y=r.hostElement)!=null?Y:r);)if(r._onCaptureClick(q),r.allowClickThrough)Z--;else break};
_.e._onCaptureFocus=function(q){var Z=_.tle(this);Z&&Z._onCaptureFocus(q)};
_.e._onCaptureKeyDown=function(q){var Z=_.tle(this);Z&&(_.Pt.keyboardEventMatchesKeys(q,"esc")?Z._onCaptureEsc(q):_.Pt.keyboardEventMatchesKeys(q,"tab")&&Z._onCaptureTab(q))};
_.e._shouldBeBehindOverlay=function(q,Z){return!q.alwaysOnTop&&Z.alwaysOnTop&&!Z.contains(q)};
_.My.Object.defineProperties(Qp.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 q=document.activeElement;q&&q instanceof Element!==!1||(q=document.body);for(;q.root&&_.os(q.root).activeElement;)q=_.os(q.root).activeElement;return q}}});
_.EZ=new Qp;var jtj=0,tiI=0,Rn2=null,bGT=[],u5=["wheel","mousewheel","DOMMouseScroll"],J32;_.b("web_no_lock_on_touchstart_killswitch")&&(u5.push("touchstart"),u5.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;_.xJ={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:_.EZ},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var q;return this._focusedChild||_.os((q=this.hostElement)!=null?q:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var q;return _.SnD((q=this.hostElement)!=null?q: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 q;this._observer=_.os((q=this.hostElement)!=null?q:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var q;_.os((q=this.hostElement)!=null?q:this).unobserveNodes(this._observer)}this._observer=null;for(var Z in this.__rafs)this.__rafs[Z]!==null&&cancelAnimationFrame(this.__rafs[Z]);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(q){this.fire("iron-overlay-canceled",q,{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 q;((q=this.hostElement)!=null?q:this).style.outline="none";var Z;((Z=this.hostElement)!=null?Z:this).style.display="none"}},
_openedChanged:function(q){if(q){var Z;((Z=this.hostElement)!=null?Z:this).removeAttribute("aria-hidden")}else{var w;((w=this.hostElement)!=null?w: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 q;if(this.withBackdrop&&!((q=this.hostElement)!=null?q:this).hasAttribute("tabindex")){var Z;((Z=this.hostElement)!=null?Z:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var w;((w=this.hostElement)!=null?w: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 q;((q=this.hostElement)!=null?q:this).style.display="none";var Z;((Z=this.hostElement)!=null?Z:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var q,Z;((q=this.hostElement)!=null?q:this).style.transition=((Z=this.hostElement)!=null?Z:this).style.webkitTransition="none";var w,r;((w=this.hostElement)!=null?w:this).style.transform=((r=this.hostElement)!=null?r:this).style.webkitTransform="none";var Y;((Y=this.hostElement)!=null?Y:this).style.display=""},
_finishPositioning:function(){var q;((q=this.hostElement)!=null?q:this).style.display="none";this.scrollTop=this.scrollTop;var Z,w;((Z=this.hostElement)!=null?Z:this).style.transition=((w=this.hostElement)!=null?w:this).style.webkitTransition="";var r,Y;((r=this.hostElement)!=null?r:this).style.transform=((Y=this.hostElement)!=null?Y:this).style.webkitTransform="";var C;((C=this.hostElement)!=null?C:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var q=this._manager.deepActiveElement,Z;if(!(Z=q===document.body))a:{for(;q;q=q.assignedSlot||q.parentNode||q.host)if(q===this){Z=!0;break a}Z=!1}Z&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(q){this.noCancelOnOutsideClick||this.cancel(q)},
_onCaptureFocus:function(q){if(this.withBackdrop){var Z=_.os(q).path;Z.indexOf(this)===-1?(q.stopPropagation(),this._applyFocus()):this._focusedChild=Z[0]}},
_onCaptureEsc:function(q){this.noCancelOnEscKey||this.cancel(q)},
_onCaptureTab:function(q){if(this.withBackdrop){this.__ensureFirstLastFocusables();var Z=q.shiftKey,w=Z?this.__firstFocusableNode:this.__lastFocusableNode;Z=Z?this.__lastFocusableNode:this.__firstFocusableNode;if(w===Z)w=!0;else{var r=this._manager.deepActiveElement;w=r===w||r===this}w&&(q.preventDefault(),this._focusedChild=Z,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 q=this._focusableNodes;this.__firstFocusableNode=q[0];this.__lastFocusableNode=q[q.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(q,Z){var w=this.__rafs;w[q]!==null&&cancelAnimationFrame(w[q]);w[q]=requestAnimationFrame(function(){w[q]=null;Z.call(this)}.bind(this))},
__updateScrollObservers:function(q,Z,w){q&&Z&&this.__isValidScrollAction(w)?(w==="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),J32=_._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()):(q=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),q!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(q,1),J32=_._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(B0)for(var q=this;q;)q.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&q.host&&this.__rootNodes.push(q),q=q.host||q.assignedSlot||q.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(Z){Z.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(q){q.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(q){return q==="lock"||q==="refit"||q==="cancel"},
__onCaptureScroll:function(q){if(!(this.__isAnimating||_.os(q).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(q)}},
__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)}};
_.Tv=[W1K,_.SQ,_.xJ];_.$l({_template:function(){if(Ode!==void 0)return Ode;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;Vl2===void 0&&(Vl2=document.createElement("template"));var r=Vl2;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return Ode=q},
is:"tp-yt-iron-dropdown",behaviors:[_.dl,_.Pt,_.Tv,qz7],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 q=_.os(this.$.content).getDistributedNodes(),Z=0,w=q.length;Z<w;Z++)if(q[Z].nodeType===Node.ELEMENT_NODE)return q[Z]},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(),_.xJ._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.xJ._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.xJ._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var q=this.containedElement,Z=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),w=0;w<Z.length;w++)Z[w].node=q;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(q){this._readied&&(q?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var q=this.focusTarget||this.containedElement;q&&this.opened&&!this.noAutoFocus?q.focus():_.xJ._applyFocus.apply(this,arguments)}});var RDD;var bdD;/*

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 JW7=new _.Wt({type:"iconset"});
_.$l({_template:function(){if(bdD!==void 0)return bdD;var q=document.createElement("template");_.a(q,"\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");q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;RDD===void 0&&(RDD=document.createElement("template"));
var r=RDD;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return bdD=q},
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(q){q=(q||"").split(":");this._iconName=q.pop();this._iconsetName=q.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&&_.os(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=JW7.byKey(this._iconsetName)){var q=this._iconset.applyIcon(this,this._iconName,this.theme);q&&q.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,_.os(this.root).appendChild(this._img)}});var zD1;var B1g;_.$l({_template:function(){if(B1g!==void 0)return B1g;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
var Z=q.content,w=Z.insertBefore;zD1===void 0&&(zD1=document.createElement("template"));var r=zD1;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return B1g=q},
is:"tp-yt-iron-input",behaviors:[_.uJ],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(){_.aD.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.os(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.os(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 q=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":q=/[0-9.,e-]/}return q},_bindValueChanged:function(q,Z){Z&&(q===void 0?Z.value=null:q!==Z.value&&(this.inputElement.value=q),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:q}))},
_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(q){var Z=q.keyCode==19||q.keyCode==20||q.keyCode==45||q.keyCode==46||q.keyCode==144||q.keyCode==145||q.keyCode>32&&q.keyCode<41||q.keyCode>111&&q.keyCode<124;return!(q.keyCode==8||q.keyCode==9||q.keyCode==13||q.keyCode==27)&&!(q.charCode==0&&Z)},
_onKeypress:function(q){if(this.allowedPattern||this.inputElement.type==="number"){var Z=this._patternRegExp;if(Z&&!(q.metaKey||q.ctrlKey||q.altKey)){this._patternAlreadyChecked=!0;var w=String.fromCharCode(q.charCode);this._isPrintable(q)&&!Z.test(w)&&(q.preventDefault(),this._announceInvalidCharacter("Invalid character "+w+" not entered."))}}},
_checkPatternValidity:function(){var q=this._patternRegExp;if(!q)return!0;for(var Z=0;Z<this.inputElement.value.length;Z++)if(!q.test(this.inputElement.value[Z]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var q=this.inputElement.checkValidity();q&&(this.required&&this.bindValue===""?q=!1:this.hasValidator()&&(q=_.uJ.validate.call(this,this.bindValue)));this.invalid=!q;this.fire("iron-input-validate");return q},
_announceInvalidCharacter:function(q){this.fire("iron-announce",{text:q})},
_computeValue:function(q){return q}});var abv;var n49;var Q0v=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),E4J=Q0v&&Q0v[1]>=8;
_.$l({_template:function(){if(n49!==void 0)return n49;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;abv===void 0&&(abv=document.createElement("template"));var r=abv;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return n49=q},
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:[jXT,_.SQ,_.gL1,l52],_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 _.os(_.os(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var q=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,q-this._physicalCount)},set _virtualStart(q){q=this._clamp(q,0,this._maxVirtualStart);this.grid&&(q-=q%this._itemsPerRow);this._virtualStartVal=q},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(q){q%=this._physicalCount;q<0&&(q=this._physicalCount+q);this.grid&&(q-=q%this._itemsPerRow);this._physicalStartVal=q},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(q){this._physicalCountVal=q},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 q=this._firstVisibleIndexVal;if(q==null){var Z=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
q=this._iterateItems(function(w,r){Z+=this._getPhysicalSizeIncrement(w);if(Z>this._scrollPosition)return this.grid?r-r%this._itemsPerRow:r;if(this.grid&&this._virtualCount-1===r)return r-r%this._itemsPerRow})||0}return q},
get lastVisibleIndex(){var q=this._lastVisibleIndexVal;if(q==null){if(this.grid)q=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var Z=this._physicalTop+this._scrollOffset;this._iterateItems(function(w,r){Z<this._scrollBottom&&(q=r);Z+=this._getPhysicalSizeIncrement(w)})}this._lastVisibleIndexVal=q}return q},
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,_.$c);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(q){this.style.webkitOverflowScrolling=q===this?"touch":"";this.style.overflowY=q===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.$c)},
updateViewportBoundaries:function(){var q=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(q["padding-top"],10);this._isRTL=q.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var q=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),Z=q-this._scrollPosition,w=Z>=0;this._scrollPosition=q;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(Z)>this._physicalSize&&this._physicalSize>0?(Z-=this._scrollOffset,w=Math.round(Z/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=w,this._physicalStart+=w,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(q=this._getReusables(w),w?(this._physicalTop=q.physicalTop,this._virtualStart+=q.indexes.length,this._physicalStart+=q.indexes.length):(this._virtualStart=this._virtualStart-q.indexes.length,this._physicalStart=this._physicalStart-q.indexes.length),this._update(q.indexes,w?null:q.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),b9))},
_getReusables:function(q){var Z=[],w=this._hiddenContentSize*this._ratio,r=this._virtualStart,Y=this._virtualEnd,C=this._physicalCount,d=this._physicalTop+this._scrollOffset;var O=this._physicalBottom+this._scrollOffset;var H=this._scrollPosition,L=this._scrollBottom;if(q){var S=this._physicalStart;O=H-d}else S=this._physicalEnd,O-=L;for(;;){var v=this._getPhysicalSizeIncrement(S);O-=v;if(Z.length>=C||O<=w)break;if(q){if(Y+Z.length+1>=this._virtualCount)break;if(d+v>=H-this._scrollOffset)break;Z.push(S);
d+=v;S=(S+1)%C}else{if(r-Z.length<=0)break;if(d+this._physicalSize-v<=L)break;Z.push(S);d-=v;S=S===0?C-1:S-1}}return{indexes:Z,physicalTop:d-this._scrollOffset}},
_update:function(q,Z){if(!(q&&q.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(q);this._updateMetrics(q);if(Z)for(;Z.length;)q=Z.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(q);this._positionItems();this._updateScrollerSize()}},
_createPool:function(q){this._ensureTemplatized();var Z,w=Array(q);for(Z=0;Z<q;Z++){var r=this.stamp(null);w[Z]=r.root.querySelector("*");this._itemsParent.appendChild(r.root)}return w},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(q){q=this._clamp(this._physicalCount+q,3,this._virtualCount-this._virtualStart);q=this._convertIndexToCompleteRow(q);if(this.grid){var Z=q%this._itemsPerRow;Z&&q-Z<=this._physicalCount&&(q+=this._itemsPerRow);q-=Z}q-=this._physicalCount;Z=Math.round(this._physicalCount*.5);if(!(q<0)){if(q>0){Z=window.performance.now();[].push.apply(this._physicalItems,this._createPool(q));for(var w=0;w<q;w++)this._physicalSizes.push(0);this._physicalCount+=q;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=q);this._update();this._templateCost=(window.performance.now()-Z)/q;Z=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||Z===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,Z)),bz9):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,Z),b9))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var q=this._getReusables(!0);this._physicalTop=q.physicalTop;this._virtualStart+=q.indexes.length;this._physicalStart+=q.indexes.length;this._update(q.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 q={__key__:!0};q[this.as]=!0;q[this.indexAs]=!0;q[this.selectedAs]=!0;q.tabIndex=!0;this._instanceProps=q;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(q,Z){typeof Z!=="undefined"&&(this.notifyResize(),_.g2(),q&&this._updateGridMetrics())},
_itemsChanged:function(q){if(q.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,
_.$c);else if(q.path==="items.splices"){this._adjustVirtualIndex(q.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(q.value.indexSplices.some(function(w){return w.addedCount>0||w.removed.length>0})){var Z=this._getActiveElement();
this.contains(Z)&&Z.blur()}q=q.value.indexSplices.some(function(w){return w.index+w.addedCount>=this._virtualStart&&w.index<=this._virtualEnd},this);
this._isClientFull()&&!q||this._debounce("_render",this._render,_.$c)}else q.path!=="items.length"&&this._forwardItemPath(q.path,q.value)},
_forwardItemPath:function(q,Z){q=q.slice(6);var w=q.indexOf(".");w===-1&&(w=q.length);var r,Y=this.modelForElement(this._offscreenFocusedItem),C=parseInt(q.substring(0,w),10);if(r=this._isIndexRendered(C)){var d=this._getPhysicalIndex(C);var O=this.modelForElement(this._physicalItems[d])}else Y&&(O=Y);O&&O[this.indexAs]===C&&(q=q.substring(w+1),q=this.as+(q?"."+q:""),O._setPendingPropertyOrPath(q,Z,!1,!0),O._flushProperties&&O._flushProperties(),r&&(this._updateMetrics([d]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(q){q.forEach(function(Z){Z.removed.forEach(this._removeItem,this);Z.index<this._virtualStart&&(Z=Math.max(Z.addedCount-Z.removed.length,Z.index-this._virtualStart),this._virtualStart+=Z,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=Z))},this)},
_removeItem:function(q){this.$.selector.deselect(q);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===q&&this._removeFocusedItem()},
_iterateItems:function(q,Z){var w,r;if(arguments.length===2&&Z)for(r=0;r<Z.length;r++){var Y=Z[r];var C=this._computeVidx(Y);if((w=q.call(this,Y,C))!=null)return w}else{Y=this._physicalStart;for(C=this._virtualStart;Y<this._physicalCount;Y++,C++)if((w=q.call(this,Y,C))!=null)return w;for(Y=0;Y<this._physicalStart;Y++,C++)if((w=q.call(this,Y,C))!=null)return w}},
_computeVidx:function(q){return q>=this._physicalStart?this._virtualStart+(q-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+q},
_assignModels:function(q){this._iterateItems(function(Z,w){var r=this._physicalItems[Z],Y=this.items&&this.items[w];if(Y!=null){var C=this.modelForElement(r);C.__key__=null;this._forwardProperty(C,this.as,Y);this._forwardProperty(C,this.selectedAs,this.$.selector.isSelected(Y));this._forwardProperty(C,this.indexAs,w);this._forwardProperty(C,"tabIndex",this._focusedVirtualIndex===w?0:-1);this._physicalIndexForKey[C.__key__]=Z;C._flushProperties&&C._flushProperties(!0);r.removeAttribute("hidden")}else r.setAttribute("hidden",
"")},q)},
_updateMetrics:function(q){_.g2();var Z=0,w=0,r=this._physicalAverageCount,Y=this._physicalAverage;this._iterateItems(function(C){w+=this._physicalSizes[C];this._physicalSizes[C]=this._physicalItems[C].offsetHeight;Z+=this._physicalSizes[C];this._physicalAverageCount+=this._physicalSizes[C]?1:0},q);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(w=this._itemsPerRow===1?w:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+Z-w,this._itemsPerRow=1);this._physicalAverageCount!==r&&(this._physicalAverage=Math.round((Y*r+Z)/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 q=this._physicalTop;if(this.grid){var Z=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(w,r){var Y=Math.floor(r%this._itemsPerRow*this._itemWidth+Z);this._isRTL&&(Y*=-1);this.translate3d(Y+"px",q+"px",0,this._physicalItems[w]);this._shouldRenderNextRow(r)&&(q+=this._rowHeight)})}else this._iterateItems(function(w){this.translate3d(0,q+"px",0,this._physicalItems[w]);
q+=this._physicalSizes[w]})},
_getPhysicalSizeIncrement:function(q){return this.grid?this._computeVidx(q)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[q]},
_shouldRenderNextRow:function(q){return q%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var q=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(q!==0){this._physicalTop=this._physicalTop-q;var Z=this._scrollPosition;!E4J&&Z>0&&this._resetScrollPosition(Z-q)}},
_resetScrollPosition:function(q){this.scrollTarget&&q>=0&&(this._scrollPosition=this._scrollTop=q)},
_updateScrollerSize:function(q){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((q=(q=(q=q||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(q){return this.scrollToIndex(this.items.indexOf(q))},
scrollToIndex:function(q){if(!(typeof q!=="number"||q<0||q>this.items.length-1)&&(_.g2(),this._physicalCount!==0)){q=this._clamp(q,0,this._virtualCount-1);if(!this._isIndexRendered(q)||q>=this._maxVirtualStart)this._virtualStart=this.grid?q-this._itemsPerRow*2:q-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var Z=this._physicalStart,w=this._virtualStart,r=0,Y=this._hiddenContentSize;w<q&&
r<=Y;)r+=this._getPhysicalSizeIncrement(Z),Z=(Z+1)%this._physicalCount,w++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+r);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)},_.$c)},
selectItem:function(q){return this.selectIndex(this.items.indexOf(q))},
selectIndex:function(q){if(!(q<0||q>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(q)){var Z=this.modelForElement(this._physicalItems[this._getPhysicalIndex(q)]);Z&&(Z[this.selectedAs]=!0);this.updateSizeForIndex(q)}this.$.selector.selectIndex(q)}},
deselectItem:function(q){return this.deselectIndex(this.items.indexOf(q))},
deselectIndex:function(q){q<0||q>=this._virtualCount||(this._isIndexRendered(q)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(q)])[this.selectedAs]=!1,this.updateSizeForIndex(q)),this.$.selector.deselectIndex(q))},
toggleSelectionForItem:function(q){return this.toggleSelectionForIndex(this.items.indexOf(q))},
toggleSelectionForIndex:function(q){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(q):this.$.selector.isSelected(this.items[q]))?this.deselectIndex(q):this.selectIndex(q)},
clearSelection:function(){this._iterateItems(function(q){this.modelForElement(this._physicalItems[q])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(q){(q?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(q){var Z=this.modelForElement(q.target);if(Z){var w=_.os(q).path[0];q=this._getActiveElement();var r=this._physicalItems[this._getPhysicalIndex(Z[this.indexAs])];if(w.localName!=="input"&&w.localName!=="button"&&w.localName!=="select"){w=Z.tabIndex;Z.tabIndex=-100;var Y=q?q.tabIndex:-1;Z.tabIndex=w;q&&r!==q&&r.contains(q)&&Y!==-100||this.toggleSelectionForItem(Z[this.as])}}},
_multiSelectionChanged:function(q){this.clearSelection();this.$.selector.multi=q},
updateSizeForItem:function(q){return this.updateSizeForIndex(this.items.indexOf(q))},
updateSizeForIndex:function(q){if(!this._isIndexRendered(q))return null;this._updateMetrics([this._getPhysicalIndex(q)]);this._positionItems();return null},
_manageFocus:function(){var q=this._focusedVirtualIndex;q>=0&&q<this._virtualCount?this._isIndexRendered(q)?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(q){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(q/this._itemsPerRow)*this._itemsPerRow:q},
_isIndexRendered:function(q){return q>=this._virtualStart&&q<=this._virtualEnd},
_isIndexVisible:function(q){return q>=this.firstVisibleIndex&&q<=this.lastVisibleIndex},
_getPhysicalIndex:function(q){return(this._physicalStart+(q-this._virtualStart))%this._physicalCount},
focusItem:function(q){this._focusPhysicalItem(q)},
_focusPhysicalItem:function(q){if(!(q<0||q>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(q)||this.scrollToIndex(q);var Z=this._physicalItems[this._getPhysicalIndex(q)],w=this.modelForElement(Z),r;w.tabIndex=-100;Z.tabIndex===-100&&(r=Z);r||(r=_.os(Z).querySelector('[tabindex="-100"]'));w.tabIndex=0;this._focusedVirtualIndex=q;r&&r.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 q=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var Z=this.stamp(null);this._focusBackfillItem=Z.root.querySelector("*");this._itemsParent.appendChild(Z.root)}this._offscreenFocusedItem=this._physicalItems[q];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[q]=this._focusBackfillItem;this._focusedPhysicalIndex=q;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var q=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),Z=this._physicalItems[q];if(Z){var w=this.modelForElement(Z),r=this.modelForElement(this._offscreenFocusedItem);w[this.as]===r[this.as]?(this._focusBackfillItem=Z,w.tabIndex=-1,this._physicalItems[q]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(q){q=this.modelForElement(q.target);var Z=this.modelForElement(this._focusedItem),w=this._offscreenFocusedItem!==null,r=this._focusedVirtualIndex;q&&(Z===q?this._isIndexVisible(r)||this.scrollToIndex(r):(this._restoreFocusedItem(),Z&&(Z.tabIndex=-1),q.tabIndex=0,this._focusedVirtualIndex=r=q[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(r),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],w&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(q){switch(q.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&q.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&&q.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(q)}},
_clamp:function(q,Z,w){return Math.min(w,Math.max(Z,q))},
_debounce:function(q,Z,w){this._debouncers=this._debouncers||{};this._debouncers[q]=_.fj(this._debouncers[q],w,Z.bind(this));_.D7(this._debouncers[q])},
_forwardProperty:function(q,Z,w){q._setPendingProperty(Z,w)},
_forwardHostPropV2:function(q,Z){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(w){w&&this.modelForElement(w).forwardHostProp(q,Z)},this)},
_notifyInstancePropV2:function(q,Z,w){KB8(this.as,Z)&&(q=q[this.indexAs],Z==this.as&&(this.items[q]=w),this.notifyPath(Zw(this.as,"items."+q,Z),w))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(q,Z,w){Z.indexOf(this.as+".")===0&&this.notifyPath("items."+q.__key__+"."+Z.slice(this.as.length+1),w)},
_forwardParentPath:function(q,Z){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(w){w&&this.modelForElement(w).notifyPath(q,Z)},this)},
_forwardParentProp:function(q,Z){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(w){w&&(this.modelForElement(w)[q]=Z)},this)},
_getActiveElement:function(){var q=this._itemsParent.node.domHost;return _.os(q?q.root:document).activeElement},
_scrollTargetChanged:function(q,Z){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(Z)if(q==="document")this.scrollTarget=this._doc;else if(typeof q==="string"){var w,r;this.scrollTarget=(Z=(r=(w=this.domHost)==null?void 0:w.polymerController)!=null?r:this.domHost)&&Z.$?Z.$[q]:_.os(this.ownerDocument).querySelector("#"+q)}else this._isValidScrollTarget()&&(this._oldScrollTarget=q,this._toggleScrollListener(this._shouldHaveListener,q))}});var xd7;var T11;var Udh=function(q,Z,w,r){q-=w;Z-=r;return Math.sqrt(q*q+Z*Z)},kfp=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
znX.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var Bk2=function(q){q.maxRadius=0;q.mouseDownStart=0;q.mouseUpStart=0;q.xStart=0;q.yStart=0;q.xEnd=0;q.yEnd=0;q.containerMetrics=new znX(q.element)};
ag1.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var q=kfp()-this.mouseDownStart;this.mouseUpStart&&(q-=this.mouseUpElapsed);return q},get mouseUpElapsed(){return this.mouseUpStart?kfp()-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 q=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(q*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-q/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<.01&&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 q=this.radius/(this.containerMetrics.size/2);var Z=this.xNow-this.containerMetrics.width/2;var w=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+Z+"px, "+w+"px)";this.waveContainer.style.transform="translate3d("+Z+"px, "+w+"px, 0)";this.wave.style.webkitTransform="scale("+q+","+q+")";this.wave.style.transform="scale3d("+q+","+q+",1)"},
downAction:function(q){var Z=this.containerMetrics.width/2,w=this.containerMetrics.height/2;Bk2(this);this.mouseDownStart=kfp();this.center?(this.xStart=Z,this.yStart=w):(this.xStart=q?q.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=q?q.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=Z,this.yEnd=w);q=this.containerMetrics;Z=this.xStart;w=this.yStart;this.maxRadius=Math.max(Udh(Z,w,0,0),Udh(Z,w,
q.width,0),Udh(Z,w,0,q.height),Udh(Z,w,q.width,q.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=kfp())},
remove:function(){_.os(_.os(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.$l({_template:function(){if(T11!==void 0)return T11;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;xd7===void 0&&(xd7=document.createElement("template"));var r=xd7;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return T11=q},
is:"tp-yt-paper-ripple",behaviors:[_.Pt],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(){_.os(this).parentNode.nodeType==11?this.keyEventTarget=_.os(this).getOwnerRoot().host:this.keyEventTarget=_.os(this).parentNode;var q=this.keyEventTarget;this.listen(q,"up","uiUpAction");this.listen(q,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(q){q.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var q=0;q<this.ripples.length;++q)if(!this.ripples[q].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(q){this.noink||this.downAction(q)},
downAction:function(q){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(q),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(q){this.noink||this.upAction(q)},
upAction:function(q){this.holdDown||(this.ripples.forEach(function(Z){Z.upAction(q)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var q=0;q<this.ripples.length;++q){var Z=this.ripples[q];Z.isOpacityFullyDecayed&&!Z.isRestingAtMaxRadius&&this.removeRipple(Z)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var q=new ag1(this);_.os(this.$.waves).appendChild(q.waveContainer);this.$.background.style.backgroundColor=q.color;this.ripples.push(q);this._setAnimating(!0);return q},
removeRipple:function(q){var Z=this.ripples.indexOf(q);Z<0||(this.ripples.splice(Z,1),q.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var q;for(q=0;q<this.ripples.length;++q){var Z=this.ripples[q];Z.draw();this.$.background.style.opacity=Z.outerOpacity;Z.isOpacityFullyDecayed&&!Z.isRestingAtMaxRadius&&this.removeRipple(Z)}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(q,Z){Z!==void 0&&(q?this.downAction():this.upAction())}});var UZ={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(q){Vp._downHandler.call(this,q);this.pressed&&this.ensureRipple(q)},
ensureRipple:function(q){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var Z=this._rippleContainer||this.root;Z&&_.os(Z).appendChild(this._ripple);if(q){Z=_.os(this._rippleContainer||this);var w=_.os(q).rootTarget;Z.deepContains(w)&&this._ripple.uiDownAction(q)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(q){this.hasRipple()&&(this._ripple.noink=q)}};var K12={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 q=1;this.disabled?q=0:this.active||this.pressed?q=4:this.receivedFocusFromKeyboard&&(q=3);this._setElevation(q)},
_computeKeyboardClass:function(q){this.toggleClass("keyboard-focus",q)},
_spaceKeyDownHandler:function(q){Vp._spaceKeyDownHandler.call(this,q);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(q){Vp._spaceKeyUpHandler.call(this,q);this.hasRipple()&&this._ripple.uiUpAction()}},s0W=[lvp,
_.dl,UZ,K12];_.Ib9={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(q){q&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=q)},
_createRipple:function(){var q=UZ._createRipple();q.id="ink";q.setAttribute("center","");q.classList.add("circle");return q}};
_.cWD=[lvp,_.dl,UZ,_.Ib9];_.Ml7=[_.cWD,Xx9,{_checkedChanged:function(){px7._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){UZ._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var F1p;var N1J;var lbv=function(){};
_.e=lbv.prototype;_.e.registered=function(){};
_.e.addOwnKeyBinding=function(){};
_.e.removeOwnKeyBindings=function(){};
_.e.keyboardEventMatchesKeys=function(){};
_.e._collectKeyBindings=function(){};
_.e._prepKeyBindings=function(){};
_.e._addKeyBinding=function(){};
_.e._resetKeyEventListeners=function(){};
_.e._listenKeyEventListeners=function(){};
_.e._unlistenKeyEventListeners=function(){};
_.e._onKeyBindingEvent=function(){};
_.e._triggerKeyHandler=function(){};
_.e._tapHandler=function(){};
_.e._focusChanged=function(){};
_.e._detectKeyboardFocus=function(){};
_.e._userActivate=function(){};
_.e._upHandler=function(){};
_.e._asyncClick=function(){};
_.e._pressedChanged=function(){};
_.e._ariaActiveAttributeChanged=function(){};
_.e._activeChanged=function(){};
_.e._controlStateChanged=function(){};
_.e._changedButtonState=function(){};
_.e._focusBlurHandler=function(){};
_.e._disabledChanged=function(){};
_.e._changedControlState=function(){};
_.e._buttonStateChanged=function(){};
_.e._downHandler=function(){};
_.e.ensureRipple=function(){};
_.e.getRipple=function(){};
_.e.hasRipple=function(){};
_.e._createRipple=function(){};
_.e._noinkChanged=function(){};
_.e._computeKeyboardClass=function(){};
_.e._spaceKeyDownHandler=function(){};
_.e._spaceKeyUpHandler=function(){};
_.e._setPressed=function(){};
_.e._setPointerDown=function(){};
_.e._setReceivedFocusFromKeyboard=function(){};
_.e._setFocused=function(){};
_.e._setElevation=function(){};
lbv=_.$l({_template:function(){if(N1J!==void 0)return N1J;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
var Z=q.content,w=Z.insertBefore;F1p===void 0&&(F1p=document.createElement("template"));var r=F1p;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return N1J=q},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[s0W],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?K12._calculateElevation.apply(this):this._setElevation(0)}});var Gf2;var pHW;var XHp={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(q){_.b("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(q)},
_onDialogClickWrapped:function(q){_.b("dialog_behavior_no_tap_killswitch")||this._onDialogClick(q)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(q,Z){Z&&(q?(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))},
_updateClosingReasonConfirmed:function(q){this.closingReason=this.closingReason||{};this.closingReason.confirmed=q},
_onDialogClick:function(q){for(var Z=_.os(q).path,w=0,r,Y=Z.indexOf((r=this.hostElement)!=null?r:this);w<Y;w++)if(r=Z[w],r.hasAttribute&&(r.hasAttribute("dialog-dismiss")||r.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(r.hasAttribute("dialog-confirm"));this.close();q.stopPropagation();break}}},mdp=[_.Tv,
XHp];var AW7=document.createElement("template");_.a(AW7,'<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(AW7.content);var fbp=document.createElement("template");_.a(fbp,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(fbp.content);_.$l({_template:function(){if(pHW!==void 0)return pHW;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
var Z=q.content,w=Z.insertBefore;Gf2===void 0&&(Gf2=document.createElement("template"));var r=Gf2;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return pHW=q},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[mdp,qz7],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 Ddv;var hDe;_.$l({_template:function(){if(hDe!==void 0)return hDe;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;Ddv===void 0&&(Ddv=document.createElement("template"));var r=Ddv;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return hDe=q},
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 q,Z,w;if(((q=window.ShadyDOM)==null?void 0:q.noPatch)!==!0&&((Z=window.ShadyDOM)==null?void 0:Z.noPatch)!=="on-demand"||((w=this.__shady_parentNode)==null?void 0:w.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(XHp)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var yWm=_.Fr(['<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>']),id9=_.m9X(yWm);id9.setAttribute("style","display: none;");document.head.appendChild(id9.content);var g4D;var qgp;var ZcW;var wIe;_.$l({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[vt],configure:function(q){var Z=q.node,w=Z.getBoundingClientRect().height;return this._effect=new KeyframeEffect(Z,[{height:w/2+"px"},{height:w+"px"}],this.timingFromConfig(q))}});
_.$l({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[vt],configure:function(q){var Z=q.node,w=Z.getBoundingClientRect().width;return this._effect=new KeyframeEffect(Z,[{width:w/2+"px"},{width:w+"px"}],this.timingFromConfig(q))}});
_.$l({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[vt],configure:function(q){var Z=q.node,w=Z.getBoundingClientRect().width;return this._effect=new KeyframeEffect(Z,[{width:w+"px"},{width:w-w/20+"px"}],this.timingFromConfig(q))}});
_.$l({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[vt],configure:function(q){var Z=q.node,w=Z.getBoundingClientRect().height;this.setPrefixedProperty(Z,"transformOrigin","0 0");return this._effect=new KeyframeEffect(Z,[{height:w+"px",transform:"translateY(0)"},{height:w/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(q))}});var kJ={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},rzp=function(){};
_.e=rzp.prototype;_.e.registered=function(){};
_.e.addOwnKeyBinding=function(){};
_.e.removeOwnKeyBindings=function(){};
_.e.keyboardEventMatchesKeys=function(){};
_.e._collectKeyBindings=function(){};
_.e._prepKeyBindings=function(){};
_.e._addKeyBinding=function(){};
_.e._resetKeyEventListeners=function(){};
_.e._listenKeyEventListeners=function(){};
_.e._unlistenKeyEventListeners=function(){};
_.e._onKeyBindingEvent=function(){};
_.e._triggerKeyHandler=function(){};
_.e._focusBlurHandler=function(){};
_.e._changedControlState=function(){};
_.e._setFocused=function(){};
rzp=_.$l({_template:function(){if(wIe!==void 0)return wIe;var q=document.createElement("template");_.a(q,'\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]]" 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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;ZcW===void 0&&(ZcW=document.createElement("template"));var r=ZcW;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return wIe=q},
is:"tp-yt-paper-menu-button",behaviors:[_.Pt,_.dl],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:kJ.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:kJ.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:kJ.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}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var q=_.os(this.$.content).getDistributedNodes(),Z=0,w=q.length;Z<w;Z++)if(q[Z].nodeType===Node.ELEMENT_NODE)return q[Z]},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(q,Z){q?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):Z!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(q){_.dl._disabledChanged.apply(this,arguments);q&&this.opened&&this.close()},
__onIronOverlayCanceled:function(q){var Z=this.$.trigger;_.os(q.detail).path.indexOf(Z)>-1&&q.preventDefault()}});
Object.keys(kJ).forEach(function(q){rzp[q]=kJ[q]});var YgD=_.OZ.IronButtonState,$YD=(0,_.PR)(HTMLElement);
_.$l({_template:function(){if(qgp!==void 0)return qgp;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;g4D===void 0&&(g4D=document.createElement("template"));var r=g4D;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return qgp=q},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[YgD,_.dl,UZ,_.Ht,_.uJ],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(q){var Z=(0,_.Cy)(this);Z.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:q});Z.shadowRoot.appendChild(q);return $YD.prototype._attachDom.call(this,q)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var q=this.contentElement;q&&q.selectedItem&&this._setSelectedItem(q.selectedItem)},
get contentElement(){for(var q=_.os(this.$.content).getDistributedNodes(),Z=0,w=q.length;Z<w;Z++)if(q[Z].nodeType===Node.ELEMENT_NODE)return q[Z]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(q){this._setSelectedItem(q.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(q){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q)===this&&this.open()},
_selectedItemChanged:function(q){var Z="";q?Z=q.label||q.getAttribute("label")||q.textContent.trim():Z="";this.value=Z;this._setSelectedItemLabel(Z)},
_computeMenuVerticalOffset:function(q,Z){return Z?Z:q?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var q=this.opened?"true":"false",Z=this.contentElement;Z&&Z.setAttribute("aria-expanded",q)},
_computeLabelClass:function(q,Z,w){var r="label";if(q)w&&(r+=" label-is-hidden");else if(w||Z)r+=" label-is-floating";return r},
_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 eL7;var CYK;_.$l({is:"tp-yt-paper-icon-button",_template:function(){if(CYK!==void 0)return CYK;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;eL7===void 0&&(eL7=document.createElement("template"));var r=eL7;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return CYK=q},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.cWD],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(q,Z){var w=this.getAttribute("aria-label");w&&Z!=w||this.setAttribute("aria-label",q)}});var PY2;var dYm;_.Kk=[lvp,_.dl,{hostAttributes:{role:"option",tabindex:"0"}}];_.$l({_template:function(){if(dYm!==void 0)return dYm;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;PY2===void 0&&(PY2=document.createElement("template"));var r=PY2;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return dYm=q},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.Kk]});var VFv;var OcJ;var Hc9={attached:function(){this.fire("addon-attached")},
update:function(){}};var Wgg=1,oZ7=1,uHm=1,Lgp=[_.dl,_.Pt,{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();!FJ&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(q,Z){q?q=q+" "+Z:q=Z;return q},
_onAddonAttached:function(q){q=_.os(q).rootTarget;if(q.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,q.id);else{var Z="paper-input-add-on-"+oZ7++;q.id=Z;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,Z)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(q){_.dl._focusBlurHandler.call(this,q);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var q=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",q);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(q){try{var Z=this.inputElement.selectionStart;this.value=q;this.inputElement.selectionStart=Z;this.inputElement.selectionEnd=Z}catch(w){this.value=q}},
_computeAlwaysFloatLabel:function(q,Z){return Z||q},
_updateAriaLabelledBy:function(){var q=_.os(this.root).querySelector("label");if(q){if(q.id)var Z=q.id;else Z="paper-input-label-"+Wgg++,q.id=Z;this._ariaLabelledBy=Z}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+uHm++)},
_onChange:function(q){this.shadowRoot&&this.fire(q.type,{sourceEvent:q},{node:this,bubbles:q.bubbles,cancelable:q.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var q=document.activeElement;q instanceof HTMLElement&&q!==document.body&&q!==document.documentElement||this._focusableElement.focus()}}}];var Sgg;var vZm;_.$l({_template:function(){if(vZm!==void 0)return vZm;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;Sgg===void 0&&(Sgg=document.createElement("template"));var r=Sgg;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return vZm=q},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[Hc9],properties:{_charCounterStr:{type:String,value:"0"}},update:function(q){if(q.inputElement){q.value=q.value||"";var Z=q.value.toString().length.toString();q.inputElement.hasAttribute("maxlength")&&(Z+="/"+q.inputElement.getAttribute("maxlength"));this._charCounterStr=Z}}});var jl9;var tFX;_.$l({_template:function(){if(tFX!==void 0)return tFX;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;jl9===void 0&&(jl9=document.createElement("template"));var r=jl9;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return tFX=q},
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 hY(this.attrForValue)},get _inputElement(){return _.os(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(q){this._addons||(this._addons=[]);q=q.target;this._addons.indexOf(q)===-1&&(this._addons.push(q),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(q){this._handleValueAndAutoValidate(q.target)},
_onValueChanged:function(q){var Z=q.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,Z.value===void 0||Z.value===""))return;this._handleValueAndAutoValidate(q.target)},
_handleValue:function(q){var Z=this._inputElementValue;Z||Z===0||q.type==="number"&&!q.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:q,value:Z,invalid:this.invalid})},
_handleValueAndAutoValidate:function(q){this.autoValidate&&q&&(this.invalid=!(q.validate?q.validate(this._inputElementValue):q.checkValidity()));this._handleValue(q)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(q){if(this._addons)for(var Z,w=0;Z=this._addons[w];w++)Z.update(q)},
_computeInputContentClass:function(q,Z,w,r,Y){var C="input-content";q?(Y&&(C+=" label-is-hidden"),r&&!this.noUnfloatedLabelError&&(C+=" is-invalid")):(q=this.querySelector("label"),Z||Y?(C+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",r?C+=" is-invalid":w&&(C+=" label-is-highlighted")):(q&&(this.$.labelAndInputContainer.style.position="relative"),r&&!this.noUnfloatedLabelError&&(C+=" is-invalid")));w&&(C+=" focused");return C},
_computeUnderlineClass:function(q,Z){var w="underline";Z?w+=" is-invalid":q&&(w+=" is-highlighted");return w},
_computeAddOnContentClass:function(q,Z){var w="add-on-content";Z?w+=" is-invalid":q&&(w+=" is-highlighted");return w}});var RL9;var bcv;_.$l({_template:function(){if(bcv!==void 0)return bcv;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;RL9===void 0&&(RL9=document.createElement("template"));var r=RL9;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return bcv=q},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[Hc9],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(q){this._setInvalid(q.invalid)}});_.$l({is:"tp-yt-paper-input",_template:function(){if(OcJ!==void 0)return OcJ;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;VFv===void 0&&(VFv=document.createElement("template"));var r=VFv;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return OcJ=q},
behaviors:[Lgp,_.Ht],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 Jzh;var zL1;_.$l({_template:function(){if(zL1!==void 0)return zL1;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=
q.content,w=Z.insertBefore;Jzh===void 0&&(Jzh=document.createElement("template"));var r=Jzh;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return zL1=q},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.Kk]});var BSe;var a8g;_.$l({_template:function(){if(a8g!==void 0)return a8g;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
var Z=q.content,w=Z.insertBefore;BSe===void 0&&(BSe=document.createElement("template"));var r=BSe;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return a8g=q},
is:"tp-yt-paper-item-body"});var nZ7;var Qlp;var EZD=function(){};
_.e=EZD.prototype;_.e.indexOf=function(){};
_.e.selectPrevious=function(){};
_.e.selectNext=function(){};
_.e.selectIndex=function(){};
_.e.forceSynchronousItemUpdate=function(){};
_.e._checkFallback=function(){};
_.e._addListener=function(){};
_.e._removeListener=function(){};
_.e._activateEventChanged=function(){};
_.e._updateItems=function(){};
_.e._selectSelected=function(){};
_.e._filterItem=function(){};
_.e._valueToItem=function(){};
_.e._valueToIndex=function(){};
_.e._indexToValue=function(){};
_.e._valueForItem=function(){};
_.e._observeItems=function(){};
_.e._itemActivate=function(){};
_.e.multiChanged=function(){};
_.e._updateAttrForSelected=function(){};
_.e._updateSelected=function(){};
_.e._selectMulti=function(){};
_.e._selectionChange=function(){};
_.e._toggleSelected=function(){};
_.e._valuesToItems=function(){};
_.e.registered=function(){};
_.e.addOwnKeyBinding=function(){};
_.e.removeOwnKeyBindings=function(){};
_.e.keyboardEventMatchesKeys=function(){};
_.e._collectKeyBindings=function(){};
_.e._prepKeyBindings=function(){};
_.e._addKeyBinding=function(){};
_.e._resetKeyEventListeners=function(){};
_.e._listenKeyEventListeners=function(){};
_.e._unlistenKeyEventListeners=function(){};
_.e._onKeyBindingEvent=function(){};
_.e._triggerKeyHandler=function(){};
_.e.select=function(){};
_.e._resetTabindices=function(){};
_.e._updateMultiselectable=function(){};
_.e._focusWithKeyboardEvent=function(){};
_.e._clearSearchText=function(){};
_.e._focusPrevious=function(){};
_.e._focusNext=function(){};
_.e._applySelection=function(){};
_.e._focusedItemChanged=function(){};
_.e._onIronItemsChanged=function(){};
_.e._onShiftTabDown=function(){};
_.e._onFocus=function(){};
_.e._onUpKey=function(){};
_.e._onDownKey=function(){};
_.e._onEscKey=function(){};
_.e._onKeydown=function(){};
_.e._activateHandler=function(){};
_.e._disabledChanged=function(){};
_.e._setSelectedItem=function(){};
_.e._setItems=function(){};
_.e._setSelectedItems=function(){};
_.e._setFocusedItem=function(){};
EZD=_.$l({_template:function(){if(Qlp!==void 0)return Qlp;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
var Z=q.content,w=Z.insertBefore;nZ7===void 0&&(nZ7=document.createElement("template"));var r=nZ7;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return Qlp=q},
is:"tp-yt-paper-listbox",behaviors:[DAe],hostAttributes:{role:"listbox"}});var xYJ;var TSp;var UY7={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(q,Z){return[q||Z?"active":"",Z?"cooldown":""].join(" ")},
__activeChanged:function(q,Z){this.__setAriaHidden(!q);this.__coolingDown=!q&&Z},
__altChanged:function(q){this.setAttribute("aria-label",q||"loading")},
__setAriaHidden:function(q){q?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.$l({_template:function(){if(TSp!==void 0)return TSp;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;xYJ===void 0&&(xYJ=document.createElement("template"));var r=xYJ;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return TSp=q},
is:"tp-yt-paper-spinner",behaviors:[UY7]});var kPW;var KgX;_.$l({_template:function(){if(KgX!==void 0)return KgX;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;kPW===void 0&&(kPW=document.createElement("template"));var r=kPW;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return KgX=q},
is:"tp-yt-paper-spinner-lite",behaviors:[UY7]});var slg;var I8D;_.$l({_template:function(){if(I8D!==void 0)return I8D;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;slg===void 0&&(slg=document.createElement("template"));var r=slg;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return I8D=q},
is:"tp-yt-paper-tab",behaviors:[_.dl,_.OZ.IronButtonState,UZ],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 q=_.os(this).parentNode;return!!q&&!!q.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(q){if(this.link){var Z=this.queryEffectiveChildren("a");Z&&q.target!==Z&&Z.click()}}});var czX;var MFX;var FgJ=_.Fr(['<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>']),NSm=_.m9X(FgJ);document.head.appendChild(NSm.content);_.$l({_template:function(){if(MFX!==void 0)return MFX;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;czX===void 0&&(czX=document.createElement("template"));var r=czX;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return MFX=q},
is:"tp-yt-paper-tabs",behaviors:[_.SQ,_.yLe],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(q){_.os(this).querySelectorAll("tp-yt-paper-tab").forEach(q?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(q){q.setAttribute("noink","")},
_removeNoinkAttribute:function(q){q.removeAttribute("noink")},
_computeScrollButtonClass:function(q,Z,w,r){return!Z||w?"hidden":q?r?"hidden":"not-visible":""},
_computeTabsContentClass:function(q,Z){var w="tabs-content";q&&(w+=" scrollable");if(!q||Z)w+=" fit-container";return w},
_computeSelectionBarClass:function(q,Z){var w="selection-bar";q?w+=" hidden":Z&&(w+=" align-bottom");return w},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(q){return""+q},
_onIronSelect:function(q){this._tabChanged(q.detail.item,this._previousTab);this._previousTab=q.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();_.Lk._activateHandler.apply(this,arguments)},
_scheduleActivation:function(q,Z){this._pendingActivationItem=q;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,Z)},
_delayedActivationHandler:function(){var q=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;q.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(q){q.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(q,Z){this.scrollable&&this._affectScroll(Z&&-Z.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(q){this.$.tabsContainer.scrollLeft+=q;q=this.$.tabsContainer.scrollLeft;this._leftHidden=q===0||this.hideScrollButtons;this._rightHidden=q===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(q,Z){if(q){var w=this.$.tabsContent.getBoundingClientRect(),r=w.width,Y=q.getBoundingClientRect();w=Y.left-w.left;this._pos={width:this._calcPercent(Y.width,r),left:this._calcPercent(w,r)};if(this.noSlide||Z==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var C=Z.getBoundingClientRect();Z=this.items.indexOf(Z);q=this.items.indexOf(q);this.$.selectionBar.classList.add("expand");
q=Z<q;this._isRTL&&(q=!q);q?this._positionBar(this._calcPercent(Y.left+Y.width-C.left,r)-5,this._left):this._positionBar(this._calcPercent(C.left+C.width-Y.left,r)-5,this._calcPercent(w,r)+5);this.scrollable&&this._scrollToSelectedIfNeeded(Y.width,w)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(q,Z){Z-=this.$.tabsContainer.scrollLeft;Z<0?this.$.tabsContainer.scrollLeft+=Z:(Z+=q-this.$.tabsContainer.offsetWidth,Z>0&&(this.$.tabsContainer.scrollLeft+=Z))},
_calcPercent:function(q,Z){return 100*q/Z},
_positionBar:function(q,Z){q=q||0;Z=Z||0;this._width=q;this._left=Z;this.transform("translateX("+Z+"%) scaleX("+q/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var q=this.$.selectionBar.classList;q.contains("expand")?(q.remove("expand"),q.add("contract"),this._positionBar(this._pos.width,this._pos.left)):q.contains("contract")&&q.remove("contract")}});var l89;var GPm;_.$l({_template:function(){if(GPm!==void 0)return GPm;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;l89===void 0&&(l89=document.createElement("template"));var r=l89;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return GPm=q},
is:"tp-yt-paper-textarea",behaviors:[Lgp,_.Ht],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(q){this.$.input.textarea.selectionStart=q},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(q){this.$.input.textarea.selectionEnd=q},_ariaLabelledByChanged:function(q){this._focusableElement.setAttribute("aria-labelledby",q)},
_ariaDescribedByChanged:function(q){this._focusableElement.setAttribute("aria-describedby",q)},
get _focusableElement(){return this.inputElement.textarea}});var pIg;var XI1;/*

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 mYp=function(){};
_.e=mYp.prototype;_.e.addOwnKeyBinding=function(){};
_.e.removeOwnKeyBindings=function(){};
_.e.keyboardEventMatchesKeys=function(){};
_.e._collectKeyBindings=function(){};
_.e._prepKeyBindings=function(){};
_.e._addKeyBinding=function(){};
_.e._resetKeyEventListeners=function(){};
_.e._listenKeyEventListeners=function(){};
_.e._unlistenKeyEventListeners=function(){};
_.e._onKeyBindingEvent=function(){};
_.e._triggerKeyHandler=function(){};
_.e._tapHandler=function(){};
_.e._focusChanged=function(){};
_.e._detectKeyboardFocus=function(){};
_.e._userActivate=function(){};
_.e._upHandler=function(){};
_.e._spaceKeyDownHandler=function(){};
_.e._spaceKeyUpHandler=function(){};
_.e._asyncClick=function(){};
_.e._pressedChanged=function(){};
_.e._ariaActiveAttributeChanged=function(){};
_.e._activeChanged=function(){};
_.e._controlStateChanged=function(){};
_.e._changedButtonState=function(){};
_.e._focusBlurHandler=function(){};
_.e._disabledChanged=function(){};
_.e._changedControlState=function(){};
_.e._downHandler=function(){};
_.e.ensureRipple=function(){};
_.e.getRipple=function(){};
_.e.hasRipple=function(){};
_.e._noinkChanged=function(){};
_.e._focusedChanged=function(){};
_.e.registered=function(){};
_.e._invalidChanged=function(){};
_.e.hasValidator=function(){};
_.e.validate=function(){};
_.e._getValidity=function(){};
_.e._requiredChanged=function(){};
_.e._valueChanged=function(){};
_.e._checkedChanged=function(){};
_.e._buttonStateChanged=function(){};
_.e._setPressed=function(){};
_.e._setPointerDown=function(){};
_.e._setReceivedFocusFromKeyboard=function(){};
_.e._setFocused=function(){};
mYp=_.$l({is:"tp-yt-paper-toggle-button",_template:function(){if(XI1!==void 0)return XI1;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;pIg===void 0&&(pIg=document.createElement("template"));var r=pIg;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return XI1=q},
behaviors:[_.Ml7],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");_.I_(this,function(){_.R_(this,"pan-y")})},
_ontrack:function(q){q=q.detail;q.state==="start"?this._trackStart(q):q.state==="track"?this._trackMove(q):q.state==="end"&&this._trackEnd(q)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(q){q=q.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+q:q)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+q:q));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 q=UZ._createRipple();q.id="ink";q.setAttribute("recenters","");q.classList.add("circle","toggle-ink");return q}});var Azv;var f8h;_.$l({_template:function(){if(f8h!==void 0)return f8h;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;Azv===void 0&&(Azv=document.createElement("template"));var r=Azv;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return f8h=q},
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 q=_.os(this).parentNode,Z=_.os(this).getOwnerRoot(),w;this.for?w=_.os(Z).querySelector("#"+this.for):w=q.nodeType==Node.DOCUMENT_FRAGMENT_NODE?Z.host:q;return w},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(q){q==="entry"?this.show():q==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.os(this).textContent.trim()===""){for(var q=!0,Z=_.os(this).getEffectiveChildNodes(),w=0;w<Z.length;w++)if(Z[w].textContent.trim()!==""){q=!1;break}if(q)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 q=this.offset;this.marginTop!=14&&this.offset==14&&(q=this.marginTop);var Z=this.offsetParent.getBoundingClientRect(),w=this._target.getBoundingClientRect(),r=this.getBoundingClientRect(),Y=(w.width-r.width)/2,C=(w.height-r.height)/2,d=w.left-Z.left,O=w.top-Z.top;switch(this.position){case "top":var H=d+Y;var L=O-r.height-q;break;case "bottom":H=d+Y;L=O+w.height+q;break;case "left":H=d-r.width-q;L=O+C;break;case "right":H=d+w.width+
q,L=O+C}this.fitToVisibleBounds?(Z.left+H+r.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,H)+"px",this.style.right="auto"),Z.top+L+r.height>window.innerHeight?(this.style.bottom=Z.height+"px",this.style.top="auto"):(this.style.top=Math.max(-Z.top,L)+"px",this.style.bottom="auto")):(this.style.left=H+"px",this.style.top=L+"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(q){q!==500&&this.updateStyles({"--paper-tooltip-delay-in":q+"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(q){if(q==="entry"&&this.animationEntry!=="")return this.animationEntry;if(q==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[q]&&typeof this.animationConfig[q][0].name==="string"){if(this.animationConfig[q][0].timing&&this.animationConfig[q][0].timing.delay&&this.animationConfig[q][0].timing.delay!==0){var Z=this.animationConfig[q][0].timing.delay;q==="entry"?this.updateStyles({"--paper-tooltip-delay-in":Z+"ms"}):q==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":Z+
"ms"})}return this.animationConfig[q][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 DYW=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(DYW,_.XD);var hL1=_.qK(DYW,[0,_.NY]);var sZ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(sZ,_.XD);var yzJ=[3,4],icW=[5,6];var gZW=[0,yzJ,icW,_.dXm,-1,_.FH,_.V8v,-1,$j1,e8p];var qvh=_.qK(sZ,gZW),ZI1=_.Yv(gZW);var wrv=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(wrv,_.XD);var r$X=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(r$X,_.XD);var Yv9=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Yv9,_.XD);var $fK=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z($fK,_.XD);var ev9=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(ev9,_.XD);var ID=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(ID,_.XD);ID.prototype.getSource=function(){return _.Jz(this,1)};
ID.prototype.getMessage=function(){return _.bY(this,4)};
ID.prototype.getData=function(){return _.Xy(this,ev9,8)};var C4p=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(C4p,_.XD);var ct=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(ct,_.XD);var MI=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(MI,_.XD);var FW=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(FW,_.XD);FW.prototype.getUrl=function(){return _.bY(this,1)};
FW.prototype.setUrl=function(q){return _.uM(this,1,q)};
FW.prototype.hasUrl=function(){return _.Hy(_.VM(this,1))!=null};var P4m=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(P4m,_.XD);var dfg=[3];var Vzv=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Vzv,_.XD);var NI=function(q){var Z=new Vzv;return _.mh(Z,2,q)};
Vzv.prototype.getLanguage=function(){return BI(this,4,lJ)};
var OID=function(q){var Z=NI(1);return _.dr(Z,6,lJ,q)},lJ=[3,
4,5,6];var HIv=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(HIv,_.XD);var Gv=function(q){var Z=new HIv;return _.mh(Z,1,q)},pk=function(q,Z){return _.dr(q,2,W91,Z)},W91=[2,
3,4,5];var oA9=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(oA9,_.XD);var XW=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(XW,_.XD);var ubK=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(ubK,_.XD);var L9X=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(L9X,_.XD);var Sv1=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Sv1,_.XD);var vAD=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(vAD,_.XD);var mb=function(q){return _.Xy(q,MI,5)};var jrg=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(jrg,_.XD);jrg.prototype.getValue=function(){return tz(this,1)};var tz9=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(tz9,_.XD);var A4=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(A4,_.XD);A4.prototype.getMetadata=function(){return _.al(this,L9X,7,fk)};
A4.prototype.hasMetadata=function(){return _.HI(this,L9X,7,fk)};
var Rv1=_.nv1(A4),fk=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Di=function(q){this.JSC$9779_name_=q;this.files_=[];this.directories_=[];this.directoryMap_={}};
Di.prototype.getName=function(){return this.JSC$9779_name_};var yp=function(q,Z){this.callback_=Z;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new Di("");bI2(this,q,this.rootDirectory_);h4(this)},bI2=function(q,Z,w){for(var r=0;r<Z.length;r++){var Y=Z[r];
Y.isFile?(q.fileOps_++,Y.file((0,_.Lh)(q.handleFileSuccess_,q,w),(0,_.Lh)(q.handleFileError_,q))):q.unscannedDirectories_.push(new J$2(Y,w))}},h4=function(q){if(q.unscannedDirectories_.length>0&&q.directoryOps_<5&&!q.hasError_){q.directoryOps_++;
var Z=q.unscannedDirectories_.shift(),w=Z.entry,r=new Di(w.name);Z=Z.parent;Z.directoryMap_[r.getName()]=r;Z.directories_.push(r);w=w.createReader();w.readEntries((0,_.Lh)(q.handleDirectorySuccess_,q,w,r),(0,_.Lh)(q.handleDirectoryError_,q))}q.directoryOps_!=0||q.fileOps_!=0||q.unscannedDirectories_.length!=0&&!q.hasError_||q.callback_(q.rootDirectory_.files_,q.rootDirectory_.directories_,q.hasError_)};
yp.prototype.handleDirectorySuccess_=function(q,Z,w){bI2(this,w,Z);w.length==0?(this.directoryOps_--,h4(this)):q.readEntries((0,_.Lh)(this.handleDirectorySuccess_,this,q,Z),(0,_.Lh)(this.handleDirectoryError_,this))};
yp.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;h4(this)};
yp.prototype.handleFileSuccess_=function(q,Z){q.files_.push(Z);this.fileOps_--;h4(this)};
yp.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;h4(this)};
var J$2=function(q,Z){this.entry=q;this.parent=Z};var iJ=function(q){_.V8.call(this);_.Yc(q,"drop",this.onObjectsDropped_,!1,this);_.Yc(q,"dragenter",this.onFilesDragged_,!1,this);_.Yc(q,"dragover",this.onFilesDragged_,!1,this);_.Yc(q,"dragleave",this.onDragLeave_,!1,this);_.Yc(q,"dragend",this.onDragLeave_,!1,this)};
_.yU(iJ,_.V8);var zvg=function(q,Z){_.$2.call(this,"f");this.files=q;this.directories=Z};
_.yU(zvg,_.$2);var BM1=function(){_.$2.call(this,"h")};
_.yU(BM1,_.$2);var aI1=function(){_.$2.call(this,"i")};
_.yU(aI1,_.$2);var nAX=function(){_.$2.call(this,"g")};
_.yU(nAX,_.$2);iJ.prototype.onObjectsDropped_=function(q){var Z=this;q.preventDefault();var w=q.event_.dataTransfer;if((q=w&&w.items)&&q.length>0&&q[0].webkitGetAsEntry){w=[];for(var r=[],Y=0;Y<q.length;Y++){var C=q[Y].webkitGetAsEntry();C?w.push(C):r.push(q[Y])}new yp(w,function(d,O,H){H?Z.dispatchEvent(new nAX("Error occurred while reading from the file system.")):Z.dispatchEvent(new zvg(d,O,r))})}else(q=w&&w.files)&&this.dispatchEvent(new zvg(Array.from(q),[]))};
iJ.prototype.onFilesDragged_=function(q){q.type==="dragenter"&&this.dispatchEvent(new BM1);q.preventDefault()};
iJ.prototype.onDragLeave_=function(){this.dispatchEvent(new aI1)};var Qr7=function(q,Z){this.JSC$9802_name_=q;this.inputElement_=Z};
Qr7.prototype.getName=function(){return this.JSC$9802_name_};
Qr7.prototype.getInputElement=function(){return this.inputElement_};var gl=function(q,Z,w){Z=Z===void 0?"single_file":Z;w=w===void 0?[]:w;_.V8.call(this);this.overlayTarget_=q;this.parentOverlay_=q!=null?q.parentNode:_.dX("scotty-overlay-parent");this.selectorType_=Z;this.acceptTypes_=w;this.overlay_=EAh(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.z(gl,_.V8);
var EAh=function(q,Z,w,r){var Y=document.createElement("input");Y.setAttribute("type","file");Y.setAttribute("name","Filedata");_.Yc(Y,"change",q.onFilesSelected_,!1,q);w==="multiple_file"&&(Y.multiple="true");w==="single_directory"&&(Y.webkitdirectory="true");r.length>0&&Y.setAttribute("accept",r.join(","));Y.style.position="absolute";Y.style.overflow="hidden";Y.style.height="0px";Y.style.width="0px";Y.style.opacity="0";Y.setAttribute("aria-hidden","true");Y.setAttribute("tabIndex",-1);if(q.overlayTarget_!=
null)return Y.style.height=Z.offsetHeight+"px",Y.style.width=Z.offsetWidth+"px",q.parentOverlay_&&(q.parentOverlay_.style.position="relative"),_.ar(Y,Z),Uv(Y,new _.B3(Z.offsetLeft,Z.offsetTop)),Y;q.parentOverlay_.appendChild(Y);return Y};
gl.prototype.click=function(){this.overlay_.click()};
gl.prototype.onFilesSelected_=function(q){a:{try{var Z=(new XMLHttpRequest).upload!==void 0;break a}catch(L){}Z=!1}if(Z){var w;q=Array.from((w=q.target.files)!=null?w:[]);w=[];if(this.selectorType_==="single_directory"&&(_.YZ||_.KY||_.rS)){w=new Di("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(Z=0;Z<q.length;Z++)for(var r=q[Z],Y=r.webkitRelativePath.split("/"),C=w,d=0;d<Y.length;d++){var O=Y[d];if(d==Y.length-1){O!="."&&C.files_.push(r);break}var H=C.directoryMap_[O];H==void 0&&(O=
H=new Di(O),C.directoryMap_[O.getName()]=O,C.directories_.push(O));C=H}w=w.directories_}this.dispatchEvent(new xfv(q,w,null))}else q=q.target.value,q.match(/^c:\\fakepath\\/i)&&(q=q.substring(12)),this.dispatchEvent(new xfv([],[],new Qr7(q,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=EAh(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var xfv=function(q,Z){_.$2.call(this,"j");this.files=q;this.directories=Z};
_.z(xfv,_.$2);var TMh=function(q){this.uploadUrl_=q};var Uf1=function(){_.V8.call(this)};
_.yU(Uf1,_.V8);var qr=function(q){_.$2.call(this,q)};
_.yU(qr,_.$2);var Z1=function(q){_.$2.call(this,q)};
_.yU(Z1,_.$2);var k3W=function(q,Z,w,r,Y){_.V8.call(this);w=document.createElement("form");w.setAttribute("method",Z);w.setAttribute("enctype","multipart/form-data");w.setAttribute("encoding","multipart/form-data");Z=document.createElement("input");Z.setAttribute("type","hidden");Z.setAttribute("name","metadata");Z.setAttribute("value",Y);w.appendChild(Z);w.appendChild(r);this.JSC$9819_form_=w;q=new _.M$(q);_.Kh(q,"upload_protocol","multipart");this.JSC$9819_url_=q.toString();this.JSC$9819_request_=new NB;this.state_=
"Ready";this.JSC$9819_errorDescription_=null;this.JSC$9819_eventHandler_=new _.Al(this);_.$i(this,this.JSC$9819_eventHandler_);this.JSC$9819_eventHandler_.listen(this.JSC$9819_request_,"success",this.onTransferSuccess_);this.JSC$9819_eventHandler_.listen(this.JSC$9819_request_,"error",this.onTransferError_)};
_.z(k3W,Uf1);_.e=k3W.prototype;_.e.run=function(){this.state_="Transferring";var q=this.JSC$9819_request_,Z=this.JSC$9819_form_;if(q.JSC$9243_active_)throw Error("oe");var w=new _.M$(this.JSC$9819_url_||Z.action);q.JSC$9243_form_=Z;Z=q.JSC$9243_form_;w=_.kv(w.toString());w!==void 0&&(Z.action=w);PlJ(q)};
_.e.getResponseCode=function(){return null};
_.e.getResponseText=function(){return this.JSC$9819_request_&&this.JSC$9819_request_.getResponseText()||null};
_.e.JSC$25581_getErrorDescription=function(){return this.JSC$9819_errorDescription_};
_.e.cancel=function(){this.JSC$9819_request_&&this.JSC$9819_request_.abort();this.state_="Cancelled";this.dispatchEvent(new qr("o"))};
_.e.pause=function(){};
_.e.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new qr("l"))};
_.e.onTransferError_=function(){this.JSC$9819_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new qr("n"))};var wZ=function(){_.vD.call(this)};
_.z(wZ,_.vD);wZ.prototype.createXhr=function(){var q=_.vD.prototype.createXhr.call(this);q.upload&&(q.upload.onprogress=(0,_.Lh)(this.onProgress_,this));return q};
wZ.prototype.onProgress_=function(q){this.dispatchEvent(q)};var K9W=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},IIJ=function(q,Z){var w=q.attempt_+1;
if(q.maxAttempts_>0&&w>q.maxAttempts_)return!1;w==0?Z():q.delayCallId_=uQ(function(){q.delayCallId_=null;Z()},srg(q),q);
q.attempt_=w;return!0};
K9W.prototype.reset=function(){this.delayCallId_&&_.$1.clearTimeout(this.delayCallId_);this.attempt_=-1};
var srg=function(q){var Z=250*Math.pow(2,q.attempt_);q.maxDelayMs_>=0&&(Z=Math.min(Z,q.maxDelayMs_));return Z};var Qte=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var rZ=function(){_.V8.call(this);this.JSC$9829_request_=this.state_=null;this.JSC$9829_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9829_bytesTransferred_=0;this.retryIterator_=new K9W;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9829_errorDescription_=null;this.JSC$9829_eventHandler_=new _.Al(this);_.$i(this,this.JSC$9829_eventHandler_);this.JSC$9829_url_=this.blob_=null;this.JSC$9829_method_=void 0;this.chunkSize_=this.JSC$9829_metadata_=
this.JSC$9829_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9829_responseText_=this.JSC$9829_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.yU(rZ,Uf1);_.e=rZ.prototype;_.e.run=function(){Y5(this)};
_.e.getResponseCode=function(){return this.JSC$9829_responseCode_};
_.e.getResponseText=function(){return this.JSC$9829_responseText_};
_.e.JSC$25581_getErrorDescription=function(){return this.JSC$9829_errorDescription_};
_.e.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9829_eventHandler_.removeAll();this.JSC$9829_request_&&this.JSC$9829_request_.abort();this.retryIterator_.reset();var q=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(q==="Upload"||q==="Query")q=new wZ,q.JSC$7669_withCredentials_=this.JSC$9829_withCredentials_,q.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9829_bytesTransferred_=
0;this.dispatchEvent(new qr("o"))}};
_.e.pause=function(){this.pauseRequested_=!0};
var Y5=function(q){var Z=q.state_;q.pauseRequested_?(q.pauseRequested_=!1,q.stateAfterUnpausing_=Z,q.state_="Paused"):IIJ(q.retryIterator_,function(){switch(q.state_){case "Start":q.JSC$9829_request_=new wZ;var w=_.R4.clone(q.JSC$9829_headers_);q.blob_.size!=null&&(w["Content-Length"]=q.blob_.size);w=EX9(w);w["X-Goog-Upload-Protocol"]="resumable";w["X-Goog-Upload-Command"]="start";q.JSC$9829_eventHandler_.removeAll();q.JSC$9829_eventHandler_.listen(q.JSC$9829_request_,"complete",q.onStartComplete_);
q.JSC$9829_request_.JSC$7669_withCredentials_=q.JSC$9829_withCredentials_;q.JSC$9829_request_.send(q.JSC$9829_url_,q.JSC$9829_method_,q.JSC$9829_metadata_,w);q.lastCommandResponseCode_=null;q.dispatchEvent(new Z1("q"));break;case "Upload":w=q.transferHandle_.uploadUrl_;var r=q.blob_.size;if(qA9()){var Y=q.chunkSize_;var C=q.offset_+Y>=r;r=g7X(q.blob_,q.offset_,C?r:q.offset_+Y)}else q.offset_=0,r=q.blob_,C=!0;q.JSC$9829_request_=new wZ;q.JSC$9829_request_.JSC$7669_withCredentials_=q.JSC$9829_withCredentials_;
q.JSC$9829_eventHandler_.removeAll();q.JSC$9829_eventHandler_.listen(q.JSC$9829_request_,"progress",q.onUploadProgress_);Y=(0,_.Lh)(q.JSC$9831_onUploadComplete_,q,q.offset_+r.size,C);q.JSC$9829_eventHandler_.listen(q.JSC$9829_request_,"complete",Y);q.lastCommandResponseCode_=null;q.dispatchEvent(new Z1("q"));C=Object.assign({},q.JSC$9829_headers_||{},{"X-Goog-Upload-Command":"upload"+(C?", finalize":""),"X-Goog-Upload-Offset":q.offset_});q.JSC$9829_request_.send(w,"POST",r,C);break;case "Query":q.JSC$9829_request_=
new wZ;q.JSC$9829_eventHandler_.removeAll();q.JSC$9829_eventHandler_.listen(q.JSC$9829_request_,"complete",q.onQueryComplete_);w=Object.assign({},q.JSC$9829_headers_||{},{"X-Goog-Upload-Command":"query"});q.JSC$9829_request_.send(q.transferHandle_.uploadUrl_,"POST","",w);q.lastCommandResponseCode_=null;q.dispatchEvent(new Z1("q"));break;default:throw Error("df");}})||$5(q,"Transfer encountered too many consecutive failures.")},$5=function(q,Z){q.state_="Error";
q.JSC$9829_errorDescription_=Z;q.dispatchEvent(new qr("n"))};
rZ.prototype.onStartComplete_=function(q){var Z=q.target;this.lastCommandResponseCode_=Z.getStatus();this.dispatchEvent(new Z1("r"));if(c$9(Z))MzK(this,Z);else if(F92(Z)){q=Mb(q.target.getAllResponseHeaders());for(var w in q)_.Vj(w.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new qr("m"));w=Lp(q,"X-Goog-Upload-URL");q=(q=Lp(q,"X-Goog-Upload-Chunk-Granularity"))?parseInt(q,10):1;w===void 0||isNaN(q)||q<=0?$5(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
q)*q,this.transferHandle_=new TMh(w),this.dispatchEvent(new qr("p")),this.state_="Upload",this.retryIterator_.reset(),Y5(this))}else Y5(this)};
rZ.prototype.onUploadProgress_=function(q){this.JSC$9829_bytesTransferred_=this.offset_+q.loaded;this.dispatchEvent(new qr("k"))};
rZ.prototype.JSC$9831_onUploadComplete_=function(q,Z,w){var r=this,Y,C;return _.V(function(d){switch(d.nextAddress){case 1:Y=w.target;r.lastCommandResponseCode_=Y.getStatus();r.dispatchEvent(new Z1("r"));if(NM2(Y)||Y.getStatus()==404)return r.JSC$9829_bytesTransferred_=q,MzK(r,Y),d.return();if(F92(Y)){d.jumpTo(2);break}if(!(C=r.detectCorruptedBlobEnabled_)){d.jumpTo(3);break}return _.W(d,lIJ(r),4);case 4:C=d.yieldResult;case 3:if(C)return $5(r,"Blob has been modified or corrupted."),d.return();r.requireUploadRequestModification_=
Y.getStatus()==400;r.state_="Query";Y5(r);return d.return();case 2:if(Z)return $5(r,"Got a non-final success response after issuing a finalize command."),d.return();r.JSC$9829_bytesTransferred_=q;r.offset_=q;r.retryIterator_.reset();Y5(r);return d.return()}})};
rZ.prototype.onQueryComplete_=function(q){var Z=q.target;this.lastCommandResponseCode_=Z.getStatus();this.dispatchEvent(new Z1("r"));c$9(Z)?(Z.getStatus()===200&&(this.JSC$9829_bytesTransferred_=this.blob_.size),MzK(this,Z)):F92(Z)?(q=Mb(q.target.getAllResponseHeaders()),q=parseInt(Lp(q,"X-Goog-Upload-Size-Received"),10),isNaN(q)?$5(this,"Server did not respond with current offset."):q<this.offset_?$5(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
q+"."):this.requireUploadRequestModification_&&this.offset_===q?$5(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<q&&this.retryIterator_.reset(),this.offset_=this.JSC$9829_bytesTransferred_=q,this.state_="Upload",Y5(this))):Y5(this)};
var MzK=function(q,Z){q.JSC$9829_responseCode_=Z.getStatus();var w=Mb(Z.getAllResponseHeaders());x1O(w);q.JSC$9829_responseText_=Z.getResponseText();q.state_="Response received";q.dispatchEvent(new qr("l"))},F92=function(q){var Z=q.getStatus();
q=Mb(q.getAllResponseHeaders());q=Lp(q,"X-Goog-Upload-Status");return Z===200&&q==="active"},NM2=function(q){q=Mb(q.getAllResponseHeaders());
return Lp(q,"X-Goog-Upload-Status")==="final"},c$9=function(q){if(NM2(q))return!0;
q=q.getStatus();return q>=400&&q<500},lIJ=function(q){var Z;
return _.V(function(w){if(w.nextAddress==1){if(!q.blob_||q.originalBlobSize_<=0)return w.return(!1);if(q.blob_.size!==q.originalBlobSize_)return w.return(!0);_.d9(w,2);if(Z=g7X(q.blob_,0,1)){var r=new zT,Y=zse(r);r.reader_.readAsBinaryString(Z);w=_.W(w,Y,4)}else w=w.return(!0);return w}if(w.nextAddress!=2)return w.return(q.blob_.size!==q.originalBlobSize_);_.o3(w);return w.return(!0)})};var G3h=function(q,Z,w,r,Y,C){_.V8.call(this);this.payload_=r;this.JSC$9832_url_=q;this.JSC$9832_method_=Z;this.JSC$9832_headers_=w;this.JSC$9832_metadata_=Y;this.encoding_=C||"binary";q=new _.V6;this.boundary_="uploader-"+T1()+"-"+q.JSC$9092_toIsoString();this.JSC$9832_responseText_=this.JSC$9832_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9832_errorDescription_=null;this.JSC$9832_eventHandler_=new _.Al(this);_.$i(this,this.JSC$9832_eventHandler_)};
_.z(G3h,Uf1);_.e=G3h.prototype;
_.e.run=function(){var q=_.R4.clone(this.JSC$9832_headers_);this.payload_.length!=null&&(q["Content-Length"]=this.payload_.length);q=EX9(q);q["X-Goog-Upload-Protocol"]="multipart";q["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new wZ;this.JSC$9832_eventHandler_.removeAll();this.JSC$9832_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9832_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9832_url_,this.JSC$9832_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9832_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",q)};
_.e.getResponseCode=function(){return this.JSC$9832_responseCode_};
_.e.getResponseText=function(){return this.JSC$9832_responseText_};
_.e.JSC$25581_getErrorDescription=function(){return this.JSC$9832_errorDescription_};
_.e.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9832_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new qr("o")))};
_.e.pause=function(){};
_.e.onTransferProgress_=function(){this.dispatchEvent(new qr("k"))};
_.e.onTransferComplete_=function(q){var Z=q.target.getStatus();Z===void 0||Z===-1?(this.JSC$9832_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new qr("n"))):(this.JSC$9832_responseCode_=Z,q=q.target,Z=Mb(q.getAllResponseHeaders()),x1O(Z),this.JSC$9832_responseText_=q.getResponseText(),this.state_="Complete",this.dispatchEvent(new qr("l")))};_.pr2=function(q,Z,w,r){r=r===void 0?!1:r;if(w instanceof Qr7)return new k3W(q,"POST",Z,w.getInputElement(),"");if(typeof w==="string"||w instanceof String)return new G3h(q,"POST",Z,w,"");var Y=new rZ(void 0);Y.JSC$9829_url_=q;Y.JSC$9829_method_="POST";Y.JSC$9829_headers_=Z;Y.blob_=w;Y.originalBlobSize_=w.size;Y.JSC$9829_metadata_="";r&&(Y.JSC$9829_withCredentials_=r);Y.state_="Start";return Y};var eE=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(eE,_.XD);_.e=eE.prototype;_.e.getEnableSsEngine=function(){return _.jF(this,2)};
_.e.getEnableAwr=function(){return _.jF(this,3)};
_.e.getAlohaAutoGaRollout=function(){return _.jF(this,5)};
_.e.getEnableConfigurator=function(){return _.jF(this,6)};
_.e.getEnableMweb=function(){return _.jF(this,7)};
var mfv=function(){var q=Xrh();return _.vk(q,7,!0)};
eE.prototype.getEnableCtlConsentCheckbox=function(){return _.jF(this,8)};
eE.prototype.getEnableIframe=function(){return _.jF(this,9)};
var Xrh=function(){var q=new eE;q=_.vk(q,5,!0);q=_.vk(q,2,!0);q=_.vk(q,4,!1);q=_.vk(q,8,!0);return _.vk(q,9,!0)};
eE.prototype.getEnableScreenshotNudge=function(){return _.jF(this,10)};
var A$7=function(){var q=mfv();return _.vk(q,10,!0)};
eE.prototype.getEnableWebStartupConfigEndpoint=function(){return _.jF(this,11)};
eE.prototype.getEnableJunkNudge=function(){return _.jF(this,12)};
var fg6=function(){var q=A$7();return _.vk(q,12,!0)};
_.e=eE.prototype;_.e.getEnableConfiguratorLocale=function(){return _.jF(this,13)};
_.e.getEnableTinyNoPointer=function(){return _.jF(this,14)};
_.e.getEnableSupportSessionLogging=function(){return _.jF(this,15)};
_.e.getEnableFileUploadForScreenshot=function(){return _.jF(this,16)};
_.e.getEnableDirectDeflectionForSingleCategory=function(){return _.jF(this,17)};
_.e.getEnableImageSanitization=function(){return _.jF(this,18)};
_.e.getEnableAlohaBinarySplit=function(){return _.jF(this,19)};
_.e.getEnableDbFeedbackIntents=function(){return _.jF(this,20)};
_.e.getEnableMarkMandatoryFieldsWithRequired=function(){return _.jF(this,21)};
_.e.getEnableFeedbackCategoryCustomUi=function(){return _.jF(this,22)};
_.e.getEnableRealtimeCtl=function(){return _.jF(this,23)};var A3j=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(A3j,_.XD);var Tk2=[/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 kSj="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 KnX=_.Fr(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),stN=_.Fr(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var c39,Fn6;var fI9,Dfv;
fI9=function(q,Z,w){q.timeOfStartCall=(new Date).getTime();var r=w||_.$1,Y=r.document,C=q.nonce||_.lg(r.document);C&&!q.nonce&&(q.nonce=C);if(q.flow=="help"){var d=_.Eq("document.location.href",r);!q.helpCenterContext&&d&&(q.helpCenterContext=d.substring(0,1200));d=!0;if(Z&&JSON&&JSON.stringify){var O=JSON.stringify(Z);(d=O.length<=1200)&&(q.psdJson=O)}d||(Z={invalidPsd:!0})}Z=[q,Z,w];r.GOOGLE_FEEDBACK_START_ARGUMENTS=Z;w=q.feedbackServerUri||"//www.google.com/tools/feedback";if(d=r.GOOGLE_FEEDBACK_START)d.apply(r,Z);
else{r=w+"/load.js?";for(var H in q)Z=q[H],Z==null||_.DT(Z)||(r+=encodeURIComponent(H)+"="+encodeURIComponent(Z)+"&");q=o4(Y).createElement("SCRIPT");C&&q.setAttribute("nonce",C);_.AI(q,_.o9(r));Y.body.appendChild(q)}};
Dfv=function(q,Z,w,r){var Y,C;_.V(function(d){Y=w||_.$1;var O=q.serverEnvironment==="DEV",H=w||_.$1;H=q.nonce||_.lg(H.document);O={integrationKeys:{productId:q.productId,feedbackBucket:q.bucket,triggerId:q.triggerId},callbacks:{onClose:q.callback,onLoad:q.onLoadCallback},formContent:{locale:q.locale,disableScreenshot:q.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:q.abuseLink,additionalDataConsent:q.additionalDataConsent},initializationData:{isLocalServer:O,nonce:H,useNightlyRelease:O,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:q.feedbackServerUri,colorScheme:q.colorScheme},extraData:{productVersion:q.productVersion,authUser:q.authuser,configuratorId:q.configuratorId,customZIndex:q.customZIndex,tinyNoPointer:q.tinyNoPointer,
allowNonLoggedInFeedback:q.allowNonLoggedInFeedback,enableAnonymousFeedback:q.enableAnonymousFeedback}};Z&&(H=new Map(Object.entries(Z)),O.extraData.productSpecificData=H);C=O;return _.W(d,pW8(C,r,Y),0)})};
_.hvW=function(q,Z,w){try{if(q.flow==="help"){var r=q.helpCenterPath.replace(/^\//,"");_.NK(w||window,"https://support.google.com/"+r)}else q.flow==="submit"?fI9(q,Z,w):D1X(q.productId,q.feedbackServerUri).then(function(Y){Y=_.Xy(Y,eE,1);var C=!nU2||(Y==null?void 0:Y.getEnableMweb()),d=!q.tinyNoPointer||(Y==null?void 0:Y.getEnableTinyNoPointer());!Y||Y.getAlohaAutoGaRollout()&&C&&d?Dfv(q,Z,w,Y):fI9(q,Z,w)},function(Y){Y&&Y.name!=="DuplicateFormError"&&fI9(q,Z,w)})}catch(Y){Dfv(q,Z,w,null)}};
_.IR("userfeedback.api.startFeedback",_.hvW);var hnO=/https?:\/\/\S+\.\S+/,y3z=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],iGj=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var zq2=function(q){var Z=q.split(""),w=[-263237435,15,Z,function(r,Y,C){var d=Y.length;C.forEach(function(O,H,L){this.push(L[H]=Y[(Y.indexOf(O)-Y.indexOf(this[H])+H+d--)%Y.length])},r.split(""))},
function(r,Y){r=(r%Y.length+Y.length)%Y.length;Y.splice(-r).reverse().forEach(function(C){Y.unshift(C)})},
"response",function(){for(var r=64,Y=[];++r-Y.length-32;){switch(r){case 58:r-=14;case 91:case 92:case 93:continue;case 123:r=47;case 94:case 95:case 96:continue;case 46:r=95}Y.push(String.fromCharCode(r))}return Y},
null,12,1540023973,65941107,null,Z,function(r,Y){for(r=(r%Y.length+Y.length)%Y.length;r--;)Y.unshift(Y.pop())},
695603893,function(r){for(var Y=r.length;Y;)r.push(r.splice(--Y,1)[0])},
"'[;'[(",function(r,Y){r.push(Y)},
null,function(r,Y,C,d,O){return Y(C,d,O)},
"continuation",Z,function(r,Y){if(r.length!=0){Y=(Y%r.length+r.length)%r.length;var C=r[0];r[0]=r[Y];r[Y]=C}},
function(){for(var r=64,Y=[];++r-Y.length-32;){switch(r){case 91:r=44;continue;case 123:r=65;break;case 65:r-=18;continue;case 58:r=96;continue;case 46:r=95}Y.push(String.fromCharCode(r))}return Y},
'"),/]];'];w[7]=w;w[11]=w;w[18]=w;try{(((0,w[15])(w[21]),w[22])(w[11],w[9]),w[22])(w[new Date("1970-01-01T04:30:12.000+04:30")/1E3],w[1]),((0,w[22])(w[11],w[23]),w[4])(w[10],w[18]),(0,w[20])(w[21],w[14])<<(0,w[17])(w[18],w[1]),(0,w[4])(w[8],w[21]),(0,w[19])((0,w[19])((0,w[17])(w[7],w[9]),w[3],w[20],(0,w[6])(),w[2]),w[3],w[5],(0,w[15])(),w[2])}catch(r){return"aTlOUOubTO4AP____8P_"+q}return Z.join("")};_.y$D=new _.D("runAttestationCommand");var iI9=new _.D("verifyCommand");_.xL=new _.D("accessibilityContext");var gA7=new _.D("accessibilityData");var qTv=new _.D("profileCardCommand");var tM9=new _.D("signInEndpoint");var jp2=new _.D("signOutEndpoint");var wD7;_.ZN2=new _.D("accountItemSectionRenderer");wD7=new _.D("accountItemRenderer");_.rq1=new _.D("saveCommandToSessionStorageAction");var YT2=new _.D("crossAccountChannelTransferEndpoint");var SVT=new _.D("getAccountMenuEndpoint");_.vfX=new _.D("getAccountSwitcherEndpoint");var LUz=new _.D("getAccountsListEndpoint");var $CK=new _.D("getAccountsListInnertubeEndpoint");_.eU2=new _.D("addToToastAction");var CQh=new _.D("hideEnclosingAction");_.CH=new _.D("replaceEnclosingAction");_.PQW=new _.D("buttonRefreshAction");var dCh=new _.D("adsControlFlowOpportunityReceivedCommand");var V3D=new _.D("openAdAllowlistInstructionCommand");var ON2=new _.D("videoMastheadAdPrimaryVideoRenderer");var HN1=new _.D("displayAdRenderer");var dtT=new _.D("instreamVideoAdRenderer");_.Wx7=new _.D("inFeedAdLayoutRenderer");var o2D=new _.D("sequenceItemInPlayerAdLayoutRenderer");_.uiD=new _.D("adSlotRenderer");var Lx7=new _.D("adAvatarViewModel");var STW=new _.D("adBadgeViewModel");var v2h=new _.D("adButtonViewModel");var PZ=new _.D("adImageViewModel");var QSN=new _.D("reelsAdCardButtonedViewModel");var jnW=new _.D("reelsPlayerOverlayLayoutViewModel");var t3h=new _.D("showSchedulingPanelCommand");var RUK=new _.D("backstageCommentsRenderer");var bN2=new _.D("backstageImageRenderer");var Jq1=new _.D("backstagePostRenderer");var zU7=new _.D("postRenderer");var B_h=new _.D("sharedPostRenderer");var aSm=new _.D("createBackstagePostEndpoint");var n2p=new _.D("getPostVideoPreviewEndpoint");var Qn7=new _.D("updateBackstagePostEndpoint");var E22=new _.D("filterChipTransformCommand");var xCX=new _.D("insertRichSectionCommand");var Y_z=new _.D("talkToRecsDeselectCommand");var T_h=new _.D("talkToRecsNextCommand");var rs2=new _.D("talkToRecsSelectCommand");var UC9=new _.D("talkToRecsUpdateTextCommand");_.qZ=new _.D("browseEndpoint");_.kMm=new _.D("confirmDialogEndpoint");var Kx2=new _.D("expandOnHoverCardRenderer");var snh=new _.D("lumiereShelfDetailsRenderer");var ISg=new _.D("revealBusinessEmailCommand");var cqX=new _.D("validateChannelHandleCommand");var M3X=new _.D("channelCreationFormEndpoint");var Fxe=new _.D("aboutChannelViewModel");var N_7=new _.D("channelThumbnailWithLinkRenderer");var lSK=new _.D("channelCreationServiceEndpoint");var GM9=new _.D("updateChannelPageSettingsEndpoint");var dZ=function(q){this.delegate=q},VH=function(){dZ.apply(this,arguments)};
_.z(VH,dZ);_.My.Object.defineProperties(VH.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(q){this.delegate.entityMetadata=q}}});var pDD=function(){VH.apply(this,arguments)};
_.z(pDD,VH);pDD.prototype.getAssociations=function(){return[]};var EE6=new _.D("webThumbnailDetailsExtensionData");var To2=new _.D("commandContext");var XD7=new _.D("addVideoLinkAction");var mC7=new _.D("createPollAction");var Aqe=new _.D("hideIdentityChipAction");var fSe=new _.D("openUpdateCommentDialogAction");var ON=new _.D("updateBackstagePollAction");var DC7=new _.D("updateCommentVoteAction");var hU7=new _.D("commentThreadRenderer");var yqe=function(){VH.apply(this,arguments)};
_.z(yqe,VH);yqe.prototype.getAssociations=function(){return[]};_.iNX=new _.D("commentDialogRenderer");var g2D=new _.D("updateCommentsSettingsEndpoint");var qs2=new _.D("commentViewModel");var ZG1=new _.D("triStateButtonViewModel");var wWD=new _.D("voiceReplyContainerViewModel");_.$K=new _.D("commandExecutorCommand");var OL=new _.D("emoji");var r31=new _.D("updateCreatorChannelInnertubeCommand");_.Ysm=new _.D("appendContinuationItemsAction");_.$1h=new _.D("changeEngagementPanelVisibilityAction");_.L6=new _.D("continuationCommand");var enK=new _.D("hideReportedCommentAction");var CUg=new _.D("listMutationCommand");_.HZ=new _.D("openPopupAction");var u$W;_.PUK=new _.D("playlistRemoveVideosAction");_.d1g=new _.D("updatePlaylistAction");_.ViJ=new _.D("addToPlaylistCommand");_.OGX=new _.D("endPlaylistCommand");_.HG9=new _.D("recoverPlaylistCommand");_.Wnp=new _.D("refreshPlaylistCommand");_.oX7=new _.D("refreshFormCommand");u$W=new _.D("openOnePickAddVideoModalCommand");_.zoO=new _.D("reloadContinuationItemsCommand");_.Ln7=new _.D("scrollToEngagementPanelCommand");var Ss1=new _.D("showReloadUiCommand");var vXD=new _.D("undoFeedbackAction");var jt7=new _.D("updateButtonAction");var m32=new _.D("updateSubscribeButtonAction");var tiv=new _.D("updateToggleAction");_.XK=new _.D("webCommandMetadata");_.WZ=new _.D("webHandleServiceEndpointExtension");var JSz=new _.D("webNavigationEndpointData");var RnK=new _.D("copyLinkCommand");var bGh=new _.D("playlistVotingRefreshPopupCommand");var J3K=new _.D("selectChipCommand");var zn9=new _.D("setCookieCommand");var Bkp=new _.D("setLocalStorageCommand");var agg=new _.D("setPrefStorageEntryCommand");var x12;_.nXh=new _.D("settingsUpdateCheckboxCommand");_.QtJ=new _.D("settingsUpdateTextCommand");_.EX7=new _.D("settingsUpdateOptionsCommand");x12=new _.D("settingsUpdateSwitchCommand");_.Tkp=new _.D("settingsUpdateConnectedAppRendererCommand");var U17=new _.D("updateTextInputFormFieldRendererCommand");var kSD=new _.D("updateToggleButtonStateCommand");var Kn9=new _.D("updateUrlParamCommand");var stX=new _.D("webSubmitFormCommand");var Ige=new _.D("channelSwitcherPageRenderer"),c37=new _.D("updateChannelSwitcherPageAction");_.i2=new _.D("continuationItemRenderer");_.ox=new _.D("richItemRenderer");var Mi7=new _.D("richSectionRenderer");_.Fn1=new _.D("richShelfRenderer");_.Nkv=new _.D("metadataBadgeRenderer");_.lgJ=new _.D("multiPageMenuNotificationSectionRenderer");_.GSp=new _.D("playlistLoopButtonStateRenderer");var pWm=new _.D("claimLegacyYoutubeChannelEndpoint");var XWD=new _.D("getNotificationMenuEndpoint");var m12=new _.D("getSearchInVideoCommand");_.A3D=new _.D("getTranscriptEndpoint");_.CR=new _.D("signalServiceEndpoint");var fg1=new _.D("verifyAgeEndpoint");var nm9=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(nm9,_.XD);nm9.prototype.getPath=function(){return _.bY(this,1)};
nm9.prototype.getValue=function(){return _.bY(this,2)};var D19=[0,_.cI,-1];var hn2=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(hn2,_.XD);var aaN=_.qK(hn2,[0,_.MY,D19]);var y3W=new _.D("dismissalEndpoint");var iGD=new _.D("elementsCommand");_.WJ=new _.D("innertubeCommand");var gX2=new _.D("multipleInlinePlaybackCommand");var ebz=new _.D("loggingDirectives");var h1N={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"};var qiX=new _.D("acknowledgeChannelTouStrikeCommand");var Zj7=function(){VH.apply(this,arguments)};
_.z(Zj7,VH);Zj7.prototype.getAssociations=function(){return[]};var wBX=function(){VH.apply(this,arguments)};
_.z(wBX,VH);wBX.prototype.getAssociations=function(){return[]};var n6=new _.D("entityBatchUpdate");_.rHK=new _.D("entityUpdateCommand");var YiD=function(){VH.apply(this,arguments)};
_.z(YiD,VH);YiD.prototype.getAssociations=function(){var q=[];this.delegate.alternateChannel&&q.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&q.push.apply(q,_.Ju(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&q.push(this.delegate.oneofChannelEntity);return[].concat(_.Ju(new Set(q)))};var $Lh=function(){VH.apply(this,arguments)};
_.z($Lh,VH);$Lh.prototype.getAssociations=function(){var q=[];this.delegate.entryCollection&&q.push(this.delegate.entryCollection);return[].concat(_.Ju(new Set(q)))};
var e1h=function(){VH.apply(this,arguments)};
_.z(e1h,VH);e1h.prototype.getAssociations=function(){var q=[];this.delegate.parentPlaylist&&q.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var Z=_.P(this.delegate.entries),w=Z.next();!w.done;w=Z.next())q.push.apply(q,_.Ju((new Ca2(w.value)).getAssociations()));return[].concat(_.Ju(new Set(q)))};
var Ca2=function(){dZ.apply(this,arguments)};
_.z(Ca2,dZ);Ca2.prototype.getAssociations=function(){var q=[];this.delegate.video&&q.push(this.delegate.video);return[].concat(_.Ju(new Set(q)))};var PaX=function(){VH.apply(this,arguments)};
_.z(PaX,VH);PaX.prototype.getAssociations=function(){var q=[];this.delegate.descriptionEntity&&q.push(this.delegate.descriptionEntity);this.delegate.creators&&q.push.apply(q,_.Ju(this.delegate.creators));this.delegate.theBiggestFan&&q.push(this.delegate.theBiggestFan);return[].concat(_.Ju(new Set(q)))};
var dLK=function(){VH.apply(this,arguments)};
_.z(dLK,VH);dLK.prototype.getAssociations=function(){return[]};var Vb7=new _.D("fantasyRosterViewModel");var OjK=new _.D("addFollowUpSurveyCommand");var HjK=new _.D("getSurveyCommand");var Wwe=new _.D("ratingSurveyOptionRenderer");_.BH=new _.D("feedbackEndpoint");var onW=new _.D("reportHistoryTableCellRenderer"),uJW=new _.D("reportHistoryTableTextCellRenderer"),Lw1=new _.D("reportHistoryTableReasonCellRenderer");_.Si7=new _.D("flagEndpoint");var vnm=new _.D("getFlowCommand");var j7D=new _.D("submitFormWithValidationFlowCommand");var tb1=function(){VH.apply(this,arguments)};
_.z(tb1,VH);tb1.prototype.getAssociations=function(){return[]};var R11=new _.D("flowFormState");var bjW=new _.D("gameCardRenderer");var JHW=new _.D("accountLinkingStateChangedCommand");var z19=function(){VH.apply(this,arguments)};
_.z(z19,VH);z19.prototype.getAssociations=function(){return[]};var B2D=new _.D("changeMiniAppPlayStateCommand");var a79=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(a79,_.XD);var uG=[1,2,3];var nne=[0,uG,q2h,_.ZX7,AR8];var Q7g=_.qK(a79,nne),Eng=_.Yv(nne);var xL9=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(xL9,_.XD);var T2W=[0,_.Kc,_.cI];var ULg=[0,_.cI];var kZD=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(kZD,_.XD);var Kwp=function(q,Z){return _.mh(q,3,Z)};var s7W=_.Yv([0,_.NY,T2W,_.NY,ULg]);var I7g=new _.D("miniAppScoreChallengeViewModel");var cHD=new _.D("miniGameCardViewModel");var Mb2=new _.D("teaserCardViewModel");var Fw2=function(){VH.apply(this,arguments)};
_.z(Fw2,VH);Fw2.prototype.getAssociations=function(){return[]};_.N2v=new _.D("feedbackItemRenderer");var l7W={UNKNOWN:"UNKNOWN",MY_CHANNEL:"MY_CHANNEL",WATCH_HISTORY:"WATCH_HISTORY",WATCH_HISTORY_CAIRO:"WATCH_HISTORY_CAIRO",WATCH_LATER:"WATCH_LATER",WATCH_LATER_CAIRO:"WATCH_LATER_CAIRO",WATCH_LATER_FILLED:"WATCH_LATER_FILLED",PURCHASES:"PURCHASES",WHAT_TO_WATCH:"WHAT_TO_WATCH",SUBSCRIPTIONS:"SUBSCRIPTIONS",PLAYLISTS:"PLAYLISTS",PLAYLISTS_CAIRO:"PLAYLISTS_CAIRO",OFFLINE:"OFFLINE",OFFLINE_CLOUD:"OFFLINE_CLOUD",OFFLINE_DOWNLOAD:"OFFLINE_DOWNLOAD",OFFLINE_DOWNLOAD_CAIRO:"OFFLINE_DOWNLOAD_CAIRO",OFFLINE_DOWNLOAD_COMPLETE_FILL:"OFFLINE_DOWNLOAD_COMPLETE_FILL",
OFFLINE_DOWNLOADING_ZERO:"OFFLINE_DOWNLOADING_ZERO",OFFLINE_DOWNLOADING_TWENTY:"OFFLINE_DOWNLOADING_TWENTY",OFFLINE_DOWNLOADING_FORTY:"OFFLINE_DOWNLOADING_FORTY",OFFLINE_DOWNLOADING_SIXTY:"OFFLINE_DOWNLOADING_SIXTY",OFFLINE_DOWNLOADING_EIGHTY:"OFFLINE_DOWNLOADING_EIGHTY",OFFLINE_DOWNLOADING_SPINNER:"OFFLINE_DOWNLOADING_SPINNER",OFFLINE_MUSIC_KEY:"OFFLINE_MUSIC_KEY",OFFLINE_REMOVE:"OFFLINE_REMOVE",OFFLINE_RESUME:"OFFLINE_RESUME",OFFLINE_PAUSE:"OFFLINE_PAUSE",OFFLINE_NO_CONTENT:"OFFLINE_NO_CONTENT",
OFFLINE_NO_CONTENT_UPSIDE_DOWN:"OFFLINE_NO_CONTENT_UPSIDE_DOWN",OFFLINE_PIN:"OFFLINE_PIN",OFFLINE_COMMUTE:"OFFLINE_COMMUTE",CAPTURE:"CAPTURE",UPLOADS:"UPLOADS",SOCIAL:"SOCIAL",BROWSE_CHANNELS:"BROWSE_CHANNELS",SUBSCRIPTION_MANAGER:"SUBSCRIPTION_MANAGER",FAVORITES:"FAVORITES",INBOX:"INBOX",LIKES_PLAYLIST:"LIKES_PLAYLIST",LIKES_PLAYLIST_CAIRO:"LIKES_PLAYLIST_CAIRO",MIX:"MIX",COLLECTION:"COLLECTION",EXPAND:"EXPAND",EXPAND_CAIRO:"EXPAND_CAIRO",COLLAPSE:"COLLAPSE",COLLAPSE_CAIRO:"COLLAPSE_CAIRO",MUSIC:"MUSIC",
MUSIC_CAIRO:"MUSIC_CAIRO",NO_OFFLINE_VIDEOS:"NO_OFFLINE_VIDEOS",NO_OFFLINE_PLAYLISTS:"NO_OFFLINE_PLAYLISTS",MUSIC_PASS_BADGE:"MUSIC_PASS_BADGE",PLAYLIST_ORDER:"PLAYLIST_ORDER",SHOWS:"SHOWS",EDUCATION:"EDUCATION",TIP_JAR:"TIP_JAR",TIP_JAR_LOVE:"TIP_JAR_LOVE",NOTIFICATIONS_INBOX:"NOTIFICATIONS_INBOX",BACK:"BACK",PAID:"PAID",POPULAR:"POPULAR",EXPLORE:"EXPLORE",CREATOR_STUDIO:"CREATOR_STUDIO",EDIT:"EDIT",CANCEL:"CANCEL",CREATOR_ANALYTICS:"CREATOR_ANALYTICS",CREATOR_COMMENTS:"CREATOR_COMMENTS",CREATOR_DASHBOARD:"CREATOR_DASHBOARD",
CREATOR_VIDEO_MANAGER:"CREATOR_VIDEO_MANAGER",CREATOR_VIEWER_LINK:"CREATOR_VIEWER_LINK",CREATOR_EXTERNAL_SHORTCUT:"CREATOR_EXTERNAL_SHORTCUT",CREATOR_SETTINGS:"CREATOR_SETTINGS",CREATOR_PLAYLISTS:"CREATOR_PLAYLISTS",CREATOR_METADATA_BASIC:"CREATOR_METADATA_BASIC",CREATOR_METADATA_MONETIZATION:"CREATOR_METADATA_MONETIZATION",CREATOR_METADATA_MONETIZATION_OFF:"CREATOR_METADATA_MONETIZATION_OFF",CREATOR_METADATA_ADVANCED:"CREATOR_METADATA_ADVANCED",SETTINGS:"SETTINGS",SETTINGS_CAIRO:"SETTINGS_CAIRO",
SETTINGS_LIGHT:"SETTINGS_LIGHT",SETTINGS_MATERIAL:"SETTINGS_MATERIAL",EXPERIMENT:"EXPERIMENT",REMOVE_FROM_HISTORY:"REMOVE_FROM_HISTORY",ADD_TO_PLAYLIST:"ADD_TO_PLAYLIST",REMOVE_FROM_PLAYLIST:"REMOVE_FROM_PLAYLIST",SHARE:"SHARE",INFO:"INFO",INFO_OUTLINE:"INFO_OUTLINE",CAPTIONS:"CAPTIONS",LIKE:"LIKE",DISLIKE:"DISLIKE",LIKE_SELECTED:"LIKE_SELECTED",DISLIKE_SELECTED:"DISLIKE_SELECTED",FLAG:"FLAG",FLAG_CAIRO:"FLAG_CAIRO",FLAG_OUTLINE:"FLAG_OUTLINE",HIDE:"HIDE",UNSUBSCRIBE:"UNSUBSCRIBE",DELETE:"DELETE",
DELETE_LIGHT:"DELETE_LIGHT",DELETE_SWEEP:"DELETE_SWEEP",REMOVE:"REMOVE",OFFLINE_ADD:"OFFLINE_ADD",QUESTION_CIRCLE:"QUESTION_CIRCLE",SAVE_PLAYLIST:"SAVE_PLAYLIST",ADD_TO_WATCH_LATER:"ADD_TO_WATCH_LATER",SEARCH:"SEARCH",SEARCH_CAIRO:"SEARCH_CAIRO",SEARCH_WITH_CIRCLE:"SEARCH_WITH_CIRCLE",SEARCH_FILLED:"SEARCH_FILLED",SEARCH_BOLD:"SEARCH_BOLD",SEARCH_TAB_LARGE:"SEARCH_TAB_LARGE",VOICE_SEARCH:"VOICE_SEARCH",VOICE_SEARCH_WHITE:"VOICE_SEARCH_WHITE",VOICE_SEARCH_WITH_CIRCLE:"VOICE_SEARCH_WITH_CIRCLE",SEARCH_HISTORY:"SEARCH_HISTORY",
SIGN_IN:"SIGN_IN",VIEW_ALL:"VIEW_ALL",ADD_TO_REMOTE_QUEUE:"ADD_TO_REMOTE_QUEUE",TRASH:"TRASH",EXPLORE_DESTINATION:"EXPLORE_DESTINATION",SHORTS_DESTINATION:"SHORTS_DESTINATION",TAB_EXPLORE:"TAB_EXPLORE",TAB_HOME:"TAB_HOME",TAB_HOME_CAIRO:"TAB_HOME_CAIRO",TAB_SUBSCRIPTIONS:"TAB_SUBSCRIPTIONS",TAB_SUBSCRIPTIONS_CAIRO:"TAB_SUBSCRIPTIONS_CAIRO",TAB_TRENDING:"TAB_TRENDING",TAB_LIBRARY:"TAB_LIBRARY",TAB_MORE:"TAB_MORE",TAB_ACCOUNT:"TAB_ACCOUNT",TAB_SHARES:"TAB_SHARES",TAB_ACTIVITY:"TAB_ACTIVITY",TAB_ACTIVITY_CAIRO:"TAB_ACTIVITY_CAIRO",
TAB_INBOX:"TAB_INBOX",TAB_HISTORY:"TAB_HISTORY",TAB_LIKED:"TAB_LIKED",TAB_COLLECT:"TAB_COLLECT",TAB_LIVE:"TAB_LIVE",TAB_MUSIC_PREMIUM:"TAB_MUSIC_PREMIUM",TAB_SHORTS:"TAB_SHORTS",TAB_SHORTS_CAIRO:"TAB_SHORTS_CAIRO",TAB_SAMPLES:"TAB_SAMPLES",EMPTY_LIKE:"EMPTY_LIKE",CLOCK:"CLOCK",CLOCK_FILLED:"CLOCK_FILLED",CONVERSATION_JOIN:"CONVERSATION_JOIN",CONVERSATION_LEAVE:"CONVERSATION_LEAVE",CONVERSATION_RENAME:"CONVERSATION_RENAME",MONETIZATION_MONETIZABLE:"MONETIZATION_MONETIZABLE",MONETIZATION_MONETIZED:"MONETIZATION_MONETIZED",
MONETIZATION_NOT_MONETIZABLE:"MONETIZATION_NOT_MONETIZABLE",MONETIZATION_PENDING:"MONETIZATION_PENDING",MONETIZATION_REQUIRES_ACTION:"MONETIZATION_REQUIRES_ACTION",MONETIZATION_REVSHARED:"MONETIZATION_REVSHARED",WATCH_RELATED_MIX:"WATCH_RELATED_MIX",WATCH_RELATED_PLAYLIST:"WATCH_RELATED_PLAYLIST",HELP:"HELP",HELP_CAIRO:"HELP_CAIRO",PRIVACY_PRIVATE:"PRIVACY_PRIVATE",PRIVACY_PUBLIC:"PRIVACY_PUBLIC",PRIVACY_UNLISTED:"PRIVACY_UNLISTED",PRIVACY_SCHEDULED:"PRIVACY_SCHEDULED",PLAY_ALL:"PLAY_ALL",CREATOR_CAPTURE_LINK:"CREATOR_CAPTURE_LINK",
DISMISSAL:"DISMISSAL",CHANNELS_HOME_TAB:"CHANNELS_HOME_TAB",CHANNELS_FEED_TAB:"CHANNELS_FEED_TAB",VERY_HAPPY:"VERY_HAPPY",HAPPY:"HAPPY",MEH:"MEH",SAD:"SAD",VERY_SAD:"VERY_SAD",YOUTUBE:"YOUTUBE",YOUTUBE_LOGO:"YOUTUBE_LOGO",YOUTUBE_LOGO_LIGHT:"YOUTUBE_LOGO_LIGHT",YOUTUBE_RED_LOGO:"YOUTUBE_RED_LOGO",YOUTUBE_RED_LOGO_SHORT:"YOUTUBE_RED_LOGO_SHORT",YOUTUBE_RED_LOGO_LIGHT:"YOUTUBE_RED_LOGO_LIGHT",YOUTUBE_RED_LOGO_WHITE_TEXT:"YOUTUBE_RED_LOGO_WHITE_TEXT",YOUTUBE_PLUS_LOGO:"YOUTUBE_PLUS_LOGO",YOUTUBE_PLUS_LOGO_SHORT:"YOUTUBE_PLUS_LOGO_SHORT",
YOUTUBE_PLUS_LOGO_LIGHT:"YOUTUBE_PLUS_LOGO_LIGHT",YOUTUBE_MUSIC_LOGO_SHORT:"YOUTUBE_MUSIC_LOGO_SHORT",YOUTUBE_MUSIC_LOGO_WHITE_TEXT:"YOUTUBE_MUSIC_LOGO_WHITE_TEXT",YOUTUBE_PREMIERE_LOGO_SHORT:"YOUTUBE_PREMIERE_LOGO_SHORT",YOUTUBE_PREMIUM_LOGO:"YOUTUBE_PREMIUM_LOGO",YOUTUBE_PREMIUM_LOGO_SHORT:"YOUTUBE_PREMIUM_LOGO_SHORT",YOUTUBE_SHORTS_ARROW_UP:"YOUTUBE_SHORTS_ARROW_UP",YOUTUBE_SHORTS_ARROW_DOWN:"YOUTUBE_SHORTS_ARROW_DOWN",YOUTUBE_SHORTS_OUTLINE_16:"YOUTUBE_SHORTS_OUTLINE_16",YOUTUBE_SHORTS_OUTLINE_20:"YOUTUBE_SHORTS_OUTLINE_20",
YOUTUBE_SHORTS_OUTLINE_24:"YOUTUBE_SHORTS_OUTLINE_24",YOUTUBE_SHORTS_FILL_16:"YOUTUBE_SHORTS_FILL_16",YOUTUBE_SHORTS_FILL_20:"YOUTUBE_SHORTS_FILL_20",YOUTUBE_SHORTS_FILL_24:"YOUTUBE_SHORTS_FILL_24",YOUTUBE_SHORTS_BRAND_24:"YOUTUBE_SHORTS_BRAND_24",YOUTUBE_SHORTS_BRAND_32:"YOUTUBE_SHORTS_BRAND_32",YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21:"YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16",
YOUTUBE_TV:"YOUTUBE_TV",YOUTUBE_WHITE:"YOUTUBE_WHITE",YOUTUBE_KIDS:"YOUTUBE_KIDS",YOUTUBE_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK",MONETIZATION_ON:"MONETIZATION_ON",SORT_NEWEST:"SORT_NEWEST",SORT_MOST_VIEWED:"SORT_MOST_VIEWED",VIDEO_QUALITY:"VIDEO_QUALITY",
VIDEO_QUALITY_4K:"VIDEO_QUALITY_4K",VIDEO_QUALITY_4K_FILLED:"VIDEO_QUALITY_4K_FILLED",VIDEO_QUALITY_8K:"VIDEO_QUALITY_8K",VIDEO_QUALITY_SD:"VIDEO_QUALITY_SD",FEEDBACK:"FEEDBACK",FEEDBACK_CAIRO:"FEEDBACK_CAIRO",PRIVACY_INFO:"PRIVACY_INFO",SHARE_LIGHT:"SHARE_LIGHT",SHARE_ARROW:"SHARE_ARROW",SHARE_ARROW_LIGHT:"SHARE_ARROW_LIGHT",SHARE_CAIRO:"SHARE_CAIRO",IOS_SHARE:"IOS_SHARE",CREATE_PLAYLIST:"CREATE_PLAYLIST",UNLIMITED:"UNLIMITED",EMPTY_HEART:"EMPTY_HEART",FULL_HEART:"FULL_HEART",UNLIMITED_LOGO:"UNLIMITED_LOGO",
RELATED:"RELATED",PLAYING:"PLAYING",REPORT_PROBLEM:"REPORT_PROBLEM",BUG_REPORT:"BUG_REPORT",INLINE_PLAYBACK_SETTINGS:"INLINE_PLAYBACK_SETTINGS",REPLAY:"REPLAY",REFRESH:"REFRESH",REDEEM:"REDEEM",SWITCH_ACCOUNTS:"SWITCH_ACCOUNTS",SHUFFLE:"SHUFFLE",MUSIC_SHUFFLE:"MUSIC_SHUFFLE",LOOP:"LOOP",LOOP_ACTIVE:"LOOP_ACTIVE",LOOP_ONE:"LOOP_ONE",LOOP_ONE_ACTIVE:"LOOP_ONE_ACTIVE",ACCOUNT_CIRCLE:"ACCOUNT_CIRCLE",ACCOUNT_CIRCLE_CAIRO:"ACCOUNT_CIRCLE_CAIRO",ACCOUNT_BOX:"ACCOUNT_BOX",ACCOUNT_BOX_CAIRO:"ACCOUNT_BOX_CAIRO",
OPEN_IN_NEW:"OPEN_IN_NEW",OPEN_WITH:"OPEN_WITH",CAST_ICON:"CAST_ICON",CAST_OUTLINE:"CAST_OUTLINE",CAST_MOBILE:"CAST_MOBILE",DISCONNECTED_CAST_CIRCLE:"DISCONNECTED_CAST_CIRCLE",SHORTS_COMMENT:"SHORTS_COMMENT",SHORTS_DISLIKE:"SHORTS_DISLIKE",SHORTS_LIKE:"SHORTS_LIKE",SHORTS_SHARE:"SHORTS_SHARE",SHORTS_HEADER_CAMERA:"SHORTS_HEADER_CAMERA",SHORTS_HEADER_CAMERA_BOLD:"SHORTS_HEADER_CAMERA_BOLD",SHORTS_LIKE_SELECTED:"SHORTS_LIKE_SELECTED",SHORTS_DISLIKE_SELECTED:"SHORTS_DISLIKE_SELECTED",SHORTS_SAVE_OFF:"SHORTS_SAVE_OFF",
SHORTS_SAVE_ON:"SHORTS_SAVE_ON",SHORTS_SEARCH:"SHORTS_SEARCH",ADD_FRIEND:"ADD_FRIEND",ADD_MORE_FRIENDS:"ADD_MORE_FRIENDS",ACCEPT_FRIEND_INVITE:"ACCEPT_FRIEND_INVITE",DECLINE_FRIEND_INVITE:"DECLINE_FRIEND_INVITE",CANCEL_FRIEND_INVITE:"CANCEL_FRIEND_INVITE",BLOCK_USER:"BLOCK_USER",UNBLOCK_USER:"UNBLOCK_USER",VIEW_PARTICIPANTS:"VIEW_PARTICIPANTS",INVITE_TO_CONVERSATION:"INVITE_TO_CONVERSATION",LIVE:"LIVE",LIVE_CAIRO:"LIVE_CAIRO",SPECIAL:"SPECIAL",HOME:"HOME",HOME_FILLED:"HOME_FILLED",STAFF_PICK:"STAFF_PICK",
REVIEW:"REVIEW",LETS_PLAY:"LETS_PLAY",MORE_FROM_PUBLISHER:"MORE_FROM_PUBLISHER",NEWS:"NEWS",NEWS_CAIRO:"NEWS_CAIRO",TRAILER:"TRAILER",NEW_RELEASE:"NEW_RELEASE",TOURNAMENTS:"TOURNAMENTS",SPEED_RUN:"SPEED_RUN",EVENT:"EVENT",EVENT_LIGHT:"EVENT_LIGHT",TUTORIAL:"TUTORIAL",GAMES:"GAMES",RECOMMENDED:"RECOMMENDED",TRENDING_UP:"TRENDING_UP",VIDEOS:"VIDEOS",FASHION_LOGO:"FASHION_LOGO",FASHION_LOGO_CAIRO:"FASHION_LOGO_CAIRO",TERMS_OF_SERVICE:"TERMS_OF_SERVICE",CONTACT:"CONTACT",COLORED_GAMING_LOGO:"COLORED_GAMING_LOGO",
GAMING_LOGO:"GAMING_LOGO",GAMING_LOGO_CAIRO:"GAMING_LOGO_CAIRO",CHANNEL_NOTIFICATION_PREFERENCE_OFF:"CHANNEL_NOTIFICATION_PREFERENCE_OFF",CHANNEL_NOTIFICATION_PREFERENCE_ON:"CHANNEL_NOTIFICATION_PREFERENCE_ON",PLAYLIST_NOTIFICATION_PREFERENCE_OFF:"PLAYLIST_NOTIFICATION_PREFERENCE_OFF",PLAYLIST_NOTIFICATION_PREFERENCE_ON:"PLAYLIST_NOTIFICATION_PREFERENCE_ON",NOTIFICATIONS:"NOTIFICATIONS",NOTIFICATIONS_CAIRO:"NOTIFICATIONS_CAIRO",NOTIFICATIONS_OFF:"NOTIFICATIONS_OFF",NOTIFICATIONS_OFF_OUTLINE:"NOTIFICATIONS_OFF_OUTLINE",
NOTIFICATIONS_DONE_CHECKMARK:"NOTIFICATIONS_DONE_CHECKMARK",MUSIC_AUTO_OFFLINE_BADGE:"MUSIC_AUTO_OFFLINE_BADGE",MUSIC_EXPLICIT_BADGE:"MUSIC_EXPLICIT_BADGE",MUSIC_NOTIFICATIONS_SETTING:"MUSIC_NOTIFICATIONS_SETTING",NOTIFICATIONS_NONE:"NOTIFICATIONS_NONE",NOTIFICATIONS_ACTIVE:"NOTIFICATIONS_ACTIVE",NOTIFICATIONS_OCCASIONAL:"NOTIFICATIONS_OCCASIONAL",SEND:"SEND",SEND_OUTLINE:"SEND_OUTLINE",SLOW_MODE:"SLOW_MODE",SLOW_MODE_OFF:"SLOW_MODE_OFF",STORIES_ADD_BADGE:"STORIES_ADD_BADGE",SUPER_CHAT_FOR_GOOD:"SUPER_CHAT_FOR_GOOD",
MEMBERS_ONLY_MODE:"MEMBERS_ONLY_MODE",MEMBERS_ONLY_MODE_OFF:"MEMBERS_ONLY_MODE_OFF",INVITE_ONLY_MODE:"INVITE_ONLY_MODE",INVITE_ONLY_MODE_OFF:"INVITE_ONLY_MODE_OFF",EMOJI:"EMOJI",EMOJI_ACTIVITIES:"EMOJI_ACTIVITIES",EMOJI_CUSTOM:"EMOJI_CUSTOM",EMOJI_FLAGS:"EMOJI_FLAGS",EMOJI_FOOD:"EMOJI_FOOD",EMOJI_NATURE:"EMOJI_NATURE",EMOJI_OBJECTS:"EMOJI_OBJECTS",EMOJI_PEOPLE:"EMOJI_PEOPLE",EMOJI_RECENT:"EMOJI_RECENT",EMOJI_SYMBOLS:"EMOJI_SYMBOLS",EMOJI_TRAVEL:"EMOJI_TRAVEL",EMOJI_SPONSORSHIPS:"EMOJI_SPONSORSHIPS",
HEART_BOX:"HEART_BOX",MEDAL_STAR:"MEDAL_STAR",SUPERSTAR:"SUPERSTAR",TROPHY_STAR:"TROPHY_STAR",MESSAGE_BUBBLE_GEAR:"MESSAGE_BUBBLE_GEAR",MESSAGE_BUBBLE_LEFT:"MESSAGE_BUBBLE_LEFT",MESSAGE_BUBBLE_LEFT_BOOST:"MESSAGE_BUBBLE_LEFT_BOOST",MONEY_FILL:"MONEY_FILL",MONEY_FILL_JPY:"MONEY_FILL_JPY",MONEY_FILL_STORE:"MONEY_FILL_STORE",MONEY_FILL_SHOPPING_BAG:"MONEY_FILL_SHOPPING_BAG",MONEY_FILL_MORE_ARROW:"MONEY_FILL_MORE_ARROW",MONEY_HEART:"MONEY_HEART",FILL_DOLLAR_SIGN_HEART_12:"FILL_DOLLAR_SIGN_HEART_12",PURCHASE_SPONSORSHIP:"PURCHASE_SPONSORSHIP",
PURCHASE_SUPER_CHAT:"PURCHASE_SUPER_CHAT",PURCHASE_SUPER_STICKER:"PURCHASE_SUPER_STICKER",SUPER_STICKER:"SUPER_STICKER",REDEEM_SUPER_CHAT_FREEBIE:"REDEEM_SUPER_CHAT_FREEBIE",STICKER_GHOST_CARD:"STICKER_GHOST_CARD",DOLLAR_SIGN_CIRCLE:"DOLLAR_SIGN_CIRCLE",OWNER:"OWNER",MODERATOR:"MODERATOR",YOUTUBE_TEAM:"YOUTUBE_TEAM",VERIFIED:"VERIFIED",MEMBER:"MEMBER",FAB_UPLOAD:"FAB_UPLOAD",FAB_CAMERA:"FAB_CAMERA",BACKGROUND_SIGNED_OUT:"BACKGROUND_SIGNED_OUT",BACKGROUND_SUBSCRIBE:"BACKGROUND_SUBSCRIBE",BACKGROUND_SUBSCRIBE_TRANSPARENT:"BACKGROUND_SUBSCRIBE_TRANSPARENT",
ARTIST:"ARTIST",ARTIST_ANALYTICS:"ARTIST_ANALYTICS",ASSESSMENT:"ASSESSMENT",CREDIT_CARD:"CREDIT_CARD",GET_APP:"GET_APP",LIVE_CHECKLIST:"LIVE_CHECKLIST",MEMBERSHIP_PRE_PURCHASE:"MEMBERSHIP_PRE_PURCHASE",MEMBERSHIP_LIMITED_PRE_PURCHASE:"MEMBERSHIP_LIMITED_PRE_PURCHASE",MEMBERSHIP_POST_PURCHASE:"MEMBERSHIP_POST_PURCHASE",MEMBERSHIP_LIMITED_POST_PURCHASE:"MEMBERSHIP_LIMITED_POST_PURCHASE",MEMBERSHIP_OFFER:"MEMBERSHIP_OFFER",MEMBERSHIP_MANAGE:"MEMBERSHIP_MANAGE",MEMBERSHIP_CANCELED:"MEMBERSHIP_CANCELED",
MEMBERSHIP_PURCHASED:"MEMBERSHIP_PURCHASED",PHONE:"PHONE",SMS:"SMS",FAVORITE:"FAVORITE",UNFAVORITE:"UNFAVORITE",NEXT:"NEXT",REPOST:"REPOST",EXTERNAL_LINK:"EXTERNAL_LINK",LANGUAGE:"LANGUAGE",CLOSED_CAPTION:"CLOSED_CAPTION",CLOSED_CAPTION_SELECTED:"CLOSED_CAPTION_SELECTED",VIEW_LIST:"VIEW_LIST",VIEW_LIST_CAIRO:"VIEW_LIST_CAIRO",VIEW_LIST_DARK:"VIEW_LIST_DARK",VIEW_MODULE:"VIEW_MODULE",VIEW_MODULE_DARK:"VIEW_MODULE_DARK",VERTICAL_ALIGN_BOTTOM:"VERTICAL_ALIGN_BOTTOM",VERTICAL_ALIGN_TOP:"VERTICAL_ALIGN_TOP",
MUSIC_UNAVAILABLE:"MUSIC_UNAVAILABLE",NO_CONVERSATIONS:"NO_CONVERSATIONS",ALERT_WARN_RED:"ALERT_WARN_RED",ALERT_WARN_YELLOW:"ALERT_WARN_YELLOW",WARNING:"WARNING",SORT:"SORT",FILTER:"FILTER",KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE",KIDS_SCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_SCHOOL_CONTENT_AGE_PREFERENCE",KIDS_NO_CONTENT_AGE_PREFERENCE:"KIDS_NO_CONTENT_AGE_PREFERENCE",SPACECAST:"SPACECAST",SCHOOL:"SCHOOL",ACCELERATOR:"ACCELERATOR",TRENDING:"TRENDING",TRENDING_CAIRO:"TRENDING_CAIRO",
PAUSE_FILLED:"PAUSE_FILLED",PAUSE_OUTLINED:"PAUSE_OUTLINED",PHOTO_CAMERA:"PHOTO_CAMERA",PHOTO_CAMERA_LIGHT:"PHOTO_CAMERA_LIGHT",PHOTO_CAMERA_OUTLINE:"PHOTO_CAMERA_OUTLINE",PHOTO_CAMERA_OUTLINE_LARGE:"PHOTO_CAMERA_OUTLINE_LARGE",PHOTO_LIBRARY:"PHOTO_LIBRARY",COPYRIGHT_NOTIFICATION_RED:"COPYRIGHT_NOTIFICATION_RED",COPYRIGHT_NOTIFICATION_BLUE:"COPYRIGHT_NOTIFICATION_BLUE",PLAYLIST_ADD:"PLAYLIST_ADD",PLAYLIST_ADD_CHECK:"PLAYLIST_ADD_CHECK",CHANNEL_BACK:"CHANNEL_BACK",STAR:"STAR",STAR_FILLED:"STAR_FILLED",
STAR_BORDER:"STAR_BORDER",STAR_HALF:"STAR_HALF",CLOSE:"CLOSE",CLOSE_LIGHT:"CLOSE_LIGHT",COUNTDOWN_TO_CLOSE:"COUNTDOWN_TO_CLOSE",COUNTDOWN_TO_CLOSE_DIGIT:"COUNTDOWN_TO_CLOSE_DIGIT",CHECK:"CHECK",TOPIC_EXPLORER_EXPAND_FACET:"TOPIC_EXPLORER_EXPAND_FACET",TOPIC_EXPLORER_COLLAPSE_FACET:"TOPIC_EXPLORER_COLLAPSE_FACET",CLEAR_COOKIES:"CLEAR_COOKIES",CLEAR_WATCH_HISTORY:"CLEAR_WATCH_HISTORY",CLEAR_SEARCH_HISTORY:"CLEAR_SEARCH_HISTORY",CHEVRON_RIGHT:"CHEVRON_RIGHT",CHEVRON_RIGHT_CAIRO:"CHEVRON_RIGHT_CAIRO",
CHEVRON_RIGHT_GREY:"CHEVRON_RIGHT_GREY",CHEVRON_LEFT:"CHEVRON_LEFT",SUBSCRIBE:"SUBSCRIBE",SUBSCRIBE_PLUS:"SUBSCRIBE_PLUS",GO_TO_PAGE:"GO_TO_PAGE",DO_NOT_DISTURB:"DO_NOT_DISTURB",ADD_TO_LIBRARY:"ADD_TO_LIBRARY",REMOVE_FROM_LIBRARY:"REMOVE_FROM_LIBRARY",UP_ARROW:"UP_ARROW",DOWN_ARROW:"DOWN_ARROW",DOWN_ARROW_OUTLINE:"DOWN_ARROW_OUTLINE",EMPTY_STATE_CREATE_VIDEO:"EMPTY_STATE_CREATE_VIDEO",EMPTY_STATE_ORGANIZE_CHANNEL:"EMPTY_STATE_ORGANIZE_CHANNEL",EMPTY_STATE_NO_CONTENT:"EMPTY_STATE_NO_CONTENT",EMPTY_STATE_PRIVATE_CONTENT:"EMPTY_STATE_PRIVATE_CONTENT",
BUY_DATA:"BUY_DATA",SHOPPING_CART:"SHOPPING_CART",ARROW_FLIP:"ARROW_FLIP",RESTORE:"RESTORE",ARROW_DIAGONAL:"ARROW_DIAGONAL",CONSENT_SHIELD:"CONSENT_SHIELD",COMMENT:"COMMENT",START_DVR:"START_DVR",STOP_DVR:"STOP_DVR",CHAT:"CHAT",CHAT_OFF:"CHAT_OFF",CHAT_BUBBLE:"CHAT_BUBBLE",CHAT_BUBBLE_LIGHT:"CHAT_BUBBLE_LIGHT",CHAT_BUBBLE_OFF:"CHAT_BUBBLE_OFF",CHAT_SPARK:"CHAT_SPARK",CHAT_SPONSORED:"CHAT_SPONSORED",VOICE_CHAT:"VOICE_CHAT",SPONSORSHIP_STAR:"SPONSORSHIP_STAR",SPONSORSHIPS:"SPONSORSHIPS",SPONSORSHIPS_NO_BG:"SPONSORSHIPS_NO_BG",
PLAY_ARROW:"PLAY_ARROW",PLAY_ARROW_OUTLINED:"PLAY_ARROW_OUTLINED",PLAY_ARROW_CIRCLE:"PLAY_ARROW_CIRCLE",PLAY_CIRCLE:"PLAY_CIRCLE",PLAY_ARROW_OVERLAY:"PLAY_ARROW_OVERLAY",PLAY_OUTLINED:"PLAY_OUTLINED",CHECK_CIRCLE:"CHECK_CIRCLE",CHECK_CIRCLE_BLUE:"CHECK_CIRCLE_BLUE",CHECK_CIRCLE_OUTLINE:"CHECK_CIRCLE_OUTLINE",CHECK_CIRCLE_THICK:"CHECK_CIRCLE_THICK",CHECK_CIRCLE_FILLED:"CHECK_CIRCLE_FILLED",COPY:"COPY",QUEUE_PLAY_NEXT:"QUEUE_PLAY_NEXT",QUEUE_PLAY_LAST:"QUEUE_PLAY_LAST",QUEUE_MUSIC:"QUEUE_MUSIC",CARDBOARD:"CARDBOARD",
PLANNER_REVIEW:"PLANNER_REVIEW",MORE_VERT:"MORE_VERT",MORE_VERT_BOLD:"MORE_VERT_BOLD",MORE_HORIZ_LIGHT:"MORE_HORIZ_LIGHT",MORE_HORIZ:"MORE_HORIZ",ANDROID_PHONE:"ANDROID_PHONE",ADD:"ADD",ADD_BOLD:"ADD_BOLD",ADD_SMALL:"ADD_SMALL",EXIT_APP:"EXIT_APP",IM_FEELING_LUCKY:"IM_FEELING_LUCKY",PUBLIC:"PUBLIC",MESSAGE:"MESSAGE",MOBILE_LANDSCAPE:"MOBILE_LANDSCAPE",MOBILE_PORTRAIT:"MOBILE_PORTRAIT",STAY_CURRENT_LANDSCAPE:"STAY_CURRENT_LANDSCAPE",STAY_CURRENT_PORTRAIT:"STAY_CURRENT_PORTRAIT",BUILD:"BUILD",INPUT_COMPONENT:"INPUT_COMPONENT",
DOGFOOD:"DOGFOOD",KEEP:"KEEP",KEEP_OFF:"KEEP_OFF",DASHBOARD:"DASHBOARD",SPORTS:"SPORTS",SUBTITLES:"SUBTITLES",QUESTION_ANSWER:"QUESTION_ANSWER",IMPORT_CONTACTS:"IMPORT_CONTACTS",VIDEO_CALL:"VIDEO_CALL",VIDEO_CAMERA:"VIDEO_CAMERA",VIDEO_CAMERA_DISABLED:"VIDEO_CAMERA_DISABLED",VIDEO_CAMERA_SWITCH_LIGHT:"VIDEO_CAMERA_SWITCH_LIGHT",BACK_LIGHT:"BACK_LIGHT",FILTER_EFFECT_LIGHT:"FILTER_EFFECT_LIGHT",MICROPHONE_ON:"MICROPHONE_ON",MICROPHONE_OFF:"MICROPHONE_OFF",FLASH_ON:"FLASH_ON",FLASH_OFF:"FLASH_OFF",LINK:"LINK",
LIVE_UNLISTED:"LIVE_UNLISTED",PAYMENT:"PAYMENT",ADD_CIRCLE:"ADD_CIRCLE",SMARTPHONE:"SMARTPHONE",SCREEN_LOCK_PORTRAIT:"SCREEN_LOCK_PORTRAIT",SCREEN_LOCK_LANDSCAPE:"SCREEN_LOCK_LANDSCAPE",KIDS_REPORT_AUDIO:"KIDS_REPORT_AUDIO",KIDS_REPORT_VISUALS:"KIDS_REPORT_VISUALS",KIDS_REPORT_OTHER:"KIDS_REPORT_OTHER",KIDS_BLOCK:"KIDS_BLOCK",KIDS_BLOCK_LIGHT:"KIDS_BLOCK_LIGHT",AVATAR_ANONYMOUS:"AVATAR_ANONYMOUS",AVATAR_LOGGED_OUT:"AVATAR_LOGGED_OUT",HALLOWEEN:"HALLOWEEN",UPLOAD:"UPLOAD",MY_LOCATION:"MY_LOCATION",
MUSIC_VIDEO:"MUSIC_VIDEO",PLAYLIST_PLAY:"PLAYLIST_PLAY",ALBUM:"ALBUM",LOGGED_OUT_SUBS:"LOGGED_OUT_SUBS",LOGGED_OUT_LIBRARY:"LOGGED_OUT_LIBRARY",LOGGED_OUT_ACCOUNT:"LOGGED_OUT_ACCOUNT",FUSION_V2_FSI:"FUSION_V2_FSI",PERSON:"PERSON",PERSON_ADD:"PERSON_ADD",PERSON_ACCOUNT:"PERSON_ACCOUNT",PERSON_CIRCLE:"PERSON_CIRCLE",PERSON_MINUS:"PERSON_MINUS",PERSON_RADAR:"PERSON_RADAR",PERSON_RADAR_FILLED:"PERSON_RADAR_FILLED",PERSON_SETTING:"PERSON_SETTING",MOVIES:"MOVIES",CLAPPERBOARD:"CLAPPERBOARD",CLAPPERBOARD_CAIRO:"CLAPPERBOARD_CAIRO",
MOVIES_BLUE:"MOVIES_BLUE",ROTTEN_TOMATOES_FRESH:"ROTTEN_TOMATOES_FRESH",ROTTEN_TOMATOES_SPLAT:"ROTTEN_TOMATOES_SPLAT",ROTTEN_TOMATOES_CERTIFIED:"ROTTEN_TOMATOES_CERTIFIED",WINTER:"WINTER",HOURGLASS:"HOURGLASS",REMOVE_CIRCLE:"REMOVE_CIRCLE",YOUTUBE_RED_ORIGINALS:"YOUTUBE_RED_ORIGINALS",VIDEO_YOUTUBE_RED:"VIDEO_YOUTUBE_RED",ACCESS_TIME:"ACCESS_TIME",ERROR_OUTLINE:"ERROR_OUTLINE",ERROR_WHITE:"ERROR_WHITE",ERROR_BLACK:"ERROR_BLACK",IMAGE:"IMAGE",NO_CONNECTION:"NO_CONNECTION",UNPLUGGED_LOGO:"UNPLUGGED_LOGO",
CREATE_VIDEO:"CREATE_VIDEO",CREATE_REEL_ITEM:"CREATE_REEL_ITEM",CREATE_LIVE_STREAM:"CREATE_LIVE_STREAM",CREATE_POST:"CREATE_POST",CREATION_ENTRY:"CREATION_ENTRY",CREATION_ENTRY_V2:"CREATION_ENTRY_V2",KIDS_GAMING:"KIDS_GAMING",YOUTUBE_MUSIC_BUTTON:"YOUTUBE_MUSIC_BUTTON",YOUTUBE_MUSIC_BUTTON_RED:"YOUTUBE_MUSIC_BUTTON_RED",YOUTUBE_MUSIC_BUTTON_RINGO:"YOUTUBE_MUSIC_BUTTON_RINGO",YOUTUBE_RED_ORIGINALS_BUTTON:"YOUTUBE_RED_ORIGINALS_BUTTON",YOUTUBE_RED_ORIGINALS_BUTTON_RED:"YOUTUBE_RED_ORIGINALS_BUTTON_RED",
EXIT_TO_APP:"EXIT_TO_APP",FIRST_PAGE:"FIRST_PAGE",LAST_PAGE:"LAST_PAGE",TIMER:"TIMER",TRANSFER_FINISHED:"TRANSFER_FINISHED",TRANSFER_SYNC:"TRANSFER_SYNC",TRANSLATE:"TRANSLATE",AV_TIMER:"AV_TIMER",SUBS_ZERO_STATE:"SUBS_ZERO_STATE",KEYBOARD:"KEYBOARD",KEYBOARD_OUTLINE:"KEYBOARD_OUTLINE",APP_INSTALL:"APP_INSTALL",POLL:"POLL",REDO:"REDO",BLOCK:"BLOCK",ADD_VIDEO_LINK:"ADD_VIDEO_LINK",RADIO_BUTTON_UNCHECKED:"RADIO_BUTTON_UNCHECKED",PLACE:"PLACE",PIVOT_HOME:"PIVOT_HOME",PIVOT_HOME_GREY:"PIVOT_HOME_GREY",
PIVOT_TRENDING:"PIVOT_TRENDING",PIVOT_REWIND:"PIVOT_REWIND",PIVOT_SUBSCRIPTIONS:"PIVOT_SUBSCRIPTIONS",PIVOT_SHARED:"PIVOT_SHARED",PIVOT_LIBRARY:"PIVOT_LIBRARY",PIVOT_ACCOUNT:"PIVOT_ACCOUNT",KIDS_READING:"KIDS_READING",PIVOT_PREMIER:"PIVOT_PREMIER",AUDIOTRACK:"AUDIOTRACK",STICKER_LIGHT:"STICKER_LIGHT",STICKER_EMOTICON:"STICKER_EMOTICON",STARS:"STARS",SCISSORS:"SCISSORS",MUSIC_SCISSORS:"MUSIC_SCISSORS",TAG_FACES:"TAG_FACES",GROUP:"GROUP",EMPTY_STATE_WATCH_LATER:"EMPTY_STATE_WATCH_LATER",SLOW_MOTION_VIDEO:"SLOW_MOTION_VIDEO",
ARROW_FORWARD:"ARROW_FORWARD",ARROW_BACK:"ARROW_BACK",DARK_THEME:"DARK_THEME",DARK_THEME_LARGE:"DARK_THEME_LARGE",VISIBILITY:"VISIBILITY",VISIBILITY_OFF:"VISIBILITY_OFF",MORE_LIKE_THIS:"MORE_LIKE_THIS",CAMERA_ALT:"CAMERA_ALT",ADD_PHOTO_ALTERNATE:"ADD_PHOTO_ALTERNATE",NOT_INTERESTED:"NOT_INTERESTED",APPS:"APPS",YOUTUBE_ROUND:"YOUTUBE_ROUND",OUTLINE_YOUTUBE_ROUND:"OUTLINE_YOUTUBE_ROUND",YOUTUBE_KIDS_ROUND:"YOUTUBE_KIDS_ROUND",YOUTUBE_MUSIC:"YOUTUBE_MUSIC",YOUTUBE_MUSIC_FILLED:"YOUTUBE_MUSIC_FILLED",
YOUTUBE_MUSIC_MONOCHROME:"YOUTUBE_MUSIC_MONOCHROME",YOUTUBE_MUSIC_MONOCHROME_CAIRO:"YOUTUBE_MUSIC_MONOCHROME_CAIRO",UNPLUGGED_BELL_FOLLOW_ENABLED:"UNPLUGGED_BELL_FOLLOW_ENABLED",UNPLUGGED_BELL_FOLLOW_DISABLED:"UNPLUGGED_BELL_FOLLOW_DISABLED",UNPLUGGED_SPORTS:"UNPLUGGED_SPORTS",UNPLUGGED_LIVE_GUIDE:"UNPLUGGED_LIVE_GUIDE",UNPLUGGED_LIVE_GUIDE_FILLED:"UNPLUGGED_LIVE_GUIDE_FILLED",SUBSCRIPTIONS_FILLED:"SUBSCRIPTIONS_FILLED",VISIBILITY_FILLED:"VISIBILITY_FILLED",LOCATION_FILLED:"LOCATION_FILLED",UNPLUGGED_DARK_THEME:"UNPLUGGED_DARK_THEME",
BRIGHTNESS_FIVE:"BRIGHTNESS_FIVE",BRIGHTNESS_FOUR:"BRIGHTNESS_FOUR",UNPLUGGED_NETWORKS:"UNPLUGGED_NETWORKS",UNPLUGGED_EPISODES:"UNPLUGGED_EPISODES",UNPLUGGED_MORE_TO_WATCH:"UNPLUGGED_MORE_TO_WATCH",UNPLUGGED_STORE:"UNPLUGGED_STORE",CONVERSATIONS:"CONVERSATIONS",EMPTY_SEARCH:"EMPTY_SEARCH",CHECK_BOX:"CHECK_BOX",CHECK_BOX_OUTLINE_BLANK:"CHECK_BOX_OUTLINE_BLANK",CHECK_BOX_BAR:"CHECK_BOX_BAR",SKIP_NEXT:"SKIP_NEXT",SKIP_NEXT_NEW:"SKIP_NEXT_NEW",SKIP_PREVIOUS:"SKIP_PREVIOUS",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",
SOUND:"SOUND",AUTOPLAY:"AUTOPLAY",CONTRAST:"CONTRAST",VOLUME_MUTE:"VOLUME_MUTE",VOLUME_OFF:"VOLUME_OFF",VOLUME_UP:"VOLUME_UP",VOLUME_DOWN:"VOLUME_DOWN",MY_VIDEOS_ZERO_STATE:"MY_VIDEOS_ZERO_STATE",BACKSTAGE_ARTWORK:"BACKSTAGE_ARTWORK",LIBRARY_MUSIC:"LIBRARY_MUSIC",LIBRARY_ADD:"LIBRARY_ADD",LIBRARY_IMAGE:"LIBRARY_IMAGE",LIBRARY_REMOVE:"LIBRARY_REMOVE",LIBRARY_OUTLINE:"LIBRARY_OUTLINE",LIBRARY_SAVED:"LIBRARY_SAVED",WATCH_HISTORY_PAUSED:"WATCH_HISTORY_PAUSED",IMPROVE_YOUTUBE:"IMPROVE_YOUTUBE",TV:"TV",
TV_OFF:"TV_OFF",SAVE_ALT:"SAVE_ALT",DOWNLOADS_PAGE_EMPTY:"DOWNLOADS_PAGE_EMPTY",ACCOUNT_LINKED:"ACCOUNT_LINKED",ACCOUNT_UNLINKED:"ACCOUNT_UNLINKED",ACCOUNT_SOME_LINKED:"ACCOUNT_SOME_LINKED",CREATOR_STUDIO_NO_COMMENTS:"CREATOR_STUDIO_NO_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS:"CREATOR_STUDIO_NO_HELD_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS_V2:"CREATOR_STUDIO_NO_HELD_COMMENTS_V2",CREATOR_STUDIO_NO_SEARCH_MATCH:"CREATOR_STUDIO_NO_SEARCH_MATCH",CREATOR_STUDIO_NO_SEARCH_MATCH_V2:"CREATOR_STUDIO_NO_SEARCH_MATCH_V2",
CREATOR_STUDIO_ERROR_ON_LOAD:"CREATOR_STUDIO_ERROR_ON_LOAD",CREATOR_STUDIO_ERROR_ON_LOAD_V2:"CREATOR_STUDIO_ERROR_ON_LOAD_V2",VIDEO_LIBRARY_WHITE:"VIDEO_LIBRARY_WHITE",PRODUCT_SHOP:"PRODUCT_SHOP",PRODUCT_HOTEL:"PRODUCT_HOTEL",PRODUCT_FLIGHT:"PRODUCT_FLIGHT",PLAY_ARROW_BLACK:"PLAY_ARROW_BLACK",HIGHLIGHT_OFF:"HIGHLIGHT_OFF",CREATION_UPLOAD:"CREATION_UPLOAD",CREATION_UPLOAD_RED:"CREATION_UPLOAD_RED",CREATION_LIVE:"CREATION_LIVE",CREATION_POST:"CREATION_POST",GOOGLE:"GOOGLE",PAUSE:"PAUSE",PLAY_DISABLED:"PLAY_DISABLED",
INCOGNITO_CIRCLE:"INCOGNITO_CIRCLE",INCOGNITO_CAIRO:"INCOGNITO_CAIRO",CREATE:"CREATE",CREST:"CREST",EQUALIZER:"EQUALIZER",NOW_PLAYING_EQUALIZER:"NOW_PLAYING_EQUALIZER",WHATS_HOT:"WHATS_HOT",ADD_MODERATOR:"ADD_MODERATOR",REMOVE_MODERATOR:"REMOVE_MODERATOR",HELP_OUTLINE:"HELP_OUTLINE",HELP_FILLED:"HELP_FILLED",OFFICIAL_ARTIST_BADGE:"OFFICIAL_ARTIST_BADGE",DONE_ALL:"DONE_ALL",REMOVE_DONE:"REMOVE_DONE",SUPERVISOR_ACCOUNT:"SUPERVISOR_ACCOUNT",REELS_ZERO_STATE:"REELS_ZERO_STATE",SPOTLIGHT:"SPOTLIGHT",FOLDER:"FOLDER",
TUNE:"TUNE",LOCATION_PIN:"LOCATION_PIN",MAKING:"MAKING",SOCCER:"SOCCER",CURATING_MODE_COLLECTIONS:"CURATING_MODE_COLLECTIONS",APPROVED_FOR_YOU:"APPROVED_FOR_YOU",SHARED_BY_PARENTS:"SHARED_BY_PARENTS",KIDS_WATCH_IT_AGAIN:"KIDS_WATCH_IT_AGAIN",KIDS_SPORTS:"KIDS_SPORTS",PLAY_NEXT:"PLAY_NEXT",BREAKING_NEWS:"BREAKING_NEWS",BREAKING_NEWS_ALT_1:"BREAKING_NEWS_ALT_1",DRAG_HANDLE:"DRAG_HANDLE",LOCK_OPEN:"LOCK_OPEN",ACCOUNT_ADVANCED:"ACCOUNT_ADVANCED",ACCOUNT_PLAYBACK:"ACCOUNT_PLAYBACK",ACCOUNT_PRIVACY:"ACCOUNT_PRIVACY",
ACCOUNT_NOTIFICATIONS:"ACCOUNT_NOTIFICATIONS",ACCOUNT_SETTINGS:"ACCOUNT_SETTINGS",ACCOUNT_SHARING:"ACCOUNT_SHARING",CHROME_ICON:"CHROME_ICON",WATCH_PARTY:"WATCH_PARTY",ARROW_DROP_UP:"ARROW_DROP_UP",ARROW_DROP_DOWN:"ARROW_DROP_DOWN",ARROW_CHART_NEUTRAL:"ARROW_CHART_NEUTRAL",BOOKMARK:"BOOKMARK",BOOKMARK_CAIRO:"BOOKMARK_CAIRO",BOOKMARK_BORDER:"BOOKMARK_BORDER",ROTATE_LEFT:"ROTATE_LEFT",PHONE_DOWNLOAD:"PHONE_DOWNLOAD",FORUM:"FORUM",VPN_KEY:"VPN_KEY",LOCK:"LOCK",LOCK_FILLED:"LOCK_FILLED",INSERT_CHART:"INSERT_CHART",
INSERT_CHART_OUTLINED:"INSERT_CHART_OUTLINED",SHOW_MORE:"SHOW_MORE",CONTENT_CUT:"CONTENT_CUT",CONTENT_CUT_CAIRO:"CONTENT_CUT_CAIRO",CONTENT_CUT_WHITE:"CONTENT_CUT_WHITE",HEADSET:"HEADSET",YOUTUBE_AD:"YOUTUBE_AD",VOICE_REMOTE:"VOICE_REMOTE",WIFI_STATUS_BAR_ZERO:"WIFI_STATUS_BAR_ZERO",WIFI_STATUS_BAR_ONE:"WIFI_STATUS_BAR_ONE",WIFI_STATUS_BAR_THREE:"WIFI_STATUS_BAR_THREE",WIFI_STATUS_BAR_FOUR:"WIFI_STATUS_BAR_FOUR",COURSE:"COURSE",COURSE_CAIRO:"COURSE_CAIRO",COURSE_OUTLINE:"COURSE_OUTLINE",MOBILE_SCREEN_SHARE:"MOBILE_SCREEN_SHARE",
SPEAKER_NOTES:"SPEAKER_NOTES",AUTO_AWESOME:"AUTO_AWESOME",FEATURE_HIGHLIGHT:"FEATURE_HIGHLIGHT",SPONSORS_ONLY_LIVE_CHAT_MODE_ON:"SPONSORS_ONLY_LIVE_CHAT_MODE_ON",SPONSORS_ONLY_LIVE_CHAT_MODE_OFF:"SPONSORS_ONLY_LIVE_CHAT_MODE_OFF",VIDEO_YOUTUBE:"VIDEO_YOUTUBE",SYSTEM_HEADER_FOREGROUND:"SYSTEM_HEADER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND:"SYSTEM_FOOTER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND_RTL:"SYSTEM_FOOTER_FOREGROUND_RTL",SYSTEM_FOOTER_BACKGROUND:"SYSTEM_FOOTER_BACKGROUND",LABS_HEADER:"LABS_HEADER",
SEARCH_LARGE:"SEARCH_LARGE",GOOGLE_LOGO:"GOOGLE_LOGO",ZOOM_IN:"ZOOM_IN",ZOOM_OUT:"ZOOM_OUT",REELS_ADD:"REELS_ADD",SHIELD:"SHIELD",SHIELD_WITH_AVATAR:"SHIELD_WITH_AVATAR",KEYBOARD_ARROW_LEFT:"KEYBOARD_ARROW_LEFT",KEYBOARD_ARROW_RIGHT:"KEYBOARD_ARROW_RIGHT",CHECK_BOX_BLUE:"CHECK_BOX_BLUE",CHECK_BOX_OUTLINE_GREY:"CHECK_BOX_OUTLINE_GREY",WORK_OFF:"WORK_OFF",BRIGHTNESS_THREE:"BRIGHTNESS_THREE",LOCATION_ON:"LOCATION_ON",LOCATION_OFF:"LOCATION_OFF",UNDO:"UNDO",LOCAL_SHIPPING:"LOCAL_SHIPPING",RESHARE:"RESHARE",
MOBILE_FRIENDLY:"MOBILE_FRIENDLY",ENTERTAINMENT:"ENTERTAINMENT",GAMING:"GAMING",HAPPENING_NOW:"HAPPENING_NOW",KIDS_HERO:"KIDS_HERO",POWER_SETTINGS_NEW:"POWER_SETTINGS_NEW",RADIO_BUTTON_CHECKED:"RADIO_BUTTON_CHECKED",CHECK_BOX_V2:"CHECK_BOX_V2",CHECK_BOX_OUTLINE_BLANK_V2:"CHECK_BOX_OUTLINE_BLANK_V2",REELS_COMMENT:"REELS_COMMENT",REELS_COMMENT_FILL:"REELS_COMMENT_FILL",KEYBOARD_ARROW_UP:"KEYBOARD_ARROW_UP",KEYBOARD_ARROW_DOWN:"KEYBOARD_ARROW_DOWN",SUBSCRIBED:"SUBSCRIBED",SUBSCRIBED_DARK_MODE:"SUBSCRIBED_DARK_MODE",
ADD_TO_QUEUE_TAIL:"ADD_TO_QUEUE_TAIL",ADD_TO_QUEUE:"ADD_TO_QUEUE",YOUTUBE_LINKED_TV:"YOUTUBE_LINKED_TV",ARROW_DOWNWARD_ALT:"ARROW_DOWNWARD_ALT",ARROW_UPWARD_ALT:"ARROW_UPWARD_ALT",TROPHY:"TROPHY",TROPHY_CAIRO:"TROPHY_CAIRO",CLOUD_UPLOAD:"CLOUD_UPLOAD",SUBDIRECTORY_ARROW_RIGHT:"SUBDIRECTORY_ARROW_RIGHT",MY_VIDEOS:"MY_VIDEOS",MY_VIDEOS_CAIRO:"MY_VIDEOS_CAIRO",LAUNCH:"LAUNCH",PERSON_OUTLINE:"PERSON_OUTLINE",VIEWS_OUTLINE:"VIEWS_OUTLINE",EXPAND_ALL:"EXPAND_ALL",FACT_CHECK:"FACT_CHECK",RED_CARD:"RED_CARD",
YELLOW_CARD:"YELLOW_CARD",CREATION_ENTRY_UPLOAD_ICON:"CREATION_ENTRY_UPLOAD_ICON",APPLAUSE:"APPLAUSE",LENS_WHITE:"LENS_WHITE",LENS_YELLOW:"LENS_YELLOW",LENS_GREEN:"LENS_GREEN",LENS_CYAN:"LENS_CYAN",LENS_MAGENTA:"LENS_MAGENTA",LENS_RED:"LENS_RED",LENS_BLACK:"LENS_BLACK",LENS_BLUE:"LENS_BLUE",PREMIUM:"PREMIUM",PREMIUM_STANDALONE:"PREMIUM_STANDALONE",PREMIUM_STANDALONE_CAIRO:"PREMIUM_STANDALONE_CAIRO",CLARIFY:"CLARIFY",SCHEDULE:"SCHEDULE",TRAVEL:"TRAVEL",SCREEN_ROTATION:"SCREEN_ROTATION",DRAFT:"DRAFT",
BACKSPACE:"BACKSPACE",LICENSE:"LICENSE",LABEL:"LABEL",SPORTS_BASEBALL:"SPORTS_BASEBALL",SPORTS_BASKETBALL:"SPORTS_BASKETBALL",SPORTS_FOOTBALL:"SPORTS_FOOTBALL",SYNC:"SYNC",SYNC_PROBLEM:"SYNC_PROBLEM",PHONELINK:"PHONELINK",PROGRESS_ACTIVITY:"PROGRESS_ACTIVITY",REELS_VIEW_STORY:"REELS_VIEW_STORY",EARTH:"EARTH",SHOW_CHART:"SHOW_CHART",PEOPLE:"PEOPLE",PEOPLE_ALT:"PEOPLE_ALT",PEOPLE_OUTLINE:"PEOPLE_OUTLINE",PEOPLE_2:"PEOPLE_2",PEOPLE_GROUP:"PEOPLE_GROUP",PEOPLE_FILLED:"PEOPLE_FILLED",DONE:"DONE",GOOGLE_PLAY_GAMES:"GOOGLE_PLAY_GAMES",
AUTOPLAY_ON:"AUTOPLAY_ON",AUTOPLAY_OFF:"AUTOPLAY_OFF",KIDS_AUTOPLAY_ON:"KIDS_AUTOPLAY_ON",KIDS_AUTOPLAY_OFF:"KIDS_AUTOPLAY_OFF",KIDS_AUTOPLAY_LOCKED_OFF:"KIDS_AUTOPLAY_LOCKED_OFF",CALENDAR:"CALENDAR",KIDS_MOVE:"KIDS_MOVE",PROGRESS_SPINNER_GREY:"PROGRESS_SPINNER_GREY",KIDS_CAMP:"KIDS_CAMP",BAR_CHART:"BAR_CHART",POLICY:"POLICY",CREATION_TAB:"CREATION_TAB",CREATION_TAB_LARGE:"CREATION_TAB_LARGE",CREATION_TAB_LARGE_CAIRO:"CREATION_TAB_LARGE_CAIRO",ADD_CIRCLE_OUTLINE:"ADD_CIRCLE_OUTLINE",REMOVE_CIRCLE_OUTLINE:"REMOVE_CIRCLE_OUTLINE",
COLLECTIONS:"COLLECTIONS",FORWARD_10:"FORWARD_10",REPLAY_10:"REPLAY_10",MUSIC_NEW_RELEASE:"MUSIC_NEW_RELEASE",PROMPTED_SIGN_IN:"PROMPTED_SIGN_IN",CAMERA_REMIX:"CAMERA_REMIX",SUBJECT:"SUBJECT",FIND_IN_PAGE:"FIND_IN_PAGE",CREATE_VIDEO_NEW:"CREATE_VIDEO_NEW",GO_LIVE:"GO_LIVE",ADD_STORY:"ADD_STORY",CREATE_POST_NEW:"CREATE_POST_NEW",FACE_VERY_UPSET:"FACE_VERY_UPSET",FACE_VERY_SAD:"FACE_VERY_SAD",FACE_SAD:"FACE_SAD",FACE_MEH:"FACE_MEH",FACE_HAPPY:"FACE_HAPPY",FACE_HAPPY_OUTLINE:"FACE_HAPPY_OUTLINE",FACE_VERY_HAPPY:"FACE_VERY_HAPPY",
FACE_FILLED_HAPPY:"FACE_FILLED_HAPPY",FACE_FILLED_UNHAPPY:"FACE_FILLED_UNHAPPY",FACE_FILLED_VERY_HAPPY:"FACE_FILLED_VERY_HAPPY",FACE_FILLED_MEH:"FACE_FILLED_MEH",FACE_FILLED_SAD:"FACE_FILLED_SAD",FACE_OUTLINED_HAPPY:"FACE_OUTLINED_HAPPY",FACE_OUTLINED_UNHAPPY:"FACE_OUTLINED_UNHAPPY",FACE_OUTLINED_VERY_HAPPY:"FACE_OUTLINED_VERY_HAPPY",FACE_OUTLINED_MEH:"FACE_OUTLINED_MEH",FACE_OUTLINED_SAD:"FACE_OUTLINED_SAD",FACE_OUTLINED_ACTIVE_HAPPY:"FACE_OUTLINED_ACTIVE_HAPPY",FACE_OUTLINED_ACTIVE_UNHAPPY:"FACE_OUTLINED_ACTIVE_UNHAPPY",
FACE_OUTLINED_ACTIVE_VERY_HAPPY:"FACE_OUTLINED_ACTIVE_VERY_HAPPY",FACE_OUTLINED_ACTIVE_MEH:"FACE_OUTLINED_ACTIVE_MEH",FACE_OUTLINED_ACTIVE_SAD:"FACE_OUTLINED_ACTIVE_SAD",OUTLINE_MUSIC_VIDEO:"OUTLINE_MUSIC_VIDEO",OUTLINE_HEADSET:"OUTLINE_HEADSET",OUTLINE_YOUTUBE_MUSIC:"OUTLINE_YOUTUBE_MUSIC",OUTLINE_YOUTUBE_IMPROVE_TV:"OUTLINE_YOUTUBE_IMPROVE_TV",OUTLINE_BAG:"OUTLINE_BAG",OUTLINE_MOBILE_DOWNLOAD:"OUTLINE_MOBILE_DOWNLOAD",HASHTAG_LANDING_PAGE_EMPTY:"HASHTAG_LANDING_PAGE_EMPTY",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE",
HASHTAG_LANDING_PAGE_ERROR:"HASHTAG_LANDING_PAGE_ERROR",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE",TRENDING_DOWN:"TRENDING_DOWN",EXPAND_MORE:"EXPAND_MORE",OUTLINE_CAMERA_20:"OUTLINE_CAMERA_20",OUTLINE_CAMERA_24:"OUTLINE_CAMERA_24",G_TRANSLATE:"G_TRANSLATE",SHOPPING_BAG:"SHOPPING_BAG",SHOPPING_BAG_CAIRO:"SHOPPING_BAG_CAIRO",CAKE:"CAKE",CAMPAIGN:"CAMPAIGN",VIDEOGAME_ASSET:"VIDEOGAME_ASSET",GIF:"GIF",INSERT_PHOTO:"INSERT_PHOTO",LOCAL_MALL:"LOCAL_MALL",COLOR_LENS:"COLOR_LENS",
LOCK_CLOCK:"LOCK_CLOCK",SYSTEM_UPDATE:"SYSTEM_UPDATE",ALL_INCLUSIVE:"ALL_INCLUSIVE",VIDEO_SETTINGS:"VIDEO_SETTINGS",WALLPAPER:"WALLPAPER",GROUPS:"GROUPS",MONEY_OFF:"MONEY_OFF",GAMEPAD:"GAMEPAD",PLAYLISTS_KIDS_RESTRICT_ACCESS:"PLAYLISTS_KIDS_RESTRICT_ACCESS",LIVE_CREATION_RESTRICT_ACCESS:"LIVE_CREATION_RESTRICT_ACCESS",LIVE_SAFEGUARD_EDUCATION:"LIVE_SAFEGUARD_EDUCATION",LIVE_COSTREAM_CREATOR_EDUCATION:"LIVE_COSTREAM_CREATOR_EDUCATION",ARTICLE:"ARTICLE",ARTICLE_ALERT:"ARTICLE_ALERT",ARTICLE_CHECK:"ARTICLE_CHECK",
ARTICLE_CLARIFY:"ARTICLE_CLARIFY",FAST_REWIND:"FAST_REWIND",ALIGN_LEFT:"ALIGN_LEFT",BLACK_JOY:"BLACK_JOY",CATEGORY:"CATEGORY",DESKTOP:"DESKTOP",GOOGLE_LENS:"GOOGLE_LENS",GOOGLE_LENS_CAMERA:"GOOGLE_LENS_CAMERA",INSIGHTS:"INSIGHTS",LIVE_BADGE:"LIVE_BADGE",OUTLINE_ADJUST:"OUTLINE_ADJUST",OUTLINE_LESS_THAN_4:"OUTLINE_LESS_THAN_4",OUTLINE_GREATER_THAN_20:"OUTLINE_GREATER_THAN_20",OUTLINE_CLOCK_HALF_CIRCLE:"OUTLINE_CLOCK_HALF_CIRCLE",OUTLINE_DASHBOARD_PLUS:"OUTLINE_DASHBOARD_PLUS",OUTLINE_RADAR_LIVE:"OUTLINE_RADAR_LIVE",
WAVEFORM:"WAVEFORM",GLOBE:"GLOBE",SUPER_STORE:"SUPER_STORE",MEMBERSHIPS:"MEMBERSHIPS",MEMBERSHIPS_FILLED:"MEMBERSHIPS_FILLED",MONEY_HAND:"MONEY_HAND",YT_FILL_DOWNLOAD_24:"YT_FILL_DOWNLOAD_24",YT_FILL_OPEN_NEW_24:"YT_FILL_OPEN_NEW_24",YT_OUTLINE_CHEVRON_EXPAND_24:"YT_OUTLINE_CHEVRON_EXPAND_24",YT_OUTLINE_CHEVRON_DOWN_24:"YT_OUTLINE_CHEVRON_DOWN_24",YT_OUTLINE_ARROW_REPEAT_1_24:"YT_OUTLINE_ARROW_REPEAT_1_24",YT_FILL_ARROW_REPEAT_1_24:"YT_FILL_ARROW_REPEAT_1_24",HEALTH_AND_SAFETY:"HEALTH_AND_SAFETY",
YT_FILL_YOUTUBE_MUSIC_24:"YT_FILL_YOUTUBE_MUSIC_24",YT_FILL_YOUTUBE_MUSIC_36:"YT_FILL_YOUTUBE_MUSIC_36",OUTLINE_TRASH_CAN:"OUTLINE_TRASH_CAN",OUTLINE_PENCIL:"OUTLINE_PENCIL",OUTLINE_ALERT_CIRCLE:"OUTLINE_ALERT_CIRCLE",OUTLINE_ALERT_TRIANGLE:"OUTLINE_ALERT_TRIANGLE",OUTLINE_OPEN_NEW:"OUTLINE_OPEN_NEW",LIST:"LIST",ARROW_CIRCLE:"ARROW_CIRCLE",EXPAND_LESS:"EXPAND_LESS",YT_OUTLINE_SUBSCRIPTIONS_24PT:"YT_OUTLINE_SUBSCRIPTIONS_24PT",OUTLINE_ADD:"OUTLINE_ADD",MEDAL:"MEDAL",MULTIVIEW:"MULTIVIEW",GIFT:"GIFT",
OUTLINE_GIFT:"OUTLINE_GIFT",OUTLINE_YOUTUBE_SHORTS_PLUS:"OUTLINE_YOUTUBE_SHORTS_PLUS",OUTLINE_YOUTUBE_LINKED_TV:"OUTLINE_YOUTUBE_LINKED_TV",NERD_STATS:"NERD_STATS",YT_OUTLINE_YOUTUBE_MUSIC_24:"YT_OUTLINE_YOUTUBE_MUSIC_24",YT_OUTLINE_MUSIC_24:"YT_OUTLINE_MUSIC_24",YT_OUTLINE_RATING_UP_24:"YT_OUTLINE_RATING_UP_24",YT_OUTLINE_FIRE_24:"YT_OUTLINE_FIRE_24",CREATOR_STUDIO_RED_LOGO:"CREATOR_STUDIO_RED_LOGO",UNPLUGGED_RED_LOGO:"UNPLUGGED_RED_LOGO",MUSIC_RED_LOGO:"MUSIC_RED_LOGO",KIDS_RED_LOGO:"KIDS_RED_LOGO",
LAPTOP_MOBILE:"LAPTOP_MOBILE",AUDIO_SURROUND:"AUDIO_SURROUND",FEATURED_SEASONAL_AND_GIFTS:"FEATURED_SEASONAL_AND_GIFTS",AUDIO:"AUDIO",SKIP_FORWARD_30:"SKIP_FORWARD_30",PLAY_ARROW_HALF_CIRCLE:"PLAY_ARROW_HALF_CIRCLE",VIDEO_LINK:"VIDEO_LINK",TEXT:"TEXT",SELL:"SELL",SELL_FILLED:"SELL_FILLED",YOUTUBE_STUDIO_ARROW_DOWN:"YOUTUBE_STUDIO_ARROW_DOWN",YOUTUBE_STUDIO_ARROW_UP:"YOUTUBE_STUDIO_ARROW_UP",ADMIN_PANEL_SETTINGS:"ADMIN_PANEL_SETTINGS",EXPIRE:"EXPIRE",BAR_HORIZONTAL:"BAR_HORIZONTAL",SCREEN_THEATRE:"SCREEN_THEATRE",
SCREEN_MINIPLAYER:"SCREEN_MINIPLAYER",SCREEN_DEFAULT:"SCREEN_DEFAULT",SCREEN_FULLSCREEN:"SCREEN_FULLSCREEN",LIST_QUEUE:"LIST_QUEUE",MOON_Z:"MOON_Z",MOON_Z_FILLED:"MOON_Z_FILLED",MESSAGE_BUBBLE_QUESTION:"MESSAGE_BUBBLE_QUESTION",TV_CIRCLE:"TV_CIRCLE",PANELS:"PANELS",BOX_PLACEHOLDER_LEFT_OUTLINE:"BOX_PLACEHOLDER_LEFT_OUTLINE",OUTLINE_OVERFLOW_HORIZONTAL_32:"OUTLINE_OVERFLOW_HORIZONTAL_32",OUTLINE_OVERFLOW_VERTICAL:"OUTLINE_OVERFLOW_VERTICAL",SPEAKER:"SPEAKER",SPEAKER_OFF:"SPEAKER_OFF",SPEAKER_GROUP:"SPEAKER_GROUP",
BAG:"BAG",VR:"VR",MUSIC_MUTED:"MUSIC_MUTED",GREEN_SCREEN_OFF:"GREEN_SCREEN_OFF",GREEN_SCREEN_ON:"GREEN_SCREEN_ON",LIST_PLAY_ARROW:"LIST_PLAY_ARROW",BAR_CIRCLE:"BAR_CIRCLE",QUOTATION_MARK:"QUOTATION_MARK",SPARKLE:"SPARKLE",SPARKLE_FILLED:"SPARKLE_FILLED",SPARK:"SPARK",SPARK_RADAR:"SPARK_RADAR",SPARK_SEARCH:"SPARK_SEARCH",OUTLINE_BAG_BOOKMARK:"OUTLINE_BAG_BOOKMARK",RADAR_LIVE:"RADAR_LIVE",PENCIL:"PENCIL",PRICE_TAG:"PRICE_TAG",CHEVRON_DOWN:"CHEVRON_DOWN",CHEVRON_UP:"CHEVRON_UP",SPEED_1_POINT_2X:"SPEED_1_POINT_2X",
SPEED_1_POINT_5X:"SPEED_1_POINT_5X",SPEED_1_POINT_8X:"SPEED_1_POINT_8X",SPEED_POINT_2X:"SPEED_POINT_2X",SPEED_POINT_5X:"SPEED_POINT_5X",SPEED_POINT_8X:"SPEED_POINT_8X",SPEED_1X:"SPEED_1X",SPEED_2X:"SPEED_2X",BROADCAST:"BROADCAST",BROADCAST_CAIRO:"BROADCAST_CAIRO",PODCAST_16:"PODCAST_16",PODCAST_ADD:"PODCAST_ADD",PODCAST_CHECK:"PODCAST_CHECK",DOLLAR_SIGN:"DOLLAR_SIGN",DOLLAR_SIGN_CONTAINER:"DOLLAR_SIGN_CONTAINER",MEET:"MEET",BRIEFCASE:"BRIEFCASE",CHECK_DOUBLE:"CHECK_DOUBLE",CHECK_DOUBLE_OFF:"CHECK_DOUBLE_OFF",
SHIELD_ADD:"SHIELD_ADD",SHIELD_OFF:"SHIELD_OFF",REMIX_FILLED:"REMIX_FILLED",EYE:"EYE",OPEN_IN_PHONE:"OPEN_IN_PHONE",OPEN_IN_PANEL:"OPEN_IN_PANEL",REPLAY_ARROW:"REPLAY_ARROW",ARROW_UNDO:"ARROW_UNDO",PERSON_CIRCLE_SLASH:"PERSON_CIRCLE_SLASH",EARTH_OUTLINE:"EARTH_OUTLINE",SLASH_CIRCLE_LEFT:"SLASH_CIRCLE_LEFT",SLASH_CIRCLE_RIGHT:"SLASH_CIRCLE_RIGHT",ARROW_PAUSE:"ARROW_PAUSE",MENU_FILTER:"MENU_FILTER",SPACE_BAR:"SPACE_BAR",CIRCLES_6:"CIRCLES_6",CELEBRATION:"CELEBRATION",CROWN:"CROWN",CROWN_FILLED:"CROWN_FILLED",
GRID:"GRID",GRID_3X3:"GRID_3X3",GRID_ASYMMETRICAL:"GRID_ASYMMETRICAL",KEEP_FILLED:"KEEP_FILLED",X_CIRCLE:"X_CIRCLE",KIDS_DOWNLOADS:"KIDS_DOWNLOADS",KIDS_MOVE_DOWNLOAD:"KIDS_MOVE_DOWNLOAD",KIDS_SUBSCRIPTIONS:"KIDS_SUBSCRIPTIONS",BRIGHTNESS:"BRIGHTNESS",BRIGHTNESS_FILLED:"BRIGHTNESS_FILLED",MAGIC_WAND:"MAGIC_WAND",MAGIC_WAND_FILLED:"MAGIC_WAND_FILLED",BOX_PENCIL:"BOX_PENCIL",MY_VIDEOS_SUPEX_ZERO_STATE:"MY_VIDEOS_SUPEX_ZERO_STATE",CREATOR_ACADEMY:"CREATOR_ACADEMY",CREATOR_ACADEMY_FILLED:"CREATOR_ACADEMY_FILLED",
CREATOR_ACADEMY_FILLED_16:"CREATOR_ACADEMY_FILLED_16",SCREEN_SWITCH:"SCREEN_SWITCH",PDF:"PDF",SHIELD_OVERFLOW:"SHIELD_OVERFLOW",ANIMALS:"ANIMALS",BOX_OPEN_CHECK:"BOX_OPEN_CHECK",PLAYABLES_LOGO:"PLAYABLES_LOGO",PLAYABLES_LOGO_CAIRO:"PLAYABLES_LOGO_CAIRO",PERSON_2:"PERSON_2",X_OCTAGON:"X_OCTAGON",PLAY_PRISM:"PLAY_PRISM",FILTER_PHOTO:"FILTER_PHOTO",MUSIC_FILLED:"MUSIC_FILLED",COURSE_FILLED:"COURSE_FILLED",TRANSCRIPT:"TRANSCRIPT",TRANSCRIPT_SEARCH:"TRANSCRIPT_SEARCH",STEM:"STEM",ARROW_CIRCLE_RIGHT:"ARROW_CIRCLE_RIGHT",
HEART_CIRCLE:"HEART_CIRCLE",RSS:"RSS",RSS_OFF:"RSS_OFF",PLAYABLES:"PLAYABLES",PERSON_MUSIC:"PERSON_MUSIC",ARROWS_ALERT:"ARROWS_ALERT",CLOCK_ARROWS_ALERT:"CLOCK_ARROWS_ALERT",CLOCK_ARROWS:"CLOCK_ARROWS",SWAP_HORIZ:"SWAP_HORIZ",MUSIC_NOTE_SYMBOL:"MUSIC_NOTE_SYMBOL",BOOK:"BOOK",DISMISS_QUEUE:"DISMISS_QUEUE",RANDOM:"RANDOM",SCREEN_LIGHT:"SCREEN_LIGHT",SINGLE_SPARKLE:"SINGLE_SPARKLE",PROMOTE:"PROMOTE",BUSINESS:"BUSINESS",TOOLBOX:"TOOLBOX",SHORTS_CREATION_COMMENT:"SHORTS_CREATION_COMMENT",SPARK_IMAGE:"SPARK_IMAGE",
SPARK_VIDEO:"SPARK_VIDEO",ALL_CHIP:"ALL_CHIP",TROPHY_CELEBRATIONS:"TROPHY_CELEBRATIONS",SPARK_EDIT:"SPARK_EDIT",MAP_OUTLINE:"MAP_OUTLINE",VOLUME_STABLE:"VOLUME_STABLE",SEARCH_PROMINENT:"SEARCH_PROMINENT",INFINITY_ICON:"INFINITY_ICON",DIRECTIONS_OUTLINE:"DIRECTIONS_OUTLINE",SHORTS_STICKER_PICKER:"SHORTS_STICKER_PICKER",SETTINGS_REMOTE:"SETTINGS_REMOTE",NEWS_STORY:"NEWS_STORY",FOOTBALL_FILLED:"FOOTBALL_FILLED",DOLLARSIGN_COLOR:"DOLLARSIGN_COLOR",YENSIGN_COLOR:"YENSIGN_COLOR",CIRCLES_OVERLAP:"CIRCLES_OVERLAP",
ACCESSIBILITY:"ACCESSIBILITY",CODE:"CODE",HAND_SWIPE_LEFT:"HAND_SWIPE_LEFT",SETTING_UPLOAD:"SETTING_UPLOAD",SETTING_HD:"SETTING_HD",STICKER:"STICKER",SUN:"SUN",MOON:"MOON",EYE_OFF:"EYE_OFF",TARGET:"TARGET",TARGET_ADD:"TARGET_ADD",STAR_SHOOTING:"STAR_SHOOTING",TEXT_BOX:"TEXT_BOX",OUTLINE_ARROW_SOLID_UP:"OUTLINE_ARROW_SOLID_UP",ARROW_SOLID_UP:"ARROW_SOLID_UP",OUTLINE_ARROW_SOLID_DOWN:"OUTLINE_ARROW_SOLID_DOWN",ARROW_SOLID_DOWN:"ARROW_SOLID_DOWN",OUTLINE_ARROW_SOLID_UP_16:"OUTLINE_ARROW_SOLID_UP_16",
FILL_ARROW_SOLID_UP_16:"FILL_ARROW_SOLID_UP_16",OUTLINE_ARROW_SOLID_DOWN_16:"OUTLINE_ARROW_SOLID_DOWN_16",FILL_ARROW_SOLID_DOWN_16:"FILL_ARROW_SOLID_DOWN_16",DIE_3:"DIE_3",POUND:"POUND",CIRCLE:"CIRCLE",CIRCLE_FILLED:"CIRCLE_FILLED",YOUTUBE_SPORTS:"YOUTUBE_SPORTS",STAR_SHOOTING_OUTLINE:"STAR_SHOOTING_OUTLINE",AUDIO_BADGE:"AUDIO_BADGE",FANTASY:"FANTASY",ENGAGEMENT:"ENGAGEMENT",HASHTAG:"HASHTAG",TEMPLATE_ADD:"TEMPLATE_ADD",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP",RUBY:"RUBY",GAME_CONSOLE_DPAD:"GAME_CONSOLE_DPAD",
GAME_CONSOLE_FACE_BUTTONS:"GAME_CONSOLE_FACE_BUTTONS",SKIP_BACK_15:"SKIP_BACK_15",SKIP_FORWARD_15:"SKIP_FORWARD_15",ARROW_CIRCLE_PLAY:"ARROW_CIRCLE_PLAY",NOTE_ADD:"NOTE_ADD",MY_AD_CENTER:"MY_AD_CENTER",MY_AD_CENTER_LOGO:"MY_AD_CENTER_LOGO",PEOPLE_NOTE:"PEOPLE_NOTE",LEARNING:"LEARNING",LEARNING_CAIRO:"LEARNING_CAIRO",IMAGE_ADD:"IMAGE_ADD",LOCATION_POINT:"LOCATION_POINT",OUTLINE_MIX_24:"OUTLINE_MIX_24",FILL_AUDIO_16:"FILL_AUDIO_16",HAND_SWIPE_RIGHT:"HAND_SWIPE_RIGHT",SCHEDULE_FANZONE:"SCHEDULE_FANZONE",
PLAY_PAUSE:"PLAY_PAUSE",ARROW_DIAGONAL_UP_RIGHT:"ARROW_DIAGONAL_UP_RIGHT",ARROW_DIAGONAL_UP_RIGHT_FILLED:"ARROW_DIAGONAL_UP_RIGHT_FILLED",LOCAL_ACTIVITY:"LOCAL_ACTIVITY",STAR_CIRCLE_RIBBON:"STAR_CIRCLE_RIBBON",STAR_CIRCLE_RIBBON_OUTLINE:"STAR_CIRCLE_RIBBON_OUTLINE",LIGHTBULB_SPARK_OUTLINE:"LIGHTBULB_SPARK_OUTLINE",SPARK_LIGHTBULB_OUTLINE:"SPARK_LIGHTBULB_OUTLINE",SPARK_LIGHTBULB_FILLED:"SPARK_LIGHTBULB_FILLED",JOURNEY:"JOURNEY",QUESTION_HEAD:"QUESTION_HEAD"};var GZX=function(){VH.apply(this,arguments)};
_.z(GZX,VH);GZX.prototype.getAssociations=function(){return[]};_.pBX=new _.D("playerInterstitialRenderer");var XBp=new _.D("getKidsBlocklistPickerCommand");_.mLg=new _.D("updateKidsBlacklistEndpoint");_.Ig=new _.D("likeEndpoint");var AHv,f7X,DLJ;AHv=new _.D("addChatItemAction");f7X=new _.D("removeChatItemAction");DLJ=new _.D("markChatItemAsDeletedAction");_.h1X=new _.D("setLiveChatCollapsedStateAction");var yHW=function(){VH.apply(this,arguments)};
_.z(yHW,VH);yHW.prototype.getAssociations=function(){return[]};var ijh=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(ijh,_.XD);var gn1=_.qK(ijh,[0,1,_.Kc]);var qmD=new _.D("liveChatEndpoint");var ZDm=new _.D("liveChatItemContextMenuEndpoint");var wRm=new _.D("liveChatReplayEndpoint");_.r5X=new _.D("emojiPickerRenderer");var Ymh=new _.D("liveChatAuthorBadgeViewModel");var $BK=new _.D("deleteLiveChatMessageCommand");var etg=new _.D("liveChatActionEndpoint");var CBv=new _.D("createLiveChatPollEndpoint");var PBv=new _.D("manageLiveChatUserEndpoint");var dB7=new _.D("moderateLiveChatEndpoint");_.Vg7=new _.D("sendLiveChatMessageEndpoint");var ODX=new _.D("sendLiveChatVoteEndpoint");var HD7=new _.D("clearLocationCommand");var W72=new _.D("resolveLocationCommand");var oDJ=new _.D("interactionLoggingCommandMetadata");var w21=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(w21,_.XD);var Zv9=function(q,Z){return _.ZA(q,1,Z)};var uOg=[0,_.Il];var qx9=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(qx9,_.XD);var g09=function(q,Z){return Cb(q,1,w21,Z)};qx9.prototype.JSC$9923_serializeBinary=aFe([0,_.MY,uOg]);var tb6={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 L7K={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"},
Smm={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 fTX={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"};_.AF6=new _.D("logFlowLoggingEventCommand");_.KRT=new _.D("loggingContext");var vDe=new _.D("captionLanguageSelectActionCommand");var jWv=new _.D("showCaptionLanguageSelectActionCommand");var tg7=new _.D("dismissDialogEndpoint");var Rt7=new _.D("hideItemSectionVideosByIdCommand");var bDh=new _.D("showMiniplayerCommand");var J5J=function(){VH.apply(this,arguments)};
_.z(J5J,VH);J5J.prototype.getAssociations=function(){return[]};var ztX=function(){VH.apply(this,arguments)};
_.z(ztX,VH);ztX.prototype.getAssociations=function(){return[]};var B42=function(){VH.apply(this,arguments)};
_.z(B42,VH);B42.prototype.getAssociations=function(){return[]};var aGe=function(){VH.apply(this,arguments)};
_.z(aGe,VH);aGe.prototype.getAssociations=function(){var q=[];this.delegate.downloadsList&&q.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&q.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&q.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&q.push(this.delegate.refresh);return[].concat(_.Ju(new Set(q)))};var nDD=function(){VH.apply(this,arguments)};
_.z(nDD,VH);nDD.prototype.getAssociations=function(){var q=[];this.delegate.refresh&&q.push(this.delegate.refresh);if(this.delegate.downloads)for(var Z=_.P(this.delegate.downloads),w=Z.next();!w.done;w=Z.next())q.push.apply(q,_.Ju((new QWm(w.value)).getAssociations()));return[].concat(_.Ju(new Set(q)))};
var QWm=function(){dZ.apply(this,arguments)};
_.z(QWm,dZ);QWm.prototype.getAssociations=function(){var q=[];this.delegate.video&&q.push(this.delegate.video);this.delegate.playlist&&q.push(this.delegate.playlist);this.delegate.videoItem&&q.push(this.delegate.videoItem);this.delegate.playlistItem&&q.push(this.delegate.playlistItem);return[].concat(_.Ju(new Set(q)))};var EDD=function(){VH.apply(this,arguments)};
_.z(EDD,VH);EDD.prototype.getAssociations=function(){var q=[];this.delegate.localImageEntities&&q.push.apply(q,_.Ju(this.delegate.localImageEntities));return[].concat(_.Ju(new Set(q)))};var xB7=function(){VH.apply(this,arguments)};
_.z(xB7,VH);xB7.prototype.getAssociations=function(){var q=[];this.delegate.playbackData&&q.push(this.delegate.playbackData);this.delegate.localImageEntities&&q.push.apply(q,_.Ju(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&q.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Ju(new Set(q)))};var T4g=function(){VH.apply(this,arguments)};
_.z(T4g,VH);T4g.prototype.getAssociations=function(){return[]};var UBJ=function(){VH.apply(this,arguments)};
_.z(UBJ,VH);UBJ.prototype.getAssociations=function(){var q=[];this.delegate.fakeChildren&&q.push.apply(q,_.Ju(this.delegate.fakeChildren));return[].concat(_.Ju(new Set(q)))};var kTJ=function(){VH.apply(this,arguments)};
_.z(kTJ,VH);kTJ.prototype.getAssociations=function(){var q=[];this.delegate.video&&q.push(this.delegate.video);this.delegate.playbackData&&q.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&q.push(this.delegate.offlineVideoPolicy);return[].concat(_.Ju(new Set(q)))};var K77=function(){VH.apply(this,arguments)};
_.z(K77,VH);K77.prototype.getAssociations=function(){return[]};var sWJ=function(){VH.apply(this,arguments)};
_.z(sWJ,VH);sWJ.prototype.getAssociations=function(){var q=[];this.delegate.channelOwner&&q.push(this.delegate.channelOwner);this.delegate.videos&&q.push.apply(q,_.Ju(this.delegate.videos));this.delegate.collaboratorChannels&&q.push.apply(q,_.Ju(this.delegate.collaboratorChannels));this.delegate.downloadState&&q.push(this.delegate.downloadState);this.delegate.refresh&&q.push(this.delegate.refresh);return[].concat(_.Ju(new Set(q)))};var IGp=function(){VH.apply(this,arguments)};
_.z(IGp,VH);IGp.prototype.getAssociations=function(){var q=[];this.delegate.video&&q.push(this.delegate.video);this.delegate.channelContributor&&q.push(this.delegate.channelContributor);return[].concat(_.Ju(new Set(q)))};var c51=function(){dZ.apply(this,arguments)};
_.z(c51,dZ);c51.prototype.getAssociations=function(){var q=[];this.delegate.recommendedVideoMetadata&&q.push.apply(q,_.Ju((new Mgm(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.Ju(new Set(q)))};
var Mgm=function(){dZ.apply(this,arguments)};
_.z(Mgm,dZ);Mgm.prototype.getAssociations=function(){var q=[];this.delegate.localImageEntities&&q.push.apply(q,_.Ju(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&q.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Ju(new Set(q)))};var F77=function(){dZ.apply(this,arguments)};
_.z(F77,dZ);F77.prototype.getAssociations=function(){var q=[];this.delegate.playbackPosition&&q.push(this.delegate.playbackPosition);return[].concat(_.Ju(new Set(q)))};var N47=function(){VH.apply(this,arguments)};
_.z(N47,VH);N47.prototype.getAssociations=function(){var q=[];this.delegate.owner&&q.push(this.delegate.owner);this.delegate.downloadState&&q.push(this.delegate.downloadState);this.delegate.userState&&q.push.apply(q,_.Ju((new F77(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&q.push.apply(q,_.Ju((new c51(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.Ju(new Set(q)))};var lGp=function(){VH.apply(this,arguments)};
_.z(lGp,VH);lGp.prototype.getAssociations=function(){var q=[];this.delegate.userChannelDetails&&q.push(this.delegate.userChannelDetails);return[].concat(_.Ju(new Set(q)))};var GTv=function(){VH.apply(this,arguments)};
_.z(GTv,VH);GTv.prototype.getAssociations=function(){var q=[];this.delegate.channelOwner&&q.push(this.delegate.channelOwner);this.delegate.playbackPosition&&q.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&q.push.apply(q,_.Ju(this.delegate.localImageEntities));this.delegate.downloadStatus&&q.push(this.delegate.downloadStatus);return[].concat(_.Ju(new Set(q)))};var vCI=new _.D("downloadsPageSmartDownloadsOptInBannerParams");var pR9=function(){VH.apply(this,arguments)};
_.z(pR9,VH);pR9.prototype.getAssociations=function(){return[]};var XRv=function(){VH.apply(this,arguments)};
_.z(XRv,VH);XRv.prototype.getAssociations=function(){return[]};var mBJ=function(){VH.apply(this,arguments)};
_.z(mBJ,VH);mBJ.prototype.getAssociations=function(){return[]};var A5X=function(){VH.apply(this,arguments)};
_.z(A5X,VH);A5X.prototype.getAssociations=function(){return[]};var fGv=function(){VH.apply(this,arguments)};
_.z(fGv,VH);fGv.prototype.getAssociations=function(){return[]};var DB7=function(){VH.apply(this,arguments)};
_.z(DB7,VH);DB7.prototype.getAssociations=function(){return[]};var htK=function(){VH.apply(this,arguments)};
_.z(htK,VH);htK.prototype.getAssociations=function(){return[]};var y59=function(){VH.apply(this,arguments)};
_.z(y59,VH);y59.prototype.getAssociations=function(){return[]};var T$e=new _.D("dislikeButtonViewModel");var xm1=new _.D("likeButtonViewModel");var iDv=new _.D("videoSummaryContentViewModel");var Xb9=new _.D("videoSummaryParagraphViewModel");var gDX=new _.D("changeTimelyActionVisibilityCommand");var qZ9=new _.D("hideEngagementPanelEndpoint");var ZkJ=new _.D("refreshPanelEndpoint");var wtJ=new _.D("scrollToSectionEndpoint");var r4g=new _.D("seekToVideoTimestampCommand");_.zf=new _.D("showEngagementPanelEndpoint");var YZe=new _.D("showTransientPlayerScrimOverlayCommand");var $Im=new _.D("toggleEngagementPanelCommand");_.e3W=new _.D("createBroadcastCommand");var CJK=new _.D("metadataUpdateCommand");var PJm=function(){VH.apply(this,arguments)};
_.z(PJm,VH);PJm.prototype.getAssociations=function(){return[]};var dIX=function(){VH.apply(this,arguments)};
_.z(dIX,VH);dIX.prototype.getAssociations=function(){return[]};var VQ1=function(){VH.apply(this,arguments)};
_.z(VQ1,VH);VQ1.prototype.getAssociations=function(){return[]};_.Ok2=new _.D("merchandiseShelfRenderer");var Hkh=new _.D("gridMovieRenderer");_.Wbm=new _.D("movieRenderer");var oJ2=function(){VH.apply(this,arguments)};
_.z(oJ2,VH);oJ2.prototype.getAssociations=function(){var q=[];this.delegate.trackDownloadMetadatas&&q.push.apply(q,_.Ju(this.delegate.trackDownloadMetadatas));return[].concat(_.Ju(new Set(q)))};var uWW=function(){VH.apply(this,arguments)};
_.z(uWW,VH);
uWW.prototype.getAssociations=function(){var q=[];this.delegate.downloadedTracks&&q.push.apply(q,_.Ju(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&q.push.apply(q,_.Ju(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&q.push.apply(q,_.Ju(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&q.push.apply(q,_.Ju(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&q.push.apply(q,_.Ju(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
q.push.apply(q,_.Ju(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&q.push.apply(q,_.Ju(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&q.push.apply(q,_.Ju(this.delegate.metadataOnlyTracks));return[].concat(_.Ju(new Set(q)))};var Lbp=function(){VH.apply(this,arguments)};
_.z(Lbp,VH);Lbp.prototype.getAssociations=function(){var q=[];this.delegate.trackDownloadMetadatas&&q.push.apply(q,_.Ju(this.delegate.trackDownloadMetadatas));return[].concat(_.Ju(new Set(q)))};var SZp=function(){VH.apply(this,arguments)};
_.z(SZp,VH);SZp.prototype.getAssociations=function(){var q=[];this.delegate.playbackData&&q.push(this.delegate.playbackData);this.delegate.localImageEntities&&q.push.apply(q,_.Ju(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&q.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Ju(new Set(q)))};var vJh=function(){VH.apply(this,arguments)};
_.z(vJh,VH);
vJh.prototype.getAssociations=function(){var q=[];this.delegate.musicLibraryStatusEntity&&q.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&q.push.apply(q,_.Ju(this.delegate.primaryArtists));this.delegate.details&&q.push(this.delegate.details);this.delegate.userDetails&&q.push(this.delegate.userDetails);this.delegate.tracks&&q.push.apply(q,_.Ju(this.delegate.tracks));this.delegate.share&&q.push(this.delegate.share);this.delegate.downloadMetadata&&q.push(this.delegate.downloadMetadata);this.delegate.refresh&&
q.push(this.delegate.refresh);return[].concat(_.Ju(new Set(q)))};
var jDg=function(){VH.apply(this,arguments)};
_.z(jDg,VH);jDg.prototype.getAssociations=function(){var q=[];this.delegate.albumRelease&&q.push(this.delegate.albumRelease);this.delegate.tracks&&q.push.apply(q,_.Ju(this.delegate.tracks));return[].concat(_.Ju(new Set(q)))};
var tQK=function(){VH.apply(this,arguments)};
_.z(tQK,VH);tQK.prototype.getAssociations=function(){var q=[];this.delegate.albumRelease&&q.push(this.delegate.albumRelease);return[].concat(_.Ju(new Set(q)))};var R3J=function(){VH.apply(this,arguments)};
_.z(R3J,VH);R3J.prototype.getAssociations=function(){var q=[];this.delegate.details&&q.push(this.delegate.details);this.delegate.userDetails&&q.push(this.delegate.userDetails);return[].concat(_.Ju(new Set(q)))};
var bkK=function(){VH.apply(this,arguments)};
_.z(bkK,VH);bkK.prototype.getAssociations=function(){var q=[];this.delegate.parentArtist&&q.push(this.delegate.parentArtist);return[].concat(_.Ju(new Set(q)))};
var J4W=function(){VH.apply(this,arguments)};
_.z(J4W,VH);J4W.prototype.getAssociations=function(){var q=[];this.delegate.parentArtist&&q.push(this.delegate.parentArtist);return[].concat(_.Ju(new Set(q)))};var z39=function(){VH.apply(this,arguments)};
_.z(z39,VH);z39.prototype.getAssociations=function(){return[]};var Ble=function(){VH.apply(this,arguments)};
_.z(Ble,VH);Ble.prototype.getAssociations=function(){return[]};var aim=function(){VH.apply(this,arguments)};
_.z(aim,VH);
aim.prototype.getAssociations=function(){var q=[];this.delegate.tracks&&q.push.apply(q,_.Ju(this.delegate.tracks));this.delegate.refresh&&q.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&q.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&q.push(this.delegate.details);this.delegate.downloadMetadata&&q.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&q.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&q.push(this.delegate.userDetails);this.delegate.entryCollection&&
q.push(this.delegate.entryCollection);this.delegate.share&&q.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&q.push.apply(q,_.Ju((new nJK(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.Ju(new Set(q)))};
var nJK=function(){dZ.apply(this,arguments)};
_.z(nJK,dZ);nJK.prototype.getAssociations=function(){var q=[];this.delegate.creatorEntity&&q.push(this.delegate.creatorEntity);return[].concat(_.Ju(new Set(q)))};var QDv=function(){VH.apply(this,arguments)};
_.z(QDv,VH);QDv.prototype.getAssociations=function(){return[]};var EJm=function(){VH.apply(this,arguments)};
_.z(EJm,VH);
EJm.prototype.getAssociations=function(){var q=[];this.delegate.musicLibraryStatusEntity&&q.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&q.push.apply(q,_.Ju(this.delegate.artists));this.delegate.audioModeVersion&&q.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&q.push(this.delegate.videoModeVersion);this.delegate.userDetails&&q.push(this.delegate.userDetails);this.delegate.details&&q.push(this.delegate.details);this.delegate.albumRelease&&q.push(this.delegate.albumRelease);this.delegate.share&&
q.push(this.delegate.share);this.delegate.libraryEdit&&q.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&q.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&q.push(this.delegate.playbackPosition);this.delegate.lyrics&&q.push(this.delegate.lyrics);return[].concat(_.Ju(new Set(q)))};
var xI1=function(){VH.apply(this,arguments)};
_.z(xI1,VH);xI1.prototype.getAssociations=function(){var q=[];this.delegate.parentTrack&&q.push(this.delegate.parentTrack);return[].concat(_.Ju(new Set(q)))};
var TlK=function(){VH.apply(this,arguments)};
_.z(TlK,VH);TlK.prototype.getAssociations=function(){var q=[];this.delegate.parentTrack&&q.push(this.delegate.parentTrack);return[].concat(_.Ju(new Set(q)))};var mB=new _.D("musicResponsiveListItemRenderer");var Qv2=new _.D("addToPlaylistEndpoint");var UI1=new _.D("captionPickerEndpoint");var kvm=new _.D("suggestStats");var Kbp=new _.D("backstageImageUploadEndpoint");var sDK=new _.D("createBackstagePostDialogEndpoint");_.IiJ=new _.D("createCommentReplyDialogEndpoint");_.c42=new _.D("updateCommentDialogEndpoint");_.MQp=new _.D("updateCommentReplyDialogEndpoint");var FbJ=new _.D("menuEndpoint");var jYT=new _.D("modalEndpoint");var Nl7=new _.D("playlistEditorEndpoint");var li1=new _.D("copyTextEndpoint");var Gv2,ptg;Gv2=new _.D("shareEndpoint");ptg=new _.D("shareEntityEndpoint");_.Xt2=new _.D("shareEntityServiceEndpoint");_.NVT=new _.D("userFeedbackEndpoint");_.ck=new _.D("watchEndpoint");var RGO=new _.D("watchPlaylistEndpoint");var mIJ=new _.D("addUpcomingEventReminderEndpoint");_.LH=new _.D("getCommentsFromInboxCommand");var A4X=new _.D("notificationOptOutEndpoint");var fiX=new _.D("recordNotificationInteractionsEndpoint");var DIe=new _.D("removeUpcomingEventReminderEndpoint");var azT=new _.D("getDownloadActionCommand");_.h3D=new _.D("offlineOrchestrationActionCommand");var y4g=function(){VH.apply(this,arguments)};
_.z(y4g,VH);y4g.prototype.getAssociations=function(){return[]};var ik1=function(){VH.apply(this,arguments)};
_.z(ik1,VH);ik1.prototype.getAssociations=function(){return[]};var gJe=function(){VH.apply(this,arguments)};
_.z(gJe,VH);gJe.prototype.getAssociations=function(){return[]};var qN1=function(){VH.apply(this,arguments)};
_.z(qN1,VH);qN1.prototype.getAssociations=function(){return[]};var ZHJ=function(){VH.apply(this,arguments)};
_.z(ZHJ,VH);ZHJ.prototype.getAssociations=function(){var q=[];this.delegate.transfer&&q.push(this.delegate.transfer);this.delegate.adsPlaybackData&&q.push.apply(q,_.Ju(this.delegate.adsPlaybackData));this.delegate.drmLicense&&q.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&q.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&q.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Ju(new Set(q)))};var wZh=function(){VH.apply(this,arguments)};
_.z(wZh,VH);wZh.prototype.getAssociations=function(){return[]};var rAJ=function(){VH.apply(this,arguments)};
_.z(rAJ,VH);rAJ.prototype.getAssociations=function(){var q=[];this.delegate.offlineVideoStreams&&q.push.apply(q,_.Ju(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&q.push.apply(q,_.Ju(this.delegate.captionTrack));return[].concat(_.Ju(new Set(q)))};var YN1=function(){VH.apply(this,arguments)};
_.z(YN1,VH);YN1.prototype.getAssociations=function(){return[]};var $rm=new _.D("showMoreDrawerCommand");var efK=new _.D("updateEngagementPanelContentCommand");var CGJ=new _.D("getPdgBuyFlowCommand");var PGX=new _.D("liveChatPurchaseMessageEndpoint");var drm=new _.D("openSuperStickerBuyFlowCommand");var VEg=new _.D("updatePdgFeatureEnablementCommand");var OHp=function(){VH.apply(this,arguments)};
_.z(OHp,VH);OHp.prototype.getAssociations=function(){return[]};var HHJ=function(){VH.apply(this,arguments)};
_.z(HHJ,VH);HHJ.prototype.getAssociations=function(){return[]};_.WGK=new _.D("pdgCommentChipRenderer");_.o5p=new _.D("permissionRoleBottomBarRenderer");_.uGJ=new _.D("updatePermissionRoleCommand");var LGe=new _.D("prefetchWatchCommand");var SNX=new _.D("updatePlayerErrorMessageCommand");var jv8=new _.D("toggleCaptionsVisibilityCommand");_.v57=new _.D("quickActionsViewModel");var jxv=new _.D("playerResponse");var tEX=new _.D("playlistRenderer");_.Rfh=new _.D("playlistVideoListRenderer");_.SE=new _.D("playlistEditEndpoint");var bHK=new _.D("createImagePollCommand");var JAp=new _.D("createQuizCommand");var zfK=new _.D("quizRenderer");var BZ7=new _.D("uploadedVideoRenderer");var a12=new _.D("decorateMessageEndpoint");var n5D=new _.D("lpOfferCardOptionViewModel");var Qxm=new _.D("sfvAudioItemPlaybackCommand");var E52=function(){VH.apply(this,arguments)};
_.z(E52,VH);E52.prototype.getAssociations=function(){return[]};_.vZ=new _.D("reelNonVideoContentEndpoint");_.Yz=new _.D("reelWatchEndpoint");_.jE=new _.D("reelItemRenderer");var xr9=new _.D("reelMetapanelViewModel");_.TZD=new _.D("reelNonVideoContentRenderer");_.Urp=new _.D("reelPlayerOverlayRenderer");var kgJ=new _.D("shortsLockupViewModel");var KG9=new _.D("sponsorButtonViewModel");var sxW=new _.D("reelItemWatchResponse");var I1K=new _.D("textBadgeRenderer");_.tA=new _.D("buttonRenderer");_.Rx=new _.D("toggleButtonRenderer");var BRj=new _.D("switchButtonViewModel");_.cA2=new _.D("confirmDialogRenderer");var MEp;MEp=new _.D("menuRenderer");_.FGX=new _.D("menuFlexibleItemRenderer");var NZK=new _.D("pollRenderer");_.l1g=new _.D("backgroundPromoRenderer");var pZp;_.Ggm=new _.D("chipCloudRenderer");pZp=new _.D("chipCloudChipRenderer");var XZX=new _.D("dropdownRenderer");var mrD=new _.D("gridVideoRenderer");_.Yrz=new _.D("itemSectionRenderer");_.AAv=new _.D("messageRenderer");var f1v=new _.D("sortFilterHeaderRenderer");_.Dr1=new _.D("videoRenderer");var hfh=new _.D("resolveUrlCommandMetadata");var yAe=function(){VH.apply(this,arguments)};
_.z(yAe,VH);yAe.prototype.getAssociations=function(){return[]};_.iHK=new _.D("getAnswerCommand");_.Z5=new _.D("searchEndpoint");var g57=new _.D("genAiRichTextViewModel");var BUz=new _.D("overviewAnswerViewModel");var qKp=new _.D("addToPlaylistServiceEndpoint");var Zqv=new _.D("clearSearchHistoryEndpoint");var wV1=new _.D("clearWatchHistoryEndpoint");var rD1=new _.D("webSerializedServiceEndpointExtension");_.YKD=new _.D("createCommentEndpoint");var $kJ=new _.D("createCommentReplyEndpoint");var bG=new _.D("performCommentActionEndpoint");var ep1=new _.D("updateCommentEndpoint");var C8J=new _.D("updateCommentReplyEndpoint");_.JA=new _.D("createPlaylistServiceEndpoint");var P8p=new _.D("deletePlaylistEndpoint");var dk9=new _.D("deleteVideoEndpoint");var nfN=new _.D("getReportFormEndpoint");var V12=new _.D("modifyChannelNotificationPreferenceEndpoint");var f08;_.yB=new _.D("offlinePlaylistEndpoint");f08={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 Dpe;_.h7=new _.D("offlineVideoEndpoint");Dpe={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 OqX=new _.D("pingingEndpoint");_.Hq7=new _.D("selectActiveIdentityEndpoint");var WM1=new _.D("setSettingEndpoint");var $az=new _.D("undoFeedbackEndpoint");var oCg=new _.D("unsubscribeEndpoint");_.ufm=new _.D("updatedMetadataEndpoint");var LMp=function(){VH.apply(this,arguments)};
_.z(LMp,VH);LMp.prototype.getAssociations=function(){return[]};_.SKh=new _.D("updateLocalAppSettingCommand");var vCv=new _.D("saveImageToDeviceEndpoint");var jae=new _.D("shareImageCommand");var t12=new _.D("sharingProviderDataCommand");var Rp2=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Rp2,_.XD);var bq2=[0,_.cI,-1];Rp2.prototype.JSC$10122_serializeBinary=aFe(bq2);var JD2=_.Yv(bq2);var zpK=new _.D("userMentionSuggestionRenderer");var BF9=new _.D("liveChatTunnelCommand");var aK2=new _.D("showSponsorshipsGiftOfferDialogCommand");var nCp=new _.D("sponsorshipsScrollableShelfViewModel");var QaX=new _.D("updateUpcomingEventReminderButtonStateCommand");var ECX=new _.D("upcomingEventReminderButtonStateRenderer");var xk9=new _.D("subscribeEndpoint");var TFW=new _.D("registerTasksCommand");var UkW=new _.D("showDialogCommand");_.rp=new _.D("showSheetCommand");var kB7=function(){VH.apply(this,arguments)};
_.z(kB7,VH);kB7.prototype.getAssociations=function(){return[]};_.kL=new _.D("avatarViewModel");var D81=new _.D("badgeViewModel");_.Wx=new _.D("buttonViewModel");_.zg=new _.D("chipViewModel");var hw2=new _.D("contentPreviewImageViewModel");var rUN=new _.D("decoratedAvatarViewModel");var bET=new _.D("downloadButtonViewModel");_.laI=new _.D("engagementBarViewModel");_.eaO=new _.D("imageBannerViewModel");var HU2=new _.D("lockupContentMetadataRowExtension");var KMp=new _.D("lockupMetadataViewModel");var saK=new _.D("lockupViewModel");var IKg=function(){VH.apply(this,arguments)};
_.z(IKg,VH);IKg.prototype.getAssociations=function(){return[]};_.cDp=new _.D("pageHeaderViewModel");var jPT=new _.D("thumbnailHoverOverlayToggleActionsViewModel");_.o5=new _.D("toggleButtonViewModel");var M1J=function(){VH.apply(this,arguments)};
_.z(M1J,VH);M1J.prototype.getAssociations=function(){return[]};_.GyX=new _.D("votingViewModel");var FMp=new _.D("sectionHeaderViewModel");var NF2=new _.D("notifyDropdownOptionSelectedCommand");var Fkj=new _.D("listViewModel");_.YL=new _.D("listItemViewModel");var lKW=new _.D("dialogHeaderViewModel");var GBJ=function(){VH.apply(this,arguments)};
_.z(GBJ,VH);GBJ.prototype.getAssociations=function(){return[]};var pVm=function(){VH.apply(this,arguments)};
_.z(pVm,VH);pVm.prototype.getAssociations=function(){return[]};var XVe=function(){VH.apply(this,arguments)};
_.z(XVe,VH);XVe.prototype.getAssociations=function(){return[]};_.mk7=new _.D("transcriptSubmitCaptionCorrectionCommand");var ADh=function(){VH.apply(this,arguments)};
_.z(ADh,VH);ADh.prototype.getAssociations=function(){return[]};var CH9=new _.D("unpluggedStringRunImage");var fK7=new _.D("tabViewModel");var Dk1=new _.D("tabbedViewModel");var hpv=function(){VH.apply(this,arguments)};
_.z(hpv,VH);hpv.prototype.getAssociations=function(){return[]};_.yD9=new _.D("updateDescriptionAction");var iq9=new _.D("updateToggleButtonTextAction");_.gCK=new _.D("autoplaySwitchButtonRenderer");var QU;_.qYv=new _.D("multiMarkersPlayerBarRenderer");QU=new _.D("chapterRenderer");var ZK1=new _.D("heatMarkerRenderer");var S_6=new _.D("heatmapRenderer");var wEm=new _.D("smartSkipPlayerScrimOverlayRenderer");var rg2=new _.D("timedMarkerDecorationRenderer");var xce=new _.D("postWebToNativeMessageCommand");var YYW=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(YYW,_.XD);var $nJ=_.qK(YYW,[0,_.cI,-2]);var eF2=new _.D("whitelistEditEndpoint");var C3W=new _.D("commerceActionCommand");_.P3e=new _.D("getPaymentInstrumentsParamsCommand");var dnv=new _.D("getPaymentsClientTokenCommand");var V_g=new _.D("googlePaymentBillingCommand");var OK9=new _.D("googlePaymentPurchaseManagerCommand");_.HKK=new _.D("logGtmCommand");var Wap=new _.D("updateCardItemOnClickCommand");_.obX=new _.D("ypcPauseSubscriptionCommand");_.upg=new _.D("ypcResumeSubscriptionCommand");var LaX=function(){VH.apply(this,arguments)};
_.z(LaX,VH);LaX.prototype.getAssociations=function(){return[]};var SYp=function(){VH.apply(this,arguments)};
_.z(SYp,VH);SYp.prototype.getAssociations=function(){return[]};var vbK=function(){VH.apply(this,arguments)};
_.z(vbK,VH);vbK.prototype.getAssociations=function(){return[]};var jLD=function(){VH.apply(this,arguments)};
_.z(jLD,VH);jLD.prototype.getAssociations=function(){return[]};var t_7=function(){VH.apply(this,arguments)};
_.z(t_7,VH);t_7.prototype.getAssociations=function(){return[]};var gPN=new _.D("ypcOffersEndpoint");var RFm=new _.D("cardItemRenderer"),bK1=new _.D("cardItemTextRenderer");var Jgp=new _.D("commerceCartItemQuantityPickerRenderer");var zFK=new _.D("linkCardRenderer");var JU8=new _.D("quantityIncrementerButtonViewModel");var Bj2=new _.D("quantityIncrementerViewModel");var aZX=new _.D("themedImageViewModel");_.nbX=new _.D("ypcCancelRecurrenceEndpoint");var QLK=new _.D("ypcCompleteTransactionEndpoint");_.Ebg=new _.D("ypcGetCartEndpoint");_.Dv=new _.D("ypcGetOffersEndpoint");_.BZ=new _.D("ypcHandleTransactionEndpoint");var xnD=new _.D("ypcLogWalletAnalyticDataEndpoint");_.Tjh=new _.D("ypcRedeemCodeEndpoint");var Un7=new _.D("ypcUpdateFopEndpoint");pk(Gv(1),NI(4));KIe((new MessageChannel).port2);var kG7=function(){this.register=new Map},bjz=function(q,Z,w){q=q+"_"+Z;
ax.register.has(q)?w=ax.register.get(q):(w=w(),ax.register.set(q,w));return w},Kag=function(q){q=_.P(q.register.values());
for(var Z=q.next();!Z.done;Z=q.next())_.Cd(Z.value,"ABORTED")};
kG7.prototype.clear=function(){Kag(this);this.register.clear()};
var ax=new kG7;var Zj9=Date.now().toString();var rH2,sLJ=_.$1.ytLoggingDocDocumentNonce_;sLJ||(sLJ=js(16),_.IR("ytLoggingDocDocumentNonce_",sLJ));rH2=sLJ;var Oj2={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 IZJ;IZJ=1;_.ty=function(q){this.veData=q};
_.wa=function(q){return new _.ty({trackingParams:q})};
_.C6=function(q,Z,w,r,Y,C){var d=IZJ++;return new _.ty({veType:q,veCounter:d,elementIndex:w,dataElement:Z,youtubeData:r,jspbYoutubeData:Y,loggingDirectives:C})};
_.e=_.ty.prototype;
_.e.getAsJson=function(){var q={};this.veData.trackingParams!==void 0?q.trackingParams=this.veData.trackingParams:(q.veType=this.veData.veType,this.veData.veCounter!==void 0&&(q.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(q.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(q.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(q.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(q.isCounterfactual=!0);
return q};
_.e.getAsJspb=function(){var q=new TJJ;this.veData.trackingParams!==void 0?q.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.nc(q,2,this.veData.veType),this.veData.veCounter!==void 0&&_.nc(q,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.nc(q,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.ZA(q,5,!0));if(this.veData.dataElement!==void 0){var Z=this.veData.dataElement.getAsJspb();_.CA(q,7,Z)}this.veData.youtubeData!==void 0&&_.CA(q,8,this.veData.jspbYoutubeData);
return q};
_.e.toString=function(){return JSON.stringify(this.getAsJson())};
_.e.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.e.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.IR("yt_logging_screen.getRootVeType",PaN);_.IR("yt_logging_screen.getCurrentCsn",_.b5);_.IR("yt_logging_screen.getCttAuthInfo",Jy);_.IR("yt_logging_screen.setCurrentScreen",_.onz);var cg7=function(){this.events=new Map},M_p=function(q){var Z=[];
q=_.P(q.events.values());for(var w=q.next();!w.done;w=q.next())Z.push(w.value);return Z};
cg7.prototype.clear=function(){this.events.clear()};var Nj9=function(){this.logTransport=new Fam;this.loggedEventRegister=new cg7;this.unloggedEventRegister=new cg7;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10177_flushTimer=new _.m3(this.flushInterval);this.JSC$10177_flushTimer.listen("tick",this.flush,!1,this)};
Nj9.prototype.flush=function(){if(this.eventsCount){var q={loggedEvents:M_p(this.loggedEventRegister),unloggedEvents:M_p(this.unloggedEventRegister)};if(_.b("export_player_version_to_ytconfig")){var Z;(Z=_.zj("PLAYER_CLIENT_VERSION"))?(Z=Z.split("-")[0].replace(/\./g,""),Z=isNaN(Number(Z))?"0":Z):Z="";var w=_.zj("PLAYER_CLIENT_VERSION");if(w){w=w.split("-");var r="";w.length>1&&(r=w[w.length-1]);w=qiN(r.startsWith("canary_experiment")?"canary":r.startsWith("canary_control")?"control":"none")}else w=
"CLIENT_CANARY_STATE_UNKNOWN";q.dimensions={playerClientVersion:Z,playerCanaryState:w}}this.logTransport.flush(q);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10177_flushTimer.enabled&&this.JSC$10177_flushTimer.stop()}};
var lZK=function(q){nH==null&&(nH=new Nj9);var Z=nH;var w=Z.loggedEventRegister;q.dimensions=q.dimensions||{};q.dimensions.csn=_.b5()||"";var r=uJz(q.dimensions).join(";");if(q.records!=null)if(w.events.has(r)){var Y;(Y=w.events.get(r).records)==null||Y.push.apply(Y,_.Ju(q.records))}else w.events.set(r,q);Z.JSC$10177_flushTimer.enabled||Z.JSC$10177_flushTimer.start();Z.eventsCount++;Z.eventsCount>=100&&Z.flush()};var Fam=function(){};
Fam.prototype.flush=function(q,Z){_.b("enable_client_sli_logging")&&_.vO("sliEventBatch",q,{sendIsolatedPayload:!!Z})};var nH;var pEh;pEh=function(q){var Z=GGX;q=q===void 0?{}:q;Z=Z.name;var w=R16("SUCCESS");lZK({dimensions:q,records:[{name:Z,state:"SLI_STATE_END",status:w}]})};
_.JHz=function(q,Z,w,r){this.name=q;this.sliId=Z;this.timeoutMs=w;this.statusOnTimeout=r;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.JHz.prototype.getId=function(){return this.sliId};
_.el=function(q,Z){Z=Z===void 0?{}:Z;q.ongoing||(q.ongoing=!0,q.dimensions=Z,q.logSliId=ek9(),lZK({dimensions:q.dimensions,records:[{name:q.name,state:"SLI_STATE_START",sliId:q.logSliId}]}),q.timeoutMs>0&&(q.timeoutHandle=setTimeout(function(){_.Cd(q,q.statusOnTimeout)},q.timeoutMs)))};
_.Cd=function(q,Z){q.ongoing&&(q.timeoutMs>0&&clearTimeout(q.timeoutHandle),q.ongoing=!1,Z={dimensions:q.dimensions,records:[{name:q.name,status:R16(Z),state:"SLI_STATE_END",sliId:q.logSliId}]},ax.register.delete(q.name+"_"+q.sliId),lZK(Z))};var GGX=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var XEJ=function(){VH.apply(this,arguments)};
_.z(XEJ,VH);XEJ.prototype.getAssociations=function(){return[]};var DwO=new _.D("highlightTextDecoratorColorMapExtension");var ASN=new _.D("styleRunColorMapExtension");var xLX=_.Fr(["data-"]),kZj={};var s7z={};_.EP=function(q,Z,w){_.qj.call(this,q+", errorCode="+Z);this.errorCode=Z;this.xhr=w;this.name="PromiseAjaxError"};
_.z(_.EP,_.qj);var N2I=function(q){this.xhr=q};var QH=function(q){this.wrappedPromise_=q===void 0?null:q;this.state_=0;this.JSC$10209_value_=null};
QH.prototype.then=function(q,Z,w){return this.wrappedPromise_?this.wrappedPromise_.then(q,Z,w):this.state_===1&&q?(q=q.call(w,this.JSC$10209_value_))&&typeof q.then==="function"?q:_.EN(q):this.state_===2&&Z?(q=Z.call(w,this.JSC$10209_value_))&&typeof q.then==="function"?q:_.mn7(q):this};
QH.prototype.getValue=function(){return this.JSC$10209_value_};
QH.prototype.isRejected=function(){return this.state_==2};
IMg(QH);_.mn7=function(q){var Z=new QH;q=q===void 0?null:q;Z.state_=2;Z.JSC$10209_value_=q===void 0?null:q;return Z};
_.EN=function(q){var Z=new QH;q=q===void 0?null:q;Z.state_=1;Z.JSC$10209_value_=q===void 0?null:q;return Z};var FwO={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var r5N="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Agh=["load","abort","error"],x5=function(q,Z,w){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10229_maxAspectRatio_=q;this.disableAnimation_=Z===void 0?!1:Z;this.disableExifRotation_=w===void 0?!1:w;this.JSC$10229_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10229_reject_=this.resolve_=null};
x5.prototype.transform=function(q){var Z=this;this.mime_=q.type;sT(aN1(q),this.dataUrlRead_,this.readError_,this);sT(Bx2(q.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(w,r){Z.resolve_=w;Z.JSC$10229_reject_=r})};
x5.prototype.dataUrlRead_=function(q){this.dataUrl_=q;this.angle_!=null&&fZJ(this)};
x5.prototype.exifRead_=function(q){if(this.disableExifRotation_)this.angle_=0;else{a:if(q=new DataView(q),q.byteLength<2||q.getUint16(0)!==65496)q=-2;else{for(var Z=2,w=q.byteLength;Z<w;){var r=q.getUint16(Z),Y=q.getUint16(Z+2);if(r===65505){Z+=4;r=q.getUint32(Z);Y=q.getUint16(Z+4);if(r!==1165519206||Y!==0)break;Z+=6;r=q.getUint16(Z)===18761;Z+=q.getUint32(Z+4,r);Y=q.getUint16(Z,r);Z+=2;for(var C=0;C<Y;C++){if(q.getUint16(Z,r)===274){Z+=8;q=q.getUint16(Z,r);break a}Z+=12}}else if(r>>8!==255)break;
else Z+=Y+2}q=-1}switch(q){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&&fZJ(this)};
x5.prototype.readError_=function(){this.JSC$10229_reject_()};
var fZJ=function(q){qx(q.JSC$10229_image_,Agh,q.completeTransform_,!1,q);q.JSC$10229_image_.src=_.EX(q.dataUrl_).toString();q.JSC$10229_image_.src!=Qw.toString()&&q.JSC$10229_image_.src.substr(0,11)==="data:image/"||q.JSC$10229_reject_()};
x5.prototype.completeTransform_=function(){if(this.JSC$10229_image_.src!=Qw.toString()){var q=_.EX(this.dataUrl_),Z=this.JSC$10229_image_.naturalHeight?this.JSC$10229_image_.naturalWidth/this.JSC$10229_image_.naturalHeight:null;this.invalidAspectRatio=Z>this.JSC$10229_maxAspectRatio_||Z<1/this.JSC$10229_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var w=this.JSC$10229_image_.naturalWidth,r=this.JSC$10229_image_.naturalHeight,Y=Z=0,C=this.JSC$10229_image_.naturalHeight?this.JSC$10229_image_.naturalWidth/
this.JSC$10229_image_.naturalHeight:null;C>this.JSC$10229_maxAspectRatio_?(w=this.JSC$10229_maxAspectRatio_*r,Z=(w-this.JSC$10229_image_.naturalWidth)/2,this.cropped=!0):C<1/this.JSC$10229_maxAspectRatio_?(r=this.JSC$10229_maxAspectRatio_*w,Y=(r-this.JSC$10229_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)C=w,w=r,r=C,C=Z,Z=Y,Y=C;switch(this.angle_){case 90:Y-=w;break;case 180:Z-=w;Y-=r;break;case 270:Z-=
r}this.cropped||this.angle_%360!==0?(q=document.createElement("canvas"),q.width=w||1,q.height=r||1,this.JSC$10229_image_.naturalWidth&&this.JSC$10229_image_.naturalHeight&&(w=q.getContext("2d"),w.rotate(Math.PI/180*this.angle_),w.drawImage(this.JSC$10229_image_,Z,Y,this.JSC$10229_image_.naturalWidth,this.JSC$10229_image_.naturalHeight)),this.transformedData=_.EX(q.toDataURL(this.mime_))):this.transformedData=q}else this.transformedData=q;this.resolve_(this)}};var Tg=function(q,Z){_.$2.call(this,q);this.value=Z};
_.z(Tg,_.$2);
var UN=function(q,Z,w,r,Y,C,d){d=d===void 0?!1:d;_.V8.call(this);var O=this;this.JSC$10234_url_=q;this.channelId_=Z;this.maxFileSizeMb_=w;this.JSC$10234_maxAspectRatio_=r;this.dropZoneEl_=Y;this.rejectInvalidAspectRatio_=d;this.selectButtonEl_=C;this.JSC$10234_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new iJ(this.dropZoneEl_);this.selectOverlay_=new gl(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10234_image_=this.transfer_=null;this.handler_=new _.Al(this);_.$i(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(C,"click",function(){O.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.z(UN,_.V8);UN.prototype.disposeInternal=function(){for(var q=this.selectButtonEl_.nextSibling;q&&q.parentNode&&q.tagName=="INPUT";)q.parentNode.removeChild(q),q=this.selectButtonEl_.nextSibling;this.cancel();_.V8.prototype.disposeInternal.call(this)};
UN.prototype.uploadPromise=function(){if(this.JSC$10234_image_==null)return null;this.uploadPromise_||Dnm(this);return this.uploadPromise_};
UN.prototype.cancel=function(){hFD(this);this.JSC$10234_image_=null};
var hFD=function(q){q.transfer_&&q.transfer_.cancel();q.transfer_=null;q.uploadPromise_=null;q.resolve_=null;q.JSC$10234_reject_=null},Dnm=function(q){hFD(q);
q.transfer_=_.pr2(q.JSC$10234_url_,{"X-YouTube-ChannelId":q.channelId_},q.JSC$10234_image_);q.handler_.listenOnce(q.transfer_,"l",q.JSC$10236_onUploadComplete_);q.handler_.listenOnce(q.transfer_,"n",q.onUploadError_);q.transfer_.run();q.uploadPromise_=new Promise(function(Z,w){q.resolve_=Z;q.JSC$10234_reject_=w})};
_.e=UN.prototype;_.e.onChange_=function(q){q.files.length&&(this.JSC$10234_image_=q.files[0],this.JSC$10234_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10234_image_=null,this.dispatchEvent(new Tg("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(Dnm(this),(new x5(this.JSC$10234_maxAspectRatio_)).transform(this.JSC$10234_image_).then((0,_.Lh)(this.onPreview_,this),(0,_.Lh)(this.onPreviewError_,this))))};
_.e.onPreview_=function(q){if(q.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10234_image_=null),this.dispatchEvent(new Tg("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;q.cropped&&this.dispatchEvent(new Tg("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Tg("yt.comments.ImageUploadOverlay.CHANGE_EVENT",q.transformedData))};
_.e.onPreviewError_=function(){this.JSC$10234_image_=null;this.dispatchEvent(new Tg("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.e.onHover_=function(q){q.stopPropagation();q.preventDefault();if(q.type==="dragover")q=!0;else if(q.type==="dragleave")q=!1;else return;this.dispatchEvent(new Tg("yt.comments.ImageUploadOverlay.HOVER_EVENT",q))};
_.e.JSC$10236_onUploadComplete_=function(){var q=(0,_.C62)(this.transfer_.getResponseText());this.resolve_(q.encryptedBlobId)};
_.e.onUploadError_=function(){this.JSC$10234_reject_();hFD(this)};var ygp=function(q){q=q||{};var Z={},w={};this.url=q.url||"";this.args=q.args||_.R4.clone(Z);this.assets=q.assets||{};this.attrs=q.attrs||_.R4.clone(w);this.fallback=q.fallback||null;this.fallbackMessage=q.fallbackMessage||null;this.html5=!!q.html5;this.disable=q.disable||{};this.loaded=!!q.loaded;this.messages=q.messages||{}};
ygp.prototype.clone=function(){var q=new ygp,Z;for(Z in this)if(this.hasOwnProperty(Z)){var w=this[Z];q[Z]=_.d7N(w)=="object"?_.R4.clone(w):w}return q};var iK2,gb2,qtJ,Xa,wv7,rCv,YtW,$We,e67,CPp,PPe,dWm,VLm,OZD,HZ7,Wr7,okg,uXJ,Lre,Stm,vkp,j21,tLX,R6X,bZp,JC7,z6p,BKh,ahg,c8I,nkW,Q2K,Ek9,xW7,TKp,UW7,kUK,KrJ,s2p,Ihv,cCv,MLJ,Frm,NKX,lhW,GUe,pv7,Xvm,mWD,AC2,fh1,DWJ,h6X,yC7,iZX,gkm,k5,qW2,ZOe,wjm,r_D,YWh,$tm,eGX,Cc7,PcW,dte,VAv,OO9,HOW,WOm,oN7,uYX,LO2,SW7,sC9,vN9,jyJ,tAh,RG2,bOh,J_g,zG1,BmD,apX,nNg,Qy2,ENX,xtm,TmW,Utm,kip,KO1,syW,Iph,c_1,MAm,FO9,Nm9,lpg,Gim;iK2=["account/accounts_list"];gb2=["acknowledge_channel_tou_strike"];qtJ=["notification/add_upcoming_event_reminder"];
_.ZZW=["att/get"];Xa=["browse","music/browse","unplugged/browse"];wv7=["channel/claim_legacy_youtube_channel"];rCv=["history/clear_search_history"];YtW=["history/clear_watch_history"];$We=["comment/perform_comment_action"];e67=["comment/get_comment_replies"];CPp=["ypc/commerce_action"];PPe=["backstage/create_post"];dWm=["live/create_broadcast"];VLm=["channel/create_channel"];OZD=["comment/create_comment_reply"];HZ7=["comment/create_comment"];Wr7=["live_chat/create_poll"];okg=["playlist/create"];
uXJ=["decorate_message"];Lre=["live_chat/delete_message"];Stm=["playlist/delete"];vkp=["video/delete"];j21=["like/dislike"];tLX=["dismissal/dismiss"];R6X=["flag/flag"];bZp=["flow"];JC7=["account/account_menu"];z6p=["playlist/get_add_to_playlist"];BKh=["get_answer"];ahg=["channel/get_channel_creation_form"];c8I=["offline/get_download_action"];nkW=["kids/get_kids_blocklist_picker"];Q2K=["live_chat/get_item_context_menu"];Ek9=["live_chat/get_live_chat_message_buy_flow"];xW7=["live_chat/get_live_chat_replay"];
TKp=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];UW7=["live_chat/get_live_chat_super_sticker_buy_flow"];kUK=["notification/get_notification_menu"];KrJ=["playlist/get_settings_editor"];s2p=["backstage/get_post_video_preview"];Ihv=["account/get_profile_card"];cCv=["share/get_share_panel"];MLJ=["share/get_sharing_provider_data"];Frm=["get_survey"];NKX=["notification/get_unseen_count"];lhW=["get_user_mention_suggestions"];GUe=["get_watch"];pv7=["guide"];
Xvm=["feedback"];mWD=["kids/update_blacklist"];AC2=["like/like"];fh1=["live_chat/live_chat_action"];DWJ=["live_chat/manage_user"];h6X=["video_manager/metadata_update"];yC7=["live_chat/moderate"];iZX=["notification/modify_channel_preference"];gkm=["notification/opt_out"];k5=["get_panel","get_posts_by_host_panel"];qW2=["player"];ZOe=["browse/edit_playlist"];wjm=["notification/record_interactions"];r_D=["reel/reel_item_watch"];YWh=["reel/reel_watch_sequence"];$tm=["like/removelike"];eGX=["notification/remove_upcoming_event_reminder"];
Cc7=["flag/get_form"];PcW=["miniapp/report_value"];dte=["navigation/resolve_url"];VAv=["channel/reveal_business_email"];OO9=["in_video/search"];HOW=["search","sfv/search","unplugged/search"];WOm=["live_chat/send_message"];oN7=["live_chat/send_live_chat_vote"];uYX=["account/set_setting"];LO2=["submit_caption_correction"];SW7=["subscription/subscribe"];sC9=["get_transcript"];vN9=["resolve_location","unplugged/resolve_location"];jyJ=["subscription/unsubscribe"];tAh=["backstage/update_post"];RG2=["channel_edit/update_channel_page_settings"];
bOh=["comment/update_comment_reply"];J_g=["comment/update_comment"];zG1=["comment/update_comments_settings"];BmD=["creator/update_creator_channel"];apX=["pdg/update_enablement"];nNg=["updated_metadata"];Qy2=["channel_edit/validate_channel_handle"];ENX=["verify_age"];xtm=["next","unplugged/watch_next"];TmW=["whitelist/edit"];Utm=["ypc/cancel_recurrence"];kip=["ypc/complete_transaction"];KO1=["ypc/get_cart"];syW=["ypc/get_fix_instrument_params"];Iph=["ypc/get_offers"];c_1=["ypc/get_payment_instruments_params"];
MAm=["ypc/handle_transaction"];FO9=["ypc/log_payment_server_analytics"];Nm9=["ypc/pause_subscription"];lpg=["ypc/redeem_code"];Gim=["ypc/resume_subscription"];var pj1=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,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,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,
74616,122224,74617,77820,74618,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,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,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,196075,194768,252201,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,
253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,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,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,
201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,
213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,
140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];var Pd=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.IR("yt.msgs_",Pd);var KH=new _.F$("ACTION_ROUTER_TOKEN");_.sN=function(){this.autonavState_=_.b("kevlar_is_pupi_enabled")?2:uO1()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.sN.prototype.getState=function(){return this.autonavState_};
_.sN.prototype.pause=function(q){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=q):this.autonavState_==1&&(this.disabledAutonavPauseReason_=q)};
_.sN.prototype.setState=function(q,Z,w){Z&&(this.autoplayChangedByUser=!0);Z=this.autonavState_===3||q===3;this.autonavState_!=q&&(this.autonavState_=q,q!=3&&_.L72(q==2),q=_.b("kevlar_is_pupi_enabled")?w||Z:!0,_.UU.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,q,w))};
_.sN.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Db(_.sN);var Ix=function(){this.hasRun=!1};var cZ={},EDj=(cZ.auto_search="LATENCY_ACTION_AUTO_SEARCH",cZ.ad_to_ad="LATENCY_ACTION_AD_TO_AD",cZ.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",cZ.app_startup="LATENCY_ACTION_APP_STARTUP",cZ.browse="LATENCY_ACTION_BROWSE",cZ.cast_splash="LATENCY_ACTION_CAST_SPLASH",cZ.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",cZ.channels="LATENCY_ACTION_CHANNELS",cZ.chips="LATENCY_ACTION_CHIPS",cZ.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",cZ.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
cZ.editor="LATENCY_ACTION_EDITOR",cZ.embed="LATENCY_ACTION_EMBED",cZ.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",cZ.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",cZ.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",cZ.explore="LATENCY_ACTION_EXPLORE",cZ.favorites="LATENCY_ACTION_FAVORITES",cZ.home="LATENCY_ACTION_HOME",cZ.inboarding="LATENCY_ACTION_INBOARDING",cZ.landing="LATENCY_ACTION_LANDING",cZ.library="LATENCY_ACTION_LIBRARY",cZ.live=
"LATENCY_ACTION_LIVE",cZ.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",cZ.management="LATENCY_ACTION_MANAGEMENT",cZ.mini_app="LATENCY_ACTION_MINI_APP_PLAY",cZ.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",cZ.onboarding="LATENCY_ACTION_ONBOARDING",cZ.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",cZ.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",cZ.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",cZ.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
cZ.prebuffer="LATENCY_ACTION_PREBUFFER",cZ.prefetch="LATENCY_ACTION_PREFETCH",cZ.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",cZ.profile_switcher="LATENCY_ACTION_LOGIN",cZ.projects="LATENCY_ACTION_PROJECTS",cZ.reel_watch="LATENCY_ACTION_REEL_WATCH",cZ.results="LATENCY_ACTION_RESULTS",cZ.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",cZ.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",cZ.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",cZ.review="LATENCY_ACTION_REVIEW",cZ.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",cZ.search_ui="LATENCY_ACTION_SEARCH_UI",cZ.search_suggest="LATENCY_ACTION_SUGGEST",cZ.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",cZ.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",cZ.seek="LATENCY_ACTION_PLAYER_SEEK",cZ.settings="LATENCY_ACTION_SETTINGS",cZ.store="LATENCY_ACTION_STORE",cZ.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",cZ.tenx="LATENCY_ACTION_TENX",cZ.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",cZ.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
cZ.watch="LATENCY_ACTION_WATCH",cZ.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",cZ["watch,watch7"]="LATENCY_ACTION_WATCH",cZ["watch,watch7_html5"]="LATENCY_ACTION_WATCH",cZ["watch,watch7ad"]="LATENCY_ACTION_WATCH",cZ["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",cZ.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",cZ.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",cZ.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",cZ.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",cZ.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",cZ.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",cZ.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",cZ.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",cZ);var DBj=function(q,Z){VA.call(this,1,arguments);this.timer=Z};
_.z(DBj,VA);var fGI=new $Te("aft-recorded",DBj);var kTe=_.$1.ytLoggingGelSequenceIdObj_||{};_.IR("ytLoggingGelSequenceIdObj_",kTe);var Mr=_.$1.ytLoggingLatencyUsageStats_||{};_.IR("ytLoggingLatencyUsageStats_",Mr);var FG=function(){this.cleanupJob=0},IG2=function(){FG.instance||(FG.instance=new FG);
return FG.instance};
_.e=FG.prototype;_.e.baseline=function(q,Z,w){Nr(this,"baseline_"+q)||_.vO("latencyActionBaselined",{clientActionNonce:q},{timestamp:Z,cttAuthInfo:w})};
_.e.tick=function(q,Z,w,r){Nr(this,"tick_"+q+"_"+Z)||_.vO("latencyActionTicked",{tickName:q,clientActionNonce:Z},{timestamp:w,cttAuthInfo:r})};
_.e.info=function(q,Z,w){var r=Object.keys(q).join("");Nr(this,"info_"+r+"_"+Z)||(q=Object.assign({},q),q.clientActionNonce=Z,_.vO("latencyActionInfo",q,{cttAuthInfo:w}))};
_.e.jspbInfo=function(q,Z,w){for(var r="",Y=0;Y<Jc(q).length;Y++)Jc(q)[Y]!==void 0&&(r=Y===0?r.concat(""+Y):r.concat("_"+Y));Nr(this,"info_"+r+"_"+Z)||(_.uM(q,2,Z),Z={cttAuthInfo:w},w=_.b("jspb_sparse_encoded_pivot")?new HO([{}]):new HO,_.dr(w,7,Ay1,q),K7j("latencyActionInfo",w,Z))};
_.e.span=function(q,Z,w){var r=Object.keys(q).join("");Nr(this,"span_"+r+"_"+Z)||(q.clientActionNonce=Z,_.vO("latencyActionSpan",q,{cttAuthInfo:w}))};
var Nr=function(q,Z){Mr[Z]=Mr[Z]||{count:0};var w=Mr[Z];w.count++;w.time=(0,_.lp)();q.cleanupJob||(q.cleanupJob=_.WO(_.v5,function(){var r=(0,_.lp)(),Y;for(Y in Mr)Mr[Y]&&r-Mr[Y].time>6E4&&delete Mr[Y];q&&(q.cleanupJob=0)},5E3));
return w.count>5?(w.count===6&&Math.random()*1E5<1&&(w=new _.df("CSI data exceeded logging limit with key",Z.split("_")),Z.indexOf("plev")>=0||_.bx(w)),!0):!1};var XjX,mtX;XjX=window;mtX=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.uI=XjX.performance||XjX.mozPerformance||XjX.msPerformance||XjX.webkitPerformance||new mtX;var A5N=!1,Mg8=!1,ht2=(0,_.Lh)(_.uI.clearResourceTimings||_.uI.webkitClearResourceTimings||_.uI.mozClearResourceTimings||_.uI.msClearResourceTimings||_.uI.oClearResourceTimings||_.Pr,_.uI);var A_W=window;A_W.ytcsi&&(A_W.ytcsi.infoGel=_.RV,A_W.ytcsi.tick=_.JT);var dIN=function(q){VA.call(this,1,arguments);this.csn=q};
_.z(dIN,VA);var VHN=new $Te("screen-created",dIN),BlT=[],PJ8=z3X,ai8=0,QG=new Map,VQ6=new Map,OkO=new Map;var pnN=Symbol("vf"),MM=new WeakMap;var lG=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},gx=function(){lG.instance||(lG.instance=new lG);
return lG.instance};
_.e=lG.prototype;_.e.setClient=function(q){this.client=q};
_.e.JSC$10316_newScreen=function(){this.clear();this.csn=_.b5()};
_.e.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.e.reportShown=function(q,Z,w){var r=this.JSC$10316_getTrackingParams(q),Y=q.visualElement?q.visualElement:r;Z=this.shownElements.has(Y);var C=this.visibleState.get(Y);this.shownElements.add(Y);this.visibleState.set(Y,!0);q.impressionLog&&!Z&&q.impressionLog();if(r||q.visualElement)if(w=fpK(this,q,w))if(Y=Dth(this,q),Gg(this,q)||Y){r=q.visualElement?q.visualElement:_.wa(r);var d=q.interactionLoggingClientData;Y||Z?Gg(this,q)&4?C||jD1(this.client,w,r,d):Gg(this,q)&1&&!Z&&Lb2(this.client,w,r,d):Lb2(this.client,
w,r,d)}};
_.e.reportHidden=function(q,Z,w){var r=this.JSC$10316_getTrackingParams(q),Y=q.visualElement?q.visualElement:r;Z=this.hiddenElements.has(Y);var C=this.visibleState.get(Y);this.hiddenElements.add(Y);this.visibleState.set(Y,!1);if(C===!1)return!0;if(!r&&!q.visualElement)return!1;w=fpK(this,q,w);if(!w||!Gg(this,q)&&Dth(this,q))return!1;r=q.visualElement?q.visualElement:_.wa(r);Gg(this,q)&8?tQ2(this.client,w,r):Gg(this,q)&2&&!Z&&(q=this.client,Z=nR({cttAuthInfo:Jy(w)||void 0},w),r={csn:w,ve:r.getAsJson(),
eventType:2},w==="UNDEFINED_CSN"?xK("visualElementHidden",Z,r):q?Lb("visualElementHidden",r,q,Z):_.vO("visualElementHidden",r,Z));return!0};
_.e.JSC$10316_getTrackingParams=function(q){var Z=this.getData(q),w,r;if(_.b("il_use_view_model_logging_context")&&(Z==null?0:(w=Z.context)==null?0:(r=w.loggingContext)==null?0:r.loggingDirectives))return Z.context.loggingContext.loggingDirectives.trackingParams||"";var Y,C;if(Z==null?0:(Y=Z.rendererContext)==null?0:(C=Y.loggingContext)==null?0:C.loggingDirectives)return Z.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(Z==null?0:Z.loggingDirectives)return Z.loggingDirectives.trackingParams||
"";var d;return((d=q.veContainer)==null?0:d.trackingParams)?q.veContainer.trackingParams:(Z==null?void 0:Z.trackingParams)||""};
_.e.JSC$10316_elementShouldLogGesture=function(q,Z){q=this.getData(q);return!!((Math.floor(Number(q&&q.loggingDirectives&&q.loggingDirectives.gestures&&q.loggingDirectives.gestures.types||""))||0)&Z)};
_.e.JSC$10316_getNearestParentVe=function(q){var Z=this.JSC$10316_getTrackingParams(q);return q.visualElement?q.visualElement:Z?_.wa(Z):q.parentElement?this.JSC$10316_getNearestParentVe(q.parentElement):null};
var fpK=function(q,Z,w){var r=_.b5(w);return q.csn===null||r===q.csn||w?r:(q=new _.df("VisibilityLogger called before newScreen",{caller:Z.tagName,previous_csn:q.csn,current_csn:r}),_.bx(q),null)};
lG.prototype.getData=function(q){var Z,w=q.data||((Z=q.props)==null?void 0:Z.data);if(q.isWebComponentWrapper){var r;w=(r=MM.get(q))==null?void 0:r[pnN]}return w};
var Dth=function(q,Z){var w;return!((w=q.getData(Z))==null||!w.loggingDirectives)},Gg=function(q,Z){q=q.getData(Z);
return Math.floor(Number(q&&q.loggingDirectives&&q.loggingDirectives.visibility&&q.loggingDirectives.visibility.types||""))||1};var pH;pH=function(){};
_.hJ=function(){pH.instance||(pH.instance=new pH);return pH.instance};
pH.prototype.setClient=function(q){_.QV(gx().setClient).bind(gx())(q)};
_.hGp=function(){_.hJ();_.QV(gx().JSC$10316_newScreen).bind(gx())()};
pH.prototype.clear=function(){_.QV(gx().clear).bind(gx())()};
pH.prototype.reportShown=function(q,Z,w){_.QV(gx().reportShown).bind(gx())(q,Z,w)};
pH.prototype.reportHidden=function(q,Z,w){return _.QV(gx().reportHidden).bind(gx())(q,Z,w)};
var GcT=function(q,Z){return _.QV(gx().JSC$10316_getTrackingParams).bind(gx())(Z)},XnT=function(q,Z){return _.QV(gx().JSC$10316_getNearestParentVe).bind(gx())(Z)};var XG,y_W;XG=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};
_.iy=function(){XG.instance||(XG.instance=new XG);return XG.instance};
XG.prototype.setClient=function(q){this.client=q};
y_W=function(q,Z,w){w=w===void 0?{}:w;_.QV(function(){var r,Y,C,d=((r=_.J(Z==null?void 0:Z.commandMetadata,_.XK))==null?void 0:r.rootVe)||((Y=_.J(Z==null?void 0:Z.commandMetadata,oDJ))==null?void 0:(C=Y.screenVisualElement)==null?void 0:C.uiType);if(d){r=_.J(Z==null?void 0:Z.commandMetadata,hfh);if(r==null?0:r.parentTrackingParams){var O=_.wa(r.parentTrackingParams);if(r.parentCsn)var H=r.parentCsn}else w.clickedVisualElement?O=w.clickedVisualElement:Z.clickTrackingParams&&(O=_.wa(Z.clickTrackingParams));
a:{r=_.J(Z,_.ck);Y=_.J(Z,RGO);if(r){if(Y=Sm8(r,"VIDEO")){r={token:Y,videoId:r.videoId};break a}}else if(Y&&(r=Sm8(Y,"PLAYLIST"))){r={token:r,playlistId:Y.playlistId};break a}r=void 0}w=Object.assign({},{cttAuthInfo:r,parentCsn:H},w);if(_.b("expectation_logging")){var L;w.loggingExpectations=((L=_.J(Z==null?void 0:Z.commandMetadata,oDJ))==null?void 0:L.loggingExpectations)||void 0}_.mG(q,d,O,w)}else _.bx(new _.df("Error: Trying to create a new screen without a rootVeType",Z))})()};
_.mG=function(q,Z,w,r){r=r===void 0?{}:r;_.QV(function(){pj1.includes(Z)||(_.bx(new _.df("createClientScreen() called with a non-page VE",Z)),Z=83769);r.isHistoryNavigation||(q.forwardHistoryStack=[],q.backHistoryStack.push({rootVe:Z,key:r.key||""}));q.graftQueue=[];q.stateChangedQueue=[];r.dataPromises?iOe(q,Z,w,r):gNW(q,Z,w,r)})()};
_.qfv=function(q,Z,w){w=w===void 0?0:w;_.QV(function(){Z.then(function(r){q.pendingScreenCreation.has(w)&&q.pendingScreenFn&&q.pendingScreenFn();var Y=_.b5(w),C=_.Rs(w);if(Y&&C){var d;(r==null?0:(d=r.response)==null?0:d.trackingParams)&&Eh(q.client,Y,C,_.wa(r.response.trackingParams));var O;(r==null?0:(O=r.playerResponse)==null?0:O.trackingParams)&&Eh(q.client,Y,C,_.wa(r.playerResponse.trackingParams))}})})()};
XG.prototype.graftServerVe=function(q,Z,w){var r=this;return _.QV(function(){var Y=_.wa(q);_.AA(r,Y,Z,w);return Y})()};
_.mmO=function(q,Z,w,r){return _.b("enable_client_ve_spec")&&Z.clientVeSpec?(Z=_.C6(Z.clientVeSpec.uiType,void 0,Z.clientVeSpec.elementIndex,Z.clientVeSpec.clientYoutubeData,void 0,Z),_.AA(q,Z,w,r)?Z:null):Z.trackingParams?q.graftServerVe(Z.trackingParams,w,r):null};
_.yy=function(q,Z,w,r){return _.QV(function(){if(!Z.veType)return _.Rw(new _.df("Error: Trying to graft a client VE without a veType.")),null;if(Z.visibilityTypes){var Y=Z.visibilityTypes.reduce(function(C,d){return C|d});
Y={visibility:{types:String(Y)}}}Y=_.C6(Z.veType,Z.visualElement,Z.elementIndex,Z.clientYouTubeData,void 0,Y);return _.AA(q,Y,w,r)?Y:null})()};
_.AA=function(q,Z,w,r){r=r===void 0?0:r;return _.QV(function(){if(q.pendingScreenCreation.has(r))return q.graftQueue.push([Z,w]),!0;var Y=_.b5(r),C=w||_.Rs(r);if(Y&&C){if(_.b("combine_ve_grafts")){var d=q.cachedVisualElements.get(C.toString());d?d.push(Z):(q.cachedRootVisualElements.set(C.toString(),C),q.cachedVisualElements.set(C.toString(),[Z]));q.attachTimeout||(q.attachTimeout=_.WO(_.v5,function(){ZLW(q,Y)},1200))}else Eh(q.client,Y,C,Z);
return!0}return!1})()};
_.fH=function(q,Z,w){w=w===void 0?0:w;var r=q.recurringGrafts.get(w)||new Map;if(_.b("smarter_ve_dedupping"))for(var Y=Array.from(r.keys()),C=0;C<Y.length;C++){var d=void 0,O=void 0;var H=Z;var L=Y[C];L.isClientVe()&&H.isClientVe()?(d=H.getAsJson(),O=L.getAsJson(),H=d.veType!==O.veType||d.elementIndex!==O.elementIndex||d.dataElement!==O.dataElement||H.getLoggingDirectives()!==L.getLoggingDirectives()?!1:!0):H=L.veData.trackingParams!==void 0&&H.veData.trackingParams!==void 0?((O=H.veData)==null?void 0:
O.trackingParams)===((d=L.veData)==null?void 0:d.trackingParams):!1;if(H)return}else if(r.has(Z))return;r.set(Z,void 0);q.recurringGrafts.set(w,r);_.b5(w)==="UNDEFINED_CSN"||q.pendingScreenCreation.has(w)||_.AA(q,Z,void 0,w)};
_.D1=function(q,Z,w,r){r=_.b5(r===void 0?0:r);if(!r)return!1;bk2(q.client,r,Z,w);return!0};
_.hA=function(q,Z,w,r){if(!Z)return!1;r=_.b5(r===void 0?0:r);if(!r)return!1;bk2(q.client,r,_.wa(Z),w);return!0};
_.Rk=function(q,Z){var w=Z.getScreenLayer&&Z.getScreenLayer();if(Z.visualElement)return _.D1(q,Z.visualElement,void 0,w);Z=GcT(_.hJ(),Z);return _.hA(q,Z,void 0,w)};
XG.prototype.clickCommand=function(q,Z,w){return _.hA(this,q.clickTrackingParams,Z,w===void 0?0:w)};
XG.prototype.stateChanged=function(q,Z,w){this.visualElementStateChanged(_.wa(q),Z,w===void 0?0:w)};
XG.prototype.visualElementStateChanged=function(q,Z,w){w=w===void 0?0:w;w===0&&this.pendingScreenCreation.has(w)?this.stateChangedQueue.push([q,Z]):this.logStateChanged(q,Z,w)};
XG.prototype.logStateChanged=function(q,Z,w){w=w===void 0?0:w;var r=_.b5(w);q=q||_.Rs(w);return r&&q?(J4z(this.client,r,q,Z),!0):!1};
var iOe=function(q,Z,w,r){r=r===void 0?{}:r;q.pendingScreenCreation.add(r.layer||0);q.pendingScreenFn=function(){gNW(q,Z,w,r);var d=_.Rs(r.layer);if(d){for(var O=_.P(q.graftQueue),H=O.next();!H.done;H=O.next())H=H.value,_.AA(q,H[0],H[1]||d,r.layer);d=_.P(q.stateChangedQueue);for(O=d.next();!O.done;O=d.next())O=O.value,q.logStateChanged(O[0],O[1])}};
w||_.b5(r.layer)||q.pendingScreenFn();if(r.dataPromises)for(var Y=_.P(r.dataPromises),C=Y.next();!C.done;C=Y.next())_.qfv(q,C.value,r.layer);else _.tY(Error("wf"))},gNW=function(q,Z,w,r){r=r===void 0?{}:r;
var Y=void 0;r.layer||(r.layer=0);Y=r.parentLayer!==void 0?r.parentLayer:r.layer;var C=_.b5(Y);Y=_.Rs(Y);var d=w||Y,O;d&&(r.parentCsn!==void 0?O={clientScreenNonce:r.parentCsn,visualElement:d}:C&&C!=="UNDEFINED_CSN"&&(O={clientScreenNonce:C,visualElement:d}));var H,L=_.zj("EVENT_ID");C==="UNDEFINED_CSN"&&L&&(H={servletData:{serializedServletEventId:L}});_.b("combine_ve_grafts")&&C&&ZLW(q,C);_.b("no_client_ve_attach_unless_shown")&&d&&C&&uWz(d,C);try{var S=_.HkT(q.client,Z,O,r.csnToClone,r.cttAuthInfo,
H,r.implicitGestureType,void 0,r.loggingExpectations)}catch(B){_.JY(B,{rootVeType:Z,rootVe:Y,parentVisualElement:w,currentCsn:C,parentEl:O,csnToClone:r.csnToClone});_.tY(B);return}_.onz(S,Z,r.layer,r.cttAuthInfo);C&&C!=="UNDEFINED_CSN"&&Y&&!Hj2(C)&&tQ2(q.client,C,Y,!0);q.backHistoryStack[q.backHistoryStack.length-1]&&!q.backHistoryStack[q.backHistoryStack.length-1].csn&&(q.backHistoryStack[q.backHistoryStack.length-1].csn=S||"");_.RV({clientScreenNonce:S});_.hGp();var v=_.Rs(r.layer);C&&C!=="UNDEFINED_CSN"&&
v&&(_.b("web_mark_root_visible")||_.b("music_web_mark_root_visible"))&&_.Uh(S,v);q.pendingScreenCreation.delete(r.layer||0);q.pendingScreenFn=void 0;var R;(R=q.recurringGrafts.get(r.layer))==null||R.forEach(function(B,n){B?_.AA(q,n,B,r.layer):v&&_.AA(q,n,v,r.layer)});
wav(q)},wav=function(q){for(var Z=0;Z<q.afterNewScreenOneOffJobs.length;Z++){var w=q.afterNewScreenOneOffJobs[Z];
try{w()}catch(r){_.tY(r)}}for(Z=q.afterNewScreenOneOffJobs.length=0;Z<q.afterNewScreenRecurringJobs.length;Z++){w=q.afterNewScreenRecurringJobs[Z];try{w()}catch(r){_.tY(r)}}},ZLW=function(q,Z){if(Z===void 0)for(var w=Vb9(),r=0;r<w.length;r++)w[r]!==void 0&&ZLW(q,w[r]);
else q.cachedVisualElements.forEach(function(Y,C){(C=q.cachedRootVisualElements.get(C))&&_.Wb8(q.client,Z,C,Y)}),q.cachedVisualElements.clear(),q.cachedRootVisualElements.clear(),q.attachTimeout=void 0};var yH=function(q){q=q===void 0?{layer:0}:q;this.hasRun=!1;this.createScreenConfig=q;q={};this.oye=(q.response=!1,q.playerResponse=!1,q)};
_.z(yH,Ix);yH.prototype.validate=function(q){return!(!q.data||!q.data.response&&!q.data.playerResponse)};
yH.prototype.handle=function(q){var Z=_.iy(),w=this.createScreenConfig.layer;q.data.response&&q.data.response.trackingParams&&!this.oye.response&&(Z.graftServerVe(q.data.response.trackingParams,void 0,w),this.oye.response=!0);q.data.playerResponse&&q.data.playerResponse.trackingParams&&!this.oye.playerResponse&&(Z.graftServerVe(q.data.playerResponse.trackingParams,void 0,w),this.oye.playerResponse=!0)};var iG=function(){this.gS=_.Be();this.iX=[];this.ly1=0};
iG.prototype.processChunk=function(q){if(q){for(var Z=_.P(this.iX),w=Z.next();!w.done;w=Z.next())w=w.value,w.validate(q)&&(w.handle(q),w.hasRun=!0);_.JT("np"+this.ly1);this.ly1++}};var erT,$O1;_.AJ=function(q,Z,w,r,Y,C,d){d=d===void 0?[]:d;this.buildCommandPayload=q;this.navigate=Z;this.handleServiceRequest=w;this.sendAction=r;this.JSC$10357_screenManager=Y;this.commandResolverMap=C;this.autoLogResolverAllowlist=d;this.pendingCommands=new Set};
erT=function(q,Z,w){var r=mP1,Y=Ak8,C=_.iy(),d=rp9;w=w===void 0?[]:w;_.AJ.instance=new _.AJ(q,Z,r,Y,C,d,w)};
$O1=function(q,Z,w){if(!q.commandResolverMap)return!1;var r=Tl2(Z,q.commandResolverMap);return r?((q.autoLogResolverAllowlist.some(function(Y){return!!_.J(Z,Y)})||(w==null?0:w.forceClickLogging))&&YfK(q,Z,w),r instanceof Promise?r.then(function(Y){Y.resolve(Z,w)}):r.resolve(Z,w),!0):!1};
_.AJ.prototype.resolveCommand=function(q,Z){var w=this,r=eh7(q);if($O1(this,q,Z))return!0;if(r)return C$p(this,q,Z);if(!this.buildCommandPayload)return QDI(q,"Unhandled command by buildCommandPayload"),!1;var Y=this.buildCommandPayload(q,Z);if(Z==null?0:Z.commandController)Y.commandController=Z.commandController;if(Y.type===0){if(!this.navigate)return EJ8(q,"navigate"),!1;if(!P$h(Y.command))return QDI(q,"Page requests need to specify a url"),!1;_.b("logging_avoid_blocking_during_navigation")&&_.A7N().transition("application_navigating");
q=this.navigate(Y)||[];p3m(q).then(function(){w.pendingCommands.delete(Y.command)});
return!0}if(Y.type===1){if(!this.handleServiceRequest)return EJ8(q,"handleServiceRequest"),!1;(Z==null?0:Z.forceClickLogging)&&YfK(this,Y.command,Z);q=this.handleServiceRequest(Y);p3m(q).then(function(){w.pendingCommands.delete(Y.command)});
return!0}if(Y.type===2){if(!this.sendAction)return EJ8(q,"sendAction"),!1;YfK(this,Y.command,Z);this.sendAction(Y);return!0}return!1};
var YfK=function(q,Z,w){if((w==null||!w.disableClickTracking)&&q.JSC$10357_screenManager)if(Z.clickTrackingParams&&_.b("log_click_with_layer_from_element_in_command_handler")){var r;w=w==null?void 0:(r=w.form)==null?void 0:r.element;q.JSC$10357_screenManager.clickCommand(Z,null,w&&w.getScreenLayer&&w.getScreenLayer())}else Z.clickTrackingParams?q.JSC$10357_screenManager.clickCommand(Z):!_.b("disable_clicked_visual_element_in_command_handler")&&(w==null?0:w.clickedVisualElement)&&_.D1(q.JSC$10357_screenManager,
w.clickedVisualElement)},eh7=function(q){var Z=!!_.J(q,_.$K),w;
q=((w=_.J(q,_.CR))==null?void 0:w.signal)==="CLIENT_SIGNAL";return Z||q},C$p=function(q,Z,w){var r=_.J(Z,_.$K);
if(r)var Y=(r==null?void 0:r.commands)||[];else{var C;if(((C=_.J(Z,_.CR))==null?void 0:C.signal)==="CLIENT_SIGNAL"){var d;Y=((d=_.J(Z,_.CR))==null?void 0:d.actions)||[]}}if(Y){Z=_.P(Y);for(Y=Z.next();!Y.done;Y=Z.next()){Y=Y.value;try{q.resolveCommand(Y,w)}catch(O){O instanceof Error&&_.tY(O)}}return!0}QDI(Z,"Could not handle the meta command");return!1},P$h=function(q){var Z;
return!((Z=_.J(q==null?void 0:q.commandMetadata,_.XK))==null||!Z.url)};var gZ=function(){Ix.apply(this,arguments)};
_.z(gZ,Ix);gZ.prototype.validate=function(q){var Z,w;return!this.hasRun&&!!((Z=q.data.response)==null?0:(w=Z.onResponseReceivedEndpoints)==null?0:w.length)};
gZ.prototype.handle=function(q){var Z=_.AJ.instance;q=_.P(q.data.response.onResponseReceivedEndpoints);for(var w=q.next();!w.done;w=q.next())Z.resolveCommand(w.value)};var dOD,VRD,OL9;
dOD=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=_.YK();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.qk=function(){VRD||(VRD=new dOD);return VRD};
OL9=function(){var q=_.qk();q.miniplayerButtonActivation=!1;q.userActivation=!1;q.playlistWatchPageActivation=!1;q.productDetailsPageActivation=!1;q.miniAppPageActivation=!1;q.playablesDestPageActivation=!1;q.lockupActivation=!1;q.showMiniplayerCommandActivation=!1;q.playlistSuggestionsShelfActivation=!1;q.mediaSessionPipActivation=!1;q.watchPipActivation=!1;q.watchWhileActivation=!1;q.shortsPipActivation=!1};
_.HLp=function(){var q=_.qk(),Z=q.mediaSessionPipActivation,w=q.watchPipActivation,r=q.watchWhileActivation,Y=q.playlistWatchPageActivation,C=q.lockupActivation,d=q.showMiniplayerCommandActivation,O=q.navigatingAwayFromWatchDeletedVideo,H=q.shortsPipActivation,L=q.playlistSuggestionsShelfActivation,S=q.productDetailsPageActivation,v=q.miniAppPageActivation,R=q.playablesDestPageActivation;return!q.miniplayerButtonActivation&&!Y&&!L&&!S&&!v&&!R&&!C&&!d&&!Z&&!w&&!r&&!H||O};var zjT;_.ZK=NM("FEwhat_to_watch","/",3854);_.BsX=NM("FEdownloads","/feed/downloads",42352);zjT=NM("FEmusic_offline","browse/FEmusic_offline",42352);var Kz=function(q,Z){Z=Z===void 0?[]:Z;var w=w===void 0?[]:w;Z=gAj.apply(null,[qTI.apply(null,_.Ju(Z))].concat(_.Ju(w)));this.store=YTO(q,void 0,Z)};
Kz.prototype.getState=function(){return this.store.getState()};
Kz.prototype.dispatch=function(q){return this.store.dispatch(q)};
Kz.prototype.subscribe=function(q){return this.store.subscribe(q)};
Kz.prototype.replaceReducer=function(q){return this.store.replaceReducer(q)};
Kz.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.wF=function(q,Z,w){var r=Z(q.getState());return q.subscribe(function(){var Y=Z(q.getState());if(Y!==r){var C=r;r=Y;w(Y,C)}})};var bH2;_.wp=function(q,Z,w){return _.mu({type:"REPLACE_ENTITY",payload:{entityPayload:w,entityType:q,key:Z}})};
bH2=function(q){return _.mu({type:"REPLACE_ENTITIES",payload:q})};
_.LV=function(q,Z,w,r){return _.mu({type:"UPDATE_ENTITY",payload:{entityPayload:w,entityType:q,key:Z,mergeOption:r}})};var XtO=function(q){var Z=this;q=q===void 0?[]:q;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;q.forEach(function(w){Z.append(w)})};
_.e=XtO.prototype;_.e.getLength=function(){return this.totalLength};
_.e.append=function(q){var Z=this.arrays.length===0?!1:(Z=this.arrays[this.arrays.length-1])&&Z.buffer===q.buffer&&Z.byteOffset+Z.length===q.byteOffset;Z?(Z=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(Z.buffer,Z.byteOffset,Z.length+q.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(q);this.totalLength+=q.length};
_.e.split=function(q){for(var Z=new XtO,w=new XtO,r=_.P(this.arrays),Y=r.next();!Y.done;Y=r.next())Y=Y.value,q>=Y.length?(Z.append(Y),q-=Y.length):q?(Z.append(new Uint8Array(Y.buffer,Y.byteOffset,q)),w.append(new Uint8Array(Y.buffer,Y.byteOffset+q,Y.length-q)),q=0):w.append(Y);return{headView:Z,tailView:w}};
_.e.extract=function(q,Z){return this.split(q).tailView.split(Z).headView};
_.e.isFocused=function(q){return q>=this.arrayPos&&q<this.arrayPos+this.arrays[this.arrayIdx].length};
_.e.focus=function(q){if(!this.isFocused(q))for(q<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=q&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
_.e.getDataView=function(q,Z){q=q===void 0?0:q;Z=Z===void 0?-1:Z;if(!this.totalLength||!Z)return new DataView(new ArrayBuffer(0));Z<0&&(Z=this.totalLength-q);this.focus(q);if(!(q-this.arrayPos+Z<=this.arrays[this.arrayIdx].length)){var w=this.arrayIdx,r=this.arrayPos;this.focus(q+Z-1);r=new Uint8Array(this.arrayPos+this.arrays[this.arrayIdx].length-r);for(var Y=0,C=w;C<=this.arrayIdx;C++)r.set(this.arrays[C],Y),Y+=this.arrays[C].length;this.arrays.splice(w,this.arrayIdx-w+1,r);this.arrayPos=this.arrayIdx=
0;this.focus(q)}w=this.arrays[this.arrayIdx];return new DataView(w.buffer,w.byteOffset+q-this.arrayPos,Z)};
_.e.getUint8=function(q){this.focus(q);return this.arrays[this.arrayIdx][q-this.arrayPos]};(function(){var q=function(r){return new Uint8Array(r)},Z=function(r){for(var Y=new Uint8Array(r.length),C=0;C<r.length;C++)Y[C]=r[C];
return Y},w=new Uint8Array([1]);
return w.length===1&&w[0]===1?q:Z})();
var MQ2=Array(1024),c4O=window.TextDecoder?new TextDecoder:void 0,Nl9=window.TextEncoder?new TextEncoder:void 0;var pt1=function(q){this.arrayView=q;this.pos=0;this.pendingTagAndType=-1},AT=function(q){var Z=q.arrayView.getUint8(q.pos);
++q.pos;if(Z<128)return Z;for(var w=Z&127,r=1;Z>=128;)Z=q.arrayView.getUint8(q.pos),++q.pos,r*=128,w+=(Z&127)*r;return w},mIe=function(q,Z){var w=q.pendingTagAndType;
for(q.pendingTagAndType=-1;q.pos+1<=q.arrayView.totalLength;){w<0&&(w=AT(q));var r=w>>3,Y=w&7;if(r===Z)return!0;if(r>Z){q.pendingTagAndType=w;break}w=-1;switch(Y){case 0:AT(q);break;case 1:q.pos+=8;break;case 2:r=AT(q);q.pos+=r;break;case 5:q.pos+=4}}return!1};var fiN=function(){this.pos=0;this.submessagePosStack=[];this.buf=GvO(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},hT=function(q,Z){Z=q.pos+Z;
if(!(q.buf.length>=Z)){for(var w=q.buf.length*2;w<Z;)w*=2;q.buf=GvO(w,q.buf.subarray(0,q.pos));q.view=new DataView(q.buf.buffer,q.buf.byteOffset,q.buf.byteLength)}},DC=function(q,Z){if(Z>268435455){hT(q,4);
for(var w=Z&1073741823,r=0;r<4;r++)q.view.setUint8(q.pos,w&127|128),w>>=7,q.pos+=1;Z=Math.floor(Z/268435456)}for(hT(q,4);Z>127;)q.view.setUint8(q.pos,Z&127|128),Z>>=7,q.pos+=1;q.view.setUint8(q.pos,Z);q.pos+=1};for(var DIT={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,
fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,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,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},A4N={},W5e=_.P(Object.entries(DIT)),od1=W5e.next();!od1.done;od1=W5e.next()){var uEp=_.P(od1.value),L5v=uEp.next().value,SfD=uEp.next().value,vdJ=L5v,j6X=SfD;j6X&&(A4N[j6X]=vdJ)};var y41=function(q,Z){q=q===void 0?{}:q;switch(Z.type){case "ENTITY_LOADED":return Z.payload.reduce(function(r,Y){var C,d=(C=Y.options)==null?void 0:C.persistenceOption;if(d&&d!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&d!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return r;if(!Y.entityKey)return _.tY(Error("yf")),r;if(Y.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!Y.payload)return Y=new _.df("REPLACE entity mutation is missing a payload",{entityKey:Y.entityKey}),_.tY(Y),r;var O=(0,_.R4.getAnyKey)(Y.payload);
return gJT(r,O,Y.entityKey,Y.payload[O])}if(Y.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{Y=Y.entityKey;try{var H=_.fR(Y).entityType;O=gJT(r,H,Y);break a}catch(v){if(v instanceof Error){Y=new _.df("Failed to deserialize entity key",{entityKey:Y,originalMessage:v.message});_.tY(Y);O=r;break a}throw v;}O=void 0}return O}if(Y.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!Y.payload)return Y=new _.df("UPDATE entity mutation is missing a payload",{entityKey:Y.entityKey}),_.tY(Y),r;O=(0,_.R4.getAnyKey)(Y.payload);
var L,S;return qN6(r,O,Y.entityKey,Y.payload[O],(L=Y.fieldMask)==null?void 0:(S=L.mergeOptions)==null?void 0:S.repeatedFieldsMergeOption)}return r},q);
case "REPLACE_ENTITY":var w=Z.payload;return gJT(q,w.entityType,w.key,w.entityPayload);case "REPLACE_ENTITIES":return Object.keys(Z.payload).reduce(function(r,Y){var C=Z.payload[Y];return Object.keys(C).reduce(function(d,O){return gJT(d,Y,O,C[O])},r)},q);
case "UPDATE_ENTITY":return w=Z.payload,qN6(q,w.entityType,w.key,w.entityPayload,w.mergeOption);default:return q}};var ZHe;var tRJ=!1,rF,YC,$C,e1,Cq,Rhm=function(q){_.u6.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!tRJ){var Z,w=new Uint8Array(256),r=new Uint8Array(256);var Y=1;for(Z=0;Z<256;Z++)w[Y]=Z,r[Z]=Y,Y^=Y<<1^(Y>>7&&283);rF=new Uint8Array(256);YC=gT(256);$C=gT(256);e1=gT(256);Cq=gT(256);for(var C=0;C<256;C++){Y=C?r[255^w[C]]:0;Y^=Y<<1^Y<<2^Y<<3^Y<<4;Y=Y&255^Y>>>8^99;rF[C]=Y;Z=Y<<1^(Y>>7&&283);var d=Z^Y;YC[C]=Z<<24|Y<<16|Y<<8|d;$C[C]=d<<24|YC[C]>>>8;e1[C]=Y<<24|$C[C]>>>
8;Cq[C]=Y<<24|e1[C]>>>8}tRJ=!0}Y=gT(44);for(w=0;w<4;w++)Y[w]=q[4*w]<<24|q[4*w+1]<<16|q[4*w+2]<<8|q[4*w+3];for(r=1;w<44;w++)q=Y[w-1],w%4||(q=(rF[q>>16&255]^r)<<24|rF[q>>8&255]<<16|rF[q&255]<<8|rF[q>>>24],r=r<<1^(r>>7&&283)),Y[w]=Y[w-4]^q;this.key=Y};
_.z(Rhm,_.u6);
Rhm.prototype.encrypt=function(q){var Z=q.length;q=new Uint8Array(q.buffer.slice(q.byteOffset,q.byteOffset+Z));for(var w=this.cipherBlock,r=0;r<Z&&this.blockOffset<16;)q[r++]^=w[this.blockOffset++];for(var Y=Z-(Z-r)%16;r<Y;)bLv(this),q[r++]^=w[0],q[r++]^=w[1],q[r++]^=w[2],q[r++]^=w[3],q[r++]^=w[4],q[r++]^=w[5],q[r++]^=w[6],q[r++]^=w[7],q[r++]^=w[8],q[r++]^=w[9],q[r++]^=w[10],q[r++]^=w[11],q[r++]^=w[12],q[r++]^=w[13],q[r++]^=w[14],q[r++]^=w[15];if(r<Z)for(bLv(this),this.blockOffset=0;r<Z;)q[r++]^=
w[this.blockOffset++];return q};
var Jp2=function(q,Z){for(var w=0;w<4;w++)q.counter[w]=Z[w*4]<<24|Z[w*4+1]<<16|Z[w*4+2]<<8|Z[w*4+3];q.blockOffset=16},bLv=function(q){for(var Z=q.key,w=q.counter[0]^Z[0],r=q.counter[1]^Z[1],Y=q.counter[2]^Z[2],C=q.counter[3]^Z[3],d=3;d>=0&&!(q.counter[d]=-~q.counter[d]);d--);
for(var O,H,L=4;L<40;)d=YC[w>>>24]^$C[r>>16&255]^e1[Y>>8&255]^Cq[C&255]^Z[L++],O=YC[r>>>24]^$C[Y>>16&255]^e1[C>>8&255]^Cq[w&255]^Z[L++],H=YC[Y>>>24]^$C[C>>16&255]^e1[w>>8&255]^Cq[r&255]^Z[L++],C=YC[C>>>24]^$C[w>>16&255]^e1[r>>8&255]^Cq[Y&255]^Z[L++],w=d,r=O,Y=H;q=q.cipherBlock;d=Z[40];q[0]=rF[w>>>24]^d>>>24;q[1]=rF[r>>16&255]^d>>16&255;q[2]=rF[Y>>8&255]^d>>8&255;q[3]=rF[C&255]^d&255;d=Z[41];q[4]=rF[r>>>24]^d>>>24;q[5]=rF[Y>>16&255]^d>>16&255;q[6]=rF[C>>8&255]^d>>8&255;q[7]=rF[w&255]^d&255;d=Z[42];
q[8]=rF[Y>>>24]^d>>>24;q[9]=rF[C>>16&255]^d>>16&255;q[10]=rF[w>>8&255]^d>>8&255;q[11]=rF[r&255]^d&255;d=Z[43];q[12]=rF[C>>>24]^d>>>24;q[13]=rF[w>>16&255]^d>>16&255;q[14]=rF[r>>8&255]^d>>8&255;q[15]=rF[Y&255]^d&255};var zhK=!1;(function(){var q=function(r){return new Uint8Array(r)},Z=function(r){for(var Y=new Uint8Array(r.length),C=0;C<r.length;C++)Y[C]=r[C];
return Y},w=new Uint8Array([1]);
return w.length===1&&w[0]===1?q:Z})();
var PV;var B7J=function(q){this.JSC$10424_aesKey=q};
B7J.prototype.encrypt=function(q,Z){var w=this,r,Y;return _.V(function(C){if(C.nextAddress==1){a:{if(!zhK&&!_.KY){if(PV){var d=PV;break a}PV=(d=window.crypto)==null?void 0:d.subtle;var O,H,L;if(((O=PV)==null?0:O.importKey)&&((H=PV)==null?0:H.sign)&&((L=PV)==null?0:L.encrypt)){d=PV;break a}PV=void 0}d=void 0}r=d;if(!r)return C.return(axD(w,q,Z));_.d9(C,3);return _.W(C,ndm(w,q,Z,r),5)}if(C.nextAddress!=3)return C.return(C.yieldResult);Y=_.o3(C);_.bx(Y);zhK=!0;return C.return(axD(w,q,Z))})};
var ndm=function(q,Z,w,r){var Y,C;return _.V(function(d){switch(d.nextAddress){case 1:if(q.cryptoKey){d.jumpTo(2);break}return _.W(d,r.importKey("raw",q.JSC$10424_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:q.cryptoKey=d.yieldResult;case 2:return Y={name:"AES-CTR",counter:w,length:128},_.W(d,r.encrypt(Y,q.cryptoKey,Z),4);case 4:return C=d.yieldResult,d.return(new Uint8Array(C))}})},axD=function(q,Z,w){q.encryptorPolyfill||(q.encryptorPolyfill=new Rhm(q.JSC$10424_aesKey));
Jp2(q.encryptorPolyfill,w);return q.encryptorPolyfill.encrypt(Z)},Q6v=function(q){this.JSC$10428_aesKey=q};
Q6v.prototype.encrypt=function(q,Z){this.encryptor||(this.encryptor=new Rhm(this.JSC$10428_aesKey));Jp2(this.encryptor,Z);return this.encryptor.encrypt(q)};var EdK={},YN6=M4("yt-idb-pref-storage",{objectStores:(EdK.prefs={addedAtVersion:1},EdK),shared:!1,upgrade:function(q,Z){Z(1)&&nB(a$(q,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.dF=function(q){this.token=q};
_.dF.getInstance=function(){return _.V(function(q){return q.return(new Promise(function(Z){_.cg().then(function(w){w?(_.dF.instance||(_.dF.instance=new _.dF(w)),Z(_.dF.instance)):Z(void 0)})}))})};
_.dF.prototype.get=function(q){var Z=this,w,r,Y;return _.V(function(C){if(C.nextAddress==1)return _.W(C,$r8(Z.token),2);if(C.nextAddress!=3)return w=C.yieldResult,_.W(C,w.get("prefs",q),3);r=C.yieldResult;if(!r)return C.return();Y=(0,_.lp)();return r.expirationTimestampMs<=Y?C.return():C.return(r.value)})};
_.dF.prototype.set=function(q,Z,w){w=w===void 0?31536E3:w;var r=this,Y,C,d;return _.V(function(O){if(O.nextAddress==1)return Y=(0,_.lp)(),C={key:q,value:Z,expirationTimestampMs:Y+w*1E3},_.W(O,$r8(r.token),2);d=O.yieldResult;return _.W(O,d.put("prefs",C),0)})};
_.dF.prototype.remove=function(q){var Z=this,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,$r8(Z.token),2);w=r.yieldResult;return _.W(r,w.delete("prefs",q),0)})};var Vq={},xOK=(Vq.INVALID_ENCODER_VERSION="Invalid encoder version",Vq.KEY_CREATION_FAILED="Failed to create encoder key",Vq.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Vq.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Vq.WRONG_DATA_TYPE="Encoder cannot process the data type",Vq),q9=function(q,Z){Z=Z===void 0?{}:Z;_.df.call(this,xOK[q],Object.assign({},{name:"PESEncoderError",type:q},Z));this.type=q;this.level="WARNING";Object.setPrototypeOf(this,q9.prototype)};
_.z(q9,_.df);var T7J=function(){},UOK=function(q,Z,w){try{return q.encodeImpl(Z,w)}catch(r){dr8(r,CGe)}},kzK=function(q,Z,w){var r;
return _.V(function(Y){if(Y.nextAddress==1)return _.d9(Y,2),_.W(Y,q.decodeAsyncImpl(Z,w),4);if(Y.nextAddress!=2)return Y.return(Y.yieldResult);r=_.o3(Y);dr8(r,PGN);_.ub(Y)})};
T7J.prototype.decodeAsyncImpl=function(q,Z){return Promise.resolve(this.decodeImpl(q,Z))};var OK=function(q,Z){this.aesEncryptor=q;this.aesEncryptorAsync=Z};
_.z(OK,T7J);OK.prototype.encodeImpl=function(q,Z){Z=VE1(Z);q=(new TextEncoder).encode(JSON.stringify(q));return this.aesEncryptor.encrypt(q,Z)};
OK.prototype.decodeImpl=function(q,Z){if(!(q instanceof Uint8Array))throw ef2(1);var w=new TextDecoder;Z=VE1(Z);q=this.aesEncryptor.encrypt(q,Z);return JSON.parse(w.decode(q))};
OK.prototype.decodeAsyncImpl=function(q,Z){var w=this,r,Y,C;return _.V(function(d){if(d.nextAddress==1){if(!(q instanceof Uint8Array))throw ef2(1);r=new TextDecoder;Y=VE1(Z);return _.W(d,w.aesEncryptorAsync.encrypt(q,Y),2)}C=d.yieldResult;return d.return(JSON.parse(r.decode(C)))})};var OH2={accountLinkStatusEntity:z19,booleanEntity:Zj7,buttonEntity:ADh,captionTrack:y4g,channelHandle:pDD,commerceAcquisitionClientPayloadEntity:LaX,commerceCartListEntity:SYp,contextNoteFeedEntityPayload:yqe,continuationTokenEntity:K77,downloadQualityPickerEntity:J5J,downloadsPageRefreshTokenEntity:B42,downloadsPageViewConfigurationEntity:pR9,downloadStatusEntity:ztX,dismissState:kB7,sfvAudioItemCurrentlyPlayingEntity:E52,emojiFountainDataEntity:pVm,emojiCustomizationSetEntity:GBJ,fakeChannel:YiD,
fakePlaylist:$Lh,fakePlaylistEntryCollection:e1h,fakeVideo:PaX,fakeVideoDescription:dLK,featuredProductsEntity:PJm,flowStateEntity:tb1,iconBadgeEntity:vbK,interstitialInteractionStateEntity:GZX,likeButtonAnimationEntity:XRv,liveChatPollStateEntity:yHW,liveViewerLeaderboardChatEntryPointStateEntity:OHp,liveViewerLeaderboardPointsEntity:HHJ,liveReactionsDataEntity:XVe,logoEntity:Fw2,macroMarkerEntity:mBJ,mainDownloadsLibraryEntity:aGe,mainDownloadsListEntity:nDD,mainPlaylistDownloadStateEntity:EDD,
mainPlaylistEntity:sWJ,mainPlaylistVideoEntity:IGp,mainVideoDownloadStateEntity:xB7,mainVideoEntity:N47,markersEngagementPanelSyncEntity:A5X,markersVisibilityOverrideEntity:fGv,musicAlbumReleaseDetail:jDg,musicAlbumReleaseDownloadMetadataEntity:oJ2,musicAlbumRelease:vJh,musicAlbumReleaseUserDetail:tQK,musicArtistDetail:bkK,musicArtist:R3J,musicArtistUserDetail:J4W,musicDownloadsLibraryEntity:uWW,musicLibraryEdit:z39,musicLibraryStatusEntity:Ble,musicPlaylist:aim,musicPlaylistDownloadMetadataEntity:Lbp,
musicShare:QDv,musicTrackDetail:xI1,musicTrackDownloadMetadataEntity:SZp,musicTrack:EJm,musicTrackUserDetail:TlK,offlineOrchestrationActionWrapperEntity:ik1,offlineVideoPolicy:gJe,offlineVideoStreams:qN1,offlineabilityEntity:T4g,orchestrationWebSamplingEntity:UBJ,pageHeaderEntity:IKg,pdpStateEntity:jLD,pinnedProductEntity:dIX,playbackData:ZHJ,playerStateEntity:DB7,quantityIncrementerEntity:t_7,refresh:wZh,saveToPlaylistListEntity:yAe,settingEntity:LMp,stringEntity:wBX,suggestedFeedbackChipStateEntity:htK,
transfer:rAJ,trendingOfferEntity:VQ1,videoDownloadContextEntity:YN1,videoOverviewAsyncDataEntity:XEJ,videoPlaybackPositionEntity:hpv,votingEntity:M1J,ytMainChannelEntity:lGp,youchatPendingResponseEntity:y59,ytMainDownloadedVideoEntity:kTJ,ytMainVideoEntity:GTv};var K52,Ixg,$O,jxI,tEN,F5K,lxD,N7v,MR9;K52=function(q,Z){this.JSC$10447_wrapped=q;this.JSC$10447_encoderRegistry=Z;this.changedKeys={}};
Ixg=function(q,Z){a:{q=s6g(q.JSC$10447_encoderRegistry,Z.version);try{var w=q.decodeImpl(Z.data,Z.key);break a}catch(r){dr8(r,PGN)}w=void 0}return w};
_.cp9=function(q,Z,w){return q.JSC$10447_wrapped.objectStore("EntityStore").get(Z).then(function(r){if(r){if(w&&r.entityType!==w)throw Error("zf");return Ixg(q,r)}})};
$O=function(q,Z,w){return w?(w=w.map(function(r){return _.cp9(q,r,Z)}),zO.all(w)):q.JSC$10447_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(Z)).then(function(r){return r.map(function(Y){return Ixg(q,Y)})})};
_.v5j=function(q,Z,w){var r=h3j(Z),Y=s6g(q.JSC$10447_encoderRegistry,1),C=Object.assign({},Z);return q.JSC$10447_wrapped.objectStore("EntityStore").get(r).then(function(d){if(d){if(d.entityType!==w)throw Error("zf");C.entityMetadata||(d=Ixg(q,d),C.entityMetadata=d.entityMetadata)}}).then(function(){var d={key:r,
entityType:w,data:UOK(Y,C,r),version:1};return zO.all([q.JSC$10447_wrapped.objectStore("EntityStore").put(d),MR9(q,C,w)])}).then(function(){F5K(q,r,w);
return r})};
jxI=function(q,Z){var w=_.fR(Z).entityType;return zO.all([q.JSC$10447_wrapped.objectStore("EntityStore").delete(Z),N7v(q,Z)]).then(function(){F5K(q,Z,w)})};
tEN=function(q,Z,w,r){var Y=s6g(q.JSC$10447_encoderRegistry,1);return _.cp9(q,Z,r).then(function(C){if(C){C=Iie(C,w);var d={key:Z,entityType:r,data:UOK(Y,C,Z),version:1};return zO.all([q.JSC$10447_wrapped.objectStore("EntityStore").put(d),MR9(q,C,r)])}}).then(function(){F5K(q,Z,r);
return Z})};
F5K=function(q,Z,w){var r=q.changedKeys[w];r||(r=new Set,q.changedKeys[w]=r);r.add(Z)};
lxD=function(q,Z,w){var r=h3j(Z);w=HHe(w);if(!w)return zO.resolve([]);w=new w(Z);q=q.JSC$10447_wrapped.objectStore("EntityAssociationStore");Z=[];w=_.P(w.getAssociations());for(var Y=w.next();!Y.done;Y=w.next())Z.push(q.put({parentEntityKey:r,childEntityKey:Y.value}));return zO.all(Z).then(function(C){return C.map(function(d){return d[1]})})};
N7v=function(q,Z){return q.JSC$10447_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(Z))};
MR9=function(q,Z,w){var r=h3j(Z);return N7v(q,r).then(function(){return lxD(q,Z,w)})};var Gz7=function(){};
_.z(Gz7,T7J);Gz7.prototype.encodeImpl=function(q){return q};
Gz7.prototype.decodeImpl=function(q){if(q instanceof Uint8Array)throw ef2(0);return q};var uGe=function(){this.cacheMap={};this.cacheMap[0]=new Gz7;if(!_.b("aes_pes_encoder_killswitch")){var q=this.cacheMap;try{var Z=_.CY();var w=VE1(Z);var r=new OK(new Q6v(w),new B7J(w))}catch(Y){throw q=Y instanceof Error?new q9("KEY_CREATION_FAILED",{originalMessage:Y.message}):new q9("KEY_CREATION_FAILED"),_.tY(q),q;}q[1]=r}},s6g=function(q,Z){Z=Z===void 0?0:Z;
q=q.cacheMap[Z];if(!q)throw Z=new q9("INVALID_ENCODER_VERSION",{encoderVersion:Z}),_.tY(Z),Z;return q};var wt=function(q,Z){_.u6.call(this);this.token=q;this.JSC$10461_encoderRegistry=Z;this.observers=[];q=new _.$1.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.CY());q.onmessage=this.handleMessage.bind(this);this.channel=q};
_.z(wt,_.u6);_.YO=function(q,Z,w){var r,Y,C,d;return _.V(function(O){if(O.nextAddress==1)return _.W(O,rAe(q.token),2);if(O.nextAddress!=3)return r=O.yieldResult,_.W(O,_.TO(r,["EntityStore","EntityAssociationStore"],Z,function(H){Y=new K52(H,q.JSC$10461_encoderRegistry);return w(Y)}),3);
C=O.yieldResult;Y&&(d=Y.changedKeys,Object.keys(d).length>0&&(q.channel.postMessage(d),pam(q,d)));return O.return(C)})};
wt.prototype.observe=function(q){var Z=this;this.observers.push(q);return function(){var w=Z.observers.indexOf(q);w>=0&&Z.observers.splice(w,1)}};
var hu2=function(q){var Z;return _.V(function(w){if(w.nextAddress==1)return _.W(w,_.YO(q,{mode:"readonly",enableRetries:!0},function(r){return r.JSC$10447_wrapped.objectStore("EntityStore").getAll()}),2);
Z=w.yieldResult;return w.return(Promise.all(Z.filter(function(r){return!!r}).map(function(r){var Y,C;
return _.V(function(d){if(d.nextAddress==1){Y=r.key;C=r.entityType;var O=kzK(s6g(q.JSC$10461_encoderRegistry,r.version),r.data,r.key);return _.W(d,O,2)}return d.return({key:Y,entityType:C,data:d.yieldResult})})})))})};
wt.prototype.handleMessage=function(q){pam(this,q.data)};
var pam=function(q,Z){q=_.P(q.observers);for(var w=q.next();!w.done;w=q.next())w=w.value,w(Z)};
wt.prototype.disposeInternal=function(){this.channel.close()};
var WG2;var HV,mO9,SKT,FGN;HV={};_.Xav=(HV.mainVideoEntity="mainVideoEntityActionMetadata",HV.mainPlaylistEntity="mainPlaylistEntityActionMetadata",HV.musicTrack="musicTrackEntityActionMetadata",HV.musicPlaylist="musicPlaylistEntityActionMetadata",HV);mO9=new _.F$("DOWNLOADS_ENTITY_TYPE_MAP");SKT=_.yG("","downloadsPageViewConfigurationEntity");FGN=_.yG("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.t1O=_.yG("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.yG("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.yG("SMART_DOWNLOADS_ENABLED","settingEntity");_.yG("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var BZ9=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var Ur2=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var C8e={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var WV,$ne,q12,DcT;WV=window;_.BX=WV.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.LaN=WV.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.T9;$ne=WV.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||u2;q12=WV.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||gc9;_.ApD=WV.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.Lqh;DcT=WV.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||jQJ;EE({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 jLj=eFO(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(q){return q}}}),HvT=eFO(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(q){return q}}}),V_1=new Map;var RF8=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],up1;var fx7=function(q){return _.mu({type:"SET_EPHEMERAL_ACTION",payload:q})};var DO7={ephemeralAction:null};var hhJ={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var pET={sharedUi:function(q,Z){q=q===void 0?hhJ:q;switch(Z.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},q,{animatedThumbnailEnabled:Z.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},q,{inlinePreviewEnabled:Z.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},q,{currentPageType:Z.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},q,{currentPageSubType:Z.payload});default:return q}},
a11y:YQ({ephemeralAction:function(q,Z){q=q===void 0?DO7.ephemeralAction:q;switch(Z.type){case "SET_EPHEMERAL_ACTION":return Z.payload;default:return q}}})};var IZe=YQ({isLeaderTab:function(q,Z){q=q===void 0?!0:q;switch(Z.type){case "SET_IS_LEADER_TAB":var w,r;return(r=Z==null?void 0:(w=Z.payload)==null?void 0:w.isLeaderTab)!=null?r:q;default:return q}}});var ypJ=function(q){return _.mu({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:q}})};var GGN=YQ({isDesktopSmallWidth:function(q,Z){switch(Z.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return Z.payload.isDesktopSmallWidth;default:return q===void 0?!1:q}},
isShortsActive:function(q,Z){switch(Z.type){case "SET_IS_SHORTS_ACTIVE":return Z.payload.isShortsActive;default:return q===void 0?!1:q}},
isWatchWhileMode:function(q,Z){switch(Z.type){case "SET_IS_WATCH_WHILE_MODE":return Z.payload.isWatchWhileMode;default:return q===void 0?!1:q}},
playerState:function(q,Z){switch(Z.type){case "SET_PLAYER_STATE":return Z.payload.playerState;default:return q===void 0?-1:q}},
isFullscreen:function(q,Z){switch(Z.type){case "SET_IS_FULLSCREEN":return Z.payload.isFullscreen;default:return q===void 0?!1:q}},
isSmallScreenSqueezeback:function(q,Z){switch(Z.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return Z.payload.isSmallScreenSqueezeback;default:return q===void 0?!1:q}},
isShortsPipActive:function(q,Z){switch(Z.type){case "SET_IS_SHORTS_PIP_ACTIVE":return Z.payload.isShortsPipActive;default:return q===void 0?!1:q}},
isPlaybackStarted:function(q,Z){switch(Z.type){case "SET_IS_PLAYBACK_STARTED":return Z.payload.isPlaybackStarted;default:return q===void 0?!1:q}}});var nbN={playlistId:"",inviteLinkURL:""};var iLX={};var sLe=YQ({continuationCommand:function(q,Z){q=q===void 0?iLX:q;switch(Z.type){case "SET_CONTINUATION_COMMAND":return Z.payload.continuationCommand;default:return q}}});var mn9=function(){return function(q){return function(Z){var w=q(Z);_.yY(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[Z],!0);return w}}};var gd9;gd9=new _.Dk;_.F6=new _.F$("WATCH_PLAYER_PROMISE_TOKEN");_.qF7=new _.Dk;_.Zt1=new _.F$("SHORTS_PLAYER_PROMISE_TOKEN");_.X6=new _.F$("");var AgT=function(){return function(q){return function(Z){Z.type==="ENTITY_LOADED"&&_.t().resolve(_.F6).then(function(w){var r;(r=w.dispatchReduxAction)==null||r.call(w,Z)});
return q(Z)}}};var Eb1={currentFormId:"",commandsMap:{}};var wh2={};var cg9=YQ({additionalContext:function(q,Z){switch(Z.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var w;return(w=Z.payload)!=null?w:"";default:return q===void 0?"":q}},
impersonatedChannelUrl:function(q,Z){switch(Z.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var w;return(w=Z.payload)!=null?w:"";default:return q===void 0?"":q}},
selectedVideoIds:function(q,Z){q=q===void 0?wh2:q;switch(Z.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var w={};return Object.assign({},q,(w[Z.payload]=!0,w));case "VIDEO_UNSELECTED":return Z=Z.payload,q=Object.assign({},q),delete q[Z],q;default:return q}}});var M_2=YQ({parentClickTrackingParams:function(q,Z){switch(Z.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return Z.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return q===void 0?"":q}}});var rO7=function(q){return _.mu({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:q})};var YF2={};var Fa8=YQ({stepStates:function(q,Z){q=q===void 0?YF2:q;switch(Z.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var w=q,r=Z.payload,Y,C,d;q={};Z={selectionStates:Object.assign({},(d=(Y=w[r.stepId])==null?void 0:Y.selectionStates)!=null?d:{},(q[r.token]={isSelected:r.isSelected},q)),userQuery:(C=w[r.stepId])==null?void 0:C.userQuery};Y={};return Object.assign({},w,(Y[r.stepId]=Z,Y));case "TALK_TO_RECS_UPDATE_USER_QUERY":return Y=q,C=Z.payload,d={selectionStates:Object.assign({},
(r=(w=Y[C.stepId])==null?void 0:w.selectionStates)!=null?r:{}),userQuery:{userQuery:C.userQuery,token:C.userQueryToken}},w={},Object.assign({},Y,(w[C.stepId]=d,w));default:return q}}});var $h7,eMW;$h7=function(q){return _.mu({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:q})};
eMW=function(q){return _.mu({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:q})};
_.bi=function(q){return _.mu({type:"SET_CURRENT_PAGE_TYPE",payload:q})};
_.C_e=function(q){return _.mu({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:q})};var TjT={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"};_.P_K=function(q){return _.mu({type:"SET_PLAYER_STATE",payload:{playerState:q}})};var dh1=[],V47={width:0,height:0};var NjX=YQ({isTheaterMode:function(q,Z){q=q===void 0?_.BF("START_IN_THEATER_MODE"):q;switch(Z.type){case "SET_IS_THEATER_MODE":return Z.payload.isTheaterMode;default:return q}},
isWatchActive:function(q,Z){switch(Z.type){case "SET_IS_WATCH_ACTIVE":return Z.payload.isWatchActive;default:return q===void 0?!1:q}},
isWatchFullscreen:function(q,Z){switch(Z.type){case "SET_IS_WATCH_FULLSCREEN":return Z.payload.isWatchFullscreen;default:return q===void 0?!1:q}},
isWatchNarrowWidth:function(q,Z){switch(Z.type){case "SET_IS_WATCH_NARROW_WIDTH":return Z.payload.isWatchNarrowWidth;default:return q===void 0?!1:q}},
isWatchRetroMode:function(q,Z){switch(Z.type){case "SET_IS_WATCH_RETRO_MODE":return Z.payload.isWatchRetroMode;default:return q===void 0?!1:q}},
isLiveChatCollapsed:function(q,Z){switch(Z.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return Z.payload.isLiveChatCollapsed;default:return q===void 0?!1:q}},
openEngagementPanels:function(q,Z){q=q===void 0?dh1:q;var w=[].concat(_.Ju(q));switch(Z.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return w.push(Z.payload.panelToAdd),w;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return w.splice(w.indexOf(Z.payload.panelToRemove),1),w;default:return q}},
playerState:function(q,Z){switch(Z.type){case "SET_PLAYER_STATE":return Z.payload.playerState;default:return q===void 0?-1:q}},
watchScrollTop:function(q,Z){switch(Z.type){case "SET_WATCH_SCROLL_TOP":return Z.payload.watchScrollTop;default:return q===void 0?0:q}},
watchWindowSize:function(q,Z){q=q===void 0?V47:q;switch(Z.type){case "SET_WATCH_WINDOW_SIZE":return Z.payload.watchWindowSize;default:return q}}});var Ot7={feedbackTokens:[]};var lZ2=YQ({surveyFeedbackData:function(q,Z){q=q===void 0?Ot7:q;switch(Z.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return Z.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},q,Z.payload);default:return q}}});var kG9={};var Dn8=void 0;_.b("web_enable_redux_store_on_demand")||(Dn8=fZe());var Ht2=function(q,Z,w){var r=this;this.listId=q;this.JSC$10594_updateCallback=Z;this.isOfflineVideoCallback=w;_.sE().subscribe(function(){r.handleUpdate()})};
Ht2.prototype.getPlaylistData=function(){var q=_.sE().getState().entities;if(this.listId&&this.listId!=="PPSV"){var Z=hfT(q,this.listId,!0),w=_.yG(this.listId,"mainPlaylistEntity"),r,Y;q=q==null?void 0:(r=q.mainPlaylistEntity)==null?void 0:(Y=r[w])==null?void 0:Y.title;return hFj(Z,q,this.listId)}Z=_.kge(zp2(q));q=_.kge(_.oZ(q));return hFj(Z.concat(q))};
Ht2.prototype.getPlaylistId=function(){return this.listId};
Ht2.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10594_updateCallback(this.listId,this.getPlaylistData(),{})};var oa=function(q,Z,w,r){r=r===void 0?[]:r;this.JSC$10597_playlistNetworkManager=q;this.listId=Z;this.JSC$10597_updateCallback=w;this.videoIds=r;this.pendingUpdates=[];this.currentIndex=0};
oa.prototype.JSC$10597_setCurrentIndex=function(q){this.currentIndex=q};
oa.prototype.setListId=function(q){this.listId=q};
var W42=function(q,Z){q.currentCreateRequest&&q.currentCreateRequest.cancel(Z);q.currentUpdateRequest&&q.currentUpdateRequest.cancel(Z);q.currentRefreshRequest&&q.currentRefreshRequest.cancel(Z)};
oa.prototype.delete=function(){W42(this,"PROXY DELETED")};
oa.prototype.addVideos=function(q,Z,w){var r=this;w!==void 0?this.videoIds.splice.apply(this.videoIds,[w,0].concat(_.Ju(q))):this.videoIds.push.apply(this.videoIds,_.Ju(q));this.listId||this.currentCreateRequest?(q.forEach(function(Y,C){Y={addedVideoId:Y,action:"ACTION_ADD_VIDEO"};w&&(Y.addedVideoPosition=w+C);r.pendingUpdates.push(Y)}),u8(this)):ojp(this,Z.onCreateListCommand)};
var uxh=function(q,Z,w,r,Y){E1j(q.videoIds,Z,w);Z>q.currentIndex&&w<=q.currentIndex?q.JSC$10597_setCurrentIndex(q.currentIndex+1):Z===q.currentIndex?q.JSC$10597_setCurrentIndex(w):Z<q.currentIndex&&w>=q.currentIndex&&q.JSC$10597_setCurrentIndex(q.currentIndex-1);q.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:r,movedSetVideoIdPredecessor:Y});u8(q)},ojp=function(q,Z){W42(q,"OBSOLETE");
q.currentCreateRequest=L41(q.JSC$10597_playlistNetworkManager,Z,q.videoIds);_.on(q.currentCreateRequest,function(){q.currentCreateRequest=void 0}).then(function(w){q.setListId(w.playlistId);
q.pendingUpdates.length>0?u8(q):SFe(q)})},u8=function(q){if(q.pendingUpdates.length!==0&&(q.currentRefreshRequest&&q.currentRefreshRequest.cancel("OBSOLETE"),!q.currentUpdateRequest&&!q.currentCreateRequest)){var Z=q.pendingUpdates.splice(0,q.pendingUpdates.length);
q.currentUpdateRequest=q.JSC$10597_playlistNetworkManager.updatePlaylist(q.listId,Z);_.on(q.currentUpdateRequest,function(){q.currentUpdateRequest=void 0}).then(function(){q.pendingUpdates.length>0?u8(q):SFe(q)}).thenCatch(function(){q.pendingUpdates.unshift.apply(q.pendingUpdates,_.Ju(Z))})}},SFe=function(q){q.currentRefreshRequest=_.vjp(q.JSC$10597_playlistNetworkManager,q.listId,q.currentIndex,q.videoIds[q.currentIndex]);
_.on(q.currentRefreshRequest,function(){q.currentRefreshRequest=void 0}).then(function(Z){q.JSC$10597_updateCallback(Z.playlistId,Z.playlistPanelRenderer,Z.autoplayRenderer)})};
oa.prototype.size=function(){return this.videoIds.length};var jeX=function(q,Z,w,r){r=r===void 0?[]:r;oa.call(this,q,Z,w,r);this.JSC$10597_playlistNetworkManager=q;this.listId=Z;this.JSC$10597_updateCallback=w;this.videoIds=r};
_.z(jeX,oa);_.Lq=function(q,Z,w,r,Y,C,d){Y=Y===void 0?[]:Y;d=d===void 0?DI:d;oa.call(this,q,Z,w,Y);this.JSC$10597_playlistNetworkManager=q;this.listId=Z;this.JSC$10597_updateCallback=w;this.onAuthChange=r;this.videoIds=Y;this.storage=C;this.cookieReader=d;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.sL(_.v5,this.checkLoggedInStatusChange.bind(this),1E3)};
_.z(_.Lq,oa);_.e=_.Lq.prototype;_.e.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.sL(_.v5,this.checkLoggedInStatusChange.bind(this),1E3)};
_.e.JSC$10597_setCurrentIndex=function(q){oa.prototype.JSC$10597_setCurrentIndex.call(this,q);this.store()};
_.e.delete=function(){_.v5.cancelJob(this.queueSapisIdJob);oa.prototype.delete.call(this)};
_.e.setListId=function(q){oa.prototype.setListId.call(this,q);this.store()};
_.e.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var t4m=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],RMJ=["playerResponse","videoDetails"],btv=["response","currentVideoEndpoint","watchEndpoint","videoId"],JOp=["response","currentVideoEndpoint","watchEndpoint","playlistId"],zMg=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],B87=["response","contents","twoColumnWatchNextResults","playlist","playlist"],au2=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
nje=["response","contents","twoColumnWatchNextResults"];var S1={},ZZz=(S1.WEB_UNPLUGGED="^unplugged/",S1.WEB_UNPLUGGED_ONBOARDING="^unplugged/",S1.WEB_UNPLUGGED_OPS="^unplugged/",S1.WEB_UNPLUGGED_PUBLIC="^unplugged/",S1.WEB_CREATOR="^creator/",S1.WEB_KIDS="^kids/",S1.WEB_EXPERIMENTS="^experiments/",S1.WEB_MUSIC="^music/",S1.WEB_REMIX="^music/",S1.WEB_MUSIC_EMBEDDED_PLAYER="^music/",S1.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",S1);var Ut8,L41;Ut8=function(q,Z){this.networkManager=q;this.innertubeTransportService=Z};
L41=function(q,Z,w){if(!_.J(Z,_.JA))return _.TX(Error("Df"));_.J(Z,_.JA).videoIds=w;w={create_playlist_title:_.dT("QUEUE",void 0,"Queue")};return gbO(_.zR(q.innertubeTransportService,Z,w),yg2)};
_.vjp=function(q,Z,w,r){Z={videoId:r,playlistId:Z,playlistIndex:w};w=_.IZ(xtm);return gbO(_.tD(q.innertubeTransportService,Z,w),qte)};
Ut8.prototype.updatePlaylist=function(q,Z){return gbO(_.zR(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:q,actions:Z}}),iKO)};var Ra=function(q){this.storage=q},Qe7;
Ra.prototype.store=function(q,Z){Z=Z===void 0?0:Z;if(this.storage&&q.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",q),this.storage.set("TLPQindex",String(Z)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(w){}};
Ra.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
Ra.prototype.getPlaylistId=function(){if(!this.storage)return null;var q=null;try{q=this.storage.get("TLPQplaylist")}catch(Z){}return q};
Ra.prototype.getIndex=function(){if(this.storage){try{var q=this.storage.get("TLPQindex")}catch(Z){}q=Number(q);if(!isNaN(q))return q}};var $WT=["navigationEndpoint","watchEndpoint","videoId"],Ytz=["nextButtonVideo","watchEndpoint","videoId"];_.Co=new _.F$("NETWORK_TOKEN");_.U1=new _.F$("PAGE_TOKEN");_.b8=new _.F$("PLAYLIST_TOKEN");var Ej1;Ej1=new _.F$("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.PP=new _.F$("INNERTUBE_TRANSPORT_TOKEN");var xhJ,JD,UhD,kWe,see,Iuh;xhJ=new Set(["ci","cr","carml"]);JD=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10644_parkedJobs=new Map;this.parkedProcessors=new Map};
_.zB=function(){JD.instance||(JD.instance=new JD);return JD.instance};
JD.prototype.onAny=function(q){return _.T87(this,q,2)};
JD.prototype.parkOrScheduleJob=function(q,Z,w,r,Y){_.BV(this,w)?_.R0().addJob(q,Z,r):(Y&&(q=UhD(q),kWe(this,q,Z,w,Y)),Y=this.JSC$10644_parkedJobs.get(w),Y||(this.JSC$10644_parkedJobs.set(w,[]),Y=this.JSC$10644_parkedJobs.get(w)),Y.push({job:q,priority:Z,delay:r}))};
JD.prototype.addListener=function(q,Z,w){w&&(Z=UhD(Z),kWe(this,Z,0,q,w));w=this.parkedProcessors.get(q);w||(this.parkedProcessors.set(q,[]),w=this.parkedProcessors.get(q));w.push(Z)};
JD.prototype.processSignal=function(q){if(!_.BV(this,q)){this.inProgressSignals.add(q);var Z=this.JSC$10644_parkedJobs.get(q);if(Z){Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next())w=w.value,_.R0().addJob(w.job,w.priority,w.delay);this.JSC$10644_parkedJobs.delete(q)}if(Z=this.parkedProcessors.get(q)){Z=_.P(Z);for(w=Z.next();!w.done;w=Z.next())w=w.value,w();this.parkedProcessors.delete(q)}this.signals.push(q);this.inProgressSignals.delete(q)}};
_.BV=function(q,Z){return xhJ.has(Z)||_.BF("IS_HOMEPAGE_COLD")||_.BF("IS_RESULTS_PAGE_COLD")||_.BF("IS_WATCH_PAGE_COLD")?q.signals.indexOf(Z)>=0:!0};
UhD=function(q){var Z=!1;return function(){Z||(Z=!0,q())}};
kWe=function(q,Z,w,r,Y){if(K4K.has(r))_.R0().addJob(Z,w,Y);else{var C=q.compoundSignals.get(r);C&&_.R0().addJob(function(){_.BV(q,r)||(C.isTimeoutConditionSatisfied?_.R0().addJob(Z,w):C.timeoutConditionObservers.push(function(){_.R0().addJob(Z,w)}))},w,Y)}};
_.T87=function(q,Z,w){if(Z.length>1){var r=[],Y=Object.create(null);Z=_.P(Z);for(var C=Z.next();!C.done;C=Z.next())C=C.value,Y[C]||(r.push(C),Y[C]=!0);Z=r}if(Z.length===1)return Z[0];C=Z;r="";Y=w===2?"|":"&";C.sort();C=_.P(C);for(var d=C.next();!d.done;d=C.next())r+=d.value+Y;if(!q.compoundSignals.get(r)){Y=0;C=[];d=_.P(Z);for(var O=d.next();!O.done;O=d.next())O=O.value,Y++,_.BV(q,O)||C.push(O);(w=w===2)&&Y>C.length||!w&&!C.length?q.signals.push(r):see(q,r,w,Z,C)}return r};
see=function(q,Z,w,r,Y){var C=Y.length,d=function(){w||--C===0?q.processSignal(Z):Iuh(q,Z)};
Y=_.P(Y);for(var O=Y.next();!O.done;O=Y.next())q.addListener(O.value,d);q.compoundSignals.set(Z,{signals:r,isOnAny:w,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Iuh(q,Z)};
Iuh=function(q,Z){if(!_.BV(q,Z)){var w=q.compoundSignals.get(Z);if(w&&!w.isTimeoutConditionSatisfied){for(var r=!1,Y=0,C=0,d=_.P(w.signals),O=d.next();!O.done;O=d.next()){var H=O.value;O=!_.BV(q,H);K4K.has(H)?r=!0:(H=q.compoundSignals.get(H))?O&&!H.isTimeoutConditionSatisfied&&(C++,w.isInitialized||H.timeoutConditionObservers.push(function(){Iuh(q,Z)})):O&&Y++}w.isInitialized=!0;
w.isOnAny?r&&(w.isTimeoutConditionSatisfied=!0):Y===0&&C===0&&(w.isTimeoutConditionSatisfied=!0);if(w.isTimeoutConditionSatisfied)for(w=_.P(w.timeoutConditionObservers),r=w.next();!r.done;r=w.next())r=r.value,r()}}};
JD.prototype.processSignal=JD.prototype.processSignal;JD.prototype.parkOrScheduleJob=JD.prototype.parkOrScheduleJob;JD.prototype.onAny=JD.prototype.onAny;_.IR("ytsignals.getInstance",_.zB);JD.prototype.onAny=JD.prototype.onAny;JD.prototype.parkOrScheduleJob=JD.prototype.parkOrScheduleJob;JD.prototype.processSignal=JD.prototype.processSignal;var K4K=new Set(["eop","eocs","dl","pcl"]);_.Tf=new _.F$("MINIPLAYER_SERVICE");var aa,cOp,M4v;aa=function(q,Z,w){var r=_.UU.getInstance();if(!Qe7){var Y=new d9X;var C=void 0,d=_.zj("ID_TOKEN");d&&Y.isAvailable()&&(C=new Wg(Y,"yt-queue"+d));Qe7=new Ra(C)}Y=Qe7;C=_.zB();this.JSC$10651_actionRouter=r;this.pageManager=q;this.playlistManager=Z;this.JSC$10651_playlistNetworkManager=w;this.storage=Y;this.signals=C;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.nq=function(){if(!cOp){var q=_.t(),Z=q.resolve(_.Gj(_.U1)),w=q.resolve(_.Gj(_.Co)),r=q.resolve(_.Gj(_.b8));q=q.resolve(_.PP);cOp=new aa(Z,r,new Ut8(w,q))}return cOp};
M4v=function(q,Z,w){if(w){var r;if(((r=q.responsePlaylistData)==null?void 0:r.playlistId)!==w)return}q.responsePlaylistData&&(w=OZj(Z,q.responsePlaylistData),q.responsePlaylistData=(0,_.R4.unsafeClone)(q.responsePlaylistData),Wr9(q.responsePlaylistData,w));w=q.temporaryItems.findIndex(function(Y){return Y.videoId===Z});
w>-1&&q.temporaryItems.splice(w,1);_.Qq(q,_.EK(q,q.response?q.response.autoplayRenderer:void 0))};
_.F4J=function(q,Z){if(q.responsePlaylistData){var w=HZ9(Z,q.responsePlaylistData);Wr9(q.responsePlaylistData,w);if(q.queueProxy){var r=q.queueProxy;w<0||(r.videoIds.splice(w,1),w<r.currentIndex&&r.JSC$10597_setCurrentIndex(r.currentIndex-1),r.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:Z}),u8(r))}}_.Qq(q,_.EK(q,q.response?q.response.autoplayRenderer:void 0))};
aa.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.Qq(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
aa.prototype.setPlaylistData=function(q,Z,w){this.temporaryItems=[];this.listId=q;this.responsePlaylistData=Z;_.Qq(this,_.EK(this,w))};
var N81=function(q){return(q==null?0:q.playlistId)?q.playlistId:"PPSV"},lue=function(q){return q&&q.playlistId?q.playlistId==="PPSV"?!0:f1I(_.sE().getState().entities,q.playlistId):!1};
aa.prototype.isPlayingOfflineVideo=function(){return this.response?lue(this.response):!1};
aa.prototype.closeMiniplayer=function(q){var Z=this.queueProxy&&this.queueProxy.size()<=1,w=_.t().resolve(_.Tf);if(!this.queueProxy||Z)this.queueProxy&&this.clearQueue(),w.close(!0);else{w.pipController.getWindow()&&window.focus();Z=this.responsePlaylistData;var r=this.temporaryItems.length+(Z&&Z.contents?Z.contents.length:0);Z=_.dT("QUEUE_CLEARED_UNPLURALIZED")||_.VG("QUEUE_CLEARED",r);Z=_.M9(Z);w=_.dT("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");r=_.dT("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.VG("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",r);var Y=_.dT("MINIPLAYER_CLOSE",void 0,"Close"),C=_.dT("CANCEL",void 0,"Cancel");_.tH(this.JSC$10651_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.UE(w),dialogMessages:[_.UE(r)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.UE(Y),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
Z]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.UE(C)}}}}}}],q)}};
_.EK=function(q,Z){var w={},r=q.response;w.autoplayRenderer=Z;if(!q.responsePlaylistData&&!q.temporaryItems.length)return!r||!r.hasRelatedVideoData&&_.b("kevlar_prefetch_data_augments_network_data")||(w.playerData={rvs:r.relatedVideoArgs,endScreenRenderer:r.endScreenRenderer}),w;w.playerData={};if(q.index===void 0)return _.tY(Error("Ff")),w;w.panel=q.responsePlaylistData?(0,_.R4.unsafeClone)(q.responsePlaylistData):{titleText:_.UE(_.dT("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
Z=w.panel;if(Z.contents)for(var Y=_.P(q.temporaryItems),C=Y.next();!C.done;C=Y.next())Z.contents.push({playlistPanelVideoRenderer:C.value});q.queueProxy&&r&&r.playingVideo&&r.playingVideoId&&!VL8(r.playingVideoId,w.panel)&&(Z=r.playingVideo,Y=w.panel,C=q.index,Y.contents&&Y.contents.splice(C===void 0?0:C,0,{playlistPanelVideoRenderer:Z}));r&&r.playingVideoId&&(Z=q.index,Y=w.panel,Z=!Y.contents||Z>=Y.contents.length?void 0:Y.contents[Z].playlistPanelVideoRenderer,Z&&Z.videoId===r.playingVideoId||(Z=
OZj(r.playingVideoId,w.panel),q.index=Z!==-1?Z:q.index?q.index-1:0));Z=dW8(q.index+1,w.panel);Y=void 0;q.index>0&&(Y=dW8(q.index-1,w.panel));if(Y||Z)w.autoplayRenderer=e6j(Z,Y,w.autoplayRenderer);!Z&&(r==null?0:r.relatedVideoArgs)&&(w.playerData.rvs=r.relatedVideoArgs);r=r?r.playlistIndexOffset:0;q.queueProxy?LrT(w.panel,q.index,r,PPT,!0,!0,!0):LrT(w.panel,q.index,r);w.playerData.playlistPanelRenderer=w.panel;return w};
aa.prototype.openToast=function(q){_.t().resolve(_.Tf).openToast(q,_.dT("ADDED_TO_QUEUE",void 0,"Added to queue"))};
aa.prototype.isMiniplayerActive=function(){return _.t().resolve(_.Tf).isMiniplayerActive()};
_.Qq=function(q,Z){q.playlistManager.setAutoplayRenderer(Z.autoplayRenderer||null);q.playlistManager.setPlaylistData(Z.panel||null);Z.playerData&&q.playlistManager.setPlayerPlaybackControlData(Z.playerData)};var vk2="#";var GWJ={},ph9={},Xhv={},mhp={},AOm={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:(GWJ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",GWJ),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:(ph9.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",ph9),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:(Xhv.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",Xhv),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:(mhp.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",mhp),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 wj8=[{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:AOm},{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:AOm}}];var fug=[["bGoxOWxmcHNtcHJpbWFyeSN0aGk=",null],[null,["ZGVyZXIjM2hpYjZ0ZTVkYTc3eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVu","bGUtc2NvcGUjYnl2dWtuOG8zbzQ3c3R5"]],["dGhlYWQtYWQjcTBjM3VtNTF5cTlubWFz",["dGQtcmljaC1ncmlkLXJlbmRlcmVyI2RkbGV0dXR1a3hmdHk="]],[null,["dGQtcmljaC1ncmlkLXJlbmRlcmVyI3IzOHZ5eGQ2dXVtcHk=","bGUtc2NvcGUjOTBudHJrNHVzeWNuc3R5"]],[null,["bmVyLXByb21vLXJlbmRlcmVyIzhudGlwZHQ3MmNyOXl0ZC1iYW4=","bGUtc2NvcGUjaXRrMngyeWR5N2kyc3R5"]],[null,["MTkweXRkLWFkLXNsb3QtcmVuZGVyZXIjd2MxNjQ0MzRp"]]];var mWj=[["primary",null],[null,["ytd-two-column-browse-results-renderer","style-scope"]],["masthead-ad",["ytd-rich-grid-renderer"]],[null,["ytd-rich-grid-renderer","style-scope"]],[null,["ytd-banner-promo-renderer","style-scope"]],[null,["ytd-ad-slot-renderer"]]];var xC;xC=function(q,Z,w){this.eOW=q;this.isAsync=Z;this.sr1=w};
_.WO8=[new xC("b.f_",!1,0),new xC("j.s_",!1,2),new xC("r.s_",!1,4),new xC("e.h_",!1,6),new xC("i.s_",!0,8),new xC("s.t_",!1,10),new xC("p.h_",!1,12),new xC("s.i_",!1,14),new xC("f.i_",!1,16),new xC("a.b_",!1,18),new xC("a.o_",!1),new xC("g.o_",!1,22),new xC("p.i_",!1,24),new xC("p.m_",!1),new xC("n.k_",!0,20),new xC("i.f_",!1),new xC("a.s_",!0),new xC("m.c_",!1),new xC("n.h_",!1,26),new xC("o.p_",!1),new xC("m.p_",!0,28),new xC("o.a_",!1),new xC("d.p_",!1)].reduce(function(q,Z){q[Z.eOW]=Z;return q},
{});var JC9=function(){};
JC9.prototype.flush=function(q,Z){q=q===void 0?[]:q;Z=Z===void 0?!1:Z;if(_.b("enable_client_streamz_web")){q=_.P(q);for(var w=q.next();!w.done;w=q.next())w=UX1(w.value),w={serializedIncrementBatch:_.Rq(w.JSC$7480_serializeBinary())},_.vO("streamzIncremented",w,{sendIsolatedPayload:Z})}};var pz;var h6N,BKT,Kre,Q22,TK2,pvj,iZN,hM7,NKN,fz,qWO,$t8,TB;h6N=2;BKT=2;Kre=2;Q22=2;TK2=2;pvj=2;iZN=2;hM7=new n67;NKN=function(){this.jD0=!1};
fz=function(q,Z,w){_.b("ab_l_sig_st_e")&&hM7.increment(w,Z);Z===0&&(q.jD0=!0)};
qWO=["Z2xvYmFsQ2FsbGJhY2tz","b25BYm5vcm1hbGl0eURldGVjdGVk","b25BZFNraXA=","cmF3X3BsYXllcl9yZXNwb25zZQ=="];$t8=[[["ZmtpbmQjbmdzZmJ5a3pnYnE=","dWUjc3AyZGxweXpydDJpdmFs"],"Q0VNRU5UI3hkYjE0ZnJ0b296dEFEX1BMQQ=="]];TB={};_.yO1=(TB["b.f_"]=function(){return _.V(function(q){return q.nextAddress==1?_.W(q,(_.ijT()!==void 0?_.TX(Error("sf")):_.l7z()).then(function(){return 1},function(Z){if(Z.message==="Biscotti id is disabled")return 3;
_.bx("Failed fetching bid");return 0}),2):q.return(q.yieldResult)})},TB["j.s_"]=lhz,TB["r.s_"]=MLe,TB["e.h_"]=function(){return Xv8(tLN(fug,function(q){return j26(q)}))},TB["n.h_"]=function(){return Xv8(tLN([["player-ads",
["ytd-merch-shelf-renderer","ytp-featured-product"]]]))},TB["i.s_"]=GUT,TB["p.h_"]=function(){return 2},TB["s.t_"]=function(){return h6N},TB["s.i_"]=yC9,TB["f.i_"]=nkz,TB["a.b_"]=IhI,TB["a.o_"]=DWe,TB["g.o_"]=fh6,TB["p.i_"]=ACO,TB["p.m_"]=xWj,TB["n.k_"]=function(){return _.zj("NKDSTAT",2)},TB["i.f_"]=kU2,TB["a.s_"]=function(){return _.zj("ASDSTAT",2)},TB["m.c_"]=function(){return 2},TB["o.p_"]=function(){for(var q=[],Z=0,w=0;w<qWO.length;w++)q[w]=qWO[w],Z++;
q[Z]="d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tz";q[Z+1]="YWJfc2FfZWY=";return gk8(q)},TB["m.p_"]=function(){return _.zj("MBSTAT",2)},TB["o.a_"]=function(){return ZOT()},TB["d.p_"]=function(){return iZN},TB);var itX,gje,qyD;itX=function(){this.ongoingFlowNonces=new Map};
_.iF=function(){gje||(gje=new itX);return gje};
_.h0=function(q,Z,w){return{eventType:{flowEventNamespace:q,flowEventType:Z},metadata:w,statusCode:void 0,csn:void 0,can:void 0}};
_.uYN=function(q,Z){var w=_.iF(),r=qyD(w,Z,!0);_.yR(w,q,Z,r)};
_.yR=function(q,Z,w,r){q={flowNonce:r||qyD(q,w),flowType:w,flowEventType:Z.eventType};Z.metadata&&(q.flowMetadata=Z.metadata);Z.statusCode!==void 0&&(q.flowEventStatus=Z.statusCode);Z.csn&&(q.csn=Z.csn);Z.can&&(q.can=Z.can);_.vO("flowEvent",q,void 0)};
qyD=function(q,Z,w){w=w===void 0?!1:w;var r=q.ongoingFlowNonces.get(Z);if(!r||w)r=js(16),q.ongoingFlowNonces.set(Z,r);return r};_.Z2p=new aBv;var UK=function(q,Z,w,r,Y,C,d){w=w===void 0?!1:w;r=r===void 0?!1:r;C=C===void 0?_.nq():C;this.hasRun=!1;this.buz=q;this.ciE=Z;this.qwz=w;this.fromHistory=r;this.previousVideoId=Y;this.cUU=C;this.tempData=d;this.fIz=new _.QFp};
_.z(UK,Ix);UK.prototype.validate=function(q){return!(!q.data.playerResponse||q.data.page!=="watch"&&q.data.page!=="shorts"||this.hasRun)};
UK.prototype.handle=function(q){var Z=this,w=_.J(q.endpoint,_.ck),r=_.J(q.endpoint,_.Yz);if(_.b("kevlar_continue_playback_without_player_response")&&(w==null?0:w.videoId)&&this.previousVideoId&&(w==null?void 0:w.videoId)===this.previousVideoId&&(w==null?0:w.continuePlayback)&&!this.fromHistory)this.buz.resolve();else{var Y={};w?Y.watch_endpoint=w:r&&(Y.watch_endpoint=r,r.endTimeSeconds&&(Y.end=r.endTimeSeconds));q.data.page==="watch"?(q.data.filler||this.qwz||(_.z7("cfg"),_.UU.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(Y,wY1(this,q.endpoint)),_.b("enable_masthead_quartile_ping_fix")&&Object.assign(Y,rZ7(this)),w=!_.b("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(Y,w),q.data.forceExternalPlaylist&&(Y.external_list=!0)):q.data.page==="shorts"&&_.UU.getInstance().triggerAction("yt-start-loading-shorts");if(w=this.ciE()){try{w.loadVideoWithPlayerResponse(q.data.playerResponse,Y),w.getPlayerPromise().then(this.buz.resolve)}catch(C){_.tY(C),this.buz.resolve()}this.hasRun=
!0;w.getPlayerPromise().then(function(C){C.addEventListener("onAbnormalityDetected",function(){var d=q.data.playerResponse,O=C.getVideoData().cpn;iZN=0;_.DhX=O;if(O=HOz(d))Z.fIz.increment("IN_PLAYER"),_.gt(5),_.b("ab_st_vid_ks")?C.pauseVideo(!0):C.stopVideo(),d.playabilityStatus=Object.assign({},d.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:O}}),d.videoDetails=void 0,_.UU.getInstance().triggerOptionalAction("yt-updated-playability-status",d.playabilityStatus)})})}else _.bx(Error("If"))}};
var wY1=function(q,Z){var w=_.J(Z,_.ck);if(Z&&w&&w.playlistId&&w.videoId&&(q=q.cUU,q.queueProxy?(q=q.queueProxy,w=q.listId===w.playlistId?q.attributionData.get(w.videoId):void 0):w=void 0,w))return{queue_info:w}},rZ7=function(q){var Z;
if((Z=q.tempData)==null?0:Z.adpings)return{adpings:q.tempData.adpings}};var kC=function(q,Z,w){this.hasRun=!1;this.dYY=q;this.iTR=Z;this.yBh=w};
_.z(kC,Ix);kC.prototype.validate=function(q){return!!_.R4.getValueByKeys.apply(null,[q.data].concat(_.Ju(nje)))};
kC.prototype.handle=function(q){var Z=this;this.dYY.promise.then(function(){var w=q.data;var r=_.R4.getValueByKeys.apply(null,[w].concat(_.Ju(t4m))),Y=_.R4.getValueByKeys.apply(null,[w].concat(_.Ju(B87))),C=_.R4.getValueByKeys.apply(null,[w].concat(_.Ju(btv)));var d=(d=_.R4.getValueByKeys.apply(null,[w].concat(_.Ju(RMJ))))?{videoId:d.videoId,thumbnail:d.thumbnail,title:d.title?_.UE(d.title):void 0,shortBylineText:d.author?_.UE(d.author):void 0}:void 0;var O=void 0;_.b("web_get_playlist_id_from_current_endpoint_ks")||
(O=_.R4.getValueByKeys.apply(null,[w].concat(_.Ju(JOp))));var H=_.R4.getValueByKeys.apply(null,[w].concat(_.Ju(au2))),L=_.R4.getValueByKeys.apply(null,[w].concat(_.Ju(zMg))),S=!!H||!!L&&!!L.results&&L.results.length>0,v=0;Y&&Y.currentIndex&&Y.localCurrentIndex&&(v=Y.currentIndex-Y.localCurrentIndex);Y&&Y.playlistId&&(O=Y.playlistId);w={rawResponse:w,autoplayRenderer:r,hasRelatedVideoData:S,playingVideo:d,playingVideoId:C,playlistPanelRenderer:Y,playlistId:O,playlistIndex:Y&&Y.currentIndex,relatedVideoArgs:H,
endScreenRenderer:L,playlistIndexOffset:v};a:{r=Z.yBh;Y=Z.iTR;r.response=w;if(lue(w))r.downloadPlaylistProxy&&r.downloadPlaylistProxy.getPlaylistId()===N81(w)||(r.downloadPlaylistProxy=new Ht2(N81(w),r.setPlaylistData.bind(r),r.isPlayingOfflineVideo.bind(r))),r.responsePlaylistData=r.downloadPlaylistProxy.getPlaylistData(),r.listId=N81(w),r.index=0;else if(w.playlistPanelRenderer&&w.playlistId&&w.autoplayRenderer)w.playlistId.startsWith("TLPQ")?r.queueProxy?r.listId===w.playlistId?(r.index=w.playlistIndex,
r.responsePlaylistData=w.playlistPanelRenderer,r.queueProxy.JSC$10597_setCurrentIndex(r.index)):w.playingVideoId&&r.index!==void 0&&Y.clientParams.autoSaveToQueue&&(r.index+=1,r.queueProxy.JSC$10597_setCurrentIndex(r.index),r.queueProxy.addVideos([w.playingVideoId],{},r.index)):(r.queueProxy=new _.Lq(r.JSC$10651_playlistNetworkManager,w.playlistId,r.setPlaylistData.bind(r),r.clearQueue.bind(r),_.ok1(w.playlistPanelRenderer),r.storage),r.responsePlaylistData=w.playlistPanelRenderer,r.listId=w.playlistId,
r.index=w.playlistIndex):(r.index=w.playlistIndex,r.listId!==w.playlistId&&r.clearQueue(),r.responsePlaylistData=w.playlistPanelRenderer,r.listId=w.playlistId,r.playlistProxy=new jeX(r.JSC$10651_playlistNetworkManager,w.playlistId,r.setPlaylistData.bind(r),_.ok1(w.playlistPanelRenderer)));else if(!r.queueProxy)r.responsePlaylistData=void 0;else if(w.playingVideoId&&Y.clientParams.autoSaveToQueue){if(r.index===void 0){_.tY(Error("Ef"));r.clearQueue();break a}r.queueProxy.videoIds.includes(w.playingVideoId)||
(r.index+=1,r.queueProxy.JSC$10597_setCurrentIndex(r.index),r.queueProxy.addVideos([w.playingVideoId],{},r.index))}_.Qq(r,_.EK(r,r.response.autoplayRenderer))}})};var Yy7=function(q,Z){Z=Z===void 0?_.nq():Z;iG.call(this);this.iX.push(new kC(this.gS,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},Z));this.iX.push(new UK(this.gS,q,!1,!1));_.b("web_response_commands_chunk_processor")&&this.iX.push(new gZ)};
_.z(Yy7,iG);Yy7.prototype.processChunk=function(q){q&&q.data.player===void 0&&this.gS.resolve();iG.prototype.processChunk.call(this,q)};var Kq=function(q,Z){q=q===void 0?{layer:0}:q;this.hasRun=!1;this.createScreenConfig=q;this.g9f=Z};
_.z(Kq,Ix);Kq.prototype.validate=function(q){return!(this.hasRun||!q.endpoint)};
Kq.prototype.handle=function(q){var Z=_.iy(),w,r,Y=(r=_.J((w=q.endpoint)==null?void 0:w.commandMetadata,_.XK))==null?void 0:r.rootVe;this.g9f&&Y?_.mG(Z,Y,this.g9f,this.createScreenConfig):y_W(Z,q.endpoint,this.createScreenConfig);this.hasRun=!0};var sK=function(q,Z){this.hasRun=!1;this.eRt=q;this.previousVideoId=Z};
_.z(sK,Ix);sK.prototype.validate=function(q){return _.b("kevlar_continue_playback_without_player_response")&&(q=_.J(q.endpoint,_.ck),(q==null?0:q.videoId)&&this.previousVideoId&&(q==null?void 0:q.videoId)===this.previousVideoId&&(q==null?0:q.continuePlayback))?!1:this.eRt.ly1===0};
sK.prototype.handle=function(q){_.UU.getInstance().triggerAction("yt-stop-old-player",q.data,!0)};var $sh=function(q){q=q===void 0?{layer:0}:q;iG.call(this);this.iX.push(new sK(this));this.iX.push(new Kq(q));this.iX.push(new yH(q))};
_.z($sh,iG);var eH7=function(){this.hasRun=this.hasRun=!1};
_.z(eH7,Ix);eH7.prototype.validate=function(q){return!this.hasRun&&!(!q.data.csn||!q.data.rootVe)};
eH7.prototype.handle=function(q){this.hasRun=!0;_.onz(q.data.csn,q.data.rootVe,3)};var CRK=function(){Ix.apply(this,arguments)};
_.z(CRK,Ix);CRK.prototype.validate=function(q){return!!q.data.preconnect};
CRK.prototype.handle=function(q){_.JT("bc");q=_.P(q.data.preconnect);for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,(new Image).src=Z};var PRJ=function(q,Z,w){w=w===void 0?{layer:0}:w;iG.call(this);this.iX.push(new UK(this.gS,q));this.iX.push(new Kq(w));this.iX.push(new yH(w))};
_.z(PRJ,iG);var dsD=function(q,Z,w,r,Y){w=w===void 0?{layer:0}:w;r=r===void 0?_.nq():r;iG.call(this);var C=!!Z&&!!Z.clientParams&&!!Z.clientParams.miniplayer;C&&this.iX.push(new eH7);this.iX.push(new kC(this.gS,Z,r));this.iX.push(new CRK);var d,O;this.iX.push(new UK(this.gS,q,C,!((d=Z.clientParams)==null||!d.fromHistory),(O=Z.clientParams)==null?void 0:O.previousVideoId,r,Z.tempData));var H;this.iX.push(new sK(this,(H=Z.clientParams)==null?void 0:H.previousVideoId));var L;(L=Z.clientParams)!=null&&L.fromHistory||
(w.layer||(w=Object.assign({},w,{layer:C?3:0})),this.iX.push(new Kq(w,Y)),this.iX.push(new yH(w)));_.b("web_response_commands_chunk_processor")&&this.iX.push(new gZ)};
_.z(dsD,iG);var Ia,H2W;Ia={};
_.Vd9=(Ia["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Ia["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Ia["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Ia["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Ia["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Ia["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Ia["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Ia);_.cV=new _.zo("yt-edu");_.O29=function(){this.JSC$10749_eduDisplayedThisLoad_={}};
H2W=function(q){var Z=_.O29.getInstance();var w=_.m6("kevlar_tooltip_impression_cap");Z=w&&parseInt(_.cV.get(q+"-impression")||0,10)>=w||_.cV.get(q+"-dismissed")?!1:(w=_.Vd9[q])&&!Z.JSC$10749_eduDisplayedThisLoad_[w.setKey||q]&&(w.titleText&&_.dT(w.titleText)||w.bodyText&&_.dT(w.bodyText))?!0:!1;if(!Z)return null;Z=_.Vd9[q];if(!Z)return null;w=Z.bodyText?_.dT(Z.bodyText):void 0;var r=Z.titleText?_.dT(Z.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:Z.position,popup:{bubbleHintRenderer:{text:r?
_.UE(r):void 0,detailsText:w?_.UE(w):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.UE(_.dT("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:q}}]}}}}}}}},{eduImpressionAction:{key:q}}]};
_.Db(_.O29);var LOO=!1;var tAT={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"};for(var W8W="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),ohJ=[],Mk=6;Mk>=1;Mk--)ohJ.push({columnCount:Mk,query:Mk==1?0:Mk*2*107-4+32,className:"grid-"+Mk+"-columns",width:Mk*2*107+"px"});_.L8g=function(q){this.actionRouter_=q=q===void 0?_.UU.getInstance():q;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.uPW(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.uPW=function(q){var Z=q.miniGuideVisible_?72:0,w=q.documentWidth_-(q.guidePersistentAndVisible_?240:Z);return ohJ.find(function(r){return w>r.query})};
_.Db(_.L8g);var SyW=function(){var q=this;this.JSC$10762_keyboardInUse=!1;document.addEventListener("keydown",function(){q.onKeydown()});
document.addEventListener("mousedown",function(){q.JSC$10762_keyboardInUse=!1})},vhJ;
SyW.prototype.isKeyBoardInUse=function(){return this.JSC$10762_keyboardInUse};
SyW.prototype.onKeydown=function(){this.JSC$10762_keyboardInUse=!0};var jXh,l8;_.Ff=new _.zo("yt-mentions");_.Nk=function(){};
jXh=function(q,Z){return l8(Z,"drag-to-reorder-edu-displayed")};
l8=function(q,Z,w,r,Y,C){w=w===void 0?"OPEN_POPUP_POSITION_TOP":w;if(Z){if(_.Ff.get(Z))return;_.Ff.set(Z,!0,r)}if(Y&&C!==void 0){Z=Number(_.Ff.get(Y)||0);if(Z>=C)return;_.Ff.set(Y,Z+1)}return[{openPopupAction:{popupType:"HINT",position:w,popup:{bubbleHintRenderer:{detailsText:q,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Db(_.Nk);var tdD,RHK,b2K;tdD=function(q,Z,w,r){this.JSC$10772_taskManager_=q;this.onFulfilled_=typeof Z==="function"?Z:null;this.onRejected_=typeof w==="function"?w:null;this.JSC$10772_context_=r};
RHK=function(q,Z){q.onFulfilled_&&_.$L(q.JSC$10772_taskManager_,function(){q.onFulfilled_.call(q.JSC$10772_context_,Z)})};
b2K=function(q,Z){q.onRejected_&&_.$L(q.JSC$10772_taskManager_,function(){q.onRejected_.call(q.JSC$10772_context_,Z)})};
_.GB=function(q){this.JSC$10775_taskManager_=q;this.callbacks_=[]};
_.GB.prototype.then=function(q,Z,w){this.callbacks_.push(new tdD(this.JSC$10775_taskManager_,q,Z,w));return this};
_.GB.prototype.onSuccess=function(q){this.callbacks_.forEach(function(Z){RHK(Z,q)})};
_.GB.prototype.onFailure=function(q){this.callbacks_.forEach(function(Z){b2K(Z,q)})};
_.GB.prototype.cancel=function(){this.callbacks_.length=0};
IMg(_.GB);_.bOT=null;_.d6=new _.F$("ACTIVITY_TOKEN");var nN1=/^[a-zA-Z0-9_\-]{11}$/;var QyO=_.dM(function(){var q,Z;return(Z=(q=window).matchMedia)==null?void 0:Z.call(q,"(prefers-reduced-motion: reduce)").matches});var JZW=_.dM(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 q=_.Eq("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");q||(q=_.dX("VIDEO"),_.IR("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
q));return!!(q&&q.canPlayType&&q.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var zHK;_.pq=new _.F$("SHORTS_CONTROLLER_TOKEN");zHK=new _.F$("SHORTS_STATE_STORE_TOKEN");var Xf=function(q,Z){var w=_.Ta.apply(2,arguments);q=q===void 0?0:q;_.df.call(this,Z,w);this.errorType=q;Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(Xf,_.df);var BqW,aqg,nh2,QXv,xs7,hce,Kd,jb1,K8p,kYD,Nqh,cZv,IqD;BqW=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(q){return q+"="}).join("|"));
aqg=RegExp(".*\\?.*ybp=1.*");nh2=["FEcommerce_cart","SPcommerce_checkout"];QXv=RegExp(".*\\?.*playnext=1.*");_.mM=function(q,Z,w,r){this.watchEndpointMap=q;this.reelWatchEndpointMap=Z;this.innerTubeTransportService=w;this.fetchPbj=r;this.forceWebFEForAdsTesting=!1};
xs7=function(q,Z,w){var r=_.t().resolve(_.Gj(Ehm));_.mM.instance=new _.mM(q,Z,w,r)};
_.Tq1=function(q,Z){var w=_.m6("web_pbj_log_warning_rate",0);w=w>0&&Math.random()<w;var r;if((r=_.J(Z.commandMetadata,_.XK))==null||!r.rootVe)return w&&_.bx(Error("Of")),!1;var Y;r=(Y=_.J(Z.commandMetadata,_.XK))==null?void 0:Y.url;if(!r)return w&&_.bx(Error("Pf")),!1;if(QXv.test(r))return!0;if(BqW.test(r))return w&&_.bx(Error("Qf`"+r)),!1;var C;Y=(C=_.J(Z,_.qZ))==null?void 0:C.browseId;if(aqg.test(r)&&(!Y||!nh2.includes(Y)))return w&&_.bx(Error("Rf`"+r)),!1;if(_.J(Z,_.ck)){if(q.forceWebFEForAdsTesting)return w&&
_.bx(Error("Sf")),!1;if(!(q.watchEndpointMap.watchNext&&q.watchEndpointMap.player||_.b("kevlar_fetch_initial_data_op_watch_client")))return w&&_.bx(Error("Kf")),!1;q=_.m6("web_pbj_log_warning_rate",0);q=q>0&&Math.random()<q;_.J(Z,_.ck)?Bmj(Z)?Z=!0:(q&&_.bx(Error("Lf")),Z=!1):(q&&_.bx(Error("Kf")),Z=!1);return Z}if(_.J(Z,_.Yz))return apN(Z);if(_.J(Z,_.vZ))return!0;Z=_.J7(q.innerTubeTransportService,Z);w&&_.bx(Error("Tf"));return Z};
hce=function(q,Z,w,r,Y,C){Z={url:Z};if(w==null?0:w.itct)Z.parentTrackingParams=w.itct;var d=_.IZ(dte);return _.tD(q.innerTubeTransportService,Z,d).then(function(O){(O=O.endpoint)||(O=_.ZK);(w==null?0:w.itct)&&O&&!O.trackingParams&&(O.trackingParams=w.itct);var H=w3(O);return Kd(q,O,w,r,H,Y,C)})};
Kd=function(q,Z,w,r,Y,C,d,O){O=O===void 0?{}:O;if(q.fetchPbj&&!_.Tq1(q,Z)){O=q.fetchPbj(Z);var H=_.YK(O.then(function(f){if(!f)throw Error("Uf");d(H)||C(Z,f);return f}));
return H}var L,S,v={rootVe:(L=_.J(Z.commandMetadata,_.XK))==null?void 0:L.rootVe,url:(S=_.J(Z.commandMetadata,_.XK))==null?void 0:S.url,endpoint:Z,page:Y};if(_.J(Z,_.ck)){var R,B={contentPlaybackContext:_.$z(w,(R=_.J(Z.commandMetadata,_.XK))==null?void 0:R.url,r)},n=_.Be();_.b("web_streaming_watch")&&window.TextDecoderStream?(O=Usv(q.innerTubeTransportService,Z,B,function(f){!v.response&&f.content&&(v.response=f.content);!v.playerResponse&&f.player&&(v.playerResponse=f.player);C(Z,v)}),L=XB2(Z),L.length&&
(v.preconnect=L,C(Z,v)),kYD(O,n,v).catch(function(f){f instanceof Xf&&f.errorType===2&&K8p(q,Z,B,v,C,d,n)})):K8p(q,Z,B,v,C,d,n);
return n.promise}if(_.J(Z,_.Yz)){var x;if(((x=_.J(Z,_.Yz))==null?void 0:x.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var K=_.Be();_.sXp(_.t().resolve(_.pq),Z).then(function(f){IqD(q,w,r,Y,C,K,f)});
return K.promise}O=_.YK();var k;L={contentPlaybackContext:_.$z(w,(k=_.J(Z.commandMetadata,_.XK))==null?void 0:k.url,r)};(k=q.reelWatchEndpointMap.player)&&(k=k().JSC$11762_getRequest(Z,L))&&(O=_.tD(q.innerTubeTransportService,k.innerTubeRequest,k.input,Z.clickTrackingParams,k.config));k=_.YK();(S=q.reelWatchEndpointMap.reelItemWatch)&&(S=S().JSC$11762_getRequest(Z))&&(k=_.tD(q.innerTubeTransportService,S.innerTubeRequest,S.input,Z.clickTrackingParams,S.config));S=_.YK();(R=q.reelWatchEndpointMap.reelWatchSequence)&&
_.J(Z,_.Yz).sequenceParams&&(L=R().JSC$11762_getRequest(Z,L))&&(S=_.tD(q.innerTubeTransportService,L.innerTubeRequest,L.input,Z.clickTrackingParams,L.config));L=_.YK(v);R=_.Be();cZv(Z,L,O,k,S,C,d,R);return R.promise}var G;if(_.J(Z,RGO)&&((G=_.J(Z.commandMetadata,_.XK))==null?0:G.url))return O=kz2(_.UJ(a4().location.href),_.UJ(_.J(Z.commandMetadata,_.XK).url)).toString(),hce(q,O,w,r,C,function(){return!1});
if(_.J(Z,_.vZ))return C(Z,v),_.YK(v);if(_.J7(q.innerTubeTransportService,Z)){O=Object.assign({},{tempData:w,disableCache:w.disableCache},O);var rz=_.zR(q.innerTubeTransportService,Z,O).then(function(f){v.response=f;d(rz)||C(Z,v);return v});
return rz}return _.YK(v)};
_.F82=function(q,Z,w,r){if(_.J(Z,_.ck)||_.J(Z,_.Yz)&&(_.b("mweb_enable_shorts_innertube_player_prefetch")||_.b("kevlar_enable_shorts_prefetch_in_sequence"))||_.J(Z,LGe)&&_.b("web_enable_prefetching_videos_on_home")){var Y,C={contentPlaybackContext:_.$z(w,(Y=_.J(Z.commandMetadata,_.XK))==null?void 0:Y.url,r),prefetchPlaybackContext:xt8(w)},d,O,H;if(((d=_.J(Z,_.ck))==null?void 0:(O=d.watchEndpointSupportedPrefetchConfig)==null?void 0:(H=O.prefetchHintConfig)==null?void 0:H.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(w=
q.watchEndpointMap.watchNext)if(C=w().JSC$11762_getRequest(Z,C))return Promise.resolve(_.tD(q.innerTubeTransportService,C.innerTubeRequest,C.input,void 0,C.config).then(function(v){return v}))}else if(_.J(Z,_.Yz)&&_.b("web_prefetch_riw_for_next_video")){if(w=q.reelWatchEndpointMap.reelItemWatch)if((w=w().JSC$11762_getRequest(Z,C))&&_.tD(q.innerTubeTransportService,w.innerTubeRequest,w.input,void 0,w.config).then(function(v){return v}),w=q.reelWatchEndpointMap.player)if(C=w().JSC$11762_getRequest(Z,
C))return Promise.resolve(_.tD(q.innerTubeTransportService,C.innerTubeRequest,C.input,void 0,C.config).then(function(v){return v}))}else if(w=q.watchEndpointMap.player)if(C=w().JSC$11762_getRequest(Z,C))return Promise.resolve(_.tD(q.innerTubeTransportService,C.innerTubeRequest,C.input,void 0,C.config).then(function(v){return v}))}else if(_.J7(q.innerTubeTransportService,Z)){var L={tempData:w},S=MdD(q.innerTubeTransportService,Z);
return S?new Promise(function(v,R){var B,n;return _.V(function(x){if(x.nextAddress==1)return _.W(x,S,2);if(x.nextAddress!=4)return B=x.yieldResult,B.JSC$11769_getStoreKey(Z,L)?_.W(x,_.zR(q.innerTubeTransportService,Z,L),4):(R(new _.df("Prefetching request builder with no store key.",Z)),x.jumpTo(0));n=x.yieldResult;v(n);_.ub(x)})}):Promise.reject(new _.df("Prefetching unregistered request builder.",Z))}return Promise.reject(new _.df("No request builder available to prefetch endpoint.",Z))};
jb1=function(q,Z){var w,r,Y;if(_.J(Z,_.ck)){var C=q.watchEndpointMap.watchNext;C&&(w=C());(q=q.watchEndpointMap.player)&&(r=q())}else if(_.J(Z,_.Yz))(C=q.reelWatchEndpointMap.reelItemWatch)&&(w=C()),(C=q.reelWatchEndpointMap.player)&&(r=C()),(q=q.reelWatchEndpointMap.reelWatchSequence)&&(Y=q());else{a:{q=$gT(Z,q.innerTubeTransportService.endpointMap);if(q!==void 0)if(typeof q.then==="function")_.tY(new _.df("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",Z));else break a;
q=void 0}q&&(w=q)}var d,O,H;return{content:(d=w)==null?void 0:d.JSC$11769_getStoreKey(Z),player:(O=r)==null?void 0:O.JSC$11769_getStoreKey(Z),reelSequence:(H=Y)==null?void 0:H.JSC$11769_getStoreKey(Z)}};
K8p=function(q,Z,w,r,Y,C,d){var O=_.YK(),H=q.watchEndpointMap.player;H&&(H=H().JSC$11762_getRequest(Z,w))&&(O=_.tD(q.innerTubeTransportService,H.innerTubeRequest,H.input,Z.clickTrackingParams,H.config));H=_.YK();var L=q.watchEndpointMap.watchNext;L&&(w=L().JSC$11762_getRequest(Z,w))&&(H=_.tD(q.innerTubeTransportService,w.innerTubeRequest,w.input,Z.clickTrackingParams,w.config));q=_.YK(r);Nqh(Z,q,O,H,Y,C,d)};
kYD=function(q,Z,w){return _.V(function(r){if(r.nextAddress==1)return _.W(r,q,2);Z.resolve(w);_.ub(r)})};
Nqh=function(q,Z,w,r,Y,C,d){var O,H,L,S,v;_.V(function(R){switch(R.nextAddress){case 1:return _.W(R,Z,2);case 2:O=R.yieldResult;if(C(d.promise))return d.resolve(O),R.return();Y(q,O);H=XB2(q);if(!H.length){R.jumpTo(3);break}return _.W(R,Z,4);case 4:O.preconnect=H,Y(q,O);case 3:return _.d9(R,5),_.W(R,w,7);case 7:L=R.yieldResult;_.QL(R,6);break;case 5:return S=_.o3(R),d.reject(S),R.return();case 6:if(L===void 0)return O.reload=!0,Y(q,O),d.resolve(O),R.return();if(C(d.promise))return d.resolve(O),R.return();
O.playerResponse=L;Y(q,O);_.d9(R,8);return _.W(R,r,10);case 10:v=R.yieldResult;_.QL(R,9);break;case 8:_.o3(R);case 9:if(v===void 0)return O.response={responseContext:{}},d.resolve(O),R.return();if(C(d.promise))return d.resolve(O),R.return();O.response=v;Y(q,O);d.resolve(O);_.ub(R)}})};
cZv=function(q,Z,w,r,Y,C,d,O){var H,L,S,v,R,B;_.V(function(n){switch(n.nextAddress){case 1:return _.W(n,Z,2);case 2:H=n.yieldResult;if(d(O.promise))return O.resolve(H),n.return();C(q,H);L=XB2(q);if(!L.length){n.jumpTo(3);break}return _.W(n,Z,4);case 4:H.preconnect=L,C(q,H);case 3:return _.d9(n,5),_.W(n,w,7);case 7:S=n.yieldResult;_.QL(n,6);break;case 5:return v=_.o3(n),O.reject(v),n.return();case 6:if(S===void 0)return H.reload=!0,C(q,H),O.resolve(H),n.return();if(d(O.promise))return O.resolve(H),
n.return();H.playerResponse=S;C(q,H);_.d9(n,8);return _.W(n,r,10);case 10:R=n.yieldResult;_.QL(n,9);break;case 8:_.o3(n);case 9:if(R===void 0)return H.response={responseContext:{}},O.resolve(H),n.return();if(d(O.promise))return O.resolve(H),n.return();H.response=R;C(q,H);_.d9(n,11);return _.W(n,Y,13);case 13:B=n.yieldResult;_.QL(n,12);break;case 11:_.o3(n);case 12:if(d(O.promise))return O.resolve(H),n.return();H.reelWatchSequenceResponse=B;C(q,H);O.resolve(H);_.ub(n)}})};
IqD=function(q,Z,w,r,Y,C,d){var O,H,L,S,v,R;_.V(function(B){if((O=d)==null||!O.replacementEndpoint)return C.reject(),B.return();H=d.replacementEndpoint;(L=_.J(H,_.Yz))?(d.sequenceContinuation&&(L.sequenceParams=d.sequenceContinuation),S=_.t().resolve(_.pq),v=L.sequenceParams,lq9(S,H)&&delete L.sequenceParams,R=Kd(q,H,Z,w,r,Y,function(){return!1}),R.then(function(n){return _.V(function(x){if(x.nextAddress==1)return GYe(S,{reelWatchEndpoint:{sequenceParams:v}},n),_.W(x,0,2);
C.resolve(n);_.ub(x)})})):C.reject();
_.ub(B)})};_.pY1=function(q){if(q.validatedFragments_.length==0)return null;if(!q.mergedPrefetchedData_){for(var Z=[],w=_.P(q.validatedFragments_),r=w.next();!r.done;r=w.next()){r=_.P(q.fragmentConfiguration_[r.value].graftedKeys);for(var Y=r.next();!Y.done;Y=r.next())(Y=q.prefetchedData_[Y.value].trackingParams)&&Z.push(Y)}q.mergedPrefetchedData_={};Object.assign(q.mergedPrefetchedData_,q.prefetchedData_,{clientSideGrafts:Z})}return q.mergedPrefetchedData_};var XY7;_.AD=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
XY7=function(q,Z,w){if(_.J_1(Z))return q.prefetchCache_.get(_.zG6(Z,w))};_.fq=new _.F$("NAVIGATION_TOKEN");var ms1=function(q){var Z=this;var w=w===void 0?ki2():w;var r=r===void 0?_.t().resolve(_.fq):r;this.onePickCommand=q;this.JSC$10876_playlistNetworkManager=w;this.navigationManager=r;this.videoPickerBuilder=_.Tmz("yt-addtoplaylist");_.ZBD(AYX(fUJ(mUp(this.videoPickerBuilder.setTitle(q.modalTitle).setSize(1E3).addView(ym7()).addView(hRD())).addView("youtube"),q.selectButtonLabel)),function(Y){Z.handleAction(Y)})};
ms1.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
ms1.prototype.handleAction=function(q){var Z=this;if(q&&this.onePickCommand.listId&&q.action==="picked"&&q.docs){var w=[];q.docs.forEach(function(r){w.push({addedVideoId:r.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10876_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,w).then(function(){_.b("playlist_add_video_hard_reload_killswitch")?Z.navigationManager.reload():AZ1(Z.navigationManager)})}};var fqp=function(){if(this.constructor===fqp)throw new TypeError("Vf");};
_.e=fqp.prototype;_.e.dispose=function(){};
_.e.disconnect=function(){};
_.e.reconnect=function(){};
_.e.observe=function(q,Z,w){return{element:q,option:w}};
_.e.unobserveByKey=function(){};var KO6=function(q,Z){Z=Z===void 0?0:Z;fqp.call(this);this.viewroot=q;this.defaultPrescanHeight=Z;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),q?{root:q,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.z(KO6,fqp);_.e=KO6.prototype;_.e.dispose=function(){this.disconnect();this.handlers.clear()};
_.e.disconnect=function(q){this.isConnected=!1;this.pauseObservingUntilReconnect=q===void 0?!1:q;this.observer.disconnect();q=_.P(this.prescanObservers.values());for(var Z=q.next();!Z.done;Z=q.next())Z.value.disconnect()};
_.e.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var q=_.P(this.handlers),Z=q.next();!Z.done;Z=q.next()){var w=_.P(Z.value);Z=w.next().value;var r=w.next().value;w=!1;r=_.P(r.keys());for(var Y=r.next();!Y.done;Y=r.next())if((Y=Y.value)&&Y.state==="prescan"){w=!0;break}w&&DsD(this,Z).observe(Z);this.observer.observe(Z)}}};
_.e.handleObserveEvent=function(q){q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var w=this.handlers.get(Z.target);if(w){var r=Z.isIntersecting;w=_.P(w);for(var Y=w.next();!Y.done;Y=w.next()){var C=_.P(Y.value);Y=C.next().value;C=C.next().value;Y&&(Y.state==="visible"&&r||Y.state==="hidden"&&!r)&&(C(Z.target,Y.state),Y.calledOnce&&this.unobserveByKey({element:Z.target,option:Y}))}}}};
_.e.handlePrescanEvent=function(q){q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var w=this.handlers.get(Z.target);if(w&&Z.isIntersecting){w=_.P(w);for(var r=w.next();!r.done;r=w.next()){var Y=_.P(r.value);r=Y.next().value;Y=Y.next().value;r&&r.state==="prescan"&&(Y(Z.target,r.state),r.calledOnce&&this.unobserveByKey({element:Z.target,option:r}))}}}};
_.e.observe=function(q,Z,w){var r=(r=this.handlers.get(q))&&r.has(w)?{element:q,option:w}:void 0;if(r)return r;r={element:q,option:w};this.handlers.has(q)||this.handlers.set(q,new Map);var Y=this.handlers.get(q);Y&&!Y.has(w)&&Y.set(w,Z);this.pauseObservingUntilReconnect||(w.state==="prescan"&&DsD(this,q).observe(q),this.observer.observe(q));return r};
_.e.unobserveByKey=function(q){var Z=this.handlers.get(q.element);if(Z&&Z.has(q.option)){Z.delete(q.option);if(q&&q.option.state==="prescan")for(var w=_.P(this.prescanObservers.values()),r=w.next();!r.done;r=w.next())r.value.unobserve(q.element);Z.size===0&&(this.handlers.delete(q.element),this.observer.unobserve(q.element))}};
var DsD=function(q,Z){var w=q.defaultPrescanHeight;Z.hasAttribute("prescan-height")&&(Z=Number(Z.getAttribute("prescan-height")),isNaN(Z)||(w=Z));if(q.prescanObservers.has(w))return q.prescanObservers.get(w);Z="-0.1px -0.1px "+w+"px -0.1px";Z=new IntersectionObserver(q.handlePrescanEvent.bind(q),q.viewroot?{root:q.viewroot,rootMargin:Z}:{rootMargin:Z});q.prescanObservers.set(w,Z);return Z};var hHv=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],yZ7=function(){var q,Z=this;this.JSC$10893_actionRouter=q=q===void 0?_.UU.getInstance():q;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return Z.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return Z.visibilityObservedElementHandlerKeys}}},i27,q7J,rwh;
yZ7.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.b("kevlar_use_vimio_behavior")&&_.zj("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=syz())};
yZ7.prototype.dispose=function(){this.visibilityMonitor&&_.d_(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
yZ7.prototype.handleVisibilityRefreshed=function(){for(var q=_.P(this.targetMap.entries()),Z=q.next();!Z.done;Z=q.next()){var w=_.P(Z.value);Z=w.next().value;w=w.next().value;_.gh1(this,Z,w)}};
_.wwv=function(q,Z,w){q7J(q,w);var r=_.ZMD(q,Z);r.element=w;q.targetedElements.set(w,Z);_.gh1(q,Z,r)};
q7J=function(q,Z){var w=q.targetedElements.get(Z);if(w){var r=q.targetMap.get(w);r&&(delete r.element,q.targetMap.set(w,r));q.targetedElements.delete(Z);q.visibilityObserver&&q.visibilityObservedElementHandlerKeys&&(w=q.visibilityObservedElementHandlerKeys.get(Z))&&(q.visibilityObserver.unobserveByKey(w),q.visibilityObservedElementHandlerKeys.delete(Z))}};
_.gh1=function(q,Z,w){var r=w.action,Y=w.element;Y&&r&&(hHv.includes(Z)||_.zj("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||q.visibilityMonitor&&q.visibilityMonitor.isNodeVisible(Y)?rwh(q,Z,w):q.visibilityObserver&&(q.visibilityObservedElementHandlerKeys||(q.visibilityObservedElementHandlerKeys=new WeakMap),r=q.visibilityObserver.observe(Y,function(){rwh(q,Z,w);q.visibilityObservedElementHandlerKeys.delete(Y)},{calledOnce:!0,
state:"visible"}),q.visibilityObservedElementHandlerKeys.set(Y,r)))};
rwh=function(q,Z,w){var r=w.action;(w=w.element)&&r&&(_.tH(q.JSC$10893_actionRouter,[r],w),q.targetMap.delete(Z),q.targetedElements.delete(w),q.triggeredTargets.add(Z))};
_.ZMD=function(q,Z){var w=q.targetMap.get(Z);w||(w={},q.targetMap.set(Z,w));return w};
_.DK=function(){i27||(i27=new yZ7);return i27};var Y77=document.createElement("div");Y77.style.touchAction="pan-down";var IpT=Y77.style.touchAction==="pan-down";var $H9,eN9;$H9=function(){this.hammerFn=s52();this.JSC$10901_screenManager=_.iy();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.C6(83615);_.fH(this.JSC$10901_screenManager,this.ve);c_6()};
_.hD=function(){eN9||(eN9=new $H9);return eN9};
$H9.prototype.registerTouchEvents=function(q,Z,w){var r=_.Ta.apply(3,arguments),Y=this.hammerFn(q,{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}]]});w&&Y.set({touchAction:w});this.nodeManagerMapping.set(q,Y);var C=
MA8(Z);r=_.P(r);for(var d=r.next();!d.done;d=r.next()){d=d.value;if(d.includes("swipe")||d.includes("pinch")||d.includes("pan"))d.includes("swipe")?Y.get("swipe").set({enable:!0,direction:C,velocity:.2}):d.includes("pinch")?Y.get("pinch").set({enable:!0}):d.includes("pan")&&(Y.get("pan").set({enable:!0,direction:C}),Y.get("swipe").set({enable:!0,direction:C,velocity:.2}),Y.get("swipe").recognizeWith("pan"));CDW(this,q,Y,d)}};
var CDW=function(q,Z,w,r){w.on(r,function(Y){if(r.includes("pinch"))q.lastPinchTime=Date.now();else if(r.includes("swipe")&&Date.now()-q.lastPinchTime<400)return;Y.pointerType!=="mouse"&&(Y=r==="doubletap"?{coordinates:Y.center}:r.includes("pan")?Y:r.includes("swipe")?{target:Y.target}:{},Z.dispatchEvent(new CustomEvent(r,{bubbles:!0,composed:!0,detail:Y})))})};
$H9.prototype.unregisterTouchEvents=function(q){var Z=_.Ta.apply(1,arguments),w=this.nodeManagerMapping.get(q);if(w){Z=_.P(Z);for(var r=Z.next();!r.done;r=Z.next())w.off(r.value);this.nodeManagerMapping.delete(q);q.style.touchAction="unset"}};var PD7=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var FOX=null;var VDm;_.yq=function(q,Z,w){var r=w&&w>0?w:0;w=r?Date.now()+r*1E3:0;if((r=r?(0,_.dHD)():VDm())&&window.JSON){typeof Z!=="string"&&(Z=JSON.stringify(Z,void 0));try{r.set(q,Z,w)}catch(Y){r.remove(q)}}};
_.i8=function(q){var Z=VDm(),w=(0,_.dHD)();if(!Z&&!w||!window.JSON)return null;try{var r=Z.get(q)}catch(Y){}if(typeof r!=="string")try{r=w.get(q)}catch(Y){}if(typeof r!=="string")return null;try{r=JSON.parse(r,void 0)}catch(Y){}return r};
_.gF=function(q){try{var Z=VDm(),w=(0,_.dHD)();Z&&Z.remove(q);w&&w.remove(q)}catch(r){}};
_.dHD=_.dM(function(){try{var q=new PF9;var Z=q.isAvailable()?q:null}catch(w){return null}return Z?new _.Dw(Z):null});
VDm=_.dM(function(){var q=new d9X;return q.isAvailable()?new _.Dw(q):null});var OMD=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},Yf2=function(){OMD.instance||(OMD.instance=new OMD);
return OMD.instance},$O6=function(q){var Z=q.networkEvents;
q.networkEvents=[];return _.b("enable_network_monitoring")?Z:[]};var HM9;HM9={};_.WX7=M4("yt-serviceworker-metadata",{objectStores:(HM9.auth={addedAtVersion:1},HM9["resource-manifest-assets"]={addedAtVersion:2},HM9),shared:!0,upgrade:function(q,Z){Z(1)&&a$(q,"resource-manifest-assets");Z(2)&&a$(q,"auth")},
version:2});var mtN=self.location.origin+"/";A_z([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//]);A_z([/purge_shell=1/]);var oM7=void 0;oM7=oM7===void 0?[]:oM7;for(var uZJ=[],LXW=_.P(BJ9),S7D=LXW.next();!S7D.done;S7D=LXW.next())uZJ.push({key:S7D.value});for(var vMv=_.P(oM7),jcK=vMv.next();!jcK.done;jcK=vMv.next())uZJ.push(jcK.value);var tDm,O8=_.$1==null?void 0:(tDm=_.$1.performance)==null?void 0:tDm.memory,hG2=!1,ehj={},gNz={},HP={},WP=navigator;var qn=function(q){this.JSC$10945_expiringStorage=new Ok(q)};
qn.prototype.set=function(q,Z,w){w=w!==void 0?Date.now()+w:void 0;this.JSC$10945_expiringStorage.set(q,Z,w)};
qn.prototype.get=function(q){return this.JSC$10945_expiringStorage.get(q)};
qn.prototype.remove=function(q){this.JSC$10945_expiringStorage.remove(q)};var od6=_.Fr(["https://www.youtube.com/",""]),uE2=_.Fr(["https://studio.youtube.com/",""]),tRe="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",Sfj=null,B7e;var RNJ=_.Fr(["https://www.youtube.com/iframe_api"]),ZZ=function(){this.playerResolver_=_.Be();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.Pr;this.playbackDurationSeconds_=0},bMW=function(q){var Z=function(){return window.YT&&typeof window.YT.ready==="function"};
if(Z())return _.YK(window.YT);var w=_.Be(),r=_.dX("SCRIPT");r.onload=r.onreadystatechange=function(){r.readyState&&r.readyState!="loaded"&&r.readyState!="complete"||(r.onload=_.Pr,r.onreadystatechange=_.Pr,r.onerror=_.Pr,Z()?w.resolve(window.YT):w.reject(new _.df("Failed to load the iframe player library","script.onload",r.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
r.onerror=function(Y){r.onload=_.Pr;r.onreadystatechange=_.Pr;r.onerror=_.Pr;w.reject(new _.df("Failed to load the iframe player library","script.onerror",Y&&Y.target&&Y.target.src))};
_.AI(r,_.qu(RNJ));q.insertBefore(r,q.firstChild);return w.promise},Jw7=function(q,Z,w){var r,Y;
_.V(function(C){switch(C.nextAddress){case 1:return q.playbackEndedCallback_=w,_.d9(C,2),_.W(C,bMW(Z.parentElement||null),4);case 4:r=C.yieldResult;_.QL(C,3);break;case 2:return Y=_.o3(C),Y instanceof _.df&&Y.args&&Y.args[0]=="script.onerror"?_.bx(Y):_.tY(Y),C.return();case 3:r.ready(function(){return new r.Player(Z,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:q.onPlayerReady_.bind(q),onStateChange:q.onPlayerStateChange_.bind(q),
onCueRangeExit:q.onCueRangeExit_.bind(q)}})}),_.ub(C)}})};
_.e=ZZ.prototype;_.e.getPlayerPromise=function(){return this.playerPromise_};
_.e.onPlayerReady_=function(q){this.playerResolver_.resolve(q.target)};
_.e.onPlayerStateChange_=function(q){if(q.data==YT.PlayerState.PLAYING){q=q.target;var Z=q.getCurrentTime();q.addCueRange("playback",Z,Z+this.playbackDurationSeconds_)}};
_.e.onCueRangeExit_=function(q){q.data=="playback"&&(q.target.stopVideo(),this.playbackEndedCallback_())};
_.e.stopVideo=function(){this.playerPromise_.then(function(q){q.stopVideo()})};
var zNJ=function(q){q.playerVars_&&q.playerPromise_.then(function(Z){typeof Z.cueVideoByPlayerVars!="function"?_.bx(new _.df("vmh: player API not ready","cueVideoByPlayerVars",typeof Z.cueVideoByPlayerVars)):Z.cueVideoByPlayerVars(q.playerVars_)})};
ZZ.prototype.playVideo=function(){var q=this;this.playerVars_&&this.playerPromise_.then(function(Z){typeof Z.loadVideoByPlayerVars!="function"?(Z=new _.df("vmh: player API not ready","loadVideoByPlayerVars",typeof Z.loadVideoByPlayerVars),_.tY(Z)):Z.loadVideoByPlayerVars(q.playerVars_)})};
var Bd9=function(q,Z,w,r,Y){Z&&(w===void 0&&(w=0),r===void 0&&(r=0),q.playbackDurationSeconds_=r/1E3,q.playerVars_={adformat:"17_8",videoId:Z,suggestedQuality:"hd720",startSeconds:w/1E3,player_params:Y})};
ZZ.prototype.mute=function(){this.playerPromise_.then(function(q){q.mute()})};
ZZ.prototype.unMute=function(){this.playerPromise_.then(function(q){q.unMute()})};var UO2=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var wj;wj=function(){this.tokenJars={};if(this.cookiesEnabled=_.eT()){var q=_.Yr.get("CONSISTENCY",void 0);q&&an7(this,{encryptedTokenJarContents:q})}};
_.K5O=function(){wj.instance||(wj.instance=new wj);return wj.instance};
wj.prototype.handleResponse=function(q,Z){if(!Z)throw Error("$f");var w,r;Z=((w=Z.innerTubeRequest.context)==null?void 0:(r=w.request)==null?void 0:r.consistencyTokenJars)||[];var Y;(q=(Y=q.responseContext)==null?void 0:Y.consistencyTokenJar)&&this.replace(Z,q)};
wj.prototype.replace=function(q,Z){q=_.P(q);for(var w=q.next();!w.done;w=q.next())delete this.tokenJars[w.value.encryptedTokenJarContents];an7(this,Z)};
var an7=function(q,Z){if(Z.encryptedTokenJarContents&&(q.tokenJars[Z.encryptedTokenJarContents]=Z,typeof Z.expirationSeconds==="string")){var w=Number(Z.expirationSeconds);setTimeout(function(){delete q.tokenJars[Z.encryptedTokenJarContents]},w*1E3);
q.cookiesEnabled&&_.$r("CONSISTENCY",Z.encryptedTokenJarContents,w,void 0,!0)}};var nMp,rj;nMp=window.location.hostname.split(".").slice(-2).join(".");_.zI=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var q=_.zj("LOCATION_PLAYABILITY_TOKEN");_.zj("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=QcJ(this))&&(q=this.localStorage.get("yt-location-playability-token"));q&&(this.locationPlayabilityToken=q,this.mostRecentPosition=void 0)};
_.zI.getInstance=function(){rj=_.Eq("yt.clientLocationService.instance");rj||(rj=new _.zI,_.IR("yt.clientLocationService.instance",rj));return rj};
_.zI.prototype.setLocationOnInnerTubeContext=function(q){q.client||(q.client={});if(this.mostRecentPosition)q.client.locationInfo||(q.client.locationInfo={}),q.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),q.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),q.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),q.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)q.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.zI.prototype.handleResponse=function(q){var Z;q=(Z=q.responseContext)==null?void 0:Z.locationPlayabilityToken;q!==void 0&&(this.locationPlayabilityToken=q,this.mostRecentPosition=void 0,_.zj("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=QcJ(this))&&this.localStorage.set("yt-location-playability-token",q,15552E3):_.$r("YT_CL",JSON.stringify({loctok:q}),15552E3,nMp,!0))};
var QcJ=function(q){return q.localStorage===void 0?new _.zo("yt-client-location"):q.localStorage};
_.zI.prototype.clearLocationPlayabilityToken=function(q){q==="TVHTML5"?(this.localStorage=QcJ(this))&&this.localStorage.remove("yt-location-playability-token"):_.Zzj("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.zI.prototype.getCurrentPositionFromGeolocation=function(){var q=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("ag"));var Z=!1,w=1E4;_.zj("INNERTUBE_CLIENT_NAME")==="MWEB"&&(Z=!0,w=15E3);return new Promise(function(r,Y){navigator.geolocation.getCurrentPosition(function(C){q.mostRecentPosition=C;r(C)},function(C){Y(C)},{enableHighAccuracy:Z,
maximumAge:0,timeout:w})})};
_.zI.prototype.createUnpluggedLocationInfo=function(q){var Z={};q=q.coords;if(q==null?0:q.latitude)Z.latitudeE7=Math.floor(q.latitude*1E7);if(q==null?0:q.longitude)Z.longitudeE7=Math.floor(q.longitude*1E7);if(q==null?0:q.accuracy)Z.locationRadiusMeters=Math.round(q.accuracy);return Z};
_.zI.prototype.createLocationInfo=function(q){var Z={};q=q.coords;if(q==null?0:q.latitude)Z.latitudeE7=Math.floor(q.latitude*1E7);if(q==null?0:q.longitude)Z.longitudeE7=Math.floor(q.longitude*1E7);return Z};var EMm=function(q,Z){var w=as();q||(q="unknown");Z||(Z="unknown");q="MAIN_APP_WEB_PAGE_TYPE_"+q.toUpperCase();q in L7K||(q="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");Z="MAIN_APP_WEB_REQUEST_TYPE_"+Z.toUpperCase();Z in Smm||(Z="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.el(w,{mainAppWeb:{pageType:q,requestType:Z,isShellLoad:_.BF("IS_SHELL_LOAD",!1)}})},xHm={start:function(){_.el(B2j(),{mainAppWeb:_.BP()})},
success:function(){_.Cd(B2j(),"SUCCESS")},
failure:function(){_.Cd(B2j(),"FAILURE")},
cancelled:function(){_.Cd(B2j(),"CANCELLED")}};var TdD,UHm,F52;TdD=_.Fr(["/sw.js"]);UHm=_.Fr(["/sw.js?0"]);_.kKX=_.qu(TdD);F52=_.qu(UHm);var KX1=function(){var q=Error.apply(this,arguments);this.message=q.message;"stack"in q&&(this.stack=q.stack)};
_.z(KX1,Error);_.Q5.prototype.load=function(q){this.megabloxUrl_=_.zj("YPC_MB_URL");_.np(this.megabloxUrl_,(0,_.Lh)(function(){q&&q()},this))};
_.RuX=function(q,Z,w,r,Y,C,d,O,H,L,S){_.lxj(H);q.load((0,_.Lh)(function(){try{var v=C?C:_.zj("HL"),R=_.zj("SESSION_INDEX");_.Vgj("client",function(){Ncm("59",{helpCenterPath:"/youtube",locale:v,window:window}).JSC$7848_loadChatSupport({authuser:String(R)})})}catch(B){throw aJ(10,S,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),Y&&Y(B),_.tY(B),B;
}scD(this,Z,w,r,Y,C,d,O,H,L,S)},q))};
_.Q5.prototype.openFixFlowDialog=function(q,Z,w,r){this.load((0,_.Lh)(function(){try{Inh(this,_.Eq("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(q).withIntegratorCallback(Z).load(w,r)}catch(Y){throw _.tY(Y),Y;}},this))};
var Inh=function(q,Z,w,r){var Y=Z.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.b("enable_window_constrained_buy_flow_dialog")&&(Y=Y.usingPopupStyle(_.Eq("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));r&&(Y=Y.usingCloseCallback(r));Z.bootstrap.fromPaymentsUrl(q.megabloxUrl_);q=Z.bootstrap.asMashupMode(Y);w=w?w:_.zj("HL");q.usingGaiaIndex(_.zj("SESSION_INDEX")).usingLocale(w).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.b("enable_google_payments_buyflow_material2_style_web")?
q.usingStyle(":m2;pc=#444;ac=#065fd4"):q.usingStyle(":md;pc=#444;ac=#065fd4");return q},scD=function(q,Z,w,r,Y,C,d,O,H,L,S){try{var v=_.Eq("payments.business.integration");
if(!v)throw new KX1("payments.business.integration is undefined");var R=v.standaloneContextAuthId.forUserId(),B=Inh(q,v,C,O);d&&B.usingServerAnalyticsEventHandler(d);var n=B.inStandaloneContext(R).buyFlow(function(x){if(x&&(!x.integratorData||x.integratorData===""||x.error))if(x.error!=null)if(String(x.error)==="-1")_.Gz9(H);else{var K=String(x.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";aJ(10,S,K,x.debugCode);
_.no(K,H,x.debugCode);K=new _.df("PAYMENT_ERROR_MESSAGE::"+x.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+x.internalErrorDetails);_.tY(K)}else aJ(10,S,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.no("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",H,"EMPTY_INTEGRATOR_DATA"),_.tY(Error("cg"));w&&w(x)}).withEncryptedParameters(Z);
L&&n.withClientParameters(Pd6(_.BBX(L)));n.load(function(){aJ(24,S);_.Bd("ttc",void 0,"commerce_transaction");gDN("commerce_transaction");r&&r()},function(x){if(x==null?0:x.debugCode)var K=x==null?void 0:x.debugCode;
else if(!x||(x==null?0:x.debugCode))K="EMPTY_LOAD_FAILURE_ERROR",_.tY(Error(K));else{K="EMPTY_LOAD_FAILURE_DEBUG_CODE";var k=new _.df("LOAD_FAILURE:"+x.message," DEBUG_CODE:"+K);_.tY(k)}aJ(10,S,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",K);_.no("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",H,K);_.tY(x);Y&&Y(x)})}catch(x){throw x instanceof KX1&&(aJ(10,S,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),Y&&Y(x)),_.tY(x),x;
}};var cw1;cw1=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.vej=function(q,Z){Z=Z===void 0?!1:Z;q=cw1.test(q)?_.o9(q):null;!Z&&window.payments||!q?(q=_.Be(),Z=q.promise,q.resolve()):Z=_.ji(q,{attributes:{"data-payments-main":"",id:"payment-lib"}});return Z};var MDD;MDD=_.Fr(["//www.googletagmanager.com/gtm.js?id=",""]);_.Yb=function(q,Z){_.Ik(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:Z}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.zj("GL")}),Z=_.dX("SCRIPT"),Z.async=!0,_.AI(Z,_.qu(MDD,q)),Z.id="gtm",q=document.getElementsByTagName("script"),q.length==0?document.head.appendChild(Z):(q=q[0],q.parentNode.insertBefore(Z,q)))};
_.$b=function(q){if(q=JSON.parse(q))window.dataLayer=window.dataLayer||[],window.dataLayer.push(q)};var FXg,Ndv;FXg=_.Fr(["https://clients2.google.com/gr/gr_sync.js"]);_.LdN=function(){};
_.LdN.prototype.init=function(){if(Ndv()){var q=_.Be();q.resolve();return q.promise}return _.ji(_.qu(FXg)).then(function(){if(!Ndv())throw Error("dg");},function(){throw Error("eg");
})};
_.SrI=function(){if(!Ndv())return"";var q=window.google.gr;q.init({async:{schedule:"sync"},merchantId:"youtube"});q.start();q=q.finish();return q==null?"":q};
Ndv=function(){return window.google!=null&&window.google.gr!=null};var gjT,wY6=new Set,qyj;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.N=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.z(_.N,PolymerFakeBaseClassWithoutHtml);_.y5=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.z(_.y5,PolymerFakeBaseClassWithoutHtml);var pa8=window.ShadyDOM;var zM1,btI,auO,njT,Ej6,xhe,e_,MZ;zM1=_.b("enable_shadydom_free_scoped_query_methods");btI=_.b("enable_shadydom_free_scoped_node_methods");auO=_.b("enable_shadydom_free_scoped_readonly_properties_batch_one");njT=_.b("enable_shadydom_free_parent_node");Ej6=_.b("enable_shadydom_free_children");xhe=_.b("enable_shadydom_free_last_child");e_=window.ShadyDOM;_.GI=e_&&e_.noPatch&&e_.wrap?e_.wrap:e_?function(q){return e_.patch(q)}:function(q){return q};
MZ=function(q){if(q instanceof ShadowRoot)this.host=(0,_.GI)(q.host),this.root=q;else if(q.$$){this.host=(0,_.GI)(q);var Z;this.root=(Z=q.root)!=null?Z:this.host}else if(q.polymerController){this.host=(0,_.GI)(q);var w;this.root=(w=this.host.shadowRoot)!=null?w:this.host}else this.root=this.host=(0,_.GI)(q)};
JO2();B8j();T89();Uhj();Qej();var ln9={querySelector:function(q,Z){Z=mOX(Z,U8(q));q=_.kz(q);return Ko(q).prototype.querySelector.call(q,Z)},
querySelectorAll:function(q,Z){Z=mOX(Z,U8(q));q=_.kz(q);return Ko(q).prototype.querySelectorAll.call(q,Z)}},GK9={appendChild:function(q,Z){var w=U8(q),r=_.TI(Z);
return _.t48(_.kz(q),w?_.IJ(Z,w,r):Z)},
cloneNode:function(q,Z){var w=_.TI(q);q=_.kz(q);Z=Ko(q).prototype.cloneNode.call(q,Z);return w?cP(Z,w):Z},
contains:function(q,Z){var w=U8(q),r=_.TI(Z);return w!==r?!1:RMe(q,Z)},
insertBefore:function(q,Z,w){var r=U8(q),Y=_.TI(Z);q=_.kz(q);Z=r?_.IJ(Z,r,Y):Z;return Ko(q).prototype.insertBefore.call(q,Z,w)},
removeChild:function(q,Z){var w=U8(q);q=_.kz(q);Z=w?cP(Z,w):Z;return Ko(q).prototype.removeChild.call(q,Z)},
replaceChild:function(q,Z,w){var r=U8(q),Y=_.TI(Z);Z=r?_.IJ(Z,r,Y):Y?cP(Z,Y):Z;w=r?cP(w,r):w;q=_.kz(q);return Ko(q).prototype.replaceChild.call(q,Z,w)},
getRootNode:function(q,Z){Z=Z===void 0?{composed:!0}:Z;var w;if(((w=Z)!=null?w:{}).composed)q=rO9(q);else{Z=q;for(q=fx9(q);q;)Z=q,q=hhe(q);q=Z}return q}},K42=auO?{firstChild:oj2,
nextSibling:Otj,previousSibling:W4O,firstElementChild:uxT,lastElementChild:SFT,nextElementSibling:V4j,previousElementSibling:HtO,childNodes:vj2}:{};njT&&(K42.parentNode=dh6);Ej6&&(K42.children=jeN);xhe&&(K42.lastChild=L46);zM1&&kWT(ln9);btI&&kWT(GK9);seT();var IuT=function(q){this.node=q instanceof ShadowRoot?q.host:q};
cO2();M4I();var GWe=new WeakMap;var XhI=Symbol("wd");var hMj=new Set(["tap","track","down","up"]),yO6=_.b("pbcm_fi_query_decorators");var pwh=function(){return _.y5.apply(this,arguments)||this};
_.z(pwh,_.y5);_.e=pwh.prototype;_.e.getState=function(){return this.store.getState()};
_.e.dispatch=function(q){this.store.dispatch(q)};
_.e.beforeRegister=function(){if(this&&typeof this==="object"){var q;var Z=!!this.useSignals||!((q=this.polymerController)==null||!q.useSignals)}else Z=!1;if(!Z&&this.properties)for(Z=_.P(Object.keys(this.properties)),q=Z.next();!q.done;q=Z.next()){var w=q.value;q=this.properties[w];if(q.selector){if(q.computed)throw Error("kg");w=["reduxPropertiesRecomputeTrigger",'"'+w+'"'].concat(_.Ju(q.selectorArgs||[])).join(",");q.computed="recomputeReduxSelector("+w+")"}}};
_.e.attached=function(){var q=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){q.reduxPropertiesRecomputeTrigger++}));
_.b("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.e.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.e.recomputeReduxSelector=function(q,Z){var w=_.Ta.apply(2,arguments),r=this.properties[Z].selector;if(!r)throw Error("ig`"+Z);return r.apply(null,[this.store.getState()].concat(_.Ju(w)))};
_.e.select=function(q){var Z=_.Ta.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return q.apply(null,[this.store.getState()].concat(_.Ju(Z)))};
_.My.Object.defineProperties(pwh.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
var CK=pwh;CK.prototype.recomputeReduxSelector=CK.prototype.recomputeReduxSelector;_.X([_.F(),_.A("design:type",Number)],CK.prototype,"reduxPropertiesRecomputeTrigger",void 0);CK=_.X([_.iq()],CK);var PE=[],$sT={},Xw2=function(){return l9.apply(this,arguments)||this};
_.z(Xw2,l9);Xw2.prototype._addPropertyEffect=function(q,Z,w){if(Z==="__observeEffects"&&w){var r,Y=(r=w.info.method)!=null?r:w.info.methodName;if(Y){var C=this[Y];this[Y]=function(){PE.push(Y);try{C==null||C.apply(this,arguments)}finally{PE.pop()}}}}_.d4._addPropertyEffect.apply(this,[q,
Z,w])};
Xw2.prototype._setPendingProperty=function(q,Z,w){if(PE.length){var r=PE[PE.length-1],Y;(Y=$sT[this.is])!=null&&Y.has(r)||(eH9(this.is,r),_.vO("polymerPropertyChangedInObserver",{componentName:this.is,observerName:r}))}return _.d4._setPendingProperty.apply(this,[q,Z,w])};
var zH2=Xw2;zH2=_.X([HII()],zH2);var CR2=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),dsj,ZN={};_.b("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=ZN);var mHe=function(){return _.y5.apply(this,arguments)||this};
_.z(mHe,_.y5);mHe.prototype._setUnmanagedPropertyToNode=function(q,Z,w){q.loggingStatus&&(q.loggingStatus.isDeclarativeExternal=!0);if(w!==q[Z]||typeof w==="object")q[Z]=w;q.is&&q.polymerController&&q.polymerController!==q&&wx(q.is,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");q.loggingStatus&&(q.loggingStatus.isDeclarativeExternal=!1)};
var W8z=mHe;W8z=_.X([_.iq()],W8z);PRe()&&(a_.prototype._setUnmanagedPropertyToNode=(new W8z)._setUnmanagedPropertyToNode);_.Bqz={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(q){},set polymerController(q){}}]};var Aw2=function(){var q=l9.apply(this,arguments)||this;q.json=function(){};
return q};
_.z(Aw2,l9);Aw2.prototype.equals=function(q,Z){return q===Z};
Aw2.prototype.isEmpty=function(q){return!q||_.pX(q)&&q.length===0};
var Pp=Aw2;Pp=_.X([HII()],Pp);var fnD=function(q){q=PU2(q);zv.call(this,q)};
_.z(fnD,zv);fnD.prototype.addProvider=function(q){q=q.key?q:PU2([q])[0];var Z=this.keyIdToIndex.get(q.key.id);if(Z){if(uPz(q,this.providers[Z]))throw Error("lg`"+q.key.displayName);}else zv.prototype.addProvider.call(this,q)};
var DH9=new fnD([]);var hN9=!1;var RH2={};hN9||(tdj(),hN9=!0);
RH2.InjectBehavior={initializeInjection:function(){var q=this.provide;try{if((q=q!=null?q:[])&&q.length>0)for(var Z=PU2(q),w=_.P(Z),r=w.next();!r.done;r=w.next())DH9.addProvider(r.value);var Y=new Set;L81(this.behaviors||[],Y);Z={};for(var C=_.P(Y),d=C.next();!d.done;d=C.next()){var O=d.value;O.inject&&Object.assign(Z,O.inject)}this.inject&&Object.assign(Z,this.inject);for(var H=_.P(Object.keys(Z)),L=H.next();!L.done;L=H.next()){var S=L.value,v=Z[S];try{this[S]=DH9.resolve(v)}catch(R){throw R;}}}catch(R){throw Error(R.message);
}}};var JZz;var aq1=/\bclass\b/.test(function(){}.toString()),Eh8=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var ywv=function(q){this.wasDefined=!0;Array.isArray(q)||q instanceof Array?(this.JSC$11104_getImpl=q[0],this.JSC$11104_setImpl=q[1]):this.JSC$11104_getImpl=q};
_.e=ywv.prototype;_.e.getWithPath=function(q){return OD(this.JSC$11104_getImpl(),q)};
_.e.setWithPath=function(q,Z){var w=this;if(q.length)throw Error("mg");if(!this.JSC$11104_setImpl)throw Error("ng");eG(function(){w.JSC$11104_setImpl(Z)})};
_.e.notifyPath=function(){throw Error("og");};
_.e.notifySplices=function(){throw Error("pg");};
_.e.getChangeRecordSignal=function(q,Z){var w=this;if(q.length)throw Error("qg");return function(){var r=w.getWithPath(q);return{path:Z!=null?Z:"",base:r,value:r}}};
_.e.getSplicesSignal=function(){throw Error("rg");};
_.e.getPathMutationSignal=function(){throw Error("sg");};
_.e.pop=function(){throw Error("tg");};
_.e.push=function(){throw Error("ug");};
_.e.splice=function(){throw Error("vg");};
_.e.unshift=function(){throw Error("wg");};var dj=function(q){var Z=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(q)||q instanceof Array?(this.JSC$11109_getImpl=q[0],this.JSC$11109_setImpl=q[1]):this.JSC$11109_getImpl=q;this.wasDefined=!1;gX(function(){Z.wasDefined=Z.JSC$11109_getImpl()!==void 0})};
dj.prototype.getWithPath=function(q){return OD(this.JSC$11109_getImpl(),q)};
dj.prototype.setWithPath=function(q,Z){var w=this;if(q[q.length-1]!=="*"&&q[q.length-1]!=="splices"){if(q.length===0){if(!this.JSC$11109_setImpl)throw Error("xg");this.wasDefined||(this.wasDefined=Z!==void 0);eG(function(){w.JSC$11109_setImpl(Z)})}else{for(var r=gX(function(){return w.getWithPath([])}),Y=0;Y<q.length-1;Y++){if(!r)return;
r=r[q[Y]]}Y=q[q.length-1];r&&(r[Y]=Z);this.wasDefined||(this.wasDefined=q.length>1||Z!==void 0)}iMX(this,q,{pathComponents:q,value:Z})}};
dj.prototype.notifyPath=function(q,Z){q.length===0?Z&&this.setWithPath(q,Z.value):iMX(this,q,{pathComponents:q,value:Z==null?void 0:Z.value,fallbackWhenUndefined:Z==null?void 0:Z.value})};
var iMX=function(q,Z,w,r){if(q.setMutationSignal){var Y=++q.mutationIndex,C=[q.observedPath],d=q.observedPath,O;Z.length===0&&(O=d);for(var H=0;H<Z.length;H++){var L=d.subPaths[Z[H]];if(!L)break;C.push(L);d=L;H===Z.length-1&&(O=L)}for(Z=!1;C.length;)d=C.shift(),d.data={index:Y,mutation:w,spliceMutationIndex:r},Z||(Z=d===O),Z&&C.push.apply(C,_.Ju(Object.values(d.subPaths)));eG(function(){q.setMutationSignal(Y)})}};
dj.prototype.notifySplices=function(q,Z){var w=this,r=gX(function(){return w.getWithPath(q)}),Y=[].concat(_.Ju(q),["splices"]);
iMX(this,Y,{pathComponents:Y,value:{indexSplices:Z}});if(r==null?0:r.length)Z=this.mutationIndex,Y=[].concat(_.Ju(q),["length"]),iMX(this,Y,{pathComponents:Y,value:r.length},Z)};
var gMX=function(q,Z,w,r,Y,C){q.notifySplices(w,[{index:r,addedCount:Y,removed:C,object:Z,type:"splice"}])},qBK=function(q,Z){q=q.observedPath;
for(var w=0;w<Z.length;w++){var r=Z[w],Y=q.subPaths[r];Y||(Y={pathComponents:Z.slice(0,w+1),subPaths:{}},q.subPaths[r]=Y);q=Y}},w_m=function(q,Z,w){qBK(q,Z);
if(!q.getMutationSignal){var r=_.P(_.qo(q.mutationIndex,void 0,"HavCgf"));q.getMutationSignal=r.next().value;q.setMutationSignal=r.next().value}var Y=q.getMutationSignal;return _.$6(function(){Y();return w(ZSJ(q,Z))},void 0,"BYaPo")};
dj.prototype.getChangeRecordSignal=function(q,Z){var w=this,r=this.mutationIndex,Y;return w_m(this,q,function(C){if(C&&C.index>r){var d=C.mutation;r=C.index;Y=void 0}C=gX(function(){return w.getWithPath(q)});
if(d){var O=d.pathComponents[d.pathComponents.length-1],H=[].concat(_.Ju(d.pathComponents));if(O==="splices"||O==="length")return{base:C,path:(Z?[Z].concat(_.Ju(H)):H).join("."),value:d.value};var L=q.length>H.length?q:H,S;return{base:C!=null?C:d.fallbackWhenUndefined,path:(Z?[Z].concat(_.Ju(L)):L).join("."),value:(S=gX(function(){return w.getWithPath(L)}))!=null?S:d.fallbackWhenUndefined}}Y||(Y={base:C,
path:(Z?[Z].concat(_.Ju(q)):q).join("."),value:C});return Y})};
dj.prototype.getSplicesSignal=function(q){var Z=this.mutationIndex,w;return w_m(this,q,function(r){if(r&&r.index>Z&&r.spliceMutationIndex!==Z){var Y=r.mutation;Z=r.index;w=void 0}return Y&&Y.pathComponents[Y.pathComponents.length-1]==="splices"?w=r=Y.value:w})};
dj.prototype.getPathMutationSignal=function(q){var Z=this;qBK(this,q);if(!this.getMutationSignal){var w=_.P(_.qo(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=w.next().value;this.setMutationSignal=w.next().value}var r=this.getMutationSignal,Y=this.mutationIndex,C;return _.$6(function(){r();var d=ZSJ(Z,q);if(d&&d.index>Y&&d.mutation&&UsI(d.mutation.pathComponents,q)){var O=d.mutation;Y=d.index}if(!C||Y!==C.index){var H,L;d=(L=gX(function(){return Z.getWithPath(q)}))!=null?L:(H=O)==null?
void 0:H.fallbackWhenUndefined;
C={index:Y,value:d}}return C},void 0,"Aumsyf")};
var ZSJ=function(q,Z){q=q.observedPath;Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next())q=q.subPaths[w.value];return q.data};
dj.prototype.pop=function(q){var Z=this,w=gX(function(){return Z.getWithPath(q)});
if(!(w instanceof Array))throw Error("yg");var r=w.length>0,Y=w.pop();r&&gMX(this,w,q,w.length,0,[Y]);return Y};
dj.prototype.push=function(q){var Z=_.Ta.apply(1,arguments),w=this,r=gX(function(){return w.getWithPath(q)});
if(!(r instanceof Array))throw Error("zg");var Y=r.length,C=r.push.apply(r,_.Ju(Z));Z.length&&gMX(this,r,q,Y,Z.length,[]);return C};
dj.prototype.splice=function(q,Z,w){var r=_.Ta.apply(3,arguments),Y=this,C=gX(function(){return Y.getWithPath(q)});
if(!(C instanceof Array))throw Error("Ag");Z<0?Z=C.length-Math.floor(-Z):Z&&(Z=Math.floor(Z));var d=C.splice.apply(C,[Z,w].concat(_.Ju(r)));(r.length||d.length)&&gMX(this,C,q,Z,r.length,d);return d};
dj.prototype.unshift=function(q){var Z=_.Ta.apply(1,arguments),w=this,r=gX(function(){return w.getWithPath(q)});
if(!(r instanceof Array))throw Error("Bg");var Y=r.unshift.apply(r,_.Ju(Z));Z.length&&gMX(this,r,q,0,Z.length,[]);return Y};var rnp=!0,YB7=!1,meO=!1,$e2=!1,Ve=!1,elD=0;$e2=!1;elD=0;rnp=!0;Ve=YB7=meO=!1;var OY=function(q,Z,w){this.model=q;this.unknownSignalResolver=Z;this.options=w;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];Z=_.P(lqX());q=Z.next().value;Z=Z.next().value;this.owner=q;this.disposeImpl=Z};
OY.prototype.dispose=function(){if(!this.isDisposed){for(var q=_.P(this.childSignalProxies),Z=q.next();!Z.done;Z=q.next())Z.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var CZ7=function(q,Z){q=l6(q.owner);try{Z()}finally{l6(q)}},PZ7=function(q,Z){var w={stack:[],
error:void 0,hasError:!1};try{_.Qy(w,_.$Nj(q.owner)),Z()}catch(r){w.error=r,w.hasError=!0}finally{_.ED(w)}};
OY.prototype.effect=function(q){_.b("web_poly_si_remove_using")?CZ7(this,function(){_.uS(q)}):PZ7(this,function(){_.uS(q)})};
var deX=function(q,Z){q.options!=null||(q.options={});var w;(w=q.options).immutableProps!=null||(w.immutableProps=new Set);q.options.immutableProps.add(Z)},XwO=function(q,Z){Z=""+Z;
var w;if((w=q.model.__signalCache)==null?0:w.has(Z))w=q.model.__signalCache.get(Z),Array.isArray(w)&&deX(q,Z);var r,Y,C;return(C=(r=q.options)==null?void 0:(Y=r.immutableProps)==null?void 0:Y.has(Z))!=null?C:!1},VYX=function(q,Z){var w;
q.unknownSignalResolver&&(w=q.unknownSignalResolver(Z));var r,Y;((r=q.options)==null?0:(Y=r.immutableProps)==null?0:Y.has(Z))?w!=null||(w=new ywv(_.qo(q.model[Z],void 0,"SYknZd"))):w!=null||(w=new dj(_.qo(q.model[Z],void 0,"GCgq1e")));var C=q.model.hostElement;Object.defineProperty(q.model,Z,{get:function(){O2X(C,Z);return w.getWithPath([])},
set:function(d){rx(C,Z);q.setWithPath([Z],d)},
configurable:!0});return w},Wp=function(q,Z){Z=""+Z;
var w=q.signalCache[Z];if(w!==void 0)return w;w=!1;var r;if((r=q.model.__signalCache)==null?0:r.has(Z))if(w=q.model.__signalCache.get(Z),Array.isArray(w))w=!0,deX(q,Z);else return q.signalCache[Z]=q.model.__signalCache.get(Z).signal,q.signalCache[Z];var Y,C;r=(C=(Y=q.options)==null?void 0:Y.reactivityMode)!=null?C:0;var d,O;if(!((d=q.options)==null?0:(O=d.reactiveProps)==null?0:O.has(Z))&&!w&&r===1)throw Error("Cg`"+Z);Y=w?OSp(q,Z):VYX(q,Z);return q.signalCache[Z]=Y},OSp=function(q,Z){var w=Object.getOwnPropertyDescriptor(q.model.constructor.prototype,
Z),r=function(){return q.model[Z]};
return new ywv(w&&w.get&&!w.set?r:[r,function(Y){q.model[Z]=Y}])};
OY.prototype.getWithPath=function(q){var Z=_.P(q);q=Z.next().value;Z=cG(Z);O2X(this.model.hostElement,""+q);return Wp(this,q).getWithPath(Z)};
OY.prototype.setWithPath=function(q,Z){if(q.length){rx(this.model.hostElement,q.join("."));var w=_.P(q);q=w.next().value;w=cG(w);Wp(this,q).setWithPath(w,Z)}};
OY.prototype.getPathMutationSignal=function(q){var Z=_.P(q);q=Z.next().value;Z=cG(Z);return Wp(this,q).getPathMutationSignal(Z)};
OY.prototype.notifyPath=function(q,Z){var w=_.P(q);q=w.next().value;w=cG(w);Wp(this,q).notifyPath(w,Z)};
var HSh=function(q,Z){if(Z.type==="literal")return function(){return{rootWasDefined:!0,value:Z.value}};
var w=Vy(Z.path),r=_.P(w),Y=r.next().value;r=cG(r);var C,d;if(Z.type==="path"&&(w.length===1||((C=q.options)==null?0:(d=C.immutableProps)==null?0:d.has(Y))))return function(){var v=q.getWithPath(w.slice(0,1)),R=OD(v,w.slice(1));v=v!==void 0;Ve&&(v=Wp(q,w[0]).wasDefined);return{rootWasDefined:v,value:R}};
var O=Wp(q,Y);if(Z.type==="path"){var H=O.getPathMutationSignal(r);return function(){var v=Ve?O.wasDefined:tX(q.owner,function(){return O.getWithPath([])})!==void 0;
var R,B=(R=H())==null?void 0:R.value;return{rootWasDefined:v,value:B}}}if(Z.type==="splices"){var L=O.getSplicesSignal(r);
return function(){var v=L();return{rootWasDefined:Ve?O.wasDefined:v!==void 0,value:v}}}var S=O.getChangeRecordSignal(r,""+Y);
return function(){var v=S();return{rootWasDefined:Ve?O.wasDefined:v!==void 0,value:v}}},Mdj=function(q,Z,w){var r=w.map(function(O){return HSh(q,O)}),Y=w.length===0,C=[],d=w.length!==1||w[0].type!=="path"?!1:!0;
q.effect(function(){for(var O=r.length,H=[],L=!!C.length,S=0;S<O;S++){var v=r[S](),R=v.rootWasDefined;v=v.value;Y||(Y=R);H[S]=v;d&&(H[S+O]=L?C[S]:H[S],C[S]=v)}Y&&tX(q.owner,function(){return void Z.apply(null,_.Ju(H))})})},kYj=function(q,Z,w,r,Y){var C=Wp(q,Z);
Y!==void 0&&C.setWithPath([],Y);Mdj(q,function(){var d=_.Ta.apply(0,arguments);rx(q.model.hostElement,Z,!0);C.setWithPath([],w.apply(null,_.Ju(d)))},r)};
OY.prototype.arrayPush=function(q){var Z=_.Ta.apply(1,arguments),w=_.P(q),r=w.next().value;w=cG(w);r=Wp(this,r);return r.push.apply(r,[w].concat(_.Ju(Z)))};
OY.prototype.arraySplice=function(q,Z,w){var r=_.Ta.apply(3,arguments),Y=_.P(q),C=Y.next().value;Y=cG(Y);C=Wp(this,C);return C.splice.apply(C,[Y,Z,w].concat(_.Ju(r)))};
OY.prototype.arrayUnshift=function(q){var Z=_.Ta.apply(1,arguments),w=_.P(q),r=w.next().value;w=cG(w);r=Wp(this,r);return r.unshift.apply(r,[w].concat(_.Ju(Z)))};
OY.prototype.notifySplices=function(q,Z){var w=_.P(q);q=w.next().value;w=cG(w);Wp(this,q).notifySplices(w,Z)};var fq2=/([^\s]+?)\(([\s\S]*)\)/,XY9=/\.([^.]+)$/,anj=/\\,/g,GYT=/&comma;/g,pY6=/\\(.)/g,Dsj=[],ms6={"*":"wildcard",splices:"splices"};var InT=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"),UH8=/[A-Z]/,WAJ=["class","hidden","id","on-dom-change"],MDj=new Set([].concat(_.Ju(WAJ),
["if","notify-dom-change","restamp"])),FX1=new Set([].concat(_.Ju(WAJ),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),NdI=new Set(["restamp"]);var AwO=Symbol(),qB2=window;var PZ9=window;var u0X=0,OS2=0,oA=[],os2=0,VYN=!1,WAe=document.createTextNode("");(new window.MutationObserver(HST)).observe(WAe,{characterData:!0});var L5=new Map,uy=0,osK=function(q){this.mappedHandleId=q},SB1=function(q,Z,w,r){this.mappedHandleId=q;
var Y=this;this.mappedHandleId=q;this.callback=Z;this.waitTime=w;this.schedulerPriority=r;this.handleId=_.v5.addJob(function(){Y.callback();L5.delete(Y.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.z(SB1,osK);SB1.prototype.cancel=function(){_.v5.cancelJob(this.handleId);L5.delete(this.mappedHandleId)};
var vsj=function(q,Z){this.mappedHandleId=q;var w=this;this.mappedHandleId=q;this.callback=Z;this.handleId=LA6(function(){w.callback();L5.delete(w.mappedHandleId)})};
_.z(vsj,osK);vsj.prototype.cancel=function(){var q=this.handleId-OS2;q<0||oA.length<=q||(oA[q]=null);L5.delete(this.mappedHandleId)};var bSI=function(){};
bSI.prototype.cancel=function(){this.jobHandle!==void 0&&(jO2(this.jobHandle),this.jobHandle=void 0)};
bSI.prototype.run=function(q,Z,w){var r=this;this.cancel();this.callback=q;this.jobHandle=_.SH(function(){q();r.callback=void 0},Z,w)};
bSI.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var tY2=new WeakMap;var u09=si(function(q){for(var Z=q,w=0;w<3;w++)Z=Object.getPrototypeOf(Z);delete Z.prototype.connectedCallback;var r=function(){return q.apply(this,arguments)||this};
_.z(r,q);r.prototype._attachDom=function(Y){if(!Y)return null;var C=(0,_.GI)(this.hostElement);C.attachShadow({mode:"open",shadyUpgradeFragment:Y});C.shadowRoot.appendChild(Y);return C.shadowRoot};
r.prototype._takeAttributes=function(){for(var Y=this.hostElement.attributes,C=0;C<Y.length;C++){var d=Y[C],O=void 0,H=void 0;(H=(O=this).__attributeReaction)==null||H.call(O,d.name,null,d.value)}};
r.prototype._readyClients=function(){q.prototype._readyClients.call(this);this.root=this};
r.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);q.prototype.connectedCallback.call(this)};
_.My.Object.defineProperties(r,{template:{configurable:!0,enumerable:!0,get:function(){return r.prototype._template}}});
return r}),LA1=si(function(q){var Z=function(){return q.apply(this,arguments)||this};
_.z(Z,q);Z.prototype.created=function(){if(this.__notifyEffects)for(var w=_.P(Object.values(this.__notifyEffects)),r=w.next();!r.done;r=w.next()){r=_.P(r.value);for(var Y=r.next();!Y.done;Y=r.next())Y.value.fn=acT}if(this.__reflectEffects)for(w=_.P(Object.values(this.__reflectEffects)),r=w.next();!r.done;r=w.next())for(r=_.P(r.value),Y=r.next();!Y.done;Y=r.next())Y.value.fn=nse};
Z.prototype._addEventListenerToNode=function(w,r,Y){w=jH(w);jx(w,r,Y)||q.prototype._addEventListenerToNode.call(this,w,r,Y)};
Z.prototype._removeEventListenerFromNode=function(w,r,Y){w=jH(w);tl(w,r,Y)||q.prototype._removeEventListenerFromNode.call(this,w,r,Y)};
Z.prototype._propertiesChanged=function(w,r,Y){if(this.__dataToNotify&&this.__notifyEffects)for(var C=_.P(Object.keys(this.__dataToNotify)),d=C.next();!d.done;d=C.next()){d=d.value;var O=BEe(d);this.__notifyEffects[O]||delete this.__dataToNotify[d]}else this.__dataToNotify=null;q.prototype._propertiesChanged.call(this,w,r,Y)};
Z.prototype.fire=function(w,r,Y){r=r===void 0?{}:r;var C;return _.hy(jH((C=Y==null?void 0:Y.node)!=null?C:this),w,r,Y)};
Z.prototype._ensureAttribute=function(w,r){var Y=jH(this);Y.hasAttribute(w)||Hp(Y,r,w)};
Z.prototype.isLightDescendant=function(w){var r=jH(this);return jH(r)!==w&&_.E(r).contains(w)&&_.E(r).getRootNode()===_.E(w).getRootNode()};
return Z});
_.dl.ready=function(){var q;((q=this.hostElement)!=null?q:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var Z;((Z=this.hostElement)!=null?Z:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.SQ._subscribeIronResize=function(q){var Z;((Z=q.hostElement)!=null?Z:q).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.SQ._unsubscribeIronResize=function(q){var Z;((Z=q.hostElement)!=null?Z:q).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var xez=[Array,Boolean,Date,Number,Object,String],RA=function(q,Z,w,r){this.polySiInfo=q;this.polySiParams=Z;this.polySiContext=w;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;r||this instanceof HTMLElement&&(r=this);if(!r)throw Error("Jg");this.allowedProps=Z.allowedProps;this.hostElement=r;this.is=q.is;this.upgradeDisabled=!!Z.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");q=new Set(Z.reactiveSchemas.filter(function(Y){return Y.type!==
"observe"}).map(function(Y){return Y.propertyKey}));
this.signalProxy=new OY(this,void 0,{reactiveProps:q,reactivityMode:Z.reactivityMode});this.__dataHasAccessor={};Z=_.P(Z.reactiveSchemas);for(q=Z.next();!q.done;q=Z.next())q=q.value,q.type==="signal"&&(this.__dataHasAccessor[q.propertyKey]=!0);this.upgradeDisabled||SBg(this)};
RA.prototype.getExtraMethodsToForward=function(){return[]};
var SBg=function(q){q.polySiContext.didRegister||(q.registered(),q.polySiContext.didRegister=!0);q.polySiContext.finalizedTemplate||(q.polySiContext.finalizedTemplate={},q.polySiParams.templateGetter&&(q.polySiContext.finalizedTemplate.processedTemplate=deN(q.polySiParams.templateGetter,q.polySiParams.is)));vsD(q);var Z=q.hostElement;Z.loggingStatus!=null||(Z.loggingStatus={});Z.loggingStatus.isInitializing=!0;gX(function(){return void q.created()});
Z.loggingStatus.isInitializing=!1;q.isPolySiElementConnected&&jOK(q)},jOK=function(q){q.didCallReady||(gX(function(){return void q.ready()}),q.didCallReady=!0);
q.isAttached=!0;q.attached()};
_.e=RA.prototype;_.e.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||jOK(this)};
_.e.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.e.attributeChangedCallback=function(q,Z,w){if(this.upgradeDisabled)q==="disable-upgrade"&&w===null&&(this.upgradeDisabled=!1,SBg(this));else if(Z!==w){var r=_.Cp(q),Y=this.polySiContext.typesForSignals[r];if(Y){switch(Y){case Object:try{var C=JSON.parse(w)}catch(O){C=w}break;case Array:try{C=JSON.parse(w)}catch(O){C=null}break;case Date:C=isNaN(w)?String(w):Number(w);C=new Date(C);break;case Boolean:C=w!==null;break;case Number:C=Number(w);break;default:C=w}this[r]=C}r=_.P(this.polySiParams.behaviors);
for(Y=r.next();!Y.done;Y=r.next())C=void 0,(C=Y.value.attributeChanged)==null||C.call(this,q,Z,w);var d;(d=this.attributeChanged)==null||d.call(this,q,Z,w)}};
_.e.attributeChangedCallbackWrapper=function(q,Z,w){this.attributeChangedCallback(q,Z,w)};
_.e.setPropertiesFromInitialAttributeValues=function(){for(var q=0;q<this.hostElement.attributes.length;q++){var Z=this.hostElement.attributes[q];(Z.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(Z.name))&&this.attributeChangedCallback(Z.name,null,Z.value)}};
_.e.created=function(){this.provide=this.polySiParams.provide;var q;(q=this.initializeInjection)==null||q.call(this);q=_.P(this.polySiParams.reactiveSchemas);for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.type==="signal"&&(this.mutablePropNames.add(Z.propertyKey),Wp(this.signalProxy,Z.propertyKey));Es6(this,this.polySiInfo,this.polySiParams.behaviors);q=_.P(this.polySiParams.reactiveSchemas);for(Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.type==="signal"&&Z.value!==void 0&&(this.signalProxy.model[Z.propertyKey]=
typeof Z.value==="function"?Z.value.call(this):Z.value);if(this.polySiParams.signalProperties)for(q=_.P(this.polySiParams.signalProperties),Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var w=void 0;((w=this.__signalCache)==null?0:w.has(Z))||(this.signalProxy.model[Z]=void 0)}$e2||tYK(this);QON(this);q=_.P(this.polySiParams.behaviors);for(Z=q.next();!Z.done;Z=q.next())w=void 0,(w=Z.value.created)==null||w.call(this);var r;(r=this.polySiInfo.created)==null||r.call(this)};
_.e.registered=function(){var q=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var Z=Object.getPrototypeOf(this);Z.addReactiveSchema=function(O){q.polySiParams.reactiveSchemas.push(O)};
for(var w=_.P(this.polySiParams.behaviors),r=w.next();!r.done;r=w.next()){var Y=void 0;(Y=r.value.beforeRegister)==null||Y.call(Z)}var C;(C=this.polySiInfo.beforeRegister)==null||C.call(Z);Z.addReactiveSchema=Uej;w=_.P(this.polySiParams.behaviors);for(r=w.next();!r.done;r=w.next())Y=void 0,(Y=r.value.registered)==null||Y.call(Z);var d;(d=this.polySiInfo.registered)==null||d.call(Z)};
_.e.ready=function(){var q;(q=this.beforeReady)==null||q.call(this);$e2&&tYK(this);var Z;if(q=(Z=this.polySiContext.finalizedTemplate)==null?void 0:Z.processedTemplate){q=CZ9(q.template,q.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:q.hasInsertionPoint,thisCtx:this});Z=q.nodesById;q=q.root;var w=(0,_.GI)(this.hostElement);if(!w.attachShadow)throw Error("Cd");w.shadowRoot||(w.attachShadow({mode:"open",shadyUpgradeFragment:q}),w.shadowRoot.appendChild(q));this.root=w.shadowRoot;
this.$=Z}RlK(this);Z=_.P(this.polySiParams.behaviors);for(q=Z.next();!q.done;q=Z.next())w=void 0,(w=q.value.ready)==null||w.call(this);var r;(r=this.polySiInfo.ready)==null||r.call(this)};
_.e.attached=function(){for(var q=_.P(this.polySiParams.behaviors),Z=q.next();!Z.done;Z=q.next()){var w=void 0;(w=Z.value.attached)==null||w.call(this)}var r;(r=this.polySiInfo.attached)==null||r.call(this)};
_.e.detached=function(){for(var q=_.P(this.polySiParams.behaviors),Z=q.next();!Z.done;Z=q.next()){var w=void 0;(w=Z.value.detached)==null||w.call(this)}var r;(r=this.polySiInfo.detached)==null||r.call(this)};
var vsD=function(q){for(var Z=_.P(q.polySiParams.behaviors),w=Z.next();!w.done;w=Z.next())if(w=w.value,w.listeners)for(var r in w.listeners)elj(q,q.hostElement,r,w.listeners[r]);if(q.polySiInfo.listeners)for(var Y in q.polySiInfo.listeners)elj(q,q.hostElement,Y,q.polySiInfo.listeners[Y])},elj=function(q,Z,w,r,Y){q=Tq6(q,r,Y);
jx(Z,w,q)||Z.addEventListener(w,q);return q},tYK=function(q){for(var Z=_.P(q.polySiParams.reactiveSchemas),w=Z.next();!w.done;w=Z.next())w=w.value,w.type==="compute"||w.type==="computeWithMethod"?K82(q.signalProxy,w,q):w.type==="redux"?cZI(q.signalProxy,w,q.store):w.type==="signal"&&w.readOnly&&Iqj(q.signalProxy,w)},RlK=function(q){for(var Z=_.P(q.polySiParams.reactiveSchemas),w=Z.next(),r={};!w.done;r={schema$jscomp$12:void 0},w=Z.next())r.schema$jscomp$12=w.value,r.schema$jscomp$12.type==="notify"?
F8O(q.signalProxy,r.schema$jscomp$12,q.hostElement):r.schema$jscomp$12.type==="observe"?NqT(q.signalProxy,r.schema$jscomp$12,q):r.schema$jscomp$12.type==="reflect"&&q.signalProxy.effect(function(C){return function(){var d=q.signalProxy.getWithPath([C.schema$jscomp$12.propertyKey]);
Qce(q.hostElement,C.schema$jscomp$12.propertyKey,d)}}(r));
if(q.reflectedAttributes)for(Z=_.P(Object.entries(q.reflectedAttributes)),r=Z.next(),w={};!r.done;w={key$jscomp$867:void 0,value$jscomp$8550:void 0},r=Z.next()){var Y=_.P(r.value);r=Y.next().value;Y=Y.next().value;w.key$jscomp$867=r;w.value$jscomp$8550=Y;q.signalProxy.effect(function(C){return function(){Qce(q.hostElement,C.key$jscomp$867,(0,C.value$jscomp$8550)())}}(w))}};
_.e=RA.prototype;_.e._setPendingProperty=function(q,Z){this.set(q,Z);return!1};
_.e._enableProperties=function(){};
_.e._setPendingPropertyOrPath=function(q,Z){this.notifyPath(q,Z);return!1};
_.e._addPropertyEffect=function(){};
_.e._stampTemplate=function(){throw Error("Kg");};
_.e.fire=function(q,Z,w){Z=Z===void 0?{}:Z;w=w===void 0?{}:w;var r,Y,C={bubbles:(r=w.bubbles)!=null?r:!0,cancelable:!!w.cancelable,composed:(Y=w.composed)!=null?Y:!0},d;return _.hy(kbX((d=w.node)!=null?d:this.hostElement),q,Z,C)};
_.e.get=function(q,Z){var w=Vy(q);return Z?OD(Z,w):q==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(w)};
_.e.linkPaths=function(){};
_.e.listen=function(q,Z,w){q=kbX(q);this.boundListeners!=null||(this.boundListeners=new WeakMap);var r=this.boundListeners.get(q);r||(r={},this.boundListeners.set(q,r));var Y=Z+w;r[Y]||(r[Y]=elj(this,q,Z,w))};
_.e.notifyPath=function(q,Z){this.signalProxy.notifyPath(Vy(q),arguments.length===2?{value:Z}:void 0)};
_.e.canNotifyPath=function(q){var Z,w;return this.mutablePropNames.has(q)&&!((Z=this.signalProxy.options)==null?0:(w=Z.immutableProps)==null?0:w.has(q))};
_.e.notifySplices=function(q,Z){this.signalProxy.notifySplices(Vy(q),Z)};
_.e.pop=function(q){var Z=this.signalProxy;q=Vy(q);var w=_.P(q);q=w.next().value;w=cG(w);return Wp(Z,q).pop(w)};
_.e.push=function(q){var Z=_.Ta.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[Vy(q)].concat(_.Ju(Z)))};
_.e.set=function(q,Z,w){if(w)throw Error("Lg");q==="hidden"?this.hostElement.hidden=!!Z:this.signalProxy.setWithPath(Vy(q),Z)};
_.e.setProperties=function(q){q=_.P(Object.entries(q));for(var Z=q.next();!Z.done;Z=q.next()){var w=_.P(Z.value);Z=w.next().value;w=w.next().value;this[Z]=w}};
_.e.splice=function(q,Z,w){var r=_.Ta.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[Vy(q),Z,w].concat(_.Ju(r)))};
_.e.unlinkPaths=function(){};
_.e.unlisten=function(q,Z,w){q=kbX(q);if(this.boundListeners){var r=this.boundListeners.get(q);if(r){w=Z+w;var Y=r[w];Y&&(tl(q,Z,Y)||q.removeEventListener(Z,Y),delete r[w])}}};
_.e.unshift=function(q){var Z=_.Ta.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[Vy(q)].concat(_.Ju(Z)))};
_.My.Object.defineProperties(RA.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 X_I=[Array,Boolean,Date,Number,Object,String];var fcX=!1;var HE=function(){var q=HTMLElement.apply(this,arguments)||this;q.restamp=!1;q.notifyDomChange=!1;q.JSC$11221_didCallConnected=!1;q.JSC$11221_renderDebouncer=null;q.disableTemplateUpdateSignalImpl=by()?void 0:_.qo(!1,void 0,"bmozBd");var Z;q.getDisableTemplateUpdate=(Z=q.disableTemplateUpdateSignalImpl)==null?void 0:Z[0];var w;q.setDisableTemplateUpdate=(w=q.disableTemplateUpdateSignalImpl)==null?void 0:w[1];return q};
_.z(HE,HTMLElement);var bSv=function(q){q.conditionSignalImpl!=null||(q.conditionSignalImpl=new dj(_.qo(!1,void 0,"NYV5Rb")));return q.conditionSignalImpl};
_.e=HE.prototype;_.e.showHideChildren=function(q){Jnv(this,q,this.if)};
_.e.attributeChangedCallback=function(q,Z,w){if(this.JSC$11221_didCallConnected)throw Error("Pg`"+q);q==="notify-dom-change"?this.notifyDomChange=w!==null:q==="restamp"&&(this.restamp=w!==null)};
_.e.debounceRender=function(){this.JSC$11221_renderDebouncer=_.fj(this.JSC$11221_renderDebouncer,b9,this.JSC$11221_renderImpl.bind(this));_.D7(this.JSC$11221_renderDebouncer)};
_.e.disconnectedCallback=function(){var q=(0,_.GI)(this).parentNode;(!q||q.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in q&&!q.host)&&zlW(this)};
_.e.connectedCallback=function(){var q=this;this.JSC$11221_didCallConnected=!0;rnp?Dee():this.style.display="none";this.parentSignalProxy.effect(function(){bSv(q).getWithPath([]);q.debounceRender()})};
_.e.render=function(){_.g2()};
_.e.JSC$11221_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var q=this.if;if(q){a:{var Z=(0,_.GI)(this).parentNode;if(this.hasInstance()){var w=this.instance.children;if((w==null?0:w.length)&&(0,_.GI)(this).previousSibling!==w[w.length-1])for(var r=0;r<w.length;r++)(0,_.GI)(Z).insertBefore(w[r],this)}else{if(!Z){Z=!1;break a}BEJ(this,Z)}Z=!0}if(!Z)return}else this.restamp&&zlW(this);Jnv(this,!1,q);q&&ach(this);YB7&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.e.hasInstance=function(){return!!this.instance};
var BEJ=function(q,Z){var w=q.parentSignalProxy;if(by()){var r=_.P(_.qo(!0,void 0,"tGD1cf"));var Y=r.next().value;r=r.next().value;w=q.parentSignalProxy}else{var C;var d=new OY((C=nsJ(q))!=null?C:{},function(H){var L=Wp(q.parentSignalProxy,H).getChangeRecordSignal([]);H=_.qo(void 0,void 0,"dOaz1b");var S=new dj(H);d.effect(function(){if(q.getDisableTemplateUpdate&&!q.getDisableTemplateUpdate()){var v=L();S.notifyPath(Vy(v.path),{value:v.value})}});
return S});
q.parentSignalProxy.childSignalProxies.push(d);var O=w=d}C=CZ9(q.templateInfo,q.templateInfo.nodeInfoList,w,{eventListenerHost:q.eventListenerHost,hasInsertionPoint:q.templateInfo.hasInsertionPoint,thisCtx:q.eventListenerHost,enabledSignal:by()?Y:void 0,scope:q.parentScope,getModel:function(){return q.parentScope?hl2(w.owner,q.parentScope):nsJ(q)}}).root;
q.instance={root:C,children:[],hidden:!1,signalProxy:O,getTemplateUpdatesEnabled:Y,setTemplateUpdatesEnabled:r};O=_.P(C.childNodes);for(Y=O.next();!Y.done;Y=O.next())q.instance.children.push(Y.value);(0,_.GI)(Z).insertBefore(q.instance.root,q)},nsJ=function(q){if((q=q.parentSignalProxy.model)&&!q.hostElement){var Z={},w;
for(w in q)q.hasOwnProperty(w)&&(Z[w]=q[w]);return Z}},zlW=function(q){if(q.instance){var Z=q.instance.children;
if(Z.length){var w=(0,_.GI)(Z[0]).parentNode;if(w){w=(0,_.GI)(w);for(var r=0;r<Z.length;r++)w.removeChild(Z[r])}}by()?q.instance.setTemplateUpdatesEnabled(!1):q.instance.signalProxy.dispose();q.instance=void 0}},Jnv=function(q,Z,w){Z=Z||!w;
q.instance&&q.instance.hidden!==Z&&(q.instance.hidden=Z,Anj(Z,q.instance.children))},ach=function(q){if(by()){var Z=q.instance;
Z&&tX(q.parentSignalProxy.owner,function(){return!Z.getTemplateUpdatesEnabled()})&&Z.setTemplateUpdatesEnabled(!0)}else q.setDisableTemplateUpdate(!1)};
_.My.Object.defineProperties(HE.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var q=this;return tX(this.parentSignalProxy.owner,function(){return bSv(q).getWithPath([])})},
set:function(q){q||(by()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));bSv(this).setWithPath([],!!q)}}});
_.My.Object.defineProperties(HE,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",HE);var QOX=[],WE=function(){var q=HTMLElement.apply(this,arguments)||this;q.as="item";q.indexAs="index";q.itemsIndexAs="itemsIndex";q.targetFramerate=20;q.notifyDomChange=!1;q.isDetached=!1;q.JSC$11228_renderDebouncer=null;q.instances=[];q.chunkingId=null;q.chunkCount=null;q.shouldMeasureChunk=!1;q.shouldContinueChunking=!1;q.renderStartTime=null;q.JSC$11228_didCallConnected=!1;return q};
_.z(WE,HTMLElement);var Es1=function(q){q.itemSignalImpl!=null||(q.itemSignalImpl=new dj(_.qo(QOX,void 0,"uvlPIb")));return q.itemSignalImpl},xeW=function(q,Z){Array.isArray(Z)||(Z=QOX);
Es1(q).setWithPath([],Z)};
_.e=WE.prototype;_.e.showHideChildren=function(q){for(var Z=_.P(this.instances),w=Z.next();!w.done;w=Z.next())Anj(q,w.value.children)};
_.e.notifyPath=function(q,Z){q=Vy(q);q[0]==="items"&&(q.length===1?xeW(this,Z):Es1(this).setWithPath(q.slice(1),Z))};
_.e.canNotifyPath=function(q){return q==="items"};
_.e.attributeChangedCallback=function(q,Z,w){if(this.JSC$11228_didCallConnected)throw Error("Qg`"+q);q==="as"?this.as=w:q==="index-as"?this.indexAs=w:q==="items-index-as"?this.itemsIndexAs=w:q==="initial-count"?this.initialCount=Number(w):q==="notify-dom-change"?this.notifyDomChange=w!==null:q==="target-framerate"&&(this.targetFramerate=Number(w))};
_.e.disconnectedCallback=function(){this.isDetached=!0;for(var q=0;q<this.instances.length;q++)TEg(this,q);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.e.connectedCallback=function(){var q=this,Z=Es1(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var Y=Z(),C=Vy(Y.path);if(C[0]===void 0||C[0]==="splices"||C[0]==="length")q.debounceRender();else{var d=C[0];if(d=q.instances[typeof d==="string"?Math.floor(Number(d)):d])d.type==="legacy"?(C=[q.as].concat(_.Ju(C.slice(1))),d.signalProxy.notifyPath(C,Y)):(C=C.slice(1),d.itemSignal.notifyPath(C,Y))}});
this.JSC$11228_didCallConnected=!0;rnp?Dee():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var w=(0,_.GI)((0,_.GI)(this).parentNode),r=0;r<this.instances.length;r++)w.insertBefore(this.instances[r].root,this);this.chunkingId&&this.render()}};
_.e.debounceRender=function(){this.JSC$11228_renderDebouncer=_.fj(this.JSC$11228_renderDebouncer,b9,this.JSC$11228_renderImpl.bind(this));_.D7(this.JSC$11228_renderDebouncer)};
_.e.render=function(){this.debounceRender();_.g2()};
_.e.JSC$11228_renderImpl=function(){var q=this,Z=this.items,w=UeD(this,Z.length);kb9(this,Z,w);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){q.chunkingId=null;if(q.shouldMeasureChunk){var r=performance.now()-q.renderStartTime;q.chunkCount=Math.round(Math.ceil(1E3/q.targetFramerate)/r*q.chunkCount)||1}q.shouldContinueChunking&&q.debounceRender()}));
YB7&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var UeD=function(q,Z){var w=Z,r=q.instances.length;if(q.initialCount){if(q.chunkCount){var Y=Math.min(Math.max(Z-r,0),q.chunkCount);w=Math.min(r+Y,Z)}else w=Math.min(Z,q.initialCount),Y=Math.max(w-r,0),q.chunkCount=Y||1;q.shouldMeasureChunk=Y===q.chunkCount;q.shouldContinueChunking=w<Z;q.renderStartTime=performance.now()}return w},kb9=function(q,Z,w){for(var r=0;r<w;r++){var Y=q.instances[r],C=Z[r];
Y?Y.type==="legacy"?(Y.signalProxy.setWithPath([q.as],C),Y.signalProxy.setWithPath([q.indexAs],r)):(Y.itemSignal.setWithPath([],C),Y.setIndex(r)):KA7(q,C,r)}for(Z=q.instances.length-1;Z>=r;Z--)w=q,Y=Z,TEg(w,Y),w=_.P(w.instances.splice(Y,1)).next().value,w.type==="legacy"?w.signalProxy.dispose():w.setDisabled()},TEg=function(q,Z){q=q.instances[Z];
Z=(0,_.GI)(q.root);for(var w=0;w<q.children.length;w++)Z.appendChild(q.children[w])},KA7=function(q,Z,w){var r={};
r=Object.assign({},sOm(q),(r[q.as]=Z,r[q.indexAs]=w,r[q.itemsIndexAs]=w,r));if(_.b("dom_repeat_use_ambient_signals")||_.b("creator_dom_repeat_use_ambient_signals")){Z=new dj(_.qo(Z,void 0,"g83Pb"));var Y=_.P(_.qo(w,void 0,"tQRdod"));r=Y.next().value;Y=Y.next().value;var C=_.P(ynz());var d=C.next().value,O=C.next().value;C={};var H={parentScope:q.parentScope,signals:(C[q.as]={type:"mutable",signal:Z},C[q.indexAs]={type:"signal",getter:r},C[q.itemsIndexAs]={type:"signal",getter:r},C)};C=CZ9(q.templateInfo,
q.templateInfo.nodeInfoList,q.parentSignalProxy,{eventListenerHost:q.eventListenerHost,getModel:function(){return hl2(q.parentSignalProxy.owner,H)},
hasInsertionPoint:q.templateInfo.hasInsertionPoint,thisCtx:q.eventListenerHost,methodInvocationRequirement:elD,enabledSignal:function(){return(q.stampingEnabled===void 0||q.stampingEnabled())&&d()},
scope:H}).root;Z={type:"ambientSignal",root:C,children:[],itemSignal:Z,getIndex:r,setIndex:Y,getEnabled:d,setDisabled:O}}else{var L=new OY(r,function(S){if(S!==q.as&&S!==q.indexAs){if(S===q.itemsIndexAs)return Wp(L,q.indexAs);var v=Wp(q.parentSignalProxy,S).getChangeRecordSignal([]);S=_.qo(void 0,void 0,"UobVm");var R=new dj(S);L.effect(function(){var B=v();R.notifyPath(Vy(B.path),{value:B.value})});
return R}});
q.parentSignalProxy.childSignalProxies.push(L);C=CZ9(q.templateInfo,q.templateInfo.nodeInfoList,L,{eventListenerHost:q.eventListenerHost,getModel:function(){var S={};return Object.assign({},sOm(q),(S[q.as]=L.model[q.as],S[q.indexAs]=L.model[q.indexAs],S[q.itemsIndexAs]=L.model[q.indexAs],S))},
hasInsertionPoint:q.templateInfo.hasInsertionPoint,thisCtx:q.eventListenerHost,methodInvocationRequirement:elD,enabledSignal:q.stampingEnabled}).root;Z={type:"legacy",root:C,children:[],signalProxy:L}}r=_.P(C.childNodes);for(Y=r.next();!Y.done;Y=r.next())Z.children.push(Y.value);r=(r=q.instances[w+1])?r.children[0]:q;(0,_.GI)((0,_.GI)(q).parentNode).insertBefore(Z.root,r);q.instances[w]=Z},sOm=function(q){if((q=q.parentSignalProxy.model)&&!q.hostElement){var Z={},w;
for(w in q)q.hasOwnProperty(w)&&(Z[w]=q[w]);return Z}};
WE.prototype.itemForElement=function(q){var Z=this,w=this.instances.find(function(r){return r.children.includes(q)});
if(w)return tX(this.parentSignalProxy.owner,function(){return w.type==="legacy"?w.signalProxy.getWithPath([Z.as]):w.itemSignal.getWithPath([])})};
WE.prototype.indexForElement=function(q){var Z=this.instances.findIndex(function(w){return w.children.includes(q)});
return Z>=0?Z:void 0};
_.My.Object.defineProperties(WE.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var q=this;return tX(this.parentSignalProxy.owner,function(){return Es1(q).getWithPath([])})},
set:function(q){xeW(this,q)}},
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}}});
_.My.Object.defineProperties(WE,{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",WE);var IcK,cng;_.oL=new _.F$("STATE_STORE_TOKEN");IcK=new _.F$("SELECT_TOKEN");cng=new _.F$("DISPATCH_TOKEN");var rie={getSelectFn:function(){var q;return(q=_.t().resolve(_.Gj(IcK)))!=null?q:iS2},
getDispatchFn:function(){var q;return(q=_.t().resolve(_.Gj(cng)))!=null?q:_.JJ().dispatch.bind(_.JJ())},
getAppStore:function(){return _.t().resolve(_.oL)}},gsI,w$e=!1;var eSj=void 0;var MYm=function(){};
MYm.prototype.hasAttribute=function(q){if(q==="dir")return!1;if(q==="disable-upgrade"){var Z,w;return(w=(Z=this.hostElement)==null?void 0:Z.hasAttribute("disable-upgrade"))!=null?w:!1}throw Error("Rg`"+q);};
MYm.prototype.attributeChangedCallbackWrapper=function(q,Z,w){if(q==="disable-upgrade"&&this.__isUpgradeDisabled&&w===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var r;((r=this.hostElement)!=null?r:this).isConnected&&this.connectedCallback()}else Z===w||this.__isReflecting||this.attributeChangedCallback(q,Z,w)};
MYm.prototype.getExtraMethodsToForward=function(){for(var q=this,Z=[],w=_.P(FAp),r=w.next(),Y={};!r.done;Y={tagName$jscomp$52:void 0,name$jscomp$533:void 0},r=w.next())Y.name$jscomp$533=r.value,r=void 0,Y.name$jscomp$533==="_setPendingProperty"?(Y.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),r=function(C){return function(d,O,H){wx(C.tagName$jscomp$52,d,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return q._setPendingProperty(d,O,H)}}(Y)):r=function(C){return function(){return q[C.name$jscomp$533].apply(q,
_.Ju(_.Ta.apply(0,arguments)))}}(Y),Z.push([Y.name$jscomp$533,
r]);return Z};
for(var Oej=LA1(u09((0,_.PR)(MYm))),uVz=["disabled","disable-upgrade"],NEW=(0,_.PR)(function(){}),lcW=new Set(Object.getOwnPropertyNames(NEW.prototype)),tW2=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.Ju(lcW))),SQ8=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),FAp=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),GbK=new Set([].concat(_.Ju(SQ8),_.Ju(FAp),_.Ju(lcW))),p_W=_.P(GbK),X_v=p_W.next();!X_v.done;X_v=p_W.next())CR2.add(X_v.value);var juI={created:function(){QON(this);this.initializeInjection()}};var EI2=!1,K5=window.ShadyDOM,ciO=["appendChild","insertBefore","removeChild","replaceChild"],I91=[Node];K5&&I91.push(K5.Wrapper);var GE1,p$O,Aiz={};var cp=new Set,sD="",f92="";var IA,MT=new Set;var rFX=new Set("context didCallReady is info params signalProxy".split(" ")),$5z="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),eX6="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var me2=YQ({entities:ik6}),AnD=new Kz(me2);var fc9=function(){return _.y5.apply(this,arguments)||this};
_.z(fc9,_.y5);_.My.Object.defineProperties(fc9.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return AnD}}});
var DeJ=fc9;DeJ=_.X([_.iq()],DeJ);_.u3=[CK.prototype,DeJ.prototype];_.LK={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var q=this,Z={};setTimeout(function(){var w;return _.hy((w=q.hostElement)!=null?w:q,"yt-live-chat-add-tooltip-target",Z)},0);
this.handler_=Z.handler},
detached:function(){if(this.handler_){var q;this.handler_.removeElementFromSupportingTooltips((q=this.hostElement)!=null?q:this)}this.handler_=null}}};_.my=new _.F$("ICON_MANAGER_TOKEN");var hlK=[48,20,18,16,15,13,12],QMO=new Map,bwT=new Set,jM9=new Set,RXz=new Set,vR2=new Set,tc2=new Set,zX9=new Promise(function(q){var Z=!1,w=!1,r=!1,Y=[],C=function(d){if("detail"in d)if(d=d.detail,d.name==="yt-icons")JF6(d),Z=!0;else if(d.name==="yt-sys-icons")JF6(d),w=!0;else{var O;((O=d.name)==null?0:O.includes("yt-sys-icons"))&&d.size!==24&&(JF6(d,!0),Y.push(d.size),Y.length===hlK.length&&(r=!0))}Z&&w&&r&&(window.removeEventListener("iron-iconset-added",C),q())};
window.addEventListener("iron-iconset-added",C)}),a4j=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:_.kO,computeHref_:function(q,Z){Z=Z===void 0?!1:Z;if(!q||q.commandExecutorCommand)return null;var w=s5O(q,Z);return Z||w!==null?w?_.b("enable_polymer_resin")?_.EX(w).toString():w:null:(_.bx(new _.df("computeHref was null",this.is,q)),null)},
computeOptionalHref_:function(q){return this.computeHref_(q,!0)},
computeNofollow_:function(q){return q?av6(q)?"nofollow":null:null},
computeIcon_:function(q){return q&&q.iconType?_.Xl(q.iconType):""},
resolveCommand:function(q,Z,w){Z=Z===void 0?{}:Z;return _.f5(q,this.hostElement,Z,w===void 0?!1:w)}};var iSK,vE;_.ynW={};iSK=null;
vE={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_=syz(this.viewroot));_.SH(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var q=this;this.unobserve_();if(_.b("kevlar_vimio_use_shared_monitor"))kc9(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 Z=[];this.visibilityOptionVisible_&&Z.push(this.visibilityObserver.observe(this.hostElement,function(){return q.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&Z.push(this.visibilityObserver.observe(this.hostElement,function(){return q.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&Z.push(this.visibilityObserver.observe(this.hostElement,function(){return q.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=Z}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){ERI(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 q=_.E3(this.parentNode,function(w){var r,Y=(r=w.polymerController)!=null?r:w;return!!Y.getVisibilityObserverForChild&&Y.getVisibilityObserverForChild()},!0);
if(q){var Z;this.localVisibilityObserver_=((Z=q.polymerController)!=null?Z:q).getVisibilityObserverForChild()}else iSK||(iSK=syz()),this.localVisibilityObserver_=iSK;return this.localVisibilityObserver_},visibilityCallback:function(q){q?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.b("kevlar_use_vimio_behavior")||(vE={});vE&&!_.b("kevlar_use_vimio_behavior")&&(delete vE.attached,delete vE.detached);_.ynW.YtVisibilityObserverBehavior=[vE];var gsv={};gsv.YtVisualElementBehavior=[_.ynW.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.b("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.b("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var q=this.getScreenLayer&&this.getScreenLayer(),Z=this.getVisibilityLogger();Z&&Z.reportShown(this,void 0,q)}},
onHidden:function(){if(_.b("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.b("kevlar_vimio_use_shared_monitor")){var q=this.getScreenLayer&&this.getScreenLayer(),Z=this.getVisibilityLogger();Z&&Z.reportHidden(this,void 0,q)}},
getVisibilityLogger:function(){return _.b("kevlar_use_vimio_behavior")?_.hJ():null},
shouldSkipLogging:function(){if(_.zj("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var q=this.getParentRenderer&&this.getParentRenderer();if(!q)return!1;var Z,w=(Z=q.polymerController)!=null?Z:q;if(!w.data)return!1;q=this.data.trackingParams;q=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:q;var r;Z=(r=w.data)==null?void 0:r.trackingParams;var Y,C;Z=((Y=w.data)==null?0:Y.loggingDirectives)?(C=w.data)==null?void 0:C.loggingDirectives.trackingParams:Z;return q&&Z&&q===
Z}}];var cF6=new Map,ra;var G_z=function(q){this.layer=q},Sr=function(q){return q.layer!==void 0?q.layer:q.parent?Sr(q.parent):q.layer=0};var pz9;_.y={};pz9=0;_.y.YtRendererBehavior=[_.S_.YtComponentBehavior,gsv.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_:_.b("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var q,Z;(Z=(q=this.monitorScrollElement)!=null?q:this.hostElement)==null||Z.removeEventListener("scroll",_.XN(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();sM1(this.hostElement);q7J(_.DK(),this.hostElement);MM.delete(this.hostElement)},
registerRenderer:function(q){var Z;((Z=q.polymerController)!=null?Z:q).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(q),this.markDirty())},
unregisterRenderer_:function(q){this.useVimio_||(this.childCache_.delete(q),this.markDirty())},
attached:function(){var q=this,Z=this.getParentRenderer();if(Z){var w,r,Y;(r=(w=(Y=Z.polymerController)!=null?Y:Z).registerRenderer)==null||r.call(w,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var C,d;(d=(C=this.monitorScrollElement)!=null?C:this.hostElement)==null||d.addEventListener("scroll",_.XN(this,this.onScroll))}_.v5.addJob(function(){McT(q.hostElement)},8);
w=new G_z(this.screenLayer||void 0);(Z=MM.get(Z))&&Z.layerNode&&(w.parent=Z.layerNode);Z={};nJ2(this.hostElement,(Z.isRenderer=!0,Z.layerNode=w,Z[pnN]=this.data,Z))},
getParentRenderer:function(){for(var q=this.hostElement.parentNode,Z,w;q&&((Z=MM.get(q))==null||!Z.isRenderer)&&!((w=q.polymerController)!=null?w:q).isRenderer_;)q=q.parentNode||q.host;return q},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.b("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.BF("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.b("debug_web_ve_data")&&this.data.trackingParams){var q="";try{q=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(w){_.tY(w)}if(q){var Z=yT1(q,1);Z!==void 0&&(this.hostElement.dataset.veIndex=String(Z));q=yT1(q,2);
q!==void 0&&(this.hostElement.dataset.ve=String(q))}}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,_.b("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.wa(this.data.loggingDirectives.trackingParams)),this.visualElement=_.yy(_.iy(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var q=this.data.targetId;_.wwv(_.DK(),q,this.hostElement)}else q7J(_.DK(),this.hostElement)},
onScroll:function(){var q=Date.now();q-this.lastHandledScroll_<50||(this.lastHandledScroll_=q,this.markDirty())},
markDirty:function(){_.b("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():Xz9(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var q=this.getParentRenderer();if(q&&(q=MM.get(q))&&q.layerNode)return Sr(q.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.Ju(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var q=0;q<this.data.impressionEndpoints.length;q++)this.sendImpression(this.data.impressionEndpoints[q]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(q){q.clickTrackingParams&&delete q.clickTrackingParams;var Z,w;(q==null?0:(Z=q.commandMetadata)==null?0:(w=Z.webCommandMetadata)==null?0:w.sendPost)?_.qM(this.hostElement,[q,{impression:!0}]):_.ZC(this.hostElement,[q],this.hostElement)},
logExplicitClick:function(q){var Z=_.b5(this.getScreenLayer());if(Z){var w,r=(w=q.polymerController)!=null?w:q;q=r.visualElement;r=r.trackingParams||r.clickTrackingParams;!q&&r&&(q=_.wa(r));q&&_.sh(Z,q)}}}];var qQD={},Zep=function(){return _.y5.apply(this,arguments)||this};
_.z(Zep,_.y5);Zep.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var j_=Zep;j_.prototype.onPdgItemBehaviorClick=j_.prototype.onPdgItemBehaviorClick;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],j_.prototype,"data",void 0);_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],j_.prototype,"onPdgItemBehaviorClick",null);j_=_.X([_.iq()],j_);qQD.YtPdgLiveChatItemBehavior=[j_.prototype,_.y.YtRendererBehavior];var w$J;var riJ;_.tg={};_.tg.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var RL=function(){var q=l9.apply(this,arguments)||this;q.switchTemplateAtRegistration=!1;return q};
_.z(RL,l9);RL.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||D5O(this),_.JnI(this,"doRender"),this.doRender())};
RL.prototype.debounceRender=function(){this.templatingFn&&_.vp(this,"doRender",this.doRender)};
RL.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.tY(Error("ah"))};
RL.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
var YQD=RL;YQD=_.X([HII()],YQD);var $q2=YQD;var eSD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,b3={},gRe=(b3[1]={filterString:null,isUnwrappable:null,unwrap:null},b3[2]={filterString:function(q,Z,w){return GR(w)},
isUnwrappable:function(q){return q instanceof sX},
unwrap:function(q){return c8(q)}},b3[3]={filterString:function(q,Z,w){return eSD.test(w)?w:Qw.toString()},
isUnwrappable:function(q){return R9(q)},
unwrap:function(q){return _.bg(q)}},b3[4]={filterString:function(){return Qw.toString()},
isUnwrappable:function(q){return q instanceof W8},
unwrap:function(q){return _.ug(q).toString()}},b3[5]={filterString:function(q,Z,w){return w},
isUnwrappable:function(q){return typeof q==="string"},
unwrap:function(q){return q.toString()}},b3[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(q){return q instanceof _.Ga},
unwrap:function(q){return fFj(q)}},b3[8]={filterString:function(q,Z,w){w=String(w).toLowerCase();
return ePj(q,Z,w)?w:"zClosurez"},
isUnwrappable:null,unwrap:null},b3[10]={filterString:null,isUnwrappable:null,unwrap:null},b3);lx[bS["default"]]=Z8T;var wmz=[];var jf2=YaO("A"),tBz=YaO("BUTTON"),$B=YaO("DIV"),Rxj=YaO("LABEL");(function(){var q=su;su=function(Z){q==null||q(Z);ep(function(){for(var w=0;w<Z.length;w++)rS9(Z[w])})}})();var CkX=function(){var q=_.y5.apply(this,arguments)||this;q.hasUnmounted=!1;return q};
_.z(CkX,_.y5);_.e=CkX.prototype;_.e.beforeRegister=function(){var q=this.doIdomRender;this.templatingFn?_.tY(Error("$g")):(this.templatingFn=q,this.switchTemplateAtRegistration=!0,iwI(this))};
_.e.attached=function(){};
_.e.detached=function(){rS9(this.hostElement)};
_.e.renderIdom=function(){throw Error("ch");};
_.e.doIdomRender=function(){var q=this;DAT(this.hostElement,function(){q.renderIdom()})};
var Pkh=CkX;Pkh=_.X([_.iq()],Pkh);var dq9=[$q2.prototype,Pkh.prototype];var VWX,Oe7=function(){return VWX!==void 0?VWX:VWX=document.createElement("template")};
document.head.appendChild(Oe7().content);var He2;var WHv,oIX=function(){return WHv!==void 0?WHv:WHv=document.createElement("template")};
document.head.appendChild(oIX().content);var uVW;var LHW=document.head,SQm=LHW.appendChild,vIJ;if(uVW===void 0){var juv=document.createElement("template");_.a(juv,"\x3c!--css-build:shady--\x3e");juv.content.insertBefore(oIX().content.cloneNode(!0),juv.content.firstChild);uVW=juv}vIJ=uVW;SQm.call(LHW,vIJ.content);var tWp,RSh=function(){return tWp!==void 0?tWp:tWp=document.createElement("template")};
document.head.appendChild(RSh().content);var beW;var Ji1=document.head,zSg=Ji1.appendChild,BgW;if(beW===void 0){var a9W=document.createElement("template");_.a(a9W,"\x3c!--css-build:shady--\x3e");a9W.content.insertBefore(RSh().content.cloneNode(!0),a9W.content.firstChild);beW=a9W}BgW=beW;zSg.call(Ji1,BgW.content);var nI2=document.head,QuD=nI2.appendChild,EIp;if(He2===void 0){var xqK=document.createElement("template");_.a(xqK,"\x3c!--css-build:shady--\x3e");xqK.content.insertBefore(Oe7().content.cloneNode(!0),xqK.content.firstChild);He2=xqK}EIp=He2;QuD.call(nI2,EIp.content);var TgK,UqK=function(){return TgK!==void 0?TgK:TgK=document.createElement("template")};
document.head.appendChild(UqK().content);var kEK;_.RQ=new _.F$("DARK_THEME_TOKEN");var yS9=new _.D("accessibilityProperties");var hbj=new _.D("layoutProperties");var i8O=new _.D("imageType");var KHv={};if("ytAttributedStringLinkHoverColor"in KHv)throw Error("fh`ytAttributedStringLinkHoverColor");(function(q,Z){KHv[q]="value"in Z&&"unit"in Z?dwX(q,Z):function(w){try{return Z(w)}catch(r){throw Error("dh`"+q+"`"+r.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var suh=function(q){var Z=this;this.holdTime=q===void 0?500:q;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(w){var r=new CustomEvent("LONG_PRESS"),Y;(Y=w.changedTouches[0].target)==null||Y.dispatchEvent(r)};
this.ontouchstart=function(w){Z.longPressTimeout=_.OM(_.v5,function(){Z.onlongpress(w);Z.longPressOccurred=!0},Z.holdTime)};
this.ontouchmove=function(){_.v5.cancelJob(Z.longPressTimeout);Z.longPressTimeout=NaN;Z.longPressOccurred=!1;Z.moveOccurred=!0};
this.ontouchend=function(w){if(Z.longPressTimeout&&!Z.longPressOccurred&&!Z.moveOccurred){var r;(r=w.changedTouches[0].target)==null||r.dispatchEvent(new Event("click"))}_.v5.cancelJob(Z.longPressTimeout);Z.longPressTimeout=NaN;Z.longPressOccurred=!1;Z.moveOccurred=!1}};var THT=function(q,Z){suh.call(this,Z);var w=this;this.callback=q;this.onlongpress=function(r){var Y;(Y=w.callback)==null||Y.call(w,r)}};
_.z(THT,suh);var Uwe=function(q,Z){var w=Object.assign({},Z);q=_.P(new Map([["ontouchstart",q.ontouchstart],["ontouchend",q.ontouchend],["ontouchmove",q.ontouchmove]]));for(var r=q.next(),Y={};!r.done;Y={eventName$jscomp$88:void 0,eventHandler$jscomp$3:void 0},r=q.next()){var C=_.P(r.value);r=C.next().value;C=C.next().value;Y.eventName$jscomp$88=r;Y.eventHandler$jscomp$3=C;Z[Y.eventName$jscomp$88]=function(d){return function(O){var H;(H=w[d.eventName$jscomp$88])==null||H.call(w,O);(0,d.eventHandler$jscomp$3)(O)}}(Y)}};_.ps=new _.F$("COMMAND_HANDLER_TOKEN");var O88=new _.D("parallelCommand");var otX=new _.D("performOnceCommand");var W$j=new _.D("serialCommand");var u26=void 0;var I9g=function(){this.data=[]};
I9g.prototype.push=function(q){this.data.push(q)};var fV={};_.qo(fV,void 0,"sgPmTd");_.qo(null,void 0,"jypsq");var nwz=new I9g;var zbz=[SpD,vgp,jhm,RmD,t27,Lvm,b9g,JKD];var fX1=new _.D("bracketTextDecorator");var tE=new _.D("highlightTextDecorator");_.JE=new _.F$("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var G4I=function(){},ci2;
(ci2=window.requestIdleCallback)==null||ci2.bind(window);var XmX={calledOnce:!1,state:"visible"},pm9={calledOnce:!1,state:"hidden"};var X9O=new _.F$("ICON_RENDERER_TOKEN"),MWp=new _.F$("ICON_WIZ_COMPONENT_TOKEN");_.q0=_.xl(function(q){var Z=q.icon;var w=q.active;var r=q.className;var Y=q.style;var C=q.dataSelected;var d=q.dataDisabled;var O=q.role;var H=q.animateIcon;var L=q.themeOverride;var S=q.ariaHidden;var v=q.ariaExpanded;var R=q.ariaLabel;var B=q.id;var n=q.size;var x=q.iconFilter;return _.u(_.PF,{cond:Z,then:function(){var K=_.t().resolve(MWp);return _.u(K,{icon:Z,dataSelected:C,dataDisabled:d,animateIcon:H,themeOverride:L,ariaExpanded:v,id:B,active:w,size:n,role:O,className:r,ariaHidden:S,ariaLabel:R,
style:function(){return Y!=null&&Y()||n==null||!n()?Y==null?void 0:Y():"width: "+(n==null?void 0:n())+"px;height: "+((n==null?void 0:n())+"px;")},
iconFilter:x})}})},"b");
_.q0.idomCompat=!0;var oE2=window.devicePixelRatio||1;var vE9=new Map([["yt_outline_bag_black_24","bag"]]);var Jg=function(q){var Z=this;this.margin=.1;this.whenInViewportWithMargin=q;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){Z.requestScan()});
window.addEventListener("touchend",function(){Z.requestScan()});
window.addEventListener("updateui",function(){Z.requestScan()});
var w=new _.pV((0,_.Lh)(this.requestScan,this),100);window.addEventListener("scroll",function(){w.fire()},!0);
window.addEventListener("resize",(0,_.Lh)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){Z.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.Lh)(this.requestScan,this))};
Jg.prototype.observe=function(q){this.observationTargets.includes(q)||this.observationTargets.push(q)};
Jg.prototype.unobserve=function(q){this.observationTargets=this.observationTargets.filter(function(Z){return Z!==q})};
Jg.prototype.requestScan=function(){var q=this;this.scanRequested||(ep(function(){FHp(q)}),this.scanRequested=!0)};
var FHp=function(q){var Z=(1+q.margin)*(document.documentElement.clientHeight||window.innerHeight);q.observationTargets=q.observationTargets.filter(function(w){var r=w.getBoundingClientRect();(r=Z>r.top&&!!r.height)&&q.whenInViewportWithMargin(w);return!r&&w.parentNode});
q.scanRequested=!1};
Jg.prototype.disconnect=function(){this.observationTargets=[]};var Ngp,GEg;Ngp=_.P(_.qo(b1e(),void 0,"O3X2wd"));_.l97=Ngp.next().value;GEg=Ngp.next().value;window.addEventListener("resize",function(){GEg(b1e())});var p$2={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},X$g=void 0,mqg=window.innerWidth,AiW=window.innerHeight;window.addEventListener("resize",function(){X$g=void 0});var f9K;if("IntersectionObserver"in window)f9K=BNe();else{if(X$g===void 0){var Dqh;Dqh="matchMedia"in window?window.matchMedia(p$2.landscape+","+p$2.portrait).matches:void 0;X$g=Dqh!==void 0?Dqh:mqg>=930&&AiW>=550||mqg>=550&&AiW>=930}f9K=X$g?{observe:function(q){ep(function(){var Z;(Z=q.onViewportEntered)==null||Z.call(q)})},
unobserve:function(){}}:new Jg(function(q){ep(function(){var Z;
(Z=q.onViewportEntered)==null||Z.call(q)})})}var JBX=f9K;var hSe=_.xl(function(q){var Z=_.Iw(),w=!1;_.L7(function(){var r,Y=(r=q.data)==null?void 0:r.call(q),C,d=(C=q.getSrc)==null?void 0:C.call(q).cb,O;r=(O=q.config)==null?void 0:O.call(q);if(O=Z.value){nE2(O,r);var H;a21(O,Y||null,function(L,S){if(!w)return d?d(L,S):L},r,(H=q.lazy)==null?void 0:H.call(q))}});
_.SG(function(){w=!0});
return _.u("img",{el:Z})},"c");
hSe.idomCompat=!0;_.aQ=_.xl(function(q){var Z=function(){var w,r=q.data(),Y,C,d,O,H,L,S,v,R,B,n,x,K,k,G,rz,f,eO,g,H6,nX,Qj,SO,Te,Ze,W1,A2;var f9={contentMode:(Y=q.contentMode)==null?void 0:Y.call(q),loadedClass:(C=q.loadedClass)==null?void 0:C.call(q),isPreloaded:(d=q.isPreloaded)==null?void 0:d.call(q),notifyOnLoaded:(O=q.notifyOnLoaded)==null?void 0:O.call(q),notifyOnUnloaded:(H=q.notifyOnUnloaded)==null?void 0:H.call(q),preferredThumbnail:(L=q.preferredThumbnail)==null?void 0:L.call(q),preserveHeight:(S=q.preserveHeight)==
null?void 0:S.call(q),preserveWidth:(v=q.preserveWidth)==null?void 0:v.call(q),objectPosition:(R=q.objectPosition)==null?void 0:R.call(q),targetWidth:(B=q.targetWidth)==null?void 0:B.call(q),targetHeight:(n=q.targetHeight)==null?void 0:n.call(q),shouldShowPlaceholder:(x=q.shouldShowPlaceholder)==null?void 0:x.call(q),useWidth:(K=q.useWidth)==null?void 0:K.call(q),alt:(k=q.alt)==null?void 0:k.call(q),className:(G=q.className)==null?void 0:G.call(q),onerror:q.onerror,onload:q.onload,style$:((rz=q.style$)==
null?void 0:rz.call(q))||((f=q.style)==null?void 0:f.call(q)),color:(eO=q.color)==null?void 0:eO.call(q),width:(g=q.width)==null?void 0:g.call(q),height:(H6=q.height)==null?void 0:H6.call(q),"aria-hidden$":(W1=(nX=q["aria-hidden$"])==null?void 0:nX.call(q))!=null?W1:(Qj=q.ariaHidden)==null?void 0:Qj.call(q),draggable:(SO=q.draggable)==null?void 0:SO.call(q),"data-disabled$":(A2=(Te=q["data-disabled$"])==null?void 0:Te.call(q))!=null?A2:(Ze=q.dataDisabled)==null?void 0:Ze.call(q)};return xvO(r,f9,
(w=q.hideOn404)==null?void 0:w.call(q))};
return _.u(_.Oq,null,_.u(_.VV,{when:function(){var w;return((w=Z())==null?void 0:w.type)==="image"}},function(){return _.u(hSe,{data:function(){return Z().image},
getSrc:{cb:function(w,r){var Y=Z().image.sources,C=Z().config.isPreloaded,d=Z().config.useWidth,O=Z().config.targetWidth,H=Z().config.targetHeight,L=Z().config.preferredThumbnail;return _.u3N(r,Y,C,d,O,H,L)||""}},
config:function(){var w=Z().config,r;for(r in w)w[r]===void 0&&delete w[r];return w},
lazy:q.renderLazy})}),_.u(_.VV,{when:function(){var w;
return((w=Z())==null?void 0:w.type)==="icon"}},function(){return _.u(_.q0,{icon:function(){return Z().iconName},
role:function(){return Z().config.role},
className:function(){return Z().config.className},
style:function(){return Z().config.style$+";width: "+(Z().config.width+"px;height: ")+(Z().config.height+"px;color: ")+(Z().config.color+";")},
ariaLabel:function(){return Z().config["aria-label$"]},
ariaHidden:function(){return Z().config["aria-hidden$"]},
dataDisabled:function(){return Z().config["data-disabled$"]}})}))},"d");
_.aQ.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var yi9=function(q){return function(Z){return _.u(HPe,null,function(){var w=Z.data(),r=_.jG(Z.config);return _.u(Fu,null,function(){return void q(w,r)})})}}(I26),KKX=_.xl(function(q){var Z=function(r){var Y,C=_.TNT(function(R){Y=vN(function(){for(var B=_.P(S()),n=B.next();!n.done;n=B.next()){n=cBj(n.value);
n=typeof n==="string"?document.createTextNode(n):n;if(!(n instanceof Node)){B=new _.df("Part is not a node",n,typeof n);_.tY(B);break}R.appendChild(n)}})}),d=Uv1(function(){return qCz(r())},{isEqual:ktO}),O=_.aA(q.config),H=function(){var R,B=d();
return!((R=O())==null||!R.ariaLabel)||!(B.commandRuns&&B.commandRuns.length!==0||B.paragraphStyleRuns&&B.paragraphStyleRuns.length!==0)},L=Uv1(O,{isEqual:FKT}),S=function(){var R=gtj(d(),L());
wLO(R,L());return d().content?PtI(d().content,R).parts:[]},v=!0;
_.L7(function(){d();L();if(v)v=!1;else{var R=S();Promise.resolve().then(function(){var B=C.value;if(B){B.innerText="";var n;(n=Y)==null||n();Y=_.WF(B,function(){return _.u(MIN,{parts:R})})}})}});
return _.u("span",{el:C,class:function(){return d()&&cS1(d(),O())},
dir:function(){var R;return((R=O())==null?0:R.userInput)?"auto":void 0},
"aria-label":function(){var R;return H()?(R=O())==null?void 0:R.ariaLabel:void 0},
role:function(){return H()?"text":void 0}})},w;
return((w=q.config)==null?0:w.renderedFromFormattedString)?Z(q.text):_.u(_.PF,{cond:q.text,then:Z})},"e");
KKX.idomCompat=!0;_.r6=_.xl(function(q){var Z=_.aA(q.text),w=NN2(q);q.renderedFromFormattedString!==void 0&&(w.renderedFromFormattedString=!0);return _.b("attr_string_reactive")?_.u(KKX,{text:Z,config:w}):_.u(_.PF,{cond:function(){var r;return Z()&&((r=qCz(Z()))==null?void 0:r.content)},
then:function(){return _.u(yi9,{data:q.text,config:w})},
debugInstance:"Apcuac"})},"f");
_.r6.idomCompat=!0;var Gtj=function(q,Z,w){Z=Z===void 0?"unknown":Z;w=w===void 0?{}:w;_.df.call(this,q+" ("+Z+")",Object.assign({},{name:"YtWcwError",tagName:Z},w));Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(Gtj,_.df);_.h5j=new WeakMap;_.Dv2=!1;var f2j,yBj,XLI,ABe;_.zG=Symbol("hh");_.EL=Symbol("ih");f2j=Symbol("jh");yBj=new Set(Object.getOwnPropertyNames(Element.prototype));XLI=!_.b("web_wcw_disable_component_function_named_child_props");ABe=Symbol("kh");var ie7=_.xl(function(q){return _.u("yt-attributed-string",{"aria-label":q.ariaLabel,hidden:q.hidden,id:q.id,class:q.className,"force-default-style":q.forceDefaultStyle},_.u(_.r6,{text:q.data,ariaLabel:q.ariaLabel,ellipsisTruncate:q.ellipsisTruncate,isOverlay:q.isOverlay,linkInheritColor:q.linkInheritColor,noPreWrap:q.noPreWrap,noWrap:q.noWrap,userInput:q.userInput,noEndpoints:q.noEndpoints,headerRuns:q.headerRuns}))},"g");
_.b("web_wiz_attributed_string")&&_.xc(ie7,"yt-attributed-string",{props:{ariaHidden:_.zG,ariaLabel:_.zG,className:_.zG,ellipsisTruncate:_.zG,isOverlay:_.zG,linkInheritColor:_.zG,noEndpoints:_.zG,noStyleRuns:_.zG,noLinkColor:_.zG,noPreWrap:_.zG,noWrap:_.zG,skipOnClick:_.zG,userInput:_.zG,headerRuns:_.zG,id:_.zG,data:_.zG,hidden:_.zG,forceDefaultStyle:_.zG,text:_.EL,stopPropagation:_.EL,disableUpgrade:_.EL,disable:_.EL,slot:_.EL}});var gIg=function(){return _.N.apply(this,arguments)||this};
_.z(gIg,_.N);gIg.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},I26(this.data,this.config))};
var BE=gIg;_.X([_.U(dq9),_.A("design:type",Object)],BE.prototype,"ytIdomTemplatingBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],BE.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],BE.prototype,"ariaLabel",void 0);_.X([_.F(),_.A("design:type",Boolean)],BE.prototype,"disable",void 0);_.X([_.F(),_.A("design:type",Boolean)],BE.prototype,"ellipsisTruncate",void 0);_.X([_.F(),_.A("design:type",Boolean)],BE.prototype,"isOverlay",void 0);
_.X([_.F(),_.A("design:type",Boolean)],BE.prototype,"linkInheritColor",void 0);_.X([_.F(),_.A("design:type",Boolean)],BE.prototype,"noPreWrap",void 0);_.X([_.F(),_.A("design:type",Boolean)],BE.prototype,"noWrap",void 0);_.X([_.F(),_.A("design:type",Boolean)],BE.prototype,"userInput",void 0);_.X([_.F(),_.A("design:type",Boolean)],BE.prototype,"noEndpoints",void 0);_.X([_.F(),_.A("design:type",Array)],BE.prototype,"headerRuns",void 0);
BE=_.X([_.dx({is:"yt-attributed-string",disableElementRegistration:!0})],BE);
_.b("web_wiz_attributed_string")||_.p(BE,"yt-attributed-string",function(){if(kEK===void 0){var q=document.createElement("template");_.a(q,"\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");q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
q.content.insertBefore(UqK().content.cloneNode(!0),q.content.firstChild);kEK=q}q=kEK;return q},{mode:2});var q0J,ZwJ,Y$T;q0J=function(){this.firstThumbnailLoaded=!1};
_.wzW=function(){ZwJ||(ZwJ=new q0J);return ZwJ};
Y$T=function(q){var Z=_.wzW();Z.firstThumbnailLoaded||(Z.firstThumbnailLoaded=!0,_.JT("ftl",q))};
q0J.prototype.reset=function(){this.firstThumbnailLoaded=!1};var gE2=0,rdz=new WeakMap,ZJj=0,kc=new Set;var rF9,Y02=function(){return rF9!==void 0?rF9:rF9=document.createElement("template")};
document.head.appendChild(Y02().content);var $5W;var PTN,VmX,aL;_.IQ=_.$1.caches;aL=function(){};
aL.prototype.open=function(q){return _.IQ.open(eX1(q))};
aL.prototype.has=function(q){return _.IQ.has(eX1(q))};
aL.prototype.delete=function(q){return _.IQ.delete(eX1(q))};
aL.prototype.match=function(q,Z){var w=this,r,Y,C,d,O,H;return _.V(function(L){switch(L.nextAddress){case 1:return _.W(L,w.keys(),2);case 2:r=L.yieldResult,Y=_.P(r),C=Y.next();case 3:if(C.done){L.jumpTo(5);break}d=C.value;return _.W(L,w.open(d),6);case 6:return O=L.yieldResult,_.W(L,O.match(q,Z),7);case 7:if(H=L.yieldResult)return L.return(H);C=Y.next();L.jumpTo(3);break;case 5:return L.return()}})};
var OJ1=function(){};
_.z(OJ1,aL);var eX1=function(q){if(q.includes(":"))throw Error("nh`"+q);return q+":"+_.CY("CacheStorage get")};
OJ1.prototype.keys=function(){var q,Z,w,r,Y,C,d,O,H;return _.V(function(L){if(L.nextAddress==1)return q=[],Z=_.CY("CacheStorage keys"),_.W(L,_.IQ.keys(),2);w=L.yieldResult;r=_.P(w);for(Y=r.next();!Y.done;Y=r.next())C=Y.value,d=_.CT2(C),O=d.originalName,H=d.datasyncId,H===Z&&q.push(O);return L.return(q)})};var CV1=function(){var q=_.N.apply(this,arguments)||this;q.objectURL=null;q.loadTime=Infinity;return q};
_.z(CV1,_.N);_.e=CV1.prototype;_.e.renderIdom=function(){e42(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&QNT(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.e.objectFitToContentMode=function(q){switch(q){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.e.logThumbnailFailureVe=function(){var q=_.C6(197497);_.AA(_.iy(),q);var Z=_.b5();Z&&q&&Z&&_.kK(Z,[q])};
_.e.loadImageFromCacheIfExists=function(q){var Z=this,w=q.target;(w==null?0:w.src)&&WCT(w.src).then(function(r){Z.objectURL=xv(r).toString();Z.setSrc(w,Z.objectURL)}).catch(function(){})};
_.e.onError=function(q){var Z=this;if(_.b("web_use_cache_for_image_fallback")){var w=q.target;w&&WCT(w.src).then(function(r){Z.objectURL=xv(r).toString();Z.setSrc(w,Z.objectURL)}).catch(function(){_.b("kevlar_woffle_log_thumbnail_failure_ve")&&Z.logThumbnailFailureVe();
_.b("kevlar_woffle_fallback_image")&&Z.setSrc(w,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.e.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.e.setConfig=function(){var q=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(Z){q.loadImageFromCacheIfExists(Z);q.revokeObjectURL();$V8(q.hostElement)},
onerror:function(Z){q.onError(Z)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.b("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.e.setSrc=function(q,Z){Z&&(q.src=Z)};
var nK=CV1;_.X([_.U(dq9),_.A("design:type",Object)],nK.prototype,"ytIdomTemplatingBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],nK.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],nK.prototype,"alt",void 0);_.X([_.F(),_.A("design:type",Boolean)],nK.prototype,"ftlEligible",void 0);_.X([_.F(),_.A("design:type",Number)],nK.prototype,"height",void 0);_.X([_.F(),_.A("design:type",Boolean)],nK.prototype,"notifyOnLoaded",void 0);
_.X([_.F(),_.A("design:type",Boolean)],nK.prototype,"notifyOnUnloaded",void 0);_.X([_.F(),_.A("design:type",String)],nK.prototype,"objectFit",void 0);_.X([_.F(),_.A("design:type",String)],nK.prototype,"objectPosition",void 0);_.X([_.F(),_.A("design:type",String)],nK.prototype,"preferredThumbnail",void 0);_.X([_.F(),_.A("design:type",Boolean)],nK.prototype,"preserveHeight",void 0);_.X([_.F(),_.A("design:type",Boolean)],nK.prototype,"preserveWidth",void 0);
_.X([_.F({value:!0}),_.A("design:type",Boolean)],nK.prototype,"useWidth",void 0);_.X([_.F({value:function(){return!_.BF("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.A("design:type",Boolean)],nK.prototype,"shouldRenderLazy",void 0);_.X([_.F(),_.A("design:type",Number)],nK.prototype,"width",void 0);nK=_.X([_.dx({is:"yt-image",disableElementRegistration:!0})],nK);
_.p(nK,"yt-image",function(){if($5W===void 0){var q=document.createElement("template");_.a(q,"\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");q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);q.content.insertBefore(Y02().content.cloneNode(!0),q.content.firstChild);
$5W=q}q=$5W;return q},{mode:2});var PVp=function(){return _.N.apply(this,arguments)||this};
_.z(PVp,_.N);PVp.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var q=_.oQ(this.data.onVisibleCommand);q&&this.ytComponentBehavior.resolveCommand(q)}};
var Qe=PVp;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Qe.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.tg.YtVisibilityBehavior),_.A("design:type",Object)],Qe.prototype,"ytVisibilityBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Qe.prototype,"data",void 0);Qe=_.X([_.dx({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Qe);
_.p(Qe,"yt-bumper-user-edu-content-view-model",function(){if(riJ===void 0){var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;w$J===void 0&&(w$J=document.createElement("template"));var r=w$J;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);riJ=q}q=riJ;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var d5p;var Vce,OwW=function(){if(Vce!==void 0)return Vce;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;d5p===void 0&&(d5p=document.createElement("template"));var r=d5p;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return Vce=q};var HwJ;_.EY={};HwJ=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"]);_.EY.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var q=this.getContext_();return q?q.getTaskManager():_.v5},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var q=_.hy(this.hostElement,"yt-get-context-provider",{});q.detail&&q.detail.contextProvider?this.cachedProviderNode_=q.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return HwJ.has(this.hostElement.localName)},
getNetworkManager:function(){var q=this.getContext_();if(q)return q.getNetworkManager()}};var jm9,WRX,uS9,oR9;_.xb=function(q){var Z=WRX.get(q);if(Z&&(Z=Z.pop()))return oR9++,Z;uS9++;try{var w=document.createElement(q)}catch(r){throw new _.df("ElementPool failed to create element",q,r.message);}return w};
jm9=function(q){var Z=q.is;if(Z){var w=WRX.get(Z);w||(w=[],WRX.set(Z,w));var r=_.zj("ELEMENT_POOL_CONFIG")||{};w.length>=(r[Z]!==void 0?r[Z]:_.zj("ELEMENT_POOL_DEFAULT_CAP",0))||w.push(q)}else _.bx(new _.df("Element pool should only handle custom elements:",q.nodeName))};
WRX=new Map;uS9=0;oR9=0;var cJ=new WeakMap,vpj=new WeakMap;var S0p;_.TG=function(q,Z,w){w=w===void 0?_.R0():w;this.JSC$11496_defaultPriority=q;this.signal=Z;this.scheduler=w;this.nextJobDescriptor=0;this.JSC$11496_parkedJobs=[];this.scheduledJobs=new Map};
_.UY=function(q,Z){if(Z){var w=_.zB();q.signal&&!_.BV(w,q.signal)?(w.addListener(q.signal,function(){q.processSignal()}),q.JSC$11496_parkedJobs.push({job:Z,
priority:void 0})):LRg(q,Z)}};
S0p=function(q,Z){if(Z!==q.JSC$11496_defaultPriority){q.JSC$11496_defaultPriority=Z;for(var w=_.P(q.scheduledJobs.values()),r=w.next();!r.done;r=w.next())r=r.value,q.scheduler.cancelJob(r.jobId),r.jobId=q.scheduler.addJob(r.jobWrapper,Z)}};
_.TG.prototype.flushJobs=function(){S0p(this,10);this.processSignal()};
_.TG.prototype.cancel=function(){for(var q=_.P(this.scheduledJobs),Z=q.next();!Z.done;Z=q.next()){var w=_.P(Z.value);Z=w.next().value;w=w.next().value;this.scheduler.cancelJob(w.jobId);this.scheduledJobs.delete(Z)}this.JSC$11496_parkedJobs=[]};
_.TG.prototype.processSignal=function(){for(var q=_.P(this.JSC$11496_parkedJobs),Z=q.next();!Z.done;Z=q.next())Z=Z.value,LRg(this,Z.job,Z.priority);this.JSC$11496_parkedJobs=[]};
var LRg=function(q,Z,w){w=w||q.JSC$11496_defaultPriority;if(w===10)Kn(Z);else{var r=q.nextJobDescriptor++,Y=function(){Z();q.scheduledJobs.delete(r)},C=q.scheduler.addJob(Y,w);
q.scheduledJobs.set(r,{jobWrapper:Y,jobId:C,priority:w})}};_.mD(Jde);var z42={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};WJI({beforeVisit:function(q){if(cp.has(q.type)){var Z;(Z=q.props).idomKey!=null||(Z.idomKey=q.type)}else q.type.TAG_NAME&&(sD=q.type.TAG_NAME)},
afterRender:function(q,Z){var w;sD=(w=Z==null?void 0:Z.type)!=null?w:""},
didPatch:function(){sD=""}});var vRp;_.kb={};vRp={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.kb.YtRendererstamperBehavior=[_.EY.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 q in this.stampDom){var Z=this.stampDom[q];Z&&Z.id&&this.addReactiveSchema({type:"observe",method:{methodName:uM6(Z.id),args:[{type:"wildcard",path:q}]}})}else{(q=(this.constructor.generatedFrom||this).observers)||(q=[]);for(Z in this.stampDom){var w=this.stampDom[Z];w&&w.id&&q.push(uM6(w.id)+"("+Z+".*)")}this.constructor.generatedFrom.observers=q}},
addStampDomObserverFns_:function(){for(var q in this.stampDom){var Z=this.stampDom[q];Z.id?(this[uM6(Z.id)]=this.rendererStamperObserver_.bind(this,q,Z.id),this.hasDataPath_[q]=!1):(Z=new _.df("Bad rendererstamper config",this.is+":"+q),_.tY(Z))}},
rendererStamperObserver_:function(q,Z,w){if(w.path==q){if(w.value===void 0&&!this.hasDataPath_[q])return;this.hasDataPath_[q]=w.value!==void 0}this.rendererStamperApplyChangeRecord_(q,Z,w)},
rendererStamperApplyChangeRecord_:function(q,Z,w){var r=this.renderJobsMap_[Z],Y=null;q==w.path?(w=w.value,_.pX(w)||(w=w===void 0||w===null?[]:[w]),q=this.stampDom[q],q.mapping&&(Y=this.stampDomArray_.bind(this,w,Z,q.mapping,q.reuseComponents,q.events,q.stamperStableList)),r&&r.cancel(),w=q.usePageScheduler?this.getTaskManager():void 0,r||q.initialRenderPriority==void 0)?q.renderPriority==void 0||r||(r=new _.TG(q.renderPriority,q.waitForSignal,w),this.renderJobsMap_[Z]=r):(r=new _.TG(q.initialRenderPriority,
q.waitForSignal,w),this.renderJobsMap_[Z]=r,Y=function(C,d){C();S0p(d,10)}.bind(this,Y,r)):Y=q+".splices"==w.path?this.stampDomArraySplices_.bind(this,q,Z,w.value):this.forwardRendererStamperChanges_.bind(this,q,Z,w);
r?_.UY(r,Y):Y()},
forwardRendererStamperChanges_:function(q,Z,w){var r=w.path.slice(q.length+1),Y=this.getStampContainer_(Z),C=r.indexOf("."),d=r.substring(0,C),O=!1,H=0,L=parseInt(d,0);if(d[0]=="#"){O=parseInt(d.substring(1),0);L=this.get(q);var S=this.get([q,d]);L[O]==S?H=O:H=L.indexOf(S);O=!0}else isNaN(L)||(H=L,O=!0);O&&(r=r.substring(d.length+1),C=r.indexOf("."));d=_.os(Y).children[H];var v;if(Y=(v=d==null?void 0:d.polymerController)!=null?v:d)r="data"+r.slice(C),typeof Y.notifyPath!=="function"?_.bx(new _.df("notifyPath missing",
this.is+": "+q+", "+Z)):w.value?Y.notifyPath(r,w.value):Y.notifyPath(r)},
stampDomArraySplices_:function(q,Z,w){if(w&&w.indexSplices){var r=this.getStampContainer_(Z);if(r){for(var Y=_.os(r),C=S$9(this.stampDom[q].reuseComponents),d=w.indexSplices.length,O=0;O<d;O++){for(var H=w.indexSplices[O],L=Y.children[H.index],S=H.removed.length;S>0;S--)L&&L.parentElement&&(_.os(L.parentElement).removeChild(L),C&&jm9(L),L=Y.children[H.index]);S=this.stampDom[q].mapping;for(var v=H.index+H.addedCount,R=document.createDocumentFragment(),B=C,n=H.index;n<v;n++){var x=H.object[n],K=opO(S,
x);if(K){var k=S[K];x=x[K];K=this.getComponentName_(k,x);var G=L?cJ.has(L):!1;B&&L&&L.is==K&&G?(K=L,this.telemetry_.reuse++,L=L.nextElementSibling):B&&L&&G?(K=this.createComponent_(k,x,C),G=_.os(L).nextElementSibling,Y.insertBefore(K,G),R4j(this.is,Y,L,C),L=G):(B=!1,K=this.createComponent_(k,x,C),R.appendChild(K));this.deferRenderStamperBinding_(K,k,x)}else k=new _.df("Unimplemented type",q,Z,r.tagName,Object.keys(x)[0]),_.tY(k)}Y.insertBefore(R,L)}this.flushRenderStamperComponentBindings_();this.stampDom[q].events&&
_.hy(this.hostElement,"yt-rendererstamper-finished",{container:r})}else q=new _.df("Container object not found",Z,this.hostElement?this.hostElement.is:""),_.tY(q)}},
stampDomArray_:function(q,Z,w,r,Y,C){var d=this.getStampContainer_(Z);if(d)if(Z=_.os(d),r=S$9(r),q){var O=0,H=0,L;if(C=C===void 0?_.BF("STAMPER_STABLE_LIST",!1):C||!1)for(L=Z.firstElementChild;L&&!cJ.has(L)&&q.length>H;){C=q[H];var S=opO(w,C);if(S){if(this.getComponentName_(w[S],C[S])!=L.is){var v=this.createComponent_(w[S],C[S],r),R=_.os(L).nextElementSibling;R?Z.insertBefore(v,R):Z.appendChild(v);R4j(this.is,Z,L,r);L=v}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(L,w[S],C[S]);O++;
H++;L=_.os(L).nextElementSibling}else H++}bJj(this.is,Z,O,r);O=L;if(q.length>H){C=document.createDocumentFragment();for(S=q.length;H<S;H++)if(v=q[H],R=opO(w,v))L=this.createComponent_(w[R],v[R],r),this.deferRenderStamperBinding_(L,w[R],v[R]),C.appendChild(L);O&&_.os(O).parentNode&&L&&!cJ.has(L)?Z.insertBefore(C,O):Z.appendChild(C)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();Y&&_.hy(this.hostElement,"yt-rendererstamper-finished",{container:d})}else bJj(this.is,Z,0,
r);else q=new _.df("Container object not found",Z,this.hostElement?this.hostElement.is:""),_.tY(q)},
getStampContainer_:function(q){return this.$&&this.$[q]||_.E(this.hostElement).querySelector("#"+q)},
getComponentName_:function(q,Z){return typeof q==="string"?q:q.matcher?q.matcher.call(this,Z):q.component},
createComponent_:function(q,Z,w){q=this.getComponentName_(q,Z);try{var r=MT.has(q)||cp.has(q);if(w&&!r){var Y=_.xb(q);try{_.po(Y)}catch(C){w="Failed to clear styles for "+q+".",C.message&&(w+=" Original error: "+C.message),_.bx(new _.df(w))}}else Y=document.createElement(q)}catch(C){return Y="YtRendererStamperBehavior failed to create "+q+".",C.message&&(Y+=" Original description: "+C.message),C.message="YtRendererStamperBehavior failed to create element",_.JY(C,Y),vRp.hasOwnProperty(q)?_.bx(C):_.tY(C),
document.createElement("SPAN")}this.telemetry_.create++;return Y},
deferRenderStamperBinding_:function(q,Z,w){this.deferredBindingTasks_.push({component:q,typeOrConfig:Z,data:w})},
flushRenderStamperComponentBindings_:function(){for(var q=0,Z=this.deferredBindingTasks_.length;q<Z;q++){var w=this.deferredBindingTasks_[q];if(!w)break;var r=void 0,Y=void 0,C=void 0,d=void 0,O=w.component,H=w.typeOrConfig;w=w.data;var L=(d=O.polymerController)!=null?d:O;d=O.loggingStatus;try{d&&(d.isRendererStamper=!0);if(typeof H!=="string"){for(C in H.attributes)H.attributes[C]===!0?O.setAttribute(C,""):H.attributes[C]===!1?O.removeAttribute(C):O.setAttribute(C,H.attributes[C]);for(Y in H.params)L[Y]=
H.params[Y],O!==L&&wx(O.localName,Y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(r in H.properties){var S=H.properties[r];if(S){var v=LC2(S);L[r]=this.get(v);O!==L&&wx(O.localName,r,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(r==="on-tap"||r==="on-click"){var R=this.get(v);O.addEventListener("click",R);vpj.set(O,{property:r,listener:{type:"element",eventName:"click",handler:R}})}}else{var B=new _.df("Undefined property binding",r);_.tY(B)}}}if(H.classListBinding){var n=LC2(H.classListBinding),
x=n?this[n]:null;if(x)for(r=0;r<x.length;r++)_.NZ(O,x[r],!0)}L.data=w}finally{d&&(d.isRendererStamper=!1)}if(r=cJ.get(O))O.hidden=!1,cJ.delete(O),_.v5.cancelJob(r)}this.deferredBindingTasks_.length=0}}];_.KK={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(q){for(var Z=_.UU.getInstance(),w=_.P(Object.keys(q)),r=w.next();!r.done;r=w.next()){var Y=r.value;r=q[Y];if(this&&this[r]){var C=Z.actionRoutingMap.get(Y);C||(C=new Map,Z.actionRoutingMap.set(Y,C));Z.registerActionHandler(this,Y,this[r].bind(this),C)}else Y=Error("id"),Y.params=r,_.ns(Y)}},
unregisterActionMap:function(q){_.Kb(_.UU.getInstance(),q,this)}}]};var Nx=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_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"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:79,lazyLoad:!1}],["LIKE_VALENTINES25_HEART",{name:"animated_like_valentines25_heart_light",nameDarkTheme:"animated_like_valentines25_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_VALENTINES25_BROKEN_HEART",{name:"animated_like_valentines25_broken_heart_light",nameDarkTheme:"animated_like_valentines25_broken_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_BROKEN_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_YOUTUBE_20TH_BIRTHDAY",{name:"animated_like_youtube_20th_birthday_light",nameDarkTheme:"animated_like_youtube_20th_birthday_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_light.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_dark.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}]]);var FA;var lm=new Map;var cdN=window.matchMedia("(forced-colors: active)").matches;var jM7;var tcK;var l6T=new _.F$("LOTTIE_LOADER_TOKEN");_.mD(GN9);_.xc(_.xl(function(q){return _.u("ytd-lottie-player",{id:q.id,hidden:q.hidden,class:q.className,"aria-label":q.ariaLabel,style:"display: block;"},_.u(_.pn,{data:q.data,animationName:function(){var Z;return((Z=q.data().animationConfig)==null?void 0:Z.name)||""},
animationRef:function(){return q.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.zG,
id:_.zG,hidden:_.zG,className:_.zG,ariaLabel:_.zG}});var RXW=function(){var q=_.N.apply(this,arguments)||this;q.animationRef={};return q};
_.z(RXW,_.N);_.e=RXW.prototype;
_.e.handlePropertyChange=function(){var q=this.animatedIcon,Z=this.active,w=this.isDarkTheme;if(q){var r=this.previousActive!==Z;this.previousActive=Z;this.animationRef.lottieEl?r&&this.toggleAnimation(Z,q.totalFrames):Z?this.initializeAnimationAsToggled(q.lottiePlayerProps,q.totalFrames):this.initializeAnimationAsUntoggled(q.lottiePlayerProps);q.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=q.type;this.lottiePlayerProps=this.computeLottiePlayerProps(q,w)}};
_.e.computeLottiePlayerProps=function(q,Z){var w=this.deepCloneLottiePlayerProps(q);Z?(Z=q.nameDarkTheme,q=q.pathDarkTheme):(Z=q.name,q=q.path);w.animationConfig.name=Z;(Z=lm.get(q))?w.animationConfig.animationData=Z:w.animationConfig.path=q;return w};
_.e.initializeAnimationAsToggled=function(q,Z){q.animationConfig.initialSegment=[Z-1,Z]};
_.e.initializeAnimationAsUntoggled=function(q){q.animationConfig.initialSegment=void 0};
_.e.toggleAnimation=function(q,Z){if(q){var w;(w=this.animationRef.lottieEl)==null||w.playSegments([0,Z],!0)}else{var r;(r=this.animationRef.lottieEl)==null||r.playSegments([0,1],!0)}};
_.e.deepCloneLottiePlayerProps=function(q){var Z=Object.assign({},q.lottiePlayerProps.animationConfig);q=Object.assign({},q.lottiePlayerProps);q.animationConfig=Z;return q};
var sY=RXW;sY.prototype.handlePropertyChange=sY.prototype.handlePropertyChange;_.X([_.F(),_.A("design:type",Object)],sY.prototype,"animatedIcon",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],sY.prototype,"active",void 0);_.X([_.F(),_.A("design:type",Boolean)],sY.prototype,"isDarkTheme",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],sY.prototype,"animatedIconType",void 0);_.X([_.F(),_.A("design:type",Boolean)],sY.prototype,"previousActive",void 0);
_.X([_.F(),_.A("design:type",Object)],sY.prototype,"lottiePlayerProps",void 0);_.X([_.F(),_.A("design:type",Object)],sY.prototype,"animationRef",void 0);_.X([_.M("animatedIcon","active","isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sY.prototype,"handlePropertyChange",null);sY=_.X([_.dx({is:"yt-animated-icon",disableElementRegistration:!0})],sY);
_.p(sY,"yt-animated-icon",function(){if(tcK===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;jM7===void 0&&(jM7=document.createElement("template"));var r=jM7;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);tcK=q}q=tcK;return q},{mode:2});var bwh;var JF1;var mVI=_.xl(function(q){var Z=_.cO(),w=vF(function(){return{value:null}});
_.SG(function(){var H;(H=w.value)==null||H.cancel()});
var r=_.$6(function(){return q.data().iconName},void 0,"dGBPh"),Y=_.$6(function(){return q.data().iconStyle},void 0,"ipXHMb"),C=_.$6(function(){return q.data().iconSize},void 0,"oPwZue"),d=_.$6(function(){return q.data().iconSelected},void 0,"fKE56d"),O=_.$6(function(){return q.data().iconSetName},void 0,"yCb9md");
_.L7(function(){var H={iconName:r(),iconStyle:Y(),iconSize:C(),iconSelected:d(),iconSetName:O()},L,S=(L=q.options)==null?void 0:L.call(q),v;L=(v=q.iconManager)==null?void 0:v.call(q);XS9(Z,w,H,S,L)});
return _.u("span",{class:"yt-icon-shape",el:Z})},"i");
mVI.idomCompat=!0;var mE2=["youtube_fill","youtube_outline"];var zX7=new _.Wt({type:"iconset",value:void 0}),BOW=function(){var q=_.N.apply(this,arguments)||this;q.isDarkTheme=document.documentElement.hasAttribute("dark");q.iconName="";q.iconsetName="yt-icons";q.iconset=null;q.missingIconSet=!1;q.iconType=null;q.iconShapeDataSignal=_.qo(void 0,void 0,"RQ9kUb");q.renderingOptionsSignal=_.qo({iconWidth:"100%",iconHeight:"100%",iconFilter:q.iconFilter},void 0,"qtx8Ef");q.wizHasRendered=!1;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.z(BOW,_.N);_.e=BOW.prototype;_.e.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.isDarkTheme=q)};
_.e.handlePropertyChange=function(){var q=this,Z,w,r,Y,C,d,O,H,L,S,v;return _.V(function(R){switch(R.nextAddress){case 1:if(Z=!q.icon&&!q.iconName||!q.isAttached)return R.return();w=q;r=w.icon;Y=w.size;C=w.defaultToFilled;d=w.active;O=w.targetContainer;q.toggleContainerClass(O);_.b("kevlar_use_wil_icons")&&r&&(H=S02(r),H.length?_.b("kevlar_icon_type_fix_killswitch")?(L=H[1].toUpperCase(),q.iconType=l7W[L],q.iconType||(q.iconType=H[1])):q.iconType=H[1]:q.iconType=null);if(r){R.jumpTo(2);break}q.iconsetName=
"";q.iconName="";return _.W(R,q.renderIcon(O,r),3);case 3:return R.return();case 2:S=q.computeIcon(r);v=S02(S);v.length&&(q.iconsetName=v[0],q.iconName=v[1]);if(!_.b("kevlar_use_wil_icons")){R.jumpTo(4);break}return _.W(R,q.getIconShapeData(),5);case 5:q.iconShapeData=R.yieldResult;case 4:if(q.shouldRenderIconShape(O)){R.jumpTo(6);break}return _.W(R,q.determineIconSet(S,d,C,Y,O),6);case 6:return _.W(R,q.renderIcon(O,r),0)}})};
_.e.toggleContainerClass=function(q){q?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.e.computeIcon=function(q){return!_.b("default_to_innertube_icon")||q.indexOf(":")>0?q:_.Xl(q)};
_.e.determineIconSet=function(q,Z,w,r){var Y=this;return _.V(function(C){return C.nextAddress==1?_.b("kevlar_system_icons")||_.zj("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.zj("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.W(C,Y.switchToYtSysIconset(q,Z,w,r),3):C.jumpTo(2):C.nextAddress!=2?C.return():_.W(C,Y.useYtSysIconsetForMissingIcons(q,Z,w,r),0)})};
_.e.switchToYtSysIconset=function(q,Z,w,r){var Y=this,C,d,O,H,L,S,v;return _.V(function(R){switch(R.nextAddress){case 1:if(!q||Y.iconsetName!=="yt-icons"&&Y.iconsetName!=="yt-sys-icons"){R.jumpTo(0);break}C=S02(q);d=C[1];d=_.nRX(d);_.b("enable_polymer_icons_replace_underscores_dash")&&d.includes("_filled")&&(d=d.replace(/_filled/g,"-filled"));return _.W(R,p5(d,!0),3);case 3:return O=R.yieldResult,_.W(R,p5(d,!1),4);case 4:if((H=R.yieldResult)||Z&&O)Y.iconsetName="yt-sys-icons";Y.iconName=Y.getIconName(d,
Z,w,H,O);if(r===24){R.jumpTo(0);break}L="yt-sys-icons"+r+":"+Y.iconName;return _.W(R,p5(L,!1,!0),6);case 6:return S=R.yieldResult,_.W(R,p5(L,!0,!0),7);case 7:v=R.yieldResult;Y.iconName=Y.getIconName(d,Z,w,S,v);if(!Z&&S||Z&&v)Y.iconsetName="yt-sys-icons"+r;_.ub(R)}})};
_.e.getIconName=function(q,Z,w,r,Y){q.includes("-filled")&&(q=q.replace("-filled",""));return Y&&(Z||w)?q+"-filled":q};
_.e.useYtSysIconsetForMissingIcons=function(q,Z,w,r){var Y=this,C,d;return _.V(function(O){if(O.nextAddress==1)return Y.iconsetName!=="yt-icons"?O.jumpTo(0):_.W(O,p5(Y.iconName,!1,!1,!0),3);if(O.nextAddress!=4)return C=O.yieldResult,_.W(O,p5(Y.iconName,!1),4);d=O.yieldResult;if(C||!d)return O.jumpTo(0);Y.iconsetName="yt-sys-icons";return _.W(O,Y.switchToYtSysIconset(q,Z,w,r),0)})};
_.e.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.e.getIconManager=function(){return _.V(function(q){try{return q.return(_.t().resolve(_.my))}catch(Z){return q.return(new Promise(function(w){_.zB().parkOrScheduleJob(function(){w(_.t().resolve(_.my))},2,"ci")}))}})};
_.e.getIconShapeData=function(){var q=this,Z,w,r,Y,C,d;return _.V(function(O){if(O.nextAddress==1){if(!q.iconType)return O.return(void 0);Z=q.iconType.toLowerCase();w=Z.endsWith("_filled")||Z.endsWith("-filled");return _.W(O,q.getIconManager(),2)}r=O.yieldResult;Y=q.active||q.defaultToFilled||w?"youtube_fill":"youtube_outline";C={iconName:Z,iconStyle:Y,iconSize:q.size,iconSetName:q.iconsetName};d=!!r.resolveIcon(C);d||(C.iconSize=void 0,d=!!r.resolveIcon(C));!d&&w&&(C.iconName=Z.substring(0,Z.length-
7),C.iconSize=q.size,d=!!r.resolveIcon(C),d||(C.iconSize=void 0,d=!!r.resolveIcon(C)));d||(C.iconStyle=void 0,d=!!r.resolveIcon(C));d||_.bx(new _.df("Icon not supported",{iconName:C.iconName,iconStyle:C.iconStyle,iconSize:C.iconSize,iconType:Z}));return O.return(d?C:void 0)})};
_.e.shouldRenderIconShape=function(q){if(!_.b("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;q=this.getContainer(q);return!MmT(q,this.icon)};
_.e.renderIcon=function(q,Z){var w=this,r,Y,C,d,O,H,L,S;return _.V(function(v){switch(v.nextAddress){case 1:if(Z&&w.icon!==Z)return v.return();r=w.getContainer(q);Y=MmT(r,w.icon);if(w.shouldRenderIconShape(q)&&w.iconType)return w.applyIconShape(Y,r),v.return();w.removeIconShape();if(!r)return v.return();w.iconName===""&&w.iconset&&r&&(w.removeStaticIcon(w.iconset,r),Y&&w.removeAnimatedIcon(r));if(w.iconName===""&&w.iconset||!w.iconsetName||!zX7)return v.return();w.iconset=zX7.byKey(w.iconsetName);
if(!w.iconset)return w.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.XN(w,w.onIconsetAdded)),v.return();w.missingIconSet&&(w.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.XN(w,w.onIconsetAdded)));d=(C=Y||w.isAnimatedIcon?I66(w.icon):void 0)&&!C.lazyLoad;H=C&&((O=C)==null?void 0:O.lazyLoad)&&(C.lottiePlayerProps.animationConfig.animationData?!0:lm.get(w.isDarkTheme?C.pathDarkTheme:C.path)?!0:!1);if(d||H)return w.applyAnimatedIcon(r,C,w.iconset),v.return();if(H||
(L=C)==null||!L.lazyLoad){v.jumpTo(2);break}S=Nwj(C,w.isDarkTheme);w.applyStaticIcon(w.iconset,r,w.iconName,q,Y);return _.W(v,S,3);case 3:return _.W(v,w.renderIcon(w.targetContainer,w.icon),4);case 4:return v.return();case 2:w.applyStaticIcon(w.iconset,r,w.iconName,q,Y),_.ub(v)}})};
_.e.getContainer=function(q){var Z,w=(Z=rO9(this.hostElement))==null?void 0:Z.host;Z=!!w&&!!w.polymerController;if(!q||Z)return q?this.getTargetContainer(q,w):this.hostElement};
_.e.getTargetContainer=function(q,Z){var w=_.E(Z).querySelector("#"+q);w||(q=new _.df("yt-icon container missing",Z.is,q),_.tY(q));return w};
_.e.applyStaticIcon=function(q,Z,w,r,Y){Y&&this.removeAnimatedIcon(Z);this.removeIconShape();Y=Y&&!!this.iconType&&!!this.iconShapeData&&_.b("kevlar_use_wil_icons");try{Y?this.applyIconShape(!1,Z):q.applyIcon(Z,w)}catch(C){this.handleError(C,r,Z)}};
_.e.applyIconShape=function(q,Z){this.iconset&&Z&&(this.removeStaticIcon(this.iconset,Z),q&&this.removeAnimatedIcon(Z));q={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var w=_.P(this.iconShapeDataSignal);Z=w.next().value;w=w.next().value;var r=_.P(this.renderingOptionsSignal),Y=r.next().value;r=r.next().value;w(this.iconShapeData);r(q);if(!this.wizHasRendered)for(this.wizHasRendered=!0,q=_.P(AdO(Z,Y)).next().value;q.firstChild;)_.E(this.hostElement).appendChild(q.firstChild)};
_.e.removeIconShape=function(){if(_.b("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.e.removeStaticIcon=function(q,Z){q.removeIcon(Z)};
_.e.applyAnimatedIcon=function(q,Z,w){this.removeStaticIcon(w,q);this.removeIconShape();var r;w=this.animatedIconElement&&((r=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:r.type)===Z.type;if(this.animatedIconElement&&w){this.animatedIconElement.polymerController.animatedIcon=Z;var Y;((Y=this.animatedIconElement)==null?void 0:Y.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(q),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=Z,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.b("kevlar_use_wil_icons")?q.insertBefore(this.animatedIconElement,q.childNodes[0]):(q=_.E(q),q.insertBefore(this.animatedIconElement,q.childNodes[0]))};
_.e.removeAnimatedIcon=function(q){_.b("kevlar_use_wil_icons")?this.animatedIconElement&&q.contains(this.animatedIconElement)&&q.removeChild(this.animatedIconElement):(q=_.E(q),this.animatedIconElement&&q.contains(this.animatedIconElement)&&q.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.e.handleError=function(q,Z,w){_.JY(q,this.iconName,Z,w);Z=MmT(w,this.icon);var r=!1;window.location.href.includes("JpymaW6Lh2w")?r=!0:w._svgIcon&&(w=(w=w._svgIcon.parentNode)?w.tagName:"unknown",_.JY(q,w),w==="YT-ICON"&&q.name==="NotFoundError"?r=!0:q.name==="NotFoundError"&&Z&&(r=!0));r?_.bx(q):_.tY(q)};
_.My.Object.defineProperties(BOW,{template:{configurable:!0,enumerable:!0,get:function(){if(JF1===void 0){var q=document.createElement("template");_.a(q,"\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");q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;
bwh===void 0&&(bwh=document.createElement("template"));var r=bwh;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);JF1=q}q=JF1;return q}}});
var IL=BOW;IL.prototype.handlePropertyChange=IL.prototype.handlePropertyChange;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],IL.prototype,"actionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",String)],IL.prototype,"icon",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],IL.prototype,"active",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],IL.prototype,"defaultToFilled",void 0);
_.X([_.F({value:!1}),_.A("design:type",Boolean)],IL.prototype,"isAnimatedIcon",void 0);_.X([_.F({value:24}),_.A("design:type",Number)],IL.prototype,"size",void 0);_.X([_.F({value:""}),_.A("design:type",String)],IL.prototype,"targetContainer",void 0);_.X([_.F(),_.A("design:type",Object)],IL.prototype,"animatedIconElement",void 0);_.X([_.F(),_.A("design:type",Object)],IL.prototype,"isDarkTheme",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],IL.prototype,"ariaHidden",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],IL.prototype,"ariaLabel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],IL.prototype,"role",void 0);_.X([_.F(),_.A("design:type",String)],IL.prototype,"style",void 0);_.X([_.F(),_.A("design:type",String)],IL.prototype,"iconFilter",void 0);
_.X([_.M("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],IL.prototype,"handlePropertyChange",null);IL=_.X([_.dx({is:"yt-icon",noInjection:!0})],IL);var a4D;var nR9=function(){var q=document.body,Z=q.appendChild;if(a4D===void 0){var w=document.createElement("template");_.a(w,'\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>');
a4D=w}w=a4D;Z.call(q,w.content)};
document.body?nR9():window.addEventListener("DOMContentLoaded",nR9);var QM2,ERv=function(){return QM2!==void 0?QM2:QM2=document.createElement("template")};
document.head.appendChild(ERv().content);var x5W,TOp=function(){return x5W!==void 0?x5W:x5W=document.createElement("template")};
document.head.appendChild(TOp().content);var U51;_.er=new _.F$("KEY_MANAGER_TOKEN");var iJT={duration:1E3,easing:"ease",fill:"forwards"};_.mD(yde);var kc7=_.mq(_.AE);_.mD(_.AE);_.w6=_.xl(function(q){var Z=_.Iw(q.ref),w=q.aTagConfig?q.aTagConfig:_.$6(function(){var C,d,O,H,L,S;var v=(S=_.oQ((H=q.command)==null?void 0:H.call(q)))!=null?S:(L=q.command)==null?void 0:L.call(q);return _.Ln({innertubeCommand:v,skipOnClick:(C=q.skipOnClick)==null?void 0:C.call(q),stopPropagation:(d=q.dangerousStopPropagation)==null?void 0:d.call(q),defaultTarget:(O=q.target)==null?void 0:O.call(q)})||{}},void 0,"gnrRge");
_.L7(function(){Z.value._data=w()._data;Z.value.params=w().params});
var r=_.fn(function(C){var d,O;return void((O=(d=w()).onpointerdown)==null?void 0:O.call(d,C))}),Y=_.fn(function(C){var d,O;
return void((O=(d=w()).onclick)==null?void 0:O.call(d,C))});
return _.u("a",{el:Z,href:function(){return w().href$},
rel:function(){return w().rel$},
class:function(){var C,d;return(d=w().className)!=null?d:(C=q.className)==null?void 0:C.call(q)},
style:function(){var C;if((C=q.style)==null?0:C.call(q))return q.style();var d;return((d=q.disabled)==null?0:d.call(q))?"pointer-events:none":""},
"aria-haspopup":function(){return!!w()["aria-haspopup$"]},
"force-new-state":Df(function(){return w()["force-new-state$"]}),
title:Df(function(){var C,d;return(d=w().title$)!=null?d:(C=q.title)==null?void 0:C.call(q)}),
role:Df(function(){return w().role$}),
target:Df(function(){return w().target$}),
dir:Df(function(){var C;return((C=q.dir)==null?0:C.call(q))?q.dir():w().dir}),
tabindex:function(){var C;return w().tabindex$?Number(w().tabindex$):(C=q.tabIndex)==null?void 0:C.call(q)},
"aria-hidden":function(){var C,d;return(d=w()["aria-hidden$"])!=null?d:(C=q.ariaHidden)==null?void 0:C.call(q)},
"aria-label":function(){var C,d;return(d=w()["aria-label$"])!=null?d:(C=q.ariaLabel)==null?void 0:C.call(q)},
"aria-current":q.ariaCurrent,"aria-labelledby":q.ariaLabelledby,"aria-describedby":q.ariaDescribedby,"aria-selected":q.ariaSelected,"tab-identifier":q.tabIdentifier,"on:pointerdown":r,"on:click":Y},q.children)},"j");var KRh=function(q,Z){this.fillAnimation=new Animation(gp2(q),document.timeline);this.strokeAnimation=new Animation(q9T(Z),document.timeline)};
KRh.prototype.play=function(){var q,Z;(Z=(q=this.fillAnimation).play)==null||Z.call(q);var w,r;(r=(w=this.strokeAnimation).play)==null||r.call(w)};
KRh.prototype.cancel=function(){var q,Z;(Z=(q=this.fillAnimation).cancel)==null||Z.call(q);var w,r;(r=(w=this.strokeAnimation).cancel)==null||r.call(w)};_.YB=_.xl(function(q){var Z=q.model;var w=q.pointerDownEvent;var r=q.pointerUpEvent;var Y=q.pointerLeaveEvent;q=_.Iw();var C=_.y1({"border-radius":function(){return Z().borderRadius}}),d=_.Iw(),O=_.Iw(),H=_.P(_.hE(function(){return(r==null?0:r())||(Y==null?0:Y())?!1:!(w==null||!w())||!1})),L=H.next().value,S=H.next().value,v=void 0,R=function(){!v&&O.value&&d.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(v=new KRh(O.value,d.value));
var k;(k=v)==null||k.play()},B=function(){var k;
(k=v)==null||k.cancel()},n=function(){var k;
(k=v)==null||k.cancel()};
_.L7(function(){(r==null?0:r())&&R()});
_.L7(function(){(w==null?0:w())&&B()});
_.L7(function(){(Y==null?0:Y())&&n()});
H=_.fn(function(){R();S(!1)});
var x=_.fn(function(){B();S(!0)});
_.MU(q,"pointerleave",function(){n();S(!1)});
_.SG(function(){if(v){var k;(k=v)==null||k.cancel();v=void 0}});
var K={};L=_.GL("yt-spec-touch-feedback-shape",function(){return wuN(Z().color)},(K["yt-spec-touch-feedback-shape--focused"]=function(){return!!Z().focused&&!Z().disabled},K["yt-spec-touch-feedback-shape--circular"]=function(){return!!Z().circular},K["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!Z().isExtended},K["yt-spec-touch-feedback-shape--down"]=L,K["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!Z().triggerEvents},K));
return _.u("yt-touch-feedback-shape",{style:_.y1({"border-radius":"inherit"})},_.u("div",{el:q,class:L,style:_.y1({"margin-top":function(){return Z().customTopExtend?"-"+Z().customTopExtend+"px":void 0}}),
"on:mousedown":x,"on:mouseup":H,"on:touchstart":x,"on:touchend":H,"aria-hidden":!0},_.u("div",{class:"yt-spec-touch-feedback-shape__stroke",style:C,el:d}),_.u("div",{class:"yt-spec-touch-feedback-shape__fill",style:C,el:O})))},"k");
_.YB.idomCompat=!0;var sMg={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 cE=_.jO();cE=cE.toLowerCase();if(_.uN(cE,"android")){var I4v=cE.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);I4v&&parseFloat(I4v[1])<100||cE.match("("+Object.keys(sMg).join("|")+")")};var cF1=_.xl(function(q){return _.u(_.PF,{cond:q.aTagConfig,then:function(Z){return _.u(_.w6,{aTagConfig:Z,disabled:q.disabled,className:q.className,style:q.style,title:q.title,ariaLabel:q.ariaLabel,ariaCurrent:function(){var w,r;return((w=q.toggleable)==null?void 0:w.call(q))&&((r=q.toggled)==null?void 0:r.call(q))}},q.children)},
else:function(){return _.u("button",{"on:click":_.fn(function(Z){var w;return(w=q.onClick)==null?void 0:w.call(q,Z)}),
class:q.className,title:q.title,style:q.style,disabled:q.disabled,"aria-pressed":function(){var Z,w;return((Z=q.toggleable)==null?0:Z.call(q))?!((w=q.toggled)==null||!w.call(q)):void 0},
"aria-label":q.ariaLabel,"aria-disabled":q.visiblyDisabled,"aria-hidden":q.ariaHidden,tabindex:q.tabIndex},q.children)}})},"l"),FR7=_.xl(function(q){var Z=q.data;
var w=q.hasIconLeading;var r=q.hasIconLeadingTrailing;var Y=q.hasIconTrailing;var C=q.iconButton;var d=q.iconClassName;var O=q.secondaryIconClassName;var H=q.icon;var L=q.secondaryIcon;var S=q.textContentClassName;return _.u(Mn,{className:"",style:"display: inherit; justify-content: center"},_.u(_.PF,{cond:function(){return H&&(w()||r()||(C==null?void 0:C()))},
then:function(){return _.u(Mn,null,_.u("div",{class:d,"aria-hidden":"true"},H==null?void 0:H()))}}),_.u(_.PF,{cond:function(){return(Z().buttonText||Z().animatedTextProps||Z().formattedButtonText)&&!(C==null?0:C())},
then:function(){return _.u(Mn,null,_.u(Mch,{className:S,iconPosition:function(){return Z().iconPosition},
text:function(){return Z().buttonText},
oneOffCustomTextWrap:function(){return Z().oneOffCustomTextWrap},
formattedButtonText:function(){return Z().formattedButtonText},
animatedTextProps:function(){return Z().animatedTextProps}}))}}),_.u(_.PF,{cond:Y,
then:function(){return _.u(Mn,null,_.u("div",{class:d},H==null?void 0:H()))}}),_.u(_.PF,{cond:r,
then:function(){return _.u(Mn,null,_.u("div",{class:O},L==null?void 0:L()))}}),_.u(_.PF,{cond:function(){return!Z().disabled&&!0},
then:function(){return _.u(_.YB,{model:function(){return{color:exN(Z())}}})}}))},"m"),Mch=_.xl(function(q){var Z=function(){var w,r;
return((w=q.iconPosition)==null?void 0:w.call(q))==="icon-with-label"||((r=q.oneOffCustomTextWrap)==null?void 0:r.call(q))};
return _.u("div",{class:q.className,"aria-hidden":function(){var w,r,Y;return((w=q.ariaHidden)==null?void 0:w.call(q))&&(!((r=q.animatedTextProps)==null||!r.call(q))||!((Y=q.formattedButtonText)==null||!Y.call(q)))}},_.u(_.Oq,null,_.u(_.VV,{when:function(){var w;
return(w=q.animatedTextProps)==null?void 0:w.call(q)}},function(){return _.u(kc7,{numberText:function(){return q.animatedTextProps().numberText},
numberValue:function(){return q.animatedTextProps().numberValue},
heightPx:function(){return q.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return q.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return q.animatedTextProps().shouldAnimate},
forceRollUp:function(){return q.animatedTextProps().forceRollUp}})}),_.u(_.VV,{when:function(){var w;
return(w=q.formattedButtonText)==null?void 0:w.call(q)}},function(){return _.u(_.r6,{text:function(){return Object.assign({},q.formattedButtonText(),{lineBreakMode:Z()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":q.formattedButtonText().lineBreakMode,
alignment:Z()?"TEXT_ALIGNMENT_CENTER":q.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!Z()}})}),_.u(_.lj9,null,function(){return q.text})))},"n"),NOg=_.xl(function(q){return _.u(_.PF,{cond:q.hasLabel,
then:function(){var Z;return _.u("label",{class:q.className},q.children,(Z=q.textContent)==null?void 0:Z.call(q))},
else:function(){return q.children}})},"o"),Mn=_.xl(function(q){return q.children},"p");var C2T=G1("stamper-context");_.mD(Lpj);var X_=_.xl(function(q){var Z=q.data;var w=q.icon;var r=q.iconName;var Y=q.secondaryIcon;var C=q.secondaryIconName;var d=q.focusedOverride;dGX();var O=rMT(Z),H=O.size,L=O.style;q=O.disabled;var S=O.onTap,v=O.alignByText,R=O.aTagConfig,B=O.customColors,n=O.segmentedPosition,x=O.toggled,K=O.toggleable,k=O.accessibilityLabel,G=O.onToggle,rz=O.iconPosition,f=O.oneOffCustomTextWrap,eO=O.disableTextEllipsis,g=O.tooltipText,H6=O.ariaHidden,nX=O.tabIndex,Qj=O.buttonText,SO=O.formattedButtonText,Te=O.animatedTextProps,
Ze=$GT(Z,w,Y,r,C,d),W1=Ze.type;w=Ze.shouldFocus;r=Ze.hasIconLeading;Y=Ze.hasIconTrailing;C=Ze.hasIconLeadingTrailing;var A2=Ze.hasIconOnly;d=Ze.hasIconOnly40;var f9=Ze.hasIconWithLabel;O=Ze.iconButton;var Dl=Ze.visiblyDisabled,$g=Ze.overrideSmallSizeIcon,De=Ze.iconToRender;Ze=Ze.secondaryIconToRender;var n9={},Rh={};return _.u(NOg,{className:_.GL("yt-spec-button-shape-with-label",(n9["yt-spec-button-shape-with-label--is-overlay"]=function(){return L()==="overlay"||L()==="overlay-dark"},n9)),
hasLabel:f9,textContent:function(){return _.u(Mch,{text:Qj,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:f,iconPosition:rz,formattedButtonText:SO,animatedTextProps:Te})}},_.u(cF1,{aTagConfig:R,
className:_.GL("yt-spec-button-shape-next",function(){return VBj(W1())},function(){return Dl()?void 0:OFT(L())},function(){return HF6(H())},(Rh["yt-spec-button-shape-next--disabled"]=Dl,Rh["yt-spec-button-shape-next--focused"]=w,Rh["yt-spec-button-shape-next--icon-trailing"]=Y,Rh["yt-spec-button-shape-next--icon-leading"]=r,Rh["yt-spec-button-shape-next--icon-leading-trailing"]=C,Rh["yt-spec-button-shape-next--icon-button"]=function(){return A2()||f9()},Rh["yt-spec-button-shape-next--icon-only-default"]=
d,Rh["yt-spec-button-shape-next--align-by-text"]=v,Rh["yt-spec-button-shape-next--segmented-start"]=function(){return n()==="start"},Rh["yt-spec-button-shape-next--segmented-end"]=function(){return n()==="end"},Rh["yt-spec-button-shape-next--override-small-size-icon"]=$g,Rh["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=f,Rh["yt-spec-button-shape-next--disable-text-ellipsis"]=eO,Rh["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=Cre(),Rh)),
style:function(){return WpN(B()).style},
onClick:function(xg){S==null||S(xg);K()&&(G==null||G(xg))},
disabled:q,ariaLabel:k,toggleable:K,toggled:x,title:function(){var xg;return(xg=g())!=null?xg:""},
visiblyDisabled:Dl,ariaHidden:H6,tabIndex:nX},_.u(FR7,{data:Z,hasIconLeading:r,hasIconLeadingTrailing:C,hasIconTrailing:Y,iconButton:O,icon:De,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:Ze})))},"q");
X_.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var l4D=_.xl(function(q){var Z=q.data;var w=q.id;var r=q.hidden;var Y=q.disableUpgrade;var C=q.className;var d=q.icon;var O=q.secondaryIcon;var H=q.iconName;var L=q.secondaryIconName;q=_.P(_.qo(!1,void 0,"O7k8w"));var S=q.next().value,v=q.next().value,R=function(){var n=_.t().resolve(_.Gj(_.er));n&&v(n.isKeyBoardInUse())},B=function(){v(!1)};
q=_.Iw(function(n){if((Y==null||!Y())&&_.t().resolve(_.Gj(_.er)))return n.addEventListener("focusin",R),n.addEventListener("focusout",B),function(){n.removeEventListener("focusin",R);n.removeEventListener("focusout",B)}});
return _.u("yt-button-shape",{el:q,id:w,class:C,hidden:function(){return(r==null?void 0:r())||(Y==null?void 0:Y())}},_.u(_.PF,{cond:function(){return!(Y==null?0:Y())},
then:function(){return _.u(X_,{data:Z,icon:d,secondaryIcon:O,iconName:H,secondaryIconName:L,focusedOverride:S})}}))},"r");
_.b("web_wiz_button_shape")&&_.xc(l4D,"yt-button-shape",{props:{data:_.zG,id:_.zG,hidden:_.zG,disableUpgrade:_.zG,className:_.zG,icon:_.EL,secondaryIcon:_.EL,iconName:_.zG,secondaryIconName:_.zG},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss"])});var Fp=function(){var q=_.N.apply(this,arguments)||this;q.keyboardFocused=!1;return q};
_.z(Fp,_.N);Fp.prototype.onFocus=function(){var q=_.t().resolve(_.Gj(_.er));q&&(this.keyboardFocused=q.isKeyBoardInUse())};
Fp.prototype.onBlur=function(){this.keyboardFocused=!1};
Fp.prototype.renderIdom=function(){var q=this;if(this.data){var Z=S9e(this.data,!!this.iconName),w=vGO(this.data);this.data.focused=this.keyboardFocused;JM1(this.data,function(){var r;PJ("yt-icon",{icon:q.iconName,active:(r=q.data)==null?void 0:r.toggled,size:Z,style:"width: "+Z+"px; height: "+Z+"px;",iconFilter:w},Uu)},function(){var r;
PJ("yt-icon",{icon:q.secondaryIconName,active:(r=q.data)==null?void 0:r.toggled,size:Z,style:"width: "+Z+"px; height: "+Z+"px;",iconFilter:w},Uu)});
_.hy(this.hostElement,"yt-renderidom-finished")}};
_.My.Object.defineProperties(Fp,{template:{configurable:!0,enumerable:!0,get:function(){if(U51===void 0){var q=document.createElement("template");_.a(q,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\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.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);q.content.insertBefore(TOp().content.cloneNode(!0),q.content.firstChild);q.content.insertBefore(ERv().content.cloneNode(!0),q.content.firstChild);U51=q}q=U51;return q}}});
var Nn=Fp;Nn.prototype.onBlur=Nn.prototype.onBlur;Nn.prototype.onFocus=Nn.prototype.onFocus;_.X([_.U(dq9),_.A("design:type",Object)],Nn.prototype,"ytIdomTemplatingBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Nn.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],Nn.prototype,"iconName",void 0);_.X([_.F(),_.A("design:type",String)],Nn.prototype,"secondaryIconName",void 0);_.X([_.F(),_.A("design:type",Object)],Nn.prototype,"keyboardFocused",void 0);
_.X([_.m2("focusin"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nn.prototype,"onFocus",null);_.X([_.m2("focusout"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nn.prototype,"onBlur",null);Nn=_.X([_.dx({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.b("web_wiz_button_shape")})],Nn);_.xc(_.xl(function(q){function Z(){w().seconds&&C(qYI({seconds:Number(w().seconds)-Date.now()/1E3}))}
var w=q.targetTimestamp;q=q.className;var r=_.P(_.qo("",void 0,"U1Q8Ae")),Y=r.next().value,C=r.next().value;_.oz(function(){Z();var d=setInterval(function(){Z()},1E3);
_.SG(function(){clearInterval(d)})});
return _.u("yt-countdown",{class:_.GL("ytCountDownHost",q)},_.u("div",null,Y))},"s"),"yt-countdown",{props:{targetTimestamp:_.zG,
className:_.EL}});_.vx=_.xl(function(q){var Z=q.data;var w=q.className;var r=q.style;var Y=q.useOutlinedIcon;var C=q.buttonOverrides;var d=q.animatedTextProps;var O=q.onClick;var H=_.Iw(function(x){return function(){q7J(_.DK(),x)}}),L=function(){return Z().iconName},S=function(){var x=Z();
var K=C==null?void 0:C(),k=d==null?void 0:d();if(x){var G=aE2(x.type);var rz=!!x.title||!!x.titleFormatted;var f=!(!x.iconName&&!x.iconImage);rz=f&&!rz?"icon-only":f?x.iconTrailing||x.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;rz==="icon-only-40"&&(G="text");var eO,g=(eO=K==null?void 0:K.disabled)!=null?eO:x.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||x.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";eO=Object;f=eO.assign;var H6=x.title,nX=x.titleFormatted;k=
k&&k.numberText&&!isNaN(Number(k.numberValue))?k:void 0;var Qj=x.accessibilityText,SO=BVO(x.style),Te=nGI(x.state),Ze=QfT(x.buttonSize),W1=zxI(x,H,g,O);g=g&&!x.onDisabledTap;var A2=_.Ln({elementsCommand:x.onTap,forceNewState:!0});A2=b8e(A2)?A2:void 0;var f9=x.customFontColor;var Dl=x.customBackgroundColor,$g=x.customBorderColor;f9={color:f9?_.uq(f9):void 0,backgroundColor:Dl?_.uq(Dl):void 0,borderColor:$g?_.uq($g):void 0};x=f.call(eO,{},{buttonText:H6,formattedButtonText:nX,animatedTextProps:k,accessibilityLabel:Qj,
style:SO,type:G,state:Te,size:Ze,iconPosition:rz,onTap:W1,disabled:g,aTagConfig:A2,customColors:f9,tooltipText:x.tooltip},K)}else x={style:"mono",type:"text",state:"active",size:"M"};x.focused=n();return x},v=function(){return S9e(S(),!!Z().iconName)};
q=_.P(_.qo(!1,void 0,"ioMAtf"));var R=q.next().value,B=q.next().value,n=R;q=_.fn(function(){var x=_.t().resolve(_.Gj(_.er));x&&B(x.isKeyBoardInUse());return!1});
R=_.fn(function(){B(!1);return!1});
_.L7(function(){var x,K=_.J(Z==null?void 0:(x=Z())==null?void 0:x.onVisible,_.WJ);K&&_.um(K,{disableClickTracking:!0})});
_.Ls(function(){H.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var x=Z().targetId;x&&_.wwv(_.DK(),x,H.value)});
return _.u("button-view-model",{el:H,class:_.GL("yt-spec-button-view-model",w),"on:focusin":q,"on:focusout":R},_.u(_.PF,{cond:function(){return Z().iconImage?{sources:[Z().iconImage]}:void 0},
then:function(x){return _.u(X_,{data:S,icon:function(){return _.u(_.aQ,{data:x,alt:"",targetWidth:v,targetHeight:v,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.u(X_,{data:S,icon:function(){return _.u(_.q0,{icon:L,active:function(){return(Y==null?0:Y())?!1:S().toggled},
animateIcon:function(){var x;return!!(r==null?0:(x=r())==null?0:x.animateIcon)},
size:v})}})}}))},"t");
_.vx.idomCompat={callbacks:{onClick:!0}};_.xc(_.xl(function(q){return _.u("yt-button-view-model",{id:q.id,class:_.GL(q.scopingClassName,q.classes),icon:function(){var Z;return(Z=q.icon)==null?void 0:Z.call(q)},
"dialog-dismiss":function(){var Z;return((Z=q.dialogDismiss)==null?0:Z.call(q))?"":void 0}},_.u(_.vx,{data:function(){var Z;
return(Z=q.data)==null?void 0:Z.call(q)},
className:function(){var Z;return(Z=q.className)==null?void 0:Z.call(q)},
style:function(){var Z;return(Z=q.style)==null?void 0:Z.call(q)},
useOutlinedIcon:function(){var Z;return(Z=q.useOutlinedIcon)==null?void 0:Z.call(q)},
buttonOverrides:function(){var Z;return(Z=q.buttonOverrides)==null?void 0:Z.call(q)},
animatedTextProps:function(){var Z;return(Z=q.animatedTextProps)==null?void 0:Z.call(q)},
onClick:function(Z){var w;return(w=q.onClick)==null?void 0:w.call(q,Z)}}))},"u"),"yt-button-view-model",{props:{data:_.zG,
className:_.zG,style:_.zG,useOutlinedIcon:_.zG,buttonOverrides:_.zG,animatedTextProps:_.zG,onClick:_.EL,scopingClassName:_.zG,id:_.zG,icon:_.zG,dialogDismiss:_.zG,classes:_.zG}});var l3=function(){var q=_.N.apply(this,arguments)||this;q.isGoalActive=!0;return q};
_.z(l3,_.N);l3.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
l3.prototype.progressBarChanged=function(){var q=_.E(this.hostElement).querySelector("#progress-bar-progress"),Z,w,r,Y=(r=Number((Z=this.creatorGoalState)==null?void 0:Z.currentGoalCount)/Number((w=this.creatorGoalState)==null?void 0:w.totalGoalCount)*100)!=null?r:0,C;q.style.width=((C=Math.min(Y,100))!=null?C:0)+"%"};
l3.prototype.goalStateChanged=function(){var q;this.isGoalActive=((q=this.creatorGoalState)==null?void 0:q.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var Z;q={"--yt-progress-bar-color":m5j((Z=this.creatorGoalState)==null?void 0:Z.progressBarColor)};_.po(this.hostElement,q)};
l3.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.My.Object.defineProperties(l3.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var q;return this.isGoalActive&&!((q=this.creatorGoalState)==null||!q.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.creatorGoalState)==null?0:q.endTimestampMs){var Z;q=Number((Z=this.creatorGoalState)==null?void 0:Z.endTimestampMs)/1E3;return{seconds:String(q)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.creatorGoalState)==null?0:q.themedTargetImage){var Z;q=_.J((Z=this.creatorGoalState)==null?void 0:Z.themedTargetImage,aZX);return this.isAppDarkTheme()?q==null?void 0:q.imageDark:q==null?void 0:q.imageLight}}}});
_.My.Object.defineProperties(l3,{template:{configurable:!0,enumerable:!0,get:function(){return OwW()}}});
var GG=l3;GG.prototype.goalStateChanged=GG.prototype.goalStateChanged;GG.prototype.progressBarChanged=GG.prototype.progressBarChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],GG.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.u3),_.A("design:type",Object)],GG.prototype,"ytLiveChatReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],GG.prototype,"ytRendererBehavior",void 0);
_.X([_.F({selectorArgs:["data.creatorGoalEntityKey"],selector:function(q,Z){return _.iI(q.entities,"creatorGoalEntity",Z)}}),
_.A("design:type",Object)],GG.prototype,"creatorGoalState",void 0);_.X([_.F(),_.A("design:type",Object)],GG.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],GG.prototype,"isGoalActive",void 0);_.X([_.I("creatorGoalState","isGoalActive"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],GG.prototype,"shouldShowCountdown",null);_.X([_.I("creatorGoalState"),_.A("design:type",Object),_.A("design:paramtypes",[])],GG.prototype,"endTimestamp",null);
_.X([_.I("creatorGoalState"),_.A("design:type",Object),_.A("design:paramtypes",[])],GG.prototype,"targetIconThemedImage",null);_.X([_.M("creatorGoalState.currentGoalCount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GG.prototype,"progressBarChanged",null);_.X([_.M("creatorGoalState.creatorGoalState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GG.prototype,"goalStateChanged",null);
GG=_.X([_.dx({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],GG);_.p(GG,"yt-creator-goal-progress-flow-view-model",function(){return OwW()},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var Gch;var pz7;var Xz7=function(){return _.N.apply(this,arguments)||this};
_.z(Xz7,_.N);Xz7.prototype.attached=function(){var q,Z,w;if(this==null?0:(q=this.data)==null?0:(Z=q.pdgPurchasedBumperLoggingDirectives)==null?0:(w=Z.loggingDirectives)==null?0:w.trackingParams){var r,Y,C;TV9(this==null?void 0:(r=this.data)==null?void 0:(Y=r.pdgPurchasedBumperLoggingDirectives)==null?void 0:(C=Y.loggingDirectives)==null?void 0:C.trackingParams)}};
Xz7.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
var pK=Xz7;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],pK.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],pK.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],pK.prototype,"data",void 0);pK=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],pK);
_.p(pK,"yt-live-chat-item-bumper-view-model",function(){if(pz7===void 0){var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;Gch===void 0&&(Gch=document.createElement("template"));var r=Gch;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);pz7=q}q=pz7;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var m5D;var AF1;_.QB=function(q,Z){this.data=q;this.actions=Z;this.data=q;this.actions=Z};
_.t7=function(){};_.Xp={};_.Xp.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(q,Z){UGT(this.hostElement,q,Z)},
getNavigationEndpointPopupAction:function(q){return k62(q,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(q,Z){Kp2(this.hostElement,q,Z,this.openPopupConfig)}};var Xuj=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.ma={};
_.ma.YtEndpointBehavior=[_.Xp.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.zj("openPopupConfig");(this.useClickHandler=_.BF("useClickHandler",!1))?this.listen(this.hostElement,"click","onEndpointClick_"):(this.listen(this.hostElement,"tap","onEndpointTap_"),this.listen(this.hostElement,"touchend","onEndpointTouchEnd_"));this.listen(this.hostElement,"touchstart","onEndpointTapStart_");this.listen(this.hostElement,"mousedown",
"onEndpointTapStart_")},
onEndpointClick_:function(q){cMT(this.hostElement,q,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(q){var Z=this.hostElement,w=this.openPopupConfig,r=this.disableCommandHandlerOverride;r=r===void 0?!1:r;var Y=sf1(q);if(Y){Y.href&&vP(Y.href);var C=q.detail;var d=C.sourceEvent;C=C.preventer;d=d.button!==void 0?d.button===0&&!Pe(d):C?!Pe(C):!0;Y.data&&d&&IE8(Z,Y,q,w,r)}},
onEndpointTouchEnd_:function(q){Pe(q)||sf1(q)&&q.preventDefault()},
onEndpointTapStart_:function(q){G61(q)}}];var mG6="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),fEI=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var f4g={};f4g.YtPlaintextBehavior=[_.Pt,{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(q){q.preventDefault();q=q.clipboardData.getData("text/plain");document.execCommand("insertText",!1,q)},
preventRichTextFormatting_:function(q){_.eF&&(q=q.detail.keyboardEvent,q.stopImmediatePropagation(),q.preventDefault())}}];var D52;var hXp;var yF1=function(){var q=_.N.apply(this,arguments)||this;q.ignoreShadyDom=!1;q.hasChange_=!1;q.hasSetTitle_=!1;q.useIOObserverForVisibilityLogging_=_.b("kevlar_use_vimio_behavior")&&_.zj("INNERTUBE_CLIENT_NAME")==="WEB";q.ytFormattedStringObserverHandlerKeys_=void 0;return q};
_.z(yF1,_.N);_.e=yF1.prototype;_.e.created=function(){this.useIOObserverForVisibilityLogging_=_.b("kevlar_use_vimio_behavior")&&_.zj("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.e.ready=function(){_.zj("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_()};
_.e.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.e.detached=function(){this.unobserveIOObservers_()};
_.e.clearContents_=function(){for(var q=this.getRoot(),Z=q.lastChild;Z&&Z.tagName!=="STYLE";){try{q.removeChild(Z)}catch(w){break}Z=q.lastChild}};
_.e.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var q=_.P(this.ytFormattedStringObserverHandlerKeys_),Z=q.next();!Z.done;Z=q.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(Z.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.e.resetForAttributedString=function(){var q=this.getRoot();!q.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),q.appendChild(this.ytAttributedStringElementRef))};
_.e.resetForFormattedString=function(){var q=this.getRoot(),Z=q.querySelector("yt-attributed-string");Z&&(this.ytAttributedStringElementRef=q.removeChild(Z))};
_.e.textChanged=function(){this.textChanged_(this.text)};
_.e.textChanged_=function(q){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!q||!q.runs&&!q.simpleText;if(_.b("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var Z=this.hostElement.firstChild;Z&&Z.nodeName==="FONT";){var w=Z;Z=Z.nextSibling;this.hostElement.removeChild(w)}Z=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
w=q.simpleText;var r;!w&&((r=q.runs)==null?void 0:r.length)===1&&this.isSimpleString_(q.runs[0])&&(w=q.runs[0].text);w!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.zj("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(w!==void 0){try{Z.textContent=w}catch(Y){}Z.textContent||(this.isEmpty=!0)}else q=q.runs,w!==void 0&&(q=[{text:w}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),q&&this.updateText_(q),
Z.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.e.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)};
_.e.computeAriaLabel_=function(q){return q};
_.e.computeEllipsisTruncateStyling=function(q,Z){return q&&!Z};
_.e.computeUseAttributedString=function(q){return _.b("web_replace_formatted_with_attributed_string")&&PHj(q)&&!this.disableAttributedString&&!this.enableContentEditable};
_.e.setNodeStyle_=function(q,Z){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.b("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?Z.removeAttribute("dir"):Z.setAttribute("dir","auto");Z.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");Z.style.color="";var w=null;this.noStyles||(q.bold&&(Z.classList.add("bold"),w="bold"),q.deemphasize&&(Z.classList.add("deemphasize"),w="deemphasize"),q.italics&&Z.classList.add("italic"),
q.strikethrough&&Z.classList.add("strikethrough"),q.errorUnderline&&(Z.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),q.bracket&&Z.classList.add("bracket"),q.textColor&&(Z.style.color=_.oJ(q.textColor)));w!==Z.getAttribute("style-target")&&(w?Z.setAttribute("style-target",w):Z.removeAttribute("style-target"))};
_.e.setUpVisibilityLogging_=function(q,Z){var w=this;this.setNodeTrackingParams_(q,Z);var r;((r=Z.data)==null?0:r.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(q=this.ytRendererBehavior.visibilityObserver.observe(Z,function(Y){var C=w.ytRendererBehavior.getVisibilityLogger();C&&C.reportShown(Y)},this.ytRendererBehavior.visibilityOptionVisible_),Z=this.ytRendererBehavior.visibilityObserver.observe(Z,function(Y){var C=w.ytRendererBehavior.getVisibilityLogger();
C&&C.reportHidden(Y)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(q),this.ytFormattedStringObserverHandlerKeys_.push(Z))};
_.e.setNodeTrackingParams_=function(q,Z){Z.data||(Z.data={});if((q=q.loggingDirectives?q.loggingDirectives.trackingParams:null)||Z.data.trackingParams)Z.data.trackingParams=q};
_.e.computeHasLinkOnly_=function(q){return!(!q||q.length!==1||this.noEndpoints||!q[0].navigationEndpoint)};
_.e.getRoot=function(){var q=this.buildScopeDomOptions();return this.enableContentEditable?_.E(_.E(this.hostElement,q).querySelector("[contenteditable]")):_.E(this.hostElement,q)};
_.e.fixContenteditableScope=function(){var q=function(Z){Z&&(Z.nodeType===1&&Z.classList&&(Z.classList.add("style-scope"),Z.classList.add("yt-formatted-string")),Z.childNodes&&Z.childNodes.forEach(function(w){q(w)}))};
q(this.getRoot())};
_.e.updateText_=function(q){for(var Z=q.length,w=this.getRoot(),r=w.firstChild;r&&r.nodeName==="STYLE";)r=r.nextSibling;for(var Y=0;Y<Z&&r;){var C=q[Y],d=_.b("remove_cr_char")&&C.text?C.text.replace("\r",""):C.text;if(this.isSimpleString_(C)&&!this.useMixedDirectionFormattedStrings)if(r.nodeName==="#text"){r.textContent!=d&&(r.textContent=d);Y++;r=r.nextSibling;continue}else break;if(_.J(C,OL))break;else if(!this.noEndpoints&&C.navigationEndpoint){if(r.nodeName!=="A")break;this.setDataOnAnchor_(r,
C.navigationEndpoint)}else if(r.nodeName!=="SPAN")break;this.setNodeStyle_(C,r);this.setUpVisibilityLogging_(C,r);r.textContent!=d&&(r.textContent=d);Y++;r=r.nextSibling}if(r)for(C=w.lastChild,r=Y?r.previousSibling:null;C&&C!=r;){try{w.removeChild(C)}catch(O){break}C=w.lastChild}Y!==Z&&this.addTextNodes_(q,Y)};
_.e.addTextNodes_=function(q,Z){for(var w=document.createDocumentFragment(),r=q.length;Z<r;Z++){var Y=q[Z],C=_.b("remove_cr_char")&&Y.text?Y.text.replace("\r",""):Y.text;if(this.isSimpleString_(Y)&&!this.useMixedDirectionFormattedStrings)w.appendChild(document.createTextNode(C));else{var d=_.J(Y,OL);if(d){if(d.image){var O=document.createElement("img");d.isCustomEmoji||O.classList.add("small-emoji");O.classList.add("emoji");d.isCustomEmoji&&(O.dataset.emojiId=d.emojiId);O.src=_.TL(d.image.thumbnails,
this.emojiSize);(Y=this.get("image.accessibility.accessibilityData.label",d))?O.alt=Y:d.shortcuts&&d.shortcuts.length>0?O.alt=d.shortcuts[0]:d.emojiId&&(O.alt=d.emojiId);w.appendChild(O);this.hasEmoji=!0}}else!this.noEndpoints&&Y.navigationEndpoint?(O=document.createElement("a"),O.classList.add("yt-simple-endpoint"),O.setAttribute("spellcheck","false"),this.setDataOnAnchor_(O,Y.navigationEndpoint)):O=document.createElement("span"),this.setNodeStyle_(Y,O),this.setUpVisibilityLogging_(Y,O),O.appendChild(document.createTextNode(C)),
w.appendChild(O)}}this.getRoot().appendChild(w)};
_.e.isSimpleString_=function(q){return(this.noEndpoints||!q.navigationEndpoint)&&!_.J(q,OL)&&(this.noStyles||!(q.bold||q.deemphasize||q.italics||q.strikethrough||q.errorUnderline||q.bracket||q.textColor))&&!q.loggingDirectives};
_.e.getRawText=function(){return _.kO(this.text)};
_.e.getFirstRunText=function(){var q;if(((q=this.text)==null?0:q.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.e.setFirstRunText=function(q){var Z;((Z=this.text)==null?0:Z.runs)&&this.text.runs[0]&&(this.text.runs[0].text=q,this.textChanged_(this.text))};
_.e.setDataOnAnchor_=function(q,Z){var w=this;!_.b("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(Z)||this.isSignalServiceEndpoint_(Z)?(q.onclick=this.serviceEndpointHandler_(Z),KA(q,"#")):zY2({text:this.text,command:Z},function(){Iv9(q,Z,w.target)})};
_.e.isServiceEndpoint_=function(q){var Z;return!((Z=_.J(q==null?void 0:q.commandMetadata,_.XK))==null||!Z.sendPost)};
_.e.isSignalServiceEndpoint_=function(q){return!!_.J(q,_.CR)};
_.e.serviceEndpointHandler_=function(q){var Z=this;return function(w){_.qM(Z.hostElement,[q]);w.preventDefault()}};
_.e.overrideAriaLabelChanged_=function(){var q=this.getRoot();this.enableContentEditable&&q&&q.setAttribute("aria-label",this.overrideAriaLabel)};
_.e.enableContentEditableChanged_=function(){var q=this,Z=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),Z=_.E(this.hostElement,Z),!Z.lastChild||Z.lastChild instanceof HTMLElement&&Z.lastChild.id!=="contenteditable-root"){var w=document.createElement("div");w.id="contenteditable-root";w.setAttribute("contenteditable","true");w.setAttribute("dir","auto");w.onfocus=function(){q.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
Z.appendChild(w);this.overrideAriaLabel&&w.setAttribute("aria-label",this.overrideAriaLabel)}}else w=_.FN(this.hostElement).firstChild,w instanceof HTMLElement&&w.id==="contenteditable-root"&&_.E(this.hostElement,Z).removeChild(w)};
_.e.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.e.getNodesForVisibilityLogging_=function(){return _.qY(this.getRoot().childNodes,function(q){var Z;return!((Z=q.data)==null||!Z.trackingParams)})};
_.e.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.e.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var q=this.ytRendererBehavior.getVisibilityLogger();q&&this.getNodesForVisibilityLogging_().forEach(function(Z){q.reportShown(Z)})}};
_.e.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var q=this.ytRendererBehavior.getVisibilityLogger();q&&this.getNodesForVisibilityLogging_().forEach(function(Z){q.reportHidden(Z)})}};
_.My.Object.defineProperties(yF1.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.b("enable_mixed_direction_formatted_strings")}}});
var Ag=yF1;Ag.prototype.enableContentEditableChanged_=Ag.prototype.enableContentEditableChanged_;Ag.prototype.overrideAriaLabelChanged_=Ag.prototype.overrideAriaLabelChanged_;Ag.prototype.ellipsisTruncateChanged_=Ag.prototype.ellipsisTruncateChanged_;Ag.prototype.textChanged=Ag.prototype.textChanged;_.X([_.U(f4g.YtPlaintextBehavior),_.A("design:type",Object)],Ag.prototype,"ytPlaintextBehavior",void 0);
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Ag.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ag.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ag.prototype,"text",void 0);_.X([_.F(),_.A("design:type",Boolean)],Ag.prototype,"noEndpoints",void 0);_.X([_.F(),_.A("design:type",Boolean)],Ag.prototype,"noStyles",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ag.prototype,"isDarkTheme",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Ag.prototype,"splitLines",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ag.prototype,"forceDefaultStyle",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ag.prototype,"ellipsisTruncate",void 0);_.X([_.F(),_.A("design:type",Object)],Ag.prototype,"ignoreShadyDom",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.A("design:type",Boolean)],Ag.prototype,"ellipsisTruncateStyling",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.A("design:type",String)],Ag.prototype,"ariaLabel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ag.prototype,"isEmpty",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.A("design:type",Boolean)],Ag.prototype,"hasLinkOnly_",void 0);_.X([_.F(),_.A("design:type",Boolean)],Ag.prototype,"hasEmoji",void 0);_.X([_.F(),_.A("design:type",Boolean)],Ag.prototype,"disableAttributedString",void 0);_.X([_.F(),_.A("design:type",Boolean)],Ag.prototype,"isOverlay",void 0);_.X([_.F(),_.A("design:type",Boolean)],Ag.prototype,"linkInheritColor",void 0);
_.X([_.F(),_.A("design:type",Boolean)],Ag.prototype,"noPreWrap",void 0);_.X([_.F(),_.A("design:type",Boolean)],Ag.prototype,"userInput",void 0);_.X([_.F({value:16}),_.A("design:type",Number)],Ag.prototype,"emojiSize",void 0);_.X([_.F(),_.A("design:type",String)],Ag.prototype,"target",void 0);_.X([_.F(),_.A("design:type",Boolean)],Ag.prototype,"enableContentEditable",void 0);_.X([_.F(),_.A("design:type",String)],Ag.prototype,"overrideAriaLabel",void 0);
_.X([_.F(),_.A("design:type",Boolean)],Ag.prototype,"respectHtmlDir",void 0);_.X([_.F(),_.A("design:type",Boolean)],Ag.prototype,"respectLangDir",void 0);_.X([_.I("plaintextOnly"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ag.prototype,"useMixedDirectionFormattedStrings",null);_.X([_.F({computed:"computeUseAttributedString(text)"}),_.A("design:type",Boolean)],Ag.prototype,"useYtAttributedString",void 0);
_.X([_.M("text"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ag.prototype,"textChanged",null);_.X([_.M("ellipsisTruncate"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ag.prototype,"ellipsisTruncateChanged_",null);_.X([_.M("overrideAriaLabel"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ag.prototype,"overrideAriaLabelChanged_",null);
_.X([_.M("enableContentEditable"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ag.prototype,"enableContentEditableChanged_",null);Ag=_.X([_.dx({is:"yt-formatted-string",disableElementRegistration:!0})],Ag);
_.p(Ag,"yt-formatted-string",function(){if(hXp===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;D52===void 0&&(D52=document.createElement("template"));var r=D52;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);hXp=q}q=hXp;return q});var iwv;var gRJ;var qa2;var Z8e;var wmW=function(){var q=_.N.apply(this,arguments)||this;q.focused=!1;q.disabled=!1;q.isOverlay=!1;return q};
_.z(wmW,_.N);wmW.prototype.triggerDown=function(){if(!this.disabled){_.NZ(this.hostElement,"down",!0);var q;(q=this.currentAnimation)==null||q.cancel()}};
wmW.prototype.triggerUp=function(){if(!this.disabled){_.NZ(this.hostElement,"down",!1);var q=this.fillElement;var Z=this.strokeElement;typeof GroupEffect==="function"?(q=new GroupEffect([gp2(q),q9T(Z)]),q=new Animation(q,document.timeline)):q=new KRh(q,Z);this.currentAnimation=q;var w;(w=this.currentAnimation)==null||w.play()}};
var fK=wmW;_.X([_.fo(".stroke"),_.A("design:type",HTMLElement)],fK.prototype,"strokeElement",void 0);_.X([_.fo(".fill"),_.A("design:type",HTMLElement)],fK.prototype,"fillElement",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],fK.prototype,"focused",void 0);_.X([_.F(),_.A("design:type",Object)],fK.prototype,"disabled",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],fK.prototype,"isOverlay",void 0);
fK=_.X([_.dx({is:"yt-interaction",disableElementRegistration:!0})],fK);
_.p(fK,"yt-interaction",function(){if(Z8e===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;qa2===void 0&&(qa2=document.createElement("template"));var r=qa2;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Z8e=q}q=Z8e;return q},{mode:2});var rS7=function(){return _.N.apply(this,arguments)||this};
_.z(rS7,_.N);_.e=rS7.prototype;_.e.ready=function(){var q=this,Z=_.E(this.hostElement).querySelector("#button");Z.addEventListener("focus",function(){vhJ||(vhJ=new SyW);q.keyboardFocused=vhJ.isKeyBoardInUse()});
Z.addEventListener("blur",function(){q.keyboardFocused=!1;q.rippleUp_()})};
_.e.computeTabIndex_=function(q){return q?-1:0};
_.e.computeButtonAriaPressed_=function(q){if(this.toggleable)return q?"true":"false"};
_.e.rippleDown_=function(){_.E(this.hostElement).querySelector("#interaction").triggerDown()};
_.e.rippleUp_=function(){_.E(this.hostElement).querySelector("#interaction").triggerUp()};
_.e.onPressedChanged_=function(){var q=_.FN(_.E(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.FN(_.E(this.hostElement).querySelector("#button")).children[0];q&&(q.active=this.pressed)};
var DZ=rS7;DZ.prototype.onPressedChanged_=DZ.prototype.onPressedChanged_;DZ.prototype.rippleUp_=DZ.prototype.rippleUp_;DZ.prototype.rippleDown_=DZ.prototype.rippleDown_;_.X([_.F(),_.A("design:type",String)],DZ.prototype,"label",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],DZ.prototype,"disabled",void 0);_.X([_.F(),_.A("design:type",Boolean)],DZ.prototype,"pressed",void 0);_.X([_.F(),_.A("design:type",Object)],DZ.prototype,"toggleable",void 0);
_.X([_.F(),_.A("design:type",Boolean)],DZ.prototype,"untabbable",void 0);_.X([_.F(),_.A("design:type",Boolean)],DZ.prototype,"keyboardFocused",void 0);_.X([_.m2("down"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],DZ.prototype,"rippleDown_",null);_.X([_.m2("up"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],DZ.prototype,"rippleUp_",null);
_.X([_.M("pressed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],DZ.prototype,"onPressedChanged_",null);DZ=_.X([_.dx({is:"yt-icon-button",disableElementRegistration:!0})],DZ);
_.p(DZ,"yt-icon-button",function(){if(gRJ===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;iwv===void 0&&(iwv=document.createElement("template"));var r=iwv;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);gRJ=q}q=gRJ;return q},{mode:2});var Ya2=_.Fr(["aria-"]),hg={};hg.YtRenderButtonBehavior=[_.y.YtRendererBehavior,_.ma.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!!_.t().resolve(_.Gj(_.er))&&_.b("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 q=this.computeHref_(this.endpoint,!0);q?KA(this.elements_.endpoint,q):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){q=this.buttonClass.split(" ");q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,_.NZ(this.hostElement,Z,!0),this.elements_.button&&_.NZ(this.elements_.button,Z,!0),this.elements_.text&&_.NZ(this.elements_.text,Z,!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&&(q=null,this.buttonAccessibility&&(q=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=q:q?_.DF([_.ib(Ya2)],this.elements_.button,"aria-label",q):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var q=_.t().resolve(_.Gj(_.er));q&&(this.keyboardFocused=q.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.xb("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,_.os(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.os(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(q,Z){if(Z)for(q=Z.split(" "),q=_.P(q),Z=q.next();!Z.done;Z=q.next())Z=Z.value,_.NZ(this.hostElement,Z,!1),this.elements_.button&&_.NZ(this.elements_.button,Z,!1),this.elements_.text&&_.NZ(this.elements_.text,Z,!1)},
buttonIconChanged_:function(q){this.elements_.icon?q?(this.elements_.icon.icon=q,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.os(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.lq(this.hostElement,"is-paper-button-with-icon",!1)):q&&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"&&_.os(this.elements_.button).appendChild(this.elements_.icon):_.os(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.lq(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(q){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,q){var Z=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(q){case "yt_icon_button_with_label":Z=!0;_.NZ(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();q=_.os(this.elements_.button).firstElementChild;
this.elements_.icon=q;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.os(this.elements_.endpoint).appendChild(this.elements_.button);_.os(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.xb("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;_.os(this.elements_.button).appendChild(this.elements_.text);_.os(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":Z=!0,this.elements_.button=this.getYtIconButton_(),q=_.os(this.elements_.button).firstElementChild,this.elements_.icon=q,this.setIconActive_(this.elements_.icon),
_.os(this.elements_.endpoint).appendChild(this.elements_.button)}_.lq(this.hostElement,"is-icon-button",Z);_.lq(this.hostElement,"is-paper-button",!Z);_.lq(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 w;_.E((w=this.container.hostElement)!=null?w:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.os(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(q){if(q!=void 0||this.disabled)this.disabled=q,this.elements_.button&&(this.elements_.button.disabled=q)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(q){_.b("kevlar_system_icons")&&q&&this.data&&(this.data.isSelected!==void 0?q.active=this.data.isSelected:this.data.isToggled!==void 0&&(q.active=this.data.isToggled))},
observeBasicPalette_:function(q){_.VB(this.hostElement,q)},
disabledChanged_:function(q){this.data&&this.set("data.isDisabled",q)},
onYtButtonTap_:function(q){if(this.disabled)q.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.qM(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(q=this.disableCommandHandlerOverride,!this.data||!this.data.command||q||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.b("handle_service_request_actions")||_.qM(this.hostElement,[this.serviceEndpoint]),
_.hy(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.b("handle_service_request_actions")?(q=[],this.serviceEndpoint&&q.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&q.push(this.data.command),q.length&&_.ZC(this.hostElement,q,this.hostElement)):this.data&&this.data.command&&(q=this.data.command,q.accountUnlinkCommand||q.accountLinkCommand||q.insertAdCommand||q.insertHighlightMarkerCommand||
q.createLivestreamHighlightClipCommand||q.getVideoUploadFeedbackCommand||q.musicDeletePrivatelyOwnedEntityCommand||q.ypcCancelRecurrenceEndpoint||q.getMultiSelectCommandEndpoint?_.qM(this.hostElement,[q]):_.ZC(this.hostElement,[q],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 q,Z=_.E((q=this.container.hostElement)!=null?q:this.container);Z.lastChild&&Z.lastChild.tagName!="STYLE";)try{Z.removeChild(Z.lastChild)}catch(w){break}},
getYtIconButton_:function(){var q=this.reuseEnabled_()?_.xb("yt-icon-button"):document.createElement("yt-icon-button"),Z=_.os(q).firstElementChild;if(Z&&Z.is!="yt-icon"){for(Z=_.os(q);Z.lastChild;)Z.removeChild(Z.lastChild);Z=null}Z||(Z=this.getIcon_(),this.setIconActive_(Z),_.os(q).appendChild(Z));return q},
reuseEnabled_:function(){return _.b("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.xb("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.xb("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.$wD={};
_.$wD.YtButtonBehavior=[hg.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var q=this.data;q&&(this._setEndpoint(this.computeEndpoint_(q)),this._setServiceEndpoint(this.computeServiceEndpoint_(q)),this._setCommand(this.computeCommand_(q)),this._setButtonIcon(this.computeButtonIcon_(q)),this._setButtonText(this.computeButtonText_(q,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(q)),this._setButtonTooltip(this.computeTooltip_(q)),this._setButtonClass(this.computeButtonClass_(q)),this._setIconPositionType(this.computeIconPositionType_(q)),this.updateRenderedElements())},
setPressedState:function(q){var Z;if((Z=this.elements_)==null?0:Z.button)this.elements_.button.pressed=!!q},
computeIconPositionType_:function(q){return q&&q.iconPosition||null},
computeEndpoint_:function(q){var Z=q&&q.navigationEndpoint,w=this.get("data.command.commandMetadata.webCommandMetadata.url"),r=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return Z?Z:q&&q.command&&q.command.modalEndpoint?q.command:w&&!r&&q.command?q.command:null},
computeServiceEndpoint_:function(q){var Z=q&&q.serviceEndpoint,w=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return Z?Z:w&&q.command?q.command:null},
computeCommand_:function(q){return q&&q.command||null},
computeButtonIcon_:function(q){return q&&q.icon&&q.icon.iconType?_.Xl(q.icon.iconType):null},
computeButtonText_:function(q,Z){return!Z&&q&&q.text||null},
computeAccessibility_:function(q){return this.get("accessibilityData.accessibilityData",q)||q&&q.accessibility||(q&&q.text?{label:this.getSimpleString(q.text)}:null)},
computeTooltip_:function(q){return q?q.isDisabled&&q.disabledTooltip||q.tooltip||null:null},
computeButtonClass_:function(q){var Z=q&&q.style?q.style.toLowerCase().replace(/_/g,"-")+" ":"";Z+=q&&q.size?q.size.toLowerCase().replace(/_/g,"-")+" ":"";q.colorData&&q.colorData.basicColorPaletteData&&q.colorData.basicColorPaletteData.borderColor&&(Z+="palette-with-border");return Z.trim()}}];var O1={};var ebW;var CH7;var PHD,dw9=function(){return PHD!==void 0?PHD:PHD=document.createElement("template")};
document.head.appendChild(dw9().content);var Vqm;var O8m,H8W=function(){return O8m!==void 0?O8m:O8m=document.createElement("template")};
document.head.appendChild(H8W().content);var W$D;var ot9,u21=function(){return ot9!==void 0?ot9:ot9=document.createElement("template")};
document.head.appendChild(u21().content);var L$g;var Sam=document.head,vth=Sam.appendChild,jYe;if(L$g===void 0){var tq9=document.createElement("template");_.a(tq9,"\x3c!--css-build:shady--\x3e");tq9.content.insertBefore(u21().content.cloneNode(!0),tq9.content.firstChild);L$g=tq9}jYe=L$g;vth.call(Sam,jYe.content);var RbX=document.head,b8J=RbX.appendChild,JSW;if(W$D===void 0){var zbW=document.createElement("template");_.a(zbW,"\x3c!--css-build:shady--\x3e");zbW.content.insertBefore(H8W().content.cloneNode(!0),zbW.content.firstChild);W$D=zbW}JSW=W$D;b8J.call(RbX,JSW.content);var BH7=document.head,aXh=BH7.appendChild,ntg;if(Vqm===void 0){var QYm=document.createElement("template");_.a(QYm,"\x3c!--css-build:shady--\x3e");QYm.content.insertBefore(dw9().content.cloneNode(!0),QYm.content.firstChild);Vqm=QYm}ntg=Vqm;aXh.call(BH7,ntg.content);_.He("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");var EtD=_.b("web_button_rework")&&_.BF("BUTTON_REWORK")||_.b("web_button_rework_with_live"),ye=function(){return _.N.apply(this,arguments)||this};
_.z(ye,_.N);ye.prototype.created=function(){this.openPopupConfig=_.zj("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
ye.prototype.onYtNavigate_=function(q){var Z=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(q.detail.endpoint);Z&&(this.ytOpenPopupBehavior.openPopup(Z),q.stopPropagation(),q.preventDefault())};
_.My.Object.defineProperties(ye,{template:{configurable:!0,enumerable:!0,get:function(){if(CH7===void 0){var q=document.createElement("template");_.a(q,"\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");q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
var Z=q.content,w=Z.insertBefore;ebW===void 0&&(ebW=document.createElement("template"));var r=ebW;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);CH7=q}q=CH7;return q}}});
_.i3=ye;_.i3.prototype.onYtNavigate_=_.i3.prototype.onYtNavigate_;_.X([_.U(_.Xp.YtOpenPopupBehavior),_.A("design:type",Object)],_.i3.prototype,"ytOpenPopupBehavior",void 0);_.X([_.U(_.$wD.YtButtonBehavior),_.A("design:type",Object)],_.i3.prototype,"ytButtonBehavior",void 0);_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],_.i3.prototype,"onYtNavigate_",null);
_.i3=_.X([_.dx({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:EtD})],_.i3);var xwg;var THe=_.b("web_button_rework")&&_.BF("BUTTON_REWORK")||_.b("web_button_rework_with_live"),gj=function(){var q=_.N.apply(this,arguments)||this;q.isPressed=!1;q.forceIconButton=!1;q.forceIconOnly=!1;q.forceModernIconButton=!1;q.skipCommandHandling=!1;q.alignByText=!1;q.fitToVisibleBounds=!0;q.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};q.onTap=function(Z){_.hy(q.hostElement,"yt-service-request-sent-button-renderer",Z)};
return q};
_.z(gj,_.N);_.e=gj.prototype;_.e.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.e.onClick=function(q){var Z,w=this.disabled||((Z=this.data)==null?void 0:Z.isDisabled);Z=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");w&&Z&&q.stopPropagation()};
_.e.computeIcon=function(){var q,Z,w=(q=this.data)==null?void 0:(Z=q.icon)==null?void 0:Z.iconType;if(w)return _.Xl(w)};
_.e.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.e.handleUpdateButtonAction=function(q){q=_.J(q,jt7);var Z=_.J(q==null?void 0:q.updatedButton,_.tA);if(this.data&&q&&Z){var w=this.data;w.targetId&&q.targetId&&w.targetId===q.targetId&&(this.data=Z)}};
_.My.Object.defineProperties(gj.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var q=this;if(this.data){var Z=qV6({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.hy(q.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.hy(q.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});Z.alignByText=this.alignByText;return Z}}}});
_.My.Object.defineProperties(gj,{template:{configurable:!0,enumerable:!0,get:function(){if(xwg===void 0){var q=document.createElement("template");_.a(q,'\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>');xwg=q}q=xwg;return q}}});
var qW=gj;qW.prototype.onClick=qW.prototype.onClick;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],qW.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],qW.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],qW.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],qW.prototype,"isPressed",void 0);_.X([_.F(),_.A("design:type",Object)],qW.prototype,"forceIconButton",void 0);_.X([_.F(),_.A("design:type",Object)],qW.prototype,"forceIconOnly",void 0);_.X([_.F(),_.A("design:type",Object)],qW.prototype,"forceModernIconButton",void 0);_.X([_.F(),_.A("design:type",Object)],qW.prototype,"skipCommandHandling",void 0);_.X([_.F(),_.A("design:type",Object)],qW.prototype,"alignByText",void 0);
_.X([_.F(),_.A("design:type",Object)],qW.prototype,"buttonTooltipPosition",void 0);_.X([_.F(),_.A("design:type",Object)],qW.prototype,"fitToVisibleBounds",void 0);_.X([_.F({computed:"computeTooltip(data)"}),_.A("design:type",Object)],qW.prototype,"tooltip",void 0);_.X([_.F(),_.A("design:type",Object)],qW.prototype,"overrides",void 0);_.X([_.F(),_.A("design:type",Boolean)],qW.prototype,"disabled",void 0);
_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],qW.prototype,"onClick",null);_.X([_.I("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.A("design:type",Object),_.A("design:paramtypes",[])],qW.prototype,"computedButtonShape",null);
qW=_.X([_.dx({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!THe,cssBuildOptOut:!0}),_.dx({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!THe,cssBuildOptOut:!0})],qW);var UwJ;var k4g;var K$D=function(){var q=_.N.apply(this,arguments)||this;q.empty_=!0;q.loadTime=Infinity;q.pendingPaint=!1;q.hasChange_=!1;q.oldThumbnail_=null;q.oldDelayedSrc_="";q.objectURL_=null;return q};
_.z(K$D,_.N);_.e=K$D.prototype;_.e.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.e.ready=function(){var q=this.shouldShowPlaceholder_();_.NZ(this.hostElement,"no-transition",!0);q&&this.hostElement.classList.add("with-placeholder")};
_.e.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.e.isThumbPreloaded_=function(q){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",q)};
_.e.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||sY2};
_.e.computeThumbnailSrc_=function(q){return q&&q.thumbnails?_.TL(q.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.e.computeAlt_=function(){var q=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&q||""};
_.e.thumbnailChanged_=function(){var q=_.P([this.thumbnail,this.oldThumbnail_]),Z=q.next().value;q=q.next().value;this.oldThumbnail_=Z;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(q=this.computeThumbnailSrc_(q),this.computeThumbnailSrc_(Z)===q))return;_.b("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(Z)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):Z&&_.BF("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.I_(this,this.onReload_):_.I_(this,this.onShow_):this.resetImage_();Z&&(this.hostElement.style.opacity=""+Z.opacity)}};
_.e.delayedSrcChanged_=function(){var q=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===q||this.resetImage_()};
_.e.setSrc_=function(q){q?(_.E(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.E(this.hostElement).querySelector("#img").src=q):(_.E(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.e.resetImage_=function(){e42(this.hostElement);this.empty_=!0;this.setSrc_(sY2);this.ytRendererBehavior.invalidate(!1)};
_.e.observePlaceholderColor_=function(){var q=this.thumbnail&&this.thumbnail.placeholderColor;q?this.hostElement.style.backgroundColor=_.oJ(q):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.e.onLoad_=function(){_.E(this.hostElement).querySelector("#img").src&&_.E(this.hostElement).querySelector("#img").src!==sY2&&($V8(this.hostElement),this.notifyOnLoaded&&_.hy(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.e.onError_=function(){var q=this;if(_.b("web_use_cache_for_image_fallback"))WCT(_.E(this.hostElement).querySelector("#img").src).then(function(Z){q.objectURL_=xv(Z).toString();q.setSrc_(q.objectURL_)}).catch(function(){_.b("kevlar_woffle_fallback_image")&&q.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.e.onPrescanVisible=function(){this.onShow_()};
_.e.onVisible=function(){if(_.b("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.e.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var q=this.computeSrc_();q!==_.E(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(q))}};
_.e.onReload_=function(){this.empty_=!1;var q=this.computeSrc_();q!==_.E(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(q))};
_.e.shouldShowPlaceholder_=function(){return _.b("kevlar_thumbnail_bg")};
var Zh=K$D;Zh.prototype.observePlaceholderColor_=Zh.prototype.observePlaceholderColor_;Zh.prototype.delayedSrcChanged_=Zh.prototype.delayedSrcChanged_;Zh.prototype.thumbnailChanged_=Zh.prototype.thumbnailChanged_;_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],Zh.prototype,"alt",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Zh.prototype,"ariaHidden",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],Zh.prototype,"ariaLabel",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Zh.prototype,"hidden",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],Zh.prototype,"id",void 0);_.X([_.U(_.tg.YtVisibilityBehavior),_.A("design:type",Object)],Zh.prototype,"ytVisibilityBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",String)],Zh.prototype,"delayedSrc",void 0);
_.X([_.F(),_.A("design:type",Object)],Zh.prototype,"thumbnail",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Zh.prototype,"loaded",void 0);_.X([_.F(),_.A("design:type",Boolean)],Zh.prototype,"notifyOnLoaded",void 0);_.X([_.F(),_.A("design:type",Number)],Zh.prototype,"height",void 0);_.X([_.F(),_.A("design:type",Number)],Zh.prototype,"width",void 0);_.X([_.F({value:function(){return"width"}}),
_.A("design:type",String)],Zh.prototype,"dimension",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Zh.prototype,"fit",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Zh.prototype,"fitHeight",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Zh.prototype,"fitWidth",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],Zh.prototype,"objectFit",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],Zh.prototype,"objectPosition",void 0);_.X([_.F(),_.A("design:type",String)],Zh.prototype,"preferredThumbnail",void 0);_.X([_.F({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.A("design:type",String)],Zh.prototype,"alt_",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],Zh.prototype,"sharedTooltipText",void 0);
_.X([_.F(),_.A("design:type",Boolean)],Zh.prototype,"ftlEligible",void 0);_.X([_.F({value:void 0}),_.A("design:type",String)],Zh.prototype,"observeHiddenOption",void 0);_.X([_.F({value:"observe_once"}),_.A("design:type",String)],Zh.prototype,"observePrescanOption",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Zh.prototype,"roundedContainer",void 0);
_.X([_.g3("thumbnail"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zh.prototype,"thumbnailChanged_",null);_.X([_.g3("delayedSrc"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zh.prototype,"delayedSrcChanged_",null);_.X([_.M("thumbnail.placeholderColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zh.prototype,"observePlaceholderColor_",null);
Zh=_.X([_.dx({is:"yt-img-shadow",disableElementRegistration:!0})],Zh);var sY2=_.BF("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Fl()(Zh,"yt-img-shadow",function(){if(k4g===void 0){var q=document.createElement("template");_.a(q,'\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">');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;UwJ===void 0&&(UwJ=document.createElement("template"));var r=UwJ;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);k4g=q}q=k4g;return q},{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 i0e;_.wK=new _.F$("SCREEN_MANAGER_TOKEN");i0e=new _.F$("LOG_INITIAL_SCREEN_TOKEN");_.uo=_.xl(function(q){function Z(H6){return _.J(H6,_.Wx)}
function w(){var H6=r().isTogglingDisabled||R()?x():!x();K(H6);G(!1);if(!r().isTogglingDisabled){var nX;(nX=d)==null||nX(!!H6)}var Qj;((Qj=C)==null?0:Qj())||_.hA(_.t().resolve(_.wK),r().trackingParams);var SO;if(!H6||!Z(r().defaultButtonViewModel)||(SO=C)!=null&&SO()){var Te;!Z(r().toggledButtonViewModel)||((Te=C)==null?0:Te())||_.hA(_.t().resolve(_.wK),Z(r().toggledButtonViewModel).trackingParams)}else _.hA(_.t().resolve(_.wK),Z(r().defaultButtonViewModel).trackingParams)}
var r=q.data,Y=q.buttonShapeOverrides,C=q.disableExplicitClickLogging,d=q.onToggle,O=q.style,H=q.useOutlinedIcon,L=q.className,S=function(){var H6,nX;return x()?(H6=q.animatedTextPropsToggled)==null?void 0:H6.call(q):(nX=q.animatedTextPropsDefault)==null?void 0:nX.call(q)},v=_.$6(function(){return S()?Object.assign({},S(),{shouldAnimate:k()}):void 0},void 0,"ZKEa0b"),R=function(){var H6;
return((H6=eO())==null?void 0:H6.isToggled)!==void 0},B=_.P(_.hE(function(){var H6,nX,Qj;
return R()?(H6=eO())==null?void 0:H6.isToggled:(Qj=Y==null?void 0:(nX=Y())==null?void 0:nX.toggled)!=null?Qj:r().isToggled})),n=B.next().value;
B=B.next().value;var x=n,K=B;B=_.P(_.hE(function(){var H6,nX;return(H6=q.animatedTextPropsToggled)==null?void 0:(nX=H6.call(q))==null?void 0:nX.shouldAnimate}));
n=B.next().value;B=B.next().value;var k=n,G=B;n=_.P(_.qo(!1,void 0,"S11hid"));var rz=n.next().value,f=n.next().value,eO=_.ok(function(H6){var nX;a:{var Qj=r().entityKey,SO=r().toggledStateEntitySelectorType;if(SO&&Qj)switch(SO){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var Te;H6=(Te=_.iI(H6.entities,"sfvAudioItemCurrentlyPlayingEntity",Qj))!=null?Te:void 0;Te=(nX=H6==null?void 0:H6.sfvAudioItemPlaybackState)!=null?nX:void 0;if(Te==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){nX={isToggled:!0};
break a}if(Te){nX={isToggled:!1};break a}break;default:_.bx(new _.df("Error: entitySelectorType defined but not matched in selector.",H6,SO))}nX=void 0}return nX});
n=_.fn(function(){var H6=_.t().resolve(_.Gj(_.er));H6&&f(H6.isKeyBoardInUse());return!1});
B=_.fn(function(){f(!1);return!1});
var g=function(){return Object.assign({},Y==null?void 0:Y(),{onToggle:w,toggleable:!0,toggled:x(),focused:rz()})};
return _.u("toggle-button-view-model",{"on:focusin":n,"on:focusout":B,class:L},_.u(_.PF,{cond:function(){return x()?Z(r().toggledButtonViewModel):Z(r().defaultButtonViewModel)},
then:function(H6){return _.u(_.vx,{data:H6,className:L,style:O,useOutlinedIcon:H,buttonOverrides:g,animatedTextProps:v})}}))},"v");
_.uo.idomCompat={callbacks:{onToggle:!0}};_.xc(_.xl(function(q){return _.u("yt-toggle-button-view-model",{class:function(){var Z;return(Z=q.scopingClassName)==null?void 0:Z.call(q)}},_.u(_.uo,{data:function(){var Z;
return(Z=q.data)==null?void 0:Z.call(q)},
buttonShapeOverrides:function(){var Z;return(Z=q.overrides)==null?void 0:Z.call(q)},
animatedTextPropsDefault:function(){var Z;return(Z=q.animatedTextPropsDefault)==null?void 0:Z.call(q)},
animatedTextPropsToggled:function(){var Z;return(Z=q.animatedTextPropsToggled)==null?void 0:Z.call(q)},
disableExplicitClickLogging:function(){var Z;return(Z=q.disableExplicitClickLogging)==null?void 0:Z.call(q)},
onToggle:function(Z){var w;return(w=q.onToggle)==null?void 0:w.call(q,Z)},
style:function(){var Z;return(Z=q.style)==null?void 0:Z.call(q)},
useOutlinedIcon:function(){var Z;return(Z=q.useOutlinedIcon)==null?void 0:Z.call(q)},
className:function(){var Z;return(Z=q.className)==null?void 0:Z.call(q)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.zG,
buttonShapeOverrides:_.zG,overrides:_.zG,animatedTextPropsDefault:_.zG,animatedTextPropsToggled:_.zG,disableExplicitClickLogging:_.zG,onToggle:_.EL,style:_.zG,useOutlinedIcon:_.zG,className:_.zG,scopingClassName:_.zG}});var IXe=function(){return _.N.apply(this,arguments)||this};
_.z(IXe,_.N);IXe.prototype.onTap=function(q){q.stopPropagation();q=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.LV("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:q})):this.ytLiveChatReduxBehavior.dispatch(_.wp("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:q}))};
_.My.Object.defineProperties(IXe.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.engagementState)==null?void 0:q.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var q=_.J(this.data.toggleButton,_.o5),Z;if(Number(((Z=this.likeCountState)==null?void 0:Z.likeCountIfIndifferentNumber)||"0")===0){var w;Z=((w=this.data.likeCountPlaceholder)==null?void 0:w.content)||""}else{var r,Y,C;Z=((r=this.likeCountState)==null?void 0:(Y=r.likeCountIfIndifferent)==null?void 0:Y.content)||((C=this.data.likeCountPlaceholder)==null?void 0:C.content)||""}var d,O;w=((d=this.likeCountState)==null?void 0:(O=
d.likeCountIfLiked)==null?void 0:O.content)||"1";d=_.J(q.toggledButtonViewModel,_.Wx);return Object.assign({},q,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.J(q.defaultButtonViewModel,_.Wx),{title:Z})},toggledButtonViewModel:{buttonViewModel:Object.assign({},d,{title:w})}})}}}});
var rK=IXe;rK.prototype.onTap=rK.prototype.onTap;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],rK.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.u3),_.A("design:type",Object)],rK.prototype,"ytLiveChatReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],rK.prototype,"data",void 0);
_.X([_.F({selectorArgs:["data.likeCountEntityKey"],selector:ZiN}),_.A("design:type",Object)],rK.prototype,"likeCountState",void 0);_.X([_.F({selectorArgs:["data.engagementStateKey"],selector:EGT}),_.A("design:type",Object)],rK.prototype,"engagementState",void 0);_.X([_.I("data","engagementState"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],rK.prototype,"isLiked",null);
_.X([_.I("data","likeCountState","isLiked"),_.A("design:type",Object),_.A("design:paramtypes",[])],rK.prototype,"toggleButton",null);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],rK.prototype,"onTap",null);rK=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],rK);
_.p(rK,"yt-live-chat-like-button-view-model",function(){if(AF1===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;m5D===void 0&&(m5D=document.createElement("template"));var r=m5D;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);AF1=q}q=AF1;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var cSg;var Mqm;var F$X=function(){return _.N.apply(this,arguments)||this};
_.z(F$X,_.N);var Yk=F$X;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Yk.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Yk.prototype,"data",void 0);Yk=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],Yk);
_.p(Yk,"yt-live-chat-paid-message-footer-renderer",function(){if(Mqm===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;cSg===void 0&&(cSg=document.createElement("template"));var r=cSg;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Mqm=q}q=Mqm;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var NHh;var lXW;var G4v;var pm7,Xm9=function(){if(pm7!==void 0)return pm7;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;G4v===void 0&&(G4v=document.createElement("template"));var r=G4v;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return pm7=q};var $k=function(){return _.N.apply(this,arguments)||this};
_.z($k,_.N);$k.prototype.onTap=function(q){q.stopPropagation()};
_.My.Object.defineProperties($k.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var q=_.J(this.data.replyButton,_.Wx),Z,w,r,Y,C,d,O,H=Number(((Z=this.replyCountState)==null?void 0:Z.replyCountNumber)||"0")===0?(w=this.data)==null?void 0:(r=w.replyCountPlaceholder)==null?void 0:r.content:((Y=this.replyCountState)==null?void 0:(C=Y.replyCount)==null?void 0:C.content)||((d=this.data)==null?void 0:(O=d.replyCountPlaceholder)==null?void 0:O.content)||"",L;return Object.assign({},
q,{title:H,accessibilityText:(L=this.replyCountState)==null?void 0:L.replyButtonAccessibilityText})}}}});
_.My.Object.defineProperties($k,{template:{configurable:!0,enumerable:!0,get:function(){return Xm9()}}});
var eL=$k;eL.prototype.onTap=eL.prototype.onTap;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],eL.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.u3),_.A("design:type",Object)],eL.prototype,"ytLiveChatReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],eL.prototype,"data",void 0);
_.X([_.F({selectorArgs:["data.replyCountEntityKey"],selector:function(q,Z){return _.iI(q.entities,"replyCountEntity",Z)}}),
_.A("design:type",Object)],eL.prototype,"replyCountState",void 0);_.X([_.I("data","replyCountState"),_.A("design:type",Object),_.A("design:paramtypes",[])],eL.prototype,"buttonViewModel",null);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],eL.prototype,"onTap",null);eL=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],eL);
_.p(eL,"yt-live-chat-reply-button-view-model",function(){return Xm9()},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var mwW;var ASX;var CZ=function(){var q=_.N.apply(this,arguments)||this;q.ariaLabel="";return q};
_.z(CZ,_.N);
CZ.prototype.dataChanged=function(){for(var q=(0,_.GI)(_.E(this.hostElement).querySelector("#image"));q.firstChild;)q.removeChild(q.firstChild);if(this.data)if(this.data.icon){var Z=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(Z.polymerController.icon="yt-sys-icons:shield-filled",Z.polymerController.defaultToFilled=!0):Z.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();q.appendChild(Z)}else if(this.data.customThumbnail){Z=document.createElement("img");
var w=_.i12(this.data.customThumbnail.thumbnails,16);w?(Z.src=w,q.appendChild(Z),Z.setAttribute("alt",this.hostElement.ariaLabel||"")):_.bx(new _.df("Could not compute URL for thumbnail",this.data.customThumbnail))}};
CZ.prototype.identity=function(q){return q};
CZ.prototype.computeType=function(q){return ly(q||void 0)};
var Pv=CZ;Pv.prototype.dataChanged=Pv.prototype.dataChanged;_.X([_.F(),_.A("design:type",Object)],Pv.prototype,"data",void 0);_.X([_.F({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.A("design:type",Object)],Pv.prototype,"ariaLabel",void 0);_.X([_.F({computed:"computeType(data)",reflectToAttribute:!0}),_.A("design:type",String)],Pv.prototype,"type",void 0);
_.X([_.F({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.A("design:type",String)],Pv.prototype,"sharedTooltipText",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.b("live_chat_enable_new_moderator_badge")}}),
_.A("design:type",Boolean)],Pv.prototype,"enableNewModeratorBadge",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pv.prototype,"dataChanged",null);Pv=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Pv);
_.p(Pv,"yt-live-chat-author-badge-renderer",function(){if(ASX===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;mwW===void 0&&(mwW=document.createElement("template"));var r=mwW;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);ASX=q}q=ASX;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var fXg;var Dw2;var hbD=function(){return _.N.apply(this,arguments)||this};
_.z(hbD,_.N);_.e=hbD.prototype;_.e.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"}}}}};
_.e.computeBadgesInsideChip=function(q){return q?q.filter(function(Z){return ly(Z.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.e.computeBadgesOutsideChip=function(q){return this.prependChatBadges||!q?[]:q.filter(function(Z){Z=ly(Z.liveChatAuthorBadgeRenderer);return Z!=="verified"&&Z!=="owner"})};
_.e.computeBadgesBeforeChip=function(q){return this.prependChatBadges&&q?q.filter(function(Z){Z=ly(Z.liveChatAuthorBadgeRenderer);return Z!=="verified"&&Z!=="owner"}):[]};
_.e.computeIsHighlighted=function(q,Z){var w=!!d52(q,"owner"),r=!!d52(q,"verified");q=!!d52(q,"moderator");return(w||r&&!q)&&!Z};
_.e.computeAuthorType=function(q){return PV2(q)};
_.e.computeAuthorClass=function(q,Z){return Z?(q?q+" ":"")+"single-line":q};
_.e.onSeedColorChanged=function(){_.b("live_chat_author_name_color_usernames")||_.b("live_chat_seed_color_usernames")||_.b("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):_.b("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
var dK=hbD;dK.prototype.onSeedColorChanged=dK.prototype.onSeedColorChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],dK.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],dK.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],dK.prototype,"authorName",void 0);_.X([_.F(),_.A("design:type",Array)],dK.prototype,"authorBadges",void 0);
_.X([_.F({computed:"computeAuthorType(authorBadges)"}),_.A("design:type",String)],dK.prototype,"authorType",void 0);_.X([_.F({computed:"computeAuthorClass(authorType, singleLine)"}),_.A("design:type",String)],dK.prototype,"authorClass",void 0);_.X([_.F({computed:"computeBadgesInsideChip(authorBadges)"}),_.A("design:type",Array)],dK.prototype,"badgesInsideChip",void 0);_.X([_.F({computed:"computeBadgesOutsideChip(authorBadges)"}),_.A("design:type",Array)],dK.prototype,"badgesOutsideChip",void 0);
_.X([_.F({computed:"computeBadgesBeforeChip(authorBadges)"}),_.A("design:type",Array)],dK.prototype,"badgesBeforeChip",void 0);_.X([_.F({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.A("design:type",Boolean)],dK.prototype,"isHighlighted",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],dK.prototype,"singleLine",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],dK.prototype,"disableHighlighting",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],dK.prototype,"dashboardMoneyFeed",void 0);_.X([_.F({value:_.b("live_chat_prepend_badges"),reflectToAttribute:!0}),_.A("design:type",Boolean)],dK.prototype,"prependChatBadges",void 0);_.X([_.F(),_.A("design:type",String)],dK.prototype,"authorNameColor",void 0);_.X([_.fo("#author-name"),_.A("design:type",HTMLDivElement)],dK.prototype,"username",void 0);
_.X([_.M("authorNameColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dK.prototype,"onSeedColorChanged",null);dK=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],dK);
_.p(dK,"yt-live-chat-author-chip",function(){if(Dw2===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;fXg===void 0&&(fXg=document.createElement("template"));var r=fXg;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Dw2=q}q=Dw2;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var yS7;var i82;var gtD=function(){var q=_.N.apply(this,arguments)||this;q.debounceCommand=_.VW(function(Z){q.ytComponentBehavior.resolveCommand(Z)},1500);
return q};
_.z(gtD,_.N);gtD.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var q=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",Z,w,r=this.isHearted?(Z=this.data)==null?void 0:Z.unheartCommand:(w=this.data)==null?void 0:w.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.LV("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:q}));(q=_.oQ(r))&&this.debounceCommand(q)}};
_.My.Object.defineProperties(gtD.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var q,Z;if(!((q=this.data)==null?0:(Z=q.creatorThumbnail)==null?0:Z.sources))return{};q={thumbnails:[]};Z={};Z.url=this.data.creatorThumbnail.sources[0].url;q.thumbnails.push(Z);return q}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((Z=this.engagementState)==null?void 0:Z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((Z=this.engagementState)==null?void 0:Z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((Z=this.engagementState)==null?void 0:Z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((w=this.engagementState)==null?void 0:w.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}}});
var Vk=gtD;Vk.prototype.onTap=Vk.prototype.onTap;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Vk.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.u3),_.A("design:type",Object)],Vk.prototype,"ytLiveChatReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Vk.prototype,"data",void 0);
_.X([_.F({selectorArgs:["data.engagementStateKey"],selector:EGT}),_.A("design:type",Object)],Vk.prototype,"engagementState",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Vk.prototype,"thumbnailDetails",null);_.X([_.I("data","engagementState"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Vk.prototype,"isHearted",null);_.X([_.I("data","engagementState"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Vk.prototype,"isEditable",null);
_.X([_.I("data","engagementState"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Vk.prototype,"showCreatorView",null);_.X([_.I("data","engagementState"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Vk.prototype,"showButton",null);_.X([_.I("data","isHearted"),_.A("design:type",String),_.A("design:paramtypes",[])],Vk.prototype,"label",null);_.X([_.I("data","isHearted"),_.A("design:type",Object),_.A("design:paramtypes",[])],Vk.prototype,"heartHoverText",null);
_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vk.prototype,"onTap",null);Vk=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Vk);
_.p(Vk,"yt-live-chat-creator-heart-view-model",function(){if(i82===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;yS7===void 0&&(yS7=document.createElement("template"));var r=yS7;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);i82=q}q=i82;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var Ot=function(q,Z){this.serviceId=new Khg(q,Z)};
Ot.prototype.toString=function(){return this.serviceId.toString()};var qCW=function(){this.internalMap={}};
_.e=qCW.prototype;_.e.contains=function(q){return Object.prototype.hasOwnProperty.call(this.internalMap,q)};
_.e.get=function(q){if(this.contains(q))return this.internalMap[q]};
_.e.set=function(q,Z){this.internalMap[q]=Z};
_.e.getKeys=function(){return Object.keys(this.internalMap)};
_.e.remove=function(q){delete this.internalMap[q]};var Hv=function(){this.mappings=new qCW;this.errorCallbacks=new Set};
Hv.prototype.getModuleId=function(q){return q.serviceId.getModuleId()};
Hv.prototype.get=function(q){var Z=this.mappings.get(q.toString());return Z1D(this,Z,q)};
Hv.prototype.getMultipleAsync=function(){var q=_.Ta.apply(0,arguments),Z=this,w=q.map(function(H){return Z.getModuleId(H)}),r=q.map(function(H){return Z.mappings.get(H.toString())}).filter(function(H){return H});
if(r.length===q.length)return _.YK(r.map(function(H,L){return Z1D(Z,H,q[L])}));
var Y=R1().loadMultiple(w);r=_.WD(w.map(function(H){return Y[H]}));
var C=document.hidden,d=-1,O=_.m6("get_async_timeout_ms",-1);O>-1&&(d=setTimeout(function(){_.bx(new _.df("Module timeout.",w,C,document.hidden))},O));
return _.on(r.then(function(){return q.map(function(H){return Z1D(Z,Z.mappings.get(H.toString()),H)})}).thenCatch(function(H){for(var L=_.P(Z.errorCallbacks),S=L.next();!S.done;S=L.next())S=S.value,S(H);
throw H;}),function(){clearTimeout(d)})};
Hv.prototype.registerService=function(q,Z){this.mappings.set(q.toString(),{type:"mapping",value:Z});return q};
var Z1D=function(q,Z,w){switch(Z.type){case "mapping":return Z.value;case "factory":return Z=Z.value(),q.mappings.set(w.toString(),{type:"mapping",value:Z}),Z;default:return _.F7(Z)}};
Hv.prototype.onLoadError=function(q){var Z=this;this.errorCallbacks.add(q);return function(){Z.errorCallbacks.delete(q)}};
_.Wv=new Hv;var wL2=function(){};
_.e=wL2.prototype;
_.e.JSC$11762_getRequest=function(q,Z,w){Z=Z===void 0?{}:Z;w=w===void 0?UyJ:w;var r=Z;if(this.isNavigationCommand()){var Y,C=(Y=_.J(q==null?void 0:q.commandMetadata,_.XK))==null?void 0:Y.url;r=_.s61(q.clickTrackingParams,!0,!1,C,this.JSC$11762_getClientScreen(r))}else r=_.s61(q.clickTrackingParams,!1,this.includeCsn);r={context:r};if(Y=this.getExtension(q))return this.JSC$11762_buildRequest(r,Y,Z),Y=this.getApiUrl(q),C=Object.assign({},{command:q},this.getRequestConfig(q,Z)),r={input:Y,requestShell:sP(Y),
innerTubeRequest:r,config:C},r.config.authStrategy?r.config.authStrategy.identity=w:r.config.authStrategy={identity:w},(q=this.JSC$11762_getRequestKey(q,Z))&&!r.config.requestKey&&(r.config.requestKey=q),r;q=new _.df("Error: Failed to create Request from Command.",q);_.tY(q)};
_.e.getApiUrl=function(q){var Z=_.IZ(this.getApiPaths(q)),w;(q=(w=_.J(q.commandMetadata,_.XK))==null?void 0:w.apiUrl)&&(Z=q);return pBN(GZN(Z))};
_.e.isNavigationCommand=function(){return!1};
_.e.JSC$11762_getClientScreen=function(){};
_.e.JSC$11762_getRequestKey=function(){};
_.e.getRequestConfig=function(){};
_.My.Object.defineProperties(wL2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var o2=function(){};
_.z(o2,wL2);o2.prototype.JSC$11769_getStoreKey=function(){};
o2.prototype.JSC$11762_getRequestKey=function(q,Z){Z=Z===void 0?{}:Z;return this.JSC$11769_getStoreKey(q,Z)};var uP=function(){};
_.z(uP,o2);uP.prototype.JSC$11762_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:sP("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
uP.prototype.getApiPaths=function(){return[]};
uP.prototype.getExtension=function(){};
uP.prototype.JSC$11762_buildRequest=function(){};var rBW={},YCp=(rBW.GET_DATASYNC_IDS=Sj(uP),rBW);var $ve,e5h,CtD,Usv,LZ,VID,MdD,dv7,Ptv;$ve="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");e5h=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.bl=function(q,Z,w,r,Y,C,d,O,H){this.endpointMap=q;this.networkManager=Z;this.authService=w;this.responseProcessorMap=r;this.innertubeResponseStore=Y;this.contextProcessors=C;this.asyncContextProcessors=d;this.localInnertubeRouter=O;this.requestSequencer=H;this.inflightRequests=new Map;q.signalEndpointMap||(q.signalEndpointMap={});q.signalEndpointMap=Object.assign({},YCp,q.signalEndpointMap)};
CtD=function(q,Z,w,r,Y,C,d,O,H){if(_.bl.instance!==void 0){if(r=_.bl.instance,q=[q!==r.endpointMap,Z!==r.networkManager,w!==r.authService,Y!==r.innertubeResponseStore,C!==r.contextProcessors,d!==r.asyncContextProcessors,O!==r.localInnertubeRouter],q.some(function(L){return L}))throw new _.df("InnerTubeTransportService is already initialized",q);
}else _.bl.instance=new _.bl(q,Z,w,r,Y,C,d,O,H)};
_.zR=function(q,Z,w){var r=r===void 0?UyJ:r;var Y=MdD(q,Z);return Y?new _.r5(function(C,d){var O,H,L,S,v;return _.V(function(R){switch(R.nextAddress){case 1:return _.W(R,Y,2);case 2:O=R.yieldResult;H=O.JSC$11762_getRequest(Z,w,r);if(!H){d(new _.df("Error: Failed to build request for command.",Z));R.jumpTo(0);break}vP(H.input);S=((L=H.requestShell)==null?void 0:L.mode)==="cors"?"cors":void 0;if(q.authService.syncHeaders){v=Ptv(H.config,S);R.jumpTo(4);break}return _.W(R,dv7(H.config,S),5);case 5:v=
R.yieldResult;case 4:C(VID(q,H,v)),_.ub(R)}})}):_.TX(new _.df("Error: No request builder found for command.",Z))};
Usv=function(q,Z,w,r){var Y=Y===void 0?UyJ:Y;var C,d,O,H,L,S,v,R,B,n,x,K,k,G,rz,f,eO,g;return _.V(function(H6){switch(H6.nextAddress){case 1:C=YVI(Z,q.endpointMap);if(!C)throw new _.df("Error: No streaming request builder found for command",Z);d=C.JSC$11762_getRequest(Z,w,Y);if(!d)throw new _.df("Failed to build YtRequest for streaming Command",Z);if((O=q.localInnertubeRouter)==null||!O.shouldPreferLocalResponse(d.input,d.innerTubeRequest)){H6.jumpTo(2);break}return _.W(H6,q.localInnertubeRouter.localInnertubeResponse(d.input,
d.innerTubeRequest),3);case 3:return H=H6.yieldResult,L={},H.playerResponse&&(LZ(q,H.playerResponse,d),L.player=H.playerResponse,(S=r)==null||S(L,H)),H.watchNextResponse&&(LZ(q,H.watchNextResponse,d),L.content=H.watchNextResponse,(v=r)==null||v(L,H)),H6.return(L);case 2:B=((R=d.requestShell)==null?void 0:R.mode)==="cors"?"cors":void 0;if(q.authService.syncHeaders){n=Ptv(d.config,B);H6.jumpTo(4);break}return _.W(H6,dv7(d.config,B),5);case 5:n=H6.yieldResult;case 4:return k=(K=(x=d.requestShell)==null?
void 0:x.headers)!=null?K:{},d.requestShell=Object.assign({},d.requestShell,{headers:Object.assign({},k,n)}),G=Object.assign({},d.requestShell),rz=JSON.stringify(d.innerTubeRequest),d.requestShell.method==="POST"&&(G=Object.assign({},G,{body:rz})),f=function(nX,Qj){LZ(q,Qj.playerResponse||Qj.watchNextResponse||Qj.reelItemWatchResponse||Qj.reelWatchSequenceResponse,d);r==null||r(nX,Qj)},eO={},_.W(H6,O1K(q.networkManager,d.input,G,f),6);
case 6:return eO=H6.yieldResult,((g=d.config)==null?0:g.responseTick)&&_.JT(d.config.responseTick),H6.return(eO)}})};
_.tD=function(q,Z,w,r,Y){Y=Y===void 0?{authStrategy:{identity:UyJ}}:Y;var C=C===void 0?!0:C;var d=function(){};
d=CJ2(YZT(w));Z.context||(Z.context=_.s61(r,C));return new _.r5(function(O){var H,L,S,v,R;return _.V(function(B){if(B.nextAddress==1)return H=GZN(w),L=_.Kp(H),q.authService.syncHeaders?(S=Ptv(Y,L),B.jumpTo(2)):_.W(B,dv7(Y,L),3);B.nextAddress!=2&&(S=B.yieldResult);v=pBN(GZN(w));R={input:v,requestShell:sP(v),innerTubeRequest:Z,config:Y};O(VID(q,R,S,d));_.ub(B)})})};
LZ=function(q,Z,w){var r;if(Z&&!(Z==null?0:(r=Z.sequenceMetaData)==null?0:r.skipProcessing)&&q.responseProcessorMap){r=_.P($ve);for(var Y=r.next();!Y.done;Y=r.next())Y=Y.value,q.responseProcessorMap[Y]&&q.responseProcessorMap[Y].handleResponse(Z,w)}};
VID=function(q,Z,w,r){r=r===void 0?function(){}:r;
var Y,C,d,O,H,L,S,v,R,B,n,x,K,k,G,rz,f,eO,g,H6,nX,Qj,SO,Te,Ze,W1,A2,f9,Dl,$g,De,n9,Rh,xg,ZF,mm,CX,rb,mv,lC;return _.V(function(L9){switch(L9.nextAddress){case 1:d=(Y=Z.config)==null?void 0:(C=Y.storeStrategy)==null?void 0:C.storeKey;if(!(d&&q.innertubeResponseStore&&q.innertubeResponseStore.has(d))||((O=Z.config)==null?0:(H=O.storeStrategy)==null?0:H.disableCache)){L9.jumpTo(2);break}return _.W(L9,q.innertubeResponseStore.get(d),3);case 3:if((L=L9.yieldResult)&&!L.isExpired())return L9.return(Promise.resolve(_.Zb(L)));
case 2:if(!((S=Z)==null?0:(v=S.innerTubeRequest)==null?0:v.context)){L9.jumpTo(4);break}R=Z.innerTubeRequest.context;if(!(q.asyncContextProcessors&&q.asyncContextProcessors.length>0)){L9.jumpTo(5);break}B=[];n=_.P(q.asyncContextProcessors);for(x=n.next();!x.done;x=n.next())K=x.value,k=K.processContext(Z),k.wrappedPromise_&&B.push(k.wrappedPromise_);if(!(B.length>0)){L9.jumpTo(5);break}return _.W(L9,Promise.all(B),5);case 5:G=_.P(q.contextProcessors||[]),rz=G.next();case 8:if(rz.done){L9.jumpTo(4);
break}f=rz.value;return _.W(L9,f.processContext(R),9);case 9:rz=G.next();L9.jumpTo(8);break;case 4:if((eO=q.localInnertubeRouter)==null||!eO.shouldPreferLocalResponse(Z.input,Z.innerTubeRequest)){L9.jumpTo(12);break}return _.W(L9,q.localInnertubeRouter.localInnertubeResponse(Z.input,Z.innerTubeRequest),13);case 13:return g=L9.yieldResult,LZ(q,g,Z),L9.return(g);case 12:return(Qj=(nX=Z.config)==null?void 0:nX.requestKey)&&q.inflightRequests.has(Qj)?H6=q.inflightRequests.get(Qj):(SO=JSON.stringify(Z.innerTubeRequest),
W1=(Ze=(Te=Z.requestShell)==null?void 0:Te.headers)!=null?Ze:{},Z.requestShell=Object.assign({},Z.requestShell,{headers:Object.assign({},W1,w)}),A2=Object.assign({},Z.requestShell),Z.requestShell.method==="POST"&&(A2=Object.assign({},A2,{body:SO})),((f9=Z.config)==null?0:f9.requestTick)&&_.JT(Z.config.requestTick),Dl=function(){return q.networkManager.fetch(Z.input,A2,Z.config)},H6=q.requestSequencer?H1h(q.requestSequencer,Z,Dl):Dl(),Qj&&q.inflightRequests.set(Qj,H6)),_.W(L9,H6,14);
case 14:if(($g=L9.yieldResult)&&"error"in $g&&((De=$g)==null?0:(n9=De.error)==null?0:n9.details))for(Rh=$g.error.details,xg=_.P(Rh),ZF=xg.next();!ZF.done;ZF=xg.next())mm=ZF.value,(CX=mm["@type"])&&e5h.indexOf(CX)>-1&&(delete mm["@type"],$g=mm);Qj&&q.inflightRequests.has(Qj)&&q.inflightRequests.delete(Qj);((rb=Z.config)==null?0:rb.responseTick)&&_.JT(Z.config.responseTick);if($g||(mv=q.localInnertubeRouter)==null||!mv.canProvideFallbackResponse(Z.input,Z.innerTubeRequest)){L9.jumpTo(15);break}return _.W(L9,
q.localInnertubeRouter.localFallbackInnertubeResponse(Z.input,Z.innerTubeRequest),16);case 16:$g=L9.yieldResult;case 15:return LZ(q,$g,Z),((lC=Z.config)==null?0:lC.processorTick)&&_.JT(Z.config.processorTick),r(),L9.return($g||void 0)}})};
_.J7=function(q,Z){return roz(Z,q.endpointMap)};
MdD=function(q,Z){q=$gT(Z,q.endpointMap);if(q!==void 0)return Promise.resolve(q)};
dv7=function(q,Z){var w,r,Y,C;return _.V(function(d){if(d.nextAddress==1){Y=(w=q)==null?void 0:(r=w.authStrategy)==null?void 0:r.sessionIndex;var O=_.YK(L28({sessionIndex:Y}));return _.W(d,O,2)}C=d.yieldResult;return d.return(Promise.resolve(Object.assign({},eoT(Z),C)))})};
Ptv=function(q,Z){var w;q=q==null?void 0:(w=q.authStrategy)==null?void 0:w.sessionIndex;w=L28({sessionIndex:q});return Object.assign({},eoT(Z),w)};var WKp,oEK,u3X,LK2,SC2,vE7,R5D,b1J,jL,JB9,z5g,tI9,BNJ;WKp=0;oEK=/tone[1-5]/;u3X=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");LK2="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
SC2=Number.MAX_SAFE_INTEGER;vE7=RegExp("\ufe0f","g");_.SL=function(q){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;q&&_.jND(this,q)};
_.jND=function(q,Z){try{_.q4(Z,{context:q,onSuccess:function(r,Y){Array.isArray(Y)?q.load(Y):(r=new _.df("Emoji manager JSON response was not an array!",{response:Y}),_.tY(r))},
onError:function(r){r=new _.df("Failed to retrieve emoji manager initial JSON data!",{url:Z,statusCode:DV(r).toString()});_.bx(r)}})}catch(r){var w=new _.df("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:Z});
_.bx(w)}};
_.SL.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.SL.prototype.load=function(q,Z){if(Z)if(q.length)q=q.concat(Z.emojis);else{this.emojis=Z.emojis;this.emojiMap=Z.emojiMap;this.emojiShortcutMap=Z.emojiShortcutMap;this.emojiShortcutCharMap=tI9(Z);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=Z.emojiRegex;return}this.emojis=[].concat(_.Ju(new Set(this.emojis.concat(q))));this.hasInitializedShortcutCharMap=!1;q=Array(this.emojis.length);for(Z=0;Z<this.emojis.length;Z++){var w=this.emojis[Z];if(w.emojiId){this.emojiMap[w.emojiId]=w;this.emojiMap[w.emojiId].index=
Z;for(var r=0;w.shortcuts&&r<w.shortcuts.length;r++)this.emojiShortcutMap[w.shortcuts[r].toLocaleLowerCase()]=w;q[Z]=w.isCustomEmoji&&w.shortcuts?w.shortcuts[0]:w.emojiId}}q.sort(function(Y,C){return C.length-Y.length});
if(q.length)try{this.emojiRegex=new RegExp(q.join("|").replace("*","\\*"),"gi")}catch(Y){this.emojiRegex=/$./}else this.emojiRegex=/$./};
R5D=function(q,Z){Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next()){var r=w.value;if(r.emojiId&&q.emojiMap[r.emojiId]){w=Object.assign({},q.emojiMap[r.emojiId],r);q.emojiMap[r.emojiId]=w;var Y=void 0;w.index&&((Y=q.emojis[w.index])==null?void 0:Y.emojiId)===r.emojiId&&(q.emojis[w.index]=w);r=void 0;if((r=w.shortcuts)==null?0:r.length)for(q.hasInitializedShortcutCharMap=!1,r=_.P(w.shortcuts),Y=r.next();!Y.done;Y=r.next())q.emojiShortcutMap[Y.value.toLocaleLowerCase()]=w}}};
b1J=function(q){var Z,w;_.V(function(r){if(r.nextAddress==1)return _.W(r,_.dF.getInstance(),2);if(r.nextAddress!=3)return(Z=r.yieldResult)?_.W(r,Z.get("ytlc-emoji-pref"),3):r.return();(w=r.yieldResult)&&R5D(q,Object.keys(w).map(function(Y){return{emojiId:Y,stickyPrefId:w[Y]}}).filter(function(Y){return!!Y.emojiId&&!!Y.stickyPrefId}));
_.ub(r)})};
_.vv=function(q,Z,w){return(q=q.emojiMap[Z])&&(!q.isLocked||w!==void 0&&w)?q:void 0};
jL=function(q,Z,w){w=_.vv(q,Z,w===void 0?!1:w);var r=Z.match("\u200d");w&&q.skinTone!==0&&(q=(r==null?void 0:r.length)===1?_.vv(q,Z.replace("\u200d",u3X[q.skinTone]+"\u200d")):_.vv(q,Z+u3X[q.skinTone]))&&(w=q);return w};
JB9=function(q,Z){var w=q.emojiMap[Z];return(w==null?0:w.stickyPrefId)?q.emojiMap[w.stickyPrefId]:jL(q,Z)};
_.PQ=function(q,Z){q=q.emojiShortcutMap[Z.toLocaleLowerCase()];return!q||q.isLocked?null:q};
z5g=function(q,Z,w){return tI9(q,w===void 0?!1:w)[Z]||{}};
tI9=function(q,Z){Z=Z===void 0?!1:Z;if(!q.hasInitializedShortcutCharMap){q.hasInitializedShortcutCharMap=!0;for(var w=0;w<q.emojis.length;w++){var r=q.emojis[w];if(!(r.isLocked||Z&&r.isCustomEmoji&&r.emojiId&&!q.pickerCustomEmojiIds.includes(r.emojiId)))for(var Y=0;r.shortcuts&&Y<r.shortcuts.length;Y++){var C=r.shortcuts[Y];C.startsWith(":_")&&r.isCustomEmoji&&(q.emojiShortcutCharMap[":_"]==null&&(q.emojiShortcutCharMap[":_"]=Object.create(null)),q.emojiShortcutCharMap[":_"][C]=r);if(!(C.length<3||
!r.isCustomEmoji&&oEK.test(C))){var d=C.substr(0,3).toLocaleLowerCase();q.emojiShortcutCharMap[d]==null&&(q.emojiShortcutCharMap[d]=Object.create(null));q.emojiShortcutCharMap[d][C]=r}}}}return q.emojiShortcutCharMap};
_.SL.prototype.createEmoji=function(q,Z){Z=Z===void 0?!0:Z;var w=document.createElement("img");q.isCustomEmoji||w.classList.add("small-emoji");w.classList.add("emoji");w.classList.add("yt-formatted-string");w.src=q.image?_.TL(q.image.thumbnails,this.emojiSize)||"":"";var r=void 0;q.image&&q.image.accessibility&&q.image.accessibility.accessibilityData&&(r=q.image.accessibility.accessibilityData.label);w.alt=r?r:(q.isCustomEmoji&&q.shortcuts?q.shortcuts[0]:q.emojiId)||"";q.isCustomEmoji&&(w.dataset.emojiId=
q.emojiId);_.wS&&(w.setAttribute("contenteditable","false"),w.setAttribute("unselectable","on"));Z&&(q.shortcuts&&q.shortcuts.length&&w.setAttribute("shared-tooltip-text",q.shortcuts[0]),w.id="emoji-"+WKp++);return w};
_.SL.prototype.createDocumentFragment=function(q,Z,w,r){Z=Z===void 0?!1:Z;w=w===void 0?!0:w;r=r===void 0?!1:r;q=q.replace(vE7,"");for(var Y=document.createDocumentFragment(),C=0,d,O=0;(d=this.emojiRegex.exec(q))!=null;){var H=_.vv(this,d[0])||_.PQ(this,d[0]);!H||H.isCustomEmoji&&!Z||(H=this.createEmoji(H,w),C!==d.index&&Y.appendChild(document.createTextNode(q.substring(C,d.index))),Y.appendChild(H),C=d.index+d[0].length,O++)}if(!r||O)return Y.appendChild(document.createTextNode(q.substr(C))),Y};
BNJ=function(q,Z,w){var r,Y,C,d,O,H,L,S,v;return _.V(function(R){if(R.nextAddress==1){if(!Z.emojiId||!q.emojiMap[Z.emojiId])return R.return();r=Object.assign({},q.emojiMap[Z.emojiId],{stickyPrefId:w});q.emojiMap[Z.emojiId]=r;Z.index&&((Y=q.emojis[Z.index])==null?void 0:Y.emojiId)===Z.emojiId&&(q.emojis[Z.index]=r);if((C=Z.shortcuts)==null?0:C.length)for(q.hasInitializedShortcutCharMap=!1,d=_.P(Z.shortcuts),O=d.next();!O.done;O=d.next())H=O.value,q.emojiShortcutMap[H.toLocaleLowerCase()]=r;return _.W(R,
_.dF.getInstance(),2)}if(R.nextAddress!=4)return(L=R.yieldResult)?_.W(R,L.get("ytlc-emoji-pref"),4):R.jumpTo(0);v=(S=R.yieldResult)!=null?S:{};v[Z.emojiId]=w;return _.W(R,L.set("ytlc-emoji-pref",v,SC2),0)})};
_.tC=new _.SL;var QNh;_.R2={};
QNh={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.b("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:_.b("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 xO(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 q=_.E(this.hostElement||this).querySelector("#inline-action-button-container");q&&q.setAttribute("aria-hidden","true");this.menuButton=_.E(this.hostElement).querySelector("#menu-button")},
attached:function(){var q=this.menuButton;q&&(q.addEventListener("focusin",_.XN(this,this.onMenuButtonFocus_)),q.addEventListener("focusout",_.XN(this,this.onMenuButtonBlur_)))},
detached:function(){var q=this.menuButton;q&&(q.removeEventListener("focusin",_.XN(this,this.onMenuButtonFocus_)),q.removeEventListener("focusout",_.XN(this,this.onMenuButtonBlur_)))},
identity:_.s2,truthy:function(q){return!!q},
computeTimestampString:function(q){return q?q.timestampText?this.getSimpleString(q.timestampText):this.TIME_FORMATTER.format(new Date(q.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(q){return _.b("live_chat_whole_message_clickable")&&q},
computeMenuVisible_:function(q,Z){return q||Z},
computeHasInlineActionButtons:function(q){if(!q)return!1;var Z,w;return!((Z=q.inlineActionButtons)==null||!Z.length)||!((w=q.additionalInlineActionButtons)==null||!w.length)},
createDocumentFragmentFromString:function(q){var Z=_.tC.createDocumentFragment.bind(_.tC),w;if((w=this.participantsManager)==null||!w.viewerRegex)return Z(q);w=document.createDocumentFragment();for(var r=0,Y;(Y=this.participantsManager.viewerRegex.exec(q))!=null;){if(Y.index>0){var C=":"+Y[0]+":";if((_.vv(_.tC,C)||_.PQ(_.tC,C))&&q.indexOf(C)===Y.index-1)continue}w.appendChild(Z(q.substring(r,Y.index)));r=document.createElement("span");r.appendChild(Z(Y[0]));r.classList.add("mention");w.appendChild(r);
r=Y.index+Y[0].length}w.appendChild(Z(q.substring(r)));return w},
createDocumentFragment:function(q){var Z=document.createDocumentFragment();if(q.simpleText)return Z.appendChild(this.createDocumentFragmentFromString(q.simpleText)),Z;if(!q.runs)return Z;for(var w=0;w<q.runs.length;w++){var r=q.runs[w];if(r.emoji)Z.appendChild(_.tC.createEmoji(r.emoji));else if(r.text)if(r.navigationEndpoint){var Y=document.createElement("a");Y.classList.add("yt-simple-endpoint");Iv9(Y,r.navigationEndpoint);_.E(Y).appendChild(this.createDocumentFragmentFromString(r.text));Z.appendChild(Y)}else Z.appendChild(this.createDocumentFragmentFromString(r.text))}return Z},
hasModerationOverlayVisible:function(){var q;return((q=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:q.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(q){q.composedPath().some(function(Z){return(Z=Z instanceof Element?Z:null)?Z.tagName&&(Z.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||Z.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.b("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(q)},
colorFromDecimal:function(q){return m5j(q)},
markAsDeleted:function(q,Z){this.set("data.deletedStateMessage",q);this.set("data.showOriginalContentMessage",Z)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(q){if(this.data.contextMenuEndpoint){var Z=_.t().resolve(_.Co),w=this.data.contextMenuEndpoint,r;(r=_.bl.instance)&&_.J7(r,w)?(Z=a2g(Z,w),r=_.tD(r,{},Z)):r=_.nEp(Z,w);r.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);q&&q.stopPropagation()}},
handleGetContextMenuResponse_:function(q){var Z=_.bl.instance;Z&&_.J7(Z,{liveChatEndpoint:{}})||(q=q.response);q.liveChatItemContextMenuSupportedRenderers&&q.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(q.liveChatItemContextMenuSupportedRenderers.menuRenderer);q.actions&&_.yY(this.hostElement,"yt-live-chat-actions",[q.actions])},
handleGetContextMenuError:function(q){if(q instanceof Error||q instanceof Object||q instanceof String)var Z=q;_.tY(new _.df("Error encountered calling GetLiveChatItemContextMenu",Z))},
showContextMenu_:function(q){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:q}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.hy(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.hy(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.R2.YtLiveChatItemBehavior=[QNh,_.S_.YtComponentBehavior,_.Xp.YtOpenPopupBehavior];_.bP=function(){};var EE1;var xv2;var TNh;var Uvg;var kt2=function(){var q=_.N.apply(this,arguments)||this;q.active=!1;q.identity=_.s2;return q};
_.z(kt2,_.N);kt2.prototype.dataChanged=function(){this.active=!1};
kt2.prototype.onClick=function(){_.hy(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
var JC=kt2;JC.prototype.dataChanged=JC.prototype.dataChanged;_.X([_.F(),_.A("design:type",Object)],JC.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],JC.prototype,"active",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],JC.prototype,"dataChanged",null);JC=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],JC);
_.p(JC,"yt-live-chat-text-input-field-suggestion",function(){if(Uvg===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;TNh===void 0&&(TNh=document.createElement("template"));var r=TNh;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Uvg=q}q=Uvg;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});_.zU=function(q,Z,w){return CustomEvent.call(this,q,{detail:{value:Z,path:w}})||this};
_.z(_.zU,CustomEvent);var KK9=function(){var q=_.N.apply(this,arguments)||this;q.viewerName=null;q.actionMap={"yt-live-chat-actions":"onChatMessage_"};q.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];q.PARTICIPANT_TIME_USEC_=3E8;return q};
_.z(KK9,_.N);_.e=KK9.prototype;_.e.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.e.addParticipant=function(q){var Z=_.n16(this.participants,q,function(r,Y){r=r[Object.keys(r)[0]];Y=Y[Object.keys(Y)[0]];r=String(_.kO(r.authorName)).toLowerCase();Y=String(_.kO(Y.authorName)).toLowerCase();return r<Y?-1:r==Y?0:1}.bind(this));
if(Z>=0){var w=this.participants[Z];w[Object.keys(w)[0]].timestampUsec&&this.splice("participants",Z,1,q)}else this.splice("participants",-Z-1,0,q);q=q[Object.keys(q)[0]];Z=_.kO(q.authorName).toLocaleLowerCase();w=Z.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(w)||(this.allParticipantsCharMap_[w]={});this.allParticipantsCharMap_[w][Z]=q};
_.e.getAuthorsFromPrefix=function(q){return this.allParticipantsCharMap_.hasOwnProperty(q)?this.allParticipantsCharMap_[q]:null};
_.e.computeViewerRegex_=function(q){if(!q)return null;q=q.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp("([@#]"+q.replace(/ /g,"\\s*")+"|^"+q.replace(/ /g,"\\s*")+"$|^"+q.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+q.replace(/ /g,"\\s*")+"$|(?<=\\s)"+q.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.e.checkForStaleParticipants_=function(){var q=this;this.trimOldParticipants_();this.asyncHandle_&&jO2(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.SH(function(){q.checkForStaleParticipants_()},3E4))};
_.e.onChatMessage_=function(q){var Z=this,w=Date.now()*1E3;q.forEach(function(r){if(r=_.J(r,AHv)){r=r.item;var Y=Object.keys(r)[0];Z.SUPPORTED_ITEM_TYPES_.indexOf(Y)!=-1&&r[Y].timestampUsec>=w-Z.PARTICIPANT_TIME_USEC_&&Z.addParticipant(r)}},this);
this.checkForStaleParticipants_()};
_.e.trimOldParticipants_=function(){for(var q=Date.now()*1E3,Z=this.participants.length-1;Z>=0;Z--){var w=this.participants[Z];w=w[Object.keys(w)[0]];w.timestampUsec&&w.timestampUsec<q-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",Z,1)}};
_.Bv=KK9;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],_.Bv.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],_.Bv.prototype,"viewerName",void 0);_.X([_.F({computed:"computeViewerRegex_(viewerName)"}),_.A("design:type",Object)],_.Bv.prototype,"viewerRegex",void 0);_.X([_.F({value:function(){return[]},
notify:!0}),_.A("design:type",Array)],_.Bv.prototype,"participants",void 0);_.Bv=_.X([_.dx({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Bv);var sN1=/.*([:@#].*?)$/,a2=/\u00a0/g,I21=String.fromCharCode(160),cB7={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"},MIX=function(){var q=_.N.apply(this,arguments)||this;q.disabled=!1;q.liveChatRichMessageInput=null;q.messageInput=null;q.isValidWithNoInputText=!1;q.suggestions=[];q.emojiManager=_.tC;q.inputMethodEditorActive=
!1;q.suggestionIndex=-1;q.JSC$11817_lastSuggestionRange=null;return q};
_.z(MIX,_.N);_.e=MIX.prototype;_.e.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.e.attached=function(){_.rS&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.e.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.e.dataChanged=function(){if(!this.ignoreColorMapping){var q=!1,Z={},w;for(w in cB7)this.data&&this.data.hasOwnProperty(w)&&(Z[cB7[w]]=this.colorFromDecimal(this.data[w]),q=!0);q&&_.po(this.hostElement,Z)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.e.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.e.colorFromDecimal=function(q){q=Math.floor(Number(q));return"rgba("+[q>>16&255,q>>8&255,q&255,(q>>24&255)/255].join()+")"};
_.e.preventDrag=function(q){q.dataTransfer&&(q.dataTransfer.dropEffect="none");q.preventDefault()};
_.e.preventResize=function(q){q.returnValue=!1};
_.e.onInputChange=function(){var q=this.characterCount,Z=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&Z&&Z.remove();if(!Z&&this.characterCount>this.maxCharacterLimit){var w=window.getSelection();if(w){var r=w.getRangeAt(0);w.removeAllRanges();w.addRange(r)}}if(w=this.getCurrentRange())r=this.calculateTextBeforeRange(w),this.completeEmojisInRange(w,r,!0)||this.updateSuggestions(w,r);r=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(r);
_.hy(this.hostElement,"yt-live-chat-message-input-change",r);Z&&this.characterCount===0&&Z.remove();w&&w.commonAncestorContainer.parentElement.id==="input"&&w.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>q):w&&!w.collapsed&&w.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(q=this.input.childNodes.length-1;q>=0;q--)this.input.childNodes[q].nodeName==="BR"&&this.input.childNodes[q].remove()};
_.e.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.e.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var q=this.getCurrentRange();q&&q.commonAncestorContainer.parentElement.id==="input"&&q.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.e.mergeOverflowText=function(q){if(q){var Z=document.createRange();Z.selectNodeContents(q);Z=Z.extractContents();this.input.insertBefore(Z,q)}};
_.e.checkRangeAtEndOfInput=function(){var q=this.getCurrentRange();if(q){var Z=_.E(this.hostElement).querySelector("#overflow-text"),w=document.createRange();Z&&Z.previousSibling?Z.previousSibling instanceof HTMLImageElement?w.selectNode(Z.previousSibling):w.selectNodeContents(Z.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?w.selectNode(this.input.lastChild):w.selectNodeContents(this.input.lastChild));w.collapse(!1);return w.isPointInRange(q.startContainer,
q.startOffset)}return!1};
_.e.handleOverflowText=function(q){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var Z=_.E(this.hostElement).querySelector("#overflow-text"),w=this.getCurrentRange();this.input.normalize();q=this.checkRangeAtEndOfInput()&&q;this.mergeOverflowText(Z);for(var r,Y=0,C=0,d,O=this.input.childNodes,H=0;H<O.length;H++){var L=O[H];L instanceof Text?(C+=L.textContent.length,C>this.maxCharacterLimit&&(r=L,Y=this.maxCharacterLimit+L.textContent.length-C)):L instanceof HTMLImageElement&&
(r=void 0,C=L.dataset.emojiId&&((r=this.data)==null?0:r.emojiCharacterCount)?C+this.data.emojiCharacterCount:C+L.alt.length,r=this.input,Y=H);if(C>this.maxCharacterLimit&&r){d=document.createRange();d.collapse(!1);Z?(C=this.input.lastChild.previousSibling,C instanceof Text?d.setEnd(this.input.lastChild.previousSibling,C.textContent.length):C instanceof HTMLImageElement&&d.setEnd(this.input,this.input.childNodes.length-1)):d.selectNodeContents(this.input);d.setStart(r,Y);break}}d&&(r=!1,w&&(q=d.isPointInRange(w.startContainer,
w.startOffset-1)),Z||(Z=document.createElement("span"),Z.id="overflow-text",Z.textContent="",Z.setAttribute("contenteditable","true"),_.E(_.E(this.hostElement).querySelector("#input")).appendChild(Z),r=!0),Z&&(w=d.extractContents(),Z.insertBefore(w,Z.firstChild),q&&Z.firstChild&&(w=document.createRange(),r?w.setStartAfter(Z.lastChild):w.setStartAfter(Z.firstChild),w.collapse(!0),Z=window.getSelection(),Z.removeAllRanges(),Z.addRange(w))))}};
_.e.checkForDuplicateSpans=function(){for(var q=0;q<this.input.childNodes.length;q++){var Z=this.input.childNodes[q];if(Z.nodeName==="SPAN"){var w=document.createRange();w.selectNodeContents(Z);w=w.extractContents();this.input.insertBefore(w,Z);Z.remove()}}this.handleOverflowText(!0)};
_.e.getCurrentRange=function(){var q=window.getSelection();return q&&q.rangeCount?q.getRangeAt(0).cloneRange():null};
_.e.getInputRange=function(){var q=this.getCurrentRange();if(q){for(var Z=q.commonAncestorContainer,w=!1,r=_.E(this.hostElement).querySelector("#input");Z;){if(Z===r){w=!0;break}Z=Z.parentNode}w||(q=null)}q||(q=this.getRangeAtEnd());return q};
_.e.getRangeAtEnd=function(){var q=document.createRange(),Z=_.E(this.hostElement).querySelector("#input").lastChild;!Z||Z.nodeName!=="#text"&&Z.nodeName!=="SPAN"?(q.selectNodeContents(_.E(this.hostElement).querySelector("#input")),q.collapse(!1)):Z.nodeName==="#text"?q.setStart(Z,Z.textContent.length):q.setStart(Z,Z.childNodes.length);return q};
_.e.getSuggestions=function(q){var Z=[],w=q.substring(0,3),r=z5g(_.tC,w,!0);if(r)for(var Y in r)if(Y.toLocaleLowerCase().indexOf(q)===0){var C=r[Y];if(C&&C.emojiId){if(C=JB9(_.tC,C.emojiId)){var d=void 0,O=void 0,H=void 0,L=void 0,S=((d=C.image)==null?0:(O=d.accessibility)==null?0:(H=O.accessibilityData)==null?0:H.label)||C.isCustomEmoji?(L=C.shortcuts)==null?void 0:L[0]:C.emojiId;Z.push({suggestion:{emoji:!0,image:C.image,alt:S,text:Y,textToInsertWhenSelected:C.isCustomEmoji?Y:S}})}if(Z.length>=
64)break}}if(!this.participantsManager)return null;Y=_.b("enable_web_yt_handles")||_.b("enable_live_chat_yt_handles");if(w.indexOf("@")===0||w.indexOf("#")===0)if(r=w.charAt(0),Y&&w.indexOf("@")===0?w=w.substring(0,2):(q=q.substring(1),w=w.substring(1)),w=this.participantsManager.getAuthorsFromPrefix(w))for(var v in w)if(v.indexOf(q)===0&&(Y=w[v],C=_.kO(Y.authorName),Z.push({suggestion:{author:!0,authorType:r,image:Y.authorPhoto,alt:C,text:C}}),Z.length>=64))break;return Z?Z.sort(function(R,B){return B.suggestion.text<
R.suggestion.text?-1:B.suggestion.text===R.suggestion.text?0:1}):null};
_.e.insertSuggestion=function(q){q.emoji?this.insertTextAtRange(this.JSC$11817_lastSuggestionRange,q.textToInsertWhenSelected||""):q.author&&this.insertTextAtRange(this.JSC$11817_lastSuggestionRange,q.authorType+q.text+I21)};
_.e.updateSuggestionsAtCaret=function(){var q=this.getCurrentRange();q&&this.updateSuggestions(q,this.calculateTextBeforeRange(q))};
_.e.offsetStartOfRangeBy=function(q,Z){for(;Z>0;)if(q.startOffset-Z>=0){q.setStart(q.startContainer,q.startOffset-Z);break}else{Z=q.startContainer instanceof HTMLImageElement?Z-q.startContainer.alt.length:Z-q.startOffset;var w=q.startContainer.previousSibling;if(!w){q.setStart(q.startContainer,0);break}if(_.b("live_chat_require_space_for_autocomplete_emoji")){var r=void 0,Y=void 0;q.setStart(w,((r=w)==null?void 0:(Y=r.textContent)==null?void 0:Y.length)||0)}else q.setStart(w,w.childNodes.length||
0)}};
_.e.updateSuggestions=function(q,Z){var w=this;this.JSC$11817_lastSuggestionRange&&(this.JSC$11817_lastSuggestionRange.detach(),this.JSC$11817_lastSuggestionRange=null);if((Z=sN1.exec(Z))&&Z.length&&(Z=Z[Z.length-1].toLocaleLowerCase(),Z.length>2&&(this.offsetStartOfRangeBy(q,Z.length),this.JSC$11817_lastSuggestionRange=q,(q=this.getSuggestions(Z))&&q.length))){this.suggestions=q;_.I_(this,function(){_.E(w.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(q.length-1);return}this.dropdown.opened=!1};
_.e.completeEmojisInRange=function(q,Z,w){var r=Z.replace(/[\s\xa0]+$/,"");Z=Z.length-r.length;r=r.split(" ");r=r[r.length-1].trim().toLocaleLowerCase();var Y=r.lastIndexOf(":");if(w&&!Z&&Y!==r.length-1)return!1;Y!==-1&&(w=r.lastIndexOf(":",Y-1),w!==-1&&(r=r.substring(w)));if((w=_.PQ(_.tC,r))&&w.emojiId){w=JB9(_.tC,w.emojiId)||null;this.offsetStartOfRangeBy(q,r.length+Z);var C,d,O,H;r=(((C=w)==null?0:C.isCustomEmoji)?(d=w)==null?void 0:(O=d.shortcuts)==null?void 0:O[0]:(H=w)==null?void 0:H.emojiId)||
"";Z&&(r+=I21);this.insertTextAtRange(q,r);this.dropdown.opened=!1;return!0}return!1};
_.e.onSuggestion=function(q){this.insertSuggestion(q.detail);this.dropdown.opened=!1};
_.e.onKeyPress=function(q){q.keyCode===13&&(q.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.hy(this.hostElement,"yt-live-chat-send-message"))};
_.e.completeEmojis=function(){var q=document.createRange(),Z=_.E(this.hostElement).querySelector("#input").lastChild;Z?q.setStart(Z,Z.childNodes.length):(q.selectNodeContents(_.E(this.hostElement).querySelector("#input")),q.collapse(!1));this.completeEmojisInRange(q,this.calculateTextBeforeRange(q),_.b("live_chat_require_space_for_autocomplete_emoji"))};
_.e.maybePreventTextFormatting=function(q){!_.eF||!q.ctrlKey&&!q.metaKey||q.keyCode!==66&&q.keyCode!==73||(q.stopImmediatePropagation(),q.preventDefault())};
_.e.onKeyDown=function(q){this.maybePreventTextFormatting(q);if(this.dropdown.opened)switch(q.keyCode){case 27:this.dropdown.opened=!1;q.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;q.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);q.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),q.preventDefault()}};
_.e.onKeyUp=function(q){switch(q.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.wS)this.onInputChange()};
_.e.changeSuggestionIndex=function(q){if(this.dropdown.opened){var Z=_.E(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<Z.children.length&&(Z.children[this.suggestionIndex].active=!1);var w=this.suggestions.length;this.suggestionIndex=(q+w)%w;q=Z.children[this.suggestionIndex];q.active=!0;Z.scrollTop=q.offsetTop}};
_.e.onInputPaste=function(q){q.preventDefault();(q=q.clipboardData)&&q.types&&(q=q.getData("text/plain")||"",q=q.replace(/\n/g,""),this.insertText(q));(q=this.getCurrentRange())&&q.commonAncestorContainer.parentElement.id==="input"&&q.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.e.onFocus=function(){this._setFocused(!0)};
_.e.onBlur=function(){this._setFocused(!1)};
_.e.insertText=function(q){this.insertTextAtRange(this.getInputRange(),q)};
_.e.insertTextAtRange=function(q,Z){if(q&&(q.collapsed||q.deleteContents(),Z=_.tC.createDocumentFragment(Z,!0,!1))){for(var w=_.P((Z==null?void 0:Z.childNodes)||[]),r=w.next();!r.done;r=w.next()){r=r.value;var Y=void 0,C=void 0,d=void 0,O=void 0,H=void 0;(d=(Y=window)==null?void 0:(C=Y.ShadyCSS)==null?void 0:C.ScopingShim)==null||(H=(O=d).scopeNode)==null||H.call(O,r,this.hostElement.localName)}w=Z.lastChild;q.insertNode(Z);this.focused||this.input.focus();if(this.focused){q=q.cloneRange();q.selectNodeContents(w);
q.collapse(!1);if(Z=window.getSelection())Z.removeAllRanges(),Z.addRange(q);q.commonAncestorContainer.parentElement.id==="input"&&q.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}q=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(q);_.hy(this.hostElement,"yt-live-chat-message-input-change",q)}};
_.e.setLiveChatRichMessageInput=function(q){_.E(_.E(this.hostElement).querySelector("#input")).textContent="";if(q&&q.textSegments){for(var Z=0;Z<q.textSegments.length;Z++){var w=q.textSegments[Z];w.text?_.E(_.E(this.hostElement).querySelector("#input")).appendChild(_.tC.createDocumentFragment(w.text,!0,!1)):w.emojiId&&(w=_.vv(_.tC,w.emojiId))&&_.E(_.E(this.hostElement).querySelector("#input")).appendChild(_.tC.createEmoji(w,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.e.setText=function(q){this.setLiveChatRichMessageInput(q?{textSegments:[{text:q}]}:null)};
_.e.calculateTextBeforeRange=function(q){var Z="",w=q.startContainer;if(w&&w instanceof Text){var r;Z=((r=w.textContent)==null?void 0:r.substring(0,q.startOffset))||"";w=w.previousSibling}for(;w&&w instanceof Text;)Z=w.textContent+Z,w=w.previousSibling;return Z.replace(a2," ")};
_.e.calculateLiveChatRichMessageInput=function(){for(var q=[],Z="",w=_.E(_.E(this.hostElement).querySelector("#input")).childNodes,r=0;r<w.length;r++){var Y=w[r];Y instanceof Text?Z+=Y.textContent:Y instanceof HTMLImageElement&&(Y.dataset.emojiId?(Z&&(q.push({text:Z.replace(a2," ")}),Z=""),q.push({emojiId:Y.dataset.emojiId})):Z+=Y.alt)}Z&&q.push({text:Z.replace(a2," ")});if(w=_.E(this.hostElement).querySelector("#overflow-text")){Z="";w=w.childNodes;for(r=0;r<w.length;r++)Y=w[r],Y instanceof Text?
Z+=Y.textContent:Y instanceof HTMLImageElement&&(Y.dataset.emojiId?(Z&&(q.push({text:Z.replace(a2," ")}),Z=""),q.push({emojiId:Y.dataset.emojiId})):Z+=Y.alt);Z&&q.push({text:Z.replace(a2," ")})}return{textSegments:q}};
_.e.computeCharacterCount=function(q){if(!q||!q.textSegments)return 0;for(var Z=0,w=0;w<q.textSegments.length;w++){var r=q.textSegments[w];if(r.text)Z+=r.text.length;else if(r.emojiId){var Y=void 0;if((Y=this.data)==null?0:Y.emojiCharacterCount)Z+=this.data.emojiCharacterCount;else{var C=Y=void 0,d=void 0;Z+=((C=_.vv(_.tC,(Y=r)==null?void 0:Y.emojiId))==null?void 0:(d=C.shortcuts)==null?void 0:d[0].length)||0}}}return Z};
_.e.characterCountChanged=function(){_.hy(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.e.focusedChanged=function(){this.hostElement.dispatchEvent(new _.zU("focused-changed",this.focused))};
_.e.focus=function(){this.setFocus(!1)};
_.e.focusAtEnd=function(){this.setFocus(!0)};
_.e.setFocus=function(q){q=q?this.getRangeAtEnd():this.getInputRange();_.E(this.hostElement).querySelector("#input").focus();var Z=window.getSelection();Z&&(Z.removeAllRanges(),Z.addRange(q))};
_.e.insertEmoji=function(q){var Z,w=((q==null?0:q.isCustomEmoji)?(Z=q.shortcuts)==null?void 0:Z[0]:q==null?void 0:q.emojiId)||"";this.insertText(w)};
_.e.computeText=function(q){if(!q||!q.textSegments)return"";for(var Z="",w=0;w<q.textSegments.length;w++){var r=q.textSegments[w];if(r.text)Z+=r.text;else if(r.emojiId){var Y=void 0,C=void 0,d=void 0;Z+=((C=_.vv(_.tC,(Y=r)==null?void 0:Y.emojiId))==null?void 0:(d=C.shortcuts)==null?void 0:d[0])||""}}return Z};
_.e.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.My.Object.defineProperties(MIX.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.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}}});
var nZ=MIX;nZ.prototype.focusedChanged=nZ.prototype.focusedChanged;nZ.prototype.characterCountChanged=nZ.prototype.characterCountChanged;nZ.prototype.onSuggestion=nZ.prototype.onSuggestion;nZ.prototype.onMessageSet=nZ.prototype.onMessageSet;nZ.prototype.dataChanged=nZ.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],nZ.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],nZ.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],nZ.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],nZ.prototype,"disabled",void 0);_.X([_.I("disabled"),_.A("design:type",Number),_.A("design:paramtypes",[])],nZ.prototype,"inputTabIndex",null);
_.X([_.I("data.maxCharacterLimit"),_.F({readOnly:!0,notify:!0}),_.A("design:type",Number),_.A("design:paramtypes",[])],nZ.prototype,"maxCharacterLimit",null);_.X([_.I("liveChatRichMessageInput"),_.F({readOnly:!0,notify:!0}),_.A("design:type",Number),_.A("design:paramtypes",[])],nZ.prototype,"characterCount",null);_.X([_.I("maxCharacterLimit, characterCount"),_.F({readOnly:!0,notify:!0}),_.A("design:type",Number),_.A("design:paramtypes",[])],nZ.prototype,"remainingCharacterCount",null);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],nZ.prototype,"isChatMessageInput",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],nZ.prototype,"inputExpanded",void 0);_.X([_.F({readOnly:!0,notify:!0}),_.A("design:type",Object)],nZ.prototype,"liveChatRichMessageInput",void 0);_.X([_.F(),_.A("design:type",Object)],nZ.prototype,"messageInput",void 0);_.X([_.F(),_.A("design:type",Boolean)],nZ.prototype,"ignoreColorMapping",void 0);
_.X([_.I("characterCount"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],nZ.prototype,"hasText",null);_.X([_.F(),_.A("design:type",Object)],nZ.prototype,"isValidWithNoInputText",void 0);_.X([_.I("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.F(),_.A("design:type",Boolean),_.A("design:paramtypes",[])],nZ.prototype,"isInputValid",null);_.X([_.F({readOnly:!0,value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],nZ.prototype,"focused",void 0);
_.X([_.F(),_.A("design:type",Array)],nZ.prototype,"suggestions",void 0);_.X([_.F(),_.A("design:type",_.SL)],nZ.prototype,"emojiManager",void 0);_.X([_.F(),_.A("design:type",_.Bv)],nZ.prototype,"participantsManager",void 0);_.X([_.F(),_.A("design:type",Boolean)],nZ.prototype,"noUnderline",void 0);_.X([_.F(),_.A("design:type",Object)],nZ.prototype,"inputMethodEditorActive",void 0);_.X([_.fo("#dropdown"),_.A("design:type",Object)],nZ.prototype,"dropdown",void 0);
_.X([_.fo("#input"),_.A("design:type",HTMLElement)],nZ.prototype,"input",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nZ.prototype,"dataChanged",null);_.X([_.M("messageInput"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nZ.prototype,"onMessageSet",null);
_.X([_.m2("yt-live-chat-select-suggestion"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],nZ.prototype,"onSuggestion",null);_.X([_.M("characterCount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nZ.prototype,"characterCountChanged",null);_.X([_.M("focused"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nZ.prototype,"focusedChanged",null);
nZ=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],nZ);
_.FKh=_.p(nZ,"yt-live-chat-text-input-field-renderer",function(){if(xv2===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;EE1===void 0&&(EE1=document.createElement("template"));var r=EE1;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);xv2=q}q=xv2;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var NNp=function(){var q=_.N.apply(this,arguments)||this;q.buttonOverrides={style:"overlay",type:"filled"};q.allowAnimations=!1;q.modern=_.b("web_button_rework_with_live");q.noPadding=!1;return q};
_.z(NNp,_.N);_.e=NNp.prototype;_.e.shouldSupportInlineActionButtons=function(){return!0};
_.e.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"}}}}};
_.e.ready=function(){var q=document.querySelector("yt-live-chat-app");q&&q.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.e.attached=function(){this.allowAnimations=!1};
_.e.dataChanged=function(){if(this.data){var q={"--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)};_.po(this.hostElement,q);this.allowAnimations=!0}};
_.e.messageChanged=function(){var q,Z=(q=this.data)==null?void 0:q.message;q=_.E(_.E(this.hostElement).querySelector("#message"));q.textContent="";Z&&q.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(Z))};
_.e.computeShowOnlyHeader=function(q,Z){return!q||q.pdgLikeButton||q.replyButton||q.buyFlowButton?!1:this.isEmpty(q,Z)&&!q.footer};
_.e.computeShowFooterDivider=function(q,Z,w){return q?!!q.footer&&!this.isEmpty(q,Z)&&!w:!1};
_.e.computeIsUserEditable=function(q){return!!q.inputField};
_.e.computeHasHeartButton=function(q){return(q==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(q==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(q==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.e.computeNoveltyImage=function(q){if(q.headerOverlayImage&&q.headerOverlayImage.thumbnails.length){var Z=q.headerOverlayImage.thumbnails[0],w,r;if((w=q.pdgPurchasedNoveltyLoggingDirectives)==null?0:(r=w.loggingDirectives)==null?0:r.trackingParams){var Y,C;TV9((Y=q.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(C=Y.loggingDirectives)==null?void 0:C.trackingParams)}return Z.width||0}return 0};
_.e.computeAuthorPhotoSize=function(q){return(q==null?0:q.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.e.inputFocus=function(){var q=_.E(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");q&&q.focus()};
_.e.inputInsertEmoji=function(q){var Z=_.E(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");Z&&Z.insertEmoji(q)};
_.e.inputMessage=function(){var q=_.E(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),Z;return q&&((Z=this.data)==null?0:Z.inputField)?(q.completeEmojis(),_.jj(q.liveChatRichMessageInput)):null};
_.e.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.e.isEmpty=function(q,Z){return q?q.empty||!(q.message||q.inputField||Z):!0};
_.e.onLowerBuyButtonClick=function(){var q,Z=_.J((q=this.data)==null?void 0:q.buyButton,_.tA);Z&&Z.trackingParams&&!f41(Z.command)&&(q=_.wa(Z.trackingParams))&&(Z=_.b5())&&_.sh(Z,q)};
_.e.shouldSupportWholeItemClick=function(){return!0};
_.My.Object.defineProperties(NNp.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
var Qk=NNp;Qk.prototype.isDeletedChanged=Qk.prototype.isDeletedChanged;Qk.prototype.messageChanged=Qk.prototype.messageChanged;Qk.prototype.dataChanged=Qk.prototype.dataChanged;_.X([_.U(qQD.YtPdgLiveChatItemBehavior),_.A("design:type",Object)],Qk.prototype,"ytPdgLiveChatItemBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.u3),_.A("design:type",Object)],Qk.prototype,"ytLiveChatReduxBehavior",void 0);
_.X([_.U(_.R2.YtLiveChatItemBehavior),_.A("design:type",_.bP)],Qk.prototype,"ytLiveChatItemBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Qk.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Qk.prototype,"data",void 0);_.X([_.F({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:EGT}),_.A("design:type",Object)],Qk.prototype,"engagementState",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.A("design:type",Boolean)],Qk.prototype,"isUserEditable",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.A("design:type",Boolean)],Qk.prototype,"hasHeartButton",void 0);_.X([_.F({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Qk.prototype,"showOnlyHeader",void 0);
_.X([_.F({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Qk.prototype,"showFooterDivider",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Object)],Qk.prototype,"allowAnimations",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Qk.prototype,"dashboardMoneyFeed",void 0);_.X([_.F({computed:"computeNoveltyImage(data)"}),_.A("design:type",Number)],Qk.prototype,"noveltyWidth",void 0);
_.X([_.F({computed:"computeAuthorPhotoSize(data)"}),_.A("design:type",Number)],Qk.prototype,"authorPhotoSize",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Qk.prototype,"modern",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Qk.prototype,"noPadding",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qk.prototype,"dataChanged",null);
_.X([_.M("data.message"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qk.prototype,"messageChanged",null);_.X([_.I("data","dashboardMoneyFeed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Qk.prototype,"hideLowerBumper",null);_.X([_.M("isDeleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qk.prototype,"isDeletedChanged",null);
Qk=_.X([_.l({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],Qk);
_.p(Qk,"yt-live-chat-paid-message-renderer",function(){if(lXW===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;NHh===void 0&&(NHh=document.createElement("template"));var r=NHh;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);lXW=q}q=lXW;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var l2D;var Gt7;var pLD=function(){var q=_.y5.apply(this,arguments)||this;q._noAccessors=!0;return q};
_.z(pLD,_.y5);pLD.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.zj("openPopupConfig")};
var XLv=pLD;_.X([_.U(_.Xp.YtOpenPopupBehavior),_.A("design:type",Object)],XLv.prototype,"ytOpenPopupBehavior",void 0);XLv=_.X([_.iq()],XLv);_.Et=[_.Xp.YtOpenPopupBehavior,XLv.prototype];var mvD;var ak=[_.qZ,M3X,_.SE,_.Z5,_.ck,_.A3D,_.Yz,_.iHK,_.BH,azT];_.b("web_watch_get_updated_metadata_response_processing")&&ak.push(_.ufm);_.b("web_continuation_response_processing")&&ak.push(_.L6);var BL6=new _.F$("RESPONSE_RECEIVED_COMMANDS"),biO=new _.F$("RESPONSE_RECEIVED_COMMANDS");var uv8="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),ofI=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],WU6=["GET_UNSEEN_NOTIFICATION_COUNT"];var xk=function(){var q=_.y5.apply(this,arguments)||this;q._noAccessors=!0;q.serviceEndpointHandlers=[];return q};
_.z(xk,_.y5);xk.prototype.created=function(){var q=this;this.endpointHandlerActionMap={"yt-service-request":function(Z,w,r,Y){var C;return Hi2(q.hostElement,Z,w,r,Y,q.serviceEndpointHandlers,(C=q.onEntitiesUpdated)==null?void 0:C.bind(q))}}};
xk.prototype.attached=function(){_.k7(_.UU.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
xk.prototype.detached=function(){_.Kb(_.UU.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
var ABJ=xk;ABJ=_.X([_.iq()],ABJ);_.f2D=[ABJ.prototype];var DvK,h5D=function(){return DvK!==void 0?DvK:DvK=document.createElement("template")};
document.head.appendChild(h5D().content);var yBD;var i1K=document.head,gEp=i1K.appendChild,q$g;if(yBD===void 0){var ZJ7=document.createElement("template");_.a(ZJ7,"\x3c!--css-build:shady--\x3e");ZJ7.content.insertBefore(h5D().content.cloneNode(!0),ZJ7.content.firstChild);yBD=ZJ7}q$g=yBD;gEp.call(i1K,q$g.content);var wS2,rdW=function(){return wS2!==void 0?wS2:wS2=document.createElement("template")};
document.head.appendChild(rdW().content);var Y$h;var $Vm=document.head,e4p=$Vm.appendChild,CTp;if(Y$h===void 0){var PTX=document.createElement("template");_.a(PTX,"\x3c!--css-build:shady--\x3e");PTX.content.insertBefore(rdW().content.cloneNode(!0),PTX.content.firstChild);Y$h=PTX}CTp=Y$h;e4p.call($Vm,CTp.content);_.He("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.He("sharingRendererButtons","buttonRenderer","ytd-button-renderer");var dVv=_.b("web_button_rework")&&_.BF("BUTTON_REWORK")||_.b("web_button_rework_with_live"),Vm9=function(){var q=_.N.apply(this,arguments)||this;q.isPressed=!1;q.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return q};
_.z(Vm9,_.N);_.e=Vm9.prototype;_.e.created=function(){this.showTooltips=!0};
_.e.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.e.onHintIdChanged=function(){var q=this,Z,w,r=(Z=this.ytButtonBehavior.data)==null?void 0:(w=Z.hint)==null?void 0:w.hintRenderer;if(r&&r.hintId){Z=_.i5(this.hostElement,"yt-get-opened-popups-action");Z=(Z&&Z.length===1?Z[0]:[]).length>0;var Y=null;r.hintId!=="sponsor-pre-purchase"||Z?r.hintId.startsWith("sponsor-post-purchase")&&!Z?Y=H2W("membership-manage"):r.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!Z&&(Y=H2W("membership-freebie-join")):Y=H2W("membership-join");Y&&_.v5.addLowPriorityJob(function(){for(var C=
_.P(Y),d=C.next();!d.done;d=C.next())q.ytComponentBehavior.resolveCommand(d.value)})}};
_.e.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.e.onYtNavigate=function(q){var Z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(q.detail.endpoint);Z&&(q.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(Z))};
_.e.onYtServiceRequestSent=function(q,Z){this.handleServiceRequestActions(Z);_.hy(this.hostElement,"yt-service-request-sent-button-renderer")};
_.e.onServiceRequestCompleted=function(q,Z){this.handleServiceRequestActions(Z);_.hy(this.hostElement,"yt-service-request-completed-button-renderer")};
_.e.updateButton=function(q){var Z;if(q=(Z=_.J(q,jt7))==null?void 0:Z.updatedButton)this.ytButtonBehavior.data=_.J(q,_.tA)};
_.e.handleUpdateButtonAction=function(q){var Z=this.ytButtonBehavior.data;Z.targetId&&q.updateButtonAction.targetId&&Z.targetId===q.updateButtonAction.targetId&&this.updateButton(q)};
_.e.handleServiceRequestActions=function(q){if(q=q.actions)for(var Z=0;Z<q.length;Z++)this.updateButton(q[Z])};
_.My.Object.defineProperties(Vm9,{template:{configurable:!0,enumerable:!0,get:function(){if(mvD===void 0){var q=document.createElement("template");_.a(q,"\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");q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);mvD=q}q=mvD;return q}}});
_.TU=Vm9;_.TU.prototype.onServiceRequestCompleted=_.TU.prototype.onServiceRequestCompleted;_.TU.prototype.onYtServiceRequestSent=_.TU.prototype.onYtServiceRequestSent;_.TU.prototype.onYtNavigate=_.TU.prototype.onYtNavigate;_.TU.prototype.onPressedStateChanged=_.TU.prototype.onPressedStateChanged;_.TU.prototype.onHintIdChanged=_.TU.prototype.onHintIdChanged;_.X([_.F(),_.A("design:type",Object)],_.TU.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],_.TU.prototype,"isPressed",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],_.TU.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.$wD.YtButtonBehavior),_.A("design:type",Object)],_.TU.prototype,"ytButtonBehavior",void 0);_.X([_.U(_.Et),_.A("design:type",Object)],_.TU.prototype,"ytdOpenPopupBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],_.TU.prototype,"ytComponentBehavior",void 0);
_.X([_.U(hg.YtRenderButtonBehavior),_.A("design:type",Object)],_.TU.prototype,"ytRenderButtonBehavior",void 0);_.X([_.M("data.hint.hintRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],_.TU.prototype,"onHintIdChanged",null);_.X([_.M("isPressed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],_.TU.prototype,"onPressedStateChanged",null);
_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],_.TU.prototype,"onYtNavigate",null);_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],_.TU.prototype,"onYtServiceRequestSent",null);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],_.TU.prototype,"onServiceRequestCompleted",null);_.TU=_.X([_.l({is:"ytd-button-renderer",disableElementRegistration:dVv})],_.TU);var OJg=function(){var q=_.N.apply(this,arguments)||this;q.modern=_.b("web_button_rework_with_live");q.buttonOverrides={style:"overlay",type:"filled"};return q};
_.z(OJg,_.N);_.e=OJg.prototype;_.e.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"}}}}};
_.e.ready=function(){var q=document.querySelector("yt-live-chat-app");q&&q.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.e.dataChanged=function(){if(this.data&&this.data.sticker){var q=_.TL(this.data.sticker.thumbnails,this.stickerWidth);q||_.Ef2(q).thenCatch(function(){_.bx(new _.df("Failed to load Super Sticker with url",q))})}};
_.e.computeAuthorPhotoSize=function(q){return(q==null?0:q.isV2Style)?32:40};
_.e.computeIsV2Style=function(q){return(q==null?0:q.isV2Style)?!0:!1};
_.e.onStickerLoaded=function(q){var Z,w,r;(Z=_.xz(q))==null||(w=Z.parentNode)==null||(r=w.classList)==null||r.add("sticker-loaded")};
_.e.computeNoveltyImageWidth=function(q){var Z,w;if(q==null?0:(Z=q.headerOverlayImage)==null?0:(w=Z.thumbnails)==null?0:w.length){Z=q.headerOverlayImage.thumbnails[0];var r,Y;if((r=q.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Y=r.loggingDirectives)==null?0:Y.trackingParams){var C,d;TV9((C=q.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(d=C.loggingDirectives)==null?void 0:d.trackingParams)}return Z.width||0}return 0};
_.e.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.e.updateStickerStyles=function(){var q=this.data;q&&(q={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(q.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(q.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(q.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(q.authorNameTextColor)},
_.po(this.hostElement,q))};
_.e.onBuyButtonClick=function(){var q,Z=_.J((q=this.data)==null?void 0:q.buyButton,_.tA);Z&&!f41(Z.command)&&this.ytRendererBehavior.logExplicitClick(Z)};
_.e.shouldSupportWholeItemClick=function(){return!0};
_.My.Object.defineProperties(OJg.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 q;return((q=this.data)==null?0:q.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
var Ut=OJg;Ut.prototype.updateStickerStyles=Ut.prototype.updateStickerStyles;Ut.prototype.isDeletedChanged=Ut.prototype.isDeletedChanged;Ut.prototype.onStickerLoaded=Ut.prototype.onStickerLoaded;Ut.prototype.dataChanged=Ut.prototype.dataChanged;_.X([_.U(qQD.YtPdgLiveChatItemBehavior),_.A("design:type",Object)],Ut.prototype,"ytPdgLiveChatItemBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Ut.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.R2.YtLiveChatItemBehavior),_.A("design:type",_.bP)],Ut.prototype,"ytLiveChatItemBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ut.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ut.prototype,"data",void 0);
_.X([_.F({computed:"computeAuthorPhotoSize(data)"}),_.A("design:type",Number)],Ut.prototype,"authorPhotoSize",void 0);_.X([_.F(),_.A("design:type",Boolean)],Ut.prototype,"isDeleted",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ut.prototype,"dashboardMoneyFeed",void 0);_.X([_.F({computed:"computeNoveltyImageWidth(data)"}),_.A("design:type",Number)],Ut.prototype,"noveltyWidth",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ut.prototype,"modern",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.A("design:type",Boolean)],Ut.prototype,"isV2Style",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ut.prototype,"dataChanged",null);_.X([_.m2("yt-img-shadow-loaded"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ut.prototype,"onStickerLoaded",null);
_.X([_.I("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],Ut.prototype,"stickerWidth",null);_.X([_.I("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],Ut.prototype,"stickerHeight",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ut.prototype,"hasHeartButton",null);_.X([_.I("data","dashboardMoneyFeed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ut.prototype,"hideLowerBumper",null);
_.X([_.M("isDeleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ut.prototype,"isDeletedChanged",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ut.prototype,"updateStickerStyles",null);Ut=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Ut);
_.p(Ut,"yt-live-chat-paid-sticker-renderer",function(){if(Gt7===void 0){var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;l2D===void 0&&(l2D=document.createElement("template"));var r=l2D;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Gt7=q}q=Gt7;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var HJ1;var WCe;var op2,uM1=function(){return op2!==void 0?op2:op2=document.createElement("template")};
document.head.appendChild(uM1().content);var LCp,S$7=function(){return LCp!==void 0?LCp:LCp=document.createElement("template")};
document.head.appendChild(S$7().content);var vpD;var jm7,tmm=function(){return jm7!==void 0?jm7:jm7=document.createElement("template")};
document.head.appendChild(tmm().content);var R47;var bJD=document.head,JdJ=bJD.appendChild,z4p;if(R47===void 0){var Bwh=document.createElement("template");_.a(Bwh,"\x3c!--css-build:shady--\x3e");Bwh.content.insertBefore(tmm().content.cloneNode(!0),Bwh.content.firstChild);R47=Bwh}z4p=R47;JdJ.call(bJD,z4p.content);var a6p=document.head,npg=a6p.appendChild,Qmm;if(vpD===void 0){var kk=document.createElement("template");_.a(kk,"\x3c!--css-build:shady--\x3e");kk.content.insertBefore(S$7().content.cloneNode(!0),kk.content.firstChild);kk.content.insertBefore(uM1().content.cloneNode(!0),kk.content.firstChild);vpD=kk}Qmm=vpD;npg.call(a6p,Qmm.content);var KZ=function(){var q=_.y5.apply(this,arguments)||this;q.focusedIndex=0;q.verticalOffset=0;q.verticalAlign="top";q.dynamicAlign=!0;return q};
_.z(KZ,_.y5);KZ.prototype.emojiUrl=function(q){q=_.vv(this.emojiManager,q);if(!q)return"";var Z;q=(Z=q.image)==null?void 0:Z.thumbnails;return _.TL(q,24)||""};
var Epm=function(q){var Z;q.emojiVariants&&(Z=q.data)!=null&&Z.target&&_.I_(q,function(){q.set("verticalOffset",-1*q.hostElement.clientHeight);var w=_.E(q.hostElement).querySelector("img");w&&w.focus()})};
_.e=KZ.prototype;_.e.onKeyboardEnter=function(){};
_.e.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.e.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.e.onKeyDown=function(q){switch(q.keyCode){case 13:this.onKeyboardEnter();q.preventDefault();break;case 40:this.changeFocus(1);q.preventDefault();break;case 38:this.changeFocus(-1);q.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.e.onYtEmojiSelect=function(q){var Z=this,w,r,Y,C,d,O,H,L;return _.V(function(S){if(S.nextAddress==1)return r=(w=Z.data)==null?void 0:w.emoji,d=((Y=r)==null?void 0:Y.stickyPrefId)||((C=r)==null?void 0:C.emojiId),H=(O=q.detail)==null?void 0:O.emojiId,d&&H&&d!==H?_.W(S,(L=Z.emojiManager)==null?void 0:BNJ(L,r,H),2):S.return();_.yY(Z.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[r,H]);_.ub(S)})};
_.e.changeFocus=function(q){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+q+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(q=_.E(this.hostElement).querySelector("#variants"))&&q.children[this.focusedIndex].focus())};
_.My.Object.defineProperties(KZ.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
var st=KZ;st.prototype.onYtEmojiSelect=st.prototype.onYtEmojiSelect;st.prototype.onKeyDown=st.prototype.onKeyDown;st.prototype.onEmojiVariantsChanged=st.prototype.onEmojiVariantsChanged;st.prototype.onVerticalOffsetOrPositionTargetChanged=st.prototype.onVerticalOffsetOrPositionTargetChanged;_.X([_.U(_.Tv),_.A("design:type",Object)],st.prototype,"ironOverlayBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],st.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",_.SL)],st.prototype,"emojiManager",void 0);_.X([_.F(),_.A("design:type",Object)],st.prototype,"emojiVariants",void 0);_.X([_.F(),_.A("design:type",Object)],st.prototype,"focusedIndex",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],st.prototype,"positionTarget",null);_.X([_.F({reflectToAttribute:!0}),_.I("verticalOffset","data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],st.prototype,"isPositioned",null);
_.X([_.F(),_.A("design:type",Object)],st.prototype,"verticalOffset",void 0);_.X([_.F(),_.A("design:type",Object)],st.prototype,"verticalAlign",void 0);_.X([_.F(),_.A("design:type",Object)],st.prototype,"dynamicAlign",void 0);_.X([_.M("verticalOffset","positionTarget"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],st.prototype,"onVerticalOffsetOrPositionTargetChanged",null);
_.X([_.M("emojiVariants"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],st.prototype,"onEmojiVariantsChanged",null);_.X([_.m2("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],st.prototype,"onKeyDown",null);_.X([_.m2("yt-emoji-select"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype",Promise)],st.prototype,"onYtEmojiSelect",null);st=_.X([_.iq()],st);var xVK=[st.prototype];var Tw7;var UVh;var kND=/medium-light|medium-dark|light|medium|dark/,KCe=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,smX=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),I61=function(){var q=_.N.apply(this,arguments)||this;q.userSelection={left:null,right:null};q.scrollAction="lock";q.isEmojiDraftInProgress=!1;return q};
_.z(I61,_.N);_.e=I61.prototype;_.e.onClick=function(q){q=_.xz(q);q instanceof HTMLImageElement&&this.selectOrUpdateEmoji(q)};
_.e.selectOrUpdateEmoji=function(q){var Z=q.getAttribute("selection");Z&&(Z==="default"?_.hy(this.hostElement,"yt-emoji-select",_.vv(this.emojiManager,q.id)):Z==="left"?this.userSelection=Object.assign({},this.userSelection,{left:q.src}):Z==="right"?this.userSelection=Object.assign({},this.userSelection,{right:q.src}):Z==="user"&&this.userSelection.left&&this.userSelection.right&&_.hy(this.hostElement,"yt-emoji-select",_.vv(this.emojiManager,q.id)))};
_.e.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.e.onMultiSelectorThumbnailRowChanged=function(){var q,Z,w;((q=this.data)==null?0:(Z=q.emoji)==null?0:(w=Z.multiSelectorThumbnailRow)==null?0:w.length)&&this.openSelector()};
_.e.getThumbnailFromEmojiRow=function(q){var Z,w;return(q==null?void 0:(Z=q.thumbnails)==null?void 0:(w=Z[0])==null?void 0:w.url)||""};
_.e.getEmojiAltTextForPartialSelector=function(q){var Z;return((Z=this.getThumbnailFromEmojiRow(q).match(KCe))==null?void 0:Z[0])||""};
_.e.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.e.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.e.getRowSelection=function(q){return["left","right"][q]};
_.e.getIdFromComposedEmoji=function(q){return(q==null?void 0:q.emojiId)||""};
_.e.getEmojiFromPartialSelections=function(q,Z){if(!q&&!Z)return null;var w,r,Y=(w=this.data)==null?void 0:(r=w.emoji)==null?void 0:r.variantIds;if(!Y||!Y.length)return null;var C;q=(C=q.match(kND))==null?void 0:C[0];var d;Z=(d=Z.match(kND))==null?void 0:d[0];if(!q||!Z)return null;var O=smX.get(q);d=smX.get(Z);if(O===d){d=Array.from(smX.values()).filter(function(L){return L!==O}).join("|");
var H=new RegExp("^((?!("+d+")).)*"+O+"$")}else H=new RegExp(O+".*"+d);return(Y=Y.find(function(L){return H.test(L)}))&&_.vv(this.emojiManager,Y)||null};
_.e.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var q,Z=this.ytEmojiSelectorBehavior.emojiUrl(((q=this.data.emoji)==null?void 0:q.emojiId)||"");_.E(this.hostElement).querySelector('[selection="user"]').src.includes(Z)||(this.isEmojiDraftInProgress=!0)}};
_.e.onDomChange=function(){Epm(this.ytEmojiSelectorBehavior)};
_.e.getFocusableElements=function(){return _.E(this.hostElement).querySelectorAll("img").filter(function(q){return q.getAttribute("role")==="option"})};
_.e.changeFocus=function(q){var Z=this.getFocusableElements();Z!=null&&Z.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+q+Z.length)%Z.length,this.ytEmojiSelectorBehavior.focusedIndex<Z.length&&(q=Z[this.ytEmojiSelectorBehavior.focusedIndex])&&q.focus())};
_.e.onKeyboardEnter=function(){var q=this.getFocusableElements();q!=null&&q.length&&(q=q[this.ytEmojiSelectorBehavior.focusedIndex])&&q instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(q),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.My.Object.defineProperties(I61.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var q=this,Z,w,r;return this.emojiManager&&((Z=this.data)==null?0:(w=Z.emoji)==null?0:(r=w.variantIds)==null?0:r.length)?this.data.emoji.variantIds.map(function(Y){return!!Y&&_.vv(q.emojiManager,Y)}).filter(function(Y){return!!Y}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var q,Z=(q=this.userSelection)==null?void 0:q.left,w;q=(w=this.userSelection)==null?void 0:w.right;return Z&&q?this.getEmojiFromPartialSelections(Z,q):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.composedEmojiSelection)==null?0:q.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var Z;q=(Z=this.userSelection)==null?void 0:Z.left;var w;Z=(w=this.userSelection)==null?void 0:w.right;if(!q&&!Z){var r;return this.ytEmojiSelectorBehavior.emojiUrl(((r=this.data.emoji)==null?void 0:r.emojiId)||"")}return q&&!Z?q:!q&&Z?Z:""}}});
var I2=I61;I2.prototype.onMultiSelectorThumbnailRowChanged=I2.prototype.onMultiSelectorThumbnailRowChanged;I2.prototype.onClick=I2.prototype.onClick;_.X([_.U(_.Tv),_.A("design:type",Object)],I2.prototype,"ironOverlayBehavior",void 0);_.X([_.U(xVK),_.A("design:type",Object)],I2.prototype,"ytEmojiSelectorBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],I2.prototype,"data",void 0);_.X([_.F(),_.A("design:type",_.SL)],I2.prototype,"emojiManager",void 0);
_.X([_.F(),_.A("design:type",Object)],I2.prototype,"userSelection",void 0);_.X([_.F(),_.A("design:type",Object)],I2.prototype,"scrollAction",void 0);_.X([_.F(),_.A("design:type",Object)],I2.prototype,"isEmojiDraftInProgress",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],I2.prototype,"emojiVariants",null);_.X([_.I("data","userSelection"),_.A("design:type",Object),_.A("design:paramtypes",[])],I2.prototype,"composedEmojiSelection",null);
_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[MouseEvent]),_.A("design:returntype")],I2.prototype,"onClick",null);_.X([_.M("data.emoji.multiSelectorThumbnailRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],I2.prototype,"onMultiSelectorThumbnailRowChanged",null);_.X([_.I("data","userSelection","composedEmojiSelection"),_.A("design:type",String),_.A("design:paramtypes",[])],I2.prototype,"draftEmojiUrl",null);
I2=_.X([_.dx({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],I2);
_.p(I2,"yt-emoji-multi-person-selector",function(){if(UVh===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Tw7===void 0&&(Tw7=document.createElement("template"));var r=Tw7;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);UVh=q}q=UVh;return q},{mode:2});var cdX;var Mmh;var FC7=function(){var q=_.N.apply(this,arguments)||this;q.tooltip_=null;return q};
_.z(FC7,_.N);_.e=FC7.prototype;_.e.dataChanged_=function(){var q;if((q=this.data)==null?0:q.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.E(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.GI)(this.tooltip_).textContent=this.data.tooltip};
_.e.computeTargetId=function(){var q;return((q=this.data)==null?void 0:q.targetId)||""};
_.e.computeId_=function(q){return q};
_.e.computeIcon_=function(q){return _.Xl(q)};
_.e.onTap_=function(){this.active=!this.active;_.hy(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.e.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("active-changed",this.active))};
_.My.Object.defineProperties(FC7.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var q,Z;if((q=this.data)==null?0:(Z=q.icon)==null?0:Z.iconType)return this.data.icon.iconType==="SUPER_STICKER";var w,r;return((w=this.data)==null?void 0:(r=w.icon)==null?void 0:r.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
var cv=FC7;cv.prototype.activeChangedForBinding=cv.prototype.activeChangedForBinding;cv.prototype.dataChanged_=cv.prototype.dataChanged_;_.X([_.U(_.LK.YtLiveChatTooltipTargetingBehavior),_.A("design:type",Object)],cv.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],cv.prototype,"data",void 0);_.X([_.F({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.A("design:type",String)],cv.prototype,"id",void 0);
_.X([_.F({computed:"computeTargetId(data.targetId)"}),_.A("design:type",String)],cv.prototype,"targetId",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],cv.prototype,"active",void 0);_.X([_.F({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.A("design:type",String)],cv.prototype,"icon",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cv.prototype,"dataChanged_",null);
_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],cv.prototype,"iconFilled",null);_.X([_.M("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cv.prototype,"activeChangedForBinding",null);cv=_.X([_.dx({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],cv);
_.p(cv,"yt-emoji-picker-category-button-renderer",function(){if(Mmh===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;cdX===void 0&&(cdX=document.createElement("template"));var r=cdX;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Mmh=q}q=Mmh;return q},{mode:2});var NwD;var l6h;var GN7=function(){var q=_.N.apply(this,arguments)||this;q.ariaLabel=null;q.ariaActivedescendant=null;q.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};q.JSC$11882_ignoreNextFocus_=!1;q.longPressTimeoutId=-1;return q};
_.z(GN7,_.N);_.e=GN7.prototype;_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.e.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.e.emojiChanged_=function(){this.changeFocus_(0,!1);for(var q=_.iy(),Z=0;Z<this.emoji.length;Z++){var w={veType:88013,elementIndex:Z},r=this.emoji[Z];r.isCustomEmoji&&(r=document.querySelector(("#"+r.emojiId).replace("/","\\/")))&&(w=_.yy(q,w))&&(r.visualElement=w)}};
_.e.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.e.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.e.emojiSkinToneChanged_=function(q){this.skinTone=q};
_.e.dataChanged=function(){this.data&&this.data.emojiData&&R5D(this.emojiManager,this.data.emojiData)};
_.e.emojiUrl=function(q){q=this.getEmoji(q);if(!q)return"";var Z;q=(Z=q.image)==null?void 0:Z.thumbnails;return _.TL(q,24)||""};
_.e.emojiAlt=function(q){var Z=this.get("image.accessibility.accessibilityData.label",q);return Z?Z:q.isCustomEmoji?q.shortcuts[0]:q.emojiId};
_.e.emojiAriaLabel=function(q){return q.shortcuts?q.shortcuts[0]:""};
_.e.emojiAriaSelected=function(q,Z,w){return q&&w==Z?"true":"false"};
_.e.getEmoji=function(q){if(this.emojiManager)return this.shouldUseStickyPreferences?JB9(this.emojiManager,q):jL(this.emojiManager,q)};
_.e.computeId_=function(q){return q.categoryId||""};
_.e.computeEmoji=function(q){var Z=this;return this.emojiManager?q.emojiIds?q.emojiIds.map(function(w){return w?_.vv(Z.emojiManager,w):null}).filter(xg6):q.emojiData?q.emojiData.map(function(w){var r=!!w.emojiId&&_.vv(Z.emojiManager,w.emojiId);
return r?Object.assign({},r,w):null}).filter(xg6):[]:[]};
_.e.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.e.computeAriaLabel_=function(q){return _.kO(q)};
_.e.computeAriaActivedescendant_=function(q,Z){return q&&q[Z]?q[Z].emojiId||"":""};
_.e.handleLongPressEmojiWithVariants=function(q,Z){this.changeFocusToEmoji(q.emojiId,!1);this.openVariantSelector(q,Z)};
_.e.onMouseDown=function(q){var Z=this;this.hostElement!==document.activeElement&&(this.JSC$11882_ignoreNextFocus_=!0);if(q.button===0){var w=_.xz(q);if(w instanceof HTMLImageElement){var r=_.E(this.hostElement).querySelector("#repeat").itemForElement(w);this.emojiContainsVariants(r)&&(this.longPressTimeoutId=setTimeout(function(){Z.handleLongPressEmojiWithVariants(r,w)},500))}}};
_.e.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.e.onFocus=function(){this.JSC$11882_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11882_ignoreNextFocus_=!1};
_.e.onBlur_=function(){this.showFocus=!1};
_.e.emojiContainsVariants=function(q){return!!(q&&q.variantIds&&q.variantIds.length)};
_.e.onClick=function(q){clearTimeout(this.longPressTimeoutId);q=_.xz(q);if(q instanceof HTMLImageElement){var Z=q.id;this.changeFocusToEmoji(Z,!1);var w=this.getEmoji(Z),r;if(r=this.shouldUseStickyPreferences&&this.emojiContainsVariants(w)){var Y;r=!((Y=this.emojiManager.emojiMap[Z])!=null&&Y.stickyPrefId)}r?(Y=_.E(this.hostElement).querySelector("#repeat").itemForElement(q),this.openVariantSelector(Y,q)):_.hy(this.hostElement,"yt-emoji-select",w)}};
_.e.isActiveEmojiWithVariants=function(q,Z){return q&&Z?Z.stickyPrefId?q===Z.stickyPrefId:q===Z.emojiId:!1};
_.e.onCloseEmojiVariantSelector=function(q){this.activeEmojiWithVariantsId===q&&(this.activeEmojiWithVariantsId="")};
_.e.onMouseOver_=function(q){q=_.xz(q);q instanceof HTMLImageElement&&_.hy(this.hostElement,"yt-emoji-hover",_.vv(this.emojiManager,q.id))};
_.e.changeFocus_=function(q,Z){this.focusedIndex=(this.focusedIndex+q+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(q=this.emoji[this.focusedIndex],Z&&(this.showFocus=!0,_.E(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.hy(this.hostElement,"yt-emoji-hover",q)))};
_.e.changeFocusToEmoji=function(q,Z){if(q){var w=this.emoji.findIndex(function(r){return r.emojiId===q});
w!==-1&&this.changeFocus_(w-this.focusedIndex,Z)}};
_.e.onKeyDown_=function(q){switch(q.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var Z=this.emoji[this.focusedIndex];if(Z&&Z.emojiId){if(this.emojiContainsVariants(Z)){var w=_.E(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(Z,w)}else _.hy(this.hostElement,"yt-emoji-select",jL(this.emojiManager,Z.emojiId)),this.hostElement.focus();q.preventDefault()}}break;case 40:this.changeFocus_(1,!0);q.preventDefault();break;case 38:this.changeFocus_(-1,!0),q.preventDefault()}};
_.e.onEmojiStickyPreferenceChanged=function(q,Z){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&q.emojiId&&q.variantIds&&q.variantIds.includes(Z)&&this.activeEmojiWithVariantsId!==Z&&this.setStickyEmojiPreference(q.emojiId,Z)};
_.e.openVariantSelector=function(q,Z){this.activeEmojiWithVariantsId=q.stickyPrefId||q.emojiId||"";_.hy(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:q,target:Z})};
_.e.setStickyEmojiPreference=function(q,Z){if(this.data){var w=this.emoji.findIndex(function(Y){return Y.emojiId===q});
if(w!==-1){var r=this.emoji[w];r.stickyPrefId=Z;this.set("emoji."+w,Object.assign({},r));this.activeEmojiWithVariantsId=Z}}};
var MW=GN7;MW.prototype.onKeyDown_=MW.prototype.onKeyDown_;MW.prototype.onMouseOver_=MW.prototype.onMouseOver_;MW.prototype.onClick=MW.prototype.onClick;MW.prototype.onBlur_=MW.prototype.onBlur_;MW.prototype.onFocus=MW.prototype.onFocus;MW.prototype.onMouseUp=MW.prototype.onMouseUp;MW.prototype.onMouseDown=MW.prototype.onMouseDown;MW.prototype.dataChanged=MW.prototype.dataChanged;MW.prototype.disableIncrementalLoadingChanged_=MW.prototype.disableIncrementalLoadingChanged_;
MW.prototype.emojiManagerChanged_=MW.prototype.emojiManagerChanged_;MW.prototype.emojiChanged_=MW.prototype.emojiChanged_;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],MW.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],MW.prototype,"data",void 0);_.X([_.F({computed:"computeId_(data)"}),_.A("design:type",String)],MW.prototype,"id",void 0);_.X([_.F({computed:"computeEmoji(data)"}),_.A("design:type",Array)],MW.prototype,"emoji",void 0);
_.X([_.F(),_.A("design:type",Number)],MW.prototype,"skinTone",void 0);_.X([_.F(),_.A("design:type",_.SL)],MW.prototype,"emojiManager",void 0);_.X([_.F(),_.A("design:type",Boolean)],MW.prototype,"disableIncrementalLoading",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],MW.prototype,"focusedIndex",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],MW.prototype,"showFocus",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.A("design:type",Object)],MW.prototype,"ariaLabel",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.A("design:type",Object)],MW.prototype,"ariaActivedescendant",void 0);_.X([_.F({value:60}),_.A("design:type",Number)],MW.prototype,"domRepeatTargetFramerate",void 0);_.X([_.F({value:1}),_.A("design:type",Number)],MW.prototype,"domRepeatInitialCount",void 0);
_.X([_.F({value:""}),_.A("design:type",String)],MW.prototype,"activeEmojiWithVariantsId",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],MW.prototype,"shouldUseStickyPreferences",void 0);_.X([_.M("emoji"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MW.prototype,"emojiChanged_",null);_.X([_.M("emojiManager"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MW.prototype,"emojiManagerChanged_",null);
_.X([_.M("disableIncrementalLoading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MW.prototype,"disableIncrementalLoadingChanged_",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MW.prototype,"dataChanged",null);_.X([_.m2("mousedown"),_.A("design:type",Function),_.A("design:paramtypes",[Object]),_.A("design:returntype")],MW.prototype,"onMouseDown",null);
_.X([_.m2("mouseup"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MW.prototype,"onMouseUp",null);_.X([_.m2("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MW.prototype,"onFocus",null);_.X([_.m2("blur"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MW.prototype,"onBlur_",null);
_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],MW.prototype,"onClick",null);_.X([_.m2("mouseover"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],MW.prototype,"onMouseOver_",null);_.X([_.m2("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],MW.prototype,"onKeyDown_",null);
MW=_.X([_.dx({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],MW);
_.p(MW,"yt-emoji-picker-category-renderer",function(){if(l6h===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;NwD===void 0&&(NwD=document.createElement("template"));var r=NwD;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);l6h=q}q=l6h;return q},{mode:2});var pSv;var XS7;var mVv;var Ad2;var f67=function(){var q=_.N.apply(this,arguments)||this;q.ariaLabel=null;q.ariaActivedescendant=null;q.getFormattedStringRawText=_.kO;q.JSC$11888_ignoreNextFocus_=!1;return q};
_.z(f67,_.N);_.e=f67.prototype;_.e.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")};
_.e.emojiUrl=function(q){var Z,w;q=(Z=jL(this.emojiManager,q,!0))==null?void 0:(w=Z.image)==null?void 0:w.thumbnails;return _.TL(q,24)||""};
_.e.emojiAlt=function(q){var Z=this.get("image.accessibility.accessibilityData.label",q);return Z?Z:q.isCustomEmoji?q.shortcuts[0]:q.emojiId};
_.e.emojiId=function(q){return"emoji"+q};
_.e.computeId_=function(q){return q.categoryId||""};
_.e.computeAriaActivedescendant_=function(q){return this.emoji&&q<this.emoji.length?this.emojiId(q):""};
_.e.emojiChanged_=function(){this.changeFocus_(0,!1);for(var q=_.iy(),Z=0;Z<this.emoji.length;Z++){var w={veType:88013,elementIndex:Z},r=this.emoji[Z];r.isCustomEmoji&&(r=document.querySelector(("#"+r.emojiId).replace("/","\\/")))&&(w=_.yy(q,w))&&(r.visualElement=w)}};
_.e.computeEmoji_=function(q){var Z=this;return this.emojiManager?q.emojiIds.map(function(w){return _.vv(Z.emojiManager,w,!0)}).filter(TUO):[]};
_.e.titleOffsetChanged_=function(){var q=this.hostElement.getBoundingClientRect(),Z=_.E(this.hostElement).querySelector("#title").getBoundingClientRect();q=Math.max(0,Math.min(this.titleOffset,q.height-Z.height));_.E(this.hostElement).querySelector("#title").style.top=q+"px"};
_.e.onEmojiMouseOver_=function(q){_.hy(this.hostElement,"yt-emoji-hover",q.model.item)};
_.e.onEmojiTap_=function(q){this.data.command&&(q=Fp9(_.t().resolve(_.Gj(x7)),this.data.command,q),_.hy(this.hostElement,"yt-navigate",q))};
_.e.emojiAriaLabel=function(q){return q.shortcuts[0]};
_.e.emojiAriaSelected=function(q,Z,w){return q&&w==Z?"true":"false"};
_.e.changeFocus_=function(q,Z){var w=this.emoji.length;this.focusedIndex=(this.focusedIndex+q+w)%w;q=this.emoji[this.focusedIndex];if(Z){var r;(r=_.E(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||r.scrollIntoView(!1);_.hy(this.hostElement,"yt-emoji-hover",q)}};
_.e.onMouseDown_=function(){this.JSC$11888_ignoreNextFocus_=!0};
_.e.onFocus_=function(){this.JSC$11888_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11888_ignoreNextFocus_=!1};
_.e.onBlur_=function(){this.showFocus=!1};
_.e.onKeyDown_=function(q){switch(q.keyCode){case 13:this.onEmojiTap_(q);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);q.preventDefault();break;case 38:this.changeFocus_(-1,!0),q.preventDefault()}};
var FX=f67;FX.prototype.onKeyDown_=FX.prototype.onKeyDown_;FX.prototype.onBlur_=FX.prototype.onBlur_;FX.prototype.onFocus_=FX.prototype.onFocus_;FX.prototype.onMouseDown_=FX.prototype.onMouseDown_;FX.prototype.onEmojiTap_=FX.prototype.onEmojiTap_;FX.prototype.titleOffsetChanged_=FX.prototype.titleOffsetChanged_;FX.prototype.emojiChanged_=FX.prototype.emojiChanged_;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],FX.prototype,"ytComponentBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],FX.prototype,"data",void 0);_.X([_.F({computed:"computeId_(data)"}),_.A("design:type",String)],FX.prototype,"id",void 0);_.X([_.F({computed:"computeEmoji_(data)"}),_.A("design:type",Array)],FX.prototype,"emoji",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],FX.prototype,"titleOffset",void 0);_.X([_.F({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.A("design:type",Object)],FX.prototype,"ariaLabel",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.A("design:type",Object)],FX.prototype,"ariaActivedescendant",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],FX.prototype,"showFocus",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],FX.prototype,"focusedIndex",void 0);_.X([_.F(),_.A("design:type",_.SL)],FX.prototype,"emojiManager",void 0);
_.X([_.M("emoji"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FX.prototype,"emojiChanged_",null);_.X([_.M("titleOffset"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FX.prototype,"titleOffsetChanged_",null);_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],FX.prototype,"onEmojiTap_",null);
_.X([_.m2("mousedown"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FX.prototype,"onMouseDown_",null);_.X([_.m2("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FX.prototype,"onFocus_",null);_.X([_.m2("blur"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FX.prototype,"onBlur_",null);
_.X([_.m2("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],FX.prototype,"onKeyDown_",null);FX=_.X([_.dx({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],FX);
_.p(FX,"yt-emoji-picker-upsell-category-renderer",function(){if(Ad2===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;mVv===void 0&&(mVv=document.createElement("template"));var r=mVv;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Ad2=q}q=Ad2;return q},{mode:2});var DV7;var h4D;var ydJ=function(){var q=_.N.apply(this,arguments)||this;q.scrollAction="lock";q.verticalAlign="top";return q};
_.z(ydJ,_.N);_.e=ydJ.prototype;_.e.onClick=function(q){q=_.xz(q);q instanceof HTMLImageElement&&_.hy(this.hostElement,"yt-emoji-select",_.vv(this.emojiManager,q.id))};
_.e.openSelector=function(){this.ironOverlayBehavior.open()};
_.e.onDomChange=function(){Epm(this.ytEmojiSelectorBehavior)};
_.e.computeIsFamilySelector=function(q){var Z;return(q==null?void 0:(Z=q.emoji)==null?void 0:Z.emojiId)==="\ud83d\udc6a"};
_.e.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var q=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];q&&q.emojiId&&(_.hy(this.hostElement,"yt-emoji-select",_.vv(this.emojiManager,q.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.My.Object.defineProperties(ydJ.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var q=this,Z,w,r;return this.emojiManager&&((Z=this.data)==null?0:(w=Z.emoji)==null?0:(r=w.variantIds)==null?0:r.length)?this.data.emoji.variantIds.map(function(Y){return!!Y&&_.vv(q.emojiManager,Y)}).filter(function(Y){return!!Y}):[]}}});
var NW=ydJ;NW.prototype.onClick=NW.prototype.onClick;_.X([_.U(_.Tv),_.A("design:type",Object)],NW.prototype,"ironOverlayBehavior",void 0);_.X([_.U(xVK),_.A("design:type",Object)],NW.prototype,"ytEmojiSelectorBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],NW.prototype,"data",void 0);_.X([_.F(),_.A("design:type",_.SL)],NW.prototype,"emojiManager",void 0);_.X([_.F(),_.A("design:type",Object)],NW.prototype,"scrollAction",void 0);
_.X([_.F(),_.A("design:type",Object)],NW.prototype,"verticalAlign",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.A("design:type",Boolean)],NW.prototype,"isFamilySelector",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],NW.prototype,"emojiVariants",null);_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[MouseEvent]),_.A("design:returntype")],NW.prototype,"onClick",null);
NW=_.X([_.dx({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],NW);
_.p(NW,"yt-emoji-variant-selector",function(){if(h4D===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;DV7===void 0&&(DV7=document.createElement("template"));var r=DV7;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);h4D=q}q=h4D;return q},{mode:2});var iJh=/:/g,gpp=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],q9e=function(){var q=_.N.apply(this,arguments)||this;q.emojiVariantSelector=null;q.emojiMultiPersonSelector=null;q.identity=_.s2;q.lastAnimationTime_=0;q.animationStart_=null;q.animationEnd_=null;return q};
_.z(q9e,_.N);_.e=q9e.prototype;
_.e.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}}};
_.e.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.tC)};
_.e.attached=function(){_.wS&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&b1J(this.emojiManager)};
_.e.dataChanged=function(){var q;if((q=this.data)==null?0:q.categories){q=this.emojiManager;var Z=this.getCustomEmojiIds();q.pickerCustomEmojiIds=[].concat(_.Ju(LK2),_.Ju(Z))}};
_.e.getCustomEmojiIds=function(){var q,Z=(q=this.data.categories)==null?void 0:q.find(function(C){var d;return((d=C.emojiPickerCategoryRenderer)==null?void 0:d.categoryId)&&gpp.includes(C.emojiPickerCategoryRenderer.categoryId)}),w;
q=(w=this.data.categories)==null?void 0:w.find(function(C){return C.emojiPickerUpsellCategoryRenderer});
var r,Y;return[Z==null?void 0:(r=Z.emojiPickerCategoryRenderer)==null?void 0:r.emojiIds,q==null?void 0:(Y=q.emojiPickerUpsellCategoryRenderer)==null?void 0:Y.emojiIds].flat().filter(function(C){return!!C})};
_.e.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.e.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.e.updateCategoriesAndPlaceholderInternal=function(q,Z){var w=this;q&&Z&&(this.categories=q.categories||[],this.categoryButtons=q.categoryButtons||[],this.resetPlaceholder(),this.search="",_.SH(function(){w.updateButtons_()}))};
_.e.computeId_=function(q){return q.id||""};
_.e.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(q){return q.emojiPickerCategoryRenderer&&q.emojiPickerCategoryRenderer.emojiData}):!1};
_.e.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.e.onShowEmojiVariantSelector=function(q){var Z=q.detail.emojiData;Z.variantIds&&Z.variantIds.length&&(Z.multiSelectorThumbnailRow&&Z.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:Z,target:q.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:Z,target:q.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.e.onIronOverlayClosed=function(q){var Z=JB9(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");Z&&q.composedPath&&(q.composedPath().includes(_.E(this.hostElement).querySelector("#emoji-variant-selector"))||q.composedPath().includes(_.E(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.yY(this.hostElement,"yt-close-emoji-variant-selector",[Z.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.e.onEmojiVariantSelectorMouseup=function(q){var Z=q.target.firstChild;this.variantSelectorOpened&&Z&&_.SH(function(){Z.noCancelOnOutsideClick=!1},100)};
_.e.onEmojiVariantSelectorMousedown=function(q){q=q.target.firstChild;this.variantSelectorOpened&&q&&(q.noCancelOnOutsideClick=!1)};
_.e.onSelectCategory_=function(q){var Z=this.search!="";this.search="";for(var w=_.E(this.hostElement).querySelector("#categories").children,r=0;r<w.length;r++){var Y=w[r];if(Y.id==q.detail.categoryId){Z?(_.E(this.hostElement).querySelector("#categories").scrollTop=Y.offsetTop,this.updateButtons_()):(this.animationStart_=_.E(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=Y.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.e.onEmojiHover_=function(q){this.placeholder=q.detail.shortcuts?q.detail.shortcuts[0]:""};
_.e.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.e.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.e.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.e.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.e.computeSearchCategory_=function(q){q=q.replace(iJh,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();q=q.split(" ");for(var Z=[],w=this.emojiManager.emojis,r=0;r<w.length;r++){var Y=w[r];if(Y.searchTerms)for(var C=0;C<Y.searchTerms.length;C++){for(var d=Y.searchTerms[C].toLocaleLowerCase(),O=!1,H=0;H<q.length;H++)if(d.indexOf(q[H])!=-1){O=!0;break}if(O&&(!Y.isCustomEmoji||!Y.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(Y.emojiId))){Z.push(Y.emojiId);
break}}}return{categoryId:-1,emojiIds:Z}};
_.e.computeSearchEmptyMessage_=function(q,Z){return q&&Z&&Z.emojiIds&&Z.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.e.computeSearching_=function(q){return this.emojiManager&&q.replace(iJh,"").length>1};
_.e.computeSkinToneHidden=function(){var q;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((q=this.data)==null||!q.hideSkinTonePicker)};
_.e.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.e.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.e.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.e.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.e.selectSkinTone_=function(q){q=Number(q.target.getAttribute("tone"));this.set("emojiManager.skinTone",q);_.yY(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[q]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.e.skinToneChanged_=function(){_.E(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var q=_.E(this.hostElement).querySelector("#dropdown-content").children,Z=0;Z<q.length;Z++)Z===this.skinTone?q[Z].setAttribute("selected",""):q[Z].removeAttribute("selected")};
_.e.animateScroll_=function(q){this.lastAnimationTime_||(this.lastAnimationTime_=q);q-=this.lastAnimationTime_;q<200?(_.E(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*q/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.E(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.e.searchChanged_=function(){this.updateButtons_()};
_.e.updateButtons_=function(){var q=null;if(!this.search)for(var Z=_.E(this.hostElement).querySelector("#categories").scrollTop,w=_.E(this.hostElement).querySelector("#categories").children,r=0;r<w.length;r++){var Y=w[r];Y.offsetTop<=Z&&(q=Y.id)}Z=_.E(this.hostElement).querySelector("#category-buttons").children;for(w=0;w<Z.length;w++)r=Z[w],r.active=r.id===q};
var lP=q9e;lP.prototype.searchChanged_=lP.prototype.searchChanged_;lP.prototype.skinToneChanged_=lP.prototype.skinToneChanged_;lP.prototype.onEmojiHover_=lP.prototype.onEmojiHover_;lP.prototype.onSelectCategory_=lP.prototype.onSelectCategory_;lP.prototype.onShowEmojiVariantSelector=lP.prototype.onShowEmojiVariantSelector;lP.prototype.updateCategoriesAndPlaceholder_=lP.prototype.updateCategoriesAndPlaceholder_;lP.prototype.dataChanged=lP.prototype.dataChanged;
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],lP.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],lP.prototype,"data",void 0);_.X([_.F({value:function(){return[]}}),
_.A("design:type",Array)],lP.prototype,"categories",void 0);_.X([_.F({value:function(){return[]}}),
_.A("design:type",Array)],lP.prototype,"categoryButtons",void 0);_.X([_.F({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.A("design:type",Boolean)],lP.prototype,"disableScroll",void 0);_.X([_.F({computed:"computeId_(data)",reflectToAttribute:!0}),_.A("design:type",String)],lP.prototype,"id",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],lP.prototype,"selected",void 0);
_.X([_.F({value:!1}),_.A("design:type",Boolean)],lP.prototype,"disableIncrementalLoading",void 0);_.X([_.F(),_.A("design:type",String)],lP.prototype,"placeholder",void 0);_.X([_.F({value:""}),_.A("design:type",String)],lP.prototype,"search",void 0);_.X([_.F({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.A("design:type",Boolean)],lP.prototype,"searching",void 0);_.X([_.F({computed:"computeSearchCategory_(search)"}),_.A("design:type",Object)],lP.prototype,"searchCategory",void 0);
_.X([_.F({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.A("design:type",Object)],lP.prototype,"searchEmptyMessage",void 0);_.X([_.F({computed:"identity(emojiManager.skinTone)"}),_.A("design:type",Number)],lP.prototype,"skinTone",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],lP.prototype,"skinToneOpened",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],lP.prototype,"variantSelectorOpened",void 0);
_.X([_.F({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.A("design:type",Boolean)],lP.prototype,"skinToneHidden",void 0);_.X([_.F(),_.A("design:type",_.SL)],lP.prototype,"emojiManager",void 0);_.X([_.F(),_.A("design:type",Object)],lP.prototype,"emojiVariantSelector",void 0);_.X([_.F(),_.A("design:type",Object)],lP.prototype,"emojiMultiPersonSelector",void 0);
_.X([_.F({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.A("design:type",Boolean)],lP.prototype,"shouldUseStickyPreferences",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lP.prototype,"dataChanged",null);_.X([_.M("data","selected"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lP.prototype,"updateCategoriesAndPlaceholder_",null);
_.X([_.m2("yt-show-emoji-variant-selector"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],lP.prototype,"onShowEmojiVariantSelector",null);_.X([_.m2("yt-emoji-picker-select-category"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],lP.prototype,"onSelectCategory_",null);_.X([_.m2("yt-emoji-hover"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],lP.prototype,"onEmojiHover_",null);
_.X([_.M("skinTone"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lP.prototype,"skinToneChanged_",null);_.X([_.M("search"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lP.prototype,"searchChanged_",null);lP=_.X([_.dx({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],lP);
_.p(lP,"yt-emoji-picker-renderer",function(){if(XS7===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;pSv===void 0&&(pSv=document.createElement("template"));var r=pSv;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);XS7=q}q=XS7;return q},{mode:2});var ZF9=function(){var q=_.N.apply(this,arguments)||this;q.emojiManager=_.tC;q.isDarkTheme=document.documentElement.hasAttribute("dark");q.selectedIndex=1;q.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return q};
_.z(ZF9,_.N);_.e=ZF9.prototype;_.e.handleEmojiCustomizationVisible=function(q){this.emojiPickerRenderer.selected=q;this.selectedIndex=1;q?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.e.emojiCustomizationSetChanged=function(){var q;(q=this.data)!=null&&q.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.iN(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.e.updateSaveButtonState=function(q){var Z;(Z=this.data)!=null&&Z.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.wp("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:q}))};
_.e.emojiUrl=function(q){q=_.vv(this.emojiManager,q);if(!q)return"";var Z;q=(Z=q.image)==null?void 0:Z.thumbnails;return _.TL(q,24)||""};
_.e.emojiAlt=function(q){var Z=_.vv(this.emojiManager,q);if(!Z)return q;var w,r,Y,C=(Z==null?void 0:(w=Z.image)==null?void 0:(r=w.accessibility)==null?void 0:(Y=r.accessibilityData)==null?void 0:Y.label)||"";return C?C:Z.isCustomEmoji?Z.shortcuts[0]:Z.emojiId||q};
_.e.emojiAriaLabel=function(q){var Z,w;return((Z=_.vv(this.emojiManager,q))==null?void 0:(w=Z.shortcuts)==null?void 0:w[0])||q};
_.e.onEmojiClick=function(q){q.model.index!==0&&(this.selectedIndex=q.model.index)};
_.e.onEmojiSelect=function(q){q=q.detail;var Z,w;((Z=this.data)==null?0:Z.emojiCustomizationSetEntityKey)&&((w=this.emojiCustomizationSet)==null?0:w.emojiId)&&q.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,q.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.wp("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,q.emojiId,this.selectedIndex)}))};
_.e.canEditEmoji=function(q,Z,w){q=q.indexOf(Z);return q===w||q===0||w===0?!1:!0};
_.e.getUpdatedEmojiIdList=function(q,Z,w){var r=q.indexOf(Z);q=[].concat(_.Ju(q));r>=0&&(q[r]=q[w]);q[w]=Z;return q};
_.My.Object.defineProperties(ZF9,{template:{configurable:!0,enumerable:!0,get:function(){if(WCe===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;HJ1===void 0&&(HJ1=document.createElement("template"));var r=HJ1;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);WCe=q}q=WCe;return q}}});
var GU=ZF9;GU.prototype.onEmojiSelect=GU.prototype.onEmojiSelect;_.X([_.U(_.u3),_.A("design:type",Object)],GU.prototype,"ytLiveChatReduxBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],GU.prototype,"ytActionHandlerBehavior",void 0);_.X([_.fo("yt-emoji-picker-renderer"),_.A("design:type",Object)],GU.prototype,"emojiPickerRenderer",void 0);
_.X([_.F({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(q,Z){return _.iI(q.entities,"emojiCustomizationSetEntity",Z)},
observer:"emojiCustomizationSetChanged"}),_.A("design:type",Object)],GU.prototype,"emojiCustomizationSet",void 0);_.X([_.F(),_.A("design:type",Object)],GU.prototype,"originalEmojiSet",void 0);_.X([_.F(),_.A("design:type",_.SL)],GU.prototype,"emojiManager",void 0);_.X([_.F(),_.A("design:type",Object)],GU.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],GU.prototype,"isDarkTheme",void 0);_.X([_.F(),_.A("design:type",Object)],GU.prototype,"selectedIndex",void 0);
_.X([_.m2("yt-emoji-select"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],GU.prototype,"onEmojiSelect",null);GU=_.X([_.dx({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],GU);var wuX;var rMe;var Y9v;var $Ge;var exX=function(){var q=_.N.apply(this,arguments)||this;q.authorBadges=[];return q};
_.z(exX,_.N);_.e=exX.prototype;_.e.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.e.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]]"}}}}}};
_.e.dataChanged=function(){var q=PV2(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",q)};
_.e.updateMessage=function(){var q=this.data.message,Z=_.E(_.E(this.hostElement).querySelector("#message"));Z.textContent="";q&&Z.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(q))};
_.e.shouldSupportWholeItemClick=function(){return!0};
_.e.onShowOriginalClick=function(q){q.preventDefault();this.showOriginal=!0};
_.e.computeShowBar=function(q,Z,w){return q&&Z||w};
_.e.computeAuthorBadges=function(q){return q.authorBadges||[]};
_.e.computeAuthorIsOwner=function(q){return!!d52(q.authorBadges,"owner")};
_.e.computeAuthorNameColor=function(q){var Z;if(_.b("live_chat_author_name_color_usernames")&&(q==null?0:(Z=q.authorName)==null?0:Z.simpleText))return _.uSX(_.LR1(q.authorName.simpleText));if(_.b("live_chat_seed_color_usernames")&&(q==null?0:q.authorSeedColorArgb))return _.uSX(_.Gp(q.authorSeedColorArgb));if(_.b("live_chat_colored_usernames"))return"#cc0000";var w;return _.b("live_chat_simple_color_usernames")&&(q==null?0:(w=q.authorName)==null?0:w.simpleText)&&(q==null?0:q.authorUsernameColorLight)&&
(q==null?0:q.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.Gp(q.authorUsernameColorDark):_.Gp(q.authorUsernameColorLight):""};
var pZ=exX;pZ.prototype.updateMessage=pZ.prototype.updateMessage;pZ.prototype.dataChanged=pZ.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],pZ.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.R2.YtLiveChatItemBehavior),_.A("design:type",_.bP)],pZ.prototype,"ytLiveChatItemBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],pZ.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],pZ.prototype,"data",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],pZ.prototype,"showOriginal",void 0);_.X([_.F({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.A("design:type",Boolean)],pZ.prototype,"isDimmed",void 0);_.X([_.F({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.A("design:type",Boolean)],pZ.prototype,"showBar",void 0);
_.X([_.F({computed:"computeAuthorBadges(data)"}),_.A("design:type",Array)],pZ.prototype,"authorBadges",void 0);_.X([_.F({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],pZ.prototype,"authorIsOwner",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],pZ.prototype,"inCollapsedBanner",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],pZ.prototype,"inBanner",void 0);
_.X([_.F({value:_.b("live_chat_hide_avatars"),reflectToAttribute:!0}),_.A("design:type",Boolean)],pZ.prototype,"avatarHidden",void 0);_.X([_.F({computed:"computeAuthorNameColor(data)"}),_.A("design:type",String)],pZ.prototype,"authorNameColor",void 0);_.X([_.F(),_.A("design:type",_.Bv)],pZ.prototype,"participantsManager",void 0);_.X([_.F({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.A("design:type",Object)],pZ.prototype,"filledButtonOverrides",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pZ.prototype,"dataChanged",null);_.X([_.M("data.message"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pZ.prototype,"updateMessage",null);pZ=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],pZ);
_.p(pZ,"yt-live-chat-text-message-renderer",function(){if($Ge===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Y9v===void 0&&(Y9v=document.createElement("template"));var r=Y9v;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);$Ge=q}q=$Ge;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var XX=function(){var q=_.N.apply(this,arguments)||this;q.tonalButtonOverrides={type:"tonal",style:"overlay"};return q};
_.z(XX,_.N);
XX.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]]"}}}}}};
XX.prototype.shouldSupportInlineActionButtons=function(){return!0};
XX.prototype.shouldSupportWholeItemClick=function(){return!0};
_.My.Object.defineProperties(XX.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
var mr=XX;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.R2.YtLiveChatItemBehavior),_.A("design:type",_.bP)],mr.prototype,"ytLiveChatItemBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],mr.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],mr.prototype,"data",void 0);_.X([_.F(),_.A("design:type",_.Bv)],mr.prototype,"participantsManager",void 0);
_.X([_.F(),_.A("design:type",Object)],mr.prototype,"tonalButtonOverrides",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data.infoDialogButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],mr.prototype,"hasInfoDialogButton",null);mr=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],mr);
_.p(mr,"yt-live-chat-auto-mod-message-renderer",function(){if(rMe===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;wuX===void 0&&(wuX=document.createElement("template"));var r=wuX;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);rMe=q}q=rMe;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var CrJ;var PrK;var dG9;var VBD=function(){return _.N.apply(this,arguments)||this};
_.z(VBD,_.N);var OFh=VBD;_.X([_.F(),_.A("design:type",Object)],OFh.prototype,"data",void 0);OFh=_.X([_.l({is:"ytd-factoid-renderer",disableElementRegistration:!0})],OFh);
_.p(OFh,"ytd-factoid-renderer",function(){if(dG9!==void 0)return dG9;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return dG9=q},{mode:1});var HF1=function(){return _.N.apply(this,arguments)||this};
_.z(HF1,_.N);HF1.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
var AC=HF1;_.X([_.F(),_.A("design:type",Object)],AC.prototype,"data",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],AC.prototype,"ytRendererstamperBehavior",void 0);AC=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],AC);
_.p(AC,"yt-live-chat-channel-activity-reputation-renderer",function(){if(PrK===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;CrJ===void 0&&(CrJ=document.createElement("template"));var r=CrJ;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);PrK=q}q=PrK;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var SVe;var vf9;var jvm=function(){return _.N.apply(this,arguments)||this};
_.z(jvm,_.N);jvm.prototype.ready=function(){var q=document.querySelector("yt-live-chat-app");q&&q.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
var fZ=jvm;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],fZ.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Boolean)],fZ.prototype,"menuFocused",void 0);_.X([_.F(),_.A("design:type",Object)],fZ.prototype,"data",void 0);_.X([_.U(_.R2.YtLiveChatItemBehavior),_.A("design:type",_.bP)],fZ.prototype,"ytLiveChatItemBehavior",void 0);fZ=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],fZ);
_.p(fZ,"yt-live-chat-donation-announcement-renderer",function(){if(vf9===void 0){var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;SVe===void 0&&(SVe=document.createElement("template"));var r=SVe;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);vf9=q}q=vf9;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var tnW;var Rov,bi2=function(){if(Rov!==void 0)return Rov;var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;tnW===void 0&&(tnW=document.createElement("template"));var r=tnW;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return Rov=q};var Joe=function(){return _.N.apply(this,arguments)||this};
_.z(Joe,_.N);_.My.Object.defineProperties(Joe,{template:{configurable:!0,enumerable:!0,get:function(){return bi2()}}});
var Dh=Joe;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Dh.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Dh.prototype,"data",void 0);Dh=_.X([_.dx({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],Dh);_.p(Dh,"yt-live-chat-empty-feed-view-model",function(){return bi2()},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var zo2;var BUW;var azh=function(){return _.N.apply(this,arguments)||this};
_.z(azh,_.N);azh.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"}}}}}};
_.My.Object.defineProperties(azh.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var q,Z;return{runs:[{text:(q=this.data)==null?void 0:(Z=q.channelName)==null?void 0:Z.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var q=[],Z;if((Z=this.data)==null||!Z.channelBadges)return q;var w;Z=_.P((w=this.data)==null?void 0:w.channelBadges);for(w=Z.next();!w.done;w=Z.next()){w=_.J(w.value,Ymh);var r=void 0,Y=void 0;if((r=w)==null?0:(Y=r.badgeImage)==null?0:Y.sources)r=void 0,Y={liveChatAuthorBadgeRenderer:{tooltip:w.tooltip,accessibility:{accessibilityData:{label:(r=_.J(w.rendererContext,_.xL))==null?void 0:r.label}}}},w.badgeImage.sources[0].clientResource?Y.liveChatAuthorBadgeRenderer.icon=
{iconType:w.badgeImage.sources[0].clientResource.imageName}:Y.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:w.badgeImage.sources},q.push(Y)}return q}}});
var hC=azh;_.X([_.F(),_.A("design:type",Object)],hC.prototype,"data",void 0);_.X([_.I("data.channelName"),_.A("design:type",Object),_.A("design:paramtypes",[])],hC.prototype,"channelName",null);_.X([_.I("data.channelBadges"),_.A("design:type",Array),_.A("design:paramtypes",[])],hC.prototype,"channelBadges",null);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);
hC=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],hC);
_.p(hC,"yt-live-chat-identity-view-model",function(){if(BUW===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;zo2===void 0&&(zo2=document.createElement("template"));var r=zo2;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);BUW=q}q=BUW;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var nfX;var QvK;var Efp;var xg1;var TU2=function(){var q=_.N.apply(this,arguments)||this;q.hidden=!1;q.supportsInlineActionButtons=!0;return q};
_.z(TU2,_.N);TU2.prototype.ready=function(){var q;((q=document.querySelector("yt-live-chat-app"))==null?0:q.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
TU2.prototype.dataChanged=function(q){var Z=(0,_.GI)(_.E(this.hostElement).querySelector("#detail-text"));Z.textContent="";(q==null?0:q.detailText)&&Z.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(q.detailText))};
var yk=TU2;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.R2.YtLiveChatItemBehavior),_.A("design:type",_.bP)],yk.prototype,"ytLiveChatItemBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],yk.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F({observer:"dataChanged"}),_.A("design:type",Object)],yk.prototype,"data",void 0);
_.X([_.F({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.A("design:type",Object)],yk.prototype,"hidden",void 0);yk=_.X([_.l({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],yk);
_.p(yk,"yt-live-chat-legacy-paid-message-renderer",function(){if(xg1===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Efp===void 0&&(Efp=document.createElement("template"));var r=Efp;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);xg1=q}q=xg1;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var Ugg;var kqm;var KUh={},svg=function(){return _.y5.apply(this,arguments)||this};
_.z(svg,_.y5);svg.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var iP=svg;iP.prototype.onLiveChatMembershipItemBehaviorClick=iP.prototype.onLiveChatMembershipItemBehaviorClick;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],iP.prototype,"data",void 0);_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],iP.prototype,"onLiveChatMembershipItemBehaviorClick",null);iP=_.X([_.iq()],iP);
KUh.YtLiveChatMembershipItemBehavior=[iP.prototype,_.y.YtRendererBehavior];var IzJ=function(){var q=_.N.apply(this,arguments)||this;q.supportsInlineActionButtons=!0;q.hasPrimaryHeaderText=!1;q.showOnlyHeader=!1;q.authorBadges=[];q.modern=_.b("web_button_rework_with_live");q.buttonOverrides={style:"overlay",type:"filled"};return q};
_.z(IzJ,_.N);_.e=IzJ.prototype;_.e.shouldSupportInlineActionButtons=function(){return!0};
_.e.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.e.ready=function(){var q=document.querySelector("yt-live-chat-app");q&&q.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.e.messageChanged=function(){var q=this.data.message,Z=(0,_.GI)(_.E(this.hostElement).querySelector("#message"));Z.textContent="";q&&Z.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(q))};
_.e.computeHasPrimaryHeaderText=function(q){return!(!q||!q.headerPrimaryText)};
_.e.computeShowOnlyHeader=function(q,Z){return this.isMessageEmpty(q,Z)};
_.e.computeAuthorBadges=function(q){return q.authorBadges||[]};
_.e.isMessageEmpty=function(q,Z){return!q||q.empty?!0:!q.message&&!q.inputField&&!Z};
_.e.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.e.getInputElement=function(){return _.E(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.e.inputFocus=function(){var q=this.getInputElement();q&&q.focus()};
_.e.inputInsertEmoji=function(q){var Z=this.getInputElement();Z&&Z.insertEmoji(q)};
_.e.inputMessage=function(){var q=this.getInputElement();return q&&this.data.inputField?(q.completeEmojis(),_.jj(q.liveChatRichMessageInput)):null};
_.e.onFooterButtonClick=function(){this.data.footerButton&&_.hy(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.e.shouldSupportWholeItemClick=function(){return!0};
var gK=IzJ;gK.prototype.isDeletedChanged=gK.prototype.isDeletedChanged;gK.prototype.messageChanged=gK.prototype.messageChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.R2.YtLiveChatItemBehavior),_.A("design:type",_.bP)],gK.prototype,"ytLiveChatItemBehavior",void 0);_.X([_.U(KUh.YtLiveChatMembershipItemBehavior),_.A("design:type",Object)],gK.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],gK.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],gK.prototype,"data",void 0);_.X([_.F({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.A("design:type",Object)],gK.prototype,"hasPrimaryHeaderText",void 0);_.X([_.F({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.A("design:type",Object)],gK.prototype,"showOnlyHeader",void 0);
_.X([_.F({computed:"computeAuthorBadges(data)"}),_.A("design:type",Array)],gK.prototype,"authorBadges",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gK.prototype,"modern",void 0);_.X([_.M("data.message"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gK.prototype,"messageChanged",null);_.X([_.M("isDeleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gK.prototype,"isDeletedChanged",null);
gK=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],gK);
_.p(gK,"yt-live-chat-membership-item-renderer",function(){if(kqm===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Ugg===void 0&&(Ugg=document.createElement("template"));var r=Ugg;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);kqm=q}q=kqm;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var co1;var Mn7;var FUD=function(){return _.N.apply(this,arguments)||this};
_.z(FUD,_.N);FUD.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
var qt=FUD;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],qt.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],qt.prototype,"data",void 0);qt=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],qt);
_.p(qt,"yt-live-chat-mode-change-message-renderer",function(){if(Mn7===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;co1===void 0&&(co1=document.createElement("template"));var r=co1;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Mn7=q}q=Mn7;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var NU2;var lzJ;var Gqm=function(){return _.N.apply(this,arguments)||this};
_.z(Gqm,_.N);var Zp=Gqm;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Zp.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.R2.YtLiveChatItemBehavior),_.A("design:type",_.bP)],Zp.prototype,"ytLiveChatItemBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Zp.prototype,"data",void 0);Zp=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Zp);
_.p(Zp,"yt-live-chat-moderation-message-renderer",function(){if(lzJ===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;NU2===void 0&&(NU2=document.createElement("template"));var r=NU2;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);lzJ=q}q=lzJ;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var pMX;var XMK;var mg7=function(){var q=_.N.apply(this,arguments)||this;q.modern=_.b("web_button_rework");return q};
_.z(mg7,_.N);mg7.prototype.onClick=function(){var q;if((q=this.data)!=null&&q.onClickCommand){var Z;_.AJ.instance.resolveCommand((Z=this.data)==null?void 0:Z.onClickCommand)}};
var wm=mg7;_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],wm.prototype,"modern",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.u3),_.A("design:type",Object)],wm.prototype,"ytLiveChatReduxBehavior",void 0);_.X([_.U(_.R2.YtLiveChatItemBehavior),_.A("design:type",_.bP)],wm.prototype,"ytLiveChatItemBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],wm.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],wm.prototype,"data",void 0);wm=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],wm);
_.p(wm,"yt-live-chat-offer-click-count-message-renderer",function(){if(XMK===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;pMX===void 0&&(pMX=document.createElement("template"));var r=pMX;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);XMK=q}q=XMK;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var Ao9;var fzh=function(){return _.N.apply(this,arguments)||this};
_.z(fzh,_.N);var Dgh=fzh;_.X([_.F(),_.A("design:type",Object)],Dgh.prototype,"data",void 0);Dgh=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],Dgh);
_.p(Dgh,"yt-live-chat-placeholder-item-renderer",function(){if(Ao9===void 0){var q=document.createElement("template");_.a(q,"\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");q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);Ao9=q}q=Ao9;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var hoJ;var yo9;var iiX=new xO(7),gf1=function(){var q=_.N.apply(this,arguments)||this;q.data={};return q};
_.z(gf1,_.N);gf1.prototype.dataChanged=function(){var q;((q=this.data)==null?0:q.class)&&_.NZ(this.hostElement,this.data.class,!0);var Z;((Z=this.oldData)==null?0:Z.class)&&_.NZ(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
gf1.prototype.computeTimestampString=function(q){return iiX.format(new Date(q/1E3))};
var rm=gf1;rm.prototype.dataChanged=rm.prototype.dataChanged;_.X([_.F(),_.A("design:type",Object)],rm.prototype,"data",void 0);_.X([_.F({computed:"computeTimestampString(data.timestampUsec)"}),_.A("design:type",String)],rm.prototype,"timestampString",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rm.prototype,"dataChanged",null);rm=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],rm);
_.p(rm,"yt-live-chat-server-error-message",function(){if(yo9===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;hoJ===void 0&&(hoJ=document.createElement("template"));var r=hoJ;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);yo9=q}q=yo9;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var qog;var Zrv;var wsK=function(){var q=_.N.apply(this,arguments)||this;q.defaultToFilledIcon=!1;return q};
_.z(wsK,_.N);wsK.prototype.computeHasPrimaryColorIcon=function(q){return q==="SPARK"||q==="SPONSORSHIP_STAR"};
wsK.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
var YN=wsK;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.R2.YtLiveChatItemBehavior),_.A("design:type",_.bP)],YN.prototype,"ytLiveChatItemBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],YN.prototype,"defaultToFilledIcon",void 0);_.X([_.F(),_.A("design:type",Object)],YN.prototype,"data",void 0);
_.X([_.F({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.A("design:type",Boolean)],YN.prototype,"hasPrimaryColorIcon",void 0);YN=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],YN);
_.p(YN,"yt-live-chat-viewer-engagement-message-renderer",function(){if(Zrv===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;qog===void 0&&(qog=document.createElement("template"));var r=qog;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Zrv=q}q=Zrv;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var ra2;var Yoh=function(){var q=_.N.apply(this,arguments)||this;q.modernUpdate=!1;q.buttonStyle="overlay";q.buttonType="filled";return q};
_.z(Yoh,_.N);Yoh.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
Yoh.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
var $N=Yoh;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],$N.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],$N.prototype,"modernUpdate",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],$N.prototype,"buttonStyle",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],$N.prototype,"buttonType",void 0);
$N=_.X([_.l({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],$N);
_.p($N,"ytd-ad-hover-text-button-renderer",function(){if(ra2!==void 0)return ra2;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ra2=q},{mode:1});var $pX;var eJ7=function(){var q=_.N.apply(this,arguments)||this;q.buttonOverrides={size:"XS"};q.modern=_.b("web_button_rework");return q};
_.z(eJ7,_.N);eJ7.prototype.onHelpTap=function(q){this.data&&this.data.informationDialog&&(_.hy(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),q.preventDefault(),q.stopPropagation())};
var eA=eJ7;_.X([_.F(),_.A("design:type",Object)],eA.prototype,"buttonOverrides",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],eA.prototype,"modern",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],eA.prototype,"data",void 0);eA=_.X([_.l({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],eA);
_.p(eA,"ytd-live-chat-purchased-product-message-renderer",function(){if($pX!==void 0)return $pX;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return $pX=q},{mode:1});var Cw2;var PwX;var dpD=function(){var q=_.N.apply(this,arguments)||this;q.isContainerDeleted=!1;return q};
_.z(dpD,_.N);dpD.prototype.onContextMenuClick=function(q){this.ytLiveChatItemBehavior.showContextMenu(q)};
dpD.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))};
var CO=dpD;CO.prototype.isContainerDeletedChanged=CO.prototype.isContainerDeletedChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.R2.YtLiveChatItemBehavior),_.A("design:type",_.bP)],CO.prototype,"ytLiveChatItemBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],CO.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],CO.prototype,"isContainerDeleted",void 0);
_.X([_.F(),_.A("design:type",String)],CO.prototype,"deletedStateMessage",void 0);_.X([_.M("isContainerDeleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],CO.prototype,"isContainerDeletedChanged",null);CO=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],CO);
_.p(CO,"ytd-sponsorships-live-chat-header-renderer",function(){if(PwX!==void 0)return PwX;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return PwX=q},{mode:1});var Pj=function(){var q=_.N.apply(this,arguments)||this;q.modern=_.b("web_button_rework_with_live");q.buttonOverrides={style:"overlay",type:"filled"};return q};
_.z(Pj,_.N);Pj.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]]"}}}}}};
Pj.prototype.onCtaButtonClick=function(){var q,Z=_.J((q=this.data)==null?void 0:q.optInPrompt,_.tA);if(q=this.maybeGetButtonCommand(Z)){var w;(w=_.iy())==null||w.clickCommand(q)}};
Pj.prototype.maybeGetButtonCommand=function(q){return!q||!q.command||_.J(q.command,aK2)===void 0&&_.J(q.command,BF9)===void 0?null:q.command};
Pj.prototype.shouldHideOptinPrompt=function(q,Z){return!q||Z};
var dm=Pj;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],dm.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.R2.YtLiveChatItemBehavior),_.A("design:type",_.bP)],dm.prototype,"ytLiveChatItemBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],dm.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],dm.prototype,"modern",void 0);
dm=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],dm);
_.p(dm,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(Cw2!==void 0)return Cw2;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Cw2=q},{mode:1});var VMX;var OrX=function(){return _.N.apply(this,arguments)||this};
_.z(OrX,_.N);OrX.prototype.onContextMenuClick=function(q){this.ytLiveChatItemBehavior.showContextMenu(q)};
OrX.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))};
var VQ=OrX;VQ.prototype.isDeletedChanged=VQ.prototype.isDeletedChanged;_.X([_.U(_.R2.YtLiveChatItemBehavior),_.A("design:type",_.bP)],VQ.prototype,"ytLiveChatItemBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],VQ.prototype,"data",void 0);_.X([_.M("isDeleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],VQ.prototype,"isDeletedChanged",null);
VQ=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],VQ);
_.p(VQ,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(VMX!==void 0)return VMX;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return VMX=q},{mode:1});var HrD=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return q};
_.z(HrD,_.N);_.e=HrD.prototype;
_.e.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"}}}};
_.e.handleLiveChatAction=function(q){_.J(q,DLJ)?this.handleMarkChatItemAsDeletedAction(_.J(q,DLJ)):_.J(q,f7X)&&this.handleRemoveChatItemAction(_.J(q,f7X))};
_.e.handleLiveChatActions=function(q){q.forEach(this.handleLiveChatAction,this)};
_.e.handleMarkChatItemAsDeletedAction=function(q){var Z=this,w;((w=this.data)==null?0:w.items)&&this.data.items.forEach(function(r,Y){var C=Object.keys(r)[0];Object.values(r)[0].id===q.targetItemId&&Z.markAsDeleted("data.items",Y,C,q.deletedStateMessage,q.showOriginalContentMessage)})};
_.e.handleRemoveChatItemAction=function(q){var Z=this,w;((w=this.data)==null?0:w.items)&&this.data.items.forEach(function(r,Y){Object.values(r)[0].id===q.targetItemId&&Z.splice("data.items",Y,1)})};
_.e.markAsDeleted=function(q,Z,w,r,Y){q=[q,Z,w].join(".");this.set(q+".deletedStateMessage",r);this.set(q+".showOriginalContentMessage",Y)};
var OW=HrD;_.X([_.F(),_.A("design:type",Object)],OW.prototype,"data",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],OW.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],OW.prototype,"ytActionHandlerBehavior",void 0);OW=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],OW);
_.p(OW,"yt-live-chat-item-display-list-renderer",function(){if(QvK===void 0){var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;nfX===void 0&&(nfX=document.createElement("template"));var r=nfX;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);QvK=q}q=QvK;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var WzJ;var oS7,utg=function(){if(oS7!==void 0)return oS7;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;WzJ===void 0&&(WzJ=document.createElement("template"));var r=WzJ;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return oS7=q};var Lz7=function(){var q=_.N.apply(this,arguments)||this;q.isHeader=!1;return q};
_.z(Lz7,_.N);Lz7.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.My.Object.defineProperties(Lz7,{template:{configurable:!0,enumerable:!0,get:function(){return utg()}}});
var Hj=Lz7;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Hj.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Hj.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Hj.prototype,"isHeader",void 0);Hj=_.X([_.dx({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Hj);
_.p(Hj,"yt-live-chat-item-display-renderer",function(){return utg()},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var Sov,vS9,JaK,brm;
Sov={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}};vS9={home:"eohps",search:"eosps",watch:"eowps"};_.jpK=["watch","search","home"];
_.Wj=function(){this.JSC$11999_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$11999_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.zj("PRECONSTRUCTION_DELAY",0);this.signals_=_.zB();this.targetPage_=""};
_.Wj.prototype.init=function(q,Z){q=q===void 0?"":q;Z=Z===void 0?null:Z;if(this.JSC$11999_isInitialized_)this.abort();else if(this.JSC$11999_isInitialized_=!0,q&&_.tM7(this,q),Z){var w=_.BV(this.signals_,"pcl")?0:10,r=function(){for(var Y=0,C;C=_.jpK[Y++];)C!=q&&C!=Z&&this.pendingPages_.push(C);_.RJh(this)}.bind(this);
this.signals_.parkOrScheduleJob(r,w,"pcl")}};
_.Wj.prototype.abort=function(){this.fragmentJobId_&&(_.v5.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);brm(this)};
_.tM7=function(q,Z){q.JSC$11999_isInitialized_&&!q.targetPage_&&(q.targetPage_=Z,JaK(q,Z),q.isInitialPass_=!1,JaK(q,Z),q.signals_.processSignal(vS9[q.targetPage_]),brm(q),_.RJh(q))};
_.RJh=function(q){q.pendingPages_.length&&!q.pagePreparerJobId_&&(q.pagePreparerJobId_=_.WO(_.v5,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.tM7(this,this.pendingPages_.shift())}.bind(q),q.DEFAULT_DELAY_))};
JaK=function(q,Z){if(Z=Sov[Z])for(var w in Z){var r=!1,Y=w;w.charAt(0)=="~"&&(r=!0,Y=w.substring(1));var C=Z[w];C=typeof C=="object"?C:{count:C};Z[w]=C;C.componentName=Y;C.count>0&&(q.isInitialPass_?r||q.isSeenDuringInitialPass_[Y]||(q.JSC$11999_queue_.push({componentName:Y,count:1,signals:C.signals}),q.isSeenDuringInitialPass_[Y]=!0,C.count--):q.JSC$11999_queue_.push(C))}};
brm=function(q){q.JSC$11999_queue_.length=0;q.targetPage_="";q.isInitialPass_=!0;q.signals_.processSignal("eop")};
_.Wj.getInstance=function(){return _.gn(_.Wj)};var zJJ=function(){this.signals=_.zB();this.init()};
zJJ.prototype.startPreconstruction=function(){_.Wj.getInstance().init(_.BF("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
zJJ.prototype.init=function(){BPv(this);window.Polymer&&SAe&&SW9();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var q=_.$1.ytcsi;if(q&&q.gt&&(q=q.gt())&&q.tick&&(q.tick.aft>0||q.tick.pbs>0)&&(_.BF("IS_HOMEPAGE_COLD")||_.BF("IS_RESULTS_PAGE_COLD")||_.BF("IS_WATCH_PAGE_COLD"))){a0p(this);break a}PyT(fGI,this.onNotifications,this)}};
var BPv=function(q){var Z=function(){q.signals.processSignal("dl")};
document.readyState==="complete"?(_.xT(Error("th"),"WARNING"),Z()):_.cEz(window,"load",Z)};
zJJ.prototype.onNotifications=function(q){q.timer||(_.BF("IS_HOMEPAGE_COLD")||_.BF("IS_RESULTS_PAGE_COLD")||_.BF("IS_WATCH_PAGE_COLD"))&&a0p(this)};
var a0p=function(q){q.signals.parkOrScheduleJob(function(){q.signals.processSignal("eocs")},10,"eor")};
new zJJ;var oy,nSW=function(){return _.y5.apply(this,arguments)||this};
_.z(nSW,_.y5);_.e=nSW.prototype;_.e.enableActiveViewMeasurement=function(q){if(this.isActiveViewEnabled(q)){var Z=this.getUrlPrefixesFromCommand(q.viewableCommands);q=this.getUrlPrefixesFromCommand(q.endOfSessionCommands);oy||(oy=new Jxe(this.getVersion()));zz2(oy,this.hostElement);BvX(oy,this.hostElement,Z,q)}};
_.e.stopActiveViewMeasurement=function(){oy&&zz2(oy,this.hostElement)};
_.e.isActiveViewEnabled=function(q){return!!q&&(this.hasAtLeastOneUrl(q.viewableCommands)||this.hasAtLeastOneUrl(q.endOfSessionCommands))};
_.e.hasAtLeastOneUrl=function(q){return!!q&&q.length>0&&q[0].loggingUrls!=null&&q[0].loggingUrls.length>0};
_.e.getVersion=function(){var q=_.zj("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(q==null?void 0:q.length)===2?q[1]:null};
_.e.getUrlPrefixesFromCommand=function(q){if(!q)return[];var Z=[];q=_.P(q);for(var w=q.next();!w.done;w=q.next())if(w=w.value,w.loggingUrls){w=_.P(w.loggingUrls);for(var r=w.next();!r.done;r=w.next())r=r.value,r.baseUrl&&Z.push(r.baseUrl)}return Z};
var Qp2=nSW;Qp2=_.X([_.iq()],Qp2);var uc=[Qp2.prototype];var ESD=function(){return _.y5.apply(this,arguments)||this};
_.z(ESD,_.y5);_.My.Object.defineProperties(ESD.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.b("enable_entity_store_from_dependency_injection")?_.JJ():_.sE()}}});
var xpp=ESD;xpp=_.X([_.iq()],xpp);_.LO=[CK.prototype,xpp.prototype];var TP2=["ytd-rich-shelf-renderer"],Up1=function(){var q=_.y5.apply(this,arguments)||this;q._noAccessors=!0;q.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";q.followUpDialogPromise=null;q.followUpDialogPromiseResolve=null;q.followUpDialogPromiseReject=null;return q};
_.z(Up1,_.y5);_.e=Up1.prototype;_.e.dismissibleItemIsDismissedChanged_=function(q){_.b("kevlar_fluid_dismiss")&&(q?_.hy(this.hostElement,"yt-dismissible-item-dismissed"):_.hy(this.hostElement,"yt-dismissible-item-undismissed"))};
_.e.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.e.dismissibleItemReset_=function(){var q=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 _.r5(function(Z,w){q.followUpDialogPromiseResolve=Z;q.followUpDialogPromiseReject=w});
_.hy(this.hostElement,"yt-enable-lockup-interaction")};
_.e.dismissibleItemOnYtServiceRequestSent_=function(q,Z){Z.actions&&this.dismissibleItemProcessActions(Z.actions,q)};
_.e.dismissibleItemOnRequestSent=function(q){if(_.b("web_button_rework"))for(var Z=_.P(q.detail),w=Z.next();!w.done;w=Z.next()){var r=void 0;(w=(r=_.J(w.value,_.CR))==null?void 0:r.actions)&&this.dismissibleItemProcessActions(w,q)}};
_.e.dismissibleItemOnCommandSent=function(q,Z){Z&&this.dismissibleItemProcessActions(Z,q)};
_.e.setAndGetDismissedContentId=function(q){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+q};
_.e.replayDismissAction=function(q){this.dismissibleItemProcessActions([q])};
_.e.dismissibleItemProcessActions=function(q,Z){for(var w=0;w<q.length;w++){var r=q[w],Y=void 0;((Y=_.J(r,_.$K))==null?0:Y.commands)&&this.dismissibleItemProcessActions(_.J(r,_.$K).commands,Z);if(_.J(r,_.CH)){if(Y=_.J(r,_.CH),!Y.replaceParentSection||TP2.includes(this.hostElement.nodeName.toLowerCase()))_.b("web_see_fewer_shorts_reactive_dismissal")&&Y.groupDismissal&&Ug1(this,Y.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(Y),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.wp("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:r})),r=void 0,(r=Z)==null||r.stopPropagation()}else if(_.J(r,CQh))this.dismissibleItemHandleHideEnclosingAction_(),r=void 0,(r=Z)==null||r.stopPropagation();else if(_.J(r,vXD))_.b("web_see_fewer_shorts_reactive_dismissal")&&(r=_.J(r,vXD),Y=void 0,((Y=r)==null?0:Y.targetGroupId)&&Ug1(this,{targetGroupId:r.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.wp("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),r=void 0,(r=Z)==null||r.stopPropagation();else if(_.J(r,_.CR))(r=_.J(r,_.CR).actions)&&_.ZC(this.hostElement,r,this.hostElement),r=void 0,(r=Z)==null||r.stopPropagation();else{var C=Y=void 0;((Y=_.J(r,_.EU))==null?void 0:Y.signal)!=="TELL_US_WHY"||((C=_.J(r,_.EU))==null?0:C.targetId)&&_.b("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),r=void 0,(r=Z)==null||r.stopPropagation())}}};
_.e.dismissibleItemOnYtServiceRequestCompleted_=function(q,Z){var w=this.get("feedbackResponses.0.followUpDialog",Z.data);w?this.followUpDialogPromiseResolve(w):Z.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(Z.actions,q)};
_.e.dismissibleItemHandleReplaceEnclosingAction_=function(q){this.dismissedRenderer=q.item;this.isDismissed=!0;var Z=null;(Z=_.E(this.hostElement).querySelector("#dismissed"))&&_.I_(this,function(){_.sG(Z)});
_.hy(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.e.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.e.dismissibleItemHandleUndoFeedbackAction_=function(){_.hy(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.e.dismissibleItemHandleTellUsWhySignalAction_=function(){var q=this;this.followUpDialogPromise.then(function(Z){q.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:Z}})})};
var SA=Up1;SA.prototype.dismissibleItemOnYtServiceRequestCompleted_=SA.prototype.dismissibleItemOnYtServiceRequestCompleted_;SA.prototype.dismissibleItemOnCommandSent=SA.prototype.dismissibleItemOnCommandSent;SA.prototype.dismissibleItemOnRequestSent=SA.prototype.dismissibleItemOnRequestSent;SA.prototype.dismissibleItemOnYtServiceRequestSent_=SA.prototype.dismissibleItemOnYtServiceRequestSent_;SA.prototype.dismissibleItemDataChanged_=SA.prototype.dismissibleItemDataChanged_;
SA.prototype.dismissibleItemIsDismissedChanged_=SA.prototype.dismissibleItemIsDismissedChanged_;_.X([_.U(_.Et),_.A("design:type",Object)],SA.prototype,"ytdOpenPopupBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],SA.prototype,"ytdReduxBehavior",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],SA.prototype,"isDismissed",void 0);_.X([_.F(),_.A("design:type",Object)],SA.prototype,"dismissedRenderer",void 0);
_.X([_.M("isDismissed"),_.A("design:type",Function),_.A("design:paramtypes",[Boolean]),_.A("design:returntype")],SA.prototype,"dismissibleItemIsDismissedChanged_",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SA.prototype,"dismissibleItemDataChanged_",null);
_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],SA.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.X([_.m2("yt-service-request-sent-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],SA.prototype,"dismissibleItemOnRequestSent",null);
_.X([_.m2("yt-dismissible-item-action"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Array]),_.A("design:returntype")],SA.prototype,"dismissibleItemOnCommandSent",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],SA.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);SA=_.X([_.iq()],SA);_.vj=[_.Et,_.LO,SA.prototype];var jA=function(){var q=_.y5.apply(this,arguments)||this;q.disableGridStateAware=!1;q.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};q.currentGridClass="";return q};
_.z(jA,_.y5);jA.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.I_(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var q=this.gridStateAwareGetElement();_.NZ(q,"grid",!0)}};
jA.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
jA.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.E(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
jA.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var q="grid-disabled";else{q=_.L8g.getInstance();var Z=this.get("pageSubtype");q=Z&&W8W.includes(Z)?"grid-disabled":q.currentSnapState_?q.currentSnapState_.className:null}(Z=this.gridStateAwareGetElement())&&q!==this.currentGridClass&&(q&&_.NZ(Z,q,!0),this.currentGridClass&&_.NZ(Z,this.currentGridClass,!1),this.currentGridClass=q)};
var t_=jA;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],t_.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",String)],t_.prototype,"gridStateAwareSizingElementSelector",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],t_.prototype,"disableGridStateAware",void 0);t_=_.X([_.iq()],t_);_.Ry=[t_.prototype,_.KK.YtActionHandlerBehavior];_.bc=new _.F$("GUIDE_TOKEN");var kV7;_.J_={};kV7=function(){var q=_.y5.apply(this,arguments)||this;q.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 q};
_.z(kV7,_.y5);_.e=kV7.prototype;_.e.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.e.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var q=_.t().resolve(_.Gj(_.bc));q&&(this.guidePersistentAndVisible=q.getGuidePersistentAndVisible(),this.activeEndpoint=q.getActiveEndpoint(),this.guideOpened=q.getGuideOpened(),this.miniGuideVisible=q.getMiniGuideVisible())};
_.e.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.e.handleGuideStateAction=function(q){this.guidePersistentAndVisible=q};
_.e.handleMiniGuideStateAction=function(q){this.miniGuideVisible=q};
_.e.handleGuideOpenedAction=function(q){this.guideOpened=q};
_.e.handleActiveEndpointAction=function(q){this.activeEndpoint=q};
var zi=kV7;zi.prototype.onActiveEndpointChange=zi.prototype.onActiveEndpointChange;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],zi.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],zi.prototype,"guidePersistentAndVisible",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],zi.prototype,"miniGuideVisible",void 0);_.X([_.F(),_.A("design:type",Object)],zi.prototype,"activeEndpoint",void 0);
_.X([_.M("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zi.prototype,"onActiveEndpointChange",null);_.X([_.F(),_.A("design:type",Boolean)],zi.prototype,"guideOpened",void 0);zi=_.X([_.iq()],zi);_.J_.YtdGuideStateAwareBehavior=[];_.J_.YtdGuideStateAwareBehavior.push(zi.prototype,_.KK.YtActionHandlerBehavior);var Kzh=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],sp2=function(){var q=_.y5.apply(this,arguments)||this;q.hoverJobId=0;q.JSC$12030_touched=!1;return q};
_.z(sp2,_.y5);_.e=sp2.prototype;_.e.created=function(){this.useExpandableTooltip=!Kzh.includes(this.is)};
_.e.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.e.detached=function(){this.useExpandableTooltip=!1};
_.e.lockupOnDown=function(q){this.interactionElement&&!_.E1(_.E8(q),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.e.lockupOnUp=function(q){this.interactionElement&&!_.E1(_.E8(q),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.e.onTouchStart=function(){this.JSC$12030_touched=!0};
_.e.lockupOnMouseEnter=function(){var q=this,Z=_.m6("kevlar_lockup_hover_delay",-1);this.JSC$12030_touched&&Z>=0?(_.v5.cancelJob(this.hoverJobId),this.hoverJobId=_.v5.addJob(function(){q.lockupIsHovered=!0},8,Z),this.JSC$12030_touched=!1):this.lockupIsHovered=!0};
_.e.lockupOnMouseLeave=function(){this.hoverJobId&&(_.v5.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.e.lockupOnPopupClosed=function(q,Z){var w;((w=Z.popupRenderer)==null?void 0:w.is)==="ytd-menu-popup-renderer"&&(q=Z.popupRenderer.veData,Z=_.b5(),q&&Z&&_.KR(Z,[q]))};
_.e.lockupOnLockupRequested=function(q){var Z=q.detail.videoIds[0],w;q.detail&&Z===((w=this.data)==null?void 0:w.videoId)&&(q.detail.returnValue=[this.data])};
_.e.lockupOnYtServiceRequestSent=function(q,Z){if(q=Z.actions)for(var w=0;w<q.length;w++){var r=q[w];if(r.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&Z.ajaxPromise){var Y=void 0,C=(Y=_.J(Z.endpoint,_.SE))==null?void 0:Y.playlistId;Y=void 0;r=(Y=r.removedVideoId)!=null?Y:"";M4v(_.nq(),r,C)}else r.action==="ACTION_REMOVE_VIDEO"&&Z.ajaxPromise&&(C=void 0,r=(C=r.setVideoId)!=null?C:"",_.F4J(_.nq(),r))}};
_.e.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.e.lockupOnLockupEnabled=function(){if(!this.$){var q=_.t().resolve(_.U1).getCurrentPage(),Z=this.getParentRenderer?this.getParentRenderer():void 0;_.bx(new _.df("component not ready",this.is,this.isAttached,q==null?void 0:q.is,Z==null?void 0:Z.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
var Bj=sp2;Bj.prototype.lockupOnLockupEnabled=Bj.prototype.lockupOnLockupEnabled;Bj.prototype.lockupOnLockupDisabled=Bj.prototype.lockupOnLockupDisabled;Bj.prototype.lockupOnYtServiceRequestSent=Bj.prototype.lockupOnYtServiceRequestSent;Bj.prototype.lockupOnLockupRequested=Bj.prototype.lockupOnLockupRequested;Bj.prototype.lockupOnPopupClosed=Bj.prototype.lockupOnPopupClosed;Bj.prototype.lockupOnMouseLeave=Bj.prototype.lockupOnMouseLeave;Bj.prototype.lockupOnMouseEnter=Bj.prototype.lockupOnMouseEnter;
Bj.prototype.onTouchStart=Bj.prototype.onTouchStart;Bj.prototype.lockupOnUp=Bj.prototype.lockupOnUp;Bj.prototype.lockupOnDown=Bj.prototype.lockupOnDown;_.X([_.F(),_.A("design:type",Object)],Bj.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],Bj.prototype,"lockupIsHovered",void 0);_.X([_.F(),_.A("design:type",Boolean)],Bj.prototype,"lockupTouchTriggered",void 0);_.X([_.F(),_.A("design:type",Boolean)],Bj.prototype,"useExpandableTooltip",void 0);
_.X([_.fo("#interaction"),_.A("design:type",Object)],Bj.prototype,"interactionElement",void 0);_.X([_.m2("down"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Bj.prototype,"lockupOnDown",null);_.X([_.m2("up"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Bj.prototype,"lockupOnUp",null);
_.X([_.m2("touchstart"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Bj.prototype,"onTouchStart",null);_.X([_.m2("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Bj.prototype,"lockupOnMouseEnter",null);_.X([_.m2("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Bj.prototype,"lockupOnMouseLeave",null);
_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Bj.prototype,"lockupOnPopupClosed",null);_.X([_.m2("yt-lockup-requested"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Bj.prototype,"lockupOnLockupRequested",null);
_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],Bj.prototype,"lockupOnYtServiceRequestSent",null);_.X([_.m2("yt-disable-lockup-interaction"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Bj.prototype,"lockupOnLockupDisabled",null);
_.X([_.m2("yt-enable-lockup-interaction"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Bj.prototype,"lockupOnLockupEnabled",null);Bj=_.X([_.iq()],Bj);_.ay=[Bj.prototype];_.I02={YtdReduxBehavior:[]};_.I02.YtdReduxBehavior.push.apply(_.I02.YtdReduxBehavior,_.LO);var ca9=function(){var q=_.y5.apply(this,arguments)||this;q._noAccessors=!0;q.disableNowPlaying=!1;q.disableTooltips=!1;q.useHoveredProperty=!1;q.hovered=!1;q.isThumbnailHovered_=!1;q.addBackground=_.b("kevlar_thumbnail_bg");q.nowPlaying=!1;q.disableRounding=!1;q.size="small";return q};
_.z(ca9,_.y5);_.e=ca9.prototype;_.e.computeThumbnailOverlaySidePanelWidth_=function(q,Z){return q-Z};
_.e.computeSize=function(q,Z){if(!this.disableRounding){if(!q&&!Z)return"small";q=Math.max(q||0,Z||0);return q>=256?"large":q>=96?"medium":"small"}};
_.e.computeFinalHoveredState_=function(q,Z,w){return this.nowPlaying?!1:_.b("kevlar_thumbnail_fluid")&&q?Z:w};
_.e.computeHoverOverlays_=function(q,Z){return q&&Z?Z:void 0};
_.e.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.e.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.e.checkMiniplayer_=function(){var q;if(((q=this.data)==null?0:q.playlistSetVideoId)&&_.b("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{q=_.qk();var Z=q.currentEndpoint;!this.disableNowPlaying&&Z&&_.J(Z,_.ck)&&this.data?(Z=_.J(Z,_.ck),this.nowPlaying=this.data.playlistId?Z.playlistId===this.data.playlistId:Z.videoId===this.data.videoId,this.isVideoPlaying=q==null?void 0:q.isVideoPlaying):this.nowPlaying=!1}};
var nO=ca9;nO.prototype.checkMiniplayer_=nO.prototype.checkMiniplayer_;nO.prototype.onMouseLeave_=nO.prototype.onMouseLeave_;nO.prototype.onMouseEnter_=nO.prototype.onMouseEnter_;nO.prototype.computeHoverOverlays_=nO.prototype.computeHoverOverlays_;nO.prototype.computeFinalHoveredState_=nO.prototype.computeFinalHoveredState_;nO.prototype.computeSize=nO.prototype.computeSize;nO.prototype.computeThumbnailOverlaySidePanelWidth_=nO.prototype.computeThumbnailOverlaySidePanelWidth_;
_.X([_.U(_.LO),_.A("design:type",Object)],nO.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],nO.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Number)],nO.prototype,"height",void 0);_.X([_.F(),_.A("design:type",Boolean)],nO.prototype,"bottomSidePanel",void 0);_.X([_.F(),_.A("design:type",Number)],nO.prototype,"width",void 0);_.X([_.F(),_.A("design:type",Object)],nO.prototype,"disableNowPlaying",void 0);
_.X([_.F({selector:_.jZ}),_.A("design:type",Boolean)],nO.prototype,"miniplayerIsActive",void 0);_.X([_.F(),_.A("design:type",Object)],nO.prototype,"disableTooltips",void 0);_.X([_.F(),_.A("design:type",Object)],nO.prototype,"useHoveredProperty",void 0);_.X([_.F(),_.A("design:type",Object)],nO.prototype,"hovered",void 0);_.X([_.F(),_.A("design:type",Object)],nO.prototype,"isThumbnailHovered_",void 0);
_.X([_.F({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.A("design:type",Boolean)],nO.prototype,"finalHoveredState_",void 0);_.X([_.F({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.A("design:type",Number)],nO.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],nO.prototype,"addBackground",void 0);
_.X([_.F({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.A("design:type",Object)],nO.prototype,"hoverOverlays_",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],nO.prototype,"nowPlaying",void 0);_.X([_.F(),_.A("design:type",Boolean)],nO.prototype,"isVideoPlaying",void 0);_.X([_.F(),_.A("design:type",Object)],nO.prototype,"disableRounding",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.A("design:type",Object)],nO.prototype,"size",void 0);_.X([_.m2("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nO.prototype,"onMouseEnter_",null);_.X([_.m2("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nO.prototype,"onMouseLeave_",null);
_.X([_.M("data","disableNowPlaying","miniplayerIsActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nO.prototype,"checkMiniplayer_",null);nO=_.X([_.iq()],nO);var MMW=[nO.prototype];_.QQ={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(q,Z){return q+":"+_.yj(Z)},
getPlayerListener_:function(q,Z,w){q=this.getPlayerListenerKey_(q,Z);Z=this.playerListeners_.get(q);w&&this.playerListeners_.delete(q);return Z},
savePlayerListener_:function(q,Z){var w=Z.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(q,Z),w);return w},
listenToPlayerEvent:function(q,Z,w){w=this.savePlayerListener_(Z,w);q.addEventListener(Z,w)},
listenToPlayerEvents:function(q,Z){Z.forEach(function(w,r){this.listenToPlayerEvent(q,r,w)}.bind(this))},
unlistenFromPlayerEvent:function(q,Z,w){w=this.getPlayerListener_(Z,w,!0);q.removeEventListener(Z,w)},
unlistenFromPlayerEvents:function(q,Z){Z.forEach(function(w,r){this.unlistenFromPlayerEvent(q,r,w)}.bind(this))}}};
_.EW=function(){};_.FzW=new _.F$("PLAYER_API_TOKEN");var co6=!1,lze,FUj=!1,pMN;var ce=function(q,Z,w,r,Y){_.u6.call(this);var C=this;this.playerId=Z;this.webPlayerContextConfig=r;this.jiE=Y;this.yyT=!1;this.api={};this.qI1=this.jY=null;this.rz1=new _.wf;this.cw={};this.vLQ=this.cHz=this.elementId=this.dSm=this.config=null;this.rdx=!1;this.bz=this.mB0=null;this.pJ0={};this.buh=["onReady"];this.lastError=null;this.pWB=NaN;this.ioH={};this.jNz=0;this.xZ=this.targetElement=q;_.$i(this,this.rz1);NPg(this);w?this.jNz=setTimeout(function(){C.loadNewVideoConfig(w)},0):r&&(l07(this),
GV7(this))};
_.z(ce,_.u6);ce.prototype.getId=function(){return this.playerId};
ce.prototype.loadNewVideoConfig=function(q){if(!this.isDisposed()){this.jNz&&(clearTimeout(this.jNz),this.jNz=0);var Z=q||{};Z instanceof ygp||(Z=new ygp(Z));this.config=Z;this.setConfig(q);GV7(this);this.isReady()&&psW(this)}};
var l07=function(q){var Z;q.webPlayerContextConfig?Z=q.webPlayerContextConfig.rootElementId:Z=q.config.attrs.id;q.elementId=Z||q.elementId;q.elementId==="video-player"&&(q.elementId=q.playerId,q.webPlayerContextConfig?q.webPlayerContextConfig.rootElementId=q.playerId:q.config.attrs.id=q.playerId);var w;((w=q.xZ)==null?void 0:w.id)===q.elementId&&(q.elementId+="-player",q.webPlayerContextConfig?q.webPlayerContextConfig.rootElementId=q.elementId:q.config.attrs.id=q.elementId)};
ce.prototype.setConfig=function(q){this.dSm=q;this.config=Xs7(q);l07(this);if(!this.cHz){var Z;this.cHz=mpD(this,((Z=this.config.args)==null?void 0:Z.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var w;if((w=this.config)==null?0:w.attrs)q=this.config.attrs,(Z=q.width)&&this.xZ&&(this.xZ.style.width=T3(Number(Z)||Z,!0)),(q=q.height)&&this.xZ&&(this.xZ.style.height=T3(Number(q)||q,!0))};
var psW=function(q){if(q.config&&q.config.loaded!==!0)if(q.config.loaded=!0,!q.config.args||q.config.args.autoplay!=="0"&&q.config.args.autoplay!==0&&q.config.args.autoplay!==!1){var Z;q.api.loadVideoByPlayerVars((Z=q.config.args)!=null?Z:null)}else q.api.cueVideoByPlayerVars(q.config.args)},f0m=function(q){var Z=!0,w=q.getPlayerElement();
w&&q.config&&(Z=w.dataset.version===Aag(q));return Z&&!!_.Eq("yt.player.Application.create")},GV7=function(q){if(!q.isDisposed()&&!q.rdx){var Z=f0m(q);
if(Z&&(q.getPlayerElement()?"html5":null)==="html5")q.vLQ="html5",q.isReady()||DpJ(q);else if(hJ9(q),q.vLQ="html5",Z&&q.bz&&q.targetElement)q.targetElement.appendChild(q.bz),DpJ(q);else{q.config&&(q.config.loaded=!0);var w=!1;q.mB0=function(){w=!0;var r=yaD(q,"player_bootstrap_method")?_.Eq("yt.player.Application.createAlternate")||_.Eq("yt.player.Application.create"):_.Eq("yt.player.Application.create");var Y=q.config?Xs7(q.config):void 0;r&&r(q.targetElement,Y,q.webPlayerContextConfig,q.jiE);DpJ(q)};
q.rdx=!0;Z?q.mB0():(_.np(Aag(q),q.mB0),(Z=ir2(q))&&oDe(Z||""),gSp(q)&&!w&&_.IR("yt.player.Application.create",null))}}};
ce.prototype.getPlayerElement=function(){var q=_.Ik(document,this.elementId);!q&&this.xZ&&this.xZ.querySelector&&(q=this.xZ.querySelector("#"+this.elementId));return q};
var DpJ=function(q){if(!q.isDisposed()){var Z=q.getPlayerElement(),w=!1;Z&&Z.getApiInterface&&Z.getApiInterface()&&(w=!0);if(w){q.rdx=!1;if(!yaD(q,"html5_remove_not_servable_check_killswitch")){var r;if((Z==null?0:Z.isNotServable)&&q.config&&(Z==null?0:Z.isNotServable((r=q.config.args)==null?void 0:r.video_id)))return}qHe(q)}else q.pWB=setTimeout(function(){DpJ(q)},50)}},qHe=function(q){NPg(q);
q.yyT=!0;var Z=q.getPlayerElement();if(Z){q.jY=ZWv(q,Z,"addEventListener");q.qI1=ZWv(q,Z,"removeEventListener");var w=Z.getApiInterface();w=w.concat(Z.getInternalApiInterface());for(var r=q.api,Y=0;Y<w.length;Y++){var C=w[Y];r[C]||(r[C]=ZWv(q,Z,C))}}for(var d in q.cw)q.cw.hasOwnProperty(d)&&q.jY&&q.jY(d,q.cw[d]);psW(q);q.cHz&&q.cHz(q.api);q.rz1.publish("onReady",q.api)},ZWv=function(q,Z,w){var r=Z[w];
return function(){var Y=_.Ta.apply(0,arguments);try{return q.lastError=null,r.apply(Z,Y)}catch(C){if(w!=="sendAbandonmentPing")throw C.params=w,q.lastError=C,Y=new _.df("PlayerProxy error in method call",{error:C,method:w,playerId:q.playerId}),Y.level="WARNING",Y;}}},NPg=function(q){q.yyT=!1;
if(q.qI1)for(var Z in q.cw)q.cw.hasOwnProperty(Z)&&q.qI1(Z,q.cw[Z]);for(var w in q.ioH)q.ioH.hasOwnProperty(w)&&clearTimeout(Number(w));q.ioH={};q.jY=null;q.qI1=null;Z=q.api;for(var r in Z)Z.hasOwnProperty(r)&&(Z[r]=null);Z.addEventListener=function(Y,C){q.addEventListener(Y,C)};
Z.removeEventListener=function(Y,C){q.removeEventListener(Y,C)};
Z.destroy=function(){q.dispose()};
Z.getLastError=function(){return q.getLastError()};
Z.getPlayerType=function(){return q.getPlayerType()};
Z.getCurrentVideoConfig=function(){return q.dSm};
Z.loadNewVideoConfig=function(Y){q.loadNewVideoConfig(Y)};
Z.isReady=function(){return q.isReady()}};
ce.prototype.isReady=function(){return this.yyT};
ce.prototype.addEventListener=function(q,Z){var w=this;this.isDisposed();var r=mpD(this,Z);r&&(_.Mj(this.buh,q)||this.cw[q]||(Z=w9D(this,q),this.jY&&this.jY(q,Z)),this.rz1.subscribe(q,r),q==="onReady"&&this.isReady()&&setTimeout(function(){r(w.api)},0))};
ce.prototype.removeEventListener=function(q,Z){this.isDisposed()||(Z=mpD(this,Z))&&this.rz1.unsubscribe(q,Z)};
var mpD=function(q,Z){var w=Z;if(typeof Z==="string"){if(q.pJ0[Z])return q.pJ0[Z];w=function(){var r=_.Ta.apply(0,arguments),Y=_.Eq(Z);if(Y)try{Y.apply(_.$1,r)}catch(C){throw r=new _.df("PlayerProxy error when executing callback",{error:C}),r.level="ERROR",r;}};
q.pJ0[Z]=w}return w?w:null},w9D=function(q,Z){var w=function(r){var Y=function(){q.isDisposed();
if(!q.isDisposed())try{q.rz1.publish(Z,r!=null?r:void 0)}catch(O){var d=new _.df("PlayerProxy error when creating global callback",{error:O.message,event:Z,playerId:q.playerId,data:r,originalStack:O.stack,componentStack:O.componentStack});d.level="WARNING";throw d;}};
if(yaD(q,"web_player_publish_events_immediately"))Y();else{var C=setTimeout(function(){Y();_.R4.remove(q.ioH,String(C))},0);
_.R4.add(q.ioH,String(C),!0)}};
return q.cw[Z]=w};
ce.prototype.getPlayerType=function(){return this.vLQ||(this.getPlayerElement()?"html5":null)};
ce.prototype.getLastError=function(){return this.lastError};
var hJ9=function(q){q.cancel();NPg(q);q.vLQ=null;q.config&&(q.config.loaded=!1);var Z=q.getPlayerElement();Z&&(f0m(q)||!gSp(q)?q.bz=Z:(Z&&Z.destroy&&Z.destroy(),q.bz=null));q.targetElement&&_.J$(q.targetElement)};
ce.prototype.cancel=function(){this.mB0&&_.I71(Aag(this),this.mB0);clearTimeout(this.pWB);this.rdx=!1};
ce.prototype.disposeInternal=function(){hJ9(this);if(this.bz&&this.config&&this.bz.destroy)try{this.bz.destroy()}catch(Z){var q=new _.df("PlayerProxy error during disposal",{error:Z});q.level="ERROR";throw q;}this.pJ0=null;for(q in this.cw)this.cw.hasOwnProperty(q)&&delete this.cw[q];this.dSm=this.config=this.api=null;delete this.targetElement;delete this.xZ;_.u6.prototype.disposeInternal.call(this)};
var gSp=function(q){var Z,w;q=(Z=q.config)==null?void 0:(w=Z.args)==null?void 0:w.fflags;return!!q&&q.indexOf("player_destroy_old_version=true")!==-1},Aag=function(q){return q.webPlayerContextConfig?q.webPlayerContextConfig.jsUrl:(q=q.config.assets)?q.js:""},ir2=function(q){return q.webPlayerContextConfig?q.webPlayerContextConfig.cssUrl:(q=q.config.assets)?q.css:""},yaD=function(q,Z){if(q.webPlayerContextConfig)var w=q.webPlayerContextConfig.serializedExperimentFlags;
else{var r;if((r=q.config)==null?0:r.args)w=q.config.args.fflags}return(w||"").split("&").includes(Z+"=true")},Xs7=function(q){for(var Z={},w=_.P(Object.keys(q)),r=w.next();!r.done;r=w.next()){r=r.value;
var Y=q[r];Z[r]=typeof Y==="object"?_.R4.clone(Y):Y}return Z};var DgT={},fzT="player_uid_"+(Math.random()*1E9>>>0);var xN=function(q,Z,w,r,Y,C){Z=Z===void 0?document.createElement("div"):Z;this.webPlayerContextConfig=q;this.container=Z;this.commandResolver=w;this.apiResolver=iiN();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Dk;r||C?rVp(this):YH7(this);this.pendingPlayerResponse=r;this.pendingWatchNextResponse=Y;this.pendingPlayerVars=C;$3X(this)};
xN.prototype.loadVideoWithPlayerResponse=function(q,Z,w){this.loadVideo(q,Z,w)};
xN.prototype.loadVideoWithPlayerVars=function(q){return this.loadVideo(void 0,void 0,q)};
xN.prototype.destroy=function(q){if(q=_.Ik(document,q))q=fzT+"_"+_.yj(q),(q=DgT[q])&&q.dispose()};
var Cup=function(q,Z){var w;_.V(function(r){if(r.nextAddress==1)return q.pendingWatchNextResponse=Z,q.synchronousApi?(w=q.synchronousApi,r.jumpTo(2)):_.W(r,q.api,3);r.nextAddress!=2&&(w=r.yieldResult);e_p(q,w);q.pendingWatchNextResponse&&(w.updateVideoData({raw_watch_next_response:q.pendingWatchNextResponse}),q.pendingWatchNextResponse=void 0);_.ub(r)})},e_p=function(q,Z){var w;
if(!(Z==null?0:(w=Z.isReady)==null?0:w.call(Z))){var r;q=new _.df("playerApi is falsey",{synchronousApi:q.synchronousApi,apiResolved:q.apiResolver.resolved,playerApiUndefined:Z===void 0,playerApiNull:Z===null,playerApiReady:(Z==null?void 0:(r=Z.isReady)==null?void 0:r.call(Z))===!0,playerApiMethods:Z?Object.keys(Z):[]});_.tY(q)}},Puh=function(q,Z){if(typeof q[Z]==="function")return q[Z]()},d3D=function(q){var Z=window,w,r=(w=Z.ytplayer)==null?void 0:w.bootstrapPlayerContainer;
if((w=r==null?void 0:r.firstElementChild)&&_.x2(w,"html5-video-player")){var Y,C,d=(Y=Z.ytplayer)==null?void 0:(C=Y.bootstrapWebPlayerContextConfig)==null?void 0:C.contextId;Y=q.webPlayerContextConfig.contextId;if(d&&d===Y){r!==q.container&&(r=!1,Puh(w,"getPlayerState")===2&&(r=!0),q.container.appendChild(w),r||Puh(w,"playVideo"));var O;if((O=Z.ytplayer)==null?0:O.bootstrapPlayerResponse)q.bootstrapPlayerResponse=Z.ytplayer.bootstrapPlayerResponse}}},$3X=function(q){var Z,w,r,Y,C;
_.V(function(d){if(d.nextAddress==1)return q.pageReadyOrDataAvailable?d.jumpTo(2):_.W(d,q.pageReadyOrDataAvailableResolver.promise,2);if(d.nextAddress!=4)return!_.b("kevlar_player_unified_player_loading")||Mn9()&&NUO()?d.jumpTo(4):_.W(d,mg9(),4);d3D(q);if(q.pendingPlayerResponse||q.pendingPlayerVars)Z=AoX(q.pendingPlayerResponse,q.pendingWatchNextResponse,q.pendingPlayerVars),q.pendingPlayerResponse&&q.pendingPlayerResponse===q.bootstrapPlayerResponse&&(Z.loaded=!0),q.bootstrapPlayerResponse=void 0;
w=yoX(q.container,Z,q.webPlayerContextConfig);((r=Z)==null?0:r.loaded)&&q.pendingWatchNextResponse?(Cup(q,q.pendingWatchNextResponse),q.pendingPlayerResponse=void 0,q.pendingPlayerVars=void 0):VN1(q);Y=function(O){w.removeEventListener("onReady",Y);q.synchronousApi=O;q.apiResolver.resolve(O)};
w.addEventListener("onReady",Y);q.commandResolver!==void 0&&(C=q.commandResolver,w.addEventListener("innertubeCommand",function(O){C(O)}));
_.ub(d)})};
xN.prototype.loadVideo=function(q,Z,w){var r=this,Y,C,d,O,H,L,S,v,R;return _.V(function(B){if(B.nextAddress==1)return r.pendingPlayerResponse=q,r.pendingWatchNextResponse=Z,r.pendingPlayerVars=w,rVp(r),r.synchronousApi?(Y=r.synchronousApi,B.jumpTo(2)):_.W(B,r.api,3);B.nextAddress!=2&&(Y=B.yieldResult);e_p(r,Y);d=new Promise(function(n){C=n});
O=function(){var n=Y.getPlayerResponse();n&&(Y.removeEventListener("onVideoDataChange",O),C(n))};
Y.addEventListener("onVideoDataChange",O);if(r.pendingPlayerResponse||r.pendingPlayerVars)r.pendingPlayerResponse&&r.pendingPlayerResponse===r.bootstrapPlayerResponse?(C(r.pendingPlayerResponse),r.pendingWatchNextResponse&&Cup(r,r.pendingWatchNextResponse)):(H=AoX(r.pendingPlayerResponse,r.pendingWatchNextResponse,r.pendingPlayerVars),(R=(L=r.pendingPlayerResponse)==null?void 0:(S=L.playerConfig)==null?void 0:(v=S.playbackStartConfig)==null?void 0:v.startPaused)?Y.cueVideoByPlayerVars(H.args):Y.loadVideoByPlayerVars(H.args)),
VN1(r),r.bootstrapPlayerResponse=void 0;return B.return(d)})};
var YH7=function(q){if(document.readyState==="complete"||document.readyState==="interactive")rVp(q);else{var Z=function(){document.removeEventListener("DOMContentLoaded",Z);rVp(q)};
document.addEventListener("DOMContentLoaded",Z)}},rVp=function(q){q.pageReadyOrDataAvailable=!0;
q.pageReadyOrDataAvailableResolver.resolve()},VN1=function(q){q.pendingPlayerResponse=void 0;
q.pendingWatchNextResponse=void 0;q.pendingPlayerVars=void 0};
_.My.Object.defineProperties(xN.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var Ti=function(q){vB.call(this,q===void 0?"document_active":q);var Z=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(w){Z.transition("document_disposed",{event:w})});
window.addEventListener("beforeunload",function(w){Z.transition("document_disposed_preventable",{event:w})});
window.addEventListener("unload",function(w){Z.transition("document_disposed",{event:w});Z.hasRun=new Map})};
_.z(Ti,vB);
Ti.prototype.runPreventableDispose=function(q,Z){if(!this.hasRun.get("document_disposed_preventable")){q(Z==null?void 0:Z.event);var w,r;if((Z==null?0:(w=Z.event)==null?0:w.defaultPrevented)||(Z==null?0:(r=Z.event)==null?0:r.returnValue)){Z.event.returnValue||(Z.event.returnValue=!0);Z.event.defaultPrevented||Z.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")};
Ti.prototype.runDispose=function(q,Z){this.hasRun.get("document_disposed")?this.transition("document_active"):(q(Z==null?void 0:Z.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
Ti.prototype.runFlush=function(q,Z){q(Z==null?void 0:Z.event);this.transition("document_active")};
Ti.prototype.runActive=function(){};var UW=function(q){vB.call(this,q===void 0?"document_visibility_unknown":q);var Z=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(w){document.visibilityState==="visible"?Z.transition("document_visible",{event:w}):Z.transition("document_hidden",
{event:w})});
_.b("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(w){Z.transition("document_backgrounded",{event:w})}),window.addEventListener("focus",function(w){Z.transition("document_foregrounded",{event:w})}))};
_.z(UW,vB);UW.prototype.runVisible=function(q,Z){q(Z==null?void 0:Z.event);_.b("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
UW.prototype.runHidden=function(q,Z){q(Z==null?void 0:Z.event);_.b("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
UW.prototype.runBackgrounded=function(q,Z){q(Z==null?void 0:Z.event)};
UW.prototype.runForegrounded=function(q,Z){q(Z==null?void 0:Z.event)};var kN=function(){this.teardownLifecycle=new Ti;this.visibilityLifecycle=new UW};
kN.prototype.install=function(){var q=_.Ta.apply(0,arguments),Z=this;q.forEach(function(w){Z.teardownLifecycle.install(w)});
q.forEach(function(w){Z.visibilityLifecycle.install(w)})};var KO=function(){kN.call(this);var q={};this.install((q.document_disposed={callback:this.abortSlisAndFlush},q));_.b("combine_ve_grafts")&&(q={},this.install((q.document_disposed={callback:this.flushInteractionLoggingAttachVes},q)));q={};this.install((q.flush_logs={callback:this.logFinalPayload},q));_.b("web_log_cfg_cee_ks")||_.WO(_.v5,OW9)};
_.z(KO,kN);var gf6=function(){KO.loggingInstance||(KO.loggingInstance=new KO);return KO.loggingInstance};
KO.prototype.logFinalPayload=function(){if(_.b("web_fp_via_jspb")){var q=new m$v,Z=_.b5();Z&&_.uM(q,1,Z);Z=_.b("jspb_sparse_encoded_pivot")?new HO([{}]):new HO;_.dr(Z,380,Ay1,q);K7j("finalPayload",Z);_.b("web_fp_via_jspb_and_json")&&_.vO("finalPayload",{csn:_.b5()})}else _.vO("finalPayload",{csn:_.b5()})};
KO.prototype.abortSlisAndFlush=function(){Kag(ax);nH!=null&&nH.flush()};
KO.prototype.flushInteractionLoggingAttachVes=function(){ZLW(_.iy())};
var OW9=function(){var q=_.zj("CLIENT_EXPERIMENT_EVENTS");if(q){var Z=Dj1();q=_.P(q);for(var w=q.next();!w.done;w=q.next())w=w.value,Z(w)&&_.vO("genericClientExperimentEvent",{eventType:w});delete _.Rz.CLIENT_EXPERIMENT_EVENTS}};var HW9={};
HW9.YtPlayerBehavior=[_.QQ.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 q=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Dk;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;qo1(function(){q.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.R_(this,"pan-down"),_.b("kevlar_pinch_fullscreen")&&_.hD().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.b("kevlar_pinch_fullscreen")&&_.hD().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(q,Z,w){var r=this;M0(this.useUnifiedPlayer_());if(this.mainAppPlayer_)M0(!1,"MainAppPlayer already created.");else{var Y=_.b("kevlar_player_container_query_killswitch")?this.$.container:_.E(this.hostElement).querySelector("#container");this.mainAppPlayer_=new xN(this.getWebPlayerContextConfig_(),Y,function(C){return _.f5(C,r.hostElement)},q,Z,w);
this.mainAppPlayer_.api.then(function(C){r.player_=C;r.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&gd9.resolve(C)})}},
loadVideoWithPlayerResponse:function(q,Z){var w=this;if(this.useUnifiedPlayer_()){var r=this.watchNextData,Y,C=(Y=q.videoDetails)==null?void 0:Y.videoId,d,O,H;(Y=(d=this.watchNextData)==null?void 0:(O=d.currentVideoEndpoint)==null?void 0:(H=O.watchEndpoint)==null?void 0:H.videoId)&&C!=Y&&(r=void 0,_.b("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(q,r,Z):this.createMainAppPlayer_(q,r,Z);this.mainAppPlayer_.api.then(function(){_.hy(w.hostElement,
"yt-player-updated")})}else this.update(KUT(q,Z))},
loadVideoWithPlayerVars:function(q){var Z=this;this.useUnifiedPlayer_()?(_.b("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(q):this.createMainAppPlayer_(void 0,void 0,q),this.mainAppPlayer_.api.then(function(){_.hy(Z.hostElement,"yt-player-updated")})):this.update({args:q})},
update:function(q){var Z=this;if(this.useUnifiedPlayer_())M0(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(q);var w=DLe(q.args);w&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==w&&Object.assign(q.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(q).then(function(r){_.hy(Z.hostElement,"yt-player-updated",_.b("kevlar_player_updated_obsolete_player_killswitch")?
r:void 0)})}_.Rw(new _.df("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(q){var Z=this,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,Z.getPlayerPromise(),2);w=r.yieldResult;if(!w)throw Error("vh");q&&Z.updatePlayerPlaylist_(q);_.ub(r)})},
acquireApi_:function(q){var Z=this;if(this.useUnifiedPlayer_())M0(!1,"Invalid method call in kevlar_unified_player.");else return _.v5.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(M0(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(w){Z.shouldAutoplay_(q)?w.loadVideoByPlayerVars(q.args):w.cueVideoByPlayerVars(q.args)})):this.initPlayerPromise_=this.initPlayerContainer_(q),this.initPlayerPromise_},
initPlayerContainer_:function(q){var Z=this;if(this.useUnifiedPlayer_())M0(!1,"Invalid method call in kevlar_unified_player.");else return M0(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.bx(Error("wh")),M0(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.b("kevlar_player_container_query_killswitch")?this.$.container:_.E(this.hostElement).querySelector("#container"),mg9().then(function(){var w=Z.initPlayer_(q);Z.playerResolver_.resolve(w);
return w})},
onPlayerReady_:function(q,Z){this.useUnifiedPlayer_()?M0(!1,"Invalid method call in kevlar_unified_player."):(q.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&gd9.resolve(q),Z(q))},
maybeCallApiMethodOnElement_:function(q,Z){if(typeof q[Z]==="function")return q[Z]()},
maybeAdoptBootstrapPlayer_:function(){var q=window,Z,w=(Z=q.ytplayer)==null?void 0:Z.bootstrapPlayerContainer;if((Z=w==null?void 0:w.firstElementChild)&&Z.classList.contains("html5-video-player")){var r,Y,C=(r=q.ytplayer)==null?void 0:(Y=r.bootstrapWebPlayerContextConfig)==null?void 0:Y.contextId;r=this.getWebPlayerContextConfig_().contextId;if(C&&C===r){w!==this.playerContainer_&&(w=!1,this.maybeCallApiMethodOnElement_(Z,"getPlayerState")===2&&(w=!0),this.playerContainer_.appendChild(Z),w||this.maybeCallApiMethodOnElement_(Z,
"playVideo"));var d;if((d=q.ytplayer)==null?0:d.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=q.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(q){var Z=this;if(this.useUnifiedPlayer_())M0(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(w){Z.maybeAdoptBootstrapPlayer_();var r=q?sv1(q):void 0;r&&r==Z.bootstrapPlayerResponse_&&(q.loaded=!0);r=Z.playerContainer_;var Y=Z.getWebPlayerContextConfig_();r=yoX(r,q,Y);Z.player_=r;Z.onPlayerReadyEvent_=Z.onPlayerReady_.bind(Z,Z.player_,w);Z.player_.addEventListener("onReady",Z.onPlayerReadyEvent_);Z.player_.addEventListener("innertubeCommand",
Z.onPlayerInnerTubeCommand_.bind(Z))})},
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(q){q.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(q){q.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var q=_.t().resolve(_.U1).getCurrentPage();q&&q.getScrollTop()<=0?_.R_(this,"pan-down"):_.R_(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(q){q.isFullscreen()||q.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(q){q.isFullscreen()&&q.toggleFullscreen()})},
updatePlayerPlaylist_:function(q){var Z=this,w,r,Y;return _.V(function(C){if(C.nextAddress==1)return w=_.t().resolve(_.Gj(_.b8)),r=!!(w&&w.playlistComponent&&w.playlistComponent.loopOn),_.W(C,Z.getPlayerPromise(),2);var d=Y=C.yieldResult,O=d.updatePlaylist,H=[];if(_.b("kevlar_player_playlist_use_local_index")){var L,S;var v=(S=(L=q.localCurrentIndex)!=null?L:q.currentIndex)!=null?S:0}else{var R;v=(R=q.currentIndex)!=null?R:0}if(q.contents)for(L=0;L<q.contents.length;L++)if((S=q.contents[L])&&S.playlistPanelVideoRenderer)if(CP2(S)){S=
S.playlistPanelVideoRenderer;R="";S.shortBylineText&&(R=_.kO(S.shortBylineText));var B="";S.title?B=_.kO(S.title):S.unplayableText&&(B=_.kO(S.unplayableText));H.push({author:R,title:B,encrypted_id:S.videoId})}else L<v&&--v;O.call(d,{index:v,list:q.playlistId?q.playlistId:"",loop:r,playlist_title:q.title,playlist_length:H.length,video:H,fetch:0,external_list:"1",title:q.title?q.title:"",playlist_author:q.ownerName?_.kO(q.ownerName):void 0});_.ub(C)})},
focusOnPlayer:function(){_.I_(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var q=this.playerContainer_.querySelector(".html5-video-player");q&&(_.Wk9(_.t().resolve(_.d6)),q.focus())}})},
preparePlayer:function(){var q=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(Z){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")Z();else{var w=function(){document.removeEventListener("DOMContentLoaded",w);Z()};
document.addEventListener("DOMContentLoaded",w)}})).then(function(){return mg9()}).then(function(){q.initPlayerPromise_||q.preparePlayerJobId_||(q.preparePlayerJobId_=_.WO(_.v5,function(){q.initPlayerPromise_||(q.initPlayerPromise_=q.initPlayerContainer_())}))}):_.Rw(new _.df("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(q){this.useUnifiedPlayer_()?M0(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(q)||(q.args.autoplay="0")},
shouldAutoplay_:function(q){if(this.useUnifiedPlayer_())M0(!1,"Invalid method call in kevlar_unified_player.");else{var Z=this.get("args.el",q);return Z&&Z!="detailpage"&&this.isMiniplayerActive_()||Z&&(Z=="sponsorshipsoffer"||Z=="handlesclaiming")&&this.get("args.autoplay",q)=="0"?!1:(q=sv1(q))&&this.get("playerConfig.playbackStartConfig.startPaused",q)?!1:!0}},
isMiniplayerActive_:function(){return _.t().resolve(_.Tf).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var q=this.getPlayer();if(q){var Z=q.getPlayerState();_.b("kevlar_player_check_ad_state_on_stop")&&(Z=q.getPlayerState(q.getPresentingPlayerType()));Z!=5&&q.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(q,Z,w){w=w===void 0?!1:w;var r=this,Y,C,d,O;return _.V(function(H){if(H.nextAddress==1)return Z||(Z=r.hostElement),Y=r.useUnifiedPlayer_()?!!r.mainAppPlayer_:!!r.initPlayerPromise_,Y?_.W(H,r.getPlayerPromise(),2):(w?q.insertBefore(Z,q.firstChild):q.appendChild(Z),H.return());C=H.yieldResult;d=C.getPlayerState(C.getPresentingPlayerType());O=!1;if(d==-1||d==1||d==3)O=!0;w?q.insertBefore(Z,q.firstChild):q.appendChild(Z);O&&C.playVideo();C.setSize(NaN,NaN);_.ub(H)})},
watchNextDataChanged_:function(q){var Z=this;q&&(this.useUnifiedPlayer_()&&_.b("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&Cup(this.mainAppPlayer_,q):this.getPlayerPromise().then(function(w){w.updateVideoData(Z.computeWatchNextPlayerVars_(q))}))},
computeWatchNextPlayerVars_:function(q){if(this.useUnifiedPlayer_()&&_.b("kevlar_unified_player_update_watch_next_killswitch"))M0(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:q}},
maybeSendAbandonmentPing_:function(){var q=this.getPlayer();q&&q.getPlayerState()!=5&&q.getPlayerState()!=0&&q.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var q=_.zj("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(q=Object.assign({},q),q.rootElementId=this.playerId);q.serializedExperimentIds&&q.serializedExperimentFlags||_.bx(Error("xh"));return q},
hasWebPlayerContextConfig_:function(){return!!_.zj("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(q){this.useUnifiedPlayer_()?M0(!1,"Invalid method call in kevlar_unified_player."):_.f5(q,this.hostElement)},
useUnifiedPlayer_:function(){var q=_.b("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.b("kevlar_unified_player")||q}}];var oy7={};oy7.YtPlaylistPanelBehavior=[_.y.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(q){q=q.detail;if(q.actions.loop!=void 0||q.actions["yt-icons:loop"]!=void 0)this.loopOn=q.actions.loop||q.actions["yt-icons:loop"];if(q.actions.shuffle!=void 0||q.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=q.actions.shuffle||q.actions["yt-icons:shuffle"]},
setMenuData_:function(q){if(!q||!q.playlistButtons||q.isInfinite)return null;for(var Z=q.playlistButtons.menuRenderer.topLevelButtons,w=Z.length,r=0;r<w;r++)if(Z[r].toggleButtonRenderer){var Y=Z[r].toggleButtonRenderer;Y.defaultIcon.iconType=="LOOP"&&this.loopOn?Y.isToggled=this.loopOn:Y.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(Y.isToggled=this.shuffleOn)}return q.playlistButtons}}];var uo1=function(q){fy.call(this,q,132);this.isDocument=q===document.documentElement};
_.z(uo1,fy);uo1.prototype.calculateScrollDelta=function(q,Z,w){var r=0;q<Z?r=q<Z-100?-48:-8:q>Z+w&&(r=q>Z+w+100?48:8);return r};
uo1.prototype.JSC$9157_onMouseMove=function(q){this.isDocument||(q.clientX=q.event_.pageX,q.clientY=q.event_.pageY);fy.prototype.JSC$9157_onMouseMove.call(this,q)};var sW=function(){var q=_.y5.apply(this,arguments)||this;q._noAccessors=!0;q.scrollElement=document.documentElement;q.JSC$12089_dragListGroup=null;q.dragScrollSupport=null;q.onDraggerCreated=function(Z){var w=Z.JSC$9153_dragger;w.scrollTarget_=q.scrollElement;Z=Z.draggerEl;w&&Z.menuOpened&&w.setEnabled(!1)};
q.onDragStart=function(Z){var w=Z.draggerEl;Z=Z.currDragItem;var r=Object.assign({},Z==null?void 0:Z.data);r.trackingParams=void 0;w.data=r;w.style.position="absolute";w.style.width=(Z==null?void 0:Z.clientWidth)+"px";w.style.zIndex="2030";w.onDrag&&w.onDrag();_.b("web_owner_document_fallback_killswitch")?(Z=document.querySelector("ytd-app"))&&_.E(Z).appendChild(w):(Z=_.nC(w),(r=Z.querySelector("ytd-app"))?_.E(r).appendChild(w):Z.body.appendChild(w));q.dragScrollSupport=new uo1(q.scrollElement);q.dragScrollSupport.horizontalScrolling_=
!1;w=q.dragScrollSupport;w.constrainScroll_=!!w.margin_&&!1};
q.onDrop=function(Z){q.handleDrop(Z);q.dragScrollSupport&&(_.Xg(q.dragScrollSupport),q.dragScrollSupport=null)};
q.onReorderableScroll=function(){if(q.JSC$12089_dragListGroup){var Z=q.JSC$12089_dragListGroup;MH1(Z,Z.currDragItem_)}};
return q};
_.z(sW,_.y5);sW.prototype.detached=function(){_.Lkh(this)};
_.Lkh=function(q){q.JSC$12089_dragListGroup&&(_.d_(q.JSC$12089_dragListGroup,ElK,q.onDragStart),_.d_(q.JSC$12089_dragListGroup,kp7,q.onDragStart),q.JSC$12089_dragListGroup.dispose(),q.JSC$12089_dragListGroup=null);q.dragScrollSupport&&(_.Xg(q.dragScrollSupport),q.dragScrollSupport=null);q.scrollElement.removeEventListener("scroll",q.onReorderableScroll)};
_.SH7=function(q,Z,w,r){r=r===void 0?"":r;_.Lkh(q);w&&(q.scrollElement=w);q.JSC$12089_dragListGroup=new BR;q.JSC$12089_dragListGroup.hysteresisDistance_=2;sAe(q.JSC$12089_dragListGroup,Z);q.JSC$12089_dragListGroup.draggerElClasses_=_.ii("dragging").split(" ");r&&INv(q.JSC$12089_dragListGroup,function(Y){var C=Y||document,d=null;C.getElementsByClassName?d=C.getElementsByClassName(r)[0]:d=$Kg("*",r,Y);return d||Y});
_.Yc(q.JSC$12089_dragListGroup,nle,q.onDraggerCreated);_.Yc(q.JSC$12089_dragListGroup,ElK,q.onDragStart);_.Yc(q.JSC$12089_dragListGroup,kp7,q.onDrop);q.JSC$12089_dragListGroup.init();q.scrollElement.addEventListener("scroll",q.onReorderableScroll,{passive:!0})};
sW.prototype.handleDrop=function(){};
_.My.Object.defineProperties(sW.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
var vym=sW;_.X([_.F({value:100}),_.A("design:type",Number)],vym.prototype,"scrollMargin",void 0);vym=_.X([_.iq()],vym);_.jID=[vym.prototype];_.Iy={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(q,Z,w){var r=this.getClickTarget_(Z);if(r&&this.isClickAllowed_(r)){Z.preventDefault();q=(0,_.R4.unsafeClone)(q);var Y=this.getContainerBoundingRect();Z=this.getRelativeClickXy_(Z,Y);this.expandEndpointUrlMacros_(q,{NX:Z[0],NY:Z[1],NB:r.code});w&&this.truncateWebCommendMetadataUrl_(q);_.hy(this.hostElement,"yt-navigate",{endpoint:q})}},
getClickTarget_:function(q){if(!this.clickTargetMap)return null;q=_.E8(q)||[];q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next()){Z=Z.value;if(Z===_.E(this.hostElement).querySelector("#menu"))break;if(Z=this.clickTargetMap.get(Z.id))return Z}return null},
getRelativeClickXy_:function(q,Z){var w=q.detail.x,r=q.detail.y;_.b("use_on_click_for_desktop_display_ad")&&q.clientX!=null&&q.clientY!=null&&(w=q.clientX,r=q.clientY);q=Math.round(w-Z.left);Z=Math.round(r-Z.top);return q<0||Z<0?[null,null]:[q,Z]},
getContainerBoundingRect:function(){return _.E(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(q,Z){for(var w=_.P(q.loggingUrls||[]),r=w.next();!r.done;r=w.next())r=r.value,r.baseUrl&&(r.baseUrl=Ft9(r.baseUrl,Z));q.urlEndpoint&&q.urlEndpoint.url&&(q.urlEndpoint.url=Ft9(q.urlEndpoint.url,Z));q.commandMetadata&&q.commandMetadata.webCommandMetadata&&q.commandMetadata.webCommandMetadata.url&&(q.commandMetadata.webCommandMetadata.url=Ft9(q.commandMetadata.webCommandMetadata.url,Z))},
truncateWebCommendMetadataUrl_:function(q){if(q.commandMetadata&&q.commandMetadata.webCommandMetadata&&q.commandMetadata.webCommandMetadata.url){var Z=q.commandMetadata.webCommandMetadata.url,w=Z.indexOf("&pp=");if(w>0){var r=Z.indexOf("&",w+1);q.commandMetadata.webCommandMetadata.url=r>w&&r<Z.length?Z.slice(0,w)+Z.slice(r):Z.slice(0,w)}}},
configureClickTargets:function(q,Z,w){this.containerId=q;this.clickTargetMap=new Map;q=_.P(Z);for(Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,Z.location){var r=w.get(Z.location);r&&(_.NZ(_.E(this.hostElement).querySelector("#"+r),"yt-simple-endpoint",this.isClickAllowed_(Z)),this.clickTargetMap.set(r,Z))}},
isClickAllowed_:function(q){return q.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||q.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||q.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||q.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.cj={};
_.cj.YtLazyListBehavior=[_.EY.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 q=(this.constructor.generatedFrom||this).observers;q||(q=[]);q.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
q}},
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 q=this.renderElementsOutsideVisibleArea_;q&&(S0p(q,4),q.processSignal())},
deepLazyListObserver_:function(q){var Z=this;if(q){var w=q.value||[];if(this.itemsPath==q.path){var r=this.nonDeferredItemCount;q=0;r>-1&&w.length>r&&(q=_.zj("REMAINING_DOVA_DEFERRED_CHUNKS",-1));q>0?(r>0&&(r=w.slice(0,r),this.setInitialItemsOnDataChanged(r)),(r=this.renderElementsOutsideVisibleArea_)?r.cancel():(r=this.renderElementsOutsideVisibleArea_=new _.TG(2,"eocs"),_.cEz(window,"scroll",function(){return Z.renderDeferredElements()})),_.UY(r,function(){Z.setInitialItemsOnDataChanged(w)}),_.bO("REMAINING_DOVA_DEFERRED_CHUNKS",
q-1)):this.setInitialItemsOnDataChanged(w)}else if(this.itemsPath+".splices"==q.path)this.onItemsUpdated_(w);
else r="shownItems"+q.path.substr(this.itemsPath.length),this.useSignals&&r==="shownItems.length"||this.notifyPath(r,q.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(q){q&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(q),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(q){q=q.indexSplices;for(var Z=0,w=q.length;Z<w;Z++){var r=q[Z];if(r.index<this.shownCount&&(r.removed&&this.splice("shownItems",r.index,r.removed.length),r.addedCount)){var Y=r.object.slice(r.index,r.index+r.addedCount);r=["shownItems",r.index,0];r.push.apply(r,Y);this.splice.apply(this,r)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(q){this.cancelPendingTasks_();q||(q=[]);this.items_=q;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&&(_.BF("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.I_(this,this.tryRenderChunk_)))},
fillRange_:function(q,Z){this.canShowMore&&this.items_&&(q=this.items_.slice(q,Z),q.unshift("shownItems"),this.push.apply(this,q),this.shownCount=Z,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var q=this;this.canShowMore&&_.vp(this,"renderChunk",function(){q.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.BF("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.$L(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var q=this.renderElementsOutsideVisibleArea_;q&&(q.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var q=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(q-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=q;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(q){return Math.ceil(1E3/q)},
onCanShowMoreUpdated_:function(q){this.data&&this.items_!==null&&(q?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(q){!this.shouldUseTaskManager()&&this.data&&(!q&&this.canShowMore?(_.JnI(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):q&&this.partiallyRenderedItems_.has(this.items_)&&(_.b("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var Nt;_.Mt={};
Nt=function(){var q=_.y5.apply(this,arguments)||this;q.atStart=!0;q.atEnd=!0;q.startIndex=0;q.endIndex=0;q.scrollCount=0;q.initialStartIndex=0;q.disableScrollEventListener=!1;q.useFloorScrolling=!1;q.isSearch=!1;q.dragging=!1;q.dragMouseStart=0;q.dragOffsetStart=0;q.disableWheelScroll=!1;q.centerListItems=!1;q.offset=0;q.minComponentWidth=0;q.marginWidthRight=0;q.marginWidthLeft=0;q.setButtonsStateRequested=!1;q.itemsVisibilityObserver=null;q.fullyVisibleItemsIndices=[];q.JSC$12100_onWheelScroll=function(Z){if(q.isSearch&&
!q.disableWheelScroll&&_.b("desktop_enable_dmpanel_wheel_scroll")){var w=Z.shiftKey?Math.abs(Z.deltaY)>Math.abs(Z.deltaX)?Z.deltaY:Z.deltaX:Z.deltaX;w!==0&&(Z.preventDefault(),q.ytLazyListBehavior.fillRemainingListItems(),q.offset+=w,FY(q),q.reposition_())}};
q.onPointerDown=function(Z){tND(q)&&(q.dragMouseStart=Z.clientX,q.dragOffsetStart=q.offset,q.dragging=!0)};
q.onPointerMove=function(Z){tND(q)&&q.dragging&&(q.ytLazyListBehavior.fillRemainingListItems(),q.offset=q.dragOffsetStart-(Z.clientX-q.dragMouseStart),FY(q),q.reposition_())};
q.onPointerUp=function(){tND(q)&&(q.dragging=!1)};
return q};
_.z(Nt,_.y5);var R_m=function(q){var Z=_.E(q.hostElement).querySelector("#items").children;if(!Z)return 0;var w=0;q=_.P(q.fullyVisibleItemsIndices);for(var r=q.next();!r.done;r=q.next())w+=Z[r.value].clientWidth;return w},tND=function(q){return q.isSearch&&_.b("desktop_enable_dmpanel_click_drag_scroll")};
Nt.prototype.created=function(){this.cachedViewportWidth=_.zj("initialInnerWidth")||window.innerWidth;this.JSC$12100_cachedViewportHeight=_.zj("initialInnerHeight")||window.innerHeight;_.zj("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.bO("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
Nt.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.b("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();bW1(this)};
Nt.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.b("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var q;(q=this.itemsVisibilityObserver)==null||q.disconnect();this.itemsVisibilityObserver=null;var Z;(Z=this.itemsObserver)==null||Z.disconnect()};
var bW1=function(q){var Z=_.E(q.hostElement).querySelector("#scroll-container");if(Z){if(!q.itemsVisibilityObserver){var w=window.getComputedStyle(Z).marginRight;q.itemsVisibilityObserver=new IntersectionObserver(function(r){JVp(q,r)},{root:Z,
rootMargin:w,threshold:.98})}if(Z=_.E(q.hostElement).querySelector("#items"))q.itemsObserver=new uNJ(Z,function(r){z_9(q,r)})}},z_9=function(q,Z){BuD(q)&&(Array.from(Z.addedNodes).filter(function(w){return w.nodeType===Node.ELEMENT_NODE}).forEach(function(w){q.itemsVisibilityObserver&&q.itemsVisibilityObserver.observe(w)}),Array.from(Z.removedNodes).filter(function(w){return w.nodeType===Node.ELEMENT_NODE}).forEach(function(w){q.itemsVisibilityObserver&&q.itemsVisibilityObserver.unobserve(w)}))},
JVp=function(q,Z){var w=new Set(q.fullyVisibleItemsIndices);
Z=_.P(Z);for(var r=Z.next();!r.done;r=Z.next()){r=r.value;var Y=r.target.parentElement;Y?(Y=Array.from(Y.children).indexOf(r.target),r.isIntersecting?w.add(Y):w.has(Y)&&w.delete(Y)):_.bx(new _.df("Parent element not found",r.target.nodeName))}q.fullyVisibleItemsIndices=Array.from(w).sort(function(C,d){return C-d});
w.size===0?_.bx(new _.df("No visible entries in horizontal list")):(q.startIndex=q.fullyVisibleItemsIndices[0],q.endIndex=q.fullyVisibleItemsIndices[q.fullyVisibleItemsIndices.length-1])},BuD=function(q){q.data?q=(q=q.data)&&q.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===q.itemSizeConstraint:!1:q=!1;
return q};
_.e=Nt.prototype;_.e.addScrollEventListeners=function(){var q=_.E(this.hostElement).querySelector("#scroll-container");q.style.touchAction="pan-y";q.addEventListener("wheel",this.JSC$12100_onWheelScroll);q.addEventListener("pointerdown",this.onPointerDown);q.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.e.removeScrollEventListeners=function(){var q=_.E(this.hostElement).querySelector("#scroll-container");q.removeEventListener("wheel",this.JSC$12100_onWheelScroll);q.removeEventListener("pointerdown",this.onPointerDown);q.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.e.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.I_(this,this.setStartIndex,[this.initialStartIndex])};
_.e.reposition_=function(){var q=_.zj("HTML_DIR")=="rtl"?"":"-",Z=_.E(this.hostElement).querySelector("#items");Z&&(Z.style.transform="translateX("+q+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.e.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.I_(this,this.setButtonsState_))};
_.e.setButtonsState_=function(){this.setButtonsStateRequested=!1;var q=_.E(this.hostElement).querySelector("#items").firstElementChild;if(q){this.minComponentWidth||(this.minComponentWidth=ay1(this,q));q=_.E(this.hostElement).querySelector("#scroll-container").clientWidth;var Z=_.E(this.hostElement).querySelector("#items").clientWidth,w=this.get(this.ytLazyListBehavior.itemsPath,this);if(w){var r=Math.round(q/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+r,w.length)-1)}this.ytLazyListBehavior.canShowMore?Z+this.minComponentWidth>=this.offset+q&&(this.atEnd=!1):this.atEnd=this.offset+q>=Z-20?!0:!1;this.atStart=this.offset<=20}};
_.e.setStartIndex=function(q){if(!this.minComponentWidth){var Z=_.E(this.hostElement).querySelector("#items").firstElementChild;if(!Z)return;this.minComponentWidth=ay1(this,Z)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*q;FY(this);this.reposition_()};
_.e.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.g2();var q=_.E(this.hostElement).querySelector("#scroll-container").clientWidth;_.b("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=ay1(this,_.E(this.hostElement).querySelector("#items").firstElementChild));q=this.useFloorScrolling?Math.floor(q/this.minComponentWidth)||1:Math.round(q/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&nyp(this);this.offset+=BuD(this)?
R_m(this):q*this.minComponentWidth;FY(this);this.reposition_();this.scrollCount++};
_.e.prevClick_=function(){var q=_.E(this.hostElement).querySelector("#scroll-container").clientWidth;q=this.useFloorScrolling?Math.floor(q/this.minComponentWidth)||1:Math.round(q/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=BuD(this)?R_m(this):this.minComponentWidth*this.scrollCount-1):this.offset-=BuD(this)?R_m(this):q*this.minComponentWidth;this.centerListItems&&nyp(this);FY(this);this.reposition_()};
_.e.onIronResize_=function(){this.resizeSupportEnabled&&_.I_(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.e.onItemsTransitionEnd_=function(q){_.xz(q)===_.E(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.e.onChildElementFocus_=function(q){q=q.target.closest("#items > *");var Z=_.E(this.hostElement).querySelector("#scroll-container");if(Z.contains(q)){if(_.b("web_horizontal_list_behavior_focus_killswitch"))if(q.offsetLeft<this.offset)this.offset=Math.abs(q.offsetLeft)<q.clientWidth?0:q.offsetLeft;else if(q.offsetLeft+q.clientWidth>this.offset+Z.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.g2(),this.offset=q.offsetLeft+q.clientWidth-Z.clientWidth;else return;else{var w=_.E(this.hostElement).querySelector("#items"),
r=_.zj("HTML_DIR")==="rtl",Y=r?w.clientWidth-q.offsetLeft:q.offsetLeft;w=r?w.clientWidth-(q.offsetLeft+q.clientWidth):q.offsetLeft+q.clientWidth;var C=r?Y>this.offset+Z.clientWidth:Y<this.offset,d=r?w<this.offset:w>this.offset+Z.clientWidth,O=r?C:d;if(r?d:C)Z=r?w:Y,this.offset=Math.abs(Z)<q.clientWidth?0:Z;else if(O)this.ytLazyListBehavior.fillRemainingListItems(),_.g2(),this.offset=(r?Y:w)-Z.clientWidth;else return}FY(this);this.reposition_()}};
_.e.observeShownItems_=function(){this.reset()};
_.e.checkComponentWidthResize=function(){var q=_.E(this.hostElement).querySelector("#items").firstElementChild;q&&(q=ay1(this,q),this.centerListItems||q!==this.minComponentWidth)&&(this.minComponentWidth=q,this.offset=q*this.scrollCount,this.centerListItems&&nyp(this),FY(this),this.reposition_())};
var ay1=function(q,Z){var w=window.getComputedStyle(Z).marginRight;w=Math.floor(Number(w.replace("px","")));var r=window.getComputedStyle(Z).marginLeft;r=Math.floor(Number(r.replace("px","")));q.centerListItems&&!q.marginWidthRight&&(q.marginWidthRight=w,q.marginWidthLeft=r);return q.resizeSupportEnabled?Z.getBoundingClientRect().width+w:Z.offsetWidth+w},FY=function(q){var Z=_.E(q.hostElement).querySelector("#scroll-container").clientWidth,w=_.E(q.hostElement).querySelector("#items").clientWidth;
q.offset<0?q.offset=0:q.offset+Z>=w&&(q.offset=w-Z)},nyp=function(q){q.offset-=(_.E(q.hostElement).querySelector("#scroll-container").clientWidth+q.marginWidthRight-q.minComponentWidth)/2-q.marginWidthLeft};
_.My.Object.defineProperties(Nt.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var q=_.zj("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(q==-1)q=this.JSC$12100_cachedViewportHeight,q=q>1320?5:q>1020?4:q>730?3:q>430?2:1;else if(q==0)return 0;_.bO("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",q-1);q=_.zj("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(q>-1)return q;q=this.cachedViewportWidth;q=q>1600?6:q>1400?5:q>1300?4:q>1090?5:q>870?4:q>660?3:2;_.bO("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
q);return q},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.b("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
var lc=Nt;lc.prototype.observeShownItems_=lc.prototype.observeShownItems_;lc.prototype.onChildElementFocus_=lc.prototype.onChildElementFocus_;lc.prototype.onItemsTransitionEnd_=lc.prototype.onItemsTransitionEnd_;lc.prototype.onIronResize_=lc.prototype.onIronResize_;lc.prototype.prevClick_=lc.prototype.prevClick_;lc.prototype.nextClick_=lc.prototype.nextClick_;lc.prototype.setButtonsState_=lc.prototype.setButtonsState_;lc.prototype.requestButtonsStateUpdate_=lc.prototype.requestButtonsStateUpdate_;
lc.prototype.reposition_=lc.prototype.reposition_;lc.prototype.reset=lc.prototype.reset;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],lc.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.cj.YtLazyListBehavior),_.A("design:type",Object)],lc.prototype,"ytLazyListBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],lc.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],lc.prototype,"atStart",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],lc.prototype,"atEnd",void 0);_.X([_.F(),_.A("design:type",Object)],lc.prototype,"startIndex",void 0);_.X([_.F(),_.A("design:type",Object)],lc.prototype,"endIndex",void 0);_.X([_.F({value:6}),_.A("design:type",Number)],lc.prototype,"initialCount",void 0);_.X([_.F(),_.A("design:type",Object)],lc.prototype,"scrollCount",void 0);_.X([_.F(),_.A("design:type",Object)],lc.prototype,"initialStartIndex",void 0);
_.X([_.F(),_.A("design:type",Object)],lc.prototype,"disableScrollEventListener",void 0);_.X([_.F(),_.A("design:type",Object)],lc.prototype,"supportComponentResize",void 0);_.X([_.F({value:function(){var q=this;return function(){return q.prevClick_()}}}),
_.A("design:type",Function)],lc.prototype,"boundPrevClick",void 0);_.X([_.F({value:function(){var q=this;return function(){return q.nextClick_()}}}),
_.A("design:type",Function)],lc.prototype,"boundNextClick",void 0);_.X([_.F(),_.A("design:type",Object)],lc.prototype,"useFloorScrolling",void 0);_.X([_.F(),_.A("design:type",Object)],lc.prototype,"isSearch",void 0);_.X([_.F(),_.A("design:type",Object)],lc.prototype,"dragging",void 0);_.X([_.F(),_.A("design:type",Object)],lc.prototype,"dragMouseStart",void 0);_.X([_.F(),_.A("design:type",Object)],lc.prototype,"dragOffsetStart",void 0);
_.X([_.F(),_.A("design:type",Object)],lc.prototype,"disableWheelScroll",void 0);_.X([_.F(),_.A("design:type",Object)],lc.prototype,"centerListItems",void 0);_.X([_.m2("iron-resize"),_.M("guideOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lc.prototype,"onIronResize_",null);_.X([_.m2("transitionend"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],lc.prototype,"onItemsTransitionEnd_",null);
_.X([_.m2("focusin"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],lc.prototype,"onChildElementFocus_",null);_.X([_.M("shownItems"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lc.prototype,"observeShownItems_",null);lc=_.X([_.iq()],lc);_.Mt.YtdHorizontalListBehavior=[];_.Mt.YtdHorizontalListBehavior.push(_.SQ,_.y.YtRendererBehavior,_.cj.YtLazyListBehavior,_.J_.YtdGuideStateAwareBehavior,lc.prototype);var ws2=["APP_STATE","PI"];var QIv=_.Fr(["about:blank"]),Eyg={pushState:window.history.pushState,replaceState:window.history.replaceState};var XY=function(q){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=q;this.internalPushState=q.pushState.bind(q);this.internalReplaceState=q.replaceState.bind(q)};
XY.prototype.init=function(){this.initialized=!0};
XY.prototype.pushState=function(q,Z){this.initialized||this.init();this.internalPushState&&this.internalPushState(q,"",Z)};
XY.prototype.replaceState=function(q,Z){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(q,"",Z)};
XY.prototype.getState=function(){return this.history&&this.history.state};var x3J=function(q){var Z=function(){var w=q.apply(this,arguments)||this;w.boundHistoryPushState=!1;w.boundHistoryReplaceState=!1;w.debugInfo={};return w};
_.z(Z,q);Z.prototype.init=function(){var w=_.dX("IFRAME");_.F5(w,_.qu(QIv));w.sandbox="allow-same-origin";w.style.display="none";this.iframe=w;document.body.appendChild(w);this.bindHistoryStateFunctions();q.prototype.init.call(this)};
Z.prototype.bindHistoryStateFunctions=function(){var w=this,r=[],Y;this.iframe&&((Y=this.iframe.contentWindow)==null?0:Y.history)&&(Y=this.iframe.contentWindow.history)&&(r.push(Y),Object.getPrototypeOf(Y)&&r.push(Object.getPrototypeOf(Y)));window.history&&r.push(window.history);Y=window.history;Object.getPrototypeOf(Y)&&r.push(Object.getPrototypeOf(Y));r.push(Eyg);Y=function(d){for(var O=null,H=0;H<r.length;H++){var L=r[H][d];if(typeof L==="function"){O=L.bind(window.history);w.debugInfo[d]=H;break}}return O};
if(!this.boundHistoryReplaceState){var C=Y("replaceState");C&&(this.internalReplaceState=C,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(Y=Y("pushState"))&&(this.internalPushState=Y,this.boundHistoryPushState=!0)};
return Z}(XY),Tue=function(){return x3J.call(this,window.history)||this};
_.z(Tue,x3J);Tue.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var mO=function(q){this.browserHistory=q;this.initialized=!1};
mO.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
mO.prototype.pushState=function(q,Z){this.initialized||this.init();this.browserHistory.pushState(q,Z)};
mO.prototype.replaceState=function(q,Z){this.initialized||this.init();this.browserHistory.replaceState(q,Z)};
mO.prototype.handlePopstate=function(q){return q.state};_.U39=function(q,Z,w,r,Y){this.endpoint=q;this.forward=Z;this.historyEntry=w;this.JSC$26263_savedComponentState=r;this.legacyBorder=Y===void 0?!1:Y};var kmD=function(q,Z){this.rootData=q;this.scrollTop=Z};var vH=new _.F$("PAGE_REQUEST_TOKEN"),Ehm=new _.F$("FETCH_PBJ_TOKEN");_.A_=new _.F$("EPHEMERAL_STORE_TOKEN");_.fO=function(q){this.data=Object.assign({},q);var Z;(Z=this.data.innertubeResponse)==null||delete Z.frameworkUpdates};
_.fO.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.lp)()};
_.Zb=function(q){return Object.assign({},q.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var KkK=function(){this.maxSize=100;this.timeToDataCache=new Map};
KkK.prototype.get=function(q){var Z=this.timeToDataCache.get(q);Z&&(this.timeToDataCache.delete(q),this.timeToDataCache.set(q,Z));if(Z&&Z.rootData&&(_.b("web_use_response_store_for_history_cache")||_.b("mweb_use_new_history_manager"))){var w=_.t().resolve(_.A_),r=sIm(Z),Y=!!r;if(r){if(r.content){var C=Dp(w,r.content);Y&&C?Z.rootData.response=_.Zb(C):Y=!1}r.player&&(C=Dp(w,r.player),Y&&C?Z.rootData.playerResponse=_.Zb(C):Y=!1);r.reelSequence&&(w=Dp(w,r.reelSequence),Y&&w?Z.rootData.reelWatchSequenceResponse=
_.Zb(w):Y=!1)}Y||(this.timeToDataCache.delete(q),Z=void 0)}return Z};
KkK.prototype.set=function(q,Z){if(Z.rootData&&(_.b("web_use_response_store_for_history_cache")||_.b("mweb_use_new_history_manager"))){var w=sIm(Z),r=Object.assign({},Z.rootData);w&&(w.content&&Z.rootData.response&&(Iyp(this,w.content,Z.rootData.response),r.response=null),w.player&&Z.rootData.playerResponse&&(Iyp(this,w.player,Z.rootData.playerResponse),r.playerResponse=null),w.reelSequence&&Z.rootData.reelWatchSequenceResponse&&(Iyp(this,w.reelSequence,Z.rootData.reelWatchSequenceResponse),r.reelWatchSequenceResponse=
null));Z=new kmD(r,Z.scrollTop)}this.timeToDataCache.has(q)?this.timeToDataCache.delete(q):this.timeToDataCache.size>=this.maxSize&&(w=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(w.value));this.maxSize!==0&&this.timeToDataCache.set(q,Z)};
KkK.prototype.clear=function(){this.timeToDataCache.clear()};
var sIm=function(q){var Z=_.t().resolve(_.Gj(vH)),w;if((w=q.rootData)==null?0:w.endpoint)return Z==null?void 0:jb1(Z,q.rootData.endpoint);var r;_.bx(new _.df("History snapshot response data does not contain endpoint",(r=q.rootData)==null?void 0:r.url));return null},Iyp=function(q,Z,w){if(q.maxSize>0){var r;
(q=(r=w.responseContext)==null?void 0:r.maxAgeSeconds)&&Number(q)>0&&(r=_.t().resolve(_.A_),w=ll(w,q),r.put(Z,new _.fO(w)))}};var cVW=function(q,Z,w){this.endpoint=Z;this.JSC$26268_savedComponentState=w===void 0?null:w;this.entryTime=q};var PwN=1;var h_=function(q){var Z=function(){var w=q.apply(this,[].concat(_.Ju(_.Ta.apply(0,arguments))))||this;w.historyEntryTime=0;w.historySnapshotCache=w.createHistoryCache();return w};
_.z(Z,q);Z.prototype.createHistoryCache=function(){return new KkK};
Z.prototype.saveAndReplace=function(w,r,Y){var C=window.location.href;var d=d===void 0?{}:d;var O=(O=this.browserHistory.getState())&&O.entryTime?O.entryTime:dpj();w=this.createNewHistoryEntry(w,d,O);this.saveSnapshot(O,r,Y);this.replaceState(w,C||window.location.href)};
Z.prototype.saveAndPush=function(w,r,Y,C,d){d=d===void 0?{}:d;this.saveSnapshot(this.historyEntryTime,Y,C);Y=this.historySnapshotCache;C=this.historyEntryTime;var O=Y.timeToDataCache.keys();O=_.P(O);for(var H=O.next();!H.done;H=O.next())H=H.value,H>C&&Y.timeToDataCache.delete(H);r=this.createNewHistoryEntry(r,d);this.pushState(r,w)};
Z.prototype.saveSnapshot=function(w,r,Y){this.historySnapshotCache.set(w,new kmD(r,Y))};
Z.prototype.createNewHistoryEntry=function(w,r,Y){Y=Y===void 0?dpj():Y;return new cVW(Y,w,r)};
Z.prototype.handlePopstate=function(w){var r=q.prototype.handlePopstate.call(this,w),Y=null,C=null,d=!1,O=null;r&&r.entryTime&&(O=this.historySnapshotCache.get(r.entryTime)||null,d=r.entryTime>this.historyEntryTime,this.historyEntryTime=r.entryTime,Y=r.endpoint,C=r.JSC$26268_savedComponentState);this.handleHistoryCacheLoad(new _.U39(Y,d,O,C),w);return r};
Z.prototype.pushState=function(w,r){Number(w==null?void 0:w.entryTime)>=0&&(this.historyEntryTime=w.entryTime);q.prototype.pushState.call(this,w,r)};
Z.prototype.replaceState=function(w,r){Number(w==null?void 0:w.entryTime)>=0&&(this.historyEntryTime=w.entryTime);q.prototype.replaceState.call(this,w,r)};
Z.prototype.handleHistoryCacheLoad=function(){};
return Z}(mO),MN7=function(){var q=h_.call(this,new Tue)||this;
q.dispatchElement=null;q.entryIndex=0;return q};
_.z(MN7,h_);_.e=MN7.prototype;_.e.init=function(q){q=q===void 0?!0:q;h_.prototype.init.call(this);this.initialized||(q||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.e.handlePopstate=function(q){var Z=null;q.state||(Z="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return h_.prototype.handlePopstate.call(this,q);var w=new CustomEvent("yt-history-pop",{cancelable:!0});_.yY(this.dispatchElement,"yt-history-pop",[w,{errorMsg:Z}]);_.i5(this.dispatchElement,"yt-close-all-popups-action");if(!w.defaultPrevented){w=_.t().resolve(_.U1);Z=w.getCurrentData();var r=w.getCurrentPage();w=0;r?(r=_.yY(this.dispatchElement,"yt-get-page-offset",
[r]),r.length>0&&(w=r[0])):_.bx(new _.df("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:Z?Z.page:"undefined"}));Z&&(Z.csn=_.b5());this.saveSnapshot(this.historyEntryTime,Z,w)}return h_.prototype.handlePopstate.call(this,q)};
_.e.handleHistoryCacheLoad=function(q,Z){Z.state&&(q.legacyBorder=!!Z.state["spf-timestamp"]||!!Z.state.blazer);q.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.P(_.i5(this.dispatchElement,"yt-history-will-navigate",[Z])).next().value||_.yY(this.dispatchElement,"yt-history-load",[Z,q]))};
_.e.pushState=function(q,Z){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var w=new _.df("history.pushState is not a function",this.getDebugString());_.tY(w)}h_.prototype.pushState.call(this,q,Z)};
_.e.replaceState=function(q,Z){if(!this.browserHistory.boundHistoryReplaceState){var w=new _.df("history.replaceState is not a function",this.getDebugString());_.tY(w)}h_.prototype.replaceState.call(this,q,Z)};
_.e.saveAndPush=function(q,Z,w,r,Y){Y=Y===void 0?{}:Y;w&&(w.csn=_.b5());h_.prototype.saveAndPush.call(this,q,Z,w,r,Y)};
_.e.getDebugString=function(){var q=[];this.initialized&&q.push("i");this.browserHistory.boundHistoryReplaceState&&q.push("bhr");this.browserHistory.boundHistoryPushState&&q.push("bhs");"replaceState"in this.browserHistory.debugInfo&&q.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&q.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&q.push("ei:"+String(this.entryIndex));return q.join(",")};
_.e.replaceUrl=function(q){this.init(!0);var Z=this.browserHistory.getState();this.replaceState(Z,N0(q))};
_.e.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.FkD=new _.F$("DESKTOP_HISTORY_MANAGER_TOKEN");var Nuh=[10,20,30,40,50,60],yQ=function(){this.currentPartitionIndex=0},lyg=function(q){pEh({mainAppWeb:_.BP(),
survivalSli:{partitionMinute:q,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},GmD=function(q){pEh({mainAppWeb:_.BP(),
survivalSli:{partitionMinute:q,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},p9X=function(q){return q.currentPartitionIndex>=0&&q.currentPartitionIndex<Nuh.length?Nuh[q.currentPartitionIndex]:-1},X92=function(q){return q.currentPartitionIndex>0&&q.currentPartitionIndex-1<Nuh.length?Nuh[q.currentPartitionIndex-1]:-1};
yQ.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var q=X92(this);q>0&&GmD(q);q=p9X(this);q>0&&lyg(q);m3p(this)}};
var m3p=function(q){var Z=p9X(q);if(Z>0){var w=X92(q);w<0&&(w=0);q.intervalId=_.v5.addJob(function(){var r=X92(q);r>0&&GmD(r);r=p9X(q);r>0&&lyg(r);m3p(q)},3,(Z-w)*6E4);
q.currentPartitionIndex+=1}else q.currentPartitionIndex=-1};var AVJ=function(){this.skipNextNavigation=!1},fy2=function(q,Z,w){if(!Z)return!1;
if(q.skipNextNavigation)return q.skipNextNavigation=!1;if(_.J(w,_.TF))return!1;var r,Y,C;if((r=_.J(w,_.qZ))==null?0:(Y=r.browseEndpointContextSupportedConfigs)==null?0:(C=Y.browseEndpointContextMainConfig)==null?0:C.skipConfirmation)return!1;var d;return((d=_.J(Z.commandMetadata,_.XK))==null?void 0:d.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
AVJ.prototype.showConfirmationDialog=function(q,Z){this.navigateParams=Z;this.customConfirmationCommand?_.t().resolve(_.ps).resolveCommand(this.customConfirmationCommand):(Z={openPopupAction:{popup:{confirmDialogRenderer:{title:_.UE(_.dT("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.UE(_.dT("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.UE(_.dT("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.UE(_.dT("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.UU.getInstance().triggerAction("yt-open-popup-action",Z,q))};
AVJ.prototype.cancelPendingNavigation=function(){var q;((q=this.navigateParams)==null?void 0:q.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var D3e=function(){},yV9=function(q,Z,w,r,Y,C,d){w=w===void 0?{}:w;
d=d===void 0?{}:d;var O=_.mM.instance,H,L=(H=_.J(Z,_.TF))==null?void 0:H.url;return L?hce(O,L,w,window.location.href,function(S,v){h_X(q,S,v,!1,!0,w,C,r)},function(){return!1}):Kd(O,Z,w,window.location.href,w3(Z),function(S,v){h_X(q,S,v,!1,!0,w,C,r)},Y,d)},h_X=function(q,Z,w,r,Y,C,d,O){if(!q.JSC$12158_chunkHandler)if(w.page==="watch")if(Y||r){if(_.b("kevlar_continue_playback_without_player_response")){var H;
var L=(H=_.J(O,_.ck))==null?void 0:H.videoId}q.JSC$12158_chunkHandler=new dsD(_.K6,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:r,previousVideoId:L},tempData:C},d)}else q.JSC$12158_chunkHandler=new Yy7(_.K6);else w.page==="shorts"&&Y&&!r?q.JSC$12158_chunkHandler=new PRJ(_.K6,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:C},d):q.JSC$12158_chunkHandler=new $sh(d);q.JSC$12158_chunkHandler.processChunk({endpoint:Z,data:w});return q.JSC$12158_chunkHandler.gS.promise},
iWv=function(q,Z,w,r,Y){(w=_.pY1(w))&&h_X(q,Z,w,!1,!0,r,void 0,Y)};var gye=function(){this.pendingNavigationPromise=null};
_.e=gye.prototype;_.e.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.e.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.e.addEventListener=function(){throw Error("yh");};
_.e.dispatchEvent=function(){throw Error("yh");};
_.e.removeEventListener=function(){throw Error("yh");};var qdh=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],ic=function(){_.V8.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];ZEe(this)};
_.z(ic,_.V8);ic.prototype.verifyUser=function(){var q=ZEe(this),Z=q.logout;if(!q.sessionChange)return!0;this.dispatchEvent("ytsessionchange");Z&&this.dispatchEvent("ytuserinvalid");return!1};
var ZEe=function(q){var Z=qdh.map(function(Y){var C;return(C=_.Yr.get(Y))!=null?C:""}),w=Z.some(function(Y,C){return q.sessionCookies&&q.sessionCookies[C]!==""&&Y===""}),r=Z.some(function(Y,C){return q.sessionCookies&&q.sessionCookies[C]!==Y});
q.sessionCookies=Z;return{logout:w,sessionChange:r}};
ic.prototype.clearTimeout=function(){this.scheduledJobId&&(_.v5.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var oS9=new _.F$("POSTMESSAGE_TUNNEL_TOKEN");var OrN=["/parent_tools","/file_download","/artist_roster"],SoI=[SpD,vgp,jhm,RmD,t27,Lvm,b9g,JKD];var gm=new _.F$("NAVIGATION_CONFIRMATION_SERVICE");var wng="/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(" "),rhm=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
qO=function(q){this.pendingNavigationPromise=null;this.JSC$12176_clientRoot=q;this.logger=null;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 D3e;this.debugString=q.is;q={"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};_.k7(_.UU.getInstance(),q,this.JSC$12176_clientRoot)},Pj2,dm7,VP2,OEW,Cjg;
_.z(qO,gye);qO.prototype.reload=function(){_.ja(window.location.href)};
var AZ1=function(q){q.currentEndpoint&&_.J(q.currentEndpoint,_.Yz)?q.reload():q.currentEndpoint&&q.navigate(q.currentEndpoint,!0,void 0,{disableCache:!0})};
qO.prototype.navigate=function(q,Z,w,r,Y,C,d,O){Z=Z===void 0?!1:Z;w=w===void 0?{}:w;r=r===void 0?{}:r;var H=_.t().resolve(gm),L;if(!d&&fy2(H,(L=this.currentEndpoint)!=null?L:void 0,q))return H.showConfirmationDialog(this.JSC$12176_clientRoot.parentElement,{endpoint:q,reload:Z,params:w,tempData:r,requestType:Y,createScreenConfig:C}),!1;var S=_.zB();_.BV(S,"eocs")||S.parkOrScheduleJob(function(){S.processSignal("eocs")},10,"eor");
d=w3(q);H=r.autonav==="1";L=_.b5();ic.instance||(ic.instance=new ic);var v=ic.instance.verifyUser(),R;if(_.b("enable_dark_theme_only_on_shorts")){var B=document.documentElement.hasAttribute("dark"),n=_.RJ(!0)==="USER_INTERFACE_THEME_DARK";if(d==="shorts"){if(!B)if(_.b("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var x;_.ja((x=_.J(q==null?void 0:q.commandMetadata,_.XK))==null?void 0:x.url,void 0,void 0,window.top)}}else{var K;_.ja(_.sq((K=_.J(q==null?
void 0:q.commandMetadata,_.XK))==null?void 0:K.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.b("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!B){var k;_.ja(_.sq((k=_.J(q==null?void 0:q.commandMetadata,_.XK))==null?void 0:k.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(n!==B){var G;_.ja(_.sq((G=_.J(q==null?void 0:q.commandMetadata,_.XK))==null?void 0:G.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(d==="watch"){if(Ydp(_.t().resolve(_.Tf),
q)&&(v||_.b("fix_miniplayer_navigation_killswitch")))return!1;_.b("block_all_player_prefetch_requests")||(R=XY7(_.gn(_.AD),q,H))}else{var rz,f=(rz=_.J(this.currentEndpoint,_.ck))==null?void 0:rz.videoId;f&&_.dF.getInstance().then(function(Te){Te&&Te.set("yt-miniplayer-shown-video-id",f)})}R&&(w.frags=R.missingFragments_.join(","));
x=null;var eO;K=(eO=_.J(q==null?void 0:q.commandMetadata,_.XK))==null?void 0:eO.ignoreNavigation;if(!K)if(_.b("kevlar_command_url")){var g;x=(g=_.J(q==null?void 0:q.commandMetadata,_.XK))==null?void 0:g.url}else x=_.BpX(q,w);if(x&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&x==this.lastNavigationUrl)return _.RV({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Cd(as(),"CANCELLED")}x&&(this.lastNavigationUrl=x);oNj();_.bO("IS_HOMEPAGE_COLD",
!1);_.bO("IS_RESULTS_PAGE_COLD",!1);_.bO("IS_WATCH_PAGE_COLD",!1);q.loggingUrls&&q.loggingUrls.forEach(function(Te){Te.baseUrl&&_.EG(Te.baseUrl)});
_.RJT(q,C?C.layer:0)&&_.b("kevlar_flush_logs_on_away_navigation")&&_.jX();if(vSX(q))return!1;EMm(d,Y);if(!x)return K||_.bx(new _.df("Can't construct url for endpoint",q)),_.Cd(as(),"FAILURE"),!1;_.VMN();eO=q&&_.J(q,_.qZ)&&_.J(q,_.qZ).browseId.startsWith("UC");w=(g=_.b("enable_dark_theme_only_on_shorts")&&d==="shorts"?!1:_.bq()&&document.documentElement.hasAttribute("dark")!==_.tr())?{themeRefresh:1}:{};g&&!_.eT()&&_.RJ()==="USER_INTERFACE_THEME_DARK"&&(w.theme="dark");eO=g||$me(x)&&!eO&&!_.b("kevlar_disable_url_allowlist");
v||(eO=!0);if(eO||_.zj("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var H6;var nX=(H6=window.top)==null?void 0:H6.location.href}catch(Te){var Qj;nX=(Qj=Te)==null?void 0:Qj.message}_.bx(new _.df("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:nX}))}q=_.b("kevlar_redirect_on_window_killswitch")?window.top:window;vP(x);_.ja(_.sq(x,w),void 0,void 0,q);_.Cd(as(),"ABORTED");return!1}_.b("kevlar_early_popup_close")&&_.yY(this.JSC$12176_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12158_chunkHandler=void 0;var SO;nX=w3((SO=this.currentEndpoint)!=null?SO:void 0);(SO=d==="shorts"&&nX==="shorts")||_.iDI();_.QV(F7j)("nr",void 0);H&&_.RV({webInfo:{navigationReason:"an"}});q.clickTrackingParams&&(r.itct=q.clickTrackingParams,r.csn=L);j6N(r);r.endpoint=JSON.stringify(q);_.b("enable_unknown_lact_fix_on_html5")&&(_.t().resolve(_.d6),r.lact=_.pB());_.R4.isEmpty(r)||_.l5(x,r);!_.b("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(C=Object.assign({},{layer:0},C,{parentLayer:3}));this.pendingNavigationPromise=C=yV9(this.pageFetcher,q,r,this.currentEndpoint,this.JSC$12176_isNetworkPromiseStale.bind(this),C,O);C=C.then(this.handleNavigateSuccess.bind(this,C,q,R,r),this.handleNavigateFail.bind(this,C,q));_.qk().navigationFinishPromise=C;Z={endpoint:q,pageType:d,url:N0(x),reload:!!Z,noProgressBar:_.b("web_disable_page_navigation_progress")||SO};Y&&(Z.type=Y);this.fireEvent("yt-navigate-start",Z);R&&
iWv(this.pageFetcher,q,R,r,this.currentEndpoint);return!0};
qO.prototype.JSC$12176_isNetworkPromiseStale=function(q){return q!=this.pendingNavigationPromise};
var eQD=function(q,Z,w,r,Y){var C=w3(Z);Z={endpoint:Z,pageType:C};Y&&(Z.errorMessage=Y);_.bx(w);Z.navigationDoneMs=_.JT("nd");Z.navigationErrorReason=r;q.fireEvent("yt-navigate-error",Z)};
qO.prototype.handleNavigateFail=function(q,Z,w){var r=void 0;w instanceof _.xQ&&(r=w,JL2(w));if(this.JSC$12176_isNetworkPromiseStale(q))return _.TX(r);_.Cd(as(),"FAILURE");eQD(this,Z,w,"101");return _.TX(w)};
qO.prototype.handleNavigateSuccess=function(q,Z,w,r,Y){if(this.JSC$12176_isNetworkPromiseStale(q))return _.YK();this.pendingNavigationPromise=null;if(!Y)return Z=new _.df("Missing data in response for navigation endpoint",Z),_.TX(Z);if(Y.reload)return window.location.reload(!0),_.YK();w&&(q={},_.R4.extend(q,_.pY1(w),Y),Y=q);var C,d;w=(C=Y)==null?void 0:(d=C.timing)==null?void 0:d.responseStart;w!=null&&_.JT("srt",w);_.JT("pdc");var O,H;C=(O=Y)==null?void 0:(H=O.timing)==null?void 0:H.info;C!=null&&
(O=_.QV(_.pRX)(C),_.RV(O));_.Cd(as(),"SUCCESS");Cjg(this,Z,Y,1,r);return _.YK()};
var $me=function(q){var Z=q;_.b("kevlar_no_redirect_to_classic_2_ks")||(Z=(new _.M$(q)).getPath());if(Z==="/"||Z==="/red")return!1;var w=!0;wng.forEach(function(r){q.indexOf(r)===0&&(w=!1)});
rhm.forEach(function(r){var Y=r.url;_.b(r.expFlag)&&q.indexOf(Y)===0&&(w=!1)});
return w};
qO.prototype.publishPageData=function(q){this.fireEvent("yt-page-data-fetched",{pageData:q})};
Pj2=function(q,Z,w,r,Y,C){var d=null;Z.page!=="watch"||r?Z.filler||_.yY(q.JSC$12176_clientRoot,"yt-stop-old-player",[Z]):d=h_X(q.pageFetcher,Y,Z,w,!1,C,void 0,q.currentEndpoint);if(d)return d.then(q.publishPageData.bind(q,Z));q.publishPageData(Z);return _.YK()};
dm7=function(q,Z,w){var r=null;if(!w)return r=new _.df("Empty data",q.debugString,Z);var Y=w.response;if(!Y)return r;var C={endpointType:w3(Z)||"unknown"};Y.responseContext?(Y=Y.responseContext.errors)&&(r=new _.df("Errors in response context",q.debugString,Z,Y,C)):r=Y.error||Y.errorMetadata?new _.df("Errors in response",q.debugString,Z,Y.error,Y.errorMetadata,C):new _.df("responseContext missing",q.debugString,Z,Object.keys(Y).sort().join(","),C);var d,O,H,L;if(q=w==null?void 0:(d=w.response)==null?
void 0:(O=d.responseContext)==null?void 0:(H=O.webResponseContextExtensionData)==null?void 0:(L=H.webResponseContextDebugData)==null?void 0:L.debugErrorMessages)for(d=0;d<q.length;d++);return r};
VP2=function(q){var Z,w,r,Y;return q==null?void 0:(Z=q.response)==null?void 0:(w=Z.responseContext)==null?void 0:(r=w.errors)==null?void 0:(Y=r.error)==null?void 0:Y["0"]};
OEW=function(q,Z){var w;if(w=Z.url&&!Z.url.startsWith("/clip"))w=Z.url,w=!_.b("webfe_parse_debug_param_in_resolveurl_service")&&q.searchDebugUrlMatcher.test(w)||xMO(w)?!0:!1;if(w)xMO(Z.url)&&_.Ks(window.location.href).themeRefresh?q.fireEvent("yt-navigate-redirect",{url:_.pp(Z.url,"themeRefresh")}):Z.url&&!eJ9(Z.url)&&q.fireEvent("yt-navigate-redirect",{url:Z.url});else if(Z.endpoint){var r,Y,C;(w=(r=Z.endpoint)==null?void 0:(Y=r.commandMetadata)==null?void 0:(C=Y.webCommandMetadata)==null?void 0:
C.url)&&!eJ9(w)&&q.fireEvent("yt-navigate-redirect",{url:w});w&&Z.url&&w!=Z.url&&!Z.url.match("playnext=1")&&new _.df("Response url mismatch in response data",q.debugString,w,Z.url)}};
_.HED=function(q,Z,w,r,Y,C,d,O){C=C===void 0?!1:C;var H=_.t().resolve(gm),L;if(!O&&fy2(H,(L=q.currentEndpoint)!=null?L:void 0,Z))return H.showConfirmationDialog(q.JSC$12176_clientRoot.parentElement,{endpoint:Z,data:w,navigationType:r,tempData:Y,isMiniplayer:C,isForwardHistoryNavigation:d==null?void 0:d.forward}),_.YK();q.pageFetcher.JSC$12158_chunkHandler=void 0;return Cjg(q,Z,w,r,Y,C)};
Cjg=function(q,Z,w,r,Y,C){C=C===void 0?!1:C;q.isMiniplayerExpansion=C;var d=r===2;q.currentEndpoint=Z;q.numNavigations++;q.numNavigations&&(ehj.navigationCount=q.numNavigations);_.bO("NUM_NAV",q.numNavigations);var O=dm7(q,Z,w);if(O)return eQD(q,Z,O,"102",VP2(w)),_.TX(O);var H,L,S,v;O=w.rootVe||(w==null?void 0:(H=w.response)==null?void 0:(L=H.responseContext)==null?void 0:(S=L.webResponseContextExtensionData)==null?void 0:(v=S.ytConfigData)==null?void 0:v.rootVisualElementType);!d&&w&&OEW(q,w);var R,
B;H=w==null?void 0:(R=w.response)==null?void 0:(B=R.responseContext)==null?void 0:B.maxAgeSeconds;if(!d&&!isNaN(H)){var n;_.b("kevlar_use_response_ttl_to_invalidate_cache")?n=(0,_.lp)()+1E3*H:_.b("kevlar_always_invalidate_cache")&&(n=0);isNaN(n)||(w.expirationTime=n)}_.b("html5_enable_ssap_entity_id")&&d&&w.playerResponse&&(w.playerResponse.cacheMetadata={isCacheHit:!0});_.gn(_.AD).prefetchCache_.clear();d||w.page!=="watch"||w.type!=="reduced"&&r!==1?r=Pj2(q,w,d,!!C,Z,Y):(q.publishPageData(w),r=_.YK());
Y=r.then(function(){var x=w3(Z);x={endpoint:Z,pageType:x,fromHistory:d,response:w};x.navigationDoneMs=_.JT("nd");q.fireEvent("yt-navigate-finish",x)});
w.csn&&O&&w.clientSideGrafts&&r.then(q.attachClientSideGrafts.bind(q,w,_.Rs()));return Y};
_.e=qO.prototype;_.e.attachClientSideGrafts=function(q,Z){q.clientSideGrafts&&Z&&q.clientSideGrafts.forEach(function(w){if(Z&&w){var r=_.wa(w);_.b("combine_ve_grafts")?_.iy().graftServerVe(w,Z):_.T7(q.csn,Z,r)}})};
_.e.handleSignalActionHistoryBack=function(){window.history.back()};
_.e.handleSignalActionCloseWindow=function(){window.close()};
_.e.handleSignalActionReloadPage=function(){this.reload()};
_.e.handleSignalActionSoftReloadPage=function(){AZ1(this)};
_.e.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.e.fireEvent=function(q,Z){q=new CustomEvent(q,{bubbles:!0,cancelable:!1,composed:!0,detail:Z});this.dispatchEvent(q)};
_.e.addEventListener=function(q,Z){this.JSC$12176_clientRoot.addEventListener(q,Z)};
_.e.dispatchEvent=function(q){return this.JSC$12176_clientRoot.dispatchEvent(q)};
_.e.removeEventListener=function(q,Z){this.JSC$12176_clientRoot.removeEventListener(q,Z)};_.eCO=new Ot("browse","h8y2qb");_.CeO=new Ot("search","JzFVk");_.Pe8=new Ot("shorts","xwEKAe");_.dJO=new Ot("watchFixie","nmfa2d");_.VUI=new Ot("watchFlexy","CF909");_.OTe=new Ot("watchGrid","Tm0L3c");_.HT6=new Ot("watchLearningJourney","L3n37");var WE7;var o0K=function(){return _.N.apply(this,arguments)||this};
_.z(o0K,_.N);_.My.Object.defineProperties(o0K,{template:{configurable:!0,enumerable:!0,get:function(){if(WE7===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);WE7=q}q=WE7;return q}}});
var uFg=o0K;_.X([_.U(HW9.YtPlayerBehavior),_.A("design:type",Object)],uFg.prototype,"ytPlayerBehavior",void 0);uFg=_.X([_.l({is:"ytd-player"})],uFg);var LEW;var SdW;var v0e;var Zx=function(){var q=_.N.apply(this,arguments)||this;q.forceModernIconButton=!1;q.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return q};
_.z(Zx,_.N);Zx.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]]"}}}}}};
Zx.prototype.handleAccountLinkingStateChangedCommand=function(q){if(q=_.J(q,JHW)){var Z,w=(Z=this.data)==null?void 0:Z.providerKey;Z=q.providerKey;w&&Z&&w.id===Z.id&&w.subject===Z.subject&&(q=q.linked,q!==void 0&&(this.set("data.linked",q),this.notifyPath("data.linked"),_.b("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(q)))}};
Zx.prototype.setPlayerAccountLinkState=function(q){var Z=new qx9;g09(Z,Zv9(new w21,q));var w=_.K6();w&&w.getPlayerPromise().then(function(r){r.setAccountLinkState(_.Rq(Z.JSC$9923_serializeBinary(),4));r.updateAccountLinkingConfig(q)})};
Zx.prototype.handleShowAccountLinkDialog=function(){var q=this.get("button.buttonRenderer.command");q&&_.eK([q],this.hostElement)};
_.My.Object.defineProperties(Zx.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}}}});
var w7=Zx;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],w7.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.X([_.U([_.KK.YtActionHandlerBehavior]),_.A("design:type",Object)],w7.prototype,"actionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],w7.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],w7.prototype,"overrides",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],w7.prototype,"forceModernIconButton",void 0);_.X([_.F({value:"bottom"}),_.A("design:type",String)],w7.prototype,"buttonTooltipPosition",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],w7.prototype,"forceIconButton",void 0);_.X([_.F(),_.A("design:type",Boolean)],w7.prototype,"disableTextTransform",void 0);
_.X([_.I("data","data.linked","data.isWarning"),_.A("design:type",Object),_.A("design:paramtypes",[])],w7.prototype,"button",null);w7=_.X([_.l({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],w7);
_.p(w7,"ytd-account-link-button-renderer",function(){if(v0e!==void 0)return v0e;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return v0e=q},{mode:1});var jdX;var tP2=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],r7=function(){return _.N.apply(this,arguments)||this};
_.z(r7,_.N);r7.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
r7.prototype.updateButtonActiveState=function(){var q=this,Z=!!tP2.find(function(w){return q.currentState===w});
this.button&&(this.button.isPressed=Z)};
_.My.Object.defineProperties(r7.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.playlistLoopStateEntity)==null?void 0:q.state)||((Z=this.data)==null?void 0:Z.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var q=void 0,Z;if(this.currentState&&((Z=this.data)==null?0:Z.states)){Z=_.P(this.data.states);for(var w=Z.next();!w.done;w=Z.next()){w=_.J(w.value,_.GSp);var r=void 0;if(((r=w)==null?void 0:r.state)===this.currentState){q=w;break}}}return q}}});
var Yd=r7;Yd.prototype.updateButtonActiveState=Yd.prototype.updateButtonActiveState;_.X([_.U(_.LO),_.A("design:type",Object)],Yd.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Yd.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.F({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.nSz}),_.A("design:type",Object)],Yd.prototype,"playlistLoopStateEntity",void 0);_.X([_.F(),_.A("design:type",Object)],Yd.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],Yd.prototype,"forceIconOnly",void 0);_.X([_.fo("ytd-button-renderer"),_.A("design:type",_.TU)],Yd.prototype,"button",void 0);
_.X([_.I("data","playlistLoopStateEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],Yd.prototype,"currentState",null);_.X([_.M("currentButtonStateRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Yd.prototype,"updateButtonActiveState",null);_.X([_.I("currentState"),_.A("design:type",Object),_.A("design:paramtypes",[])],Yd.prototype,"currentButtonStateRenderer",null);
Yd=_.X([_.l({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Yd);
_.p(Yd,"ytd-playlist-loop-button-renderer",function(){if(jdX!==void 0)return jdX;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return jdX=q},
{mode:1});var RQ2;var bEe=_.dT("DOWNLOAD",{},"Download"),JhW=_.dT("DOWNLOADING",{},"Downloading"),zQv=_.dT("DOWNLOADED",{},"Downloaded"),B$X=_.dT("RETRY",{},"Retry"),aRv=function(){var q=_.N.apply(this,arguments)||this;q.forceIconButton=!1;q.forceIconOnly=!1;q.overrides=!1;q.buttonTooltipPosition=!1;q.styleActionButton=!1;q.disableTextTransform=!1;q.downloadProgress=0;q.isDownloadComplete=!1;q.isHidden=!0;q.transferState="TRANSFER_STATE_UNKNOWN";q.isVideoDeletedByUser=!1;q.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return q};
_.z(aRv,_.N);_.e=aRv.prototype;_.e.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.e.dataChanged=function(){var q;(q=this.data)!=null&&q.text||(q=_.RZ(_.sE().getState(),this.videoId),this.updateButtonState(q))};
_.e.computeVideoId=function(q){return q};
_.e.showHideButton=function(){this.updateButtonVisibility()};
_.e.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};
_.e.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.e.updateButtonState=function(q){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==JhW||!_.PX(q))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(q){case "TRANSFER_STATE_UNKNOWN":q=bEe;var Z="OFFLINE_DOWNLOAD";var w="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":q=B$X;Z="OFFLINE_DOWNLOAD";w="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":q=zQv;Z="OFFLINE_PIN";w="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":q=
JhW;Z="OFFLINE_DOWNLOADING_ZERO";w="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":q=B$X;Z="OFFLINE_DOWNLOAD";w="ACTION_RETRY";break;default:q=bEe,Z="OFFLINE_DOWNLOAD",w="ACTION_ADD"}this.isVideoDeletedByUser&&(q=bEe,Z="OFFLINE_DOWNLOAD",w="ACTION_ADD");var r=Object.assign({},this.data);r.text=_.UE(q);r.tooltip=q;r.icon={iconType:Z};r.size="SIZE_DEFAULT";r.style="STYLE_DEFAULT";_.J(r.command,_.h7)&&(_.J(r.command,_.h7).action=w);this.set("data",r)}};
_.e.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var q="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?q="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?q="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?q="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?q="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?q="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(q="OFFLINE_PIN",this.isDownloadComplete=!0);var Z;q!==((Z=this.data.icon)==null?void 0:Z.iconType)&&(Z=Object.assign({},this.data),Z.text=_.UE(JhW),Z.tooltip=JhW,Z.icon={iconType:q},_.J(Z.command,_.h7)&&(_.J(Z.command,_.h7).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",Z))}};
var $d=aRv;$d.prototype.updateProgress=$d.prototype.updateProgress;$d.prototype.onTransferStateChanged=$d.prototype.onTransferStateChanged;$d.prototype.showHideButton=$d.prototype.showHideButton;$d.prototype.dataChanged=$d.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],$d.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],$d.prototype,"forceIconButton",void 0);
_.X([_.F(),_.A("design:type",Object)],$d.prototype,"forceIconOnly",void 0);_.X([_.F(),_.A("design:type",Object)],$d.prototype,"overrides",void 0);_.X([_.F(),_.A("design:type",Object)],$d.prototype,"buttonTooltipPosition",void 0);_.X([_.F(),_.A("design:type",Object)],$d.prototype,"styleActionButton",void 0);_.X([_.F(),_.A("design:type",Object)],$d.prototype,"disableTextTransform",void 0);
_.X([_.F({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.A("design:type",String)],$d.prototype,"videoId",void 0);_.X([_.F(),_.A("design:type",Object)],$d.prototype,"data",void 0);_.X([_.F({selector:J0,selectorArgs:["videoId"]}),_.A("design:type",Object)],$d.prototype,"downloadProgress",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],$d.prototype,"isDownloadComplete",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],$d.prototype,"isHidden",void 0);_.X([_.F({selector:_.RZ,selectorArgs:["videoId"]}),_.A("design:type",String)],$d.prototype,"transferState",void 0);_.X([_.F({selector:_.Dk6,selectorArgs:["videoId"]}),_.A("design:type",Object)],$d.prototype,"isVideoDeletedByUser",void 0);_.X([_.F({selector:pV8,selectorArgs:["videoId"]}),_.A("design:type",Object)],$d.prototype,"offlineabilityState",void 0);
_.X([_.F({value:!0}),_.A("design:type",Boolean)],$d.prototype,"showTooltips",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],$d.prototype,"sendCommandWhenDisabled",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],$d.prototype,"disabled",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$d.prototype,"dataChanged",null);
_.X([_.g3("offlineabilityState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$d.prototype,"showHideButton",null);_.X([_.g3("transferState","isVideoDeletedByUser"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$d.prototype,"onTransferStateChanged",null);_.X([_.g3("downloadProgress"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$d.prototype,"updateProgress",null);
$d=_.X([_.l({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],$d);
_.p($d,"ytd-download-button-renderer",function(){if(RQ2!==void 0)return RQ2;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return RQ2=q},{mode:2});var n0X;var Qdv,E07=function(){if(Qdv!==void 0)return Qdv;var q=document.createElement("template");_.a(q,'\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 Qdv=q};var xmg=_.b("web_button_rework")&&_.BF("BUTTON_REWORK")||_.b("web_button_rework_with_live"),T$J=_.m6("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,UmX=function(){var q=_.N.apply(this,arguments)||this;q.isPressed=!1;q.forceIconButton=!1;q.forceIconOnly=!1;q.forceModernIconButton=!1;q.alignByText=!1;q.isShorts=!1;q.animatedText=!1;q.shouldAnimate=!1;q.JSC$12214_browserSupportsAnimation=_.b("web_supports_animations_api");q.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};q.onTap=function(){var Z;if((Z=q.data)==null||!Z.defaultNavigationEndpoint){var w;Z=!((w=q.data)==null?0:w.isToggled);var r;if((r=q.data)==null||!r.preventAutoToggle){q.shouldAnimate=!1;q.disableTextUpdateJobId&&_.v5.cancelJob(q.disableTextUpdateJobId);q.disableTextUpdateJobId=_.v5.addLowPriorityJob(function(){q.disableTextUpdateJobId=void 0},T$J);
var Y;q.set("data.isToggled",!((Y=q.data)==null?0:Y.isToggled));w=q.getInnertubeIcon();r={toggled:Z,actions:{}};w&&(r.actions[w.toLowerCase()]=Z);_.hy(q.hostElement,"yt-toggle-button",r)}}};
return q};
_.z(UmX,_.N);_.e=UmX.prototype;_.e.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.v5.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.e.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.e.toggle=function(q){var Z;this.set("data.isToggled",q!==void 0?q:!((Z=this.data)==null?0:Z.isToggled))};
_.e.handleUpdateToggleButtonStateCommand=function(q){if(this.data){q=_.J(q,kSD);var Z,w,r,Y=(Z=this.data)==null?void 0:(w=Z.toggleButtonSupportedData)==null?void 0:(r=w.toggleButtonIdData)==null?void 0:r.id;Y&&q&&Y===(q==null?void 0:q.buttonId)&&this.set("data.isToggled",q.toggled)}};
_.e.handleUpdateToggleButtonTextAction=function(q){if(this.data){q=_.J(q,iq9);var Z,w,r,Y=(Z=this.data)==null?void 0:(w=Z.toggleButtonSupportedData)==null?void 0:(r=w.toggleButtonIdData)==null?void 0:r.id;Y&&q&&Y===(q==null?void 0:q.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=q.defaultNumericalValue,this.set("data.defaultText",q.defaultText),this.set("data.toggledText",q.toggledText),this.shouldAnimate=!1)}};
_.e.getInnertubeIcon=function(){var q=this.data;if(q){var Z,w,r=((Z=q.defaultIcon)==null?0:Z.iconType)?(w=q.defaultIcon)==null?void 0:w.iconType:null,Y,C;Z=((Y=q.toggledIcon)==null?0:Y.iconType)?(C=q.toggledIcon)==null?void 0:C.iconType:r;return q.isToggled?Z:r}};
_.e.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.My.Object.defineProperties(UmX.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var q={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$12214_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var Z=q.renderer;var w=q.element;var r=q.toggled;var Y=q.onTapCallback;var C=q.commandClientArgs;var d=q.overrides;var O=q.forceIcon;var H=q.forceModernIconButton;var L=q.forceDisabled;var S=q.useAnimatedText;var v=q.animatedTextProps;q=TPO(Z,r);O=!Z.defaultIcon||!O&&Z.defaultText?Z.defaultIcon?"leading":void 0:H?"icon-only":"icon-only-40";O==="icon-only-40"&&(q.type="text");var R;H=Object;var B=H.assign,n;a:switch((n=
Z.style)==null?void 0:n.styleType){case "STYLE_COMPACT_GRAY":n={size:"S"};break a;default:n={size:"M"}}var x=!!r;var K=(K=r&&Z.toggledText||Z.defaultText)?_.V1(K):void 0;S?(S=_.kO(r&&Z.toggledText||Z.defaultText))&&v&&!isNaN(Number(v.numberValue))?(v.numberText=S,r&&(v.numberValue+=1),S=v):S=void 0:S=void 0;var k,G,rz,f;var eO=(v=((G=r?Z.toggledAccessibilityData||((eO=Z.toggledText)==null?void 0:eO.accessibility):Z.accessibilityData||((k=Z.defaultText)==null?void 0:k.accessibility))==null?void 0:
(rz=G.accessibilityData)==null?void 0:rz.label)||((f=Z.accessibility)==null?void 0:f.label))?v:_.kO(r&&Z.toggledText||Z.defaultText);L=L===void 0?Z.isDisabled:L;w=xp2(Z,r,Y,w,C);r=ESj(Z,r);r!=null&&r.length?(r=_.Ln({innertubeCommand:RbN(r),forceNewState:!0}),r=b8e(r)?r:void 0):r=void 0;Z=B.call(H,{},q,n,{iconPosition:O},d,{focused:!1,toggled:x,toggleable:!0,formattedButtonText:K,animatedTextProps:S,accessibilityLabel:eO,disabled:L,onTap:w,aTagConfig:r},DGI((R=Z.colorData)==null?void 0:R.basicColorPaletteData));
Z.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(Z.type="filled");return Z}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var q=this.getInnertubeIcon();if(q)return _.Xl(q)}}});
var eR=UmX;eR.prototype.resetAnimation=eR.prototype.resetAnimation;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],eR.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],eR.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],eR.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],eR.prototype,"isPressed",void 0);_.X([_.F(),_.A("design:type",Object)],eR.prototype,"forceIconButton",void 0);_.X([_.F(),_.A("design:type",Object)],eR.prototype,"forceIconOnly",void 0);_.X([_.F(),_.A("design:type",Object)],eR.prototype,"forceModernIconButton",void 0);_.X([_.F(),_.A("design:type",Object)],eR.prototype,"alignByText",void 0);_.X([_.F(),_.A("design:type",Object)],eR.prototype,"overrides",void 0);
_.X([_.F(),_.A("design:type",Boolean)],eR.prototype,"disabled",void 0);_.X([_.F(),_.A("design:type",Object)],eR.prototype,"isShorts",void 0);_.X([_.F(),_.A("design:type",Object)],eR.prototype,"buttonTooltipPosition",void 0);_.X([_.F(),_.A("design:type",Object)],eR.prototype,"animatedText",void 0);_.X([_.F(),_.A("design:type",String)],eR.prototype,"textNumberValue",void 0);_.X([_.F({computed:"computeTooltip(data, data.isToggled)"}),_.A("design:type",Object)],eR.prototype,"tooltip",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eR.prototype,"resetAnimation",null);_.X([_.I("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.A("design:type",Object),_.A("design:paramtypes",[])],eR.prototype,"computedButtonShape",null);_.X([_.I("data.*"),_.A("design:type",Object),_.A("design:paramtypes",[])],eR.prototype,"computedIcon",null);
eR=_.X([_.l({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],eR);xmg&&_.p(eR,"ytd-toggle-button-renderer",E07,{mode:_.NT("kevlar_poly_si_batch_j081")?1:2});var l09=[],GVj=!1;_.mD(mpj);var k_K,KE7;k_K=_.xl(function(q){function Z(L){var S;return _.V(function(v){if(v.nextAddress==1)return(S=!kV9(L,O())||!O().enabled)?v.jumpTo(2):_.W(v,Fzz(),3);v.nextAddress!=2&&(S=v.yieldResult);if(S)return v.return();w();setTimeout(function(){d(!1)},1500);
_.ub(v)})}
function w(){setTimeout(function(){d(!0);var L;(L=r.lottieEl)==null||L.goToAndPlay(0)},150)}
var r=_.A7(),Y=_.P(_.qo(!1,void 0,"xffAp")),C=Y.next().value,d=Y.next().value,O=_.aA(q.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.Ls(function(){var L,S;((L=q.settings)==null?void 0:(S=L.call(q))==null?void 0:S.uniqueId)==="this is not intended behavior"&&_.bx(new _.df("Smartimation Settings is undefined"))});
_.L7(function(){O().experimentEnabled&&(O().enabled?KzT(Z):(d(!1),spO(Z)),_.SG(function(){spO(Z)}))});
_.L7(function(){MMz(O().timings);O().experimentEnabled&&(I0O(O()),_.SG(function(){caX(O())}))});
var H=_.$6(function(){return Up6(r,O())},void 0,"d96jJc");
Y={};return _.u("yt-smartimation",{class:_.GL(q.className,"smartimation",(Y["smartimation--experiment-enabled"]=function(){return O().experimentEnabled},Y["smartimation--active-border"]=C,Y["smartimation--enable-masking"]=Aa1(),Y))},_.u(_.PF,{cond:function(){return O().experimentEnabled},
then:function(){return _.u("div",{class:"smartimation__border"},_.u(_.pn,{className:"smartimation__border-gradient",data:H,animationName:function(){return H().animationConfig.name}}))}}),_.u("div",{class:"smartimation__content"},q.children))},"x");
_.UmN=_.b("web_enable_sink_smartimations")?k_K:mpj;KE7=_.b("web_enable_sink_smartimations")?k_K:_.mq(mpj);k_K.idomCompat=!0;_.b("web_enable_sink_smartimations")?_.xc(KE7,"yt-smartimation",{props:{className:_.zG,settings:_.zG}}):_.Mx(_.UmN,"yt-smartimation",{propNames:["className","settings"]});var CL=function(){var q=_.N.apply(this,arguments)||this;q.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};q.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};q.shouldEnableSmartimation=!1;return q};
_.z(CL,_.N);CL.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
CL.prototype.onDataChanged=function(){var q,Z;this.shouldEnableSmartimation=(((q=this.data)==null?void 0:(Z=q.timedAnimationData)==null?void 0:Z.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
CL.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var q=_.J(this.data.likeButton,_.Rx),Z=_.J(this.data.dislikeButton,_.Rx);return!!((q==null?0:q.isToggled)||(Z==null?0:Z.isToggled))};
CL.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]]"}}}}}};
_.My.Object.defineProperties(CL.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var q,Z,w=((q=this.data)==null?void 0:(Z=q.timedAnimationData)==null?void 0:Z.animationTiming)||[];return{uniqueId:"like-dislike",timings:w,enabled:this.shouldEnableSmartimation,experimentEnabled:w.length>0}}}});
var Pa=CL;Pa.prototype.onDataChanged=Pa.prototype.onDataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Pa.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Pa.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Pa.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Pa.prototype,"likeButtonOverride",void 0);
_.X([_.F(),_.A("design:type",Object)],Pa.prototype,"dislikeButtonOverride",void 0);_.X([_.I("shouldEnableSmartimation"),_.A("design:type",Object),_.A("design:paramtypes",[])],Pa.prototype,"smartimationSettings",null);_.X([_.M("data"),_.m2("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pa.prototype,"onDataChanged",null);Pa=_.X([_.l({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],Pa);
_.p(Pa,"ytd-segmented-like-dislike-button-renderer",function(){if(n0X!==void 0)return n0X;var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return n0X=q},{mode:1});var sdK;var IRe;(IRe=document.body)==null||IRe.setAttribute("rounded-container","");var chK={};chK.YtToggleButtonBehavior=[_.KK.YtActionHandlerBehavior,hg.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 q=this.data.isToggled;if(!this.isModal_(q)){if(!this.data.preventAutoToggle){this.toggle();var Z={toggled:this.data.isToggled,actions:{}};Z.actions[this.buttonIcon]=this.data.isToggled;_.hy(this.hostElement,"yt-toggle-button",Z)}Z=this.data.defaultServiceEndpoint||null;var w=this.data.toggledServiceEndpoint||null;if(Z&&w||Z&&this.data.preventAutoToggle)q=q?w:Z,Z=this.disableCommandHandlerOverride,_.b("killswitch_toggle_button_behavior_resolve_command")||Z?_.qM(this.hostElement,
[q]):_.f5(q,this.hostElement),_.hy(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:q})}},
stateChanged_:function(){var q=this.data;if(q){var Z=q.isToggled;this._setEndpoint(this.computeEndpoint_(q));this._setServiceEndpoint(this.computeServiceEndpoint_(q));this._setButtonIcon(this.computeButtonIcon_(q,Z));this._setButtonText(this.computeButtonText_(q,Z));this._setButtonAccessibility(this.computeAccessibility_(q,Z));this._setButtonTooltip(this.computeTooltip_(q,Z));this._setButtonClass(this.computeButtonClass_(q,Z));this._setIconPositionType(this.computeIconPositionType_(q));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=Z):this.elements_.button.setAttribute("aria-pressed",Z));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=Z)}},
shouldSetIconActiveState_:function(){return _.b("kevlar_system_icons")},
toggle:function(q){this.set("data.isToggled",q!==void 0?q:!this.data.isToggled);_.b("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(q){if(q){var Z,w;return!!((Z=this.data)==null?0:(w=Z.toggledServiceEndpoint)==null?0:w.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(q){return q&&q.defaultNavigationEndpoint||null},
computeButtonIcon_:function(q,Z){var w=q&&q.defaultIcon?_.Xl(q.defaultIcon.iconType):null;q=q&&q.toggledIcon?_.Xl(q.toggledIcon.iconType):w;return Z?q:w},
handleUpdateToggleButtonStateCommand_:function(q){q=q.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==q.buttonId&&this.toggle(q.toggled)},
computeButtonText_:function(q,Z){return q?Z&&q.toggledText||q.defaultText||null:null},
computeAccessibility_:function(q,Z){return q?(Z?this.get("toggledAccessibilityData.accessibilityData",q):this.get("accessibilityData.accessibilityData",q))||q.accessibility||null:null},
computeTooltip_:function(q,Z){return q?Z&&q.toggledTooltip||q.defaultTooltip||null:null},
computeButtonClass_:function(q,Z){if(!q)return"";var w="",r=q.toggledStyle||q.style;if(Z=Z?r:q.style){Z.styleType&&(Z=Z.styleType);try{w+=Z.toLowerCase().replace(/_/g,"-")+" "}catch(Y){_.JY(Y,Z,typeof Z),_.bx(Y)}}if(q=q.size){q.sizeType&&(q=q.sizeType);try{w+=q.toLowerCase().replace(/_/g,"-")+" "}catch(Y){_.JY(Y,q,typeof q),_.bx(Y)}}return w.trim()},
computeIconPositionType_:function(q){return q&&q.iconPosition||null},
computeServiceEndpoint_:function(q){var Z=q&&q.serviceEndpoint,w=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return Z?Z:w&&q.command?q.command:null},
handleUpdateToggleButtonTextAction_:function(q){q=q.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==q.buttonId&&(this.set("data.defaultText",q.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",q.toggledText),this.notifyPath("data.toggledText"))}}];_.He("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var MPp=_.b("web_button_rework")&&_.BF("BUTTON_REWORK")||_.b("web_button_rework_with_live"),d7=function(){var q=_.N.apply(this,arguments)||this;q.systemIcons=_.b("kevlar_system_icons");q.roundedContainer=!0;return q};
_.z(d7,_.N);d7.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
d7.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var q=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var Z={toggled:!!this.data.isToggled,actions:{}};Z.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var w,r;Z.actions.playlistId=(w=this.data.defaultServiceEndpoint)==null?void 0:(r=w.playlistEditEndpoint)==null?void 0:r.playlistId;_.hy(this.hostElement,"yt-toggle-button",Z)}(q=q?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(q)}};
d7.prototype.onYtNavigate=function(q){var Z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(q.detail.endpoint);Z&&(q.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(Z))};
_.My.Object.defineProperties(d7,{template:{configurable:!0,enumerable:!0,get:function(){if(sdK===void 0){var q=document.createElement("template");_.a(q,"\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");q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);sdK=q}q=sdK;return q}}});
var Vv=d7;Vv.prototype.onYtNavigate=Vv.prototype.onYtNavigate;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Vv.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Et),_.A("design:type",Object)],Vv.prototype,"ytdOpenPopupBehavior",void 0);_.X([_.U(chK.YtToggleButtonBehavior),_.A("design:type",Object)],Vv.prototype,"ytToggleButtonBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],Vv.prototype,"data",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],Vv.prototype,"showTooltips",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Vv.prototype,"systemIcons",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Vv.prototype,"roundedContainer",void 0);_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Vv.prototype,"onYtNavigate",null);
Vv=_.X([_.l({is:"ytd-toggle-button-renderer",disableElementRegistration:MPp})],Vv);var FE1;_.Of=new _.F$("PANEL_CONTROLLER_TOKEN");_.Ha=new _.F$("SHEET_CONTROLLER_TOKEN");_.Wa=new _.F$("DIALOG_CONTROLLER_TOKEN");FE1=new _.F$("DIALOG_CONTAINER_TOKEN");var w9j=_.dT("DOWNLOAD",{},"Download"),rV2=_.dT("DOWNLOADING",{},"Downloading"),YHj=_.dT("DOWNLOADED",{},"Downloaded"),$3N=_.dT("RETRY",{},"Retry");var N$p=_.xl(function(q){var Z=WkX,w=function(){return""},r=d3j(q.data),Y=VN6(q.data),C=OWX(q.data),d=HWX(q.data);
Z=function(){var O=q.data(),H=qHT(O,r(),Y(),C(),d()),L=!!O.videoId,S=H.text;return{title:L?S:void 0,tooltip:L?void 0:S,accessibilityText:S,onTap:H.onTap,iconName:H.iconType,style:O.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:H.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:O.buttonSize}};
w={};w=_.GL("ytDownloadButtonViewModelHost",(w.ytDownloadButtonViewModelIsHidden=function(){var O=q.data(),H=d();return O.playlistId||H()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||H()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},w));
return _.u("download-button-view-model",{class:w},_.u(_.vx,{data:Z}))},"y");
N$p.idomCompat=!0;_.mD(LkT);_.mD(oy9);var G_W=_.xl(function(q){var Z=q.backgroundLottieRef;var w=q.foregroundLottieRef;var r=q.children;var Y=q.wrapperClass;var C=q.disableAnimation;q=function(){return(_.b("web_animated_actions")||_.b("web_animated_actions_v2"))&&!(C==null?0:C())};
return _.u("yt-animated-action",{class:_.GL("animated-action__container",Y)},_.u("div",{class:"animated-action__content-with-background"},_.u(_.PF,{cond:q,then:function(){return _.u(lRh,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:Z==null?void 0:Z(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(SHj()?"dark":"light")+"_v5.json"}}}})}}),r),_.u(_.PF,{cond:q,
then:function(){return _.u(lRh,{lottiePlayerProps:function(){return{animationRef:w==null?void 0:w(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(SHj()?"dark":"light")+"_v4.json"}}}})}}))},"z");
G_W.idomCompat=!0;var fyO=_.b("web_enable_sink_animated_actions")?G_W:LkT,pnX=_.b("web_enable_sink_animated_actions")?G_W:_.mq(LkT),lRh=_.xl(function(q){var Z=q.wrapperClass;var w=q.lottieClass;var r=q.lottiePlayerProps;return _.u("div",{class:_.GL("animated-action__lottie",Z),"aria-hidden":"true"},_.u(_.pn,{className:w,data:r,animationName:function(){return r().animationConfig.name}}))},"A");var vy8={isOpen:!1};var tNj={isAllowed:!1};var bW6={errorMessage:"",title:"",privacy:"",isDisabled:!0};var z_X={isOpen:!1};var ay6={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var Xnh={response:void 0};var QII=function(q,Z){q=q===void 0?Xnh:q;switch(Z.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},q,{response:Z.payload});default:return q}};var mm2={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var Ey1=function(q,Z){q=q===void 0?mm2:q;switch(Z.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},q,{nextDisabled:Z.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},q,{nextCommand:Z.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},q,{footerSubmissionData:Z.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},q,{isImpersonationValid:Z.payload});default:return q}};var AhD={reportFormData:void 0,reportDetailsFormData:void 0};var x3e=function(q,Z){q=q===void 0?AhD:q;switch(Z.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},q,{reportFormData:Z.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},q,{reportDetailsFormData:Z.payload});default:return q}};var fRg=void 0;_.b("mweb_enable_redux_store_on_demand")||(fRg=new Kz(TuT()));var AVe=_.xl(function(q){q=_.n5(q,{themeOverride:void 0,animationRef:{}});var Z=q.animatedIconType,w=q.active,r=q.themeOverride,Y=q.animationRef;q=q.staticIconFn;var C=_.P(_.qo(void 0,void 0,"P5a72b")),d=C.next().value,O=C.next().value,H=function(){a:{var K=Z();var k=r==null?void 0:r();var G;k=(k==null?void 0:k.useDarkTheme)||((G=_.t().resolve(_.Gj(_.RQ)))==null?void 0:G());switch(K){case "LIKE":b:{fRg||(fRg=new Kz(TuT()));if((K=Twj(fRg.getState()))&&K.animationStyle)switch(K.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":K=
kmj({name:k?"valentines25_heart_dark":"valentines25_heart_light",path:k?"animated_like_valentines25_heart_dark_v5":"animated_like_valentines25_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":K=kmj({name:k?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:k?"animated_like_valentines25_broken_heart_dark_v5":"animated_like_valentines25_broken_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":K=
kmj({name:k?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:k?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}K=void 0}if(K){k=K;break a}k="animated_like_icon_"+(k?"dark_v4":"light_v4");k={lottiePlayerProps:{animationConfig:{name:k,path:U3X("animated_like_icon",k),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":k={lottiePlayerProps:{animationConfig:{name:k?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(k?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}k=void 0}return k},L=function(){var K,k;
return(k=(K=H())==null?void 0:K.lottiePlayerProps.animationConfig.name)!=null?k:""},S=function(){if(H()){var K=H().lottiePlayerProps.animationConfig.path;
return lm.get(K)||d()}};
C=_.P(_.qo(!1,void 0,"h6xR3c"));var v=C.next().value;C=C.next().value;var R=sI8(C),B=function(){var K=H(),k,G,rz;return(rz=K==null?void 0:(k=K.lottiePlayerProps.animationConfig)==null?void 0:(G=k.rendererSettings)==null?void 0:G.className)!=null?rz:""},n=void 0,x=void 0;
_.L7(function(){var K=H(),k=L(),G=S(),rz=v(),f=w();if(K&&(x!==k&&(x=k,n=f,k=Y(),R.animationConfig=K.lottiePlayerProps.animationConfig,R.animationRef=k,G&&(R.animationConfig.animationData=G,R.animationConfig.path=void 0),k=K.lottiePlayerProps.animationConfig.path,!lm.get(k)&&K.lazyLoad&&k&&Kk2(k,O)),!(rz||K.lazyLoad&&!G))){if(G=!Y().lottieEl)f?(rz=K.totalFrames,R.animationConfig.initialSegment=[rz-1,rz]):R.animationConfig.initialSegment=void 0;if(n!==f&&!G)if(G=Y(),f){var eO;(eO=G.lottieEl)==null||
eO.playSegments([0,K.totalFrames],!0)}else{var g;(g=G.lottieEl)==null||g.playSegments([0,1],!0)}n=f}});
return _.u("animated-icon",{class:"ytAnimatedIconHost"},_.u(_.PF,{cond:function(){var K,k;return!((K=H())==null||!K.lottiePlayerProps.animationConfig.path||((k=H())==null?0:k.lazyLoad)&&!S()||v())},
then:function(){return _.u(_.pn,{data:R,animationName:L,className:B,animationRef:Y})},
else:q}))},"B");_.mD(D3T);var Dmh,yhK;Dmh=_.xl(function(q){var Z=_.Iw(),w=_.Iw(),r=_.Iw(),Y=_.A7(),C=_.A7(),d=_.A7(),O=_.g6(_.p6,function(){return q.data().stateEntityStoreKey}),H=_.g6(br8,function(){var $g,De;
return(De=($g=q.data().notificationStateEntityStoreKeys)==null?void 0:$g.subsNotificationStateKey)!=null?De:""}),L=function(){return!q.data().enableSubscribeButtonPostClickAnimation},S=_.P(_.qo(0,void 0,"LZz2ld")),v=S.next().value,R=S.next().value;
S=_.P(_.qo(0,void 0,"DTJZzd"));var B=S.next().value,n=S.next().value;S=_.P(_.qo(!1,void 0,"vYdJ9e"));var x=S.next().value,K=S.next().value;S=_.P(_.qo(!1,void 0,"HsSmhb"));var k=S.next().value,G=S.next().value,rz=!1,f="";S=_.P(_.qo(!1,void 0,"p20o0d"));var eO=S.next().value,g=S.next().value,H6=function(){G(!0);_.$L(_.v5,function(){G(!1)},1500)};
_.L7(function(){var $g=k();gX(function(){$g&&!L()&&O()&&ZET(Y,C,d)})});
_.L7(function(){var $g=O();gX(function(){if(!L()&&$g){var De;((De=q.animateWidth)==null?0:De.call(q))&&qdT(Z.value,!!$g.subscribed,v(),B());$g.subscribed&&$g.key===f&&H6();$g.key&&(f=$g.key)}})});
S=_.$6(function(){var $g,De,n9,Rh=q.data(),xg=!(($g=O())==null||!$g.subscribed);$g=!((De=q.isOverlay)==null||!De.call(q));De=x()?Z.value:void 0;var ZF=(n9=H())==null?void 0:n9.state;n9=eO();gyT(Rh,ZF);return qA({model:Rh,subscribed:xg,isOverlay:$g,element:De,notificationState:ZF,disableTextEllipsis:!0,focused:n9})},void 0,"CJfYod");
var nX=function(){var $g;if(!L()&&(($g=q.animateWidth)==null?0:$g.call(q))&&(w==null?0:w.value)&&(r==null?0:r.value)&&!rz){$g=O();var De=_.P(($g==null?0:$g.subscribed)?[w,r]:[r,w]),n9=De.next().value;De=De.next().value;n9=Math.ceil(n9.value.getBoundingClientRect().width);De=Math.ceil(De.value.getBoundingClientRect().width);R(n9);n(De);qdT(Z.value,!($g==null||!$g.subscribed),n9,De);rz=!0}},Qj=_.fn(function($g){nX();
var De=O();De&&($g.detail.endpoint.subscribeEndpoint||$g.detail.endpoint.unsubscribeEndpoint)&&yVX(Z.value,!De.subscribed,De)}),SO=function(){var $g=_.t().resolve(_.Gj(_.er));
$g&&g($g.isKeyBoardInUse())},Te=function(){g(!1)};
_.sU("yt-player-subscribe",function($g){var De=O();De&&$g===q.data().channelId&&yVX(Z.value,!0,De)});
_.sU("yt-player-unsubscribe",function($g){var De=O();De&&$g===q.data().channelId&&yVX(Z.value,!1,De)});
_.sU("yt-update-subscribe-button-action",function($g){$g=_.J($g,m32);var De=O();De&&$g&&$g.channelId===q.data().channelId&&yVX(Z.value,!!$g.subscribed,De)});
_.Ls(function(){Z.value&&(Z.value.addEventListener("focusin",SO),Z.value.addEventListener("focusout",Te));_.WO(_.v5,function(){nX()});
K(!0);_.SG(function(){Z.value&&(Z.value.removeEventListener("focusin",SO),Z.value.removeEventListener("focusout",Te))})});
var Ze=function(){var $g,De,n9;if(n9=!(($g=O())==null||!$g.subscribed))$g=!!q.data().disableNotificationBell,n9=(De=H())==null?void 0:De.state,n9=!$g&&!!n9;return n9},W1=function(){var $g;
return!(($g=O())==null?0:$g.subscribed)},A2=function(){var $g,De;
if(De=W1()){De=!!q.data().disableNotificationBell;var n9=($g=H())==null?void 0:$g.state;De=!De&&!!n9}return De},f9={},Dl={};
return _.u("yt-subscribe-button-view-model",{class:_.GL("yt-subscribe-button-view-model-wiz",(f9["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var $g,De;return!(($g=O())==null||!$g.subscribed)&&((De=q.animateWidth)==null?void 0:De.call(q))&&k()},f9["yt-subscribe-button-view-model-wiz--hidden"]=function(){var $g;
return!(($g=O())==null?0:$g.subscribed)&&q.data().hideWhenUnsubscribed},f9)),
el:Z,"on:yt-service-request-sent":Qj},_.u(pnX,{backgroundLottieRef:Y,foregroundLottieRef:C,wrapperClass:_.GL("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(Dl["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var $g;return(($g=q.animateWidth)==null?void 0:$g.call(q))&&k()},Dl["yt-subscribe-button-view-model-wiz__static-width"]=function(){var $g;
return!(($g=q.animateWidth)==null?0:$g.call(q))},Dl)),
disableAnimation:L},_.u("div",{el:w,class:"yt-subscribe-button-view-model-wiz__container"},_.u(X_,{data:S,icon:function(){return _.u(_.PF,{cond:Ze,then:function(){var $g=function(){var De;return h_N((De=H())==null?void 0:De.state)};
return _.u(_.PF,{cond:function(){return L()||$g()!=="NOTIFICATIONS_NONE"},
then:function(){return _.u(_.q0,{icon:$g})},
else:function(){return _.u(AVe,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:d})}})}})},
secondaryIconName:function(){return Ze()?"EXPAND":void 0}}))),_.u("div",{el:r,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.u(_.PF,{cond:function(){var $g;return(($g=q.animateWidth)==null?void 0:$g.call(q))&&!L()&&!rz},
then:function(){return _.u(X_,{data:_.$6(function(){var $g;return qA({model:q.data(),subscribed:W1(),isOverlay:!(($g=q.isOverlay)==null||!$g.call(q)),element:Z.value,disableTextEllipsis:!0})},void 0,"dfYtSe"),
iconName:function(){var $g;return A2()?h_N(($g=H())==null?void 0:$g.state):void 0},
secondaryIconName:function(){return A2()?"EXPAND":void 0}})}})))},"C");
_.hQX=_.b("web_enable_sink_yt_subscribe_button_view_model")?Dmh:D3T;yhK=_.b("web_enable_sink_yt_subscribe_button_view_model")?Dmh:_.mq(D3T);Dmh.idomCompat=!0;var wn1=new _.F$("RENDERER_STAMPER_OPTIONS_TOKEN");var V0;_.dp=new u6v;V0=new Map;var v0T="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),tPO=["notificationTextRenderer","notificationMultiActionRenderer"],jdN="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
Sdz=VPO(function(q){return _.jG(q==null?void 0:q.targetId)}).useUpdatableData;var LEz=0;_.Hx.debugName="EjJbCe";var iEh=_.xl(function(q){var Z=q.data;var w=_.g6(_.p6,function(){return Z().subscriptionStateEntityKey});
return _.u(_.PF,{cond:function(){var r=Z(),Y=w();return!r.hideWhenUnsubscribed||(Y==null?0:Y.subscribed)?_.J(Z().button,_.Wx):void 0},
then:function(r){return _.u("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.u(_.vx,{data:r,buttonOverrides:function(){return{toggled:!Z().isPurchasable}}}))}})},"D");var Jhz=_.Px({buttonViewModel:_.vx,subscribeButtonViewModel:_.hQX,downloadButtonViewModel:N$p,toggleButtonViewModel:_.uo,subscribePlusButtonViewModel:iEh});_.mD(B$N);var g07=_.xl(function(q){return _.u(_.Hx,{data:function(){return q.actionRow().actions}},{buttonViewModel:function(Z){var w=Z.data;
return _.u(o6,{isRow:q.isRow,isIconOnlyButton:function(){return aRI(w())},
useIntrinsicWidth:q.useIntrinsicWidth},_.u(_.vx,{data:w}))},
subscribeButtonViewModel:function(Z){return _.u(o6,{isRow:q.isRow},_.u(yhK,{data:Z.data,isOverlay:!1,animateWidth:function(){return!q.isRow()}}))},
downloadButtonViewModel:function(Z){var w=Z.data;return _.u(o6,{isRow:q.isRow,isIconOnlyButton:function(){return!!w().playlistId}},_.u(N$p,{data:w}))},
toggleButtonViewModel:function(Z){var w=Z.data;return _.u(o6,{isRow:q.isRow,isIconOnlyButton:function(){var r=w();return aRI(_.J(r.isToggled?r.toggledButtonViewModel:r.defaultButtonViewModel,_.Wx))}},_.u(_.uo,{data:w}))},
subscribePlusButtonViewModel:function(Z){return _.u(o6,{isRow:q.isRow},_.u(iEh,{data:Z.data}))}})},"E"),o6=_.xl(function(q){var Z={};
return _.u("div",{class:_.GL("yt-flexible-actions-view-model-wiz__action",(Z["yt-flexible-actions-view-model-wiz__action--row-action"]=q.isRow,Z["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=q.useIntrinsicWidth,Z["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,Z["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=q.isIconOnlyButton,Z))},q.children)},"F"),qx7=_.xl(function(q){var Z=function(){var r;
return((r=q.layout)==null?void 0:r.call(q))===1},w={};
return _.u("yt-flexible-actions-view-model",{class:_.GL("yt-flexible-actions-view-model-wiz",q.className,(w["yt-flexible-actions-view-model-wiz--inline"]=function(){return!Z()},w["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return q.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},w))},_.u(_.dA,{each:function(){return q.data().actionsRows||[]}},function(r){return _.u(_.PF,{cond:Z,
then:function(){return _.u("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.u(g07,{actionRow:r,isRow:Z,useIntrinsicWidth:function(){return!!q.data().respectActionIntrinsicWidth}}))},
else:function(){return _.u(g07,{actionRow:r,isRow:Z})}})}))},"G"),Zv7=_.b("web_enable_sink_lockups_batch")?qx7:B$N,w2g=_.b("web_enable_sink_lockups_batch")?qx7:_.mq(B$N);
qx7.idomCompat=!0;_.xc(w2g,"yt-flexible-actions-view-model",{props:{data:_.zG,layout:_.zG,justifyContentOverride:_.zG,className:_.zG}});_.mD(n0N);var rNX,k_2;rNX=_.xl(function(q){var Z=_.g6(ul,function(){var Y;return(Y=q.data().dislikeEntityKey)!=null?Y:""}),w=_.$6(function(){var Y=Z();
return Y?Y.likeStatus==="DISLIKE":_.J(q.data().toggleButtonViewModel,_.o5).isToggled},void 0,"D8oIFb"),r=_.$6(function(){return Object.assign({},_.J(q.data().toggleButtonViewModel,_.o5),{isToggled:w()})},void 0,"shaCXe");
return _.u("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.u(_.uo,{data:r,buttonShapeOverrides:q.buttonShapeOverrideables,onToggle:function(Y){var C=Z();C&&Y!==(C.likeStatus==="DISLIKE")&&C.key&&_.Bp(_.LV("likeStatusEntity",C.key,{likeStatus:Y?"DISLIKE":"INDIFFERENT",hadUserInteraction:Y}))}}))},"H");
k_2=_.b("web_enable_sink_dislike_button_view_model")?rNX:n0N;_.YxW=_.b("web_enable_sink_dislike_button_view_model")?rNX:_.mq(n0N);rNX.idomCompat=!0;_.$QX=_.mq(E09);_.mD(E09);_.mD(KE9);_.Mx(KE9,"segmented-like-dislike-button-view-model",{propNames:["data"]});var N$2=0;_.xc(rNN,"account-link-button-view-model",{props:{data:_.zG,className:_.EL,setMinWidth:_.EL,forceIconOnly:_.EL}});_.He("menuRenderer","menuRenderer","ytd-menu-renderer");
var e0h={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"}},
CEm=_.b("web_fix_missing_action_buttons")?100:200,u$=function(){var q=_.N.apply(this,arguments)||this;q.safeArea=!_.b("kevlar_flex_menu_safe_area_killswitch");q.tonalOverride=!1;q.threeDotSize="M";q.isOverlay=!1;q.useOverlayDark=!1;q.topLevelIconsOnly=!1;q.JSC$12364_lastWidth=0;q.maybeUpdateFlexibleMenu=function(){_.b("web_fix_missing_action_buttons")?requestAnimationFrame(q.maybeUpdateFlexibleMenuImpl):q.maybeUpdateFlexibleMenuImpl()};
q.maybeUpdateFlexibleMenuImpl=function(){var Z;if((Z=q.data)!=null&&Z.flexibleItems){q.maybeFlushDebouncer();Z=q.hostElement.clientWidth;var w=Z>q.JSC$12364_lastWidth,r,Y=((r=q.topLevelButtonsContainer)==null?void 0:r.scrollHeight)||0,C;r=((C=q.flexibleItemButtonsContainer)==null?void 0:C.scrollHeight)||0;C=q.hostElement.scrollHeight>Math.max(Y,r)+8;w?(q.resetFlexibleItems(),q.JSC$12364_lastWidth=q.hostElement.clientWidth,q.maybeUpdateFlexibleMenu()):C&&(q.shrinkFlexibleMenu(),q.JSC$12364_lastWidth=
Z)}};
q.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){q.onOverflowTap()},
iconPosition:"icon-only",style:q.isOverlay?q.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:q.threeDotSize,state:"active",accessibilityLabel:q.computeAccessibilityLabel(q.data)},q.threeDotButtonOverride)};
q.onOverflowTap=function(){if(q.data.fetchMenuCommand)_.t().resolve(_.ps).resolveCommand(q.data.fetchMenuCommand,{form:{element:q.hostElement}});else if(q.data.isDisabled&&q.data.disabledCommand)_.f5(q.data.disabledCommand,q.hostElement);else{var Z=q.createMenuRendererVe(),w={items:q.items};q.data.menuPopupAccessibility&&(w.menuPopupAccessibility=q.data.menuPopupAccessibility);q.data.footer&&(w.footer=q.data.footer);Z={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:w},veData:Z}};_.t().resolve(_.Ha).openSheet({openPopupActionCommand:Z},
q.hostElement)}};
return q};
_.z(u$,_.N);_.e=u$.prototype;_.e.updateButtonOverrides=function(){if(!_.b("menu_renderer_label_update_upkillswitch")){var q=_.E(this.hostElement).querySelector("yt-button-view-model");q&&(q.buttonOverrides=this.buttonOverrides)}};
_.e.computeHasItems=function(){var q;return((q=this.topLevelButtonData)==null?void 0:q.length)||this.hasFlexibleItems};
_.e.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.e.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.po(this.hostElement,{"--ytd-menu-renderer-button-color":_.oJ(this.data.iconColor)}))};
_.e.onStamperFinished=function(){this.JSC$12364_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.e.setupFlexibleMenu=function(){var q=this,Z;(Z=this.data)!=null&&Z.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.pV(this.maybeUpdateFlexibleMenu,CEm,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){q.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))};
_.e.maybeFlushDebouncer=function(){if(_.b("web_replace_formatted_with_attributed_string")){var q;(q=this.topLevelButtons)==null||q.forEach(function(w){var r;(w=(r=w.getElementsByTagName("yt-attributed-string"))==null?void 0:r[0])&&zlz(w)});
var Z;(Z=this.flexibleItemButtons)==null||Z.forEach(function(w){var r;(w=(r=w.getElementsByTagName("yt-attributed-string"))==null?void 0:r[0])&&zlz(w)})}};
_.e.resetFlexibleItems=function(){var q;if((q=this.data)!=null&&q.flexibleItems){_.b("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var Z;this.flexAsTopLevelButtons=(Z=this.data.flexibleItems)==null?void 0:Z.map(function(w){return _.J(w,_.FGX).topLevelButton});
_.b("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.e.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.e.shrinkFlexibleMenu=function(){var q;(q=this.flexAsTopLevelButtons)!=null&&q.length&&(this.flexAsTopLevelButtons=[].concat(_.Ju(this.flexAsTopLevelButtons.slice(0,-1))))};
_.e.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:e0h,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:e0h,events:!0}}};
_.e.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.e.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.e.detached=function(){this.icon="yt-icons:more_vert"};
_.e.computeTopLevelButtonData=function(q){if(!q)return[];var Z;q=(Z=q==null?void 0:q.topLevelButtons)!=null?Z:[];return _.R4.unsafeClone([].concat(_.Ju(q)))};
_.e.computeItems=function(q,Z){if(!q)return[];var w=[];if(Z){var r=(q.flexibleItems||[]).map(function(d){return _.J(d,_.FGX)});
r=_.P(r);for(var Y=r.next();!Y.done;Y=r.next())Y=Y.value,Z.includes(Y.topLevelButton)||(Y=Y.menuItem)&&w.push(Y)}var C;q=(C=q==null?void 0:q.items)!=null?C:[];return[].concat(_.Ju(w),_.Ju(q))};
_.e.computeMenuActive=function(q,Z){return q||Z};
_.e.onPopupOpened=function(){this.overlayOpen=!0;_.hy(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.e.onPopupClosed=function(){this.overlayOpen=!1;_.hy(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.e.onPopupCanceled=function(){this.overlayOpen=!1;_.hy(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.e.computeAccessibilityLabel=function(q){return this.get("accessibility.accessibilityData.label",q)};
_.e.isHidden=function(q,Z){return this.tonalOverride||!q?!0:q.fetchMenuCommand||q.isDisabled&&q.disabledCommand?!1:!(Z==null?0:Z.length)};
_.e.isModernOverflowHidden=function(q,Z){return this.tonalOverride&&q?q.fetchMenuCommand?!1:!(Z==null?0:Z.length):!0};
_.e.createMenuRendererVe=function(){var q=this.data.trackingParams,Z=_.b5(),w=_.Rs();return q&&Z&&w?(q=_.wa(q),w=_.C6(7591),_.b("combine_ve_grafts")?_.AA(_.iy(),w,q):_.T7(Z,q,w),w):null};
_.My.Object.defineProperties(u$.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.flexAsTopLevelButtons)==null||!q.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
u$.prototype.onPopupCanceled=u$.prototype.onPopupCanceled;u$.prototype.onPopupClosed=u$.prototype.onPopupClosed;u$.prototype.onPopupOpened=u$.prototype.onPopupOpened;u$.prototype.tonalOverrideChanged=u$.prototype.tonalOverrideChanged;u$.prototype.resetFlexibleItems=u$.prototype.resetFlexibleItems;u$.prototype.setupFlexibleMenu=u$.prototype.setupFlexibleMenu;u$.prototype.iconButtonColorChanged=u$.prototype.iconButtonColorChanged;u$.prototype.updateButtonOverrides=u$.prototype.updateButtonOverrides;
_.X([_.U(_.Et),_.A("design:type",Object)],u$.prototype,"ytdOpenPopupBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],u$.prototype,"ytRendererstamperBehavior",void 0);_.X([_.fo("#button-shape"),_.A("design:type",Nn)],u$.prototype,"buttonShape",void 0);_.X([_.fo("#button"),_.A("design:type",Object)],u$.prototype,"button",void 0);
_.X([_.F(),_.A("design:type",Object)],u$.prototype,"data",void 0);_.X([_.F({computed:"computeTopLevelButtonData(data)"}),_.A("design:type",Array)],u$.prototype,"topLevelButtonData",void 0);_.X([_.F(),_.A("design:type",Array)],u$.prototype,"flexAsTopLevelButtons",void 0);_.X([_.F({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.A("design:type",Array)],u$.prototype,"items",void 0);_.X([_.F({value:"yt-icons:more_vert"}),_.A("design:type",String)],u$.prototype,"icon",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],u$.prototype,"safeArea",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.A("design:type",Boolean)],u$.prototype,"menuActive",void 0);_.X([_.F(),_.A("design:type",Boolean)],u$.prototype,"menuFocused",void 0);_.X([_.F({value:"bottom"}),_.A("design:type",String)],u$.prototype,"buttonTooltipPosition",void 0);_.X([_.F(),_.A("design:type",Boolean)],u$.prototype,"overlayOpen",void 0);
_.X([_.F({value:!0}),_.A("design:type",Boolean)],u$.prototype,"forceIconButton",void 0);_.X([_.F(),_.A("design:type",Boolean)],u$.prototype,"styleActionButton",void 0);_.X([_.F(),_.A("design:type",Boolean)],u$.prototype,"disableTextTransformOnButtons",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],u$.prototype,"tonalOverride",void 0);_.X([_.F(),_.A("design:type",Object)],u$.prototype,"threeDotSize",void 0);
_.X([_.F(),_.A("design:type",Object)],u$.prototype,"threeDotButtonOverride",void 0);_.X([_.F(),_.A("design:type",Object)],u$.prototype,"isOverlay",void 0);_.X([_.F(),_.A("design:type",Object)],u$.prototype,"useOverlayDark",void 0);_.X([_.F({computed:"computeButtonOverride(tonalOverride)"}),_.A("design:type",Object)],u$.prototype,"buttonOverride",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],u$.prototype,"hasCustomIconColor",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("flexAsTopLevelButtons"),_.A("design:type",Object),_.A("design:paramtypes",[])],u$.prototype,"hasFlexibleItems",null);_.X([_.F({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.A("design:type",Boolean)],u$.prototype,"hasItems",void 0);_.X([_.F(),_.A("design:type",Object)],u$.prototype,"topLevelIconsOnly",void 0);
_.X([_.M("topLevelIconsOnly"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],u$.prototype,"updateButtonOverrides",null);_.X([_.I("topLevelIconsOnly"),_.A("design:type",Object),_.A("design:paramtypes",[])],u$.prototype,"buttonOverrides",null);_.X([_.fo("#top-level-buttons-computed"),_.A("design:type",HTMLElement)],u$.prototype,"topLevelButtonsContainer",void 0);_.X([_.D5(".top-level-buttons > *"),_.A("design:type",Array)],u$.prototype,"topLevelButtons",void 0);
_.X([_.fo("#flexible-item-buttons"),_.A("design:type",HTMLElement)],u$.prototype,"flexibleItemButtonsContainer",void 0);_.X([_.D5("#flexible-item-buttons > *"),_.A("design:type",Array)],u$.prototype,"flexibleItemButtons",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],u$.prototype,"iconButtonColorChanged",null);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],u$.prototype,"setupFlexibleMenu",null);_.X([_.g3("topLevelIconsOnly"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],u$.prototype,"resetFlexibleItems",null);_.X([_.M("tonalOverride"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],u$.prototype,"tonalOverrideChanged",null);
_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],u$.prototype,"onPopupOpened",null);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],u$.prototype,"onPopupClosed",null);_.X([_.m2("yt-popup-canceled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],u$.prototype,"onPopupCanceled",null);
_.p(u$,"ytd-menu-renderer",function(){if(SdW===void 0){var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);SdW=q}q=SdW;return q},{mode:_.NT("kevlar_poly_si_batch_j030")?1:2});var PE9;var dQ1;_.NA=_.xl(function(q){var Z=q.data;var w=function(){if(Z().icon)a:{var r={iconName:Z().icon};for(var Y=_.t().resolve(_.my),C=_.P([12,24]),d=C.next();!d.done;d=C.next()){var O=d.value;d=Object.assign({},r,{iconStyle:"youtube_fill",iconSize:O});O=Object.assign({},r,{iconStyle:"youtube_outline",iconSize:O});if(Y.resolveIcon(d)){r=d;break a}if(Y.resolveIcon(O)){r=O;break a}}r=void 0}else r=void 0;return r};
q={};return _.u("badge-shape",{class:_.GL("badge-shape-wiz",function(){return e0T(Z().type)},(q["badge-shape-wiz--overlay"]=function(){return Z().isOverlay},q["badge-shape-wiz--ads-include-dot"]=function(){return Z().adsIncludeDot},q["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(Z().type){case 16:case 17:case 18:var r=!0;
break a;default:r=!1}return r},q["badge-shape-wiz--status-badge"]=function(){a:switch(Z().type){case 11:case 12:case 13:case 14:case 15:var r=!0;
break a;default:r=!1}return r},q["badge-shape-wiz--no-text"]=function(){return!Z().text},q["badge-shape-wiz--modern"]=function(){return Z().modern},q)),
style:_.y1({"background-color":function(){var r;return(r=Z().customColors)==null?void 0:r.backgroundColor}}),
role:function(){return Z().accessibilityText?"img":void 0},
"aria-label":function(){return Z().accessibilityText}},_.u(_.PF,{cond:function(){return Z().animation},
then:function(r){return _.u(_.pn,{className:"badge-shape-wiz__icon",data:r,animationName:function(){return r().animationConfig.name||""}})}}),_.u(_.PF,{cond:function(){var r;
return w()&&!((r=Z())==null?0:r.animation)},
then:function(){return _.u("div",{class:"badge-shape-wiz__icon"},_.u(mVI,{data:function(){return w()}}))}}),_.u("div",{class:"badge-shape-wiz__text"},function(){var r;
return(r=Z())==null?void 0:r.text}))},"I");
_.NA.idomCompat=!0;_.xc(_.NA,"badge-shape",{props:{data:_.zG}});var VfK=function(){var q=_.N.apply(this,arguments)||this;q.systemIcons=_.b("kevlar_system_icons");q.animated=_.b("animated_live_badge_icon");q.useBadgeShape=_.b("web_badge_shape_defrag");return q};
_.z(VfK,_.N);_.e=VfK.prototype;_.e.addTooltips=function(){for(var q=_.E(this.hostElement).querySelectorAll(".badge"),Z=0,w;w=q[Z++];){var r=this.repeatElement.itemForElement(w);w=_.E(w);w.lastChild&&w.lastChild.is==="tp-yt-paper-tooltip"&&w.removeChild(w.lastChild);if(r=r.metadataBadgeRenderer&&r.metadataBadgeRenderer.tooltip){var Y=_.xb("tp-yt-paper-tooltip");(0,_.GI)(Y).textContent=r;Y.setAttribute("position","top");w.appendChild(Y)}}};
_.e.badgesChanged=function(){var q=this;_.zB().parkOrScheduleJob(function(){q.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.e.standaloneRoundedBadgeChanged=function(){var q=this.useRoundedBadge?this.useRoundedBadge:void 0;q&&(this.useRoundedBadge=q)};
_.e.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.e.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.e.computeStyle=function(q){_.b("enable_html5_teal_ad_badge")&&q==="BADGE_STYLE_TYPE_AD"&&(q="badge-style-type-ad-alternate");_.b("kevlar_ytb_live_badges")&&q==="BADGE_STYLE_TYPE_LIVE_NOW"&&(q="badge-style-type-live-now-alternate");return q?q.toLowerCase().replace(/_/g,"-"):""};
_.e.computeRole=function(q){return this.computeAriaLabel(q)?"img":"status"};
_.e.computeAriaLabel=function(q){var Z;return(q==null?void 0:(Z=q.accessibilityData)==null?void 0:Z.label)||(q==null?void 0:q.label)};
_.e.computeBadgeShape=function(q){var Z;if(q){var w,r=Yxz(q.style),Y=$QN(q.style),C=q.label,d=((w=q.accessibilityData)==null?void 0:w.label)||q.label;q=(Z=q.icon)==null?void 0:Z.iconType;Z={type:r,brNzRatingBadgeType:Y,text:C,accessibilityText:d,icon:q!=="PREMIUM"?q:void 0}}else Z={};return Z};
_.e.updateComputedBadges=function(q,Z,w){var r=this;(Z=Z?[Z]:w?[w]:void 0)?this.computedBadges=Z:this.computedBadges=q==null?void 0:q.filter(function(Y){var C;if((C=Y.metadataBadgeRenderer)==null?0:C.groups){C=!1;Y=_.P(Y.metadataBadgeRenderer.groups);for(var d=Y.next();!d.done;d=Y.next()){d=d.value;var O=void 0;C=C||((O=r.hiddenBadgeGroups)==null?void 0:O.includes(d))}return!C}return!0})};
_.e.useFilledIcons=function(q){return _.b("kevlar_system_icons")&&(q==="AUDIO_BADGE"||q==="CHECK_CIRCLE_THICK"||q==="OFFICIAL_ARTIST_BADGE"||q==="SPONSORSHIP_STAR"||q==="PERSON_RADAR_FILLED"||q==="PERSON_RADAR")};
_.e.computeIcon=function(q){var Z,w;q=q==null?void 0:(Z=q.metadataBadgeRenderer)==null?void 0:(w=Z.icon)==null?void 0:w.iconType;if(q!=="PREMIUM"&&q)return _.Xl(q)};
_.e.computeStandaloneBadge=function(q){var Z;q=q==null?void 0:(Z=q.icon)==null?void 0:Z.iconType;return q==="PREMIUM_STANDALONE"||q==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
var LL=VfK;LL.prototype.hiddenBadgeGroupsChanged=LL.prototype.hiddenBadgeGroupsChanged;LL.prototype.standaloneBadgeChanged=LL.prototype.standaloneBadgeChanged;LL.prototype.standaloneRoundedBadgeChanged=LL.prototype.standaloneRoundedBadgeChanged;LL.prototype.badgesChanged=LL.prototype.badgesChanged;_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],LL.prototype,"hidden",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],LL.prototype,"componentBehavior",void 0);
_.X([_.F(),_.A("design:type",Array)],LL.prototype,"badges",void 0);_.X([_.F(),_.A("design:type",Object)],LL.prototype,"topStandaloneBadge",void 0);_.X([_.F(),_.A("design:type",Object)],LL.prototype,"bottomStandaloneBadge",void 0);_.X([_.F(),_.A("design:type",Object)],LL.prototype,"computedBadges",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],LL.prototype,"mediumFontAdBadge",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],LL.prototype,"useRoundedBadge",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],LL.prototype,"largeFontAdBadge",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],LL.prototype,"overlayAd",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],LL.prototype,"overlayPremium",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],LL.prototype,"noDotAdBadge",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],LL.prototype,"collectionTruncate",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],LL.prototype,"isThumbnailBadge",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],LL.prototype,"wrapBadges",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],LL.prototype,"systemIcons",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],LL.prototype,"animated",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],LL.prototype,"useBadgeShape",void 0);_.X([_.F({value:[]}),_.A("design:type",Array)],LL.prototype,"hiddenBadgeGroups",void 0);_.X([_.fo("#repeat"),_.A("design:type",eH)],LL.prototype,"repeatElement",void 0);_.X([_.g3("badges"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LL.prototype,"badgesChanged",null);
_.X([_.g3("useRoundedBadge"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LL.prototype,"standaloneRoundedBadgeChanged",null);_.X([_.g3("topStandaloneBadge","bottomStandaloneBadge"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LL.prototype,"standaloneBadgeChanged",null);_.X([_.g3("hiddenBadgeGroups"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LL.prototype,"hiddenBadgeGroupsChanged",null);
LL=_.X([_.l({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],LL);
var OvD=_.Fl()(LL,"ytd-badge-supported-renderer",function(){if(dQ1===void 0){var q=document.createElement("template");_.a(q,'\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"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);dQ1=q}q=dQ1;return q},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.NT("kevlar_poly_si_batch_j053")?1:2});var SR,Hve=function(){var q=_.N.apply(this,arguments)||this;q.iconType="STAR";q.standardizeIconSize=_.b("kevlar_system_icons");q.mediaHoverOverlayInitialVisibility=_.b("enable_top_landscape_image_button_command_web");q.noBottomMargin=!1;q.thumbnailObjectFit="CONTAIN";q.thumbnailFitHeight=!0;q.actionMap={"yt-mute-ad-action":"handleMuteAd"};return q};
_.z(Hve,_.N);_.e=Hve.prototype;
_.e.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"}}}};
_.e.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",SR.JSC$12376_DEFAULT_CLICK_LOCATION_BEHAVIOR,SR.JSC$12376_CLICK_LOCATION_ID_MAP))};
_.e.onTap=function(q){if(!_.b("use_on_click_for_desktop_display_ad"))this.onTapOrClick(q)};
_.e.onClick=function(q){if(_.b("use_on_click_for_desktop_display_ad"))this.onTapOrClick(q)};
_.e.onTapOrClick=function(q){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,q,!1)};
_.e.updateMediaBackgroundImage=function(){var q=this.get("data.image.thumbnail.thumbnails");q&&(q=_.TL(q,0))&&_.po(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+q+")"})};
_.e.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var q=0;q<this.data.impressionEndpoints.length;q++){var Z=this.data.impressionEndpoints[q];Z.clickTrackingParams&&delete Z.clickTrackingParams;_.t().resolve(_.ps).resolveCommand(Z,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var w;((w=this.data)==null?0:w.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.e.handleMuteAd=function(){};
_.e.attached=function(){var q=this;_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&q.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.e.detached=function(){_.b("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.My.Object.defineProperties(Hve.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.titleText)return"";var Z;return _.dT("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((Z=this.data)==null?void 0:Z.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.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 q;return!((q=this.data)==null||!q.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"}}});
var va=SR=Hve;SR.prototype.onClick=SR.prototype.onClick;SR.prototype.onTap=SR.prototype.onTap;SR.prototype.dataChanged=SR.prototype.dataChanged;va.VERTICAL_CAROUSEL_ITEM_IMAGE_WIDTH=135;
va.JSC$12376_CLICK_LOCATION_ID_MAP=_.b("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"]]);
va.JSC$12376_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.b("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"}];_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],va.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.vj),_.A("design:type",Object)],va.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],va.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.Iy.YtSparklesClickLocationBehavior),_.A("design:type",Object)],va.prototype,"ytSparklesClickLocationBehavior",void 0);_.X([_.U(uc),_.A("design:type",Object)],va.prototype,"ytdActiveViewBehavior",void 0);_.X([_.U([_.KK.YtActionHandlerBehavior]),_.A("design:type",Object)],va.prototype,"actionHandlerBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],va.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],va.prototype,"clickCommand",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.SZ}),_.A("design:type",Boolean)],va.prototype,"miniMode",void 0);_.X([_.F(),_.A("design:type",String)],va.prototype,"iconType",void 0);_.X([_.I("data.titleText"),_.A("design:type",String),_.A("design:paramtypes",[])],va.prototype,"titleAriaLabel",null);
_.X([_.I("data.rating"),_.A("design:type",Object),_.A("design:paramtypes",[])],va.prototype,"getRating",null);_.X([_.I("data.price"),_.A("design:type",Object),_.A("design:paramtypes",[])],va.prototype,"getPrice",null);_.X([_.I("data.thirdLine"),_.A("design:type",Object),_.A("design:paramtypes",[])],va.prototype,"getThirdLine",null);_.X([_.I("data.fourthLine"),_.A("design:type",Object),_.A("design:paramtypes",[])],va.prototype,"getFourthLine",null);
_.X([_.I("data.fifthLine"),_.A("design:type",Object),_.A("design:paramtypes",[])],va.prototype,"getFifthLine",null);_.X([_.I("getRating"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],va.prototype,"computeRatingHidden",null);_.X([_.I("getPrice"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],va.prototype,"computePriceHidden",null);_.X([_.I("getThirdLine"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],va.prototype,"computeThirdLineHidden",null);
_.X([_.I("getFourthLine"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],va.prototype,"computeFourthLineHidden",null);_.X([_.I("getFifthLine"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],va.prototype,"computeFifthLineHidden",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.energyIcon"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],va.prototype,"hasEnergyIcon",null);
_.X([_.I("computePriceHidden","computeRatingHidden"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],va.prototype,"computeSecondaryTextHidden",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],va.prototype,"standardizeIconSize",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],va.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],va.prototype,"noBottomMargin",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("data.layout"),_.A("design:type",String),_.A("design:paramtypes",[])],va.prototype,"layout",null);_.X([_.I("data.layout"),_.A("design:type",Object),_.A("design:paramtypes",[])],va.prototype,"mediaThumbnailWidth",null);_.X([_.I("layout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],va.prototype,"useRoundedBadge",null);_.X([_.F(),_.A("design:type",String)],va.prototype,"thumbnailObjectFit",void 0);
_.X([_.F(),_.A("design:type",Object)],va.prototype,"thumbnailFitHeight",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],va.prototype,"dataChanged",null);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],va.prototype,"onTap",null);_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],va.prototype,"onClick",null);
va=SR=_.X([_.l({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],va);
_.p(va,"ytd-display-ad-renderer",function(){if(PE9!==void 0)return PE9;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return PE9=q},{mode:1});var WQe;var o9D;var uq9;var CE8=new Map;var LQg=!1;var Sx7=function(){var q=_.N.apply(this,arguments)||this;q.DEFAULT_TOOLTIP_OFFSET="10";q.TOOLTIP_OFFSET_NO_BANNER="-8";q.badges=null;q.noEndpoints=!1;q.wrapText=!1;q.forceVerified=!1;q.tooltipPosition="top";q.compactStyle=!1;q.height=0;q.lineHeight=0;return q};
_.z(Sx7,_.N);_.e=Sx7.prototype;_.e.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.e.attached=function(){var q=this;this.observer=new MutationObserver(function(Z,w){q.handleResized();w.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.e.detached=function(){this.observer&&this.observer.disconnect()};
_.e.logTooltipEvent=function(){_.b("kevlar_wiz_tooltip_event_killswitch")||LQg||(_.PEX("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),LQg=!0)};
_.e.handleWindowResized=function(){this.handleResized()};
_.e.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")))};
_.e.onHeightChanged=function(){if(this.verified){var q=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.zj("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=q:this.textContainerEl.style.marginRight=q}};
_.e.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.zj("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.e.handleResized=function(){var q=this;this.verified&&_.v5.addLowPriorityJob(function(){q.fitBackgroundToText();var Z=getComputedStyle(q.hostElement).lineHeight;Z&&(Z=Z.match(/\d+/))&&Z.length&&(q.lineHeight=Number(Z[0]));q.height=q.lineHeight&&!q.wrapText?q.lineHeight:q.textEl.offsetHeight})};
_.e.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var q=document.createRange(),Z=_.E(this.textEl).children;Z.length>0?q.selectNodeContents(Z[0]):q.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(q.getBoundingClientRect().width)+"px"}};
_.e.computeChannelBadgeStyle=function(q){var Z;if((q==null?0:(Z=q.runs)==null?0:Z.length)&&q.runs[0].textColor)return"--ytd-badge-icon-color:"+_.oJ(q.runs[0].textColor)+";"};
_.My.Object.defineProperties(Sx7.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"?_.UE(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var q=this.get("badges.0.metadataBadgeRenderer.tooltip");if(q)return q}return _.kO(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
var jR=Sx7;jR.prototype.onLineHeightChanged=jR.prototype.onLineHeightChanged;jR.prototype.onHeightChanged=jR.prototype.onHeightChanged;jR.prototype.onChannelNameChanged=jR.prototype.onChannelNameChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],jR.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],jR.prototype,"badges",void 0);_.X([_.F(),_.A("design:type",Object)],jR.prototype,"channelName",void 0);
_.X([_.F(),_.A("design:type",Object)],jR.prototype,"noEndpoints",void 0);_.X([_.F(),_.A("design:type",Object)],jR.prototype,"wrapText",void 0);_.X([_.F(),_.A("design:type",Object)],jR.prototype,"forceVerified",void 0);_.X([_.F(),_.A("design:type",Object)],jR.prototype,"tooltipPosition",void 0);_.X([_.F(),_.A("design:type",String)],jR.prototype,"tooltip",void 0);_.X([_.F(),_.A("design:type",Boolean)],jR.prototype,"hasChannelArt",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],jR.prototype,"compactStyle",void 0);_.X([_.fo("#text-container"),_.A("design:type",HTMLElement)],jR.prototype,"textContainerEl",void 0);_.X([_.fo("#text"),_.A("design:type",Object)],jR.prototype,"textEl",void 0);_.X([_.fo("#verified-tooltip"),_.A("design:type",HTMLElement)],jR.prototype,"verifiedTooltip",void 0);_.X([_.F(),_.A("design:type",Object)],jR.prototype,"height",void 0);
_.X([_.F(),_.A("design:type",Object)],jR.prototype,"lineHeight",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("badges","forceVerified"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],jR.prototype,"verified",null);_.X([_.I("badges","verified"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],jR.prototype,"hideBadges",null);_.X([_.I("channelName"),_.A("design:type",Object),_.A("design:paramtypes",[])],jR.prototype,"formattedName",null);
_.X([_.I("badges","verified","formattedName"),_.A("design:type",String),_.A("design:paramtypes",[])],jR.prototype,"tooltipText",null);_.X([_.I("hasChannelArt"),_.A("design:type",String),_.A("design:paramtypes",[])],jR.prototype,"tooltipOffset",null);_.X([_.M("channelName"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jR.prototype,"onChannelNameChanged",null);
_.X([_.M("height"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jR.prototype,"onHeightChanged",null);_.X([_.M("lineHeight","height"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jR.prototype,"onLineHeightChanged",null);jR=_.X([_.l({is:"ytd-channel-name",disableElementRegistration:!0})],jR);
_.p(jR,"ytd-channel-name",function(){if(uq9!==void 0)return uq9;var q=document.createElement("template");_.a(q,'\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 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return uq9=q},{mode:_.NT("kevlar_poly_si_batch_j036")?1:2});var tp=function(){var q=_.N.apply(this,arguments)||this;q.standardizeIconSize=_.b("kevlar_system_icons");q.enableModernCommentBadges=_.b("enable_modern_comment_badges");return q};
_.z(tp,_.N);tp.prototype.basicPaletteChanged=function(){var q;(q=this.data.color)!=null&&q.basicColorPaletteData&&_.VB(this.hostElement,this.data.color.basicColorPaletteData)};
tp.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var q,Z=this.get("basicColorPaletteData.backgroundColor",(q=this.data)==null?void 0:q.color),w;q=this.get("basicColorPaletteData.foregroundTitleColor",(w=this.data)==null?void 0:w.color);w={};Z?(Z=_.oJ(Z),w["--ytd-author-comment-badge-background-color"]=Z):(w["--ytd-author-comment-badge-icon-background-color"]="transparent",w["--ytd-author-comment-badge-background-color"]="transparent");q?(Z=_.oJ(q),w["--ytd-author-comment-badge-name-color"]=
Z,w["--ytd-author-comment-badge-icon-color"]=Z):w["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(w).length>0&&_.po(this.hostElement,w)}};
tp.prototype.useFilledIcons=function(q){return _.b("kevlar_system_icons")&&(q==="CHECK_CIRCLE_THICK"||q==="OFFICIAL_ARTIST_BADGE")};
_.My.Object.defineProperties(tp.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
var R6=tp;R6.prototype.colorChanged=R6.prototype.colorChanged;R6.prototype.basicPaletteChanged=R6.prototype.basicPaletteChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],R6.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],R6.prototype,"standardizeIconSize",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],R6.prototype,"enableModernCommentBadges",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data.authorUnifiedVerified"),_.A("design:type",Object),_.A("design:paramtypes",[])],R6.prototype,"verified",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],R6.prototype,"creator",null);
_.X([_.M("data.color.basicColorPaletteData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],R6.prototype,"basicPaletteChanged",null);_.X([_.M("data.color"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],R6.prototype,"colorChanged",null);R6=_.X([_.l({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],R6);
_.p(R6,"ytd-author-comment-badge-renderer",function(){if(o9D!==void 0)return o9D;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return o9D=q},{mode:1});var v9g;var jE9=function(){return _.N.apply(this,arguments)||this};
_.z(jE9,_.N);jE9.prototype.computeThumbnailWidth=function(q){if(q==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
var b$=jE9;b$.communityTabWidth=638;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],b$.prototype,"data",void 0);_.X([_.F({computed:"computeIcon_(data.icon)"}),_.A("design:type",String)],b$.prototype,"icon",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],b$.prototype,"surface",void 0);
_.X([_.F({reflectToAttribute:!0,value:_.b("enable_shrink_image_size_on_web_posts_singleton")}),_.A("design:type",Boolean)],b$.prototype,"searchSxsUx",void 0);b$=_.X([_.l({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],b$);
_.p(b$,"ytd-backstage-image-renderer",function(){if(v9g!==void 0)return v9g;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return v9g=q},{mode:1});var tf7;var R07=function(){var q=_.N.apply(this,arguments)||this;q.isLoading=!1;q.selectedItemIndex=-1;return q};
_.z(R07,_.N);_.e=R07.prototype;_.e.computeIsChannelOwner=function(q){if(!q)return!0;q=q[0];return!(q&&(q.signinEndpoint||q.selectServiceEndpoint))};
_.e.computeIsImagePoll=function(q){return(q==null?void 0:q.type)==="POLL_TYPE_IMAGE"};
_.e.computeIsTotalVotesDisabled=function(q){return!(q==null?0:q.totalVotes)};
_.e.thumbnailSrc=function(q){var Z,w,r,Y;return(q==null?0:(Z=q.thumbnails)==null?0:(w=Z[0])==null?0:w.url)?_.EX((r=q.thumbnails)==null?void 0:(Y=r[0])==null?void 0:Y.url):void 0};
_.e.progressWidth=function(q){return"width:"+(q?q*100:0)+"%;"};
_.e.textAreaWidth=function(q){return this.isImagePoll?null:"width:"+(q?q*100:0)+"%;"};
_.e.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.e.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var q=this.data.choices,Z=0;Z<q.length;Z++)if(q[Z].selected){this.selectedItemIndex=Z;break}};
_.e.onPopupClosed=function(q,Z){q=Number(this.pollVotes.selected);Z.confirmed&&(this.selectChoice(q,!1),_.yY(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.e.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.e.onYtCommentPollRevert=function(q,Z){Z&&(this.selectChoice(Z.selectedChoiceIndex,!0),this.set("data.totalVotes",Z.totalVotes))};
_.e.onYtServiceRequestSent=function(q,Z){if(Z.actions)for(q=0;q<Z.actions.length;q++){var w=Z.actions[q];_.J(w,ON)&&this.set("data.totalVotes",_.J(w,ON).totalVotes)}};
_.e.onYtServiceRequestCompleted=function(q){var Z=this.get("detail.data.actionResults.0.feedback",q);q=this.get("detail.data.actionResults.0.status",q);if(Z==="FEEDBACK_DESELECT"||Z==="FEEDBACK_SELECT")this.isLoading=!1,q==="STATUS_FAILED"?_.hy(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.e.getEndpoint=function(q,Z){return Z===q?this.data.choices[Z].deselectServiceEndpoint||null:this.data.choices[q].selectServiceEndpoint||null};
_.e.selectChoice=function(q,Z){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var w=0;w<this.data.choices.length;w++){var r;if(q===this.selectedItemIndex){var Y=!1;var C=r=null}else r=(Y=w===q)?this.data.choices[w].voteRatioIfSelected:this.data.choices[w].voteRatioIfNotSelected,C=Y?this.data.choices[w].votePercentageIfSelected:this.data.choices[w].votePercentageIfNotSelected;this.set("data.choices."+w+".voteRatio",r);
this.set("data.choices."+w+".votePercentage",C);this.set("data.choices."+w+".selected",Y)}Z||(this.isLoading=!0,(Z=this.getEndpoint(q,this.selectedItemIndex))&&(_.b("web_ytd_backstage_poll_renderer_command_resolver_ks")?_.qM(this.hostElement,[Z]):_.t().resolve(_.ps).resolveCommand(Z,{form:{element:this.hostElement}})));this.selectedItemIndex=this.selectedItemIndex===q?-1:q};
_.My.Object.defineProperties(R07.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
var Jp=R07;Jp.prototype.onYtServiceRequestCompleted=Jp.prototype.onYtServiceRequestCompleted;Jp.prototype.onYtServiceRequestSent=Jp.prototype.onYtServiceRequestSent;Jp.prototype.onYtCommentPollRevert=Jp.prototype.onYtCommentPollRevert;Jp.prototype.onPopupClosed=Jp.prototype.onPopupClosed;Jp.prototype.dataChanged=Jp.prototype.dataChanged;_.X([_.U(_.Kk),_.A("design:type",Object)],Jp.prototype,"paperItemBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Et),_.A("design:type",Object)],Jp.prototype,"ytdOpenPopupBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Jp.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Jp.prototype,"isLoading",void 0);_.X([_.F({computed:"computeIsChannelOwner(data.choices)"}),_.A("design:type",Boolean)],Jp.prototype,"isChannelOwner",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.A("design:type",Boolean)],Jp.prototype,"isImagePoll",void 0);_.X([_.F({computed:"computeIsTotalVotesDisabled(data)"}),_.A("design:type",Boolean)],Jp.prototype,"isTotalVotesDisabled",void 0);_.X([_.F(),_.A("design:type",Object)],Jp.prototype,"previousPollInfo",void 0);_.X([_.F(),_.A("design:type",Object)],Jp.prototype,"selectedItemIndex",void 0);_.X([_.fo("#poll-votes"),_.A("design:type",Object)],Jp.prototype,"pollVotes",void 0);
_.X([_.I("isChannelOwner"),_.A("design:type",Object),_.A("design:paramtypes",[])],Jp.prototype,"endpointStyle",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jp.prototype,"dataChanged",null);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Jp.prototype,"onPopupClosed",null);
_.X([_.m2("yt-comment-poll-revert"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Jp.prototype,"onYtCommentPollRevert",null);_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],Jp.prototype,"onYtServiceRequestSent",null);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Jp.prototype,"onYtServiceRequestCompleted",null);Jp=_.X([_.l({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Jp);
_.p(Jp,"ytd-backstage-poll-renderer",function(){if(tf7!==void 0)return tf7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return tf7=q},{mode:2});var bvD;var JNX={autoplay:!1,loop:!1},z07={simpleText:""},Bo9=function(){var q=_.N.apply(this,arguments)||this;q.isLoading=!1;q.usesPanelLockup=!1;q.selectedItemIndex=-1;q.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},JNX,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});q.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},JNX,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});q.correctnessAnimationProps=[];q.correctnessAnimationRefs=[];return q};
_.z(Bo9,_.N);_.e=Bo9.prototype;_.e.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.e.computeIsChannelOwner=function(q){if(!q)return!0;q=q[0];return!(q&&(q.signinEndpoint||q.selectServiceEndpoint))};
_.e.computeIsTotalVotesDisabled=function(q){return!(q==null?0:q.totalVotes)};
_.e.computeIsImageQuiz=function(q){return(q==null?void 0:q.type)==="POLL_TYPE_IMAGE"};
_.e.onExplanationChanged=function(){this.expander.reset()};
_.e.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var q=this.data.choices;if(q){this.maybeInitializeQuizLotties(q);for(var Z=0;Z<q.length;Z++)if(q[Z].isSelected||this.isChannelOwner&&q[Z].isCorrect){this.selectedItemIndex=Z;return}this.selectedItemIndex=-1}}};
_.e.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var q=this.selectedItemIndex,Z=Number(this.quizVotes.selected);this.selectChoice(Z);this.sendVoteAction(Z,q);this.quizVotes.selected=-1;var w;q=!((w=this.data)==null?0:w.enableAnimation);this.maybePlayAnswerAnimations(q)}};
_.e.onYtCommentPollRevert=function(q,Z){Z&&(this.selectChoice(Z.selectedChoiceIndex),this.set("data.totalVotes",Z.totalVotes))};
_.e.onYtServiceRequestSent=function(q,Z){if(Z.actions)for(q=_.P(Z.actions),Z=q.next();!Z.done;Z=q.next())(Z=_.J(Z.value,ON))&&this.set("data.totalVotes",Z.totalVotes)};
_.e.onYtServiceRequestCompleted=function(q){var Z=this.get("detail.data.actionResults.0.feedback",q);q=this.get("detail.data.actionResults.0.status",q);if(Z==="FEEDBACK_DESELECT"||Z==="FEEDBACK_SELECT")this.isLoading=!1,q==="STATUS_FAILED"?_.hy(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.e.getAnimationPropsForChoiceIndex=function(q,Z){return Z[q]};
_.e.maybePlayAnswerAnimations=function(q){q=q===void 0?!1:q;var Z;if((Z=this.data)!=null&&Z.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){Z=_.P(this.correctnessAnimationRefs);for(var w=Z.next();!w.done;w=Z.next()){var r=void 0,Y=void 0;(r=w.value)==null||(Y=r.lottieEl)==null||Y.stop()}if(!(this.selectedItemIndex<0)){Z=0;q&&(Z=this.isCorrect?37:25);var C,d;(C=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(d=C.lottieEl)==null||d.goToAndPlay(q?Z:0,!0);if(!(this.isCorrect||
(C=this.data.choices.findIndex(function(S){return S.isCorrect}),C<0))){var O,H;
(H=(O=this.correctnessAnimationRefs[C])==null?void 0:O.lottieEl)==null||H.goToAndPlay(37,!0);var L;O=(L=this.fadeContainers)==null?void 0:L.item(C);!q&&O&&this.fadeIn(O)}}}};
_.e.thumbnailSrc=function(q){var Z,w,r,Y;return(q==null?0:(Z=q.thumbnails)==null?0:(w=Z[0])==null?0:w.url)?_.EX((r=q.thumbnails)==null?void 0:(Y=r[0])==null?void 0:Y.url):void 0};
_.e.a11yVotedText=function(q,Z){var w,r,Y=((w=this.data)==null?void 0:(r=w.correctVotedText)==null?void 0:r.simpleText)||"",C,d;w=((C=this.data)==null?void 0:(d=C.votedText)==null?void 0:d.simpleText)||"";if(!Z)return"";var O,H;if((O=this.data)==null?0:(H=O.choices)==null?0:H[q].isCorrect)return Y;var L,S;return((L=this.data)==null?0:(S=L.choices)==null?0:S[q].isSelected)?w:""};
_.e.getEndpoint=function(q,Z){return Z===q?this.data.choices[q].deselectServiceEndpoint||null:this.data.choices[q].selectServiceEndpoint||null};
_.e.sendVoteAction=function(q,Z){if(q=this.getEndpoint(q,Z))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(q)};
_.e.selectChoice=function(q){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var Z=0;Z<this.data.choices.length;Z++)this.set("data.choices."+Z+".isSelected",q===this.selectedItemIndex?!1:Z===q);this.selectedItemIndex=this.selectedItemIndex===q?-1:q};
_.e.maybeInitializeQuizLotties=function(q){var Z=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=q.map(function(w){return{animationConfig:w.isCorrect?Z.baseCorrectLottiePlayerAnimationConfig:Z.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){Z.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(w){return w.animationRef||{}})};
_.e.fadeIn=function(q){q.classList.add("fade-in");_.sL(_.v5,function(){q.classList.remove("fade-in")},900)};
_.My.Object.defineProperties(Bo9.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.b("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.kO(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 q,Z;return((q=this.data)==null?void 0:(Z=q.choices)==null?void 0:Z.some(function(w){return w.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null||!q.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?z07:this.data.choices[this.selectedItemIndex].explanation||z07}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null||!q.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
var zz=Bo9;zz.prototype.onYtServiceRequestCompleted=zz.prototype.onYtServiceRequestCompleted;zz.prototype.onYtServiceRequestSent=zz.prototype.onYtServiceRequestSent;zz.prototype.onYtCommentPollRevert=zz.prototype.onYtCommentPollRevert;zz.prototype.dataChanged=zz.prototype.dataChanged;zz.prototype.onExplanationChanged=zz.prototype.onExplanationChanged;_.X([_.U(_.Kk),_.A("design:type",Object)],zz.prototype,"paperItemBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],zz.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.EY.YtTaskEmitterBehavior),_.A("design:type",Object)],zz.prototype,"ytTaskEmitterBehavior",void 0);_.X([_.U(_.Et),_.A("design:type",Object)],zz.prototype,"ytdOpenPopupBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],zz.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],zz.prototype,"isLoading",void 0);_.X([_.F(),_.A("design:type",Object)],zz.prototype,"usesPanelLockup",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.A("design:type",Boolean)],zz.prototype,"isChannelOwner",void 0);_.X([_.F({computed:"computeIsTotalVotesDisabled(data)"}),_.A("design:type",Boolean)],zz.prototype,"isTotalVotesDisabled",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.A("design:type",Boolean)],zz.prototype,"isImageQuiz",void 0);_.X([_.F(),_.A("design:type",Object)],zz.prototype,"previousQuizInfo",void 0);_.X([_.F(),_.A("design:type",Object)],zz.prototype,"selectedItemIndex",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data","usesPanelLockup"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zz.prototype,"shouldUseModernUi",null);
_.X([_.D5(".fade-container"),_.A("design:type",Object)],zz.prototype,"fadeContainers",void 0);_.X([_.F(),_.A("design:type",Array)],zz.prototype,"correctnessAnimationProps",void 0);_.X([_.I("explanation","showCorrectAnswer"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zz.prototype,"showExplanation",null);_.X([_.I("isChannelOwner","isAttempted"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zz.prototype,"showCorrectAnswer",null);
_.X([_.I("isChannelOwner","isAttempted","data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zz.prototype,"isQuizAnsweringDisabled",null);_.X([_.I("isQuizAnsweringDisabled"),_.A("design:type",Object),_.A("design:paramtypes",[])],zz.prototype,"endpointStyle",null);_.X([_.I("data","selectedItemIndex"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zz.prototype,"isAttempted",null);
_.X([_.I("data","selectedItemIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],zz.prototype,"explanation",null);_.X([_.I("data","selectedItemIndex"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zz.prototype,"isCorrect",null);_.X([_.fo("ytd-expander"),_.A("design:type",Object)],zz.prototype,"expander",void 0);_.X([_.fo("#quiz-votes"),_.A("design:type",Object)],zz.prototype,"quizVotes",void 0);
_.X([_.M("explanation"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zz.prototype,"onExplanationChanged",null);_.X([_.M("data","isChannelOwner"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zz.prototype,"dataChanged",null);_.X([_.m2("yt-comment-quiz-revert"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],zz.prototype,"onYtCommentPollRevert",null);
_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],zz.prototype,"onYtServiceRequestSent",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],zz.prototype,"onYtServiceRequestCompleted",null);zz=_.X([_.l({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],zz);
_.p(zz,"ytd-backstage-quiz-renderer",function(){if(bvD!==void 0)return bvD;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return bvD=q},{mode:1});var a_D;var n9p=function(){return _.N.apply(this,arguments)||this};
_.z(n9p,_.N);var Ba=n9p;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ba.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ba.prototype,"data",void 0);Ba=_.X([_.l({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],Ba);
_.p(Ba,"ytd-post-uploaded-video-renderer",function(){if(a_D!==void 0)return a_D;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return a_D=q},{mode:1});var QEp;var E9J=function(){return _.N.apply(this,arguments)||this};
_.z(E9J,_.N);E9J.prototype.useFilledIcons=function(q){return q==="SPONSORSHIP_STAR"};
var a6=E9J;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],a6.prototype,"data",void 0);a6=_.X([_.l({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],a6);
_.p(a6,"ytd-sponsors-only-badge-renderer",function(){if(QEp!==void 0)return QEp;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return QEp=q},{mode:1});var xQp;var ToK=function(){return _.N.apply(this,arguments)||this};
_.z(ToK,_.N);var nL=ToK;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],nL.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],nL.prototype,"data",void 0);nL=_.X([_.l({is:"ytd-child-video-renderer",disableElementRegistration:!0})],nL);
_.p(nL,"ytd-child-video-renderer",function(){if(xQp!==void 0)return xQp;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return xQp=q},{mode:1});var UQ7;var kD7;var KQg=function(){var q=_.N.apply(this,arguments)||this;q.size=0;q.enableWebModernCollectionsV2=_.b("web_modern_collections_v2");q.fallbackImageSize={height:void 0,width:9999};q.webModernCollections=!1;return q};
_.z(KQg,_.N);_.e=KQg.prototype;_.e.computeBlurredImageSize=function(q){return q?{height:q*2,width:q*2}:this.fallbackImageSize};
_.e.computeImageSize=function(q){return q?{height:q,width:q}:this.fallbackImageSize};
_.e.computeObjectFit=function(q){return q?"FILL":"CONTAIN"};
_.e.computePreserve=function(q){return q?!0:!1};
_.e.setBackground=function(){var q,Z;_.b("web_modern_collections_v2")&&((q=this.data)==null?0:(Z=q.thumbnail)==null?0:Z.sampledThumbnailColor)&&(q=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+q.red+","+q.green+","+q.blue+",1)")};
var Qv=KQg;Qv.prototype.setBackground=Qv.prototype.setBackground;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Qv.prototype,"ytRendererBehavior",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Qv.prototype,"watchFeedThumbnail",void 0);_.X([_.F(),_.A("design:type",Object)],Qv.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Qv.prototype,"size",void 0);
_.X([_.F({computed:"computeBlurredImageSize(size)"}),_.A("design:type",Object)],Qv.prototype,"blurredImageSize",void 0);_.X([_.F({computed:"computeImageSize(size)"}),_.A("design:type",Object)],Qv.prototype,"imageSize",void 0);_.X([_.F({computed:"computePreserve(size)"}),_.A("design:type",String)],Qv.prototype,"preserve",void 0);_.X([_.F({computed:"computeObjectFit(size)"}),_.A("design:type",String)],Qv.prototype,"objectFit",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Qv.prototype,"enableWebModernCollectionsV2",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Qv.prototype,"webModernCollections",void 0);_.X([_.M("data.thumbnail.sampledThumbnailColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qv.prototype,"setBackground",null);Qv=_.X([_.l({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],Qv);
_.p(Qv,"ytd-playlist-custom-thumbnail-renderer",function(){if(kD7!==void 0)return kD7;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return kD7=q},{mode:1});var sE1;var I_p=function(){return _.N.apply(this,arguments)||this};
_.z(I_p,_.N);var Ef=I_p;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ef.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Number)],Ef.prototype,"width",void 0);Ef=_.X([_.l({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Ef);
_.p(Ef,"ytd-playlist-video-thumbnail-renderer",function(){if(sE1!==void 0)return sE1;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return sE1=q},{mode:1});var cNJ;var Mf7=function(){return _.N.apply(this,arguments)||this};
_.z(Mf7,_.N);var xd=Mf7;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],xd.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],xd.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Number)],xd.prototype,"width",void 0);xd=_.X([_.l({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],xd);
_.p(xd,"ytd-show-custom-thumbnail-renderer",function(){if(cNJ!==void 0)return cNJ;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return cNJ=q},{mode:1});var FQJ;var Tz=function(){return _.N.apply(this,arguments)||this};
_.z(Tz,_.N);Tz.prototype.useFilledIcons=function(q){return q==="MUSIC"||q==="COURSE"};
Tz.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=Lo(this.overlayColor,"0.8");else if(this.overlayColor){var q=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+q.red+","+q.green+","+q.blue+",0.8)"}};
_.My.Object.defineProperties(Tz.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)}}});
var Uf=Tz;Uf.prototype.overlayColorChanged=Uf.prototype.overlayColorChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Uf.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Uf.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Uf.prototype,"overlayColor",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data.icon","data.text"),_.A("design:type",Object),_.A("design:paramtypes",[])],Uf.prototype,"overlayStyle",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data.icon","data.text"),_.A("design:type",Object),_.A("design:paramtypes",[])],Uf.prototype,"overlayTextStyle",null);_.X([_.M("overlayColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Uf.prototype,"overlayColorChanged",null);Uf=_.X([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],Uf);
_.p(Uf,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(FQJ!==void 0)return FQJ;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return FQJ=q},{mode:1});var Noh;var l_1=function(){var q=_.N.apply(this,arguments)||this;q.active=!1;return q};
_.z(l_1,_.N);l_1.prototype.computeIsSpinnerHidden=function(q){return(q==null?void 0:q.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
l_1.prototype.computeOverlayIcon=function(q){return(q==null?void 0:q.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(q==null?void 0:q.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
var kd=l_1;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],kd.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],kd.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],kd.prototype,"active",void 0);kd=_.X([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],kd);
_.p(kd,"ytd-thumbnail-overlay-downloading-renderer",function(){if(Noh!==void 0)return Noh;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Noh=q},{mode:1});var GDJ;var p2D=function(){return _.N.apply(this,arguments)||this};
_.z(p2D,_.N);_.My.Object.defineProperties(p2D.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
var KL=p2D;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],KL.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],KL.prototype,"data",void 0);_.X([_.I("data.text"),_.A("design:type",Object),_.A("design:paramtypes",[])],KL.prototype,"text",null);KL=_.X([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],KL);
_.p(KL,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(GDJ!==void 0)return GDJ;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return GDJ=q},{mode:1});var X2W,mQv=function(){if(X2W!==void 0)return X2W;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return X2W=q};var ANh=function(){return _.N.apply(this,arguments)||this};
_.z(ANh,_.N);_.My.Object.defineProperties(ANh,{template:{configurable:!0,enumerable:!0,get:function(){return mQv()}}});
var f_X=ANh;_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],f_X.prototype,"animateEqualizer",void 0);f_X=_.X([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],f_X);_.Fl()(f_X,"ytd-thumbnail-overlay-equalizer",function(){return mQv()},{allowedProps:["animateEqualizer"],
mode:1});var DQm;var h01=function(){var q=_.N.apply(this,arguments)||this;q.nowPlayingBadge=_.b("web_now_playing_badge");q.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return q};
_.z(h01,_.N);h01.prototype.activeChanged=function(){var q=this;_.b("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.I_(this,function(){_.hy(q.hostElement,"yt-playlist-lockup-now-playing-active",q)})};
h01.prototype.onMiniplayerPlayStateChanged=function(q){var Z,w=(Z=_.J(_.qk().currentEndpoint,_.ck))==null?void 0:Z.videoId;this.isVideoPlaying=q&&(_.b("web_limit_now_playing_animation_killswitch")||this.videoId===w)};
var sf=h01;sf.prototype.activeChanged=sf.prototype.activeChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],sf.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],sf.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],sf.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],sf.prototype,"isVideoPlaying",void 0);_.X([_.F(),_.A("design:type",String)],sf.prototype,"videoId",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],sf.prototype,"equalizerOnly",void 0);_.X([_.F(),_.A("design:type",Boolean)],sf.prototype,"isActive",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],sf.prototype,"nowPlayingBadge",void 0);_.X([_.M("isActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sf.prototype,"activeChanged",null);
sf=_.X([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],sf);
_.p(sf,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(DQm!==void 0)return DQm;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return DQm=q},{mode:1});var yN2;var ive=function(){return _.N.apply(this,arguments)||this};
_.z(ive,_.N);var I6=ive;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],I6.prototype,"data",void 0);I6=_.X([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],I6);
_.p(I6,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(yN2!==void 0)return yN2;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return yN2=q},{mode:_.NT("kevlar_poly_si_batch_j025")?1:2});var g9K;var q4W=function(){return _.N.apply(this,arguments)||this};
_.z(q4W,_.N);q4W.prototype.onDurationChanged=function(){var q,Z;_.E(this.hostElement).querySelector("#progress").style.width=((Z=(q=this.data)==null?void 0:q.percentDurationWatched)!=null?Z:0)+"%"};
var ca=q4W;ca.prototype.onDurationChanged=ca.prototype.onDurationChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],ca.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ca.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],ca.prototype,"isLive",void 0);_.X([_.M("data.percentDurationWatched"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ca.prototype,"onDurationChanged",null);
ca=_.X([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],ca);
_.p(ca,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(g9K!==void 0)return g9K;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return g9K=q},{mode:1});var Zu9;var wig=function(){var q=_.N.apply(this,arguments)||this;q.bottomPanel=!1;q.richGridOverlay=!1;q.watchFeedOverlay=!1;q.isCompact=!1;return q};
_.z(wig,_.N);wig.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.My.Object.defineProperties(wig.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.data)==null?void 0:(Z=q.icon)==null?void 0:Z.iconType)==="PLAY_ALL"&&_.b("kevlar_system_icons")}}});
var MO=wig;MO.prototype.widthChanged=MO.prototype.widthChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],MO.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],MO.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Number)],MO.prototype,"width",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],MO.prototype,"bottomPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],MO.prototype,"richGridOverlay",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],MO.prototype,"watchFeedOverlay",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],MO.prototype,"isCompact",void 0);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],MO.prototype,"isIconFilled",null);_.X([_.M("width","watchFeedOverlay"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MO.prototype,"widthChanged",null);
MO=_.X([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],MO);
_.p(MO,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(Zu9!==void 0)return Zu9;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Zu9=q},{mode:1});var rt2;var Y4h=["CLIP","SHORTS"],$De=function(){var q=_.N.apply(this,arguments)||this;q.animated=_.b("animated_live_badge_icon");q.hasIcon=!1;q.updateTimerIntervalId=0;q.timeSinceLive=0;return q};
_.z($De,_.N);_.e=$De.prototype;_.e.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.e.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.e.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.e.hasIconOrText=function(){var q,Z;return!!(((q=this.data)==null?0:q.icon)||((Z=this.data)==null?0:Z.text))};
_.e.initializeLiveBadgeTimer=function(){var q=this,Z,w=(Z=this.liveBadgeData)==null?void 0:Z.startTimestampSec;if(w&&this.canShowLiveBadgeTimer()){var r;Z=Number((r=this.liveBadgeData)==null?void 0:r.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(w);this.updateTimerIntervalId=_.yV(function(){q.canShowLiveBadgeTimer()?q.timeSinceLive++:(q.timeSinceLive=0,window.clearInterval(q.updateTimerIntervalId))},Z)}else this.timeSinceLive=0};
_.e.canShowLiveBadgeTimer=function(){var q=Date.now(),Z,w;return q<(Number((Z=this.liveBadgeData)==null?void 0:Z.endTimestampSec)-1)*1E3&&q>Number((w=this.liveBadgeData)==null?void 0:w.startTimestampSec)*1E3};
_.My.Object.defineProperties($De.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var q=this.data;var Z=this.timeSinceLive;var w,r,Y,C;a:{var d=q.style;if(d===void 0)d=16;else switch(d){case "LIVE":d=17;break a;default:d=16}}Z={type:d,text:Z?qYI({seconds:Z}):_.kO(q.text),accessibilityText:(w=q.text)==null?void 0:(r=w.accessibility)==null?void 0:(Y=r.accessibilityData)==null?void 0:Y.label,icon:(C=q.icon)==null?void 0:C.iconType}}else Z={};return Z}},
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 q;return(q=this.data)==null?void 0:q.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 Y4h.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
var FE=$De;FE.prototype.initializeLiveBadgeTimer=FE.prototype.initializeLiveBadgeTimer;FE.prototype.dataChanged=FE.prototype.dataChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],FE.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],FE.prototype,"data",void 0);_.X([_.F({computed:"computeIcon_(data.icon)"}),_.A("design:type",String)],FE.prototype,"icon",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],FE.prototype,"animated",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.A("design:type",Boolean)],FE.prototype,"hideTimeStatus",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],FE.prototype,"hasIcon",void 0);_.X([_.F(),_.A("design:type",Object)],FE.prototype,"timeSinceLive",void 0);_.X([_.I("data","timeSinceLive"),_.A("design:type",Object),_.A("design:paramtypes",[])],FE.prototype,"badgeShapeData",null);
_.X([_.I("data","overlayType"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],FE.prototype,"hideBadgeShape",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FE.prototype,"dataChanged",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.style"),_.A("design:type",Object),_.A("design:paramtypes",[])],FE.prototype,"overlayStyle",null);
_.X([_.I("data.liveBadgeData"),_.A("design:type",Object),_.A("design:paramtypes",[])],FE.prototype,"liveBadgeData",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.type"),_.A("design:type",Object),_.A("design:paramtypes",[])],FE.prototype,"overlayType",null);_.X([_.I("overlayType","overlayStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],FE.prototype,"useFilledIcon",null);
_.X([_.g3("liveBadgeData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FE.prototype,"initializeLiveBadgeTimer",null);FE=_.X([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],FE);
_.p(FE,"ytd-thumbnail-overlay-time-status-renderer",function(){if(rt2!==void 0)return rt2;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return rt2=q},{mode:_.NT("kevlar_poly_si_batch_j035")?1:2});var ege;var NO=function(){return _.N.apply(this,arguments)||this};
_.z(NO,_.N);NO.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"}}}}};
NO.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(q){if(this.hasPlaybackProgressBar)return{percentDurationWatched:q.percentDurationWatched}};
NO.prototype.computeHasPlaybackProgressBar=function(q){return!!q.percentDurationWatched&&q.percentDurationWatched>0};
var l$=NO;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],l$.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.A("design:type",Boolean)],l$.prototype,"hasPlaybackProgressBar",void 0);
l$=_.X([_.l({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],l$);
_.p(l$,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(ege!==void 0)return ege;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ege=q},{mode:1});var C11;_.mD(Ovj);var P1X=_.xl(function(q){var Z=q.data;var w=q.children;var r=function(){return!!Z().doubleStack};
return _.u("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!Z().experimentEnabled}},_.u(_.PF,{cond:Z,
then:function(){return _.u("div",null,_.u(_.PF,{cond:r,then:function(){var Y={};return _.u("div",{class:_.GL("collections-stack-wiz__collection-stack2",function(){return Z().customClassName2ndStack},(Y["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return Z().enableResponsiveMode},Y)),
style:_.y1({"background-color":function(){return dQ6(Z())}})})}}),_.u("div",{class:_.GL("collections-stack-wiz__collection-stack1",function(){return Z().customClassName1stStack},function(){return Vf2(Z().thumbnailSize?Z().thumbnailSize:"medium")}),
style:_.y1({"background-color":function(){return dQ6(Z())}})}),w)}}))},"J");_.xc(P1X,"yt-collections-stack",{props:{data:_.zG}});var dDJ=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};q.webModernCollections=!1;q.isSearch=!1;q.isDoubleStack=!1;q.thumbnailSize="medium";q.enableWebModernCollectionsV2=_.b("web_modern_collections_v2");return q};
_.z(dDJ,_.N);_.e=dDJ.prototype;
_.e.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]]"}}}}}};
_.e.getThumbnailDetails=function(q){if(q!=null&&q.thumbnailRenderer){var Z=q.thumbnailRenderer,w;if((w=Z.playlistVideoThumbnailRenderer)==null?0:w.thumbnail)return Z.playlistVideoThumbnailRenderer.thumbnail;var r;if((r=Z.playlistCustomThumbnailRenderer)==null?0:r.thumbnail)return Z.playlistCustomThumbnailRenderer.thumbnail;q=q.thumbnailRenderer;var Y;if((Y=q.showCustomThumbnailRenderer)==null?0:Y.thumbnail)return q.showCustomThumbnailRenderer.thumbnail}};
_.e.computeOverlayColor=function(q){var Z,w;if((Z=this.getThumbnailDetails(q))==null?0:(w=Z.darkColorPalette)==null?0:w.section2Color)return this.getThumbnailDetails(q).darkColorPalette.section2Color;var r;return(r=this.getThumbnailDetails(q))==null?void 0:r.sampledThumbnailColor};
_.e.computeWebModernCollections=function(q){if(q==null||!q.thumbnailOverlays)return!1;q=_.P(q.thumbnailOverlays);for(var Z=q.next();!Z.done;Z=q.next()){var w=void 0;if((w=Z.value)==null?0:w.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.e.computeNavigationEndpoint=function(q){return Kb2(q==null?void 0:q.navigationEndpoint)};
_.My.Object.defineProperties(dDJ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var q=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:q==null?void 0:q.sampledThumbnailColor,vibrantColorPalette:q==null?void 0:q.vibrantColorPalette,darkColorPalette:q==null?void 0:q.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
var Gz=dDJ;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Gz.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Gz.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(MMW),_.A("design:type",Object)],Gz.prototype,"ytdThumbnailBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Gz.prototype,"componentBehavior",void 0);
_.X([_.F({value:!1}),_.A("design:type",Boolean)],Gz.prototype,"watchFeedThumbnail",void 0);_.X([_.F(),_.A("design:type",Number)],Gz.prototype,"customThumbnailSize",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],Gz.prototype,"hideAria",void 0);_.X([_.F(),_.A("design:type",Object)],Gz.prototype,"data",void 0);_.X([_.F({computed:"computeOverlayColor(data)"}),_.A("design:type",Object)],Gz.prototype,"overlayColor",void 0);
_.X([_.F({computed:"computeWebModernCollections(data)"}),_.A("design:type",Object)],Gz.prototype,"webModernCollections",void 0);_.X([_.F({computed:"computeNavigationEndpoint(data)"}),_.A("design:type",Object)],Gz.prototype,"computedNavigationEndpoint",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Gz.prototype,"isSearch",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Gz.prototype,"isDoubleStack",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],Gz.prototype,"thumbnailSize",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Gz.prototype,"enableWebModernCollectionsV2",void 0);_.X([_.I("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.A("design:type",Object),_.A("design:paramtypes",[])],Gz.prototype,"collectionStack",null);Gz=_.X([_.l({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Gz);
_.p(Gz,"ytd-playlist-thumbnail",function(){if(C11!==void 0)return C11;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return C11=q},{mode:_.NT("kevlar_poly_si_batch_j025")?1:2});var Vkp;var OuW=function(){var q=_.N.apply(this,arguments)||this;q.noEndpoints=!1;q.amsterdamPostMvp=_.b("web_amsterdam_post_mvp_playlists");q.badges=[];q.transferState="TRANSFER_STATE_UNKNOWN";return q};
_.z(OuW,_.N);_.e=OuW.prototype;_.e.getMetadata=function(q){if(!q)return[];var Z=[],w=q.shortViewCountText||q.viewCountText;w&&Z.push(_.kO(w));q.publishedTimeText&&Z.push(_.kO(q.publishedTimeText));q.upcomingEventData&&q.upcomingEventData.upcomingEventText&&Z.push(_.jr(_.kO(q.upcomingEventData.upcomingEventText),Number(q.upcomingEventData.startTime)));return Z};
_.e.observeDataForBylineSeparator=function(){this.data&&_.NZ(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.e.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.oJ(this.metadataColor)};
_.e.getSimpleString=function(q){return _.kO(q)};
_.e.isBylineHidden=function(q){return this.noByline||!((q==null?0:q.longBylineText)||(q==null?0:q.shortBylineText))};
_.e.isMetadataHidden=function(q){var Z;return((Z=this.getMetadata(q))==null?void 0:Z.length)===0};
_.e.isBylineMetadataSeparatorHidden=function(q){return this.isMetadataHidden(q)||!this.shouldShowVideoInfo};
_.e.isLongByline=function(q,Z){return Z&&!(q==null||!q.longBylineText)};
_.My.Object.defineProperties(OuW.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var q;return this.amsterdamPostMvp&&!((q=this.data)==null||!q.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 _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
var pL=OuW;pL.prototype.metadataColorChanged=pL.prototype.metadataColorChanged;pL.prototype.observeDataForBylineSeparator=pL.prototype.observeDataForBylineSeparator;_.X([_.U(_.LO),_.A("design:type",Object)],pL.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],pL.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],pL.prototype,"noEndpoints",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],pL.prototype,"isSlimShort",void 0);
_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],pL.prototype,"radioMeta",void 0);_.X([_.F({selector:_.tL}),_.A("design:type",Object)],pL.prototype,"isGridViewEnabled",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],pL.prototype,"richMeta",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],pL.prototype,"amsterdamPostMvp",void 0);_.X([_.F(),_.A("design:type",Boolean)],pL.prototype,"noByline",void 0);
_.X([_.F({computed:"isLongByline(data, radioMeta)"}),_.A("design:type",Boolean)],pL.prototype,"longByline",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],pL.prototype,"truncateMetadataLine",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],pL.prototype,"miniMode",void 0);_.X([_.F(),_.A("design:type",Number)],pL.prototype,"metadataColor",void 0);_.X([_.F(),_.A("design:type",Array)],pL.prototype,"badges",void 0);
_.X([_.F({selector:_.RZ,selectorArgs:["data.videoId"]}),_.A("design:type",String)],pL.prototype,"transferState",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],pL.prototype,"isDownloading",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],pL.prototype,"typographyBump",void 0);_.X([_.fo("#metadata-line"),_.A("design:type",HTMLElement)],pL.prototype,"metadataLine",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pL.prototype,"observeDataForBylineSeparator",null);_.X([_.M("metadataColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pL.prototype,"metadataColorChanged",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],pL.prototype,"shouldShowVideoInfo",null);
_.X([_.I("badges"),_.A("design:type",String),_.A("design:paramtypes",[])],pL.prototype,"inlineBadgeClass",null);_.X([_.I("longByline"),_.A("design:type",String),_.A("design:paramtypes",[])],pL.prototype,"longBylineClass",null);_.X([_.I("data","longByline"),_.A("design:type",Object),_.A("design:paramtypes",[])],pL.prototype,"bylineText",null);_.X([_.I("isGridViewEnabled","data"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],pL.prototype,"watchFeedBigThumbs",null);
pL=_.X([_.l({is:"ytd-video-meta-block",disableElementRegistration:!0})],pL);
_.p(pL,"ytd-video-meta-block",function(){if(Vkp!==void 0)return Vkp;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Vkp=q},{mode:_.NT("kevlar_poly_si_batch_j080")?1:2});_.He("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var HuJ=function(){var q=_.N.apply(this,arguments)||this;q.displayItemCount=2;q.isBackstagePlaylist=!1;q.isPostCompactPlaylist=!1;q.shouldShowChannelThumbnail=!1;q.useModernCollectionsV2=_.b("web_modern_collections_v2");return q};
_.z(HuJ,_.N);_.e=HuJ.prototype;_.e.computeFirstVideos=function(q,Z){return q===void 0||Z===void 0?[]:q.slice(0,Z)};
_.e.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var q=this.data.thumbnailRenderer;q.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",q.playlistVideoThumbnailRenderer.thumbnail);q.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",q.playlistCustomThumbnailRenderer.thumbnail)}};
_.e.computeThumbnailHeight=function(q,Z,w,r,Y){return r?Y==="BIG"?280:Y==="MASSIVE"?337:234:w?240:Z?72:q?118:138};
_.e.computeThumbnailWidth=function(q,Z,w,r,Y){return r?Y==="MEDIUM"?450:Y==="BIG"?500:Y==="MASSIVE"?600:420:w?360:Z?128:q?210:246};
_.e.computeUseBiggerThumbs=function(q){return q&&_.b("enable_desktop_search_bigger_thumbs")};
_.e.computeShouldShowChannelThumbnail=function(q,Z){return q&&!(Z==null||!Z.channelThumbnail)};
_.My.Object.defineProperties(HuJ.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
var XE=HuJ;XE.prototype.dataChanged=XE.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],XE.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.ay),_.A("design:type",Object)],XE.prototype,"ytdLockupBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],XE.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],XE.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],XE.prototype,"displayItemCount",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],XE.prototype,"isBackstagePlaylist",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],XE.prototype,"isPostCompactPlaylist",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],XE.prototype,"isSearch",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.A("design:type",Boolean)],XE.prototype,"useBiggerThumbs",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.Af("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],XE.prototype,"biggerThumbsStyle",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],XE.prototype,"isDownloads",void 0);_.X([_.F({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.A("design:type",Object)],XE.prototype,"shouldShowChannelThumbnail",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],XE.prototype,"useModernCollectionsV2",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],XE.prototype,"dataChanged",null);_.X([_.I("isSearch"),_.A("design:type",String),_.A("design:paramtypes",[])],XE.prototype,"stackThumbnailSize",null);XE=_.X([_.l({is:"ytd-playlist-renderer",disableElementRegistration:!0})],XE);
_.p(XE,"ytd-playlist-renderer",function(){if(UQ7===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);UQ7=q}q=UQ7;return q},{mode:1});var W0e;var ooX;var m5=function(){var q=_.N.apply(this,arguments)||this;q.collections=!!_.b("web_modern_collections_v2");q.startX=0;return q};
_.z(m5,_.N);m5.prototype.onEndpointMouseDown=function(q){this.startX=q.clientX};
m5.prototype.onEndpointClick=function(q){this.startX!==q.clientX&&(q.preventDefault(),q.stopPropagation())};
m5.prototype.computeObjectFit=function(q){return q==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||q==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||q==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
m5.prototype.computeCardStyle=function(q){return q?q.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.My.Object.defineProperties(m5.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var q,Z;return this.collections&&((q=this.data)==null?void 0:(Z=q.searchRefinementCardRendererStyle)==null?void 0:Z.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}}}});
var Ap=m5;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ap.prototype,"data",void 0);_.X([_.F({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.A("design:type",Number)],Ap.prototype,"objectFit",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.A("design:type",String)],Ap.prototype,"cardStyle",void 0);
_.X([_.F({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],Ap.prototype,"roundContainer",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ap.prototype,"collections",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ap.prototype,"isAlbumCard",null);_.X([_.I("data","collections","isAlbumCard"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ap.prototype,"collectionStack",null);
Ap=_.X([_.l({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],Ap);
_.p(Ap,"ytd-search-refinement-card-renderer",function(){if(ooX!==void 0)return ooX;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ooX=q},{mode:1});var uk7;var L0K=function(){var q=_.N.apply(this,arguments)||this;q.isRichGrid=!1;return q};
_.z(L0K,_.N);var fL=L0K;_.X([_.F(),_.A("design:type",Object)],fL.prototype,"data",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],fL.prototype,"componentBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],fL.prototype,"ytdReduxBehavior",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],fL.prototype,"isRichGrid",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.SZ}),_.A("design:type",Boolean)],fL.prototype,"miniMode",void 0);
fL=_.X([_.l({is:"ytd-game-details-renderer",disableElementRegistration:!0})],fL);
_.p(fL,"ytd-game-details-renderer",function(){if(uk7!==void 0)return uk7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return uk7=q},{mode:1});var S4h;var voD;var jPh=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return q};
_.z(jPh,_.N);_.e=jPh.prototype;_.e.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.e.currentStateData=function(q){var Z=q||this.data;return Z&&Z.states&&Z.currentStateId!=null?Z.states.find(function(w){return w.stateId===Z.currentStateId})||null:null};
_.e.currentStateRendererData=function(q){return(q=this.currentStateData(q))&&q.state&&q.state.buttonRenderer?q.state.buttonRenderer:null};
_.e.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())};
_.e.computeButtonIcon=function(q){q=this.currentStateRendererData(q);var Z;return(q==null?0:(Z=q.icon)==null?0:Z.iconType)?q.icon.iconType.toLowerCase():null};
_.e.computeAccessibility=function(q){return(q=this.currentStateRendererData(q))&&q.accessibilityData?q.accessibilityData.accessibilityData||null:null};
_.e.computeButtonClass=function(q){var Z=this.currentStateRendererData(q);if(!Z)return"";q="";var w=Z.style;w&&(q+=w.toLowerCase().replace(/_/g,"-")+" ");(Z=Z.size)&&(q+=Z.toLowerCase().replace(/_/g,"-")+" ");return q.trim()};
_.e.computeServiceEndpoint=function(q){if(!q)return null;var Z=q&&q.serviceEndpoint,w=this.get("command.commandMetadata.webCommandMetadata.sendPost",q);return Z?Z:w&&q.command?q.command:null};
_.e.computeBellMenuItemParams=function(q){var Z;q=(Z=_.J(q==null?void 0:q.command,_.$K))==null?void 0:Z.commands;if(!q||q.length===0)return null;Z=_.J(q[0],_.HZ);var w,r;return(Z==null?0:(w=Z.popup)==null?0:(r=w.menuPopupRenderer)==null?0:r.items)?Z.popup.menuPopupRenderer.items.map(function(Y){return Y.menuServiceItemRenderer.trackingParams}):null};
_.e.handleBellMenuOpenSelectedAction=function(q){var Z=q.trackingParams,w=this.computeBellMenuItemParams(this.data);this.data&&Z&&w&&w.includes(Z)&&this.ytRenderButtonBehavior._setButtonIcon(q.icon.iconType.toLowerCase())};
_.e.onYtServiceRequestCompleted=function(q,Z){(q=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",Z))&&this.set("data",q)};
_.e.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.e.resetState=function(){this.set("data.currentStateId",3)};
_.e.onYtButtonTapHandler=function(){if(this.data){var q=this.currentStateRendererData(this.data);q&&this.ytRendererBehavior.logExplicitClick(q)}};
var Dx=jPh;Dx.prototype.onYtServiceRequestError=Dx.prototype.onYtServiceRequestError;Dx.prototype.onYtServiceRequestCompleted=Dx.prototype.onYtServiceRequestCompleted;Dx.prototype.stateChanged=Dx.prototype.stateChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Dx.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Dx.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.U(hg.YtRenderButtonBehavior),_.A("design:type",Object)],Dx.prototype,"ytRenderButtonBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Dx.prototype,"data",void 0);_.X([_.g3("data","data.currentStateId"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dx.prototype,"stateChanged",null);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],Dx.prototype,"onYtServiceRequestCompleted",null);_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Dx.prototype,"onYtServiceRequestError",null);Dx=_.X([_.l({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Dx);
_.p(Dx,"ytd-subscription-notification-toggle-button-renderer",function(){if(voD!==void 0)return voD;var q=document.createElement("template");_.a(q,"\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");q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return voD=q},{mode:1});var tke;var Rg2=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};q.tapHandler=function(){if(q.data){var Z=q.currentStateRendererData();Z&&q.ytRendererBehavior.logExplicitClick(Z)}};
return q};
_.z(Rg2,_.N);_.e=Rg2.prototype;_.e.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.e.currentStateData=function(){var q=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(Z){return Z.stateId===q.data.currentStateId})||null:null};
_.e.currentStateRendererData=function(){var q=this.currentStateData();return q&&q.state&&q.state.buttonRenderer?q.state.buttonRenderer:null};
_.e.computeAccessibilityLabel=function(){var q,Z,w;return(q=this.currentStateRendererData())==null?void 0:(Z=q.accessibilityData)==null?void 0:(w=Z.accessibilityData)==null?void 0:w.label};
_.e.computeBellMenuItemParams=function(){var q,Z,w=(Z=_.J((q=this.data)==null?void 0:q.command,_.$K))==null?void 0:Z.commands;if(!w||w.length===0)return null;q=_.J(w[0],_.HZ);var r,Y;return(q==null?0:(r=q.popup)==null?0:(Y=r.menuPopupRenderer)==null?0:Y.items)?q.popup.menuPopupRenderer.items.map(function(C){return C.menuServiceItemRenderer.trackingParams}):null};
_.e.handleBellMenuOpenSelectedAction=function(q){var Z=q.trackingParams,w=this.computeBellMenuItemParams();if(this.data&&Z&&w&&w.includes(Z)&&(q==null||!q.isDisabled)){var r;((r=_.J(q.serviceEndpoint,_.CR))==null?void 0:r.signal)!=="CLIENT_SIGNAL"&&(this.icon=q.icon.iconType)}};
_.e.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.e.onYtServiceRequestCompleted=function(q,Z){if(q=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",Z))this.icon=void 0,this.set("data",q)};
_.e.onYtServiceRequestError=function(){this.icon=void 0};
_.My.Object.defineProperties(Rg2.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var q=this.data,Z=this.textLabel,w=this.hostElement,r=this.computeAccessibilityLabel(),Y=this.tapHandler,C=this.isOverlay?"overlay":"mono",d=(q==null?0:q.disableButton)?"disabled":"active";Z=Z?_.V1(Z):void 0;return{style:C,type:"tonal",state:d,size:"M",focused:!1,formattedButtonText:Z,iconPosition:"leading-trailing",onTap:o9j(q,Y,w),accessibilityLabel:r}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var q=this.currentStateRendererData(),Z,w,r=(w=this.icon)!=null?w:q==null?void 0:(Z=q.icon)==null?void 0:Z.iconType;if(r)return _.Xl(r)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var q,Z,w=(q=this.data)==null?void 0:(Z=q.secondaryIcon)==null?void 0:Z.iconType;if(w)return _.Xl(w)}}});
var hp=Rg2;hp.prototype.onYtServiceRequestError=hp.prototype.onYtServiceRequestError;hp.prototype.onYtServiceRequestCompleted=hp.prototype.onYtServiceRequestCompleted;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],hp.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],hp.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],hp.prototype,"textLabel",void 0);_.X([_.F(),_.A("design:type",String)],hp.prototype,"icon",void 0);_.X([_.F(),_.A("design:type",Boolean)],hp.prototype,"isOverlay",void 0);_.X([_.I("data.*","textLabel"),_.A("design:type",Object),_.A("design:paramtypes",[])],hp.prototype,"computedButtonShape",null);_.X([_.I("data.*","icon"),_.A("design:type",Object),_.A("design:paramtypes",[])],hp.prototype,"computedIcon",null);
_.X([_.I("data.*"),_.A("design:type",Object),_.A("design:paramtypes",[])],hp.prototype,"computedSecondaryIcon",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],hp.prototype,"onYtServiceRequestCompleted",null);_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],hp.prototype,"onYtServiceRequestError",null);
hp=_.X([_.l({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],hp);_.p(hp,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(tke!==void 0)return tke;var q=document.createElement("template");_.a(q,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return tke=q},{mode:_.NT("kevlar_poly_si_batch_j081")?1:2});var buD;_.b("web_enable_sink_animated_actions")?_.xc(pnX,"yt-animated-action",{props:{backgroundLottieRef:_.zG,foregroundLottieRef:_.zG,wrapperClass:_.zG,disableAnimation:_.zG},unsafeExternallySettableAttributes:new Set(["key"])}):_.Mx(fyO,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var JtD=function(){var q=_.N.apply(this,arguments)||this;q.animatedActionEnabled=_.b("web_animated_actions");q.foregroundLottieRef={};q.backgroundLottieRef={};q.forceIconOnly=!1;q.showTextWhileAnimating=!1;q.keyboardFocused=!1;q.isAnimating=!1;q.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return q};
_.z(JtD,_.N);_.e=JtD.prototype;_.e.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.e.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]]"}}}}}};
_.e.attached=function(){this.keyboardFocused=!1};
_.e.onYtServiceRequestSent=function(q,Z){(this.get("endpoint.subscribeEndpoint",Z)||this.get("endpoint.unsubscribeEndpoint",Z))&&this.updateSubscriptionState(!this.subscribed)};
_.e.onYtServiceRequestCompleted=function(q,Z){(q=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",Z.data))&&this.bellButton&&(this.bellButton.data=q)};
_.e.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.po(this.hostElement)};
_.e.onPlayerSubscribe=function(q){this.isCompactRed()||q!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.e.onPlayerUnsubscribe=function(q){this.isCompactRed()||q!==this.data.channelId||this.updateSubscriptionState(!1)};
_.e.handleUpdateSubscribeButtonAction=function(q){q=_.J(q,m32);var Z;q&&q.channelId===((Z=this.data)==null?void 0:Z.channelId)&&this.updateSubscriptionState(!!q.subscribed)};
_.e.computeButtonStyle=function(q){return this.get("style.styleType",q)||null};
_.e.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.e.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.e.updateSubscriptionState=function(q){if(q!==this.subscribed){this.set("data.subscribed",q);var Z,w=(Z=this.data)==null?void 0:Z.subscribedEntityKey;w&&this.ytdReduxBehavior.dispatch(_.wp("subscriptionStateEntity",w,{key:w,subscribed:q}));this.isCompactRed()||_.hy(this.hostElement,"yt-subscription-changed",q);q||(_.yY(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!q),q&&this.hasBellButton&&this.startAnimation())}};
_.e.startAnimation=function(){var q=this;if(!this.isAnimating){var Z=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var w;(w=this.backgroundLottieRef.lottieEl)==null||w.goToAndPlay(0);var r;(r=this.foregroundLottieRef.lottieEl)==null||r.goToAndPlay(0);_.v5.addJob(function(){q.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.v5.addJob(function(){q.updateContainerToFitContent(!!q.subscribed,!0)},2,1500);
_.v5.addJob(function(){q.isAnimating=!1},2,Z)}};
_.e.maybeAnimateBellIcon=function(){var q=_.FN(this.hostElement).querySelector("yt-animated-icon");if(q){var Z;(Z=q.animationRef.lottieEl)==null||Z.goToAndPlay(0)}};
_.e.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.e.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.e.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var q;this.unsubscribedWidth=(q=this.subscribeButtonShape)==null?void 0:q.getBoundingClientRect().width}var Z;this.subscribedWidth=(Z=this.bellButton)==null?void 0:Z.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.e.updateContainerToFitContent=function(q,Z){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(q?(q=this.subscribedWidth,Z=this.isAnimating&&!Z,this.subscribedIconOnlyWidth===void 0||Z||(q=this.subscribedIconOnlyWidth),this.hostElement.style.width=q+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.e.clearContainerSize=function(){this.hostElement.style.width=""};
_.e.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.e.maybeSetSubscribedButtonIconOnlyWidth=function(){var q=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 Z;q.subscribedIconOnlyWidth=(Z=q.bellButton)==null?void 0:Z.getBoundingClientRect().width;requestAnimationFrame(function(){if(q.bellButton){var w;q.bellButton.textLabel=
(w=q.data)==null?void 0:w.subscribedButtonText}})})))};
_.My.Object.defineProperties(JtD.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 q;return(q=this.data)==null?void 0:q.subscribedButtonText}var Z;return this.forceIconOnly?void 0:(Z=this.data)==null?void 0:Z.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var q,Z,w=((q=this.data)==null?void 0:(Z=q.timedAnimationData)==null?void 0:Z.animationTiming)||[];return{uniqueId:"subscribe",timings:w,enabled:w.length>0&&!this.subscribed,experimentEnabled:w.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var q;return!this.subscribed&&((q=this.data)==null?void 0:q.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 q={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var Z=q.renderer;var w=q.element;var r=q.subscribed;var Y=q.commandController;var C=q.isOverlay;q=q.config;var d=v91(Z,r);C&&(d.style="overlay");C=Object;var O=C.assign,H;a:switch((H=Z.style)==null?void 0:H.styleType){case "COMPACT_GRAY":case "COMPACT_RED":H={size:"S"};break a;default:H={size:"M"}}var L=Sxj(Z,r);var S=
(S=r?Z.subscribedButtonText:Z.unsubscribedButtonText)?_.V1(S):void 0;return O.call(C,{},d,H,{focused:!1,toggled:r,accessibilityLabel:L,formattedButtonText:S,onTap:LQ1(Z,q,r,w,Y)})}}}});
var yv=JtD;yv.prototype.onMouseDown=yv.prototype.onMouseDown;yv.prototype.onDataChanged=yv.prototype.onDataChanged;yv.prototype.observedSubscribed=yv.prototype.observedSubscribed;yv.prototype.onYtServiceRequestCompleted=yv.prototype.onYtServiceRequestCompleted;yv.prototype.onYtServiceRequestSent=yv.prototype.onYtServiceRequestSent;yv.prototype.maybeUpdateBellButtonText=yv.prototype.maybeUpdateBellButtonText;
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],yv.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],yv.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.U(_.LO),_.A("design:type",Object)],yv.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],yv.prototype,"data",void 0);_.X([_.F({selectorArgs:["data.subscribedEntityKey"],selector:_.p6}),_.A("design:type",Object)],yv.prototype,"subscriptionStateEntity",void 0);_.X([_.F({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.A("design:type",Boolean)],yv.prototype,"subscribed",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],yv.prototype,"branded",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],yv.prototype,"animatedActionEnabled",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],yv.prototype,"foregroundLottieRef",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],yv.prototype,"backgroundLottieRef",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],yv.prototype,"overlayButton",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.A("design:type",Object)],yv.prototype,"buttonStyle",void 0);_.X([_.F(),_.A("design:type",Object)],yv.prototype,"forceIconOnly",void 0);_.X([_.F(),_.A("design:type",Object)],yv.prototype,"showTextWhileAnimating",void 0);_.X([_.F({value:function(){return!!_.t().resolve(_.Gj(_.er))&&_.b("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.A("design:type",Boolean)],yv.prototype,"useKeyboardFocused",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],yv.prototype,"keyboardFocused",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],yv.prototype,"isAnimating",void 0);_.X([_.I("data.notificationPreferenceButton.*"),_.A("design:type",Object),_.A("design:paramtypes",[])],yv.prototype,"hasBellButton",null);
_.X([_.M("subscribedButtonText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yv.prototype,"maybeUpdateBellButtonText",null);_.X([_.I("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.A("design:type",Object),_.A("design:paramtypes",[])],yv.prototype,"subscribedButtonText",null);_.X([_.I("data.timedAnimationData.animationTiming","subscribed"),_.A("design:type",Object),_.A("design:paramtypes",[])],yv.prototype,"smartimationSettings",null);
_.X([_.F({reflectToAttribute:!0}),_.I("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.A("design:type",Object),_.A("design:paramtypes",[])],yv.prototype,"subscribeButtonHidden",null);_.X([_.F({reflectToAttribute:!0}),_.I("subscribed","hasBellButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],yv.prototype,"subscribeButtonInvisible",null);
_.X([_.F({reflectToAttribute:!0}),_.I("subscribed"),_.A("design:type",Object),_.A("design:paramtypes",[])],yv.prototype,"unsubscribeButtonHidden",null);_.X([_.fo("ytd-subscription-notification-toggle-button-renderer-next"),_.A("design:type",Object)],yv.prototype,"bellButton",void 0);_.X([_.fo("#subscribe-button-shape"),_.A("design:type",HTMLElement)],yv.prototype,"subscribeButtonShape",void 0);
_.X([_.I("overlayButton","subscribed","data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yv.prototype,"buttonShape",null);_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],yv.prototype,"onYtServiceRequestSent",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],yv.prototype,"onYtServiceRequestCompleted",null);
_.X([_.M("subscribed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yv.prototype,"observedSubscribed",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yv.prototype,"onDataChanged",null);_.X([_.m2("mousedown"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],yv.prototype,"onMouseDown",null);
yv=_.X([_.l({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],yv);
_.p(yv,"ytd-subscribe-button-renderer",function(){if(buD!==void 0)return buD;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return buD=q},{mode:1});var zgg=function(){var q=_.N.apply(this,arguments)||this;q.isRichGrid=!1;return q};
_.z(zgg,_.N);zgg.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"}}}};
var i$=zgg;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],i$.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],i$.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],i$.prototype,"isRichGrid",void 0);i$=_.X([_.l({is:"ytd-game-card-renderer",disableElementRegistration:!0})],i$);
_.p(i$,"ytd-game-card-renderer",function(){if(S4h!==void 0)return S4h;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return S4h=q},{mode:1});var g7={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.b("defer_menus")&&!PD7?0:void 0,waitForSignal:"eocs"};var BY7;var aWW;var noW=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return q};
_.z(noW,_.N);_.e=noW.prototype;_.e.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.e.onSeriesReminderStateEntityChange=function(){var q,Z,w;((q=this.eventReminderStateEntity)==null?0:q.key)&&((Z=this.seriesReminderStateEntity)==null?void 0:Z.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((w=this.eventReminderStateEntity)==null?void 0:w.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.wp("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.e.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.e.onYtServiceRequestError=function(){var q;this.updateReminderStateEntitiesFromButtonState((q=this.data)==null?void 0:q.currentState)};
_.e.handleUpdateUpcomingEventReminderButtonStateCommand=function(q){if(q=_.J(q,QaX)){var Z,w=(Z=this.data)==null?void 0:Z.targetId;w&&q.targetId===w&&_.SH(this.updateReminderStateEntitiesFromButtonState.bind(this,q.state))}};
_.e.getButtonStateFromReminderState=function(){var q;if(((q=this.seriesReminderStateEntity)==null?void 0:q.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var Z;if(((Z=this.eventReminderStateEntity)==null?void 0:Z.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var w,r;if(((w=this.seriesReminderStateEntity)==null?void 0:w.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((r=this.eventReminderStateEntity)==
null?void 0:r.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var Y;return(Y=this.data)==null?void 0:Y.currentState};
_.e.updateReminderStateEntitiesFromButtonState=function(q){if(q){switch(q){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":q="UPCOMING_EVENT_REMINDER_STATE_NONE";var Z="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":q="UPCOMING_EVENT_REMINDER_STATE_SINGLE";Z="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":q="UPCOMING_EVENT_REMINDER_STATE_NONE";Z="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var w;
((w=this.eventReminderStateEntity)==null?0:w.key)&&this.ytdReduxBehavior.dispatch(_.wp("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:q})));var r;((r=this.seriesReminderStateEntity)==null?0:r.key)&&this.ytdReduxBehavior.dispatch(_.wp("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:Z})))}};
_.My.Object.defineProperties(noW.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var q=this.getButtonStateFromReminderState(),Z,w;if(q&&((Z=this.data)==null?0:(w=Z.states)==null?0:w.length))for(Z=_.P(this.data.states),w=Z.next();!w.done;w=Z.next()){w=w.value;var r=void 0;if(((r=_.J(w,ECX))==null?void 0:r.state)===q)return _.J(w,ECX)}}}});
var qh=noW;qh.prototype.onYtServiceRequestError=qh.prototype.onYtServiceRequestError;qh.prototype.onYtServiceRequestCompleted=qh.prototype.onYtServiceRequestCompleted;qh.prototype.onSeriesReminderStateEntityChange=qh.prototype.onSeriesReminderStateEntityChange;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],qh.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],qh.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],qh.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],qh.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],qh.prototype,"data",void 0);_.X([_.F({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:Ja2}),_.A("design:type",Object)],qh.prototype,"eventReminderStateEntity",void 0);
_.X([_.F({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(q,Z){return _.iI(q.entities,"sportsSeriesReminderStateEntity",Z)}}),
_.A("design:type",Object)],qh.prototype,"seriesReminderStateEntity",void 0);_.X([_.I("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],qh.prototype,"currentButtonStateRenderer",null);_.X([_.M("seriesReminderStateEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qh.prototype,"onSeriesReminderStateEntityChange",null);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qh.prototype,"onYtServiceRequestCompleted",null);_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qh.prototype,"onYtServiceRequestError",null);qh=_.X([_.l({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],qh);
_.p(qh,"ytd-upcoming-event-reminder-button-renderer",function(){if(aWW!==void 0)return aWW;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
return aWW=q},{mode:1});var QPv;var Eo7=function(){return _.N.apply(this,arguments)||this};
_.z(Eo7,_.N);Eo7.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.My.Object.defineProperties(Eo7.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(_.b("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
var Zu=Eo7;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Zu.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Zu.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Zu.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Zu.prototype,"shelfDismissal",void 0);
_.X([_.I("data.responseText"),_.A("design:type",Object),_.A("design:paramtypes",[])],Zu.prototype,"text",null);_.X([_.I("data.responseText"),_.A("design:type",Object),_.A("design:paramtypes",[])],Zu.prototype,"textAriaLabel",null);Zu=_.X([_.l({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Zu);
_.p(Zu,"ytd-notification-multi-action-renderer",function(){if(QPv!==void 0)return QPv;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return QPv=q},{mode:1});var xD1;var TYK=function(){return _.N.apply(this,arguments)||this};
_.z(TYK,_.N);TYK.prototype.ready=function(){var q=this;_.E(this.hostElement).querySelector("#undo").addEventListener("tap",function(){q.onUndoTap()})};
TYK.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.t().resolve(_.ps).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
var w8=TYK;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],w8.prototype,"data",void 0);w8=_.X([_.l({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],w8);
_.p(w8,"ytd-notification-text-renderer",function(){if(xD1!==void 0)return xD1;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return xD1=q},{mode:1});var UDg;var k51=function(){var q=_.N.apply(this,arguments)||this;q.mouseOverDelayJobId=0;q.fadeInImageDelayJobId=0;q.startTimeMs=-1;q.loadingStartTimeMs=-1;q.loadingEndTimeMs=-1;q.hasVideoPreview=!1;return q};
_.z(k51,_.N);_.e=k51.prototype;_.e.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.e.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.e.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.e.showThumbnail=function(){var q=this;this.csn=_.b5();_.z7("fmth");_.v5.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.sL(_.v5,function(){q.loadingStartTimeMs=(0,_.lp)();var Z=_.E(q.hostElement).querySelector("#thumbnail");Z.complete?q.displayMouseOverImage():Z.addEventListener("load",_.XN(q,q.displayMouseOverImage))},150):_.NZ(_.E(this.hostElement).querySelector("#play"),"show",!0)};
_.e.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.e.onTap=function(){this.removeVideoPreview()};
_.e.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var q=this.videoId,Z=this.csn,w=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,r=this.startTimeMs,Y=this.hasVideoPreview,C=_.wa(this.trackingParams),d={isMovingThumbnail:Y};Y&&r>0&&(w>0&&(d.movingThumbnailLoadingDurationMs=Math.round(w)),d.durationHoveredMs=Math.round((0,_.lp)()-r));q&&(d.videoId=q);_.IV(Z,C,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:d});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.e.removeVideoPreview=function(){_.v5.cancelJob(this.mouseOverDelayJobId);_.v5.cancelJob(this.fadeInImageDelayJobId);var q=_.E(this.hostElement).querySelector("#thumbnail");_.NZ(q,"fade-in",!1);q.removeEventListener("load",_.XN(this,this.displayMouseOverImage));q=_.E(this.hostElement).querySelector("#play");_.NZ(q,"fade-in",!1);_.NZ(q,"show",!1)};
_.e.displayMouseOverImage=function(){var q=_.E(this.hostElement).querySelector("#thumbnail"),Z=_.E(this.hostElement).querySelector("#play");this.isImageAvailable(q)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.lp)(),this.startTimeMs=(0,_.lp)(),this.fadeInImageDelayJobId=_.sL(_.v5,function(){_.NZ(q,"fade-in",!0)},50)):_.NZ(Z,"fade-in",!0)};
_.e.computeThumbnail=function(q,Z){var w;q&&q.movingThumbnailDetails&&q.movingThumbnailDetails.thumbnails&&Z?w=_.TL(q.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):w=Z?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(w)return _.EX(w)};
_.e.isImageAvailable=function(q){return!(!q.src||q.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||q.naturalWidth===120)};
var r8=k51;r8.prototype.onTap=r8.prototype.onTap;r8.prototype.dataChanged=r8.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],r8.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],r8.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],r8.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],r8.prototype,"csn",void 0);
_.X([_.F(),_.A("design:type",Object)],r8.prototype,"trackingParams",void 0);_.X([_.F(),_.A("design:type",String)],r8.prototype,"videoId",void 0);_.X([_.F(),_.A("design:type",Boolean)],r8.prototype,"isAttachedAndDataSet",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],r8.prototype,"dataChanged",null);_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],r8.prototype,"onTap",null);
r8=_.X([_.l({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],r8);
_.p(r8,"ytd-moving-thumbnail-renderer",function(){if(UDg!==void 0)return UDg;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return UDg=q},{mode:1});var K0W;_.$4=function(q){this.hostElement=q;this.eventSink=null;this.eventList=[]};
_.$4.prototype.shouldForward=function(){var q,Z;return(Z=(q=this.eventSink)==null?void 0:q.isConnected)!=null?Z:document.body.contains(this.eventSink)};
_.$4.prototype.start=function(q,Z){this.eventSink&&this.stop();for(var w=0;w<q.length;w++)this.hostElement.addEventListener(q[w],_.XN(this,this.forwardEvent));var r;this.eventSink=(r=Z.hostElement)!=null?r:Z;this.eventList=q};
_.$4.prototype.stop=function(){for(var q=0;q<this.eventList.length;q++)this.hostElement.removeEventListener(this.eventList[q],_.XN(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.$4.prototype.forwardEvent=function(q,Z){this.shouldForward()&&(q.stopPropagation(),this.eventSink instanceof Element?_.hy(this.eventSink,q.type,Z):_.bx(new _.df("eventSink is not an element")))};_.Yj={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.$4(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(q,Z){this.forwarder_.start(q,Z)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var sPg=function(){return _.N.apply(this,arguments)||this};
_.z(sPg,_.N);_.e=sPg.prototype;_.e.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=_.zj("HTML_DIR")==="rtl"?"right":"left"};
_.e.dataChanged=function(){this.popupOpen=!1};
_.e.computeAriaLabel=function(q){return _.J(q,gA7).label};
_.e.onTap=function(q){q.stopPropagation();q.preventDefault();this.data.command&&_.t().resolve(_.ps).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.e.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.e.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
var OF=sPg;OF.prototype.onPopupClosed=OF.prototype.onPopupClosed;OF.prototype.onPopupOpened=OF.prototype.onPopupOpened;OF.prototype.onTap=OF.prototype.onTap;OF.prototype.dataChanged=OF.prototype.dataChanged;_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],OF.prototype,"eventForwardingBehavior",void 0);_.X([_.U(_.jQ),_.A("design:type",Object)],OF.prototype,"ironButtonState",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],OF.prototype,"componentBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],OF.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,value:-1}),_.A("design:type",Number)],OF.prototype,"tabindex",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.A("design:type",Object)],OF.prototype,"ariaLabel",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],OF.prototype,"disableTooltips",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],OF.prototype,"popupOpen",void 0);
_.X([_.F(),_.A("design:type",Element)],OF.prototype,"eventSink",void 0);_.X([_.fo("#tooltip"),_.A("design:type",Object)],OF.prototype,"tooltip",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OF.prototype,"dataChanged",null);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],OF.prototype,"onTap",null);
_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OF.prototype,"onPopupOpened",null);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OF.prototype,"onPopupClosed",null);OF=_.X([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],OF);
_.p(OF,"ytd-thumbnail-overlay-button-renderer",function(){if(K0W!==void 0)return K0W;var q=document.createElement("template");_.a(q,'\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]]" 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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return K0W=q},{mode:1});var IWe;var ct1=function(){return _.N.apply(this,arguments)||this};
_.z(ct1,_.N);var Hh=ct1;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Hh.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Hh.prototype,"disableAnimation",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Hh.prototype,"rounded",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Hh.prototype,"transparentBackground",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Hh.prototype,"noPadding",void 0);Hh=_.X([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Hh);
_.p(Hh,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(IWe!==void 0)return IWe;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return IWe=q},{mode:1});var Mkm;var Wh=function(){return _.N.apply(this,arguments)||this};
_.z(Wh,_.N);Wh.prototype.computeIconPosition=function(q){return this.get("iconPosition",q)||null};
Wh.prototype.computeIconStyle=function(q){return this.get("iconStyle",q)||null};
Wh.prototype.computeIsIconStyleFilled=function(q){if(!q)return!1;var Z;return q.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((Z=q.icon)==null?void 0:Z.iconType)==="ERROR_BLACK"};
var oe=Wh;_.X([_.F(),_.A("design:type",Object)],oe.prototype,"data",void 0);_.X([_.F({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.A("design:type",Object)],oe.prototype,"iconPosition",void 0);_.X([_.F({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.A("design:type",Object)],oe.prototype,"iconStyle",void 0);_.X([_.F({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],oe.prototype,"iconStyleFilled",void 0);
oe=_.X([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],oe);
_.p(oe,"ytd-thumbnail-overlay-icon-renderer",function(){if(Mkm!==void 0)return Mkm;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Mkm=q},{mode:1});var F0m;var NYg=function(){return _.N.apply(this,arguments)||this};
_.z(NYg,_.N);var u_=NYg;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],u_.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],u_.prototype,"data",void 0);u_=_.X([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],u_);
_.p(u_,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(F0m!==void 0)return F0m;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return F0m=q},{mode:1});var lW9;var G57=function(){var q=_.N.apply(this,arguments)||this;q.isPreviewLoading=!1;return q};
_.z(G57,_.N);var Lt=G57;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Lt.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Lt.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Lt.prototype,"isPreviewLoading",void 0);Lt=_.X([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Lt);
_.p(Lt,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(lW9!==void 0)return lW9;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return lW9=q},{mode:1});var pi1;var XiK=function(){return _.N.apply(this,arguments)||this};
_.z(XiK,_.N);var S4=XiK;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],S4.prototype,"data",void 0);S4=_.X([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],S4);
_.p(S4,"ytd-thumbnail-overlay-pinking-renderer",function(){if(pi1!==void 0)return pi1;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return pi1=q},{mode:1});var mD7;var Atm=function(){var q=_.N.apply(this,arguments)||this;q.disableTooltips=!1;q.isLoading=!1;q.useExpandableTooltip=!1;q.toggled=!1;q.hovered=!1;q.mouseoverDelayJobId=0;q.toggleDelayJobId=0;q.expandAnimationDelayJobId=0;return q};
_.z(Atm,_.N);_.e=Atm.prototype;_.e.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");_.E(this.hostElement).querySelector("#tooltip").position=_.zj("HTML_DIR")==="rtl"?"right":"left"};
_.e.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.v5.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.v5.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.v5.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.e.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.v5.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.v5.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.v5.cancelJob(this.expandAnimationDelayJobId)};
_.e.computeIcon=function(q,Z,w){return(q=w?Z:q)&&q.iconType?_.Xl(q.iconType):void 0};
_.e.computeAriaLabel=function(q,Z,w){return _.J(w?Z:q,gA7).label};
_.e.computeTooltip=function(q,Z,w){return w?Z:q};
_.e.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.e.computeIconOnHover=function(q,Z){if((q==null?0:q.iconType)&&!Z)return _.Xl(q.iconType)};
_.e.onTap=function(q){var Z=this;q.stopPropagation();q.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(q=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(q),this.useExpandableTooltip&&(this.toggleDelayJobId=_.sL(_.v5,function(){Z.hovered=!1;Z.data&&!Z.data.toggledServiceEndpoint&&(Z.expandAnimationDelayJobId=_.sL(_.v5,function(){Z.set("data.isToggled",
!1)},200))},2E3))};
_.e.onMouseenter=function(){var q=this;this.mouseoverDelayJobId=_.sL(_.v5,function(){q.hovered=!0},300)};
_.e.onMouseleave=function(){_.v5.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.e.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.e.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.e.onServiceRequestCompleted=function(q,Z){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(Z)||this.set("data.isToggled",!this.data.isToggled)};
_.e.serviceRequestWasSuccessful=function(q){return _.J(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.SE)?q.data.status==="STATUS_SUCCEEDED":!0};
var vh=Atm;vh.prototype.onServiceRequestCompleted=vh.prototype.onServiceRequestCompleted;vh.prototype.onPopupClosed=vh.prototype.onPopupClosed;vh.prototype.onPopupOpened=vh.prototype.onPopupOpened;vh.prototype.onMouseleave=vh.prototype.onMouseleave;vh.prototype.dataChanged=vh.prototype.dataChanged;_.X([_.U(_.jQ),_.A("design:type",Object)],vh.prototype,"ironButtonState",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],vh.prototype,"ytComponentBehavior",void 0);
_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],vh.prototype,"ytEventForwardingBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],vh.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.A("design:type",Object)],vh.prototype,"ariaLabel",void 0);_.X([_.F(),_.A("design:type",Object)],vh.prototype,"disableTooltips",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],vh.prototype,"popupOpen",void 0);_.X([_.F(),_.A("design:type",Object)],vh.prototype,"isLoading",void 0);_.X([_.F(),_.A("design:type",Element)],vh.prototype,"eventSink",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],vh.prototype,"useExpandableTooltip",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.A("design:type",Object)],vh.prototype,"toggled",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],vh.prototype,"hovered",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.A("design:type",Object)],vh.prototype,"iconOnHover",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vh.prototype,"dataChanged",null);
_.X([_.m2("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vh.prototype,"onMouseleave",null);_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vh.prototype,"onPopupOpened",null);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vh.prototype,"onPopupClosed",null);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],vh.prototype,"onServiceRequestCompleted",null);vh=_.X([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],vh);
_.p(vh,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(mD7!==void 0)return mD7;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return mD7=q},{mode:_.NT("kevlar_poly_si_batch_j053")?1:2});var fWm;var DD1=_.xl(function(q){var Z=q.data;var w=function(){return Z().enableSegmentView};
return _.u("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.u(_.PF,{cond:w,then:function(){return _.u("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.u("div",{class:_.XA("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+Z().startPercent+"%"}}),_.u("div",{class:_.XA("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+Z().segmentDurationPercent+"%"}},_.u("div",{class:_.XA("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.u("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.u("div",null," ",function(){return Z().segmentLabel})),_.u("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.u("div",{class:_.XA("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.u(_.PF,{cond:function(){return!w()&&Z().startPercent},
then:function(){var r={};return _.u("div",{class:_.XA("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(r.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.b("web_enable_modern_progress_bar_overlay"),r))},_.u("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+Z().startPercent+"%"}}))}}))},"K");
DD1.idomCompat=!0;var hgv=_.xl(function(q){var Z=_.A7(),w=_.ok(function(Y){var C,d,O;a:{var H=(C=q.data())==null?void 0:C.animationActivationTargetId;C=((d=q.data())==null?void 0:d.animationActivationEntityKey)||"";d=(O=q.data())==null?void 0:O.animationActivationEntitySelectorType;if(C&&H)switch(d){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":Y=_.iI(Y.entities,"playerStateEntity",C);O=_.t().resolve(_.Gj(_.Tf));H=!!(Y&&Y.videoId===H&&(O==null?0:O.isMiniplayerActive()));H={activated:H,playAnimation:H&&
Y.playerState==="PLAYER_STATE_PLAYING"};break a}H=void 0}return H});
_.L7(function(){var Y;if((Y=w())==null?0:Y.activated){var C;if((C=w())==null?0:C.playAnimation){var d;(d=Z.lottieEl)==null||d.goToAndPlay(0)}else{var O;(O=Z.lottieEl)==null||O.goToAndStop(0)}}});
var r=function(){var Y,C=!((Y=w())==null||!Y.activated);if(q.data()){Y=q.data();var d=void 0;Y.icon&&(d=H1T(Y.icon),d=jNj(d));var O=void 0,H;if((H=Y.backgroundColor)==null?0:H.lightTheme){var L;O={backgroundColor:Lo((L=Y.backgroundColor)==null?void 0:L.lightTheme,"0.8")}}if(Y.text||d||C){if(C&&Y.lottieData&&Z){L=Y.lottieData;var S,v,R;H={animationConfig:{name:L.url,path:L.url,autoplay:(S=L.settings)==null?void 0:S.autoplay,loop:(R=(v=L.settings)==null?void 0:v.loop)!=null?R:!0},animationRef:Z}}else H=
void 0;if(C)S=16;else b:switch(Y.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":S=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":S=18;break b;default:S=16}C={type:S,text:C&&Y.animatedText?Y.animatedText:Y.text,icon:d,customColors:O,animation:H}}else C=void 0}else C=void 0;return C};
return _.u("yt-thumbnail-badge-view-model",{class:_.GL("yt-thumbnail-badge-view-model-wiz",q.class)},_.u(_.PF,{cond:r,then:function(){return _.u(_.NA,{data:function(){return r()}})}}))},"L");var yt7=_.xl(function(q){var Z={};return _.u("yt-thumbnail-bottom-overlay-view-model",{class:_.GL("ytThumbnailBottomOverlayViewModelHost",(Z.ytThumbnailBottomOverlayViewModelHostBackground=function(){return q.data().enableGradientBackground},Z))},_.u("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.u(_.Hx,{data:function(){return q.data().progressBar}},{thumbnailOverlayProgressBarViewModel:DD1}),_.u(_.Hx,{data:function(){return q.data().badge}},{thumbnailBadgeViewModel:function(w){return _.u(hgv,
{data:w.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.u(_.Hx,{data:function(){return q.data().badges}},{thumbnailBadgeViewModel:function(w){return _.u(hgv,{data:w.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"M");
yt7.idomCompat=!0;_.xc(yt7,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.EL}});var QE2={calledOnce:!1,state:"visible"},E9e={calledOnce:!1,state:"hidden"};_.mD(UQj);var iuJ=_.xl(function(q){var Z=q.data;var w=q.className;q=q.alwaysShow;var r=_.Iw();_.EM(r,function(){return Z().rendererContext});
var Y=_.tfj(),C={};return _.u("thumbnail-hover-overlay-view-model",{el:r,class:_.GL("ytThumbnailHoverOverlayViewModelHost",w,(C.ytThumbnailHoverOverlayViewModelHostForceHover=q,C)),"aria-label":function(){var d;return(d=_.J(Z().rendererContext,_.xL))==null?void 0:d.label},
role:function(){return _.a5(Z().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.a5(Z().rendererContext)!==void 0?0:void 0},
"on:keypress":Y},_.u("div",{class:_.GL("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(Z().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var d="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:d="ytThumbnailHoverOverlayViewModelStyleCover"}return d})},_.u(_.PF,{cond:function(){return Z().icon},
then:function(d){return _.u(_.aQ,{data:d,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.u(_.PF,{cond:function(){return Z().text},
then:function(d){return _.u(_.r6,{text:d,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"N"),go7=_.b("web_enable_sink_lockups_batch")?iuJ:UQj,qj7=_.b("web_enable_sink_lockups_batch")?iuJ:_.mq(UQj);
iuJ.idomCompat=!0;var UM=_.xl(function(q){var Z=q.data;return _.u(_.Hx,{data:function(){return Z==null?void 0:Z().overlays}},{thumbnailHoverOverlayViewModel:qj7})},"O");
UM.idomCompat=!0;var ZUW={};var Td=_.xl(function(q){var Z=q.data;var w=q.image;var r=q.state;var Y=q.iconType;var C=q.overlays;var d=q.isOverlay;var O=_.cO();q=_.P(_.qo(!0,void 0,"xOB8yb"));var H=q.next().value,L=q.next().value,S=_.aA(Y,"LIVE");_.Ls(function(){requestAnimationFrame(function(){var R=Z().size;var B=Z().badgeText;if(O.value===null)B=!0;else{var n=kDj(R);B in ZUW?R=ZUW[B]:(R=O.value.clientWidth,ZUW[B]=R);(B=R>n)?O.value.style.display="none":O.value.style.visibility="visible"}L(B)})});
var v=function(){var R={};return R["yt-spec-avatar-shape__image"]=!0,R["yt-spec-avatar-shape__image--ads-app"]=Z().type===1,R};
Y=_.fn(function(R){var B,n;return void((n=(B=Z()).onTap)==null?void 0:n.call(B,R))});
return _.u("yt-avatar-shape",null,_.u("div",{class:function(){var R={};R=(R["yt-spec-avatar-shape"]=!0,R["yt-spec-avatar-shape__button"]=!0,R[sE6(Z().size)]=!0,R["yt-spec-avatar-shape__button--tappable"]=!!Z().onTap,R);var B=Z().avatarButtonCustomClassName;B&&(R[B]=!0);return _.XA(R)},
"on:click":Y,"on:keydown":_.bo(),"aria-label":function(){return Z().onTap?Z().accessibilityText:""},
role:function(){return Z().onTap?"button":void 0},
tabindex:function(){return Z().onTap?0:void 0}},_.u("div",{class:function(){var R,B=Z(),n=r==null?void 0:r(),x=d==null?void 0:d(),K=!((R=B.decorations)==null||!R.includes(2)||B.size!=="medium"&&B.size!=="large"),k=B.size==="tiny"||B.size==="extra-small",G,rz,f,eO,g={};
R=(g["yt-spec-avatar-shape--live-ring"]=!!(((G=B.decorations)==null?0:G.includes(0))&&cNe(B.size)),g["yt-spec-avatar-shape--stories-watched"]=K&&!(n==null||!n.storiesWatched),g["yt-spec-avatar-shape--stories-unwatched"]=K&&!(n==null?0:n.storiesWatched),g["yt-spec-avatar-shape--background-border"]=Mfj(B.decorations)&&!k,g["yt-spec-avatar-shape--background-border-thin"]=Mfj(B.decorations)&&k,g["yt-spec-avatar-shape__on-select-border"]=!((rz=B.decorations)==null||!rz.includes(4)),g["yt-spec-avatar-shape__white-border"]=
!((f=B.decorations)==null||!f.includes(5)),g["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((eO=B.decorations)==null?0:eO.includes(5))&&k),g["yt-spec-avatar-shape--is-overlay"]=!!x,g);return _.XA(R)}},_.u("div",{class:function(){var R={};
R=(R[KQ1(Z().size)]=!0,R["yt-spec-avatar-shape--no-margin"]=Mfj(Z().decorations),R);return _.XA(R)}},_.u(_.aQ,{data:w,
alt:function(){return!Z().onTap&&Z().accessibilityText?Z().accessibilityText:""},
targetWidth:function(){return I_2(Z().size)},
targetHeight:function(){return I_2(Z().size)},
className:function(){return _.XA(v())}}),_.u(_.PF,{cond:function(){var R;
return((R=Z().decorations)==null?void 0:R.includes(0))&&cNe(Z().size)},
then:function(){return _.u("div",{class:function(){var R={};R=(R["yt-spec-avatar-shape__live-badge"]=!0,R["yt-spec-avatar-shape__live-badge--badge-small"]=Z().size==="small",R["yt-spec-avatar-shape__live-badge--badge-medium"]=Z().size==="medium"||Z().size==="48",R["yt-spec-avatar-shape__live-badge--badge-large"]=Z().size==="large",R["yt-spec-avatar-shape__live-badge--badge-extra-large"]=Z().size==="extra-large"||Z().size==="extra-extra-large"||Z().size==="giant",R);return _.XA(R)}},_.u(_.PF,{cond:function(){return Z().badgeText},
then:function(R){return _.u("div",{class:"yt-spec-avatar-shape__badge-text",el:O},R)}}),_.u(_.PF,{cond:H,
then:function(){return _.u("div",{class:"yt-spec-avatar-shape__badge-icon"},_.u(_.q0,{icon:S,size:function(){a:switch(Z().size){case "extra-large":var R=16;break a;default:R=13}return R}}))}}))}}),_.u(_.PF,{cond:function(){var R,B;
return((R=Z().decorations)==null?void 0:R.includes(1))||((B=Z().decorations)==null?void 0:B.includes(0))&&!cNe(Z().size)},
then:function(){return _.u("div",{class:function(){var R=Z(),B,n,x={};var K=(x["yt-spec-avatar-shape__live-dot"]=!((B=R.decorations)==null||!B.includes(0)||cNe(R.size)),x["yt-spec-avatar-shape__new-content"]=!((n=R.decorations)==null||!n.includes(1)),x);return _.XA(K)}})}}),_.Fs(C,function(){return _.u("div",{class:function(){var R={};
R=Object.assign((R["yt-spec-avatar-shape__image-overlays"]=!0,R),v());return _.XA(R)}},C==null?void 0:C())})))))},"P");
Td.idomCompat={callbacks:{overlays:!0}};var wbv=_.xl(function(q){function Z(){w().endpoint&&_.Sp(w().endpoint)}
var w=q.data;var r=q.decorations;var Y=q.avatarButtonCustomClassName;var C=q.isOverlay;return _.u("avatar-view-model",null,_.u(_.PF,{cond:function(){return w().image},
then:function(d){return _.u(Td,{data:function(){return NoT({data:w(),onTap:w().endpoint?Z:void 0,decorations:r==null?void 0:r(),badgeText:void 0,accessibilityText:w().accessibilityText,avatarButtonCustomClassName:Y==null?void 0:Y()})},
image:d,iconType:"RADAR_LIVE",overlays:function(){return _.u(UM,{data:w})},
isOverlay:C})}}))},"Q");
wbv.idomCompat=!0;_.vQ=_.b("mweb_enable_sink_avatar_view_model")||_.b("web_enable_sink_avatars_batch")?wbv:l_6;_.j4=_.b("mweb_enable_sink_avatar_view_model")||_.b("web_enable_sink_avatars_batch")?wbv:_.mq(_.vQ);_.mD(l_6);_.mD(mQI);var rP7,Yj1;rP7=_.xl(function(q){var Z=q.data;q=q.className;var w=_.cO(),r=function(){return _.J(Z().avatar,_.kL)},Y=_.$6(function(){var C,d=Z(),O=r(),H=_.a5(Z().rendererContext),L=(C=w.value)!=null?C:void 0;
return O?p2j({data:d,avatar:O,onTap:H,element:L}):{size:"medium"}},void 0,"v09a6");
return _.u("yt-decorated-avatar-view-model",{class:_.GL("yt-decorated-avatar-view-model-wiz",q),el:w},_.u(_.PF,{cond:function(){var C;return(C=r())==null?void 0:C.image},
then:function(C){return _.u(Td,{data:Y,image:C,iconType:"RADAR_LIVE",overlays:function(){return _.u(UM,{data:r})}})}}))},"R");
Yj1=_.b("web_enable_sink_avatars_batch")?rP7:mQI;_.tO=_.b("web_enable_sink_avatars_batch")?rP7:_.mq(mQI);rP7.idomCompat=!0;var h06=_.Px({avatarViewModel:_.vQ,decoratedAvatarViewModel:Yj1});_.mD(yNO);var $67;$67=_.xl(function(q){var Z=_.Iw(),w=function(){return Z&&_.nV(q.data().rendererContext)};
_.EM(Z,function(){return q.data().rendererContext});
var r=function(){var C=q.data().avatars,d,O;return(O=(d=(C==null?0:C[0])?_.J(C[0],_.kL):void 0)==null?void 0:d.avatarImageSize)!=null?O:"AVATAR_SIZE_UNKNOWN"},Y={};
return _.u("yt-avatar-stack-view-model",{el:Z,class:_.GL("yt-avatar-stack-view-model-wiz",q.className,(Y["yt-avatar-stack-view-model-wiz--tappable"]=w,Y["yt-avatar-stack-view-model-wiz--is-overlay"]=q.isOverlay,Y["yt-avatar-stack-view-model-wiz--medium-text"]=q.useMediumText,Y)),tabindex:function(){return w()?0:void 0},
role:function(){return w()?"link":void 0},
"aria-label":function(){var C,d;return(d=(C=_.J(q.data().rendererContext,_.xL))==null?void 0:C.label)!=null?d:""}},_.u(_.PF,{cond:function(){var C;
return q.data().avatars&&!((C=q.hideAvatar)==null?0:C.call(q))},
then:function(){return _.u("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.u(_.PF,{cond:function(){return q.data().decoratedText},
then:function(C){var d={};return _.u("div",{class:_.GL("yt-avatar-stack-view-model-wiz__text-container",(d["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return r()==="AVATAR_SIZE_XXS"||r()==="AVATAR_SIZE_XS"},d["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var O;
return((O=q.isOverlay)==null?void 0:O.call(q))&&(r()==="AVATAR_SIZE_XXS"||r()==="AVATAR_SIZE_XS")},d)),
style:_.y1({width:function(){return ivT(r())+"px"},
height:function(){return ivT(r())+"px"}})},_.u(_.r6,{text:C,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.u(_.Hx,{data:function(){return q.data().avatars.slice().reverse()}},{avatarViewModel:function(C){return _.u("div",{class:function(){return g92(r())}},_.u(_.j4,{data:C.data,
decorations:function(){var d;if((d=q.decorations)==null?0:d.call(q))d=q.decorations();else{d=q.data();var O=0;d.avatars&&(O+=d.avatars.length);d.decoratedText&&(O+=1);d=O>1?[3]:[]}return d},
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:q.isOverlay}))},
decoratedAvatarViewModel:function(C){return _.u("div",{class:function(){return g92(r())}},_.u(_.tO,{data:C.data}))}}))}}),_.u(_.PF,{cond:function(){return q.data().text},
then:function(C){return _.u(_.r6,{text:C,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"S");
_.eV2=_.b("web_enable_sink_avatars_batch")?$67:yNO;_.C0X=_.b("web_enable_sink_avatars_batch")?$67:_.mq(yNO);$67.idomCompat=!0;_.xc(_.xl(function(q){var Z=q.data;var w=q.thumbnailSize;return _.u("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.u("div",{class:_.GL("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return q4z(w==null?void 0:w())})},_.u(_.Hx,{data:function(){return Z().avatarStack}},{avatarStackViewModel:function(r){return _.u(_.C0X,{data:r.data,
decorations:[5]})}})))},"T"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.zG,
thumbnailSize:_.zG}});_.mD(ZuX);var P09=_.xl(function(q){q=_.n5(q,{hidden:!1});var Z=q.data;return _.u("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:q.hidden},_.u(_.r6,{text:function(){return Z().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.u(_.PF,{cond:function(){return Z().subtitle},
then:function(){return _.u(_.r6,{text:function(){return Z().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"U"),d6W=_.b("web_enable_sink_lockups_batch")?P09:ZuX,V$D=_.b("web_enable_sink_lockups_batch")?P09:_.mq(ZuX);
P09.idomCompat=!0;_.b("web_enable_sink_lockups_batch")?_.xc(V$D,"yt-thumbnail-overlay-title-view-model",{props:{data:_.zG,hidden:_.zG}}):_.Mx(d6W,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var OU7=_.xl(function(q){q=_.n5(q,{isClip:!1});var Z=q.data,w=q.thumbnailSize,r={};return _.u("yt-thumbnail-overlay-badge-view-model",{class:_.GL("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(Z().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var Y="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:Y="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return Y},function(){return wi1(w==null?void 0:w())},(r["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
q.isClip,r))},_.u(_.Hx,{data:function(){return Z().thumbnailBadges}},{thumbnailBadgeViewModel:function(Y){return _.u(hgv,{data:Y.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"V");
OU7.idomCompat=!0;_.xc(OU7,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.zG,thumbnailSize:_.zG,isClip:_.zG}});_.mD(rtO);_.Mx(rtO,"yt-page-indicator-view-model",{propNames:["data"]});var HUK=function(){var q=_.N.apply(this,arguments)||this;q.eventSink=function(){return q};
q.disableInteraction=!1;q.noRoundedCorners=!1;q.isPreviewLoading=!1;q.isOriginalAspectRatio=!1;q.computedObjectFit=!1;q.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return q};
_.z(HUK,_.N);_.e=HUK.prototype;
_.e.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:_.b("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"}}};
_.e.onImageLoaded=function(){this.loaded=!0};
_.e.onImageUnloaded=function(){this.loaded=!1};
_.e.computeRichThumbnail=function(q,Z,w,r){if(q&&Z&&!r&&!_.b("disable_moving_thumbs_handling")&&!w)return Z};
_.e.computeImageWidth=function(q,Z){return Z||9999};
_.e.computeIsOriginalAspectRatio=function(q){return q};
_.e.computeIsLive=function(q){if(q==null?0:q.badges)for(var Z=0;Z<q.badges.length;Z++){var w=q.badges[Z];if(w.metadataBadgeRenderer&&w.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(q==null?0:q.thumbnailOverlays)for(Z=0;Z<q.thumbnailOverlays.length;Z++)if(w=q.thumbnailOverlays[Z],w.thumbnailOverlayTimeStatusRenderer&&w.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.e.computeObjectFit=function(q,Z){return Z||(q?"CONTAIN":"")};
_.e.computeNavigationEndpoint=function(q,Z,w){return q?Z:w};
_.e.computeHasClip=function(q){q=_.P(q||[]);for(var Z=q.next();!Z.done;Z=q.next())if(Z.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.e.computeOverlayColor=function(q){var Z;return(q==null?0:(Z=q.darkColorPalette)==null?0:Z.section2Color)?q.darkColorPalette.section2Color:q==null?void 0:q.sampledThumbnailColor};
_.My.Object.defineProperties(HUK.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return TR(this.width)}}});
var Re=HUK;Re.prototype.onImageUnloaded=Re.prototype.onImageUnloaded;Re.prototype.onImageLoaded=Re.prototype.onImageLoaded;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Re.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Re.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(MMW),_.A("design:type",Object)],Re.prototype,"ytdThumbnailBehavior",void 0);
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Re.prototype,"componentBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],Re.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Re.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],Re.prototype,"circular",void 0);
_.X([_.F({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.A("design:type",Object)],Re.prototype,"richThumbnail",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.A("design:type",Boolean)],Re.prototype,"hasClip",void 0);_.X([_.F(),_.A("design:type",Object)],Re.prototype,"eventSink",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Re.prototype,"queued",void 0);
_.X([_.F({value:!1}),_.A("design:type",Boolean)],Re.prototype,"richGridThumbnail",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],Re.prototype,"useExpandableTooltip",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],Re.prototype,"useUntranslatedNavigationEndpoint",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Re.prototype,"disableInteraction",void 0);
_.X([_.F({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.A("design:type",Object)],Re.prototype,"computedNavigationEndpoint",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Re.prototype,"nowPlayingEqualizerOnly",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Re.prototype,"hidePlaybackStatus",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],Re.prototype,"objectFit",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Re.prototype,"noRoundedCorners",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],Re.prototype,"watchFeedThumbnail",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Re.prototype,"isPreviewLoading",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.A("design:type",Object)],Re.prototype,"isOriginalAspectRatio",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.A("design:type",Object)],Re.prototype,"computedObjectFit",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.A("design:type",Boolean)],Re.prototype,"isLiveVideo",void 0);
_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Re.prototype,"loaded",void 0);_.X([_.F({computed:"computeOverlayColor(data.thumbnail)"}),_.A("design:type",Object)],Re.prototype,"overlayColor",void 0);_.X([_.F({selector:_.TFz}),_.A("design:type",Boolean)],Re.prototype,"inlinePreviewIsEnabled",void 0);_.X([_.F(),_.A("design:type",Number)],Re.prototype,"width",void 0);
_.X([_.I("inlinePreviewIsEnabled"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Re.prototype,"isPreviewDisabled",null);_.X([_.I("width"),_.A("design:type",String),_.A("design:paramtypes",[])],Re.prototype,"thumbnailSize",null);_.X([_.m2("image-loaded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Re.prototype,"onImageLoaded",null);
_.X([_.m2("image-unloaded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Re.prototype,"onImageUnloaded",null);Re=_.X([_.l({disableElementRegistration:!0,is:"ytd-thumbnail"})],Re);
var WZm=_.Fl()(Re,"ytd-thumbnail",function(){if(fWm===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);fWm=q}q=fWm;return q},{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 C16=function(q){var Z=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12646_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12646_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(w){oPD(Z,w)};
this.onLockupMouseLeaveFn=function(w){w=w.relatedTarget;var r,Y;((r=document.getElementsByTagName("ytd-video-preview"))==null?0:(Y=r.item(0))==null?0:Y.contains(w))||(Z.terminateVideoPreview(),b_(Z))};
this.onThumbnailMouseDownFn=function(){Z.terminateVideoPreview();b_(Z)};
this.onTouchStart=function(){Z.JSC$12646_touched=!0};
this.mediaRenderer=q.mediaRenderer;this.thumbnailElement=q.thumbnailElement;this.lockupElement=q.lockupElement;this.videoPreviewOptsInput=q.videoPreviewOpts;u8J(this);JO(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)):
_.bx(Error("Ch")):_.bx(Error("Dh")):LZJ(this)},hL=function(q){LZJ(q);
var Z;(Z=q.lockupElement)==null||Z.removeEventListener("mouseenter",q.onMouseMoveFn);var w;(w=q.lockupElement)==null||w.removeEventListener("mouseleave",q.onLockupMouseLeaveFn);var r;(r=q.lockupElement)==null||r.removeEventListener("touchstart",q.onTouchStart);var Y;(Y=q.thumbnailElement)==null||Y.removeEventListener("mousedown",q.onThumbnailMouseDownFn);b_(q)},u8J=function(q){q.inlinePreviewIsEnabledForUser=_.sE().getState().ui.inlinePreviewIsEnabled;
q.unsubscribeFromInlinePreviewIsEnabled=_.wF(_.sE(),_.TFz,function(Z){(q.inlinePreviewIsEnabledForUser=Z)||b_(q)});
q.JSC$12646_unsubscribeFromInlinePreviewIsActive=_.wF(_.sE(),_.xkX,function(Z){(q.inlinePreviewIsActive=Z)||b_(q)})},LZJ=function(q){q.unsubscribeFromInlinePreviewIsEnabled();
q.unsubscribeFromInlinePreviewIsEnabled=function(){};
q.JSC$12646_unsubscribeFromInlinePreviewIsActive();q.JSC$12646_unsubscribeFromInlinePreviewIsActive=function(){}},oPD=function(q,Z){Z.buttons>0||(Z=_.m6("kevlar_lockup_hover_delay",-1),q.JSC$12646_touched&&Z>=0?(_.v5.cancelJob(q.videoPreviewJobId),q.videoPreviewJobId=_.sL(_.v5,function(){Sj2(q)},Z),q.JSC$12646_touched=!1):Sj2(q))},vPD=function(q){q.videoPreviewJobId=_.sL(_.v5,function(){var Z,w,r,Y;
return _.V(function(C){if(C.nextAddress==1){if(!JO(q))return C.return();Z=q.getVideoPreviewOpts();return Z?(r=(w=_.i5(q.mediaRenderer.hostElement,"yt-open-video-preview-action",[Z]))&&w[0])?_.W(C,w[0],3):C.jumpTo(2):C.return()}C.nextAddress!=2&&(r=C.yieldResult===1);r&&$DT((Y=q.mediaRenderer)==null?void 0:Y.data);_.ub(C)})},2E3)},Sj2=function(q){!q.previewTriggered&&JO(q)&&(q.inlinePreviewIsActive&&q.terminateVideoPreview(),q.previewTriggered=!0,q.mediaRenderer.isInlinePreviewTriggered=!0,_.v5.cancelJob(q.videoPreviewJobId),
q.videoPreviewJobId=_.sL(_.v5,function(){var Z,w,r,Y;
return _.V(function(C){if(C.nextAddress==1){if(!JO(q))return C.return();Z=q.getVideoPreviewOpts();return Z?(r=(w=_.i5(q.mediaRenderer.hostElement,"yt-open-video-preview-action",[Z]))&&w[0])?_.W(C,w[0],3):C.jumpTo(2):C.return()}C.nextAddress!=2&&(r=C.yieldResult===1);r&&$DT((Y=q.mediaRenderer)==null?void 0:Y.data);_.ub(C)})}))};
C16.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var q,Z;if((Z=(q=this.videoPreviewOptsInput)==null?void 0:q.videoPreviewData)!=null)q=Z;else if(q=this.mediaRenderer.data)if(Y4T(q))q={inlinePlaybackEndpoint:_.oQ(q.inlinePlayerData.onVisible),navigationEndpoint:_.oQ(q.onTap),thumbnail:"image"in q?q.image:q.thumbnail,thumbnailOverlays:void 0,accessibilityText:egT(q)};else if("multipleInlinePlaybackEndpoint"in q){var w=_.J(_.J(q.multipleInlinePlaybackEndpoint,iGD),gX2);if(w!=
null&&w.playerDescriptors){Z=[];w=_.P(w.playerDescriptors);for(var r=w.next();!r.done;r=w.next())r=r.value,Z.push({inlinePlaybackEndpoint:r.inlinePlaybackEndpoint,navigationEndpoint:r.navigationEndpoint,thumbnail:r.thumbnail,thumbnailOverlays:r.thumbnailOverlays,accessibilityText:egT(q)});q=Z}else q=void 0}else q={inlinePlaybackEndpoint:q.inlinePlaybackEndpoint,navigationEndpoint:q.navigationEndpoint,thumbnail:q.thumbnail,thumbnailOverlays:q.thumbnailOverlays,accessibilityText:egT(q)};else q=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:q,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var JO=function(q){var Z;if(Z=q.inlinePreviewIsEnabledForUser)Z=(q=q.mediaRenderer.data)?"inlinePlaybackEndpoint"in q&&q.inlinePlaybackEndpoint||Y4T(q)&&q.inlinePlayerData||"multipleInlinePlaybackEndpoint"in q&&q.multipleInlinePlaybackEndpoint?!0:!1:!1;return Z};
C16.prototype.terminateVideoPreview=function(){_.yY(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var b_=function(q){_.v5.cancelJob(q.videoPreviewJobId);q.inlinePreviewIsActive=!1;q.previewTriggered=!1;q.mediaRenderer.isInlinePreviewTriggered=!1};var j8g=_.Fr(["#"]),t$J=function(){var q=_.N.apply(this,arguments)||this;q.isDisabled=!1;return q};
_.z(t$J,_.N);_.e=t$J.prototype;_.e.configureRendererStamper=function(){return{"data.menu":g7,"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"}}}};
_.e.attached=function(){this.updateInlinePreviewHoverListeners()};
_.e.detached=function(){this.clearInlinePreviewHoverListeners()};
_.e.getMetadata=function(q){var Z=[];if(q.metadataText&&Object.keys(q.metadataText).length>0){var w=this.ytRendererBehavior.getSimpleString(q.metadataText);q.upcomingEventData&&q.upcomingEventData.upcomingEventText&&(w=_.jr(w,Number(q.upcomingEventData.startTime)));Z.push(w)}else q.shortViewCountText&&Z.push(this.ytRendererBehavior.getSimpleString(q.shortViewCountText)),q.publishedTimeText&&Z.push(this.ytRendererBehavior.getSimpleString(q.publishedTimeText)),q.upcomingEventData&&q.upcomingEventData.upcomingEventText&&
(w=this.ytRendererBehavior.getSimpleString(q.upcomingEventData.upcomingEventText),Z.push(_.jr(w,Number(q.upcomingEventData.startTime))));return Z};
_.e.calculateBylineText=function(q){return q.shortBylineText?q.shortBylineText:q.bylineText?q.bylineText:null};
_.e.calculateIsDisabled=function(q){return!!q.isDisabled};
_.e.computeHrefWithDefault=function(q){return this.ytComponentBehavior.computeHref_(q)||_.UX(j8g)};
_.e.onDetailsTap=function(q){var Z=this.data&&this.data.navigationEndpoint;Z&&!_.E1(_.E8(q)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.b("kevlar_grid_video_renderer_killswitch")?_.hy(this.hostElement,"yt-navigate",{endpoint:Z}):this.ytComponentBehavior.resolveCommand(Z))};
_.e.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.e.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12650_inlinePreviewHoverListener=KV({mediaRenderer:this,lockupElement:_.E(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.E(this.hostElement).querySelector("ytd-thumbnail")})};
_.e.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$12650_inlinePreviewHoverListener)==null||hL(q)};
_.e.computeThumbnailWidth=function(q,Z){return Z&&Z>0?Z:q?360:210};
_.e.computeShowChannelThumbnail=function(q,Z){var w;return Z&&!!(q==null?0:(w=q.channelThumbnailSupportedRenderers)==null?0:w.channelThumbnailWithLinkRenderer)};
_.My.Object.defineProperties(t$J.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$12650_inlinePreviewHoverListener)==null?0:JO(q))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var zW=t$J;zW.prototype.dataChanged=zW.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],zW.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],zW.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],zW.prototype,"ytdDismissibleItemBehavior",void 0);
_.X([_.U(_.ay),_.A("design:type",Object)],zW.prototype,"ytdLockupBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],zW.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],zW.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],zW.prototype,"noEndpoints",void 0);_.X([_.F({computed:"calculateBylineText(data)"}),_.A("design:type",Object)],zW.prototype,"bylineText",void 0);
_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],zW.prototype,"isSearch",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],zW.prototype,"isDownloading",void 0);_.X([_.F({reflectToAttribute:!0,value:0}),_.A("design:type",Number)],zW.prototype,"width",void 0);_.X([_.F({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.A("design:type",Object)],zW.prototype,"isDisabled",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zW.prototype,"dataChanged",null);_.X([_.I("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zW.prototype,"isHovered",null);zW=_.X([_.l({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],zW);
_.p(zW,"ytd-grid-video-renderer",function(){if(BY7!==void 0)return BY7;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return BY7=q},{mode:_.NT("kevlar_poly_si_batch_j047")?1:2});var RVv;var Bh=function(){var q=_.N.apply(this,arguments)||this;q.roundedContainer=!0;q.skipRoundingTop=!1;q.disableTopPadding=!1;q.amsterdamEnabled=_.b("enable_desktop_amsterdam_info_panels");return q};
_.z(Bh,_.N);Bh.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Bh.prototype.onClick=function(q){var Z,w=(Z=this.data)==null?void 0:Z.sourceEndpoint;!_.E1(_.E8(q),this.hostElement,["A".toString()])&&w&&_.hy(this.hostElement,"yt-navigate",{endpoint:w})};
_.My.Object.defineProperties(Bh.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 q;return!((q=this.data)==null||!q.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var q,Z;return(Z=(q=this.data)==null?void 0:q.paragraphMaxLines)!=null?Z:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
var ae=Bh;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ae.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ae.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ae.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ae.prototype,"showVerticalDividers",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ae.prototype,"roundedContainer",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ae.prototype,"skipRoundingTop",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ae.prototype,"disableTopPadding",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],ae.prototype,"amsterdamEnabled",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ae.prototype,"showMetadataAtTop",null);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ae.prototype,"showMetadataBelowTitle",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.menu"),_.A("design:type",Object),_.A("design:paramtypes",[])],ae.prototype,"hasMenu",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.truncateParagraphs"),_.A("design:type",Object),_.A("design:paramtypes",[])],ae.prototype,"truncateParagraphs",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data.paragraphMaxLines"),_.A("design:type",Number),_.A("design:paramtypes",[])],ae.prototype,"paragraphMaxLines",null);_.X([_.F({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.I("data.background"),_.A("design:type",Object),_.A("design:paramtypes",[])],ae.prototype,"background",null);ae=_.X([_.l({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],ae);
_.p(ae,"ytd-info-panel-content-renderer",function(){if(RVv!==void 0)return RVv;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return RVv=q},{mode:_.NT("kevlar_poly_si_batch_j076")?1:2});var bU2;var JPm;var zV7;var Bev;var aOe=function(){return _.N.apply(this,arguments)||this};
_.z(aOe,_.N);aOe.prototype.computeStyle=function(q){return q};
var nt=aOe;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],nt.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],nt.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],nt.prototype,"style_",void 0);nt=_.X([_.dx({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],nt);
_.p(nt,"yt-channel-thumbnail-with-link-renderer",function(){if(Bev===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;zV7===void 0&&(zV7=document.createElement("template"));var r=zV7;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Bev=q}q=Bev;return q},{mode:2});var QS=function(){var q=_.N.apply(this,arguments)||this;q.modernTypography=_.b("web_modern_typography");return q};
_.z(QS,_.N);QS.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"}}}};
QS.prototype.computeTitleStyle=function(q){return q||null};
QS.prototype.computeAvatarStyle=function(q){return q||null};
QS.prototype.computeShowNavigationButton=function(q,Z){return!(q==null||!q.navigationButton||Z)};
var EF=QS;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],EF.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],EF.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.A("design:type",String)],EF.prototype,"titleStyle",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.A("design:type",String)],EF.prototype,"avatarStyle",void 0);_.X([_.F(),_.A("design:type",Boolean)],EF.prototype,"hideNavigationButton",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],EF.prototype,"isModernSd",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],EF.prototype,"modernTypography",void 0);
EF=_.X([_.l({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],EF);
_.p(EF,"ytd-rich-list-header-renderer",function(){if(JPm!==void 0)return JPm;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return JPm=q},{mode:_.NT("kevlar_poly_si_batch_j058")?1:2});var nP2=function(){return _.N.apply(this,arguments)||this};
_.z(nP2,_.N);nP2.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]]"}}}}}};
var xj=nP2;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],xj.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],xj.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],xj.prototype,"isSearch",void 0);xj=_.X([_.l({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],xj);
_.p(xj,"ytd-preview-card-renderer",function(){if(bU2!==void 0)return bU2;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return bU2=q},{mode:1});var Q8X;var TW=function(){return _.N.apply(this,arguments)||this};
_.z(TW,_.N);TW.prototype.configureRendererStamper=function(){return{"data.menu":g7}};
TW.prototype.dataChanged=function(){var q=this.get("colorExtractionPalette.section1Color",this.data);q=_.oJ(q);_.po(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":q})};
TW.prototype.computeCardStyle=function(q){return this.get("style.value",q)||null};
var UF=TW;UF.prototype.dataChanged=UF.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],UF.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],UF.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],UF.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.A("design:type",String)],UF.prototype,"cardStyle",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UF.prototype,"dataChanged",null);UF=_.X([_.l({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],UF);
_.p(UF,"ytd-compact-channel-recommendation-card-renderer",function(){if(Q8X!==void 0)return Q8X;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Q8X=q},{mode:1});var EPh;var x6p;var TeJ=function(){var q=_.N.apply(this,arguments)||this;q.alignAuto=!1;q.collapsed=!0;q.isToggled=!1;q.alwaysCollapsed=!1;q.canToggle=!0;q.collapsedHeight=80;q.disableToggle=!1;q.alwaysToggleable=!1;q.reversed=!1;q.shouldUseNumberOfLines=!1;q.recomputeOnResize=!1;q.canToggleJobId=0;q.lastReversed=!1;return q};
_.z(TeJ,_.N);_.e=TeJ.prototype;_.e.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.e.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.e.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var q=_.E(this.hostElement),Z=q.childNodes,w=document.createDocumentFragment(),r=q.childNodes.length-1;r>=0;r--)_.E(w).appendChild(Z[r]);_.b("enable_shadydom_free_scoped_node_methods")?_.FN(this.hostElement).appendChild(w):q.appendChild(w)}};
_.e.ready=function(){var q=this;_.SH(function(){q.initChildrenObserver()},1)};
_.e.detached=function(){this.detachObserver()};
_.e.toggle=function(q,Z){this.canToggle&&(this.isToggled=Z,_.hy(this.hostElement,"yt-refit"),q&&q.stopPropagation())};
_.e.reset=function(){this.childrenChanged()};
_.e.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.e.computeIsMoreVisible=function(q,Z){return q&&!Z};
_.e.computeShouldUseNumberOfLines=function(q){try{return!!q&&window.CSS.supports("-webkit-line-clamp","1")}catch(Z){}return!1};
_.e.computeIsLessVisible=function(q,Z){return q&&Z};
_.e.observeCollapsedHeightAndMaxLines=function(){var q=this.collapsedHeight,Z=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.po(this.hostElement,{"--ytd-expander-max-lines":""+Z,"--ytd-expander-collapsed-height":""}):_.po(this.hostElement,{"--ytd-expander-collapsed-height":q+"px","--ytd-expander-max-lines":""})};
_.e.handleMoreTap=function(q){this.disableToggle||(_.hy(this.hostElement,"yt-expander-more-tapped"),this.toggle(q,!0))};
_.e.handleLessTap=function(q){_.hy(this.hostElement,"yt-expander-less-tapped");this.toggle(q,!1)};
_.e.initChildrenObserver=function(){var q=this;this.observer=new MutationObserver(function(){q.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.e.childrenChanged=function(){var q=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Kn(function(){q.canToggleJobId=0;q.calculateCanCollapse()})}))};
_.e.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};
_.e.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.e.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("collapsed-changed",this.collapsed))};
_.e.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("is-toggled-changed",this.isToggled))};
_.e.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("can-toggle-changed",this.canToggle))};
_.My.Object.defineProperties(TeJ.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
var kj=TeJ;kj.prototype.canToggleChangedForBinding=kj.prototype.canToggleChangedForBinding;kj.prototype.isToggledChangedForBinding=kj.prototype.isToggledChangedForBinding;kj.prototype.collapsedChangedForBinding=kj.prototype.collapsedChangedForBinding;kj.prototype.observeCollapsedHeightAndMaxLines=kj.prototype.observeCollapsedHeightAndMaxLines;kj.prototype.onIronResize=kj.prototype.onIronResize;kj.prototype.reversedChanged=kj.prototype.reversedChanged;kj.prototype.toggledChanged=kj.prototype.toggledChanged;
kj.prototype.alwaysToggleableChanged=kj.prototype.alwaysToggleableChanged;_.X([_.U(_.SQ),_.A("design:type",Object)],kj.prototype,"ironResizableBehavior",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],kj.prototype,"alignAuto",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],kj.prototype,"collapsed",void 0);_.X([_.F(),_.A("design:type",Object)],kj.prototype,"isToggled",void 0);_.X([_.F(),_.A("design:type",Object)],kj.prototype,"alwaysCollapsed",void 0);
_.X([_.F(),_.A("design:type",Object)],kj.prototype,"canToggle",void 0);_.X([_.F(),_.A("design:type",Object)],kj.prototype,"collapsedHeight",void 0);_.X([_.F(),_.A("design:type",Object)],kj.prototype,"disableToggle",void 0);_.X([_.F(),_.A("design:type",Object)],kj.prototype,"alwaysToggleable",void 0);_.X([_.F(),_.A("design:type",Object)],kj.prototype,"reversed",void 0);_.X([_.F(),_.A("design:type",Number)],kj.prototype,"maxNumberOfLines",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.A("design:type",Object)],kj.prototype,"shouldUseNumberOfLines",void 0);_.X([_.F(),_.A("design:type",Object)],kj.prototype,"recomputeOnResize",void 0);_.X([_.fo("#content"),_.A("design:type",HTMLDivElement)],kj.prototype,"content",void 0);_.X([_.g3("alwaysToggleable"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kj.prototype,"alwaysToggleableChanged",null);
_.X([_.g3("isToggled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kj.prototype,"toggledChanged",null);_.X([_.I("canToggleJobId"),_.A("design:type",Object),_.A("design:paramtypes",[])],kj.prototype,"isResetting",null);_.X([_.M("reversed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kj.prototype,"reversedChanged",null);
_.X([_.m2("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kj.prototype,"onIronResize",null);_.X([_.M("maxNumberOfLines","collapsedHeight"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kj.prototype,"observeCollapsedHeightAndMaxLines",null);_.X([_.M("collapsed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kj.prototype,"collapsedChangedForBinding",null);
_.X([_.M("isToggled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kj.prototype,"isToggledChangedForBinding",null);_.X([_.M("canToggle"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kj.prototype,"canToggleChangedForBinding",null);kj=_.X([_.l({disableElementRegistration:!0,is:"ytd-expander"})],kj);
_.p(kj,"ytd-expander",function(){if(x6p!==void 0)return x6p;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return x6p=q},{mode:1});var Kt=function(){return _.N.apply(this,arguments)||this};
_.z(Kt,_.N);Kt.prototype.computeIsCarousel=function(q){return!!q.isCarousel};
Kt.prototype.observeLightsourcePalette=function(){var q,Z=(q=this.data)==null?void 0:q.vibrantsourceColorPaletteData;Z&&_.VB(this.hostElement,Z)};
Kt.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
var sF=Kt;sF.prototype.observeLightsourcePalette=sF.prototype.observeLightsourcePalette;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],sF.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],sF.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],sF.prototype,"data",void 0);_.X([_.F({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],sF.prototype,"isCarousel",void 0);
_.X([_.M("data.vibrantsourceColorPaletteData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sF.prototype,"observeLightsourcePalette",null);sF=_.X([_.l({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],sF);
_.p(sF,"ytd-media-upsell-renderer",function(){if(EPh!==void 0)return EPh;var q=document.createElement("template");_.a(q,'\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="arrow_drop_down" 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="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return EPh=q},{mode:2});var U6h;var k0D=function(){var q=_.N.apply(this,arguments)||this;q.JSC$12678_playerEvents=new Map;q.listeningToPlayer=!1;q.startX=0;q.active=!1;q.shouldShowButtons=_.b("web_buttons_hidden_killswitch");q.isHighlighted=!1;q.useHighlightStyling=_.b("web_enable_deeper_metadata_highlight_styling");q.modern=_.b("kevlar_modern_sd");q.enableProblemWalkthrough=_.b("problem_walkthrough_sd");return q};
_.z(k0D,_.N);_.e=k0D.prototype;
_.e.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}}}}}};
_.e.created=function(){this.JSC$12678_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.e.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.XN(this,this.onRepeatButtonToggle));_.b("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.XN(this,this.onActiveUpdate))};
_.e.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.XN(this,this.onRepeatButtonToggle));_.b("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.XN(this,this.onActiveUpdate))};
_.e.onDataChanged=function(){this.removePlayerListeners()};
_.e.onColorPaletteChange=function(){var q={},Z;if(_.RJ()==="USER_INTERFACE_THEME_DARK"&&((Z=this.data)==null?0:Z.darkColorPalette)){var w=this.data.darkColorPalette;q["--ytd-macro-markers-list-item-background-color"]=_.uq(this.get("section2Color",w))}else{var r;_.RJ()==="USER_INTERFACE_THEME_LIGHT"&&((r=this.data)==null?0:r.lightColorPalette)&&(w=this.data.lightColorPalette,q["--ytd-macro-markers-list-item-background-color"]=_.uq(this.get("section3Color",w)))}w?(q["--ytd-macro-markers-list-item-title-color"]=
_.uq(this.get("primaryTitleColor",w)),q["--ytd-macro-markers-list-item-secondary-color"]=_.uq(this.get("secondaryTitleColor",w)),q["--ytd-macro-markers-list-item-timestamp-background-color"]=_.uq(this.get("section1Color",w)),this.customButtonProperties={customColors:{color:_.uq(this.get("primaryTitleColor",w))}},this.useColorSampling=!0):(q["--ytd-macro-markers-list-item-background-color"]="initial",q["--ytd-macro-markers-list-item-title-color"]="initial",q["--ytd-macro-markers-list-item-secondary-color"]=
"initial",q["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.po(this.hostElement,q)};
_.e.onEndpointMouseDown=function(q){this.startX=q.clientX};
_.e.onEndpointClick=function(q){var Z=this,w,r,Y;return _.V(function(C){if(C.nextAddress==1){if(Z.startX!==q.clientX)return q.preventDefault(),C.return();Z.data&&Z.ytRendererBehavior.logExplicitClick(Z.data);if(!Z.seekWithAnimationOnClick)return C.jumpTo(0);if(q.button!==0||q.shiftKey||q.altKey||q.metaKey||q.ctrlKey||_.E1(_.E8(q),Z.hostElement,["BUTTON".toString()]))return C.return();q.stopPropagation();q.preventDefault();return Z.data?_.W(C,_.s1().getPlayerPromise(),3):C.return()}w=C.yieldResult;
Y=(r=_.J(Z.data.onTap,_.ck))==null?void 0:r.startTimeSeconds;Y!==void 0&&w.seekToTimeWithAnimation(Y*1E3,_.kO(Z.data.title));_.ub(C)})};
_.e.computeLayout=function(q){return q};
_.e.computeIsHighlighted=function(q){return!!q};
_.e.computeCarouselType=function(q){return q};
_.e.hideModernCarousel=function(q){return this.modern&&this.hideThumbnail(q)};
_.e.hideThumbnail=function(q){return this.enableProblemWalkthrough&&q!==null&&q==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.e.onRepeatButtonToggle=function(q){var Z=this;q.detail.toggled&&_.s1().getPlayerPromise().then(function(w){Z.ytPlayerListenerBehavior.listenToPlayerEvents(w,Z.JSC$12678_playerEvents);Z.listeningToPlayer=!0})};
_.e.onLoopRangeChange=function(q){var Z=_.E(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(Z){var w=Z.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",Z.polymerController.data);if(w){var r=Number(w.endTimeMs);if(Number(w.startTimeMs)!==(q==null?void 0:q.startTimeMs)||r!==(q==null?void 0:q.endTimeMs))Z.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.e.removePlayerListeners=function(){var q=this;this.listeningToPlayer&&_.s1().getPlayerPromise().then(function(Z){q.ytPlayerListenerBehavior.unlistenFromPlayerEvents(Z,q.JSC$12678_playerEvents);q.listeningToPlayer=!1})};
_.e.onActiveUpdate=function(q){this.active=q.detail.active};
var Ie=k0D;Ie.prototype.onColorPaletteChange=Ie.prototype.onColorPaletteChange;Ie.prototype.onDataChanged=Ie.prototype.onDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ie.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ie.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.QQ.YtPlayerListenerBehavior),_.A("design:type",_.EW)],Ie.prototype,"ytPlayerListenerBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],Ie.prototype,"data",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Ie.prototype,"useCustomColors",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ie.prototype,"active",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ie.prototype,"shouldShowButtons",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.A("design:type",String)],Ie.prototype,"layout",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.A("design:type",Object)],Ie.prototype,"isHighlighted",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ie.prototype,"useHighlightStyling",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ie.prototype,"modern",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ie.prototype,"enableProblemWalkthrough",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.A("design:type",String)],Ie.prototype,"carouselType",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ie.prototype,"useColorSampling",void 0);_.X([_.F(),_.A("design:type",Boolean)],Ie.prototype,"seekWithAnimationOnClick",void 0);_.X([_.F(),_.A("design:type",Object)],Ie.prototype,"customButtonProperties",void 0);
_.X([_.fo("#repeat-button"),_.A("design:type",HTMLElement)],Ie.prototype,"repeatButton",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ie.prototype,"onDataChanged",null);_.X([_.M("data.lightColorPalette","data.darkColorPalette"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ie.prototype,"onColorPaletteChange",null);
Ie=_.X([_.l({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],Ie);
_.p(Ie,"ytd-macro-markers-list-item-renderer",function(){if(U6h!==void 0)return U6h;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return U6h=q},{mode:1});var KZp;var s8W;var IOp=function(){var q=_.N.apply(this,arguments)||this;q.modernTypography=_.b("web_modern_typography");return q};
_.z(IOp,_.N);var ch=IOp;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ch.prototype,"modernTypography",void 0);_.X([_.F(),_.A("design:type",Object)],ch.prototype,"data",void 0);ch=_.X([_.l({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],ch);
_.p(ch,"ytd-title-and-button-list-header-renderer",function(){if(s8W!==void 0)return s8W;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return s8W=q},{mode:1});var cPJ;var M$1=new _.F$("BUTTON_RENDERER_WIZ_TOKEN"),FZe=new _.F$("BUTTON_RENDERER_TOKEN");_.Mh=_.xl(function(q){var Z=_.t().resolve(_.Gj(M$1));if(Z)return _.u(Z,Object.assign({},q));var w=_.t().resolve(FZe);return w?_.u(HPe,null,function(){return _.u(Fu,null,function(){var r,Y,C,d,O,H,L,S,v,R,B,n;return void w(q.data(),{onButtonClickCallback:q.onButtonClickCallback,shouldShowIcons:(r=q.shouldShowIcons)==null?void 0:r.call(q),icon:(Y=q.icon)==null?void 0:Y.call(q),processAllEndpoints:(C=q.processAllEndpoints)==null?void 0:C.call(q),preventDefault:(d=q.preventDefault)==null?void 0:d.call(q),
stopPropagation:(O=q.stopPropagation)==null?void 0:O.call(q),disableButtonRendererClickHandling:(H=q.disableButtonRendererClickHandling)==null?void 0:H.call(q),className:(L=q.className)==null?void 0:L.call(q),buttonOverrides:(S=q.buttonOverrides)==null?void 0:S.call(q),forceModernIconButton:(v=q.forceModernIconButton)==null?void 0:v.call(q),isSubscribe:(R=q.isSubscribe)==null?void 0:R.call(q),alignByText:(B=q.alignByText)==null?void 0:B.call(q),forceDisabled:(n=q.forceDisabled)==null?void 0:n.call(q)})})}):
_.u(_.lS,null)},"W");
_.Mh.idomCompat=!0;var Neg=_.xl(function(q){var Z=q.notification,w=_.aA(q.useSquareAspectRatio,!1);return _.u(_.PF,{cond:function(){var r,Y;return(r=Z().responseText)==null?void 0:(Y=r.runs)==null?void 0:Y.length},
then:function(){var r={};return _.u("div",{class:_.GL("yt-mini-game-card-view-model__dismissed-card",(r["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!w()},r["yt-mini-game-card-view-model--dismissed-square-card"]=w,r))},_.u("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.u(_.PF,{cond:function(){return Z().responseText.runs[0].text},
then:function(Y){return _.u("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:Y},Y)}}),_.u(_.Hx,{data:function(){return Z().buttons}},{buttonRenderer:_.Mh,
buttonViewModel:_.vx})))}})},"X");var APg=_.xl(function(q){q=_.n5(q,{data:{},className:"",useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var Z=q.data,w=q.useFullWidth,r=q.isDesktopWeb,Y=q.addSearchResultTopMargin,C=function(){return Z().layout},d=function(){return Z().title},O=function(){return Z().genre},H=function(){return Z().channelName},L=function(){return Z().image},S=function(){return Z().colorPalette},v=function(){return Z().actionButton},R=function(){return Z().overflowButton},B=function(){return Z().avatar},
n=function(){var G={};
G=_.GL("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(G["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return r()},G));
return _.u("div",{class:G},_.u(lOm,{imageData:L,colorPalette:S}),_.u(G0D,{onTap:function(){return Z().onTap},
imageData:L,accessibilityText:function(){return Z().accessibilityText},
overlayBadgeText:function(){return Z().overlayBadgeText},
iconName:function(){return Z().iconName},
unplayableInlinePlaybackIconName:function(){return Z().unplayableInlinePlaybackIconName},
isDesktopWeb:r}),_.u(_.PF,{cond:function(){return!r()},
then:function(){return _.u(_.lS,null,_.u(pbm,{layout:C,colorPalette:S,isDesktopWeb:r,overflowButton:R,avatar:B,onTap:function(){return Z().onTap},
genre:O,title:d,channelName:H,entityRedesignExperiments:function(){return Z().entityRedesignExperiments}}),_.u(Fx,{actionButton:v}))}}))},x=function(){var G={};
G=_.GL((G["yt-mini-game-card-view-model--search-result-desktop"]=function(){return r()},G["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!r()},G["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return Y()},G));
return _.u("div",{class:G},n(),_.u(Xb7,{description:function(){return Z().description},
isDesktopWeb:r,title:d,genre:O,onTap:function(){return Z().onTap},
actionButton:v,overflowButton:R,avatar:B,channelName:H}))},K=function(){var G=function(){var f;
return(f=Z().entityRedesignExperiments)==null?void 0:f.changePlayablesLayoutWithCta},rz={};
rz=_.GL("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(rz["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return G()},rz["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return r()},rz["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return r()&&Z().width===135},rz["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return r()},rz["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!G()&&r()&&Z().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},rz["yt-mini-game-card-view-model--big-metadata-font"]=function(){return Z().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},rz["yt-mini-game-card-view-model--use-full-width"]=function(){return w()},rz["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!v()},rz));
return _.u("div",{class:rz},_.u(_.PF,{cond:function(){return G()},
then:function(){return _.u(_.lS,null,_.u(m6p,{entityRedesignExperiments:function(){return Z().entityRedesignExperiments},
colorPalette:S,isDesktopWeb:r,onTap:function(){return Z().onTap},
accessibilityText:function(){return Z().accessibilityText},
overlayBadgeText:function(){return Z().overlayBadgeText},
iconName:function(){return Z().iconName},
unplayableInlinePlaybackIconName:function(){return Z().unplayableInlinePlaybackIconName},
actionButton:v,imageData:L}),_.u(pbm,{layout:C,colorPalette:S,isDesktopWeb:r,overflowButton:R,avatar:B,onTap:function(){return Z().onTap},
genre:O,title:d,channelName:H,entityRedesignExperiments:function(){return Z().entityRedesignExperiments}}),_.u(_.PF,{cond:function(){return!!G()===!1&&v()},
then:function(){return _.u(Fx,{actionButton:v})}}))},
else:function(){return _.u(_.lS,null,_.u(lOm,{imageData:L,colorPalette:S}),_.u(G0D,{onTap:function(){return Z().onTap},
imageData:L,accessibilityText:function(){return Z().accessibilityText},
overlayBadgeText:function(){return Z().overlayBadgeText},
iconName:function(){return Z().iconName},
unplayableInlinePlaybackIconName:function(){return Z().unplayableInlinePlaybackIconName},
isDesktopWeb:r}),_.u(pbm,{layout:C,colorPalette:S,isDesktopWeb:r,overflowButton:R,avatar:B,onTap:function(){return Z().onTap},
genre:O,title:d,channelName:H,entityRedesignExperiments:function(){return Z().entityRedesignExperiments}}),_.u(Fx,{actionButton:v}))}}))},k=function(){var G={};
G=_.GL("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(G["yt-mini-game-card-view-model--square-card-desktop"]=function(){return r()},G["yt-mini-game-card-view-model--use-full-width"]=function(){return w()},G));
return _.u("div",{class:G},_.u(G0D,{onTap:function(){return Z().onTap},
imageData:L,accessibilityText:function(){return Z().accessibilityText},
overlayBadgeText:function(){return Z().overlayBadgeText},
iconName:function(){return Z().iconName},
unplayableInlinePlaybackIconName:function(){return Z().unplayableInlinePlaybackIconName},
isDesktopWeb:r}),_.u(pbm,{layout:C,colorPalette:S,isDesktopWeb:r,overflowButton:R,avatar:B,onTap:function(){return Z().onTap},
genre:O,title:d,channelName:H,entityRedesignExperiments:function(){return Z().entityRedesignExperiments}}))};
return _.u("mini-game-card-view-model",{class:q.className},_.u(_.Oq,null,_.u(_.VV,{when:function(){return C()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return K()}),_.u(_.VV,{when:function(){return C()==="MINI_APP_LAYOUT_SQUARE"}},function(){return k()}),_.u(_.VV,{when:function(){return C()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return x()})))},"Y");
APg.idomCompat=!0;var Fx=_.xl(function(q){var Z=_.aA(q.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.u(_.Hx,{data:q.actionButton},{buttonViewModel:function(w){return _.u("div",{class:Z},_.u(_.vx,{data:w.data}))}})},"Z"),G0D=_.xl(function(q){var Z=q.onTap;
var w=q.imageData;var r=q.accessibilityText;var Y=q.overlayBadgeText;var C=q.iconName;var d=q.unplayableInlinePlaybackIconName;q=q.isDesktopWeb;return _.u(_.w6,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:Z},_.u(_.aQ,{data:w,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(r==null?void 0:r())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.u(fOg,{overlayBadgeText:Y,iconName:C,unplayableInlinePlaybackIconName:d,isDesktopWeb:q}))},"$"),fOg=_.xl(function(q){var Z=q.overlayBadgeText;
var w=q.iconName;var r=q.unplayableInlinePlaybackIconName;var Y=q.isDesktopWeb;return _.u("div",{class:"yt-mini-game-card-view-model__badge-container"},_.u(_.PF,{cond:w,then:function(C){return _.u("div",{class:"yt-mini-game-card-view-model__badge"},_.u("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.u(_.q0,{icon:C,className:"yt-mini-game-card-view-model__icon"}),_.u("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},Z)))}}),_.u(_.PF,{cond:function(){return!w()&&
Z()},
then:function(){return _.u("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},Z)}}),_.u(_.PF,{cond:function(){return r()&&Y()},
then:function(){return _.u("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.u(_.q0,{icon:r,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"aa"),lOm=_.xl(function(q){var Z=q.colorPalette;
var w=q.imageData;var r=function(){return Z().vibrantColorPalette?Z().vibrantColorPalette.section2Color:Z().sectionTwoColor};
return _.u(_.lS,null,_.u("div",{class:"yt-mini-game-card-view-model__background-base",style:_.y1({"background-color":function(){return Lo(r(),"1")}})}),_.u("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.y1({"background-image":function(){return"url("+w().sources[0].url+")"}})}),_.u("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.y1({background:function(){return"linear-gradient(180deg,\n    "+Lo(r(),".8")+" 0%,\n    "+Lo(r(),".4")+" 25%,\n    "+Lo(Z().vibrantColorPalette?Z().vibrantColorPalette.section4Color:Z().sectionFourColor,".8")+" 100%)"}})}))},"ba"),pbm=_.xl(function(q){var Z=q.layout;
var w=q.colorPalette;var r=q.overflowButton;var Y=q.avatar;var C=q.onTap;var d=q.title;var O=q.channelName;var H=q.entityRedesignExperiments;var L=q.genre;var S=function(){var R;return Z()!=="MINI_APP_LAYOUT_SQUARE"&&((R=w())==null?0:R.textPrimaryColor)?"color: "+Lo(w().textPrimaryColor,".7"):""},v=function(){var R;
return H==null?void 0:(R=H())==null?void 0:R.changePlayablesLayoutWithCta};
return _.u("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.u(_.PF,{cond:Y,then:function(){return _.u("div",{class:"yt-mini-game-card-view-model__avatar"},_.u(_.Hx,{data:Y},{avatarViewModel:_.j4}))}}),_.u(_.w6,{command:C,
className:"yt-mini-game-card-view-model__metadata-details"},_.u("h3",{class:"yt-mini-game-card-view-model__title",title:d},d),_.u(_.PF,{cond:Y,then:function(){return _.u("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.u("span",{class:"yt-mini-game-card-view-model__genre",title:O,style:S},O),_.u("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:S},L))},
else:function(){return _.u(_.PF,{cond:v,then:function(){return _.u("span",{class:"yt-mini-game-card-view-model__genre",title:L},L)},
else:function(){return _.u("span",{class:"yt-mini-game-card-view-model__genre",title:L,style:S},L)}})}})),_.u("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.u(_.Hx,{data:r},{buttonViewModel:function(R){var B=R.data;
return _.u(_.vx,{data:function(){return Object.assign({},B(),{customFontColor:v()?void 0:B().customFontColor})}})}})))},"ca"),m6p=_.xl(function(q){var Z=q.entityRedesignExperiments;
var w=q.colorPalette;var r=q.isDesktopWeb;var Y=q.onTap;var C=q.accessibilityText;var d=q.overlayBadgeText;var O=q.iconName;var H=q.unplayableInlinePlaybackIconName;var L=q.actionButton;q=q.imageData;var S=function(){var v;return Z==null?void 0:(v=Z())==null?void 0:v.changePlayablesLayoutWithCta};
return _.u("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.u(lOm,{imageData:q,colorPalette:w}),_.u(G0D,{onTap:Y,imageData:q,accessibilityText:C,overlayBadgeText:d,iconName:O,unplayableInlinePlaybackIconName:H,isDesktopWeb:r}),_.u(_.PF,{cond:function(){return(S==null?void 0:S())&&(L==null?void 0:L())},
then:function(){return _.u(Fx,{actionButton:L})}}))},"da"),Xb7=_.xl(function(q){var Z=q.description;
var w=q.isDesktopWeb;var r=q.title;var Y=q.genre;var C=q.onTap;var d=q.actionButton;var O=q.overflowButton;var H=q.avatar;q=q.channelName;var L={};L=_.GL("yt-mini-game-card-view-model--search-result-metadata-wrapper",(L["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=w,L["yt-mini-game-card-view-model--show-unplayable-on-hover"]=w,L["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!w()},L));
var S={};S=_.GL("yt-mini-game-card-view-model__search-result-info-row",(S["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!w()},S));
return _.u("div",{class:L},_.u("div",{class:S},_.u(_.w6,{command:C,className:"yt-mini-game-card-view-model__metadata-details"},_.u("h3",{class:"yt-mini-game-card-view-model__title",title:r},r),_.u("span",{class:"yt-mini-game-card-view-model__genre",title:Y},Y)),_.u(Fx,{actionButton:d,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.u("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.u(_.Hx,{data:O},{buttonViewModel:_.vx}))),_.u("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.u("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.u("div",{class:"yt-mini-game-card-view-model__avatar"},_.u(_.Hx,{data:H},{avatarViewModel:function(v){var R=v.data;return _.u(_.j4,{data:function(){return Object.assign({},R(),{avatarImageSize:w()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.u(_.w6,{command:C,
className:"yt-mini-game-card-view-model__description"},_.u("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},q)),_.u(_.w6,{command:C,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.u("div",null)))),_.u(_.PF,{cond:w,then:function(){return _.u(_.w6,{command:C,className:"yt-mini-game-card-view-model__description"},Z)}}))},"ea");var D6X={isAdsVideo:!0},hVh={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},yPD={showPlayerControls:!1,videoPreviewDurationMs:15E3},wTN={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.b("web_shorts_imp_fullwidth_killswitch")},iU9={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:1,cropPlayerToFillThumbnailHorizontally:!0};var gPX=function(){var q=_.N.apply(this,arguments)||this;q.isSearch=!1;q.isRichGrid=!1;return q};
_.z(gPX,_.N);_.e=gPX.prototype;_.e.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.e.dismissibleItemOnYtServiceRequestSent=function(q,Z){Z.actions&&this.dismissibleItemProcessActions(q,Z.actions)};
_.e.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.e.attached=function(){this.updateInlinePreviewHoverListeners()};
_.e.detached=function(){this.clearInlinePreviewHoverListeners()};
_.e.dataChanged=function(){this.dismissibleItemReset();this.updateInlinePreviewHoverListeners()};
_.e.dismissibleItemProcessActions=function(q,Z){for(var w=0;w<Z.length;w++){var r=Z[w];_.J(r,_.CH)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.J(r,_.CH)),q.stopPropagation())}};
_.e.dismissibleItemHandleReplaceEnclosingAction=function(q){this.dismissedRenderer=q.item;this.isDismissed=!0};
_.e.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.thumbnailWrapper&&(this.JSC$12710_inlinePreviewHoverListener=KV({mediaRenderer:this,lockupElement:this.miniGameCardViewModel,thumbnailElement:this.thumbnailWrapper,videoPreviewOpts:iU9}))};
_.e.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$12710_inlinePreviewHoverListener)==null||hL(q)};
_.e.experimentalPropertiesChanged=function(){this.ytIdomTemplatingBehavior.debounceRender()};
_.e.renderIdom=function(){if(this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var q=this.data.layout==="MINI_APP_LAYOUT_SQUARE";zL(Neg)({notification:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:q===void 0?!1:q})}else zL(APg)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0}),this.updateInlinePreviewHoverListeners()};
var Nh=gPX;Nh.prototype.experimentalPropertiesChanged=Nh.prototype.experimentalPropertiesChanged;Nh.prototype.dataChanged=Nh.prototype.dataChanged;Nh.prototype.dismissibleItemOnRequestSent=Nh.prototype.dismissibleItemOnRequestSent;Nh.prototype.dismissibleItemOnYtServiceRequestSent=Nh.prototype.dismissibleItemOnYtServiceRequestSent;_.X([_.U(dq9),_.A("design:type",Object)],Nh.prototype,"ytIdomTemplatingBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Nh.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Nh.prototype,"isSearch",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Nh.prototype,"isDismissed",void 0);_.X([_.F(),_.A("design:type",Object)],Nh.prototype,"dismissedRenderer",void 0);_.X([_.fo(".yt-mini-game-card-view-model__thumbnail-wrapper"),_.A("design:type",HTMLElement)],Nh.prototype,"thumbnailWrapper",void 0);
_.X([_.fo("mini-game-card-view-model"),_.A("design:type",HTMLElement)],Nh.prototype,"miniGameCardViewModel",void 0);_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],Nh.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.X([_.m2("yt-service-request-sent-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Nh.prototype,"dismissibleItemOnRequestSent",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nh.prototype,"dataChanged",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Nh.prototype,"isRichGrid",void 0);_.X([_.M("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nh.prototype,"experimentalPropertiesChanged",null);
Nh=_.X([_.dx({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],Nh);
_.p(Nh,"ytd-mini-game-card-view-model",function(){if(cPJ!==void 0)return cPJ;var q=document.createElement("template");_.a(q,"\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");q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return cPJ=q},{mode:_.NT("kevlar_poly_si_batch_j081")?1:2});var qO7;var Z$K;var wTX=function(){return _.F1.apply(this,arguments)||this};
_.z(wTX,_.F1);wTX.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
wTX.prototype.getContinuationUrl=function(q){var Z={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(Z.itct=this.data.clickTrackingParams);return _.Iz(q,Z)};
var rxg=wTX;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],rxg.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],rxg.prototype,"data",void 0);rxg=_.X([_.dx({is:"yt-reload-continuation",noInjection:!0})],rxg);var YOX;var $zg;var ezp=function(){var q=_.N.apply(this,arguments)||this;q.notificationData={};return q};
_.z(ezp,_.N);_.e=ezp.prototype;_.e.isMenuExpanded=function(q){return q&&q.length<=1?"undefined":"false"};
_.e.dataChanged_=function(){this.selected=void 0;var q=this.computeSelectedIndex_(this.data);q>=0&&(this.selected=q);q=this.data&&this.data.length>1;_.NZ(this.hostElement,"has-items",q);_.E(this.hostElement).querySelector("#label").tabIndex=q?0:-1};
_.e.onDropdownOpen=function(){var q=_.b5();if(this.parentTrackingParams&&this.data){var Z=_.wa(this.parentTrackingParams);this.data.forEach(function(w){q&&Z&&w.trackingParams&&(w=_.wa(w.trackingParams),_.T7(q,Z,w),_.kK(q,[w]))})}else this.parentTrackingParams||_.bx(new _.df("No parent tracking params passed in for yt-dropdown-menu."))};
_.e.hasNotification=function(q){var Z;if(q.targetId&&((Z=this.notificationData)==null?0:Z.targetId)){var w;return q.targetId===((w=this.notificationData)==null?void 0:w.targetId)}};
_.e.computeSelectedIndex_=function(q){if(q)for(var Z=0,w=q.length;Z<w;Z++)if(q[Z].selected)return Z;return-1};
_.e.computeLabel_=function(q){return this.data&&q!=void 0?this.data[q].title:""};
_.e.computeShowIcon_=function(q,Z){return!Z&&!!q};
_.e.computeVerticalOffset_=function(q){return q?36:0};
_.e.computeEndpoint_=function(q){return q.endpoint||q.navigationEndpoint};
_.e.onLabelClick_=function(q){this.data&&this.data.length<=1?q.stopPropagation():this.menuExpanded="true"};
_.e.onIronActivate_=function(q){q=q.detail.item;var Z=_.E(this.hostElement).querySelector("#repeat").itemForElement(q);if(Z&&Z.trackingParams){var w=_.b5(),r=_.wa(Z.trackingParams);w&&_.sh(w,r)}if(Z&&Z.serviceEndpoint)_.b("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(Z.serviceEndpoint):_.qM(this.hostElement,[Z.serviceEndpoint]),_.hy(this.hostElement,"yt-playlist-reloading");else a:{if((Z=q.querySelector("yt-supported-renderers"))&&(Z=
Z.rendererElement)&&Z.is=="yt-reload-continuation"){Z.trigger();break a}(q=q.querySelector("yt-reload-continuation"))&&q.trigger()}};
_.e.onTap_=function(q){q.preventDefault()};
_.e.onItemTap_=function(q){this.ytEndpointBehavior.onEndpointTap_(q)};
_.e.onLinkFocus_=function(q){try{var Z=q.target}catch(r){}if(Z){var w=Z.querySelector("tp-yt-paper-item");w&&_.vp(this,"focus",function(){w.focus()})}};
_.e.onMenuClose_=function(){this.menuExpanded="false"};
_.e.isLabelIconActive_=function(q){return q==="true"};
_.e.computeHasSubtitle_=function(q){return!!q};
_.e.computeHrefForItem_=function(q){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(q))};
_.e.updateSelectedFromBinding=function(q){this.selected=q.detail.value};
var l_=ezp;l_.prototype.onMenuClose_=l_.prototype.onMenuClose_;l_.prototype.onTap_=l_.prototype.onTap_;l_.prototype.onIronActivate_=l_.prototype.onIronActivate_;l_.prototype.onDropdownOpen=l_.prototype.onDropdownOpen;l_.prototype.dataChanged_=l_.prototype.dataChanged_;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],l_.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.ma.YtEndpointBehavior),_.A("design:type",Object)],l_.prototype,"ytEndpointBehavior",void 0);
_.X([_.F(),_.A("design:type",Array)],l_.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],l_.prototype,"parentTrackingParams",void 0);_.X([_.F(),_.A("design:type",Object)],l_.prototype,"selected",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],l_.prototype,"useLabel",void 0);_.X([_.F(),_.A("design:type",String)],l_.prototype,"icon",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],l_.prototype,"iconLabel",void 0);
_.X([_.F(),_.A("design:type",String)],l_.prototype,"ariaLabel",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],l_.prototype,"disabled",void 0);_.X([_.F({computed:"isMenuExpanded(data)"}),_.A("design:type",String)],l_.prototype,"menuExpanded",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],l_.prototype,"closeOnActivate",void 0);_.X([_.F({reflectToAttribute:!0,value:_.b("web_modern_buttons")}),_.A("design:type",Boolean)],l_.prototype,"modernButtons",void 0);
_.X([_.F(),_.A("design:type",Object)],l_.prototype,"notificationData",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],l_.prototype,"dataChanged_",null);_.X([_.m2("paper-dropdown-open"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],l_.prototype,"onDropdownOpen",null);
_.X([_.m2("iron-activate"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],l_.prototype,"onIronActivate_",null);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],l_.prototype,"onTap_",null);_.X([_.m2("iron-overlay-closed"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],l_.prototype,"onMenuClose_",null);
l_=_.X([_.dx({is:"yt-dropdown-menu",disableElementRegistration:!0})],l_);
_.p(l_,"yt-dropdown-menu",function(){if($zg===void 0){var q=document.createElement("template");_.a(q,'\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$="[[ariaLabel]]" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;YOX===void 0&&(YOX=document.createElement("template"));var r=YOX;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);$zg=q}q=$zg;return q},{mode:2});var GW=function(){var q=_.N.apply(this,arguments)||this;q.hasNotification=!1;return q};
_.z(GW,_.N);GW.prototype.computeId=function(q){return q};
GW.prototype.computeHorizontalAlign=function(q){return q?"right":"left"};
GW.prototype.computeAccessibilityLabel=function(q){var Z,w;return((Z=q.accessibility)==null?void 0:(w=Z.accessibilityData)==null?void 0:w.label)||null};
GW.prototype.notificationDataChanged=function(){var q;this.hasNotification=!!this.notificationData&&!((q=this.data)==null?0:q.icon)};
var pt=GW;pt.prototype.notificationDataChanged=pt.prototype.notificationDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],pt.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.LK.YtLiveChatTooltipTargetingBehavior),_.A("design:type",Object)],pt.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],pt.prototype,"data",void 0);
_.X([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.A("design:type",String)],pt.prototype,"id",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],pt.prototype,"isRightAligned",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],pt.prototype,"disabled",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],pt.prototype,"closeOnActivate",void 0);_.X([_.F(),_.A("design:type",Object)],pt.prototype,"notificationData",void 0);
_.X([_.F(),_.A("design:type",Object)],pt.prototype,"hasNotification",void 0);_.X([_.M("notificationData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pt.prototype,"notificationDataChanged",null);pt=_.X([_.dx({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],pt);
_.p(pt,"yt-sort-filter-sub-menu-renderer",function(){if(Z$K===void 0){var q=document.createElement("template");_.a(q,'\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-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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;qO7===void 0&&(qO7=document.createElement("template"));var r=qO7;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Z$K=q}q=Z$K;return q},{mode:2});_.mD(dDe);
var C7m=_.xl(function(q){var Z=q.children;var w=q.className;var r=q.style;var Y=q.role;var C=q.ariaSelected;var d=q.ariaLabel;var O=q.ariaHidden;var H=q.ariaLabelledby;var L=q.ariaDescribedby;var S=q.command;var v=q.elementsCommand;var R=q.forceNewState;var B=q.tabIdentifier;var n=q.target;var x=q.tabIndex;var K=q.stopPropagation;q=_.$6(function(){var k=_.Ln({innertubeCommand:S==null?void 0:S(),elementsCommand:v==null?void 0:v(),forceNewState:R==null?void 0:R(),stopPropagation:(K==null?void 0:K())!==
!1});k||(k={});k["aria-hidden$"]=O==null?void 0:O();var G;k.tabindex$=(G=x==null?void 0:x())!=null?G:k.tabindex$;var rz;k["force-new-state$"]=(rz=R==null?void 0:R())!=null?rz:k["force-new-state$"];var f;k.role$=(f=Y==null?void 0:Y())!=null?f:k.role$;var eO;k["aria-hidden$"]=(eO=O==null?void 0:O())!=null?eO:k["aria-hidden$"];var g;k.target$=(g=n==null?void 0:n())!=null?g:k.target$;return k},void 0,"SU0Mnc");
return _.u(_.w6,{aTagConfig:q,className:w,style:r,ariaLabel:d,ariaLabelledby:H,ariaDescribedby:L,ariaSelected:C,tabIdentifier:B},Z)},"fa");var Vk2=_.b("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",P7p=_.mq(Ouz);_.mD(Ouz);_.xc(P7p,"place-data-view-model",{props:{data:_.zG}});var dzK=new _.F$("INLINE_PLAYBACK_HOOK_TOKEN");var BYj=function(q){this.setActiveSlideIndex=q;this.jobIds=[];this.isSlideshowPlaying=!1},noz=function(q){if(q.isSlideshowPlaying){q.isSlideshowPlaying=!1;
for(var Z=q.jobIds,w=0,r=Z.length;w<r;w++)_.v5.cancelJob(Z[w]);q.jobIds.length=0}},aWz=function(q,Z){q.isSlideshowPlaying||(q.isSlideshowPlaying=!0,Vt7(q),O$7(q,Z,0))},Vt7=function(q){_.sL(_.v5,function(){q.setActiveSlideIndex(0)},1)},O$7=function(q,Z,w){q.jobIds.push(_.sL(_.v5,function(){var r=w<Z-1?w+1:0;
q.setActiveSlideIndex(r);O$7(q,Z,r)},1800))};var voj=new _.F$("IMAGE_ON_LOAD_HANDLER_TOKEN");var H$7=_.xl(function(q){return _.u("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.u(_.PF,{cond:function(){var Z;return(Z=q.data())==null?void 0:Z.thumbnail},
then:function(Z){return _.u(_.aQ,{data:Z,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ga");_.Xx=_.xl(function(q){var Z=q.data;var w=q.lockupExperiments;q={};return _.u("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.u("div",{class:_.GL("ytThumbnailOverlayButtonViewModelButton",(q.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var r;return w&&((r=w())==null?void 0:r.useLegacySizedIconButton)},q))},_.u(_.Hx,{data:function(){return Z().overlayButton}},{buttonViewModel:function(r){return _.u(_.vx,{data:r.data,
buttonOverrides:function(){var Y;return w&&((Y=w())==null?0:Y.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ha");
_.Xx.idomCompat=!0;var WcW=_.xl(function(q){var Z=_.fn(function(w){w.preventDefault();return!1});
return _.u("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":Z},_.u(_.Hx,{data:function(){return q.data().buttons}},{toggleButtonViewModel:function(w){return _.u("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.u(_.uo,{data:w.data}))}}))},"ia");
WcW.idomCompat=!0;var oF1=_.xl(function(q){var Z=function(){var w;return((w=_.J(q.data().rendererContext,_.xL))==null?void 0:w.label)||""};
return _.u("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.u(_.PF,{cond:function(){return q.data().image},
then:function(){return _.u("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.u(_.aQ,{data:function(){return q.data().image},
alt:Z}))}}),_.u(_.PF,{cond:function(){return q.data().text},
then:function(){return _.u("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return q.data().text})}}))},"ja");var tkT=_.Px({thumbnailOverlayTitleViewModel:d6W,thumbnailOverlayBadgeViewModel:OU7,thumbnailBottomOverlayViewModel:yt7,thumbnailOverlayFullViewModel:oF1,thumbnailOverlayButtonViewModel:_.Xx}),RgO=_.Px({thumbnailHoverOverlayViewModel:go7,thumbnailHoverOverlayToggleActionsViewModel:WcW}),buj=_.Px({animatedThumbnailOverlayViewModel:H$7});_.mD(Jtj);var uQ7=_.xl(function(q){var Z=[],w=function(){var R,B;return TR((R=q.width)==null?void 0:R.call(q),(B=q.height)==null?void 0:B.call(q))},r=_.t().resolve(_.Gj(voj)),Y=_.Iw(function(){Z.push("elRef.value set");
var R;(R=q.playbackRef)==null||R.call(q,{thumbnailElRef:Y,thumbnail:q.data().image,thumbnailOverlays:q.data().overlays,thumbnailSize:w()})});
_.Ls(function(){Z.push("onInit");_.SG(function(){Z.push("onCleanup")})});
var C=_.ok(W0T),d=function(){var R,B;return(B=(R=q.aspectRatio)==null?void 0:R.call(q))!=null?B:0},O=function(){return(q.data().image?_.O12(q.data().image):d())<=1&&d()===0},H=function(){return O()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},L=function(){Y.value||_.bx(new _.df("Thumbnail elRef.value is null",Z.join("\n")));
r&&Y.value&&r(Y.value)},S=function(){var R,B;
return((R=q.hovered)==null?void 0:R.call(q))&&w()!=="large"&&((B=q.data().overlays)==null?void 0:B.some(function(n){return _.J(n,jPT)}))},v={};
return _.u("yt-thumbnail-view-model",{class:_.GL("yt-thumbnail-view-model",q.className,function(){return zg1(d())},function(){var R,B;
a:{var n=w(),x=(R=q.disableRounding)==null?void 0:R.call(q);R=(B=q.isClip)==null?void 0:B.call(q);if(!x&&!R)switch(n){case "large":B="yt-thumbnail-view-model--large";break a;case "small":B="yt-thumbnail-view-model--small";break a;default:B="yt-thumbnail-view-model--medium";break a}B=void 0}return B},(v["yt-thumbnail-view-model--cinematic"]=O,v)),
style:_.y1({"background-color":function(){var R,B=O()?(R=q.data().backgroundColor)==null?void 0:R.lightTheme:void 0;return B?Lo(B,"1"):void 0}}),
el:Y},_.u(_.PF,{cond:O,then:function(){return _.u("div",{class:"yt-thumbnail-view-model__blurred-image"},_.u(_.aQ,{data:function(){return q.data().image},
alt:"",contentMode:H,targetWidth:q.width,onload:L}))}}),_.u("div",{class:"yt-thumbnail-view-model__image"},_.u(_.aQ,{data:function(){return q.data().image},
alt:"",contentMode:H,targetWidth:q.width,onload:L}),null),_.u(_.Hx,{data:function(){return S()?void 0:q.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:V$D,thumbnailOverlayBadgeViewModel:function(R){return _.u(OU7,{data:R.data,thumbnailSize:w,isClip:q.isClip})},
thumbnailBottomOverlayViewModel:yt7,thumbnailOverlayFullViewModel:oF1,thumbnailOverlayButtonViewModel:function(R){return _.u(_.Xx,{data:R.data,lockupExperiments:q.lockupExperiments})}}),_.u(_.Hx,{data:function(){var R;
return((R=q.hovered)==null?0:R.call(q))?q.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(R){return _.u(qj7,{data:R.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:WcW}),_.u(_.Hx,{data:function(){var R;return((R=q.hovered)==null?0:R.call(q))&&C()?q.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:H$7}),_.u(_.PF,{cond:q.isClip,then:function(){return L02()}}))},"ka"),Lc9=_.b("web_enable_sink_lockups_batch")?uQ7:Jtj,m4=_.b("web_enable_sink_lockups_batch")?uQ7:_.mq(Lc9,{callbacks:{playbackRef:!0}});
uQ7.idomCompat={callbacks:{playbackRef:!0}};var QPI=_.Px({thumbnailViewModel:Lc9});_.mD(Eoj);var SOg=_.xl(function(q){var Z=_.P(_.qo(-1,void 0,"GEkecf")),w=Z.next().value,r=Z.next().value;_.Ls(function(){var Y=new BYj(r);aWz(Y,q.data().thumbnails.length);_.SG(function(){noz(Y)})});
return _.u("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.u(_.Hx,{data:function(){return q.data().thumbnails}},{thumbnailViewModel:function(Y,C){return _.u("div",{class:function(){var d=!q.data().primaryThumbnail,O=C(),H=w(),L=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
d&&O===0&&L.push("yt-collection-thumbnail-slideshow--first-slide");O<=H&&L.push("yt-collection-thumbnail-slideshow--show-slide");return L.join(" ")}},_.u(m4,{data:Y.data,
disableRounding:q.disableRounding}))}}))},"la"),K0z=_.b("web_enable_sink_lockups_batch")?SOg:Eoj,vFm=_.b("web_enable_sink_lockups_batch")?SOg:_.mq(Eoj);
SOg.idomCompat=!0;var xD6=new _.F$("DWELL_DETECTOR_REGISTRY_TOKEN");var k56=_.Px({thumbnailViewModel:Lc9});_.mD(sP1);var ttp=_.xl(function(q){var Z=UD1(q.triggeringElement),w=function(){return!!q.data().primaryThumbnail};
return _.u("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.u(jS1,{stackEnabled:w,thumbnailSize:function(){var r,Y;return TR((r=q.width)==null?void 0:r.call(q),(Y=q.height)==null?void 0:Y.call(q))},
doubleStack:q.doubleStack,stackColor:function(){return q.data().stackColor}},_.u("div",null,_.u(_.Hx,{data:function(){return q.data().primaryThumbnail}},{thumbnailViewModel:function(r){var Y={};
return _.u(m4,{data:r.data,width:q.width,height:q.height,aspectRatio:q.aspectRatio,disableRounding:q.disableRounding,className:_.GL((Y["yt-collection-thumbnail-view-model--has-stacks"]=w,Y)),hovered:q.hovered,playbackRef:q.playbackRef})}}),_.u(_.PF,{cond:function(){var r;
return Z()&&((r=q.data().thumbnails)==null?void 0:r.length)},
then:function(){return _.u("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.u(vFm,{data:q.data,disableRounding:function(){return!w()}}))}}))))},"ma"),Rzp=_.b("web_enable_sink_lockups_batch")?ttp:_.mq(sP1,{callbacks:{playbackRef:!0}});
ttp.idomCompat={callbacks:{playbackRef:!0}};
var jS1=_.xl(function(q){var Z=q.children;var w=q.stackEnabled;var r=q.thumbnailSize;var Y=q.doubleStack;var C=q.stackColor;var d,O=(d=_.t().resolve(_.Gj(_.RQ)))==null?void 0:d();return _.u(_.PF,{cond:w,then:function(){return _.u(P1X,{data:function(){var H,L;return{experimentEnabled:!0,thumbnailSize:r(),doubleStack:Y==null?void 0:Y(),color:O?C==null?void 0:(H=C())==null?void 0:H.darkTheme:C==null?void 0:(L=C())==null?void 0:L.lightTheme,enableResponsiveMode:!1}}},Z)},
else:function(){return Z}})},"na");var b$h=new _.F$("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var ft;_.AO={calledOnce:!0,state:"visible"};ft={calledOnce:!0,state:"hidden"};_.Du=_.xl(function(q){var Z=q.data;var w=q.customCommandResolver;var r=q.className;var Y=q.delayedClassName;q=q.animationEntityKey;var C=_.Iw(),d=_.aA(q,""),O=_.g6(Ep8,d),H=function(){var g,H6;return(H6=(g=O())==null?void 0:g.value)!=null?H6:!1},L=function(){_.Bp(_.wp("booleanEntity",d(),{key:d(),
value:!0}));k=void 0};
q=_.P(_.hE(H));var S=q.next().value,v=q.next().value;q=_.P(_.hE(H));var R=q.next().value,B=q.next().value;q=_.P(_.hE(function(){var g;return H()?(g=Z().styleTransitionConfig)==null?void 0:g.destinationStyle:void 0}));
var n=q.next().value,x=q.next().value,K=function(){var g=Object.assign({},Z(),n()&&{style:n()}),H6,nX,Qj=g.label,SO=(H6=g.interaction)==null?void 0:(nX=H6.accessibility)==null?void 0:nX.label;H6=g.iconImage?g.label&&g.label.content?g.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:Qj,accessibilityLabel:SO,style:F08(g.style),type:NY1(g.style),state:"active",size:Mk8(g.size),iconPosition:H6,disabled:!1,aTagConfig:ct6(g,w)}},k;
_.Xu(C,{visibilityCallback:function(g){var H6,nX=(H6=Z().interaction)==null?void 0:H6.onFirstVisible;g&&nX&&_.Sp(nX)},
showOption:_.AO});var G=function(){return S9e(K(),!!Z().iconImage)};
r=_.GL(function(){return"ytwAdButtonViewModelHost"},function(){return Z().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var g=!!Z().delayedAppearanceConfig,H6=S();
return g?H6?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var g=!!Z().delayedAppearanceConfig,H6=R();
return g?H6?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!Z().delayedAppearanceConfig||S()?Y==null?void 0:Y():""},r!=null?r:"");
var rz=function(){var g,H6=(g=Z().delayedAppearanceConfig)==null?void 0:g.delayedInvisibleSeconds;H6&&(k=_.$L(_.v5,function(){v(!0);f()},H6*1E3))},f=function(){var g,H6=(g=Z().delayedAppearanceConfig)==null?void 0:g.delayedVisibleSeconds;
H6&&(k=_.$L(_.v5,function(){B(!0);eO()},H6*1E3))},eO=function(){var g,H6=(g=Z().styleTransitionConfig)==null?void 0:g.styleTransitionSeconds,nX,Qj=(nX=Z().styleTransitionConfig)==null?void 0:nX.destinationStyle;
H6&&Qj?k=_.$L(_.v5,function(){x(Qj);L()},H6*1E3):L()};
_.Ls(function(){var g;((g=Z().delayedAppearanceConfig)==null?0:g.transitionDurationSeconds)&&C.value.style.setProperty("transition-duration",Z().delayedAppearanceConfig.transitionDurationSeconds+"s");rz()});
_.SG(function(){k&&_.v5.cancelJob(k)});
return _.u("ad-button-view-model",{class:r,el:C},_.u(_.PF,{cond:K,then:function(){return _.u(X_,{data:K,icon:function(){return _.u(_.PF,{cond:function(){return Z().iconImage},
then:function(g){return _.u(_.aQ,{data:g,alt:"",targetWidth:G,targetHeight:G,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"oa");var JxJ=_.xl(function(q){var Z=q.data;q=_.Iw();_.Xu(q,{visibilityCallback:function(w){var r,Y=(r=Z().interaction)==null?void 0:r.onFirstVisible;w&&Y&&_.Sp(Y)},
showOption:_.AO});return _.u("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:q},_.u("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.u(_.Hx,{data:function(){return Z().secondaryAdButton}},{adButtonViewModel:function(w){return _.u(_.Du,{data:w.data})}})),_.u("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.u(_.Hx,{data:function(){return Z().primaryAdButton}},{adButtonViewModel:function(w){return _.u(_.Du,{data:w.data})}})))},"pa");var zzK=_.xl(function(q){var Z=function(){var w;return((w=q.data())==null?void 0:w.answers)||[]};
return _.u("yt-survey-icons",{class:"ytSurveyIconsHost"},_.u("div",{class:"ytSurveyIconsHeader"},_.u("div",{class:"ytSurveyIconsTitle"},function(){var w;return(w=q.data())==null?void 0:w.text}),_.u("div",null,_.u(X_,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var w;(w=q.onDismiss)==null||w.call(q)}}},
iconName:"DISMISSAL"}))),_.u("div",null,_.u("div",{class:"ytSurveyIconsAnswers"},_.u(_.dA,{each:function(){return Z()},
keyBy:"INDEX"},function(w,r){return _.u("div",null,_.u(X_,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var Y;(Y=q.onSelect)==null||Y.call(q,w(),r)}}},
icon:function(){return _.u(_.q0,{icon:function(){var Y,C;return(Y=w())==null?void 0:(C=Y.icon)==null?void 0:C.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.u("div",{class:"ytSurveyIconsAnswersText"},_.u("div",null,function(){return Z().length?Z()[0].text:""}),_.u("div",null,function(){return Z().length?Z()[Z().length-1].text:""}))))},"qa");var Bv9=_.xl(function(q){var Z=_.P(_.qo(!1,void 0,"s8HkOb")),w=Z.next().value,r=Z.next().value,Y=_.g6(hQN,function(){var O;return(O=q.data().keys)==null?void 0:O.surveyEntityKey}),C=_.g6(yh2,function(){var O;
return(O=q.data().keys)==null?void 0:O.surveyStateEntityKey});
_.sU("ytd-slimline-survey-show-action",function(){r(!1)});
var d=function(){var O,H;var L=(O=C())==null?void 0:(H=O.questionStack)==null?void 0:H[0];if(L!==void 0){var S,v;return(S=Y())==null?void 0:(v=S.questions)==null?void 0:v[L]}};
Z={};return _.u("yt-slimline-survey-view-model",{class:_.GL("ytSlimlineSurveyViewModelHost",(Z.ytSlimlineSurveyViewModelCollapsed=function(){return w()},Z))},_.u("div",{class:"ytSlimlineSurveyViewModelContainer"},_.u(_.PF,{cond:function(){var O;
return((O=d())==null?void 0:O.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.u(zzK,{data:function(){return d()},
onSelect:function(O,H){var L,S;return _.V(function(v){r(!0);if(S=(L=q.data())==null?void 0:L.onSelectRating)_.Sp(S),_.Bp($h7(H));_.ub(v)})},
onDismiss:function(){r(!0)}})}})))},"ra");var ao2=_.xl(function(q){return _.u("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.u(_.Hx,{data:function(){var Z;return(Z=q.data())==null?void 0:Z.attachments}},{flexibleActionsViewModel:function(Z){return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.u(w2g,{data:Z.data,
layout:function(){var w;return((w=q.lockupStyle())==null?void 0:w.arrangement)===1?0:1},
justifyContentOverride:function(){var w;return((w=q.lockupStyle())==null?void 0:w.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(Z){return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.u(Bv9,{data:Z.data}))},
expandableMetadataViewModel:function(Z){Z=Z.data;var w;return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},(w=_.t().resolve(_.Gj(b$h)))==null?void 0:w({data:Z}))},
adButtonGroupViewModel:function(Z){return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.u(JxJ,{data:Z.data}))}}))},"sa");var At8=_.m6("rich_grid_min_item_width",310),Xi2=_.m6("rich_grid_max_item_width",500);var $69=_.xl(function(q){var Z=q.data;return _.u("br-nz-badge-shape",{class:_.GL(function(){return ZUz(Z().brNzRatingBadgeType)}),
role:function(){return Z().accessibilityText?"img":void 0},
"aria-label":function(){return Z().accessibilityText}},function(){var w;
return(w=Z())==null?void 0:w.text})},"ta");_.mD(eVO);var nFv,hjX;nFv=_.xl(function(q){var Z=function(){var w=q.data(),r,Y;return w?Yj6(w,!((r=q.workaroundShortsIsThumbnailBadge)==null||!r.call(q)),(Y=q.modern)==null?void 0:Y.call(q)):void 0};
return _.u("yt-badge-view-model",{class:_.GL("yt-badge-view-model-wiz",q.class)},_.u(_.Oq,null,_.u(_.VV,{when:function(){var w;return!((w=Z())==null||!w.brNzRatingBadgeType)}},function(){return _.u($69,{data:function(){return Z()}})}),_.u(_.VV,{when:function(){return!!Z()&&!Z().brNzRatingBadgeType}},function(){return _.u(_.NA,{data:function(){return Z()}})})))},"ua");
hjX=_.b("web_enable_sink_lockups_batch")?nFv:eVO;_.hO=_.b("web_enable_sink_lockups_batch")?nFv:_.mq(eVO);nFv.idomCompat=!0;var P0X,C0N;P0X=16/9;C0N=2/3;_.yS=_.xl(function(q){var Z=q.data;var w=q.className;var r=q.imageSizeConfig;var Y=q.notifyOnLoaded;q=_.Iw();var C=function(){return Z().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},d=function(){var S;
return _.nV((S=Z())==null?void 0:S.rendererContext)},O={};
O=(O["yt-content-preview-image-view-model-wiz"]=!0,O["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return C()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},O["yt-content-preview-image-view-model-wiz--tappable"]=function(){return d()},O);
var H=function(){var S,v;return(v=(S=_.J(Z().rendererContext,_.xL))==null?void 0:S.label)!=null?v:""},L=function(){return V$j(Z())};
_.EM(q,function(){var S;return(S=Z())==null?void 0:S.rendererContext});
return _.u("yt-content-preview-image-view-model",{el:q,role:function(){return d()?"link":void 0},
tabindex:function(){return d()?0:void 0},
class:_.GL(w,O,function(){var S=C();var v=r==null?void 0:r();S=S==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||S==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||S==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||S==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(v==null?void 0:v.size)!=null&&v.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(v==null?void 0:v.size)!=null&&v.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 S}),
style:function(){return d6z(C(),Z().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",r==null?void 0:r(),OU9(L()),Z().layoutWidth,Z().layoutHeight)}},_.u(_.PF,{cond:L,
then:function(S){return _.u(_.aQ,{data:S,alt:H,"data-disabled$":function(){return!H()},
notifyOnLoaded:Y})}}),_.u(_.Hx,{data:function(){var S;
return(S=Z())==null?void 0:S.overlays}},{thumbnailHoverOverlayViewModel:qj7,
thumbnailOverlayButtonViewModel:_.Xx}))},"va");
_.yS.idomCompat=!0;var EFJ=_.xl(function(q){var Z=q.data;var w=q.className;var r=q.useSmallLayout;var Y=q.useMediumText;q=_.Iw();var C={};Y=(C["yt-attribution-view-model-wiz"]=!0,C["yt-attribution-view-model-wiz--medium-text"]=Y,C);_.EM(q,function(){var d;return(d=Z())==null?void 0:d.rendererContext});
return _.u("yt-attribution-view-model",{el:q,class:_.GL(w,Y)},_.u(_.PF,{cond:function(){return _.nV(Z().rendererContext)},
then:function(){return _.u("button",{class:"yt-attribution-view-model-wiz--tappable"},_.u(QSX,{data:Z,useSmallLayout:r}))},
else:function(){return _.u(QSX,{data:Z,useSmallLayout:r})}}))},"wa"),QSX=_.xl(function(q){var Z=q.data;
var w=q.useSmallLayout;var r=function(){return{size:(w==null?0:w())?16:24}};
return _.u(_.lS,null,_.u(_.Hx,{data:function(){return Z().contentPreviewImage}},{contentPreviewImageViewModel:function(Y){return _.u(_.yS,{data:Y.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:r})}}),_.u(_.Hx,{data:function(){return Z().badge}},{badgeViewModel:function(Y){return _.u(_.hO,{data:Y.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.u(_.PF,{cond:function(){return Z().text},
then:function(){return _.u(_.r6,{text:function(){return Z().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.u(_.PF,{cond:function(){return Z().suffix},
then:function(){return _.u(_.r6,{text:function(){return Z().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"xa");
EFJ.idomCompat=!0;var vPj=_.Px({avatarStackViewModel:_.eV2,badgeViewModel:hjX});_.mD(RVI);var xzW,TvX,UzX,kwp,Kc7,sSp,IoJ;xzW=_.xl(function(q){var Z=q.delimiter;var w=q.max;var r=q.index;var Y=q.isStandalone;return _.u(_.PF,{cond:function(){return w()-1>r()},
then:function(){var C={};return _.u("span",{class:_.GL("yt-content-metadata-view-model-wiz__delimiter",(C["yt-content-metadata-view-model-wiz__delimiter--standalone"]=Y,C)),"aria-hidden":!0},Z)}})},"ya");
TvX=_.xl(function(q){var Z=q.metadataPart;var w=q.maxLines;return _.u(_.r6,{text:function(){return Z().text},
linkInheritColor:!0,className:function(){return bUO(w())},
userInput:!0})},"za");
UzX=_.xl(function(q){var Z=q.metadataPart;var w=q.maxLines;return _.u(_.lS,null,_.u(_.PF,{cond:function(){return Z().tooltip},
then:function(r){return _.u("span",{title:r,role:"tooltip"},_.u(TvX,{metadataPart:Z,maxLines:w}))},
else:function(){return _.u(TvX,{metadataPart:Z,maxLines:w})}}))},"Aa");
kwp=_.xl(function(q){var Z=q.metadataPart;var w=q.isOverlay;var r=q.useMediumText;var Y=q.hideAvatar;var C=function(){return Z().maxLines!==void 0?Z().maxLines:1};
return _.u(_.lS,null,_.u(_.Hx,{data:function(){return Z().avatarStack}},{avatarStackViewModel:function(d){return _.u(_.C0X,{data:d.data,
isOverlay:w,useMediumText:r,hideAvatar:Y})},
badgeViewModel:_.hO}),_.u(_.PF,{cond:function(){return Z().text},
then:function(){return _.u(UzX,{metadataPart:Z,maxLines:C})}}))},"Ba");
Kc7=_.xl(function(q){var Z=q.metadataRow;var w=q.isInline;var r=q.delimiter;var Y=q.isOverlay;var C=q.useMediumText;var d=q.extensions;var O=function(){var H;return WZ8(d==null?void 0:(H=d())==null?void 0:H.lockupMetadata,Z())};
q={};return _.u("div",{class:_.GL("yt-content-metadata-view-model-wiz__metadata-row",(q["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=w,q["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var H;return oPj(d==null?void 0:(H=d())==null?void 0:H.lockupMetadata,Z())},q["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var H;
return!!(d==null?0:(H=d())==null?0:H.lockupMetadata)&&Z().badges},q))},_.u(_.Hx,{data:function(){return Z().badges}},{badgeViewModel:function(H){return _.u("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.u(_.hO,{data:H.data}))}}),_.u(_.dA,{each:function(){return Z().metadataParts||[]}},function(H,L){return _.u(_.lS,null,_.u(kwp,{metadataPart:H,
isOverlay:Y,useMediumText:C,hideAvatar:O}),_.u(xzW,{delimiter:r,max:function(){return Z().metadataParts.length},
index:L,isStandalone:!1}))}),_.u(_.PF,{cond:function(){return Z().isSpacerRow&&!w()},
then:function(){return _.u("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ca");
sSp=_.xl(function(q){var Z=_.n5(q,{layout:0,isOverlay:!1});q=Z.className;var w=Z.data,r=Z.layout,Y=Z.isOverlay,C=Z.useMediumText,d=Z.extensions;Z=_.Iw();var O=function(){return r()===0};
_.EM(Z,function(){return w().rendererContext});
var H={};return _.u("yt-content-metadata-view-model",{class:_.GL(q,"yt-content-metadata-view-model-wiz",(H["yt-content-metadata-view-model-wiz--inline"]=O,H["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.nV(w().rendererContext)},H["yt-content-metadata-view-model-wiz--medium-text"]=C,H)),
el:Z},_.u(_.dA,{each:function(){return w().metadataRows}},function(L,S){return _.u(_.lS,null,_.u(Kc7,{metadataRow:L,
isInline:O,delimiter:function(){return w().delimiter},
isOverlay:Y,useMediumText:C,extensions:d}),_.u(_.PF,{cond:function(){return O()&&!L.isSpacerRow},
then:function(){return _.u(xzW,{delimiter:function(){return w().delimiter},
max:function(){return w().metadataRows.length},
index:S,isStandalone:!0})}}))}))},"Da");
IoJ=_.b("web_enable_sink_lockups_batch")?sSp:RVI;_.cxm=_.b("web_enable_sink_lockups_batch")?sSp:_.mq(RVI);sSp.idomCompat=!0;var Gd=_.Px({avatarViewModel:_.vQ,decoratedAvatarViewModel:Yj1,contentMetadataViewModel:IoJ,buttonViewModel:_.vx,attributionViewModel:EFJ,lockupAttachmentsViewModel:ao2});_.mD(BeI);var Mte=_.xl(function(q){var Z={};return _.u("yt-lockup-metadata-view-model",{class:_.GL("yt-lockup-metadata-view-model-wiz",function(){a:{var w=q.lockupStyle();if(w==null?0:w.isOverlay)w="yt-lockup-metadata-view-model-wiz--overlay";else switch(w==null?void 0:w.arrangement){case 1:w="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:w="yt-lockup-metadata-view-model-wiz--vertical"}}return w},function(){a:{var w=q.lockupStyle();
if(w==null?0:w.isTiny)w="yt-lockup-metadata-view-model-wiz--tiny";else switch(w==null?void 0:w.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":w="yt-lockup-metadata-view-model-wiz--compact";break a;default:w="yt-lockup-metadata-view-model-wiz--standard"}}return w},(Z["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var w;
return(w=q.lockupStyle())==null?void 0:w.isOverlay},Z["yt-lockup-metadata-view-model-wiz--card"]=function(){var w;
return(w=q.lockupStyle())==null?void 0:w.isCard},Z["yt-lockup-metadata-view-model-wiz--centered"]=function(){var w;
return(w=q.lockupStyle())==null?void 0:w.isCentered},Z["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var w;
return(w=q.lockupStyle())==null?void 0:w.typographyBump},Z["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var w;
return(w=q.lockupStyle())==null?void 0:w.useLegacyTypography},Z["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var w;
return(w=q.lockupStyle())==null?void 0:w.useRichGridLegacyTypography},Z))},_.u(_.Hx,{data:function(){return q.data().image}},{avatarViewModel:function(w){return _.u("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.u(_.j4,{data:w.data}))},
decoratedAvatarViewModel:function(w){return _.u("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.u(_.tO,{data:w.data}))}}),_.u("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.u("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var w;return(w=q.data().title)==null?void 0:w.content}},_.u(_.PF,{cond:function(){return q.data().title},
then:function(w){return _.u(_.w6,{command:q.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:q.lockupAccessibilityLabel},_.u(_.r6,{text:w}))}})),_.u("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.u(_.Hx,{data:function(){return q.data().metadata}},{contentMetadataViewModel:function(w){return _.u(_.cxm,{data:w.data,
layout:1,useMediumText:function(){var r,Y;return((r=q.lockupStyle())==null?void 0:r.typographyBump)||((Y=q.lockupStyle())==null?void 0:Y.useRichGridLegacyTypography)},
extensions:function(){var r,Y;return{lockupMetadata:{byline:{hideAvatar:((r=q.lockupStyle())==null?void 0:r.arrangement)===0,addPadding:((Y=q.lockupStyle())==null?void 0:Y.arrangement)===1}}}}})}})),_.u(_.Hx,{data:function(){return q.data().attribution}},{attributionViewModel:function(w){return _.u("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.u(EFJ,{data:w.data,
useSmallLayout:!0}))}}),_.u("div",null,_.u(_.Hx,{data:function(){return q.data().attachmentSlot}},{lockupAttachmentsViewModel:function(w){return _.u(ao2,{data:w.data,
lockupStyle:q.lockupStyle})}}))),_.u("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.u(_.Hx,{data:function(){return q.data().menuButton}},{buttonViewModel:function(w){return _.u(_.vx,{data:w.data,
buttonOverrides:function(){var r;return((r=q.lockupStyle())==null?0:r.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ea"),FcJ=_.b("web_enable_sink_lockups_batch")?Mte:_.mq(BeI);
Mte.idomCompat=!0;var Nve=_.xl(function(q){var Z=_.Iw();_.oz(function(){requestAnimationFrame(function(){_.sG(Z.value)})});
var w={},r={},Y={};return _.u("notification-multi-action-renderer",{class:_.GL("ytNotificationMultiActionRendererHost",(w.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var C;return(C=q.useLegacyShelfStyle)==null?void 0:C.call(q)},w)),
el:Z},_.u("span",{"aria-live":"polite",class:_.GL("ytNotificationMultiActionRendererTextContainer",(r.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var C;return(C=q.useLegacyShelfStyle)==null?void 0:C.call(q)},r))},_.u(_.r6,{text:function(){return q.data().responseText}})),_.u("div",{class:_.GL("ytNotificationMultiActionRendererButtonContainer",(Y.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var C;
return(C=q.useLegacyShelfStyle)==null?void 0:C.call(q)},Y))},_.u(_.Hx,{data:function(){var C;
return(C=q.data().buttons)==null?void 0:C.map(function(d){if(d=d.buttonRenderer){var O,H=Object,L=H.assign,S=(O=d.icon)==null?void 0:O.iconType;O=(O=d.command||d.serviceEndpoint||d.navigationEndpoint)?{innertubeCommand:O}:void 0;d={buttonViewModel:L.call(H,{},{iconName:S,onTap:O,trackingParams:d.trackingParams,titleFormatted:d.text?_.V1(d.text):void 0},aOT(d))}}else d=void 0;return d}).filter(function(d){return!!d})}},{buttonViewModel:function(C,d){return _.u("div",null,_.u(_.vx,{data:C.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var O;return((O=q.useModernStyles)==null?0:O.call(q))?{type:d()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Fa");var loD=_.xl(function(q){var Z=_.Iw();_.oz(function(){requestAnimationFrame(function(){_.sG(Z.value)})});
return _.u("notification-text-renderer",{el:Z,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.u(_.r6,{text:function(){return q.data().successResponseText}}))},"Ga");_.Gw2=_.xl(function(q){var Z=_.g6(QpO,function(){var r;return nPO((r=q.contentId)==null?void 0:r.call(q))}),w=function(){var r;
return _.J((r=Z())==null?void 0:r.command,_.CH)};
return _.u(_.PF,{cond:function(){var r;if(!(r=w())){var Y;r=_.J((Y=Z())==null?void 0:Y.command,CQh)}return r},
then:function(){return _.u(_.PF,{cond:w,then:function(){var r={};return _.u("div",{class:_.GL("ytDismissibleItemReplacedContent",function(){var Y;return Q8N((Y=q.aspectRatio)==null?void 0:Y.call(q))})},_.u("div",{class:_.GL((r.ytDismissibleItemAspectRatioContainer=function(){var Y;
return((Y=q.aspectRatio)==null?void 0:Y.call(q))!==void 0},r))},_.u(_.Hx,{data:function(){var Y;
return(Y=w())==null?void 0:Y.item}},{notificationMultiActionRenderer:function(Y){return _.u(Nve,{data:Y.data,
useModernStyles:q.useModernStyle,useLegacyShelfStyle:q.useLegacyShelfStyle})},
notificationTextRenderer:loD})))}})},
else:q.children})},"Ha");_.pT7=_.xl(function(q){var Z=q.data;var w=q.customCommandResolver;q=_.cO();var r=function(){var C;return((C=Z().interaction)==null?0:C.onTap)?function(d){var O;IWT(d,(O=Z().interaction)==null?void 0:O.onTap,w)}:void 0},Y=function(){var C,d=Z(),O=r(),H=(C=_.J(Z().rendererContext,_.xL))==null?void 0:C.label;
a:switch(d.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":C=1;break a;default:C=0}return{size:Tee(d.size),type:C,onTap:O,accessibilityText:H}};
_.Xu(q,{visibilityCallback:function(C){var d,O=(d=Z().interaction)==null?void 0:d.onFirstVisible;C&&O&&_.Sp(O)},
showOption:_.AO});return _.u("ad-avatar-view-model",{class:function(){var C;return((C=Z().interaction)==null?0:C.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:q},_.u(_.PF,{cond:function(){return Z().image},
then:function(C){return _.u(Td,{data:Y,image:C})}}))},"Ia");_.i_=_.xl(function(q){q=_.n5(q,{hasDot:!1});var Z=Object.assign({},q),w=q.data,r=q.hasDot;q=q.customCommandResolver;var Y=(delete Z.data,delete Z.hasDot,delete Z.customCommandResolver,Z);Z=function(){return w().style};
Z!==void 0&&Z!==null||_.xT(Error("Eh"));Z=_.Iw();_.MA(Z,function(){return w().interaction},q);
return _.u("ad-badge-view-model",{class:_.GL(function(){var C;return((C=w().interaction)==null?0:C.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var C=Y.adRenderingContextType();
w();return C==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:Z},_.u(_.NA,{data:function(){var C;w();var d=(C=w().label)==null?void 0:C.content;C=r();var O=w().style==="AD_BADGE_STYLE_STARK_OVERLAY";return{type:2,text:d,adsIncludeDot:C,isOverlay:O}}}))},"Ja");var XTg;_.g8=_.xl(function(q){var Z=q.data;var w=q.customCommandResolver;var r=q.adRenderingContextType;q=_.Iw();_.MA(q,function(){return Z().interaction},w);
_.Xu(q,{visibilityCallback:function(Y){var C,d=(C=Z().interaction)==null?void 0:C.onFirstVisible;Y&&d&&_.Sp(d)},
showOption:_.AO});return _.u("ad-details-line-view-model",{class:function(){var Y;return((Y=Z().interaction)==null?0:Y.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:q},_.u(_.PF,{cond:function(){return Z().style},
then:function(Y){return _.u(_.dA,{each:function(){var C;return((C=Z())==null?void 0:C.attributes)||[]},
keyBy:"INDEX"},function(C){return _.u(XTg,{attribute:C,style:Y,adRenderingContextType:function(){return r()}})})}}))},"Ka");
XTg=_.xl(function(q){var Z=q.attribute;var w=q.style;var r=q.adRenderingContextType;return _.u(_.PF,{cond:function(){return Z().text},
then:function(Y){return _.u(_.r6,{text:Y,className:function(){var C=r();w();return C==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"La");var mzJ=_.xl(function(q){var Z=q.data;var w=function(){return Z().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
return _.u(_.lS,null,_.u("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.u(_.r6,{text:function(){return Z().headline},
className:function(){return w()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline"},
linkInheritColor:!0}),_.u(_.PF,{cond:function(){return Z().description},
then:function(r){return _.u(_.r6,{text:r,className:function(){return w()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription"},
linkInheritColor:!0})}}),_.u("div",{class:function(){return w()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.u(_.Hx,{data:function(){return Z().adBadge}},{adBadgeViewModel:function(r){return _.u(_.i_,{data:r.data,
hasDot:function(){return!!Z().adDetailsLine},
adRenderingContextType:function(){return Z().adRenderingContextType}})}}),_.u(_.Hx,{data:function(){return Z().adDetailsLine}},{adDetailsLineViewModel:function(r){return _.u(_.g8,{data:r.data,
adRenderingContextType:function(){return Z().adRenderingContextType}})}}))),_.u("div",{class:function(){return w()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.u(_.Hx,{data:function(){return Z().menu}},{buttonViewModel:function(r){return _.u(_.vx,{data:r.data,
buttonOverrides:function(){a:switch(Z().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var Y="S";break a;default:Y="M"}return{size:Y}}})}})))},"Ma"),Ax2=_.xl(function(q){var Z=q.data;
var w=q.noBottomMargin;var r=q.useVideoLockupTopPadding;q={};q=_.GL("ytwFeedAdMetadataViewModelHostMetadata",(q.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return w==null?void 0:w()},q.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return r==null?void 0:r()},q));
var Y=function(){return Z().adBadge};
Y!==void 0&&Y!==null||_.xT(Error("Fh"));Y={};return _.u(_.lS,null,_.u(_.PF,{cond:function(){return Z().adAvatar},
then:function(){return _.u("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.u(_.Hx,{data:function(){return Z().adAvatar}},{adAvatarViewModel:function(C){return _.u(_.pT7,{data:C.data})}}))}}),_.u("div",{class:q},_.u("div",{class:"ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline"},_.u(_.r6,{text:function(){return Z().headline},
linkInheritColor:!0})),_.u(_.PF,{cond:function(){return Z().description},
then:function(C){return _.u(_.r6,{text:C,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.u("div",{class:function(){return Z().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.b("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.u(_.Hx,{data:function(){return Z().adBadge}},
{adBadgeViewModel:function(C){return _.u(_.i_,{data:C.data,
hasDot:function(){return!!Z().adDetailsLine},
adRenderingContextType:function(){return Z().adRenderingContextType}})}}),_.u(_.Hx,{data:function(){return Z().adDetailsLine}},{adDetailsLineViewModel:function(C){return _.u(_.g8,{data:C.data,
adRenderingContextType:function(){return Z().adRenderingContextType}})}})),_.u(_.PF,{cond:function(){return Z().secondaryDescription},
then:function(C){return _.u(_.r6,{text:C,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.u("div",{class:_.GL("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(Y.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return r==null?void 0:r()},Y))},_.u(_.Hx,{data:function(){return Z().menu}},{buttonViewModel:_.vx})))},"Na"),foK=_.xl(function(q){var Z=q.data;
var w=q.noBottomMargin;var r=q.listenToTapEvent;var Y=q.setTouchEndHandler;var C=q.useVideoLockupTopPadding;var d=_.Iw();_.MA(d,function(){return Z().interaction},void 0,function(){return r==null?void 0:r()});
q=_.P(_.qo(!1,void 0,"rVW2Qd"));var O=q.next().value,H=q.next().value;q=_.fn(function(){(Y==null?0:Y())&&!O()&&(d.value.click(),H(!0),setTimeout(function(){H(!1)},100));
return!1});
_.Xu(d,{visibilityCallback:function(L){var S,v=(S=Z().interaction)==null?void 0:S.onFirstVisible;L&&v&&_.Sp(v)},
showOption:_.AO});return _.u("feed-ad-metadata-view-model",{class:function(){var L;return((L=Z().interaction)==null?0:L.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:d,"on:touchend":q},_.u(_.Oq,null,_.u(_.VV,{when:function(){return Z().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.u(mzJ,{data:Z})}),_.u(_.VV,{when:function(){return Z().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.u(Ax2,{data:Z,
noBottomMargin:w,useVideoLockupTopPadding:C})})))},"Oa");var qs=_.xl(function(q){return _.u("yt-lockup-view-model",{class:_.GL(q.className)},_.u(_.Gw2,{contentId:function(){return q.data().contentId},
useModernStyle:!0,aspectRatio:function(){var Z,w;return((Z=q.containerType)==null?void 0:Z.call(q))!==3?go9(q.data().contentType,(w=q.force16By9ThumbnailAspectRatio)==null?void 0:w.call(q)):void 0}},function(){return _.u(Dze,Object.assign({},q))}))},"Pa"),Dze=_.xl(function(q){q=_.n5(q,{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 Z=q.data,w=q.containerLayoutConfig,r=q.containerType,Y=q.sizing,C=q.protectBackground,d=q.typographyBump,O=q.force16By9ThumbnailAspectRatio,H=q.thumbnailFixedWidth,L=q.thumbnailTargetWidth,S=q.lockupExperiments,v=q.elementsPerRow;q=_.Iw();_.EM(q,function(){var SO;return(SO=Z())==null?
void 0:SO.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var R=_.ok(ooN),B=_.t().resolve(_.Gj(dzK)),n=B?{}:void 0,x=function(){var SO,Te,Ze;return(Ze=(Te=_.J((SO=Z())==null?void 0:SO.rendererContext,_.xL))==null?void 0:Te.label)!=null?Ze:void 0},K=function(){var SO=w==null?void 0:w(),Te;
if(SO==null?0:SO.containerType){var Ze=(Te=Z())==null?void 0:Te.contentType;Te=S();var W1=d(),A2=L(),f9=C();SO=Object.assign({},qj9(hgI(SO),fW8(SO.responsiveSize),W1,Ze,SO.force16By9ThumbnailAspectRatio,A2,f9,Te),{thumbnailFixedWidth:SO.contentPreviewWidth})}else SO=qj9(r(),Y(),d(),(Ze=Z())==null?void 0:Ze.contentType,O(),L(),C(),S());return SO};
B&&n&&B({enabled:function(){return R()},
itemPlaybackModel:function(){return Z().itemPlayback},
thumbnailElRef:function(){return n.thumbnailElRef},
containerElRef:q,options:function(){var SO,Te=(SO=_.J(Z().metadata,KMp))==null?void 0:SO.endorsement;SO=n.thumbnailOverlays||[];Te&&SO.push(Te);var Ze,W1;return{thumbnail:n.thumbnail,thumbnailOverlays:SO,accessibilityText:x(),thumbnailSize:n.thumbnailSize,enableRounding:K().isCollection,containPlayerWithinThumbnail:K().isCollection,trackingParams:(Ze=_.J(Z().rendererContext,_.KRT))==null?void 0:(W1=Ze.loggingDirectives)==null?void 0:W1.trackingParams}}});
var k=0;B=_.P(_.qo(!1,void 0,"BKBkhb"));var G=B.next().value,rz=B.next().value;B=_.P(_.qo(!1,void 0,"GK0mq"));var f=B.next().value,eO=B.next().value;B=_.fn(function(){var SO=R()&&Z().itemPlayback;f()?(_.v5.cancelJob(k),k=_.v5.addJob(function(){rz(!SO)},8,32)):rz(!SO);
return!0});
_.MU(q,"mouseleave",function(){k&&(_.v5.cancelJob(k),k=0);rz(!1)});
_.SG(function(){k&&(_.v5.cancelJob(k),k=0)});
var g=x62(function(){eO(!0)}),H6=g.touchFeedbackEvents,nX=g.touchFeedbackOnPointerUp,Qj=g.touchFeedbackOnPointerDown;
_.MU(q,"pointerleave",g.touchFeedbackOnPointerLeave);g={};return _.u("div",{el:q,class:_.GL("yt-lockup-view-model-wiz",function(){a:{var SO=K();if(SO.isOverlay)SO="yt-lockup-view-model-wiz--overlay";else switch(SO.arrangement){case 1:SO="yt-lockup-view-model-wiz--horizontal";break a;default:SO="yt-lockup-view-model-wiz--vertical"}}return SO},function(){a:{var SO=K();
if(SO.isOverlay)SO="yt-lockup-view-model-wiz--overlay";else{switch(SO.collectionStackNumber){case 1:SO="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:SO="yt-lockup-view-model-wiz--collection-stack-2";break a}SO=void 0}}return SO},(g["yt-lockup-view-model-wiz--card"]=function(){return K().isCard},g["yt-lockup-view-model-wiz--compact"]=function(){return K().isTiny||K().sizing!=="STANDARD"},g["yt-lockup-view-model-wiz--protect-background"]=C,g["yt-lockup-view-model-wiz--add-margins"]=
function(){return K().addMarginForFullbleed},g["yt-lockup-view-model-wiz--centered"]=function(){return K().isCentered},g["yt-lockup-view-model-wiz--fullbleed"]=function(){return K().fullbleed},g["yt-lockup-view-model-wiz--single-column-grid"]=function(){return v()===1&&r()===2},g["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var SO;
return(SO=S())==null?void 0:SO.useRichGridLegacyMargin},g)),
"on:mousedown":Qj,"on:mouseup":nX,"on:mouseover":B,"on:touchstart":Qj,"on:touchend":nX},_.u(_.w6,{command:function(){var SO;return _.a5((SO=Z())==null?void 0:SO.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return H()&&K().arrangement===1?"width: "+H():""}},_.u(_.Hx,{data:function(){var SO;
return(SO=Z())==null?void 0:SO.contentImage}},{thumbnailViewModel:function(SO){return _.u(m4,{data:SO.data,
aspectRatio:function(){return K().aspectRatio},
disableRounding:function(){return K().disableRounding},
width:L,hovered:G,isClip:function(){var Te;return((Te=Z())==null?void 0:Te.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:Hue(n),lockupExperiments:function(){return S()}})},
collectionThumbnailViewModel:function(SO){return _.u(Rzp,{data:SO.data,aspectRatio:function(){return K().aspectRatio},
disableRounding:function(){return K().disableRounding},
width:L,doubleStack:function(){return K().collectionStackNumber===2},
hovered:G,playbackRef:Hue(n)})},
decoratedAvatarViewModel:_.tO})),_.u("div",{class:"yt-lockup-view-model-wiz__metadata"},_.u(_.Hx,{data:function(){var SO;return(SO=Z())==null?void 0:SO.metadata}},{lockupMetadataViewModel:function(SO){return _.u(FcJ,{data:SO.data,
lockupStyle:K,lockupCommand:function(){var Te;return _.a5((Te=Z())==null?void 0:Te.rendererContext)},
lockupAccessibilityLabel:function(){return x()}})},
feedAdMetadataViewModel:function(SO){return _.u(foK,{data:SO.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0}})}}),_.u(_.Hx,{data:function(){var SO;
return(SO=Z())==null?void 0:SO.attachmentSlot}},{lockupAttachmentsViewModel:function(SO){return _.u(ao2,{data:SO.data,
lockupStyle:K})}})),_.u(_.YB,{model:function(){a:{switch(K().collectionStackNumber){case 1:var SO=8;
break a;case 2:SO=12;break a}SO=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:SO}},
pointerDownEvent:H6.pointerDownEvent,pointerUpEvent:H6.pointerUpEvent,pointerLeaveEvent:H6.pointerLeaveEvent}))},"Qa");
qs.idomCompat=!0;_.xc(qs,"yt-lockup-view-model",{props:{data:_.zG,containerLayoutConfig:_.zG,containerType:_.zG,sizing:_.zG,protectBackground:_.zG,typographyBump:_.zG,thumbnailFixedWidth:_.zG,thumbnailTargetWidth:_.zG,force16By9ThumbnailAspectRatio:_.zG,className:_.zG,lockupExperiments:_.zG,elementsPerRow:_.zG}});_.mD(cPe);var pb8=_.Px({buttonViewModel:_.vx}),hzD=_.mq(lO8);_.mD(lO8);_.mD(FZT);_.mD(Ne1);_.xc(hzD,"yt-video-attribute-view-model",{props:{data:_.zG,className:_.zG}});var yx7=function(){var q=_.N.apply(this,arguments)||this;q.useHighlightStyling=_.b("web_enable_deeper_metadata_highlight_styling");q.isSearch=!1;q.JSC$12899_lastScrollContainerWidth=NaN;q.pageLoadingFromNavigation=!1;q.currentIndex=0;q.supportComponentResize=!1;return q};
_.z(yx7,_.N);_.e=yx7.prototype;
_.e.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}}}}}};
_.e.attached=function(){document.addEventListener("yt-page-type-changed",_.XN(this,this.onPageChange))};
_.e.detached=function(){document.removeEventListener("yt-page-type-changed",_.XN(this,this.onPageChange))};
_.e.getItemsPath=function(){return"data.cards"};
_.e.onIronResize=function(){this.updateListStyles()};
_.e.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var q;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(q=this.data)==null?void 0:q.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.b("problem_walkthrough_sd")&&!!this.centerItems};
_.e.computeCardListStyle=function(q){return q||null};
_.e.computeEmpty=function(q){return!this.get("cards.length",q)};
_.e.computeThumbnailStyle=function(q){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",q)||null};
_.e.computeHasSubtitle=function(q){return!!this.get("header.richListHeaderRenderer.subtitle",q)};
_.e.computeInitialCountNumber=function(q){return this.hasSquareMiniApp&&q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.e.computeUseFloorScrolling=function(q){return q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.e.computeHasGameCard=function(q){return(q=this.get("cards",q))?q.some(function(Z){return Z.gameCardRenderer}):!1};
_.e.computeCenterHeaderTitle=function(q){return!(q==null||!q.centerHeaderTitle)};
_.e.computeHasPortraitMiniApp=function(q){return(q=q==null?void 0:q.cards)?q.some(function(Z){return Z.miniGameCardViewModel&&Z.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.e.computeHasSquareMiniApp=function(q){return(q=q==null?void 0:q.cards)?q.some(function(Z){return Z.miniGameCardViewModel&&Z.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.e.computeHasSkinnyWidthPortraitMiniApp=function(q){return(q=q==null?void 0:q.cards)?q.some(function(Z){return Z.miniGameCardViewModel&&Z.miniGameCardViewModel.width===135}):!1};
_.e.computeCenterItems=function(q){return!!q};
_.e.computeHasInfoPanel=function(q){var Z;return q==null?void 0:(Z=q.cards)==null?void 0:Z.some(function(w){return w.infoPanelContentRenderer})};
_.e.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.e.getItemByIndex=function(q){var Z=this.items.children;return Z&&Z.length>q?Z[q]:void 0};
_.e.onPageChange=function(){var q=this;this.pageLoadingFromNavigation=!0;_.v5.addJob(function(){q.pageLoadingFromNavigation=!1;_.i5(q.hostElement,"yt-terminate-video-preview-action")},8)};
_.e.updateListStyles=function(){if(_.b("problem_walkthrough_sd")&&this.JSC$12899_scrollContainer!==void 0){var q=this.JSC$12899_scrollContainer.clientWidth;q!==this.JSC$12899_lastScrollContainerWidth&&(this.JSC$12899_lastScrollContainerWidth=q,_.po(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(q*.8,415)+"px"}),_.hy(this.hostElement,"iron-resize"))}};
_.My.Object.defineProperties(yx7.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.b("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return _.b("kevlar_modern_sd")&&!!((q=this.data)==null?0:(Z=q.cards)==null?0:(w=Z[0])==null?0:w.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return!!((q=this.data)==null?0:(Z=q.cards)==null?0:(w=Z[0])==null?0:w.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return _.b("enable_desktop_amsterdam_info_panels")&&!!((q=this.data)==null?0:(Z=q.cards)==null?0:(w=Z[0])==null?0:w.infoPanelContentRenderer)}}});
var Zq=yx7;Zq.prototype.dataChanged=Zq.prototype.dataChanged;Zq.prototype.onIronResize=Zq.prototype.onIronResize;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Zq.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Zq.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.Mt.YtdHorizontalListBehavior),_.A("design:type",Object)],Zq.prototype,"ytdHorizontalListBehavior",void 0);
_.X([_.U(_.vj),_.A("design:type",Object)],Zq.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Zq.prototype,"data",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Zq.prototype,"useCustomColors",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Zq.prototype,"useHighlightStyling",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.A("design:type",Object)],Zq.prototype,"cardListStyle",void 0);_.X([_.F({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.A("design:type",Boolean)],Zq.prototype,"empty",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.A("design:type",Boolean)],Zq.prototype,"hasSubtitle",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.A("design:type",Boolean)],Zq.prototype,"thumbnailStyle",void 0);_.X([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.A("design:type",Boolean)],Zq.prototype,"hasGameCard",void 0);_.X([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.A("design:type",Boolean)],Zq.prototype,"centerHeaderTitle",void 0);
_.X([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.A("design:type",Boolean)],Zq.prototype,"hasPortraitMiniApp",void 0);_.X([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.A("design:type",Boolean)],Zq.prototype,"hasSquareMiniApp",void 0);_.X([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.A("design:type",Boolean)],Zq.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.X([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.A("design:type",Boolean)],Zq.prototype,"hasInfoPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Zq.prototype,"isSearch",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Zq.prototype,"inlineStructuredDescription",void 0);_.X([_.fo("#scroll-container"),_.A("design:type",HTMLDivElement)],Zq.prototype,"JSC$12899_scrollContainer",void 0);
_.X([_.F({computed:"computeInitialCountNumber(data.style.type)"}),_.A("design:type",Number)],Zq.prototype,"initialCount",void 0);_.X([_.F({computed:"computeUseFloorScrolling(data.style.type)"}),_.A("design:type",Boolean)],Zq.prototype,"useFloorScrolling",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.A("design:type",Boolean)],Zq.prototype,"centerItems",void 0);_.X([_.F(),_.A("design:type",Object)],Zq.prototype,"pageLoadingFromNavigation",void 0);
_.X([_.F(),_.A("design:type",Object)],Zq.prototype,"currentIndex",void 0);_.X([_.F(),_.A("design:type",Number)],Zq.prototype,"scrollCount",void 0);_.X([_.F(),_.A("design:type",Object)],Zq.prototype,"supportComponentResize",void 0);_.X([_.fo("#items"),_.A("design:type",HTMLDivElement)],Zq.prototype,"items",void 0);_.X([_.m2("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zq.prototype,"onIronResize",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zq.prototype,"dataChanged",null);_.X([_.F({reflectToAttribute:!0}),_.I("inlineStructuredDescription"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Zq.prototype,"hideNavigationButton",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Zq.prototype,"modernChapters",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Zq.prototype,"hasVideoAttributeViewModels",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Zq.prototype,"modernInfoPanels",null);Zq=_.X([_.l({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],Zq);
_.p(Zq,"ytd-horizontal-card-list-renderer",function(){if(KZp!==void 0)return KZp;var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return KZp=q},{mode:_.NT("kevlar_poly_si_batch_j072")?1:2});_.mD(m62);var i$v=_.mq(m62);_.Mx(m62,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var gFe=function(){var q=_.N.apply(this,arguments)||this;var Z,w;q.isExpanded=(w=(Z=q.data)==null?void 0:Z.isExpanded)!=null?w:!1;q.disableExpand=!1;q.showProminentLabel=!1;q.showRightSideLabel=!0;q.toggleExpandableContent=function(r){q.disableExpand||(r.stopPropagation(),_.xB(_.E8(r),q.hostElement,["info","expanded-subtitle"])||(q.isExpanded=!q.isExpanded,q.ytRendererBehavior.logExplicitClick(q.data),q.JSC$12911_cardList&&!_.b("expandable_metadata_a11y_fix_ks")&&_.I_(q,function(){_.KB(q.hostElement)})))};
q.useSquareThumbnail=!1;q.startX=0;return q};
_.z(gFe,_.N);_.e=gFe.prototype;_.e.computeUseSquareThumbnail=function(){var q;return(q=this.data)==null?void 0:q.useSquareThumbnail};
_.e.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"}}}}};
_.e.dataChanged=function(){if(this.data){var q,Z;this.isExpanded=(Z=(q=this.data)==null?void 0:q.isExpanded)!=null?Z:!1;var w,r,Y,C;if(q=this.isDarkTheme()?(w=this.data)==null?void 0:(r=w.colorData)==null?void 0:r.darkColorPalette:(Y=this.data)==null?void 0:(C=Y.colorData)==null?void 0:C.lightColorPalette){var d,O;if((d=this.data)==null?0:(O=d.colorData)==null?0:O.vibrantColorPalette)q.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.VB(this.hostElement,q)}}};
_.e.isExpandedChanged=function(){this.isExpanded&&this.JSC$12911_cardList&&_.hy(this.JSC$12911_cardList,"iron-resize")};
_.e.computeIsExpanded=function(q){return!!q.isExpanded};
_.e.computeShowProminentLabel=function(q,Z){var w;return!!(q==null?0:(w=q.header)==null?0:w.showLeadingCollapsedLabel)&&!Z};
_.e.computeShowRightSideLabel=function(q,Z){var w;return!(q==null?0:(w=q.header)==null?0:w.showLeadingCollapsedLabel)&&!Z};
_.e.captureContentClick=function(q){if(!this.disableExpand)if(_.b("expandable_metadata_fix_killswitch")){var Z=q.target;_.Evh(Z,"ytd-macro-markers-list-item-renderer")||q.stopPropagation();(Z==null?void 0:Z.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.xB(_.E8(q),this.hostElement,["items"])||_.E1(_.E8(q),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.e.timestampClick=function(q){q.stopPropagation();var Z,w;(q=(Z=this.data)==null?void 0:(w=Z.header)==null?void 0:w.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(q)};
_.e.onDown=function(q){q.stopPropagation();this.startX=q.detail?q.detail.x:0};
_.e.onUp=function(q){this.skipKeyInteraction(q)&&q.stopPropagation()};
_.e.skipKeyInteraction=function(q){var Z=q.target;if((Z==null?void 0:Z.id)==="scroll-container"||(Z==null?void 0:Z.id)==="items"||q.detail&&q.detail.x!==this.startX)return!0;q=_.E8(q);q=_.P(q);for(Z=q.next();!Z.done;Z=q.next()){Z=Z.value;if(Z===this.hostElement)break;if(Z.hasAttribute&&Z.hasAttribute("skip-key-interaction"))return!0}return!1};
_.e.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.My.Object.defineProperties(gFe.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var q;return!!_.J((q=this.data)==null?void 0:q.expandedContent,iDv)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var q;return!!_.J((q=this.data)==null?void 0:q.expandedContent,saK)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!((q=this.data)==null||!q.useCustomColors)&&!((Z=this.data)==null||!Z.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!!((q=this.data)==null?0:(Z=q.header)==null?0:Z.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!!((q=this.data)==null?0:(Z=q.header)==null?0:Z.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!!((q=this.data)==null?0:(Z=q.header)==null?0:Z.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
var wq=gFe;wq.prototype.onUp=wq.prototype.onUp;wq.prototype.onDown=wq.prototype.onDown;wq.prototype.isExpandedChanged=wq.prototype.isExpandedChanged;wq.prototype.dataChanged=wq.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],wq.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],wq.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],wq.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],wq.prototype,"isExpanded",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],wq.prototype,"disableExpand",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],wq.prototype,"isSearch",void 0);
_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],wq.prototype,"isWatch",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.A("design:type",Object)],wq.prototype,"showProminentLabel",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.A("design:type",Object)],wq.prototype,"showRightSideLabel",void 0);
_.X([_.F({value:!1,reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],wq.prototype,"hasVideoSummary",null);_.X([_.F({value:!1,reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],wq.prototype,"hasLockupViewModel",null);_.X([_.F({reflectToAttribute:!0}),_.I("data","isWatch"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],wq.prototype,"useCustomColors",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data","isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],wq.prototype,"showInfoButton",null);_.X([_.I("data","isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],wq.prototype,"showTimestamp",null);_.X([_.I("data","isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],wq.prototype,"showExpandedSubtitle",null);
_.X([_.I("data","isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],wq.prototype,"showThumbnail",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],wq.prototype,"useVppShoppingDestinationStyle",null);_.X([_.F(),_.A("design:type",Object)],wq.prototype,"toggleExpandableContent",void 0);_.X([_.fo("ytd-horizontal-card-list-renderer"),_.A("design:type",Object)],wq.prototype,"JSC$12911_cardList",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.A("design:type",Object)],wq.prototype,"useSquareThumbnail",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wq.prototype,"dataChanged",null);_.X([_.M("isExpanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wq.prototype,"isExpandedChanged",null);
_.X([_.m2("down"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],wq.prototype,"onDown",null);_.X([_.m2("up"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],wq.prototype,"onUp",null);wq=_.X([_.l({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],wq);
_.p(wq,"ytd-expandable-metadata-renderer",function(){if(W0e!==void 0)return W0e;var q=document.createElement("template");_.a(q,'\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" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return W0e=q},{mode:1});var qc2,ZaW=function(){if(qc2!==void 0)return qc2;var q=document.createElement("template");_.a(q,'\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="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" 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      <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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return qc2=q};_.He("itemSectionRenderer","videoRenderer","ytd-video-renderer");var rq=function(){var q=_.N.apply(this,arguments)||this;q.disableExpand=!1;q.shouldShowChannelInfo=!1;q.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return q};
_.z(rq,_.N);_.e=rq.prototype;_.e.computeUseSearchUi=function(){var q,Z;return this.isSearch||((q=this.data)==null?void 0:(Z=q.style)==null?void 0:Z.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.e.computeUseThreeLineTitle=function(){var q;return((q=this.data)==null?void 0:q.maxTitleLines)===3};
_.e.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.b("polymer_video_renderer_defer_menu")&&!PD7?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]]"}}}}}};
_.e.attached=function(){_.NZ(this.hostElement,"blue-links",_.b("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.e.detached=function(){this.clearInlinePreviewHoverListeners()};
_.e.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.lq(_.E(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var q=this.get("data.buttons.buttonRenderer.serviceEndpoint"),Z;q&&((Z=_.J(q.commandMetadata,_.WZ))==null?0:Z.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(q);this.updateInlinePreviewHoverListeners()};
_.e.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12916_inlinePreviewHoverListener=KV({mediaRenderer:this,lockupElement:this.JSC$12916_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.e.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$12916_inlinePreviewHoverListener)==null||hL(q)};
_.e.onTextWrapperClick=function(q){var Z,w,r=this.hideTranslation?(Z=this.data)==null?void 0:Z.untranslatedNavigationEndpoint:(w=this.data)==null?void 0:w.navigationEndpoint;Z=_.xB(_.E8(q),this.hostElement,["expandable-metadata"]);!r||Z&&!_.b("expandable_metadata_fix_killswitch")||_.E1(_.E8(q),this.hostElement,["A".toString(),"BUTTON".toString()])||_.hy(this.hostElement,"yt-navigate",{endpoint:r})};
_.e.computeThumbnailWidth=function(q,Z,w,r,Y){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:r?Y==="MASSIVE"?600:Y==="BIG"?500:Y==="MEDIUM"?450:420:w?360:Z?128:q?210:246};
_.e.computeUseBiggerThumbs=function(q){return q&&_.b("enable_desktop_search_bigger_thumbs")};
_.e.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.e.computeVideoStyle=function(){if(_.b("enable_video_style")){var q,Z;return(q=this.data)==null?void 0:(Z=q.style)==null?void 0:Z.value}};
_.e.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.e.handleHideItemSectionVideosByIdCommand=function(q){var Z;q=(Z=_.J(q,Rt7))==null?void 0:Z.videoId;this.data&&this.data.videoId===q&&(this.isHidden=!0)};
_.e.getMetadataSnippetContainerClass=function(q){return q?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.e.computeTitleText=function(q,Z,w){return q?w:Z};
_.e.computeDescriptionSnippet=function(q,Z,w){return q?w:Z};
_.e.computeSnippetText=function(q,Z,w){return q?w:Z};
_.e.computeNavigationEndpoint=function(q,Z){return q?Z==null?void 0:Z.untranslatedNavigationEndpoint:Z==null?void 0:Z.navigationEndpoint};
_.e.hideInlineTitleIcon=function(q,Z){return q||!Z};
_.My.Object.defineProperties(rq.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 q;return(q=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?q:[]}return[]}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$12916_inlinePreviewHoverListener)==null?0:JO(q))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.My.Object.defineProperties(rq,{template:{configurable:!0,enumerable:!0,get:function(){return ZaW()}}});
var Yh=rq;Yh.prototype.dataChanged=Yh.prototype.dataChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Yh.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Yh.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],Yh.prototype,"ytdDismissibleItemBehavior",void 0);
_.X([_.U(_.ay),_.A("design:type",Object)],Yh.prototype,"ytdLockupBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Yh.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],Yh.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Yh.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Yh.prototype,"isBackstageVideo",void 0);
_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Yh.prototype,"isPostCompactVideo",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Yh.prototype,"isHistory",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Yh.prototype,"isRichGridVideoPost",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Yh.prototype,"isHidden",void 0);
_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Yh.prototype,"isSearch",void 0);_.X([_.F({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.A("design:type",Boolean)],Yh.prototype,"useSearchUi",void 0);_.X([_.F({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.A("design:type",Boolean)],Yh.prototype,"useThreeLineTitle",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.A("design:type",Boolean)],Yh.prototype,"useBiggerThumbs",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.A("design:type",Object)],Yh.prototype,"videoStyle",void 0);_.X([_.F({computed:"computeDisableExpand(videoStyle)"}),_.A("design:type",Object)],Yh.prototype,"disableExpand",void 0);
_.X([_.F({computed:"computeShouldShowChannelInfo(useSearchUi, data)"}),_.A("design:type",Object)],Yh.prototype,"shouldShowChannelInfo",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.Af("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],Yh.prototype,"biggerThumbsStyle",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.A("design:type",String)],Yh.prototype,"inlineTitleIcon",void 0);_.X([_.F({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.A("design:type",Object)],Yh.prototype,"computedNavigationEndpoint",void 0);_.X([_.F({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(q,Z){return _.iI(q.entities,"searchVideoResultEntity",Z)}}),
_.A("design:type",Object)],Yh.prototype,"searchVideoResultEntity",void 0);_.X([_.fo("ytd-thumbnail"),_.A("design:type",HTMLElement)],Yh.prototype,"thumbnail",void 0);_.X([_.fo("#dismissible"),_.A("design:type",HTMLElement)],Yh.prototype,"JSC$12916_dismissibleMedia",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Yh.prototype,"dataChanged",null);
_.X([_.I("searchVideoResultEntity"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Yh.prototype,"hideTranslation",null);_.X([_.I("searchVideoResultEntity"),_.A("design:type",Array),_.A("design:paramtypes",[])],Yh.prototype,"hiddenBadgeGroups",null);_.X([_.I("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Yh.prototype,"isHovered",null);Yh=_.X([_.l({is:"ytd-video-renderer",disableElementRegistration:!0})],Yh);
_.p(Yh,"ytd-video-renderer",function(){return ZaW()},{mode:_.NT("kevlar_poly_si_batch_j047")?1:2});var w7W=function(){var q=_.N.apply(this,arguments)||this;q.editDialog=null;q.roundedContainer=!0;q.isLoading=!1;q.isRichGrid=!1;q.isRichGridRepost=!1;q.reduceSidePaddings=_.b("reduce_side_paddings_in_shelf");q.JSC$12922_spinnerEl=null;return q};
_.z(w7W,_.N);_.e=w7W.prototype;
_.e.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"}}}};
_.e.contentTextChanged=function(){this.expander.reset()};
_.e.dataChanged=function(){var q=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var Z=0,w=this.data.actions&&this.data.actions.length;Z<w;Z++)this.openEditDialog(_.J(this.data.actions[Z],fSe));if((Z=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(Z=this.get("buttonRenderer.hint.hintRenderer.hintId",Z))&&Z.startsWith("share-post-hint")){var r=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(r){_.Nk.getInstance();var Y=l8(_.UE(_.dT("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.v5.addLowPriorityJob(function(){_.ZC(q.hostElement,Y,r)})}}}};
_.e.updatePoll=function(q){q>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.e.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12922_spinnerEl||(this.JSC$12922_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E(this.hostElement).appendChild(this.JSC$12922_spinnerEl));this.JSC$12922_spinnerEl&&(this.JSC$12922_spinnerEl.active=this.isLoading)};
_.e.onYtNavigate=function(q){var Z=this.get("updateCommentDialogEndpoint",q.detail.endpoint);Z&&(this.openEditDialog(Z),q.stopPropagation())};
_.e.onYtCommentboxDismiss=function(){this.editDialog=null};
_.e.onYtCommentPollRevert=function(q,Z){Z&&this.updatePoll(Z.selectedChoiceIndex)};
_.e.onYtServiceRequestSent=function(q,Z){var w;Z.endpoint&&(_.J(Z.endpoint,ep1)||_.J(Z.endpoint,bG)&&((w=_.J(Z.endpoint,bG))==null||!w.clientActions))&&(this.isLoading=!0);if(Z.actions)for(q=0;q<Z.actions.length;q++)w=Z.actions[q],_.J(w,ON)&&(w=this.get("updateBackstagePollAction.selectedChoiceIndex",w),w==void 0&&(w=-1),this.updatePoll(w))};
_.e.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.e.openEditDialog=function(q){q&&q.dialog&&(this.editDialog=q.dialog,q=this.editDialogEl.firstElementChild)&&(q.focus(),q.openDialog&&q.openDialog())};
_.e.computeIsPostHidden=function(q,Z){return!!q||Z};
_.e.computeSurfaceType=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.e.computeUsesCompactLockup=function(q){return q==="BACKSTAGE_SURFACE_TYPE_HOME"||q==="BACKSTAGE_SURFACE_TYPE_SEARCH"||q==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||q==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||q==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||q==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.e.computeShowWithoutToolbar=function(q){return!q.actionButtons&&!q.actionMenu};
_.e.computePostAttachment=function(q){if(q.backstageAttachment){if(_.J(q.backstageAttachment,NZK))return"poll";if(_.J(q.backstageAttachment,zfK))return"quiz";if(_.J(q.backstageAttachment,_.Dr1))return"video";if(_.J(q.backstageAttachment,BZ7))return"uploaded-videos";if(_.J(q.backstageAttachment,bN2))return q.contentText?"image":"image-only";if(_.J(q.backstageAttachment,tEX))return"playlist"}return"none"};
_.e.computePostTabIndex=function(q){return q?0:-1};
_.e.computeButtonTooltipPosition=function(q){return this.computeUsesCompactLockup(q)?"top":"bottom"};
_.e.computeHasText=function(q){return!(q==null||!q.contentText)};
_.e.onTap=function(q){var Z,w;if(((Z=this.data)==null?0:Z.navigationEndpoint)&&((w=this.data)==null?void 0:w.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var r;((r=this.data)==null?0:r.navigationEndpoint)&&!_.E1(_.E8(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.hy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.My.Object.defineProperties(w7W.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.voteCount)||_.UE("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.J(this.data.backstageAttachment,NZK))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.J(this.data.backstageAttachment,BZ7))}}});
var $h=w7W;$h.prototype.onYtServiceRequestCompleted=$h.prototype.onYtServiceRequestCompleted;$h.prototype.onYtServiceRequestSent=$h.prototype.onYtServiceRequestSent;$h.prototype.onYtCommentPollRevert=$h.prototype.onYtCommentPollRevert;$h.prototype.onYtCommentboxDismiss=$h.prototype.onYtCommentboxDismiss;$h.prototype.onYtNavigate=$h.prototype.onYtNavigate;$h.prototype.isLoadingChanged=$h.prototype.isLoadingChanged;$h.prototype.dataChanged=$h.prototype.dataChanged;$h.prototype.contentTextChanged=$h.prototype.contentTextChanged;
_.X([_.U(_.vj),_.A("design:type",Object)],$h.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],$h.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],$h.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],$h.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],$h.prototype,"editDialog",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],$h.prototype,"roundedContainer",void 0);_.X([_.F(),_.A("design:type",Object)],$h.prototype,"isLoading",void 0);_.X([_.F({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.A("design:type",String)],$h.prototype,"surface",void 0);
_.X([_.F({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.A("design:type",Boolean)],$h.prototype,"usesCompactLockup",void 0);_.X([_.F({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],$h.prototype,"showWithoutToolbar",void 0);_.X([_.F({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.A("design:type",String)],$h.prototype,"attachment",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],$h.prototype,"isRichGrid",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],$h.prototype,"isRichGridRepost",void 0);_.X([_.F({reflectToAttribute:!0,value:_.b("use_better_post_dismissals")}),_.A("design:type",Boolean)],$h.prototype,"useBetterPostDismissals",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],$h.prototype,"reduceSidePaddings",void 0);
_.X([_.F({computed:"computeHasText(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],$h.prototype,"hasText",void 0);_.X([_.fo("#expander"),_.A("design:type",Object)],$h.prototype,"expander",void 0);_.X([_.fo("#action-buttons"),_.A("design:type",Object)],$h.prototype,"actionButtons",void 0);_.X([_.fo("#edit-dialog"),_.A("design:type",HTMLElement)],$h.prototype,"editDialogEl",void 0);
_.X([_.M("data.contentText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$h.prototype,"contentTextChanged",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$h.prototype,"dataChanged",null);_.X([_.M("isLoading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$h.prototype,"isLoadingChanged",null);
_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],$h.prototype,"onYtNavigate",null);_.X([_.m2("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$h.prototype,"onYtCommentboxDismiss",null);_.X([_.m2("yt-comment-poll-revert"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],$h.prototype,"onYtCommentPollRevert",null);
_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],$h.prototype,"onYtServiceRequestSent",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],$h.prototype,"onYtServiceRequestCompleted",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],$h.prototype,"voteCount",null);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],$h.prototype,"commentCount",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],$h.prototype,"hasPoll",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],$h.prototype,"hasUploadedVideo",null);$h=_.X([_.l({is:"ytd-post-renderer",disableElementRegistration:!0})],$h);
_.p($h,"ytd-post-renderer",function(){if(WQe!==void 0)return WQe;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return WQe=q},{mode:1});var rev;var Yce;var $8X=function(){return _.N.apply(this,arguments)||this};
_.z($8X,_.N);$8X.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
var ed=$8X;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ed.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.Mt.YtdHorizontalListBehavior),_.A("design:type",Object)],ed.prototype,"ytdHorizontalListBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],ed.prototype,"componentBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],ed.prototype,"data",void 0);_.X([_.F({value:"$.items.children"}),_.A("design:type",String)],ed.prototype,"itemsPath",void 0);_.X([_.F({value:1}),_.A("design:type",Number)],ed.prototype,"initialCount",void 0);_.X([_.F(),_.A("design:type",String)],ed.prototype,"surface",void 0);ed=_.X([_.l({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],ed);
_.p(ed,"ytd-post-multi-image-renderer",function(){if(Yce!==void 0)return Yce;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Yce=q},{mode:_.NT("kevlar_poly_si_batch_j079")?1:2});var ejp={"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"}}},Cn7=function(){var q=_.N.apply(this,arguments)||this;q.hasInlineCommentSection=!1;q.editDialog=null;q.isLoading=!1;q.shouldHideAuthor=!1;q.shouldShowVideoTime=!1;
q.isInEngagementPanel=!1;q.hideBorder=!1;q.usesFullLockup=!1;q.shouldShowMenuInCompactView=!1;q.JSC$12938_spinnerEl=null;q.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return q};
_.z(Cn7,_.N);_.e=Cn7.prototype;_.e.configureRendererStamper=function(){return ejp};
_.e.computeIsPollHeaderEnabled=function(q){return(q==null?void 0:q.pollMetadataIcon)!=null};
_.e.getPublishTimeStampString=function(q,Z){Z=new Date((Number(Z)-60*((new Date).getTimezoneOffset()-(new Date(Number(Z)*1E3)).getTimezoneOffset()))*1E3);Z=(new xO(10)).format(Z);if(q&&q.runs&&q.runs.length)for(var w=0;w<q.runs.length;w++)q.runs[w].text&&(q.runs[w].text=q.runs[w].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",Z));return q};
_.e.created=function(){this.JSC$12938_spinnerEl=null};
_.e.contentTextChanged=function(){this.expander.reset()};
_.e.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var q;if((q=this.data)==null?0:q.actions){q=_.P(this.data.actions);for(var Z=q.next();!Z.done;Z=q.next())this.openEditDialog(_.J(Z.value,fSe))}};
_.e.handleSignalActionOpenPostCommentDialogAction=function(){_.E(this.hostElement).querySelector("#action-buttons").reply()};
_.e.updatePoll=function(q,Z){Z&&this.set("data.pollMetadataVoteCountText",Z);this.hasInlineCommentSection&&(q=q>=0,Z=_.E(this.hostElement).querySelector("#action-buttons"),q?Z.reply():Z.hideReplyDialog())};
_.e.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12938_spinnerEl||(this.JSC$12938_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E(this.hostElement).appendChild(this.JSC$12938_spinnerEl));this.JSC$12938_spinnerEl&&(this.JSC$12938_spinnerEl.active=this.isLoading)};
_.e.onYtNavigate=function(q){var Z=this.get("updateCommentDialogEndpoint",q.detail.endpoint);Z&&(this.openEditDialog(Z),q.stopPropagation())};
_.e.onYtCommentboxDismiss=function(){this.editDialog=null};
_.e.onYtCommentPollRevert=function(q,Z){Z&&this.updatePoll(Z.selectedChoiceIndex,Z.totalVotes)};
_.e.onYtServiceRequestSent=function(q,Z){q.stopPropagation();q=_.J(Z.endpoint,bG);if(_.J(Z.endpoint,ep1)||q&&!q.clientActions)this.isLoading=!0;if(Z.actions)for(q=0;q<Z.actions.length;q++){var w=Z.actions[q],r=_.J(w,ON);r&&(w=this.get("updateBackstagePollAction.selectedChoiceIndex",w),w===void 0&&(w=-1),this.updatePoll(w,r.totalVotes))}};
_.e.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.e.openEditDialog=function(q){q&&q.dialog&&(this.editDialog=q.dialog,q=this.editDialogElement.firstElementChild)&&(q.focus(),q.openDialog&&q.openDialog())};
_.e.computeIsBodyHidden=function(q,Z){return!!q||Z};
_.My.Object.defineProperties(Cn7.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var q,Z;if((q=this.data)==null?0:(Z=q.pollMetadataIcon)==null?0:Z.iconType)return _.Xl(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.voteCount)||_.UE("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.J(this.data.backstageAttachment,NZK))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.J(this.data.backstageAttachment,zfK))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.J(this.data.backstageAttachment,BZ7))}}});
var C2=Cn7;C2.prototype.onYtServiceRequestCompleted=C2.prototype.onYtServiceRequestCompleted;C2.prototype.onYtServiceRequestSent=C2.prototype.onYtServiceRequestSent;C2.prototype.onYtCommentPollRevert=C2.prototype.onYtCommentPollRevert;C2.prototype.onYtCommentboxDismiss=C2.prototype.onYtCommentboxDismiss;C2.prototype.onYtNavigate=C2.prototype.onYtNavigate;C2.prototype.isLoadingChanged=C2.prototype.isLoadingChanged;C2.prototype.dataChanged=C2.prototype.dataChanged;C2.prototype.contentTextChanged=C2.prototype.contentTextChanged;
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],C2.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],C2.prototype,"rendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],C2.prototype,"rendererstamperBehavior",void 0);_.X([_.fo("#contentTextExpander"),_.A("design:type",Object)],C2.prototype,"expander",void 0);
_.X([_.fo("#edit-dialog"),_.A("design:type",Element)],C2.prototype,"editDialogElement",void 0);_.X([_.F(),_.A("design:type",Object)],C2.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],C2.prototype,"hasInlineCommentSection",void 0);_.X([_.F(),_.A("design:type",Object)],C2.prototype,"editDialog",void 0);_.X([_.F(),_.A("design:type",Object)],C2.prototype,"isLoading",void 0);
_.X([_.F({computed:"computeIsPollHeaderEnabled(data)"}),_.A("design:type",Boolean)],C2.prototype,"isPollHeaderEnabled",void 0);_.X([_.F(),_.A("design:type",Object)],C2.prototype,"shouldHideAuthor",void 0);_.X([_.F(),_.A("design:type",Object)],C2.prototype,"shouldShowVideoTime",void 0);_.X([_.F(),_.A("design:type",Object)],C2.prototype,"isInEngagementPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],C2.prototype,"hideBorder",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],C2.prototype,"usesFullLockup",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],C2.prototype,"shouldShowMenuInCompactView",void 0);_.X([_.I("isInEngagementPanel"),_.A("design:type",Number),_.A("design:paramtypes",[])],C2.prototype,"postTextMaxLines",null);_.X([_.I("data.icon.iconType"),_.A("design:type",Object),_.A("design:paramtypes",[])],C2.prototype,"pollIcon",null);
_.X([_.M("data.contentText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],C2.prototype,"contentTextChanged",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],C2.prototype,"dataChanged",null);_.X([_.M("isLoading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],C2.prototype,"isLoadingChanged",null);
_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],C2.prototype,"onYtNavigate",null);_.X([_.m2("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],C2.prototype,"onYtCommentboxDismiss",null);_.X([_.m2("yt-comment-poll-revert"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],C2.prototype,"onYtCommentPollRevert",null);
_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],C2.prototype,"onYtServiceRequestSent",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],C2.prototype,"onYtServiceRequestCompleted",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],C2.prototype,"voteCount",null);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],C2.prototype,"commentCount",null);_.X([_.I("data.backstageAttachment"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],C2.prototype,"hasPoll",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],C2.prototype,"hasQuiz",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],C2.prototype,"hasUploadedVideo",null);
C2=_.X([_.l({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],C2);
_.p(C2,"ytd-backstage-post-renderer",function(){if(rev!==void 0)return rev;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return rev=q},{mode:1});var Pne;var d8K=function(){var q=_.N.apply(this,arguments)||this;q.editDialog=null;q.showExpandButton=!1;q.isRichGrid=!1;q.usesFullLockup=!1;return q};
_.z(d8K,_.N);_.e=d8K.prototype;_.e.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"}}}};
_.e.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.e.computeShowExpandButton=function(q){return this.usesCompactLockup||q&&q.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.e.computeUsesCompactLockup=function(q){return!!q.condensedContent};
_.e.computeShowFullContentText=function(q){return!q};
_.e.onYtNavigate=function(q){q=this.get("updateCommentDialogEndpoint",q.detail.endpoint);this.openEditDialog(q)};
_.e.onYtCommentboxDismiss=function(){this.editDialog=null};
_.e.openEditDialog=function(q){q&&q.dialog&&(this.editDialog=q.dialog,q=this.repostEditDialogEl.firstElementChild)&&(q.focus(),q.openDialog&&q.openDialog())};
_.e.onTap=function(q){if(this.data){var Z=null;this.usesCompactLockup&&!_.E1(_.E8(q)||[],this.hostElement,["YT-IMG-SHADOW"])?Z=this.get("navigationEndpoint",this.data):q.target===this.moreButtonEl&&(Z=this.get("navigationEndpoint",q.target.data));Z&&_.hy(this.hostElement,"yt-navigate",{endpoint:Z})}};
var PY=d8K;PY.prototype.onYtCommentboxDismiss=PY.prototype.onYtCommentboxDismiss;PY.prototype.onYtNavigate=PY.prototype.onYtNavigate;PY.prototype.dataChanged=PY.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],PY.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],PY.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],PY.prototype,"editDialog",void 0);_.X([_.F({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],PY.prototype,"usesCompactLockup",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],PY.prototype,"showExpandButton",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],PY.prototype,"isRichGrid",void 0);
_.X([_.F({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.A("design:type",Boolean)],PY.prototype,"showFullContentText",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],PY.prototype,"usesFullLockup",void 0);_.X([_.fo("#more"),_.A("design:type",Object)],PY.prototype,"moreButtonEl",void 0);_.X([_.fo("#repost-content-text"),_.A("design:type",HTMLElement)],PY.prototype,"repostContentTextEl",void 0);
_.X([_.fo("#repost-edit-dialog"),_.A("design:type",HTMLElement)],PY.prototype,"repostEditDialogEl",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],PY.prototype,"dataChanged",null);_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],PY.prototype,"onYtNavigate",null);
_.X([_.m2("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],PY.prototype,"onYtCommentboxDismiss",null);PY=_.X([_.l({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],PY);
_.p(PY,"ytd-shared-post-renderer",function(){if(Pne!==void 0)return Pne;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Pne=q},{mode:1});var Vov;var Oa9;var dq=function(){return _.N.apply(this,arguments)||this};
_.z(dq,_.N);dq.prototype.attached=function(){var q=this;this.networkStatusManager||(this.networkStatusManager=new _.To,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){q.onlineHandler()}))};
dq.prototype.detached=function(){var q=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){q.onlineHandler()}),delete this.networkStatusManager)};
dq.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
var Vn=dq;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Vn.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Vn.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Vn.prototype,"data",void 0);Vn=_.X([_.l({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Vn);
_.p(Vn,"ytd-reload-page-button-renderer",function(){if(Oa9!==void 0)return Oa9;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
return Oa9=q},{mode:1});var HaX={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"},WN2=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.z(WN2,_.N);_.e=WN2.prototype;_.e.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.e.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.e.computeHasBodyText=function(q){return!!q.bodyText};
_.e.computeButtons=function(q){var Z=[];q.ctaButton&&Z.push(q.ctaButton);q.secondaryButton&&Z.push(q.secondaryButton);return Z};
_.e.computeRendererStyle=function(q){return q.style?q.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():q.icon?"":"no-icon"};
_.e.getIconName=function(q,Z){Z=Z===void 0?!1:Z;if(q===void 0)return"";q=this.get("icon.iconType",q);var w;_.b("enable_hlp_client_icon_pick")?w=this.getThemedIcon(q,Z):w=q;(Z=HaX[w])||(Z="yt-icons");return[Z,w].join(":")};
_.e.getThemedIcon=function(q,Z){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(q)?Z?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(q)?Z?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":q};
_.e.isThumbnail=function(q){return!!q.thumbnail};
_.e.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.e.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
var Oy=WN2;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Oy.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Oy.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Oy.prototype,"data",void 0);
_.X([_.F({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.A("design:type",String)],Oy.prototype,"rendererStyle",void 0);_.X([_.F({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.A("design:type",String)],Oy.prototype,"iconName",void 0);_.X([_.F({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Oy.prototype,"thumbnail",void 0);_.X([_.F({computed:"computeButtons(data)"}),_.A("design:type",Array)],Oy.prototype,"buttons",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Oy.prototype,"isDarkTheme",void 0);_.X([_.F({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Oy.prototype,"hasBodyText",void 0);Oy=_.X([_.l({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],Oy);
_.p(Oy,"ytd-background-promo-renderer",function(){if(Vov!==void 0)return Vov;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Vov=q},{mode:1});var o3J;var un2=function(){var q=_.N.apply(this,arguments)||this;q.collections=_.b("web_modern_collections_v2");return q};
_.z(un2,_.N);_.My.Object.defineProperties(un2.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r,Y,C;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(q=this.data)==null?void 0:(Z=q.thumbnail)==null?void 0:Z.sampledThumbnailColor,vibrantColorPalette:(w=this.data)==null?void 0:(r=w.thumbnail)==null?void 0:r.vibrantColorPalette,darkColorPalette:(Y=this.data)==null?void 0:(C=Y.thumbnail)==null?void 0:C.darkColorPalette,experimentEnabled:this.collections}}}});
var HY=un2;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],HY.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],HY.prototype,"collections",void 0);_.X([_.I("data","collections"),_.A("design:type",Object),_.A("design:paramtypes",[])],HY.prototype,"collectionStack",null);HY=_.X([_.l({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],HY);
_.p(HY,"ytd-compact-station-renderer",function(){if(o3J!==void 0)return o3J;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return o3J=q},{mode:1});var LNh;var Sc9=function(){var q=_.N.apply(this,arguments)||this;q.isRichGrid=!1;return q};
_.z(Sc9,_.N);Sc9.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]]"}}}}}};
var WY=Sc9;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],WY.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],WY.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],WY.prototype,"isRichGrid",void 0);WY=_.X([_.l({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],WY);
_.p(WY,"ytd-grid-channel-renderer",function(){if(LNh!==void 0)return LNh;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return LNh=q},{mode:1});var v3K;var jHK=function(){return _.N.apply(this,arguments)||this};
_.z(jHK,_.N);var oX=jHK;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],oX.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],oX.prototype,"data",void 0);oX=_.X([_.l({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],oX);
_.p(oX,"ytd-grid-movie-playlist-renderer",function(){if(v3K!==void 0)return v3K;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return v3K=q},{mode:1});var to1;var uR=function(){var q=_.N.apply(this,arguments)||this;q.downloadProgress=0;q.transferState="TRANSFER_STATE_UNKNOWN";q.modernButtons=_.b("web_modern_buttons");q.useModernCollectionsV2=_.b("web_modern_collections_v2");return q};
_.z(uR,_.N);uR.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
uR.prototype.configureRendererStamper=function(){return{"data.menu":g7}};
uR.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
uR.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.b("woffle_playlist_renderer_killswitch")){var q,Z=BjO(this.entityInfo,this.transferState,this.downloadProgress,(q=this.data)==null?void 0:q.playlistId,this.isOnline);q=Z.viewPlaylistText;var w=Z.badges;Z=Z.thumbnailOverlays;this.isDownloads=!!q||!!w;this.set("data.viewPlaylistText",q);w&&w.length>0&&this.set("data.badges",w);Z&&Z.length>0&&this.set("data.thumbnailOverlays",
Z)}};
_.My.Object.defineProperties(uR.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 q;return!((q=this.data)==null?0:q.menu)}}});
var L2=uR;L2.prototype.transferStateChanged=L2.prototype.transferStateChanged;L2.prototype.dataChanged=L2.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.ay),_.A("design:type",Object)],L2.prototype,"ytdLockupBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],L2.prototype,"ytdReduxBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],L2.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F({selector:_.NFO,selectorArgs:["data.playlistId"]}),_.A("design:type",Object)],L2.prototype,"downloadProgress",void 0);_.X([_.F({selector:_.bF,selectorArgs:["data.playlistId"]}),_.A("design:type",Object)],L2.prototype,"transferState",void 0);_.X([_.F({selector:FM2,selectorArgs:["data.playlistId"]}),_.A("design:type",Object)],L2.prototype,"entityInfo",void 0);
_.X([_.F({selector:kB9}),_.A("design:type",Boolean)],L2.prototype,"isOnline",void 0);_.X([_.F(),_.A("design:type",Object)],L2.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],L2.prototype,"downloadRenderData",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],L2.prototype,"modernButtons",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],L2.prototype,"isDownloads",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],L2.prototype,"useModernCollectionsV2",void 0);_.X([_.I("transferState"),_.F({reflectToAttribute:!0}),_.A("design:type",String),_.A("design:paramtypes",[])],L2.prototype,"downloadState",null);_.X([_.I("data"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],L2.prototype,"menuHidden",null);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],L2.prototype,"dataChanged",null);_.X([_.g3("transferState","downloadProgress","isOnline"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],L2.prototype,"transferStateChanged",null);L2=_.X([_.l({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],L2);
_.p(L2,"ytd-grid-playlist-renderer",function(){if(to1!==void 0)return to1;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return to1=q},{mode:1});var Rj2;var bav=function(){var q=_.N.apply(this,arguments)||this;q.collections=_.b("web_modern_collections_v2");return q};
_.z(bav,_.N);bav.prototype.configureRendererStamper=function(){return{"data.menu":g7,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.My.Object.defineProperties(bav.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r,Y,C;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(q=this.data)==null?void 0:(Z=q.thumbnail)==null?void 0:Z.sampledThumbnailColor,vibrantColorPalette:(w=this.data)==null?void 0:(r=w.thumbnail)==null?void 0:r.vibrantColorPalette,darkColorPalette:(Y=this.data)==null?void 0:(C=Y.thumbnail)==null?void 0:C.darkColorPalette,experimentEnabled:this.collections}}}});
var Sd=bav;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Sd.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],Sd.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.ay),_.A("design:type",Object)],Sd.prototype,"ytdLockupBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Sd.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Sd.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Sd.prototype,"collections",void 0);_.X([_.I("data","collections"),_.A("design:type",Object),_.A("design:paramtypes",[])],Sd.prototype,"collectionStack",null);Sd=_.X([_.l({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Sd);
_.p(Sd,"ytd-grid-radio-renderer",function(){if(Rj2!==void 0)return Rj2;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Rj2=q},{mode:1});var Jee;var zje=function(){var q=_.N.apply(this,arguments)||this;q.useModernCollectionsV2=_.b("web_modern_collections_v2");return q};
_.z(zje,_.N);zje.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
zje.prototype.computeNavigationEndpoint=function(q){return Kb2(q==null?void 0:q.navigationEndpoint)};
var vY=zje;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],vY.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.ay),_.A("design:type",Object)],vY.prototype,"ytdLockupBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],vY.prototype,"data",void 0);
_.X([_.F({computed:"computeNavigationEndpoint(data)"}),_.A("design:type",Object)],vY.prototype,"computedNavigationEndpoint",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],vY.prototype,"useModernCollectionsV2",void 0);vY=_.X([_.l({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],vY);
_.p(vY,"ytd-grid-show-renderer",function(){if(Jee!==void 0)return Jee;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Jee=q},{mode:1});var Bs9;_.jd=function(q){this.playerClient=q};
_.aH2=function(q,Z,w){w=w===void 0?{}:w;return q.playerClient.setOption("ad",Z,w)};
_.jd.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.jd.prototype.executeCommand=function(q,Z){this.getOptions().includes("executeCommand")?_.aH2(this,"executeCommand",{command:q,layoutId:Z}):_.mW("Calling executeCommand when adModule is not loaded")};var n3g=function(){return _.N.apply(this,arguments)||this};
_.z(n3g,_.N);n3g.prototype.getLayoutId=function(){var q=_.Eq("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.layoutId:null};
n3g.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var q=_.K6(),Z=this.getLayoutId(),w=this.data.clickthroughEndpoint;q&&Z&&_.b("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?q.getPlayerPromise().then(function(r){(new _.jd(r)).executeCommand(w,Z)}):_.hy(this.hostElement,"yt-navigate",{endpoint:w})}};
var tZ=n3g;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],tZ.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],tZ.prototype,"data",void 0);tZ=_.X([_.l({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],tZ);
_.p(tZ,"ytd-shopping-companion-item-renderer",function(){if(Bs9!==void 0)return Bs9;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Bs9=q},{mode:1});var QH7;var E39=function(){var q=_.N.apply(this,arguments)||this;q.isExpandableContent=!1;return q};
_.z(E39,_.N);_.My.Object.defineProperties(E39.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return((q=this.data)==null?void 0:q.price)||((Z=this.data)==null?void 0:(w=Z.dealsData)==null?void 0:w.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var q,Z;if((q=this.data)!=null&&q.dealsData&&((Z=this.data)==null||!Z.priceReplacementText)){q=this.data.dealsData;var w,r,Y;return((w=q.salesData)==null?void 0:w.originalPrice)||((r=q.priceDropData)==null?void 0:r.referencePrice)||((Y=q.promotionData)==null?void 0:Y.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var q,Z;return(q=this.data)==null?void 0:(Z=q.dealsData)==null?void 0:Z.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
var RX=E39;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],RX.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],RX.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],RX.prototype,"isExpandableContent",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RX.prototype,"showCta",null);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RX.prototype,"ctaText",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RX.prototype,"hasPriceTopPosition",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RX.prototype,"hasPriceBottomPosition",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RX.prototype,"useNewStyle",null);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RX.prototype,"showPriceReplacementText",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RX.prototype,"priceValue",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RX.prototype,"showDeal",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RX.prototype,"showAffiliateDisclaimer",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RX.prototype,"useSaleStyle",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RX.prototype,"useFromBrandCtaStyle",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RX.prototype,"useFromVendorCtaStyle",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RX.prototype,"useShoppingCollectionCtaStyle",null);RX=_.X([_.l({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],RX);
_.p(RX,"ytd-vertical-product-card-renderer",function(){if(QH7!==void 0)return QH7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return QH7=q},{mode:1});var x8D;var Ts9=function(){return _.N.apply(this,arguments)||this};
_.z(Ts9,_.N);Ts9.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var bR=Ts9;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],bR.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],bR.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.ay),_.A("design:type",Object)],bR.prototype,"ytdLockupBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],bR.prototype,"data",void 0);bR=_.X([_.l({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],bR);
_.p(bR,"ytd-grid-movie-renderer",function(){if(x8D!==void 0)return x8D;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return x8D=q},{mode:1});var U81;var kHW=function(){var q=_.N.apply(this,arguments)||this;q.rounded=!0;q.itemStyle="small-item";return q};
_.z(kHW,_.N);kHW.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var q,Z,w,r,Y=(Z=_.J((q=this.data)==null?void 0:q.buttonCommand,_.eU2))==null?void 0:(w=Z.item)==null?void 0:(r=w.notificationTextRenderer)==null?void 0:r.successResponseText;Y&&_.AP1(this.hostElement,Y)}};
_.My.Object.defineProperties(kHW.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.data)==null?void 0:q.isProductPlaceholder)!==void 0&&((Z=this.data)==null?void 0:Z.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.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}}});
var JZ=kHW;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],JZ.prototype,"rounded",void 0);_.X([_.F(),_.A("design:type",Object)],JZ.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],JZ.prototype,"itemStyle",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],JZ.prototype,"hasPrice",null);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],JZ.prototype,"hasPriceReplacementText",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],JZ.prototype,"hasAdditionalFeesText",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],JZ.prototype,"hasAffiliateDisclaimer",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],JZ.prototype,"isProductPlaceholder",null);
_.X([_.F(),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],JZ.prototype,"hideOpenInNewIcon",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],JZ.prototype,"ariaLabel",null);JZ=_.X([_.l({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],JZ);
_.p(JZ,"ytd-merch-shelf-item-renderer",function(){if(U81!==void 0)return U81;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return U81=q},{mode:1});var KN9=_.xl(function(q){var Z=_.Iw();_.EM(Z,function(){return q.data().rendererContext});
return _.u("button-card-view-model",{el:Z,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return q.data().title},
role:"button"},_.u(_.YB,{model:{}}),_.u("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.u("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.u(_.PF,{cond:function(){return q.data().image},
then:function(w){return _.u(_.aQ,{data:w,alt:function(){var r;return(r=q.data().title)!=null?r:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.u("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return q.data().title})))},"Ra");_.b("web_button_view_model_wcw_registration_killswitch")||_.xc(KN9,"button-card-view-model",{props:{data:_.zG}});_.xc(_.xl(function(q){q=_.n5(q,{className:void 0});var Z=q.data;q=q.className;var w=_.$6(function(){return Z().onTapCommand},void 0,"NprDr");
return _.u("ytd-shopping-item-card",{class:_.GL("ytdShoppingItemCardHost",q)},_.u(_.w6,{command:w,className:"ytdShoppingItemCardHostLink"},_.u("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.u(_.Hx,{data:function(){return Z().thumbnailViewModel}},{thumbnailViewModel:function(r){return _.u(m4,{data:r.data,
aspectRatio:3})}})),_.u("div",null,_.u("p",{class:"ytdShoppingItemCardHostItemTitle"},_.u(_.r6,{text:function(){return Z().itemTitle}})),_.u("p",{class:"ytdShoppingItemCardHostPrice"},_.u(_.r6,{text:function(){return Z().priceOrStatus}})))))},"Sa"),"ytd-shopping-item-card",{props:{data:_.zG,
className:_.zG}});var AL=null,fO1={};var yPj="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(" "),zY={},iUX=(zY.FEwhat_to_watch="home",zY.FEhashtag="hashtag",zY.FEtrending="trending",zY.FEhistory="history",zY.SPunlimited="premium",zY.FEmemberships_and_purchases="paid_memberships",zY.SPredeem_code="redeem",zY.SPverify_location="locate",zY.SPminor_moment="minor_moment",
zY.FEmini_app_container="mini_app",zY.FEnews_destination="news",zY.SPopen_in_app="open_in_app",zY.FEexplore="explore",zY.FEsubscriptions="subscriptions",zY.FEsfv_audio_pivot="sfv_audio_pivot",zY.FEplaylist_aggregation="playlist_aggregation",zY);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");_.YK("init");var YON=_.Px({badgeViewModel:hjX}),Z$2=function(){},sH7=_.mq(C78),IHK=_.xl(function(q){var Z=_.$6(function(){var w=q.data().entityId;
return w?w.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"oz73f");
return _.u("ytm-shorts-lockup-view-model-v2",{class:_.GL("shortsLockupViewModelHost",q.className)},_.u(_.Gw2,{contentId:Z,aspectRatio:function(){var w;if(((w=q.aspectRatio)==null?void 0:w.call(q))===1)return 1;var r;return((r=q.aspectRatio)==null?void 0:r.call(q))===2?2:4}},function(){return _.u(sH7,Object.assign({},q))}))},"Ta");
_.mD(C78);_.mD(rx1);_.mD(ez2);_.mD(P72);_.mD($z1);_.xc(IHK,"ytm-shorts-lockup-view-model-v2",{props:{data:_.EL,inlineMetadata:_.EL,aspectRatio:_.EL,scrimStyle:_.EL,className:_.EL,useDefaultStyle:_.EL}});var ceJ=16/9*210,BY=function(){var q=_.N.apply(this,arguments)||this;q.isExpandableContent=!1;q.hideShelfHeader=!1;q.engagementPanel=!1;q.buttonClasses=["arrow"];q.isSearch=!1;q.disableScrollEventListener=!1;q.containsLockup=!1;q.overrideArrowPositionForProductCard=!1;q.overrideArrowPositionForShoppingItemCard=!1;q.overrideArrowPositionForReelItems=!1;q.overrideArrowPositionForGridMovie=!1;q.overrideArrowPositionToCenter=!1;q.isSearchPostShelf=!1;q.overrideArrowPositionForMixedShelf=!1;q.overrideArrowPositionForMixedShelfShortsOnly=
!1;q.hasBigThumbsReelItems=!1;q.shouldUseMixedListHeight=!1;q.shouldUseShortsListHeight=!1;q.gridVideoWidth=0;q.isSearchVodShelf=!1;q.disableWheelScroll=!1;q.sizing="COMPACT";q.shortsLockupAspectRatio=0;return q};
_.z(BY,_.N);_.e=BY.prototype;
_.e.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]]"}}}}};
_.e.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.b("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.e.computeInitialCountNumber=function(q){if(!q)return 6;var Z=q.items.some(function(C){return!!C.topicRecommendationsChipRenderer}),w=q.items.some(function(C){return!!C.displayAdRenderer}),r=this.computeShouldListItemsHaveEqualHeight(q),Y=q.items.some(function(C){return!!C.gridPlaylistRenderer});
q=q.items.some(function(C){return!!C.shoppingItemCardViewModel});
return Z?9:w?8:Y||r?10:q?7:6};
_.e.computeContainsPost=function(q){return!!q&&!!q.items&&q.items.some(function(Z){return!!Z.postRenderer})};
_.e.computeContainsLockup=function(){if(_.b("web_horizontal_list_lockup_arrow_killswitch"))return!1;var q,Z;return(q=this.data)==null?void 0:(Z=q.items)==null?void 0:Z.some(function(w){return!!w.lockupViewModel})};
_.e.maybeUpdateLockupAspectRatio=function(){var q,Z;if(this.computeContainsLockup()&&((q=this.data)==null?0:(Z=q.items)==null?0:Z.length)){var w;q=go9((w=this.data.items[0].lockupViewModel)==null?void 0:w.contentType,this.data.force16By9ThumbnailAspectRatio);w=kq8(q);w=this.computeLockupWidth()/w;_.po(this.hostElement,{"--yt-horizontal-list-content-height":w+"px"})}};
_.e.computeOverrideArrowPositionForProductCard=function(q){if(this.isExpandableContent)return!1;var Z;return!!(q==null?0:(Z=q.items)==null?0:Z.some(function(w){return!!w.verticalProductCardRenderer}))};
_.e.computeOverrideArrowPositionForShoppingItemCard=function(q){var Z;return!!(q==null?0:(Z=q.items)==null?0:Z.some(function(w){return!!w.shoppingItemCardViewModel}))};
_.e.computeOverrideArrowPositionForReelItemRenderer=function(q){return this.containsReelItemRenderer(q)};
_.e.computeHasBigThumbsReelItems=function(q,Z){return q&&this.containsReelItemRenderer(Z)};
_.e.computeShouldListItemsHaveEqualHeight=function(q){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(q==null?void 0:q.itemSizeConstraint)};
_.e.computeShouldListItemsHaveShortsHeight=function(q){return this.computeShouldListItemsHaveEqualHeight(q)&&!this.containsGridVideoRenderer(q)};
_.e.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.e.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.e.containsReelItemRenderer=function(q){var Z;return!!(q==null?0:(Z=q.items)==null?0:Z.some(function(w){return!(!w.reelItemRenderer&&!w.shortsLockupViewModel)}))};
_.e.containsGridVideoRenderer=function(q){var Z;return!!(q==null?0:(Z=q.items)==null?0:Z.some(function(w){return!!w.gridVideoRenderer||!!w.lockupViewModel}))};
_.e.computeContainsGridMovieRenderer=function(q){var Z;return!!(q==null?0:(Z=q.items)==null?0:Z.some(function(w){return!!w.gridMovieRenderer}))};
_.e.computeOverrideArrowPositionToCenter=function(q){return this.computeIsSearchPostShelf(q)};
_.e.computeIsSearchPostShelf=function(q){var Z;return!!(q==null?0:(Z=q.items)==null?0:Z.some(function(w){var r,Y;return((Y=(r=w.postRenderer)==null?void 0:r.surface)!=null?Y:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.e.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(q){var Z;return!!(q==null?0:(Z=q.items)==null?0:Z.some(function(w){var r,Y,C;return((C=(r=w.backgroundPromoRenderer)==null?void 0:(Y=r.style)==null?void 0:Y.value)!=null?C:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.e.computeIsSearchVodShelf=function(q,Z){return q&&this.containsGridVideoRenderer(Z)};
_.e.computeDisableWheelScroll=function(q,Z){return this.computeIsSearchVodShelf(q,Z)};
_.e.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.e.computeShortsLockupAspectRatio=function(q){return q&&_.b("web_shorts_2_by_3_lockups_no_search")&&!_.b("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.e.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.po(this.hostElement,{"--ytd-reel-item-thumbnail-height":ceJ+"px"})};
BY.prototype.dataChanged=BY.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],BY.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],BY.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.Mt.YtdHorizontalListBehavior),_.A("design:type",Object)],BY.prototype,"ytdHorizontalListBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],BY.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],BY.prototype,"isExpandableContent",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],BY.prototype,"hideShelfHeader",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],BY.prototype,"engagementPanel",void 0);_.X([_.F(),_.A("design:type",Array)],BY.prototype,"buttonClasses",void 0);_.X([_.F(),_.A("design:type",Object)],BY.prototype,"isSearch",void 0);
_.X([_.F(),_.A("design:type",Object)],BY.prototype,"disableScrollEventListener",void 0);_.X([_.F({computed:"computeInitialCountNumber(data)"}),_.A("design:type",Number)],BY.prototype,"initialCount",void 0);_.X([_.F({computed:"computeContainsPost(data)"}),_.A("design:type",Boolean)],BY.prototype,"supportComponentResize",void 0);_.X([_.F({computed:"computeContainsPost(data)"}),_.A("design:type",Boolean)],BY.prototype,"containsPost",void 0);
_.X([_.F({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.A("design:type",Object)],BY.prototype,"containsLockup",void 0);_.X([_.F({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],BY.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.X([_.F({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.A("design:type",Object)],BY.prototype,"overrideArrowPositionForProductCard",void 0);_.X([_.F({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.A("design:type",Object)],BY.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.X([_.F({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.A("design:type",Object)],BY.prototype,"overrideArrowPositionForReelItems",void 0);_.X([_.F({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.A("design:type",Object)],BY.prototype,"overrideArrowPositionForGridMovie",void 0);
_.X([_.F({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.A("design:type",Object)],BY.prototype,"overrideArrowPositionToCenter",void 0);_.X([_.F({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.A("design:type",Object)],BY.prototype,"isSearchPostShelf",void 0);_.X([_.F({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.A("design:type",Object)],BY.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.X([_.F({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.A("design:type",Object)],BY.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.X([_.F({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.A("design:type",Object)],BY.prototype,"hasBigThumbsReelItems",void 0);
_.X([_.F({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.A("design:type",Object)],BY.prototype,"shouldUseMixedListHeight",void 0);_.X([_.F({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.A("design:type",Object)],BY.prototype,"shouldUseShortsListHeight",void 0);_.X([_.F({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.A("design:type",Object)],BY.prototype,"gridVideoWidth",void 0);
_.X([_.F({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.A("design:type",Object)],BY.prototype,"isSearchVodShelf",void 0);_.X([_.F({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.A("design:type",Object)],BY.prototype,"disableWheelScroll",void 0);_.X([_.F({computed:"computeSizing(isSearch)"}),_.A("design:type",Object)],BY.prototype,"sizing",void 0);
_.X([_.F({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.A("design:type",Object)],BY.prototype,"shortsLockupAspectRatio",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BY.prototype,"dataChanged",null);
_.p(BY,"yt-horizontal-list-renderer",function(){if(LEW===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);LEW=q}q=LEW;return q},{mode:1});var Mom;var FNX=[10,12,14,16,18,20,24,28,32,36],NsJ=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],lH7=function(){var q=_.N.apply(this,arguments)||this;q.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";q.hideOverflow=!1;q.useRoboto=!1;q.fontClass="";q.overflown=!1;q.actionMap={"yt-window-resized":"resize"};return q};
_.z(lH7,_.N);_.e=lH7.prototype;
_.e.attached=function(){var q=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();_.I_(this,function(){q.resize()});
if(!_.wS){var Z,w,r;(Z=document)==null||(w=Z.fonts)==null||(r=w.ready)==null||r.then(function(){q.resize()})}};
_.e.dataChanged=function(){this.resize()};
_.e.guideIsExpandedChanged=function(){this.resize()};
_.e.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 q=this.getMaxNumLines(),Z=this.getMinFont(),w=this.getMaxFont(),r=this.useRoboto?FNX:NsJ;for(r=r.filter(function(C){return C<=w&&C>=Z});r.length>1;){var Y=Math.floor(r.length/2);
this.updateFontSize(r[Y]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=q)r=r.slice(Y,r.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>q)r=r.slice(0,Y);else break}this.updateFontSize(r[r.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(q)}};
_.e.handleOverflow=function(q){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>q&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",q.toString()))};
_.e.updateFontSize=function(q){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+q;this.textNode.classList.add(this.fontClass)};
_.e.getMaxFont=function(){var q=this.useRoboto?FNX:NsJ;q=q[q.length-1];return this.maxFontSize&&this.maxFontSize<=q?this.maxFontSize:q};
_.e.getMinFont=function(){var q=(this.useRoboto?FNX:NsJ)[0];return this.minFontSize&&this.minFontSize>=q?this.minFontSize:q};
_.e.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.e.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.e.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.kO(this.text).split("\n").length-1:Infinity};
_.e.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()}};
var aX=lH7;aX.prototype.guideIsExpandedChanged=aX.prototype.guideIsExpandedChanged;aX.prototype.dataChanged=aX.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],aX.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],aX.prototype,"actionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],aX.prototype,"text",void 0);
_.X([_.F(),_.A("design:type",String)],aX.prototype,"fontFamily",void 0);_.X([_.F(),_.A("design:type",Number)],aX.prototype,"maxWidth",void 0);_.X([_.F(),_.A("design:type",Number)],aX.prototype,"maxHeight",void 0);_.X([_.F(),_.A("design:type",Number)],aX.prototype,"maxFontSize",void 0);_.X([_.F(),_.A("design:type",Number)],aX.prototype,"minFontSize",void 0);_.X([_.F(),_.A("design:type",Number)],aX.prototype,"maxLines",void 0);_.X([_.F(),_.A("design:type",Object)],aX.prototype,"hideOverflow",void 0);
_.X([_.F({selector:_.nC2}),_.A("design:type",Boolean)],aX.prototype,"guideIsExpanded",void 0);_.X([_.fo("#container"),_.A("design:type",HTMLElement)],aX.prototype,"containerNode",void 0);_.X([_.fo("#text"),_.A("design:type",HTMLElement)],aX.prototype,"textNode",void 0);_.X([_.g3("text"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aX.prototype,"dataChanged",null);
_.X([_.g3("guideIsExpanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aX.prototype,"guideIsExpandedChanged",null);aX=_.X([_.l({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],aX);
_.p(aX,"yt-dynamic-sizing-formatted-string",function(){if(Mom!==void 0)return Mom;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Mom=q},{mode:1});var GH9;_.p7g=function(q){_.qj.call(this,q)};
_.z(_.p7g,_.qj);var X7v=function(q){_.qj.call(this,q)};
_.z(X7v,_.p7g);var n2=function(){return _.N.apply(this,arguments)||this};
_.z(n2,_.N);n2.prototype.onTapSuspendedChannel=function(){var q;if((q=this.data)!=null&&q.serviceEndpoint){var Z,w;(q=(w=_.J((Z=this.data)==null?void 0:Z.serviceEndpoint,_.TF))==null?void 0:w.url)?_.ja(q,void 0,void 0,window.top):(Z=new X7v("Did not handle suspended account tap. No appealUrl."),_.tY(Z))}else Z=new X7v("Did not handle suspended account tap. No serviceEndpoint."),_.tY(Z)};
n2.prototype.onTap=function(){var q=this,Z=_.iy(),w,r=(w=_.yy(Z,{veType:7116}))!=null?w:void 0;_.Rk(Z,{visualElement:r});_.Sa();this.saveRoleText();var Y;if((Y=this.data)==null?0:Y.youtubeSuspended)this.onTapSuspendedChannel();else{var C=!1,d,O;(Z=(O=_.J((d=this.data)==null?void 0:d.serviceEndpoint,_.Hq7))==null?void 0:O.supportedTokens)&&Z.forEach(function(H){if(H.accountSigninToken)if(C=!0,q.onAccountItemTap)q.onAccountItemTap(H.accountSigninToken.signinUrl);else _.ja(H.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!C){if(d=this.get("serviceEndpoint",this.data))C=!0,this.ytComponentBehavior.resolveCommand(d);C||_.Rw(new X7v("Did not handle account switch tap. No token."))}}};
n2.prototype.saveRoleText=function(){if(this.data){var q=this.data,Z=q.channelDelegationRole;if(Z){var w,r=(w=_.J(q==null?void 0:q.serviceEndpoint,_.Hq7))==null?void 0:w.supportedTokens;if(!r){var Y,C,d,O;r=(Y=_.J(q==null?void 0:q.serviceEndpoint,_.HZ))==null?void 0:(C=Y.popup)==null?void 0:(d=C.confirmDialogRenderer)==null?void 0:(O=d.confirmButton)==null?void 0:O.buttonRenderer;var H;r=(H=_.J(r==null?void 0:r.command,_.$K))==null?void 0:H.commands;if(!r)return;var L;r=(L=_.J(r[1],_.Hq7))==null?
void 0:L.supportedTokens}if(r){H=void 0;L=_.P(r);for(r=L.next();!r.done;r=L.next())if(r=r.value,r.datasyncIdToken){H=r.datasyncIdToken.datasyncIdToken;break}if(H){var S;a:{if(_.HL2()&&(L=_.VZ2(H+"::pom"))){L=new qn(L);break a}L=void 0}(S=L)==null||S.set("role_text",Z);if((B7e?B7e:window.location).href.indexOf("studio")!==-1&&(S=W5T())){L=S.src?(new URL(S.src)).origin:"*";var v;(v=S.contentWindow)==null||v.postMessage({action:"save_pom_role",datasyncId:H,roleText:Z},L)}}}}}};
_.My.Object.defineProperties(n2.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var q,Z,w=(q=this.data)==null?void 0:(Z=q.accountPhoto)==null?void 0:Z.thumbnails;return w&&w.length>0&&(w[0].height===36||w[0].height===48)?w[0].height:40}}});
var Qn=n2;Qn.prototype.onTap=Qn.prototype.onTap;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Qn.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Qn.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Qn.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!1}),_.A("design:type",Function)],Qn.prototype,"onAccountItemTap",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Qn.prototype,"enableRingForActiveAccount",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],Qn.prototype,"thumbnailSize",null);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qn.prototype,"onTap",null);Qn=_.X([_.l({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Qn);
_.p(Qn,"ytd-account-item-renderer",function(){if(GH9!==void 0)return GH9;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return GH9=q},{mode:1});var m89;var Ae9=function(){return _.N.apply(this,arguments)||this};
_.z(Ae9,_.N);Ae9.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.t().resolve(_.ps).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
var Ey=Ae9;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ey.prototype,"data",void 0);Ey=_.X([_.l({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Ey);
_.p(Ey,"ytd-identity-chip-renderer",function(){if(m89!==void 0)return m89;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return m89=q},{mode:1});var fHJ;var D8g;var hj9;var yeK;var iaW=function(){var q=_.N.apply(this,arguments)||this;q.richItemMinWidth=_.m6("wn_grid_min_item_width",310);q.isShorts=!1;q.isWatchNext=!1;q.isExploreHub=!1;return q};
_.z(iaW,_.N);_.My.Object.defineProperties(iaW.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var q=[],Z=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.po(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var w;if(((w=this.data)==null?0:w.rows)&&Z)for(Z*=this.data.rows,w=0;w<Z;w++)q.push({});return q}}});
var xh=iaW;_.X([_.U(_.LO),_.A("design:type",Object)],xh.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],xh.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.vX,value:3}),_.A("design:type",Number)],xh.prototype,"itemsPerRow",void 0);_.X([_.F({selector:_.aKO,value:6}),_.A("design:type",Number)],xh.prototype,"slimItemsPerRow",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Number)],xh.prototype,"richItemMinWidth",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.SZ}),_.A("design:type",Boolean)],xh.prototype,"miniMode",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],xh.prototype,"isShorts",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],xh.prototype,"isWatchNext",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],xh.prototype,"isExploreHub",void 0);
_.X([_.I("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.A("design:type",Array),_.A("design:paramtypes",[])],xh.prototype,"cardItems",null);xh=_.X([_.l({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],xh);
_.g32=_.Fl()(xh,"ytd-ghost-grid-renderer",function(){if(yeK===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);yeK=q}q=yeK;return q},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.xc(_.xl(function(q){var Z=_.n5(q,{numberOfComments:3}).numberOfComments,w=_.n5(q,{isInitialLoad:!1}).isInitialLoad,r=_.ok(_.t0),Y=function(){return Math.min(Number(Z==null?void 0:Z())||20,20)};
return _.u("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.u(_.PF,{cond:function(){return(r==null?void 0:r())&&(w==null?void 0:w())},
then:function(){return _.u("div",{class:"ytGhostCommentsComments"},_.u("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.u("div",{class:_.GL("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.u("div",{class:_.GL("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.u("div",{class:"ytGhostCommentsGhostCard"},_.u("div",{class:"ytGhostCommentsAvatar"},_.u("div",{class:"ytGhostCommentsCircle"})),_.u("div",{class:"ytGhostCommentsComments"},_.u("div",{class:"ytGhostCommentsMeta"},
_.u("div",{class:_.GL("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.u("div",{class:_.GL("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.u("div",{class:"ytGhostCommentsComments"},_.u(_.dA,{each:function(){return Array((Y==null?void 0:Y())||3)}},function(){return _.u("div",{class:"ytGhostCommentsGhostCard"},_.u("div",{class:"ytGhostCommentsAvatar"},_.u("div",{class:"ytGhostCommentsCircle"})),_.u("div",{class:"ytGhostCommentsHost"},_.u("div",{class:"ytGhostCommentsMeta"},
_.u("div",{class:_.GL("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.u("div",{class:_.GL("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.u("div",{class:_.GL("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.u("div",{class:"ytGhostCommentsGhostLikeDislike"},_.u("div",{class:_.GL("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.u("div",{class:_.GL("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"Ua"),"yt-ghost-comments",{props:{numberOfComments:_.zG,
isInitialLoad:_.zG}});_.He("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var ql7=function(){var q=_.N.apply(this,arguments)||this;q.isOverridable=!1;q.spinnerActive=!1;q.showButton=!1;q.isCommentsSection=!1;q.isShortsGrid=!1;q.isShortsPage=!1;q.isWatchPage=!1;q.ghostCardExperimentEnabled=_.b("show_ghost_comments_shorts_watch")||_.b("show_ghost_comments_desktop_watch");q.originalShowButton=!1;q.endOfList=!1;return q};
_.z(ql7,_.N);_.e=ql7.prototype;_.e.resetIntersectionObserver=function(){var q;(q=this.observer)==null||q.disconnect();this.observer=void 0};
_.e.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var q,Z;((q=this.data)==null?void 0:q.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((Z=this.data)==null?0:Z.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.e.initializeIntersectionObserver=function(){var q=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(Z){Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next())w.value.isIntersecting&&(q.triggerContinuation(),q.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.e.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostEngagementPanelRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.e.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var q;((q=this.data)==null?0:q.continuationEndpoint)&&(q=_.J(this.data.continuationEndpoint,_.L6))&&this.ytdReduxBehavior.dispatch(_.mu({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:q}}))};
_.e.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.e.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.e.onServiceRequestCompleted=function(q,Z){if(!_.b("kevlar_hide_spinner_on_empty_continuation_killswitch")){var w;(w=Z.actions)!=null&&w.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.e.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.e.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.e.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.e.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var q=3;if(this.isShortsPage){var Z,w,r;q=Math.floor(((((Z=this.hostElement)==null?void 0:(w=Z.parentElement)==null?void 0:(r=w.parentElement)==null?void 0:r.scrollHeight)||108)-108)/108);q=this.isInitialLoad?Math.max(q,3):3}Z=[].concat(_.Ju(this.hostElement.querySelectorAll("yt-ghost-comments")));Z=_.P(Z);for(w=Z.next();!w.done;w=Z.next())w=w.value,w.numberOfComments=q,w.isInitialLoad=this.isInitialLoad}};
_.e.detached=function(){this.resetIntersectionObserver()};
_.My.Object.defineProperties(ql7.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return _.b("show_ghost_comments_shorts_watch")&&this.isShortsPage&&this.isCommentsSection&&!this.showButton||_.b("show_ghost_comments_desktop_watch")&&this.isWatchPage&&this.isCommentsSection&&!this.showButton?{ghostEngagementPanelRenderer:!0}:!1}}});
var TY=ql7;TY.prototype.numberOfGhostCommentsChanged=TY.prototype.numberOfGhostCommentsChanged;TY.prototype.continuationTriggerOffsetChanged=TY.prototype.continuationTriggerOffsetChanged;TY.prototype.showButtonChanged=TY.prototype.showButtonChanged;TY.prototype.onYtServiceRequestCompletedForButtonRenderer=TY.prototype.onYtServiceRequestCompletedForButtonRenderer;TY.prototype.onServiceRequestCompleted=TY.prototype.onServiceRequestCompleted;TY.prototype.onYtServiceRequestSentForButtonRenderer=TY.prototype.onYtServiceRequestSentForButtonRenderer;
TY.prototype.observeData=TY.prototype.observeData;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],TY.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],TY.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.tg.YtVisibilityBehavior),_.A("design:type",Object)],TY.prototype,"ytVisibilityBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],TY.prototype,"ytComponentBehavior",void 0);
_.X([_.U(_.LO),_.A("design:type",Object)],TY.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],TY.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],TY.prototype,"isOverridable",void 0);_.X([_.F(),_.A("design:type",Object)],TY.prototype,"spinnerActive",void 0);_.X([_.F(),_.A("design:type",Object)],TY.prototype,"showButton",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],TY.prototype,"isCommentsSection",void 0);
_.X([_.F(),_.A("design:type",Object)],TY.prototype,"isShortsGrid",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.ECN}),_.A("design:type",Object)],TY.prototype,"isShortsPage",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.t0}),_.A("design:type",Object)],TY.prototype,"isWatchPage",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],TY.prototype,"ghostCardExperimentEnabled",void 0);_.X([_.F(),_.A("design:type",Number)],TY.prototype,"continuationTriggerOffset",void 0);
_.X([_.F(),_.A("design:type",Object)],TY.prototype,"endOfList",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],TY.prototype,"isInitialLoad",void 0);_.X([_.fo("ytd-button-renderer"),_.A("design:type",_.TU)],TY.prototype,"buttonRenderer",void 0);_.X([_.F(),_.A("design:type",Object)],TY.prototype,"buttonOverrides",void 0);
_.X([_.F(),_.I("isCommentsSection","showButton","isShortsPage","isWatchPage"),_.A("design:type",Object),_.A("design:paramtypes",[])],TY.prototype,"isShortsCommentsSection",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TY.prototype,"observeData",null);
_.X([_.m2("yt-service-request-sent-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TY.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],TY.prototype,"onServiceRequestCompleted",null);
_.X([_.m2("yt-service-request-completed-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TY.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.X([_.g3("showButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TY.prototype,"showButtonChanged",null);
_.X([_.g3("continuationTriggerOffset"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TY.prototype,"continuationTriggerOffsetChanged",null);_.X([_.M("isInitialLoad","isShortsPage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TY.prototype,"numberOfGhostCommentsChanged",null);TY=_.X([_.l({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],TY);
_.p(TY,"ytd-continuation-item-renderer",function(){if(hj9!==void 0)return hj9;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return hj9=q},{mode:1});var ZQ9;var Uy=function(){var q=_.N.apply(this,arguments)||this;q.downloadProgress=0;q.transferState="TRANSFER_STATE_UNKNOWN";q.downloadState="DOWNLOAD_STATE_UNKNOWN";q.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";q.offlineVideoPolicyExpirationTimestamp=0;q.downloadedVideoPlaybackPosition=0;return q};
_.z(Uy,_.N);Uy.prototype.dataChanged=function(){var q;this.videoData=_.J((q=this.data)==null?void 0:q.renderer,mrD);this.transferStateChanged()};
Uy.prototype.downloadProgressChanged=function(){if(this.entityInfo){var q=Object.assign({},this.videoData),Z=aZN(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),w=Z.publishedTimeText,r=Z.badges;q.shortViewCountText=Z.shortViewCountText;q.publishedTimeText=w;q.badges=r;this.set("videoData",q)}};
Uy.prototype.transferStateChanged=function(){if(this.entityInfo){var q=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",Z=_.PX(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Cz(this.entityInfo.policyEntity),w=Object.assign({},this.videoData),r=aZN(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),Y=r.publishedTimeText,C=r.badges;w.shortViewCountText=
r.shortViewCountText;w.publishedTimeText=Y;w.badges=C;w.isDisabled=Z;w.isWatched=this.downloadedVideoPlaybackPosition>0;w.navigationEndpoint=Z?void 0:UI6(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var d;q&&((d=this.videoData)==null?0:d.videoId)&&!_.b("dl_resume_click_killswitch")&&(w.isDisabled=!1,w.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});w.thumbnailOverlays=zF2(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",w)}};
var kh=Uy;kh.prototype.transferStateChanged=kh.prototype.transferStateChanged;kh.prototype.downloadProgressChanged=kh.prototype.downloadProgressChanged;kh.prototype.dataChanged=kh.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],kh.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],kh.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],kh.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],kh.prototype,"videoData",void 0);_.X([_.F({selector:J0,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],kh.prototype,"downloadProgress",void 0);_.X([_.F(),_.A("design:type",Number)],kh.prototype,"relativeDateReference",void 0);_.X([_.F({selector:_.RZ,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],kh.prototype,"transferState",void 0);
_.X([_.F({selector:hpI,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],kh.prototype,"downloadState",void 0);_.X([_.F({selector:sa2,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],kh.prototype,"offlinePolicyAction",void 0);_.X([_.F({selector:IK1,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],kh.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.X([_.F({selector:z9,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],kh.prototype,"downloadedVideoPlaybackPosition",void 0);_.X([_.F({selector:M1e,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],kh.prototype,"entityInfo",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],kh.prototype,"isDownloading",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kh.prototype,"dataChanged",null);
_.X([_.g3("downloadProgress"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kh.prototype,"downloadProgressChanged",null);_.X([_.g3("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kh.prototype,"transferStateChanged",null);
kh=_.X([_.l({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],kh);
_.p(kh,"ytd-downloaded-video-grid-video-renderer",function(){if(ZQ9!==void 0)return ZQ9;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ZQ9=q},{mode:_.NT("kevlar_poly_si_batch_j025")?1:2});var w4W;var K2=function(){};
K2.prototype.resolve=function(q,Z){var w=this;return _.V(function(r){return _.W(r,w.resolveCommand(q,Z),0)})};var rv7,sy;rv7=VPO(function(q){return q.targetId},{shouldPersist:!1});
sy=rv7.updateData;_.Ylp=rv7.useUpdatableData;var $iX,ew9;$iX=VPO(function(q){return q.targetId});
ew9=$iX.updateData;_.Cz1=$iX.useUpdatableData;var Pzv=dz2.bind(null,sy),di2=dz2.bind(null,ew9);(function(q,Z,w){var r=_.J(w==null?void 0:w.updatedRenderer,_.Rfh);return r?q({targetId:Z},function(){return r}):!1}).bind(null,sy);var IX=function(){};
_.z(IX,K2);IX.prototype.resolveCommand=function(q){var Z;return _.V(function(w){Z=_.J(q,_.zoO);if(!Z)return w.return();Pzv(Z.targetId,Z);_.ub(w)})};var Vwm=function(){var q=_.y5.apply(this,arguments)||this;q.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return q};
_.z(Vwm,_.y5);_.e=Vwm.prototype;_.e.configureContinuationPathMap=function(){return{}};
_.e.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.e.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.e.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.e.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.e.handleAppendContinuationItemsAction=function(q){var Z=_.J(q,_.Ysm);if(this.data&&this.data.targetId&&Z&&this.continuationPathMap&&Z.targetId===this.data.targetId){var w=EL9(q);if((q=w&&this.continuationPathMap[w])&&w){w=this.get(q,this.data);var r;a:{for(r=0;r<w.length;r++){var Y=w[r],C=void 0,d=!!_.J((C=_.J(Y,Mi7))==null?void 0:C.content,_.l1g);if(_.J(Y,_.i2)||d)break a}r=w.length}q="data."+q;Z.continuationItems?r===w.length-1?(this.pop(q),this.push.apply(this,[q].concat(_.Ju(Z.continuationItems)))):
r===w.length?this.push.apply(this,[q].concat(_.Ju(Z.continuationItems))):this.splice.apply(this,[q,r,1].concat(_.Ju(Z.continuationItems))):this.splice(q,r,1);(_.b("web_enable_voting_animation")||_.b("enable_music_web_cairo_voting_animation"))&&_.hy(this.hostElement,"yt-append-continuation-items-action-finished");_.hy(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.bx(new _.df("append continuation path does not exist",w))}};
_.e.handleReloadContinuationItemsCommand=function(q){var Z=_.J(q,_.zoO);if(this.data&&Z){if(_.b("web_explore_hub")||_.b("web_client_explore_hub")||_.b("web_explore_hub_on_hover")||_.b("web_client_explore_hub_on_hover"))try{_.t().resolve(IX).resolveCommand(q)}catch(C){}if(this.data.targetId&&this.continuationPathMap&&Z.targetId===this.data.targetId&&(!_.b("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||Z.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var w,r=(w=
Z.slot)==null?void 0:w.replace("RELOAD_CONTINUATION_SLOT_","");w=(q=EL9(q)+"-"+(r==null?void 0:r.toLowerCase()))&&this.continuationPathMap[q];if(!w||!q||!r)_.bx(new _.df("reload continuation path does not exist",q));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(Z)){if(Z.replaceWithFirstItem){var Y;this.set("data."+w,((Y=Z.continuationItems)==null?0:Y.length)?Z.continuationItems[0]:{})}else this.set("data."+w,Z.continuationItems?Z.continuationItems:
[]);this.continuationIsReloading=!1;_.hy(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.e.handleShowReloadUiCommand=function(q){q=_.J(q,Ss1);var Z;((Z=this.data)==null?0:Z.targetId)&&(q==null?0:q.targetId)&&q.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
var cY=Vwm;cY.prototype.observeData=cY.prototype.observeData;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],cY.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],cY.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],cY.prototype,"data",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],cY.prototype,"continuationIsReloading",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cY.prototype,"observeData",null);cY=_.X([_.iq()],cY);_.Ms=[_.S_.YtComponentBehavior,_.KK.YtActionHandlerBehavior,cY.prototype];_.FP={};_.FP.YtNextContinuationBehavior=[_.EY.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",_.XN(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.XN(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(q,Z){q.stopPropagation();if(this.nextContinuation.requestPath){q=this.nextContinuation.requestPath;var w={};_.b("direct_innertube_click_tracking_reporting")&&(w={context:{clickTracking:{clickTrackingParams:this.nextContinuation.clickTrackingParams}}});this.makeNextContinuationRequest_(q,Z,w)}else q={locationRetrieved:function(r,Y){var C={};_.b("direct_innertube_click_tracking_reporting")&&Y.clickTrackingParams&&Object.assign(C,{context:{clickTracking:{clickTrackingParams:Y.clickTrackingParams}}});
this.makeNextContinuationRequest_(r,Z,C)}.bind(this)},_.hy(this.hostElement,"yt-retrieve-location",q)},
makeNextContinuationRequest_:function(q,Z,w){_.z7("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();q=Z(q);var r;this.canUseContextualNetworkManager_()&&(r=this.getNetworkManager());r||(r=_.t().resolve(_.Co));Z=_.bl.instance;if(_.zj("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&Z){r=_.IZ([q.startsWith("/")?q.substr(1):q]);var Y,C;w=_.tD(Z,{},r,w==null?void 0:(Y=w.context)==null?void 0:(C=Y.clickTracking)==null?void 0:C.clickTrackingParams).then(function(d){return{response:d}})}else w=
this.nextContinuation.usePost?r.postData(q,w):r.fetchData(q);
w.then(this.updateNextContinuationData_.bind(this,q));this.pendingContinuationRequest_=w;this.startListeningForNavigate_()},
updateNextContinuationData_:function(q,Z){var w=this;_.z7("ncl");this.pendingContinuationRequest_=void 0;if(Z){var r={};this.nextContinuation&&(r=this.nextContinuation);if(Z.response&&Z.response.continuationContents&&Z.response.continuationContents[r.continuationType]){q=Z.response.continuationContents[r.continuationType];var Y=r.header||"data.header",C=q[r.responseHeaderKey||"header"];C&&this.set(Y,C);Y=r.contentsArray||"data.contents";C=this.getContents_(q,r.responseContentsKey||"contents")||[];
this.pathExists_(Y)?(C.unshift(Y),this.push.apply(this,C)):this.set(Y,C);C&&(Vtj(_.iy(),Z.response,this.hostElement,function(d){_.yY(w.hostElement,"yt-store-grafted-ve-action",[d])}),_.hy(this.hostElement,"yt-next-continuation-data-updated",{continuationData:Z,
page:this,contentsArray:Y}));this.set(r.continuationsArray||"data.continuations",q[r.responseContinuationsKey||"continuations"]||[])}else Z.reload?_.bx(new _.df("Reloading from continuation is unsupported")):Z.responseContext&&Z.responseContext.errors||(delete Z.xsrf_token,delete Z.timing,delete Z.endpoint,delete Z.csn,Z.responseContext&&delete Z.responseContext.serviceTrackingParams,Y={request:_.sq(q,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(Z).sort()},Z.response&&(Y.responseContentKeys=
Object.keys(Z.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(Y.continuationType=this.nextContinuation.continuationType.substr(0,256)),Z=new _.df("Malformed continuation",Y),q.indexOf("/comment_service_ajax")==0?_.bx(Z):_.tY(Z)),this.set(r.continuationsArray||"data.continuations",[])}else _.Rw(new _.df("Missing continuation response",q))},
getContents_:function(q,Z){Z=Z.split(".");return _.R4.getValueByKeys(q,Z)},
pathExists_:function(q){var Z=this;q=q.toString().split(".");for(var w=0;w<q.length;w++)if(Z=Z[q[w]],Z===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var OQh;var HQp;var Wsv=function(){var q=_.N.apply(this,arguments)||this;q.triggered_=!1;return q};
_.z(Wsv,_.N);_.e=Wsv.prototype;_.e.attached=function(){this.maybeTriggerAutoload()};
_.e.detached=function(){this.hasBeenTriggered_=!1};
_.e.onPrescanVisible=function(){this.onShow()};
_.e.onShow=function(){this.showButton||this.trigger()};
_.e.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.hy(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.e.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.e.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.e.computeLabel_=function(q,Z){return q===void 0?null:q.label||!Z?q.label:this.showMoreText_};
_.e.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.e.getContinuationUrl=function(q){var Z={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(Z.itct=this.data.clickTrackingParams);return _.Iz(q,Z)};
_.e.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
var Ns=Wsv;Ns.prototype.showButtonChanged_=Ns.prototype.showButtonChanged_;Ns.prototype.observeData_=Ns.prototype.observeData_;_.X([_.U(_.tg.YtVisibilityBehavior),_.A("design:type",Object)],Ns.prototype,"ytVisibilityBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ns.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ns.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],Ns.prototype,"showButton",void 0);
_.X([_.F({value:!1}),_.A("design:type",Boolean)],Ns.prototype,"showIcon",void 0);_.X([_.F({computed:"computeLabel_(data, showButton)"}),_.A("design:type",Object)],Ns.prototype,"label",void 0);_.X([_.F({value:_.UE(_.dT("SHOW_MORE",void 0,"Show More"))}),_.A("design:type",Object)],Ns.prototype,"showMoreText_",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],Ns.prototype,"spinnerActive_",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],Ns.prototype,"hasBeenTriggered_",void 0);
_.X([_.F({value:void 0}),_.A("design:type",String)],Ns.prototype,"observeVisibleOption",void 0);_.X([_.F({value:void 0}),_.A("design:type",String)],Ns.prototype,"observeHiddenOption",void 0);_.X([_.F({value:"observe_once"}),_.A("design:type",Object)],Ns.prototype,"observePrescanOption",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ns.prototype,"observeData_",null);
_.X([_.M("showButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ns.prototype,"showButtonChanged_",null);Ns=_.X([_.dx({is:"yt-next-continuation",disableElementRegistration:!0})],Ns);
_.p(Ns,"yt-next-continuation",function(){if(HQp===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;OQh===void 0&&(OQh=document.createElement("template"));var r=OQh;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);HQp=q}q=HQp;return q},{mode:2});var oH1;var uI7;var Ls7=function(){return _.N.apply(this,arguments)||this};
_.z(Ls7,_.N);Ls7.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
var lR=Ls7;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],lR.prototype,"data",void 0);lR=_.X([_.dx({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],lR);
_.p(lR,"yt-music-pass-small-feature-info-renderer",function(){if(uI7===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;oH1===void 0&&(oH1=document.createElement("template"));var r=oH1;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);uI7=q}q=uI7;return q},{mode:2});_.He("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Slm=function(){var q=_.N.apply(this,arguments)||this;q.isCollapsible=!1;q.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return q};
_.z(Slm,_.N);_.e=Slm.prototype;_.e.computeIsCollapsible=function(q){return!!(((q==null?0:q.showMoreText)||(q==null?0:q.visibleRowCount))&&(q==null?0:q.isCollapsible))};
_.e.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"}}}};
_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.e.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.e.onIronResize=function(){var q=this;_.vp(this,"updateGridInitItems",function(){q.maybeUpdateInitialItemsDisplayed()})};
_.e.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var q=this.getVisibleWidth();q!==0&&(q=Math.floor(q/214)*(this.data.visibleRowCount||2),q!==this.initialCount&&(this.initialCount=q,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.e.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.e.computeExpandVisible=function(q,Z,w,r){return q&&Z&&w&&!!r&&!!r.showMoreText};
_.e.computeShowMoreButton=function(q){return{text:q,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.e.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.e.initCollapsed=function(){var q=this;this.ytLazyListBehavior.canShowMore=!1;var Z;(this.collapsed=!((Z=this.data)==null||!Z.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.I_(this,function(){_.i5(q.hostElement,"yt-refit-popups-action")})};
_.e.fillRestIfNotCollapsible=function(){var q=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!q||this.ytLazyListBehavior.fillRemainingListItems()};
_.e.computeViewAllHidden=function(q,Z){return q||!Z.viewAllEndpoint};
var GY=Slm;GY.prototype.fillRestIfNotCollapsible=GY.prototype.fillRestIfNotCollapsible;GY.prototype.initCollapsed=GY.prototype.initCollapsed;GY.prototype.onIronResize=GY.prototype.onIronResize;GY.prototype.persistentGuideChanged=GY.prototype.persistentGuideChanged;_.X([_.U(_.SQ),_.A("design:type",Object)],GY.prototype,"ironResizableBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],GY.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.cj.YtLazyListBehavior),_.A("design:type",Object)],GY.prototype,"ytLazyListBehavior",void 0);_.X([_.U(_.FP.YtNextContinuationBehavior),_.A("design:type",Object)],GY.prototype,"ytNextContinuationBehavior",void 0);_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],GY.prototype,"ytdGuideStateAwareBehavior",void 0);
_.X([_.U(_.Ms),_.A("design:type",Object)],GY.prototype,"ytContinuationHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],GY.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],GY.prototype,"collapsed",void 0);_.X([_.F(),_.A("design:type",Number)],GY.prototype,"initialCount",void 0);_.X([_.F({computed:"computeShowMoreButton(data.showMoreText)"}),_.A("design:type",Object)],GY.prototype,"showMoreButton",void 0);
_.X([_.F({computed:"computeIsCollapsible(data)"}),_.A("design:type",Object)],GY.prototype,"isCollapsible",void 0);_.X([_.fo("#items"),_.A("design:type",HTMLElement)],GY.prototype,"items",void 0);_.X([_.g3("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GY.prototype,"persistentGuideChanged",null);_.X([_.m2("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GY.prototype,"onIronResize",null);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GY.prototype,"initCollapsed",null);_.X([_.g3("canShowMore"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GY.prototype,"fillRestIfNotCollapsible",null);GY=_.X([_.l({is:"ytd-grid-renderer",disableElementRegistration:!0})],GY);
_.p(GY,"ytd-grid-renderer",function(){if(w4W!==void 0)return w4W;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return w4W=q},{mode:_.NT("kevlar_poly_si_batch_j025")?1:2});var vHJ=function(){return _.N.apply(this,arguments)||this};
_.z(vHJ,_.N);
vHJ.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"}}}};
var p2=vHJ;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],p2.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],p2.prototype,"data",void 0);p2=_.X([_.l({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],p2);
_.p(p2,"ytd-carousel-ad-renderer",function(){if(D8g!==void 0)return D8g;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return D8g=q},{mode:1});var jBK;var XP,twm=function(){return _.N.apply(this,arguments)||this};
_.z(twm,_.N);_.e=twm.prototype;_.e.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"}}}};
_.e.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,XP.JSC$13108_CLICK_LOCATION_ID_MAP))};
_.e.onSitelinkTap=function(q){q.stopPropagation();var Z,w,r=q==null?void 0:(Z=q.model)==null?void 0:(w=Z.item)==null?void 0:w.onTap;r&&this.ytSparklesClickLocationBehavior.handleClick(r,q,!1)};
_.e.onTap=function(q){var Z=this.data&&this.data.content&&this.data.content.navigationEndpoint;Z&&this.ytSparklesClickLocationBehavior.handleClick(Z,q,!1)};
_.e.sendImpression=function(){if(this.data&&this.data.content)for(var q=_.P(this.data.content.impressionEndpoints||[]),Z=q.next();!Z.done;Z=q.next()){Z=_.P(Z.value.loggingUrls||[]);for(var w=Z.next();!w.done;w=Z.next())w=w.value,w.baseUrl&&xY(w.baseUrl,w.attributionSrcMode)}};
var m8=XP=twm;XP.prototype.onTap=XP.prototype.onTap;XP.prototype.dataChanged=XP.prototype.dataChanged;m8.JSC$13108_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"]]);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],m8.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],m8.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Iy.YtSparklesClickLocationBehavior),_.A("design:type",Object)],m8.prototype,"ytSparklesClickLocationBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],m8.prototype,"data",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],m8.prototype,"dataChanged",null);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],m8.prototype,"onTap",null);m8=XP=_.X([_.l({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],m8);
_.p(m8,"ytd-promoted-sparkles-text-search-renderer",function(){if(jBK!==void 0)return jBK;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return jBK=q},{mode:1});var Rw7;var AZ,bQ7=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-mute-ad-action":"handleMuteAd"};return q};
_.z(bQ7,_.N);_.e=bQ7.prototype;
_.e.configureRendererStamper=function(){return{"data.menu":{id:_.b("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]]"}}}}}};
_.e.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.e.computeHasAdBadge=function(q){return!(q==null||!q.adBadge)};
_.e.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",AZ.JSC$13117_DEFAULT_AD_BADGE_RENDERER),_.NZ(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,AZ.JSC$13117_CLICK_LOCATION_ID_MAP))};
_.e.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var q;(((q=this.data)==null?void 0:q.impressionCommands)||[]).forEach(function(Z){Z=_.P(Z.loggingUrls||[]);for(var w=Z.next();!w.done;w=Z.next())w=w.value,w.baseUrl&&xY(w.baseUrl,w.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.e.onTap=function(q){var Z,w=(Z=this.data)==null?void 0:Z.navigationEndpoint,r;(Z=(r=this.data)==null?void 0:r.thumbnailNavigationEndpoint)&&_.xB(_.E8(q),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(Z,q,!1):w&&this.ytSparklesClickLocationBehavior.handleClick(w,q,!1)};
_.e.handleMuteAd=function(){this.collapsed=!0};
_.e.attached=function(){var q=this;_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&q.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.e.detached=function(){_.b("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.My.Object.defineProperties(bQ7.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var q;return!(((q=this.data)==null?void 0:q.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var q;return!(((q=this.data)==null?void 0:q.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.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}}});
var f2=AZ=bQ7;AZ.prototype.dataChanged=AZ.prototype.dataChanged;
f2.JSC$13117_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"]]);
f2.JSC$13117_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.dT("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],f2.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],f2.prototype,"ytRendererBehavior",void 0);_.X([_.U(uc),_.A("design:type",Object)],f2.prototype,"ytdActiveViewBehavior",void 0);
_.X([_.U([_.KK.YtActionHandlerBehavior]),_.A("design:type",Object)],f2.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.Iy.YtSparklesClickLocationBehavior),_.A("design:type",Object)],f2.prototype,"ytSparklesClickLocationBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],f2.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],f2.prototype,"collapsed",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],f2.prototype,"useBiggerThumbs",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.Af("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],f2.prototype,"biggerThumbsStyle",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.b("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.A("design:type",Boolean)],f2.prototype,"fixAlignmentSmallScreens",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs_square")}}),
_.A("design:type",Boolean)],f2.prototype,"useBiggerThumbsSquare",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data.mediaHoverOverlay"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],f2.prototype,"hideHoverOverlay",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.promotedSparklesWebStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],f2.prototype,"webSearchLayout",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],f2.prototype,"webSearchLayoutLandscape",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],f2.prototype,"webSearchLayoutSquare",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data.promotedSparklesWebStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],f2.prototype,"sparklesCtaNoBackground",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.actionButton"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],f2.prototype,"hideActionButton",null);_.X([_.F({computed:"computeButtonOverride(uiUpdate)"}),_.A("design:type",Object)],f2.prototype,"buttonOverride",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.A("design:type",Boolean)],f2.prototype,"hasNewAdBadge",void 0);_.X([_.I("data.promotedSparklesWebStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],f2.prototype,"useRoundedBadge",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],f2.prototype,"dataChanged",null);f2=AZ=_.X([_.l({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],f2);
_.p(f2,"ytd-promoted-sparkles-web-renderer",function(){if(Rw7!==void 0)return Rw7;var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Rw7=q},{mode:1});var Jv1;var Dq,zwm=function(){return _.N.apply(this,arguments)||this};
_.z(zwm,_.N);_.e=zwm.prototype;_.e.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]]"}}}}}};
_.e.computeShowCta=function(q){return!(q==null||!q.ctaRenderer)};
_.e.onCtaClick=function(){var q,Z,w,r=(q=this.data)==null?void 0:(Z=q.ctaRenderer)==null?void 0:(w=Z.buttonRenderer)==null?void 0:w.command;r&&this.ytComponentBehavior.resolveCommand(r)};
_.e.onWatchButtonClick=function(){var q,Z,w,r=(q=this.data)==null?void 0:(Z=q.watchButtonRenderer)==null?void 0:(w=Z.buttonRenderer)==null?void 0:w.command;r&&this.ytComponentBehavior.resolveCommand(r)};
_.e.onTap=function(){};
_.e.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",Dq.JSC$13120_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Dq.JSC$13120_DEFAULT_CLICK_LOCATION_BEHAVIOR,Dq.JSC$13120_CLICK_LOCATION_ID_MAP),this.thumbnail)){var q=this.thumbnail.getElementsByTagName("a");q.length>0&&(q=q.namedItem("thumbnail"))&&q.removeAttribute("href")}};
_.e.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var q=_.P(this.data.impressionUrls),Z=q.next();!Z.done;Z=q.next())Z=Z.value,Hnz(Z,ocO(Z));this.data.impressionsFired=!0}};
_.e.maybeComputeHref=function(){return null};
_.e.computeIsShortDR=function(q){return!(q==null||!q.watchButtonRenderer)&&!(q==null||!q.ctaRenderer)&&!!this.enableShortDR};
_.e.computeIsNewUiOrShortDr=function(q){return!!this.enableUiUpdate||this.computeIsShortDR(q)};
_.e.computeIsNewUiAndNotShortDr=function(q){return!!this.enableUiUpdate&&!this.computeIsShortDR(q)};
_.e.computeHideAvatar=function(q){return!((q==null?0:q.channelThumbnail)&&this.computeIsNewUiOrShortDr(q))};
_.e.onClick=function(q){var Z,w=(Z=this.data)==null?void 0:Z.navigationEndpoint;if(this.enableShortDR&&w&&(_.J(w,_.ck)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(w,q,!!_.J(w,_.ck)),q.stopPropagation();else if(w&&_.J(w,_.ck))this.ytSparklesClickLocationBehavior.handleClick(w,q,!0),q.stopPropagation();else if(w){var r,Y;((r=this.data)==null?0:r.navigationEndpoint)&&((Y=this.data)==null?0:Y.adPlaybackContextParams)&&YmT(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(w)}};
_.e.computeButtonOverride=function(q){if(this.computeIsNewUiOrShortDr(q))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.e.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.e.onThumbnailContainerClick=function(q){this.onClick(q)};
_.e.computeThumbnailWidth=function(q,Z){return q?Z==="MASSIVE"?600:Z==="BIG"?500:Z==="MEDIUM"?450:420:360};
_.e.attached=function(){var q=this;_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&q.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.e.detached=function(){_.b("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
var hZ=Dq=zwm;Dq.prototype.dataChanged=Dq.prototype.dataChanged;Dq.prototype.onTap=Dq.prototype.onTap;hZ.JSC$13120_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.dT("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};hZ.JSC$13120_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
hZ.JSC$13120_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"}];_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],hZ.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.X([_.U(uc),_.A("design:type",Object)],hZ.prototype,"ytdActiveViewBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],hZ.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.Iy.YtSparklesClickLocationBehavior),_.A("design:type",Object)],hZ.prototype,"ytSparklesClickLocationBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],hZ.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],hZ.prototype,"useBiggerThumbs",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.b("enable_video_display_compact_button_group_for_desktop_search")}}),
_.A("design:type",Boolean)],hZ.prototype,"enableShortDR",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.b("enable_vac_ui_update_for_desktop_search")}}),
_.A("design:type",Boolean)],hZ.prototype,"enableUiUpdate",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.Af("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],hZ.prototype,"biggerThumbsStyle",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.A("design:type",Boolean)],hZ.prototype,"showCta",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.A("design:type",Boolean)],hZ.prototype,"isShortDr",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.A("design:type",Boolean)],hZ.prototype,"isShortDrOrNewUi",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.A("design:type",Boolean)],hZ.prototype,"isNewUiAndNotShortDr",void 0);_.X([_.F({computed:"computeButtonOverride(data)"}),_.A("design:type",Object)],hZ.prototype,"buttonOverride",void 0);_.X([_.F({computed:"computeSecondaryButtonOverride(data)"}),_.A("design:type",Object)],hZ.prototype,"secondaryButtonOverride",void 0);_.X([_.fo("ytd-thumbnail"),_.A("design:type",HTMLElement)],hZ.prototype,"thumbnail",void 0);
_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hZ.prototype,"onTap",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hZ.prototype,"dataChanged",null);hZ=Dq=_.X([_.l({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],hZ);
_.p(hZ,"ytd-promoted-video-renderer",function(){if(Jv1!==void 0)return Jv1;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Jv1=q},{mode:1});var BR7;var yn,a3p=function(){var q=_.N.apply(this,arguments)||this;q.useRoundedBadge=!0;q.sitelinkIds=[];return q};
_.z(a3p,_.N);_.e=a3p.prototype;
_.e.configureRendererStamper=function(){return{"data.menu":{id:_.b("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]]"}}}}}};
_.e.dataChanged=function(){var q;(q=this.data)!=null&&q.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,yn.JSC$13127_CLICK_LOCATION_ID_MAP)};
_.e.onTap=function(q){var Z,w=(Z=this.data)==null?void 0:Z.navigationCommand;w&&!_.xB(_.E8(q),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(w,q,!1)};
_.e.onSitelinkTap=function(q){var Z,w,r=q==null?void 0:(Z=q.model)==null?void 0:(w=Z.item)==null?void 0:w.onTap;r&&this.ytSparklesClickLocationBehavior.handleClick(r,q,!1)};
_.e.configureSitelinkClickTargets=function(){var q=this,Z,w,r=(Z=this.data)==null?void 0:(w=Z.clickLocationTargets)==null?void 0:w.find(function(Y){return Y.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
r&&_.E(this.hostElement).querySelectorAll(".sitelink").forEach(function(Y){_.NZ(Y,"yt-simple-endpoint",!0);q.sitelinkIds.push(Y.id);var C,d;(C=q.ytSparklesClickLocationBehavior)==null||(d=C.clickTargetMap)==null||d.set(Y.id,r)})};
_.e.sendImpression=function(){var q,Z,w=((q=this.data)==null?void 0:(Z=q.impressionCommand)==null?void 0:Z.loggingUrls)||[];q=_.P(w);for(Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.baseUrl&&xY(Z.baseUrl,Z.attributionSrcMode)};
_.e.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.My.Object.defineProperties(a3p.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
var iR=yn=a3p;yn.prototype.onTap=yn.prototype.onTap;yn.prototype.dataChanged=yn.prototype.dataChanged;
iR.JSC$13127_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"]]);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],iR.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Iy.YtSparklesClickLocationBehavior),_.A("design:type",Object)],iR.prototype,"ytSparklesClickLocationBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],iR.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],iR.prototype,"showFavicon",null);_.X([_.F({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],iR.prototype,"useBiggerThumbs",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.Af("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],iR.prototype,"biggerThumbsStyle",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.b("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.A("design:type",Boolean)],iR.prototype,"enableThumbnailScalingFix",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iR.prototype,"dataChanged",null);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],iR.prototype,"onTap",null);iR=yn=_.X([_.l({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],iR);
_.p(iR,"ytd-text-image-no-button-layout-renderer",function(){if(BR7!==void 0)return BR7;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return BR7=q},{mode:_.NT("kevlar_poly_si_batch_j028")?1:2});var nHX;var gq,QBW=function(){var q=_.N.apply(this,arguments)||this;q.isInlinePlaybackState=!1;q.uiUpdate=_.b("web_modern_buttons");q.hideCta=_.b("hide_cta_for_home_web_video_ads");q.noBottomMargin=!1;q.animateInTimeStamp=_.m6("hide_cta_for_home_web_video_ads_animate_in_time");q.animateInCta=!1;q.isHovered=!1;q.player=null;q.JSC$13134_playerEvents=new Map;q.JSC$13134_preventProgressSaveTimer=null;q.delayedCtaJobId=null;return q};
_.z(QBW,_.N);_.e=QBW.prototype;_.e.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]]"}}}}}};
_.e.attached=function(){this.JSC$13134_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13134_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.b("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.e.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13134_playerEvents)};
_.e.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",gq.JSC$13133_DEFAULT_CLICK_LOCATION_BEHAVIOR,gq.JSC$13133_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.e.hoverChanged=function(){var q=this;this.delayedCtaJobId&&(_.v5.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.b("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.$L(_.v5,function(){q.buttonContainer.classList.add("show-delayed-buttons")},_.m6("delayed_cta_on_web_delay_milliseconds")))};
_.e.setPlayer=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1)return(Z=_.i5(q.hostElement,"yt-get-inline-preview-player-action"))&&Z[0]?_.W(w,Z[0].getPlayerPromise(),3):w.jumpTo(0);q.player=w.yieldResult;q.ytPlayerListenerBehavior.listenToPlayerEvents(q.player,q.JSC$13134_playerEvents);_.ub(w)})};
_.e.onPlaybackStart=function(){var q=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13134_preventProgressSaveTimer=_.sL(_.v5,function(){q.JSC$13134_preventProgressSaveTimer=null},1E4))};
_.e.onVideoProgress=function(q){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&q>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.e.resetPreventProgressSaveTimer=function(){_.v5.cancelJob(this.JSC$13134_preventProgressSaveTimer);this.JSC$13134_preventProgressSaveTimer=null};
_.e.getSimpleString=function(q){return _.kO(q)};
_.e.onClick=function(q){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var Z,w=(Z=this.data)==null?void 0:Z.navigationEndpoint,r;Z=(r=this.data)==null?void 0:r.channelEndpoint;var Y,C;(r=(C=_.J((Y=this.data)==null?void 0:Y.adCtaButton,_.tA))==null?void 0:C.command)&&_.xB(_.E8(q),this.hostElement,["call-to-action"])?_.b("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(r,q,!1):Z&&_.xB(_.E8(q),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(Z,q,!1):!_.xB(_.E8(q),this.hostElement,["secondary-button"])&&w&&(_.b("enable_short_dr_for_desktop_launchable")?(Y=!!_.J(w,_.ck),this.isInlinePlaybackState&&Y&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(w,q,Y)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(w,q,!0)))}};
_.e.updateWatchEndpointStartTime=function(){var q,Z;this.player&&((q=this.data)==null?0:q.inlinePlaybackEndpoint)&&((Z=this.data)==null?0:Z.navigationEndpoint)&&!this.JSC$13134_preventProgressSaveTimer&&(q=Math.floor(this.player.getCurrentTime()),_.J(this.data.navigationEndpoint,_.ck).startTimeSeconds=q,_.J(this.data.inlinePlaybackEndpoint,_.ck).startTimeSeconds=q)};
_.e.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.e.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.My.Object.defineProperties(QBW.prototype,{isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!((q=this.data)==null||!q.watchButton)&&!((Z=this.data)==null||!Z.adCtaButton)}}});
var qH=gq=QBW;gq.prototype.hoverChanged=gq.prototype.hoverChanged;gq.prototype.dataChanged=gq.prototype.dataChanged;
qH.JSC$13133_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"]]);
qH.JSC$13133_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"}];
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],qH.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],qH.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],qH.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.Iy.YtSparklesClickLocationBehavior),_.A("design:type",Object)],qH.prototype,"ytSparklesClickLocationBehavior",void 0);
_.X([_.U(_.QQ.YtPlayerListenerBehavior),_.A("design:type",_.EW)],qH.prototype,"ytPlayerListenerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],qH.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],qH.prototype,"isInlinePlaybackState",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],qH.prototype,"miniMode",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],qH.prototype,"uiUpdate",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],qH.prototype,"hideCta",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],qH.prototype,"noBottomMargin",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],qH.prototype,"animateInCta",void 0);_.X([_.F({computed:"computeButtonOverride(uiUpdate)"}),_.A("design:type",Object)],qH.prototype,"buttonOverride",void 0);
_.X([_.F({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.A("design:type",Object)],qH.prototype,"secondaryButtonOverride",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],qH.prototype,"isHovered",void 0);_.X([_.fo("#button-container"),_.A("design:type",HTMLElement)],qH.prototype,"buttonContainer",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qH.prototype,"dataChanged",null);
_.X([_.M("isHovered"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qH.prototype,"hoverChanged",null);_.X([_.I("data"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qH.prototype,"isButtonGroup",null);qH=gq=_.X([_.l({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],qH);
_.p(qH,"ytd-ad-inline-playback-meta-block",function(){if(nHX!==void 0)return nHX;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return nHX=q},{mode:_.NT("kevlar_poly_si_batch_j065")?1:2});var EH7;var Zn,xim=function(){var q=_.N.apply(this,arguments)||this;q.noBottomMargin=!1;q.isInlinePreviewTriggered=!1;q.JSC$13139_activeViewMeasurementDataResolver=_.Be();return q};
_.z(xim,_.N);_.e=xim.prototype;_.e.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.e.attached=function(){var q=this;this.updateInlinePreviewHoverListeners();this.JSC$13139_activeViewMeasurementDataResolver.promise.then(function(Z){q.ytdActiveViewBehavior.enableActiveViewMeasurement(Z,15)});
_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&q.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.e.detached=function(){this.clearInlinePreviewHoverListeners();_.b("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.e.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13139_inlinePreviewHoverListener=KV({mediaRenderer:this,lockupElement:this.JSC$13139_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:D6X})};
_.e.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$13139_inlinePreviewHoverListener)==null||hL(q)};
_.e.onDataChanged=function(){var q;((q=this.data)==null?0:q.activeView)&&this.JSC$13139_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Zn.JSC$13138_DEFAULT_CLICK_LOCATION_BEHAVIOR,Zn.JSC$13138_CLICK_LOCATION_ID_MAP);this.thumbnail&&(q=this.thumbnail.getElementsByTagName("a"),q.length>0&&(q=q.namedItem("thumbnail"))&&q.removeAttribute("href"));var Z;if((Z=this.data)==
null?0:Z.hasAutoplay){var w;(w=this.JSC$13139_inlinePreviewHoverListener)==null||vPD(w)}};
_.e.onThumbnailContainerClick=function(q){if(this.data&&this.data.navigationEndpoint){var Z,w=(Z=this.data)==null?void 0:Z.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(w,q,!!_.J(w,_.ck));q.stopPropagation()}};
_.e.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.e.impressionLog=function(){var q=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var Z,w,r=(w=_.J((Z=this.data)==null?void 0:Z.onImpression,_.$K))==null?void 0:w.commands;r&&(r.forEach(function(Y){Y.clickTrackingParams&&delete Y.clickTrackingParams;q.ytComponentBehavior.resolveCommand(Y)}),this.data.impressionsFired=!0)}};
_.My.Object.defineProperties(xim.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$13139_inlinePreviewHoverListener)==null?0:JO(q))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var wd=Zn=xim;Zn.prototype.onDataChanged=Zn.prototype.onDataChanged;wd.JSC$13138_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);wd.JSC$13138_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"}];_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],wd.prototype,"ytComponentBehavior",void 0);
_.X([_.U(uc),_.A("design:type",Object)],wd.prototype,"ytdActiveViewBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],wd.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],wd.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],wd.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.ay),_.A("design:type",Object)],wd.prototype,"ytdLockupBehavior",void 0);
_.X([_.U(_.LO),_.A("design:type",Object)],wd.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.Iy.YtSparklesClickLocationBehavior),_.A("design:type",Object)],wd.prototype,"ytSparklesClickLocationBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],wd.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],wd.prototype,"noBottomMargin",void 0);_.X([_.F(),_.A("design:type",Object)],wd.prototype,"isInlinePreviewTriggered",void 0);
_.X([_.F({reflectToAttribute:!0,selector:_.SZ}),_.A("design:type",Boolean)],wd.prototype,"miniMode",void 0);_.X([_.fo("ytd-thumbnail"),_.A("design:type",HTMLElement)],wd.prototype,"thumbnail",void 0);_.X([_.fo("#dismissible"),_.A("design:type",HTMLElement)],wd.prototype,"JSC$13139_dismissibleMedia",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wd.prototype,"onDataChanged",null);
_.X([_.I("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],wd.prototype,"isHovered",null);wd=Zn=_.X([_.l({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],wd);
_.p(wd,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(EH7!==void 0)return EH7;var q=document.createElement("template");_.a(q,'\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]]" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return EH7=q},{mode:1});var TR9;var rd,Uip=function(){var q=_.N.apply(this,arguments)||this;q.isInlinePreviewTriggered=!1;q.JSC$13142_activeViewMeasurementDataResolver=_.Be();return q};
_.z(Uip,_.N);_.e=Uip.prototype;_.e.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.e.attached=function(){var q=this;this.updateInlinePreviewHoverListeners();this.JSC$13142_activeViewMeasurementDataResolver.promise.then(function(Z){q.ytdActiveViewBehavior.enableActiveViewMeasurement(Z,15)})};
_.e.detached=function(){this.clearInlinePreviewHoverListeners()};
_.e.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13142_inlinePreviewHoverListener=KV({mediaRenderer:this,lockupElement:this.JSC$13142_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:D6X})};
_.e.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$13142_inlinePreviewHoverListener)==null||hL(q)};
_.e.onDataChanged=function(){var q;((q=this.data)==null?0:q.activeView)&&this.JSC$13142_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",rd.JSC$13141_DEFAULT_CLICK_LOCATION_BEHAVIOR,rd.JSC$13141_CLICK_LOCATION_ID_MAP);this.thumbnail&&(q=this.thumbnail.getElementsByTagName("a"),q.length>0&&(q=q.namedItem("thumbnail"))&&q.removeAttribute("href"))};
_.e.onThumbnailContainerClick=function(q){if(this.data&&this.data.navigationEndpoint){var Z,w=(Z=this.data)==null?void 0:Z.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(w,q,!0);q.stopPropagation()}};
_.e.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.e.impressionLog=function(){var q=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var Z,w,r=(w=_.J((Z=this.data)==null?void 0:Z.onImpression,_.$K))==null?void 0:w.commands;r&&(r.forEach(function(Y){Y.clickTrackingParams&&delete Y.clickTrackingParams;_.t().resolve(_.ps).resolveCommand(Y,{form:{element:q.hostElement}})}),this.data.impressionsFired=!0)}};
_.My.Object.defineProperties(Uip.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$13142_inlinePreviewHoverListener)==null?0:JO(q))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var YM=rd=Uip;rd.prototype.onDataChanged=rd.prototype.onDataChanged;YM.JSC$13141_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);YM.JSC$13141_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"}];_.X([_.U(uc),_.A("design:type",Object)],YM.prototype,"ytdActiveViewBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],YM.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],YM.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],YM.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.ay),_.A("design:type",Object)],YM.prototype,"ytdLockupBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],YM.prototype,"ytdReduxBehavior",void 0);
_.X([_.U(_.Iy.YtSparklesClickLocationBehavior),_.A("design:type",Object)],YM.prototype,"ytSparklesClickLocationBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],YM.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],YM.prototype,"isInlinePreviewTriggered",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.SZ}),_.A("design:type",Boolean)],YM.prototype,"miniMode",void 0);_.X([_.fo("ytd-thumbnail"),_.A("design:type",HTMLElement)],YM.prototype,"thumbnail",void 0);
_.X([_.fo("#dismissible"),_.A("design:type",HTMLElement)],YM.prototype,"JSC$13142_dismissibleMedia",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YM.prototype,"onDataChanged",null);_.X([_.I("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],YM.prototype,"isHovered",null);YM=rd=_.X([_.l({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],YM);
_.p(YM,"ytd-video-display-full-buttoned-renderer",function(){if(TR9!==void 0)return TR9;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return TR9=q},{mode:1});var ZQ=function(q,Z,w,r){r=r===void 0?!1:r;_.qj.call(this,q);this.adsClientErrorMessage=w;this.aggressivelySample=r;this.args=[];Z&&this.args.push(Z)};
_.z(ZQ,_.qj);var gp=function(q,Z,w,r){r=r===void 0?!1:r;_.qj.call(this,q);this.adsClientErrorMessage=w;this.aggressivelySample=r;this.args=[];Z&&this.args.push(Z)};
_.z(gp,_.qj);var kkp=function(q){_.u6.call(this);var Z=this;this.initializationFunction=q;this.instance=null;this.addOnDisposeCallback(function(){_.Xg(Z.instance);Z.instance=null})};
_.z(kkp,_.u6);kkp.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.mW("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var vF8=function(){var q=new Map;[].forEach(function(Z){q.set(Z.JSC$26601_getType(),Z)})};new Promise(function(){});var Wcz=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"]]),O$j=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"}]]),KsJ=function(q){this.experimentApiProvider=q;q=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=q<.1};var $M=function(q,Z,w,r){_.u6.call(this);this.adsControlFlowEventListeners=Z;this.adEventLogger=w;this.experimentApiProvider=r;this.adsControlFlowManagerHelper=q(this,this,this,this,this);_.$i(this,this.adsControlFlowManagerHelper);q=_.P(Z);for(Z=q.next();!Z.done;Z=q.next())_.$i(this,Z.value)};
_.z($M,_.u6);var sBX=function(q,Z,w,r){eD(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",Z,w,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,r);q=_.P(q.adsControlFlowEventListeners);for(r=q.next();!r.done;r=q.next())sBX(r.value,Z,w)};
_.e=$M.prototype;_.e.onOpportunityProcessedExternallyManaged=function(q,Z,w,r){eD(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",q,w,Z,void 0,void 0,void 0,void 0,void 0,void 0,void 0,r)};
_.e.onSlotReceivedExternallyManaged=function(q,Z){CM(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",q,Z)};
_.e.onSlotEntered=function(q){if(Pw(this.adsControlFlowManagerHelper,q)!=null){CM(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",q);this.adsControlFlowManagerHelper.onSlotEntered(q);for(var Z=_.P(this.adsControlFlowEventListeners),w=Z.next();!w.done;w=Z.next())w.value.onSlotEntered(q);if(Pw(this.adsControlFlowManagerHelper,q)!=null&&Pw(this.adsControlFlowManagerHelper,q).isOccupyingSlotType()&&dd(this.adsControlFlowManagerHelper,q)&&!I3W(this.adsControlFlowManagerHelper,q)){var r;VN(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",q,(r=dd(this.adsControlFlowManagerHelper,q))!=null?r:void 0);q=Pw(this.adsControlFlowManagerHelper,q);q.slotLifecycleStage!=="entered"&&O7(q.slot,q.slotLifecycleStage,"enterLayoutForSlot");q.slotLifecycleStage="rendering";q.registeredLayoutRenderingAdapter.startRendering(q.layout)}}};
_.e.onSlotExited=function(q){if(Pw(this.adsControlFlowManagerHelper,q)!=null){CM(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",q);this.adsControlFlowManagerHelper.onSlotExited(q);for(var Z=_.P(this.adsControlFlowEventListeners),w=Z.next();!w.done;w=Z.next())w.value.onSlotExited(q);Pw(this.adsControlFlowManagerHelper,q)!=null&&Pw(this.adsControlFlowManagerHelper,q).markedForUnscheduleAfterOutboundAdapterRequests&&cv7(this,q)}};
_.e.onLayoutReceivedExternallyManaged=function(q,Z,w){q.managerLayer!=="core"&&VN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",q,Z,w)};
var Mw7=function(q,Z,w){if(Pw(q.adsControlFlowManagerHelper,Z)!=null){VN(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",Z,w);q=_.P(q.adsControlFlowEventListeners);for(var r=q.next();!r.done;r=q.next())Mw7(r.value,Z,w)}};
$M.prototype.onLayoutExited=function(q,Z,w){if(Pw(this.adsControlFlowManagerHelper,q)!=null){VN(this.adEventLogger,H$9(w),q,Z);this.adsControlFlowManagerHelper.onLayoutExited(q,Z);for(var r=_.P(this.adsControlFlowEventListeners),Y=r.next();!Y.done;Y=r.next())Y.value.onLayoutExited(q,Z,w);(w=dd(this.adsControlFlowManagerHelper,q))&&Z.layoutId===w.layoutId&&Fs7(this,q)}};
$M.prototype.disposeInternal=function(){var q=NRe(this.adsControlFlowManagerHelper);q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next())cv7(this,Z.value);_.u6.prototype.disposeInternal.call(this)};
var cv7=function(q,Z){if(Pw(q.adsControlFlowManagerHelper,Z)!=null)if(Pw(q.adsControlFlowManagerHelper,Z).JSC$26632_isSlotExitRequested()||Pw(q.adsControlFlowManagerHelper,Z).JSC$26632_isLayoutExitRequested())Pw(q.adsControlFlowManagerHelper,Z).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(Pw(q.adsControlFlowManagerHelper,Z).isOccupyingSlotType())Pw(q.adsControlFlowManagerHelper,Z).markedForUnscheduleAfterOutboundAdapterRequests=!0,Fs7(q,Z);else if(Pw(q.adsControlFlowManagerHelper,Z).JSC$26632_isSlotFillRequested())Pw(q.adsControlFlowManagerHelper,
Z).markedForUnscheduleAfterOutboundAdapterRequests=!0,Pw(q.adsControlFlowManagerHelper,Z)!=null&&(CM(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",Z),Z=Pw(q.adsControlFlowManagerHelper,Z),Z.fulfillmentLifecycleStage="fill_cancel_requested",Z.registeredFulfillmentAdapter.cancelSlotFilling());else{var w=dd(q.adsControlFlowManagerHelper,Z),r;q.experimentApiProvider.get();(r=_.b("h5_enable_layout_unscheduling_events"))&&(w?l3g(q,Z,w):_.mW(Error("Ih"),Z,w,void 0,!1));CM(q.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",Z);var Y=Pw(q.adsControlFlowManagerHelper,Z),C=Z.slotEntryTrigger,d=Y.registeredSlotEntryTriggerAdapters.get(C.triggerId);d&&(d.unregisterTrigger(C),Y.registeredSlotEntryTriggerAdapters.delete(C.triggerId));C=_.P(Z.slotFulfillmentTriggers);for(d=C.next();!d.done;d=C.next()){d=d.value;var O=Y.registeredFulfillmentTriggerAdapters.get(d.triggerId);O&&(O.unregisterTrigger(d),Y.registeredFulfillmentTriggerAdapters.delete(d.triggerId))}C=_.P(Z.slotExpirationTriggers);
for(d=C.next();!d.done;d=C.next())if(d=d.value,O=Y.registeredExpirationTriggerAdapters.get(d.triggerId))O.unregisterTrigger(d),Y.registeredExpirationTriggerAdapters.delete(d.triggerId);Y.hasLayout()&&(C=Y.layout,Hw(Y,C.layoutExitNormalTriggers),Hw(Y,C.layoutExitSkipTriggers),Hw(Y,C.layoutExitMuteTriggers),Hw(Y,C.layoutExitUserInputSubmittedTriggers),Hw(Y,C.layoutExitUserCancelledTriggers));Y.registeredFulfillmentAdapter=void 0;Y.registeredSlotAdapter!=null&&(Y.registeredSlotAdapter.release(),Y.registeredSlotAdapter=
void 0);Y.registeredLayoutRenderingAdapter!=null&&(Y.registeredLayoutRenderingAdapter.release(),Y.registeredLayoutRenderingAdapter=void 0);Y=q.adsControlFlowManagerHelper;Pw(Y,Z)&&(Y=Gk7(Y,Z.slotType+"_"+Z.slotPhysicalPosition))&&Y.delete(Z.slotId);CM(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",Z);q=_.P(q.adsControlFlowEventListeners);for(Y=q.next();!Y.done;Y=q.next())Y=Y.value,Y.onSlotUnscheduled(Z),w&&!r&&l3g(Y,Z,w)}},l3g=function(q,Z,w){VN(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
Z,w);
VN(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",Z,w);q=_.P(q.adsControlFlowEventListeners);for(var r=q.next();!r.done;r=q.next())r=r.value,w&&l3g(r,Z,w)},Fs7=function(q,Z){if(Pw(q.adsControlFlowManagerHelper,Z)!=null&&Pw(q.adsControlFlowManagerHelper,Z).isOccupyingSlotType()){var w=dd(q.adsControlFlowManagerHelper,Z);
if(w&&I3W(q.adsControlFlowManagerHelper,Z)){if(Pw(q.adsControlFlowManagerHelper,Z)!=null){var r=q.adEventLogger,Y;var C=((Y=O$j.get("abandoned"))==null?void 0:Y.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";VN(r,C,Z,w);q=Pw(q.adsControlFlowManagerHelper,Z);q.slotLifecycleStage!=="rendering"&&O7(q.slot,q.slotLifecycleStage,"exitLayout");q.slotLifecycleStage="rendering_stop_requested";q.registeredLayoutRenderingAdapter.stopRendering(w,"abandoned")}}else{CM(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
Z);try{r=Pw(q.adsControlFlowManagerHelper,Z);if(!r)throw new gp("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");r.slotLifecycleStage!=="enter_requested"&&r.slotLifecycleStage!=="entered"&&r.slotLifecycleStage!=="rendering"&&O7(r.slot,r.slotLifecycleStage,"exitSlot");r.slotLifecycleStage="exit_requested";if(r.registeredSlotAdapter===void 0)throw r.slotLifecycleStage="scheduled",new gp("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
r.registeredSlotAdapter.exit()}catch(d){d instanceof gp&&d.adsClientErrorMessage?(p4K(q.adEventLogger,d.adsClientErrorMessage,Z),_.mW(d,Z,void 0,void 0,d.aggressivelySample)):(p4K(q.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",Z),_.mW(d,Z))}}}};var Ww=function(q,Z,w,r,Y,C){_.u6.call(this);this.registry=q;this.experimentApiProvider=C;this.slotMap=new Map};
_.z(Ww,_.u6);var Gk7=function(q,Z){return(q=q.slotMap.get(Z))?q:new Map},Pw=function(q,Z){return Gk7(q,Z.slotType+"_"+Z.slotPhysicalPosition).get(Z.slotId)},NRe=function(q){var Z=[];
q.slotMap.forEach(function(w){w=_.P(w.values());for(var r=w.next();!r.done;r=w.next())Z.push(r.value.slot)});
return Z};
Ww.prototype.onSlotEntered=function(q){q=Pw(this,q);q.slotLifecycleStage!=="enter_requested"&&O7(q.slot,q.slotLifecycleStage,"onSlotEntered");q.slotLifecycleStage="entered"};
var I3W=function(q,Z){q=Pw(q,Z);return q.hasLayout()&&q.isRendering()},dd=function(q,Z){(q=Pw(q,Z))?q.hasLayout()&&!q.layout&&_.mW("Unexpected empty layout",Z):_.mW("Unexpected undefined slotState",Z);
return(q==null?void 0:q.layout)||null};
Ww.prototype.onSlotExited=function(q){q=Pw(this,q);q.slotLifecycleStage!=="exit_requested"&&O7(q.slot,q.slotLifecycleStage,"onSlotExited");q.slotLifecycleStage="scheduled"};
Ww.prototype.onLayoutExited=function(q,Z){q=Pw(this,q);q.isPrimaryLayout(Z)&&(q.slotLifecycleStage!=="rendering_stop_requested"&&O7(q.slot,q.slotLifecycleStage,"onLayoutExited"),q.slotLifecycleStage="entered")};
var Hw=function(q,Z){Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next()){w=w.value;var r=q.registeredLayoutExitTriggerAdapters.get(w.triggerId);r&&(r.unregisterTrigger(w),q.registeredLayoutExitTriggerAdapters.delete(w.triggerId))}},O7=function(q,Z,w){_.mW("Slot stage was "+Z+" when calling method "+w,q)};var mie=function(q){_.u6.call(this);this.deps=q;this.JSC$13191_adsControlFlowManager=X41(this)};
_.z(mie,_.u6);var X41=function(q){var Z=new $M(function(w,r,Y,C){return new Ww(q.deps.registry,w,r,Y,C,q.deps.experimentApiProvider)},new Set(SO1(q.deps.registry).concat(q.deps.listeners)),q.deps.adEventLogger,q.deps.experimentApiProvider);
_.$i(q,Z);return Z};var AvD=function(q,Z){_.u6.call(this);this.experimentApiProvider=q;this.eventLoggingSettingsProvider=Z;this.eventCount=0};
_.z(AvD,_.u6);AvD.prototype.logEvent=function(q){eD(this,q)};
var CM=function(q,Z,w,r){eD(q,Z,void 0,void 0,void 0,w,void 0,void 0,void 0,w.adSlotLoggingData,void 0,void 0,r)},VN=function(q,Z,w,r,Y){eD(q,Z,void 0,void 0,void 0,w,r?r:void 0,void 0,void 0,w.adSlotLoggingData,r?r.adLayoutLoggingData:void 0,void 0,Y)},p4K=function(q,Z,w){eD(q,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,w,void 0,void 0,void 0,w.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:Z})},eD=function(q,Z,w,r,Y,C,d,O,H,L,S,v,R){R=R===void 0?0:R;
f3p(q.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+Z,"slot:",C,"layout:",d,"ping:",O,"Opportunity:",{opportunityType:w,associatedSlotId:r,slotsFromOpportunity:Y,triggerBundle:H,adSlotLoggingData:L,adLayoutLoggingData:S});try{var B=function(){q.experimentApiProvider.get();if(Z!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){Z||_.mW("Empty PACF event type",C,d);var n=q.eventLoggingSettingsProvider.get();var x;(x=n.alwaysIncludeDebugData)||(n.experimentApiProvider.get(),x=
!1);n=x;x={eventType:Z,eventOrder:++q.eventCount};var K={};C&&(K.slotData=uQ9(n,C));if(d){var k={type:d.layoutType,controlFlowManagerLayer:Wcz.get(d.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};n&&(k.debugData={layoutId:d.layoutId});K.layoutData=k}O&&(K.pingData={pingDispatchStatus:O.dispatchStatus,serializedAdPingMetadata:O.ping.serializedAdPingMetadata,pingIndex:O.index});H&&(K.triggerData=oF6(H.trigger,H.category));w&&(K.opportunityData=LcX(n,w,r,Y));x.adClientData=K;L&&(x.serializedSlotAdServingData=
L.serializedSlotAdServingDataEntry);S&&(x.serializedAdServingData=S.serializedAdServingDataEntry);v&&(x.errorInfo=v);_.vO("adsClientStateChange",{adsClientEvent:x})}};
R&&R>0?_.WO(_.R0(),function(){return B()},R):B()}catch(n){f3p(q.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.WO(_.R0(),function(){_.mW(n instanceof Error?n:String(n),C,d,{pacf_message:"exception during pacf logging"})})}};var DiX=function(q,Z){AvD.call(this,q,Z)};
_.z(DiX,AvD);var hwp=function(){},f3p=function(q,Z){return _.b(Z)};var iQg=function(){var q=new yvv;this.JSC$13210_adsControlFlowManager=(new mie(q)).JSC$13191_adsControlFlowManager},yvv=function(){_.u6.call(this);
var q=this;this.experimentApiProvider=new kkp(function(){return new hwp});
var Z=new kkp(function(){return new KsJ(q.experimentApiProvider)});
this.adEventLogger=new DiX(this.experimentApiProvider,Z);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.z(yvv,_.u6);var gH9=function(){},qbh,oc=function(){qbh||(qbh=new gH9);
return qbh},uD=function(q){if(!q.JSC$13221_externallyManagedSlotAdapterCallback){var Z=(new iQg).JSC$13210_adsControlFlowManager;
q.JSC$13221_externallyManagedSlotAdapterCallback=Z}return q.JSC$13221_externallyManagedSlotAdapterCallback},Z4X=function(q,Z,w){var r=Z.opportunityType,Y=Error("Jh");
if(r!==void 0){var C=uD(q);sBX(C,r,void 0,w)}else _.mW(Y,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});C=[];if(Z.adSlotAndLayoutMetadata!==void 0){Z=_.P(Z.adSlotAndLayoutMetadata);for(var d=Z.next();!d.done;d=Z.next()){var O=d.value;if(d=O.adSlotMetadata)if(C.push(d),q.onSlotReceivedExternallyManaged(d,w),O.adLayoutMetadata){O=_.P(O.adLayoutMetadata);for(var H=O.next();!H.done;H=O.next())q.onLayoutReceivedExternallyManaged(d,H.value,w)}else w>0&&_.mW("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
r,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else w>0&&_.mW("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+r,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else w>0&&_.mW("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+r,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(r!==void 0)q.onOpportunityProcessedExternallyManaged(r,C,void 0,w);else _.mW(Y,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
gH9.prototype.onSlotReceivedExternallyManaged=function(q,Z){q=ql(q);if(q instanceof gp)_.mW(q,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else uD(this).onSlotReceivedExternallyManaged(q,Z)};
gH9.prototype.onLayoutReceivedExternallyManaged=function(q,Z,w){q=ql(q);Z=jS6(Z);if(q instanceof gp)_.mW(q,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(Z instanceof ZQ)_.mW(Z,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else uD(this).onLayoutReceivedExternallyManaged(q,Z,w)};
gH9.prototype.onOpportunityProcessedExternallyManaged=function(q,Z,w,r){var Y=[];Z=_.P(Z);for(var C=Z.next();!C.done;C=Z.next())C=ql(C.value),C instanceof gp?_.mW(C,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):Y.push(C);uD(this).onOpportunityProcessedExternallyManaged(q,Y,w,r)};
var wch=function(q,Z){Z=ql(Z);if(Z instanceof gp)_.mW(Z,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var w=uD(q);CM(w.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",Z);w=_.P(w.adsControlFlowEventListeners);for(var r=w.next();!r.done;r=w.next())r=Pw(r.value,Z),r.slotLifecycleStage!=="not_scheduled"&&O7(r.slot,r.slotLifecycleStage,"onSlotScheduled"),r.slotLifecycleStage="scheduled";q=uD(q);CM(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",Z);q=_.P(q.adsControlFlowEventListeners);
for(w=q.next();!w.done;w=q.next())w.value.onSlotEntered(Z)}},rUX=function(q,Z){Z=ql(Z);
if(Z instanceof gp)_.mW(Z,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var w=uD(q);CM(w.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",Z);w=_.P(w.adsControlFlowEventListeners);for(var r=w.next();!r.done;r=w.next())r.value.onSlotExited(Z);q=uD(q);CM(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",Z);q=_.P(q.adsControlFlowEventListeners);for(w=q.next();!w.done;w=q.next())w.value.onSlotUnscheduled(Z)}},Ybg=function(q,Z,w){Z=ql(Z);
w=jS6(w);if(Z instanceof gp)_.mW(Z,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(w instanceof ZQ)_.mW(w,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var r=uD(q);VN(r.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",Z,w);r=_.P(r.adsControlFlowEventListeners);for(var Y=r.next();!Y.done;Y=r.next())Y.value.onLayoutScheduled(Z,w);q=uD(q);VN(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",Z,w);q=_.P(q.adsControlFlowEventListeners);
for(r=q.next();!r.done;r=q.next())Mw7(r.value,Z,w)}},LM=function(q,Z,w){Z=ql(Z);
w=jS6(w);if(Z instanceof gp)_.mW(Z,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(w instanceof ZQ)_.mW(w,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var r=uD(q);VN(r.adEventLogger,H$9("normal"),Z,w);r=_.P(r.adsControlFlowEventListeners);for(var Y=r.next();!Y.done;Y=r.next())Y.value.onLayoutExited(Z,w,"normal");q=uD(q);q=_.P(q.adsControlFlowEventListeners);for(r=q.next();!r.done;r=q.next())l3g(r.value,Z,w)}};_.SD=_.xl(function(q){var Z=_.n5(q,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});q=Object.assign({},Z);var w=Z.data;Z=Z.customCommandResolver;var r=(delete q.data,delete q.customCommandResolver,q),Y=_.Iw();_.MA(Y,function(){return w().interaction},Z,function(){var O;
return(O=r.listenToTapEvent)==null?void 0:O.call(r)});
_.Xu(Y,{visibilityCallback:function(O){var H,L=(H=w().interaction)==null?void 0:H.onFirstVisible;O&&(L&&_.Sp(L),r.setOnErrorHandler()&&tt2(Y))},
showOption:_.AO});q=_.P(_.qo(!1,void 0,"eiYvIe"));var C=q.next().value,d=q.next().value;q=_.fn(function(){var O;((O=r.setTouchEndHandler)==null?0:O.call(r))&&!C()&&(Y.value.click(),d(!0),setTimeout(function(){d(!1)},100));
return!1});
return _.u("ad-image-view-model",{class:function(){var O,H=[((O=w().interaction)==null?0:O.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],L;((L=r.isGridViewEnabled)==null?0:L.call(r))&&H.push("ytwAdImageViewModelHostInGridView");return H.join(" ")},
el:Y,"on:touchend":q},_.u("div",{class:"ytwAdImageViewModelHostImageContainer"},_.u(_.aQ,{data:function(){var O;return{sources:w().imageSources,contentMode:(O=w().imageProperties)==null?void 0:O.contentMode}},
alt:function(){var O,H;return((O=w().interaction)==null?void 0:(H=O.accessibility)==null?void 0:H.label)||""},
targetHeight:r.targetHeight,targetWidth:r.targetWidth,preserveHeight:r.preserveHeight,preserveWidth:r.preserveWidth,useWidth:r.useWidth,style:function(){var O,H;return"vertical-align: bottom;"+(((O=w().background)==null?0:O.color)?"background-color:"+_.oJ((H=w().background)==null?void 0:H.color)+";":"")},
className:function(){return r.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var O,H;return(H=(O=r.setDraggable)==null?void 0:O.call(r))!=null?H:void 0}})))},"Va");var $cX=_.xl(function(q){var Z=q.data,w=q.listenToTapEvent,r=_.Iw();_.b("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.MA(r,function(){return Z().interaction},void 0,function(){return w==null?void 0:w()});
_.Xu(r,{visibilityCallback:function(C){var d,O=(d=Z().interaction)==null?void 0:d.onFirstVisible;C&&O&&_.Sp(O)},
showOption:_.AO});q=_.fn(function(){if(_.b("enable_web_home_top_landscape_image_layout_legacy_click_command")){var C,d=(C=Z().interaction)==null?void 0:C.onTap;d&&_.hy(r.value,"yt-navigate",{endpoint:_.oQ(d)})}});
var Y=function(){};
return _.u("ad-button-hover-overlay-view-model",{"on:click":q,class:function(){var C;return((C=Z().interaction)==null?0:C.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:r},function(){return _.b("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.u(_.Hx,{data:function(){return Z().button}},{adButtonViewModel:function(C){return _.u(_.Du,{data:C.data,
customCommandResolver:Y})}}):_.u(_.Hx,{data:function(){return Z().button}},{adButtonViewModel:_.Du})}())},"Wa");var wn;_.xc(_.xl(function(q){var Z=q.data;var w=_.Iw();_.b("stop_av_measurement_on_detach")&&_.SG(function(){Y_(w)});
_.MA(w,function(){return Z().interaction},void 0,function(){return!0});
_.Xu(w,{visibilityCallback:function(C){if(C){var d;(C=(d=Z().interaction)==null?void 0:d.onFirstVisible)&&_.Sp(C);var O;if(d=(O=Z().adLayoutData)==null?void 0:O.activeViewData)rn(w,d),_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y_(w)})}else _.b("stop_av_measurement_on_detach")&&Y_(w)},
showOption:_.AO,hideOption:ft});q=_.P(_.qo(!1,void 0,"yzu6qe"));var r=q.next().value,Y=q.next().value;_.MU(w,"mouseenter",function(){Y(!0)});
_.MU(w,"mouseleave",function(){Y(!1)});
return _.u("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:w},_.u("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.y1({"max-width":function(){return _.b("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.u("div",{class:function(){var C;
a:{var d;switch((C=_.J(Z().thumbnailImage,PZ))==null?void 0:(d=C.imageProperties)==null?void 0:d.renderingAspect){case "RENDERING_ASPECT_SQUARE":C="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":C="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}C=void 0}return C}},_.u(_.Hx,{data:function(){return Z().thumbnailImage}},{adImageViewModel:function(C){return _.u(_.SD,
{data:C.data,
listenToTapEvent:!0,setTouchEndHandler:_.b("enable_top_landscape_image_experiment_dom_id_web")})}})),_.u("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.u(_.PF,{cond:function(){var C,d,O;
return(C=_.J(Z().thumbnailImage,PZ))==null?void 0:(d=C.imageProperties)==null?void 0:(O=d.overlayIcon)==null?void 0:O.iconImage},
then:function(C){return _.u(_.aQ,{data:C,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.u("div",{class:function(){return r()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.u(_.Hx,{data:function(){return Z().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(C){return _.u($cX,
{data:C.data,
listenToTapEvent:!0})}}))),_.u("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.u(_.Hx,{data:function(){return Z().feedAdMetadata}},{feedAdMetadataViewModel:function(C){return _.u(foK,{data:C.data,
listenToTapEvent:!0,setTouchEndHandler:_.b("enable_top_landscape_image_experiment_dom_id_web")})}})))},"Xa"),"compact-landscape-no-button-layout-view-model",{props:{data:_.zG}});_.xc(_.xl(function(q){var Z=q.data;var w=_.Iw();_.b("stop_av_measurement_on_detach")&&_.SG(function(){Y_(w)});
var r=_.ok(_.tL);_.MA(w,function(){return Z().interaction});
_.Xu(w,{visibilityCallback:function(L){if(L){var S;(L=(S=Z().interaction)==null?void 0:S.onFirstVisible)&&_.Sp(L);var v;if(S=(v=Z().adLayoutData)==null?void 0:v.activeViewData)rn(w,S),_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y_(w)})}else _.b("stop_av_measurement_on_detach")&&Y_(w)},
showOption:_.AO,hideOption:ft});var Y=_.fn(function(L){var S,v,R=(S=_.J(Z().adImage,PZ))==null?void 0:(v=S.interaction)==null?void 0:v.onTap;R&&(_.b("enable_square_image_components_ui_web_with_custom_event")?_.hy(w.value,"yt-navigate",{endpoint:_.oQ(R)}):IWT(L,R))}),C=_.fn(function(){var L,S,v=(L=_.J(Z().adButton,v2h))==null?void 0:(S=L.interaction)==null?void 0:S.onTap;
v&&_.hy(w.value,"yt-navigate",{endpoint:_.oQ(v)})}),d=function(){};
q={};var O={},H={};return _.u("square-image-layout-view-model",{class:_.GL("ytwSquareImageLayoutViewModelHost",(q.ytwSquareImageLayoutViewModelHostColumn=r,q)),el:w},_.u("div",{class:_.GL("ytwSquareImageLayoutViewModelHostImage",(O.ytwSquareImageLayoutViewModelHostColumnImage=r,O))},function(){return _.b("enable_square_image_components_ui_web_with_native_img")?_.u("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var L,S,v;return((L=_.J(Z().adImage,PZ))==null?void 0:(S=L.imageSources)==
null?void 0:(v=S[0])==null?void 0:v.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:!1,"on:click":Y}):_.u(_.Hx,{data:function(){return Z().adImage}},{adImageViewModel:function(L){return _.u(_.SD,{data:L.data,
isGridViewEnabled:r,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.u("div",{class:_.GL("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(H.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=r,H))},_.u(_.Hx,{data:function(){return Z().feedAdMetadata}},{feedAdMetadataViewModel:foK}),function(){return _.b("enable_square_image_components_ui_web_with_float_button")?_.u("div",{"on:click":C},_.u(_.Hx,{data:function(){return Z().adButton}},
{adButtonViewModel:function(L){var S={};
return _.u(_.Du,{data:L.data,customCommandResolver:d,className:_.GL((S.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,S.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=r,S))})}})):_.u(_.Hx,{data:function(){return Z().adButton}},{adButtonViewModel:function(L){var S={};
return _.u(_.Du,{data:L.data,className:_.GL((S.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,S.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=r,S))})}})}()))},"Ya"),"square-image-layout-view-model",{props:{data:_.zG}});_.xc(_.xl(function(q){var Z=q.data;var w=q.noBottomMargin;var r=_.Iw();_.b("stop_av_measurement_on_detach")&&_.SG(function(){Y_(r)});
_.b("enable_web_home_top_landscape_image_layout_level_click")&&_.MA(r,function(){return Z().interaction},void 0,function(){return!0});
q=function(){return Z().interaction};
q!==void 0&&q!==null||_.xT(Error("Kh"));_.Xu(r,{visibilityCallback:function(H){if(H){var L;(H=(L=Z().interaction)==null?void 0:L.onFirstVisible)&&_.Sp(H);var S;if(L=(S=Z().adLayoutData)==null?void 0:S.activeViewData)rn(r,L),_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y_(r)})}else _.b("stop_av_measurement_on_detach")&&Y_(r)},
showOption:_.AO,hideOption:ft});var Y=function(){var H,L,S;return(H=_.J(Z().thumbnailImage,PZ))==null?void 0:(L=H.background)==null?void 0:(S=L.backgroundImageSource)==null?void 0:S.imageSources};
q=_.P(_.qo(!1,void 0,"rWKgsf"));var C=q.next().value,d=q.next().value;_.MU(r,"mouseenter",function(){d(!0)});
_.MU(r,"mouseleave",function(){d(!1)});
var O=function(){return C()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.u("top-landscape-image-layout-view-model",{class:function(){var H;return((H=Z().interaction)==null?0:H.onTap)&&_.b("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:r},_.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.u(_.PF,{cond:function(){return Y()&&Y().length>0},
then:function(){return _.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.y1({top:"0","background-image":function(){return"url("+String(Y()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.u(_.PF,{cond:function(){return!!Z().adButtonHoverOverlay},
then:function(){return _.u("div",{class:O},_.u(_.Hx,{data:function(){return Z().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:$cX}))}}),_.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.u(_.Hx,{data:function(){return Z().thumbnailImage}},{adImageViewModel:function(H){return _.u(_.SD,{data:H.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.b("enable_web_home_top_landscape_image_layout_level_click")})}})),_.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.u(_.aQ,{data:{sources:[{clientResource:{imageName:_.b("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.u(_.Hx,{data:function(){return Z().feedAdMetadata}},{feedAdMetadataViewModel:function(H){return _.u(foK,{data:H.data,
noBottomMargin:function(){return w==null?void 0:w()},
listenToTapEvent:function(){return _.b("enable_web_home_top_landscape_image_layout_level_click")}})}})))},"Za"),"top-landscape-image-layout-view-model",{props:{data:_.zG,
noBottomMargin:_.zG}});_.xc(_.xl(function(q){var Z=q.data;var w=_.Iw();_.b("stop_av_measurement_on_detach")&&_.SG(function(){Y_(w)});
_.Xu(w,{visibilityCallback:function(r){if(r){var Y;(r=(Y=Z().interaction)==null?void 0:Y.onFirstVisible)&&_.Sp(r);var C;if(Y=(C=Z().adLayoutData)==null?void 0:C.activeViewData)rn(w,Y),_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y_(w)})}else _.b("stop_av_measurement_on_detach")&&Y_(w)},
showOption:_.AO,hideOption:ft});return _.u("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:w},_.u("div",null,_.u(_.Hx,{data:function(){return Z().videoLockup}},{lockupViewModel:function(r){return _.u(qs,{data:r.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999})}})))},"$a"),"video-display-button-group-layout-view-model",{props:{data:_.zG,
noBottomMargin:_.zG}});_.xc(_.xl(function(q){var Z=q.data;var w=_.Iw();_.b("stop_av_measurement_on_detach")&&_.SG(function(){Y_(w)});
_.Xu(w,{visibilityCallback:function(r){if(r){var Y;(r=(Y=Z().interaction)==null?void 0:Y.onFirstVisible)&&_.Sp(r);var C;if(Y=(C=Z().adLayoutData)==null?void 0:C.activeViewData)rn(w,Y),_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y_(w)})}else _.b("stop_av_measurement_on_detach")&&Y_(w)},
showOption:_.AO,hideOption:ft});return _.u("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:w},_.u("div",null,_.u(_.Hx,{data:function(){return Z().videoLockup}},{lockupViewModel:function(r){return _.u(qs,{data:r.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999})}})))},"ab"),"video-display-full-layout-view-model",{props:{data:_.zG,
noBottomMargin:_.zG}});_.ea2=_.xl(function(q){var Z=q.data;q=_.Iw();return _.u("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:q},_.u(_.PF,{cond:function(){return Z().imageBadge},
then:function(w){return _.u(_.aQ,{data:w,alt:""})}}))},"bb");var CK2=_.xl(function(q){var Z=q.data;var w=q.customCommandResolver;q=_.Iw();_.MA(q,function(){return Z().interaction},w);
_.Xu(q,{visibilityCallback:function(r){var Y,C=(Y=Z().interaction)==null?void 0:Y.onFirstVisible;r&&C&&_.Sp(C)},
showOption:_.AO});return _.u("carousel-ad-card-image-view-model",{class:function(){var r;return((r=Z().interaction)==null?0:r.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:q,"aria-label":function(){var r,Y;return(r=Z().interaction)==null?void 0:(Y=r.accessibility)==null?void 0:Y.label}},_.u(_.Hx,{data:function(){return Z().adImage}},{adImageViewModel:function(r){return _.u(_.SD,{data:r.data,
customCommandResolver:w})}}),_.u("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.u(_.Hx,{data:function(){return Z().badge}},{adCardBadgeViewModel:_.ea2})),_.u(_.YB,{model:{color:4}}))},"cb");var PKg=_.xl(function(q){var Z=_.P(_.qo(0,void 0,"o9Bzd")),w=Z.next().value;Z.next();var r=Z.next().value,Y=_.P(_.qo(!1,void 0,"KLdzYe"));Z=Y.next().value;var C=Y.next().value,d;_.SG(function(){clearTimeout(d)});
Y=_.fn(function(){var L;((L=q.animate)==null?0:L.call(q))?(C(!0),d=setTimeout(function(){C(!1);O()},200)):O();
return!1});
var O=function(){r(function(L){return(L+q.numShownItems())%q.data().length})},H={};
return _.u("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.u("div",{class:_.GL("ytwHorizontalCarouselCarouselWrapper")},_.u("div",{class:_.GL("ytwHorizontalCarouselCarouselInnerWrapper",(H.ytwHorizontalCarouselAnimating=Z,H))},_.u(_.dA,{each:q.data,keyBy:"INDEX"},function(L,S){return _.u("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.y1({"flex-basis":function(){return"calc((100% - (8px * "+(q.numShownItems()-1)+")) / "+q.numShownItems()+")"},
order:function(){var v=S-w();v<0&&(v+=q.data().length);return v}})},q.children(L,S))}))),_.u("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":Y},q.nextButton()))},"db");var dc9=_.xl(function(q){var Z=q.data;var w=q.customCommandResolver;var r=q.expansive;q=_.Iw();_.Xu(q,{visibilityCallback:function(Y){var C,d=(C=Z().interaction)==null?void 0:C.onFirstVisible;Y&&d&&_.Sp(d)},
showOption:_.AO});return _.u("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:q},_.u(PKg,{data:function(){var Y;return((Y=Z())==null?void 0:Y.carouselAdCards)||[]},
nextButton:function(){return _.u(_.Hx,{data:function(){return Z().nextButton}},{buttonViewModel:function(Y){var C=Y.data;
return _.u(_.vx,{data:function(){return(r==null?0:r())?Object.assign({},C(),{style:"mono"}):C()},
className:_.b("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(Y){return _.u(_.Hx,{data:Y},{carouselAdCardImageViewModel:function(C){return _.u(CK2,{data:C.data,customCommandResolver:w})}})}))},"eb");var Vv9=_.xl(function(q){var Z=q.data;var w=q.customCommandResolver;var r=q.className;var Y=q.buttonClassName;var C=q.animationEntityKey;var d=q.expansive;return _.u("carousel-button-view-model",{class:_.GL("ytwCarouselButtonViewModelHost",r)},_.u(_.Hx,{data:function(){return Z().carousel}},{carouselAdCardCollectionViewModel:function(O){return _.u(dc9,{data:O.data,
customCommandResolver:w,expansive:d})}}),_.u(_.Hx,{data:function(){return Z().button}},{adButtonViewModel:function(O){var H=O.data;
return _.u(_.Du,{data:function(){return(d==null?0:d())?Object.assign({},H(),{style:"AD_BUTTON_STYLE_TONAL"}):H()},
className:Y,customCommandResolver:w,animationEntityKey:C})}}))},"fb");_.O4h=_.xl(function(q){var Z=q.data;q=q.className;var w=_.Iw();_.Ls(function(){var r;((r=Z())==null?0:r.backgroundColor)&&w.value.setAttribute("data-background-color",String(Z().backgroundColor))});
return _.u("pivot-button-view-model",{el:w,class:_.GL("ytwPivotButtonViewModelHost",q)},_.u(_.w6,{command:function(){var r=Z();r=r.onClickCommand?_.oQ(r.onClickCommand):r.contentDescription?_.M9(r.contentDescription):void 0;return r},
ariaLabel:function(){return Z().contentDescription}},_.u(_.PF,{cond:function(){return Z().thumbnail},
then:function(r){return _.u(_.aQ,{data:r,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.u(_.PF,{cond:function(){return Z().icon},
then:function(r){return _.u(_.q0,{icon:function(){return r().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"gb");_.H49=_.xl(function(q){var Z=q.data;var w=q.buttonShapeOverrideables;return _.u("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.u(_.Hx,{data:function(){return Z().buttonViewModels}},{buttonViewModel:function(r){return _.u(_.vx,{data:r.data,
buttonOverrides:w})},
likeButtonViewModel:function(r){return _.u(_.$QX,{data:r.data,buttonShapeOverrideables:w})},
dislikeButtonViewModel:function(r){return _.u(_.YxW,{data:r.data,buttonShapeOverrideables:w})}}))},"hb");var WVW=_.xl(function(q){var Z=q.avatar;var w=q.headline;var r=q.badge;var Y=q.description;var C=q.expansive;q={};return _.u("yt-ad-metadata-shape",{class:_.GL("ytAdMetadataShapeHost",(q.ytAdMetadataShapeHostLarge=C,q))},_.u("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.u(_.PF,{cond:Z,then:function(d){return _.u(_.pT7,{data:function(){return(C==null?0:C())?Object.assign({},d(),{size:"AD_AVATAR_SIZE_MPLUS"}):d()}})}}),_.u("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.u(_.r6,{text:w,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.u(_.PF,{cond:r,then:function(d){return _.u(_.i_,{data:function(){return(C==null?0:C())?Object.assign({},d(),{style:"AD_BADGE_STYLE_STARK"}):d()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.u("h2",{class:"ytAdMetadataShapeHostDescription"},_.u(_.r6,{text:Y,
linkInheritColor:!0})))},"ib");var owD=_.xl(function(q){var Z=q.data;var w=q.onShow;var r=q.expansive;q=_.Iw();_.MA(q,function(){return Z().interaction});
_.Ls(function(){var C,d=(C=Z().animatedRenderingConfig)==null?void 0:C.delayedSecondsToVisible;if(d){var O=setTimeout(w,d*1E3);_.SG(function(){clearTimeout(O)})}});
var Y={};return _.u("reels-ad-card-buttoned-view-model",{class:_.GL(function(){var C;return((C=Z().interaction)==null?0:C.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(Y.ytwReelsAdCardButtonedViewModelHostExpansive=r,Y)),
el:q},_.u(WVW,{avatar:function(){return _.J(Z().avatar,Lx7)},
headline:function(){return Z().headline},
badge:function(){return _.J(Z().adBadge,STW)},
description:function(){return Z().description},
expansive:r}),_.u(_.Hx,{data:function(){return Z().ctaButton}},{adButtonViewModel:function(C){var d=C.data;
return _.u(_.Du,{data:function(){return(r==null?0:r())?Object.assign({},d(),{style:"AD_BUTTON_STYLE_FILLED"}):d()}})}}))},"jb");var uzX=_.xl(function(q){var Z=q.data;q=q.expansive;var w=_.Iw();_.b("web_ad_metadata_clickable")&&_.MA(w,function(){return Z().interaction});
var r={};r=_.XA("ytwReelsAdMetadataViewModelHost",(r.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.b("web_ad_metadata_clickable"),r));return _.u("reels-ad-metadata-view-model",{class:r,el:w},_.u(WVW,{avatar:function(){return _.J(Z().avatar,Lx7)},
headline:function(){return Z().headline},
badge:function(){return _.J(Z().adBadge,STW)},
description:function(){return Z().description},
expansive:q}))},"kb");var LV7={iconPosition:"icon-with-label",size:"L"},Sbe=_.xl(function(q){var Z=q.data;q=q.overlayDensity;var w=_.Iw(),r=_.aA(q,0);_.L7(function(){w.value.setAttribute("overlay-density",String(r()))});
var Y=function(){var v;return(v=Z().reelsAdCardButtonedEntityKey)!=null?v:""},C=function(){return Y()+"/ad_button"},d=_.g6(Ep8,Y),O=function(){var v,R;
return(R=(v=d())==null?void 0:v.value)!=null?R:!1},H=_.ok(aoO),L=function(){return Object.assign({},LV7,(H()||r()===2)&&{style:"overlay-dark"})};
q={};var S={};return _.u("reels-player-overlay-layout-view-model",{class:_.GL("ytwReelsPlayerOverlayLayoutViewModelHost",(q.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!Z().extension},q.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},q)),
el:w},_.u("div",{class:_.GL("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(S.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},S))},_.u("div",{"aria-hidden":function(){return O()},
class:_.GL("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return O()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.y1({"transition-duration":function(){return EFe(Z())}})},_.u(_.Hx,{data:function(){return Z().adMetadata}},{reelsAdMetadataViewModel:function(v){return _.u(uzX,{data:v.data,
expansive:function(){return r()===1}})}}),_.u(_.PF,{cond:function(){return Z().extension},
then:function(v){return _.u("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.u(_.Hx,{data:v},{adButtonViewModel:function(R){return _.u(_.Du,{data:R.data,animationEntityKey:C,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(R){return _.u(Vv9,{data:R.data,animationEntityKey:C,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return r()===1}})}}))}})),_.u("div",{"aria-hidden":function(){return!O()},
class:_.GL("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return O()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.y1({"transition-duration":function(){return EFe(Z())}})},_.u(_.Hx,{data:function(){return Z().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(v){return _.u(owD,{data:v.data,
onShow:function(){_.Bp(_.wp("booleanEntity",Y(),{key:Y(),value:!0}))},
expansive:function(){return r()===1}})}}))),_.u("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.u(_.Hx,{data:function(){return Z().actions}},{reelActionBarViewModel:function(v){return _.u(_.H49,{data:v.data,
buttonShapeOverrideables:L})}}),_.u(_.Hx,{data:function(){return Z().menu}},{buttonViewModel:function(v){return _.u(_.vx,{data:v.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},L(),{type:"tonal"})}})}}),_.u(_.Hx,{data:function(){return Z().pivotButton}},{pivotButtonViewModel:function(v){return _.u(_.O4h,{data:v.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"lb");_.xc(Sbe,"reels-player-overlay-layout-view-model",{props:{data:_.zG,overlayDensity:_.zG}});var vwm=function(){var q=_.N.apply(this,arguments)||this;q.noBottomMargin=!1;q.overlayDensity=0;return q};
_.z(vwm,_.N);_.e=vwm.prototype;
_.e.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]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.b("enable_short_dr_for_desktop_launchable")?
{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.e.ready=function(){var q=this;qo1(function(){q.isAttached&&y0(q.JSC$13263_storedAdSlotMetadata,q.JSC$13263_storedAdLayoutMetadata,q.adSlotMetadata,q.adLayoutMetadata)&&LM(oc(),q.JSC$13263_storedAdSlotMetadata,q.JSC$13263_storedAdLayoutMetadata)})};
_.e.attached=function(){y0(this.JSC$13263_storedAdSlotMetadata,this.JSC$13263_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Ybg(oc(),this.JSC$13263_storedAdSlotMetadata,this.JSC$13263_storedAdLayoutMetadata)};
_.e.detached=function(){y0(this.JSC$13263_storedAdSlotMetadata,this.JSC$13263_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&LM(oc(),this.JSC$13263_storedAdSlotMetadata,this.JSC$13263_storedAdLayoutMetadata)};
_.e.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13263_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13263_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13263_storedAdLayoutMetadata!==void 0&&this.JSC$13263_storedAdSlotMetadata!==void 0&&LM(oc(),this.JSC$13263_storedAdSlotMetadata,this.JSC$13263_storedAdLayoutMetadata),Ybg(oc(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13263_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13263_storedAdSlotMetadata=this.adSlotMetadata)};
_.My.Object.defineProperties(vwm.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.adLayoutMetadata}}});
var vw=vwm;vw.prototype.onAdMetadataChanged=vw.prototype.onAdMetadataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],vw.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],vw.prototype,"rendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],vw.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],vw.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],vw.prototype,"noBottomMargin",void 0);_.X([_.F(),_.A("design:type",Object)],vw.prototype,"overlayDensity",void 0);_.X([_.I("data.adLayoutMetadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],vw.prototype,"adLayoutMetadata",null);_.X([_.F(),_.A("design:type",Object)],vw.prototype,"adSlotMetadata",void 0);
_.X([_.M("adLayoutMetadata","adSlotMetadata"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vw.prototype,"onAdMetadataChanged",null);vw=_.X([_.l({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],vw);
_.p(vw,"ytd-in-feed-ad-layout-renderer",function(){if(fHJ!==void 0)return fHJ;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return fHJ=q},
{mode:_.NT("kevlar_poly_si_batch_j028")?1:2});var jU2;var tvK;var Rav=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return q};
_.z(Rav,_.N);_.e=Rav.prototype;_.e.computeHasLiveDescription=function(q){return!(q==null||!q.liveDescription)};
_.e.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.e.onYtToggleButton=function(q){var Z,w=(Z=this.data)==null?void 0:Z.videoReminderEntityKey;w&&this.ytdReduxBehavior.dispatch(_.wp("upcomingEventReminderStateEntity",w,{key:w,state:q.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.e.attached=function(){this.updateChannelBanner()};
_.e.dataChanged=function(){this.updateChannelBanner()};
_.e.videoReminderStateChanged=function(){var q;this.videoReminderState&&_.J((q=this.data)==null?void 0:q.cta,_.Rx)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.e.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var q=_.TL(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);q&&(q.startsWith("//")&&(q="https:"+q),this.hostElement.classList.add("channel-banner"),_.po(this.hostElement,{"--ytvmh-channel-banner":"url("+q+")"}))}else _.b("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.e.onPlayerReady=function(){this.onIronResize()};
_.e.maybeFlushDebouncer=function(){_.b("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(q){var Z;q=(Z=q.getElementsByTagName("yt-attributed-string"))==null?void 0:Z[0];zlz(q==null?void 0:q.polymerController)})};
_.e.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var q=_.E(this.hostElement).querySelector("#live-description"),Z;q&&((Z=this.data)==null?0:Z.shortLiveDescription)&&q.clientWidth<q.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
var jD=Rav;jD.prototype.onIronResize=jD.prototype.onIronResize;jD.prototype.videoReminderStateChanged=jD.prototype.videoReminderStateChanged;jD.prototype.dataChanged=jD.prototype.dataChanged;jD.prototype.onYtToggleButton=jD.prototype.onYtToggleButton;_.X([_.U(_.SQ),_.A("design:type",Object)],jD.prototype,"ironResizableBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],jD.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],jD.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],jD.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],jD.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],jD.prototype,"data",void 0);_.X([_.F({selectorArgs:["data.videoReminderEntityKey"],selector:Ja2}),_.A("design:type",Object)],jD.prototype,"videoReminderState",void 0);
_.X([_.F({reflectToAttribute:!0,value:_.b("web_modern_buttons")}),_.A("design:type",Boolean)],jD.prototype,"rounded",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.A("design:type",Boolean)],jD.prototype,"hasLiveDescription",void 0);_.X([_.F({reflectToAttribute:!0,value:_.b("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.A("design:type",Boolean)],jD.prototype,"resizableAdBannerSafariFix",void 0);
_.X([_.F({reflectToAttribute:!0,value:_.b("align_three_dot_menu_with_title_description")}),_.A("design:type",Boolean)],jD.prototype,"menuFix",void 0);_.X([_.D5("yt-formatted-string"),_.A("design:type",Array)],jD.prototype,"formattedStrings",void 0);_.X([_.fo("#cta-button"),_.A("design:type",HTMLElement)],jD.prototype,"ctaButton",void 0);_.X([_.m2("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],jD.prototype,"onYtToggleButton",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jD.prototype,"dataChanged",null);_.X([_.M("videoReminderState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jD.prototype,"videoReminderStateChanged",null);_.X([_.m2("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jD.prototype,"onIronResize",null);
jD=_.X([_.l({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],jD);
_.p(jD,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(tvK!==void 0)return tvK;var q=document.createElement("template");_.a(q,'\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      <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>\n  </div>\n</div>\n');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return tvK=q},{mode:1});var b49;var JUm=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};q.isLocked=!1;return q};
_.z(JUm,_.N);_.e=JUm.prototype;_.e.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.e.onExpandedChanged=function(){this.expanded&&_.i5(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.e.onMouseOver=function(){this.maybeExpand()};
_.e.onTap=function(){this.maybeExpand()};
_.e.onExpandableTileExpanding=function(q){q!==this&&(this.expanded=!1)};
_.e.onExpandableTileLockAndCollapse=function(q){this.isLocked=!0;q!==this&&(this.expanded=!1)};
_.e.onExpandableTileUnlock=function(){this.isLocked=!1};
var tw=JUm;tw.prototype.onTap=tw.prototype.onTap;tw.prototype.onMouseOver=tw.prototype.onMouseOver;tw.prototype.onExpandedChanged=tw.prototype.onExpandedChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],tw.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],tw.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],tw.prototype,"expanded",void 0);_.X([_.g3("expanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tw.prototype,"onExpandedChanged",null);_.X([_.m2("mouseover"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tw.prototype,"onMouseOver",null);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tw.prototype,"onTap",null);
tw=_.X([_.l({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],tw);
_.p(tw,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(b49!==void 0)return b49;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return b49=q},{mode:1});var zaK;var Rc,BiW=function(){var q=_.N.apply(this,arguments)||this;q.buttonOverrides={style:"overlay"};q.useYtdPlayer=_.b("use_ytd_player_for_desktop_masthead");q.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};q.playbackFinished=!1;q.JSC$13275_playerManager=null;q.JSC$13275_mastheadCounter=new z2m;return q};
_.z(BiW,_.N);_.e=BiW.prototype;_.e.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"}}}};
_.e.created=function(){this.JSC$13275_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13275_playerManager=new ZZ)};
_.e.ready=function(){var q=this;this.JSC$13275_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var Z=_.E(this.hostElement).querySelector("#player");this.useYtdPlayer?Z.style.display="none":(this.ytdPlayer.style.display="none",Jw7(this.JSC$13275_playerManager,Z,function(){q.onPlaybackEnded()}),_.E(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var w;
((w=q.data)==null?0:w.navigationEndpoint)&&_.hy(q.hostElement,"yt-navigate",{endpoint:q.data.navigationEndpoint})}))};
_.e.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13275_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.e.attached=function(){var q=this;_.SH(function(){q.maybePlayVideo()})};
_.e.maybePlayVideo=function(){var q=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$13275_playerManager.playVideo(),this.getPlayerPromise().then(function(){q.JSC$13275_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.e.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13275_playerManager.stopVideo()};
_.e.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var q,Z={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((q=this.data.playbackStartMs)!=null?q:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(Z);this.setupYtdPlayer()}else Bd9(this.JSC$13275_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(zNJ(this.JSC$13275_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.e.getPlayerPromise=function(){return this.JSC$13275_playerManager.getPlayerPromise()};
_.e.onYtToggleButton=function(q){this.useYtdPlayer?this.toggleMute(q.detail.toggled):q.detail.toggled?this.JSC$13275_playerManager.mute():this.JSC$13275_playerManager.unMute()};
_.e.onYtNavigate=function(q){var Z=nd8(q.detail.endpoint),w=Q6I(this.data.clickthroughReportingData);Z&&w&&(q.detail.endpoint.watchEndpoint?q.detail.tempData=w:_.l5(Z,w,30))};
_.e.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.e.onExpandedChanged=function(){this.expanded?(_.i5(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.e.onMouseOver=function(){this.maybeExpand()};
_.e.onTap=function(){this.maybeExpand()};
_.e.onExpandableTileExpanding=function(q){q!==this&&(this.stopVideo(),this.expanded=!1)};
_.e.onExpandableTileLockAndCollapse=function(q){q!==this&&(this.isLocked=!0,this.expanded=!1)};
_.e.onExpandableTileUnlock=function(){this.isLocked=!1};
_.e.lockAndCollapseExpandableTiles=function(){_.yY(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.e.unlockExpandableTiles=function(){_.yY(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.e.setupYtdPlayer=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1)return _.W(w,q.ytdPlayer.getPlayerPromise(),2);Z=w.yieldResult;Z.addEventListener("onStateChange",function(r){q.onPlayerStateChange(r)});
Z.addEventListener("onCueRangeExit",function(r){q.onCueRangeExit(r)});
_.ub(w)})};
_.e.onPlayerStateChange=function(q){if(q===1&&(q=this.ytdPlayer.getPlayer())){var Z=q.getCurrentTime(),w,r,Y=Z+((r=(w=this.data)==null?void 0:w.playbackDurationMs)!=null?r:0)/1E3;q.addCueRange("playback",Z,Y);this.JSC$13275_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.e.onCueRangeExit=function(q){q==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.e.toggleMute=function(q){var Z=this,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,Z.ytdPlayer.getPlayerPromise(),2);w=r.yieldResult;q?w.mute():w.unMute();_.ub(r)})};
var bD=Rc=BiW;Rc.prototype.onTap=Rc.prototype.onTap;Rc.prototype.onMouseOver=Rc.prototype.onMouseOver;Rc.prototype.onExpandedChanged=Rc.prototype.onExpandedChanged;Rc.prototype.onYtNavigate=Rc.prototype.onYtNavigate;Rc.prototype.onYtToggleButton=Rc.prototype.onYtToggleButton;Rc.prototype.dataChanged=Rc.prototype.dataChanged;bD.JSC$13274_PLAYBACK_CUE_RANGE="playback";_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],bD.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],bD.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],bD.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],bD.prototype,"expanded",void 0);_.X([_.F(),_.A("design:type",Object)],bD.prototype,"buttonOverrides",void 0);
_.X([_.F(),_.A("design:type",Object)],bD.prototype,"useYtdPlayer",void 0);_.X([_.fo("#ytd-player"),_.A("design:type",Object)],bD.prototype,"ytdPlayer",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bD.prototype,"dataChanged",null);_.X([_.m2("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],bD.prototype,"onYtToggleButton",null);
_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],bD.prototype,"onYtNavigate",null);_.X([_.g3("expanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bD.prototype,"onExpandedChanged",null);_.X([_.m2("mouseover"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bD.prototype,"onMouseOver",null);
_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bD.prototype,"onTap",null);bD=Rc=_.X([_.l({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],bD);
_.p(bD,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(zaK!==void 0)return zaK;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return zaK=q},{mode:1});var amW;var Jw=function(){return _.N.apply(this,arguments)||this};
_.z(Jw,_.N);Jw.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Jw.prototype.onShow=function(){var q=_.E(this.hostElement).querySelector("#live-description"),Z;q&&((Z=this.data)==null?0:Z.shortLiveDescription)&&q.clientWidth<q.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Jw.prototype.onYtToggleButton=function(q){var Z,w=(Z=this.data)==null?void 0:Z.videoReminderEntityKey;w&&this.ytdReduxBehavior.dispatch(_.wp("upcomingEventReminderStateEntity",w,{key:w,state:q.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Jw.prototype.videoReminderStateChanged=function(){var q;this.videoReminderState&&_.J((q=this.data)==null?void 0:q.cta,_.Rx)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
var zK=Jw;zK.prototype.videoReminderStateChanged=zK.prototype.videoReminderStateChanged;zK.prototype.onYtToggleButton=zK.prototype.onYtToggleButton;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],zK.prototype,"ytdReduxBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],zK.prototype,"data",void 0);_.X([_.F({selectorArgs:["data.videoReminderEntityKey"],selector:Ja2}),_.A("design:type",Object)],zK.prototype,"videoReminderState",void 0);_.X([_.m2("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],zK.prototype,"onYtToggleButton",null);
_.X([_.M("videoReminderState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zK.prototype,"videoReminderStateChanged",null);zK=_.X([_.l({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],zK);
_.p(zK,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(amW!==void 0)return amW;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return amW=q},{mode:_.NT("kevlar_poly_si_batch_j065")?1:2});var nwW;var Bw,QU1=function(){var q=_.N.apply(this,arguments)||this;q.useYtdPlayer=_.b("use_ytd_player_for_desktop_masthead");q.buttonOverrides={style:"overlay"};q.JSC$13283_playerManager=null;q.JSC$13283_mastheadCounter=new z2m;q.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return q};
_.z(QU1,_.N);_.e=QU1.prototype;_.e.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"}}}};
_.e.created=function(){this.JSC$13283_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13283_playerManager=new ZZ)};
_.e.ready=function(){var q=this;this.JSC$13283_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var Z;(Z=this.embeddedPlayer)==null||Z.remove()}else{var w;(w=this.ytdPlayer)==null||w.remove();Jw7(this.JSC$13283_playerManager,this.embeddedPlayer,function(){q.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){q.data&&q.data.navigationEndpoint&&_.hy(q.hostElement,"yt-navigate",{endpoint:q.data.navigationEndpoint})})}};
_.e.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13283_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.e.dataChanged=function(){var q=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var Z=!this.data.disableAutoPlayback,w,r={autoplay:Z,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((w=this.data.playbackStartMs)!=null?w:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(Z?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(r);this.setupYtdPlayer()}else Bd9(this.JSC$13283_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(zNJ(this.JSC$13283_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13283_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.yY(q.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");q.JSC$13283_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.e.getPlayerPromise=function(){return this.JSC$13283_playerManager.getPlayerPromise()};
_.e.onYtToggleButton=function(q){this.useYtdPlayer?this.toggleMute(q.detail.toggled):q.detail.toggled?this.JSC$13283_playerManager.mute():this.JSC$13283_playerManager.unMute()};
_.e.onYtNavigate=function(q){var Z=nd8(q.detail.endpoint),w=Q6I(this.data.clickthroughReportingData);Z&&w&&(q.detail.endpoint.watchEndpoint?q.detail.tempData=w:_.l5(Z,w,30))};
_.e.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13283_playerManager.stopVideo()};
_.e.setupYtdPlayer=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1)return _.W(w,q.ytdPlayer.getPlayerPromise(),2);Z=w.yieldResult;Z.addEventListener("onStateChange",function(r){q.onPlayerStateChange(r)});
Z.addEventListener("onCueRangeExit",function(r){q.onCueRangeExit(r)});
_.ub(w)})};
_.e.onPlayerStateChange=function(q){if(q===1&&(q=this.ytdPlayer.getPlayer())){var Z=q.getCurrentTime(),w,r,Y=Z+((r=(w=this.data)==null?void 0:w.playbackDurationMs)!=null?r:0)/1E3;q.addCueRange("playback",Z,Y);_.yY(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13283_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.e.onCueRangeExit=function(q){q==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.e.toggleMute=function(q){var Z=this,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,Z.ytdPlayer.getPlayerPromise(),2);w=r.yieldResult;q?w.mute():w.unMute();_.ub(r)})};
_.My.Object.defineProperties(QU1.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var q,Z;if(!((q=this.data)==null?0:(Z=q.accessibilityData)==null?0:Z.label))return"Ad primary link";var w,r;return _.dT("AD_TITLE",{title:(w=this.data)==null?void 0:(r=w.accessibilityData)==null?void 0:r.label})}}});
var ac=Bw=QU1;Bw.prototype.onYtMastheadHidden=Bw.prototype.onYtMastheadHidden;Bw.prototype.onYtNavigate=Bw.prototype.onYtNavigate;Bw.prototype.onYtToggleButton=Bw.prototype.onYtToggleButton;Bw.prototype.dataChanged=Bw.prototype.dataChanged;ac.JSC$13282_PLAYBACK_CUE_RANGE="playback";_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ac.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],ac.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ac.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],ac.prototype,"useYtdPlayer",void 0);_.X([_.fo("ytd-toggle-button-renderer"),_.A("design:type",Object)],ac.prototype,"muteButton",void 0);_.X([_.F(),_.A("design:type",Object)],ac.prototype,"buttonOverrides",void 0);
_.X([_.I("data.accessibilityData.label"),_.A("design:type",String),_.A("design:paramtypes",[])],ac.prototype,"titleAriaLabel",null);_.X([_.fo("#replay-button"),_.A("design:type",Object)],ac.prototype,"replayButton",void 0);_.X([_.fo("#player-container"),_.A("design:type",Object)],ac.prototype,"playerContainer",void 0);_.X([_.fo("#player"),_.A("design:type",Object)],ac.prototype,"embeddedPlayer",void 0);_.X([_.fo("#ytd-player"),_.A("design:type",Object)],ac.prototype,"ytdPlayer",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ac.prototype,"dataChanged",null);_.X([_.m2("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ac.prototype,"onYtToggleButton",null);_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ac.prototype,"onYtNavigate",null);
_.X([_.m2("yt-masthead-hidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ac.prototype,"onYtMastheadHidden",null);ac=Bw=_.X([_.l({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],ac);
_.p(ac,"ytd-video-masthead-ad-primary-video-renderer",function(){if(nwW!==void 0)return nwW;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return nwW=q},{mode:2});var EwJ;var xcJ=function(){var q=_.N.apply(this,arguments)||this;q.collapsed=!1;q.impressionResolver=_.Be();q.JSC$13287_activeViewMeasurementDataResolver=_.Be();q.actionMap={"yt-mute-ad-action":"handleMuteAd"};return q};
_.z(xcJ,_.N);_.e=xcJ.prototype;_.e.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"}}}};
_.e.ready=function(){var q=this;_.E(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){q.expandAd()});
this.hostElement.addEventListener("yt-action",function(Z){if(Z.detail.actionName==="yt-service-request"){var w=Z.detail.args[1];w.videoMastheadAdMuteCommand&&(q.collapseAd(w.videoMastheadAdMuteCommand.encryptedMastheadId),Z.stopPropagation())}})};
_.e.attached=function(){var q=this;_.SH(function(){q.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(Z){if(!q.collapsed){Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next())w=w.value,xY(w.baseUrl,w.attributionSrcMode);q.data.impressionCommand=void 0}});
this.JSC$13287_activeViewMeasurementDataResolver.promise.then(function(Z){q.ytdActiveViewBehavior.enableActiveViewMeasurement(Z,15)});
_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&q.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.e.dataChanged=function(){var q;((q=this.data.impressionCommand)==null?0:q.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var Z;((Z=this.data)==null?0:Z.activeView)&&this.JSC$13287_activeViewMeasurementDataResolver.resolve(this.data.activeView);(q=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(q.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.e.computeWidescreen=function(q){var Z;return!!(q&&((Z=_.J(q,ON2))==null?0:Z.isWidescreen))};
_.e.computeExpandable=function(q){return!!(q&&q.length>0)};
_.e.onIronResize=function(){if(this.expandable){var q=_.E(this.hostElement).querySelector("#expandable-tile-container :first-child");q&&!q.expanded&&(q.expanded=!0)}};
_.e.handleMuteAd=function(){this.collapseAd(null)};
_.e.restoreCollapsedState=function(q){this.collapsed=_.Hd().get("HIDDEN_MASTHEAD_ID")===q};
_.e.collapseAd=function(q){if(q){var Z=_.Hd();Z.set("HIDDEN_MASTHEAD_ID",q);Z.save()}(q=_.E(this.hostElement).querySelector("#video"))&&_.hy(q,"yt-masthead-hidden");this.collapsed=!0};
_.e.expandAd=function(){var q=_.Hd();q.set("HIDDEN_MASTHEAD_ID",!1);q.save();location.reload()};
_.e.detached=function(){_.b("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
var nM=xcJ;nM.prototype.onIronResize=nM.prototype.onIronResize;nM.prototype.dataChanged=nM.prototype.dataChanged;_.X([_.U(_.SQ),_.A("design:type",Object)],nM.prototype,"ironResizableBehavior",void 0);_.X([_.U(uc),_.A("design:type",Object)],nM.prototype,"ytdActiveViewBehavior",void 0);_.X([_.U(_.Ry),_.A("design:type",Object)],nM.prototype,"ytdGridStateAwareBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],nM.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],nM.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],nM.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.A("design:type",Boolean)],nM.prototype,"widescreen",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.A("design:type",Boolean)],nM.prototype,"expandable",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],nM.prototype,"collapsed",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nM.prototype,"dataChanged",null);
_.X([_.m2("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nM.prototype,"onIronResize",null);nM=_.X([_.l({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],nM);
_.p(nM,"ytd-video-masthead-ad-v3-renderer",function(){if(EwJ!==void 0)return EwJ;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return EwJ=q},{mode:2});var Tig=function(){return _.N.apply(this,arguments)||this};
_.z(Tig,_.N);_.e=Tig.prototype;_.e.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.e.ready=function(){var q=this;qo1(function(){q.isAttached&&y0(q.JSC$13292_storedAdSlotMetadata,q.JSC$13292_storedAdLayoutMetadata,q.adSlotMetadata,q.adLayoutMetadata)&&LM(oc(),q.JSC$13292_storedAdSlotMetadata,q.JSC$13292_storedAdLayoutMetadata)})};
_.e.attached=function(){y0(this.JSC$13292_storedAdSlotMetadata,this.JSC$13292_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Ybg(oc(),this.JSC$13292_storedAdSlotMetadata,this.JSC$13292_storedAdLayoutMetadata)};
_.e.detached=function(){y0(this.JSC$13292_storedAdSlotMetadata,this.JSC$13292_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&LM(oc(),this.JSC$13292_storedAdSlotMetadata,this.JSC$13292_storedAdLayoutMetadata)};
_.e.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13292_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13292_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13292_storedAdLayoutMetadata!==void 0&&this.JSC$13292_storedAdSlotMetadata!==void 0&&LM(oc(),this.JSC$13292_storedAdSlotMetadata,this.JSC$13292_storedAdLayoutMetadata),Ybg(oc(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13292_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13292_storedAdSlotMetadata=this.adSlotMetadata)};
_.My.Object.defineProperties(Tig.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.adLayoutMetadata}}});
var QN=Tig;QN.prototype.onAdMetadataChanged=QN.prototype.onAdMetadataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],QN.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],QN.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],QN.prototype,"data",void 0);_.X([_.I("data.adLayoutMetadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],QN.prototype,"adLayoutMetadata",null);
_.X([_.F(),_.A("design:type",Object)],QN.prototype,"adSlotMetadata",void 0);_.X([_.M("adLayoutMetadata","adSlotMetadata"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QN.prototype,"onAdMetadataChanged",null);QN=_.X([_.l({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],QN);
_.p(QN,"ytd-page-top-ad-layout-renderer",function(){if(jU2!==void 0)return jU2;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return jU2=
q},{mode:_.NT("kevlar_poly_si_batch_j070")?1:2});var UcK;var kr1=function(){var q=_.N.apply(this,arguments)||this;q.noBottomMargin=!1;q.overlayDensity=0;return q};
_.z(kr1,_.N);_.e=kr1.prototype;
_.e.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]"}},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]]"}}}}}};
_.e.ready=function(){var q=this;qo1(function(){q.isAttached&&q.adSlotMetadata&&rUX(oc(),q.adSlotMetadata)})};
_.e.attached=function(){if(this.adSlotMetadata){var q;if(this.adSlotMetadata===((q=this.data)==null?void 0:q.adSlotMetadata))wch(oc(),this.adSlotMetadata);else{var Z;_.bx(Error("Lh`"+this.adSlotMetadata+"`"+((Z=this.data)==null?void 0:Z.adSlotMetadata)))}}};
_.e.detached=function(){this.adSlotMetadata&&rUX(oc(),this.adSlotMetadata)};
_.e.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&rUX(oc(),this.adSlotMetadata),wch(oc(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.My.Object.defineProperties(kr1.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var q,Z,w=_.J((q=this.data)==null?void 0:(Z=q.fulfillmentContent)==null?void 0:Z.fulfilledLayout,_.Wx7),r;return(q=(r=_.J(w==null?void 0:w.renderingContent,HN1))==null?void 0:r.layout)?q.toLowerCase().replace(/_/g,"-"):""}}});
var E7=kr1;E7.prototype.onAdSlotMetadataChanged=E7.prototype.onAdSlotMetadataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],E7.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],E7.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],E7.prototype,"rendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],E7.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],E7.prototype,"noBottomMargin",void 0);_.X([_.F(),_.A("design:type",Object)],E7.prototype,"overlayDensity",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",String),_.A("design:paramtypes",[])],E7.prototype,"layout",null);_.X([_.M("data.adSlotMetadata"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E7.prototype,"onAdSlotMetadataChanged",null);
E7=_.X([_.l({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],E7);
_.p(E7,"ytd-ad-slot-renderer",function(){if(UcK!==void 0)return UcK;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return UcK=q},{mode:_.NT("kevlar_poly_si_batch_j077")?
1:2});var KVD;var sUv=function(){return _.N.apply(this,arguments)||this};
_.z(sUv,_.N);_.e=sUv.prototype;_.e.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"}}}};
_.e.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&YmT(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.e.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var q=_.P(this.data.impressionUrls),Z=q.next();!Z.done;Z=q.next())Z=Z.value,Hnz(Z,ocO(Z));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.e.attached=function(){var q=this;_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&q.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.e.detached=function(){_.b("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.My.Object.defineProperties(sUv.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
var xM=sUv;xM.prototype.dataChanged=xM.prototype.dataChanged;xM.prototype.onTap=xM.prototype.onTap;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],xM.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.X([_.U(uc),_.A("design:type",Object)],xM.prototype,"ytdActiveViewBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],xM.prototype,"ytdReduxBehavior",void 0);
_.X([_.F({selector:_.tL}),_.A("design:type",Object)],xM.prototype,"isGridViewEnabled",void 0);_.X([_.I("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],xM.prototype,"watchFeedBigThumbs",null);_.X([_.I("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.A("design:type",String),_.A("design:paramtypes",[])],xM.prototype,"thumbnailWidth",null);_.X([_.F(),_.A("design:type",Object)],xM.prototype,"data",void 0);
_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xM.prototype,"onTap",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xM.prototype,"dataChanged",null);xM=_.X([_.l({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],xM);
_.p(xM,"ytd-compact-promoted-video-renderer",function(){if(KVD!==void 0)return KVD;var q=document.createElement("template");_.a(q,'\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<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" 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-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return KVD=q},{mode:1});var Im7;_.He("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var cUJ=function(){return _.N.apply(this,arguments)||this};
_.z(cUJ,_.N);cUJ.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
var TK=cUJ;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],TK.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],TK.prototype,"data",void 0);TK=_.X([_.l({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],TK);
_.p(TK,"ytd-search-pyv-renderer",function(){if(Im7!==void 0)return Im7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Im7=q},{mode:1});var Mvv;_.He("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var FV2=function(){var q=_.N.apply(this,arguments)||this;q.roundedContainer=!0;q.JSC$13308_handleOpenPostCommentDialogActionAfterStamp=!1;q.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return q};
_.z(FV2,_.N);_.e=FV2.prototype;
_.e.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}}};
_.e.onStampFinished=function(){this.JSC$13308_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.e.handleSignalActionOpenPostCommentDialogAction=function(){var q=_.E(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");q?q.openDialog():this.JSC$13308_handleOpenPostCommentDialogActionAfterStamp=!0};
_.e.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.e.computeHideBorder=function(){return this.isInEngagementPanel};
_.e.computeIsCompact=function(){return this.isInEngagementPanel};
_.e.computeUsesCompactLockup=function(q){return q==="BACKSTAGE_SURFACE_TYPE_HOME"||q==="BACKSTAGE_SURFACE_TYPE_SEARCH"||q==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||q==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||q==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||q==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.e.computeUsesFullLockup=function(){var q,Z=(q=this.data)==null?void 0:q.post,w;q=(w=_.J(Z,Jq1))==null?void 0:w.surface;var r;w=(r=_.J(Z,B_h))==null?void 0:r.originalPost;var Y;if(r=q||((Y=_.J(w,Jq1))==null?void 0:Y.surface))return!this.computeUsesCompactLockup(r)&&this.useUpdatedRepostUi;var C;return((C=_.J(Z,B_h))==null?void 0:C.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.My.Object.defineProperties(FV2.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((Z=_.J((q=this.data)==null?void 0:q.post,Jq1))==null?void 0:Z.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.useUpdatedRepostUi}}});
var U7=FV2;U7.prototype.onYtCommentModerationPanelEmpty=U7.prototype.onYtCommentModerationPanelEmpty;U7.prototype.onStampFinished=U7.prototype.onStampFinished;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],U7.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],U7.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],U7.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],U7.prototype,"roundedContainer",void 0);_.X([_.F({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.A("design:type",Boolean)],U7.prototype,"hideBorder",void 0);_.X([_.F({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.A("design:type",Boolean)],U7.prototype,"isCompact",void 0);
_.X([_.F({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.A("design:type",Boolean)],U7.prototype,"usesFullLockup",void 0);_.X([_.m2("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],U7.prototype,"onStampFinished",null);
_.X([_.m2("ytd-comment-moderation-panel-empty"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],U7.prototype,"onYtCommentModerationPanelEmpty",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],U7.prototype,"isInEngagementPanel",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],U7.prototype,"useUpdatedRepostUi",null);
U7=_.X([_.l({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],U7);
_.p(U7,"ytd-backstage-post-thread-renderer",function(){if(Mvv!==void 0)return Mvv;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Mvv=q},{mode:1});var Niv;var kM=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.z(kM,_.N);kM.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
kM.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var q=this.data.thumbnail.thumbnails;this.isDarkTheme&&(q=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(q=_.TL(q,24,void 0,"height"))?q:void 0}};
kM.prototype.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
kM.prototype.computeHasText=function(){var q;return!((q=this.data)==null||!q.text)};
_.My.Object.defineProperties(kM.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.EX(this.bannerImageUrl))+'");'}}});
var KM=kM;KM.prototype.computeHasText=KM.prototype.computeHasText;KM.prototype.computeBannerImageUrl=KM.prototype.computeBannerImageUrl;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],KM.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],KM.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],KM.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],KM.prototype,"isDarkTheme",void 0);_.X([_.F(),_.A("design:type",String)],KM.prototype,"bannerImageUrl",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.A("design:type",Boolean)],KM.prototype,"hasText",void 0);_.X([_.M("data","isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],KM.prototype,"computeBannerImageUrl",null);
_.X([_.M("data.text"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],KM.prototype,"computeHasText",null);_.X([_.I("bannerImageUrl"),_.A("design:type",Object),_.A("design:paramtypes",[])],KM.prototype,"bannerStyle",null);KM=_.X([_.l({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],KM);
_.p(KM,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(Niv!==void 0)return Niv;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Niv=q},{mode:1});var lm2;var Gre=function(){return _.N.apply(this,arguments)||this};
_.z(Gre,_.N);var s7=Gre;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],s7.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],s7.prototype,"data",void 0);s7=_.X([_.l({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],s7);
_.p(s7,"ytd-backstage-zero-state-renderer",function(){if(lm2!==void 0)return lm2;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return lm2=q},{mode:1});var pcW;var Xcm=function(){return _.N.apply(this,arguments)||this};
_.z(Xcm,_.N);var Ic=Xcm;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ic.prototype,"data",void 0);_.X([_.F({computed:"computeIcon_(data.icon)"}),_.A("design:type",String)],Ic.prototype,"icon",void 0);Ic=_.X([_.l({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],Ic);
_.p(Ic,"ytd-post-filter-zero-state-renderer",function(){if(pcW!==void 0)return pcW;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return pcW=q},{mode:1});var mcW;var AUg={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},fmX=function(){return _.N.apply(this,arguments)||this};
_.z(fmX,_.N);fmX.prototype.configureRendererStamper=function(){return AUg};
var cw=fmX;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],cw.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],cw.prototype,"rendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],cw.prototype,"data",void 0);_.X([_.F({computed:"computeIcon_(data.icon)"}),_.A("design:type",String)],cw.prototype,"icon",void 0);cw=_.X([_.l({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],cw);
_.p(cw,"ytd-post-scheduling-zero-state-renderer",function(){if(mcW!==void 0)return mcW;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return mcW=q},{mode:1});var Dce;var MH=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return q};
_.z(MH,_.N);MH.prototype.onTabsActivate=function(q){this.data&&this.data.tabs&&_.hy(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[q.detail.selected].navigationEndpoint})};
MH.prototype.shouldShowTotalCount=function(q){return q&&q.totalCount!==void 0};
MH.prototype.handleUpdatePostsTotalCountAction=function(q){var Z=this.get(["data.tabs",1,"totalCount"]),w=this.get("updatePostsTotalCountAction.updateType",q);q=this.get("updatePostsTotalCountAction.number",q);Z!==void 0&&w!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&q&&(w==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(Z)+q):w==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(Z)-q))};
_.My.Object.defineProperties(MH.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var q=0,Z=this.data.tabs.length;q<Z;q++)if(this.data.tabs[q].selected)return q;return 0}}});
var FZ=MH;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],FZ.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],FZ.prototype,"rendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],FZ.prototype,"data",void 0);_.X([_.I("data.tabs"),_.A("design:type",Number),_.A("design:paramtypes",[])],FZ.prototype,"selected",null);FZ=_.X([_.l({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],FZ);
_.p(FZ,"ytd-post-stream-filter-renderer",function(){if(Dce!==void 0)return Dce;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Dce=q},{mode:1});var hap;var yUJ=function(){return _.N.apply(this,arguments)||this};
_.z(yUJ,_.N);var NH=yUJ;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],NH.prototype,"kevlarBehaviors",void 0);_.X([_.F(),_.A("design:type",Object)],NH.prototype,"data",void 0);NH=_.X([_.l({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],NH);
_.p(NH,"ytd-channel-age-gate-renderer",function(){if(hap!==void 0)return hap;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return hap=q},{mode:1});var i42;_.He("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var gw2=function(){var q=_.N.apply(this,arguments)||this;q.data=null;return q};
_.z(gw2,_.N);gw2.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.My.Object.defineProperties(gw2.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return((q=this.data)==null?0:(Z=q.title)==null?0:(w=Z.runs)==null?0:w.length)?147:160}}});
var lD=gw2;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],lD.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],lD.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],lD.prototype,"imageSizePx",null);lD=_.X([_.l({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],lD);
_.p(lD,"ytd-channel-owner-empty-state-renderer",function(){if(i42!==void 0)return i42;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return i42=q},{mode:1});var qe7;var Zgm;var wKD=function(){var q=_.N.apply(this,arguments)||this;q.boundSubmitSearch=function(){q.submitSearch()};
q.boundClearSearch=function(){q.clearSearch()};
return q};
_.z(wKD,_.N);_.e=wKD.prototype;_.e.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]]"}}}}}};
_.e.toggleClearButton=function(){this.hideClearButton=aP2||!this.input.value};
_.e.submitOnEnterKeyUp=function(q){q.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.e.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.e.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.e.submit=function(){_.hy(this.hostElement,"search-query-changed",this.input.value)};
var GK=wKD;GK.prototype.toggleClearButton=GK.prototype.toggleClearButton;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],GK.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],GK.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],GK.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],GK.prototype,"hideClearButton",void 0);_.X([_.F(),_.A("design:type",Object)],GK.prototype,"boundSubmitSearch",void 0);_.X([_.F(),_.A("design:type",Object)],GK.prototype,"boundClearSearch",void 0);_.X([_.fo("#input"),_.A("design:type",Object)],GK.prototype,"input",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GK.prototype,"toggleClearButton",null);
GK=_.X([_.l({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],GK);
_.p(GK,"ytd-channel-switcher-search-box-renderer",function(){if(Zgm!==void 0)return Zgm;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Zgm=q},{mode:1});var r89;var YeK=function(){var q=_.N.apply(this,arguments)||this;q.boundSubmit=function(){q.submit()};
return q};
_.z(YeK,_.N);_.e=YeK.prototype;_.e.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"}}}}};
_.e.ready=function(){var q=this;this.form.addEventListener("submit",function(Z){return q.onSubmit(Z)})};
_.e.onSubmit=function(q){q.preventDefault();return!1};
_.e.toggleClearButton=function(){this.hideClearButton=aP2||!this.input.value};
_.e.submitOnEnterKeyUp=function(q){q.keyCode===13&&this.submit()};
_.e.submit=function(){var q=this.data.endpoint,Z=(0,_.R4.unsafeClone)(q);_.J(Z,_.qZ)?_.J(Z,_.qZ).query=this.input.value:_.J(Z,_.Z5)&&(_.J(Z,_.Z5).query=this.input.value);var w=_.J(Z.commandMetadata,_.XK);(w==null?0:w.url)?(w.url=_.nb(w.url,"query",this.input.value),_.hy(this.hostElement,"yt-navigate",{endpoint:Z})):_.J(Z,$CK)?(_.J(Z,$CK).channelSwitcherQuery=this.input.value,_.t().resolve(_.ps).resolveCommand(Z,{form:{element:this.hostElement}})):(q=Error("Mh`"+JSON.stringify(q)),_.tY(q))};
_.e.getUrl=function(q){return this.get("commandMetadata.webCommandMetadata.url",q)};
var pM=YeK;pM.prototype.toggleClearButton=pM.prototype.toggleClearButton;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],pM.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],pM.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],pM.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],pM.prototype,"hideClearButton",void 0);
_.X([_.F(),_.A("design:type",Object)],pM.prototype,"boundSubmit",void 0);_.X([_.fo("#form"),_.A("design:type",HTMLFormElement)],pM.prototype,"form",void 0);_.X([_.fo("#input"),_.A("design:type",Object)],pM.prototype,"input",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pM.prototype,"toggleClearButton",null);pM=_.X([_.l({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],pM);
_.p(pM,"ytd-search-box-renderer",function(){if(r89!==void 0)return r89;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return r89=q},{mode:2});var $E9=function(){var q=_.N.apply(this,arguments)||this;q.showSearchBox=!0;return q};
_.z($E9,_.N);$E9.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
var XZ=$E9;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],XZ.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],XZ.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],XZ.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],XZ.prototype,"showSearchBox",void 0);XZ=_.X([_.l({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],XZ);
_.p(XZ,"ytd-channel-switcher-header-renderer",function(){if(qe7!==void 0)return qe7;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return qe7=q},{mode:1});var eqe;var CAJ;var PAm=function(){var q=_.N.apply(this,arguments)||this;q.isDisplayed=!0;return q};
_.z(PAm,_.N);_.e=PAm.prototype;_.e.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e.dataChanged=function(){this.isDisplayed=!0};
_.e.computeType=function(q){return q||"UNKNOWN"};
_.e.onYtServiceRequestCompleted=function(q){q.stopPropagation();this.isDisplayed=!1};
_.e.onClose=function(){this.isDisplayed=!1};
var mX=PAm;mX.prototype.onYtServiceRequestCompleted=mX.prototype.onYtServiceRequestCompleted;mX.prototype.dataChanged=mX.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],mX.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],mX.prototype,"data",void 0);
_.X([_.F({computed:"computeType(data.type)",reflectToAttribute:!0}),_.A("design:type",String)],mX.prototype,"type",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],mX.prototype,"isDisplayed",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mX.prototype,"dataChanged",null);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],mX.prototype,"onYtServiceRequestCompleted",null);mX=_.X([_.l({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],mX);
_.p(mX,"ytd-alert-with-button-renderer",function(){if(CAJ!==void 0)return CAJ;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return CAJ=q},{mode:1});var dEg=function(){var q=_.N.apply(this,arguments)||this;q.noResult=!1;q.enableAlertBanner=!1;q.dismissedAlertBanner=!1;q.hideCreateChannelButton=!1;q.boundDismissAlertBanner=function(){q.dismissAlertBanner()};
q.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return q};
_.z(dEg,_.N);_.e=dEg.prototype;_.e.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.e.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.e.updateChannelSwitcherAction=function(q){var Z;q=(Z=_.J(q,c37))==null?void 0:Z.page;_.J(q,Ige)!==void 0&&(this.data=_.J(q,Ige))};
_.e.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]]"}}}}}};
_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.e.searchQueryChanged=function(q,Z){if(this.data&&this.data.contents&&this.data.contents.length){q=[];var w=[];this.hideCreateChannelButton=this.noResult=!1;for(var r=document.querySelectorAll("ytd-account-item-renderer"),Y=_.P(r),C=Y.next();!C.done;C=Y.next())C=C.value,w.push(C),C.style.display="block";this.resetRightBorder(w);if(Z){this.hideCreateChannelButton=!0;for(w=1;w<this.data.contents.length;w++)if(C=this.data.contents[w],_.J(C,wD7)){var d=void 0,O=void 0;Y=(d=_.J(C,wD7))==null?void 0:(O=
d.accountName)==null?void 0:O.simpleText;O=d=void 0;C=(d=_.J(C,wD7))==null?void 0:(O=d.channelHandle)==null?void 0:O.simpleText;(d=r[w-1])&&Y&&_.LX(Y,Z)?q.push(d):_.b("enable_handle_search_on_channel_switcher")&&d&&C&&_.LX(C.toString(),Z.toString())?q.push(d):d.style.display="none"}q.length===0&&(this.noResult=!0);this.resetRightBorder(q)}}};
_.e.resetRightBorder=function(q){for(var Z=0;Z<q.length;Z++)q[Z].style.borderRight=!this.hideCreateChannelButton&&(Z+2)%3===0||this.hideCreateChannelButton&&(Z+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.e.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.e.setShowSearchBox=function(q){if(q&&q.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var Z=0;Z<q.contents.length;Z++)_.J(q.contents[Z],_.i2)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.e.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.My.Object.defineProperties(dEg.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null?0:q.contents)}}});
var Aw=dEg;Aw.prototype.onContinuationItemsUpdated=Aw.prototype.onContinuationItemsUpdated;Aw.prototype.searchQueryChanged=Aw.prototype.searchQueryChanged;Aw.prototype.onDataChanged=Aw.prototype.onDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Aw.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Aw.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Aw.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.Ms),_.A("design:type",Object)],Aw.prototype,"ytContinuationHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Aw.prototype,"data",void 0);_.X([_.fo("ytd-channel-switcher-header-renderer"),_.A("design:type",Object)],Aw.prototype,"channelSwitcherHeaderRenderer",void 0);_.X([_.F(),_.A("design:type",Object)],Aw.prototype,"noResult",void 0);
_.X([_.F(),_.A("design:type",Object)],Aw.prototype,"enableAlertBanner",void 0);_.X([_.F(),_.A("design:type",Object)],Aw.prototype,"dismissedAlertBanner",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Aw.prototype,"hideCreateChannelButton",void 0);_.X([_.I("data.contents"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Aw.prototype,"isLoading",null);_.X([_.F(),_.A("design:type",Object)],Aw.prototype,"boundDismissAlertBanner",void 0);
_.X([_.F({computed:"computeButtonOverride()"}),_.A("design:type",Object)],Aw.prototype,"buttonOverride",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Aw.prototype,"onDataChanged",null);_.X([_.m2("search-query-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,String]),_.A("design:returntype")],Aw.prototype,"searchQueryChanged",null);
_.X([_.m2("yt-next-continuation-data-updated"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Aw.prototype,"onContinuationItemsUpdated",null);Aw=_.X([_.l({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Aw);
_.p(Aw,"ytd-channel-switcher-page-renderer",function(){if(eqe!==void 0)return eqe;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return eqe=q},{mode:1});var VS7;var Ogg;var Hg1=function(){var q=_.N.apply(this,arguments)||this;q.images=[];q.selectedImageIndex=0;return q};
_.z(Hg1,_.N);_.e=Hg1.prototype;
_.e.ready=function(){_.Yc(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Yc(this.JSC$13353_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Yc(this.JSC$13353_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Yc(this.JSC$13353_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.e.onThumbnailClick=function(q){if(q=q.event_.detail)this.selectedImageIndex=this.images.indexOf(q)};
_.e.updateImageThumbnails=function(q){q=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:q.event_.detail});this.images.splice(this.selectedImageIndex,1,q);this.images=[].concat(_.Ju(this.images))};
_.e.cancelImageRepositions=function(){this.selectedImageIndex=0;_.hy(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.e.saveImageRepositions=function(){this.selectedImageIndex=0;_.hy(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.My.Object.defineProperties(Hg1.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var q=this;return(this.images||[]).map(function(Z,w){return{image:Z,selected:w===q.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
var fM=Hg1;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],fM.prototype,"ytRendererstamperBehavior",void 0);_.X([_.fo("ytd-backstage-image-preview-renderer"),_.A("design:type",Object)],fM.prototype,"JSC$13353_imagePreviewContainer",void 0);_.X([_.fo(".thumbnail-images-container"),_.A("design:type",HTMLElement)],fM.prototype,"thumbnailImagesContainer",void 0);_.X([_.F(),_.A("design:type",Array)],fM.prototype,"images",void 0);
_.X([_.F(),_.A("design:type",Object)],fM.prototype,"repositionInstructions",void 0);_.X([_.F(),_.A("design:type",Object)],fM.prototype,"selectedImageIndex",void 0);_.X([_.I("images","selectedImageIndex"),_.A("design:type",Array),_.A("design:paramtypes",[])],fM.prototype,"thumbnailRendererDatas",null);_.X([_.I("images","selectedImageIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],fM.prototype,"selectedImageData",null);
fM=_.X([_.l({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],fM);
_.p(fM,"ytd-backstage-multi-image-reposition-renderer",function(){if(Ogg!==void 0)return Ogg;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Ogg=q},{mode:1});var Dn=function(q,Z){_.V8.call(this);this.uploadUrl=q;this.channelId=Z;this.imagesUploadData=[]};
_.z(Dn,_.V8);Dn.prototype.getAllUploadStatuses=function(){var q=this,Z,w,r;return _.V(function(Y){if(Y.nextAddress==1)return _.W(Y,W_h(q),2);Z=Y.yieldResult;w=Z.get("succeed");r=Z.get("failed");return Y.return(w.concat(r))})};
var uch=function(q){var Z,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,W_h(q),2);Z=r.yieldResult;w=Z.get("failed");w.length>0&&omm(q,w);return r.return(q.getAllUploadStatuses())})},W_h=function(q){var Z,w,r,Y,C,d,O;
return _.V(function(H){if(H.nextAddress==1)return Z=new Map,_.W(H,Promise.allSettled(q.imagesUploadData.map(function(L){return L.uploadPromise})),2);
w=H.yieldResult;r=[];Y=_.P(w);for(C=Y.next();!C.done;C=Y.next())d=C.value,d.status==="fulfilled"&&r.push(d.value);O=q.imagesUploadData.map(function(L){return L.image}).filter(function(L){return r.every(function(S){return S.id!==L.id})});
Z.set("succeed",r);Z.set("failed",O);return H.return(Z)})},omm=function(q,Z){Z=_.P(Z);
for(var w=Z.next();!w.done;w=Z.next()){var r=q;w=w.value;L_7(r,w.id)>=0&&r.cancel(w.id);var Y=new See(w),C=_.pr2(r.uploadUrl,{"X-YouTube-ChannelId":r.channelId},w.imageBlob);Y.transfer=C;Y.uploadPromise=vmK(C,w);r.imagesUploadData.push(Y);C.run()}};
Dn.prototype.cancel=function(q){var Z=L_7(this,q);Z!==-1&&((Z=this.imagesUploadData[Z].transfer)&&Z.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(w){return w.image.id!==q}))};
var L_7=function(q,Z){return q.imagesUploadData.findIndex(function(w){return w.image.id===Z})},vmK=function(q,Z){return new Promise(function(w,r){q.listen("l",function(){var Y=q.getResponseText();
Y?(Y=JSON.parse(Y).encryptedBlobId,Z.encryptedBlobId=Y,w(Z)):r("upload failed")});
q.listen("n",function(){r("upload failed")})})},See=function(q){this.image=q};var xzz=function(q,Z,w,r,Y){this.id=q;this.imageBlob=Z;this.localImageSrc=w;this.naturalWidth=r;this.naturalHeight=Y;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 jC7=[".jpeg",".jpg",".png"],tSg=function(){var q=_.N.apply(this,arguments)||this;q.showImagesPreview=!1;q.pollOptions=[];q.errorMessage="";q.optionPlaceholderText="";q.optionDefaultText="";q.JSC$13364_imageId=0;q.maxFileSizeMb=0;q.maxAspectRatio=0;q.invalidFileSizeError="";q.invalidAspectRatioError="";q.invalidFileTypeError="";q.imageSelector=new gl(null,"single_file",jC7);return q};
_.z(tSg,_.N);_.e=tSg.prototype;_.e.ready=function(){_.Yc(this.imageSelector,"j",this.onImageSelect,!1,this);_.Yc(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Yc(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.e.dataChanged=function(){var q,Z,w=_.J((q=this.data)==null?void 0:(Z=q.cellTemplate)==null?void 0:Z.onEmptyCellTap,Kbp);if(w&&w.uploadUrl&&w.channelId){var r;this.maxFileSizeMb=((r=w.imageValidationInfo)==null?void 0:r.maxFileSizeMb)||0;var Y;this.maxAspectRatio=((Y=w.imageValidationInfo)==null?void 0:Y.allowedMaxAspectRatio)||0;var C;this.invalidFileSizeError=this.getSimpleString((C=this.data)==null?void 0:C.invalidFileSizeError);var d;this.invalidAspectRatioError=this.getSimpleString((d=this.data)==
null?void 0:d.invalidAspectRatioError);var O;this.invalidFileTypeError=this.getSimpleString((O=this.data)==null?void 0:O.invalidFileTypeError);this.uploadManager=new Dn(w.uploadUrl,w.channelId)}};
_.e.onEditorInfoChange=function(){this.optionPlaceholderText=_.kO(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.kO(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.e.observeAddImageError=function(){this.errorMessage!==""&&_.hy(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.e.onPollOptionsChange=function(){for(var q=!1,Z=[],w=0;w<this.pollOptions.length;w++){var r=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(w+1);this.pollOptions[w].placeholderText!==r?(q=!0,Z.push(Object.assign({},this.pollOptions[w],{placeholderText:r}))):Z.push(this.pollOptions[w])}q&&(this.pollOptions=Z);this.isValid()?_.hy(this.hostElement,"yt-commentbox-post-enable"):_.hy(this.hostElement,"yt-commentbox-post-disable")};
_.e.createPollOptions=function(q){var Z=[],w;q=(w=q==null?void 0:q.minPollOptions)!=null?w:0;for(w=0;w<q;w++)Z.push(this.createPollOption());return Z};
_.e.onImageSelect=function(q){var Z=this,w,r,Y,C,d,O;return _.V(function(H){if(H.nextAddress==1){if(Z.selectedImageIndex===void 0)return H.jumpTo(0);w=q.files[0];Z.errorMessage="";r=Z.validateImage(w);if(r!=="")return Z.errorMessage=r,H.return();Y=new x5(Z.maxAspectRatio,!1,!0);return _.W(H,Y.transform(w),3)}if(H.nextAddress!=4)return C=H.yieldResult,C.transformedData?C.invalidAspectRatio?(Z.errorMessage=Z.invalidAspectRatioError,H.return()):_.W(H,TvN(Z.JSC$13364_imageId,q.files[0],C.transformedData),
4):(Z.errorMessage=Z.invalidFileTypeError,H.return());d=H.yieldResult;Z.JSC$13364_imageId++;omm(Z.uploadManager,[d]);O=Object.assign({},Z.pollOptions[Z.selectedImageIndex],{image:d});Z.pollOptions.splice(Z.selectedImageIndex,1,O);Z.refreshPollOptions();_.hy(Z.hostElement,"yt-backstage-poll-image-select");_.ub(H)})};
_.e.validateImage=function(q){return q.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.e.refreshPollOptions=function(){this.pollOptions=[].concat(_.Ju(this.pollOptions))};
_.e.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.Ju(this.pollOptions),[this.createPollOption()]))};
_.e.onRemovePollOption=function(q){var Z=this.pollOptions[q.model.index];Z&&Z.image&&this.uploadManager.cancel(Z.image.id);this.pollOptions.splice(q.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.hy(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.e.onTextInput=function(){this.refreshPollOptions()};
_.e.onImageButtonClick=function(q){this.selectedImageIndex=q.model.index;this.imageSelector.click()};
_.e.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.e.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.e.saveImageRepositions=function(q){q=q.event_.detail;for(var Z=0,w=[],r=_.P(this.pollOptions),Y=r.next();!Y.done;Y=r.next())Y=Y.value,Y.image!==void 0?(Y=Object.assign({},Y,{image:q[Z]}),w.push(Y),Z++):w.push(Y);this.showImagesPreview=!1;this.pollOptions=[].concat(_.Ju(w))};
_.e.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 q=0,Z=_.P(this.pollOptions),w=Z.next();!w.done;w=Z.next())if(w=w.value,w.optionText.trim()!==""||w.image!==void 0){if(!w.image||this.hasCustomOptionText&&w.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;q++}return q>=Number(this.editorInfo.minPollOptions)};
_.e.getAllUploadStatuses=function(){var q=this,Z,w,r,Y;return _.V(function(C){if(C.nextAddress==1)return _.W(C,q.uploadManager.getAllUploadStatuses(),2);Z=C.yieldResult;w=_.P(Z);for(r=w.next();!r.done;r=w.next())if(Y=r.value,Y.encryptedBlobId===void 0)return C.return(uch(q.uploadManager));return C.return(Z)})};
_.e.getPostCreateOptions=function(){for(var q=[],Z=_.P(this.pollOptions),w=Z.next();!w.done;w=Z.next())w=w.value,w.image!==void 0&&q.push({text:this.hasCustomOptionText?w.optionText:w.placeholderText,image:w.image});return q};
_.e.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.e.createButtonRenderer=function(q,Z){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:q,accessibilityData:{accessibilityData:{label:this.getSimpleString(q)}},isDisabled:Z}};
_.e.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.e.computeThumbnailRendererData=function(q){return q?{image:q,selected:!1}:void 0};
_.e.getSimpleString=function(q){return _.kO(q)};
_.e.updateOptionTextFromBinding=function(q){if(q.target){var Z=Array.from(_.E(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(q.target);if(Z>=0){var w;this.pollOptions[Z].optionText=(w=q.detail.value)!=null?w:""}}};
_.My.Object.defineProperties(tSg.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var q,Z;return this.pollOptions.length<((Z=(q=this.editorInfo)==null?void 0:q.maxPollOptions)!=null?Z:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(q){return q.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(q){return q.image}).map(function(q){return q.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(q){return q.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var q,Z=(q=this.data)==null?void 0:q.addOptionButtonText;return Z?this.createButtonRenderer(Z,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var q,Z=(q=this.data)==null?void 0:q.repositionImagesButtonLabel;return Z?this.createButtonRenderer(Z,!this.hasImages):void 0}}});
var hw=tSg;hw.prototype.onPollOptionsChange=hw.prototype.onPollOptionsChange;hw.prototype.observeAddImageError=hw.prototype.observeAddImageError;hw.prototype.onEditorInfoChange=hw.prototype.onEditorInfoChange;hw.prototype.dataChanged=hw.prototype.dataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],hw.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.fo("ytd-backstage-multi-image-reposition-renderer"),_.A("design:type",Object)],hw.prototype,"imageRepositionContainer",void 0);_.X([_.F(),_.A("design:type",Object)],hw.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],hw.prototype,"editorInfo",void 0);_.X([_.F(),_.A("design:type",Dn)],hw.prototype,"uploadManager",void 0);_.X([_.F(),_.A("design:type",Object)],hw.prototype,"showImagesPreview",void 0);_.X([_.F(),_.A("design:type",Array)],hw.prototype,"pollOptions",void 0);
_.X([_.F(),_.A("design:type",Object)],hw.prototype,"errorMessage",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hw.prototype,"dataChanged",null);_.X([_.g3("editorInfo"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hw.prototype,"onEditorInfoChange",null);_.X([_.M("errorMessage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hw.prototype,"observeAddImageError",null);
_.X([_.g3("pollOptions"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hw.prototype,"onPollOptionsChange",null);_.X([_.I("pollOptions","editorInfo"),_.A("design:type",Object),_.A("design:paramtypes",[])],hw.prototype,"isAllowedToAddOption",null);_.X([_.I("pollOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],hw.prototype,"hasImages",null);
_.X([_.I("pollOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],hw.prototype,"imagesToReposition",null);_.X([_.I("pollOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],hw.prototype,"hasCustomOptionText",null);_.X([_.I("data","isAllowedToAddOption"),_.A("design:type",Object),_.A("design:paramtypes",[])],hw.prototype,"addOptionButton",null);_.X([_.I("data","hasImages"),_.A("design:type",Object),_.A("design:paramtypes",[])],hw.prototype,"repositionImagesButton",null);
hw=_.X([_.l({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],hw);
_.p(hw,"ytd-backstage-image-poll-editor-renderer",function(){if(VS7!==void 0)return VS7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return VS7=q},{mode:2});var Rqg={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 bg7;var J8D=function(){var q=_.N.apply(this,arguments)||this;q.a11yConfig=Rqg;q.imageDisplayOffsetTop=0;q.imageDisplayOffsetLeft=0;q.pickerDisplayOffsetTop=0;q.pickerDisplayOffsetLeft=0;q.showPreviewContainer=!0;q.startPicker=!1;q.repositionOptional=!1;q.editOnlyMode=!1;q.savedImageDisplayOffsetTop=0;q.savedImageDisplayOffsetLeft=0;return q};
_.z(J8D,_.N);_.e=J8D.prototype;_.e.created=function(){_.aD.requestAvailability()};
_.e.ready=function(){};
_.e.onArrowKeysDown=function(q){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){q.detail.keyboardEvent.preventDefault();var Z=0,w=0,r="";switch(q.detail.keyboardEvent.key){case "ArrowUp":UzN(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?r=this.a11yConfig.reachBottomOfImage:Z=this.imageHeight*.05*-1;break;case "ArrowDown":UzN(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?r=this.a11yConfig.reachTopOfImage:
Z=this.imageHeight*.05;break;case "ArrowLeft":UzN(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?r=this.a11yConfig.reachRightOfImage:w=this.imageWidth*.05*-1;break;case "ArrowRight":UzN(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?r=this.a11yConfig.reachLeftOfImage:w=this.imageWidth*.05}r&&_.dT(r)&&_.hy(this.hostElement,"iron-announce",{text:_.dT(r)});if(w||Z)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+Z)),q=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),q=_.dT(this.a11yConfig.imageVerticalPosition,{x_percent:""+q,y_percent:""+(100-q)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+w)),q=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),q=_.dT(this.a11yConfig.imageHorizontalPosition,{x_percent:""+q,y_percent:""+(100-q)})),q&&_.hy(this.hostElement,"iron-announce",{text:q})}};
_.e.getPreviewPosition=function(q,Z,w,r){return Math.round(100*(q+Z*.5-w)/r)};
_.e.calculateDisplayPosition=function(){var q=this.imageData.naturalWidth,Z=this.imageData.naturalHeight;this.displayScale=Math.max(200/q,200/Z);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var w=q*this.displayScale*this.imageData.previewCoordinates.left,r=Z*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=Z>q?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-w;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=q>Z?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-r;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=q*this.displayScale;this.imageHeight=Z*this.displayScale};
_.e.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.e.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.e.getSignedPosition=function(q,Z,w){return Z==="X"&&_.zj("HTML_DIR")==="rtl"?w==="-"?q+"px":q*-1+"px":w==="-"?q*-1+"px":q+"px"};
_.e.pickerMove=function(q){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var Z=this.pickerOffsetX-q.clientX,w=this.pickerOffsetY-q.clientY;this.pickerOffsetX=q.clientX;this.pickerOffsetY=q.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
w)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-Z))}};
_.e.pickerMoveStart=function(q){this.startPicker=!0;this.pickerOffsetX=q.clientX;this.pickerOffsetY=q.clientY};
_.e.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var q=this.generateCropPreview();q&&_.hy(this.hostElement,"ytd-backstage-image-preview-coordinates-update",q)};
_.e.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.hy(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.e.deleteImage=function(){_.hy(this.hostElement,"ytd-backstage-image-preview-delete")};
_.e.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.e.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var q=this.generateCropPreview();q&&_.hy(this.hostElement,"ytd-backstage-image-preview-coordinates-save",q)};
_.e.getPreviewOffset=function(q,Z,w){return Z&&q?(w==="X"&&_.zj("HTML_DIR")==="rtl"?300/Z*q:300/Z*q*-1)+"px":"0px"};
_.e.getSimpleText=function(q){return q?_.kO(q):""};
_.e.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}};
_.My.Object.defineProperties(J8D.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var q=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.dT(this.a11yConfig.imageVerticalPosition,{x_percent:""+q,y_percent:""+(100-q)})+"\n"+_.dT(this.a11yConfig.verticalRepositionInstruction)}q=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.dT(this.a11yConfig.imageHorizontalPosition,{x_percent:""+q,y_percent:""+(100-q)})+"\n"+_.dT(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 q,Z,w=(q=this.instruction)==null?void 0:(Z=q.previewInstruction)==null?void 0:Z.editButtonLabel;return w?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:w,accessibilityData:{accessibilityData:{label:this.getSimpleText(w)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r,Y=this.editOnlyMode?(q=this.instruction)==null?void 0:(Z=q.editInstruction)==null?void 0:Z.saveImagesButtonLabel:(w=this.instruction)==null?void 0:(r=w.editInstruction)==null?void 0:r.saveButtonLabel;return Y?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:Y,accessibilityData:{accessibilityData:{label:this.getSimpleText(Y)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var q,Z,w=(q=this.instruction)==null?void 0:(Z=q.previewInstruction)==null?void 0:Z.deleteButtonLabel;return w?{size:"SIZE_SMALL",text:w,accessibilityData:{accessibilityData:{label:this.getSimpleText(w)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var q,Z,w=(q=this.instruction)==null?void 0:(Z=q.editInstruction)==null?void 0:Z.cancelButtonLabel;q=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return w?{style:q,size:"SIZE_SMALL",text:w,accessibilityData:{accessibilityData:{label:this.getSimpleText(w)}}}: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"}}});
var yN=J8D;yN.prototype.onEditOnlyModeUpdate=yN.prototype.onEditOnlyModeUpdate;yN.prototype.onImageChange=yN.prototype.onImageChange;_.X([_.F(),_.A("design:type",xzz)],yN.prototype,"imageData",void 0);_.X([_.F(),_.A("design:type",Object)],yN.prototype,"instruction",void 0);_.X([_.F(),_.A("design:type",Object)],yN.prototype,"a11yConfig",void 0);_.X([_.F(),_.A("design:type",Number)],yN.prototype,"imageWidth",void 0);_.X([_.F(),_.A("design:type",Number)],yN.prototype,"imageHeight",void 0);
_.X([_.F(),_.A("design:type",Number)],yN.prototype,"displayScale",void 0);_.X([_.F(),_.A("design:type",Object)],yN.prototype,"imageDisplayOffsetTop",void 0);_.X([_.F(),_.A("design:type",Object)],yN.prototype,"imageDisplayOffsetLeft",void 0);_.X([_.F(),_.A("design:type",Object)],yN.prototype,"pickerDisplayOffsetTop",void 0);_.X([_.F(),_.A("design:type",Object)],yN.prototype,"pickerDisplayOffsetLeft",void 0);_.X([_.F(),_.A("design:type",Object)],yN.prototype,"showPreviewContainer",void 0);
_.X([_.F(),_.A("design:type",Object)],yN.prototype,"startPicker",void 0);_.X([_.F(),_.A("design:type",Number)],yN.prototype,"pickerOffsetX",void 0);_.X([_.F(),_.A("design:type",Number)],yN.prototype,"pickerOffsetY",void 0);_.X([_.F(),_.A("design:type",Object)],yN.prototype,"repositionOptional",void 0);_.X([_.F(),_.A("design:type",Object)],yN.prototype,"editOnlyMode",void 0);_.X([_.fo("#picker-container"),_.A("design:type",HTMLElement)],yN.prototype,"JSC$13377_pickerContainer",void 0);
_.X([_.fo("#picker"),_.A("design:type",HTMLElement)],yN.prototype,"picker",void 0);_.X([_.fo("#preview-clipper"),_.A("design:type",HTMLElement)],yN.prototype,"previewClipper",void 0);_.X([_.fo("#image-in-picker-background"),_.A("design:type",HTMLImageElement)],yN.prototype,"JSC$13377_imageInBackground",void 0);_.X([_.fo("#image-in-picker"),_.A("design:type",HTMLImageElement)],yN.prototype,"JSC$13377_imageInPicker",void 0);
_.X([_.fo("#image-in-preview-clipper"),_.A("design:type",HTMLImageElement)],yN.prototype,"JSC$13377_imageInPreviewClipper",void 0);_.X([_.I("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],yN.prototype,"altLabelForImage",null);_.X([_.I("imageHeight","imageWidth"),_.A("design:type",Number),_.A("design:paramtypes",[])],yN.prototype,"pickerSize",null);
_.X([_.I("imageHeight","imageWidth"),_.A("design:type",Object),_.A("design:paramtypes",[])],yN.prototype,"imageOrientationStyle",null);_.X([_.I("instruction"),_.A("design:type",Object),_.A("design:paramtypes",[])],yN.prototype,"editButton",null);_.X([_.I("instruction","editOnlyMode"),_.A("design:type",Object),_.A("design:paramtypes",[])],yN.prototype,"saveButton",null);_.X([_.I("instruction"),_.A("design:type",Object),_.A("design:paramtypes",[])],yN.prototype,"deleteButton",null);
_.X([_.I("instruction","editOnlyMode"),_.A("design:type",Object),_.A("design:paramtypes",[])],yN.prototype,"cancelButton",null);_.X([_.I("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.A("design:type",Number),_.A("design:paramtypes",[])],yN.prototype,"cropOffsetTop",null);_.X([_.I("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.A("design:type",Number),_.A("design:paramtypes",[])],yN.prototype,"cropOffsetLeft",null);
_.X([_.I("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],yN.prototype,"pickerBackgroundStyle",null);_.X([_.I("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],yN.prototype,"pickerDisplayStyle",null);_.X([_.I("cropOffsetLeft","cropOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],yN.prototype,"imageInPickerStyle",null);
_.X([_.I("cropOffsetLeft","cropOffsetTop","pickerSize"),_.A("design:type",String),_.A("design:paramtypes",[])],yN.prototype,"previewClipperStyle",null);_.X([_.g3("imageData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yN.prototype,"onImageChange",null);_.X([_.g3("editOnlyMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yN.prototype,"onEditOnlyModeUpdate",null);
_.X([_.I("showPreviewContainer"),_.A("design:type",String),_.A("design:paramtypes",[])],yN.prototype,"pickerModeStyle",null);yN=_.X([_.l({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],yN);
_.p(yN,"ytd-backstage-image-preview-renderer",function(){if(bg7!==void 0)return bg7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return bg7=q},{mode:1});var zqp;var BB9={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 aaX;var nm7;var QC7=function(){var q=_.N.apply(this,arguments)||this;q.a11yConfig=BB9;q.imageDisplayOffsetTop=0;q.imageDisplayOffsetLeft=0;q.pickerDisplayOffsetTop=0;q.pickerDisplayOffsetLeft=0;q.cropCoordinatesSaved=!1;q.previewSize=0;q.startPicker=!1;q.repositionOptional=!1;return q};
_.z(QC7,_.N);_.e=QC7.prototype;_.e.created=function(){_.aD.requestAvailability()};
_.e.ready=function(){};
_.e.onArrowKeysDown=function(q){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){q.detail.keyboardEvent.preventDefault();var Z=0,w=0,r="";switch(q.detail.keyboardEvent.key){case "ArrowUp":kw2(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?r=this.a11yConfig.reachBottomOfImage:Z=this.imageHeight*.05*-1;break;case "ArrowDown":kw2(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?r=this.a11yConfig.reachTopOfImage:
Z=this.imageHeight*.05;break;case "ArrowLeft":kw2(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?r=this.a11yConfig.reachRightOfImage:w=this.imageWidth*.05*-1;break;case "ArrowRight":kw2(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?r=this.a11yConfig.reachLeftOfImage:w=this.imageWidth*.05}r&&_.dT(r)&&_.hy(this.hostElement,"iron-announce",{text:_.dT(r)});if(w||Z)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+Z)),q=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),q=_.dT(this.a11yConfig.imageVerticalPosition,{x_percent:""+q,y_percent:""+(100-q)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+w)),q=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),q=_.dT(this.a11yConfig.imageHorizontalPosition,{x_percent:""+q,y_percent:""+(100-q)})),q&&_.hy(this.hostElement,"iron-announce",{text:q})}};
_.e.getPreviewPosition=function(q,Z,w,r){return Math.round(100*(q+Z*.5-w)/r)};
_.e.displayImage=function(){var q=this.JSC$13388_pickerContainer.getBoundingClientRect().width,Z=this.JSC$13388_pickerContainer.getBoundingClientRect().height,w=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),r=this.JSC$13388_imageInBackground.naturalWidth,Y=this.JSC$13388_imageInBackground.naturalHeight;this.displayScale=Math.max(w/r,w/Y);this.imageWidth=r*this.displayScale;this.imageHeight=Y*this.displayScale;this.pickerDisplayOffsetLeft=(q-w)/2;this.pickerDisplayOffsetTop=
(Z-w)/2;this.imageDisplayOffsetLeft=Y>r?this.pickerDisplayOffsetLeft:(q-this.imageWidth)/2;this.imageDisplayOffsetTop=r>Y?this.pickerDisplayOffsetTop:(Z-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.e.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13388_imageInBackground.src=this.imageData.toString(),this.JSC$13388_imageInPicker.src=this.imageData.toString(),this.JSC$13388_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.e.getSignedPosition=function(q,Z,w){return Z==="X"&&_.zj("HTML_DIR")==="rtl"?w==="-"?q+"px":q*-1+"px":w==="-"?q*-1+"px":q+"px"};
_.e.pickerMove=function(q){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var Z=this.pickerOffsetX-q.clientX,w=this.pickerOffsetY-q.clientY;this.pickerOffsetX=q.clientX;this.pickerOffsetY=q.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
w)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-Z))}};
_.e.pickerMoveStart=function(q){this.startPicker=!0;this.pickerOffsetX=q.clientX;this.pickerOffsetY=q.clientY};
_.e.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.e.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.hy(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.e.getPreviewOffset=function(q,Z,w,r){return Z&&q&&w?(r==="X"&&_.zj("HTML_DIR")==="rtl"?w/Z*q:w/Z*q*-1)+"px":"0px"};
_.e.getSimpleText=function(q){return q?_.kO(q):""};
_.e.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var q=this.cropOffsetTop/this.imageHeight,Z=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,w=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,r=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.E(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.hy(this.hostElement,"yt-img-crop-coordinates-update",{top:q,right:Z,bottom:w,left:r})}};
_.My.Object.defineProperties(QC7.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var q=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.dT(this.a11yConfig.imageVerticalPosition,{x_percent:""+q,y_percent:""+(100-q)})+"\n"+_.dT(this.a11yConfig.verticalRepositionInstruction)}q=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.dT(this.a11yConfig.imageHorizontalPosition,{x_percent:""+q,y_percent:""+(100-q)})+"\n"+_.dT(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 q,Z=(q=this.learnMore.runs[0])==null?void 0:q.navigationEndpoint,w;return((w=_.J(Z,_.TF))==null?void 0:w.url)||void 0}}}});
var iD=QC7;iD.prototype.onImageDataChange=iD.prototype.onImageDataChange;_.X([_.F(),_.A("design:type",Object)],iD.prototype,"imageData",void 0);_.X([_.F(),_.A("design:type",Object)],iD.prototype,"instruction",void 0);_.X([_.F(),_.A("design:type",Object)],iD.prototype,"a11yConfig",void 0);_.X([_.F(),_.A("design:type",Number)],iD.prototype,"imageWidth",void 0);_.X([_.F(),_.A("design:type",Number)],iD.prototype,"imageHeight",void 0);_.X([_.F(),_.A("design:type",Number)],iD.prototype,"displayScale",void 0);
_.X([_.F(),_.A("design:type",Object)],iD.prototype,"imageDisplayOffsetTop",void 0);_.X([_.F(),_.A("design:type",Object)],iD.prototype,"imageDisplayOffsetLeft",void 0);_.X([_.F(),_.A("design:type",Object)],iD.prototype,"pickerDisplayOffsetTop",void 0);_.X([_.F(),_.A("design:type",Object)],iD.prototype,"pickerDisplayOffsetLeft",void 0);_.X([_.F(),_.A("design:type",Object)],iD.prototype,"cropCoordinatesSaved",void 0);_.X([_.F(),_.A("design:type",Object)],iD.prototype,"previewSize",void 0);
_.X([_.F(),_.A("design:type",Object)],iD.prototype,"startPicker",void 0);_.X([_.F(),_.A("design:type",Number)],iD.prototype,"pickerOffsetX",void 0);_.X([_.F(),_.A("design:type",Number)],iD.prototype,"pickerOffsetY",void 0);_.X([_.F(),_.A("design:type",Object)],iD.prototype,"repositionOptional",void 0);_.X([_.fo("#picker-container"),_.A("design:type",HTMLElement)],iD.prototype,"JSC$13388_pickerContainer",void 0);_.X([_.fo("#picker"),_.A("design:type",HTMLElement)],iD.prototype,"picker",void 0);
_.X([_.fo("#image-in-picker-background"),_.A("design:type",HTMLImageElement)],iD.prototype,"JSC$13388_imageInBackground",void 0);_.X([_.fo("#image-in-picker"),_.A("design:type",HTMLImageElement)],iD.prototype,"JSC$13388_imageInPicker",void 0);_.X([_.fo("#image-in-preview-clipper"),_.A("design:type",HTMLImageElement)],iD.prototype,"JSC$13388_imageInPreviewClipper",void 0);_.X([_.fo("#full-image-as-preview"),_.A("design:type",HTMLImageElement)],iD.prototype,"imageAsPreview",void 0);
_.X([_.I("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],iD.prototype,"altLabelForImage",null);_.X([_.I("imageHeight","imageWidth"),_.A("design:type",Number),_.A("design:paramtypes",[])],iD.prototype,"pickerSize",null);_.X([_.I("imageHeight","imageWidth"),_.A("design:type",Object),_.A("design:paramtypes",[])],iD.prototype,"imageOrientationStyle",null);
_.X([_.I("instruction.previewInstruction.editButtonLabel"),_.A("design:type",Object),_.A("design:paramtypes",[])],iD.prototype,"editButton",null);_.X([_.I("instruction.editInstruction.saveButtonLabel"),_.A("design:type",Object),_.A("design:paramtypes",[])],iD.prototype,"saveButton",null);_.X([_.I("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.A("design:type",Number),_.A("design:paramtypes",[])],iD.prototype,"cropOffsetTop",null);
_.X([_.I("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.A("design:type",Number),_.A("design:paramtypes",[])],iD.prototype,"cropOffsetLeft",null);_.X([_.I("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],iD.prototype,"pickerBackgroundStyle",null);_.X([_.I("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],iD.prototype,"pickerDisplayStyle",null);
_.X([_.I("cropOffsetLeft","cropOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],iD.prototype,"imageInPickerStyle",null);_.X([_.I("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.A("design:type",String),_.A("design:paramtypes",[])],iD.prototype,"previewClipperStyle",null);_.X([_.M("imageData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iD.prototype,"onImageDataChange",null);
_.X([_.I("cropCoordinatesSaved"),_.A("design:type",String),_.A("design:paramtypes",[])],iD.prototype,"pickerModeStyle",null);_.X([_.I("instruction.editInstruction.learnMore"),_.A("design:type",Object),_.A("design:paramtypes",[])],iD.prototype,"learnMore",null);_.X([_.I("learnMore"),_.A("design:type",Object),_.A("design:paramtypes",[])],iD.prototype,"learnMoreUrl",null);iD=_.X([_.dx({is:"yt-img-crop-picker",disableElementRegistration:!0})],iD);
_.p(iD,"yt-img-crop-picker",function(){if(nm7===void 0){var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;aaX===void 0&&(aaX=document.createElement("template"));var r=aaX;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);nm7=q}q=nm7;return q},{mode:2});var EmX=function(){var q=_.N.apply(this,arguments)||this;q.errorMessage="";q.hasPreview=!1;q.isBackstagePost=!1;q.dismissButtonOverrides={size:"XS"};return q};
_.z(EmX,_.N);_.e=EmX.prototype;_.e.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"}}}};
_.e.detached=function(){this.removeOverlay()};
_.e.setPreview=function(q){_.E(this.hostElement).querySelector("#preview-picker").imageData=q;this.hasPreview=!0;_.hy(this.hostElement,"yt-backstage-image-select-preview")};
_.e.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var q=_.E(this.hostElement).querySelector("#dropzone");q.classList.remove("dragover");q.classList.remove("error");_.hy(this.hostElement,"yt-backstage-image-select-cancel")};
_.e.setupOverlay=function(){var q=this.imageUploadEndpoint;this.removeOverlay();if(q&&q.imageValidationInfo){var Z=_.E(this.hostElement).querySelector("#dropzone"),w=_.E(this.hostElement).querySelector("#select");this.overlay=new UN(q.uploadUrl,q.channelId,q.imageValidationInfo.maxFileSizeMb,q.imageValidationInfo.allowedMaxAspectRatio,Z,w,!0);_.Yc(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Yc(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Yc(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Yc(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Yc(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.e.removeOverlay=function(){this.overlay&&(_.d_(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.d_(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.d_(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.d_(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.d_(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.e.onDragOver=function(q){var Z=_.E(this.hostElement).querySelector("#dropzone");_.NZ(Z,"dragover",q.value)};
_.e.onPreview=function(q){this.setPreview(q.value)};
_.e.onImageError=function(q){if(q.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var Z;q=(Z=this.data)==null?void 0:Z.fileSizeError}else if(q.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var w;q=(w=this.data)==null?void 0:w.invalidError}else if(q.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var r;q=(r=this.data)==null?void 0:r.invalidAspectRatioError}else return;this.errorMessage=_.kO(q);_.E(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.e.onImageAlert=function(q){this.onImageError(q)};
_.e.uploadPromise=function(){var q=this,Z=this.overlay&&this.overlay.uploadPromise();if(Z)return Z.catch(function(){throw Error(q.data?_.kO(q.data.uploadFailureError):"");})};
_.My.Object.defineProperties(EmX.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var q,Z;if((q=this.data)==null?0:(Z=q.icon)==null?0:Z.iconType)return _.Xl(this.data.icon.iconType)}}});
var gd=EmX;gd.prototype.setupOverlay=gd.prototype.setupOverlay;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],gd.prototype,"rendererStamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],gd.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],gd.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],gd.prototype,"imageUploadEndpoint",void 0);_.X([_.F(),_.A("design:type",Object)],gd.prototype,"errorMessage",void 0);
_.X([_.F(),_.A("design:type",UN)],gd.prototype,"overlay",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gd.prototype,"hasPreview",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gd.prototype,"isBackstagePost",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],gd.prototype,"selectionCancel",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],gd.prototype,"previewCancel",null);
_.X([_.I("data.icon.iconType"),_.A("design:type",Object),_.A("design:paramtypes",[])],gd.prototype,"icon",null);_.X([_.F(),_.A("design:type",Object)],gd.prototype,"dismissButtonOverrides",void 0);_.X([_.M("imageUploadEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gd.prototype,"setupOverlay",null);gd=_.X([_.l({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],gd);
_.p(gd,"ytd-backstage-image-select-renderer",function(){if(zqp!==void 0)return zqp;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return zqp=q},{mode:1});var xEp;var TBX;var UEp=function(){var q=_.N.apply(this,arguments)||this;q.selected=!1;return q};
_.z(UEp,_.N);_.e=UEp.prototype;_.e.computeSelected=function(q){return q==null?void 0:q.selected};
_.e.computeTransform=function(q,Z,w){var r,Y,C=(Y=(r=this.imageContainer)==null?void 0:r.getBoundingClientRect())!=null?Y:{width:0,height:0};r=Math.max(C.width/Z,C.height/w);w=w*r*q.top;return"translateX("+this.getSignedPosition(Z*r*q.left,"X","-")+") translateY("+this.getSignedPosition(w,"Y","-")+")"};
_.e.getSignedPosition=function(q,Z,w){return Z==="X"&&_.zj("HTML_DIR")==="rtl"?w==="-"?q+"px":q*-1+"px":w==="-"?q*-1+"px":q+"px"};
_.e.onClick=function(){var q;_.hy(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(q=this.data)==null?void 0:q.image)};
_.e.onKeyPress=function(q){if(q.keyCode===13)this.onClick()};
_.My.Object.defineProperties(UEp.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.data)==null?void 0:(Z=q.image)==null?void 0:Z.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)!=null&&q.image){var Z;q=(Z=this.data)==null?void 0:Z.image;return q.previewCoordinates.top!==0||q.previewCoordinates.left!==0?(Z=this.computeTransform(q.previewCoordinates,q.naturalWidth,q.naturalHeight),q.naturalHeight>=q.naturalWidth?"width:inherit;transform:"+Z+";":"height:inherit;transform:"+Z+";"):q.naturalHeight>=q.naturalWidth?"width:inherit;":"height:inherit;"}}}});
var qe=UEp;qe.prototype.onKeyPress=qe.prototype.onKeyPress;_.X([_.fo(".image-container"),_.A("design:type",HTMLElement)],qe.prototype,"imageContainer",void 0);_.X([_.F(),_.A("design:type",Object)],qe.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.A("design:type",Object)],qe.prototype,"selected",void 0);_.X([_.I("data.image"),_.A("design:type",Object),_.A("design:paramtypes",[])],qe.prototype,"thumbnailUrl",null);
_.X([_.I("data.image","data.image.previewCoordinates"),_.A("design:type",Object),_.A("design:paramtypes",[])],qe.prototype,"thumbnailStyle",null);_.X([_.m2("keypress"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],qe.prototype,"onKeyPress",null);qe=_.X([_.l({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],qe);
_.p(qe,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(TBX!==void 0)return TBX;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return TBX=q},{mode:2});var Zc=function(q,Z,w){w=w===void 0?!1:w;_.V8.call(this);var r=this;this.dropZoneOverlay=new iJ(q);this.selectOverlay=w?new gl(Z,"multiple_file",["image/*"]):new gl(Z,"single_file",["image/*"]);this.handler=new _.Al(this);_.$i(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(Z,"click",function(){r.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.z(Zc,_.V8);Zc.prototype.onChange=function(q){var Z;(Z=q.files)!=null&&Z.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:q.files}))};var ky2=function(){var q=_.N.apply(this,arguments)||this;q.addImageErrorMessage="";q.errorMessage="";q.images=[];q.selectedImageIndex=0;q.modern=_.b("web_modern_buttons");q.maxNumImagesPerPost=_.m6("max_num_images_per_post_web_ui");q.JSC$13403_imageId=0;return q};
_.z(ky2,_.N);_.e=ky2.prototype;_.e.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.hy(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.e.observeDragToReorder=function(){var q=this;if(this.showImagesPreview){var Z,w=jXh(_.Nk.getInstance(),(Z=this.data)==null?void 0:Z.dragToReorderTooltip);_.v5.addLowPriorityJob(function(){_.ZC(q.hostElement,w,q.thumbnailDragDropArea)})}};
_.e.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}}};
_.e.computeThumbnail=function(q){return(q==null?void 0:q.localImageSrc)||void 0};
_.e.onRendererstamperFinished=function(){_.SH7(this.ytReorderableBehavior,_.E(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.E(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.e.handleDrop=function(q){var Z=q.currDragItem;if(Z!=null&&Z.data){q=this.images[this.selectedImageIndex];var w=Z.data.image,r=this.images.indexOf(w)||0;Z=_.IT(Z.parentNode.children,Z);this.images.splice(r,1);this.images.splice(Z,0,w);this.images=[].concat(_.Ju(this.images));this.selectedImageIndex=this.images.indexOf(q)}};
_.e.setUpImagePicker=function(){var q=this.imageUploadEndpoint;q&&q.imageValidationInfo&&(this.uploadManager=new Dn(q.uploadUrl,q.channelId),this.initialPicker||(this.initialPicker=new Zc(this.dropzone,this.selectLink,!0),_.Yc(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Zc(this.addImageButtonContainer,this.addImageSelectButton),_.Yc(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Yc(this.JSC$13403_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Yc(this.JSC$13403_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Yc(_.E(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.e.detached=function(){this.initialPicker&&(_.d_(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.d_(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.e.onInitialSelectImages=function(q){var Z=this;return _.V(function(w){return _.W(w,Z.onSelectImages(q,!1),0)})};
_.e.onAddImage=function(q){var Z=this;return _.V(function(w){return _.W(w,Z.onSelectImages(q,!0),0)})};
_.e.onSelectImages=function(q,Z){var w=this,r,Y,C,d,O,H,L,S,v,R,B,n,x,K,k,G,rz,f,eO,g;return _.V(function(H6){switch(H6.nextAddress){case 1:Z?w.addImageErrorMessage="":(w.images=[],w.errorMessage="");r=q.detail;Y=w.validateImages([].concat(_.Ju(r)));if(Y!=="")return Z?w.addImageErrorMessage=Y:w.errorMessage=Y,H6.return();C=[].concat(_.Ju(r)).map(function(nX){return(new x5(w.maxAspectRatio,!1,!0)).transform(nX)});
return _.W(H6,Promise.allSettled(C),2);case 2:d=H6.yieldResult,O=_.P(d.entries()),H=O.next();case 3:if(H.done){H6.jumpTo(5);break}L=H.value;S=_.P(L);v=S.next().value;R=S.next().value;B=v;n=R;if(n.status!=="fulfilled"){k=K=x=void 0;Z?w.addImageErrorMessage=_.kO((x=w.data)==null?void 0:x.invalidError):w.errorMessage=w.errorMessage===""?_.kO((K=w.data)==null?void 0:K.invalidError):_.kO((k=w.data)==null?void 0:k.multiFileError);H6.jumpTo(4);break}G=n.value;G.cropped&&_.hy(w.hostElement,"yt-backstage-multi-image-cropped");
if(G.invalidAspectRatio){eO=f=rz=void 0;Z?w.addImageErrorMessage=_.kO((rz=w.data)==null?void 0:rz.invalidAspectRatioError):w.errorMessage=w.errorMessage===""?_.kO((f=w.data)==null?void 0:f.invalidAspectRatioError):_.kO((eO=w.data)==null?void 0:eO.multiFileError);H6.jumpTo(4);break}return _.W(H6,TvN(w.JSC$13403_imageId,q.detail[B],G.transformedData),8);case 8:g=H6.yieldResult,w.images.push(g),w.JSC$13403_imageId++;case 4:H=O.next();H6.jumpTo(3);break;case 5:if(w.errorMessage!==""||w.addImageErrorMessage!==
"")return H6.return();Z?omm(w.uploadManager,[w.images[w.images.length-1]]):omm(w.uploadManager,w.images);w.images=[].concat(_.Ju(w.images));w.selectedImageIndex=Z?Math.max(w.images.length-1,0):0;_.hy(w.hostElement,"yt-backstage-multi-image-select");_.ub(H6)}})};
_.e.onThumbnailClick=function(q){if(q=q.event_.detail)this.selectedImageIndex=this.images.indexOf(q)};
_.e.validateImages=function(q){if(q.length>this.maxNumImagesPerPost){var Z;return _.kO((Z=this.data)==null?void 0:Z.multiImageExceedMaxImageCountError)}var w=1048576*this.maxFileSizeMb;q=q.filter(function(C){return C.size>w}).length;
if(q===0)return"";var r,Y;q=q>1?(r=this.data)==null?void 0:r.multiFileError:(Y=this.data)==null?void 0:Y.fileSizeError;return _.kO(q)};
_.e.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.Ju(this.images));this.selectedImageIndex=0};
_.e.repositionImage=function(q){this.images[this.selectedImageIndex].previewCoordinates=q.event_.detail;this.images=[].concat(_.Ju(this.images))};
_.e.getAllUploadStatuses=function(){var q=this,Z,w,r,Y;return _.V(function(C){if(C.nextAddress==1)return _.W(C,q.uploadManager.getAllUploadStatuses(),2);Z=C.yieldResult;w=_.P(Z);for(r=w.next();!r.done;r=w.next())if(Y=r.value,Y.encryptedBlobId===void 0)return C.return(uch(q.uploadManager));return C.return(Z)})};
_.e.hasImages=function(){return this.images.length>0};
_.e.cancel=function(){for(var q=this.uploadManager,Z=_.P(q.imagesUploadData),w=Z.next();!w.done;w=Z.next())q.cancel(w.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.hy(this.hostElement,"yt-backstage-multi-image-cancel")};
_.My.Object.defineProperties(ky2.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.imageUploadEndpoint)==null?void 0:(Z=q.imageValidationInfo)==null?void 0:Z.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.imageUploadEndpoint)==null?void 0:(Z=q.imageValidationInfo)==null?void 0:Z.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var q,Z;if((q=this.data)==null?0:(Z=q.icon)==null?0:Z.iconType)return _.Xl(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.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 q=this;return(this.images||[]).map(function(Z,w){return{renderer:{image:Z,selected:w===q.selectedImageIndex}}})}}});
var wE=ky2;wE.prototype.setUpImagePicker=wE.prototype.setUpImagePicker;wE.prototype.onRendererstamperFinished=wE.prototype.onRendererstamperFinished;wE.prototype.observeDragToReorder=wE.prototype.observeDragToReorder;wE.prototype.observeAddImageError=wE.prototype.observeAddImageError;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],wE.prototype,"rendererStamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],wE.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.jID),_.A("design:type",Object)],wE.prototype,"ytReorderableBehavior",void 0);_.X([_.fo("#dropzone"),_.A("design:type",HTMLElement)],wE.prototype,"dropzone",void 0);_.X([_.fo("#select-link"),_.A("design:type",HTMLElement)],wE.prototype,"selectLink",void 0);_.X([_.fo("#thumbnail-drag-drop-area"),_.A("design:type",HTMLElement)],wE.prototype,"thumbnailDragDropArea",void 0);_.X([_.fo("#add-image-button-container"),_.A("design:type",HTMLElement)],wE.prototype,"addImageButtonContainer",void 0);
_.X([_.fo("#add-image-button"),_.A("design:type",HTMLElement)],wE.prototype,"addImageSelectButton",void 0);_.X([_.fo("#image-preview-container"),_.A("design:type",Object)],wE.prototype,"JSC$13403_imagePreviewContainer",void 0);_.X([_.F(),_.A("design:type",Object)],wE.prototype,"addImageErrorMessage",void 0);_.X([_.F(),_.A("design:type",Object)],wE.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],wE.prototype,"errorMessage",void 0);
_.X([_.F(),_.A("design:type",Object)],wE.prototype,"imageUploadEndpoint",void 0);_.X([_.F(),_.A("design:type",Array)],wE.prototype,"images",void 0);_.X([_.F(),_.A("design:type",Zc)],wE.prototype,"initialPicker",void 0);_.X([_.F(),_.A("design:type",Zc)],wE.prototype,"addImagePicker",void 0);_.X([_.F(),_.A("design:type",Dn)],wE.prototype,"uploadManager",void 0);_.X([_.F(),_.A("design:type",Object)],wE.prototype,"selectedImageIndex",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],wE.prototype,"modern",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],wE.prototype,"maxNumImagesPerPost",void 0);_.X([_.I("imageUploadEndpoint"),_.A("design:type",Number),_.A("design:paramtypes",[])],wE.prototype,"maxAspectRatio",null);_.X([_.I("imageUploadEndpoint"),_.A("design:type",Number),_.A("design:paramtypes",[])],wE.prototype,"maxFileSizeMb",null);
_.X([_.I("data.icon.iconType"),_.A("design:type",Object),_.A("design:paramtypes",[])],wE.prototype,"dropIcon",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],wE.prototype,"selectionCancel",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],wE.prototype,"previewCancel",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],wE.prototype,"dataForAddImageButton",null);
_.X([_.I("errorMessage"),_.A("design:type",String),_.A("design:paramtypes",[])],wE.prototype,"dropzoneClass",null);_.X([_.I("images"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],wE.prototype,"showImagesPreview",null);_.X([_.I("images"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],wE.prototype,"containMaxImages",null);_.X([_.M("addImageErrorMessage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wE.prototype,"observeAddImageError",null);
_.X([_.M("showImagesPreview"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wE.prototype,"observeDragToReorder",null);_.X([_.I("images","selectedImageIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],wE.prototype,"selectedImageData",null);_.X([_.I("images","selectedImageIndex"),_.A("design:type",Array),_.A("design:paramtypes",[])],wE.prototype,"thumbnailRenderers",null);
_.X([_.m2("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wE.prototype,"onRendererstamperFinished",null);_.X([_.M("imageUploadEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wE.prototype,"setUpImagePicker",null);wE=_.X([_.l({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],wE);
_.p(wE,"ytd-backstage-multi-image-select-renderer",function(){if(xEp!==void 0)return xEp;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return xEp=q},{mode:1});var K_g;var sC7;var Iag;var c8v=function(){var q=_.N.apply(this,arguments)||this;q.boundCaptureFocus=function(Z){q.onCaptureFocus(Z)};
return q};
_.z(c8v,_.N);_.e=c8v.prototype;_.e.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.e.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.e.onCaptureFocus=function(q){_.E8(q).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.e.getIconType=function(q){return q?"yt-icons:"+q.toLowerCase():null};
_.e.onSelect=function(){var q;if((q=this.data)==null?0:q.onSelectCommand)if(_.b("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var Z;((Z=_.J(this.data.onSelectCommand.commandMetadata,_.XK))==null?0:Z.url)?_.hy(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.t().resolve(_.ps).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.My.Object.defineProperties(c8v.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.kO(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}}});
var rE=c8v;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],rE.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],rE.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],rE.prototype,"data",void 0);_.X([_.fo("#item"),_.A("design:type",HTMLElement)],rE.prototype,"item",void 0);_.X([_.I("data.label"),_.A("design:type",String),_.A("design:paramtypes",[])],rE.prototype,"label",null);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],rE.prototype,"value",null);rE=_.X([_.l({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],rE);
_.p(rE,"ytd-privacy-dropdown-item-renderer",function(){if(Iag!==void 0)return Iag;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Iag=q},{mode:1});var MSm=function(){var q=_.N.apply(this,arguments)||this;q.value="";q.label="";q.disabled=!1;return q};
_.z(MSm,_.N);_.e=MSm.prototype;_.e.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"}}}};
_.e.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.e.dataChanged=function(){this.reset()};
_.e.valueChanged=function(){var q;if(this.value&&(q=this.data)!=null&&q.entries){q=_.P(this.data.entries);for(var Z=q.next();!Z.done;Z=q.next())if((Z=this.getRendererForEntry(Z.value))&&this.getItemRendererValue(Z)===this.value){this.label=this.ytComponentBehavior.getSimpleString(Z.label);break}}};
_.e.setInitialLabel=function(){if(this.data&&this.data.entries)for(var q=_.P(this.data.entries),Z=q.next();!Z.done;Z=q.next())if(Z=this.getRendererForEntry(Z.value)){if(Z.isSelected){this.label=this.ytComponentBehavior.getSimpleString(Z.label);break}this.data.label&&(this.label=this.data.label)}};
_.e.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var q=_.P(this.data.entries),Z=q.next();!Z.done;Z=q.next()){Z=this.getRendererForEntry(Z.value);var w=void 0;if((w=Z)==null?0:w.isSelected)return this.getItemRendererValue(Z)||-1}return-1};
_.e.getItemRendererValue=function(q){return"stringValue"in q||"int32Value"in q?q.stringValue||q.int32Value||null:null};
_.e.getRendererForEntry=function(q){return q.dropdownItemRenderer||q.privacyDropdownItemRenderer||q.navigationDropdownItemRenderer||null};
_.e.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("value-changed",this.value))};
_.e.updateValueFromBinding=function(q){this.value=q.detail.value};
var Ys=MSm;Ys.prototype.valueChangedForBinding=Ys.prototype.valueChangedForBinding;Ys.prototype.valueChanged=Ys.prototype.valueChanged;Ys.prototype.dataChanged=Ys.prototype.dataChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Ys.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ys.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ys.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Ys.prototype,"value",void 0);_.X([_.F(),_.A("design:type",Object)],Ys.prototype,"label",void 0);_.X([_.fo("#entries"),_.A("design:type",Object)],Ys.prototype,"entries",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ys.prototype,"disabled",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ys.prototype,"dataChanged",null);_.X([_.g3("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ys.prototype,"valueChanged",null);_.X([_.M("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ys.prototype,"valueChangedForBinding",null);Ys=_.X([_.l({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Ys);
_.p(Ys,"ytd-flat-dropdown-renderer",function(){if(sC7!==void 0)return sC7;var q=document.createElement("template");_.a(q,'\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="yt-icons:arrow_drop_down" 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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return sC7=q},{mode:1});var F_2;var NB7=function(){var q=_.N.apply(this,arguments)||this;q.quizOptions=[];q.explanationPlaceholderText="";q.optionPlaceholderText="";q.correctAnswerIndex=-1;q.isMarkAnswerTooltipShown=!1;q.timer=0;return q};
_.z(NB7,_.N);_.e=NB7.prototype;_.e.dataChanged=function(){this.optionPlaceholderText=_.kO(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.kO(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.e.onMarkCorrectAnswer=function(q){var Z,w=((Z=this.quizOptions[this.correctAnswerIndex])==null?void 0:Z.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[q.model.index]=Object.assign({},this.quizOptions[q.model.index],{explanationText:w,isCorrect:!0});this.correctAnswerIndex=q.model.index;this.quizOptions=[].concat(_.Ju(this.quizOptions))};
_.e.updatePlaceholderTexts=function(){for(var q=!1,Z=[],w=0;w<this.quizOptions.length;w++){var r=this.optionPlaceholderText+" "+(w+1),Y=void 0;((Y=this.quizOptions[w])==null?void 0:Y.placeholderText)!==r?(q=!0,Z.push(Object.assign({},this.quizOptions[w],{placeholderText:r}))):Z.push(this.quizOptions[w])}q&&(this.quizOptions=Z);this.isValid()?_.hy(this.hostElement,"yt-commentbox-post-enable"):_.hy(this.hostElement,"yt-commentbox-post-disable")};
_.e.getSimpleString=function(q){return _.kO(q)};
_.e.createQuizOptions=function(q){var Z=[],w;q=(w=q==null?void 0:q.minQuizOptions)!=null?w:0;for(w=0;w<q;w++)Z.push(this.createQuizOption());return Z};
_.e.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.Ju(this.quizOptions),[this.createQuizOption()]))};
_.e.onInput=function(){this.quizOptions=[].concat(_.Ju(this.quizOptions))};
_.e.onExplanationInput=function(){_.hy(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.e.onRemoveQuizOption=function(q){this.quizOptions.splice(q.model.index,1);q.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:q.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.Ju(this.quizOptions));this.quizOptions.length===0&&_.hy(this.hostElement,"yt-quiz-attachment-dismiss")};
_.e.updateHintRenderer=function(){var q=this;clearTimeout(this.timer);this.timer=setTimeout(function(){q.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.e.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var q=0,Z=0,w=_.P(this.quizOptions),r=w.next();!r.done;r=w.next()){r=r.value;var Y=void 0;if(((Y=r.optionText)==null?void 0:Y.trim())!==""||r.isCorrect){r.isCorrect&&Z++;Y=void 0;if(this.hasCustomOptionText&&((Y=r.optionText)==null?void 0:Y.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;q++}}return q>=
Number(this.editorInfo.minQuizOptions)&&Z===1};
_.e.getPostCreateOptions=function(){for(var q=[],Z=_.P(this.quizOptions),w=Z.next();!w.done;w=Z.next()){w=w.value;var r=void 0;((r=w.optionText)==null?void 0:r.trim())!==""&&q.push({pollOption:{text:w.optionText,explanation:w.explanationText},isCorrect:w.isCorrect})}return q};
_.e.getExplanationText=function(){var q;return((q=this.quizOptions[this.correctAnswerIndex])==null?void 0:q.explanationText)||""};
_.e.maybeDisplayMarkAnswerEduToolTip=function(){var q,Z,w,r,Y,C,d;this.shouldShowMarkAnswerTooltip()&&((q=this.editorInfo)==null?0:(Z=q.markAnswerButton)==null?0:(w=Z.buttonRenderer)==null?0:(r=w.hint)==null?0:(Y=r.hintRenderer)==null?0:(C=Y.content)==null?0:(d=C.bubbleHintRenderer)==null?0:d.text)&&(_.Nk.getInstance(),q=l8(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,(q==null?void 0:q.length)>0&&this.optionSelectors&&_.f5(q[0],this.optionSelectors[0]))};
_.e.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var q=0,Z=_.P(this.quizOptions),w=Z.next();!w.done;w=Z.next()){w=w.value;var r=void 0;((r=w.optionText)==null?void 0:r.trim())!==""&&q++;if(w.isCorrect)return!1}return q<2?!1:!0};
_.e.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.e.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.e.updateOptionTextFromBinding=function(q){if(q.target){var Z=Array.from(_.E(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(q.target);if(Z>=0){var w;this.quizOptions[Z].optionText=(w=q.detail.value)!=null?w:""}}};
_.My.Object.defineProperties(NB7.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var q,Z,w=(q=this.editorInfo)==null?void 0:(Z=q.addOptionButton)==null?void 0:Z.buttonRenderer;w&&(w.style="STYLE_SUGGESTIVE",w.size="SIZE_SMALL",w.isDisabled=!this.isAllowedToAddOption);return(w==null?0:w.text)?w:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var q,Z;return this.quizOptions.length<((Z=(q=this.editorInfo)==null?void 0:q.maxQuizOptions)!=null?Z:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(q){var Z;return(Z=q.optionText)==null?void 0:Z.trim()})}}});
var $s=NB7;$s.prototype.updatePlaceholderTexts=$s.prototype.updatePlaceholderTexts;$s.prototype.dataChanged=$s.prototype.dataChanged;_.X([_.F(),_.A("design:type",Object)],$s.prototype,"editorInfo",void 0);_.X([_.F(),_.A("design:type",Array)],$s.prototype,"quizOptions",void 0);_.X([_.F(),_.A("design:type",Object)],$s.prototype,"explanationPlaceholderText",void 0);_.X([_.D5(".option-selector-button"),_.A("design:type",Array)],$s.prototype,"optionSelectors",void 0);
_.X([_.g3("editorInfo"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$s.prototype,"dataChanged",null);_.X([_.I("editorInfo","isAllowedToAddOption","quizOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],$s.prototype,"addAnswerButton",null);_.X([_.I("editorInfo","quizOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],$s.prototype,"isAllowedToAddOption",null);
_.X([_.g3("quizOptions"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$s.prototype,"updatePlaceholderTexts",null);_.X([_.I("quizOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],$s.prototype,"hasCustomOptionText",null);$s=_.X([_.l({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],$s);
_.p($s,"ytd-backstage-quiz-editor-renderer",function(){if(F_2!==void 0)return F_2;var q=document.createElement("template");_.a(q,'\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-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return F_2=q},{mode:2});var lav;var Gy9=(u2.FIRSTDAYOFWEEK+1)%7;var pKW;var XKg=[],mEp=0,A82=0;mEp=0;A82=24;if(.25*(A82-mEp)<0)pKW=[];else{for(var faK=mEp;faK<A82;faK+=.25)XKg.push(faK);pKW=XKg}var DEX=pKW.map(function(q){q=q*60*60;return{secondsSinceMidnight:q,text:(new xO(7)).format(new Date(0,0,0,0,0,q))}});var hq7;var y8p=function(){var q=_.N.apply(this,arguments)||this;q.skipNextOpenDialog=!1;q.errorMessage="";return q};
_.z(y8p,_.N);_.e=y8p.prototype;_.e.attached=function(){var q=this,Z=new MutationObserver(function(){q.JSC$13446_calendarMain.scrollHeight>0&&(Z.disconnect(),q.calendarConfig&&q.calendarConfig.selectedDate&&q.scrollToDate())});
Z.observe(this.JSC$13446_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){Z.disconnect()},1E3)};
_.e.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.e.onDateTextChange=function(){if(this.calendarConfig){var q=this.validateDateText();q.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(q.details)):this.textbox.setAttribute("invalid","")}};
_.e.handleDayClick=function(q){q.model.day.date&&(this.commitDate(q.model.day.date),this.dialog.close())};
_.e.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var q=GwO(this.calendarConfig.selectedDate,this.renderData);q!==void 0&&this.JSC$13446_calendarMain.scrollToIndex(q)}};
_.e.scrollToNextMonth=function(){this.JSC$13446_calendarMain.scrollToIndex(this.JSC$13446_calendarMain.firstVisibleIndex+1)};
_.e.scrollToPrevMonth=function(){this.JSC$13446_calendarMain.firstVisibleIndex===0&&this.JSC$13446_calendarMain.scrollTo(0,0);this.JSC$13446_calendarMain.scrollToIndex(this.JSC$13446_calendarMain.firstVisibleIndex-1)};
_.e.onFormSubmit=function(q){q.preventDefault();this.calendarConfig&&(q=this.validateDateText(),q.isValid&&(this.commitDate(q.details),this.dialog.close()))};
_.e.onEscOrClickingOutside=function(q){q=q.detail.path&&!!q.detail.path.length&&q.detail.path[0];if(q.classList.contains("ytd-calendar-date-picker")){q===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var Z=0;Z<this.dropdownButton.children.length;Z++)this.dropdownButton.children[Z]===q&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}q=this.textbox.value!==this.dateText;Z=this.validateDateText();q&&Z.isValid&&this.commitDate(Z.details);this.dialog.close();this.textbox.value=
this.dateText};
_.e.commitDate=function(q){this.calendarConfig&&(this.set("calendarConfig.selectedDate",q),_.hy(this.hostElement,"ytd-calendar-date-selected",q))};
_.e.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var q=this.textbox.value;var Z=new Date;q=(new PnT(2)).parse(q,Z,{validate:!0})===q.length?NvT(Z):void 0;if(!q)return this.errorMessage=_.dT("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};Z=this.calendarConfig.start;var w=this.calendarConfig.end;if(sS2(q,Z))return this.errorMessage=_.dT("ENTER_DATE_OR_LATER",{allowed_date:Fce(Z)}),{isValid:!1,details:void 0};if(sS2(w,q))return this.errorMessage=
_.dT("ENTER_DATE_OR_EARLIER",{allowed_date:Fce(w)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:q}};
_.My.Object.defineProperties(y8p.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Fce(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var q=this.calendarConfig,Z=[],w=0;w<7;w++)Z.push(u2.NARROWWEEKDAYS[(w+Gy9)%7]);w=[];for(var r=new Date(q.start.year,q.start.month);r.getFullYear()<q.end.year||r.getFullYear()===q.end.year&&r.getMonth()<=q.end.month;){var Y=w,C=Y.push,d=r.getFullYear(),O=r.getMonth(),H=q,L=void 0,S=[],v=Object.freeze({extraCssClass:"invisible",debugClass:""}),R=new Date(d,O),B=NvT(R);R=R.getDay();for(var n=NvT(new Date);B.month===
O;){R!==Gy9&&L||(L=Array.from({length:7}).fill(v),S.push(L));var x={date:{year:d,month:O,day:B.day},extraCssClass:"",debugClass:""};H.selectedDate&&x.date&&Kc9(x.date,H.selectedDate)&&(x.extraCssClass+=" selected");if(sS2(B,H.start)||sS2(H.end,B))x.extraCssClass+=" disabled";Kc9(B,n)&&(x.extraCssClass+=" today");x.extraCssClass=x.extraCssClass.trim();L[(R-Gy9+7)%7]=x;B=cx8(B);R=(R+1)%7}C.call(Y,{weeks:S,monthLabel:u2.SHORTMONTHS[O]+" "+d,year:d,month:O,monthLabelExtraCssClass:S[0][2]===v?"shift-down-label":
""});r.setMonth(r.getMonth()+1)}return{months:w,daysOfWeekLabel:Z}}}}});
var eY=y8p;eY.prototype.onEscOrClickingOutside=eY.prototype.onEscOrClickingOutside;eY.prototype.scrollToDate=eY.prototype.scrollToDate;_.X([_.F(),_.A("design:type",Object)],eY.prototype,"calendarConfig",void 0);_.X([_.F(),_.A("design:type",Object)],eY.prototype,"skipNextOpenDialog",void 0);_.X([_.F(),_.A("design:type",Object)],eY.prototype,"errorMessage",void 0);_.X([_.fo("#textbox"),_.A("design:type",HTMLInputElement)],eY.prototype,"textbox",void 0);
_.X([_.fo("#calendar-dialog"),_.A("design:type",Object)],eY.prototype,"dialog",void 0);_.X([_.fo("#calendar-main"),_.A("design:type",Object)],eY.prototype,"JSC$13446_calendarMain",void 0);_.X([_.fo("#date-picker"),_.A("design:type",HTMLElement)],eY.prototype,"dropdownButton",void 0);_.X([_.I("calendarConfig.selectedDate"),_.A("design:type",String),_.A("design:paramtypes",[])],eY.prototype,"dateText",null);
_.X([_.I("calendarConfig","calendarConfig.selectedDate"),_.A("design:type",Object),_.A("design:paramtypes",[])],eY.prototype,"renderData",null);_.X([_.M("renderData","calendarConfig.selectedDate"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eY.prototype,"scrollToDate",null);_.X([_.m2("iron-overlay-canceled"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],eY.prototype,"onEscOrClickingOutside",null);
eY=_.X([_.dx({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],eY);
_.p(eY,"ytd-calendar-date-picker",function(){if(hq7!==void 0)return hq7;var q=document.createElement("template");_.a(q,'\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="yt-icons:arrow_drop_down" 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" 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" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return hq7=q},{mode:2});var ig9=_.dT("UTC_OFFSET_FORMAT",{utc_offset:(new xO("Z")).format(new Date)}),gmg=(new Date).getTimezoneOffset()*-60,qrp=new Date,ZxD,woW=EE(qrp.getTimezoneOffset());ZxD=hsp(i57(woW,qrp));var r6p=_.dT("LOCAL_TIME_GMT_LABEL",{gmt_text:ZxD.replace("+0","+").replace("-0","-").replace(":00","")}),YrW=function(){var q=_.N.apply(this,arguments)||this;q.selectedTimeIndex=0;q.selectedTimezoneIndex=0;q.timeOfDayOptions=DEX;return q};
_.z(YrW,_.N);_.e=YrW.prototype;_.e.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var q=MtT();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=q,this.selectedTimeIndex=0;else{var Z=loj(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},q,{selectedDate:Z.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(w){return w.secondsSinceMidnight===Z.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.e.onDatePicked=function(q){this.selectedDate=q.detail};
_.e.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.hy(this.hostElement,"ytd-date-time-selection-cancelled")};
_.e.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var q=this.selectedDate;q=new Date(q.year,q.month,q.day);_.hy(this.hostElement,"ytd-date-time-selection-update",Math.floor(q.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+q.getTimezoneOffset()*60))}};
_.e.getTimezoneFormat=function(q){return q.localizedDisplayText?q.localizedDisplayText:_.dT("TIMEZONE_FORMAT",{utc_offset_text:""+q.localizedUtcOffset,city_name:""+q.localizedName})};
_.e.updateSelectedTimeIndexFromBinding=function(q){this.selectedTimeIndex=q.detail.value};
_.e.updateSelectedTimezoneIndexFromBinding=function(q){this.selectedTimezoneIndex=q.detail.value};
_.My.Object.defineProperties(YrW.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var q=this.data.timezoneOptions;var Z={name:"Etc/Unknown",localizedName:_.dT("LOCAL_TIME_LABEL"),localizedUtcOffset:ig9,utcOffsetSec:""+gmg,localizedDisplayText:r6p};q?q.length&&q[0].name!==Z.name&&(q[0].localizedDisplayText||(Z.localizedDisplayText=""),q.unshift(Z)):q=[Z];return q}}},
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]}}});
var CS=YrW;CS.prototype.onDateTimeTimezoneChange=CS.prototype.onDateTimeTimezoneChange;CS.prototype.onDatePicked=CS.prototype.onDatePicked;CS.prototype.updateDefaultSelectedValue=CS.prototype.updateDefaultSelectedValue;_.X([_.F(),_.A("design:type",Object)],CS.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],CS.prototype,"calendarConfig",void 0);_.X([_.F(),_.A("design:type",Object)],CS.prototype,"selectedDate",void 0);
_.X([_.F(),_.A("design:type",Object)],CS.prototype,"selectedTimeIndex",void 0);_.X([_.F(),_.A("design:type",Object)],CS.prototype,"selectedTimezoneIndex",void 0);_.X([_.fo("#time-listbox"),_.A("design:type",Object)],CS.prototype,"timeListBox",void 0);_.X([_.fo("#timezone-listbox"),_.A("design:type",Object)],CS.prototype,"timezoneListBox",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],CS.prototype,"rendererStamperBehavior",void 0);
_.X([_.I("data.timezoneOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],CS.prototype,"timeZones",null);_.X([_.g3("data","timeZones"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],CS.prototype,"updateDefaultSelectedValue",null);_.X([_.I("selectedTimezoneIndex","timeZones"),_.A("design:type",Object),_.A("design:paramtypes",[])],CS.prototype,"selectedTimezone",null);
_.X([_.I("selectedTimeIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],CS.prototype,"selectedTime",null);_.X([_.m2("ytd-calendar-date-selected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],CS.prototype,"onDatePicked",null);_.X([_.M("selectedTimezone","selectedTime","selectedDate"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],CS.prototype,"onDateTimeTimezoneChange",null);
CS=_.X([_.l({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],CS);
_.p(CS,"ytd-date-time-picker-renderer",function(){if(lav!==void 0)return lav;var q=document.createElement("template");_.a(q,'\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="yt-icons:arrow_drop_down" 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="yt-icons:arrow_drop_down" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return lav=q},{mode:1});var $2K;var P_=function(){var q=_.N.apply(this,arguments)||this;q.boundOnTapDismissButton=function(){q.dismissTapHandler()};
q.dismissButtonOverrides={size:"XS"};return q};
_.z(P_,_.N);P_.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}}}}}};
P_.prototype.dismissTapHandler=function(){_.hy(this.hostElement,"yt-backstage-attachment-dismissed")};
P_.prototype.computeAttachmentType=function(q){return q?q.backstageImageRenderer?"image":q.videoRenderer?"video":"none":"none"};
var dE=P_;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],dE.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],dE.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],dE.prototype,"attachmentPreview",void 0);_.X([_.F(),_.A("design:type",Object)],dE.prototype,"dismissButton",void 0);_.X([_.F(),_.A("design:type",Object)],dE.prototype,"boundOnTapDismissButton",void 0);
_.X([_.F(),_.A("design:type",Object)],dE.prototype,"dismissButtonOverrides",void 0);_.X([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.A("design:type",String)],dE.prototype,"attachmentType",void 0);dE=_.X([_.l({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],dE);
_.p(dE,"ytd-backstage-dismissable-attachment",function(){if($2K!==void 0)return $2K;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return $2K=q},{mode:1});var eug;var CL7=function(){var q=_.N.apply(this,arguments)||this;q.selectedVideoId=void 0;q.picker=void 0;q.dismissButtonOverrides={size:"XS"};q.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return q};
_.z(CL7,_.N);_.e=CL7.prototype;_.e.onServiceRequestCompleted=function(q){q.stopPropagation()};
_.e.handleAddVideoPreviewAction=function(q){q=this.get("addVideoPreviewAction",q);this.onGetVideoPreviewSuccess(q)};
_.e.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}}}}}};
_.e.onLaunchVideoPicker=function(q){var Z=this,w=_.kO(this.get("addVideoLinkAction.title",q)),r=this.get("addVideoLinkAction.onePickHostId",q);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",q);r&&(this.picker||(w=_.ZBD(_.Tmz(r).setTitle(w).addView(ym7()).addView(hRD()),function(Y){Z.onPickVideo(Y)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",q)||w.addView("youtube"),this.picker=w.build()),this.picker.setVisible(!0))};
_.e.onPickVideo=function(q){if(q)if(q.action==="cancel")_.hy(this.hostElement,"yt-video-link-button-cancel");else if(q.action==="picked"){q=q.docs;if(!q||q.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(q=(q==null?0:q.length)?q[0]:void 0)?q.id:void 0;this.setVideoPreview()}};
_.e.setVideoPreview=function(){var q=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){q.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.e.onGetVideoPreviewSuccess=function(q){if(q&&q.videoPreview&&q.cancelButton)this.videoPreview=q.videoPreview,this.cancelButton=q.cancelButton,_.hy(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.e.onGetVideoPreviewError=function(){this.cancel()};
_.e.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.hy(this.hostElement,"yt-video-link-cancel")};
_.e.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
var V9=CL7;V9.prototype.onServiceRequestCompleted=V9.prototype.onServiceRequestCompleted;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],V9.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],V9.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],V9.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],V9.prototype,"videoPreview",void 0);_.X([_.F(),_.A("design:type",Object)],V9.prototype,"cancelButton",void 0);_.X([_.F(),_.A("design:type",Object)],V9.prototype,"getVideoPreviewCommand",void 0);_.X([_.F(),_.A("design:type",Object)],V9.prototype,"dismissButtonOverrides",void 0);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],V9.prototype,"onServiceRequestCompleted",null);V9=_.X([_.l({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],V9);
_.p(V9,"ytd-backstage-video-link-attachment",function(){if(eug!==void 0)return eug;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return eug=q},{mode:1});var PLW;var d27;var Vy2;var OB=function(){return _.N.apply(this,arguments)||this};
_.z(OB,_.N);OB.prototype.dataChanged=function(){this.active=!1};
OB.prototype.onTap=function(){_.hy(this.hostElement,"yt-select-emoji-suggestion",this.data)};
OB.prototype.identity=function(q){return q};
_.My.Object.defineProperties(OB.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r;if((q=this.data)==null?0:(Z=q.image)==null?0:(w=Z.thumbnails)==null?0:(r=w[0])==null?0:r.url)return q=this.data.image.thumbnails[0].url,q.startsWith("data:image/svg+xml")?j6(q):_.EX(q)}}});
var H_=OB;H_.prototype.dataChanged=H_.prototype.dataChanged;_.X([_.F(),_.A("design:type",Object)],H_.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],H_.prototype,"active",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],H_.prototype,"dataChanged",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],H_.prototype,"imageSrc",null);
H_=_.X([_.l({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],H_);
_.p(H_,"ytd-emoji-suggestion",function(){if(Vy2!==void 0)return Vy2;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Vy2=q},{mode:1});var OxJ=/.*([:@#].*?)$/,HxW=function(){var q=_.N.apply(this,arguments)||this;q.suggestions=[];q.suggestionIndex=-1;q.JSC$13474_lastSuggestionRange=null;return q};
_.z(HxW,_.N);_.e=HxW.prototype;_.e.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.e.getSuggestions=function(q){var Z=[],w=z5g(this.emojiManager,q.substr(0,3));if(w)for(var r in w)if(r.toLocaleLowerCase().indexOf(q)===0){var Y=w[r];if(Y&&Y.emojiId){Y=jL(this.emojiManager,Y.emojiId);var C=void 0,d=void 0,O=void 0,H=void 0,L=((C=Y)==null?0:C.isCustomEmoji)?(d=Y)==null?void 0:(O=d.shortcuts)==null?void 0:O[0]:(H=Y)==null?void 0:H.emojiId;C=void 0;Z.push({suggestion:{image:(C=Y)==null?void 0:C.image,alt:L,text:r}});if(Z.length>=64)break}}return Z?Z.sort(function(S,v){return v.suggestion.text<
S.suggestion.text?-1:v.suggestion.text===S.suggestion.text?0:1}):null};
_.e.insertSuggestion=function(q){_.hy(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13474_lastSuggestionRange,text:q.alt});this.dropdown.opened=!1};
_.e.updateSuggestionsAtCaret=function(q){this.updateSuggestions(q,this.retrieveTextBeforeRange(q))};
_.e.offsetStartOfRangeBy=function(q,Z){q.startOffset>=Z&&q.setStart(q.startContainer,q.startOffset-Z)};
_.e.updateSuggestions=function(q,Z){var w=this;this.JSC$13474_lastSuggestionRange&&(this.JSC$13474_lastSuggestionRange.detach(),this.JSC$13474_lastSuggestionRange=null);if((Z=OxJ.exec(Z))&&Z.length&&(Z=Z[Z.length-1].toLocaleLowerCase(),Z.length>2||Z===":_")&&(this.offsetStartOfRangeBy(q,Z.length),this.JSC$13474_lastSuggestionRange=q,(q=this.getSuggestions(Z))&&q.length)){this.suggestions=q;_.I_(this,function(){w.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(q.length-1);return}this.dropdown.opened=!1};
_.e.onKeyDown=function(q){if(this.dropdown.opened)switch(q.key){case "Escape":this.dropdown.opened=!1;q.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);q.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);q.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),q.preventDefault()}};
_.e.onKeyUp=function(q,Z){switch(q.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(Z);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(Z)}};
_.e.onKeyPress=function(q){q.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),q.preventDefault())};
_.e.changeSuggestionIndex=function(q){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(q+this.suggestions.length)%this.suggestions.length,q=this.dropdownContent.children[this.suggestionIndex],q.active=!0,this.dropdownContent.scrollTop=q.offsetTop)};
_.e.retrieveTextBeforeRange=function(q){var Z=q.startContainer;return Z&&Z.nodeType===Node.TEXT_NODE?Z.textContent.substr(0,q.startOffset):""};
var W_=HxW;W_.prototype.onKeyPress=W_.prototype.onKeyPress;W_.prototype.onKeyUp=W_.prototype.onKeyUp;W_.prototype.onKeyDown=W_.prototype.onKeyDown;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],W_.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Array)],W_.prototype,"suggestions",void 0);_.X([_.F(),_.A("design:type",_.SL)],W_.prototype,"emojiManager",void 0);_.X([_.F(),_.A("design:type",Number)],W_.prototype,"verticalSuggestionsOffset",void 0);
_.X([_.fo("#dropdown"),_.A("design:type",Object)],W_.prototype,"dropdown",void 0);_.X([_.fo("#dropdown-content"),_.A("design:type",HTMLDivElement)],W_.prototype,"dropdownContent",void 0);_.X([_.m2("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],W_.prototype,"onKeyDown",null);_.X([_.m2("keyup"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent,Range]),_.A("design:returntype")],W_.prototype,"onKeyUp",null);
_.X([_.m2("keypress"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],W_.prototype,"onKeyPress",null);W_=_.X([_.l({disableElementRegistration:!0,is:"ytd-emoji-input"})],W_);
_.p(W_,"ytd-emoji-input",function(){if(d27!==void 0)return d27;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return d27=q},{mode:2});var WdK;var oe9=function(){var q=_.N.apply(this,arguments)||this;q.hasMaxOptions=!1;return q};
_.z(oe9,_.N);_.e=oe9.prototype;_.e.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.e.setPrefilledChoices=function(q){var Z=this;this.set("pollOptions",[]);var w;for(w=0;w<Math.min(q.length,this.data.maxPollOptions);w++)this.push("pollOptions",q[w].substring(0,this.data.maxPollOptionChars));for(;w<this.data.minPollOptions;w++)this.push("pollOptions","");this.hasMaxOptions=w>=this.data.maxPollOptions;_.I_(this,function(){for(var r=Z.pollOptions,Y=_.E(Z.hostElement).querySelectorAll(".poll-option-input"),C=0;C<Y.length;C++)Y[C].value=r[C]})};
_.e.focusChanged=function(){_.po(this.hostElement)};
_.e.onInput=function(){var q=this;_.vp(this,"onInput",function(){q.isValid()?_.hy(q.hostElement,"yt-commentbox-post-enable"):_.hy(q.hostElement,"yt-commentbox-post-disable")},300)};
_.e.setPollOptions=function(){var q=[],Z,w=((Z=this.data)==null?0:Z.minPollOptions)?this.data.minPollOptions:0;for(Z=0;Z<w;Z++)q.push("");return q};
_.e.addPollOption=function(){var q=this;_.hy(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.v5.addLowPriorityJob(function(){var Z;(Z=_.E(q.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||Z.focus()})};
_.e.onRemovePollOption=function(q){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.hy(this.hostElement,"yt-poll-attachment-dismiss")):(q=this.repeat.indexForElement(q.target.parentNode),q!==null&&(this.splice("pollOptions",q,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.hy(this.hostElement,"yt-commentbox-post-enable"))))};
_.e.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.e.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var q=0,Z=this.pollOptions.length;q<Z;q++)if(this.pollOptions[q].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.e.getPollOptions=function(){return this.pollOptions};
_.e.setPollOptionsFromInputs=function(){for(var q=_.E(this.hostElement).querySelectorAll(".poll-option-input"),Z=0;Z<q.length;Z++)this.pollOptions[Z]=q[Z].value.trim()};
_.e.clearPollOptions=function(){var q=_.E(this.hostElement).querySelectorAll(".poll-option-input");q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next())Z.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.e.getSimpleString=function(q){return _.kO(q)};
_.e.updateValueFromBinding=function(q){if(q.target&&this.pollOptions){var Z=Array.from(_.E(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(q.target);if(Z>=0){var w;this.pollOptions[Z]=(w=q.detail.value)!=null?w:"";this.notifyPath("pollOptions."+Z)}}};
var oO=oe9;oO.prototype.dataChanged=oO.prototype.dataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],oO.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],oO.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Array)],oO.prototype,"pollOptions",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],oO.prototype,"hasMaxOptions",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],oO.prototype,"enableCreationBox",void 0);_.X([_.fo("#repeat"),_.A("design:type",eH)],oO.prototype,"repeat",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oO.prototype,"dataChanged",null);oO=_.X([_.l({disableElementRegistration:!0,is:"ytd-poll-attachment"})],oO);
_.p(oO,"ytd-poll-attachment",function(){if(WdK!==void 0)return WdK;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return WdK=q},{mode:2});var uBK;var LdX;var Srv;var ve7;var jKe=function(){return _.N.apply(this,arguments)||this};
_.z(jKe,_.N);_.My.Object.defineProperties(jKe.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
var uZ=jKe;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],uZ.prototype,"rendererBehaviors",void 0);_.X([_.F(),_.A("design:type",Object)],uZ.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],uZ.prototype,"focused",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("focused"),_.A("design:type",Object),_.A("design:paramtypes",[])],uZ.prototype,"ariaSelected",null);uZ=_.X([_.dx({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],uZ);
_.p(uZ,"yt-user-mention-suggestion-renderer",function(){if(ve7===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;Srv===void 0&&(Srv=document.createElement("template"));var r=Srv;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);ve7=q}q=ve7;return q},{mode:2});var tyg;var Ru9;var bxv=function(){var q=_.N.apply(this,arguments)||this;q.focusedSuggestionIndex=-1;return q};
_.z(bxv,_.N);_.e=bxv.prototype;_.e.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.e.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.e.setFocusedSuggestionIndex=function(q){!this.data||!this.data.suggestions||q<0||q>=this.data.suggestions.length||(this.focusedSuggestionIndex=q,q=this.getSuggestionId(q),this._setFocusedSuggestionId(q))};
_.e.advanceSuggestion=function(q){this.focusedSuggestionIndex===-1||q!==-1&&q!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+q),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.e.ensureSuggestionVisible=function(q){q=this.getSuggestionId(q);q=_.E(this.hostElement).querySelector("[id="+q+"]");q!=null&&(q.offsetTop<this.hostElement.scrollTop?q.scrollIntoView(!0):q.offsetTop+q.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&q.scrollIntoView(!1))};
_.e.getSuggestionId=function(q){return"user-mention-suggestion-"+q};
_.e.onSuggestionTap=function(q){var Z=_.J(q.model.item,zpK);this.ytRendererBehavior.logExplicitClick(Z);_.hy(this.hostElement,"yt-user-mention-suggestion-selected",{data:Z,index:q.model.index})};
_.e.onSuggestionMouseMove=function(q){q.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(q.model.index)};
_.e.isSuggestionFocused=function(q,Z){return q===Z};
_.e.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.e.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("focused-suggestion-id-changed",this.focusedSuggestionId))};
var LS=bxv;LS.prototype.focusedSuggestionIdChangedForBinding=LS.prototype.focusedSuggestionIdChangedForBinding;LS.prototype.onDomChange=LS.prototype.onDomChange;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],LS.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],LS.prototype,"focusedSuggestionIndex",void 0);_.X([_.F({readOnly:!0}),_.A("design:type",String)],LS.prototype,"focusedSuggestionId",void 0);
_.X([_.m2("dom-change"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],LS.prototype,"onDomChange",null);_.X([_.M("focusedSuggestionId"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LS.prototype,"focusedSuggestionIdChangedForBinding",null);LS=_.X([_.dx({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],LS);
_.p(LS,"yt-user-mention-suggestions-dropdown",function(){if(Ru9===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;tyg===void 0&&(tyg=document.createElement("template"));var r=tyg;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Ru9=q}q=Ru9;return q},{mode:2});var J6W=function(){var q=_.N.apply(this,arguments)||this;q.suggestionsResponse=null;q.activeMention=null;q.selectionChangeListener=q.onSelectionChange.bind(q);q.handlesEnabled=_.b("enable_handles_in_mention_suggest_posts");q.handlesInMentionSuggestionsEnabled=_.b("handles_in_mention_suggest_posts");q.zeroPrefixMentionSuggestionEnabled=_.b("enable_zero_prefix_mention_suggestion_web");q.pendingQuery=null;q.flowNonce=null;return q};
_.z(J6W,_.N);_.e=J6W.prototype;_.e.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.e.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.e.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.e.hasSuggestions=function(q){return!!(q&&q.suggestions&&q.suggestions.length>0)};
_.e.onInput=function(){var q=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var Z=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),w=this.activeMention.JSC$9109_getText().slice(-1)===" ",r=this.activeMention.JSC$9109_getText().slice(-2,-1)===" ",Y="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9109_getText().slice(-2,-1))>=
0;Y=this.zeroPrefixMentionSuggestionEnabled&&Y;if(this.activeMention.isCollapsed()||(Z||r||Y)&&w)this.cancelActiveMention();else{var C=this.activeMention.JSC$9109_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.vp(this,"requestSuggestions",function(){q.requestSuggestions(C)},100)}}}};
_.e.onServiceRequestSent=function(q){q.stopPropagation()};
_.e.onServiceRequestCompleted=function(q){q.stopPropagation();q=q.detail.data;q.query&&(!this.pendingQuery||this.pendingQuery!==q.query)||!this.zeroPrefixMentionSuggestionEnabled&&q.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=q,this.hasSuggestions(q)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.e.onServiceRequestError=function(q){q.stopPropagation()};
_.e.onUserMentionSuggestionSelected=function(q){this.selectSuggestion(q.detail.data,q.detail.index)};
_.e.onSelectionChange=function(){if(this.activeMention){var q=_.Vt(),Z=this.activeMention.JSC$9109_containsRange(q);q=q&&this.containsHelper(this.dropdown,q.getContainer());Z||q||this.cancelActiveMention()}};
_.e.containsHelper=function(q,Z){var w;if(((w=window.ShadyDOM)==null?void 0:w.noPatch)===!0)return q.contains(Z);for(;Z;){if(Z===q)return!0;Z=Z instanceof ShadowRoot?Z.host:Z.parentNode}return!1};
_.e.maybeStartSuggest=function(){var q=_.Vt();if(q&&q.isCollapsed()){var Z=q.JSC$9109_getStartNode(),w=q.JSC$9109_getStartOffset();if(Z instanceof Text&&!(w<1)){var r=Z.textContent;!(r=r&&r.charAt(w-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(r)<0||(this.activeMention=_.J5(Z,w-1,q.JSC$9109_getEndNode(),q.JSC$9109_getEndOffset()),this.flowNonce=js(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.e.updateActiveMention=function(){if(this.activeMention){var q=_.Vt();q&&q.isCollapsed()&&(this.activeMention=_.J5(this.activeMention.JSC$9109_getStartNode(),this.activeMention.JSC$9109_getStartOffset(),q.JSC$9109_getEndNode(),q.JSC$9109_getEndOffset()))}};
_.e.requestSuggestions=function(q){if(this.activeMention){var Z={suggestions_query:q};this.pendingQuery=q;_.qM(this.hostElement,[this.suggestionsEndpoint,Z])}};
_.e.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()};
_.e.focusPreviousSuggestion=function(q){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),q.preventDefault())};
_.e.focusNextSuggestion=function(q){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),q.preventDefault())};
_.e.selectFocusedSuggestion=function(q){if(this.hasSuggestions(this.suggestionsResponse)){var Z=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.J(Z,zpK)&&(this.selectSuggestion(_.J(Z,zpK),this.dropdown.focusedSuggestionIndex),q.preventDefault())}};
_.e.selectSuggestion=function(q,Z){if(q){var w=this.activeMention;if(w){var r=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&q.handle?_.QW(r,"\u00a0\u2068@"+q.handle+"\u2069\u00a0"):this.handlesEnabled?_.QW(r,"\u00a0"+q.displayName+"\u00a0"):_.QW(r,"\u00a0@"+q.displayName+"\u00a0");KA(r,"/channel/"+q.channelId);r.classList.add("yt-formatted-string","yt-simple-endpoint");r.setAttribute("spellcheck","false");w.isCollapsed()||w.JSC$9109_removeContents();w.insertNode(r,!0);q=document.createTextNode(" ");
r.parentNode.insertBefore(q,r.nextSibling);window.getSelection().collapse(q,1);Z={suggestionSelected:{suggestionIndex:Z}};if(this.zeroPrefixMentionSuggestionEnabled){var Y;Z.suggestionSelected.isZeroPrefix=((Y=this.suggestionsResponse)==null?void 0:Y.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",Z);this.cancelActiveMention();_.hy(this.hostElement,"yt-mention-inserted")}}};
_.e.getPositionTarget=function(q){return q&&q.getBrowserRangeObject()};
_.e.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.e.onFocusedSuggestionIdChanged=function(q){var Z=_.N86(this.hostElement)[0];Z&&(q.detail.value?Z.setAttribute("aria-activedescendant",q.detail.value):Z.removeAttribute("aria-activedescendant"))};
_.e.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.e.logGELEvent=function(q,Z){q={eventType:q,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};Z&&(q=Object.assign(q,Z));_.vO("userMentionAutoCompleteBoxEvent",q)};
var SY=J6W;SY.prototype.onDomChange=SY.prototype.onDomChange;SY.prototype.onUserMentionSuggestionSelected=SY.prototype.onUserMentionSuggestionSelected;SY.prototype.onServiceRequestError=SY.prototype.onServiceRequestError;SY.prototype.onServiceRequestCompleted=SY.prototype.onServiceRequestCompleted;SY.prototype.onServiceRequestSent=SY.prototype.onServiceRequestSent;SY.prototype.onInput=SY.prototype.onInput;_.X([_.U(_.Pt),_.A("design:type",Object)],SY.prototype,"ironA11yKeysBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],SY.prototype,"suggestionsEndpoint",void 0);_.X([_.F(),_.A("design:type",Object)],SY.prototype,"suggestionsResponse",void 0);_.X([_.F(),_.A("design:type",Object)],SY.prototype,"activeMention",void 0);_.X([_.fo("#dropdown"),_.A("design:type",Object)],SY.prototype,"dropdown",void 0);_.X([_.fo("#iron-dropdown"),_.A("design:type",Object)],SY.prototype,"ironDropdown",void 0);
_.X([_.m2("input"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],SY.prototype,"onInput",null);_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],SY.prototype,"onServiceRequestSent",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],SY.prototype,"onServiceRequestCompleted",null);
_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],SY.prototype,"onServiceRequestError",null);_.X([_.m2("yt-user-mention-suggestion-selected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],SY.prototype,"onUserMentionSuggestionSelected",null);
_.X([_.m2("dom-change"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],SY.prototype,"onDomChange",null);SY=_.X([_.dx({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],SY);
_.p(SY,"yt-user-mention-autosuggest-input",function(){if(LdX===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;uBK===void 0&&(uBK=document.createElement("template"));var r=uBK;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);LdX=q}q=LdX;return q},{mode:2});var v_=null;
_.$l({is:"ytd-commentbox",_template:function(){if(PLW!==void 0)return PLW;var q=document.createElement("template");_.a(q,'\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="yt-icons:arrow_drop_down" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return PLW=q},
behaviors:[_.Bqz.YtHostElementBehavior,_.Pt,_.KK.YtActionHandlerBehavior,_.S_.YtComponentBehavior,_.kb.YtRendererstamperBehavior,_.I02.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(q,Z){return _.iI(q.entities,"aadcGuidelinesStateEntityPayload",Z)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(q,Z){return _.iI(q.entities,"commentboxStateEntity",Z)},
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 _.tC}},
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:_.b("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.b("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",_.XN(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(q){this.fire(q?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(q){this.set("submitButtonDisabled",void 0);this.clear();q&&this.computeIsEmojiButtonDisplayed_(q)&&(q=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&q.updateEmojiCategories()},
observePrefilledImage_:function(q,Z,w){this.isValidPrefilledImage_(q,Z,w)&&(this.prefilledAttachment_="image",this.prefilledImageData_=Z,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(q,Z){this.isValidPrefilledVideo_(q,Z)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(q){q&&q.pollData&&q.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(q.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.g2();this.focus()},
detached:function(){document.removeEventListener("tap",_.XN(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(q){q=q.detail;q=q.isCustomEmoji?q.shortcuts[0]:q.emojiId;var Z=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(Z,q);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var q=_.Vt();if(q){q=q.getBrowserRangeObject();for(var Z=q.commonAncestorContainer;Z;){if(Z===this.getEditableTextArea_())return q;Z=Z.parentNode}}q=this.getEditableTextArea_();q=_.bB(q,q.childNodes.length);q.select();return q.getBrowserRangeObject()},
insertTextWithEmojis_:function(q,Z,w){(Z=this.emojiManager.createDocumentFragment(Z,!0,!1,w===void 0?!0:w))&&Z.childNodes.length!==0&&(q.collapsed||q.deleteContents(),w=Z.lastChild,q.insertNode(Z),_.SDv(w).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var q=_.Vt();if(q){var Z=q.JSC$9109_getStartNode(),w=q.JSC$9109_getEndNode();if(pT9(Z)&&pT9(w)){var r=q.JSC$9109_getStartOffset(),Y;if(_.$Z&&Z.nodeType===Node.ELEMENT_NODE&&(Y=_.edv(Z)))_.bB(Y,0).select();else{Y=CP(Z)?Z:_.E3(Z,CP);var C=CP(w)?w:_.E3(w,CP);if(Y||C)if(q.isCollapsed()){if(Z.nodeType===Node.TEXT_NODE){q=!0;r===Z.length&&(q=!1);if(v_==="end"||v_==="right")q=!1;Z=Z.parentNode;q=[].concat(_.Ju(Z.parentNode.childNodes)).indexOf(Z)+(q?0:1);_.bB(Z.parentNode,q).select()}}else Y?
Y.previousSibling&&Y.previousSibling.length>0?_.J5(w,q.JSC$9109_getEndOffset(),Y.previousSibling,Y.previousSibling.length-1).select():(Z=document.createTextNode("\u200b"),Y.parentNode.insertBefore(Z,Y),_.J5(w,q.JSC$9109_getEndOffset(),Z,0).select()):C&&(C.nextSibling&&C.nextSibling.length>0?_.J5(Z,q.JSC$9109_getStartOffset(),C.nextSibling,1).select():(w=document.createTextNode("\u200b"),C.parentNode.insertBefore(w,C.nextSibling),_.J5(Z,q.JSC$9109_getStartOffset(),w,w.length).select()));v_=null}}else v_=
null}else v_=null},
leftKeyPressed_:function(){v_="left"},
rightKeyPressed_:function(){v_="right"},
endKeyPressed_:function(){v_="end"},
maybeDeleteChip_:function(){var q=hzj(!0);if(q){var Z=_.Vt(),w=Z.JSC$9109_getStartNode();Z=Z.JSC$9109_getStartOffset();_.Sg(w,Z,q,q.childNodes.length).select()}},
maybeBackspaceChip_:function(){var q=hzj(!1);if(q){var Z=_.Vt(),w=Z.JSC$9109_getStartNode();Z=Z.JSC$9109_getStartOffset();_.Sg(w,Z,q,0).select()}},
maybeBackspaceChipWordMode_:function(q){var Z=_.Vt();if(Z.isCollapsed()){var w=Z.JSC$9109_getStartNode();Z=Z.JSC$9109_getStartOffset();var r=yx9(w,Z,!0);r&&(_.Sg(w,Z,r,0).select(),document.execCommand("delete"),q.preventDefault(),q.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(q){var Z=_.Vt();if(Z.isCollapsed()){var w=Z.JSC$9109_getStartNode();Z=Z.JSC$9109_getStartOffset();var r=yx9(w,Z,!1);r&&(_.Sg(w,Z,r,r.childNodes.length).select(),document.execCommand("delete"),q.preventDefault(),q.stopImmediatePropagation())}},
onTap_:function(q){if(!q.defaultPrevented&&(q.currentTarget.tagName==="YTD-COMMENTBOX"&&CP(q.target)&&q.preventDefault(),this.isEmojiPickerDisplayed)){var Z=this.$$("#emojis"),w=this.$$("#emoji-button"),r=this.getEditableTextArea_();if((q=q.path?q.path:q.composedPath&&q.composedPath())&&!q.includes(Z)&&!q.includes(r)&&!q.includes(w))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(q,Z,w){return q==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&Z!==void 0&&Z.encryptedBlobId!==null&&Z.sourceExternalVideoId!==null&&w!==void 0&&w.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(q,Z){return q==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!Z&&!!Z.videoRenderer&&!!Z.videoRenderer.videoId},
isValidPrefilledAttachment_:function(q,Z,w){return this.isValidPrefilledImage_(q,Z,w)||this.isValidPrefilledVideo_(q,w)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.b("enable_multi_image_post_creation")){var q=this.$$("ytd-backstage-multi-image-select-renderer");q&&q.hasImages()&&q.cancel()}else(q=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&q.cancel();(q=this.$["poll-attachment"])&&this.hasPoll_&&q.clearPollOptions();(q=this.$["image-poll-attachment"])&&this.hasImagePoll_&&q.resetPollOptions();(q=this.$["quiz-attachment"])&&this.hasQuiz_&&q.resetQuizOptions();
(q=this.$["video-link-attachment"])&&this.hasVideo_&&q.cancel();(q=this.$["access-restrictions-selector"].firstElementChild)&&q.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 _.E(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.E(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(q,Z){q=mze(q,this.emojiManager,Z).cloneNode(!0);for(Z=q.firstChild;Z;)if(Z.nodeType!==1)Z=Z.nextSibling;else switch(Z.tagName){case "BR":var w=_.Rr();_.ov9(w,Z);Z=w.nextSibling;break;case "DIV":(w=Z.lastChild)&&Z.nextSibling&&_.ar(_.Rr(),w);Z.previousSibling&&(Z.previousSibling.nodeType===1||Z.previousSibling.nodeType===3&&!Z.previousSibling.textContent.endsWith("\n"))&&_.Br(_.Rr(),Z);w&&w.nodeName==="BR"&&_.Vb(w);w=Z;Z.hasChildNodes()?(Z=Z.firstChild,
_.u59(w)):(Z=Z.nextSibling,_.Vb(w));break;default:Z=Z.nextSibling}return i$I(q)},
onAddImageError_:function(q){q.stopPropagation();this.errorMessage_=_.UE(q.detail)},
setTextAreaValue_:function(q){q||(q="");var Z=this.getEditableFormattedString_();Z.text="";this.getEditableTextArea_().innerText="";typeof q==="string"&&(q={runs:[{text:q}]});Z.text=q},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();v_=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var q=this.getEditableTextArea_();q&&(_.bB(q,q.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.zj("HTML_DIR")==="rtl"){var q=this.getEditableTextArea_(),Z=this.getTextAreaValue()!==""?"auto":"rtl";q.setAttribute("dir",Z)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var q;return gXO((q=this.$["quiz-attachment"])==null?void 0:q.getExplanationText())||gXO(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var q=null;if(this.isEmojiButtonDisplayed){var Z=this.getInputRange_();Z&&(q=this.emojiInput.retrieveTextBeforeRange(Z))}this.insertText_(q,!0);this.updateCharCount_();this.setSubmitButton_();q=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=q.scrollHeight>q.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var q=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:q})},
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(q){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(q)},
onPasteEmoji_:function(q){q.preventDefault();q.stopImmediatePropagation();q=q.clipboardData.getData("text/plain");this.insertText_(q,!1,!1)},
insertText_:function(q,Z,w){Z=Z===void 0?!1:Z;w=w===void 0?!0:w;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&q){var r=this.getInputRange_().cloneRange();this.emojiManager&&r&&(Z&&this.emojiInput.offsetStartOfRangeBy(r,q.length),this.insertTextWithEmojis_(r,q,w),XT1(this.getEditableTextArea_().lastChild)||(r=this.getInputRange_().cloneRange()),r&&(this.emojiInput.updateSuggestions(r,q),this.updateSuggestionOffset_(r)))}},
setSubmitButton_:function(){if(this.data){var q=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",Z=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(q||Z){var w=this.getTextAreaValue().trim();Z=w===this.previousText_;w=!w||this.aboveCharLimit_;q&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(w=this.aboveCharLimit_);this.submitButtonDisabled=
Z||w||!this.getTextLength();q&&_.b("enable_post_scheduling")&&(this.submitButtonDisabled=Z&&!this.scheduledPublishTimeSec_||w)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.kO,computeCreationBoxClass_:function(q){return q?"focused":"not-focused"},
computeFooterMessageClass_:function(q,Z){return Z?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(q,Z){return Z?Z:q},
computeFooterMessageHidden_:function(q,Z){return!Z&&!q},
computePlaceholderText_:function(q,Z,w){return(w==="video"||w==="image")&&(q==null?0:q.prefilledPlaceholderText)?q==null?void 0:q.prefilledPlaceholderText:Z==="poll"||Z==="image-poll"?q==null?void 0:q.pollPostPlaceholderText:Z==="quiz"?q==null?void 0:q.quizPostPlaceholderText:Z==="image"?q==null?void 0:q.imagePostPlaceholderText:q==null?void 0:q.placeholderText},
computeHideAttachmentButtons_:function(q,Z,w,r){return q===void 0?!1:r&&this.getSimpleString(r)===this.getSimpleString(q.rateLimitErrorMessage)?!0:Z!=="none"||w!=="none"||!q.videoLinkButton&&!q.pollButton&&!q.imagePollButton&&!q.quizButton&&!q.imageButton},
computeHideDismissableAttachment_:function(q){return q!=="image"&&q!=="video"},
computeHasVideo_:function(q){return q==="video"},
computeHasImage_:function(q){return q==="image"},
computeHasPoll_:function(q){return q==="poll"},
computeHasImagePoll_:function(q){return q==="image-poll"},
computeHasQuiz_:function(q){return q==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(q){return q&&q.backstageAttachment?q.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!q.backstageAttachment.quizRenderer&&!q.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(q){if(this.isValidPrefilledAttachment_(q.purpose,q.prefilledImageData,q.backstageAttachment))return q.backstageAttachment},
computeEditAttachment_:function(q){if(this.computePrefilledContent_(q)===void 0)return q.backstageAttachment},
computeAuthorThumbnailDimension_:function(q,Z){return q&&!Z?24:40},
computeImageUploadEndpoint_:function(q){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",q)},
computeRateLimitErrorCommands_:function(q){var Z,w;return q==null?void 0:(Z=q.advancedTierFeatures)==null?void 0:(w=Z.rateLimit)==null?void 0:w.rateLimitCommands},
computeIsBackstageComment_:function(q){return!(!q||q!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(q){return this.get("submitButton.buttonRenderer.serviceEndpoint",q)||this.get("replyButton.buttonRenderer.serviceEndpoint",q)||this.get("postButton.buttonRenderer.serviceEndpoint",q)},
computeSubmitButtonOverride:function(){if(_.b("web_modern_buttons")){var q,Z;return{segmentedPosition:this.dropdownSchedulePanel_||!((q=this.data)==null?0:(Z=q.postOptionsMenu)==null?0:Z.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.b("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(q,Z){q=this.get("submitButton.buttonRenderer",q)||this.get("replyButton.buttonRenderer",q)||this.get("postButton.buttonRenderer",q);Z&&(q=Z);q&&(q=Object.assign({},q),q.serviceEndpoint=void 0,q.isDisabled=this.submitButtonDisabled);return q},
computeHasExternalLinksAccess_:function(q){if(_.b("enable_rfa_external_links")){var Z,w,r;return(r=q==null?void 0:(Z=q.advancedTierFeatures)==null?void 0:(w=Z.externalLinks)==null?void 0:w.allowExternalLinks)!=null?r:!0}return!0},
computeIsEmojiButtonDisplayed_:function(q){return q.emojiButton&&q.emojiPicker&&q.emojiPicker.emojiPickerRenderer&&q.emojiPicker.emojiPickerRenderer.categories?q.emojiPicker.emojiPickerRenderer.categories.find(function(Z){return Z.emojiPickerCategoryRenderer?Z.emojiPickerCategoryRenderer.emojiIds&&Z.emojiPickerCategoryRenderer.emojiIds.length>0:Z.emojiPickerUpsellCategoryRenderer?Z.emojiPickerUpsellCategoryRenderer.emojis&&Z.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(q){return q.charLimit?q.charLimit:null},
computeDropdownSchedulingPanel_:function(q,Z){if(q==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&Z)return Z},
computeInlineSchedulingPanel_:function(q,Z){if(q==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&Z)return Z},
computeHideAuthorThumbnail_:function(q,Z){return q||this.computeUseIdentityChip_(Z)},
computeHideIdentityChipRenderer_:function(q,Z){return q||!this.computeUseIdentityChip_(Z)},
computeUseIdentityChip_:function(q){return!!q&&!!q.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(q){var Z,w,r,Y;(q==null?0:(Z=q.detail)==null?0:(w=Z.endpoint)==null?0:w.ypcGetOffersEndpoint)||(q==null?0:(r=q.detail)==null?0:(Y=r.endpoint)==null?0:Y.ypcOffersEndpoint)?(q.stopPropagation(),_.qM(this,[q.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",q)&&(q.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(q){this.addedAttachment="video";this.selectedVideoId_=q.detail.videoId},
commentboxStateEntityChanged_:function(q){var Z=this;(q==null?void 0:q.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(q==null?void 0:q.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){Z.focus()})},
onYtServiceRequestSent_:function(q,Z){if(Z.actions)for(q=_.P(Z.actions),Z=q.next();!Z.done;Z=q.next())Z.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(q){this.isLoading=!1;var Z=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",q),w,r,Y,C=q==null?void 0:(w=q.detail)==null?void 0:(r=w.data)==null?void 0:(Y=r.actionResult)==null?void 0:Y.commentboxStateEntityKey;if(Z)this.errorMessage_=Z;else if(C){var d;this.dismissData_=q==null?void 0:(d=q.detail)==null?void 0:d.data;this.commentboxStateKey_=C}else{this.clear();var O;this.fire("yt-commentbox-dismiss",q==null?void 0:(O=q.detail)==
null?void 0:O.data)}},
onYtServiceRequestError_:function(q){q.stopPropagation();this.isLoading=!1;var Z,w;if(((Z=this.data)==null?void 0:Z.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((w=this.data)==null?void 0:w.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(Z=this.get("detail.error.args",q)||[],Z.length>1&&Z[1].message){this.handlePostsServiceRequestError_(Z[1].message);return}(q=this.get("detail.error.message",q))?this.errorMessage_=this.data.errorMessage||_.UE(q):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(q){if(_.b("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var Z=_.P(this.rateLimitErrorCommands),w=Z.next();!w.done;w=Z.next())if(w=w.value,w.errorLabel===q){_.f5(w.command,this.hostElement);return}this.errorMessage_=_.UE(q)},
submitIfNotBackstagePost_:function(q){if(!this.isBackstagePost)this.onSubmit_(q)},
onSubmit_:function(q){var Z=this,w,r,Y,C,d,O,H,L,S,v,R,B,n,x,K;return _.V(function(k){switch(k.nextAddress){case 1:q.stopPropagation();if(!Z.serviceEndpoint||!Z.isValidInput_())return k.return();if(Z.shouldShowPostAadcNotice_())return Z.showPostAadcNotice_(),k.return();if(Z.shouldShowCommentAadcNotice_())return Z.showCommentAadcNotice_(),k.return();if(!(Z.$$("ytd-backstage-multi-image-select-renderer")&&Z.hasImage_&&_.b("enable_multi_image_post_creation"))){k.jumpTo(2);break}w=Z.$$("ytd-backstage-multi-image-select-renderer");
return _.W(k,w.getAllUploadStatuses(),3);case 3:r=k.yieldResult;if(!r)return k.return();Y=_.P(r);for(C=Y.next();!C.done;C=Y.next())if(d=C.value,d.encryptedBlobId===void 0)return Z.isLoading=!1,H=O=void 0,Z.errorMessage_=(H=(O=Z.imageUploadEndpoint_)==null?void 0:O.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?H:null,k.return();return k.return(Z.submitForm_(void 0,void 0,void 0,void 0,w.images,Z.taggedVideoId_));case 2:if(!Z.hasImagePoll_||!Z.$["image-poll-attachment"]){k.jumpTo(4);
break}return _.W(k,Z.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:L=k.yieldResult;if(!L)return k.return();S=_.P(L);for(v=S.next();!v.done;v=S.next())if(R=v.value,!R.encryptedBlobId)return Z.isLoading=!1,B=void 0,Z.errorMessage_=(B=Z.data.errorMessage)!=null?B:null,k.return();case 4:x=(n=Z.$$("ytd-backstage-image-select-renderer"))&&n.uploadPromise(),K=Z.getSharedPostId_(),x?x.then(function(){Z.submitForm_.apply(Z,_.Ju(_.Ta.apply(0,arguments)))}).catch(function(G){Z.isLoading=!1;
Z.errorMessage_=_.UE(G.message)}):Z.selectedVideoId_?Z.submitForm_(void 0,Z.selectedVideoId_):Z.prefilledAttachment_==="image"?Z.submitForm_(Z.prefilledImageData_.encryptedBlobId,void 0,void 0,Z.prefilledImageData_.sourceExternalVideoId,void 0,Z.taggedVideoId_):Z.prefilledAttachment_==="video"?Z.submitForm_(void 0,Z.data.backstageAttachment.videoRenderer.videoId):K?Z.submitForm_(void 0,void 0,K):Z.taggedVideoId_!==void 0?Z.submitForm_(void 0,void 0,void 0,void 0,void 0,Z.taggedVideoId_):Z.submitForm_(),
_.ub(k)}})},
openSchedulingPanel:function(q){q&&q.scheduleButton&&q.scheduleButton.buttonRenderer&&(this.scheduleButton_=q.scheduleButton.buttonRenderer);q&&q.dateTimePicker&&this.set("data.schedulingDateTimePicker",q.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(q){q.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(q){q.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(q){q.stopPropagation();q.detail.alertMessage&&(this.alertMessage_=q.detail.alertMessage)},
onImageSelected_:function(q){q.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(q){q.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(q){q.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(q.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(q){q.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(q){var Z=this.$["video-link-attachment"];Z&&Z.onLaunchVideoPicker(q)},
onAttachmentDismiss_:function(q){q.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"&&_.b("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.b("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 q;if(this.addedAttachment==="image-poll"&&((q=this.$["image-poll-attachment"])==null||!q.isValid()))return!1;var Z;if(this.addedAttachment==="quiz"&&((Z=this.$["quiz-attachment"])==null||!Z.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;q=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(q=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")q=!0;return q||!!this.getTextAreaValue().trim()},
submitForm_:function(q,Z,w,r,Y,C){var d=this.getTextAreaValue().trim(),O={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&d===this.previousText_&&(d=void 0);d!==void 0&&(O.comment_text=d);this.isLoading=!0;C!=void 0&&(O.tagged_video_id=C);q?(O.image_blob_id=q,this.imagePreviewCoordinates_&&(O.image_preview_coordinates=this.imagePreviewCoordinates_)):Z?O.attached_video_id=Z:w?O.shared_post_id=w:Y&&Y.length>0&&(O.images_data=Y.map(function(H){return{encryptedBlobId:H.encryptedBlobId,
previewCoordinates:H.previewCoordinates}}));
r&&(O.source_video_id=r);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(O.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(O.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(O.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.b("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(O.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.b("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(O.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.qM(this,[this.serviceEndpoint,O])},
onIsInputFocusChanged_:function(q,Z){q?this.fire("yt-autonav-pause-focus"):Z!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(q){var Z=this.getEditableTextArea_();[].concat(_.Ju(q.dataTransfer.items)).forEach(function(w){w.kind==="string"&&w.type.match("^text/plain")&&w.getAsString(function(r){Z.appendChild(document.createTextNode(r))})});
q.preventDefault()},
preventDefault_:function(q){q.preventDefault()},
onSuggestionInsert_:function(q){this.insertTextWithEmojis_(q.detail.range,q.detail.text)},
onEmojiSuggestionClick_:function(q){this.emojiInput.insertSuggestion(q.detail)},
computeSubmitButtonClass_:function(q,Z){return!Z||q?"":"with-options"},
updateSuggestionOffset_:function(q){if(this.emojiInput&&_.E(this.emojiInput).querySelector("#dropdown")){var Z=this.getEditableTextArea_().getBoundingClientRect().bottom,w=q.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(Z-w)+5;Z=this.getEditableTextArea_().getBoundingClientRect().left;q=q.getBoundingClientRect().left-Z;_.E(this.emojiInput).querySelector("#dropdown").style.marginLeft=q+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(q){if(_.b("enable_post_scheduling")&&this.data&&this.data.purpose){q=q.detail;if(Math.floor(Date.now()/1E3)>=q)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var Z=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(Z)||Z!==q?this.scheduledPublishTimeSec_=q:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=q;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var q=["image-button","image-poll-button","poll-button"];_.b("enable_quiz_creation")&&q.push("quiz-button");_.b("auto_convert_posts_video_tag")||q.push("video-link-button");return q},
getButtonRenderer:function(q,Z){if(q)switch(Z){case "video-link-button":var w;return((w=q.videoLinkButton)==null?void 0:w.buttonRenderer)||void 0;case "image-button":var r;return((r=q.imageButton)==null?void 0:r.buttonRenderer)||void 0;case "poll-button":var Y;return((Y=q.pollButton)==null?void 0:Y.buttonRenderer)||void 0;case "image-poll-button":var C;return((C=q.imagePollButton)==null?void 0:C.buttonRenderer)||void 0;case "quiz-button":var d;return((d=q.quizButton)==null?void 0:d.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var q;return(q=this.data)==null||!q.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var q,Z;return!((q=this.data)==null||!q.openAadcDialog)&&!((Z=this.aadcGuidelinesState_)==null||!Z.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.zj("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var q;((q=this.data)==null?0:q.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.zo("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(q){q.clickTrackingParams&&_.iy().clickCommand(q);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.yY(this,"yt-close-popup-action")},
onHideIdentityChip:function(q){var Z;this.set("data.placeholderText",(Z=q.hideIdentityChipAction)==null?void 0:Z.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var zuX=function(){var q=_.N.apply(this,arguments)||this;q.isOpen=!1;q.modern=_.b("web_modern_buttons");q.roundedContainer=!0;q.dropdownButtonOverride=_.b("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;q.inPopupContainer=!1;q.isCommentboxLoading=!1;var Z=["image-button","image-poll-button","poll-button"];_.b("enable_quiz_creation")&&Z.push("quiz-button");_.b("auto_convert_posts_video_tag")||Z.push("video-link-button");q.attachmentButtonIds=Z;q.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 q};
_.z(zuX,_.N);_.e=zuX.prototype;_.e.computeButtonOverride=function(){var q;return((q=this.data)==null?0:q.postOptionsMenu)&&_.b("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.e.configureRendererStamper=function(){var q={"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:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.b("auto_convert_posts_video_tag")||(q["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return q};
_.e.ready=function(){var q=this,Z=_.E(this.hostElement).querySelector("#placeholder-area"),w=function(r){q.onOpen(r)};
Z.addEventListener("tap",w);Z.addEventListener("keypress",w)};
_.e.showButtonEduTooltip=function(){var q,Z,w,r,Y,C,d;if(_.b("enable_quiz_creation")&&((q=this.data)==null?0:(Z=q.quizButton)==null?0:(w=Z.buttonRenderer)==null?0:(r=w.hint)==null?0:(Y=r.hintRenderer)==null?0:(C=Y.content)==null?0:(d=C.bubbleHintRenderer)==null?0:d.text)&&(_.Nk.getInstance(),q=l8(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(q==null?void 0:
q.length)>0)){this.ytComponentBehavior.resolveCommand(q[0],{form:{element:this.quizButton}});return}var O;if((O=this.data)==null?0:O.imagePollButtonTooltip)if(_.Nk.getInstance(),O=l8(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(O==null?void 0:O.length)>0){this.ytComponentBehavior.resolveCommand(O[0],{form:{element:this.imagePollButton}});return}var H;_.b("enable_multi_image_post_creation")&&
((H=this.data)==null?0:H.multiImageButtonTooltip)&&(_.Nk.getInstance(),H=l8(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(H==null?void 0:H.length)>0&&this.ytComponentBehavior.resolveCommand(H[0],{form:{element:this.imageButton}}))};
_.e.onCreatePollAction=function(q){_.J(q,mC7)&&(this.JSC$13529_commentbox.addedAttachment="poll",this.openDialog())};
_.e.onAddVideoLinkAction=function(q){if(_.J(q,XD7))this.JSC$13529_commentbox.onAddVideoLink(q)};
_.e.onShowSchedulingPanelCommand=function(q){(q=_.J(q,t3h))&&this.openSchedulingPanel(q)};
_.e.onCreateImagePollCommand=function(q){_.J(q,bHK)&&(this.JSC$13529_commentbox.openImagePollComponent(),this.openDialog())};
_.e.onCreateQuizCommand=function(q){_.J(q,JAp)&&(this.JSC$13529_commentbox.openQuizComponent(),this.openDialog())};
_.e.openSchedulingPanel=function(q){_.b("enable_post_scheduling")&&(this.openDialog(),this.JSC$13529_commentbox.openSchedulingPanel(q))};
_.e.onCreateCommentAction=function(q){this.get("createCommentAction.contents",q)&&(this.JSC$13529_commentbox.clear(),this.closeDialog())};
_.e.onOpen=function(q){q instanceof KeyboardEvent&&q.type==="keypress"&&q.keyCode!==13&&q.keyCode!==32||(this.data.prepareAccountEndpoint?_.hy(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.e.onYtCommentboxDismiss=function(){this.closeDialog()};
_.e.onYtCommentboxLoadingStart=function(q){q.stopPropagation();this.isCommentboxLoading=!0};
_.e.onYtCommentboxLoadingEnd=function(q){q.stopPropagation();this.isCommentboxLoading=!1};
_.e.onYtVideoLinkButtonCancel=function(q){q.stopPropagation();this.onOpen(q)};
_.e.onYtVideoLinkSelected=function(q){q.stopPropagation();this.onOpen(q)};
_.e.onIronSelect=function(q){q.stopPropagation();q.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=q.detail.item.value&&(this.accessRestriction?(this.accessRestriction=q.detail.item.value,this.onOpen(q)):this.accessRestriction=q.detail.item.value)};
_.e.onYtNavigate=function(q){this.get("detail.endpoint.backstageImageUploadEndpoint",q)&&(this.JSC$13529_commentbox.addedAttachment="image",this.JSC$13529_commentbox.submitButtonDisabled=!0,this.onOpen(q))};
_.e.onRequestSent=function(q){if(_.b("web_button_rework"))for(var Z=_.P(q.detail),w=Z.next();!w.done;w=Z.next())_.J(w.value,Kbp)&&(this.JSC$13529_commentbox.addedAttachment="image",this.JSC$13529_commentbox.submitButtonDisabled=!0,this.onOpen(q))};
_.e.openDialog=function(){this.JSC$13529_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13529_commentbox.focus()};
_.e.onPopupClosed=function(){_.Nk.getInstance()};
_.e.computeCreationDisabled=function(q){return!!q};
_.e.computeIsCreationDialog=function(q){return!!q&&q==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.e.computeDisabledPostButton=function(q){if(!q)return null;q.isDisabled=!0;return q};
_.e.computeIsCreationDialogWithHeader=function(q){return!this.inPopupContainer&&!!q&&!!q.authorText&&q.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.e.computeIsHeaderHidden=function(q,Z){return!q||Z};
_.e.computeDropdownRendererClasses=function(q){return q?["text-secondary-style"]:[]};
_.e.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var q=_.E(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;q&&q.reset()};
var jY=zuX;jY.prototype.onPopupClosed=jY.prototype.onPopupClosed;jY.prototype.onRequestSent=jY.prototype.onRequestSent;jY.prototype.onYtNavigate=jY.prototype.onYtNavigate;jY.prototype.onIronSelect=jY.prototype.onIronSelect;jY.prototype.onYtVideoLinkSelected=jY.prototype.onYtVideoLinkSelected;jY.prototype.onYtVideoLinkButtonCancel=jY.prototype.onYtVideoLinkButtonCancel;jY.prototype.onYtCommentboxLoadingEnd=jY.prototype.onYtCommentboxLoadingEnd;jY.prototype.onYtCommentboxLoadingStart=jY.prototype.onYtCommentboxLoadingStart;
jY.prototype.onYtCommentboxDismiss=jY.prototype.onYtCommentboxDismiss;jY.prototype.showButtonEduTooltip=jY.prototype.showButtonEduTooltip;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],jY.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],jY.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],jY.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],jY.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],jY.prototype,"isOpen",void 0);_.X([_.F({computed:"computeButtonOverride(data)"}),_.A("design:type",Object)],jY.prototype,"buttonOverride",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],jY.prototype,"modern",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],jY.prototype,"roundedContainer",void 0);_.X([_.F(),_.A("design:type",Object)],jY.prototype,"dropdownButtonOverride",void 0);_.X([_.F({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.A("design:type",Boolean)],jY.prototype,"creationDisabled",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],jY.prototype,"enableCreationBox",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.A("design:type",Boolean)],jY.prototype,"isCreationDialog",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],jY.prototype,"inPopupContainer",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.A("design:type",Boolean)],jY.prototype,"isCreationDialogWithHeader",void 0);_.X([_.F(),_.A("design:type",Object)],jY.prototype,"accessRestriction",void 0);
_.X([_.F({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.A("design:type",Array)],jY.prototype,"dropdownRendererClasses",void 0);_.X([_.F(),_.A("design:type",Object)],jY.prototype,"isCommentboxLoading",void 0);_.X([_.F(),_.A("design:type",Array)],jY.prototype,"attachmentButtonIds",void 0);_.X([_.fo("#image-button"),_.A("design:type",HTMLElement)],jY.prototype,"imageButton",void 0);
_.X([_.fo("#image-poll-button"),_.A("design:type",HTMLElement)],jY.prototype,"imagePollButton",void 0);_.X([_.fo("#quiz-button"),_.A("design:type",HTMLElement)],jY.prototype,"quizButton",void 0);_.X([_.fo("#commentbox"),_.A("design:type",Object)],jY.prototype,"JSC$13529_commentbox",void 0);_.X([_.M("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jY.prototype,"showButtonEduTooltip",null);
_.X([_.m2("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],jY.prototype,"onYtCommentboxDismiss",null);_.X([_.m2("yt-commentbox-loading-start"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],jY.prototype,"onYtCommentboxLoadingStart",null);
_.X([_.m2("yt-commentbox-loading-end"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],jY.prototype,"onYtCommentboxLoadingEnd",null);_.X([_.m2("yt-video-link-button-cancel"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],jY.prototype,"onYtVideoLinkButtonCancel",null);
_.X([_.m2("yt-video-link-selected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],jY.prototype,"onYtVideoLinkSelected",null);_.X([_.m2("iron-select"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],jY.prototype,"onIronSelect",null);_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],jY.prototype,"onYtNavigate",null);
_.X([_.m2("yt-service-request-sent-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],jY.prototype,"onRequestSent",null);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jY.prototype,"onPopupClosed",null);jY=_.X([_.l({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],jY);
_.p(jY,"ytd-backstage-post-dialog-renderer",function(){if(K_g!==void 0)return K_g;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return K_g=q},{mode:1});var ByK;var aD2;var nev=function(){return _.N.apply(this,arguments)||this};
_.z(nev,_.N);_.e=nev.prototype;_.e.computeHeartButtonStyle=function(q){return(q==null?0:q.styleType)?q.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.e.onYtButtonTap=function(){if(this.data.isEnabled){var q=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(q=this.getEndpoint(q))&&(_.b("web_ytd_creator_heart_renderer_command_resolver_ks")?_.qM(this.hostElement,[q]):_.t().resolve(_.ps).resolveCommand(q,{form:{element:this.hostElement}}))}else(q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(q)};
_.e.toggle=function(q){this.set("data.isHearted",q!==void 0?q:!this.data.isHearted)};
_.e.getEndpoint=function(q){var Z,w=(Z=this.data)==null?void 0:Z.heartEndpoint,r;Z=(r=this.data)==null?void 0:r.unheartEndpoint;if(w&&Z)return q?Z:w};
_.e.computeButtonAccessibility=function(q,Z){var w,r,Y=q==null?void 0:(w=q.heartedAccessibility)==null?void 0:(r=w.accessibilityData)==null?void 0:r.label,C,d;q=q==null?void 0:(C=q.unheartedAccessibility)==null?void 0:(d=C.accessibilityData)==null?void 0:d.label;return Z?Y:q};
_.My.Object.defineProperties(nev.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 q;return _.b("kevlar_system_icons")&&!((q=this.data)==null||!q.isHearted)}}});
var tn=nev;tn.prototype.onYtButtonTap=tn.prototype.onYtButtonTap;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],tn.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Et),_.A("design:type",Object)],tn.prototype,"ytdOpenPopupBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],tn.prototype,"data",void 0);_.X([_.I("data.isHearted"),_.A("design:type",Object),_.A("design:paramtypes",[])],tn.prototype,"heartTooltip",null);
_.X([_.I("data.isHearted"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],tn.prototype,"iconFilled",null);_.X([_.F({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.A("design:type",String)],tn.prototype,"buttonAccessibility",void 0);_.X([_.F({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.A("design:type",String)],tn.prototype,"heartButtonStyle",void 0);
_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tn.prototype,"onYtButtonTap",null);tn=_.X([_.l({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],tn);
_.p(tn,"ytd-creator-heart-renderer",function(){if(aD2!==void 0)return aD2;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return aD2=q},{mode:1});var QKX=function(){var q=_.N.apply(this,arguments)||this;q.hasCreatorReply=!1;q.buttonOverrides={size:"S",iconPosition:"icon-only"};q.replyButtonOverrides={size:"S",type:"text"};q.forceIconButton=!_.b("web_modern_buttons");q.modern=_.b("web_modern_buttons");q.buttonTooltipPosition="bottom";q.systemIcons=_.b("kevlar_system_icons");q.replyDialog=null;return q};
_.z(QKX,_.N);_.e=QKX.prototype;
_.e.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]]"}}}}}};
_.e.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.e.dataChange=function(){this.replyDialog&&_.E(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var q,Z,w;this.isLiked=this.systemIcons&&!!((q=this.data)==null?0:(Z=q.likeButton)==null?0:(w=Z.toggleButtonRenderer)==null?0:w.isToggled)};
_.e.computeShowVoteCountBeginning=function(q,Z){return q===void 0||Z===void 0?!0:q.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!Z&&this.ytRendererBehavior.getSimpleString(Z)!=="0"};
_.e.computeShowVoteCountEnd=function(q,Z){return q===void 0||Z===void 0?!0:q.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!Z&&this.ytRendererBehavior.getSimpleString(Z)!=="0"};
_.e.computeShowCommentCount=function(q,Z){return q===void 0||Z===void 0?!0:q.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!Z&&this.ytRendererBehavior.getSimpleString(Z)!=="0"};
_.e.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.e.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.e.showReplyDialog=function(q){q&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.E(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=q,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.e.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.e.onRequestSent=function(q){if(_.b("web_button_rework")){q=_.P(q.detail);for(var Z=q.next();!Z.done;Z=q.next())(Z=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",Z.value))&&this.showReplyDialog(Z)}};
_.e.onYtNavigate=function(q){var Z,w;(q=(Z=_.J(q.detail.endpoint,_.IiJ))==null?void 0:(w=Z.dialog)==null?void 0:w.commentReplyDialogRenderer)&&this.showReplyDialog(q)};
_.e.onYtServiceRequestSent=function(q,Z){q.stopPropagation();if(Z.actions)for(q=0;q<Z.actions.length;q++){var w=_.J(Z.actions[q],DC7);w&&this.handleUpdateCommentVoteAction(w)}};
_.e.handleUpdateCommentVoteAction=function(q){this.voteCount=q.voteCount||_.UE("0");q.voteStatus==="LIKE"?this.JSC$13540_ytdDislikeToggleButtonRenderer.toggle(!1):q.voteStatus==="DISLIKE"?this.JSC$13540_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13540_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13540_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.e.computeReplyButtonHidden=function(q){return q};
_.e.computeReplyButtonBeginning=function(q){return(q==null?0:q.replyButton)&&q.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?q.replyButton:void 0};
_.e.computeReplyButtonEnd=function(q){return(q==null?0:q.replyButton)&&q.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?q.replyButton:void 0};
_.e.computeActionButtonStyle=function(q){return(q==null?0:q.style)?q.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.e.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.e.onYtToggleButton=function(q){var Z,w;this.isLiked=this.systemIcons&&!!((Z=q.detail)==null?0:(w=Z.actions)==null?0:w.like)};
var RO=QKX;RO.prototype.onYtToggleButton=RO.prototype.onYtToggleButton;RO.prototype.onButtonTooltipPositionChanged=RO.prototype.onButtonTooltipPositionChanged;RO.prototype.onYtServiceRequestSent=RO.prototype.onYtServiceRequestSent;RO.prototype.onYtNavigate=RO.prototype.onYtNavigate;RO.prototype.onRequestSent=RO.prototype.onRequestSent;RO.prototype.onYtCommentboxDismiss=RO.prototype.onYtCommentboxDismiss;RO.prototype.dataChange=RO.prototype.dataChange;
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],RO.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],RO.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],RO.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],RO.prototype,"voteCount",void 0);_.X([_.F(),_.A("design:type",Object)],RO.prototype,"commentCount",void 0);_.X([_.F(),_.A("design:type",Object)],RO.prototype,"replyThumbnail",void 0);
_.X([_.F(),_.A("design:type",Object)],RO.prototype,"hasCreatorReply",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],RO.prototype,"enableCreationBox",void 0);_.X([_.F({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.A("design:type",String)],RO.prototype,"actionButtonsStyle",void 0);_.X([_.F({computed:"computeReplyButtonBeginning(data)"}),_.A("design:type",Object)],RO.prototype,"replyButtonBeginning",void 0);
_.X([_.F({computed:"computeReplyButtonEnd(data)"}),_.A("design:type",Object)],RO.prototype,"replyButtonEnd",void 0);_.X([_.F(),_.A("design:type",Object)],RO.prototype,"buttonOverrides",void 0);_.X([_.F(),_.A("design:type",Object)],RO.prototype,"replyButtonOverrides",void 0);_.X([_.F(),_.A("design:type",Object)],RO.prototype,"forceIconButton",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],RO.prototype,"useCommentIcon",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],RO.prototype,"modern",void 0);_.X([_.F(),_.A("design:type",Object)],RO.prototype,"buttonTooltipPosition",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],RO.prototype,"systemIcons",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],RO.prototype,"isLiked",void 0);_.X([_.fo("ytd-button-renderer"),_.A("design:type",Object)],RO.prototype,"ytdReplyButtonRenderer",void 0);
_.X([_.fo("#like-button"),_.A("design:type",Object)],RO.prototype,"JSC$13540_ytdLikeToggleButtonRenderer",void 0);_.X([_.fo("#dislike-button"),_.A("design:type",Object)],RO.prototype,"JSC$13540_ytdDislikeToggleButtonRenderer",void 0);_.X([_.fo("#reply-dialog"),_.A("design:type",HTMLElement)],RO.prototype,"replyDialogElement",void 0);_.X([_.fo("#reply-button"),_.A("design:type",HTMLElement)],RO.prototype,"replyButtonElement",void 0);
_.X([_.fo("#reply-button-end"),_.A("design:type",HTMLElement)],RO.prototype,"replyButtonEndElement",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RO.prototype,"dataChange",null);_.X([_.m2("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],RO.prototype,"onYtCommentboxDismiss",null);
_.X([_.m2("yt-service-request-sent-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],RO.prototype,"onRequestSent",null);_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],RO.prototype,"onYtNavigate",null);
_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],RO.prototype,"onYtServiceRequestSent",null);_.X([_.M("buttonTooltipPosition"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RO.prototype,"onButtonTooltipPositionChanged",null);
_.X([_.m2("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],RO.prototype,"onYtToggleButton",null);RO=_.X([_.l({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],RO);
_.p(RO,"ytd-comment-action-buttons-renderer",function(){if(ByK!==void 0)return ByK;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ByK=q},{mode:1});var EeK;var x2p=function(){return _.N.apply(this,arguments)||this};
_.z(x2p,_.N);x2p.prototype.focus=function(){_.E(this.hostElement).querySelector("#commentbox").focus()};
var bZ=x2p;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],bZ.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],bZ.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],bZ.prototype,"zeroStepChannelCreationRenderer",void 0);bZ=_.X([_.l({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],bZ);
_.p(bZ,"ytd-comment-dialog-renderer",function(){if(EeK!==void 0)return EeK;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return EeK=q},{mode:1});var Typ;var U27=function(){var q=_.N.apply(this,arguments)||this;q.buttonOverrides={size:"S",iconPosition:"icon-only"};q.replyButtonOverrides={size:"S",type:"text"};return q};
_.z(U27,_.N);_.e=U27.prototype;_.e.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.e.detached=function(){this.replyBox&&this.replyBox.remove()};
_.e.showReplyDialog=function(q){if(q){var Z=this.replyBox;Z||(Z=document.createElement("ytd-comment-reply-dialog-renderer"),Z.id="replybox",_.E(this.replyDialogDiv).appendChild(Z));Z.data=q;this.replyDialogDiv.hidden=!1;Z.openDialog()}};
_.e.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.e.onYtServiceRequestSent=function(q,Z){q.stopPropagation();if(Z.actions)for(var w=0;w<Z.actions.length;w++){var r=_.J(Z.actions[w],DC7);r?this.handleUpdateCommentVoteAction(r):q.target===this.heartButton&&this.toggleHeartState()}};
_.e.handleUpdateCommentVoteAction=function(q){var Z;(Z=this.toolbarState)!=null&&Z.key&&this.ytdReduxBehavior.dispatch(_.LV("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:q.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":q.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.e.toggleHeartState=function(){var q;(q=this.toolbarState)!=null&&q.key&&this.ytdReduxBehavior.dispatch(_.LV("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.My.Object.defineProperties(U27.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return(((q=this.toolbarState)==null?void 0:q.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(Z=this.toolbarData)==null?void 0:Z.likeCountLiked:(w=this.toolbarData)==null?void 0:w.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.toolbarSurface)==null?void 0:q.commentDisabledActionCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.toolbarSurface)==null?void 0:q.prepareAccountCommand)!==void 0&&!_.b("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var q,Z=_.J((q=this.toolbarSurface)==null?void 0:q.prepareAccountCommand,_.WJ),w,r,Y,C,d,O,H,L,S;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((w=this.toolbarSharedData)==null||!w.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((r=this.toolbarState)==null?void 0:r.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:Z!=null?Z:_.J((Y=this.toolbarSurface)==null?void 0:Y.likeCommand,_.WJ),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:Z!=null?Z:_.J((C=this.toolbarSurface)==null?void 0:C.unlikeCommand,_.WJ),defaultCommand:this.isVisiblyDisabled?_.J((d=this.toolbarSurface)==null?void 0:d.commentDisabledActionCommand,_.WJ):void 0,defaultTooltip:(O=this.toolbarData)==null?void 0:O.likeInactiveTooltip,toggledTooltip:(H=this.toolbarData)==null?void 0:H.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(L=this.toolbarData)==null?void 0:L.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(S=this.toolbarSharedData)==null?void 0:S.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var q,Z=_.J((q=this.toolbarSurface)==null?void 0:q.prepareAccountCommand,_.WJ),w,r,Y,C,d,O,H,L,S,v;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((w=this.toolbarSharedData)==null||!w.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((r=this.toolbarState)==null?void 0:r.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:Z!=null?Z:_.J((Y=this.toolbarSurface)==null?void 0:Y.dislikeCommand,_.WJ),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:Z!=null?Z:_.J((C=this.toolbarSurface)==null?void 0:C.undislikeCommand,_.WJ),defaultCommand:this.isVisiblyDisabled?_.J((d=this.toolbarSurface)==null?void 0:d.commentDisabledActionCommand,_.WJ):void 0,defaultTooltip:(O=this.toolbarData)==null?void 0:O.dislikeInactiveTooltip,toggledTooltip:(H=this.toolbarData)==null?void 0:
H.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(L=this.toolbarSharedData)==null?void 0:L.dislikeReplyButtonA11y:(S=this.toolbarSharedData)==null?void 0:S.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 q,Z,w;if(((q=this.toolbarState)==null?void 0:q.heartState)!==void 0&&((Z=this.toolbarState)==null?void 0:Z.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((w=this.toolbarState)==null?void 0:w.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var r,Y,C,d,O,H,L,S,v,R,B,n,x,K;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(r=this.toolbarData)==null?void 0:r.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((Y=this.toolbarState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((C=this.toolbarState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((d=this.toolbarState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((O=this.toolbarState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.J((H=this.toolbarSurface)==null?void 0:H.heartCommand,
_.WJ),unheartEndpoint:this.isVisiblyDisabled?void 0:_.J((L=this.toolbarSurface)==null?void 0:L.unheartCommand,_.WJ),disabledEndpoint:this.isVisiblyDisabled?_.J((S=this.toolbarSurface)==null?void 0:S.commentDisabledActionCommand,_.WJ):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(v=this.toolbarData)==null?void 0:v.heartActiveTooltip,unheartedTooltip:(R=this.toolbarData)==null?void 0:R.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((B=
this.toolbarState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(n=this.toolbarSharedData)==null?void 0:n.unheartButtonA11y:(x=this.toolbarSharedData)==null?void 0:x.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(K=this.toolbarSharedData)==null?void 0:K.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.toolbarSurface)==null||!q.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(q=this.commentStrings)==null?void 0:q.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled?void 0:_.J((Z=this.toolbarSurface)==null?void 0:Z.replyCommand,_.WJ),command:this.isVisiblyDisabled?_.J((w=this.toolbarSurface)==null?void 0:w.commentDisabledActionCommand,_.WJ):void 0}}}});
var Jn=U27;Jn.prototype.onYtServiceRequestSent=Jn.prototype.onYtServiceRequestSent;Jn.prototype.hideReplyDialogDiv=Jn.prototype.hideReplyDialogDiv;_.X([_.F(),_.A("design:type",Object)],Jn.prototype,"commentStrings",void 0);_.X([_.F(),_.A("design:type",Boolean)],Jn.prototype,"isReply",void 0);_.X([_.F(),_.A("design:type",Object)],Jn.prototype,"toolbarData",void 0);_.X([_.F(),_.A("design:type",Object)],Jn.prototype,"toolbarSharedData",void 0);
_.X([_.F(),_.A("design:type",String)],Jn.prototype,"toolbarStateKey",void 0);_.X([_.F(),_.A("design:type",String)],Jn.prototype,"toolbarSurfaceKey",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],Jn.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Jn.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Jn.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.fo("#reply-dialog"),_.A("design:type",HTMLElement)],Jn.prototype,"replyDialogDiv",void 0);_.X([_.fo("#replybox"),_.A("design:type",Object)],Jn.prototype,"replyBox",void 0);_.X([_.fo("ytd-creator-heart-renderer"),_.A("design:type",Object)],Jn.prototype,"heartButton",void 0);_.X([_.F({selector:function(q,Z){return _.iI(q.entities,"engagementToolbarStateEntityPayload",Z)},
selectorArgs:["toolbarStateKey"]}),_.A("design:type",Object)],Jn.prototype,"toolbarState",void 0);_.X([_.F({selector:zJe,selectorArgs:["toolbarSurfaceKey"]}),_.A("design:type",Object)],Jn.prototype,"toolbarSurface",void 0);_.X([_.F(),_.A("design:type",Object)],Jn.prototype,"buttonOverrides",void 0);_.X([_.m2("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"hideReplyDialogDiv",null);
_.X([_.I("toolbarData","toolbarState"),_.A("design:type",String),_.A("design:paramtypes",[])],Jn.prototype,"likeCount",null);_.X([_.I("likeCount"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Jn.prototype,"showLikeCount",null);_.X([_.I("toolbarSurface"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Jn.prototype,"isVisiblyDisabled",null);_.X([_.I("toolbarSurface"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Jn.prototype,"hasPrepareAccountCommand",null);
_.X([_.I("toolbarData","toolbarState","toolbarSurface"),_.A("design:type",Object),_.A("design:paramtypes",[])],Jn.prototype,"likeToggleButtonRenderer",null);_.X([_.I("isReply","toolbarData","toolbarState","toolbarSurface"),_.A("design:type",Object),_.A("design:paramtypes",[])],Jn.prototype,"dislikeToggleButtonRenderer",null);_.X([_.I("toolbarData","toolbarState","toolbarSurface"),_.A("design:type",Object),_.A("design:paramtypes",[])],Jn.prototype,"creatorHeartSupportedRenderer",null);
_.X([_.I("toolbarSurface"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Jn.prototype,"hasReplyCommand",null);_.X([_.I("toolbarSurface","commentStrings","isVisiblyDisabled"),_.A("design:type",Object),_.A("design:paramtypes",[])],Jn.prototype,"replyButtonRenderer",null);_.X([_.F(),_.A("design:type",Object)],Jn.prototype,"replyButtonOverrides",void 0);
_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],Jn.prototype,"onYtServiceRequestSent",null);Jn=_.X([_.l({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Jn);
_.p(Jn,"ytd-comment-engagement-bar",function(){if(Typ!==void 0)return Typ;var q=document.createElement("template");_.a(q,'\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]]" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Typ=q},{mode:1});var kAW;var Kdg=function(){return _.N.apply(this,arguments)||this};
_.z(Kdg,_.N);var zb=Kdg;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],zb.prototype,"data",void 0);zb=_.X([_.l({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],zb);
_.p(zb,"ytd-comment-inline-thumbnail-renderer",function(){if(kAW!==void 0)return kAW;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return kAW=q},{mode:1});var sKK;var ID7=function(){return _.N.apply(this,arguments)||this};
_.z(ID7,_.N);var c61=ID7;_.X([_.F(),_.A("design:type",Object)],c61.prototype,"data",void 0);c61=_.X([_.l({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],c61);
_.p(c61,"ytd-comment-pause-composer-renderer",function(){if(sKK!==void 0)return sKK;var q=document.createElement("template");_.a(q,'\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" 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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return sKK=q},{mode:1});var MyX;var Fd1;var Nye=function(){var q=_.N.apply(this,arguments)||this;q.isOpen=!1;return q};
_.z(Nye,_.N);_.e=Nye.prototype;_.e.dataChanged=function(){this.isOpen=!1};
_.e.onTap=function(){this.data&&(this.data.navigationEndpoint?_.hy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.e.focus=function(){this.JSC$13566_commentbox.focus()};
_.e.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.e.openDialog=function(){this.isOpen=!0;this.JSC$13566_commentbox.focus();this.JSC$13566_commentbox.maybeHeightChanged()};
var B_=Nye;B_.prototype.onYtCommentboxDismiss=B_.prototype.onYtCommentboxDismiss;B_.prototype.dataChanged=B_.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],B_.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],B_.prototype,"isOpen",void 0);_.X([_.fo("#commentbox"),_.A("design:type",Object)],B_.prototype,"JSC$13566_commentbox",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],B_.prototype,"dataChanged",null);_.X([_.m2("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],B_.prototype,"onYtCommentboxDismiss",null);B_=_.X([_.l({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],B_);
_.p(B_,"ytd-comment-reply-dialog-renderer",function(){if(Fd1!==void 0)return Fd1;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Fd1=q},{mode:1});var lDX;var GAv=function(){return _.N.apply(this,arguments)||this};
_.z(GAv,_.N);_.My.Object.defineProperties(GAv.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var q,Z,w=(q=this.data)==null?void 0:(Z=q.icon)==null?void 0:Z.iconType;return w?"yt-icons:"+w.toLowerCase():null}}});
var aO=GAv;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],aO.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],aO.prototype,"data",void 0);_.X([_.F(),_.I("data.icon"),_.A("design:type",Object),_.A("design:paramtypes",[])],aO.prototype,"icon",null);aO=_.X([_.l({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],aO);
_.p(aO,"ytd-pinned-comment-badge-renderer",function(){if(lDX!==void 0)return lDX;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return lDX=q},{mode:1});var po7;var XoJ={},m27={input:!0,meta:!0,br:!0,link:!0,img:!0},nS=null;XoJ.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(){nS==null&&(nS=document.createElement("tp-yt-paper-tooltip"),nS.offset=8,nS.fitToVisibleBounds=!0)},
onMouseOver_:function(q){if(q=_.E3(q.target,function(Y){return Y==this||Y.getAttribute&&Y.getAttribute("shared-tooltip-text")}.bind(this),!0)){var Z=q.getAttribute("shared-tooltip-text");
if(Z){var w=this,r=null;q!=this&&(q.tagName.toLowerCase()in m27?w=q.parentElement:w=q,q.id&&(r=q.id));this.polymerController.createTooltipIfRequired_();if(nS.parentElement!=w||nS.for!=r)(0,_.GI)(nS).textContent=Z,_.E(w).appendChild(nS),nS.for=r,nS.animationDelay=this.polymerController.sharedTooltipAnimationDelay,nS.position=this.polymerController.sharedTooltipPosition}}}};var Q9=function(){return _.N.apply(this,arguments)||this};
_.z(Q9,_.N);Q9.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]]"}}}}}};
Q9.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
Q9.prototype.colorChanged=function(){var q,Z,w,r=(q=this.data)==null?void 0:(Z=q.color)==null?void 0:(w=Z.basicColorPaletteData)==null?void 0:w.foregroundBodyColor;r&&(this.rgbBadgeColor=_.oJ(r));_.E(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Q9.prototype.tooltipChanged=function(){var q;((q=this.data)==null?0:q.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
var EB=Q9;EB.prototype.tooltipChanged=EB.prototype.tooltipChanged;EB.prototype.colorChanged=EB.prototype.colorChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],EB.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(XoJ.YtSharedTooltipBehavior),_.A("design:type",Object)],EB.prototype,"ytSharedTooltipBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],EB.prototype,"data",void 0);_.X([_.F({value:"#4285F4"}),_.A("design:type",String)],EB.prototype,"rgbBadgeColor",void 0);_.X([_.M("data.color"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],EB.prototype,"colorChanged",null);_.X([_.M("data.tooltip"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],EB.prototype,"tooltipChanged",null);
EB=_.X([_.l({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],EB);
_.p(EB,"ytd-sponsor-comment-badge-renderer",function(){if(po7!==void 0)return po7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return po7=q},{mode:1});var A6D;var fDp;var xs=function(){var q=_.N.apply(this,arguments)||this;q.defaultIconToFilled=!_.b("kevlar_fill_comment_chip_icon_killswitch");return q};
_.z(xs,_.N);xs.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
xs.prototype.dataChanged=function(){if(this.data){var q,Z;((q=this.data.chipColorPalette)==null?0:q.backgroundColor)&&((Z=this.data.chipColorPalette)==null?0:Z.foregroundTitleColor)&&_.po(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.uq(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.uq(this.data.chipColorPalette.foregroundTitleColor)});var w;((w=this.data)==null?0:w.command)?(_.po(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.po(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}};
xs.prototype.onTap=function(){var q;if(this.data&&(q=this.data)!=null&&q.command){var Z;this.ytComponentBehavior.resolveCommand((Z=this.data)==null?void 0:Z.command)}};
xs.prototype.getIconSize=function(){return _.b("kevlar_fill_comment_chip_icon_killswitch")?24:12};
var Tb=xs;Tb.prototype.onTap=Tb.prototype.onTap;Tb.prototype.dataChanged=Tb.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Tb.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.Pt),_.A("design:type",Object)],Tb.prototype,"ironA11yKeysBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Tb.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],Tb.prototype,"basePriceText",void 0);_.X([_.F(),_.A("design:type",Object)],Tb.prototype,"chipIcon",void 0);_.X([_.F(),_.A("design:type",Object)],Tb.prototype,"defaultIconToFilled",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Tb.prototype,"dataChanged",null);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Tb.prototype,"onTap",null);
Tb=_.X([_.dx({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Tb);
_.p(Tb,"yt-pdg-comment-chip-renderer",function(){if(fDp===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;A6D===void 0&&(A6D=document.createElement("template"));var r=A6D;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);fDp=q}q=fDp;return q},{mode:2});var D21=function(){var q=_.N.apply(this,arguments)||this;q.isReply=!1;q.isCreatorReply=!1;q.useSmallAvatarsEngagementPanelOnly=_.b("small_avatars_for_comments_ep");q.useSmallAvatars=_.b("small_avatars_for_comments");q.editDialog=null;q.hasPendingRequest=!1;q.linkedBadgeEl=null;q.shouldShowReadMoreInitially=!1;q.JSC$13586_spinnerEl=null;q.attachedResolver=_.Be();return q};
_.z(D21,_.N);_.e=D21.prototype;
_.e.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.pinnedCommentBadge":{id:"pinned-comment-badge",mapping:{pinnedCommentBadgeRenderer:"ytd-pinned-comment-badge-renderer"}},"data.sponsorCommentBadge":{id:"sponsor-comment-badge",mapping:{sponsorCommentBadgeRenderer:"ytd-sponsor-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",
mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer",commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.e.contentTextChanged=function(){var q;(q=this.expander)==null||q.reset()};
_.e.attached=function(){this.attachedResolver.resolve()};
_.e.detached=function(){this.editDialog=null};
_.e.dataChanged=function(){if(this.data&&(this.hasPendingRequest=!1,this.editDialog=null,this.linkedBadgeEl&&(this.linkedCommentBadge.removeChild(this.linkedBadgeEl),this.linkedBadgeEl=null),this.data.hiddenByDefault&&(this.hostElement.hidden=!0),this.data.actions))for(var q=0,Z=this.data.actions.length;q<Z;q++)this.openEditDialog(_.J(this.data.actions[q],fSe))};
_.e.hasPendingRequestChanged=function(){!this.hasPendingRequest||this.editDialog||this.JSC$13586_spinnerEl||(this.JSC$13586_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E(this.hostElement).appendChild(this.JSC$13586_spinnerEl));this.JSC$13586_spinnerEl&&(this.JSC$13586_spinnerEl.active=this.hasPendingRequest)};
_.e.backgroundExtendedDetailsChanged=function(){var q,Z;((q=this.data)==null?0:(Z=q.backgroundExtendedDetails)==null?0:Z.backgroundColorArgb)?(q={"--ytd-comment-paid-background-color":_.uq(this.data.backgroundExtendedDetails.backgroundColorArgb),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"},_.po(this.hostElement,q)):_.po(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.e.linkedCommentBadgeChanged=function(){var q=this,Z;if((Z=this.data)!=null&&Z.linkedCommentBadge){this.linkedBadgeEl||(this.linkedBadgeEl=document.createElement("ytd-badge-supported-renderer"));this.linkedBadgeEl.topStandaloneBadge=this.data.linkedCommentBadge;this.linkedCommentBadge.appendChild(this.linkedBadgeEl);if(!_.b("disable_pause_on_linked_comment_nav"))try{var w=_.K6();w&&w.pause()}catch(r){}this.attachedResolver.promise.then(this.afterNextRender).then(function(){var r,Y=(r=_.t().resolve(_.Gj(_.U1)))==
null?void 0:r.getCurrentPage();Y&&Y.getScrollTop()===0&&Y.setScrollTop(q.hostElement.offsetTop+q.hostElement.offsetHeight-document.documentElement.clientHeight+32)})}};
_.e.onShow=function(){_.z7("cmv",void 0,"wn_comments")};
_.e.onYtNavigate=function(q){q=q.detail.endpoint;this.openEditDialog(_.J(q,_.c42)||_.J(q,_.MQp))};
_.e.onYtCommentboxDismiss=function(){this.editDialog=null;_.po(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.e.onYtCommentboxResize=function(q){var Z;(q==null?0:(Z=q.detail)==null?0:Z.height)&&_.po(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":q.detail.height+"px"})};
_.e.onYtServiceRequestSent=function(q,Z){q.stopPropagation();q=Z==null?void 0:Z.endpoint;Z=_.b("enable_profile_cards_on_comments")&&(_.J(q,oCg)||_.J(q,xk9)||_.J(q,qTv)||_.J(q,_.LH)||_.J(q,_.L6));if(_.J(q,CGJ)||Z)this.hasPendingRequest=!1;else{var w;if(_.J(q,ep1)||_.J(q,C8J)||(w=_.J(q,bG))==null||!w.clientActions||_.J(q,enK))this.hasPendingRequest=!0}};
_.e.onAuthorThumbnailClicked=function(){var q=this;if(_.b("enable_profile_cards_on_comments")){var Z;(Z=this.data)!=null&&Z.authorEndpoint&&this.componentBehavior.resolveCommand(this.data.authorEndpoint,{commandController:{onSuccess:function(w,r){q.onAuthorEndpointSuccess(r)},
onServerError:function(w,r){_.bx(new _.df("Failed to resolve the command",r))}}})}};
_.e.onAuthorEndpointSuccess=function(q){if(q=q==null?void 0:q.popupCommand){this.componentBehavior.resolveCommand(q,{form:{element:this.authorThumbnail}});this.logScreenVe();q=q==null?void 0:q.clickTrackingParams;var Z=_.Rs();q&&Z&&_.iy().graftServerVe(q,Z)}};
_.e.logScreenVe=function(){_.mG(_.iy(),66557)};
_.e.onYtServiceRequestCompleted=function(){this.hasPendingRequest=!1};
_.e.openEditDialog=function(q){this.data&&q&&q.dialog&&(this.editDialog=q.dialog,this.JSC$13586_editReplyDialogContainer?this.JSC$13586_editReplyDialogContainer.openDialog():this.JSC$13586_editCommentDialogContainer&&this.JSC$13586_editCommentDialogContainer.focus())};
_.e.computeAuthorTextClass=function(q){return q.authorIsChannelOwner?"channel-owner":""};
_.e.computeIsBodyHidden=function(q,Z){return!!q||Z};
_.e.computeCommentStyle=function(q){return q.style?q.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.e.onYtExpanderMoreTapped=function(){var q,Z,w=(q=this.data)==null?void 0:(Z=q.expandButton)==null?void 0:Z.buttonRenderer;w&&this.ytRendererBehavior.logExplicitClick(w)};
_.e.afterNextRender=function(){var q=this;return new Promise(function(Z){_.I_(q,Z)})};
_.My.Object.defineProperties(D21.prototype,{optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.b("web_watch_compact_comments")||_.b("optimal_reading_width_comments_ep")&&this.engagementPanel}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.voteCount)||_.UE("0")}},
replyThumbnail:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.currentUserReplyThumbnail}},
hasCreatorReply:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return!!(((q=this.data)==null?0:(Z=q.creatorReply)==null?0:Z.commentRenderer)||((w=this.data)==null?0:w.containsCreatorReply))}},
authorTextCommand:{configurable:!0,enumerable:!0,get:function(){var q;if(_.b("enable_profile_cards_on_comments")&&((q=this.data)==null?0:q.channelPageEndpoint)){var Z;return(Z=this.data)==null?void 0:Z.channelPageEndpoint}var w;return(w=this.data)==null?void 0:w.authorEndpoint}},
hidePaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null?0:q.paidCommentChipRenderer)}}});
var UB=D21;UB.prototype.onYtExpanderMoreTapped=UB.prototype.onYtExpanderMoreTapped;UB.prototype.onYtServiceRequestCompleted=UB.prototype.onYtServiceRequestCompleted;UB.prototype.onYtServiceRequestSent=UB.prototype.onYtServiceRequestSent;UB.prototype.onYtCommentboxResize=UB.prototype.onYtCommentboxResize;UB.prototype.onYtCommentboxDismiss=UB.prototype.onYtCommentboxDismiss;UB.prototype.onYtNavigate=UB.prototype.onYtNavigate;UB.prototype.linkedCommentBadgeChanged=UB.prototype.linkedCommentBadgeChanged;
UB.prototype.backgroundExtendedDetailsChanged=UB.prototype.backgroundExtendedDetailsChanged;UB.prototype.hasPendingRequestChanged=UB.prototype.hasPendingRequestChanged;UB.prototype.dataChanged=UB.prototype.dataChanged;UB.prototype.contentTextChanged=UB.prototype.contentTextChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],UB.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],UB.prototype,"componentBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],UB.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.tg.YtVisibilityBehavior),_.A("design:type",Object)],UB.prototype,"ytVisibilityBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],UB.prototype,"data",void 0);_.X([_.F({computed:"computeCommentStyle(data)",reflectToAttribute:!0}),_.A("design:type",String)],UB.prototype,"commentStyle",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],UB.prototype,"isReply",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],UB.prototype,"isCreatorReply",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],UB.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],UB.prototype,"useSmallAvatars",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],UB.prototype,"engagementPanel",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("data","engagementPanel"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],UB.prototype,"optimalReadingWidthComments",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],UB.prototype,"voteCount",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],UB.prototype,"replyThumbnail",null);_.X([_.F(),_.A("design:type",Object)],UB.prototype,"editDialog",void 0);
_.X([_.I("data","data.containsCreatorReply"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],UB.prototype,"hasCreatorReply",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],UB.prototype,"authorTextCommand",null);_.X([_.F(),_.A("design:type",Object)],UB.prototype,"hasPendingRequest",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],UB.prototype,"noActions",void 0);_.X([_.F(),_.A("design:type",Object)],UB.prototype,"linkedBadgeEl",void 0);
_.X([_.F(),_.A("design:type",Object)],UB.prototype,"shouldShowReadMoreInitially",void 0);_.X([_.fo("ytd-expander"),_.A("design:type",Object)],UB.prototype,"expander",void 0);_.X([_.fo("#linked-comment-badge"),_.A("design:type",HTMLElement)],UB.prototype,"linkedCommentBadge",void 0);_.X([_.fo("#body"),_.A("design:type",HTMLElement)],UB.prototype,"body",void 0);_.X([_.fo("#author-thumbnail > a"),_.A("design:type",HTMLElement)],UB.prototype,"authorThumbnail",void 0);
_.X([_.fo("ytd-comment-dialog-renderer"),_.A("design:type",Object)],UB.prototype,"JSC$13586_editCommentDialogContainer",void 0);_.X([_.fo("ytd-comment-reply-dialog-renderer"),_.A("design:type",Object)],UB.prototype,"JSC$13586_editReplyDialogContainer",void 0);_.X([_.M("data.contentText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UB.prototype,"contentTextChanged",null);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UB.prototype,"dataChanged",null);_.X([_.M("hasPendingRequest"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UB.prototype,"hasPendingRequestChanged",null);_.X([_.M("data.backgroundExtendedDetails"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UB.prototype,"backgroundExtendedDetailsChanged",null);
_.X([_.M("data.linkedCommentBadge"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UB.prototype,"linkedCommentBadgeChanged",null);_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],UB.prototype,"onYtNavigate",null);_.X([_.m2("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],UB.prototype,"onYtCommentboxDismiss",null);
_.X([_.m2("yt-commentbox-resize"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],UB.prototype,"onYtCommentboxResize",null);_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],UB.prototype,"onYtServiceRequestSent",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],UB.prototype,"hidePaidCommentChipRenderer",null);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],UB.prototype,"onYtServiceRequestCompleted",null);_.X([_.m2("yt-expander-more-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UB.prototype,"onYtExpanderMoreTapped",null);UB=_.X([_.l({is:"ytd-comment-renderer",disableElementRegistration:!0})],UB);
_.p(UB,"ytd-comment-renderer",function(){if(MyX!==void 0)return MyX;var q=document.createElement("template");_.a(q,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-renderer--\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-renderer"></div>\n<div id="linked-comment-badge" hidden="[[!data.linkedCommentBadge]]" class="style-scope ytd-comment-renderer"></div>\n<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-comment-renderer">\n  <div id="author-thumbnail" class="style-scope ytd-comment-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-comment-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" on-click="onAuthorThumbnailClicked" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-comment-renderer">\n    <div id="header" class="style-scope ytd-comment-renderer">\n      <div id="pinned-comment-badge" hidden="[[!data.pinnedCommentBadge]]" class="style-scope ytd-comment-renderer"></div>\n      <div id="header-author" class="style-scope ytd-comment-renderer">\n        <h3 class="style-scope ytd-comment-renderer">\n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-renderer" href$="[[computeOptionalHref_(authorTextCommand)]]" data="[[authorTextCommand]]" hidden="[[data.authorCommentBadge]]">\n            <yt-formatted-string class$="[[computeAuthorTextClass(data)]] style-scope ytd-comment-renderer" respect-lang-dir="" text="[[data.authorText]]">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-comment-renderer"></span>\n        <span id="sponsor-comment-badge" hidden="[[!data.sponsorCommentBadge]]" class="style-scope ytd-comment-renderer"></span>\n        <yt-formatted-string class="published-time-text style-scope ytd-comment-renderer" link-inherit-color="" text="[[data.publishedTimeText]]">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-comment-renderer"></span>\n      </div>\n    </div>\n    <div id="comment-content" class="style-scope ytd-comment-renderer">\n      \n      <ytd-comment-inline-thumbnail-renderer id="inline-thumbnail-renderer" data="[[data.videoThumbnail.commentVideoThumbnailRenderer]]" hidden="[[!data.videoThumbnail]]" class="style-scope ytd-comment-renderer">\n      </ytd-comment-inline-thumbnail-renderer>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-renderer">\n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[data.paidCommentChipRenderer.pdgCommentChipRenderer]]" hidden="[[hidePaidCommentChipRenderer]]" class="style-scope ytd-comment-renderer">\n      </yt-pdg-comment-chip-renderer>\n      <yt-formatted-string id="content-text" slot="content" split-lines="" text="[[data.contentText]]" user-input="" class="style-scope ytd-comment-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-comment-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-comment-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n  </div>\n    <ytd-comment-action-buttons-renderer id="action-buttons" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" reply-thumbnail="[[replyThumbnail]]" vote-count="[[voteCount]]" class="style-scope ytd-comment-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n  <div id="action-menu" class="style-scope ytd-comment-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-renderer"></div>\n\n');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return MyX=q},{mode:1});var hup;var y61;var ixW;var ks=function(){return _.N.apply(this,arguments)||this};
_.z(ks,_.N);ks.prototype.computeState=function(q){switch(q==null?void 0:q.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"}};
ks.prototype.updateStateIdentifier=function(q){if(this.viewModel.triStateKey){var Z=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.LV("triStateButtonStateEntityPayload",Z,{key:Z,stateIdentifier:q}))}};
ks.prototype.onClick=function(){var q=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(){q.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){q.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.My.Object.defineProperties(ks.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 q;return((q=this.data)==null?void 0:q.buttonText)||""}}});
var KS=ks;_.X([_.F(),_.A("design:type",Object)],KS.prototype,"viewModel",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],KS.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],KS.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);
_.X([_.F({selector:BPI,selectorArgs:["viewModel.triStateKey"]}),_.A("design:type",Object)],KS.prototype,"triStateButtonStateEntity",void 0);_.X([_.F({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.A("design:type",String)],KS.prototype,"state",void 0);_.X([_.I("viewModel","state"),_.A("design:type",Object),_.A("design:paramtypes",[])],KS.prototype,"data",null);_.X([_.I("data"),_.A("design:type",String),_.A("design:paramtypes",[])],KS.prototype,"buttonText",null);
KS=_.X([_.l({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],KS);
_.p(KS,"ytd-tri-state-button-view-model",function(){if(ixW!==void 0)return ixW;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ixW=q},{mode:1});var ge7=function(){var q=_.N.apply(this,arguments)||this;q.useSmallAvatars=_.b("small_avatars_for_comments");q.webWatchCompactComments=_.b("web_watch_compact_comments");q.editDialog=null;return q};
_.z(ge7,_.N);_.e=ge7.prototype;_.e.onShow=function(){_.z7("cmv",void 0,"wn_comments")};
_.e.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"}}}};
_.e.detached=function(){this.editDialog=null;this.expander.reset()};
_.e.updateBackgroundColor=function(){if(this.backgroundColor){var q={"--ytd-comment-paid-background-color":_.uq(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.po(this.hostElement,q)}else _.po(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.e.resetExpander=function(){var q;(q=this.expander)==null||q.reset()};
_.e.openEditDialog=function(q){q.dialog&&(this.editDialog=q.dialog,this.JSC$13603_editReplyDialogContainer?this.JSC$13603_editReplyDialogContainer.openDialog():this.JSC$13603_editCommentDialogContainer&&this.JSC$13603_editCommentDialogContainer.focus())};
_.e.onYtNavigate=function(q){var Z=q.detail.endpoint;if(Z=_.J(Z,_.c42)||_.J(Z,_.MQp))q.stopPropagation(),this.openEditDialog(Z)};
_.e.onYtCommentboxDismiss=function(){this.editDialog=null;_.po(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.e.onAuthorThumbnailClicked=function(){var q=this;_.b("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(Z,w){q.onAuthorThumbnailEndpointSuccess(w)},
onServerError:function(Z,w){_.bx(new _.df("Failed to resolve the command",w))}}})};
_.e.onAuthorThumbnailEndpointSuccess=function(q){if((q=q==null?void 0:q.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(q,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();q=q==null?void 0:q.clickTrackingParams;var Z=_.Rs();q&&Z&&_.iy().graftServerVe(q,Z)}};
_.e.logScreenVe=function(){_.mG(_.iy(),66557)};
_.e.onYtCommentboxResize=function(q){var Z;(q==null?0:(Z=q.detail)==null?0:Z.height)&&_.po(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":q.detail.height+"px"})};
_.My.Object.defineProperties(ge7.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 q,Z=(q=this.commentEntity)==null?void 0:q.author;return Z&&(Z.isCreator||Z.isVerified||Z.isArtist)?{renderer:{authorEndpoint:Z.channelPageEndpoint?_.J(Z.channelPageEndpoint,_.WJ):_.J(Z.channelCommand,_.WJ),authorText:{runs:[{text:Z.displayName}]},color:Z.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:Z.isArtist?{iconType:"AUDIO_BADGE"}:
Z.isVerified?{iconType:Z.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:Z.isArtist||Z.isVerified?Z.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var q,Z=(q=this.commentEntity)==null?void 0:q.author;return Z!=null&&Z.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:Z.sponsorBadgeUrl}]},tooltip:Z.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var q;return _.J((q=this.commentSurfaceEntity)==null?void 0:q.pdgCommentChip,_.WGK)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var q;return this.voiceReplyContainerViewModel&&((q=this.voiceReplyContainerViewModel)==null?void 0:q.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var q;return _.J((q=this.commentSurfaceEntity)==null?void 0:q.voiceReplyContainerViewModel,wWD)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var q;return this.voiceReplyContainerViewModel&&(q=this.voiceReplyContainerViewModel)!=null&&q.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var q,Z;return(Z=(q=this.commentSurfaceEntity)==null?void 0:q.commentBackgroundColor)!=null?Z:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.b("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var q,Z;return(((q=this.commentEntity)==null?void 0:(Z=q.properties)==null?void 0:Z.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var q,Z;if(_.b("enable_profile_cards_on_comments")&&((q=this.commentEntity)==null?0:(Z=q.author)==null?0:Z.profileCardEndpoint)&&this.viewModel.allowProfileCard){var w,r;return _.J((w=this.commentEntity)==null?void 0:(r=w.author)==null?void 0:r.profileCardEndpoint,_.WJ)}var Y,C;return _.J((Y=this.commentEntity)==null?void 0:(C=Y.avatar)==null?void 0:C.endpoint,_.WJ)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var q,Z;if(_.b("enable_profile_cards_on_comments")&&((q=this.commentEntity)==null?0:(Z=q.author)==null?0:Z.channelPageEndpoint)){var w,r;return _.J((w=this.commentEntity)==null?void 0:(r=w.author)==null?void 0:r.channelPageEndpoint,_.WJ)}var Y,C;return _.J((Y=this.commentEntity)==null?void 0:(C=Y.avatar)==null?void 0:C.endpoint,_.WJ)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r,Y=(q=this.commentEntity)==null?void 0:(Z=q.avatar)==null?void 0:(w=Z.image)==null?void 0:(r=w.sources)==null?void 0:r[0];return Y?{thumbnails:[{url:Y.url,width:Y.width,height:Y.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.commentEntity)==null?0:(Z=q.author)==null?0:Z.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.commentEntity)==null?void 0:(Z=q.author)==null?void 0:Z.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.commentEntity)==null?void 0:(Z=q.properties)==null?void 0:Z.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var q;return _.J((q=this.commentSurfaceEntity)==null?void 0:q.publishedTimeCommand,_.WJ)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var q,Z;if(((q=this.commentEntity)==null?0:q.translatedContent)&&((Z=this.translateButtonState)==null?void 0:Z.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var w;if((w=this.voiceReplyContainerViewModel)==null?0:w.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var r,Y;return((r=this.commentEntity)==null?void 0:(Y=r.properties)==null?void 0:Y.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.commentSharedEntity)==null?void 0:(Z=q.strings)==null?void 0:Z.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.commentSharedEntity)==null?void 0:(Z=q.strings)==null?void 0:Z.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.commentEntity)==null||!q.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var q,Z,w=(Z=_.J((q=this.viewModel)==null?void 0:q.translateButton,ZG1))!=null?Z:{},r,Y,C,d,O,H,L,S,v,R,B;return Object.assign({},w,{untoggledStateData:Object.assign({},w.untoggledStateData,{buttonText:(r=this.commentEntity)==null?void 0:(Y=r.translateData)==null?void 0:Y.text}),togglingStateData:Object.assign({},w.togglingStateData,{buttonText:(C=this.commentSharedEntity)==null?
void 0:(d=C.strings)==null?void 0:d.translatingText}),toggledStateData:Object.assign({},w.toggledStateData,{buttonText:(O=this.commentSharedEntity)==null?void 0:(H=O.strings)==null?void 0:H.seeOriginalText}),transitionCommand:((L=this.commentEntity)==null?0:L.translatedContent)?void 0:_.J((S=this.commentEntity)==null?void 0:(v=S.translateData)==null?void 0:v.translateComment,_.WJ),triStateKey:(R=this.commentEntity)==null?void 0:(B=R.properties)==null?void 0:B.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return((Z=_.J(_.J((q=this.toolbarSurface)==null?void 0:q.menuCommand,_.WJ),FbJ))==null?void 0:(w=Z.menu)==null?void 0:w.menuRenderer)||null}}});
var sB=ge7;sB.prototype.onYtCommentboxResize=sB.prototype.onYtCommentboxResize;sB.prototype.onYtCommentboxDismiss=sB.prototype.onYtCommentboxDismiss;sB.prototype.onYtNavigate=sB.prototype.onYtNavigate;sB.prototype.resetExpander=sB.prototype.resetExpander;sB.prototype.updateBackgroundColor=sB.prototype.updateBackgroundColor;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],sB.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.LO),_.A("design:type",Object)],sB.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],sB.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],sB.prototype,"ytRendererstamperBehavior",void 0);_.X([_.fo("#author-thumbnail > button"),_.A("design:type",HTMLElement)],sB.prototype,"authorThumbnailAnchor",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("viewModel"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],sB.prototype,"linked",null);_.X([_.I("viewModel","linked"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"linkedCommentBadge",null);_.X([_.F({reflectToAttribute:!0}),_.I("viewModel"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],sB.prototype,"pinned",null);
_.X([_.I("viewModel","pinned"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"pinnedCommentBadge",null);_.X([_.I("commentEntity","commentSharedEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"authorCommentBadge",null);_.X([_.F({reflectToAttribute:!0}),_.I("authorCommentBadge"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"hasAuthorBadge",null);
_.X([_.I("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"sponsorCommentBadge",null);_.X([_.F({reflectToAttribute:!0}),_.I("sponsorCommentBadge"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"hasSponsorBadge",null);_.X([_.I("commentSurfaceEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"pdgCommentChipRenderer",null);
_.X([_.F({reflectToAttribute:!0}),_.I("voiceReplyContainerViewModel"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"hasVoiceReply",null);_.X([_.I("commentSurfaceEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"voiceReplyContainerViewModel",null);_.X([_.I("voiceReplyContainerViewModel"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"voiceReplyUnavailableText",null);_.X([_.F(),_.A("design:type",Object)],sB.prototype,"data",void 0);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"viewModel",null);_.X([_.F({selector:function(q,Z){return _.iI(q.entities,"commentSharedEntityPayload",Z)},
selectorArgs:["viewModel.sharedKey"]}),_.A("design:type",Object)],sB.prototype,"commentSharedEntity",void 0);_.X([_.F({selector:function(q,Z){return _.iI(q.entities,"commentEntityPayload",Z)},
selectorArgs:["viewModel.commentKey"]}),_.A("design:type",Object)],sB.prototype,"commentEntity",void 0);_.X([_.F({selector:function(q,Z){return _.iI(q.entities,"commentSurfaceEntityPayload",Z)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.A("design:type",Object)],sB.prototype,"commentSurfaceEntity",void 0);_.X([_.F({selector:zJe,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.A("design:type",Object)],sB.prototype,"toolbarSurface",void 0);_.X([_.F({selector:BPI,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.A("design:type",Object)],sB.prototype,"translateButtonState",void 0);
_.X([_.I("commentSurfaceEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"backgroundColor",null);_.X([_.F({reflectToAttribute:!0}),_.I("viewModel"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],sB.prototype,"optimalReadingWidthComments",null);_.X([_.fo("ytd-expander"),_.A("design:type",Object)],sB.prototype,"expander",void 0);
_.X([_.M("backgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sB.prototype,"updateBackgroundColor",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],sB.prototype,"useSmallAvatars",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],sB.prototype,"webWatchCompactComments",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"isReply",null);
_.X([_.I("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"authorThumbnailEndpoint",null);_.X([_.I("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"authorNameEndpoint",null);_.X([_.I("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"authorThumbnail",null);_.X([_.I("commentEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],sB.prototype,"authorTextClass",null);
_.X([_.I("commentEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],sB.prototype,"authorChannelName",null);_.X([_.I("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"publishedTime",null);_.X([_.I("commentSurfaceEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"publishedTimeCommand",null);
_.X([_.I("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"contentText",null);_.X([_.M("contentText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sB.prototype,"resetExpander",null);_.X([_.I("commentEntity"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],sB.prototype,"shouldShowReadMoreInitially",null);
_.X([_.I("commentSharedEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],sB.prototype,"expandText",null);_.X([_.I("commentSharedEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],sB.prototype,"collapseText",null);_.X([_.I("commentEntity"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],sB.prototype,"shouldShowTranslateButton",null);
_.X([_.I("commentEntity","commentSharedEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"translateButton",null);_.X([_.I("toolbarSurface"),_.A("design:type",Object),_.A("design:paramtypes",[])],sB.prototype,"overflowMenuRenderer",null);_.X([_.F(),_.A("design:type",Object)],sB.prototype,"editDialog",void 0);_.X([_.fo("ytd-comment-dialog-renderer"),_.A("design:type",Object)],sB.prototype,"JSC$13603_editCommentDialogContainer",void 0);
_.X([_.fo("ytd-comment-reply-dialog-renderer"),_.A("design:type",Object)],sB.prototype,"JSC$13603_editReplyDialogContainer",void 0);_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],sB.prototype,"onYtNavigate",null);_.X([_.m2("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],sB.prototype,"onYtCommentboxDismiss",null);
_.X([_.m2("yt-commentbox-resize"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],sB.prototype,"onYtCommentboxResize",null);sB=_.X([_.l({disableElementRegistration:!0,is:"ytd-comment-view-model"})],sB);
_.p(sB,"ytd-comment-view-model",function(){if(y61!==void 0)return y61;var q=document.createElement("template");_.a(q,'\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">\n      </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          <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">\n              [[authorChannelName]]\n            </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" 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\n');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return y61=q},{mode:_.NT("kevlar_poly_si_batch_j025")?1:2});var qSp=function(){var q=_.N.apply(this,arguments)||this;q.modern=_.b("web_modern_buttons");q.isWatchGrid=_.b("kevlar_watch_grid");q.buttonOverrides={style:"call-to-action"};q.JSC$13620_spinnerEl=null;q.nextContinuation={continuationType:"commentRepliesContinuation",usePost:!0};return q};
_.z(qSp,_.N);_.e=qSp.prototype;_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.e.configureRendererStamper=function(){return{"data.continuations":{id:"continuation",mapping:{nextContinuationData:{component:"yt-next-continuation",params:{showButton:!0,showIcon:!0}}}},"data.teaserContents":{id:"teaser-replies",mapping:{commentRenderer:{component:"ytd-comment-renderer",params:{isReply:!0}},commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentRenderer:{component:"ytd-comment-renderer",params:{isReply:!0}},commentViewModel:{component:"ytd-comment-view-model"},
continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.e.attached=function(){this.isShowRepliesVisible=!0};
_.e.created=function(){this.domRepeatInitialCount=10};
_.e.dataChanged=function(){var q=this.expanderContents;q&&(q.hidden=!0);this.isLoading=!1};
_.e.onContentsDomChange=function(){this.domRepeatInitialCount=_.E(this.hostElement).querySelectorAll("ytd-comment-renderer").length};
_.e.onRetrieveLocation=function(q,Z){Z.locationRetrieved("/comment_service_ajax?action_get_comment_replies=1&pbj=1",void 0);q.stopPropagation()};
_.e.triggerFirstContinuation=function(){this.data.contents||this.continuation&&this.continuation.trigger();this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.e.isLoadingChanged=function(){this.isLoading&&!this.JSC$13620_spinnerEl&&(this.JSC$13620_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E(this.expanderContents).appendChild(this.JSC$13620_spinnerEl));this.JSC$13620_spinnerEl&&(this.JSC$13620_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var q;(q=this.contents)==null||q.classList.remove("reloading")}};
_.e.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var q=_.J(this.data.viewReplies,_.tA);q&&this.ytRendererBehavior.logExplicitClick(q)};
_.e.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var q=_.J(this.data.hideReplies,_.tA);q&&this.ytRendererBehavior.logExplicitClick(q)};
_.e.isShowMoreChanged=function(){var q=_.E(this.hostElement).querySelector("#expander-contents");q&&(q.hidden=this.isShowRepliesVisible)};
_.e.computeAlign=function(){if(this.modern){var q;return!((q=this.data)==null?0:q.viewRepliesCreatorThumbnail)}};
_.My.Object.defineProperties(qSp.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var q,Z=(q=this.data)==null?void 0:q.contents,w;return!((w=this.data)==null||!w.continuations)||!!Z&&Z.length>0&&!!Z[Z.length-1].continuationItemRenderer}}});
var IO=qSp;IO.prototype.isShowMoreChanged=IO.prototype.isShowMoreChanged;IO.prototype.isLoadingChanged=IO.prototype.isLoadingChanged;IO.prototype.triggerFirstContinuation=IO.prototype.triggerFirstContinuation;IO.prototype.onRetrieveLocation=IO.prototype.onRetrieveLocation;IO.prototype.dataChanged=IO.prototype.dataChanged;_.X([_.U(_.FP.YtNextContinuationBehavior),_.A("design:type",Object)],IO.prototype,"ytNextContinuationBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],IO.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],IO.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.Ms),_.A("design:type",Object)],IO.prototype,"ytContinuationHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],IO.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],IO.prototype,"modern",void 0);
_.X([_.F(),_.A("design:type",Boolean)],IO.prototype,"isLoading",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],IO.prototype,"isShowRepliesVisible",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],IO.prototype,"useNewFormatting",void 0);_.X([_.F({value:10}),_.A("design:type",Number)],IO.prototype,"domRepeatInitialCount",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],IO.prototype,"isWatchGrid",void 0);
_.X([_.F(),_.A("design:type",Object)],IO.prototype,"buttonOverrides",void 0);_.X([_.fo("#expander-contents"),_.A("design:type",HTMLElement)],IO.prototype,"expanderContents",void 0);_.X([_.fo("yt-next-continuation"),_.A("design:type",Object)],IO.prototype,"continuation",void 0);_.X([_.fo("ytd-continuation-item-renderer"),_.A("design:type",Object)],IO.prototype,"continuationItemRenderer",void 0);_.X([_.fo("#contents"),_.A("design:type",HTMLElement)],IO.prototype,"contents",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],IO.prototype,"dataChanged",null);_.X([_.I("data.continuations","data.contents"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],IO.prototype,"hasContinuation",null);_.X([_.m2("yt-retrieve-location"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],IO.prototype,"onRetrieveLocation",null);
_.X([_.m2("yt-expander-more-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],IO.prototype,"triggerFirstContinuation",null);_.X([_.M("isLoading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],IO.prototype,"isLoadingChanged",null);_.X([_.M("isShowRepliesVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],IO.prototype,"isShowMoreChanged",null);
IO=_.X([_.l({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],IO);
_.p(IO,"ytd-comment-replies-renderer",function(){if(hup!==void 0)return hup;var q=document.createElement("template");_.a(q,'\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="[[!hasContinuation]]" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return hup=q},{mode:1});var Z0p;var wfg=function(){var q=_.N.apply(this,arguments)||this;q.isOpen=!1;q.commentDialog=null;q.useSmallAvatars=_.b("small_avatars_for_comments");q.useSmallAvatarsEngagementPanelOnly=_.b("small_avatars_for_comments_ep");q.placeholderFocusListener=null;q.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return q};
_.z(wfg,_.N);_.e=wfg.prototype;_.e.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]]"}}}}}};
_.e.ready=function(){var q=this,Z=_.E(this.hostElement).querySelector("#placeholder-area"),w=_.E(this.hostElement).querySelector("#simplebox-placeholder"),r=function(Y){Y.stopPropagation();Y instanceof KeyboardEvent&&Y.type==="keypress"&&Y.keyCode!==13&&Y.keyCode!==32||q.openDialog()};
this.placeholderFocusListener=r;w.addEventListener("focus",this.placeholderFocusListener);Z.addEventListener("tap",r);Z.addEventListener("keypress",r)};
_.e.maybeRemoveFocusEventListener=function(){var q;(q=this.data)!=null&&q.prepareAccountEndpoint&&!_.b("web_comments_simplebox_modal_focus_on_tap_ks")&&(q=_.E(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(q.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.e.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.e.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.b("web_comment_simplebox_resolve_polymer_command_ks")?_.AJ.instance.resolveCommand(this.data.prepareAccountEndpoint):_.f5(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.E(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.e.onYtCommentboxDismiss=function(q){q.stopPropagation();this.isOpen=!1};
_.e.onCreateCommentAction=function(q){this.get("createCommentAction.contents",q)&&(this.isOpen=!1)};
_.e.computeCommentDialog=function(q){return{placeholderText:q.placeholderText,authorThumbnail:q.authorThumbnail,submitButton:q.submitButton,imageButton:q.imageButton,cancelButton:q.cancelButton,emojiButton:q.emojiButton,emojis:q.emojis,emojiPicker:q.emojiPicker,aadcGuidelinesStateEntityKey:q.aadcGuidelinesStateEntityKey,openAadcDialog:q.openAadcDialog,unicodeEmojisUrl:q.unicodeEmojisUrl}};
_.e.onHideIdentityChip=function(q){_.J(q,Aqe)&&this.set("data.placeholderText",_.J(q,Aqe).placeholderText)};
var c_=wfg;c_.prototype.onYtCommentboxDismiss=c_.prototype.onYtCommentboxDismiss;c_.prototype.dataChanged=c_.prototype.dataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],c_.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],c_.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],c_.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],c_.prototype,"isOpen",void 0);_.X([_.F(),_.A("design:type",Object)],c_.prototype,"commentDialog",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],c_.prototype,"engagementPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],c_.prototype,"useSmallAvatars",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],c_.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],c_.prototype,"enableCreationBox",void 0);_.X([_.F(),_.A("design:type",Boolean)],c_.prototype,"showCreateDialog",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],c_.prototype,"dataChanged",null);
_.X([_.m2("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],c_.prototype,"onYtCommentboxDismiss",null);c_=_.X([_.l({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],c_);
_.p(c_,"ytd-comment-simplebox-renderer",function(){if(Z0p!==void 0)return Z0p;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Z0p=q},{mode:1});var rkD;_.He("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var Me=function(){var q=_.N.apply(this,arguments)||this;q.addHoverEffect=_.b("swatcheroo_comments_hover_effect");return q};
_.z(Me,_.N);Me.prototype.onTap=function(q){if(this.addHoverEffect&&!this.engagementPanel&&!_.E1(_.E8(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Z;((Z=window.getSelection())==null?0:Z.toString().length)||_.f5({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
Me.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.My.Object.defineProperties(Me.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)!=null&&q.commentViewModel)return _.J(this.data.commentViewModel,qs2)}}});
var F0=Me;F0.prototype.onTap=F0.prototype.onTap;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],F0.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],F0.prototype,"addHoverEffect",void 0);_.X([_.F(),_.A("design:type",Object)],F0.prototype,"data",void 0);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],F0.prototype,"commentViewModel",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],F0.prototype,"engagementPanel",void 0);_.X([_.m2("tap"),_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],F0.prototype,"onTap",null);F0=_.X([_.l({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],F0);
_.p(F0,"ytd-comment-thread-renderer",function(){if(rkD!==void 0)return rkD;var q=document.createElement("template");_.a(q,'\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<template is="dom-if" if="[[data.comment.commentRenderer]]" class="style-scope ytd-comment-thread-renderer">\n  <ytd-comment-renderer id="comment" data="[[data.comment.commentRenderer]]" engagement-panel="[[engagementPanel]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-renderer>\n</template>\n<template is="dom-if" if="[[data.commentViewModel]]" class="style-scope ytd-comment-thread-renderer">\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</template>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return rkD=q},{mode:_.NT("kevlar_poly_si_batch_j025")?1:2});var YSJ;var $PW=function(){var q=_.N.apply(this,arguments)||this;q.modernTypography=_.b("web_modern_typography");q.compactHeader=_.b("web_watch_compact_comments_header");q.hidePanelButton=!1;q.isPostSchedulingEnabled=_.b("enable_post_scheduling");q.hasFinishedStamping=!1;q.JSC$13638_handleOpenPostCommentDialogActionAfterStamp=!1;q.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return q};
_.z($PW,_.N);_.e=$PW.prototype;
_.e.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"}}}};
_.e.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.e.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13638_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.e.onYtServiceRequestSent=function(q,Z){if(!_.b("kevlar_command_handler")&&Z.actions)for(q=0;q<Z.actions.length;q++){var w=Z.actions[q];_.J(w,t3h)&&_.E(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.J(w,t3h))}};
_.e.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var q;if(this.getPrefilledBackstagePostDialog((q=this.data)==null?void 0:q.actions)){_.E(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var Z=_.E(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;Z&&_.I_(this,function(){Z.focus();Z.openDialog&&Z.openDialog()})}}else this.hasActionsChange=!0};
_.e.computeIsBackstage=function(q){return q};
_.e.onYtCommentboxDismiss=function(){_.E(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.e.removePrefilledDialog=function(q){if(q==null?0:q.actions){for(var Z=q.actions.length-1;Z>=0;Z--){var w=void 0;((w=_.J(q.actions[Z],sDK))==null?0:w.dialog)&&delete q.actions[Z]}this.set("data",void 0);this.set("data",q)}};
_.e.getPrefilledBackstagePostDialog=function(q){if(q)for(var Z=0;Z<q.length;Z++){var w=q[Z],r=void 0;if((r=_.J(w,sDK))==null?0:r.dialog)return _.J(w,sDK).dialog}return null};
_.e.computeBackstagePostDialog=function(q){return q&&(this.getPrefilledBackstagePostDialog(q.actions)||q.createRenderer)};
_.e.dataChanged=function(){if(this.data){var q=this.data.customEmojis,Z=this.data.unicodeEmojisUrl;_.tC.clear();Z&&_.jND(_.tC,Z);q&&_.tC.load(q)}};
_.e.handleSignalActionOpenPostCommentDialogAction=function(){var q=_.E(this.hostElement).querySelector("ytd-comment-simplebox-renderer");q?q.openDialog():this.JSC$13638_handleOpenPostCommentDialogActionAfterStamp=!0};
_.My.Object.defineProperties($PW.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.b("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r,Y,C,d;return!this.hidePanelButton&&_.b("kevlar_watch_comments_panel_button")&&((d=_.J((q=this.data)==null?void 0:(Z=q.sortMenu)==null?void 0:(w=Z.sortFilterSubMenuRenderer)==null?void 0:(r=w.subMenuItems)==null?void 0:(Y=r[0])==null?void 0:(C=Y.serviceEndpoint)==null?void 0:C.commandMetadata,_.XK))==null?void 0:d.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.dT("MINIPLAYER_EXPAND_LABEL"),text:_.UE(_.dT("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
var Ne=$PW;Ne.prototype.dataChanged=Ne.prototype.dataChanged;Ne.prototype.onYtCommentboxDismiss=Ne.prototype.onYtCommentboxDismiss;Ne.prototype.observePrefilledBackstagePostDialog=Ne.prototype.observePrefilledBackstagePostDialog;Ne.prototype.onYtServiceRequestSent=Ne.prototype.onYtServiceRequestSent;Ne.prototype.onStampFinished=Ne.prototype.onStampFinished;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Ne.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ne.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ne.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ne.prototype,"modernTypography",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ne.prototype,"compactHeader",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ne.prototype,"engagementPanel",void 0);_.X([_.F(),_.A("design:type",Object)],Ne.prototype,"hidePanelButton",void 0);_.X([_.F({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Ne.prototype,"isBackstage",void 0);_.X([_.F({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.A("design:type",Object)],Ne.prototype,"backstagePostDialog",void 0);
_.X([_.F(),_.A("design:type",Object)],Ne.prototype,"isPostSchedulingEnabled",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data","showCommentsPanelButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ne.prototype,"useSpaceBetween",null);_.X([_.F({reflectToAttribute:!0}),_.I("data","hidePanelButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ne.prototype,"showCommentsPanelButton",null);
_.X([_.I("data","showCommentsPanelButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ne.prototype,"commentsPanelButtonData",null);_.X([_.m2("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ne.prototype,"onStampFinished",null);_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],Ne.prototype,"onYtServiceRequestSent",null);
_.X([_.M("data.actions"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ne.prototype,"observePrefilledBackstagePostDialog",null);_.X([_.m2("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ne.prototype,"onYtCommentboxDismiss",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ne.prototype,"dataChanged",null);
Ne=_.X([_.l({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Ne);
_.p(Ne,"ytd-comments-header-renderer",function(){if(YSJ!==void 0)return YSJ;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return YSJ=q},{mode:1});var ecD;var Cfe=function(){return _.N.apply(this,arguments)||this};
_.z(Cfe,_.N);var lZ=Cfe;_.X([_.F(),_.A("design:type",Object)],lZ.prototype,"data",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);lZ=_.X([_.l({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],lZ);
_.p(lZ,"ytd-destination-button-renderer",function(){if(ecD!==void 0)return ecD;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ecD=q},{mode:1});var Pfg;var dPX=function(){var q=_.N.apply(this,arguments)||this;q.isRichGrid=!1;q.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};q.modernTypography=_.b("web_modern_typography");return q};
_.z(dPX,_.N);_.e=dPX.prototype;_.e.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.e.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.e.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.e.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var q;if((q=this.data)==null||!q.isExpanded){q=this.hostElement.clientWidth;var Z;if(q&&(Z=this.data)!=null&&Z.destinationButtons){Z=Math.floor((q+4)/214);q=this.data.destinationButtons.length;var w=Math.ceil(q/Z);this.fullyVisibleRows=q%Z===1&&w===2?1:Math.min(w,2);this.isShowMoreVisible=this.fullyVisibleRows<w}}}};
_.e.updateRichGridDestinationButtonsVisibility=function(){var q,Z;if(this.isRichGrid&&((q=this.data)==null||!q.isExpanded)&&(Z=this.data)!=null&&Z.destinationButtons){q=this.richGridItemsPerRow+1;Z=this.data.destinationButtons.length;var w=Math.ceil(Z/q);this.fullyVisibleRows=Z%q===1&&w===2?1:Math.min(w,2);this.isShowMoreVisible=this.fullyVisibleRows<w}};
_.e.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
var Gb=dPX;Gb.prototype.updateRichGridDestinationButtonsVisibility=Gb.prototype.updateRichGridDestinationButtonsVisibility;_.X([_.F(),_.A("design:type",Object)],Gb.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Number)],Gb.prototype,"fullyVisibleRows",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Gb.prototype,"isShowMoreVisible",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Gb.prototype,"isRichGrid",void 0);
_.X([_.F({selector:_.vX,value:0}),_.A("design:type",Number)],Gb.prototype,"richGridItemsPerRow",void 0);_.X([_.F(),_.A("design:type",Object)],Gb.prototype,"gridStateActionMap",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Gb.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Gb.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Gb.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],Gb.prototype,"ytdReduxBehavior",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Gb.prototype,"modernTypography",void 0);_.X([_.M("data","richGridItemsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Gb.prototype,"updateRichGridDestinationButtonsVisibility",null);
Gb=_.X([_.l({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Gb);
_.p(Gb,"ytd-destination-shelf-renderer",function(){if(Pfg!==void 0)return Pfg;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Pfg=q},{mode:1});var V57;var O0K=function(){return _.N.apply(this,arguments)||this};
_.z(O0K,_.N);O0K.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"}}}};
var pS=O0K;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],pS.prototype,"data",void 0);pS=_.X([_.l({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],pS);
_.p(pS,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(V57!==void 0)return V57;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return V57=q},{mode:1});var H0K;var Wfv=function(){var q=_.N.apply(this,arguments)||this;q.disableAnimation=!1;q.isSlimlineSurvey=!1;q.isSlimlineSurveyFollowUp=!1;q.isShortsStyle=!1;return q};
_.z(Wfv,_.N);Wfv.prototype.onTap=function(q){q.preventDefault();this.data&&_.hy(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.My.Object.defineProperties(Wfv.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 q,Z,w,r,Y;return((q=this.data)==null?0:q.checked)?(Z=this.data)==null?void 0:(w=Z.onStateIcon)==null?void 0:w.iconType:(r=this.data)==null?void 0:(Y=r.defaultStateIcon)==null?void 0:Y.iconType}}});
var X0=Wfv;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],X0.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],X0.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],X0.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],X0.prototype,"disableAnimation",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],X0.prototype,"isSlimlineSurvey",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],X0.prototype,"isSlimlineSurveyFollowUp",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],X0.prototype,"isShortsStyle",void 0);_.X([_.I("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],X0.prototype,"isAnimatedIcon",null);
_.X([_.I("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.A("design:type",Number),_.A("design:paramtypes",[])],X0.prototype,"iconSize",null);_.X([_.I("isShortsStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],X0.prototype,"isDarkTheme",null);_.X([_.I("data.checked"),_.A("design:type",Object),_.A("design:paramtypes",[])],X0.prototype,"icon",null);X0=_.X([_.l({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],X0);
_.p(X0,"ytd-rating-survey-option-renderer",function(){if(H0K!==void 0)return H0K;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return H0K=q},{mode:2});var oVg;var uTK=function(){var q=_.N.apply(this,arguments)||this;q.firstResponseText=null;q.lastResponseText=null;q.selectedNonStarOption=null;q.hideOptions=!1;q.hideUndoButton=!0;q.disableAnimation=!1;q.showResponseRangeText=!1;q.selectedRatingIndex=-1;q.isSlimlineSurvey=!1;q.isSlimlineSurveyFollowUp=!1;q.isShortsStyle=!1;q.slimlineSurveyRatingSelectedIndex=-1;return q};
_.z(uTK,_.N);_.e=uTK.prototype;_.e.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.e.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.e.onOptionChange=function(q,Z){var w=this;q=Z.onStateIcon&&Z.defaultStateIcon&&Z.onStateIcon.iconType===Z.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(d,O){d.responseText===Z.responseText?w.isSlimlineSurvey?(w.selectedRatingIndex=O,w.ytdReduxBehavior.dispatch($h7(O))):(w.setSurveyOptionValue(O,!0,"checked"),w.setSurveyOptionValue(O,!0,"selected")):(w.setSurveyOptionValue(O,!1,"checked"),w.setSurveyOptionValue(O,
!1,"selected"))});
else if(q)this.selectedNonStarOption=Z,this.hideOptions=!0;else{var r=this.ytRendererBehavior.getSimpleString(Z.responseText),Y=!0;this.getOptionRenderers().forEach(function(d,O){w.setSurveyOptionValue(O,Y,"checked");w.setSurveyOptionValue(O,!1,"selected");w.ytRendererBehavior.getSimpleString(d.responseText)===r&&(Y=!1,w.setSurveyOptionValue(O,!0,"selected"))})}q=Z.responseEndpoint;
var C;Z.followUpCommand&&(C=_.J(Z.followUpCommand,OjK));this.isSlimlineSurvey?(this.resetComponent(),_.yY(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.yY(this.hostElement,"ytd-inline-survey-rating-select-action",[q,C])};
_.e.showSelectedOption=function(){var q=this;_.v5.addJob(function(){var Z=q.getOptionRenderers()[q.slimlineSurveyRatingSelectedIndex];q.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),Z)},8,100)};
_.e.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(q){var Z;return(Z=_.J(q,Wwe))!=null?Z:{}}):[]};
_.e.onUndoClick=function(){this.resetComponent();_.yY(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.e.setSurveyOptionValue=function(q,Z,w){this.notifyPath("data.ratings."+q+".ratingSurveyOptionRenderer."+w);this.set("data.ratings."+q+".ratingSurveyOptionRenderer."+w,Z)};
_.e.resetComponent=function(){var q=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var Z=this.getOptionRenderers(),w,r;this.firstResponseText=(r=(w=Z[0])==null?void 0:w.responseText)!=null?r:null;var Y,C;this.lastResponseText=(C=(Y=Z[Z.length-1])==null?void 0:Y.responseText)!=null?C:null;Z.forEach(function(d,O){q.setSurveyOptionValue(O,!1,"checked");q.setSurveyOptionValue(O,!1,"selected")})};
_.My.Object.defineProperties(uTK.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
var mA=uTK;mA.prototype.onOptionChange=mA.prototype.onOptionChange;mA.prototype.dataChanged=mA.prototype.dataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],mA.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],mA.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],mA.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],mA.prototype,"firstResponseText",void 0);_.X([_.F(),_.A("design:type",Object)],mA.prototype,"lastResponseText",void 0);_.X([_.F(),_.A("design:type",Object)],mA.prototype,"selectedNonStarOption",void 0);_.X([_.F(),_.A("design:type",Object)],mA.prototype,"hideOptions",void 0);_.X([_.F(),_.A("design:type",Object)],mA.prototype,"hideUndoButton",void 0);_.X([_.F(),_.A("design:type",Object)],mA.prototype,"disableAnimation",void 0);
_.X([_.F(),_.A("design:type",Object)],mA.prototype,"showResponseRangeText",void 0);_.X([_.F(),_.A("design:type",Object)],mA.prototype,"selectedRatingIndex",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],mA.prototype,"isSlimlineSurvey",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],mA.prototype,"isSlimlineSurveyFollowUp",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],mA.prototype,"isShortsStyle",void 0);_.X([_.F({selector:function(q){return q.ui.slimlineSurveyRatingSelectedIndex}}),
_.A("design:type",Object)],mA.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.X([_.I("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],mA.prototype,"isSingleSelect",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mA.prototype,"dataChanged",null);
_.X([_.m2("ytd-rating-survey-option-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],mA.prototype,"onOptionChange",null);mA=_.X([_.l({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],mA);
_.p(mA,"ytd-rating-survey-renderer",function(){if(oVg!==void 0)return oVg;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return oVg=q},{mode:1});var LfX;var SS7;var vVg;var $8N=(u2.FIRSTDAYOFWEEK+1)%7,jjX=function(q,Z,w,r){var Y="";if(r.selection&&Zaz(r.selection))HQ(q,r.selection)&&(Y+=" selected");else if(r.selection&&w7z(r.selection)){var C=r.selection.selectionState||"START_DATE";HQ(q,r.selection.start)&&(Y+=" period-start ",C==="START_DATE"&&(Y+="selected"));HQ(q,r.selection.end)&&(Y+=" period-end ",C==="END_DATE"&&(Y+="selected"));WQ(q,r.selection.start)||WQ(r.selection.end,q)||(Y+=" highlighted")}if(WQ(Z,r.start)||WQ(r.end,Z))Y+=" disabled";r.circleToday&&
HQ(Z,w)&&(Y+=" today");return Y};var t57=function(){return _.N.apply(this,arguments)||this};
_.z(t57,_.N);_.e=t57.prototype;_.e.attached=function(){var q=this;_.I_(this,function(){q.JSC$13672_calendarMain.scrollHeight>0&&(q.calendarConfig.selection?q.scrollToDate(reI(q.calendarConfig.selection)):q.scrollToDate(q.calendarConfig.end))})};
_.e.updateSelection=function(q){q=ej2(Object.assign({},this.calendarConfig,{selection:q}),jjX);this.splice.apply(this,["renderData.months",0,q.length].concat(_.Ju(q)))};
_.e.scrollToDate=function(q){this.renderData&&(q=Cnj(q,this.renderData),q!==void 0&&this.JSC$13672_calendarMain.scrollToIndex(q))};
_.e.scrollToNextMonth=function(){this.JSC$13672_calendarMain.scrollToIndex(this.JSC$13672_calendarMain.firstVisibleIndex+1)};
_.e.scrollToPrevMonth=function(){this.JSC$13672_calendarMain.firstVisibleIndex===0&&this.JSC$13672_calendarMain.scrollTo(0,0);this.JSC$13672_calendarMain.scrollToIndex(this.JSC$13672_calendarMain.firstVisibleIndex-1)};
_.e.handleDayClick=function(q){_.yY(this.hostElement,"ytd-calendar-date-clicked",[q.model.day.date])};
_.e.handleDayMouseDown=function(q){q.preventDefault();_.yY(this.hostElement,"ytd-calendar-date-mousedown",[q.model.day.date])};
_.e.handleDayMouseUp=function(q){_.yY(this.hostElement,"ytd-calendar-date-mouseup",[q.model.day.date])};
_.e.handleDayMouseEnter=function(q){q.preventDefault();_.yY(this.hostElement,"ytd-calendar-date-mouseenter",[q.model.day.date])};
_.e.handleDayMouseLeave=function(q){_.yY(this.hostElement,"ytd-calendar-date-mouseleave",[q.model.day.date])};
_.My.Object.defineProperties(t57.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var q=this.calendarConfig,Z=jjX;Z=Z===void 0?jjX:Z;for(var w=[],r=0;r<7;r++)w.push(u2.NARROWWEEKDAYS[(r+$8N)%7]);return{months:ej2(q,Z),daysOfWeekLabel:w}}}});
var An=t57;_.X([_.F(),_.A("design:type",Object)],An.prototype,"calendarConfig",void 0);_.X([_.fo("#calendar-main"),_.A("design:type",Object)],An.prototype,"JSC$13672_calendarMain",void 0);_.X([_.I("calendarConfig"),_.A("design:type",Object),_.A("design:paramtypes",[])],An.prototype,"renderData",null);An=_.X([_.l({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],An);
_.p(An,"ytd-scrollable-calendar",function(){if(vVg!==void 0)return vVg;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return vVg=q},{mode:2});var RcK;var b0X;var Jkh=function(){var q=_.N.apply(this,arguments)||this;q.hideCharCounter=!1;q.hideLabel=!1;q.noLabelFloat=!1;q.autoValidate=!0;q.invalid=!1;q.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return q};
_.z(Jkh,_.N);_.e=Jkh.prototype;_.e.reset=function(q){this.value=q&&this.data?this.data.value=q:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.e.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.e.focusTextInput=function(){this.input.focus()};
_.e.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()};
_.e.valueChanged=function(){var q,Z;if(((q=this.data)==null?0:q.value)||((Z=this.data)==null?void 0:Z.value)==="")this.value=this.data.value;else{var w;((w=this.data)==null?void 0:w.value)!==void 0||this.value||(this.value="")}};
_.e.computeLabel=function(q,Z){return Z?"":_.kO(q)};
_.e.computeAriaLabel=function(q,Z){return Z?_.kO(q):""};
_.e.computeErrorMessage=function(q,Z,w,r){!q&&Z?q=w||this.strings.REQUIRED_LABEL:(q=_.kO(r),q=_.uN(q,"&")?"document"in _.$1?x79(q):TWg(q):q);return q};
_.e.computeType=function(q){return q==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.e.onTextValueChanged=function(q){this.value=q.detail.value;var Z;(Z=this.onValueChanged)==null||Z.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.e.handleUpdateTextInputFormFieldRendererCommand=function(q){(q=_.J(q,U17))&&this.data&&this.data.id===q.id&&(q.invalid!==void 0&&(this.invalid=q.invalid),q.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",q.invalidValueErrorMessage))};
_.e.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("value-changed",this.value))};
_.e.updateInvalidFromBinding=function(q){this.invalid=q.detail.value};
_.My.Object.defineProperties(Jkh.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var q;return!((q=this.data)==null||!q.isMultiline)}}});
var fS=Jkh;fS.prototype.valueChangedForBinding=fS.prototype.valueChangedForBinding;fS.prototype.valueChanged=fS.prototype.valueChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],fS.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],fS.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],fS.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],fS.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],fS.prototype,"value",void 0);_.X([_.F(),_.A("design:type",String)],fS.prototype,"pattern",void 0);_.X([_.F(),_.A("design:type",String)],fS.prototype,"errorMessage",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],fS.prototype,"componentStyle",void 0);_.X([_.F(),_.A("design:type",Object)],fS.prototype,"hideCharCounter",void 0);
_.X([_.F(),_.A("design:type",Object)],fS.prototype,"hideLabel",void 0);_.X([_.F(),_.A("design:type",Object)],fS.prototype,"noLabelFloat",void 0);_.X([_.F(),_.A("design:type",Function)],fS.prototype,"onValueChanged",void 0);_.X([_.F(),_.A("design:type",Boolean)],fS.prototype,"isMultilineOverride",void 0);_.X([_.F(),_.A("design:type",Object)],fS.prototype,"autoValidate",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],fS.prototype,"invalid",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],fS.prototype,"enableOverlayTheme",void 0);_.X([_.F({value:{REQUIRED_LABEL:_.dT("REQUIRED_LABEL",void 0,"Required")}}),_.A("design:type",Object)],fS.prototype,"strings",void 0);_.X([_.fo("#input"),_.A("design:type",Object)],fS.prototype,"input",void 0);_.X([_.I("data","isMultilineOverride"),_.A("design:type",Object),_.A("design:paramtypes",[])],fS.prototype,"isMultiline",null);
_.X([_.g3("data.value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fS.prototype,"valueChanged",null);_.X([_.M("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fS.prototype,"valueChangedForBinding",null);fS=_.X([_.dx({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],fS);
_.p(fS,"yt-text-input-form-field-renderer",function(){if(b0X===void 0){var q=document.createElement("template");_.a(q,'\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="" 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]]" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;RcK===void 0&&(RcK=document.createElement("template"));var r=RcK;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);b0X=q}q=b0X;return q},{mode:2});var zcm=function(){var q=_.N.apply(this,arguments)||this;q.data=void 0;q.selectionState="START_DATE";q.isStartDateInvalid=!1;q.isEndDateInvalid=!1;q.autoapply=!1;q.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 q};
_.z(zcm,_.N);_.e=zcm.prototype;_.e.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"}}}}};
_.e.focus=function(){this.startDateInput.focus()};
_.e.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:og(this.data.selection.start),end:og(this.data.selection.end)})};
_.e.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.e.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.F7(this.selectionState)}};
_.e.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.e.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.e.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.e.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var q=this.calendar.calendarConfig,Z=q.end;q=d82({start:q.start,end:this.endDate||Z},this.startDateInput.value||"");this.isStartDateInvalid=!q.isValid;q.isValid&&(q=q.value,this.selection=this.endDate?{start:q,end:this.endDate}:q,this.calendar.scrollToDate(q));this.updateInvalidState()}};
_.e.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var q=this.calendar.calendarConfig,Z=q.start;q=d82({start:this.startDate||Z,end:q.end},this.endDateInput.value||"");this.isEndDateInvalid=!q.isValid;q.isValid&&(q=q.value,this.selection={start:this.startDate,end:q},this.calendar.scrollToDate(q));this.updateInvalidState()}};
_.e.handleCalendarDateClicked=function(q){var Z=this.selection&&reI(this.selection),w=this.selection&&YcT(this.selection);Z&&!WQ(q,Z)&&this.selectionState==="END_DATE"?(this.selection={start:Z,end:q},this.selectionState="START_DATE"):(w&&!WQ(w,q)?this.selection={start:q,end:w}:this.selection=q,this.selectionState="END_DATE")};
_.e.handleCalendarDateMouseDown=function(q){this.selection&&!Zaz(this.selection)&&(this.dragPivot=HQ(q,this.selection.start)?this.selection.end:HQ(q,this.selection.end)?this.selection.start:q)};
_.e.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.e.handleCalendarDateMouseEnter=function(q){this.dragPivot&&(this.selection={start:function(Z,w){return WQ(Z,w)?Z:w}(this.dragPivot,q),
end:function(Z,w){return WQ(Z,w)?w:Z}(this.dragPivot,q)},this.dragPivot||(this.selectionState="START_DATE"))};
_.e.handleCalendarDateMouseLeave=function(){};
_.e.handleCalendarSubmitDateRange=function(){this.selection&&!Zaz(this.selection)&&_.yY(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.e.updateInvalidState=function(){var q=function(Z,w){w?Z.setAttribute("invalid",""):Z.removeAttribute("invalid")};
q(this.startDateInput,this.isStartDateInvalid);q(this.endDateInput,this.isEndDateInvalid)};
_.e.updateDateStrings=function(){this.selection&&(Zaz(this.selection)?qcO(this.selection):(qcO(this.selection.start),qcO(this.selection.end)))};
_.e.updateCalendarSelection=function(q){this.calendar.updateSelection(Object.assign({},q,{selectionState:this.selectionState}))};
_.e.updateIsStartDateInvalidFromBinding=function(q){this.isStartDateInvalid=q.detail.value};
_.e.updateIsEndDateInvalidFromBinding=function(q){this.isEndDateInvalid=q.detail.value};
_.e.updateStartDateStringFromBinding=function(){};
_.e.updateEndDateStringFromBinding=function(){};
_.My.Object.defineProperties(zcm.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:og(this.data.dateRangeStart),end:og(this.data.dateRangeEnd),selection:{start:og(this.data.selection.start),end:og(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&reI(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&YcT(this.selection)}}});
var Dc=zcm;Dc.prototype.resetTextboxes=Dc.prototype.resetTextboxes;Dc.prototype.observeSelection=Dc.prototype.observeSelection;Dc.prototype.dataChanged=Dc.prototype.dataChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Dc.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Dc.prototype,"ytRendererstamperBehavior",void 0);_.X([_.fo("#calendar"),_.A("design:type",Object)],Dc.prototype,"calendar",void 0);
_.X([_.fo("#start-date"),_.A("design:type",Object)],Dc.prototype,"startDateInput",void 0);_.X([_.fo("#end-date"),_.A("design:type",Object)],Dc.prototype,"endDateInput",void 0);_.X([_.F(),_.A("design:type",Object)],Dc.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Dc.prototype,"selection",void 0);_.X([_.F(),_.A("design:type",String)],Dc.prototype,"selectionState",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Dc.prototype,"calendarConfig",null);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Dc.prototype,"errorMessage",null);_.X([_.I("selection"),_.A("design:type",Object),_.A("design:paramtypes",[])],Dc.prototype,"startDate",null);_.X([_.I("selection"),_.A("design:type",Object),_.A("design:paramtypes",[])],Dc.prototype,"endDate",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dc.prototype,"dataChanged",null);
_.X([_.M("selection","selectionState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dc.prototype,"observeSelection",null);_.X([_.M("selectionState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dc.prototype,"resetTextboxes",null);Dc=_.X([_.l({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Dc);
_.p(Dc,"ytd-date-period-picker-renderer",function(){if(SS7!==void 0)return SS7;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return SS7=q},{mode:1});var Bh7=function(){var q=_.N.apply(this,arguments)||this;var Z={};q.actionMap=(Z["ytd-date-period-picker-apply"]="handleDateRangeUpdated",Z);return q};
_.z(Bh7,_.N);Bh7.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Bh7.prototype.handleDateRangeUpdated=function(){};
var hn=Bh7;_.X([_.F(),_.A("design:type",Object)],hn.prototype,"data",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],hn.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],hn.prototype,"rendererstamperBehavior",void 0);hn=_.X([_.l({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],hn);
_.p(hn,"ytd-report-history-section-header-renderer",function(){if(LfX!==void 0)return LfX;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return LfX=q},{mode:1});var as1;var nVW;var Qj1;var EVJ=function(){return _.N.apply(this,arguments)||this};
_.z(EVJ,_.N);_.My.Object.defineProperties(EVJ.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.data)==null?0:(Z=q.icon)==null?0:Z.iconType)?_.Xl(this.data.icon.iconType):""}}});
var y9=EVJ;_.X([_.F(),_.A("design:type",Object)],y9.prototype,"data",void 0);_.X([_.I("data"),_.A("design:type",String),_.A("design:paramtypes",[])],y9.prototype,"icon",null);y9=_.X([_.l({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],y9);
_.p(y9,"ytd-report-history-table-text-cell-renderer",function(){if(Qj1!==void 0)return Qj1;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Qj1=q},{mode:1});var xPg=function(){return _.N.apply(this,arguments)||this};
_.z(xPg,_.N);xPg.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
var iZ=xPg;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],iZ.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],iZ.prototype,"data",void 0);iZ=_.X([_.l({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],iZ);
_.p(iZ,"ytd-report-history-table-reason-cell-renderer",function(){if(nVW!==void 0)return nVW;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return nVW=q},{mode:1});var ThK=function(){return _.N.apply(this,arguments)||this};
_.z(ThK,_.N);ThK.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"}}}};
var gE=ThK;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],gE.prototype,"rendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],gE.prototype,"data",void 0);gE=_.X([_.l({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],gE);
_.p(gE,"ytd-report-history-table-cell-renderer",function(){if(as1!==void 0)return as1;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
return as1=q},{mode:1});var UP1;var qq=function(){var q=_.N.apply(this,arguments)||this;q.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 q};
_.z(qq,_.N);qq.prototype.onDataChanged=function(){var q;if((q=this.data)==null?0:q.style)this.componentStyle=this.getStyleName(this.data.style)};
qq.prototype.getCellForColumn=function(q){return this.cells.find(function(Z){var w;return((w=_.J(Z==null?void 0:Z.cell,Lw1)||_.J(Z==null?void 0:Z.cell,uJW))==null?void 0:w.columnId)===q.type})};
qq.prototype.getClassForColumn=function(q){switch(q){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
qq.prototype.getStyleName=function(q){switch(q){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.My.Object.defineProperties(qq.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var q;return(((q=this.data)==null?void 0:q.cells)||[]).map(function(Z){return _.J(Z,onW)})}}});
var Z9=qq;Z9.prototype.onDataChanged=Z9.prototype.onDataChanged;_.X([_.F(),_.A("design:type",Object)],Z9.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Array)],Z9.prototype,"columnRenderData",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],Z9.prototype,"componentStyle",void 0);_.X([_.I("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],Z9.prototype,"cells",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Z9.prototype,"onDataChanged",null);Z9=_.X([_.l({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Z9);
_.p(Z9,"ytd-report-history-table-row-renderer",function(){if(UP1!==void 0)return UP1;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return UP1=q},{mode:1});var k87;var Kfm;var VoI={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},OaX={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var wg=function(){return _.N.apply(this,arguments)||this};
_.z(wg,_.N);wg.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"}}}}}};
wg.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.My.Object.defineProperties(wg.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.columns)?LNT(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return o3e(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var q=this.tableSpec,Z=VoI;Z=Z===void 0?OaX:Z;Z=unO(q.columnDimensions,q.columnsToShow||[],Z);q=0;Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next())w=w.value,q+=w.minWidth+w.paddingLeft+w.paddingRight;return q}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
var rg=wg;_.X([_.U(_.Ms),_.A("design:type",Object)],rg.prototype,"ytContinuationHandlerBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],rg.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],rg.prototype,"data",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],rg.prototype,"tableSpec",null);_.X([_.I("tableSpec"),_.A("design:type",Array),_.A("design:paramtypes",[])],rg.prototype,"columnRenderData",null);
_.X([_.I("tableSpec"),_.A("design:type",Number),_.A("design:paramtypes",[])],rg.prototype,"totalMinWidth",null);_.X([_.I("totalMinWidth"),_.A("design:type",String),_.A("design:paramtypes",[])],rg.prototype,"tableWidthStyle",null);rg=_.X([_.l({is:"ytd-table-renderer",disableElementRegistration:!0})],rg);
_.p(rg,"ytd-table-renderer",function(){if(Kfm!==void 0)return Kfm;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Kfm=q},{mode:1});var sjv=function(){return _.N.apply(this,arguments)||this};
_.z(sjv,_.N);sjv.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}}}}}};
var YI=sjv;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],YI.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],YI.prototype,"data",void 0);YI=_.X([_.l({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],YI);
_.p(YI,"ytd-report-reason-history-modal-renderer",function(){if(k87!==void 0)return k87;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return k87=q},{mode:1});var IsW;var ckD;var M57;var Ffh=function(){return _.N.apply(this,arguments)||this};
_.z(Ffh,_.N);var $I=Ffh;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],$I.prototype,"data",void 0);$I=_.X([_.l({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],$I);
_.p($I,"ytd-profile-column-stats-entry-renderer",function(){if(M57!==void 0)return M57;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return M57=q},{mode:1});var Nhe;var ls9=function(){return _.N.apply(this,arguments)||this};
_.z(ls9,_.N);ls9.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
var eW=ls9;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],eW.prototype,"data",void 0);eW=_.X([_.l({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],eW);
_.p(eW,"ytd-profile-column-stats-renderer",function(){if(Nhe!==void 0)return Nhe;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Nhe=q},{mode:1});var G87;var pfh=function(){return _.N.apply(this,arguments)||this};
_.z(pfh,_.N);_.My.Object.defineProperties(pfh.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.useThumbnailSize)return 80;var Z,w;q=(Z=this.data)==null?void 0:(w=Z.thumbnail)==null?void 0:w.thumbnails;var r;return q&&((r=q[0])==null?void 0:r.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.useThumbnailSize)return 80;var Z,w;q=(Z=this.data)==null?void 0:(w=Z.thumbnail)==null?void 0:w.thumbnails;var r;return q&&((r=q[0])==null?void 0:r.height)||80}}});
var Ce=pfh;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ce.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],Ce.prototype,"componentStyle",void 0);_.X([_.I("data.useThumbnailSize"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ce.prototype,"thumbnailWidth",null);
_.X([_.I("data.useThumbnailSize"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ce.prototype,"thumbnailHeight",null);Ce=_.X([_.l({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Ce);
_.p(Ce,"ytd-profile-column-user-info-renderer",function(){if(G87!==void 0)return G87;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return G87=q},{mode:1});var Xfv=function(){return _.N.apply(this,arguments)||this};
_.z(Xfv,_.N);Xfv.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]]"}}}}}};
var P$=Xfv;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],P$.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],P$.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],P$.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],P$.prototype,"componentStyle",void 0);P$=_.X([_.l({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],P$);
_.p(P$,"ytd-profile-column-renderer",function(){if(ckD!==void 0)return ckD;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return ckD=q},{mode:1});var mPg=function(){var q=_.N.apply(this,arguments)||this;q.componentStyle="NON_CENTERED_PROFILE";return q};
_.z(mPg,_.N);mPg.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
mPg.prototype.getIcon=function(q){return q?"settings:"+q.toLowerCase():null};
var dg=mPg;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],dg.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],dg.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],dg.prototype,"data",void 0);dg=_.X([_.l({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],dg);
_.p(dg,"ytd-page-introduction-renderer",function(){if(IsW!==void 0)return IsW;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return IsW=q},{mode:1});var Akm;var fsp=function(){return _.N.apply(this,arguments)||this};
_.z(fsp,_.N);var Vx=fsp;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Vx.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Vx.prototype,"data",void 0);Vx=_.X([_.l({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Vx);
_.p(Vx,"ytd-report-description-renderer",function(){if(Akm!==void 0)return Akm;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Akm=q},{mode:1});var DPe;var hcJ;var ykW=function(){return _.N.apply(this,arguments)||this};
_.z(ykW,_.N);ykW.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
var OQ=ykW;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],OQ.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],OQ.prototype,"data",void 0);OQ=_.X([_.l({is:"ytd-video-report-renderer",disableElementRegistration:!0})],OQ);
_.p(OQ,"ytd-video-report-renderer",function(){if(hcJ!==void 0)return hcJ;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return hcJ=q},{mode:1});var i0J;_.He("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.He("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var H$=function(){return _.N.apply(this,arguments)||this};
_.z(H$,_.N);H$.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]]"}}}}}};
H$.prototype.computeMessageStyle=function(q){return q};
H$.prototype.computeButtonOverride=function(q){var Z;if((q==null?0:(Z=q.style)==null?0:Z.value)&&q.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
var W$=H$;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],W$.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],W$.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],W$.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],W$.prototype,"shelf",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],W$.prototype,"panel",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.A("design:type",Boolean)],W$.prototype,"componentStyle",void 0);_.X([_.F({computed:"computeButtonOverride(data)"}),_.A("design:type",Object)],W$.prototype,"buttonOverride",void 0);W$=_.X([_.l({is:"ytd-message-renderer",disableElementRegistration:!0})],W$);
_.p(W$,"ytd-message-renderer",function(){if(i0J!==void 0)return i0J;var q=document.createElement("template");_.a(q,'\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<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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return i0J=q},{mode:1});var ou=function(){return _.N.apply(this,arguments)||this};
_.z(ou,_.N);ou.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"}}}};
ou.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
ou.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.My.Object.defineProperties(ou.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!!(((q=this.data)==null?0:q.header)&&((Z=this.data)==null?0:Z.table))}}});
var uk=ou;uk.prototype.onRequestError=uk.prototype.onRequestError;_.X([_.U(_.Ms),_.A("design:type",Object)],uk.prototype,"ytContinuationHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],uk.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],uk.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],uk.prototype,"data",void 0);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],uk.prototype,"isUnifiedReportHistory",null);_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uk.prototype,"onRequestError",null);uk=_.X([_.l({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],uk);
_.p(uk,"ytd-report-history-section-renderer",function(){if(DPe!==void 0)return DPe;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return DPe=q},{mode:1});var gV7;var q_g=function(){var q=_.N.apply(this,arguments)||this;q.answerExpanded=!1;return q};
_.z(q_g,_.N);q_g.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
var Le=q_g;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Le.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Le.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Le.prototype,"answerExpanded",void 0);Le=_.X([_.l({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Le);
_.p(Le,"ytd-handles-claiming-faq-renderer",function(){if(gV7!==void 0)return gV7;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return gV7=q},{mode:1});var Z3K;var wUm=function(){return _.N.apply(this,arguments)||this};
_.z(wUm,_.N);var rsp=wUm;_.X([_.F(),_.A("design:type",Object)],rsp.prototype,"data",void 0);rsp=_.X([_.l({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],rsp);
_.p(rsp,"ytd-handles-claiming-faq-section-renderer",function(){if(Z3K!==void 0)return Z3K;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Z3K=q},{mode:1});var Y_W;var $aW=function(){var q=_.N.apply(this,arguments)||this;q.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";q.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";q.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";q.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";q.leftSquiggly=q.leftSquigglyLight;q.rightSquiggly=q.rightSquigglyLight;
q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};q.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return q};
_.z($aW,_.N);_.e=$aW.prototype;_.e.updateLeftSquigglyStyle=function(){_.po(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.e.updateRightSquigglyStyle=function(){_.po(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.e.ready=function(){var q=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(q)};
_.e.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.set("isDarkTheme",q),q?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.e.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
var SW=$aW;SW.prototype.updateRightSquigglyStyle=SW.prototype.updateRightSquigglyStyle;SW.prototype.updateLeftSquigglyStyle=SW.prototype.updateLeftSquigglyStyle;_.X([_.F(),_.A("design:type",Object)],SW.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],SW.prototype,"isDarkTheme",void 0);_.X([_.F(),_.A("design:type",String)],SW.prototype,"leftSquiggly",void 0);_.X([_.F(),_.A("design:type",String)],SW.prototype,"rightSquiggly",void 0);
_.X([_.M("leftSquiggly"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SW.prototype,"updateLeftSquigglyStyle",null);_.X([_.M("rightSquiggly"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SW.prototype,"updateRightSquigglyStyle",null);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],SW.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],SW.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],SW.prototype,"actionButtonOverride",void 0);SW=_.X([_.l({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],SW);
_.p(SW,"ytd-handles-claiming-header-renderer",function(){if(Y_W!==void 0)return Y_W;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Y_W=q},{mode:1});var ere;var CvX=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};q.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";q.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";q.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";q.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
q.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";q.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";q.image0SquigglyBackground=q.image0LightSquigglyBackground;q.image1SquigglyBackground=q.image1LightSquigglyBackground;q.image3SquigglyBackground=q.image3LightSquigglyBackground;return q};
_.z(CvX,_.N);_.e=CvX.prototype;_.e.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.e.onDataChanged=function(){this.updateTitleAndImages()};
_.e.onThemeChanged=function(){this.updateTitleAndImages()};
_.e.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.isDarkTheme=q)};
_.e.updateImage0SquigglyBackground=function(){_.po(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.e.updateImage1SquigglyBackground=function(){_.po(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.e.updateImage3SquigglyBackground=function(){_.po(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.e.updateTitleAndImages=function(){var q,Z;((q=this.data)==null?void 0:(Z=q.titleImages)==null?void 0:Z.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))};
var v$=CvX;v$.prototype.updateImage3SquigglyBackground=v$.prototype.updateImage3SquigglyBackground;v$.prototype.updateImage1SquigglyBackground=v$.prototype.updateImage1SquigglyBackground;v$.prototype.updateImage0SquigglyBackground=v$.prototype.updateImage0SquigglyBackground;v$.prototype.onThemeChanged=v$.prototype.onThemeChanged;v$.prototype.onDataChanged=v$.prototype.onDataChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],v$.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],v$.prototype,"isDarkTheme",void 0);_.X([_.F(),_.A("design:type",Object)],v$.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],v$.prototype,"title0",void 0);_.X([_.F(),_.A("design:type",Object)],v$.prototype,"title1",void 0);_.X([_.F(),_.A("design:type",Object)],v$.prototype,"title2",void 0);_.X([_.F(),_.A("design:type",Object)],v$.prototype,"title3",void 0);
_.X([_.F(),_.A("design:type",Object)],v$.prototype,"title4",void 0);_.X([_.F(),_.A("design:type",Object)],v$.prototype,"image0",void 0);_.X([_.F(),_.A("design:type",Object)],v$.prototype,"image1",void 0);_.X([_.F(),_.A("design:type",Object)],v$.prototype,"image2",void 0);_.X([_.F(),_.A("design:type",Object)],v$.prototype,"image3",void 0);_.X([_.F(),_.A("design:type",Object)],v$.prototype,"image4",void 0);_.X([_.F(),_.A("design:type",String)],v$.prototype,"image0SquigglyBackground",void 0);
_.X([_.F(),_.A("design:type",String)],v$.prototype,"image1SquigglyBackground",void 0);_.X([_.F(),_.A("design:type",String)],v$.prototype,"image3SquigglyBackground",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],v$.prototype,"onDataChanged",null);_.X([_.M("isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],v$.prototype,"onThemeChanged",null);
_.X([_.M("image0SquigglyBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],v$.prototype,"updateImage0SquigglyBackground",null);_.X([_.M("image1SquigglyBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],v$.prototype,"updateImage1SquigglyBackground",null);
_.X([_.M("image3SquigglyBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],v$.prototype,"updateImage3SquigglyBackground",null);v$=_.X([_.l({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],v$);
_.p(v$,"ytd-handles-claiming-title-images-section-renderer",function(){if(ere!==void 0)return ere;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ere=q},{mode:1});var Pvm;var jW=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.z(jW,_.N);jW.prototype.ready=function(){var q=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(q)};
jW.prototype.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&this.set("isDarkTheme",q)};
jW.prototype.onCopyButtonClick=function(){var q=this,Z,w,r;return _.V(function(Y){return(Z=q.data)!=null&&Z.primaryChannelUrl?_.W(Y,navigator.clipboard.writeText(((w=q.data)==null?0:w.encodedChannelUrl)?q.data.encodedChannelUrl:"https://"+_.kO((r=q.data)==null?void 0:r.primaryChannelUrl)),0):Y.jumpTo(0)})};
var ti=jW;_.X([_.F(),_.A("design:type",Object)],ti.prototype,"data",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],ti.prototype,"ytComponentBehavior",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],ti.prototype,"isDarkTheme",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],ti.prototype,"ytActionHandlerBehavior",void 0);ti=_.X([_.l({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],ti);
_.p(ti,"ytd-handles-claiming-update-social-renderer",function(){if(Pvm!==void 0)return Pvm;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Pvm=q},{mode:1});var da9;var Ru=function(){var q=_.N.apply(this,arguments)||this;q.JSC$13767_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";q.JSC$13767_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};q.squigglyBackground=q.JSC$13767_squigglyBackgroundLight;return q};
_.z(Ru,_.N);Ru.prototype.updateSquigglyBackgroundStyle=function(){_.po(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Ru.prototype.ready=function(){var q=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",q);this.squigglyBackground=q?this.JSC$13767_squigglyBackgroundDark:this.JSC$13767_squigglyBackgroundLight};
Ru.prototype.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.set("isDarkTheme",q),this.squigglyBackground=q?this.JSC$13767_squigglyBackgroundDark:this.JSC$13767_squigglyBackgroundLight)};
var bk=Ru;bk.prototype.updateSquigglyBackgroundStyle=bk.prototype.updateSquigglyBackgroundStyle;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],bk.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],bk.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],bk.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],bk.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],bk.prototype,"isDarkTheme",void 0);_.X([_.F(),_.A("design:type",String)],bk.prototype,"squigglyBackground",void 0);_.X([_.M("squigglyBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bk.prototype,"updateSquigglyBackgroundStyle",null);bk=_.X([_.l({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],bk);
_.p(bk,"ytd-handles-claiming-vanity-info-renderer",function(){if(da9!==void 0)return da9;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return da9=q},{mode:1});var VuJ;var O3m=function(){var q=_.N.apply(this,arguments)||this;q.JSC$13770_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";q.JSC$13770_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";q.squigglyBackground=q.JSC$13770_squigglyBackgroundLight;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.z(O3m,_.N);_.e=O3m.prototype;_.e.ready=function(){var q=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(q)};
_.e.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.set("isDarkTheme",q),this.squigglyBackground=q?this.JSC$13770_squigglyBackgroundDark:this.JSC$13770_squigglyBackgroundLight)};
_.e.updateSquigglyBackgroundStyle=function(){_.po(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.e.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.e.detached=function(){this.stop()};
_.e.stop=function(){this.playerElement.stop()};
_.e.setupVideoPlayer=function(){var q=this,Z,w;return _.V(function(r){Z=q.data.videoId;w="http://i1.ytimg.com/vi/"+Z+"/maxresdefault.jpg";q.playerElement.loadVideoWithPlayerVars({video_id:Z,iurlhq:w});_.ub(r)})};
var Ji=O3m;Ji.prototype.onDataChanged=Ji.prototype.onDataChanged;Ji.prototype.updateSquigglyBackgroundStyle=Ji.prototype.updateSquigglyBackgroundStyle;_.X([_.F({value:!1}),_.A("design:type",Boolean)],Ji.prototype,"isDarkTheme",void 0);_.X([_.F(),_.A("design:type",String)],Ji.prototype,"squigglyBackground",void 0);_.X([_.fo("#player"),_.A("design:type",Object)],Ji.prototype,"playerElement",void 0);_.X([_.F(),_.A("design:type",Object)],Ji.prototype,"data",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Ji.prototype,"ytActionHandlerBehavior",void 0);_.X([_.M("squigglyBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ji.prototype,"updateSquigglyBackgroundStyle",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ji.prototype,"onDataChanged",null);
Ji=_.X([_.l({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Ji);
_.p(Ji,"ytd-handles-claiming-video-item-renderer",function(){if(VuJ!==void 0)return VuJ;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return VuJ=q},{mode:1});var H3h;var B$=function(){var q=_.y5.apply(this,arguments)||this;q.dragging=!1;q.dragMouseStart=0;q.dragOffsetStart=0;q.containerWidthDiff=0;q.boundPrevClick=function(){q.set("offset",zE(q,q.offset-(q.scrollDistance||320)))};
q.boundNextClick=function(){q.set("offset",zE(q,q.offset+(q.scrollDistance||320)))};
q.boundScrollContainerMouseDown=function(Z){q.dragMouseStart=Z.clientX;q.dragOffsetStart=q.offset;q.dragging=!0};
q.boundScrollContainerDrag=function(Z){q.dragging&&q.set("offset",zE(q,q.dragOffsetStart-(Z.clientX-q.dragMouseStart)))};
q.boundMouseUp=function(){q.onMouseUp()};
q.boundWheelScroll=function(Z){var w=0;Math.abs(Z.deltaX)>=Math.abs(Z.deltaY)?w=Z.deltaX:Z.shiftKey&&(w=Z.deltaY);w!==0&&(q.offset+=w,Z.stopPropagation(),Z.preventDefault())};
q.boundChipCloudChipScrollIntoView=function(Z){(Z=Z.detail)&&q.scrollChipIntoView(Z)};
return q};
_.z(B$,_.y5);B$.prototype.attached=function(){var q=_.E(this.hostElement).querySelector("#scroll-container");q.addEventListener("wheel",this.boundWheelScroll);q.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);q.style.touchAction="pan-y";q.addEventListener("pointerdown",this.boundScrollContainerMouseDown);q.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
B$.prototype.detached=function(){var q=_.E(this.hostElement).querySelector("#scroll-container");q.removeEventListener("wheel",this.boundWheelScroll);q.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);q.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);q.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
B$.prototype.reset=function(){this.set("offset",0);_.I_(this,this.setContainerWidthDiff);au(this)};
var zE=function(q,Z){return Math.min(Math.max(Z,0),q.containerWidthDiff)};
B$.prototype.onMouseUp=function(){this.dragging=!1};
B$.prototype.transformContainer=function(){this.offset=zE(this,this.offset);var q=_.zj("HTML_DIR")==="rtl"?"":"-";_.E(this.hostElement).querySelector("#chips").style.transform="translateX("+q+this.offset+"px)";au(this)};
var au=function(q){_.I_(q,q.setButtonsState)};
B$.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=zE(this,this.offset));this.atStart=this.offset<=0};
B$.prototype.setContainerWidthDiff=function(){var q=_.E(this.hostElement).querySelector("#scroll-container"),Z=_.E(this.hostElement).querySelector("#chips");q&&Z&&(this.containerWidthDiff=Z.clientWidth-q.clientWidth)};
B$.prototype.scrollChipIntoView=function(q){var Z=_.E(this.hostElement).querySelector("#scroll-container");if(Z){var w=this.atStart?0:106,r=this.atEnd?0:106;q.offsetLeft<this.offset+w?this.offset=zE(this,q.offsetLeft-w):q.offsetLeft+q.clientWidth>this.offset+Z.clientWidth-r&&(this.offset=zE(this,q.offsetLeft+q.clientWidth+r-Z.clientWidth))}};
var ne=B$;ne.prototype.transformContainer=ne.prototype.transformContainer;_.X([_.F({value:0}),_.A("design:type",Number)],ne.prototype,"offset",void 0);_.X([_.F({value:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],ne.prototype,"atStart",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],ne.prototype,"atEnd",void 0);_.X([_.F(),_.A("design:type",Number)],ne.prototype,"scrollDistance",void 0);
_.X([_.M("offset"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ne.prototype,"transformContainer",null);ne=_.X([_.iq()],ne);var Wi1;var o$2;var S_1=_.xl(function(q){var Z=q.data;q=_.P(_.qo(!1,void 0,"icHmSe"));var w=q.next().value,r=q.next().value;q={};q=_.GL("ytChipShapeChip",function(){a:switch(Z==null?void 0:Z().state){case 0:var O="ytChipShapeActive";break a;case 1:O="ytChipShapeDisabled";break a;default:O="ytChipShapeInactive"}return O},function(){var O=Z().type===1||Z().type===2,H=Z();
return O||H!=null&&H.startIcon?H==null||!H.startIcon||H!=null&&H.text?O?"ytChipShapeEndIconPadding":(H==null?0:H.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(q.ytChipShapeFocused=function(){var O;
return w()&&((O=Z())==null?void 0:O.state)!==1},q));
var Y=function(O){if((Z==null?void 0:Z().state)!==1){var H,L;(L=(H=Z()).onTap)==null||L.call(H,O)}},C=_.fn(function(){var O=_.t().resolve(_.Gj(_.er));
if(O){r(O.isKeyBoardInUse());var H,L;(L=(H=Z()).onFocusIn)==null||L.call(H)}return!1}),d=_.fn(function(){r(!1);
return!1});
return _.u("chip-shape",{class:"ytChipShapeHost","on:focusin":C,"on:focusout":d},_.u(ujX,{shouldWrapInButton:function(){return Z().type!==2},
selected:function(){return Z().state===0},
onClick:Y,isDropdown:function(){return Z().type===1},
accessibilityLabel:function(){return Z().accessibilityLabel}},_.u("div",{class:q},_.u(_.PF,{cond:function(){return Z().startIcon},
then:function(){return _.u(_.q0,{icon:function(){var O;return(O=Z())==null?void 0:O.startIcon},
className:function(){return Z().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return Z().text},_.u(Li2,{shape:Z,
onClick:Y}))))},"mb");
S_1.idomCompat=!0;var ujX=_.xl(function(q){var Z=_.fn(function(w){q.onClick(w);return!1});
return _.u(_.PF,{cond:q.shouldWrapInButton,then:function(){return _.u("button",{class:"ytChipShapeButtonReset","on:click":Z,role:function(){return q.isDropdown()?"combobox":"tab"},
"aria-label":q.accessibilityLabel,"aria-selected":q.selected},q.children)},
else:function(){return q.children}})},"nb"),Li2=_.xl(function(q){var Z=q.shape;
var w=q.onClick;var r=_.fn(function(Y){w(Y);return!1});
return _.u(_.Oq,null,_.u(_.VV,{when:function(){return Z().type===1}},function(){return _.u(_.q0,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.u(_.VV,{when:function(){return Z().type===2}},function(){return _.u("button",{class:"ytChipShapeButtonReset",
"on:click":r},_.u(_.q0,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.u(_.VV,{when:function(){return Z().type===0}},function(){return _.u(_.lS,null)}))},"ob");_.xc(S_1,"chip-shape",{props:{data:_.zG}});var v$7=function(){var q=_.N.apply(this,arguments)||this;q.disableDeselectEvent=!1;q.modern=_.b("web_modern_typography");q.useChipShape=_.b("web_chip_shape_defrag");q.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return q};
_.z(v$7,_.N);_.e=v$7.prototype;_.e.beforeRegister=function(){_.b("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.e.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.e.onSelectChipCommand=function(q){if(!this.selected&&this.data&&(q=_.J(q,J3K),q.targetId&&q.targetId===this.data.targetId))this.onTap()};
_.e.onFilterChipTransformCommand=function(q){if(!this.selected&&this.data){var Z;(q=(Z=_.J(q,E22))==null?void 0:Z.chipUniqueId)&&q===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.e.dataChanged=function(){var q=this;_.I_(this,function(){q.data&&q.data.isSelected&&!q.selected&&(q.scrollChipIntoView(),q.onTap())})};
_.e.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.e.computeChipStyle=function(q){return q!=null?q:"STYLE_DEFAULT"};
_.e.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.yY(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.yY(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.e.onFocus=function(){var q=_.t().resolve(_.Gj(_.er));q&&q.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.e.scrollChipIntoView=function(){_.hy(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.My.Object.defineProperties(v$7.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return baI({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
var Qx=v$7;Qx.prototype.onFocus=Qx.prototype.onFocus;Qx.prototype.onTap=Qx.prototype.onTap;Qx.prototype.selectionChanged=Qx.prototype.selectionChanged;Qx.prototype.dataChanged=Qx.prototype.dataChanged;_.X([_.U(_.OZ),_.A("design:type",Object)],Qx.prototype,"ironButtonState",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Qx.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Qx.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Qx.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.Pt),_.A("design:type",Object)],Qx.prototype,"ironA11yKeysBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Qx.prototype,"disableDeselectEvent",void 0);_.X([_.F(),_.A("design:type",Object)],Qx.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data.icon"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Qx.prototype,"hasIcon",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data.uniqueId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Qx.prototype,"isGnomeChip",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Qx.prototype,"modern",void 0);_.X([_.F({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.A("design:type",String)],Qx.prototype,"chipStyle",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Qx.prototype,"selected",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Qx.prototype,"useChipShape",void 0);_.X([_.I("data","selected"),_.A("design:type",Object),_.A("design:paramtypes",[])],Qx.prototype,"chipShapeData",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qx.prototype,"dataChanged",null);_.X([_.M("selected"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qx.prototype,"selectionChanged",null);
_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qx.prototype,"onTap",null);_.X([_.m2("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qx.prototype,"onFocus",null);Qx=_.X([_.dx({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Qx);
_.p(Qx,"yt-chip-cloud-chip-renderer",function(){if(o$2===void 0){var q=document.createElement("template");_.a(q,'\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<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Wi1===void 0&&(Wi1=document.createElement("template"));var r=Wi1;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);o$2=q}q=o$2;return q},{mode:2});var ji2=function(){var q=_.N.apply(this,arguments)||this;q.isDarkTheme=!1;q.notSticky=!1;q.transparentBackground=!1;q.shouldHide=!1;q.disableSticky=!1;q.fluidWidth=!1;q.isClipList=!1;q.defaultChipIndex=0;q.isPlaylist=!1;q.playlistVotingAnimationEnabled=_.b("web_enable_voting_animation");q.toolbarHeight=0;q.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return q};
_.z(ji2,_.N);_.e=ji2.prototype;
_.e.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}}}}}};
_.e.attached=function(){var q=this;document.addEventListener("scroll",_.XN(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var Z;this.toolbarHeight=((Z=document.querySelector("ytd-masthead"))==null?void 0:Z.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(w){q.handleIntersect(w)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){q.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.e.detached=function(){var q;(q=this.intersectionObserver)==null||q.disconnect();var Z;(Z=this.resizeObserver)==null||Z.disconnect();document.removeEventListener("scroll",_.XN(this,this.updateChipBarWidthAndTop))};
_.e.dataChanged=function(){var q=this,Z,w,r;((r=_.J((Z=this.data)==null?void 0:(w=Z.contents)==null?void 0:w[0],pZp))==null?void 0:r.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var Y=this.findSelectedChipIndex();this.selectedIndex!==Y&&(this.selectedIndex=-1);_.I_(this,function(){q.selectedIndex=Y;q.updating=!1;q.ytScrollableChipCloudBehavior.reset()})};
_.e.findSelectedChipIndex=function(){var q;if((q=this.data)==null||!q.contents)return 0;q=this.data.contents;for(var Z=0;Z<q.length;Z++){var w=void 0;if((w=_.J(q[Z],pZp))==null?0:w.isSelected)return Z}return 0};
_.e.computeStyle=function(q){return q};
_.e.handleChipCloudChipSelectAction=function(q){q=this.JSC$13789_chipsSelector.indexOf(q);q>-1&&this.JSC$13789_chipsSelector.selectIndex(q)};
_.e.handleChipCloudChipDeselectAction=function(){if(_.b("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var q,Z,w,r=(w=_.J((q=this.data)==null?void 0:(Z=q.contents)==null?void 0:Z[0],pZp))==null?void 0:w.navigationEndpoint;r&&_.yY(this.hostElement,"yt-browse-section-list-reload-endpoint",[r]);this.JSC$13789_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.e.onGuideIsExpandedChanged=function(){var q=this.ytScrollableChipCloudBehavior;_.I_(q,q.setContainerWidthDiff);au(this.ytScrollableChipCloudBehavior)};
_.e.onResize=function(){var q=this.ytScrollableChipCloudBehavior;_.I_(q,q.setContainerWidthDiff);au(this.ytScrollableChipCloudBehavior)};
_.e.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.e.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.e.handleIntersect=function(q){_.b("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||q[0].intersectionRatio===1)};
_.e.updateDimensions=function(){var q=this.ytRendererBehavior.parentComponent;if(q){var Z,w=(Z=q.headerElement)!=null?Z:q;_.po(this.hostElement,{"--ytd-rich-grid-chips-bar-width":w.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.e.updateSelectedIndexFromBinding=function(q){this.selectedIndex=q.detail.value};
_.e.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var q;(q=this.sortFilterHeaderRendererElement)==null||q.setAttribute("is-playlist-page-with-filters","")}};
_.e.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.mu({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.My.Object.defineProperties(ji2.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 q,Z,w=(q=this.data)==null?void 0:(Z=q.contents)==null?void 0:Z.find(function(r){return _.J(r,f1v)});
return{sortFilterHeaderRenderer:_.J(w,f1v)}}}});
var EQ=ji2;EQ.prototype.dispatchChipBarIsSticky=EQ.prototype.dispatchChipBarIsSticky;EQ.prototype.isPlaylistPageChanged=EQ.prototype.isPlaylistPageChanged;EQ.prototype.updateChipBarWidthAndTop=EQ.prototype.updateChipBarWidthAndTop;EQ.prototype.onResize=EQ.prototype.onResize;EQ.prototype.onGuideIsExpandedChanged=EQ.prototype.onGuideIsExpandedChanged;EQ.prototype.dataChanged=EQ.prototype.dataChanged;
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],EQ.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],EQ.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],EQ.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.SQ),_.A("design:type",Object)],EQ.prototype,"ironResizableBehavior",void 0);_.X([_.U(),_.A("design:type",ne)],EQ.prototype,"ytScrollableChipCloudBehavior",void 0);
_.X([_.U(_.LO),_.A("design:type",Object)],EQ.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],EQ.prototype,"data",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],EQ.prototype,"selectedIndex",void 0);_.X([_.F({value:320}),_.A("design:type",Number)],EQ.prototype,"scrollDistance",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],EQ.prototype,"isDarkTheme",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],EQ.prototype,"notSticky",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],EQ.prototype,"transparentBackground",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.A("design:type",String)],EQ.prototype,"componentStyle",void 0);_.X([_.F({selector:_.nC2}),_.A("design:type",Boolean)],EQ.prototype,"guideIsExpanded",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],EQ.prototype,"shouldHide",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],EQ.prototype,"disableSticky",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],EQ.prototype,"fluidWidth",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],EQ.prototype,"isClipList",void 0);_.X([_.F(),_.A("design:type",Object)],EQ.prototype,"defaultChipIndex",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],EQ.prototype,"isPlaylist",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],EQ.prototype,"playlistVotingAnimationEnabled",void 0);_.X([_.fo("#chips"),_.A("design:type",Object)],EQ.prototype,"JSC$13789_chipsSelector",void 0);_.X([_.fo("ytd-sort-filter-header-renderer"),_.A("design:type",HTMLElement)],EQ.prototype,"sortFilterHeaderRendererElement",void 0);
_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],EQ.prototype,"updating",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],EQ.prototype,"dataChanged",null);_.X([_.M("guideIsExpanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],EQ.prototype,"onGuideIsExpandedChanged",null);
_.X([_.m2("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],EQ.prototype,"onResize",null);_.X([_.g3("isChannelPageGrid","disableSticky","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],EQ.prototype,"updateChipBarWidthAndTop",null);_.X([_.I("componentStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],EQ.prototype,"isChannelPageGrid",null);
_.X([_.I("componentStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],EQ.prototype,"isHashtagLandingPage",null);_.X([_.M("isPlaylistPage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],EQ.prototype,"isPlaylistPageChanged",null);_.X([_.I("componentStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],EQ.prototype,"isPlaylistPage",null);
_.X([_.I("componentStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],EQ.prototype,"isDisableDeselectEvent",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],EQ.prototype,"sortFilterHeaderRendererData",null);_.X([_.F({reflectToAttribute:!0,selector:_.KM2}),_.A("design:type",String)],EQ.prototype,"frostedGlassMode",void 0);
_.X([_.M("notSticky"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],EQ.prototype,"dispatchChipBarIsSticky",null);EQ=_.X([_.l({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],EQ);
_.p(EQ,"ytd-feed-filter-chip-bar-renderer",function(){if(H3h!==void 0)return H3h;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return H3h=q},{mode:1});var tue;var RrK=_.xl(function(q){var Z=q.data;var w=q.buttonIndex;var r=q.selectedIndex;var Y=q.onSelect;var C=function(){return w()===r()},d=function(){var H,L;
return(L=(H=Z().text)==null?void 0:H.content)!=null?L:""};
_.fn(function(){});
q=_.bo();var O=_.fn(function(){Y(Z().onSubmitCommand);return!1});
return _.u("yt-toggleable-image-button-view-model",{class:function(){var H={};H=(H["toggleable-image-button-view-model-wiz"]=!0,H[""]=!0,H["toggleable-image-button-view-model-wiz__semi-transparent"]=r()!==-1&&!C(),H);return _.XA(H)},
tabindex:0,"aria-label":d,"aria-pressed":C,role:"button","on:keydown":q,"on:click":O},_.u(_.PF,{cond:function(){return Z().logo},
then:function(H){return _.u(_.aQ,{data:H,className:function(){var L={};L=(L["toggleable-image-button-view-model-wiz__image"]=!0,L["toggleable-image-button-view-model-wiz__circular-radius"]=!(!Z().backgroundColor||!Z().backgroundColorDarkMode),L["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(C()&&Z().backgroundColor&&Z().backgroundColorDarkMode),L);return _.XA(L)},
alt:d,useWidth:!1,style:function(){if(C()&&Z().backgroundColor&&Z().backgroundColorDarkMode){var L=Lo(Number(Z().backgroundColorDarkMode),"1");var S=Lo(Number(Z().backgroundColor),"1");L="background: linear-gradient(180deg,"+L+","+S+") border-box;"}else L="";return L}})}}),_.u(_.YB,{model:{borderRadius:"16px"}}),_.u("p",{class:function(){var H={};
H=(H["toggleable-image-button-view-model-wiz__label"]=!0,H["toggleable-image-button-view-model-wiz__bold-text"]=C(),H);return _.XA(H)}},_.u(_.r6,{text:function(){return Z().text}})))},"pb");
RrK.idomCompat=!0;var JsD=_.xl(function(q){var Z=q.data;q=_.P(_.qo({index:-1,command:{}},void 0,"Zcqtsb"));var w=q.next().value,r=q.next().value;return _.u("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.u("div",{class:"nudge-form-view-model-wiz__form-options"},_.u(_.Hx,{data:function(){return Z().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(Y,C){return _.u(RrK,{data:Y.data,buttonIndex:C,selectedIndex:function(){return w().index},
onSelect:function(d){r({index:C(),command:d})}})}})),_.u(_.r6,{text:function(){return Z().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.u("div",{class:"nudge-form-view-model-wiz__submit"},_.u(_.Hx,{data:function(){return Z().submitButton}},{buttonViewModel:function(Y){return _.u(b3m,{data:Y.data,
isDisabled:function(){return w().index===-1},
onClick:function(){_.Sp(w().command)}})}})))},"qb");
JsD.idomCompat=!0;var b3m=_.xl(function(q){var Z=_.$6(function(){return Object.assign({},q.data(),{state:q.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.u(_.vx,{data:Z,onClick:q.onClick})},"rb");_.xc(JsD,"yt-nudge-form-view-model",{props:{data:_.zG}});var zr7=function(){var q=_.N.apply(this,arguments)||this;q.roundedContainer=!0;q.buttonUpdate=_.b("web_modern_buttons");q.isDarkMode=!1;q.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return q};
_.z(zr7,_.N);_.e=zr7.prototype;_.e.computeNudgeStyle=function(q){return q?"modernized-nudge":""};
_.e.handleDarkModeToggledAction=function(q){this.isDarkMode=q};
_.e.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.e.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"}}}};
_.e.computeIsHorizontalButtons=function(q){return q?!!q.applyModernizedStyle&&!!q.enableHorizontalButtons&&!!q.secondaryButton:!1};
_.My.Object.defineProperties(zr7.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var q,Z;return(Z=(q=this.data)==null?void 0:q.backgroundStyle)!=null?Z:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var q,Z;return(Z=(q=this.data)==null?void 0:q.contentsLocation)!=null?Z:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null?0:q.lightIconImage)}}});
var xI=zr7;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],xI.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],xI.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],xI.prototype,"actionHandlerBehavior",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("isHideEnclosingAction"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],xI.prototype,"isHidden",null);_.X([_.F(),_.A("design:type",Object)],xI.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],xI.prototype,"roundedContainer",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],xI.prototype,"buttonUpdate",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.A("design:type",String)],xI.prototype,"nudgeStyle",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data.trimStyle"),_.A("design:type",String),_.A("design:paramtypes",[])],xI.prototype,"trimStyle",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.backgroundStyle"),_.A("design:type",String),_.A("design:paramtypes",[])],xI.prototype,"backgroundStyle",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data.contentsLocation"),_.A("design:type",String),_.A("design:paramtypes",[])],xI.prototype,"contentsLocation",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.disableDropShadow"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],xI.prototype,"noShadow",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.lightIconImage"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],xI.prototype,"noIcon",null);
_.X([_.F({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.A("design:type",Boolean)],xI.prototype,"isHorizontalButtons",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Object)],xI.prototype,"isDarkMode",void 0);xI=_.X([_.l({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],xI);
_.p(xI,"ytd-feed-nudge-renderer",function(){if(tue!==void 0)return tue;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return tue=q},{mode:_.NT("kevlar_poly_si_batch_j028")?1:2});var BGm;var aYX;var TE=function(){var q=_.N.apply(this,arguments)||this;q.collapsed=!1;q.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return q};
_.z(TE,_.N);TE.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"}}}};
TE.prototype.handleRatingSelect=function(){var q;((q=this.data)==null?0:q.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
TE.prototype.handleShowSurvey=function(){this.collapsed=!1};
var UQ=TE;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],UQ.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],UQ.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],UQ.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.vj),_.A("design:type",Object)],UQ.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],UQ.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],UQ.prototype,"collapsed",void 0);UQ=_.X([_.l({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],UQ);
_.p(UQ,"ytd-slimline-survey-renderer",function(){if(aYX!==void 0)return aYX;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return aYX=q},{mode:1});var n$m;var Qig=function(){return _.N.apply(this,arguments)||this};
_.z(Qig,_.N);Qig.prototype.maybeGetBackgroundColor=function(q){return this.isDarkMode?q.section2Color:q.section3Color};
Qig.prototype.colorPaletteChanged=function(){var q=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;q&&(q==null?0:q.secondaryTitleColor)&&this.maybeGetBackgroundColor(q)?(this.hostElement.style.backgroundColor=_.oJ(this.maybeGetBackgroundColor(q)),this.hostElement.style.color=_.oJ(q.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
var kI=Qig;kI.prototype.colorPaletteChanged=kI.prototype.colorPaletteChanged;_.X([_.U(_.LO),_.A("design:type",Object)],kI.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],kI.prototype,"data",void 0);_.X([_.F({selector:function(q){return q.ui.darkModeIsEnabled}}),
_.A("design:type",Boolean)],kI.prototype,"isDarkMode",void 0);_.X([_.F(),_.A("design:type",Object)],kI.prototype,"lightColorPalette",void 0);_.X([_.F(),_.A("design:type",Object)],kI.prototype,"darkColorPalette",void 0);_.X([_.M("darkColorPalette","lightColorPalette","data","isDarkMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kI.prototype,"colorPaletteChanged",null);kI=_.X([_.l({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],kI);
_.p(kI,"ytd-endorsement-header-renderer",function(){if(n$m!==void 0)return n$m;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return n$m=q},{mode:1});_.xc(_.tO,"yt-decorated-avatar-view-model",{props:{data:_.zG,className:_.zG}});var E$m=function(){var q=_.N.apply(this,arguments)||this;q.fullHeight=_.b("web_rich_grid_media_full_height");q.showChannelAvatar=!0;q.hasPlaylistThumbnail=!1;q.prepareThumbnailForPageTransition=function(){_.b("web_thumbnail_to_watch_transition")&&(q.thumbnail.style.viewTransitionName="thumbnail-to-watch",q.cleanupThumbnailAfterPageTransition(q.thumbnail))};
return q};
_.z(E$m,_.N);_.e=E$m.prototype;
_.e.configureRendererStamper=function(){return{lazyLoadMenu:g7,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:"decorated-avatar",mapping:{decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.e.attached=function(){this.updateInlinePreviewHoverListeners()};
_.e.detached=function(){this.clearInlinePreviewHoverListeners()};
_.e.shouldLazyLoadMenu=function(){var q=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.b("kevlar_modern_downloads_page")||!q};
_.e.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13815_inlinePreviewHoverListener=KV({mediaRenderer:this,lockupElement:this.JSC$13815_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.e.getVideoPreviewOpts=function(){var q={},Z;if((Z=this.data)==null?0:Z.multipleInlinePlaybackEndpoint)q=yPD;this.isRadio&&(q=hVh);return _.b("web_thumbnail_to_watch_transition")?Object.assign({},q,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):q};
_.e.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$13815_inlinePreviewHoverListener)==null||hL(q)};
_.e.getOwner=function(){var q,Z,w;return((q=this.data)==null?void 0:(Z=q.channelThumbnailSupportedRenderers)==null?void 0:Z.channelThumbnailWithLinkRenderer)||_.J((w=this.data)==null?void 0:w.showProviderChannelThumbnail,N_7)};
_.e.updateLockupSize=function(){var q;((q=this.getOwner())==null?0:q.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.e.getFeedbackEndpoint=function(q){if(_.J(q,_.BH))return q;var Z,w;q=(w=(Z=_.J(q,_.$K))==null?void 0:Z.commands)!=null?w:[];Z=_.P(q);for(w=Z.next();!w.done;w=Z.next())if(w=this.getFeedbackEndpoint(w.value))return w;return null};
_.e.computeNavigationEndpoint=function(q){return Kb2(q==null?void 0:q.navigationEndpoint)};
_.e.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var q=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(q)!==JSON.stringify(this.data)&&this.set("data",q)}};
_.e.onDataChanged=function(){var q=this,Z=this.getOwner();if(Z){this.set("data.owner",Z);var w,r,Y,C,d,O=((w=this.data)==null?void 0:(r=w.shortBylineText)==null?void 0:(Y=r.runs)==null?void 0:(C=Y[0])==null?void 0:C.text)||((d=Z.name)==null?void 0:d.simpleText);this.set("data.owner.title",O)}var H,L,S,v,R,B;Z=((H=this.data)==null?void 0:(L=H.thumbnailRenderer)==null?void 0:L.playlistVideoThumbnailRenderer)||((S=this.data)==null?void 0:(v=S.thumbnailRenderer)==null?void 0:v.playlistCustomThumbnailRenderer)||
((R=this.data)==null?void 0:(B=R.thumbnailRenderer)==null?void 0:B.showCustomThumbnailRenderer);var n;((n=this.data)==null?0:n.thumbnail)||!Z||this.set("data.thumbnail",Z.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){q.updateLockupSize()});
var x;if(H=((x=this.data)==null?void 0:x.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(H);var K;((K=this.dismissActionToReplayEntity)==null?0:K.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.e.onHiddenChanged=function(){this.updateLockupSize()};
_.e.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.yY(this.hostElement,"yt-terminate-video-preview-action");else{var q;(q=this.videoTitleLink)==null||q.focus()}};
_.e.metadataColorChanged=function(){var q;if(this.metadataColor&&((q=this.videoTitle)==null?0:q.style))this.videoTitle.style.color=_.oJ(this.metadataColor);else{var Z,w;!this.metadataColor&&((Z=this.videoTitle)==null?0:(w=Z.style)==null?0:w.color)&&(this.videoTitle.style.color="")}};
_.e.onDetailsClick=function(q){var Z=this.computedNavigationEndpoint;Z&&(_.E1(_.E8(q),this.hostElement,["A","BUTTON"])||_.hy(this.hostElement,"yt-navigate",{endpoint:Z}))};
_.e.cleanupThumbnailAfterPageTransition=function(q){_.cEz(document,"yt-page-type-changed",function(){q.style.viewTransitionName=""})};
_.e.onRendererTap=function(){this.prepareThumbnailForPageTransition();var q,Z,w=((q=this.data)==null?void 0:q.serviceEndpoint)||this.getFeedbackEndpoint((Z=this.data)==null?void 0:Z.navigationEndpoint);w&&_.J(w,_.BH)&&this.ytComponentBehavior.resolveCommand(w)};
_.e.onMouseDown=function(q){var Z=q.target,w=this.computedNavigationEndpoint,r;q=Z.href||((r=_.J(w==null?void 0:w.commandMetadata,_.XK))==null?void 0:r.url);r=Z.data||w;q&&r&&puj(q,r)};
_.e.computeVideoTitleText=function(){var q;if((q=this.data)==null?0:q.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.e.computeHasPlaylistThumbnail=function(q){var Z,w,r,Y,C;if((((Z=q.thumbnailRenderer)==null?0:Z.playlistVideoThumbnailRenderer)||((w=q.thumbnailRenderer)==null?0:w.playlistCustomThumbnailRenderer)||((r=q.thumbnailRenderer)==null?0:r.showCustomThumbnailRenderer)||((Y=q.thumbnailRenderer)==null?0:Y.playlistVideoThumbnailRenderer)||((C=q.thumbnailRenderer)==null?0:C.playlistCustomThumbnailRenderer))&&q.thumbnailOverlays)for(Z=0;Z<q.thumbnailOverlays.length;Z++)if(w=void 0,(w=q.thumbnailOverlays[Z])==
null?0:w.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.My.Object.defineProperties(E$m.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.b("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var q;return(q=this.data)==null?void 0:q.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var q;return(q=this.data)==null?void 0:q.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$13815_inlinePreviewHoverListener)==null?0:JO(q))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.jye(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.data)==null?void 0:q.videoId)||((Z=this.data)==null?void 0:Z.playlistId)||""}}});
var Ke=E$m;Ke.prototype.onMouseDown=Ke.prototype.onMouseDown;Ke.prototype.metadataColorChanged=Ke.prototype.metadataColorChanged;Ke.prototype.onIsDismissedChanged=Ke.prototype.onIsDismissedChanged;Ke.prototype.onHiddenChanged=Ke.prototype.onHiddenChanged;Ke.prototype.onDataChanged=Ke.prototype.onDataChanged;Ke.prototype.handleReloadDownloadsInfo=Ke.prototype.handleReloadDownloadsInfo;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ke.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Ke.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],Ke.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.ay),_.A("design:type",Object)],Ke.prototype,"ytdLockupBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],Ke.prototype,"ytdReduxBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],Ke.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],Ke.prototype,"entitySelectorType",void 0);_.X([_.F(),_.A("design:type",Boolean)],Ke.prototype,"noEndpoints",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],Ke.prototype,"isRadio",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.SZ}),_.A("design:type",Boolean)],Ke.prototype,"miniMode",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ke.prototype,"fullHeight",void 0);
_.X([_.F(),_.A("design:type",Boolean)],Ke.prototype,"showDarkVideoMetadata",void 0);_.X([_.F(),_.A("design:type",Boolean)],Ke.prototype,"showLightVideoMetadata",void 0);_.X([_.F(),_.A("design:type",Number)],Ke.prototype,"metadataColor",void 0);_.X([_.F(),_.A("design:type",Object)],Ke.prototype,"showChannelAvatar",void 0);_.X([_.F(),_.A("design:type",Boolean)],Ke.prototype,"hidden",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],Ke.prototype,"showYtInteraction",void 0);
_.X([_.F(),_.A("design:type",String)],Ke.prototype,"dismissedContentId",void 0);_.X([_.F({selectorArgs:["dismissedContentId"],selector:QpO}),_.A("design:type",Object)],Ke.prototype,"dismissActionToReplayEntity",void 0);
_.X([_.F({selectorArgs:["entitySelectorType","mediaId"],selector:function(q,Z,w){if(_.b("kevlar_modern_downloads_page")&&w&&Z&&Z!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(Z){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var r=M1e(q,w);if(r){Z=_.RZ(q,w);var Y=J0(q,w),C=hpI(q,w);q=z9(q,w);var d=aZN(r,Z,Y,C);Y=d.shortViewCountText;var O=d.publishedTimeText;d=d.badges;var H=q>0;C=zF2(r,Z,C,q);r=_.PX(Z)||Z==="TRANSFER_STATE_FAILED"||Z==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Cz(r.policyEntity)?
void 0:UI6(w,q,r.videoEntity.lengthSeconds);Z==="TRANSFER_STATE_PAUSED_BY_USER"&&w&&!_.b("dl_resume_click_killswitch")&&(r={offlineVideoEndpoint:{videoId:w,action:"ACTION_RESUME"}});w={shortViewCountText:Y,publishedTimeText:O,badges:d,isWatched:H,navigationEndpoint:r,thumbnailOverlays:C}}else w=void 0;return w;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(Z=FM2(q,w))if(r=_.bF(q,w),C=_.NFO(q,w),r!=="TRANSFER_STATE_UNKNOWN"){w=BjO(Z,r,C,w,kB9(q));break a}w=void 0}return w;default:_.bx(new _.df("Error: entitySelectorType defined but not matched in selector.",
q,Z))}}}),
_.A("design:type",Object)],Ke.prototype,"entityDrivenState",void 0);_.X([_.F({computed:"computeVideoTitleText(data)"}),_.A("design:type",Object)],Ke.prototype,"videoTitleText",void 0);_.X([_.F({computed:"computeHasPlaylistThumbnail(data)"}),_.A("design:type",Object)],Ke.prototype,"hasPlaylistThumbnail",void 0);_.X([_.F({computed:"computeNavigationEndpoint(data)"}),_.A("design:type",Object)],Ke.prototype,"computedNavigationEndpoint",void 0);
_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Ke.prototype,"typographyBump",void 0);_.X([_.I("typographyBump"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ke.prototype,"typographyBumpV2",null);_.X([_.fo("#video-title"),_.A("design:type",HTMLElement)],Ke.prototype,"videoTitle",void 0);_.X([_.fo("#video-title-link"),_.A("design:type",HTMLElement)],Ke.prototype,"videoTitleLink",void 0);
_.X([_.fo("#thumbnail"),_.A("design:type",HTMLElement)],Ke.prototype,"thumbnail",void 0);_.X([_.fo("#dismissible"),_.A("design:type",HTMLElement)],Ke.prototype,"JSC$13815_dismissibleMedia",void 0);_.X([_.I("data.menu"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ke.prototype,"lazyLoadMenu",null);_.X([_.I("data.menu"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ke.prototype,"immediateLoadMenu",null);
_.X([_.g3("entityDrivenState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ke.prototype,"handleReloadDownloadsInfo",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ke.prototype,"onDataChanged",null);_.X([_.g3("hidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ke.prototype,"onHiddenChanged",null);
_.X([_.M("isDismissed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ke.prototype,"onIsDismissedChanged",null);_.X([_.M("metadataColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ke.prototype,"metadataColorChanged",null);_.X([_.m2("mousedown"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ke.prototype,"onMouseDown",null);
_.X([_.I("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ke.prototype,"isHovered",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ke.prototype,"useAvatar",null);_.X([_.I("data","entitySelectorType"),_.A("design:type",String),_.A("design:paramtypes",[])],Ke.prototype,"mediaId",null);Ke=_.X([_.l({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Ke);
var xaK=_.Fl()(Ke,"ytd-rich-grid-media",function(){if(BGm!==void 0)return BGm;var q=document.createElement("template");_.a(q,'\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" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="decorated-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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return BGm=q},{mode:_.NT("kevlar_poly_si_batch_j072")?1:2});var TG7;var Ua7=function(){var q=_.N.apply(this,arguments)||this;q.removeMaxWidth=!0;q.insetMetadata=!1;return q};
_.z(Ua7,_.N);_.e=Ua7.prototype;_.e.configureRendererStamper=function(){return{innerMenu:g7,outerMenu:Object.assign({},g7,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.e.onDataChanged=function(){var q,Z=((q=this.data)==null?void 0:q.trackingParams)||"";Z&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(Z));var w;((w=this.dismissActionToReplayEntity)==null?0:w.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.e.attached=function(){this.updateInlinePreviewHoverListeners()};
_.e.detached=function(){this.clearInlinePreviewHoverListeners()};
_.e.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13821_inlinePreviewHoverListener=KV({mediaRenderer:this,lockupElement:this.JSC$13821_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:wTN})};
_.e.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$13821_inlinePreviewHoverListener)==null||hL(q)};
_.e.onRendererTap=function(){var q,Z,w=(q=this.data)==null?void 0:(Z=q.serviceEndpoints)==null?void 0:Z[0];_.J(w,_.BH)&&this.componentBehavior.resolveCommand(w)};
_.e.onDetailsClick=function(q){var Z,w=(Z=this.data)==null?void 0:Z.navigationEndpoint;w&&(_.E1(_.E8(q),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(w))};
_.e.onShow=function(){var q=this.data;q.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(q.onFirstVisibleCommand),delete q.onFirstVisibleCommand)};
_.My.Object.defineProperties(Ua7.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var q;return this.insetMetadata?void 0:(q=this.data)==null?void 0:q.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var q;return this.insetMetadata?(q=this.data)==null?void 0:q.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var q=this.data;if(q!=null&&q.badge&&(q=_.J(q.badge,I1K))){var Z,w,r;return[{metadataBadgeRenderer:{label:((Z=q.label)==null?void 0:(w=Z.runs)==null?void 0:w[0].text)||((r=q.label)==null?void 0:r.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var q=this.data;return Object.assign({},q.headline,{accessibility:q.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return this.isSlimShort?(q=this.computedTitle)==null?void 0:(Z=q.accessibility)==null?void 0:(w=Z.accessibilityData)==null?void 0:w.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$13821_inlinePreviewHoverListener)==null?0:JO(q))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var sQ=Ua7;sQ.prototype.onDataChanged=sQ.prototype.onDataChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],sQ.prototype,"componentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.ay),_.A("design:type",Object)],sQ.prototype,"ytdLockupBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],sQ.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.vj),_.A("design:type",Object)],sQ.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],sQ.prototype,"ytdReduxBehavior",void 0);_.X([_.fo("ytd-thumbnail"),_.A("design:type",HTMLElement)],sQ.prototype,"thumbnail",void 0);_.X([_.fo("#dismissible"),_.A("design:type",HTMLElement)],sQ.prototype,"JSC$13821_dismissibleMedia",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],sQ.prototype,"removeMaxWidth",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],sQ.prototype,"insetMetadata",void 0);_.X([_.F(),_.A("design:type",String)],sQ.prototype,"dismissedContentId",void 0);_.X([_.F({selectorArgs:["dismissedContentId"],selector:QpO}),_.A("design:type",Object)],sQ.prototype,"dismissActionToReplayEntity",void 0);_.X([_.I("insetMetadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],sQ.prototype,"thumbnailObjectFit",null);
_.X([_.I("data","insetMetadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],sQ.prototype,"innerMenu",null);_.X([_.I("data","insetMetadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],sQ.prototype,"outerMenu",null);_.X([_.F(),_.A("design:type",Object)],sQ.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.SZ}),_.A("design:type",Boolean)],sQ.prototype,"miniMode",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sQ.prototype,"onDataChanged",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],sQ.prototype,"shortsBadges",null);_.X([_.I("data"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],sQ.prototype,"isShort",null);_.X([_.I("data"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],sQ.prototype,"isSlimShort",null);
_.X([_.I("data","isShort"),_.A("design:type",Object),_.A("design:paramtypes",[])],sQ.prototype,"computedTitle",null);_.X([_.I("isSlimShort","computedTitle"),_.A("design:type",Object),_.A("design:paramtypes",[])],sQ.prototype,"computedAccessibilityLabel",null);_.X([_.I("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],sQ.prototype,"isHovered",null);sQ=_.X([_.l({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],sQ);
_.p(sQ,"ytd-rich-grid-slim-media",function(){if(TG7!==void 0)return TG7;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return TG7=q},{mode:_.NT("kevlar_poly_si_batch_j063")?1:2});var khv;var KiD;var Iu=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");return q};
_.z(Iu,_.N);Iu.prototype.computeIcon=function(q){return q&&q.iconType?"yt-sys-icons:"+q.iconType.toLowerCase():""};
Iu.prototype.onMouseEnter=function(){this.isHovered=!0};
Iu.prototype.onMouseLeave=function(){this.isHovered=!1};
var c$=Iu;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],c$.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],c$.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],c$.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],c$.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],c$.prototype,"isHovered",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],c$.prototype,"darkerDarkTheme",void 0);c$=_.X([_.l({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],c$);
_.p(c$,"ytd-expand-on-hover-card-renderer",function(){if(KiD!==void 0)return KiD;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return KiD=q},{mode:1});var siW,IYK=function(){if(siW!==void 0)return siW;var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return siW=q};_.He("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var csW=function(){var q=_.N.apply(this,arguments)||this;q.compactStyle=!1;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.z(csW,_.N);_.e=csW.prototype;_.e.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.e.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"}}}};
_.e.computeHideDot=function(q){return!(q&&q.subscriberCountText&&q.videoCountText)||this.compactStyle};
_.e.hasDualButtons=function(q){return q&&q.purchaseButton&&q.subscribeButton};
_.e.backgroundColorChanged=function(){if(this.data!==void 0){var q=this.data.backgroundColor;this.isDarkTheme&&(q=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=q!=null?_.oJ(q):"transparent"}};
_.e.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.e.onTap=function(q){var Z,w,r=((Z=this.data)==null?void 0:Z.navigationEndpoint)||((w=this.data)==null?void 0:w.serviceEndpoint);_.J(r,_.Dv)&&(r&&_.t().resolve(_.ps).resolveCommand(r,{form:{element:this.hostElement}}),q.preventDefault())};
_.e.computeChannelEndpoint=function(q){return _.J(q,_.Dv)?null:q};
_.e.computeHrefEndpoint=function(q){return _.J(q,_.Dv)?null:this.componentBehavior.computeHref_(q)};
_.e.computeChannelRendererStyle=function(q){return q};
_.e.computeIconSize=function(q){return q?108:136};
_.My.Object.defineProperties(csW,{template:{configurable:!0,enumerable:!0,get:function(){return IYK()}}});
var Mq=csW;Mq.prototype.backgroundColorChanged=Mq.prototype.backgroundColorChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Mq.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Mq.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.Et),_.A("design:type",Object)],Mq.prototype,"ytdOpenPopupBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Mq.prototype,"componentBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],Mq.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],Mq.prototype,"isDarkTheme",void 0);_.X([_.F({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.A("design:type",String)],Mq.prototype,"channelRendererStyle",void 0);_.X([_.F({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Mq.prototype,"dualButtons",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],Mq.prototype,"useBiggerThumbs",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.Af("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],Mq.prototype,"biggerThumbStyle",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Mq.prototype,"compactStyle",void 0);_.X([_.M("data","isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mq.prototype,"backgroundColorChanged",null);Mq=_.X([_.l({is:"ytd-channel-renderer",disableElementRegistration:!0})],Mq);_.p(Mq,"ytd-channel-renderer",function(){return IYK()},{mode:1});var Muh;var FiD;_.He("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var NGp=function(){var q=_.N.apply(this,arguments)||this;q.displayItemCount=2;q.collections=_.b("web_modern_collections_v2");q.hasPlaylistThumbnail=!1;q.stackThumbnailSize="large";return q};
_.z(NGp,_.N);_.e=NGp.prototype;_.e.attached=function(){this.updateInlinePreviewHoverListeners()};
_.e.detached=function(){this.clearInlinePreviewHoverListeners()};
_.e.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.e.computeFirstVideos=function(q,Z){return q&&Z?q.slice(0,Z):[]};
_.e.computeThumbnailWidth=function(q,Z){return q?Z==="BIG"?500:Z==="MASSIVE"?600:Z==="MEDIUM"?450:420:360};
_.e.computeThumbnailHeight=function(q,Z){return q?Z==="BIG"?280:Z==="MASSIVE"?337:234:202};
_.e.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$13834_inlinePreviewHoverListener)==null||hL(q)};
_.e.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13834_inlinePreviewHoverListener=KV({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:yPD,thumbnailElement:this.thumbnail})};
_.e.computeHasPlaylistThumbnail=function(q){var Z,w;if((((Z=q.thumbnailRenderer)==null?0:Z.playlistVideoThumbnailRenderer)||((w=q.thumbnailRenderer)==null?0:w.playlistCustomThumbnailRenderer))&&q.thumbnailOverlays)for(Z=0;Z<q.thumbnailOverlays.length;Z++)if(w=void 0,(w=q.thumbnailOverlays[Z])==null?0:w.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.My.Object.defineProperties(NGp.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$13834_inlinePreviewHoverListener)==null?0:JO(q))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var FV=NGp;FV.prototype.dataChanged=FV.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.ay),_.A("design:type",Object)],FV.prototype,"ytdLockupBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],FV.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],FV.prototype,"displayItemCount",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],FV.prototype,"useBiggerThumbs",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.Af("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],FV.prototype,"biggerThumbsStyle",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],FV.prototype,"collections",void 0);_.X([_.F({computed:"computeHasPlaylistThumbnail(data)"}),_.A("design:type",Object)],FV.prototype,"hasPlaylistThumbnail",void 0);_.X([_.F(),_.A("design:type",String)],FV.prototype,"stackThumbnailSize",void 0);_.X([_.fo("ytd-thumbnail"),_.A("design:type",HTMLElement)],FV.prototype,"thumbnail",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FV.prototype,"dataChanged",null);_.X([_.I("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],FV.prototype,"isHovered",null);FV=_.X([_.l({is:"ytd-radio-renderer",disableElementRegistration:!0})],FV);
_.p(FV,"ytd-radio-renderer",function(){if(FiD!==void 0)return FiD;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return FiD=q},{mode:_.NT("kevlar_poly_si_batch_j058")?1:2});var lY7;_.He("itemSectionRenderer","showRenderer","ytd-show-renderer");var Nq=function(){return _.N.apply(this,arguments)||this};
_.z(Nq,_.N);Nq.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Nq.prototype.computeThumbnailWidth=function(q){return q?360:246};
Nq.prototype.computeUseProminentThumbs=function(q){return q};
var lk=Nq;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],lk.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],lk.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],lk.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],lk.prototype,"isSearch",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.A("design:type",Boolean)],lk.prototype,"useProminentThumbs",void 0);lk=_.X([_.l({is:"ytd-show-renderer",disableElementRegistration:!0})],lk);
_.p(lk,"ytd-show-renderer",function(){if(lY7!==void 0)return lY7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return lY7=q},{mode:1});_.He("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Gh7=function(){var q=_.N.apply(this,arguments)||this;q.isRichGrid=!1;return q};
_.z(Gh7,_.N);Gh7.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"}}}}}};
var GE=Gh7;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],GE.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],GE.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],GE.prototype,"isRichGrid",void 0);GE=_.X([_.l({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],GE);
_.p(GE,"ytd-feed-entry-renderer",function(){if(Muh!==void 0)return Muh;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Muh=q},{mode:1});var pUD;var XUv=function(){return _.N.apply(this,arguments)||this};
_.z(XUv,_.N);XUv.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
var pe=XUv;_.X([_.U(_.LO),_.A("design:type",Object)],pe.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],pe.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],pe.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.vX,value:3}),_.A("design:type",Number)],pe.prototype,"itemsPerRow",void 0);
pe=_.X([_.l({is:"ytd-link-card-renderer",disableElementRegistration:!0})],pe);
_.p(pe,"ytd-link-card-renderer",function(){if(pUD!==void 0)return pUD;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return pUD=q},{mode:1});var ma2;var As2=function(){return _.N.apply(this,arguments)||this};
_.z(As2,_.N);_.e=As2.prototype;_.e.configureRendererStamper=function(){return{"data.menu":g7,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.e.onRendererTap=function(q){if(!this.ytdDismissibleItemBehavior.isDismissed){var Z,w=(Z=this.data)==null?void 0:Z.navigationEndpoint;w&&!_.E1(_.E8(q),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(w)?_.E1(_.E8(q),this.hostElement,["A"])||_.hy(this.hostElement,"yt-navigate",{endpoint:w}):this.ytComponentBehavior.resolveCommand(w,{}))}};
_.e.maybeComputeHref=function(q){return this.ytComponentBehavior.computeHref_(q,!0)};
_.e.getNavigationCommand=function(q){return this.isNavigationCommand(q)?q:null};
_.e.isNavigationCommand=function(q){return q?_.J(q,_.qZ)||_.J(q,_.ck)||_.J(q,_.TF)?!0:!1:!1};
var XV=As2;XV.prototype.onRendererTap=XV.prototype.onRendererTap;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],XV.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],XV.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],XV.prototype,"ytComponentBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],XV.prototype,"data",void 0);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],XV.prototype,"onRendererTap",null);XV=_.X([_.l({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],XV);
_.p(XV,"ytd-lumiere-promo-item-image-renderer",function(){if(ma2!==void 0)return ma2;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ma2=q},{mode:1});var fY7;var DaW=function(){return _.N.apply(this,arguments)||this};
_.z(DaW,_.N);DaW.prototype.computeLandscapeThumbnail=function(){var q;return((q=this.data)==null?void 0:q.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
var mH=DaW;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],mH.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],mH.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.SZ}),_.A("design:type",Boolean)],mH.prototype,"miniMode",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.vX}),_.A("design:type",Number)],mH.prototype,"itemsPerRow",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.A("design:type",Boolean)],mH.prototype,"landscapeThumbnail",void 0);mH=_.X([_.l({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],mH);
_.p(mH,"ytd-lumiere-shelf-details-renderer",function(){if(fY7!==void 0)return fY7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return fY7=q},{mode:_.NT("kevlar_poly_si_batch_j076")?1:2});var hrg;var ysX=function(){return _.N.apply(this,arguments)||this};
_.z(ysX,_.N);ysX.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var Ai=ysX;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ai.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ai.prototype,"data",void 0);Ai=_.X([_.l({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],Ai);
_.p(Ai,"ytd-primetime-promo-details-renderer",function(){if(hrg!==void 0)return hrg;var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return hrg=q},{mode:1});var i31;var g$v=function(){return _.N.apply(this,arguments)||this};
_.z(g$v,_.N);var fe=g$v;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],fe.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],fe.prototype,"data",void 0);fe=_.X([_.l({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],fe);
_.p(fe,"ytd-panel-show-style-metadata-renderer",function(){if(i31!==void 0)return i31;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return i31=q},{mode:1});var qRW;var ZT2=function(){return _.N.apply(this,arguments)||this};
_.z(ZT2,_.N);_.e=ZT2.prototype;_.e.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.e.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.e.computeThumbnail=function(q){if(q)return q.smallFormFactorBackgroundThumbnail||q.largeFormFactorBackgroundThumbnail};
_.e.maybeComputeHref=function(q){return this.ytComponentBehavior.computeHref_(q,!0)};
_.e.isNavigationCommand=function(q){return q?_.J(q,_.qZ)||_.J(q,_.ck)||_.J(q,_.TF)?!0:!1:!1};
_.e.getNavigationCommand=function(q){return this.isNavigationCommand(q)?q:null};
var D9=ZT2;D9.prototype.onPanelTap=D9.prototype.onPanelTap;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],D9.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],D9.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],D9.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],D9.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],D9.prototype,"roundedContainer",void 0);_.X([_.F({reflectToAttribute:!0,value:_.b("web_modern_buttons")}),_.A("design:type",Boolean)],D9.prototype,"modernButtons",void 0);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],D9.prototype,"onPanelTap",null);D9=_.X([_.l({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],D9);
_.p(D9,"ytd-primetime-promo-panel-renderer",function(){if(qRW!==void 0)return qRW;var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return qRW=q},{mode:1});_.xc(_.xl(function(q){q=_.n5(q,{data:{},useFullWidth:!1});var Z=q.data,w=q.useFullWidth,r=function(){return Z().caption},Y=function(){return Z().image},C=function(){return _.oQ(Z().onTap)};
q={};q=_.GL("ytTeaserCardViewModelHost",(q.ytTeaserCardViewModelUseFullWidth=function(){return w()},q));
return _.u("teaser-card-view-model",{class:q},_.u(_.PF,{cond:function(){return C()},
then:function(){return _.u(C7m,{className:"ytTeaserCardViewModelLink",command:C,forceNewState:!0,useATagConfig:!0},_.u("div",{class:"ytTeaserCardViewModelImageContainer"},_.u(_.PF,{cond:Y,then:function(d){return _.u(_.aQ,{data:d,className:"ytTeaserCardViewModelImage",alt:""})}})),_.u("p",{class:"ytTeaserCardViewModelCaption"},r))}}))},"sb"),"teaser-card-view-model",{props:{data:_.zG,
useFullWidth:_.zG}});var wCK=new _.F$("RICH_GRID_VIDEO_RENDERER_TOKEN");_.xc(_.xl(function(q){var Z=q.data;var w=q.showYtInteractionInContent;var r=function(){return!!Z().selectableFeedback};
q=_.P(_.qo(!1,void 0,"nblDw"));var Y=q.next().value,C=q.next().value;_.Ls(function(){var R=_.J(Z().primaryButton,_.o5);(R==null?0:R.isToggled)&&C(R.isToggled)});
q=_.fn(function(R){if(!r())return!1;if(Y()){var B;var n=(B=Z().selectableFeedback)==null?void 0:B.onDeselect}else{var x;n=(x=Z().selectableFeedback)==null?void 0:x.onSelect}n&&_.Sp(n,{form:{element:R.target}});C(!Y());if(R=_.J(Z().primaryButton,_.o5))R.isToggled=Y();return!1});
var d=function(){if(!r()){var R,B=(R=Z().loggingDirectives)==null?void 0:R.trackingParams;B&&_.hA(_.t().resolve(_.wK),B)}},O=_.tfj(),H=function(){var R;
return r()?(R=Z().selectableFeedback)==null?void 0:R.a11yLabel:void 0},L=function(){return r()?{toggled:Y()}:{}},S=_.t().resolve(_.Gj(wCK)),v={};
return _.u("yt-feedback-item-renderer",{class:_.GL("ytFeedbackItemRendererHost",(v.ytFeedbackItemRendererSelectableFeedback=r,v)),"on:click":q,"on:keydown":O,title:H,"aria-label":H,"aria-pressed":function(){return r()?Y():void 0},
tabindex:function(){return r()?0:void 0},
role:function(){return r()?"button":void 0}},_.u("div",{class:"ytFeedbackItemRendererContentContainer"},_.u(_.Hx,{data:function(){return Z().content}},{videoRenderer:function(R){return _.u(S,{data:R.data,
showYtInteraction:w})},
lockupViewModel:function(R){return _.u(qs,{data:R.data,containerType:2})}})),_.u("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.u(_.Hx,{data:function(){return Z().primaryButton}},{toggleButtonViewModel:function(R){return _.u(_.uo,{data:R.data,
buttonShapeOverrides:L,disableExplicitClickLogging:!0,onToggle:d})}})))},"tb"),"yt-feedback-item-renderer",{props:{data:_.zG,
showYtInteractionInContent:_.zG}});var rb7=function(){var q=_.N.apply(this,arguments)||this;q.isShortsGrid=!1;q.isCompactGrid=!1;q.isShortsPanelGrid=!1;q.renderedFromRichGrid=!1;q.isInFirstColumn=!1;q.noGutterMargins=!1;q.isInlineGroupItem=!1;q.insetMetadata=!1;q.noBottomMarginInAds=_.b("web_no_bottom_margin_for_home_ad_buttons");q.force16By9ThumbnailAspectRatio=!1;q.useCompactList=!1;q.containerType=2;q.thumbnailTargetWidth=9999;q.isResponsiveGrid=!1;q.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};
q.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};q.hoverListener=q.hover.bind(q);q.leaveListener=q.leave.bind(q);q.highlighted=!1;q.JSC$13869_unsubscribeFromInlinePreviewIsActive=function(){};
return q};
_.z(rb7,_.N);_.e=rb7.prototype;_.e.computeContainerType=function(){return this.useCompactList?3:2};
_.e.computeThumbnailTargetWidth=function(){var q;return(q=this.itemWidth)!=null?q:9999};
_.e.updateIsInFirstColumn=function(){var q;this.isInFirstColumn=((q=this.data)==null?void 0:q.colIndex)===0};
_.e.observerContainerType=function(){if(this.lockup){var q=this.lockup;q.containerType=this.containerType;q.sizing=this.sizing;q.typographyBump=this.typographyBump;q.itemWidth=this.itemWidth}this.richGridMedia&&_.b("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump)};
_.e.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]]"}},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]]"}}}}}};
_.e.leave=function(q){q=q.relatedTarget;var Z=document.querySelector("ytd-video-preview");q&&Z&&_.FN(Z).contains(q)||this.removeAndCleanupHighlight()};
_.e.hover=function(){var q;if(!this.highlighted&&(!_.b("web_enable_rich_item_on_focus_effect")||(q=this.data)!=null&&q.onFocusEffect)){var Z,w;((Z=this.data)==null?void 0:(w=Z.onFocusEffect)==null?void 0:w.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(q=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:q,boxShadow:"0 0 0 10px "+q}));var r,Y;((r=this.data)==null?void 0:(Y=r.onFocusEffect)==null?void 0:
Y.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.e.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};
_.e.registerHoverHighlightListeners=function(){var q=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13869_unsubscribeFromInlinePreviewIsActive=_.wF(_.sE(),_.xkX,function(Z){q.highlighted&&!Z&&q.removeAndCleanupHighlight()})};
_.e.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13869_unsubscribeFromInlinePreviewIsActive()};
_.e.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.e.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.e.getBackgroundColor=function(){var q,Z,w=(q=this.data)==null?void 0:(Z=q.onFocusEffect)==null?void 0:Z.onFocusColor;if(w){if(document.documentElement.hasAttribute("dark")&&(w==null?0:w.darkTheme))return _.oJ(w==null?void 0:w.darkTheme);if(w==null?0:w.lightTheme)return _.oJ(w==null?void 0:w.lightTheme)}};
_.e.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var q=_.b5(),Z,w,r;q&&((Z=this.data)==null?0:Z.trackingParams)&&((w=this.data)==null?void 0:w.colIndex)!=null&&((r=this.data)==null?void 0:r.rowIndex)!=null&&_.cd(q,_.wa(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.e.isSlimMediaRenderer=function(q){return!!_.J(q==null?void 0:q.content,_.Wbm)||!!_.J(q==null?void 0:q.content,Hkh)||!!_.J(q==null?void 0:q.content,_.jE)||!!_.J(q==null?void 0:q.content,kgJ)};
_.e.isPostRenderer=function(){var q,Z;return!!_.J((q=this.data)==null?void 0:q.content,zU7)||!!_.J((Z=this.data)==null?void 0:Z.content,B_h)};
_.e.computeIsGameCardShelf=function(){var q;return!!_.J((q=this.data)==null?void 0:q.content,bjW)};
_.e.computeIsMiniGameCardShelf=function(){var q,Z;return!!_.J((q=this.data)==null?void 0:q.content,cHD)||!!_.J((Z=this.data)==null?void 0:Z.content,Mb2)};
_.e.computeIsTeaserCard=function(){var q;return!!_.J((q=this.data)==null?void 0:q.content,Mb2)};
_.e.computeIsSelectableFeedbackItem=function(){var q,Z;return!((Z=_.J((q=this.data)==null?void 0:q.content,_.N2v))==null||!Z.selectableFeedback)};
_.e.computeContainsLumierePosters=function(){var q,Z;return((Z=_.J((q=this.data)==null?void 0:q.content,snh))==null?void 0:Z.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.e.computeIsExpandOnHoverCardShelf=function(){var q;return!!_.J((q=this.data)==null?void 0:q.content,Kx2)};
_.e.computeIsLinkCardShelf=function(){var q;return!!_.J((q=this.data)==null?void 0:q.content,zFK)};
_.e.computeIsReelItemStyleAvatarCircle=function(q){var Z;return((Z=_.J(q==null?void 0:q.content,_.jE))==null?void 0:Z.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.e.computeIsLinkCardFullWidth=function(q,Z){var w;return((w=_.J(q==null?void 0:q.content,zFK))==null?void 0:w.useFullWidth)||Z<=2};
_.My.Object.defineProperties(rb7.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&&_.b("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.b("web_enable_rich_item_on_focus_effect")||_.b("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.b("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.b("web_shorts_2_by_3_lockups_study")||_.b("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
var hi=rb7;hi.prototype.richGridHoverHighlightChanged=hi.prototype.richGridHoverHighlightChanged;hi.prototype.observerContainerType=hi.prototype.observerContainerType;hi.prototype.updateIsInFirstColumn=hi.prototype.updateIsInFirstColumn;_.X([_.U(_.LO),_.A("design:type",Object)],hi.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],hi.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],hi.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],hi.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.ay),_.A("design:type",Object)],hi.prototype,"ytdLockupBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],hi.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.A("design:type",Boolean)],hi.prototype,"isPost",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.A("design:type",Boolean)],hi.prototype,"containsLumierePosters",void 0);_.X([_.F({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.A("design:type",Boolean)],hi.prototype,"isSlimMedia",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.A("design:type",Boolean)],hi.prototype,"isGameCardShelf",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.A("design:type",Boolean)],hi.prototype,"isMiniGameCardShelf",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.A("design:type",Boolean)],hi.prototype,"isTeaserCard",void 0);_.X([_.F({computed:"computeIsSelectableFeedbackItem(data)"}),_.A("design:type",Boolean)],hi.prototype,"isSelectableFeedbackItem",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],hi.prototype,"isShortsGrid",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],hi.prototype,"isSlimGrid",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],hi.prototype,"isCompactGrid",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],hi.prototype,"isShortsPanelGrid",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.A("design:type",Boolean)],hi.prototype,"isExpandOnHoverCardShelf",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.A("design:type",Boolean)],hi.prototype,"isLinkCardShelf",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.vX,value:3}),_.A("design:type",Number)],hi.prototype,"itemsPerRow",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],hi.prototype,"renderedFromRichGrid",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],hi.prototype,"isInFirstColumn",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],hi.prototype,"noGutterMargins",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],hi.prototype,"isInlineGroupItem",void 0);_.X([_.F(),_.A("design:type",Object)],hi.prototype,"insetMetadata",void 0);
_.X([_.F(),_.A("design:type",Object)],hi.prototype,"noBottomMarginInAds",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],hi.prototype,"isShelfItem",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.A("design:type",Boolean)],hi.prototype,"isReelItemStyleAvatarCircle",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.A("design:type",Boolean)],hi.prototype,"isLinkCardFullWidth",void 0);
_.X([_.F(),_.A("design:type",Object)],hi.prototype,"force16By9ThumbnailAspectRatio",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],hi.prototype,"useCompactList",void 0);_.X([_.F(),_.A("design:type",String)],hi.prototype,"sizing",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],hi.prototype,"typographyBump",void 0);_.X([_.F(),_.A("design:type",Number)],hi.prototype,"itemWidth",void 0);_.X([_.F(),_.A("design:type",Boolean)],hi.prototype,"isHomeShelf",void 0);
_.X([_.fo("yt-lockup-view-model"),_.A("design:type",HTMLElement)],hi.prototype,"lockup",void 0);_.X([_.fo("ytd-rich-grid-media"),_.A("design:type",HTMLElement)],hi.prototype,"richGridMedia",void 0);_.X([_.F({computed:"computeContainerType(useCompactList)"}),_.A("design:type",Object)],hi.prototype,"containerType",void 0);_.X([_.F({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.A("design:type",Object)],hi.prototype,"thumbnailTargetWidth",void 0);
_.X([_.I("showYtInteractionOnRichItem"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],hi.prototype,"showYtInteractionOnRichGridMedia",null);_.X([_.I("isSelectableFeedbackItem","richGridHoverHighlight"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],hi.prototype,"showYtInteractionOnRichItem",null);_.X([_.I("typographyBump"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],hi.prototype,"richTypographyBump",null);
_.X([_.F({reflectToAttribute:!0}),_.I("isShortsGrid","isCompactGrid"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],hi.prototype,"richGridHoverHighlight",null);_.X([_.I("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.A("design:type",Number),_.A("design:paramtypes",[])],hi.prototype,"shortsLockupViewModelAspectRatio",null);_.X([_.I("isInlineGroupItem"),_.A("design:type",Number),_.A("design:paramtypes",[])],hi.prototype,"shortsLockupViewModelScrimStyle",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hi.prototype,"updateIsInFirstColumn",null);_.X([_.M("containerType","sizing","typographyBump"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hi.prototype,"observerContainerType",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],hi.prototype,"isResponsiveGrid",void 0);_.X([_.F(),_.A("design:type",Object)],hi.prototype,"lockupExperiments",void 0);
_.X([_.M("richGridHoverHighlight"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hi.prototype,"richGridHoverHighlightChanged",null);hi=_.X([_.l({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],hi);
_.YRp=_.Fl()(hi,"ytd-rich-item-renderer",function(){if(khv===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);khv=q}q=khv;return q},{mode:_.NT("kevlar_poly_si_batch_j028")?1:2});var TsX={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var FNN=_.UE(_.dT("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var $JK;var eC2=function(){var q=_.N.apply(this,arguments)||this;q.useResponsiveGrid=!1;q.hidden=!1;q.standardShelfMargins=_.b("web_rich_grid_standard_shelf_margins");q.isShowMoreHidden=!1;q.isExpanded=!1;q.isInnerShelf=!1;q.allVideosCount=0;q.allPlaylistCount=0;q.haveSmartDownloadsCompleted=!1;q.isShowLessHidden=!0;q.restrictContentsOverflow=!1;q.firstShownIndex=0;q.horizontalOffset=0;q.atEnd=!0;q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};q.nextClick=function(){var Z;(Z=q.data)!=null&&Z.contents&&(q.firstShownIndex+=q.currentElementsPerRow,q.updateHorizontalOffset(),q.updateHorizontalItemVisibility())};
q.previousClick=function(){var Z;(Z=q.data)!=null&&Z.contents&&(q.firstShownIndex-=q.currentElementsPerRow,q.updateHorizontalOffset(),q.updateHorizontalItemVisibility())};
return q};
_.z(eC2,_.N);_.e=eC2.prototype;
_.e.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:_.zj("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.e.attached=function(){this.requestElementsPerRow()};
_.e.refreshGridLayoutNew=function(){var q;if((q=this.data)!=null&&q.contents&&this.containerWidth){var Z;((Z=this.data.responsiveContainerConfiguration)==null?0:Z.responsiveSize)?(q=_.GHX(this.data.responsiveContainerConfiguration,this.containerWidth),q=_.F_(Object.assign({},q,{standardUnitMinWidth:this.standardUnitMinWidth}))):q=_.F_({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=q.typographyBump;if(this.elementsPerRow!==
q.numItems||this.gutter!==q.gutter)this.elementsPerRow=q.numItems,this.gutter=q.gutter,this.itemWidth=q.itemWidth,_.po(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":q.gutter+"px"})}};
_.e.computeSizing=function(){if(!(this.isLumiere||this.isShortsShelf()&&_.b("web_use_layout_library_for_rich_grid_disable_shorts"))){var q=_.DD6(this.data);if(q)return q;if(_.b("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.e.computeUseResponsiveGrid=function(){return this.isShortsShelf()&&_.b("web_use_layout_library_for_rich_grid_disable_shorts")?!1:!this.isLumiere&&this.sizing};
_.e.computeButton=function(q){var Z=_.J(q,_.tA);q=Object.assign({},_.J(q,_.tA));return Z?(q.text||(q.text={simpleText:q.tooltip}),q.style="STYLE_MONO_OUTLINE",q.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",q):Z};
_.e.onRowIndexChange=function(){var q=_.b5(),Z,w;((Z=this.data)==null?0:Z.trackingParams)&&((w=this.data)==null?void 0:w.rowIndex)!=null&&q&&_.cd(q,_.wa(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.e.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var q,Z=((q=this.getRichItemRenderers()[0])==null?void 0:q.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*Z;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.e.requestElementsPerRow=function(){_.hy(this.hostElement,"yt-request-elements-per-row")};
_.e.onUpdateElementsPerRowAction=function(q,Z,w,r,Y,C){if(this.containerWidth!==C&&(this.containerWidth=C,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&q&&Z&&w&&r&&Y&&(this.elementsPerRow!==q||this.postsPerRow!==Z||this.slimItemsPerRow!==w||this.gameCardsPerRow!==r||this.miniGameCardsPerRow!==Y)&&(this.elementsPerRow=q,this.postsPerRow=Z,this.slimItemsPerRow=w,this.gameCardsPerRow=r,this.miniGameCardsPerRow=Y,this.updateItemVisibility())};
_.e.getRichItemRenderers=function(){return _.E(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.e.updateItemVisibility=function(){var q=this;if(this.data&&this.data.contents){var Z=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(r,Y){var C;((C=q.data)==null?0:C.isExpanded)?(r.hidden=Y>Z-1,r.ytRendererBehavior.markDirty()):r.hidden=Y>q.currentElementsPerRow-1||Y>Z-1});
var w=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||w||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||w||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.e.setHeightToSingleRow=function(){var q=this.getRichItemRenderers(),Z=Number.parseInt(getComputedStyle(q[0]).marginBottom,10)||0;q=q.slice(0,this.currentElementsPerRow).reduce(function(w,r){return Math.max(w,r.getBoundingClientRect().height+Z)},0);
this.contents.style.height=q+"px"};
_.e.focusNextExpandedItem=function(){var q;((q=this.data)==null?0:q.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.e.focusItem=function(q,Z){var w=this.getRichItemRenderers();if(w[q]&&(q=w[q].querySelector(".focus-on-expand"))){if(Z){var r;(r=w[this.currentElementsPerRow])==null||r.scrollIntoView({behavior:"smooth",block:"center"})}q.focus({preventScroll:!0})}};
_.e.onDataChange=function(){var q=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.I_(this,function(){q.updateItemVisibility()});
var Z;if((Z=this.data)==null?0:Z.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.po(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),Z=0;Z<this.data.contents.length;Z++){var w=_.J(this.data.contents[Z],_.ox)||{};w.colIndex=Z;w.rowIndex=this.data.rowIndex}};
_.e.handleRerenderDownloadsData=function(){_.b("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())};
_.e.blockInlinePreview=function(q){var Z=this,w;return _.V(function(r){(w=Z.inlinePreviewIsEnabled)&&Z.ytdReduxBehavior.dispatch(_.C_e(!1));return r.return(new Promise(function(Y){q(function(){w&&Z.ytdReduxBehavior.dispatch(_.C_e(!0));Y()})}))})};
_.e.expandShelf=function(){var q=this;if(this.data){var Z,w=(Z=_.J(this.data.showMoreButton,_.tA))==null?void 0:Z.trackingParams;w&&_.hA(_.iy(),w);this.data.isExpanded=!0;this.blockInlinePreview(function(r){q.setHeightToSingleRow();q.updateItemVisibility();q.contents.style.height=q.contents.scrollHeight+"px";_.v5.addJob(function(){q.contents.style.height="auto";q.focusNextExpandedItem();r()},2,200)})}};
_.e.collapseShelf=function(){var q=this;return _.V(function(Z){if(Z.nextAddress==1){if(!q.data)return Z.return();q.data.isExpanded=!1;return _.W(Z,q.blockInlinePreview(function(w){q.contents.style.height=q.contents.scrollHeight+"px";q.setHeightToSingleRow();_.v5.addJob(function(){q.updateItemVisibility();q.contents.style.height="auto";w()},2,200)}),2)}_.hy(q.hostElement,"yt-rich-shelf-renderer-collapse",q.data.trackingParams);
q.focusItem(0,!1);_.ub(Z)})};
_.e.updateArrowButtonStatus=function(){var q=this.getRichItemRenderers().length;if(!_.b("web_rich_shelf_renderer_use_data_contents_killswitch")){var Z,w;q=((Z=this.data)==null?void 0:(w=Z.contents)==null?void 0:w.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=q};
_.e.onChildElementFocus=function(q){this.hasChevronButtons&&(q=q.target.closest("#contents > *"),this.contents.contains(q)&&(q.offsetLeft<this.horizontalOffset?this.previousClick():q.offsetLeft+q.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.e.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.zj("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.e.updateHorizontalOffset=function(){var q=this.getRichItemRenderers(),Z=q.length;if(!_.b("web_rich_shelf_renderer_use_data_contents_killswitch")){var w,r;Z=((w=this.data)==null?void 0:(r=w.contents)==null?void 0:r.length)||0}var Y;q=((Y=q[0])==null?void 0:Y.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>Z?this.firstShownIndex=Z-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*q};
_.e.isSlimMediaShelfRenderer=function(){var q,Z,w,r=(w=_.J((q=this.data)==null?void 0:(Z=q.contents)==null?void 0:Z[0],_.ox))==null?void 0:w.content;return!!(_.J(r,_.Wbm)||_.J(r,Hkh)||_.J(r,_.jE)||_.J(r,kgJ))};
_.e.isGameCardShelf=function(){var q,Z,w,r=(w=_.J((q=this.data)==null?void 0:(Z=q.contents)==null?void 0:Z[0],_.ox))==null?void 0:w.content;return!!_.J(r,bjW)};
_.e.isGnomeShelf=function(){var q,Z,w,r=(w=_.J((q=this.data)==null?void 0:(Z=q.contents)==null?void 0:Z[0],_.ox))==null?void 0:w.content;return!!_.J(r,_.N2v)};
_.e.isMiniGameCardShelf=function(){var q,Z,w,r=(w=_.J((q=this.data)==null?void 0:(Z=q.contents)==null?void 0:Z[0],_.ox))==null?void 0:w.content;return!!_.J(r,cHD)||!!_.J(r,Mb2)};
_.e.hasGameBoxArtAvatarStyle=function(){var q;return((q=this.data)==null?void 0:q.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.e.hasRoundedGameBoxArtAvatarStyle=function(){var q;return((q=this.data)==null?void 0:q.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.e.isShortsShelf=function(){var q,Z,w,r=(w=_.J((q=this.data)==null?void 0:(Z=q.contents)==null?void 0:Z[0],_.ox))==null?void 0:w.content;return!!_.J(r,_.jE)||!!_.J(r,kgJ)};
_.e.isPostShelfRenderer=function(){var q,Z,w,r=(w=_.J((q=this.data)==null?void 0:(Z=q.contents)==null?void 0:Z[0],_.ox))==null?void 0:w.content;return!(!_.J(r,zU7)&&!_.J(r,B_h))};
_.e.isLumiereShelf=function(){var q,Z,w=_.J((q=this.data)==null?void 0:(Z=q.contents)==null?void 0:Z[0],_.ox);return!!_.J(w==null?void 0:w.content,snh)};
_.e.isLumiereShelfWithPosters=function(){var q,Z,w=_.J((q=this.data)==null?void 0:(Z=q.contents)==null?void 0:Z[0],_.ox),r;return((r=_.J(w==null?void 0:w.content,snh))==null?void 0:r.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.e.isExpandOnHoverCardShelf=function(){var q,Z,w,r=(w=_.J((q=this.data)==null?void 0:(Z=q.contents)==null?void 0:Z[0],_.ox))==null?void 0:w.content;return!!_.J(r,Kx2)};
_.e.computeHasFeaturedBadge=function(){var q,Z,w=_.J((q=this.data)==null?void 0:(Z=q.badges)==null?void 0:Z[0],_.Nkv);return w?w.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.e.computeHasPaygatedFeaturedBadge=function(){var q,Z,w=_.J((q=this.data)==null?void 0:(Z=q.badges)==null?void 0:Z[0],_.Nkv);return w?(w==null?void 0:w.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.e.computeHeaderHidden=function(){var q,Z,w,r,Y,C;return!((q=this.data)==null?0:q.icon)&&!((Z=this.data)==null?0:Z.title)&&!((w=this.data)==null?0:w.subtitle)&&!((r=this.data)==null?0:r.thumbnail)&&!((Y=this.data)==null?0:Y.badges)&&!((C=this.data)==null?0:C.menu)};
_.e.showCtaButton=function(){var q;return!((q=this.data)==null||!q.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.e.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.e.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.e.computeForce16By9ThumbnailAspectRatio=function(){var q,Z;return((q=this.data)==null?void 0:(Z=q.responsiveContainerConfiguration)==null?void 0:Z.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.e.onSectionReactiveDismissal=function(q,Z,w){var r,Y;var C=(r=this.data)==null?void 0:(Y=r.targetingContext)==null?void 0:Y.targetGroupId;this&&C&&Z.targetGroupId&&C.includes(Z.targetGroupId)?(r=this.rowIndex,q=r===void 0?!1:!(Z.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&r<=q)):q=!1;q&&(this.hidden=w)};
_.My.Object.defineProperties(eC2.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var q=this.elementsPerRow;this.isPostShelfRenderer()?q=this.postsPerRow:this.isSlimMediaShelfRenderer()?q=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?q=this.slimItemsPerRow-1:this.isGameCardShelf()?q=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(q=this.miniGameCardsPerRow);return q}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.b("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!((q=this.data)==null||!q.previousButton)&&!((Z=this.data)==null||!Z.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 q;return((q=_.t().resolve(_.U1).getCurrentPage())==null?void 0:q.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r;return!((q=this.data)==null?0:(Z=q.thumbnail)==null?0:(w=Z.accessibility)==null?0:(r=w.accessibilityData)==null?0:r.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
var yx=eC2;yx.prototype.onChildElementFocus=yx.prototype.onChildElementFocus;yx.prototype.handleRerenderDownloadsData=yx.prototype.handleRerenderDownloadsData;yx.prototype.onDataChange=yx.prototype.onDataChange;yx.prototype.onRowIndexChange=yx.prototype.onRowIndexChange;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],yx.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],yx.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.vj),_.A("design:type",Object)],yx.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],yx.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],yx.prototype,"ytdReduxBehavior",void 0);_.X([_.F({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.A("design:type",Object)],yx.prototype,"useResponsiveGrid",void 0);_.X([_.F(),_.A("design:type",Object)],yx.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Number)],yx.prototype,"standardUnitMinWidth",void 0);_.X([_.F({reflectToAttribute:!0,value:3}),_.A("design:type",Number)],yx.prototype,"elementsPerRow",void 0);_.X([_.F({value:3}),_.A("design:type",Number)],yx.prototype,"postsPerRow",void 0);_.X([_.F({value:6}),_.A("design:type",Number)],yx.prototype,"slimItemsPerRow",void 0);_.X([_.F({value:6}),_.A("design:type",Number)],yx.prototype,"gameCardsPerRow",void 0);
_.X([_.F({value:6}),_.A("design:type",Number)],yx.prototype,"miniGameCardsPerRow",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],yx.prototype,"hidden",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],yx.prototype,"standardShelfMargins",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],yx.prototype,"isShowMoreHidden",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],yx.prototype,"isExpanded",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],yx.prototype,"isInnerShelf",void 0);_.X([_.F({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.A("design:type",Boolean)],yx.prototype,"isShorts",void 0);_.X([_.F({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.A("design:type",Boolean)],yx.prototype,"isLumiere",void 0);_.X([_.F({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.A("design:type",Boolean)],yx.prototype,"hasBoxArtThumbnailStyle",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.A("design:type",Boolean)],yx.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.A("design:type",Boolean)],yx.prototype,"hasFeaturedBadge",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.A("design:type",Boolean)],yx.prototype,"hasPaygatedFeaturedBadge",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.A("design:type",Boolean)],yx.prototype,"isHeaderHidden",void 0);_.X([_.F({selector:_.cD2}),_.A("design:type",Object)],yx.prototype,"allVideosCount",void 0);_.X([_.F({selector:lH9}),_.A("design:type",Object)],yx.prototype,"allPlaylistCount",void 0);_.X([_.F({selector:fKj}),_.A("design:type",Object)],yx.prototype,"haveSmartDownloadsCompleted",void 0);
_.X([_.F({selectorArgs:["entitySelectorType"],selector:function(q,Z){if(_.b("kevlar_modern_downloads_page")&&Z&&Z!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var w=q.entities;switch(Z){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":Z=_.oZ(w);q=Se(Z);var r=_.dt(Z);w=_.Lz(w);w=_.G7(kHz(r,w,Z.length));return{contents:q,subtitle:w};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return w=_.oZ(w),{contents:Se(w)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return w=
_.uF(w),{contents:Se(w)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return w=_.uf8(w),{contents:Se(w)};default:_.bx(new _.df("Error: entitySelectorType defined but not matched in selector.",q,Z))}}}}),
_.A("design:type",Object)],yx.prototype,"entityDrivenRichShelfData",void 0);_.X([_.F({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.A("design:type",Boolean)],yx.prototype,"hasTopCtaButton",void 0);_.X([_.F({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.A("design:type",Boolean)],yx.prototype,"hasBottomCtaButton",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.A("design:type",Boolean)],yx.prototype,"force16By9ThumbnailAspectRatio",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],yx.prototype,"isShowLessHidden",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],yx.prototype,"restrictContentsOverflow",void 0);_.X([_.F({selector:_.TFz}),_.A("design:type",Boolean)],yx.prototype,"inlinePreviewIsEnabled",void 0);
_.X([_.F({computed:"computeSizing(data)"}),_.A("design:type",String)],yx.prototype,"sizing",void 0);_.X([_.F(),_.A("design:type",Boolean)],yx.prototype,"typographyBump",void 0);_.X([_.F(),_.A("design:type",Number)],yx.prototype,"itemWidth",void 0);_.X([_.F(),_.A("design:type",Object)],yx.prototype,"firstShownIndex",void 0);_.X([_.F(),_.A("design:type",Object)],yx.prototype,"horizontalOffset",void 0);_.X([_.F(),_.A("design:type",Object)],yx.prototype,"atEnd",void 0);
_.X([_.fo("#contents"),_.A("design:type",HTMLElement)],yx.prototype,"contents",void 0);_.X([_.M("data.rowIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yx.prototype,"onRowIndexChange",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yx.prototype,"onDataChange",null);
_.X([_.M("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yx.prototype,"handleRerenderDownloadsData",null);_.X([_.m2("focusin"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],yx.prototype,"onChildElementFocus",null);_.X([_.F({reflectToAttribute:!0}),_.I("data","isHomePage"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yx.prototype,"isTruncated",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yx.prototype,"hideBottomDivider",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yx.prototype,"hasChevronButtons",null);_.X([_.I("firstShownIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],yx.prototype,"previousButtonOverride",null);
_.X([_.I("atEnd"),_.A("design:type",Object),_.A("design:paramtypes",[])],yx.prototype,"nextButtonOverride",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yx.prototype,"isHomePage",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yx.prototype,"thumbnailAriaHidden",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yx.prototype,"initiallyIsExpanded",null);
_.X([_.I("data"),_.A("design:type",String),_.A("design:paramtypes",[])],yx.prototype,"entitySelectorType",null);yx=_.X([_.l({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],yx);
_.Ce2=_.Fl()(yx,"ytd-rich-shelf-renderer",function(){if($JK===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);$JK=q}q=$JK;return q},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.NT("kevlar_poly_si_batch_j028")?1:2});var Pem;var dJ2=function(){var q=_.N.apply(this,arguments)||this;q.tileLottieAnimationRef={};q.backgroundLottieAnimationRef={};q.isOnHoverBehaviorForLottieEnabled=!0;q.useBiggerShowcaseImage=_.b("enable_desktop_search_bigger_thumbs");q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return q};
_.z(dJ2,_.N);_.e=dJ2.prototype;_.e.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.e.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},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.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.e.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var q=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);q!==this.hasTile&&this.set("hasTile",q);q=this.hasLogo(this.data)||!!this.data.badgeText;q!==this.hasMetadata&&this.set("hasMetadata",q);q=this.data.overflowButton?!1:q;q!==this.showLogoImage&&this.set("showLogoImage",q);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.e.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.e.currentColorChanged=function(){this.updateButtonPalette()};
_.e.computeBackgroundStyle=function(q){if(q&&this.data){var Z=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var w=_.UL((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);w&&Z.push('background-image: url("'+w+'");')}var r;((r=q.basicColorData)==null?void 0:r.backgroundColor)!==void 0&&Z.push("background-color: "+_.uq(q.basicColorData.backgroundColor)+";");return Z.join("")}};
_.e.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&this.set("isDarkTheme",q)};
_.e.getCurrentLogo=function(q,Z){if(q)return Z?q.darkLogoImage:q.lightLogoImage};
_.e.getCurrentStaticTileImage=function(q,Z){if(this.hasStaticTile(q))return q.darkTileImage?Z?q.darkTileImage:q.tileImage:q.tileImage};
_.e.computeTitleStyle=function(q){if(this.data&&this.data.title&&q&&q.basicColorData&&q.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.oJ(q.basicColorData.foregroundTitleColor)+";"};
_.e.computeSubtitleStyle=function(q){if(this.data&&this.data.subtitle&&q&&q.basicColorData&&q.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.oJ(q.basicColorData.foregroundBodyColor)+";"};
_.e.computeSupplementalStyle=function(q){if(this.data&&this.data.supplementalText&&q&&q.supplementalTextColor!==void 0)return q=_.oJ(q.supplementalTextColor),"color:"+q+";--yt-endpoint-color:"+q+";--yt-endpoint-hover-color:"+q+";--yt-endpoint-visited-color:"+q+";--yt-formatted-string-bold-font-weight:700;"};
_.e.computeBadgeStyle=function(q){if(this.data&&this.data.badgeText&&q&&q.basicColorData&&q.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.oJ(q.basicColorData.foregroundActivatedColor)+";"};
_.e.computeDismissIconStyle=function(q){var Z,w;if((q==null?0:(Z=q.dismissButtonColorData)==null?0:Z.foregroundTitleColor)&&(q==null?0:(w=q.dismissButtonColorData)==null?0:w.backgroundColor))return"--yt-button-color:"+_.uq(q.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.uq(q.dismissButtonColorData.backgroundColor)+";"};
_.e.computeOverflowIconStyle=function(q){var Z,w;if((q==null?0:(Z=q.dismissButtonColorData)==null?0:Z.foregroundTitleColor)&&(q==null?0:(w=q.dismissButtonColorData)==null?0:w.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.uq(q.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.uq(q.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.uq(q.dismissButtonColorData.foregroundTitleColor)+";"};
_.e.computeBannerStyle=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.e.computeLocation=function(q){switch(q==null?void 0:q.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.e.shouldShowTileSection=function(q,Z,w){return!this.shouldExpandLogo(q,Z,w)&&Z};
_.e.shouldShowExpandedLogoSection=function(q,Z,w){return this.shouldExpandLogo(q,Z,w)&&q!==void 0&&this.hasLogo(q)};
_.e.shouldExpandLogo=function(q,Z,w){return q&&Z?!1:w>=2};
_.e.hasStaticTile=function(q){return!(q==null||!q.tileImage)};
_.e.hasTileLottie=function(q){var Z;return!!(q==null?0:(Z=q.tileLottie)==null?0:Z.url)};
_.e.hasLogo=function(q){return this.getCurrentLogo(q,this.isDarkTheme)!==void 0};
_.e.getLogoHeight=function(q){return this.logoWithPadding(q)?"26":"20"};
_.e.getExpandedLogoHeight=function(q){return this.logoWithPadding(q)?"31":"24"};
_.e.getLogoImageId=function(q){return this.logoWithPadding(q)?"logo-image-with-padding":"logo-image"};
_.e.hasBackgroundLottie=function(q){var Z;return!!(q==null?0:(Z=q.backgroundLottie)==null?0:Z.url)};
_.e.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var q,Z;(q=this.tileLottieAnimationRef)==null||(Z=q.lottieEl)==null||Z.play();var w,r;(w=this.backgroundLottieAnimationRef)==null||(r=w.lottieEl)==null||r.play()}};
_.e.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var q,Z;(q=this.tileLottieAnimationRef)==null||(Z=q.lottieEl)==null||Z.pause();var w,r;(w=this.backgroundLottieAnimationRef)==null||(r=w.lottieEl)==null||r.pause()}};
_.e.pauseLottie=function(){var q,Z;(q=this.tileLottieAnimationRef)==null||(Z=q.lottieEl)==null||Z.pause();var w,r;(w=this.backgroundLottieAnimationRef)==null||(r=w.lottieEl)==null||r.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.e.performPrimaryButtonAction=function(){var q,Z,w;((q=this.data)==null?0:(Z=q.primaryButton)==null?0:(w=Z.buttonRenderer)==null?0:w.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.e.requestElementsPerRow=function(){_.hy(this.hostElement,"yt-request-elements-per-row")};
_.e.updateButtonPalette=function(){if(this.data&&this.currentColorData){var q;((q=this.data.dismissButton)==null?0:q.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 Z;if((Z=this.data.primaryButton)==null?0:Z.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 w;if((w=this.data.secondaryButton)==
null?0:w.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 r;((r=this.data.primaryButton)==null?0:r.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var Y;((Y=this.data.secondaryButton)==null?0:Y.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.e.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var q=this.getTileLottieDataBasedOnTheme(),Z,w;if(q.url!==((Z=this.tileLottiePlayerProps)==null?void 0:(w=Z.animationConfig)==null?void 0:w.path)){var r,Y;(r=this.tileLottieAnimationRef)==null||(Y=r.lottieEl)==null||Y.destroy();var C;this.isOnHoverBehaviorForLottieEnabled=!((C=q.settings)==null?0:C.autoplay);var d,O;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(O=(d=q.settings)==null?void 0:d.autoplay)!=null?O:!1,loop:this.getLottieLoopValue(q.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof q.url==="string"?this.tileLottiePlayerProps.animationConfig.path=q.url:this.tileLottiePlayerProps.animationConfig.animationData=q.url}}};
_.e.getOverflowButton=function(q){return _.J(q.overflowButton,MEp)};
_.e.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var q=this.getBackgroundLottieDataBasedOnTheme(),Z,w;if(q.url!==((Z=this.backgroundLottiePlayerProps)==null?void 0:(w=Z.animationConfig)==null?void 0:w.path)){var r,Y;(r=this.backgroundLottieAnimationRef)==null||(Y=r.lottieEl)==null||Y.destroy();var C;this.isOnHoverBehaviorForLottieEnabled=!((C=q.settings)==null?0:C.autoplay);var d,O;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(O=(d=q.settings)==null?void 0:d.autoplay)!=null?O:!1,loop:this.getLottieLoopValue(q.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof q.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=q.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
q.url}}};
_.e.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var q;((q=this.tileLottieAnimationRef)==null?void 0:q.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var Z;((Z=this.backgroundLottieAnimationRef)==null?void 0:Z.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.e.getTileLottieDataBasedOnTheme=function(){var q;if(this.isDarkTheme&&((q=this.data)==null?0:q.darkThemeTileLottie))return this.data.darkThemeTileLottie;var Z;return((Z=this.data)==null?0:Z.tileLottie)?this.data.tileLottie:{}};
_.e.getBackgroundLottieDataBasedOnTheme=function(){var q;if(this.isDarkTheme&&((q=this.data)==null?0:q.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var Z;return((Z=this.data)==null?0:Z.backgroundLottie)?this.data.backgroundLottie:{}};
_.e.onUpdateElementsPerRowAction=function(q){q&&this.elementsPerRow!==q&&(this.elementsPerRow=q)};
_.e.getLottieLoopValue=function(q){return q?q.loop!==void 0?q.loop:q.loopCount?q.loopCount-1:!0:!0};
_.e.logoWithPadding=function(q){var Z,w,r;return(q=(Z=this.getCurrentLogo(q,this.isDarkTheme))==null?void 0:(w=Z.thumbnails)==null?void 0:(r=w[0])==null?void 0:r.height)&&q%31===0?!0:!1};
var ik=dJ2;ik.prototype.currentColorChanged=ik.prototype.currentColorChanged;ik.prototype.themeChanged=ik.prototype.themeChanged;ik.prototype.dataChanged=ik.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ik.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ik.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],ik.prototype,"ytdDismissibleItemBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],ik.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],ik.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ik.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],ik.prototype,"primaryButton",void 0);_.X([_.F(),_.A("design:type",Object)],ik.prototype,"secondaryButton",void 0);
_.X([_.F({reflectToAttribute:!0,value:3}),_.A("design:type",Number)],ik.prototype,"elementsPerRow",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],ik.prototype,"isDarkTheme",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],ik.prototype,"hasTile",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],ik.prototype,"hasMetadata",void 0);
_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],ik.prototype,"showLogoImage",void 0);_.X([_.F(),_.A("design:type",Object)],ik.prototype,"currentColorData",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.A("design:type",String)],ik.prototype,"bannerStyle",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.A("design:type",String)],ik.prototype,"location",void 0);
_.X([_.F(),_.A("design:type",Object)],ik.prototype,"tileLottiePlayerProps",void 0);_.X([_.F(),_.A("design:type",Object)],ik.prototype,"tileLottieAnimationRef",void 0);_.X([_.F(),_.A("design:type",Object)],ik.prototype,"backgroundLottiePlayerProps",void 0);_.X([_.F(),_.A("design:type",Object)],ik.prototype,"backgroundLottieAnimationRef",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ik.prototype,"useBiggerShowcaseImage",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],ik.prototype,"isHideEnclosingAction",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ik.prototype,"dataChanged",null);_.X([_.g3("isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ik.prototype,"themeChanged",null);
_.X([_.g3("currentColorData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ik.prototype,"currentColorChanged",null);ik=_.X([_.l({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],ik);
_.p(ik,"ytd-statement-banner-renderer",function(){if(Pem!==void 0)return Pem;var q=document.createElement("template");_.a(q,'\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="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="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeBadgeStyle(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>\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="36" 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.overflowButton]]" 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>\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="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Pem=q},{mode:1});var VUv;var OTJ=function(){var q=_.N.apply(this,arguments)||this;q.isSearch=!1;q.hideShelfHeader=!1;q.engagementPanel=!1;q.disableMouseScroll=!0;q.useFloorScrolling=!0;q.modernTypography=_.b("web_modern_typography");return q};
_.z(OTJ,_.N);OTJ.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.dT("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.dT("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
OTJ.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
var gg=OTJ;gg.prototype.onDataChanged=gg.prototype.onDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],gg.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],gg.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],gg.prototype,"isSearch",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gg.prototype,"hideShelfHeader",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gg.prototype,"engagementPanel",void 0);_.X([_.F(),_.A("design:type",Object)],gg.prototype,"disableMouseScroll",void 0);_.X([_.F(),_.A("design:type",Object)],gg.prototype,"useFloorScrolling",void 0);_.X([_.F(),_.A("design:type",Object)],gg.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gg.prototype,"modernTypography",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gg.prototype,"onDataChanged",null);gg=_.X([_.l({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],gg);
_.p(gg,"ytd-reel-shelf-renderer",function(){if(VUv!==void 0)return VUv;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return VUv=q},{mode:_.NT("kevlar_poly_si_batch_j028")?1:2});var HT1;var Wo7=_.xl(function(q){var Z=q.data;q=q.useSmallFont;var w={},r={};return _.u("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.u(_.PF,{cond:function(){return Z().favicon},
then:function(Y){return _.u(_.aQ,{data:Y,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.u("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.u(_.r6,{text:function(){return Z().title},
className:_.GL("yt-channel-external-link-view-model-wiz__title",(w["yt-channel-external-link-view-model-wiz__title--title-small-font"]=q,w)),ellipsisTruncate:!0,userInput:!0}),_.u(_.r6,{text:function(){return Z().link},
className:_.GL("yt-channel-external-link-view-model-wiz__link",(r["yt-channel-external-link-view-model-wiz__link--link-small-font"]=q,r)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"ub");
Wo7.idomCompat=!0;_.xc(Wo7,"yt-channel-external-link-view-model",{props:{data:_.zG,useSmallFont:_.zG}});_.He("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var oWg=function(){var q=_.N.apply(this,arguments)||this;q.revealButtonClass="button";q.businessEmailDisplayState="HIDE_SECTION";return q};
_.z(oWg,_.N);_.e=oWg.prototype;_.e.refit=function(){var q=this;_.SH(function(){_.i5(q.hostElement,"yt-refit-popups-action")});
_.I_(this,function(){_.i5(q.hostElement,"yt-refit-popups-action")})};
_.e.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.np("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.e.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"};
_.e.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.e.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"}}}};
_.e.computeEmailHref=function(q){return"mailto:"+q};
_.e.computeSafeUrl=function(q){if(q)return _.EX(q)};
_.e.linkEndpoint=function(q){return _.J(q.onTap,_.WJ)};
_.e.linkEndpointToHref=function(q){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(q))};
_.e.onYtServiceRequestCompleted=function(q){var Z;if((Z=q.detail.data)==null?0:Z.businessEmail)this.businessEmail=q.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var w;if((w=q.detail.data)==null?0:w.errorMessage)this.businessEmailErrorMessage=q.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.e.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var q=this.JSC$13972_captchaTextarea.value;if(q){q={recaptcha_response_token:q,channel_id:this.metadata.channelId};var Z=_.J(this.metadata.onBusinessEmailRevealClickCommand,_.WJ);Z&&this.ytComponentBehavior.resolveCommand(Z,{form:q})}}};
_.e.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.My.Object.defineProperties(oWg.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var q;return _.J((q=this.data)==null?void 0:q.metadata,Fxe)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.J(this.metadata.businessEmailRevealButton,_.Wx)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var q=new URL(this.metadata.canonicalChannelUrl);return q.host+q.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 _.J(this.metadata.learnMoreOnTap,_.WJ)}}});
var q5=oWg;q5.prototype.onYtServiceRequestCompleted=q5.prototype.onYtServiceRequestCompleted;q5.prototype.businessEmailMetadataChanged=q5.prototype.businessEmailMetadataChanged;q5.prototype.refit=q5.prototype.refit;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],q5.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],q5.prototype,"ytRendererstamperBehavior",void 0);_.X([_.fo("#g-recaptcha-response"),_.A("design:type",HTMLTextAreaElement)],q5.prototype,"JSC$13972_captchaTextarea",void 0);_.X([_.F(),_.A("design:type",Object)],q5.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],q5.prototype,"revealButtonClass",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],q5.prototype,"metadata",null);
_.X([_.I("metadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],q5.prototype,"revealButton",null);_.X([_.I("metadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],q5.prototype,"channelDisplayUrl",null);_.X([_.g3("metadata"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],q5.prototype,"refit",null);_.X([_.I("metadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],q5.prototype,"formattedDescription",null);
_.X([_.I("metadata","learnMoreCommand"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],q5.prototype,"shouldRendereVerifiedPhoneStatus",null);_.X([_.I("metadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],q5.prototype,"learnMoreCommand",null);_.X([_.F(),_.A("design:type",String)],q5.prototype,"businessEmailDisplayState",void 0);_.X([_.F(),_.A("design:type",String)],q5.prototype,"businessEmail",void 0);
_.X([_.F(),_.A("design:type",String)],q5.prototype,"businessEmailErrorMessage",void 0);_.X([_.g3("metadata"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],q5.prototype,"businessEmailMetadataChanged",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],q5.prototype,"onYtServiceRequestCompleted",null);
q5=_.X([_.l({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],q5);
_.p(q5,"ytd-about-channel-renderer",function(){if(HT1!==void 0)return HT1;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return HT1=q},{mode:1});var uCv;var Lov=function(){return _.N.apply(this,arguments)||this};
_.z(Lov,_.N);var Z4=Lov;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Z4.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Z4.prototype,"data",void 0);Z4=_.X([_.l({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Z4);
_.p(Z4,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(uCv!==void 0)return uCv;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return uCv=q},{mode:1});var SR9;var vWe=function(){return _.N.apply(this,arguments)||this};
_.z(vWe,_.N);vWe.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
var wO=vWe;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],wO.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],wO.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],wO.prototype,"aligment",void 0);wO=_.X([_.l({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],wO);
_.p(wO,"ytd-channel-list-sub-menu-renderer",function(){if(SR9!==void 0)return SR9;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return SR9=
q},{mode:1});var jbg;var tU7=function(){return _.N.apply(this,arguments)||this};
_.z(tU7,_.N);tU7.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}}}}}};
var rO=tU7;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],rO.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],rO.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],rO.prototype,"data",void 0);rO=_.X([_.l({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],rO);
_.p(rO,"ytd-channel-sub-menu-renderer",function(){if(jbg!==void 0)return jbg;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return jbg=q},{mode:1});var RC2;var bTp;var JbX=function(){var q=_.N.apply(this,arguments)||this;q.isCompact=!1;return q};
_.z(JbX,_.N);_.My.Object.defineProperties(JbX.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((Z=_.J((q=this.data)==null?void 0:q.endpoint,_.TF))==null?void 0:Z.target)==="TARGET_NEW_WINDOW"}}});
var YR=JbX;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],YR.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],YR.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],YR.prototype,"isCompact",void 0);_.X([_.I("isCompact"),_.A("design:type",Number),_.A("design:paramtypes",[])],YR.prototype,"thumbnailWidth",null);
_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],YR.prototype,"openNewWindow",null);YR=_.X([_.l({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],YR);
_.p(YR,"ytd-media-lockup-renderer",function(){if(bTp!==void 0)return bTp;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return bTp=q},{mode:1});var zCp;var BL1=function(){return _.N.apply(this,arguments)||this};
_.z(BL1,_.N);var $R=BL1;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],$R.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],$R.prototype,"data",void 0);$R=_.X([_.l({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],$R);
_.p($R,"ytd-structured-description-channel-lockup-renderer",function(){if(zCp!==void 0)return zCp;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return zCp=q},{mode:1});var at9;var nWg=function(){var q=_.N.apply(this,arguments)||this;q.isCompact=!1;q.collections=_.b("web_modern_collections_v2");q.collectionsStackColor=_.b("modernize_structured_description_playlist_lockups_v2");return q};
_.z(nWg,_.N);nWg.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:_.b("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.My.Object.defineProperties(nWg.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r,Y,C;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(q=this.data)==null?void 0:(Z=q.thumbnail)==null?void 0:Z.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(w=this.data)==null?void 0:(r=w.thumbnail)==null?void 0:r.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(Y=this.data)==null?void 0:(C=Y.thumbnail)==
null?void 0:C.vibrantColorPalette:void 0}}}});
var ec=nWg;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],ec.prototype,"componentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ec.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ec.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],ec.prototype,"showSidePanelThumbnailOverlay",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ec.prototype,"isCompact",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],ec.prototype,"collections",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ec.prototype,"collectionsStackColor",void 0);
_.X([_.I("data"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ec.prototype,"twoLineTitle",null);_.X([_.I("data","collections","collectionsStackColor"),_.A("design:type",Object),_.A("design:paramtypes",[])],ec.prototype,"collectionStack",null);ec=_.X([_.l({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],ec);
_.p(ec,"ytd-structured-description-playlist-lockup-renderer",function(){if(at9!==void 0)return at9;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return at9=q},{mode:1});var Qbp;var EW1=function(){return _.N.apply(this,arguments)||this};
_.z(EW1,_.N);var Cw=EW1;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Cw.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Cw.prototype,"data",void 0);Cw=_.X([_.l({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],Cw);
_.p(Cw,"ytd-structured-description-video-lockup-renderer",function(){if(Qbp!==void 0)return Qbp;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Qbp=q},{mode:2});var xJJ=function(){return _.N.apply(this,arguments)||this};
_.z(xJJ,_.N);
xJJ.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}}}}}};
var Pz=xJJ;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Pz.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Pz.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Pz.prototype,"data",void 0);Pz=_.X([_.l({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Pz);
_.p(Pz,"ytd-compact-infocard-renderer",function(){if(RC2!==void 0)return RC2;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return RC2=q},{mode:1});var TLp;var UJ7=function(){var q=_.N.apply(this,arguments)||this;q.useModernCollectionsV2=_.b("web_modern_collections_v2");return q};
_.z(UJ7,_.N);UJ7.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.My.Object.defineProperties(UJ7.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("kevlar_watch_feed_big_thumbs")?"":"94"}}});
var dO=UJ7;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],dO.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],dO.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],dO.prototype,"ytdReduxBehavior",void 0);_.X([_.F({selector:_.tL}),_.A("design:type",Object)],dO.prototype,"isGridViewEnabled",void 0);
_.X([_.I("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],dO.prototype,"watchFeedBigThumbs",null);_.X([_.I("isGridViewEnabled","data"),_.F({reflectToAttribute:!0,value:"168"}),_.A("design:type",String),_.A("design:paramtypes",[])],dO.prototype,"thumbnailWidth",null);_.X([_.I("isGridViewEnabled","data"),_.F({reflectToAttribute:!0,value:"94"}),_.A("design:type",String),_.A("design:paramtypes",[])],dO.prototype,"customThumbnailSize",null);
_.X([_.F(),_.A("design:type",Object)],dO.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],dO.prototype,"useModernCollectionsV2",void 0);dO=_.X([_.l({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],dO);
_.p(dO,"ytd-compact-playlist-renderer",function(){if(TLp!==void 0)return TLp;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return TLp=q},{mode:1});var kQp;var Ko2=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");q.roundedContainer=!0;q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return q};
_.z(Ko2,_.N);_.e=Ko2.prototype;_.e.attached=function(){this.requestElementsPerRow()};
_.e.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"}}}};
_.e.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.e.computeViewStyle=function(q){return q.style?q.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.e.onUpdateElementsPerRowAction=function(q){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&q===1};
_.e.requestElementsPerRow=function(){_.hy(this.hostElement,"yt-request-elements-per-row")};
var VK=Ko2;VK.prototype.dataChanged=VK.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],VK.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],VK.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],VK.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],VK.prototype,"actionHandlerBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],VK.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],VK.prototype,"hideThumbnail",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.A("design:type",String)],VK.prototype,"viewStyle",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],VK.prototype,"darkerDarkTheme",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],VK.prototype,"roundedContainer",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],VK.prototype,"dataChanged",null);VK=_.X([_.l({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],VK);
_.p(VK,"ytd-compact-promoted-item-renderer",function(){if(kQp!==void 0)return kQp;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return kQp=q},{mode:1});var sbW;var O0=function(){var q=_.N.apply(this,arguments)||this;q.collections=_.b("web_modern_collections_v2");return q};
_.z(O0,_.N);O0.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
O0.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
O0.prototype.onYtNavigate=function(q,Z){var w=this;if(Z.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",Z)){var r=this.get("watchEndpoint.videoId",Z.endpoint),Y=_.i5(this.hostElement,"yt-get-current-video-id-action")[0];_.b("kevlar_mix_handle_first_endpoint_different")&&r&&Y&&r!==Y||(q.stopPropagation(),_.s1().getPlayerPromise().then(function(C){if(C.getPlayerState()===0&&w.data.secondaryNavigationEndpoint)var d=w.data.secondaryNavigationEndpoint;else{d=
Object.assign({},Z.endpoint);var O=_.J(d.commandMetadata,_.XK);O&&(C=Math.floor(C.getCurrentTime()),O.url=_.Iz(O.url,{t:C}),!_.b("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(O=_.J(d,_.ck)))&&(O.startTimeSeconds=C)}_.hy(w.hostElement,"yt-navigate",{endpoint:d})}))}};
_.My.Object.defineProperties(O0.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r,Y,C;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(q=this.data)==null?void 0:(Z=q.thumbnail)==null?void 0:Z.sampledThumbnailColor,vibrantColorPalette:(w=this.data)==null?void 0:(r=w.thumbnail)==null?void 0:r.vibrantColorPalette,darkColorPalette:(Y=this.data)==null?void 0:(C=Y.thumbnail)==null?void 0:C.darkColorPalette,experimentEnabled:this.collections}}}});
var Hz=O0;Hz.prototype.onYtNavigate=Hz.prototype.onYtNavigate;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Hz.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.ma.YtEndpointBehavior),_.A("design:type",Object)],Hz.prototype,"ytEndpointBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Hz.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],Hz.prototype,"ytdDismissibleItemBehavior",void 0);
_.X([_.U(_.ay),_.A("design:type",Object)],Hz.prototype,"ytdLockupBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],Hz.prototype,"ytdReduxBehavior",void 0);_.X([_.F({selector:_.tL}),_.A("design:type",Object)],Hz.prototype,"isGridViewEnabled",void 0);_.X([_.I("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Hz.prototype,"watchFeedBigThumbs",null);
_.X([_.I("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.A("design:type",String),_.A("design:paramtypes",[])],Hz.prototype,"thumbnailWidth",null);_.X([_.F(),_.A("design:type",Object)],Hz.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Hz.prototype,"collections",void 0);_.X([_.I("data","collections"),_.A("design:type",Object),_.A("design:paramtypes",[])],Hz.prototype,"collectionStack",null);
_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Hz.prototype,"onYtNavigate",null);Hz=_.X([_.l({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Hz);
_.p(Hz,"ytd-compact-radio-renderer",function(){if(sbW!==void 0)return sbW;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return sbW=q},{mode:1});var It7;var cb1=function(){return _.N.apply(this,arguments)||this};
_.z(cb1,_.N);cb1.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
cb1.prototype.computeRendererStyle=function(q){return q.style?q.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
var Wz=cb1;_.X([_.F(),_.A("design:type",Object)],Wz.prototype,"data",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Wz.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Wz.prototype,"rendererBehavior",void 0);_.X([_.F({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.A("design:type",String)],Wz.prototype,"rendererStyle",void 0);
Wz=_.X([_.l({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Wz);
_.p(Wz,"ytd-compact-text-promo-renderer",function(){if(It7!==void 0)return It7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return It7=q},{mode:1});var MU7;var FoX=function(){var q=_.N.apply(this,arguments)||this;q.isShortsStyle=!1;return q};
_.z(FoX,_.N);_.e=FoX.prototype;_.e.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"}}}};
_.e.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.hy(this.hostElement,"yt-disable-lockup-interaction"):_.hy(this.hostElement,"yt-enable-lockup-interaction"))};
_.e.isMetaBlockEmpty=function(q){return!q||!q.longBylineText&&!q.shortBylineText&&!q.shortViewCountText&&!q.viewCountText};
_.e.computeHasOneLineTitle=function(q){return this.forceOneLineTitle||!(q==null||!q.buttons)};
_.e.computeDisableInteraction=function(){var q;return!((q=this.data)==null?0:q.navigationEndpoint)};
_.e.hasSingularTopStandaloneBadge=function(){var q;return!((q=this.data)==null||!q.topStandaloneBadge)};
_.My.Object.defineProperties(FoX.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("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 q;return this.hasSingularTopStandaloneBadge()?[(q=this.data)==null?void 0:q.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var q;return this.shouldShowTopBadges?((q=this.data)==null?void 0:q.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
var oM=FoX;oM.prototype.disableInteractionChanged=oM.prototype.disableInteractionChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],oM.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],oM.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.ay),_.A("design:type",Object)],oM.prototype,"ytdLockupBehavior",void 0);
_.X([_.U(_.LO),_.A("design:type",Object)],oM.prototype,"ytdReduxBehavior",void 0);_.X([_.F({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.A("design:type",Boolean)],oM.prototype,"metaBlockEmpty",void 0);_.X([_.F({selector:_.tL}),_.A("design:type",Object)],oM.prototype,"isGridViewEnabled",void 0);_.X([_.I("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],oM.prototype,"watchFeedBigThumbs",null);
_.X([_.I("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.A("design:type",String),_.A("design:paramtypes",[])],oM.prototype,"thumbnailWidth",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],oM.prototype,"isShortsStyle",void 0);_.X([_.F(),_.A("design:type",Object)],oM.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.A("design:type",Boolean)],oM.prototype,"hasOneLineTitle",void 0);
_.X([_.F(),_.A("design:type",Boolean)],oM.prototype,"hideThumbnail",void 0);_.X([_.F(),_.A("design:type",Boolean)],oM.prototype,"forceOneLineTitle",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.A("design:type",Boolean)],oM.prototype,"disableInteraction",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],oM.prototype,"musicMetadataVideoLockup",void 0);
_.X([_.M("disableInteraction"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oM.prototype,"disableInteractionChanged",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],oM.prototype,"shouldShowTopBadges",null);_.X([_.I("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],oM.prototype,"topBadges",null);
_.X([_.I("shouldShowTopBadges","data"),_.A("design:type",Array),_.A("design:paramtypes",[])],oM.prototype,"inlineMetadataBadges",null);_.X([_.I("shouldShowTopBadges"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],oM.prototype,"shouldShowBadgesBelowMetadata",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],oM.prototype,"compactTitleClass",null);oM=_.X([_.l({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],oM);
_.p(oM,"ytd-compact-video-renderer",function(){if(MU7!==void 0)return MU7;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return MU7=q},{mode:_.NT("kevlar_poly_si_batch_j067")?1:2});var NL9;_.He("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var ltJ=function(){return _.N.apply(this,arguments)||this};
_.z(ltJ,_.N);var uV=ltJ;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],uV.prototype,"data",void 0);uV=_.X([_.l({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],uV);
_.p(uV,"ytd-counterfactual-renderer",function(){if(NL9!==void 0)return NL9;var q=document.createElement("template");_.a(q,"\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");q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return NL9=q},{mode:1});var GQJ;var Lw=function(){var q=_.N.apply(this,arguments)||this;q.hidden=!1;return q};
_.z(Lw,_.N);Lw.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.t().resolve(_.ps).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
Lw.prototype.computeHidden=function(q){return!!q};
_.My.Object.defineProperties(Lw.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}}});
var Sc=Lw;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Sc.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.A("design:type",Object)],Sc.prototype,"hidden",void 0);_.X([_.I("data.label"),_.A("design:type",String),_.A("design:paramtypes",[])],Sc.prototype,"label",null);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Sc.prototype,"value",null);Sc=_.X([_.l({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Sc);
_.p(Sc,"ytd-dropdown-item-renderer",function(){if(GQJ!==void 0)return GQJ;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return GQJ=q},{mode:1});var pCJ;var XCv;var mJJ=function(){return _.N.apply(this,arguments)||this};
_.z(mJJ,_.N);var vz=mJJ;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],vz.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],vz.prototype,"data",void 0);_.X([_.F({computed:"getSimpleString(data.label)"}),_.A("design:type",String)],vz.prototype,"label",void 0);vz=_.X([_.l({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],vz);
_.p(vz,"ytd-navigation-dropdown-item-renderer",function(){if(XCv!==void 0)return XCv;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return XCv=q},{mode:1});var Abv=function(){var q=_.N.apply(this,arguments)||this;q.disabled=!1;q.value="";q.noLabelFloat=!1;q.noUnderline=!1;q.usePrimaryColor=!1;q.hasBackground=!1;q.verticalAlign="top";q.autosize=!1;q.minAutosizeWidth=100;q.autosizeFont="14px Roboto";return q};
_.z(Abv,_.N);_.e=Abv.prototype;_.e.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"}}}};
_.e.open=function(){this.inputEl.open()};
_.e.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.e.dataChanged=function(){this.reset()};
_.e.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("value-changed",this.value))};
_.e.stopPropagation=function(q){q.stopPropagation()};
_.e.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var q=this.canvas.getContext("2d");q&&(q.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(q.measureText(this.inputEl.value).width)+24)+"px")}};
_.e.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var q=0,Z=this.data.entries.length;q<Z;q++){var w=this.data.entries[q],r;for(r in w)if(w.hasOwnProperty(r)){var Y=w[r];if("isSelected"in Y&&Y.isSelected)return"stringValue"in Y?Y.stringValue||"":"int32Value"in Y?Y.int32Value||0:0}}return null};
_.e.updateValueFromBinding=function(q){this.value=q.detail.value};
_.My.Object.defineProperties(Abv.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 q=0,Z=this.data.entries.length;q<Z;q++){var w=this.data.entries[q],r;for(r in w)if(w.hasOwnProperty(r)){var Y=w[r];if("isSelected"in Y&&Y.isSelected&&"label"in Y)return this.ytRendererBehavior.getSimpleString(Y.label)}}return null}}});
var jc=Abv;jc.prototype.autoSizeLabel=jc.prototype.autoSizeLabel;jc.prototype.stopPropagation=jc.prototype.stopPropagation;jc.prototype.valueChangedForBinding=jc.prototype.valueChangedForBinding;jc.prototype.dataChanged=jc.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],jc.prototype,"ytRendererStamperBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],jc.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],jc.prototype,"disabled",void 0);_.X([_.F(),_.A("design:type",Object)],jc.prototype,"value",void 0);_.X([_.F(),_.A("design:type",Object)],jc.prototype,"noLabelFloat",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],jc.prototype,"noUnderline",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],jc.prototype,"theme",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],jc.prototype,"usePrimaryColor",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],jc.prototype,"hasBackground",void 0);_.X([_.F(),_.A("design:type",Object)],jc.prototype,"verticalAlign",void 0);_.X([_.F(),_.A("design:type",Object)],jc.prototype,"autosize",void 0);_.X([_.F(),_.A("design:type",Object)],jc.prototype,"minAutosizeWidth",void 0);_.X([_.F(),_.A("design:type",Object)],jc.prototype,"autosizeFont",void 0);
_.X([_.fo("#entries"),_.A("design:type",Object)],jc.prototype,"entries",void 0);_.X([_.fo("#input"),_.A("design:type",Object)],jc.prototype,"inputEl",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jc.prototype,"dataChanged",null);_.X([_.g3("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jc.prototype,"valueChangedForBinding",null);
_.X([_.m2("iron-overlay-opened"),_.m2("iron-overlay-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],jc.prototype,"stopPropagation",null);_.X([_.m2("iron-select"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jc.prototype,"autoSizeLabel",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],jc.prototype,"label",null);
jc=_.X([_.l({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],jc);
_.p(jc,"ytd-dropdown-renderer",function(){if(pCJ!==void 0)return pCJ;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return pCJ=q},{mode:1});var ft1;var tF=function(){var q=_.N.apply(this,arguments)||this;q.isConstrainedList=!1;return q};
_.z(tF,_.N);tF.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"}}}};
tF.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
tF.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
tF.prototype.computeViewAllHidden=function(q,Z){return q||!Z.viewAllEndpoint};
var RM=tF;RM.prototype.fillRestIfNoShowMore=RM.prototype.fillRestIfNoShowMore;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],RM.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.cj.YtLazyListBehavior),_.A("design:type",Object)],RM.prototype,"ytLazyListBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],RM.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],RM.prototype,"isConstrainedList",void 0);_.X([_.g3("data","canShowMore"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RM.prototype,"fillRestIfNoShowMore",null);RM=_.X([_.l({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],RM);
_.p(RM,"ytd-expanded-shelf-contents-renderer",function(){if(ft1!==void 0)return ft1;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ft1=q},{mode:_.NT("kevlar_poly_si_batch_j025")?1:2});var DJp;var hCX=function(){return _.N.apply(this,arguments)||this};
_.z(hCX,_.N);hCX.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}}}}}};
var bV=hCX;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],bV.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],bV.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],bV.prototype,"data",void 0);bV=_.X([_.l({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],bV);
_.p(bV,"ytd-feed-channel-filter-header-renderer",function(){if(DJp!==void 0)return DJp;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return DJp=q},{mode:1});var ybp;var iTX;var gW9;var qw9=function(){return _.N.apply(this,arguments)||this};
_.z(qw9,_.N);_.e=qw9.prototype;_.e.onClick=function(q){var Z,w=(Z=this.data)==null?void 0:Z.sectionEndpoint;!_.E1(_.E8(q),this.hostElement,["A".toString()])&&w&&_.hy(this.hostElement,"yt-navigate",{endpoint:w})};
_.e.computeHasSectionEndpoint=function(q){return(q==null?void 0:q.sectionEndpoint)!==void 0};
_.e.computeShowHeaderAsLink=function(q){return(q==null?void 0:q.header)!==void 0&&(q==null?void 0:q.sectionEndpoint)!==void 0};
_.e.computeShowSubheaderAsLink=function(q){return(q==null?void 0:q.subheader)!==void 0&&(q==null?void 0:q.sectionEndpoint)!==void 0&&(q==null?void 0:q.header)===void 0};
_.e.getHeaderAsLinkClass=function(q){var Z=[],w;(q==null?0:(w=q.headerIcon)==null?0:w.iconType)&&Z.push("header-link-active");return Z.join(" ")};
var JF=qw9;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],JF.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],JF.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],JF.prototype,"data",void 0);
_.X([_.F({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],JF.prototype,"hasSectionEndpoint",void 0);_.X([_.F({computed:"computeShowHeaderAsLink(data)"}),_.A("design:type",Boolean)],JF.prototype,"showHeaderAsLink",void 0);_.X([_.F({computed:"computeShowSubheaderAsLink(data)"}),_.A("design:type",Boolean)],JF.prototype,"showSubheaderAsLink",void 0);JF=_.X([_.l({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],JF);
_.p(JF,"ytd-medical-panel-section-renderer",function(){if(gW9!==void 0)return gW9;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return gW9=q},{mode:1});var Zm7=function(){var q=_.N.apply(this,arguments)||this;q.isExpanded=!1;q.roundedContainer=!0;q.skipRoundingTop=!1;q.toggleExpandableSection=function(){q.isExpanded=!q.isExpanded};
return q};
_.z(Zm7,_.N);
Zm7.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]]"}}}}}};
Zm7.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
var zc=Zm7;zc.prototype.dataChanged=zc.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],zc.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],zc.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],zc.prototype,"isExpanded",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],zc.prototype,"roundedContainer",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],zc.prototype,"skipRoundingTop",void 0);_.X([_.F(),_.A("design:type",Object)],zc.prototype,"toggleExpandableSection",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zc.prototype,"dataChanged",null);
zc=_.X([_.l({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],zc);
_.p(zc,"ytd-medical-panel-content-renderer",function(){if(iTX!==void 0)return iTX;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return iTX=q},{mode:1});_.He("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Bz=function(){var q=_.N.apply(this,arguments)||this;q.roundedContainer=!0;q.amsterdamEnabled=_.b("enable_desktop_amsterdam_info_panels");q.hasTitle=!1;q.linkIcon="OPEN_IN_NEW";q.isDismissed=!1;return q};
_.z(Bz,_.N);
Bz.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"}}}};
Bz.prototype.computeHasTitle=function(q){return!(q==null||!q.title)};
Bz.prototype.onClick=function(q){var Z,w=(Z=this.data)==null?void 0:Z.headerEndpoint;!_.E1(_.E8(q),this.hostElement,["BUTTON".toString()])&&w&&this.ytComponentBehavior.resolveCommand(w)};
_.My.Object.defineProperties(Bz.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 q;return((q=this.data)==null?void 0:q.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.data)==null?void 0:q.disableBottomDivider)||!((Z=this.data)==null?0:Z.title)}}});
var aM=Bz;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],aM.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],aM.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],aM.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],aM.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],aM.prototype,"roundedContainer",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],aM.prototype,"amsterdamEnabled",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.A("design:type",Object)],aM.prototype,"hasTitle",void 0);
_.X([_.F({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.I("data.background"),_.A("design:type",Object),_.A("design:paramtypes",[])],aM.prototype,"background",null);_.X([_.F({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.I("data.titleStyle"),_.A("design:type",Object),_.A("design:paramtypes",[])],aM.prototype,"titleStyle",null);
_.X([_.F({type:_.b("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.I("data.titleStyle"),_.A("design:type",Object),_.A("design:paramtypes",[])],aM.prototype,"showLinkIcon",null);_.X([_.F(),_.A("design:type",String)],aM.prototype,"linkIcon",void 0);_.X([_.F({type:_.b("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],aM.prototype,"hideDivider",null);
_.X([_.F({selectorArgs:["data.dismissStateEntityKey"],selector:function(q,Z){q=_.iI(q.entities,"dismissState",Z);return(q==null?void 0:q.isDismissed)||(q==null?void 0:q.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(q==null?void 0:q.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.A("design:type",Object)],aM.prototype,"isDismissed",void 0);aM=_.X([_.l({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],aM);
_.p(aM,"ytd-info-panel-container-renderer",function(){if(ybp!==void 0)return ybp;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ybp=q},{mode:1});var wlm;_.He("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var rGg=function(){var q=_.N.apply(this,arguments)||this;q.modernTypography=_.b("web_modern_typography");return q};
_.z(rGg,_.N);rGg.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
rGg.prototype.computeStyle=function(q){return q?q:""};
var nw=rGg;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],nw.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],nw.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.A("design:type",String)],nw.prototype,"titleStyle",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],nw.prototype,"modernTypography",void 0);nw=_.X([_.l({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],nw);
_.p(nw,"ytd-item-section-header-renderer",function(){if(wlm!==void 0)return wlm;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return wlm=q},{mode:1});var Yw7;var $_m,e99=function(){return $_m!==void 0?$_m:$_m=document.createElement("template")};
document.head.appendChild(e99().content);var CdD;_.QK=new _.F$("VOTING_ANIMATION_CONTROLLER_TOKEN");var d_m=_.xl(function(q){var Z=q.data;var w=_.Iw(),r=_.Iw();q=_.P(_.qo("VOTE_STATUS_NONE",void 0,"FVF7mc"));var Y=q.next().value,C=q.next().value,d=_.g6(p71,function(){var R;return(R=Z())==null?void 0:R.entityKey}),O=_.b("web_enable_voting_animation")||_.b("enable_music_web_cairo_voting_animation");
_.Ls(function(){var R;((R=Z().initialState)==null?0:R.status)&&C(Z().initialState.status)});
var H=function(){var R,B,n=(B=(R=Z().initialState)==null?void 0:R.votes)!=null?B:0,x;R=(x=Z().initialState)==null?void 0:x.status;return R==="VOTE_STATUS_UPVOTED"?n-1:R==="VOTE_STATUS_DOWNVOTED"?n+1:n},L=function(){return Y()==="VOTE_STATUS_UPVOTED"?H()+1:Y()==="VOTE_STATUS_DOWNVOTED"?H()-1:H()},S=function(R){var B=R?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
C(B);var n=L(),x=_.t().resolve(_.Gj(_.QK)),K=d();K&&(R&&(K==null?0:K.upvoteDefaultButtonOnTap)?_.Sp(K.upvoteDefaultButtonOnTap,{form:{element:w.value},disableClickTracking:!0}):(K==null?0:K.upvoteToggledButtonOnTap)&&_.Sp(K.upvoteToggledButtonOnTap,{form:{element:w.value},disableClickTracking:!0}));var k;R=(k=K==null?void 0:K.enableOptimisticReordering)!=null?k:Z().enableOptimisticReordering;O&&x&&Z().itemId&&R&&Pd1(x,Z().itemId,n,B)},v=function(R){var B=R?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
C(B);var n=L(),x=_.t().resolve(_.Gj(_.QK)),K=d();K&&(R&&(K==null?0:K.downvoteDefaultButtonOnTap)?_.Sp(K.downvoteDefaultButtonOnTap,{form:{element:r.value},disableClickTracking:!0}):(K==null?0:K.downvoteToggledButtonOnTap)&&_.Sp(K.downvoteToggledButtonOnTap,{form:{element:r.value},disableClickTracking:!0}));var k;R=(k=K==null?void 0:K.enableOptimisticReordering)!=null?k:Z().enableOptimisticReordering;O&&x&&Z().itemId&&R&&Pd1(x,Z().itemId,n,B)};
q={};q=_.GL("ytVotingViewModelVoteCount",(q.ytVotingViewModelVoteCountDisabled=function(){return Z().isDisabled},q));
return _.u("voting-view-model",{class:"ytVotingViewModelHost"},_.u("div",{el:w},_.u(_.Hx,{data:function(){var R=_.J(Z().upvoteButton,_.o5);return{toggleButtonViewModel:Object.assign({},R,{isToggled:Y()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(R){return _.u(_.uo,{data:R.data,
onToggle:S})}})),_.u("div",{class:q},function(){var R,B,n;
return Y()==="VOTE_STATUS_UPVOTED"?(R=Z().initialState)==null?void 0:R.compactVotesUpvoted:Y()==="VOTE_STATUS_DOWNVOTED"?(B=Z().initialState)==null?void 0:B.compactVotesDownvoted:(n=Z().initialState)==null?void 0:n.compactVotes}),_.u("div",{el:r},_.u(_.Hx,{data:function(){var R=_.J(Z().downvoteButton,_.o5);
return{toggleButtonViewModel:Object.assign({},R,{isToggled:Y()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(R){return _.u(_.uo,{data:R.data,
onToggle:v})}})))},"vb");_.xc(_.xl(function(q){var Z=q.data;return _.u("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.u("div",{class:_.GL("ytEngagementBarViewModelEngagementBarWrapper",q.className)},_.u(_.Hx,{data:function(){return Z().actions}},{votingViewModel:d_m})))},"wb"),"engagement-bar-view-model",{props:{data:_.zG,
className:_.zG}});var V02=function(){var q=_.N.apply(this,arguments)||this;q.amsterdamPostMvp=_.b("web_amsterdam_post_mvp_playlists");q.cairoCollabPlaylistPostMvp=_.b("web_collab_playlist_thumbnail_size");q.playlistVotingAnimationEnabled=_.b("web_enable_voting_animation");q.downloadProgress=0;q.transferState="TRANSFER_STATE_UNKNOWN";q.downloadState="DOWNLOAD_STATE_UNKNOWN";q.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";q.offlineVideoPolicyExpirationTimestamp=0;return q};
_.z(V02,_.N);_.e=V02.prototype;_.e.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"}}}};
_.e.canReorderChanged=function(){this.persistentDragHandle=_.b("kevlar_playlist_drag_handles")&&this.canReorder};
_.e.onDrag=function(){if(this.thumbnail){var q=_.E(this.thumbnail).querySelector("yt-image");q&&(q.shouldRenderLazy=!1)}};
_.e.onMenuOverlayChanged=function(q,Z){this.menuOpened=Z};
_.e.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.e.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.e.onContentsTap=function(q){var Z,w=(Z=this.data)==null?void 0:Z.serviceEndpoints;if(w&&w.length===1&&_.J(w[0],gPN)&&!_.E1(_.E8(q),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(w[0]);else{var r;(Z=(r=this.data)==null?void 0:r.navigationEndpoint)&&_.b("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?Omg(_.t().resolve(_.Tf),Z):(_.qk().playlistSuggestionsShelfActivation=
!0,_.Hmv(_.t().resolve(_.Tf),Z)):Z&&!_.E1(_.E8(q),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.b("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.hy(this.hostElement,"yt-navigate",{endpoint:Z}):this.ytComponentBehavior.resolveCommand(Z))}};
_.e.computeStyle=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.e.computeThumbnailWidth=function(q){return q==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.e.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=aZN(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))}};
_.e.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.e.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.e.dataChanged=function(){if(this.data){var q,Z,w,r=((q=this.downloadRenderData)==null?void 0:q.badges)&&((Z=this.downloadRenderData)==null?void 0:Z.badges)!==((w=this.data)==null?void 0:w.badges),Y,C,d;q=((Y=this.downloadRenderData)==null?void 0:Y.thumbnailOverlays)&&((C=this.downloadRenderData)==null?void 0:C.thumbnailOverlays)!==((d=this.data)==null?void 0:d.thumbnailOverlays);(!this.downloadRenderData||r||q)&&this.downloadStateChanged()}};
_.e.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var q,Z,w=(q=this.data.menu)==null?void 0:(Z=q.menuRenderer)==null?void 0:Z.items;if(w)for(q=_.P(w),Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,w=void 0,_.J((w=Z.menuServiceItemRenderer)==null?void 0:w.serviceEndpoint,_.SE)){var r=w=void 0,Y=void 0;Z=(w=Z)==null?void 0:(r=w.menuServiceItemRenderer)==null?void 0:(Y=r.serviceEndpoint)==null?void 0:Y.playlistEditEndpoint;Y=r=void 0;if(w=(r=Z)==null?void 0:(Y=r.actions)==null?void 0:
Y[0])r=void 0,w.setVideoId=(r=this.data)==null?void 0:r.setVideoId;Y=r=w=void 0;if(Z=(w=Z)==null?void 0:(r=w.clientActions)==null?void 0:(Y=r[0])==null?void 0:Y.playlistRemoveVideosAction)w=void 0,Z.setVideoIds=[(w=this.data)==null?void 0:w.setVideoId]}}};
_.My.Object.defineProperties(V02.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
var E0=V02;E0.prototype.setVideoIdChanged=E0.prototype.setVideoIdChanged;E0.prototype.dataChanged=E0.prototype.dataChanged;E0.prototype.downloadStateChanged=E0.prototype.downloadStateChanged;E0.prototype.onMenuOverlayChanged=E0.prototype.onMenuOverlayChanged;E0.prototype.canReorderChanged=E0.prototype.canReorderChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],E0.prototype,"ytdReduxBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],E0.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.ay),_.A("design:type",Object)],E0.prototype,"ytdLockupBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],E0.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],E0.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],E0.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E0.prototype,"amsterdamPostMvp",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],E0.prototype,"canReorder",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],E0.prototype,"menuOpened",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],E0.prototype,"handleIsHovered",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],E0.prototype,"persistentDragHandle",void 0);
_.X([_.F(),_.A("design:type",Object)],E0.prototype,"downloadRenderData",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],E0.prototype,"styleType",void 0);_.X([_.F({computed:"computeThumbnailWidth(data.style)"}),_.A("design:type",Number)],E0.prototype,"thumbnailWidth",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],E0.prototype,"isDownloads",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E0.prototype,"cairoCollabPlaylistPostMvp",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],E0.prototype,"playlistVotingAnimationEnabled",void 0);_.X([_.F({selector:J0,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],E0.prototype,"downloadProgress",void 0);_.X([_.F(),_.A("design:type",Number)],E0.prototype,"relativeDateReference",void 0);
_.X([_.F({selector:_.RZ,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],E0.prototype,"transferState",void 0);_.X([_.F({selector:hpI,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],E0.prototype,"downloadState",void 0);_.X([_.F({selector:sa2,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],E0.prototype,"offlinePolicyAction",void 0);_.X([_.F({selector:IK1,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],E0.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.X([_.F({selector:M1e,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],E0.prototype,"entityInfo",void 0);_.X([_.F({selector:_.jZ}),_.A("design:type",Boolean)],E0.prototype,"miniplayerIsActive",void 0);_.X([_.I("data"),_.A("design:type",String),_.A("design:paramtypes",[])],E0.prototype,"playlistVideoId",null);_.X([_.fo("#thumbnail"),_.A("design:type",Object)],E0.prototype,"thumbnail",void 0);
_.X([_.g3("canReorder"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E0.prototype,"canReorderChanged",null);_.X([_.m2("yt-menu-overlay-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Boolean]),_.A("design:returntype")],E0.prototype,"onMenuOverlayChanged",null);
_.X([_.g3("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E0.prototype,"downloadStateChanged",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E0.prototype,"dataChanged",null);
_.X([_.g3("data.setVideoId"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E0.prototype,"setVideoIdChanged",null);E0=_.X([_.l({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],E0);
_.p(E0,"ytd-playlist-video-renderer",function(){if(CdD!==void 0)return CdD;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);q.content.insertBefore(e99().content.cloneNode(!0),q.content.firstChild);return CdD=q},{mode:1});var WLW;var oUD=function(){return _.N.apply(this,arguments)||this};
_.z(oUD,_.N);var xR=oUD;_.X([_.F(),_.A("design:type",Object)],xR.prototype,"data",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],xR.prototype,"rendererBehavior",void 0);xR=_.X([_.l({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],xR);
_.p(xR,"ytd-premium-browse-footer-renderer",function(){if(WLW!==void 0)return WLW;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return WLW=q},{mode:1});var uU7;var LLg=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return q};
_.z(LLg,_.N);_.e=LLg.prototype;_.e.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.e.handleDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.e.computeHeaderLogoThumbnail=function(q,Z){if(q)return Z?q.darkLogo:q.lightLogo};
_.e.computeHeaderLogoHeight=function(q,Z){var w,r,Y;return(q=(w=this.computeHeaderLogoThumbnail(q,Z))==null?void 0:(r=w.thumbnails)==null?void 0:(Y=r[0])==null?void 0:Y.height)&&q%31===0?"31":"24"};
_.e.computeHeaderLogoMarginBottom=function(q,Z){return this.computeHeaderLogoHeight(q,Z)==="24"?"0":"-7"};
var Tc=LLg;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Tc.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Tc.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Tc.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],Tc.prototype,"isDarkTheme",void 0);_.X([_.F({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.A("design:type",Object)],Tc.prototype,"themeLogo",void 0);
_.X([_.F({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.A("design:type",String)],Tc.prototype,"logoHeight",void 0);_.X([_.F({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.A("design:type",String)],Tc.prototype,"logoMarginBottom",void 0);Tc=_.X([_.l({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Tc);
_.p(Tc,"ytd-primetime-promo-header-renderer",function(){if(uU7!==void 0)return uU7;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return uU7=q},{mode:1});var Sw7;_.mD(AeX);var g3O;g3O=_.Px({flexibleActionsViewModel:Zv7});_.U0=_.mq(ql9);_.mD(ql9);_.xc(_.U0,"yt-section-header-view-model",{props:{data:_.zG,className:_.zG,disableHorizontalPadding:_.zG,disableVerticalPadding:_.zG,forceSmallLayout:_.zG,useResponsiveLayout:_.zG,isOverlay:_.zG}});_.He("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var vUe=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return q};
_.z(vUe,_.N);_.e=vUe.prototype;_.e.attached=function(){this.requestElementsPerRow()};
_.e.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"}}}};
_.e.onDataChange=function(){var q=this;_.I_(this,function(){q.updateItemVisibility()})};
_.e.onUpdateElementsPerRowAction=function(q){q&&this.elementsPerRow!==q&&(this.elementsPerRow=q,this.updateItemVisibility())};
_.e.updateItemVisibility=function(){var q=this;this.data&&this.data.panels&&_.E(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(Z,w){Z.hidden=w>q.elementsPerRow-1})};
_.e.requestElementsPerRow=function(){_.hy(this.hostElement,"yt-request-elements-per-row")};
var kR=vUe;kR.prototype.onDataChange=kR.prototype.onDataChange;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],kR.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],kR.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],kR.prototype,"actionHandlerBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],kR.prototype,"data",void 0);_.X([_.F({value:3}),_.A("design:type",Number)],kR.prototype,"elementsPerRow",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kR.prototype,"onDataChange",null);kR=_.X([_.l({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],kR);
_.p(kR,"ytd-primetime-promo-renderer",function(){if(Sw7!==void 0)return Sw7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Sw7=q},{mode:1});var joK;var Kw=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return q};
_.z(Kw,_.N);Kw.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Kw.prototype.handleButtonRefreshAction=function(q){if(q=_.J(q,_.PQW))this.set("data.button",q.membershipButton),this.notifyPath("data.button")};
_.My.Object.defineProperties(Kw.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.data)==null?void 0:(Z=q.avatars)==null?void 0:Z.slice(0,8))||[]}}});
var s0=Kw;_.X([_.F(),_.A("design:type",Object)],s0.prototype,"data",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],s0.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],s0.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],s0.prototype,"rendererBehavior",void 0);_.X([_.I("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],s0.prototype,"avatars",null);
s0=_.X([_.l({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],s0);
_.p(s0,"ytd-recognition-shelf-renderer",function(){if(joK!==void 0)return joK;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return joK=q},{mode:1});var t0v;var R99;var bm7=function(){var q=_.N.apply(this,arguments)||this;q.modernButtons=_.b("web_modern_buttons");return q};
_.z(bm7,_.N);_.e=bm7.prototype;
_.e.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]]"}},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]]"}}}}}};
_.e.dataChanged=function(){this.collapsed=!0};
_.e.computeVisibleItems=function(q,Z){return q!==void 0&&q.items?Z?q.items.slice(0,this.data.collapsedItemCount):q.items:[]};
_.e.computeHideShowMore=function(q,Z,w){return q>=Z||!w};
_.e.computeHideShowAll=function(q,Z,w){return!(q&&Z)||w};
_.e.onMoreClick=function(){this.collapsed=!1};
_.My.Object.defineProperties(bm7.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.b("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
var IM=bm7;IM.prototype.dataChanged=IM.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],IM.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],IM.prototype,"isSearch",void 0);
_.X([_.F({computed:"computeVisibleItems(data,collapsed)"}),_.A("design:type",Array)],IM.prototype,"visibleItems",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],IM.prototype,"collapsed",void 0);_.X([_.F({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.A("design:type",Boolean)],IM.prototype,"hideShowMore",void 0);
_.X([_.F({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.A("design:type",Boolean)],IM.prototype,"hideShowAll",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],IM.prototype,"modernButtons",void 0);_.X([_.I("isSearch"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],IM.prototype,"typographyBump",null);
_.X([_.I("isSearch"),_.A("design:type",String),_.A("design:paramtypes",[])],IM.prototype,"thumbnailWidth",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],IM.prototype,"dataChanged",null);IM=_.X([_.l({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],IM);
_.p(IM,"ytd-vertical-list-renderer",function(){if(R99!==void 0)return R99;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return R99=q},{mode:1});var JGX=_.Fr(["#"]);_.He("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var z97=function(){var q=_.N.apply(this,arguments)||this;q.isConstrainedList=!1;q.modernTypography=_.b("web_modern_typography");return q};
_.z(z97,_.N);_.e=z97.prototype;
_.e.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"}}}};
_.e.computeThumbnailStyle=function(q){return q||""};
_.e.computePlaceAnnotationUnderTitle=function(){var q;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((q=this.data)==null?void 0:q.thumbnailStyle)||"")};
_.e.computeHrefWithDefault=function(q){return this.ytComponentBehavior.computeHref_(q)||_.UX(JGX)};
_.e.computeIsPromoShelf=function(q){var Z;return(q=q==null?void 0:(Z=q[0])==null?void 0:Z.metadataBadgeRenderer)?q.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.e.computePlaceBadgeBesideTitle=function(q){var Z;return(q==null?0:(Z=q[0])==null?0:Z.metadataBadgeRenderer)?!this.computeIsPromoShelf(q):!1};
_.e.computeMenuIcon=function(q){return this.computeIsPromoShelf(q)?"yt-icons:more_vert":"yt-icons:more"};
_.e.onDataChange=function(){var q,Z;((q=this.data)==null?0:(Z=q.content)==null?0:Z.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.e.onLockupRequested=function(q){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&q.detail&&q.detail.videoIds){for(var Z=this.data.content.gridRenderer.items,w=new Set,r=_.P(q.detail.videoIds),Y=r.next();!Y.done;Y=r.next())w.add(Y.value);q.detail.returnValue=Z.filter(function(C){return C.gridVideoRenderer&&C.gridVideoRenderer.videoId&&w.has(C.gridVideoRenderer.videoId)}).map(function(C){return C.gridVideoRenderer})}};
_.e.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
var cz=z97;cz.prototype.onLockupRequested=cz.prototype.onLockupRequested;cz.prototype.onDataChange=cz.prototype.onDataChange;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],cz.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],cz.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],cz.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.SQ),_.A("design:type",Object)],cz.prototype,"ironResizableBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],cz.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],cz.prototype,"isSearch",void 0);_.X([_.F(),_.A("design:type",Object)],cz.prototype,"isConstrainedList",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.b("kevlar_fluid_dismiss")}}),
_.A("design:type",Boolean)],cz.prototype,"enableFluidDismiss",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.A("design:type",String)],cz.prototype,"thumbnailStyle",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],cz.prototype,"modernTypography",void 0);_.X([_.F({computed:"computeMenuIcon(data.badges)"}),_.A("design:type",String)],cz.prototype,"menuIcon",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cz.prototype,"onDataChange",null);_.X([_.m2("yt-lockup-requested"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],cz.prototype,"onLockupRequested",null);cz=_.X([_.l({is:"ytd-shelf-renderer",disableElementRegistration:!0})],cz);
_.p(cz,"ytd-shelf-renderer",function(){if(t0v!==void 0)return t0v;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return t0v=q},{mode:1});var BCe;var aPK=function(){return _.N.apply(this,arguments)||this};
_.z(aPK,_.N);aPK.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.My.Object.defineProperties(aPK.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
var M5=aPK;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],M5.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],M5.prototype,"data",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],M5.prototype,"isPlaylist",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],M5.prototype,"isClipList",void 0);
_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],M5.prototype,"isPlaylistPageWithFilters",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],M5.prototype,"hasTitle",null);_.X([_.F(),_.I("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.A("design:type",Object),_.A("design:paramtypes",[])],M5.prototype,"isRightAligned",null);
M5=_.X([_.l({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],M5);
_.p(M5,"ytd-sort-filter-header-renderer",function(){if(BCe!==void 0)return BCe;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return BCe=q},{mode:1});var nUp;var FS=function(){return _.N.apply(this,arguments)||this};
_.z(FS,_.N);
FS.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]]"}}}}}};
FS.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.My.Object.defineProperties(FS.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.b("enable_creator_details_shelf_m2")){var q=[],Z;((Z=this.data)==null?0:Z.creatorVideosButton)&&q.push(this.data.creatorVideosButton);var w;((w=this.data)==null?0:w.creatorAboutButton)&&q.push(this.data.creatorAboutButton);Z=_.P(this.data.creatorCustomUrlButtons||[]);for(w=Z.next();!w.done;w=Z.next())q.push(w.value);return q}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.b("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
var N5=FS;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],N5.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.Mt.YtdHorizontalListBehavior),_.A("design:type",Object)],N5.prototype,"ytdHorizontalListBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],N5.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],N5.prototype,"engagementPanel",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],N5.prototype,"creatorCustomUrlButtons",null);_.X([_.F({reflectToAttribute:!0}),_.I("data","creatorCustomUrlButtons"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],N5.prototype,"showCreatorCustomUrlButtons",null);
_.X([_.I("showCreatorCustomUrlButtons"),_.A("design:type",Number),_.A("design:paramtypes",[])],N5.prototype,"channelAvatarSize",null);N5=_.X([_.l({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],N5);
_.p(N5,"ytd-video-description-infocards-section-renderer",function(){if(nUp!==void 0)return nUp;var q=document.createElement("template");_.a(q,'\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_">\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return nUp=q},{mode:_.NT("kevlar_poly_si_batch_j067")?1:2});var Qom;var EUv=function(){return _.N.apply(this,arguments)||this};
_.z(EUv,_.N);var lV=EUv;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],lV.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],lV.prototype,"data",void 0);_.X([_.F({computed:"computeIcon_(data.infoIcon)"}),_.A("design:type",Object)],lV.prototype,"infoIcon",void 0);
lV=_.X([_.l({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],lV);
_.p(lV,"ytd-eom-settings-disclaimer-renderer",function(){if(Qom!==void 0)return Qom;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Qom=q},{mode:1});var x_h;var TCW=function(){return _.N.apply(this,arguments)||this};
_.z(TCW,_.N);_.My.Object.defineProperties(TCW.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.suppressPaddingDisclaimer)}}});
var Gc=TCW;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Gc.prototype,"componentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Gc.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Gc.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Gc.prototype,"suppressPaddingDisclaimer",null);Gc=_.X([_.l({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],Gc);
_.p(Gc,"ytd-product-list-header-renderer",function(){if(x_h!==void 0)return x_h;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return x_h=q},{mode:1});var U_X;var kCX=function(){return _.N.apply(this,arguments)||this};
_.z(kCX,_.N);kCX.prototype.computeThumbnailStyle=function(q){if(q&&(q=_.oJ(q)))return"background-color:"+q+";"};
var pw=kCX;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],pw.prototype,"rendererBehaviors",void 0);_.X([_.F(),_.A("design:type",Object)],pw.prototype,"data",void 0);pw=_.X([_.l({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],pw);
_.p(pw,"ytd-hashtag-tile-renderer",function(){if(U_X!==void 0)return U_X;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return U_X=q},{mode:1});var KL1;var soJ=function(){return _.N.apply(this,arguments)||this};
_.z(soJ,_.N);soJ.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}}}}}};
var XS=soJ;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],XS.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],XS.prototype,"data",void 0);XS=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],XS);
_.p(XS,"ytd-sponsorships-alert-renderer",function(){if(KL1!==void 0)return KL1;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return KL1=q},{mode:1});var IPg;var cGm=function(){return _.N.apply(this,arguments)||this};
_.z(cGm,_.N);cGm.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.My.Object.defineProperties(cGm.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
var mR=cGm;_.X([_.U(_.vj),_.A("design:type",Object)],mR.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.ay),_.A("design:type",Object)],mR.prototype,"ytdLockupBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],mR.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);_.X([_.F({selector:_.tL}),_.A("design:type",Object)],mR.prototype,"isGridViewEnabled",void 0);
_.X([_.I("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],mR.prototype,"watchFeedBigThumbs",null);_.X([_.I("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.A("design:type",String),_.A("design:paramtypes",[])],mR.prototype,"thumbnailWidth",null);_.X([_.F(),_.A("design:type",Object)],mR.prototype,"data",void 0);mR=_.X([_.l({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],mR);
_.p(mR,"ytd-compact-movie-renderer",function(){if(IPg!==void 0)return IPg;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return IPg=q},{mode:1});var M0e;var FL2;var NC9=_.zj("HTML_DIR")==="rtl",lPh=function(){var q=_.N.apply(this,arguments)||this;q.engagementPanel=!1;q.maxLines=2;q.expandButtonOffset=0;q.showExpandButton=!1;q.isTruncated=!1;q.isExpanded=!1;q.currentSnippetType=2;q.alwaysShowExpandButton=!1;q.JSC$14120_lastWidth=NaN;q.observer=null;q.left=0;q.right=0;q.mid=0;q.longestSnippetLength=0;q.isFinalSnippet=!1;q.isFirstMutation=!1;q.isResetMutation=!1;q.OVERFLOW_THRESHOLD=5;return q};
_.z(lPh,_.N);_.e=lPh.prototype;_.e.onClick=function(q){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.E1(_.E8(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Z;if((Z=window.getSelection())==null||!Z.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.e.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.e.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.e.updateTextOnSnippetTypeChange=function(){_.b("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.e.setUpBinarySearch=function(q){q=q*this.maxLines/8;this.left=0;var Z,w;this.right=Math.min(q*2,(w=(Z=this.simpleText)==null?void 0:Z.length)!=null?w:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.e.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.e.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.bx(new _.df("AttributedSnippet is empty when the description is not empty",this.text))};
_.e.mutationCallback=function(){if(this.observer!=null){var q=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var Z=Math.floor(q*this.maxLines/8);this.setSnippetText(this.text,Z);Z!==0||this.attributedTextIsEmpty()||_.bx(new _.df("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;q=q*this.maxLines/8;this.left=0;var w;this.right=Math.min(q*2,(w=(Z=this.simpleText)==null?void 0:Z.length)!=null?w: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)}}};
_.e.mutationObserve=function(q){var Z=this;this.observer||(this.observer=new MutationObserver(function(){Z.mutationCallback()}));
this.observer.observe(q,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.e.attached=function(){var q=this;_.I_(this,function(){q.resize()})};
_.e.isExpandedChanged=function(){_.hy(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.e.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)};
_.e.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var q="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((NC9?"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",q);this.snippetContainer.style.setProperty("mask-image",
q)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(NC9?"right":"left",this.expandButtonOffset+"px")};
_.e.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.e.setSnippetText=function(q,Z){q||(q={});if(_.bm(q)){var w=lXz(q,Z);w.attachmentRuns||w.commandRuns||w.decorationRuns||w.styleRuns||w.alignment||w.lineBreakMode?this.attributedSnippetTextEl?(_.b("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=lXz(q,Z),this.attributedSnippetTextEl.headerRuns=NHT(Z,this.headerRuns)):this.attributedSnippetText={data:lXz(q,Z),headerRuns:NHT(Z,this.headerRuns)},this.currentSnippetType=0):_.bx(new _.df("Tried to set snippet text when HTML element was null",
q)):(this.plainSnippetText.textContent=jp(q.content||"",Z),this.currentSnippetType=2)}else{a:{w=ZQX(q,Z);if(w.runs){w=_.P(w.runs);for(var r=w.next();!r.done;r=w.next())if(r=r.value,r.bold||r.deemphasize||r.italics||r.strikethrough||r.textColor||r.navigationEndpoint||_.J(r,OL)){w=!0;break a}}w=!1}w?this.formattedSnippetText?(this.formattedSnippetText.text=ZQX(q,Z),this.currentSnippetType=1):_.bx(new _.df("Tried to set snippet text when HTML element was null",q)):(this.plainSnippetText.textContent=
jp(_.kO(q),Z),this.currentSnippetType=2)}};
_.e.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.e.attributedTextIsEmpty=function(){var q=this.text;if(!_.bm(q))return!0;var Z;return((Z=q.content)==null?void 0:Z.length)===0?!0:!1};
_.e.resize=function(q){if(this.snippetText){if(q===void 0?0:q)this.JSC$14120_lastWidth=NaN;var Z=this.hostElement.offsetWidth;if(Z!==this.JSC$14120_lastWidth&&!this.isExpanded)if(this.JSC$14120_lastWidth=Z,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;q=0;var w,r;Z=Math.min(Z*this.maxLines/8*2,(r=(w=this.simpleText)==null?void 0:w.length)!=null?r:0)-1;for(w=0;q<=Z;)r=Math.floor(q+(Z-q)/2),this.setSnippetText(this.text,r),this.isOverflowing()?Z=r-1:(q=r+1,w=r);this.setSnippetText(this.text,w);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.e.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.e.onExpandClick=function(){var q=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.b("inline_expander_reset_focus_killswitch")||_.I_(this,function(){var Z;((Z=_.t().resolve(_.Gj(_.er)))==null?0:Z.isKeyBoardInUse())&&_.KB(q.hostElement)});
_.hy(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.e.onCollapseClick=function(){this.collapse();_.hy(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.e.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.e.computeExpandButtonOffset=function(){var q=this.expandSizer;return q?NC9?q.offsetParent?q.offsetParent.offsetWidth-q.offsetWidth-q.offsetLeft:0:q.offsetLeft:0};
_.My.Object.defineProperties(lPh.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.bm(this.text)?this.text.content||"":_.kO(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 _.bm(this.text)?!0:this.text&&_.b("web_replace_formatted_with_attributed_string")&&PHj(this.text)?(this.text=_.V1(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}}});
var AF=lPh;AF.prototype.onTextChanged=AF.prototype.onTextChanged;AF.prototype.updateMaskAndExpandButtonOffset=AF.prototype.updateMaskAndExpandButtonOffset;AF.prototype.updateSnippetContainerMaxHeight=AF.prototype.updateSnippetContainerMaxHeight;AF.prototype.isExpandedChanged=AF.prototype.isExpandedChanged;AF.prototype.updateTextOnSnippetTypeChange=AF.prototype.updateTextOnSnippetTypeChange;AF.prototype.updateIsFormattedExpanded=AF.prototype.updateIsFormattedExpanded;
AF.prototype.updateIsAttributedExpanded=AF.prototype.updateIsAttributedExpanded;AF.prototype.onClick=AF.prototype.onClick;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],AF.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],AF.prototype,"text",void 0);_.X([_.F(),_.A("design:type",Array)],AF.prototype,"headerRuns",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],AF.prototype,"engagementPanel",void 0);
_.X([_.F(),_.A("design:type",Object)],AF.prototype,"maxLines",void 0);_.X([_.F(),_.A("design:type",String)],AF.prototype,"expandLabel",void 0);_.X([_.F(),_.A("design:type",String)],AF.prototype,"collapseLabel",void 0);_.X([_.F(),_.A("design:type",Object)],AF.prototype,"expandCommand",void 0);_.X([_.F(),_.A("design:type",Object)],AF.prototype,"expandButtonOffset",void 0);_.X([_.I("text"),_.A("design:type",String),_.A("design:paramtypes",[])],AF.prototype,"simpleText",null);
_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],AF.prototype,"onClick",null);_.X([_.I("text","isExpanded"),_.A("design:type",Object),_.A("design:paramtypes",[])],AF.prototype,"expandedText",null);_.X([_.I("headerRuns","isExpanded"),_.A("design:type",Object),_.A("design:paramtypes",[])],AF.prototype,"expandedHeaderRuns",null);
_.X([_.I("text"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AF.prototype,"hasAttributedStringText",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],AF.prototype,"showExpandButton",void 0);_.X([_.I("collapseLabel","isExpanded"),_.A("design:type",Object),_.A("design:paramtypes",[])],AF.prototype,"showCollapseButton",null);_.X([_.F(),_.A("design:type",Object)],AF.prototype,"isTruncated",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],AF.prototype,"isExpanded",void 0);_.X([_.F(),_.A("design:type",Boolean)],AF.prototype,"isAttributedExpanded",void 0);_.X([_.M("isExpanded","hasAttributedStringText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AF.prototype,"updateIsAttributedExpanded",null);_.X([_.F(),_.A("design:type",Boolean)],AF.prototype,"isFormattedExpanded",void 0);
_.X([_.M("isExpanded","hasAttributedStringText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AF.prototype,"updateIsFormattedExpanded",null);_.X([_.F(),_.A("design:type",Number)],AF.prototype,"currentSnippetType",void 0);_.X([_.I("currentSnippetType"),_.A("design:type",Object),_.A("design:paramtypes",[])],AF.prototype,"useAttributedSnippet",null);
_.X([_.I("currentSnippetType"),_.A("design:type",Object),_.A("design:paramtypes",[])],AF.prototype,"useFormattedSnippet",null);_.X([_.I("currentSnippetType"),_.A("design:type",Object),_.A("design:paramtypes",[])],AF.prototype,"usePlainSnippet",null);_.X([_.F(),_.A("design:type",Object)],AF.prototype,"alwaysShowExpandButton",void 0);_.X([_.M("currentSnippetType"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AF.prototype,"updateTextOnSnippetTypeChange",null);
_.X([_.F(),_.A("design:type",Object)],AF.prototype,"attributedSnippetText",void 0);_.X([_.fo("#snippet"),_.A("design:type",HTMLElement)],AF.prototype,"snippetContainer",void 0);_.X([_.fo("#snippet-text"),_.A("design:type",HTMLElement)],AF.prototype,"snippetText",void 0);_.X([_.fo("#plain-snippet-text"),_.A("design:type",HTMLElement)],AF.prototype,"plainSnippetText",void 0);_.X([_.fo("#formatted-snippet-text"),_.A("design:type",Object)],AF.prototype,"formattedSnippetText",void 0);
_.X([_.fo("#attributed-snippet-text"),_.A("design:type",Object)],AF.prototype,"attributedSnippetTextEl",void 0);_.X([_.fo("#expand"),_.A("design:type",HTMLElement)],AF.prototype,"expandButton",void 0);_.X([_.fo("#expand-sizer"),_.A("design:type",HTMLElement)],AF.prototype,"expandSizer",void 0);_.X([_.g3("isExpanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AF.prototype,"isExpandedChanged",null);
_.X([_.M("isExpanded","maxLines"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AF.prototype,"updateSnippetContainerMaxHeight",null);_.X([_.M("isTruncated","showExpandButton","expandButtonOffset"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AF.prototype,"updateMaskAndExpandButtonOffset",null);
_.X([_.g3("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AF.prototype,"onTextChanged",null);AF=_.X([_.l({is:"ytd-text-inline-expander",disableElementRegistration:!0})],AF);
_.p(AF,"ytd-text-inline-expander",function(){if(FL2===void 0){var q=document.createElement("template");_.a(q,'\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<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 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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);FL2=q}q=FL2;return q},{mode:2});var fw=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return q};
_.z(fw,_.N);fw.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
fw.prototype.handleUpdateDescriptionAction=function(q){if(q=_.J(q,_.yD9))if(q.attributedDescription)this.set("data.attributedDescriptionBodyText",q.attributedDescription);else if(q.description){var Z;((Z=this.data)==null?0:Z.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.V1(q.description)):this.set("data.descriptionBodyText",q.description)}};
_.My.Object.defineProperties(fw.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!((q=this.data)==null||!q.attributedDescriptionBodyText)||!((Z=this.data)==null||!Z.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null?0:q.collapsedLineCount){var Z;return(Z=this.data)==null?void 0:Z.collapsedLineCount}q=_.m6("web_watch_description_collapsed_default_lines",12);if(_.b("ww_desc_line_page_size_ks"))return q;Z=Math.round(_.r3().height*_.m6("web_watch_description_screen_height_percentage",.5)/20);return Math.max(Z,q)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return(w=(q=this.data)==null?void 0:q.descriptionBodyText)!=null?w:(Z=this.data)==null?void 0:Z.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.sourceAttributions}}});
var D4=fw;D4.prototype.panelContentVisibleChanged=D4.prototype.panelContentVisibleChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],D4.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],D4.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],D4.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],D4.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Boolean)],D4.prototype,"panelContentVisible",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],D4.prototype,"engagementPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],D4.prototype,"shortsPanel",void 0);_.X([_.fo("#inline-expander"),_.A("design:type",Object)],D4.prototype,"inlineExpander",void 0);
_.X([_.M("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],D4.prototype,"panelContentVisibleChanged",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],D4.prototype,"hasDescriptionText",null);_.X([_.I("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],D4.prototype,"collapsedLines",null);
_.X([_.I("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.A("design:type",Object),_.A("design:paramtypes",[])],D4.prototype,"descriptionText",null);_.X([_.I("data","data.headerRuns"),_.A("design:type",Object),_.A("design:paramtypes",[])],D4.prototype,"headerRuns",null);_.X([_.I("data","data.sourceAttributions"),_.A("design:type",Object),_.A("design:paramtypes",[])],D4.prototype,"sourceAttributions",null);
D4=_.X([_.l({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],D4);
_.p(D4,"ytd-expandable-video-description-body-renderer",function(){if(M0e!==void 0)return M0e;var q=document.createElement("template");_.a(q,'\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]]" 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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return M0e=q},{mode:_.NT("kevlar_poly_si_batch_j028")?1:2});var GCg;var pl7=_.xl(function(q){var Z=q.data;return _.u("factoid-renderer",{class:"ytwFactoidRendererHost"},_.u("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return Z().accessibilityText}},_.u("span",{class:"ytwFactoidRendererValue"},_.u(_.r6,{text:function(){return Z().value}})),_.u("span",{class:"ytwFactoidRendererLabel"},_.u(_.r6,{text:function(){return Z().label}}))))},"xb");_.xc(pl7,"factoid-renderer",{props:{data:_.zG}});_.xc(_.xl(function(q){var Z=q.data;return _.u("upload-time-factoid-renderer",null,_.u(_.Hx,{data:function(){return Z().factoid}},{factoidRenderer:pl7}))},"yb"),"upload-time-factoid-renderer",{props:{data:_.EL}});_.xc(_.xl(function(q){var Z=q.data;return _.u("view-count-factoid-renderer",null,_.u(_.Hx,{data:function(){return Z().factoid}},{factoidRenderer:pl7}))},"zb"),"view-count-factoid-renderer",{props:{data:_.EL}});var Xlp=function(){var q=_.N.apply(this,arguments)||this;q.shortsPanel=!1;q.engagementPanel=!1;q.watchWhileSdp=_.b("shorts_desktop_watch_while_sdp");return q};
_.z(Xlp,_.N);Xlp.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"}}}}};
_.My.Object.defineProperties(Xlp.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var q;return(q=this.data)==null?void 0:q.channel}}});
var hF=Xlp;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],hF.prototype,"componentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],hF.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],hF.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],hF.prototype,"shortsPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],hF.prototype,"engagementPanel",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],hF.prototype,"watchWhileSdp",void 0);_.X([_.I("shortsPanel","engagementPanel","data.channel"),_.A("design:type",Object),_.A("design:paramtypes",[])],hF.prototype,"showChannelInfo",null);hF=_.X([_.l({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],hF);
_.p(hF,"ytd-video-description-header-renderer",function(){if(GCg!==void 0)return GCg;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return GCg=q},{mode:1});var m_K;var AG7=function(){return _.N.apply(this,arguments)||this};
_.z(AG7,_.N);var yK=AG7;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],yK.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],yK.prototype,"noPadding",void 0);_.X([_.F(),_.A("design:type",Object)],yK.prototype,"data",void 0);yK=_.X([_.l({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],yK);
_.p(yK,"ytd-list-item-view-model",function(){if(m_K!==void 0)return m_K;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return m_K=q},{mode:1});var fPm;var D_p;var h9g;var yGh;var iV=function(){var q=_.N.apply(this,arguments)||this;q.adaptiveFullWidth=!1;q.modernButtons=_.b("web_modern_buttons");q.buttonOverrides={style:"call-to-action",type:"filled"};q.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return q};
_.z(iV,_.N);iV.prototype.handleSetTimestamp_=function(q){this.data&&this.data.shortUrl&&(_.E(this.hostElement).querySelector("#share-url").value=q.isSet?_.Ov(this.data.shortUrl,"t",q.timestamp):this.data.shortUrl)};
iV.prototype.handleSignalActionCopyShareUrl_=function(q,Z){(_.b("killswitch_copy_link_target_check")||_.E(this.hostElement).querySelector("#copy-button")===Z)&&this.copyUrlToClipboard()};
iV.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.E(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
iV.prototype.computeStyle_=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
var gO=iV;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],gO.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],gO.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.A("design:type",String)],gO.prototype,"rendererStyle",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gO.prototype,"adaptiveFullWidth",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gO.prototype,"modernButtons",void 0);_.X([_.F(),_.A("design:type",Object)],gO.prototype,"buttonOverrides",void 0);gO=_.X([_.dx({is:"yt-copy-link-renderer",disableElementRegistration:!0})],gO);
_.p(gO,"yt-copy-link-renderer",function(){if(yGh===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;h9g===void 0&&(h9g=document.createElement("template"));var r=h9g;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);yGh=q}q=yGh;return q},{mode:2});_.He("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var imW=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return q};
_.z(imW,_.N);_.e=imW.prototype;_.e.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.e.attached=function(){this.keyboardFocused=!1};
_.e.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var q=_.t().resolve(_.Gj(_.er));q&&(this.keyboardFocused=q.isKeyBoardInUse())}};
_.e.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.e.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}};
_.e.onChange_=function(){if(this.data){var q=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;q&&this.ytComponentBehavior.resolveCommand(q);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.e.handleUpdateToggleAction_=function(q){(q=_.J(q,tiv))&&this.data&&q.targetId==this.data.targetId&&this.set("data.toggled",q.toggled)};
_.e.toBoolean_=function(q){return!!q};
_.e.reset=function(){};
_.e.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("data-changed",this.data))};
_.e.updateDataToggledFromBinding=function(q){this.set("data.toggled",q.detail.value)};
var qw=imW;qw.prototype.dataChangedForBinding=qw.prototype.dataChangedForBinding;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],qw.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],qw.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],qw.prototype,"ytComponentBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],qw.prototype,"data",void 0);_.X([_.F({computed:"computeDescription_(data.*)"}),_.A("design:type",Object)],qw.prototype,"description_",void 0);_.X([_.F({value:function(){return!!_.t().resolve(_.Gj(_.er))&&_.b("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.A("design:type",Boolean)],qw.prototype,"useKeyboardFocused",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],qw.prototype,"keyboardFocused",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qw.prototype,"dataChangedForBinding",null);qw=_.X([_.dx({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],qw);
_.p(qw,"yt-toggle-form-field-renderer",function(){if(D_p===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;fPm===void 0&&(fPm=document.createElement("template"));var r=fPm;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);D_p=q}q=D_p;return q},{mode:2});var gUW;var q5e;var Zfp=function(){var q=_.N.apply(this,arguments)||this;q.isDarkTheme=!1;q.isSearch=!1;q.darkerDarkTheme=_.b("web_darker_dark_theme");q.noTopMargin=_.b("kevlar_watch_no_top_margin");q.maskFade=_.b("web_watch_chips_mask_fade");q.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 q};
_.z(Zfp,_.N);_.e=Zfp.prototype;_.e.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}}}}}};
_.e.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.e.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.e.dataChanged=function(){var q=this.getSelectedIndex();if(q>0)this.selected=q;else{this.selected=0;var Z,w;(Z=this.ytScrollableChipCloudBehavior)==null||(w=Z.reset)==null||w.call(Z)}};
_.e.getSelectedIndex=function(){var q;if((q=this.data)==null||!q.chips)return-1;q=-1;for(var Z,w=0;w<((Z=this.data)==null?void 0:Z.chips.length);w++){var r=void 0,Y=void 0;if((r=this.data)==null?0:(Y=r.chips[w].chipCloudChipRenderer)==null?0:Y.isSelected){q=w;break}}return q};
_.e.onResize=function(){var q=this.ytScrollableChipCloudBehavior;_.I_(q,q.setContainerWidthDiff);au(this.ytScrollableChipCloudBehavior)};
_.e.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.e.handleRelatedChipCommand=function(q,Z){q=this.JSC$14147_chipsSelector.indexOf(Z);q!==-1&&this.JSC$14147_chipsSelector.selectIndex(q)};
_.e.handleChipCloudChipSelectAction=function(q){q=this.JSC$14147_chipsSelector.indexOf(q);q>-1&&this.JSC$14147_chipsSelector.selectIndex(q)};
_.e.handleChipCloudChipDeselectAction=function(){var q=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14147_chipsSelector&&((q==null?0:q.continuationCommand)?_.qM(this.hostElement,[q]):(q==null?0:q.searchEndpoint)?this.ytComponentBehavior.resolveCommand(q):q&&_.ZC(this.hostElement,[q],this.hostElement),this.JSC$14147_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.e.updateSelectedFromBinding=function(q){this.selected=q.detail.value};
var ZX=Zfp;ZX.prototype.onResize=ZX.prototype.onResize;ZX.prototype.dataChanged=ZX.prototype.dataChanged;ZX.prototype.isSearchChanged=ZX.prototype.isSearchChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],ZX.prototype,"actionHandlerBehavior",void 0);
_.X([_.U(_.SQ),_.A("design:type",Object)],ZX.prototype,"ironResizableBehavior",void 0);_.X([_.U(),_.A("design:type",ne)],ZX.prototype,"ytScrollableChipCloudBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],ZX.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ZX.prototype,"data",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],ZX.prototype,"selected",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ZX.prototype,"isDarkTheme",void 0);_.X([_.F({value:160}),_.A("design:type",Number)],ZX.prototype,"scrollDistance",void 0);_.X([_.F(),_.A("design:type",Object)],ZX.prototype,"isSearch",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ZX.prototype,"darkerDarkTheme",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ZX.prototype,"noTopMargin",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ZX.prototype,"maskFade",void 0);_.X([_.fo("#chips"),_.A("design:type",Object)],ZX.prototype,"JSC$14147_chipsSelector",void 0);_.X([_.M("isSearch"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZX.prototype,"isSearchChanged",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZX.prototype,"dataChanged",null);
_.X([_.m2("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZX.prototype,"onResize",null);ZX=_.X([_.dx({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],ZX);
_.p(ZX,"yt-chip-cloud-renderer",function(){if(q5e===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;gUW===void 0&&(gUW=document.createElement("template"));var r=gUW;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);q5e=q}q=q5e;return q},{mode:2});var wA7,rRK=function(){return wA7!==void 0?wA7:wA7=document.createElement("template")};
document.head.appendChild(rRK().content);var Y51;var $Fg=document.head,ei9=$Fg.appendChild,CWK;if(Y51===void 0){var PWe=document.createElement("template");_.a(PWe,"");PWe.content.insertBefore(rRK().content.cloneNode(!0),PWe.content.firstChild);Y51=PWe}CWK=Y51;ei9.call($Fg,CWK.content);var dFD=_.xl(function(q){var Z=q.data;return _.u("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.u("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.u("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.u(_.PF,{cond:function(){return _.lo(Z().image)},
then:function(w){return _.u("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.u(_.aQ,{data:w,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.u("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.u(_.r6,{text:function(){return Z().title}})),_.u("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.u(_.r6,{text:function(){return Z().subtitle}})))),_.u(_.PF,{cond:function(){var w;
return(w=Z())==null?void 0:w.hasBottomDivider},
then:function(){return _.u("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Ab");var V7v=_.xl(function(q){var Z=q.data;return _.u("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.u("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.u(_.Hx,{data:function(){var w;return(w=Z().offerPlanDetailsItem)!=null?w:[]}},{offerPlanDetailsItemViewModel:function(w){return _.u("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.u(dFD,{data:w.data}))}})),_.u("div",null,_.u(_.PF,{cond:function(){return Z().hasBottomDivider},
then:function(){return _.u("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.u("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.u("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.u("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.u("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Bb");var Of9=_.xl(function(q){var Z=q.data;q=_.P(_.qo(!1,void 0,"SpEGQd"));var w=q.next().value,r=q.next().value,Y=_.fn(function(){r(!w());return!1}),C=function(){var d;
return(d=Z().offerPlanDetailsContainer)!=null?d:[]};
return _.u("lp-complex-offer-card-details-view-model",null,_.u("div",null,_.u(_.PF,{cond:function(){return w()},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.u("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":Y,"aria-expanded":w},_.u(_.r6,{text:function(){return Z().expandedTitle}})),_.u("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.u(_.Hx,{data:C},{offerPlanDetailsContainerViewModel:function(d){return _.u("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.u(V7v,{data:d.data}))}})),_.u("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.u(_.r6,{text:function(){return Z().legalText}})))},
else:function(){return _.u("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":Y,"aria-expanded":w},_.u(_.r6,{text:function(){return Z().collapsedTitle}}),_.u("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.u(_.q0,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Cb");var HfX=_.xl(function(q){var Z=q.data;return _.u("lp-complex-offer-card-option-view-model",null,_.u(_.PF,{cond:function(){return Z().primaryButton},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.u(_.Hx,{data:function(){return Z().primaryButton}},{buttonViewModel:function(w){return _.u(_.vx,{data:w.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}}))},"Db");var WY7=_.xl(function(q){var Z=q.data;var w=function(){var C;return((C=Z())==null?void 0:C.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
q={};var r={},Y={};return _.u("ytm-lp-complex-offer-card-view-model",null,_.u("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.u("div",{class:_.GL((q.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=w,q),"ytmLpComplexOfferCardViewModelCardContainer")},_.u(_.PF,{cond:function(){var C;return(C=Z())==null?void 0:C.bannerText},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.u("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.u(_.r6,{text:function(){return Z().bannerText}})))}}),_.u(_.PF,{cond:function(){return _.lo(Z().logo)},
then:function(C){var d={};return _.u("div",{class:_.GL((d.ytmLpComplexOfferCardViewModelLogoAlignLeft=w,d),"ytmLpComplexOfferCardViewModelLogo")},_.u(_.aQ,{data:C,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.u("div",{class:_.GL((r.ytmLpComplexOfferCardViewModelTitleAlignLeft=w,r),"ytmLpComplexOfferCardViewModelTitle")},_.u(_.r6,{text:function(){return Z().title}})),_.u(_.PF,{cond:function(){var C;
return(C=Z())==null?void 0:C.subtitle},
then:function(){var C={};return _.u("div",{class:_.GL((C.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=w,C),"ytmLpComplexOfferCardViewModelSubtitle")},_.u(_.r6,{text:function(){return Z().subtitle}}))}}),_.u(_.PF,{cond:function(){return Z().planPricingPrimary},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.u(_.r6,{text:function(){return Z().planPricingPrimary}}))}}),_.u(_.PF,{cond:function(){return Z().planPricingSecondary},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.u(_.r6,{text:function(){return Z().planPricingSecondary}}))}}),_.u(_.PF,{cond:function(){return Z().purchaseButton},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.u(_.Hx,{data:function(){return Z().purchaseButton}},{buttonViewModel:function(C){return _.u(_.vx,{data:C.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.u(_.PF,{cond:function(){var C;
return(C=Z())==null?void 0:C.offerOptions},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.u(_.Hx,{data:function(){return Z().offerOptions}},{lpComplexOfferCardOptionViewModel:HfX}))}}),_.u("div",{class:_.GL((Y.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=w,Y),"ytmLpComplexOfferCardViewModelLegalText")},_.u(_.r6,{text:function(){return Z().legalText}})),_.u(_.PF,{cond:function(){var C;
return(C=Z())==null?void 0:C.offerCardDetails},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.u(_.Hx,{data:function(){return Z().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:Of9}))}}))))},"Eb");var oug=_.xl(function(q){var Z=q.data;var w=function(){var d;return((d=Z())==null?void 0:d.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
q={};var r={},Y={},C={};return _.u("ytm-lp-complex-offer-card-section-view-model",null,_.u("div",{class:_.GL("ytmLpComplexOfferCardSectionViewModelHost")},_.u("div",{class:_.GL((q.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=w,q),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.u("div",{class:_.GL((r.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=w,r),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.u("h2",{class:_.GL((Y.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
w,Y),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.u(_.r6,{text:function(){return Z().title}}))),_.u(_.PF,{cond:function(){var d;
return(d=Z())==null?void 0:d.subtitle},
then:function(){var d={},O={};return _.u("div",{class:_.GL((d.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=w,d),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.u("div",{class:_.GL((O.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=w,O),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.u(_.r6,{text:function(){return Z().subtitle}})))}}),_.u("div",{class:_.GL((C.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=w,C),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.u(_.Hx,{data:function(){var d;
return(d=Z().offerPlans)!=null?d:[]}},{lpComplexOfferCardViewModel:function(d){return _.u("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.u(WY7,{data:d.data}))}})))))},"Fb");_.JQ=Gom.getInstance();var uLg=_.xl(function(q){return _.u("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":q.shouldAriaHideContent},_.u("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:q.questionId},_.u(_.r6,{text:q.question})))},"Gb"),LYg=_.xl(function(q){var Z=q.data;
var w=q.themeOverride;q=_.P(_.qo(!1,void 0,"ljTVPd"));var r=q.next().value,Y=q.next().value;q=_.fn(function(){Y(!r());return!1});
var C=function(){return r()?"EXPAND_LESS":"EXPAND_MORE"},d=("faq-container"+_.b2(_.JQ)).toString(),O="faq-question-and-answers-section-question"+_.b2(_.JQ),H={},L={};
return _.u("faq-entry-view-model-c3",null,_.u("div",{class:_.GL("yt-lp-faq-entry-view-model",(H["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return w==null?void 0:w().useDarkTheme},H))},_.u("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":q,role:"button","aria-expanded":r,"aria-labelledby":O.toString(),"tab-index":"0"},_.u(uLg,{question:function(){return Z().question},
questionId:O,shouldAriaHideContent:!0}),_.u(_.PF,{cond:function(){return r()!==void 0},
then:function(){return _.u("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.u(_.q0,{icon:C,ariaHidden:!0}),_.u("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.u("div",{class:_.GL("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(L["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!r()},L))},_.u("div",{id:d},_.u(_.dA,{each:function(){return Z().answers||[]}},function(S){return _.u("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.u(_.r6,{text:S}))})))))},"Hb");
LYg.idomCompat=!0;var S5g=_.xl(function(q){var Z=q.data;var w=q.themeOverride;q={};return _.u("lp-faq-section-view-model-c3",null,_.u("div",{class:_.GL("yt-lp-faq-section-view-model",(q["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return Z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},q["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(w==null||!w().useDarkTheme)},q))},_.u("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.u(_.PF,{cond:function(){return Z().header},
then:function(r){return _.u("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.u(_.r6,{text:r}))}}),_.u("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.u(_.Hx,{data:function(){return Z().faqs}},{faqEntryViewModel:function(r){return _.u(LYg,{data:r.data,
themeOverride:w})}})),_.u("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.u(_.dA,{each:function(){return Z().footers||[]}},function(r){return _.u(_.r6,{text:r})})),_.u(_.PF,{cond:function(){return Z().legal},
then:function(r){return _.u("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.u(_.r6,{text:r}))}}))))},"Ib");
S5g.idomCompat=!0;var vum=_.xl(function(q){var Z=q.data;var w=q.themeOverride;_.Ls(function(){var d=Z().gtmId;d&&_.Yb(d,_.zj("GL",""))});
var r={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var d,O,H;return(H=(d=Z().logo)==null?void 0:(O=d.accessibilityData)==null?void 0:O.label)!=null?H:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},Y=_.t().resolve(_.Gj(_.RQ)),C=function(){return Y&&Y()||(w==null?void 0:w().useDarkTheme)};
return _.u("lp-header-section-view-model",null,_.u("div",{class:function(){var d=Z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",O=Z().marginType==="LP_SECTION_MARGIN_TYPE_TOP",H=w==null?void 0:w().useDarkTheme,L=["lp-header-section-view-model"];d&&L.push("lp-header-section-view-model--ptc-layout-type");O&&L.push("lp-header-section-view-model__lp-header-section-margin");H&&L.push("lp-header-section-view-model--premium-force-dark-mode");return L.join(" ")}},_.u(_.PF,{cond:function(){return Z().logo},
then:function(){return _.u("div",null,_.u(_.PF,{cond:C,then:function(){return _.u(_.PF,{cond:function(){var d;return(d=Z().logo)==null?void 0:d.imageDark},
then:function(d){return _.u(_.aQ,Object.assign({},{data:d},r))}})},
else:function(){return _.u(_.PF,{cond:function(){var d;return(d=Z().logo)==null?void 0:d.imageLight},
then:function(d){return _.u(_.aQ,Object.assign({},{data:d},r))}})}}))}}),_.u(_.PF,{cond:function(){return Z().title},
then:function(d){return _.u("div",{class:"lp-header-section-view-model__lp-header-title"},_.u(_.r6,{text:d}))}}),_.u("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.u(_.PF,{cond:function(){return Z().subtitles},
then:function(d){return _.u(_.dA,{each:d},function(O){return _.u("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.u(_.r6,{text:O}))})}})),_.u(_.PF,{cond:function(){return Z().additionalInfo},
then:function(d){return _.u("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.u(_.r6,{text:d}))}}),_.u("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.u(_.PF,{cond:function(){return Z().primaryButton},
then:function(d){return _.u("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.u(_.Hx,{data:d},{buttonViewModel:_.vx}))}}),_.u(_.PF,{cond:function(){return Z().secondaryButton},
then:function(d){return _.u("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.u(_.Hx,{data:d},{buttonViewModel:_.vx}))}})),_.u(_.PF,{cond:function(){return Z().otherOffersInfo},
then:function(d){return _.u("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.u(_.r6,{text:d}))}}),_.u("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.u(_.PF,{cond:function(){return Z().billingInfo},
then:function(d){return _.u(_.dA,{each:d},function(O){return _.u("div",null,_.u(_.r6,{text:O}))})}}))))},"Jb");
vum.idomCompat=!0;var jG1=_.xl(function(q){var Z=q.data;var w=_.aA(q.themeOverride,{useDarkTheme:!1});q={};q=_.GL("ytm-lp-headline-section-view-model",(q["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return w().useDarkTheme},q));
return _.u("lp-headline-section-view-model",null,_.u("div",{class:q},_.u("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.u(_.r6,{text:function(){return Z().title}})),_.u(_.PF,{cond:function(){return Z().subtitle},
then:function(r){return _.u("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.u(_.r6,{text:r}))}})))},"Kb");var t7v=_.xl(function(q){var Z=q.data;var w=q.themeOverride;var r=_.t().resolve(_.Gj(_.RQ)),Y=function(){return r&&r()||(w==null?void 0:w().useDarkTheme)},C=function(){var L,S;
var v=Y()?(L=Z().textBackgroundImage)==null?void 0:L.imageDark:(S=Z().textBackgroundImage)==null?void 0:S.imageLight;return VIj((v==null?void 0:v.sources)||[])},d=function(){var L,S;
return Y()?(L=Z().featureImage)==null?void 0:L.imageDark:(S=Z().featureImage)==null?void 0:S.imageLight},O=function(){return Z().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},H=function(){var L,S;
return Y()?(L=Z().logo)==null?void 0:L.imageDark:(S=Z().logo)==null?void 0:S.imageLight};
return _.u("ytm-lp-large-feature-section-view-model",null,_.u("div",{class:function(){var L=Z().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",S=Z().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",v=(Z().index||0)%2===1,R=w==null?void 0:w().useDarkTheme,B=["yt-lp-large-feature-section-view-model"];L?B.push("yt-lp-large-feature-section-view-model--music-feature-type"):S?B.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):v||B.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
R&&B.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return B.join(" ")}},_.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.u(_.PF,{cond:d,
then:function(){return _.u(_.aQ,{data:function(){return d()},
alt:function(){var L,S,v;return(v=(L=Z().featureImage)==null?void 0:(S=L.accessibilityData)==null?void 0:S.label)!=null?v:""},
contentMode:O})}})),_.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var L;return((L=C())==null?0:L.url)?"background-image: url("+_.EX(C().url)+");":""}},_.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.u(_.PF,{cond:H,
then:function(){return _.u(_.aQ,{data:function(){return H()},
alt:function(){var L,S,v;return(v=(L=Z().logo)==null?void 0:(S=L.accessibilityData)==null?void 0:S.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"})}}),_.u(_.PF,{cond:function(){return Z().eyebrowText},
then:function(){return _.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.u(_.r6,{text:function(){return Z().eyebrowText}}))}}),_.u(_.PF,{cond:function(){return Z().title},
then:function(){return _.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.u(_.r6,{text:function(){return Z().title}}))}}),_.u(_.PF,{cond:function(){return Z().subtitles},
then:function(){return _.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.u(_.dA,{each:function(){return Z().subtitles||[]}},function(L){return _.u(_.r6,{text:L})}))}})))))},"Lb");
t7v.idomCompat=!0;var Ri2=_.xl(function(q){return _.u("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.u("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.u(_.q0,{icon:function(){var Z;return(Z=q.data())==null?void 0:Z.iconType},
className:function(){var Z;return((Z=q.data())==null?void 0:Z.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.u("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.u(_.r6,{text:function(){var Z;
return(Z=q.data())==null?void 0:Z.text}}))))},"Mb");var bfX=_.xl(function(q){q=_.n5(q,{config:void 0,themeOverride:void 0});var Z=q.data,w=q.config,r=q.themeOverride;q={};q=_.GL("ytm-lp-offer-card-option-view-model",(q["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var H;return(H=r())==null?void 0:H.useDarkTheme},q));
var Y=_.fn(function(){var H,L;(H=w())==null||(L=H.handleRadioButtonClick)==null||L.call(H,Z());return!1}),C=function(){var H;
return(H=w())==null?void 0:H.shouldDisplayRadioButton},d=_.fn(function(){if(C()){var H,L;
(H=w())==null||(L=H.handleRadioButtonClick)==null||L.call(H,Z())}return!1}),O=function(){var H;
return(H=Z().featureListItems)!=null?H:[]};
return _.u("ytm-lp-offer-card-option-view-model",null,_.u("div",{class:q,"on:click":d},_.u(_.PF,{cond:C,then:function(){return _.u("div",null,_.u("input",{type:"radio","on:click":Y,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var H;return!((H=w())==null||!H.isOptionSelected)}}))}}),_.u("div",null,_.u("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.u(_.r6,{text:function(){return Z().eyebrowText}})),_.u("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.u(_.r6,{text:function(){return Z().title}})),_.u("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.u(_.r6,{text:function(){return Z().subtitle}})),_.u(_.PF,{cond:function(){return O().length>0},
then:function(){return _.u("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.u(_.Hx,{data:O},{lpFeatureListItemViewModel:Ri2}))}}),_.u("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.u(_.r6,{text:function(){return Z().description}})))))},"Nb");
bfX.idomCompat=!0;var JRe=_.xl(function(q){var Z=q.data;var w=q.themeOverride;q=_.P(_.hE(function(){var C,d=(C=Z().offerOptions)==null?void 0:C[0];return _.J(d,n5D)||{}}));
var r=q.next().value,Y=q.next().value;q={};return _.u("ytm-lp-offer-card-view-model",null,_.u("div",{class:_.GL("ytm-lp-offer-card-view-model",(q["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(w==null||!w().useDarkTheme)},q))},_.u("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.u(_.PF,{cond:function(){return Z().titleIconType},
then:function(){return _.u("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.u(_.q0,{icon:function(){var C;return((C=Z().titleIconType)==null?void 0:C.toString())||""}}))}}),_.u("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.u(_.r6,{text:function(){return Z().title}})),_.u(_.Hx,{data:function(){return Z().titleBadge}},{badgeViewModel:function(C){return _.u("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.u(_.hO,{data:C.data}))}})),_.u("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.u(_.Hx,{data:function(){return Z().offerOptions}},{lpOfferCardOptionViewModel:function(C){var d=C.data;
return _.u(_.lS,null,_.u("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.u(bfX,{data:d,config:function(){var O;return{shouldDisplayRadioButton:(Z().offerOptions||[]).length>1,isOptionSelected:d().id===((O=r())==null?void 0:O.id),handleRadioButtonClick:function(H){return void Y(H)}}},
themeOverride:w}))}})),_.u("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.u(_.Hx,{data:function(){var C;
return(C=r())==null?void 0:C.purchaseButtonOverride}},{buttonViewModel:_.vx}))))},"Ob");
JRe.idomCompat=!0;var zih=_.xl(function(q){var Z=q.data;var w=q.themeOverride;q={};q=_.GL("ytm-lp-offer-card-section-view-model",(q["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var r;return w==null?void 0:(r=w())==null?void 0:r.useDarkTheme},q));
return _.u("ytm-lp-offer-card-section-view-model",null,_.u("div",{class:q},_.u(_.PF,{cond:function(){return Z().title!==void 0},
then:function(){return _.u("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.u("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.u(_.r6,{text:function(){return Z().title}})),_.u(_.PF,{cond:function(){return Z().subtitle},
then:function(){return _.u("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.u(_.r6,{text:function(){return Z().subtitle}}))}}))}}),_.u("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.u(_.Hx,{data:function(){return Z().offerCards}},{lpOfferCardViewModel:function(r){return _.u("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.u(JRe,{data:r.data,
themeOverride:w}))}})),_.u(_.PF,{cond:function(){return Z().footer},
then:function(){return _.u("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.u(_.r6,{text:function(){return Z().footer}}))}})))},"Pb");var BQp=_.xl(function(q){var Z=q.data;return _.u("lp-offer-table-cell-content-view-model",null,_.u("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.u(_.Oq,null,_.u(_.VV,{when:function(){return Z().title}},function(){return _.u(_.r6,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return Z().title}})}),_.u(_.VV,{when:function(){return Z().subTitle}},function(){return _.u(_.r6,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return Z().subTitle}})}),_.u(_.VV,{when:function(){return Z().featureDescription}},function(){return _.u(_.r6,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return Z().featureDescription}})}),_.u(_.VV,{when:function(){return Z().description}},function(){return _.u(_.r6,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return Z().description}})}),_.u(_.VV,{when:function(){return Z().iconType}},function(){return _.u("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.u(_.q0,{icon:function(){return Z().iconType.toString()}}))}),_.u(_.VV,{when:function(){return Z().purchaseButton}},function(){return _.u(_.Hx,{data:function(){return Z().purchaseButton}},{buttonViewModel:function(w){return _.u("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.u(_.vx,{data:w.data}))}})}),_.u(_.VV,{when:function(){return Z().note}},function(){return _.u(_.r6,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return Z().note}})}),_.u(_.VV,{when:function(){return Z().featureDetail}},function(){return _.u(_.r6,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return Z().featureDetail}})}),_.u(_.VV,{when:function(){return Z().badge}},function(){return _.u(_.Hx,{data:function(){return Z().badge}},{badgeViewModel:_.hO})}))))},"Qb");
BQp.idomCompat=!0;var arX=_.xl(function(q){var Z=q.data;return _.u("lp-offer-table-cell-view-model",null,_.u("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(Z().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;"}}},_.u(_.Hx,{data:function(){return Z().contents}},{lpOfferTableCellContentViewModel:BQp})))},
"Rb");
arX.idomCompat=!0;var nue=_.xl(function(q){var Z=q.data;var w=q.lpTableIsFirstRow;var r=q.lpTableIsLastRow;var Y=function(){return(w==null?0:w())?"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"},C=function(){return(w==null?0:w())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(r==null?0:r())?"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 _.u("ytm-lp-offer-table-row-view-model",null,_.u("div",{class:"yt-lp-offer-table-row-view-model"},_.u(_.Hx,{data:function(){return Z().rowHeaderCell}},{lpOfferTableCellViewModel:function(d){return _.u("div",{class:Y},_.u(arX,{data:d.data}))}}),_.u(_.Hx,{data:function(){return Z().contentCells}},{lpOfferTableCellViewModel:function(d){return _.u("div",{class:C},_.u(arX,{data:d.data}))}})))},"Sb");
nue.idomCompat=!0;var QG1=_.xl(function(q){var Z=q.data;var w=q.themeOverride;var r=_.t().resolve(_.Gj(_.RQ)),Y=function(){return _.J(Z().logo,aZX)||{}};
q={};return _.u("ytm-lp-offer-table-section-view-model",null,_.u("div",{class:"yt-lp-offer-table-view-model"},_.u(_.PF,{cond:function(){var C,d;return r&&r()||(w==null?0:w().useDarkTheme)?(C=Y())==null?void 0:C.imageDark:(d=Y())==null?void 0:d.imageLight},
then:function(C){return _.u(_.aQ,{data:C,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var d,O,H;return(H=(d=Y())==null?void 0:(O=d.accessibilityData)==null?void 0:O.label)!=null?H:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.u("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.u(_.r6,{text:function(){return Z().title}})),_.u("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.u(_.r6,{text:function(){return Z().subtitle}})),_.u(_.PF,{cond:function(){return Z().disclaimers},
then:function(C){return _.u("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.u(_.dA,{each:C},function(d){return _.u("div",null,_.u(_.r6,{text:d}))}))}}),_.u("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.u(_.Hx,{data:function(){return Z().rows}},{lpOfferTableRowViewModel:function(C,d){return _.u(nue,{data:C.data,
lpTableIsFirstRow:function(){return d()===0},
lpTableIsLastRow:function(){return d()===Z().rows.length-1}})}})),_.u("div",{class:_.GL((q["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return Z().hasFooterBackground},q))},_.u(_.PF,{cond:function(){return Z().footer},
then:function(){return _.u("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.u(_.r6,{text:function(){return Z().footer}}))}}),_.u(_.PF,{cond:function(){return Z().footerTitle},
then:function(){return _.u("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.u(_.r6,{text:function(){return Z().footerTitle}}))}}),_.u(_.PF,{cond:function(){return Z().footerDescription},
then:function(){return _.u("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.u(_.r6,{text:function(){return Z().footerDescription}}))}}))))},"Tb");
QG1.idomCompat=!0;var Eu9=_.xl(function(q){var Z=q.data;var w=q.themeOverride;var r=_.t().resolve(_.Gj(_.RQ)),Y=function(){var O;return w==null?void 0:(O=w())==null?void 0:O.useDarkTheme},C=function(){var O,H;
return r&&r()||Y()?(O=Z().image)==null?void 0:O.imageDark:(H=Z().image)==null?void 0:H.imageLight};
q={};q=_.GL("ytm-lp-small-feature-section-view-model",(q["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=Y,q));var d=function(){var O,H,L;return(L=(O=Z().image)==null?void 0:(H=O.accessibilityData)==null?void 0:H.label)!=null?L:""};
return _.u("ytm-lp-small-feature-section-view-model",{class:q},_.u(_.PF,{cond:function(){return C()&&!JeT},
then:function(){return _.u("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.u(_.aQ,{data:function(){return C()},
alt:d,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.u("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.u("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.u(_.PF,{cond:function(){return Z().title},
then:function(O){return _.u(_.r6,{text:O})}})),_.u("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.u(_.r6,{text:function(){return Z().description}}))))},"Ub");
Eu9.idomCompat=!0;var xFX=_.xl(function(q){var Z=q.data;var w=q.themeOverride;q={};return _.u("ytm-lp-small-feature-section-group-view-model",null,_.u("div",{class:_.GL("ytm-lp-small-feature-section-group-view-model",(q["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(w==null||!w().useDarkTheme)},q))},_.u("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.u(_.Hx,{data:function(){return Z().smallFeatures}},{lpSmallFeatureSectionViewModel:function(r){return _.u("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.u(Eu9,{data:r.data,
themeOverride:w}))}}))))},"Vb");
xFX.idomCompat=!0;_.xc(_.xl(function(q){var Z=q.data;var w=function(){return Z().forcedTheme==="USER_INTERFACE_THEME_DARK"},r=function(){return Z().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},Y=function(){var d="",O,H;
var L=_.t().resolve(_.Gj(_.RQ));L=w()||(L==null?0:L())?(O=Z().themedImageViewModel)==null?void 0:O.imageDark:(H=Z().themedImageViewModel)==null?void 0:H.imageLight;(O=VIj((L==null?void 0:L.sources)||[]))&&O.url&&(d=r()?"background-image: linear-gradient(to bottom, transparent, "+(Z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.EX(O.url)+");":"background-image: url("+_.EX(O.url)+");");return d},C=function(){return{useDarkTheme:w()}};
q={};return _.u("yt-section-group-view-model",null,_.u("div",{class:_.GL("yt-lp-section-group-view-model",(q["yt-lp-section-group-view-model--premium-force-dark-mode"]=w,q["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return Z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},q))},_.u(_.PF,{cond:function(){return Y().length},
then:function(){var d={};return _.u("div",{class:_.GL("yt-lp-section-group-view-model__bg-image",(d["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=r,d)),style:Y})}}),_.u("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.u(_.Hx,{data:function(){return Z().sections}},{lpFaqSectionViewModel:function(d){return _.u(S5g,{data:d.data,
themeOverride:C})},
lpHeaderSectionViewModel:function(d){return _.u(vum,{data:d.data,themeOverride:C})},
lpHeadlineSectionViewModel:function(d){return _.u(jG1,{data:d.data,themeOverride:C})},
lpLargeFeatureSectionViewModel:function(d){return _.u(t7v,{data:d.data,themeOverride:C})},
lpOfferCardSectionViewModel:function(d){return _.u(zih,{data:d.data,themeOverride:C})},
lpComplexOfferCardSectionViewModel:function(d){return _.u(oug,{data:d.data})},
lpOfferTableSectionViewModel:function(d){return _.u(QG1,{data:d.data,themeOverride:C})},
lpSmallFeatureSectionGroupViewModel:function(d){return _.u(xFX,{data:d.data,themeOverride:C})}}))))},"Wb"),"yt-section-group-view-model",{props:{data:_.zG}});var Yl2=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.TQm=_.xl(function(q){function Z(){if(Yl2.has(q.data().displayType)){var L=!r(),S;if((S=q.disableDeselection)==null||!S.call(q)||L){q.data().selected=L;S=Object.assign({},d(),{selected:L});O(S);var v;(v=q.callback)==null||v.call(q,S,L)}}}
var w=_.Iw(),r=function(){var L,S;return!!(((L=q.selected)==null?void 0:L.call(q))!==void 0?(S=q.selected)==null?0:S.call(q):d().selected)},Y=_.P(_.hE(q.data)),C=Y.next().value;
Y=Y.next().value;var d=C,O=Y,H=_.g6(rv9,function(){return q.data().chipEntityKey||""});
return _.u("chip-view-model",{class:"ytChipViewModelHost",el:w},_.u(S_1,{data:function(){var L,S=Object.assign({},d(),{selected:r()}),v=H(),R=(L=q.disableDeselection)==null?void 0:L.call(q);a:switch(S.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":L=1;break a;default:L=0}return{text:(v==null?void 0:v.text)||S.text,state:S.disabled?1:S.selected?0:2,type:L,onTap:$iN(S,w,Z,R),accessibilityLabel:S.accessibilityLabel||S.text}}}))},"Xb");
_.TQm.idomCompat={callbacks:{callback:!0}};_.xc(_.xl(function(q){var Z=_.g6(w4z,function(){var d;return(d=q.data())==null?void 0:d.chipBarStateEntityKey}),w=function(){return q.data().disableDeselection},r=_.P(_.hE(function(){var d;
if(((d=Z())==null?void 0:d.selectedIndex)!=void 0)return Z().selectedIndex;var O,H;d=_.P(((O=q.data())==null?void 0:(H=O.chips)==null?void 0:H.entries())||[]);for(O=d.next();!O.done;O=d.next()){O=_.P(O.value);H=O.next().value;O=O.next().value;var L=void 0;if((L=_.J(O,_.zg))==null?0:L.selected)return H}return-1})),Y=r.next().value,C=r.next().value;
return _.u("chip-bar-view-model",{class:_.GL("ytChipBarViewModelHost",q.className),role:"tablist"},_.u(_.Hx,{data:function(){return q.data().chips}},{chipViewModel:function(d,O){return _.u("div",{class:"ytChipBarViewModelChipWrapper"},_.u(_.TQm,{data:d.data,
selected:function(){return O()===Y()},
callback:function(H,L){H=!!L;L=O();C(H?L:-1);var S,v=(S=q.data())==null?void 0:S.chipBarStateEntityKey;v&&H&&_.Bp(_.wp("chipBarStateEntity",v,{key:v,selectedIndex:L}))},
disableDeselection:q.disableDeselection||w}))}}))},"Yb"),"chip-bar-view-model",{props:{data:_.EL,
className:_.EL,disableDeselection:_.EL}});var tQ=new Map,je=new Map,PzI=0,Rg;var uI9=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],vHe={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var UF7,knW;UF7=function(q){return function(Z){return function(){return String(Z())+q}}};
_.wH=UF7("px");knW=UF7("s");var sGK=_.xl(function(q){function Z(f){return function(){var eO=B().numItemsPerGridRow,g=f()*eO;eO=g+eO;var H6,nX;return(nX=(H6=r().contents)==null?void 0:H6.slice(g,eO))!=null?nX:[]}}
var w=_.n5(q,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),r=w.data,Y=w.layoutContainerWidth,C=w.shouldUseOwnContainerSize,d=w.marginSettings;w=_.P(_.qo(!0,void 0,"qgr2Je"));var O=w.next().value,H=w.next().value,L=function(){var f,eO=(f=_.J(r().showMoreButton,_.Wx))==null?void 0:f.trackingParams;eO&&_.hA(_.iy(),eO);H(!1)},S=function(){var f,eO=(f=_.J(r().showLessButton,_.Wx))==null?void 0:f.trackingParams;
eO&&_.hA(_.iy(),eO);H(!0)};
w=_.Iw();var v=tw8(w),R=function(){var f;return(f=r().contentAspectRatio)!=null?f:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},B=_.$6(function(){var f=_.F_({containerWidth:C()&&v.width()>0?v.width()||Y():Y(),
sizing:"EXTRA_COMPACT",marginSettings:d(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:f.maxContainerWidth,numItemsPerGridRow:f.numItems,contentPadding:C()?f.margin:f.contentMargin,itemWidth:f.itemWidth,itemMargin:f.gutter/2}},void 0,"pqVdjc"),n=function(){if(r().enableVerticalExpansion){if(O())return 1;
var f,eO,g=(eO=(f=r().contents)==null?void 0:f.length)!=null?eO:0;return Math.ceil(g/B().numItemsPerGridRow)}return B().numItemsPerGridRow<=2?2:1},x=function(){return r().enableVerticalExpansion&&r().showLessButton&&!O()&&n()>1},K=function(){var f,eO;
return r().enableVerticalExpansion&&r().showMoreButton&&O()&&((eO=(f=r().contents)==null?void 0:f.length)!=null?eO:0)>B().numItemsPerGridRow},k=function(){return!x()},G=function(){return!K()},rz={};
return _.u("grid-shelf-view-model",{class:_.GL("ytGridShelfViewModelHost",q.className,(rz.ytGridShelfViewModelHostHasBottomButton=function(){return x()||K()},rz)),
el:w,style:_.y1({"margin-left":(0,_.wH)(function(){return B().contentPadding}),
"margin-right":(0,_.wH)(function(){return B().contentPadding})})},_.u(_.PF,{cond:function(){return _.J(r().header,FMp)},
then:function(f){return _.u(_.U0,{data:f,disableHorizontalPadding:!0})}}),_.u("div",null,_.u(_.dA,{each:function(){return Array(n())}},function(f,eO){return _.u(KYX,{className:q.className,
items:Z(eO),responsiveGridShelfLayout:B,contentAspectRatio:R})})),_.u("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.u(_.Hx,{data:function(){return r().showMoreButton}},{buttonViewModel:function(f){return _.u("div",{hidden:G},_.u(_.vx,{data:f.data,
onClick:L}))}}),_.u(_.Hx,{data:function(){return r().showLessButton}},{buttonViewModel:function(f){return _.u("div",{hidden:k},_.u(_.vx,{data:f.data,
onClick:S}))}})))},"dc");
sGK.idomCompat=!0;var KYX=_.xl(function(q){var Z=q.items;var w=q.responsiveGridShelfLayout;var r=q.contentAspectRatio;q=q.className;var Y=_.Iw();Cz6(Y,function(){a:{var d=Y.value;for(var O=Z(),H=[],L=0;L<O.length;L++){var S=_.J(O[L],kgJ);if(!S||S==null||!S.inlinePlayerData){d=null;break a}var v=d.children.item(L);if(!v){d=null;break a}H.push({thumbnailElement:v,videoData:S})}d={gridVideoPreviewData:{gridItems:H}}}return d});
var C=(0,_.wH)(function(){return-w().itemMargin});
return _.u("div",{el:Y,class:_.GL("ytGridShelfViewModelGridShelfRow",q),style:_.y1({"margin-left":C,"margin-right":C})},_.u(_.Hx,{data:Z,replacementWrapper:function(d){return _.u(IrJ,{responsiveGridShelfLayout:w},d)}},{shortsLockupViewModel:function(d){return _.u(IrJ,{responsiveGridShelfLayout:w},_.u(IHK,{data:d.data,
aspectRatio:function(){return r()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"ec"),IrJ=_.xl(function(q){return _.u("div",{style:_.y1({width:(0,_.wH)(function(){return q.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+q.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},q.children)},"fc");_.xc(sGK,"grid-shelf-view-model",{props:{data:_.zG,layoutContainerWidth:_.zG,shouldUseOwnContainerSize:_.zG,marginSettings:_.zG,className:_.zG}});_.xc(_.xl(function(q){var Z=_.P(_.qo(!1,void 0,"YYtxR")),w=Z.next().value,r=Z.next().value;Z={};return _.u("yt-alert-banner-view-model",{class:_.GL("ytAlertBannerViewModelHost",function(){var Y;a:switch((Y=q.data())==null?void 0:Y.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":Y="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":Y="ytAlertBannerViewModelWarning";break a;default:Y="ytAlertBannerViewModelInformational"}return Y},(Z.ytAlertBannerViewModelDismissed=w,Z.ytAlertBannerViewModelFullbleed=
q.fullbleed,Z.ytAlertBannerViewModelNarrow=q.narrow,Z.ytAlertBannerViewModelIsInRichGrid=q.isInRichGrid,Z))},_.u(_.PF,{cond:function(){var Y;
return!((Y=q.data())==null?0:Y.hideIcon)},
then:function(){return _.u("div",{class:"ytAlertBannerViewModelIcon"},_.u(_.q0,{icon:function(){return"info_circle"}}))}}),_.u("div",{class:"ytAlertBannerViewModelOuterContainer"},_.u("div",{class:"ytAlertBannerViewModelContainer"},_.u("div",{class:"ytAlertBannerViewModelContent"},_.u("div",{class:"ytAlertBannerViewModelHeading"},_.u(_.r6,{text:function(){var Y;
return(Y=q.data())==null?void 0:Y.heading}})),_.u("div",{class:"ytAlertBannerViewModelBody"},_.u(_.r6,{text:function(){var Y;
return(Y=q.data())==null?void 0:Y.body}})))),_.u(_.Hx,{data:function(){var Y;
return(Y=q.data())==null?void 0:Y.actionButton}},{buttonViewModel:function(Y){return _.u(_.vx,{data:Y.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.u(_.Hx,{data:function(){var Y;
return(Y=q.data())==null?void 0:Y.dismissButton}},{buttonViewModel:function(Y){return _.u(_.vx,{data:Y.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var C;((C=q.data())==null?0:C.disableLocalDismissBehavior)||r(!0)}})}}))},"gc"),"yt-alert-banner-view-model",{props:{data:_.zG,
fullbleed:_.zG,narrow:_.zG,isInRichGrid:_.zG}});var Rwj;Rwj=_.Px({chipViewModel:_.TQm,buttonViewModel:_.vx});_.cRJ=_.mq(bQj,{callbacks:{callback:!0}});_.mD(bQj);_.xc(_.cRJ,"chips-shelf-view-model",{props:{data:_.zG,callback:_.EL,enableSingleChipSelection:_.zG,disableChipsScrollAnimation:_.zG}});var M79=_.xl(function(q){q=_.n5(q,{disabled:!1});var Z=q.active,w=q.disabled;q={};q=_.GL("ytSwitchShapeTrack",(q.ytSwitchShapeTrackActive=function(){return Z()},q.ytSwitchShapeTrackDisabled=function(){return w()},q));
var r={};r=_.GL("ytSwitchShapeKnob",(r.ytSwitchShapeKnobActive=function(){return Z()},r));
return _.u("switch-shape",{class:"ytSwitchShapeHost"},_.u("div",{class:q}),_.u("div",{class:r}))},"hc");var FYh=_.xl(function(q){var Z=_.n5(q,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),w=Z.data;q=Z.className;var r=Z.handleOnTapEventInParent,Y=Z.parentActive;Z=_.P(_.hE(function(){var v;return(v=Y())!=null?v:w().switchedOnByDefault||!1}));
var C=Z.next().value,d=Z.next().value,O=function(){return w().isDisabled},H=_.Iw();
Z=_.fn(function(v){return v.key==="Enter"?(v.preventDefault(),H.value.click(),!1):!0});
var L=_.fn(function(v){if(w().handleOnTapEventInParent||r())return!0;if(O())return!1;zw8(w(),C(),v);d(!C());return!1}),S={};
S=_.GL("ytSwitchButtonViewModelButton",(S.ytSwitchButtonViewModelTappable=function(){return!O()},S));
return _.u("switch-button-view-model",{class:_.GL("ytSwitchButtonViewModelHost",q)},_.u("button",{el:H,class:S,"on:click":L,"on:keydown":Z,"aria-label":function(){return C()?w().a11yLabelSwitchedOn:w().a11yLabelSwitchedOff},
"aria-pressed":C,"aria-disabled":O},_.u(M79,{active:C,disabled:O})))},"ic");_.mD(QBz);_.NQK=_.mq(xi8,{callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}});_.mD(xi8);var TRX;TRX=_.Px({buttonViewModel:_.vx,switchButtonViewModel:FYh,avatarViewModel:_.vQ,accountLinkButtonViewModel:rNN,subscribeButtonViewModel:_.hQX,collectionThumbnailViewModel:Rzp,toggleButtonViewModel:_.uo});_.rH=_.mq(Kse,{callbacks:{onTap:!0}});_.mD(Kse);_.lrg=_.xl(function(q){var Z=q.data;var w=q.onTap;var r=q.onSwitch;var Y=q.overrideDisabled;q=_.P(_.hE(function(){var S;return((S=a32(L()))==null?void 0:S.switchedOnByDefault)||!1}));
var C=q.next().value,d=q.next().value;q=_.P(_.qo(!1,void 0,"Ri8Twb"));var O=q.next().value,H=q.next().value,L=function(){var S;if(!(S=Z().switchButton)){var v=Z();S=Y==null?void 0:Y();v={switchOnCommand:v.switchOnCommand,switchOffCommand:v.switchOffCommand,switchedOnByDefault:v.switchedOnByDefault,isDisabled:v.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:v.a11yLabelSwitchedOn,a11yLabelSwitchedOff:v.a11yLabelSwitchedOff};S!==void 0&&(v.isDisabled=S);S={switchButtonViewModel:v}}return S};
return _.u("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.u(_.rH,{data:function(){return{title:Z().title,subtitle:Z().attributedSubtitle,leadingImage:Z().leadingImage,leadingAccessory:Z().leadingAccessory,isDisabled:Z().isDisabled}},
onTap:function(S){var v=a32(L());!v||v.isDisabled||Z().ignoreTapUntilCommandCompletes&&O()||(w==null||w(S),zw8(v,C(),S,Z().ignoreTapUntilCommandCompletes,H),d(!C()),r==null||r(C()))},
trailingAccessory:_.u(_.Hx,{data:L},{switchButtonViewModel:function(S){return _.u(FYh,{data:S.data,parentActive:C,handleOnTapEventInParent:!!w})}})}))},"jc");var Gnp=_.dT("DOWNLOAD",{},"Download"),pA9=_.dT("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),XAm=_.dT("RETRY",{},"Retry"),mFW=_.dT("PAUSE_DOWNLOADING",{},"Pause downloading"),ARm=_.dT("RESUME_DOWNLOAD",{},"Resume download"),sBN={text:Gnp,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},zs={text:pA9,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},Mw9={text:XAm,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
I3z={text:mFW,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},cv9={text:ARm,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var frh=_.xl(function(q){var Z=function(){var O=q.data();O=_.a5(O.rendererContext);var H;return(H=_.J(O,_.h7))==null?void 0:H.videoId},w=_.ok(function(O){var H=Z(),L=l31(q.data());
return H?_.RZ(O,H):L?_.bF(O,L):"TRANSFER_STATE_UNKNOWN"}),r=_.g6(_.Dk6,Z),Y=_.ok(function(O){return _.GBe(O,Z(),l31(q.data()))}),C=function(){return NRT(w(),r(),_.a5(q.data().rendererContext),!!l31(q.data()))},d=function(){return Y()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.u("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:d},_.u(_.PF,{cond:function(){return!d()},
then:function(){return _.u(_.PF,{cond:C,then:function(O){return _.u(_.dA,{each:O},function(H){return _.u(_.rH,{data:H,isCompact:q.isCompact,isMenuItem:q.isMenuItem,inPopup:q.inPopup})})}})}}))},"kc");
frh.idomCompat=!0;var p42;p42=_.Px({listItemViewModel:Kse,downloadListItemViewModel:frh,switchListItemViewModel:_.lrg});_.DFX=_.mq(X46);_.mD(X46);var hiW=_.xl(function(q){var Z=q.data;var w=q.isOverlay;q={};return _.u("yt-course-perks-view-model",{class:_.GL("ytwCoursePerksViewModelHost",(q.ytwCoursePerksViewModelHostOverlay=w,q))},_.u("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.u(_.r6,{text:function(){return Z().title}})),_.u("div",null,_.u(_.PF,{cond:function(){return Z().perks},
then:function(r){return _.u(_.DFX,{data:function(){return{listItems:r()}},
isCompact:!0,isOverlay:w})}})))},"lc");_.xc(hiW,"yt-course-perks-view-model",{props:{data:_.EL,isOverlay:_.EL}});_.xc(_.xl(function(q){var Z=q.data;return _.u("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.u("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.u(_.r6,{text:function(){return Z().title}})),_.u("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.u(_.r6,{text:function(){return Z().progressSummary}})),_.u("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.u("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.y1({width:function(){return Z().progressPercentage*100+"%"}})})))},"mc"),"yt-course-progress-view-model",{props:{data:_.zG}});var yRe=_.xl(function(q){var Z=_.n5(q,{}).data;return _.u("yt-progress-view-model",{class:"ytwProgressViewModelHost"},_.u(_.PF,{cond:function(){return Z().progressSummary},
then:function(w){return _.u("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.u(_.r6,{text:w}))}}),_.u("div",{class:"ytwProgressViewModelHostProgressContainer"},_.u("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.u(_.r6,{text:function(){var w;
return(w=Z())==null?void 0:w.leadingLabel}})),_.u("div",{class:"ytwProgressViewModelHostProgressBar"},_.u("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){var w;return"width: "+(((w=Z())==null?void 0:w.progressPercentage)||0)*100+"%"}}))))},"nc");var Yt=_.xl(function(q){var Z=q.starNumber;var w=q.data;var r=function(){var Y;return((Y=w())==null?void 0:Y.rating)||0};
return _.u(_.PF,{cond:function(){return Z()},
then:function(Y){return _.u(_.Oq,null,_.u(_.VV,{when:function(){return r()>=Y()-.25}},function(){return _.u("div",{class:"ytStarRatingViewModelHostStar"},_.u(_.q0,{icon:"STAR_FILLED"}))}),_.u(_.VV,{when:function(){return r()>=Y()-.75}},function(){return _.u("div",{class:"ytStarRatingViewModelHostStar"},_.u(_.q0,{icon:"STAR_HALF"}))}),_.u(_.lj9,null,function(){return _.u("div",{class:"ytStarRatingViewModelHostStar"},_.u(_.q0,{icon:"STAR_BORDER"}))}))}})},"oc"),ifh=_.xl(function(q){q=q.data;
return _.u("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.u(Yt,{starNumber:1,data:q}),_.u(Yt,{starNumber:2,data:q}),_.u(Yt,{starNumber:3,data:q}),_.u(Yt,{starNumber:4,data:q}),_.u(Yt,{starNumber:5,data:q}))},"pc");_.xc(_.xl(function(q){var Z=_.n5(q,{}).data;return _.u("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.u("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.u(_.r6,{text:function(){var w;return(w=Z())==null?void 0:w.title}})),_.u("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.u(_.PF,{cond:function(){return Z().starProgressViewModels},
then:function(w){return _.u("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.u(_.Hx,{data:w},{progressViewModel:yRe}))}}),_.u("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.u("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.u(_.r6,{text:function(){var w;
return(w=Z())==null?void 0:w.averageRatingLabel}})),_.u(_.PF,{cond:function(){return Z().zeroStateText},
then:function(w){return _.u("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.u(_.r6,{text:w}))}}),_.u(_.PF,{cond:function(){return Z().starRatingViewModel},
then:function(w){return _.u("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.u(_.Hx,{data:w},{starRatingViewModel:ifh}))}}),_.u("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.u(_.r6,{text:function(){var w;
return(w=Z())==null?void 0:w.totalRatingsCountLabel}})))))},"qc"),"yt-course-ratings-view-model",{props:{data:_.EL}});var guh;guh={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.q2q=_.xl(function(q){var Z=_.Iw(),w=_.A7();_.oz(function(){requestAnimationFrame(function(){var d;(d=w.lottieEl)==null||d.addEventListener("DOMLoaded",function(){var O;(O=q.onLottieLoaded)==null||O.call(q)})});
var r,Y=_.ih({browseEndpoint:{params:(r=q.data)==null?void 0:r.call(q).params,browseId:"FElearning_destination"},commandMetadata:{webCommandMetadata:{url:"/learning",rootVe:256690,apiUrl:"/youtubei/v1/browse",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}),C;((C=q.shouldSkipRequest)==null?0:C.call(q))||_.hy(Z.value,"yt-navigate",{endpoint:Y})});
return _.u("yt-learning-journey-loader-view-model",{class:_.GL("learningJourneyLoaderViewModelHost",q.className),"data-target-id":function(){var r;return((r=q.data)==null?void 0:r.call(q).targetId)||""},
el:Z},_.u(_.pn,{className:_.GL("learningJourneyLoaderViewModelLoader",q.className),animationName:function(){return guh.animationConfig.name},
data:guh,animationRef:w}))},"rc");_.xc(_.q2q,"yt-learning-journey-loader-view-model",{props:{data:_.zG,className:_.EL,onLottieLoaded:_.EL,shouldSkipRequest:_.EL}});var ZXD=_.xl(function(q){var Z=q.data;q=_.P(_.qo(-1,void 0,"r4B6h"));var w=q.next().value,r=q.next().value,Y=function(H){return w()===H},C=function(H){return Z().correctAnswerIndex===H},d=function(){return w()!==-1},O=_.fn(function(){r(-1);
return!1});
return _.u("learning-journey-quiz-view-model",{class:"learningJourneyQuizViewModelHost",style:_.y1({background:function(){return nP(BQ(Z())).backgroundColor}})},_.u(_.PF,{cond:function(){return!!Z().video},
then:function(){return _.u("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.y1({background:function(){return nP(BQ(Z())).videoBackgroundColor}})},_.u(_.Hx,{data:function(){return Z().video}},{lockupViewModel:function(H){return _.u(qs,{data:H.data,
className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.u("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.u("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.u("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.u("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.u("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.y1({color:function(){return nP(BQ(Z())).primaryTextColor}})},_.u(_.r6,{text:function(){var H=Z(),L=d(),S=w()===Z().correctAnswerIndex;
return L?S?H.successTitle:H.failureTitle:H.questionHeaderText}})),_.u(_.PF,{cond:d,
then:function(){return _.u("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":O,role:"button","aria-label":"Reset","tab-index":"0"},_.u("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.y1({fill:function(){return nP(BQ(Z())).primaryTextColor}})},_.u("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"})))}})),
_.u("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.y1({color:function(){return nP(BQ(Z())).secondaryTextColor}})},_.u(_.r6,{text:function(){var H=Z();
return d()?H.explanationText:H.questionSubheaderText}}))),_.u("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.u(_.dA,{each:function(){return Z().optionsData||[]}},function(H,L){var S={};
return _.u("div",{class:_.GL("learningJourneyQuizViewModelHostQuizOptions",(S.learningJourneyQuizViewModelHostQuizHover=function(){return!d()},S.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return w()===Z().correctAnswerIndex&&Y(L())},S.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return w()!==Z().correctAnswerIndex&&Y(L())},S.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return d()&&!Y(L())},S)),
"on:click":_.fn(function(){if(d())return!1;r(L());return!1}),
style:_.y1({background:function(){return d()&&Y(L())?"":nP(BQ(Z())).optionColor}}),
role:"button","aria-disabled":d,"tab-index":"0"},_.u(_.PF,{cond:d,then:function(){return _.u("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var v=L();return C(v)?"0 0 24 24":"0 -960 960 960"},
style:_.y1({fill:function(){return nP(BQ(Z())).primaryTextColor}})},_.u("path",{d:function(){var v=L();
return C(v)?"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"}}))}}),_.u(_.r6,{text:H.optionText}))})))))},"sc");
ZXD.idomCompat=!0;_.xc(ZXD,"learning-journey-quiz-view-model",{props:{data:_.zG}});var w6l=_.xl(function(q){var Z=_.Iw();_.EM(Z,function(){return q.data().rendererContext});
var w=_.n5(q,{palette:void 0,isLastItem:!1}),r=w.palette,Y=w.isLastItem,C=function(){return q.data().isHighlighted},d=function(){var L;
return miT((L=r())==null?void 0:L.iconDisabledColor)},O=function(){var L;
return miT((L=r())==null?void 0:L.primaryTitleColor)},H=function(){var L;
return miT((L=r())==null?void 0:L.secondaryTitleColor)};
w={};return _.u("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:Z},_.u(_.Hx,{data:function(){return q.data().thumbnail}},{thumbnailViewModel:m4}),_.u("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.u("div",{class:_.GL("ytMacroMarkerListItemViewModelTimeDescription",(w.ytMacroMarkerListItemViewModelHighlighted=C,w)),
style:_.y1({"background-color":function(){return C()?O():d()},
color:function(){return C()?"":H()}})},_.u(_.r6,{text:function(){return q.data().timestamp}})),_.u("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.y1({"background-color":function(){return Y()?"transparent":d()}})}),_.u("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(C()?O():H())}},_.u(_.r6,{text:function(){return q.data().title}}))))},"tc");_.$t=_.xl(function(q){function Z(n9){k("transform:translateX("+(_.zj("HTML_DIR")==="rtl"?"":"-")+n9+"px)")}
function w(n9){return Math.min(Math.max(n9,0),K()-g())}
function r(){var n9=f()+SO();return Y()?(Math.round(g()/n9)||1)*n9:0}
var Y=function(){return q.data().items||[]},C=function(){return q.data().previousButton},d=function(){return q.data().nextButton},O=function(){var n9,Rh;
return(Rh=(n9=q.disableArrows)==null?void 0:n9.call(q))!=null?Rh:!1},H=function(){var n9;
return!((n9=q.forceNarrowLayout)==null||!n9.call(q))},L=_.Iw(),S=_.Iw(),v=_.P(_.qo(0,void 0,"yngx7d")),R=v.next().value,B=v.next().value;
v=_.P(_.qo(0,void 0,"rUOyGb"));var n=v.next().value,x=v.next().value,K=n;n=_.P(_.qo("",void 0,"jv2kWc"));v=n.next().value;var k=n.next().value;n=_.P(_.qo(0,void 0,"Xb0f0d"));var G=n.next().value,rz=n.next().value,f=G;n=_.P(_.qo(0,void 0,"pt5wQ"));G=n.next().value;var eO=n.next().value,g=G;n=_.P(_.qo(!1,void 0,"FfPefe"));var H6=n.next().value,nX=n.next().value;n=_.P(_.qo(0,void 0,"kB5mhb"));G=n.next().value;var Qj=n.next().value,SO=G;n=_.P(_.qo(0,void 0,"dnDmUd"));var Te=n.next().value,Ze=n.next().value,
W1=function(){var n9,Rh=(n9=q.data())==null?void 0:n9.responsiveContainerConfiguration,xg,ZF;return Rh?fW8(Rh==null?void 0:Rh.responsiveSize):(ZF=(xg=q.sizing)==null?void 0:xg.call(q))!=null?ZF:"STANDARD"};
n=_.$6(function(){return!O()&&R()>0},void 0,"ZIGxke");
G=_.$6(function(){return!O()&&R()<K()-g()},void 0,"OJzhRd");
var A2=function(){B(w(R()-r()));Z(R())},f9=function(){B(w(R()+r()));
Z(R())},Dl=function(){L.value!==null&&De()},$g;
_.Ls(function(){De();window.ResizeObserver?($g=new ResizeObserver(_.VW(Dl,0)),$g.observe(L.value)):window.addEventListener("resize",Dl)});
_.SG(function(){if(window.ResizeObserver){var n9;(n9=$g)==null||n9.disconnect()}else window.removeEventListener("resize",Dl)});
var De=function(){var n9=L.value.clientWidth,Rh=q.includeMargin!==void 0?q.includeMargin():!1,xg;var ZF=q.hasPeek!==void 0?q.hasPeek():!((xg=q.data())==null||!xg.hasPeek);n9=_.F_({containerWidth:n9,hasPeek:ZF,sizing:W1(),marginSettings:Rh?H()?4:1:0});Qj(n9.gutter);Ze(n9.margin);rz(n9.itemWidth);nX(n9.maxContainerWidth<528||H());eO(n9.maxContainerWidth);Y()&&x((n9.itemWidth+n9.gutter)*Y().length-n9.gutter)};
return _.u("horizontal-shelf-view-model",{class:_.GL("ytwHorizontalShelfViewModelHost",q.className),el:L},_.u(_.PF,{cond:function(){return q.data().header},
then:function(){return _.u("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.y1({width:function(){return g()+"px"},
padding:function(){return"0 "+Te()+"px"}})},_.u(_.Hx,{data:function(){return q.data().header}},{sectionHeaderViewModel:function(n9){return _.u(_.U0,{data:n9.data,
disableHorizontalPadding:!0,forceSmallLayout:H6,useResponsiveLayout:!0})}}))}}),_.u("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.u("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.y1({width:function(){return g()+"px"},
padding:function(){return"0 "+Te()+"px"},
overflow:function(){return O()?"auto":"hidden"}})},_.u("div",{class:"ytwHorizontalShelfViewModelItems",
el:S,style:v},_.u(_.Hx,{data:Y},{macroMarkerListItemViewModel:function(n9,Rh){return _.u("div",{style:_.y1({width:function(){return f()+"px"},
"margin-right":function(){return(Rh()===Y().length-1?0:SO())+"px"}})},_.u(w6l,{data:n9.data,
palette:_.aA(q.palette),isLastItem:function(){return Rh()===Y().length-1}}))},
lockupViewModel:function(n9,Rh){var xg=n9.data;return _.u("div",{style:_.y1({width:function(){return f()+"px"},
"margin-right":function(){return(Rh()===Y().length-1?0:SO())+"px"}})},_.u(qs,{data:xg,
containerType:4,sizing:W1,protectBackground:q.protectBackground,thumbnailFixedWidth:function(){return Avj(xg())+"px"},
thumbnailTargetWidth:function(){return Avj(xg())}}))}}))),_.u(_.PF,{cond:n,
then:function(){return _.u("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.u(_.Hx,{data:C},{buttonViewModel:function(n9){return _.u(_.vx,{data:n9.data,onClick:A2})}}))}}),_.u(_.PF,{cond:G,
then:function(){return _.u("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.u(_.Hx,{data:d},{buttonViewModel:function(n9){return _.u(_.vx,{data:n9.data,onClick:f9})}}))}})))},"uc");
_.$t.idomCompat=!0;var r2C=_.xl(function(q){var Z=function(){return q.data().targetId||""},w=function(){var S;
return((S=q.data())==null?void 0:S.expansionEntityKey)||""},r=_.g6(_.wMI,w),Y=function(){var S;
return r()?r().value===Z():(S=q.data())==null?void 0:S.isExpanded},C=function(){if(Y()){var S=!0;
q.onCollapse!==void 0&&(S=q.onCollapse());S&&_.Bp(_.wp("stringEntity",w(),{key:w(),value:""}))}else _.Bp(_.wp("stringEntity",w(),{key:w(),value:Z()}))},d=_.fn(C),O=function(){var S;
return(((S=q.accordionStyle)==null?void 0:S.call(q))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},H={},L={};
return _.u("yt-accordion-item-view-model",{class:_.GL("ytAccordionItemViewModelHost",q.className,(H.ytAccordionItemViewModelExpanded=function(){return Y()},H.ytAccordionItemViewModelHidden=function(){var S;
return(S=q.hideIfNotExpanded)==null?void 0:S.call(q)},H.ytAccordionItemViewModelMini=O,H)),
"data-target-id":Z},_.u("div",{class:"ytAccordionItemViewModelContainer"},_.u("div",{class:"ytAccordionItemViewModelLeftSection","on:click":d},_.u(_.r6,{text:function(){return q.data().title},
className:"ytAccordionItemViewModelLabel"})),_.u("div",{class:"ytAccordionItemViewModelRightSection"},_.u(_.Hx,{data:function(){return Y()?q.data().expandButton:q.data().collapseButton}},{buttonViewModel:function(S){return _.u(_.vx,{data:S.data,
className:"ytAccordionItemViewModelToggleButton",onClick:C})}}))),_.u("div",{class:"ytAccordionItemViewModelContainer"},_.u("div",{class:_.GL("ytAccordionItemViewModelContent",(L.ytAccordionItemViewModelExpandedSubtitle=function(){return Y()},L))},_.u(_.PF,{cond:function(){return!O()},
then:function(){return _.u(_.r6,{text:function(){return q.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.u(_.Hx,{data:function(){return q.data().content}},{horizontalShelfViewModel:function(S){return _.u(_.$t,{data:S.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"vc");_.Y2F=_.xl(function(q){var Z=_.P((0,_.Ylp)(q.data)).next().value,w=function(){return q.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},r=function(){return w()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},Y=_.P(_.qo(!0,void 0,"ewf0jb")),C=Y.next().value,d=Y.next().value,O=function(){return r()&&C()},H=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){d(!C())}}};
Y={};return _.u("yt-accordion-view-model",{class:_.GL("ytAccordionViewModelHost",(Y.ytAccordionViewModelMinimized=function(){return O()},Y)),
"data-target-id":function(){return q.data().targetId||""}},_.u(_.PF,{cond:function(){return r()||!!Z().title},
then:function(){return _.u("div",{class:"ytAccordionViewModelHeader"},_.u(_.r6,{text:function(){return Z().title},
className:"ytAccordionViewModelTitle"}),_.u(_.PF,{cond:r,then:function(){return _.u(X_,{data:H,iconName:function(){return O()?"chevron_down":"chevron_up"}})}}))}}),_.u("div",{class:"ytAccordionViewModelContent"},_.u(_.Hx,{data:function(){return Z().contents}},{accordionItemViewModel:function(L){return _.u(r2C,{data:L.data,
className:"ytAccordionViewModelRow",accordionStyle:w,hideIfNotExpanded:O,onCollapse:function(){return r()?(d(!0),!1):!0}})}})))},"wc");_.xc(_.Y2F,"yt-accordion-view-model",{props:{data:_.zG}});_.xc(_.xl(function(q){var Z,w=(Z=_.t().resolve(_.Gj(_.RQ)))==null?void 0:Z(),r=_.P(_.qo(!1,void 0,"WGEOWd"));Z=r.next().value;var Y=r.next().value;r=_.P(_.qo(!0,void 0,"fAuWJ"));var C=r.next().value,d=r.next().value,O=_.Iw(),H=function(B){Y(!0);B={learningJourneyFormData:{query:B}};_.Sp(q.data().searchEndpoint||{},{form:{formData:B}});return!1};
r=_.fn(function(){d(O.value.value.length===0)});
var L=_.fn(function(B){if(B.key==="Enter"&&!B.shiftKey&&!C()){var n=B.target;B.preventDefault();H(n.value)}}),S={},v={},R={};
return _.u("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.u("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.u(_.aQ,{data:function(){return q.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.u("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.u("div",{class:_.GL("ytLearningJourneyZeroStateSearchBar",(S.ytLearningJourneyZeroStateSearchBarDark=w,S))},_.u("textarea",{class:_.GL("ytLearningJourneyZeroStateTextInput",(v.ytLearningJourneyZeroStateTextInputDark=w,v)),el:O,"on:keyup":r,"on:keydown":L,placeholder:"What do you want to learn?",rows:1})),_.u("div",{class:_.GL("ytLearningJourneyZeroStateSearchButtonContainer",
(R.ytLearningJourneyZeroStateSearchButtonContainerDark=w,R))},_.u(_.vx,{data:function(){return _.J(q.data().searchButton,_.Wx)},
className:"search-button",onClick:function(){return H(O.value.value)},
buttonOverrides:function(){return{disabled:C(),style:w?"mono-inverse":"mono",size:"XL"}}}))),_.u(_.PF,{cond:Z,
then:function(){return _.u("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.u(_.Hx,{data:function(){return q.data().loader}},{learningJourneyLoaderViewModel:function(B){return _.u(_.q2q,{data:B.data,
shouldSkipRequest:!0})}}))},
else:function(){return _.u("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.u("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return q.data().suggestedJourneySectionTitle}),_.u(_.Hx,{data:function(){return q.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(B){return _.u(w2g,{data:B.data,
layout:1})}}))}}))},"xc"),"yt-learning-journey-zero-state",{props:{data:_.zG}});var $jy=_.xl(function(q){var Z=q.data;return _.u("ytvl-live-leaderboard-item-action-content-view-model",{class:_.GL("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.u(_.r6,{text:function(){var w;return(w=Z())==null?void 0:w.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.u(_.Hx,{data:function(){return Z().actionButton}},{buttonViewModel:function(w){return _.u(_.vx,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:w.data})}}))},"yc");var e86=_.xl(function(q){var Z=q.data;return _.u("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.GL("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.u(_.r6,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var w;return(w=Z())==null?void 0:w.displayName},
ellipsisTruncate:!0}),_.u(_.Hx,{data:function(){return Z().badge}},{buttonViewModel:function(w){return _.u(_.vx,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:w.data})}}))},"zc");_.xc(_.xl(function(q){var Z=q.data;return _.u("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.u("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.u(_.r6,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var w;return(w=Z())==null?void 0:w.rank}})),_.u("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.u(_.Hx,{data:function(){return Z().avatar}},{avatarViewModel:_.j4})),_.u("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.u(_.Hx,{data:function(){return Z().content}},{liveLeaderboardItemChannelContentViewModel:e86,
liveLeaderboardItemActionContentViewModel:$jy})),_.u(_.r6,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var w;return(w=Z())==null?void 0:w.points}}))},"Ac"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.zG}});_.xc(_.xl(function(q){var Z=q.data;return _.u("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.u(_.r6,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var w,r;return(w=Z())==null?void 0:(r=w.ranking)==null?void 0:r.rank}}),_.u("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.u(_.Hx,{data:function(){return Z().avatar}},{avatarViewModel:_.j4})),_.u(_.r6,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var w,r;return(w=Z())==null?void 0:(r=w.channelContent)==null?void 0:r.channelName}}),_.u(_.r6,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var w;return(w=Z())==null?void 0:w.points}}))},"Bc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.zG}});var CNC=_.xl(function(q){q=_.n5(q,{wrapper:!1}).wrapper;return _.u(_.PF,{cond:q,then:function(){return _.u("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.u("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.u("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Cc");
CNC.idomCompat=!0;var PNV=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],djb=_.xl(function(q){var Z=q.data;var w=_.Iw(),r=_.$6(function(){return Z().command},void 0,"CGDtVe");
_.L7(function(){r()&&_.um(r(),{form:{element:w.value}})});
return _.u("div",{el:w},_.u(_.PF,{cond:function(){return Z().qrCodeImage},
then:function(Y){return _.u(_.aQ,{data:Y,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.u(_.PF,{cond:function(){return Z().spinner},
then:function(){return _.u(CNC,null)}})}}),_.u(_.PF,{cond:function(){return Z().label},
then:function(Y){return _.u(_.r6,{text:Y,className:"YtQrCodeRendererHostLabel"})}}),_.u(_.PF,{cond:function(){return Z().labels},
then:function(Y){return _.u("div",{class:"YtQrCodeRendererHostLabels"},_.u(_.dA,{each:Y},function(C){return _.u(_.r6,{text:C})}))}}))},"Ec");_.xc(_.xl(function(q){var Z=q.data;var w=_.$6(function(){return Z().qrEntityKey},void 0,"joYCxd"),r=_.$6(function(){return Z().deleteEntityOnDismiss},void 0,"x3yAde"),Y=_.$6(function(){return Z().command},void 0,"dJe1Re"),C=_.g6(xV2,w);
q=_.$6(function(){return Z().style&&PNV.includes(Z().style)},void 0,"rGILzf");
var d=_.Iw();_.Xu(d,{visibilityCallback:function(O){O&&Y()&&_.um(Y())},
showOption:{calledOnce:!0,state:"visible"}});_.Ls(function(){_.SG(function(){r()&&w()&&_.JJ().dispatch(_.wp("qrCodeEntity",w()))})});
return _.u("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:d},_.u(_.PF,{cond:q,then:function(){return _.u(_.PF,{cond:C,then:function(O){return _.u(djb,{data:O})}})}}))},"Dc"),"yt-qr-code-renderer",{props:{data:_.zG}});var VOb=_.xl(function(q){var Z=q.data;var w=q.topbarOffset;var r,Y=((r=_.t().resolve(_.Gj(_.RQ)))==null?void 0:r())||!1;return _.u("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var C=Z();var d,O,H=Y?(d=C.config)==null?void 0:d.darkThemeBackgroundColor:(O=C.config)==null?void 0:O.lightThemeBackgroundColor;C=H?_.oJ(H):void 0;C="background-color: "+C+";";w!==void 0&&(C+="top: -"+w()+"px;");return C},
"aria-hidden":!0},_.u(_.PF,{cond:function(){var C,d,O;return!!((C=Z().backgroundImageConfig)==null?0:(d=C.image)==null?0:(O=d.sources)==null?0:O.length)},
then:function(){return _.u(_.aQ,{data:function(){var C;return(C=Z().backgroundImageConfig)==null?void 0:C.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.u("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+f32(Y,Z().gradientColorConfig)+";"}}))},"Fc");
VOb.idomCompat=!0;var OX8=_.mq(DiN);_.mD(DiN);var HX8=_.xl(function(q){var Z=q.data;var w=q.isOverlay;return _.u("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.u("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.u(_.Hx,{data:function(){return Z().header}},{sectionHeaderViewModel:function(r){return _.u(_.U0,{data:r.data,
isOverlay:w})}})),_.u("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.u(_.Hx,{data:function(){return Z().channelInfoButtons}},{flexibleActionsViewModel:w2g})),_.u("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.u(_.Hx,{data:function(){return Z().description}},{descriptionPreviewViewModel:function(r){return _.u(OX8,{data:r.data,
isOverlay:w})}})))},"Gc");
HX8.idomCompat=!0;var WIZ=_.xl(function(q){var Z=q.data;var w={};return _.u("factoid-view-model",{class:_.GL("ytwFactoidViewModelHost",(w.ytwFactoidViewModelHostOverlay=q.isOverlay,w))},_.u(_.r6,{text:function(){return Z().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.u(_.r6,{text:function(){return Z().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Hc");
WIZ.idomCompat=!0;var o17=_.xl(function(q){var Z=q.data;var w=q.isOverlay;return _.u("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.u(_.Hx,{data:function(){return Z().factoids}},{factoidViewModel:function(r){return _.u(WIZ,{data:r.data,
isOverlay:w})}}))},"Ic");
o17.idomCompat=!0;_.u9V=_.xl(function(q){var Z=q.data;var w=q.isOverlay;return _.u("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.u(_.Hx,{data:function(){return Z().items}},{channelInfoViewModel:function(r){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(HX8,{data:r.data,
isOverlay:w}))},
coursePerksViewModel:function(r){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(hiW,{data:r.data,isOverlay:w}))},
descriptionPreviewViewModel:function(r){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(OX8,{data:r.data,isOverlay:w}))},
factoidsRowViewModel:function(r){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(o17,{data:r.data,isOverlay:w}))}}))},"Jc");var LIq=_.xl(function(q){return _.u("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.u(_.Hx,{data:function(){return q.data().content}},{courseMetadataViewModel:function(Z){return _.u(_.u9V,{data:Z.data,
isOverlay:q.isOverlay})}}))},"Kc");var S2u=_.xl(function(q){var Z=q.data;q=q.className;var w=_.Iw(),r=function(){var C;return _.nV((C=Z())==null?void 0:C.rendererContext)},Y={};
Y=(Y["dynamic-text-view-model-wiz"]=!0,Y["dynamic-text-view-model-wiz--tappable"]=function(){return r()},Y);
_.EM(w,function(){var C;return(C=Z())==null?void 0:C.rendererContext});
return _.u("yt-dynamic-text-view-model",{el:w,role:function(){return r()?"link":void 0},
tabindex:function(){return r()?0:void 0},
class:_.GL(q,Y)},_.u("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var C,d,O;return(O=(d=_.J((C=Z())==null?void 0:C.rendererContext,_.xL))==null?void 0:d.label)!=null?O:""}},_.u(_.r6,{text:function(){return Z().text},
userInput:!0})))},"Lc");
S2u.idomCompat=!0;_.v1F=_.xl(function(q){var Z=q.data;var w=q.isPositionRelative;var r=_.cO(),Y=_.gHX("(max-width: 527.9px)"),C=function(){var d,O;return(O=(d=Z())==null?void 0:d.style)!=null?O:"IMAGE_BANNER_STYLE_FULL_BLEED"};
q={};q=(q["yt-image-banner-view-model-wiz"]=!0,q["yt-image-banner-view-model-wiz--inset"]=function(){return qbT(C())},q["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.jG(!0)&&!(w==null?0:w())},q["yt-image-banner-view-model-wiz--small-inset"]=function(){return qbT(C())&&Y()},q["yt-image-banner-view-model-wiz--tappable"]=function(){var d;
return _.jG(r.value)&&_.nV((d=Z())==null?void 0:d.rendererContext)},q);
_.EM(r,function(){var d;return(d=Z())==null?void 0:d.rendererContext});
return _.u("yt-image-banner-view-model",{el:r,class:_.GL(q)},_.u(_.PF,{cond:function(){var d;return(d=Z())==null?void 0:d.image},
then:function(){return _.u(_.aQ,{data:function(){return Z().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.u(_.Hx,{data:function(){var d;
return(d=Z())==null?void 0:d.overlays}},{thumbnailHoverOverlayViewModel:qj7}))},"Mc");
_.v1F.idomCompat=!0;var Qt;Qt=_.Px({descriptionPreviewViewModel:DiN,dynamicTextViewModel:S2u,contentPreviewImageViewModel:_.yS,contentMetadataViewModel:IoJ,flexibleActionsViewModel:Zv7,attributionViewModel:EFJ,imageBannerViewModel:_.v1F,decoratedAvatarViewModel:Yj1,cinematicContainerViewModel:VOb,flexibleContainer:LIq});_.jTF=_.mq(_.CKO);_.mD(_.CKO);_.xc(_.xl(function(q){var Z=_.P(_.qo(!1,void 0,"vVRl3b")),w=Z.next().value,r=Z.next().value;return _.u("yt-official-card-view-model",{class:_.GL("ytOfficialCardViewModelHost",q.className),style:_.y1({"background-color":function(){var Y,C=X7I((Y=q.data())==null?void 0:Y.backgroundColor);return C?_.uq(C):void 0}})},_.u(_.Hx,{data:function(){return q.data().header}},{pageHeaderViewModel:function(Y){return _.u(_.jTF,{data:Y.data,
noPadding:!0})}}),_.u(_.Hx,{data:function(){return q.data().contents}},{horizontalShelfViewModel:_.$t}),_.u(_.PF,{cond:w,
then:function(){return _.u("div",{class:"ytOfficialCardViewModelExpandedContent"},_.u(_.Hx,{data:function(){return q.data().expandedContents}},{horizontalShelfViewModel:function(Y){return _.u(_.$t,{data:Y.data,
sizing:"MINI"})}}),_.u("div",{class:"ytOfficialCardViewModelCollapseButton"},_.u(_.Hx,{data:function(){return q.data().collapseButton}},{buttonViewModel:function(Y){return _.u(_.vx,{data:Y.data,
onClick:function(){r(!w())}})}})))},
else:function(){return _.u("div",{class:"ytOfficialCardViewModelExpandButton"},_.u(_.Hx,{data:function(){return q.data().expandButton}},{buttonViewModel:function(Y){return _.u(_.vx,{data:Y.data,
onClick:function(){r(!w())}})}}))}}))},"Nc"),"yt-official-card-view-model",{props:{data:_.zG,
className:_.zG}});var PK1=_.Px({buttonViewModel:_.vx});_.mD(dcX);_.Mx(dcX,"ytw-search-friction-view-model",{propNames:["data"]});_.eq=_.xl(function(q){var Z=_.Iw(),w,r=(w=_.t().resolve(_.Gj(_.RQ)))==null?void 0:w();_.L7(function(){var Y=Z.value;var C=new NbJ,d=new Map(C.JSC$7178_sanitizerTable.globalAttributePolicies);d.set("style",{policyAction:4});C.JSC$7178_sanitizerTable=new Hr(C.JSC$7178_sanitizerTable.allowedElements,C.JSC$7178_sanitizerTable.elementPolicies,C.JSC$7178_sanitizerTable.allowedGlobalAttributes,d,C.JSC$7178_sanitizerTable.globallyAllowedAttributePrefixes);var O=["data-time"];if(O===void 0)d=new Set(C.JSC$7178_sanitizerTable.globallyAllowedAttributePrefixes),
d.add("data-"),C.JSC$7178_sanitizerTable=new Hr(C.JSC$7178_sanitizerTable.allowedElements,C.JSC$7178_sanitizerTable.elementPolicies,C.JSC$7178_sanitizerTable.allowedGlobalAttributes,C.JSC$7178_sanitizerTable.globalAttributePolicies,d);else{d=new Set(C.JSC$7178_sanitizerTable.allowedGlobalAttributes);O=_.P(O);for(var H=O.next();!H.done;H=O.next()){H=H.value;if(H.indexOf("data-")!==0)throw Error("qa`"+H);d.add(H)}C.JSC$7178_sanitizerTable=new Hr(C.JSC$7178_sanitizerTable.allowedElements,C.JSC$7178_sanitizerTable.elementPolicies,
d,C.JSC$7178_sanitizerTable.globalAttributePolicies,C.JSC$7178_sanitizerTable.globallyAllowedAttributePrefixes)}d=new Set(C.JSC$7178_sanitizerTable.allowedGlobalAttributes);d.add("class");C.JSC$7178_sanitizerTable=new Hr(C.JSC$7178_sanitizerTable.allowedElements,C.JSC$7178_sanitizerTable.elementPolicies,d,C.JSC$7178_sanitizerTable.globalAttributePolicies,C.JSC$7178_sanitizerTable.globallyAllowedAttributePrefixes);_.fA(Y,_.sq2(C.build(),O4T(q.text())));H4X(Z.value)});
w={};return _.u("div",null,_.u("markdown-div",{class:_.GL("ytwMarkdownDivHost",(w.ytwMarkdownDivDark=r,w.ytwMarkdownDivHostSmall=function(){var Y;return((Y=q.isSmallText)==null?void 0:Y.call(q))||!1},w)),
el:Z}))},"Oc");
_.eq.idomCompat=!0;var tOy=_.xl(function(q){var Z=q.imageData;var w=_.aA(q.isInList,!1),r=function(){return w()?{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 _.u("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.u(_.PF,{cond:function(){return Z().image},
then:function(Y){return _.u(_.aQ,{data:Y,alt:function(){return r().alt},
contentMode:function(){return r().contentMode},
targetWidth:function(){return r().targetWidth},
targetHeight:function(){return r().targetHeight},
className:function(){return r().className}})}}),_.u("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.u("div",{class:_.GL("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.u(_.r6,{text:function(){return Z().title}})),_.u(_.dA,{each:function(){var Y;
return(Y=Z().description)!=null?Y:[]}},function(Y){return _.u("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.u(C8,{content:Y}))})))},"Pc"),R8q=_.xl(function(q){var Z=q.list;
var w=function(){var r;return(r=Z().items)!=null?r:[]};
return _.u("div",{class:"ytwGenAiRichTextViewModelListContent"},_.u(_.PF,{cond:function(){return Z().title},
then:function(r){return _.u("div",{class:_.GL("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.u(_.r6,{text:r}))}}),_.u(_.PF,{cond:function(){return Z().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.u("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.u(_.dA,{each:w},function(r){return _.u("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.u(C8,{content:r,isInList:!0}))}))}}),_.u(_.PF,{cond:function(){return Z().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.u("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.u(_.dA,{each:w},function(r){return _.u("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.u(C8,{content:r,isInList:!0}))}))}}),_.u(_.PF,{cond:function(){return Z().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.u("div",{class:"ytwGenAiRichTextViewModelImageList"},_.u(_.dA,{each:w},function(r){return _.u("div",{class:"ytwGenAiRichTextViewModelListItem"},_.u(C8,{content:r,isInList:!0}))}))}}))},"Qc"),bXl=_.xl(function(q){var Z=q.table;
return _.u("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.u("thead",null,_.u("tr",null,_.u(_.dA,{each:function(){var w,r;return(r=(w=Z().header)==null?void 0:w.cells)!=null?r:[]}},function(w){return _.u("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.u(_.dA,{each:function(){return w.contents}},function(r){return _.u(C8,{content:r})}))}))),_.u("tbody",null,_.u(_.dA,{each:function(){var w;
return(w=Z().rows)!=null?w:[]}},function(w){return _.u("tr",null,_.u(_.dA,{each:function(){return w.cells}},function(r){return _.u("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.u(_.dA,{each:function(){return r.contents}},function(Y){return _.u(C8,{content:Y})}))}))})))},"Rc"),C8=_.xl(function(q){var Z=q.content;
var w=_.aA(q.isInList,!1),r=function(){var Y,C;return(C=(Y=Z().contentBlock)==null?void 0:Y.contents)!=null?C:[]};
return _.u("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.u(_.PF,{cond:function(){return Z().text},
then:function(Y){return _.u(_.r6,{className:"ytwGenAiRichTextViewModelText",text:Y})}}),_.u(_.PF,{cond:function(){return Z().image},
then:function(Y){return _.u(tOy,{imageData:Y,isInList:w})}}),_.u(_.PF,{cond:function(){return Z().list},
then:function(Y){return _.u(R8q,{list:Y})}}),_.u(_.PF,{cond:function(){return Z().contentBlock},
then:function(){return _.u("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.u(_.dA,{each:r},function(Y){return _.u(C8,{content:Y,isInList:!1})}))}}),_.u(_.PF,{cond:function(){return Z().table},
then:function(Y){return _.u(bXl,{table:Y})}}))},"Sc"),J26=_.xl(function(q){var Z={};
Z=_.XA("ytwGenAiRichTextViewModelHost",(Z.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.Af("search_overview_link_style")),Z));return _.u("gen-ai-rich-text-view-model",{class:Z},_.u(C8,{content:function(){return q.data().content}}))},"Tc");_.mD(WVz);_.mD(Ez);_.z88=_.xl(function(q){var Z=q.data;var w=function(){var x;return((x=Z().loadingUi)!=null?x:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},r=function(){return Z().isLoading&&(w()==="UNSPECIFIED"||w()==="GHOST_CARD")},Y=function(){return!Z().isLoading},C=function(){return!!Z().content&&!Z().contents},d=function(){return!!Z().contents},O=function(){return!!Z().nextQueryButtons},H=function(){return Z().isLoading&&w()==="INVISIBLE"},L=function(){var x,K;
return(K=(x=Z().headerIcon)==null?void 0:x.iconType)!=null?K:""},S=function(){var x;
return(x=Z().content)!=null?x:""},v=function(){return!!Z().sourcesSection},R,B=!((R=_.t().resolve(_.Gj(_.RQ)))==null||!R()),n=_.$6(function(){var x=[],K=Z().contents;
if(K)for(var k=0;k<K.length;k++){var G=_.J(K&&K[k],g57);G&&x.push(G)}return x},void 0,"ycU97e");
_.Ls(function(){Z().isLoading||_.JT("so_re",void 0,"search_overview_answer")});
return _.u("ytd-overview-answer-view-model",{class:function(){var x={};x=(x.ytdOverviewAnswerViewModelHost=!0,x.ytdOverviewAnswerViewModelDarkBackground=B&&!H(),x.ytdOverviewAnswerViewModelLightBackground=!B&&!H(),x);return _.XA(x)}},_.u(_.PF,{cond:function(){return!H()},
then:function(){return _.u(_.lS,null,_.u("h2",null,_.u("div",{class:"ytdOverviewAnswerViewModelHeader"},_.u(_.PF,{cond:L,then:function(x){return _.u("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.u(_.q0,{icon:x}))}}),_.u("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.u("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return Z().headerText}),_.u("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.u(_.r6,{text:function(){return Z().headerSubtext}}))))),_.u(_.PF,
{cond:r,
then:function(){return WVz()}}),_.u(_.PF,{cond:Y,
then:function(){return _.u(_.lS,null,_.u(_.PF,{cond:C,then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelText"},_.u(_.eq,{text:S,isSmallText:!0}))}}),_.u(_.PF,{cond:d,
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelRichText"},_.u(_.dA,{each:n},function(x){return _.u(J26,{data:x})}))}}),_.u(_.PF,{cond:O,
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.u(_.Hx,{data:function(){return Z().nextQueryButtons}},{buttonViewModel:function(x){return _.u(_.vx,{data:x.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.$t}))}}),_.u("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.u("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.u(_.PF,{cond:function(){return!!_.J(Z().likeButtonViewModel,xm1)&&!!_.J(Z().dislikeButtonViewModel,T$e)},
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.u(_.$QX,{data:function(){return _.J(Z().likeButtonViewModel,xm1)},
disableIconAnimation:!0}),_.u(_.YxW,{data:function(){return _.J(Z().dislikeButtonViewModel,T$e)}}))}})),_.u(_.PF,{cond:function(){var x;
return(x=Z().sourcesSection)==null?void 0:x.headerText},
then:function(x){return _.u("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.u(_.r6,{text:x}))}})),_.u(_.PF,{cond:v,
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelSources"},_.u(_.Hx,{data:function(){var x;return(x=Z().sourcesSection)==null?void 0:x.sourcesShelf}},{buttonViewModel:_.vx,
horizontalShelfViewModel:function(x){return _.u(_.$t,{data:x.data,includeMargin:!0,hasPeek:!0})}}))}}),_.u(_.PF,{cond:function(){return Z().disclaimerText},
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.u(_.r6,{text:function(){return Z().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Uc");var Bzc=_.xl(function(q){var Z=q.data;var w=q.active;var r=_.Iw();_.L7(function(){var Y,C,d,O=((Y=_.t().resolve(_.Gj(_.RQ)))==null?0:Y())?(C=Z())==null?void 0:C.darkThemeColorPalette:(d=Z())==null?void 0:d.lightThemeColorPalette;O&&(O.invertedBackground&&r.value.style.setProperty("--timestamp-active-background-color",_.uq(O.invertedBackground)),O.additiveBackground&&r.value.style.setProperty("--timestamp-background-color",_.uq(O.additiveBackground)),O.textPrimaryInverse&&r.value.style.setProperty("--timestamp-active-color",
_.uq(O.textPrimaryInverse)),O.textSecondary&&r.value.style.setProperty("--timestamp-color",_.uq(O.textSecondary)))},"PUzFSd");
q={};return _.u("transcript-segment-view-model",{class:_.GL("ytwTranscriptSegmentViewModelHost",(q.ytwTranscriptSegmentViewModelHostActive=w,q.ytwTranscriptSegmentViewModelHostModern=_.b("enable_timeline_view_modern_transcript")||_.b("enable_timeline_view_modern_transcript_fe"),q)),el:r},_.u(_.PF,{cond:function(){var Y;return(Y=Z())==null?void 0:Y.timestamp},
then:function(Y){var C={};return _.u("div",{class:_.GL("ytwTranscriptSegmentViewModelTimestamp",(C.ytwTranscriptSegmentViewModelTimestampActive=w,C))},Y)}}),_.u(_.r6,{text:function(){var Y,C,d;
return(d=(Y=Z())==null?void 0:Y.attributedText)!=null?d:{content:(C=Z())==null?void 0:C.simpleText}},
linkInheritColor:!0}))},"Vc");var aT8=_.xl(function(q){var Z=q.data;return _.u("div",{class:"yt-video-attributes-section-view-model__header"},_.u("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return Z().headerTitle}),_.u(_.PF,{cond:function(){return Z().headerSubtitle},
then:function(){return _.u("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return Z().headerSubtitle})}}))},"Wc"),n1y=_.xl(function(q){function Z(n){return Math.max(Math.min(n,0),L()-O())}
var w=q.data;var r=_.Iw(),Y=_.Iw();q=_.P(_.qo(0,void 0,"ucDlDf"));var C=q.next().value,d=q.next().value,O=C;q=_.P(_.qo(0,void 0,"lHzSub"));C=q.next().value;var H=q.next().value,L=C;q=_.P(_.qo(0,void 0,"Q8fDIe"));var S=q.next().value,v=q.next().value;_.Ls(function(){var n=function(){d(Y.value.scrollWidth);H(r.value.clientWidth)};
n();if(window.ResizeObserver){var x=new ResizeObserver(n);x.observe(r.value);_.SG(function(){x.disconnect()})}});
var R=function(){v(Z(S()+L()))},B=function(){v(Z(S()-L()))};
return _.u("yt-video-attributes-section-view-model",null,_.u("div",{class:"yt-video-attributes-section-view-model"},_.u(_.PF,{cond:function(){return w().headerTitle},
then:function(){return _.u(aT8,{data:w})}}),_.u("div",{class:_.GL("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:r},_.u("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.y1({transform:function(){var n=S();_.zj("HTML_DIR")==="rtl"&&(n*=-1);return"translateX("+n+"px)"}}),
el:Y},_.u(_.Hx,{data:function(){return w().videoAttributeViewModels}},{videoAttributeViewModel:hzD}))),_.u(_.Hx,{data:function(){return w().footerButton}},{buttonViewModel:function(n){return _.u(_.vx,{data:n.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.u(_.PF,{cond:function(){return S()<0&&w().previousButton},
then:function(){return _.u("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.u(_.Hx,{data:function(){return w().previousButton}},{buttonViewModel:function(n){return _.u(_.vx,{data:n.data,
onClick:R})}}))}}),_.u(_.PF,{cond:function(){return S()>L()-O()&&w().nextButton},
then:function(){return _.u("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.u(_.Hx,{data:function(){return w().nextButton}},{buttonViewModel:function(n){return _.u(_.vx,{data:n.data,
onClick:B})}}))}})))},"Xc");
n1y.idomCompat=!0;var QTD=_.xl(function(q){var Z=q.data;var w=q.active;var r={},Y={};return _.u("timeline-item-view-model",{class:_.GL("ytwTimelineItemViewModelHost",(r.ytwTimelineItemViewModelHostChapterChild=q.chapterChild,r.ytwTimelineItemViewModelModern=_.b("enable_timeline_view_modern_transcript")||_.b("enable_timeline_view_modern_transcript_fe"),r))},_.u("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.u("div",{class:_.GL("ytwTimelineItemViewModelTimestamp",(Y.ytwTimelineItemViewModelTimestampActive=
w,Y))},function(){return Z().timestamp})),_.u("div",{class:"ytwTimelineItemViewModelContentItems"},_.u(_.Hx,{data:function(){return Z().contentItems}},{transcriptSegmentViewModel:function(C){return _.u(Bzc,{data:C.data,
active:w})},
videoAttributesSectionViewModel:n1y})))},"Yc");var E17=_.xl(function(q){var Z=q.data;q={};return _.u("timeline-chapter-view-model",{class:_.GL("ytwTimelineChapterViewModelHost")},_.u("div",{class:_.GL("ytwTimelineChapterViewModelTitle",(q.ytwTimelineChapterViewModelModern=_.b("enable_timeline_view_modern_transcript")||_.b("enable_timeline_view_modern_transcript_fe"),q))},function(){return Z().title}),_.u(_.Hx,{data:function(){return Z().contents}},{timelineItemViewModel:function(w){return _.u(QTD,{data:w.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(w){return _.u(n1y,{data:w.data})}}))},"Zc");var xj7=_.xl(function(q){var Z=q.data;var w=_.Iw(),r=_.g6(_.BwT,function(){var C;return(C=Z().markersEngagementPanelSyncEntityKey)!=null?C:""}),Y=function(){var C;
return((C=r())==null?void 0:C.activeItemIndex)===Z().index};
q=_.fn(function(C){var d,O,H,L,S;return _.V(function(v){if(v.nextAddress==1)return C.stopPropagation(),_.R0j(_.JL(C),w.value,["A".toString(),"BUTTON".toString()])?v.return():(d=_.oQ(Z().onTap))?_.W(v,_.mj(),2):v.return();O=v.yieldResult;L=(H=_.J(d,_.ck))==null?void 0:H.startTimeSeconds;L===void 0||(S=O)!=null&&S.seekTo(L,!0);_.ub(v)})});
return _.u("macro-markers-panel-item-view-model",{class:_.GL("ytwMacroMarkersPanelItemViewModelHost",{"is-active":Y}),el:w,"on:click":q,tabindex:0},_.u(_.Hx,{data:function(){var C;return(C=Z())==null?void 0:C.item}},{timelineChapterViewModel:function(C){return _.u(E17,{data:C.data,
active:Y})},
timelineItemViewModel:function(C){return _.u(QTD,{data:C.data,active:Y})},
videoAttributeViewModel:hzD}))},"$c");
xj7.idomCompat=!0;_.xc(xj7,"macro-markers-panel-item-view-model",{props:{data:_.zG}});_.xc(n1y,"yt-video-attributes-section-view-model",{props:{data:_.zG}});var Tzb=_.xl(function(q){var Z=function(){var w,r,Y;return(Y=(w=q.data().leadingLogoAccessibility)==null?void 0:(r=w.accessibilityData)==null?void 0:r.label)!=null?Y:""};
return _.u("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.u(_.PF,{cond:function(){return q.data().leadingLogo},
then:function(w){return _.u(_.aQ,{className:"ytwFantasySectionHeaderViewModelLogo",data:w,alt:Z})}}),_.u("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.u(_.r6,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return q.data().title}}),_.u(_.r6,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return q.data().subtitle}})),_.u(_.Hx,{data:function(){return q.data().trailingButton}},{buttonViewModel:function(w){return _.u(_.vx,{data:w.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"ad");var Uj6=_.xl(function(q){var Z={};Z=_.GL("ytwFantasyTeamViewModelHost",(Z.ytwFantasyTeamViewModelCompact=function(){var Y;return!((Y=q.compact)==null||!Y.call(q))},Z.ytwFantasyTeamViewModelUser=function(){return q.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},Z.ytwFantasyTeamViewModelOpponent=function(){return q.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},Z));
var w=function(){var Y,C,d;return(d=(Y=q.data().teamLogoAccessibility)==null?void 0:(C=Y.accessibilityData)==null?void 0:C.label)!=null?d:""},r=_.g6(np1,function(){return q.data().teamEntityKey});
return _.u("ytw-fantasy-team-view-model",{class:Z},_.u(_.PF,{cond:function(){return q.data().teamLogo},
then:function(Y){return _.u(_.aQ,{className:"ytwFantasyTeamViewModelLogo",data:Y,alt:w})}}),_.u("div",{class:"ytwFantasyTeamViewModelMetadata"},_.u("div",{class:"ytwFantasyTeamViewModelHeader"},_.u(_.r6,{className:"ytwFantasyTeamViewModelScore",
text:function(){var Y;return(Y=r())==null?void 0:Y.score}}),_.u(_.q0,{icon:function(){var Y;
return(Y=r())==null?void 0:Y.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.u(_.r6,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var Y;return(Y=r())==null?void 0:Y.projectedScore}})),_.u(_.r6,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return q.data().primaryText}}),_.u(_.r6,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return q.data().secondaryText}}),_.u(_.r6,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return q.data().tertiaryText}})),_.u(_.r6,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var Y;return(Y=r())==null?void 0:Y.score}}))},"bd");_.xc(_.xl(function(q){return _.u("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.u("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.u(_.Hx,{data:function(){return q.data().summaryHeader}},{fantasySectionHeaderViewModel:Tzb})),_.u(_.Hx,{data:function(){return q.data().userTeam}},{fantasyTeamViewModel:Uj6}),_.u(_.Hx,{data:function(){return q.data().opponentTeam}},{fantasyTeamViewModel:Uj6}))},"cd"),"fantasy-league-summary-view-model",{props:{data:_.zG}});var keC=_.xl(function(q){var Z=_.n5(q,{shape:{},useCustomTabRenderable:!1}),w=Z.shape;Z=Z.useCustomTabRenderable;var r=q.customTabRenderable,Y=function(){return w().disabled},C=function(){return w().selected},d=function(){return w().title},O=_.Iw();
q=_.fn(function(S){var v;if(!Y()&&((v=w().aTagConfig)==null?0:v.onclick))w().aTagConfig.onclick(S);return!1});
var H=_.fn(function(S){if(S.key==="Enter"||S.key==="ArrowUp"||S.key==="ArrowDown")S.preventDefault(),O.value.click();return!1}),L={};
return _.u("yt-tab-shape",{class:_.GL("yt-tab-shape-wiz",function(){return w().className},(L["yt-tab-shape-wiz__tab--last-tab"]=function(){return w().isLastTab},L["yt-tab-shape-wiz--host-disabled"]=Y,L["yt-tab-shape-wiz--host-clickable"]=!r,L)),
role:r?void 0:"tab","aria-selected":C!=null?C:!1,"aria-disabled":Y,tabindex:r?void 0:0,"on:click":q,"on:keydown":H,el:O,"tab-identifier":function(){return w().identifier},
"tab-title":d},_.u(_.PF,{cond:Z,then:function(){return r()},
else:function(){var S={},v={};return _.u(_.lS,null,_.u("div",{class:_.GL("yt-tab-shape-wiz__tab",(S["yt-tab-shape-wiz__tab--tab-selected"]=C,S))},d),_.u("div",{class:_.GL("yt-tab-shape-wiz__tab-bar",(v["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=C,v))}))}}))},"dd");
keC.idomCompat={callbacks:{customTabRenderable:!0}};_.sTu=_.xl(function(q){var Z=q.shape;q=_.P(_.qo(48,void 0,"S7XsSd"));var w=q.next().value,r=q.next().value;q=_.P(_.qo(0,void 0,"CzMxb"));var Y=q.next().value,C=q.next().value,d=function(){return Z().tabs},O=_.Iw(),H=function(){var L,S;
return(S=(L=d())==null?void 0:L.findIndex(function(v){return v.selected}))!=null?S:-1};
_.Ls(function(){var L=O.value.querySelectorAll("yt-tab-shape"),S=H()>-1?L[H()]:void 0;requestAnimationFrame(function(){r((S==null?void 0:S.getBoundingClientRect().width)||0)})});
_.L7(function(){var L=H();requestAnimationFrame(function(){var S=O.value.querySelectorAll("yt-tab-shape"),v;r(((v=L>-1?S[L]:void 0)==null?void 0:v.getBoundingClientRect().width)||0);for(var R=v=0;R<L;R++)v+=S[R].offsetWidth+24;_.zj("HTML_DIR")==="rtl"&&(v=-v);C(v)})});
q={};return _.u("yt-tab-group-shape",{class:_.GL("yt-tab-group-shape-wiz",(q["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return Z().isOverflowHidden},q)),
el:O},_.u(_.PF,{cond:d,then:function(L){return _.u(_.lS,null,_.u("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.u(_.dA,{each:L},function(S,v){return _.u(keC,{shape:function(){return Object.assign({},S,{isLastTab:v()===L().length-1})},
customTabRenderable:S.customTabRenderable,useCustomTabRenderable:!!S.customTabRenderable})})),_.u(KIl,{width:w,
sliderOffset:Y}))}}))},"ed");
_.sTu.idomCompat=!0;var KIl=_.xl(function(q){var Z=_.aA(q.sliderOffset,0),w=q.width;return _.u("div",{class:"yt-tab-group-shape-wiz__slider",style:_.y1({width:function(){return w()+"px"},
transform:function(){return"translateX("+Z()+"px)"}})})},"fd");var ITl=_.xl(function(q){var Z=function(){var C,d,O;return(O=(C=q.data().playerLogoAccessibility)==null?void 0:(d=C.accessibilityData)==null?void 0:d.label)!=null?O:""},w=_.g6(Qm8,function(){return q.data().playerEntityKey}),r={};
r=_.GL("ytwFantasyPlayerViewModelHost",(r.ytwFantasyPlayerViewModelPlaying=function(){var C;return!((C=w())==null||!C.isPlayerPlaying)},r.ytwFantasyPlayerViewModelOnField=function(){var C;
return((C=w())==null?void 0:C.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},r.ytwFantasyPlayerViewModelRedZone=function(){var C;
return((C=w())==null?void 0:C.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},r));
var Y=function(){var C,d,O,H=((C=_.t().resolve(_.Gj(_.RQ)))==null?0:C())?(d=q.data().playerLogoBackgroundColor)==null?void 0:d.darkTheme:(O=q.data().playerLogoBackgroundColor)==null?void 0:O.lightTheme;return H===void 0?"":_.uq(H)};
return _.u("ytw-fantasy-player-view-model",{class:r},_.u(_.PF,{cond:function(){return q.data().playerLogo},
then:function(C){return _.u("div",{class:"ytwFantasyPlayerViewModelLogo"},_.u("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.u(_.aQ,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.y1({"background-color":Y}),data:C,alt:Z})),_.u("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.u(_.q0,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.u("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.u("div",{class:"ytwFantasyPlayerViewModelHeader"},_.u(_.r6,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var C;return(C=q.data())==null?void 0:C.playerNameText}}),_.u(_.r6,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var C;return(C=q.data())==null?void 0:C.playerDescriptionText}})),_.u("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.u(_.r6,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var C;return(C=w())==null?void 0:C.gamePeriodText}}),_.u(_.r6,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var C;return(C=q.data())==null?void 0:C.opponentTeamText}}),_.u(_.r6,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var C;return(C=w())==null?void 0:C.gameStatusText}}),_.u(_.r6,{className:_.GL("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var C;return(C=w())==null?void 0:C.playerStatusText}})),_.u("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.u(_.r6,{text:function(){var C;
return(C=w())==null?void 0:C.playerStatsText}}))),_.u(_.r6,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var C;return(C=w())==null?void 0:C.fantasyScore}}))},"gd");var c2V=_.xl(function(q){return _.u("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.u(_.PF,{cond:function(){return q.data().players},
then:function(Z){return _.u(_.Hx,{data:Z},{fantasyPlayerViewModel:ITl})}}))},"hd");var MOS=_.xl(function(q){var Z=_.P(_.hE(function(){var Y;return(Y=q.data().selectedTabIdentifierKey)!=null?Y:""})),w=Z.next().value,r=Z.next().value;
_.oz(function(){var Y;(Y=q.setSelectedTabSignal)==null||Y.call(q,w)});
return _.u("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.u("div",{class:"ytTabbedViewModelTabGroup"},_.u(_.sTu,{shape:function(){var Y=q.data(),C=[],d={tabs:C};if(!Y.tabs)return d;Y=_.P(Y.tabs);for(var O=Y.next(),H={};!O.done;H={tabViewModel:void 0},O=Y.next())if(H.tabViewModel=_.J(O.value,fK7),H.tabViewModel){var L=O=void 0;C.push({aTagConfig:{onclick:function(S){return function(){var v;r((v=S.tabViewModel.tabIdentifier)!=null?v:"")}}(H)},
identifier:H.tabViewModel.tabIdentifier,selected:w()===H.tabViewModel.tabIdentifier,title:(L=(O=H.tabViewModel.title)==null?void 0:O.content)!=null?L:""})}return d}})),_.u(_.Hx,{data:function(){var Y,C=_.P((Y=q.data().tabs)!=null?Y:[]);
for(Y=C.next();!Y.done;Y=C.next())if((Y=_.J(Y.value,fK7))&&Y.tabIdentifier===w())return Y.content}},{fantasyRosterViewModel:c2V}))},"id");_.xc(_.xl(function(q){var Z=_.P(owj()),w=Z.next().value,r=Z.next().value;return _.u("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.u(_.r6,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return q.data().title}}),_.u(_.PF,{cond:function(){return q.data().tabbedViewModel},
then:function(Y){return _.u(_.Hx,{data:Y},{tabbedViewModel:function(C){return _.u(MOS,{data:C.data,setSelectedTabSignal:r})}})}}),_.u(_.PF,{cond:function(){var Y,C=(Y=_.J(q.data().tabbedViewModel,Dk1))==null?void 0:Y.tabs;
Y=_.J(C==null?void 0:C[0],fK7);C=_.J(C==null?void 0:C[1],fK7);var d=Y==null?void 0:Y.tabIdentifier;if(w()===d){var O,H;if(!((O=_.J(Y==null?void 0:Y.content,Vb7))==null?0:(H=O.players)==null?0:H.length))return q.data().noUserTeamPlayersText}else{var L,S;if(!((L=_.J(C==null?void 0:C.content,Vb7))==null?0:(S=L.players)==null?0:S.length))return q.data().noOpponentTeamPlayersText}},
then:function(Y){return _.u(_.r6,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:Y})}}))},"jd"),"ytw-fantasy-matchup-view-model",{props:{data:_.zG}});_.xc(_.xl(function(q){return _.u("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.u(_.r6,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return q.data().title}}),_.u(_.PF,{cond:function(){return q.data().matchupTeamPairs},
then:function(Z){return _.u(_.dA,{each:Z,keyBy:"INDEX"},function(w){return _.u("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.u(_.Hx,{data:function(){return[w().firstTeam,w().secondTeam]}},{fantasyTeamViewModel:function(r){return _.u(Uj6,{data:r.data,
compact:!0})}}))})}}))},"kd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.zG}});_.xc(_.xl(function(q){var Z=function(){var Y,C,d;return(d=(Y=q.data().userLogoAccessibility)==null?void 0:(C=Y.accessibilityData)==null?void 0:C.label)!=null?d:""},w=function(){var Y,C,d;
return(d=(Y=q.data().opponentLogoAccessibility)==null?void 0:(C=Y.accessibilityData)==null?void 0:C.label)!=null?d:""},r=_.g6(a62,function(){return q.data().entityKey});
return _.u("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.u("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.u(_.PF,{cond:function(){return q.data().userLogo},
then:function(Y){return _.u(_.aQ,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Y,alt:Z})}}),_.u("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.u(_.r6,{text:function(){return q.data().title}})),_.u(_.PF,{cond:function(){return q.data().opponentLogo},
then:function(Y){return _.u(_.aQ,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Y,alt:w})}})),_.u("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.u("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.u(_.r6,{text:function(){var Y;
return(Y=r())==null?void 0:Y.userWinNumberLabel}})),_.u("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.u("div",{class:_.GL("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.y1({flex:function(){var Y,C;return(C=(Y=r())==null?void 0:Y.userWinNumber)!=null?C:50}})}),_.u("div",{class:_.GL("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.y1({flex:function(){var Y,C;return(C=(Y=r())==null?void 0:Y.opponentWinNumber)!=null?C:50}})})),_.u("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.u(_.r6,{text:function(){var Y;
return(Y=r())==null?void 0:Y.opponentWinNumberLabel}}))))},"ld"),"fantasy-win-probability-view-model",{props:{data:_.zG}});_.He("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var FIl=function(){var q=_.N.apply(this,arguments)||this;q.darkerPanels=_.b("web_watch_darker_panels");q.commentsHidePanelButton=!1;q.isWatchGrid=!1;q.continuationShowButton=!1;q.isSearch=!1;q.isConstrainedList=!1;q.isWatch=!1;q.eligibleToSwitchToGrid=!1;q.epRestyle=!1;q.isCarouselInFeed=!0;q.topSpacingZero=!1;q.continuationIsInitialLoad=!0;q.enableSqueezebackPanels=_.b("web_shorts_enable_squeezeback_panels");q.enableAnchoredPanel=_.b("desktop_shorts_v2_anchored_panel");q.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};q.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return q};
_.z(FIl,_.N);_.e=FIl.prototype;_.e.updateLockupContainerTypes=function(q){if(this.eligibleToSwitchToGrid){var Z;(Z=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||Z.forEach(function(w){w.containerType=q})}};
_.e.getItemsPath=function(){return"data.contents"};
_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.e.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]]",
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",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:"ytd-channel-featured-content-renderer",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:"yt-section-header-view-model",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]]"}},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"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.b("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.b("kevlar_low_priority_continuation")}}};
_.e.created=function(){this.JSC$14353_cachedViewportHeight=_.zj("initialInnerHeight")||window.innerHeight};
_.e.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var q=_.E(this.hostElement).querySelector("ytd-comments-header-renderer");q&&(q.hidePanelButton=this.commentsHidePanelButton)}};
_.e.onRetrieveLocation=function(q,Z){this.containsComments()&&(this.firstCommentsLoaded=Z.hasComments=!0)};
_.e.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.e.onLoadReloadContinuation=function(q,Z){var w=this;q.stopPropagation();this.isReloading=!0;_.hy(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(r){var Y=_.t().resolve(_.Co);r=Z(r);Y.postData(r).then(function(C){w.onReloadContinuationData(C)})}})};
_.e.onReloadContinuationData=function(q){if(q=this.get("response.continuationContents.itemSectionContinuation",q)||this.get("response.contents.itemSectionRenderer",q)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",q)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",q))this.set("data.contents",q.contents||q.results),q.header&&this.set("data.header",q.header),this.set("data.continuations",
q.continuations||[]);this.isReloading=!1};
_.e.computeContentsClass=function(q){return q?"reloading":""};
_.e.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.e.computeSectionIdentifier=function(q){return q==null?void 0:q.sectionIdentifier};
_.e.computeFitContainer=function(q){return(q==null?void 0:q.sectionIdentifier)==="youchat-item-section"};
_.e.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.b("kevlar_disable_comments_auto_load")};
_.e.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.e.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.e.computeHasDestinationShelfRenderer=function(q){var Z,w;return!!(q==null?0:(Z=q.contents)==null?0:(w=Z[0])==null?0:w.destinationShelfRenderer)};
_.e.computeHasSectionGroupViewModel=function(q){var Z,w;return!!(q==null?0:(Z=q.contents)==null?0:(w=Z[0])==null?0:w.sectionGroupViewModel)};
_.e.computeStaticCommentsHeader=function(q){return q&&this.containsComments()};
_.e.computeEpRestyle=function(q){return _.b("web_ep_restyling")&&q&&this.containsComments()};
_.e.computeIsContinuationCommentSection=function(q){return(q==null?void 0:q.targetId)==="shorts-engagement-panel-comments-section"||(q==null?void 0:q.targetId)==="comments-section"};
_.e.computeSuppressPaddingDisclaimer=function(){var q,Z,w,r;return!!((q=this.data)==null?0:(Z=q.contents)==null?0:(w=Z[0])==null?0:(r=w.productListHeaderRenderer)==null?0:r.suppressPaddingDisclaimer)};
_.e.computeHeaderStyle=function(q){switch(q==null?void 0:q.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.e.dataChanged=function(){this.firstCommentsLoaded=!1};
_.e.observeDataContentsLength=function(){var q,Z;((q=this.data)==null?0:(Z=q.contents)==null?0:Z.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.e.onYtDismissibleItemDismissedChange=function(q){this._setItemDismissed(q.type==="yt-dismissible-item-dismissed")};
_.e.triggerContinuations=function(){for(var q=_.E(this.hostElement).querySelector("#continuations").children,Z=0;Z<q.length;Z++)q[Z].trigger()};
_.e.triggerInitialContinuations=function(){for(var q=_.E(this.hostElement).querySelector("#continuations").children,Z=0;Z<q.length;Z++)q[Z].triggerIfNotPreviouslyTriggered()};
_.e.handleYtItemSectionContinuation=function(q,Z){var w;Z&&((w=this.data)==null?void 0:w.sectionIdentifier)!==Z||(this.set("data.continuations",[q]),this.triggerContinuations())};
_.e.handleYtItemSectionReplace=function(q,Z){var w;Z&&((w=this.data)==null?void 0:w.sectionIdentifier)!==Z||(this.set("data.contents",q),this.set("data.continuations",[]))};
_.e.computeUseHeightHack=function(q){return q&&!_.b("kevlar_disable_height_hack")};
_.e.computeTopSpacingZero=function(q){return q};
_.e.continuationShowButtonChanged=function(){var q=_.E(this.hostElement).querySelector("ytd-continuation-item-renderer");q&&(q.showButton=this.continuationShowButton)};
_.e.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("data-changed",this.data))};
_.My.Object.defineProperties(FIl.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.b("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return!!((q=this.data)==null?0:(Z=q.contents)==null?0:(w=Z[0])==null?0:w.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r,Y,C,d;return!!((q=this.data)==null?0:(Z=q.contents)==null?0:(w=Z[0])==null?0:(r=w.shelfRenderer)==null?0:(Y=r.content)==null?0:(C=Y.gridRenderer)==null?0:(d=C.targetId)==null?0:d.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return!!((q=this.data)==null?0:(Z=q.contents)==null?0:(w=Z[0])==null?0:w.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return!!((q=this.data)==null?0:(Z=q.contents)==null?0:(w=Z[0])==null?0:w.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Af("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.b("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.b("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14353_cachedViewportHeight-130)/150)},
set:function(){}}});
var Pm=FIl;Pm.prototype.dataChangedForBinding=Pm.prototype.dataChangedForBinding;Pm.prototype.continuationShowButtonChanged=Pm.prototype.continuationShowButtonChanged;Pm.prototype.onYtDismissibleItemDismissedChange=Pm.prototype.onYtDismissibleItemDismissedChange;Pm.prototype.observeDataContentsLength=Pm.prototype.observeDataContentsLength;Pm.prototype.dataChanged=Pm.prototype.dataChanged;Pm.prototype.onServiceRequestCompleted=Pm.prototype.onServiceRequestCompleted;
Pm.prototype.onLoadReloadContinuation=Pm.prototype.onLoadReloadContinuation;Pm.prototype.onRetrieveLocation=Pm.prototype.onRetrieveLocation;Pm.prototype.commentsHidePanelButtonChanged=Pm.prototype.commentsHidePanelButtonChanged;Pm.prototype.updateLockupContainerTypes=Pm.prototype.updateLockupContainerTypes;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Pm.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Pm.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.cj.YtLazyListBehavior),_.A("design:type",Object)],Pm.prototype,"ytLazyListBehavior",void 0);_.X([_.U(_.FP.YtNextContinuationBehavior),_.A("design:type",Object)],Pm.prototype,"ytNextContinuationBehavior",void 0);
_.X([_.U(_.Ms),_.A("design:type",Object)],Pm.prototype,"ytContinuationHandlerBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Pm.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],Pm.prototype,"ytdReduxBehavior",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Pm.prototype,"darkerPanels",void 0);_.X([_.F(),_.A("design:type",Object)],Pm.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Boolean)],Pm.prototype,"engagementPanel",void 0);_.X([_.F(),_.A("design:type",Object)],Pm.prototype,"commentsHidePanelButton",void 0);_.X([_.F(),_.A("design:type",Object)],Pm.prototype,"isWatchGrid",void 0);_.X([_.F(),_.A("design:type",Object)],Pm.prototype,"continuationShowButton",void 0);_.X([_.F({computed:"computeIsContinuationCommentSection(data)"}),_.A("design:type",Boolean)],Pm.prototype,"continuationIsCommentsSection",void 0);
_.X([_.F({value:!0}),_.A("design:type",Boolean)],Pm.prototype,"autoFill",void 0);_.X([_.F(),_.A("design:type",Boolean)],Pm.prototype,"continuationDisablePrescanVisibility",void 0);_.X([_.F(),_.A("design:type",Boolean)],Pm.prototype,"isReloading",void 0);_.X([_.F(),_.A("design:type",Object)],Pm.prototype,"isSearch",void 0);_.X([_.F(),_.A("design:type",Object)],Pm.prototype,"isConstrainedList",void 0);_.X([_.F(),_.A("design:type",Object)],Pm.prototype,"isWatch",void 0);
_.X([_.F(),_.A("design:type",Object)],Pm.prototype,"eligibleToSwitchToGrid",void 0);_.X([_.F({selector:_.tL}),_.A("design:type",Object)],Pm.prototype,"isGridViewEnabled",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.A("design:type",Object)],Pm.prototype,"epRestyle",void 0);_.X([_.I("isWatch"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Pm.prototype,"hideShortsShelfHeader",null);
_.X([_.I("isSearch","isWatch"),_.A("design:type",String),_.A("design:paramtypes",[])],Pm.prototype,"thumbnailWidth",null);_.X([_.I("isSearch","isWatch"),_.A("design:type",String),_.A("design:paramtypes",[])],Pm.prototype,"sizing",null);_.X([_.I("isWatch","isGridViewEnabled","data"),_.F({reflectToAttribute:!0}),_.A("design:type",Number),_.A("design:paramtypes",[])],Pm.prototype,"lockupContainerType",null);
_.X([_.M("lockupContainerType","data"),_.A("design:type",Function),_.A("design:paramtypes",[Number]),_.A("design:returntype")],Pm.prototype,"updateLockupContainerTypes",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],Pm.prototype,"pageSubtype",void 0);_.X([_.F({computed:"computeContainerWidth()"}),_.A("design:type",Number)],Pm.prototype,"containerWidth",void 0);_.X([_.F(),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Pm.prototype,"isPlaylist",null);
_.X([_.F(),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Pm.prototype,"isClipList",null);_.X([_.F(),_.A("design:type",Object)],Pm.prototype,"isCarouselInFeed",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Pm.prototype,"isPlaylistVideoContainer",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Pm.prototype,"isSearchFrictionPage",null);
_.X([_.F({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.A("design:type",Boolean)],Pm.prototype,"useHeightHack",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.A("design:type",Object)],Pm.prototype,"topSpacingZero",void 0);_.X([_.F({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.A("design:type",Boolean)],Pm.prototype,"showButton",void 0);
_.X([_.F(),_.A("design:type",Boolean)],Pm.prototype,"firstCommentsLoaded",void 0);_.X([_.F(),_.A("design:type",Object)],Pm.prototype,"continuationIsInitialLoad",void 0);_.X([_.F(),_.A("design:type",Boolean)],Pm.prototype,"isSearchDova",void 0);_.X([_.F({reflectToAttribute:!0,readOnly:!0}),_.A("design:type",Boolean)],Pm.prototype,"itemDismissed",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.A("design:type",String)],Pm.prototype,"sectionIdentifier",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.A("design:type",String)],Pm.prototype,"fitContainer",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.A("design:type",Boolean)],Pm.prototype,"hasDestinationShelfRenderer",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.A("design:type",Boolean)],Pm.prototype,"staticCommentsHeader",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Pm.prototype,"enableSqueezebackPanels",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Pm.prototype,"enableAnchoredPanel",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.A("design:type",Boolean)],Pm.prototype,"hasSectionGroupViewModel",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.A("design:type",Boolean)],Pm.prototype,"suppressDisclaimerSeparator",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.A("design:type",String)],Pm.prototype,"headerStyle",void 0);_.X([_.I("isSearch"),_.A("design:type",Object),_.A("design:paramtypes",[])],Pm.prototype,"lockupExperiments",null);
_.X([_.I("isSearch"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Pm.prototype,"typographyBump",null);_.X([_.fo("#header"),_.A("design:type",HTMLElement)],Pm.prototype,"header",void 0);_.X([_.M("commentsHidePanelButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pm.prototype,"commentsHidePanelButtonChanged",null);
_.X([_.m2("yt-retrieve-location"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Pm.prototype,"onRetrieveLocation",null);_.X([_.m2("yt-load-reload-continuation"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Function]),_.A("design:returntype")],Pm.prototype,"onLoadReloadContinuation",null);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pm.prototype,"onServiceRequestCompleted",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pm.prototype,"dataChanged",null);_.X([_.g3("data.contents.length"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pm.prototype,"observeDataContentsLength",null);
_.X([_.m2("yt-dismissible-item-dismissed"),_.m2("yt-dismissible-item-undismissed"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Pm.prototype,"onYtDismissibleItemDismissedChange",null);_.X([_.M("continuationShowButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pm.prototype,"continuationShowButtonChanged",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pm.prototype,"dataChangedForBinding",null);Pm=_.X([_.l({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Pm);
_.p(Pm,"ytd-item-section-renderer",function(){if(Yw7!==void 0)return Yw7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Yw7=q},{mode:1});var Nzb;var jUO=_.UE(_.dT("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var uzN={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var lT7={},vw8=(lT7[0]={title:_.G7(_.dT("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.G7(_.dT("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:NM("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},lT7[1]={title:_.G7(_.dT("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:NM("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},lT7);_.He("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var dH=function(){var q=_.N.apply(this,arguments)||this;q.allVideosCount=0;q.allPlaylistCount=0;q.shouldRenderDownloadsBanner=!1;q.hasOptedIntoSmartDownloads=!1;q.areAllSmartDownloadsDeleted=!1;q.smartDownloadsCompleted=!1;return q};
_.z(dH,_.N);dH.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
dH.prototype.attached=function(){this.downloadsToRenderChanged()};
dH.prototype.detached=function(){this.set("renderableData",{})};
dH.prototype.downloadsToRenderChanged=function(){var q=_.sE().getState().entities,Z=_.oZ(q),w=_.b("kevlar_playlist_dl_page_killswitch")?zp2(q):_.uF(q),r=_.jaT(q),Y=_.dt(Z);q=_.Lz(q);this.set("renderableData",RaI(w,Z,r,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,Y,q))};
var VZ=dH;VZ.prototype.downloadsToRenderChanged=VZ.prototype.downloadsToRenderChanged;_.X([_.U(_.LO),_.A("design:type",Object)],VZ.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],VZ.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],VZ.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],VZ.prototype,"renderableData",void 0);_.X([_.F({selector:_.cD2}),_.A("design:type",Object)],VZ.prototype,"allVideosCount",void 0);_.X([_.F({selector:lH9}),_.A("design:type",Object)],VZ.prototype,"allPlaylistCount",void 0);_.X([_.F({selector:_.XVT}),_.A("design:type",Object)],VZ.prototype,"shouldRenderDownloadsBanner",void 0);_.X([_.F({selector:_.mk9}),_.A("design:type",Object)],VZ.prototype,"hasOptedIntoSmartDownloads",void 0);
_.X([_.F({selector:_.ADT}),_.A("design:type",Object)],VZ.prototype,"areAllSmartDownloadsDeleted",void 0);_.X([_.F({selector:fKj}),_.A("design:type",Object)],VZ.prototype,"smartDownloadsCompleted",void 0);_.X([_.g3("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],VZ.prototype,"downloadsToRenderChanged",null);
VZ=_.X([_.l({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],VZ);
_.p(VZ,"ytd-offline-item-section-renderer",function(){if(Nzb!==void 0)return Nzb;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Nzb=q},
{mode:1});var Ge8;var p6Z;var X6Z=function(){return _.N.apply(this,arguments)||this};
_.z(X6Z,_.N);
X6Z.prototype.onDataChanged=function(){if(this.JSC$14379_lastData){var q=this.getFilterClass(this.JSC$14379_lastData.status);q&&this.hostElement.classList.remove(q)}var Z;(q=this.getFilterClass((Z=this.data)==null?void 0:Z.status))&&this.hostElement.classList.add(q);q==="selected"?_.E(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.E(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");q==="disabled"?_.E(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.E(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14379_lastData=this.data};
X6Z.prototype.getFilterClass=function(q){switch(q){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
var Oa=X6Z;Oa.prototype.onDataChanged=Oa.prototype.onDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Oa.prototype,"data",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Oa.prototype,"onDataChanged",null);Oa=_.X([_.l({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],Oa);
_.p(Oa,"ytd-search-filter-renderer",function(){if(p6Z!==void 0)return p6Z;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return p6Z=q},{mode:_.NT("kevlar_poly_si_batch_j075")?1:2});var mjl=function(){return _.N.apply(this,arguments)||this};
_.z(mjl,_.N);var Hm=mjl;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Hm.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Hm.prototype,"data",void 0);Hm=_.X([_.l({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Hm);
_.p(Hm,"ytd-search-filter-group-renderer",function(){if(Ge8!==void 0)return Ge8;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Ge8=q},{mode:_.NT("kevlar_poly_si_batch_j075")?1:2});var A2b;var Wm=function(){return _.N.apply(this,arguments)||this};
_.z(Wm,_.N);Wm.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.g2());this.isCollapsed=!this.isCollapsed};
Wm.prototype.navigateToAboutTheseResultsPage=function(){var q=nA("https://www.youtube.com/howyoutubeworks/product-features/search/");q?_.NK(window,q,"_blank"):_.ns(Error("Rh"))};
Wm.prototype.dataChanged=function(){this.isCollapsed=!0};
Wm.prototype.computeShowBottomBorder=function(){var q,Z,w;return!!((q=this.data)==null?0:(Z=q.button)==null?0:Z.toggleButtonRenderer)||!((w=this.data)==null||!w.aboutTheseResultsButton)};
var oY=Wm;oY.prototype.dataChanged=oY.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],oY.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],oY.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.A("design:type",Boolean)],oY.prototype,"showBottomBorder",void 0);_.X([_.F(),_.A("design:type",Boolean)],oY.prototype,"renderCollapsibleMenu",void 0);
_.X([_.F(),_.A("design:type",Boolean)],oY.prototype,"isCollapsed",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oY.prototype,"dataChanged",null);oY=_.X([_.l({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],oY);
_.p(oY,"ytd-search-sub-menu-renderer",function(){if(A2b!==void 0)return A2b;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return A2b=q},{mode:1});var fTl;var Dj8=new _.F$("SECTION_LIST_RENDERER_TOKEN");var h8Z;var y2u=function(){return _.N.apply(this,arguments)||this};
_.z(y2u,_.N);y2u.prototype.computeStyle=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
var uH=y2u;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],uH.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],uH.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],uH.prototype,"headerStyle",void 0);uH=_.X([_.l({is:"ytd-text-header-renderer",disableElementRegistration:!0})],uH);
_.p(uH,"ytd-text-header-renderer",function(){if(h8Z!==void 0)return h8Z;var q=document.createElement("template");_.a(q,"\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");q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return h8Z=q},{mode:1});var iXF;var g1l=function(){return _.N.apply(this,arguments)||this};
_.z(g1l,_.N);var L8=g1l;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],L8.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],L8.prototype,"data",void 0);L8=_.X([_.l({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],L8);
_.p(L8,"ytd-minor-moment-header-renderer",function(){if(iXF!==void 0)return iXF;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return iXF=q},{mode:1});var qpq;var Z9F=function(){return _.N.apply(this,arguments)||this};
_.z(Z9F,_.N);var Sq=Z9F;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Sq.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Sq.prototype,"data",void 0);Sq=_.X([_.l({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],Sq);
_.p(Sq,"ytd-minor-moment-setting-alert-renderer",function(){if(qpq!==void 0)return qpq;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return qpq=q},{mode:1});var w1F;var rKb;var Yp6=function(){var q=_.N.apply(this,arguments)||this;q.booleanSettingById=!1;q.smartDownloadsEnabledVE=_.C6(128287);q.smartDownloadsDisabledVE=_.C6(128286);q.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return q};
_.z(Yp6,_.N);_.e=Yp6.prototype;_.e.attachSmartDownloadsSettingVes=function(){var q;this.activeVeForLogging||((q=this.data)==null?void 0:q.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.AA(_.iy(),this.smartDownloadsEnabledVE),_.AA(_.iy(),this.smartDownloadsDisabledVE))};
_.e.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.hy(this.hostElement,"yt-settings-switch-ready")};
_.e.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.e.onSwitchChange=function(q){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(q=_.xz(q).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.b("kevlar_settings_switch_resolve_command_killswitch")?_.t().resolve(_.ps).resolveCommand(q,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(q)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.e.handleUpdateSettingsSwitch=function(q){(q=_.J(q,x12))&&this.data&&this.data.id===q.id&&this.set("data.enabled",!!q.enabled)};
_.e.onToggleSettingsSwitch=function(q,Z){this.data&&this.data.id===q&&this.set("data.enabled",Z!=null?Z:!this.data.enabled)};
_.e.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.sN.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.e.maybeLogSmartDownloadsSettingVisibility=function(){var q=_.b5(),Z;q&&((Z=this.data)==null?void 0:Z.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.kK(q,[this.smartDownloadsEnabledVE]),_.KR(q,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.kK(q,[this.smartDownloadsDisabledVE]),_.KR(q,[this.smartDownloadsEnabledVE])))};
_.e.maybeLogSmartDownloadsSettingClick=function(){var q;((q=this.data)==null?void 0:q.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.D1(_.iy(),this.activeVeForLogging)};
_.e.updateDataEnabledFromBinding=function(q){this.set("data.enabled",q.detail.value)};
_.My.Object.defineProperties(Yp6.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var q=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!q&&(q=this.ytRendererBehavior.getSimpleString(this.data.title));return q}}});
var vm=Yp6;vm.prototype.dataChanged=vm.prototype.dataChanged;_.X([_.U(_.LO),_.A("design:type",Object)],vm.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],vm.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],vm.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],vm.prototype,"ytComponentBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],vm.prototype,"data",void 0);_.X([_.F({selector:function(q,Z){if(Object.keys(q==null?void 0:q.entities).length)switch(Z){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return BFX(q.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.A("design:type",Object)],vm.prototype,"booleanSettingById",void 0);_.X([_.F(),_.A("design:type",_.ty)],vm.prototype,"activeVeForLogging",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],vm.prototype,"toggleAriaLabel",null);_.X([_.g3("data"),_.g3("booleanSettingById"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vm.prototype,"dataChanged",null);
vm=_.X([_.l({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],vm);
_.p(vm,"ytd-settings-switch-renderer",function(){if(rKb!==void 0)return rKb;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return rKb=q},{mode:1});var $7S=function(){return _.N.apply(this,arguments)||this};
_.z($7S,_.N);$7S.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}}}}};
_.My.Object.defineProperties($7S.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var q=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(q+=" remove-left-margin");this.data.extraBottomSpace&&(q+=" extra-bottom-space");return q}}});
var jq=$7S;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],jq.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],jq.prototype,"data",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],jq.prototype,"contentsClassName",null);jq=_.X([_.l({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],jq);
_.p(jq,"ytd-minor-moment-setting-section-renderer",function(){if(w1F!==void 0)return w1F;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return w1F=q},{mode:1});var emF;var CXD=function(){return _.N.apply(this,arguments)||this};
_.z(CXD,_.N);var tS=CXD;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],tS.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],tS.prototype,"data",void 0);tS=_.X([_.l({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],tS);
_.p(tS,"ytd-empty-product-details-renderer",function(){if(emF!==void 0)return emF;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return emF=q},{mode:1});var PX6;var d7C;var V2C=function(){var q=_.N.apply(this,arguments)||this;q.expanded=!0;return q};
_.z(V2C,_.N);V2C.prototype.getBadgeRowClass=function(q,Z,w){for(var r=_.P(this.hostElement.querySelectorAll("yt-img-shadow")),Y=r.next();!Y.done;Y=r.next())Y.value.onShow();q=q.selected;return w?q!==-1?q===Z?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(q!==void 0?q:0)===Z?"badge-line":"badge-hidden"};
var RY=V2C;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],RY.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],RY.prototype,"expanded",void 0);RY=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],RY);
_.p(RY,"ytd-sponsorships-loyalty-badges-renderer",function(){if(d7C!==void 0)return d7C;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return d7C=q},{mode:1});var O97;var H9q=function(){var q=_.N.apply(this,arguments)||this;q.expanded=!0;return q};
_.z(H9q,_.N);H9q.prototype.getContainerClasses=function(q,Z){q=q?"expanded":"collapsed";Z&&(q+=" item");return q};
var bH=H9q;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],bH.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],bH.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],bH.prototype,"expanded",void 0);bH=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],bH);
_.p(bH,"ytd-sponsorships-perk-renderer",function(){if(O97!==void 0)return O97;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return O97=q},{mode:1});var Wvb;var og8=function(){var q=_.N.apply(this,arguments)||this;q.expanded=!0;return q};
_.z(og8,_.N);var JS=og8;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],JS.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],JS.prototype,"expanded",void 0);JS=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],JS);
_.p(JS,"ytd-sponsorships-perks-renderer",function(){if(Wvb!==void 0)return Wvb;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Wvb=q},{mode:1});var z4=function(){var q=_.N.apply(this,arguments)||this;q.isCollapsed=!1;return q};
_.z(z4,_.N);z4.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
z4.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
z4.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var q;this.expandCollapseButton=_.J((q=this.data)==null?void 0:q.expandButton,_.tA)}else{var Z;this.expandCollapseButton=_.J((Z=this.data)==null?void 0:Z.collapseButton,_.tA)}};
var Bm=z4;Bm.prototype.updateExpandCollapseButton=Bm.prototype.updateExpandCollapseButton;Bm.prototype.onDataChanged=Bm.prototype.onDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Bm.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Bm.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Bm.prototype,"isCollapsed",void 0);_.X([_.F(),_.A("design:type",Object)],Bm.prototype,"expandCollapseButton",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Bm.prototype,"onDataChanged",null);_.X([_.g3("data","isCollapsed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Bm.prototype,"updateExpandCollapseButton",null);Bm=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Bm);
_.p(Bm,"ytd-sponsorships-expandable-perks-renderer",function(){if(PX6!==void 0)return PX6;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return PX6=q},{mode:1});var u7l;var LvZ=function(){return _.N.apply(this,arguments)||this};
_.z(LvZ,_.N);LvZ.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
var aY=LvZ;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],aY.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],aY.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],aY.prototype,"data",void 0);aY=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],aY);
_.p(aY,"ytd-sponsorships-actionable-message-renderer",function(){if(u7l!==void 0)return u7l;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return u7l=q},{mode:1});var Sp7;var vg6=function(){return _.N.apply(this,arguments)||this};
_.z(vg6,_.N);_.e=vg6.prototype;_.e.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.e.getExpansionIcon=function(q){return q?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.e.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.e.computeMessageContainerStyle=function(q){var Z=q.expandableItems?" style-clickable":"";return q.messageContainerStyle?q.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+Z:"style-unspecified"+Z};
_.e.isSinglePerk=function(q){return!!q.messageContainerStyle&&(q.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||q.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.e.onExpandedChanged=function(){var q=this;if(this.expanded)for(var Z=_.P(this.hostElement.querySelectorAll("yt-img-shadow")),w=Z.next();!w.done;w=Z.next())w.value.onShow();_.I_(this,function(){_.hy(q.hostElement,"yt-refit")})};
_.e.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
var n8=vg6;n8.prototype.onDataChanged=n8.prototype.onDataChanged;n8.prototype.onExpandedChanged=n8.prototype.onExpandedChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],n8.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],n8.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],n8.prototype,"expanded",void 0);
_.X([_.M("expanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],n8.prototype,"onExpandedChanged",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],n8.prototype,"onDataChanged",null);n8=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],n8);
_.p(n8,"ytd-sponsorships-expandable-message-renderer",function(){if(Sp7!==void 0)return Sp7;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Sp7=q},{mode:_.NT("kevlar_poly_si_batch_j028")?1:2});var jhZ;var t2D=function(){return _.N.apply(this,arguments)||this};
_.z(t2D,_.N);t2D.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"}}}}};
t2D.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.J(this.data.endButton,_.tA).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
var QZ=t2D;QZ.prototype.onDataChanged=QZ.prototype.onDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],QZ.prototype,"data",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QZ.prototype,"onDataChanged",null);
QZ=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],QZ);
_.p(QZ,"ytd-sponsorships-heading-renderer",function(){if(jhZ!==void 0)return jhZ;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return jhZ=q},{mode:1});var Rm7;var b98=function(){return _.N.apply(this,arguments)||this};
_.z(b98,_.N);var Ea=b98;_.X([_.F(),_.A("design:type",Object)],Ea.prototype,"data",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ea.prototype,"ytRendererBehavior",void 0);Ea=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Ea);
_.p(Ea,"ytd-sponsorships-links-renderer",function(){if(Rm7!==void 0)return Rm7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Rm7=q},{mode:1});var JK7;var zmb=function(){return _.N.apply(this,arguments)||this};
_.z(zmb,_.N);_.e=zmb.prototype;_.e.onDataChanged=function(){if(this.data&&this.data.expandableItems){var q;(q=_.E(this.hostElement).querySelector("tp-yt-paper-button"))==null||q.setAttribute("role","button")}else{var Z;(Z=_.E(this.hostElement).querySelector("tp-yt-paper-button"))==null||Z.removeAttribute("role")}};
_.e.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.e.getExpansionIcon=function(q){return q?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.e.getTileClasses=function(q){return q?"tile expandable-tile":"tile"};
_.e.getButtonDisabled=function(q){return q?void 0:""};
var xt=zmb;xt.prototype.onDataChanged=xt.prototype.onDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],xt.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],xt.prototype,"expanded",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xt.prototype,"onDataChanged",null);
xt=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],xt);
_.p(xt,"ytd-sponsorships-list-tile-renderer",function(){if(JK7!==void 0)return JK7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return JK7=q},{mode:1});var BW7;var aeD;var ngD=function(){return _.N.apply(this,arguments)||this};
_.z(ngD,_.N);ngD.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var T4=ngD;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],T4.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],T4.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],T4.prototype,"data",void 0);T4=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],T4);
_.p(T4,"ytd-sponsorships-promotion-renderer",function(){if(aeD!==void 0)return aeD;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return aeD=q},{mode:1});var Qh6;var Egu=function(){return _.N.apply(this,arguments)||this};
_.z(Egu,_.N);Egu.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var Ua=Egu;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ua.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ua.prototype,"data",void 0);Ua=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Ua);
_.p(Ua,"ytd-sponsorships-purchase-option-renderer",function(){if(Qh6!==void 0)return Qh6;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Qh6=q},{mode:1});var x7l;var TW8;var U7F=function(){return _.N.apply(this,arguments)||this};
_.z(U7F,_.N);var kJS=U7F;_.X([_.F(),_.A("design:type",Object)],kJS.prototype,"data",void 0);kJS=_.X([_.l({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],kJS);
_.p(kJS,"ytd-ypc-offer-promo-renderer",function(){if(TW8!==void 0)return TW8;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return TW8=q},{mode:1});var KvC=function(){return _.N.apply(this,arguments)||this};
_.z(KvC,_.N);_.e=KvC.prototype;
_.e.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"}}}}};
_.e.expansionCTA=function(q,Z){return q&&(Z?q.collapseCallToAction:q.expansionCallToAction)};
_.e.getExpansionIcon=function(q){return q?"arrow_drop_up":"arrow_drop_down"};
_.e.expansionCallToActionTap=function(){var q=this;this.expanded=!this.expanded;_.I_(this,function(){_.hy(q.hostElement,"yt-refit")})};
_.e.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var q,Z=(q=this.data)==null?void 0:q.onVisible;Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.e.computeDisplayTitle=function(q){return!(!q||this.titledisplaystatus!=="show")};
_.e.computeDisplaySeparator=function(){return!1};
_.e.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
var kt=KvC;kt.prototype.onDataChanged=kt.prototype.onDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],kt.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],kt.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],kt.prototype,"data",void 0);
_.X([_.F({value:!1}),_.A("design:type",Boolean)],kt.prototype,"expanded",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],kt.prototype,"purchaseButtonClicked",void 0);_.X([_.F({reflectToAttribute:!0,value:"show"}),_.A("design:type",String)],kt.prototype,"titledisplaystatus",void 0);_.X([_.F({computed:"computeDisplayTitle(data.title)"}),_.A("design:type",Boolean)],kt.prototype,"displayTitle",void 0);
_.X([_.F({computed:"computeDisplaySeparator(data)"}),_.A("design:type",Boolean)],kt.prototype,"displaySeparator",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kt.prototype,"onDataChanged",null);kt=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],kt);
_.p(kt,"ytd-sponsorships-tier-renderer",function(){if(x7l!==void 0)return x7l;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return x7l=q},{mode:2});var shy=function(){return _.N.apply(this,arguments)||this};
_.z(shy,_.N);
shy.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"}}}}};
var K8=shy;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],K8.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],K8.prototype,"data",void 0);K8=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],K8);
_.p(K8,"ytd-sponsorships-management-renderer",function(){if(BW7!==void 0)return BW7;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return BW7=q},{mode:1});var Ie6;var cKZ=function(){return _.N.apply(this,arguments)||this};
_.z(cKZ,_.N);var sa=cKZ;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],sa.prototype,"data",void 0);sa=_.X([_.l({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],sa);
_.p(sa,"ytd-open-in-native-app-view-model",function(){if(Ie6!==void 0)return Ie6;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Ie6=q},{mode:_.NT("kevlar_poly_si_batch_j028")?1:2});var M2F;var FvC;var NWD=_.Fr(["top-"]),leF=_.Fr(["bottom-"]),GJS=_.Fr(["left-"]),p1S=_.Fr(["right-"]),X1S={},m7q=function(q,Z,w){q.removeAttribute("top-"+w);q.removeAttribute("bottom-"+w);q.removeAttribute("left-"+w);q.removeAttribute("right-"+w);Z&&(Z.top&&_.DF([_.ib(NWD)],q,"top-"+w,Z.top),Z.bottom&&_.DF([_.ib(leF)],q,"bottom-"+w,Z.bottom),Z.left&&_.DF([_.ib(GJS)],q,"left-"+w,Z.left),Z.right&&_.DF([_.ib(p1S)],q,"right-"+w,Z.right))};
X1S.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(q){var Z,w=_.E((Z=this.hostElement)!=null?Z:this),r;Z=this.cardItemBoxBehaviorMarginTargetId&&w?w.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(r=this.hostElement)!=null?r:this;m7q(Z,q,"margin")},
cardItemContainerPaddingChanged_:function(q){var Z,w=_.E((Z=this.hostElement)!=null?Z:this),r;Z=this.cardItemBoxBehaviorPaddingTargetId&&w?w.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(r=this.hostElement)!=null?r:this;m7q(Z,q,"padding")}}];var IY={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 AKb;var feu;var D7S=function(){return _.N.apply(this,arguments)||this};
_.z(D7S,_.N);D7S.prototype.textColorChanged_=function(){this.hostElement.style.color=IY[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
var cm=D7S;cm.prototype.textColorChanged_=cm.prototype.textColorChanged_;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],cm.prototype,"ytRendererBehavior",void 0);_.X([_.U(X1S.YtCardItemBoxBehavior),_.A("design:type",Object)],cm.prototype,"ytCardItemBoxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],cm.prototype,"data",void 0);_.X([_.M("data.textColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cm.prototype,"textColorChanged_",null);
cm=_.X([_.dx({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],cm);
_.p(cm,"yt-card-item-text-renderer",function(){if(feu===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;AKb===void 0&&(AKb=document.createElement("template"));var r=AKb;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);feu=q}q=feu;return q},{mode:2});var hmF;var yKq;var i9C=function(){return _.N.apply(this,arguments)||this};
_.z(i9C,_.N);var Mw=i9C;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Mw.prototype,"data",void 0);Mw=_.X([_.dx({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],Mw);
_.p(Mw,"yt-card-item-badge-renderer",function(){if(yKq===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;hmF===void 0&&(hmF=document.createElement("template"));var r=hmF;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);yKq=q}q=yKq;return q},{mode:2});var ggl;var q6C;var Zlc=function(){return _.N.apply(this,arguments)||this};
_.z(Zlc,_.N);Zlc.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
var F2=Zlc;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],F2.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],F2.prototype,"data",void 0);F2=_.X([_.dx({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],F2);
_.p(F2,"yt-card-item-text-collection-renderer",function(){if(q6C===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;ggl===void 0&&(ggl=document.createElement("template"));var r=ggl;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);q6C=q}q=q6C;return q},{mode:2});var wyD;var rc8;var Y68=function(){return _.N.apply(this,arguments)||this};
_.z(Y68,_.N);Y68.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]]"}}}}}};
var Nw=Y68;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Nw.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Nw.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Nw.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Number)],Nw.prototype,"iconSize",void 0);Nw=_.X([_.dx({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Nw);
_.p(Nw,"yt-card-item-text-with-button-renderer",function(){if(rc8===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;wyD===void 0&&(wyD=document.createElement("template"));var r=wyD;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);rc8=q}q=rc8;return q},{mode:2});var $Sq=function(){return _.N.apply(this,arguments)||this};
_.z($Sq,_.N);$Sq.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"}}}};
var lH=$Sq;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],lH.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],lH.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],lH.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],lH.prototype,"data",void 0);lH=_.X([_.l({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],lH);
_.p(lH,"ytd-commerce-cart-summary-line-item-renderer",function(){if(FvC!==void 0)return FvC;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return FvC=q},{mode:1});_.He("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var eZl=function(){var q=_.N.apply(this,arguments)||this;q.hidden=!1;return q};
_.z(eZl,_.N);_.e=eZl.prototype;_.e.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"}}}}};
_.e.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.e.updateSummary=function(){var q=this.commerceCartCheckoutButtonEntity,Z;if(((Z=this.data)==null?0:Z.cartButton)&&q.checkoutSummaryText){var w,r=x_((w=this.data)==null?void 0:w.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+r+".cardItemTextRenderer.text",Ts(q.checkoutSummaryText));if(q.checkoutDetailText){var Y;w=x_((Y=this.data)==null?void 0:Y.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+w+".cardItemTextRenderer.text",Ts(q.checkoutDetailText))}if(q.checkoutAdditionalMetadataText){var C;
Y=x_((C=this.data)==null?void 0:C.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+Y+".cardItemTextRenderer.text",Ts(q.checkoutAdditionalMetadataText))}}else q.estimatedTotalPrice&&(C=x_((r=this.data)==null?void 0:r.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+C+".cardItemTextRenderer.text",Ts(q.estimatedTotalPrice)))};
_.e.updateIsHidden=function(){var q,Z=(q=this.commerceCartCheckoutButtonEntity)==null?void 0:q.isHidden;Z!==void 0&&(this.hidden=Z)};
_.e.updateCheckoutButton=function(){var q,Z=(q=this.commerceCartCheckoutButtonEntity)==null?void 0:q.isDisabled;Z!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",Z);var w;q=(w=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:w.innertubeCommand;q!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",q);var r;w=(r=this.commerceCartCheckoutButtonEntity)==null?void 0:r.checkoutButtonText;w!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:w})};
var G4=eZl;G4.prototype.entityChanged=G4.prototype.entityChanged;_.X([_.U(_.LO),_.A("design:type",Object)],G4.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],G4.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],G4.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],G4.prototype,"fullWidth",void 0);_.X([_.F(),_.A("design:type",Object)],G4.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],G4.prototype,"compact",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],G4.prototype,"hidden",void 0);
_.X([_.F({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:a02}),_.A("design:type",Object)],G4.prototype,"commerceCartCheckoutButtonEntity",void 0);_.X([_.M("commerceCartCheckoutButtonEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],G4.prototype,"entityChanged",null);G4=_.X([_.l({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],G4);
_.p(G4,"ytd-commerce-cart-checkout-button-renderer",function(){if(M2F!==void 0)return M2F;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return M2F=q},{mode:2});var CCZ;_.PC8={};
_.PC8.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",_.XN(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.XN(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(q){!this.tappableItemBehaviorTapEnabled||q.keyCode!==13&&q.keyCode!==32||q.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var q=this.data.onTap;q.ypcGetCartEndpoint?(_.qM(this.hostElement,[q]),this.tappableItemBehaviorTapEnabled=!1):q.ypcOffersEndpoint?_.qM(this.hostElement,[q]):_.ZC(this.hostElement,[q],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(q){this.tappableItemBehaviorTapEnabled=!!q},
tappableItemBehaviorOnTapEnabledChanged_:function(){var q=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(q.setAttribute("tabIndex",0),q.setAttribute("role","button")):(q.removeAttribute("tabIndex"),q.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(q){q.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var dSl;var VVD;var OlZ=function(){return _.N.apply(this,arguments)||this};
_.z(OlZ,_.N);OlZ.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.We("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.We("sharingToggleButtonAndDefaultButton")}}};
var p8=OlZ;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],p8.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],p8.prototype,"data",void 0);p8=_.X([_.dx({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],p8);
_.p(p8,"yt-card-item-actions-renderer",function(){if(VVD===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;dSl===void 0&&(dSl=document.createElement("template"));var r=dSl;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);VVD=q}q=VVD;return q},{mode:2});var Hlq;var WFF;var o8C;var uDC;var LFS;var S6V;var X2=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return q};
_.z(X2,_.N);X2.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
X2.prototype.handleDarkModeToggledAction_=function(q){this.isDarkTheme_=q};
X2.prototype.computeThemeImage_=function(q,Z){if(!q||!q.imageLight)return!1;this.isCircular_=q.isCircular;q.imageWidth&&(this.hostElement.style.width=q.imageWidth+"px");q.imageHeight&&(this.hostElement.style.height=q.imageHeight+"px");q.borderWidth&&(this.image.style.borderWidth=q.borderWidth+"px",this.image.style.borderStyle="solid");q.borderColor&&(this.image.style.borderColor=_.uq(q.borderColor));return Z&&q.imageDark?q.imageDark:q.imageLight};
X2.prototype.computeThemeIcon_=function(q){var Z,w;if(!(q==null?0:(Z=q.themedIcon)==null?0:(w=Z.icon)==null?0:w.iconType))return!1;this.icon.style.color=IY[q.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(q.imageWidth||18)+"px";this.icon.style.height=(q.imageHeight||18)+"px";return _.Xl(q.themedIcon.icon.iconType)};
var m$=X2;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],m$.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],m$.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(X1S.YtCardItemBoxBehavior),_.A("design:type",Object)],m$.prototype,"ytCardItemBoxBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],m$.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],m$.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],m$.prototype,"fit",void 0);_.X([_.F(),_.A("design:type",Boolean)],m$.prototype,"isDarkTheme_",void 0);_.X([_.F({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.A("design:type",Object)],m$.prototype,"themeImage_",void 0);_.X([_.F({computed:"computeThemeIcon_(data)"}),_.A("design:type",Object)],m$.prototype,"themeIcon_",void 0);
_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Object)],m$.prototype,"isCircular_",void 0);_.X([_.fo("#image"),_.A("design:type",Object)],m$.prototype,"image",void 0);_.X([_.fo("#icon"),_.A("design:type",Object)],m$.prototype,"icon",void 0);m$=_.X([_.dx({is:"yt-themed-image-renderer",disableElementRegistration:!0})],m$);
_.p(m$,"yt-themed-image-renderer",function(){if(S6V===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;LFS===void 0&&(LFS=document.createElement("template"));var r=LFS;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);S6V=q}q=S6V;return q},{mode:2});var v8y=function(){return _.N.apply(this,arguments)||this};
_.z(v8y,_.N);v8y.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"}}}}};
v8y.prototype.computeImagePlacement_=function(q){return q||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
var AS=v8y;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],AS.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],AS.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],AS.prototype,"data",void 0);_.X([_.F({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.A("design:type",String)],AS.prototype,"imagePlacement",void 0);
AS=_.X([_.dx({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],AS);
_.p(AS,"yt-card-item-text-with-image-renderer",function(){if(uDC===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;o8C===void 0&&(o8C=document.createElement("template"));var r=o8C;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);uDC=q}q=uDC;return q},{mode:2});var jqy=function(){return _.N.apply(this,arguments)||this};
_.z(jqy,_.N);jqy.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"}}}}};
var f8=jqy;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],f8.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],f8.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],f8.prototype,"data",void 0);f8=_.X([_.dx({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],f8);
_.p(f8,"yt-card-item-error-renderer",function(){if(WFF===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Hlq===void 0&&(Hlq=document.createElement("template"));var r=Hlq;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);WFF=q}q=WFF;return q},{mode:2});var tVZ;var RZD;_.He("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var bly=function(){return _.N.apply(this,arguments)||this};
_.z(bly,_.N);_.e=bly.prototype;
_.e.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"}}}}};
_.e.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.e.backgroundColorChanged_=function(){var q,Z=(q=this.data)==null?void 0:q.backgroundColor;q=IY[Z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.E(this.hostElement).querySelector("#main-content").style.backgroundColor=q};
_.e.headerPromoBackgroundColorChanged_=function(){var q,Z=(q=this.data)==null?void 0:q.headerPromoBackgroundColor;q=IY[Z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.E(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=q};
_.e.errorRendererVisibilityChanged_=function(){var q=this.isExpanded_,Z;this.isErrorRendererVisible_=!((Z=this.data)==null||!Z.errorRenderer)&&!q};
_.e.onYtToggleButton_=function(q,Z){this.isExpanded_=Z.toggled};
var DX=bly;DX.prototype.onYtToggleButton_=DX.prototype.onYtToggleButton_;DX.prototype.errorRendererVisibilityChanged_=DX.prototype.errorRendererVisibilityChanged_;DX.prototype.headerPromoBackgroundColorChanged_=DX.prototype.headerPromoBackgroundColorChanged_;DX.prototype.backgroundColorChanged_=DX.prototype.backgroundColorChanged_;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],DX.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(X1S.YtCardItemBoxBehavior),_.A("design:type",Object)],DX.prototype,"ytCardItemBoxBehavior",void 0);_.X([_.U(_.PC8.YtTappableItemBehavior),_.A("design:type",Object)],DX.prototype,"ytTappableItemBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],DX.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],DX.prototype,"isExpanded_",void 0);
_.X([_.F({value:!1}),_.A("design:type",Boolean)],DX.prototype,"isErrorRendererVisible_",void 0);_.X([_.M("data.backgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],DX.prototype,"backgroundColorChanged_",null);_.X([_.M("data.headerPromoBackgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],DX.prototype,"headerPromoBackgroundColorChanged_",null);
_.X([_.M("data.errorRenderer","isExpanded_"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],DX.prototype,"errorRendererVisibilityChanged_",null);_.X([_.m2("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[Event,Object]),_.A("design:returntype")],DX.prototype,"onYtToggleButton_",null);DX=_.X([_.dx({is:"yt-card-item-renderer",disableElementRegistration:!0})],DX);
_.p(DX,"yt-card-item-renderer",function(){if(RZD===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;tVZ===void 0&&(tVZ=document.createElement("template"));var r=tVZ;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);RZD=q}q=RZD;return q},{mode:2});_.He("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Jcu=function(){var q=_.N.apply(this,arguments)||this;q.hidden=!1;return q};
_.z(Jcu,_.N);_.e=Jcu.prototype;_.e.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.e.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.e.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var q,Z=(q=this.commerceCartHeaderEntity)==null?void 0:q.isHidden;Z!==void 0&&(this.hidden=Z)}};
_.e.updateTitle=function(){var q=this.commerceCartHeaderEntity.isDisabled,Z,w,r=(w=_.J((Z=this.data)==null?void 0:Z.item,RFm))==null?void 0:w.headingRenderer;r&&(Z=x_(r,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+Z+".0.cardItemTextRenderer.textColor",q?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.e.updateSummaryText=function(){var q=this.commerceCartHeaderEntity;if(this.compact){var Z,w,r=(w=_.J((Z=this.data)==null?void 0:Z.item,RFm))==null?void 0:w.headingRenderer;r&&(Z=x_(r,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+Z+".1.cardItemTextRenderer.text",q.shortHeaderSummaryText?Ts(q.shortHeaderSummaryText):q.headerSummaryText?Ts(q.headerSummaryText):""))}else{var Y;if(Z=(Y=_.J((r=this.data)==null?void 0:r.item,RFm))==null?void 0:Y.additionalInfoRenderer)Z=x_(Z,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+Z+".text",q.headerSummaryText?Ts(q.headerSummaryText):"")}};
_.e.updateCheckoutButton=function(){var q=this.commerceCartHeaderEntity,Z,w,r=(w=_.J((Z=this.data)==null?void 0:Z.item,RFm))==null?void 0:w.additionalInfoRenderer;Z=x_(r,"buttonRenderer");var Y;w=(Y=this.commerceCartHeaderEntity)==null?void 0:Y.isButtonDisabled;var C;Y=(C=this.commerceCartHeaderEntity)==null?void 0:C.isButtonHidden;w!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+Z+".buttonRenderer.isDisabled",w);Y!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
Y);var d;q=(d=q.checkoutButtonCommand)==null?void 0:d.innertubeCommand;q!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+Z+".buttonRenderer.command",q)};
var hS=Jcu;hS.prototype.entityChanged=hS.prototype.entityChanged;_.X([_.U(_.LO),_.A("design:type",Object)],hS.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],hS.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],hS.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],hS.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],hS.prototype,"compact",void 0);_.X([_.F({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(q,Z){return _.iI(q.entities,"commerceCartHeaderEntity",Z)}}),
_.A("design:type",Object)],hS.prototype,"commerceCartHeaderEntity",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],hS.prototype,"hidden",void 0);_.X([_.M("commerceCartHeaderEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hS.prototype,"entityChanged",null);hS=_.X([_.l({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],hS);
_.p(hS,"ytd-commerce-cart-header-renderer",function(){if(CCZ!==void 0)return CCZ;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return CCZ=q},{mode:1});var zZ7;var BbD=_.VW(function(q,Z){var w;return(w=q.onChangeCallback)==null?void 0:w.call(q,Z)},1E3),alC=_.xl(function(q){var Z=q.data;
var w=q.iconMinus;q=q.iconPlus;var r=function(){return!!Z().disabled},Y=_.P(_.qo(0,void 0,"r56zNb")),C=Y.next().value,d=Y.next().value;
Y={};Y=_.GL("yt-spec-quantity-incrementer-shape__icon",(Y["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return r()||C()===(Z().onRemoveCommand?0:1)},Y));
var O={};O=_.GL("yt-spec-quantity-incrementer-shape__icon",(O["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return C()>=Z().maxValue||r()},O));
var H={};H=_.GL("yt-spec-quantity-incrementer-shape__text",(H["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return C()>Z().maxValue},H["yt-spec-quantity-incrementer-shape__text--text-disabled"]=r,H));
var L=_.fn(function(){if(C()===1){var v,R;(R=(v=Z()).onRemoveCommand)==null||R.call(v)}v=C()>Z().maxValue?Z().maxValue:C()-1;d(v);BbD(Z(),v);return!1}),S=_.fn(function(){if(C()===Z().maxValue)return!1;
var v=C()+1;d(v);BbD(Z(),v);return!1});
_.oz(function(){d(Z().value)});
return _.u("quantity-incrementer-shape",null,_.u("div",{class:"yt-spec-quantity-incrementer-shape"},_.u("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return C()===(Z().onRemoveCommand?0:1)||r()},
"aria-label":function(){return C()!==1?Z().minusLabel:Z().minimumReachedLabel},
"on:click":L},_.u(_.YB,{model:{circular:!0}}),_.u("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.u("div",{class:Y},w()))),_.u("div",{class:H},C),_.u("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return C()>=Z().maxValue||r()},
"aria-label":function(){return C()!==Z().maxValue?Z().plusLabel:Z().maximumReachedLabel},
"on:click":S},_.u(_.YB,{model:{circular:!0}}),_.u("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.u("div",{class:O},q())))))},"md");_.xc(_.xl(function(q){function Z(){w().onRemoveCommand&&_.Sp(w().onRemoveCommand)}
var w=q.data;var r=_.g6(iET,function(){return w().quantityIncrementerEntityKey});
return _.u("yt-quantity-incrementer-view-model",null,_.u(alC,{data:function(){var Y=w(),C;var d=r()?!((C=r())==null||!C.disabled):!1;var O;C=r()?(O=r())==null?void 0:O.quantity:w().quantity;return za2(Y,d,Z,C)},
iconMinus:function(){return _.u(_.q0,{icon:"BAR_HORIZONTAL",className:_.XA("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.u(_.q0,{icon:"ADD",className:_.XA("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"nd"),"yt-quantity-incrementer-view-model",{props:{data:_.zG}});var yZ=function(){var q=_.N.apply(this,arguments)||this;q.compact=!1;q.hasQuantityIncrementer=!1;return q};
_.z(yZ,_.N);yZ.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"}}}};
yZ.prototype.computeHasQuantityIncrementer=function(){var q;return!!_.J((q=this.data)==null?void 0:q.picker,Bj2)};
yZ.prototype.onLabelClick=function(){var q;(q=this.dropdownEl)==null||q.open()};
var iH=yZ;_.X([_.fo("ytd-dropdown-renderer"),_.A("design:type",Object)],iH.prototype,"dropdownEl",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],iH.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],iH.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],iH.prototype,"quantityColor",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],iH.prototype,"compact",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.A("design:type",Object)],iH.prototype,"hasQuantityIncrementer",void 0);iH=_.X([_.l({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],iH);
_.p(iH,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(zZ7!==void 0)return zZ7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return zZ7=q},{mode:1});var n88;var QqZ;var gH=function(){return _.N.apply(this,arguments)||this};
_.z(gH,_.N);gH.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
gH.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
gH.prototype.updateTitle=function(){var q=this.disabledCartItemEntity;q.disableActionName&&this.set("data.title",Ts(q.disableActionName))};
gH.prototype.updateButton=function(){var q,Z=(q=this.disabledCartItemEntity.undoCommand)==null?void 0:q.innertubeCommand;Z!==void 0&&(this.set("data.actionButton.buttonRenderer.command",Z),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
var qv=gH;qv.prototype.entityChanged=qv.prototype.entityChanged;_.X([_.U(_.LO),_.A("design:type",Object)],qv.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],qv.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(q,Z){return _.iI(q.entities,"disabledCartItemEntity",Z)}}),
_.A("design:type",Object)],qv.prototype,"disabledCartItemEntity",void 0);_.X([_.F(),_.A("design:type",Object)],qv.prototype,"data",void 0);_.X([_.M("disabledCartItemEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qv.prototype,"entityChanged",null);qv=_.X([_.l({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],qv);
_.p(qv,"ytd-disabled-cart-item-renderer",function(){if(QqZ!==void 0)return QqZ;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return QqZ=q},{mode:1});_.He("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var E8u=function(){var q=_.N.apply(this,arguments)||this;q.compact=!1;q.hidden=!1;q.errorHidden=!1;q.noOnTap=!1;return q};
_.z(E8u,_.N);_.e=E8u.prototype;
_.e.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"}}}};
_.e.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.e.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var q=this.firstButtonElement;q.alignByText=!0;q.iconAlignByText=!0}};
_.e.computeNoOnTap=function(q){return!q};
_.e.updateQuantityColor=function(){if(this.pickerElement){var q,Z=(q=this.commerceCartItemEntity)==null?void 0:q.quantityColor;this.pickerElement.quantityColor=Z}};
_.e.updateTotalPriceColor=function(){var q,Z=(q=this.commerceCartItemEntity)==null?void 0:q.totalPriceColor;if(Z){var w;q=_.J((w=this.data)==null?void 0:w.quantityPicker,Jgp);if(w=_.J(q==null?void 0:q.price,bK1))w.textColor=Z}};
_.e.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var q,Z=(q=this.commerceCartItemEntity)==null?void 0:q.isHidden;Z!==void 0&&(this.hidden=Z)}};
_.e.updateHideErrorMessage=function(){var q,Z=(q=this.commerceCartItemEntity)==null?void 0:q.hideErrorMessage;Z!==void 0&&(this.errorHidden=Z)};
_.e.updateQuantity=function(){var q=this,Z,w=(Z=this.commerceCartItemEntity)==null?void 0:Z.quantity,r;Z=(r=this.commerceCartItemEntity)==null?void 0:r.totalPrice;if(w){this.updateTotalPriceColor();this.updateQuantityColor();var Y;r=_.J((Y=this.data)==null?void 0:Y.quantityPicker,Jgp);if(Y=_.J(r==null?void 0:r.price,bK1))Y.text=Z?{simpleText:Z.content}:void 0;if(Z=_.J(r==null?void 0:r.picker,Bj2))Z.quantity=w;var C;if(Y=(C=_.J(r==null?void 0:r.picker,XZX))==null?void 0:C.entries){C=!1;Z=void 0;Y=
_.P(Y);for(r=Y.next();!r.done;r=Y.next())r=r.value,r.dropdownItemRenderer&&(Z||(Z=r.dropdownItemRenderer),r.dropdownItemRenderer.isSelected=!1,w===r.dropdownItemRenderer.int32Value&&(C=!0,r.dropdownItemRenderer.isSelected=!0));!C&&Z&&(Z.isSelected=!0)}_.I_(this,function(){var d;q.set("data.quantityPicker",_.R4.unsafeClone((d=q.data)==null?void 0:d.quantityPicker))})}};
var Z2=E8u;Z2.prototype.onYtRendererstamperFinished=Z2.prototype.onYtRendererstamperFinished;Z2.prototype.entityChanged=Z2.prototype.entityChanged;_.X([_.F(),_.A("design:type",Object)],Z2.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Z2.prototype,"compact",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],Z2.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Z2.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(q,Z){return _.iI(q.entities,"commerceCartItemEntity",Z)}}),
_.A("design:type",Object)],Z2.prototype,"commerceCartItemEntity",void 0);_.X([_.F(),_.A("design:type",Object)],Z2.prototype,"quantityPicker",void 0);_.X([_.F(),_.A("design:type",Object)],Z2.prototype,"compactQuantityPicker",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Z2.prototype,"hidden",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Z2.prototype,"errorHidden",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.A("design:type",Object)],Z2.prototype,"noOnTap",void 0);_.X([_.fo("ytd-commerce-cart-item-quantity-picker-renderer"),_.A("design:type",Object)],Z2.prototype,"pickerElement",void 0);_.X([_.fo("yt-button-renderer"),_.A("design:type",Element)],Z2.prototype,"firstButtonElement",void 0);
_.X([_.M("commerceCartItemEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Z2.prototype,"entityChanged",null);_.X([_.m2("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Z2.prototype,"onYtRendererstamperFinished",null);Z2=_.X([_.l({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],Z2);
_.p(Z2,"ytd-commerce-cart-item-renderer",function(){if(n88!==void 0)return n88;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return n88=q},{mode:_.NT("kevlar_poly_si_batch_j028")?1:2});var xSV;var TbS;var wN=function(){return _.N.apply(this,arguments)||this};
_.z(wN,_.N);wN.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}}}}}};
wN.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
wN.prototype.updateCheckoutLineItems=function(){var q,Z=(q=this.commerceCartCheckoutButtonEntity)==null?void 0:q.checkoutLineItems;Z&&(q=Z.map(function(w){a:{var r=w.price;var Y=w.description;switch(w.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":w={cardItemTextRenderer:{text:Ts(Y),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"}}};
r={cardItemTextRenderer:{text:Ts(r),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"}}};r={commerceCartSummaryLineItemRenderer:{summaryText:w,price:r}};break a;default:w={cardItemTextRenderer:{text:Ts(Y),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"}}},r={cardItemTextRenderer:{text:Ts(r),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"}}},r={commerceCartSummaryLineItemRenderer:{summaryText:w,price:r}}}}return r}),this.set("data.summaryLineItems",q))};
wN.prototype.updateIsHidden=function(){var q,Z=(q=this.commerceCartCheckoutButtonEntity)==null?void 0:q.isHidden;Z!==void 0&&(this.hostElement.hidden=Z)};
var rN=wN;rN.prototype.entityChanged=rN.prototype.entityChanged;_.X([_.U(_.LO),_.A("design:type",Object)],rN.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],rN.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],rN.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],rN.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],rN.prototype,"data",void 0);_.X([_.F({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:a02}),_.A("design:type",Object)],rN.prototype,"commerceCartCheckoutButtonEntity",void 0);_.X([_.M("commerceCartCheckoutButtonEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rN.prototype,"entityChanged",null);rN=_.X([_.l({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],rN);
_.p(rN,"ytd-commerce-cart-summary-renderer",function(){if(TbS!==void 0)return TbS;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return TbS=q},{mode:1});var USD={};USD.InjectBehavior=[RH2.InjectBehavior];var kuC;var KFb;var YE=function(){return _.N.apply(this,arguments)||this};
_.z(YE,_.N);
YE.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:_.We("menuRenderer")}}};
YE.prototype.onMenuTap=function(q){q.stopPropagation()};
_.My.Object.defineProperties(YE.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 q,Z;return!(((q=this.data)==null||!q.sectionHeading)&&((Z=this.data)==null?void 0:Z.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!(((q=this.data)==null||!q.image)&&((Z=this.data)==null?void 0:Z.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!(((q=this.data)==null||!q.menu)&&((Z=this.data)==null?void 0:Z.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
var $E=YE;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],$E.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.PC8.YtTappableItemBehavior),_.A("design:type",Object)],$E.prototype,"ytTappableItemBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],$E.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("data.accessibilityData"),_.A("design:type",String),_.A("design:paramtypes",[])],$E.prototype,"ariaLabel",null);_.X([_.I("data.sectionHeading","data.layout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],$E.prototype,"sectionHeadingVisible",null);_.X([_.I("data.image","data.layout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],$E.prototype,"imageVisible",null);
_.X([_.I("data.menu","data.layout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],$E.prototype,"menuVisible",null);$E=_.X([_.dx({is:"yt-activity-item-renderer",disableElementRegistration:!0})],$E);
_.p($E,"yt-activity-item-renderer",function(){if(KFb===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;kuC===void 0&&(kuC=document.createElement("template"));var r=kuC;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);KFb=q}q=KFb;return q},{mode:2});var sqV;var Il7;var ccy;var MVD;var FFS=function(){return _.N.apply(this,arguments)||this};
_.z(FFS,_.N);
FFS.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"}}}}};
FFS.prototype.backgroundColorChanged_=function(){var q,Z=(q=this.data)==null?void 0:q.backgroundColor;this.hostElement.style.backgroundColor=IY[Z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
var eI=FFS;eI.prototype.backgroundColorChanged_=eI.prototype.backgroundColorChanged_;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],eI.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],eI.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],eI.prototype,"data",void 0);
_.X([_.M("data.backgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eI.prototype,"backgroundColorChanged_",null);eI=_.X([_.dx({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],eI);
_.p(eI,"yt-offer-item-upsell-renderer",function(){if(MVD===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;ccy===void 0&&(ccy=document.createElement("template"));var r=ccy;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);MVD=q}q=MVD;return q},{mode:2});_.He("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Nbu=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};q.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return q};
_.z(Nbu,_.N);_.e=Nbu.prototype;
_.e.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:_.We("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.e.computeContainerStyle_=function(q){return q};
_.e.computeContainerIsHidden_=function(q){return q&&!!q.isHidden};
_.e.computeShowSpinner_=function(q,Z){return q&&Z==="in-progress"};
_.e.computeShowMoreContentsButton_=function(q,Z,w,r,Y){return!(!(r&&r.length||Y&&Y.length&&w)||!q||Z)};
_.e.onToggleButton_=function(q){var Z=this;q.stopPropagation();this.isExpanded_=q.detail&&q.detail.toggled;var w,r;this.isExpanded_&&!this.data.continuationSection.length&&((w=this.data)==null?0:(r=w.continuation)==null?0:r.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.hy(this.hostElement,"yt-load-next-continuation",function(Y){return Z.getContinuationUrl_(Z.data.continuation.onClickContinuationData,Y)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.qM(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.e.onShowMoreContentsButtonClicked_=function(q){var Z=this;q.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.hy(this.hostElement,"yt-load-next-continuation",function(w){return Z.getContinuationUrl_(Z.data.continuations[0].nextContinuationData,w)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.qM(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.e.getContinuationUrl_=function(q,Z){var w=q.continuation;q=q.clickTrackingParams;var r=_.b5();q&&r&&_.sh(r,_.wa(q));return _.Iz(Z,{continuation:w})};
_.e.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var q=_.E(this.hostElement).querySelector("#continuation-section");q&&(q=q.querySelectorAll("ytmusic-item-section-renderer"))&&q.forEach(function(Z){return Z.classList.add("memberships-and-purchases")})};
_.e.dataChanged_=function(){var q;this.isExpanded_=!((q=this.data)==null||!q.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.e.updateCardOnClickCommand_=function(q){q=_.J(q,Wap);var Z,w;this.data&&((Z=this.data)==null?0:Z.targetId)&&q&&q.targetId===((w=this.data)==null?void 0:w.targetId)&&q.onClickCommand&&(this.data.onClickCommand=q.onClickCommand,this.isOnClickCommand_=!0)};
_.e.backgroundColorChanged_=function(){var q,Z=(q=this.data)==null?void 0:q.backgroundColor;this.hostElement.style.backgroundColor=IY[Z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
var C1=Nbu;C1.prototype.backgroundColorChanged_=C1.prototype.backgroundColorChanged_;C1.prototype.dataChanged_=C1.prototype.dataChanged_;C1.prototype.nextContinuationDataUpdated_=C1.prototype.nextContinuationDataUpdated_;C1.prototype.onToggleButton_=C1.prototype.onToggleButton_;_.X([_.U(_.Ms),_.A("design:type",Object)],C1.prototype,"ytContinuationHandlerBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],C1.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],C1.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.FP.YtNextContinuationBehavior),_.A("design:type",Object)],C1.prototype,"ytNextContinuationBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.X([_.U(USD.InjectBehavior),_.A("design:type",Object)],C1.prototype,"injectBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],C1.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],C1.prototype,"compact",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],C1.prototype,"isExpanded_",void 0);_.X([_.F({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.A("design:type",String)],C1.prototype,"containerStyle_",void 0);_.X([_.F({value:"not-started"}),_.A("design:type",String)],C1.prototype,"continuationStatus_",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.A("design:type",Boolean)],C1.prototype,"showSpinner_",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],C1.prototype,"isOnClickCommand_",void 0);_.X([_.F({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.A("design:type",Boolean)],C1.prototype,"showMoreContentsButton_",void 0);
_.X([_.F({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(q,Z){return!Z||q.entities?null:_.iI(q.entities,"cardItemContainerEntity",Z)}}),
_.A("design:type",Object)],C1.prototype,"cardItemContainerEntity_",void 0);_.X([_.m2("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],C1.prototype,"onToggleButton_",null);_.X([_.m2("yt-next-continuation-data-updated"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],C1.prototype,"nextContinuationDataUpdated_",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],C1.prototype,"dataChanged_",null);_.X([_.M("data.backgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],C1.prototype,"backgroundColorChanged_",null);C1=_.X([_.dx({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],C1);
_.p(C1,"yt-card-item-container-renderer",function(){if(Il7===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;sqV===void 0&&(sqV=document.createElement("template"));var r=sqV;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Il7=q}q=Il7;return q},{mode:2});var PL=function(){return _.N.apply(this,arguments)||this};
_.z(PL,_.N);PL.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"}}}};
PL.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
PL.prototype.computeLoadingHidden=function(){var q;return!((q=this.commerceCartPageStateEntity)==null?0:q.cartActionInProgress)};
PL.prototype.updateNotification=function(){var q,Z=(q=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:q.summaryText;Z&&this.set("data.cartNotification",Ts(Z))};
var dN=PL;dN.prototype.notificationEntityChanged=dN.prototype.notificationEntityChanged;_.X([_.U(_.LO),_.A("design:type",Object)],dN.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],dN.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],dN.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],dN.prototype,"data",void 0);_.X([_.F({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(q,Z){return _.iI(q.entities,"commerceCartExpandableNotificationEntity",Z)}}),
_.A("design:type",Object)],dN.prototype,"commerceCartExpandableNotificationEntity",void 0);_.X([_.F({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(q,Z){return _.iI(q.entities,"commerceCartPageStateEntity",Z)}}),
_.A("design:type",Object)],dN.prototype,"commerceCartPageStateEntity",void 0);_.X([_.fo("#spinner"),_.A("design:type",HTMLElement)],dN.prototype,"spinner",void 0);_.X([_.M("commerceCartExpandableNotificationEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dN.prototype,"notificationEntityChanged",null);dN=_.X([_.l({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],dN);
_.p(dN,"ytd-commerce-cart-renderer",function(){if(xSV!==void 0)return xSV;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return xSV=q},{mode:1});var llb;var Guy=function(){var q=_.N.apply(this,arguments)||this;q.bigImage=!1;return q};
_.z(Guy,_.N);_.My.Object.defineProperties(Guy.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.placeholderImageUrl}}});
var Vi=Guy;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Vi.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Vi.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Vi.prototype,"bigImage",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Vi.prototype,"placeholderImageUrl",null);Vi=_.X([_.l({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Vi);
_.p(Vi,"ytd-empty-product-shelf-renderer",function(){if(llb!==void 0)return llb;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return llb=q},{mode:1});var pyl;var XyV=function(){var q=_.N.apply(this,arguments)||this;q.itemStyle="link-item";q.watchMetadataRefresh=!1;q.skinnyMode=!1;q.metaPanel=!1;q.inStructuredDescription=!1;q.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};q.updateOnResizeDebouncer=null;return q};
_.z(XyV,_.N);_.e=XyV.prototype;_.e.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.e.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"}}}}};
_.e.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.e.attachVEs=function(q){q.trackingParams&&_.iy().graftServerVe(q.trackingParams)};
_.e.handleUpdateMerchShelfAction=function(q){var Z=this,w=_.J(q.updateMerchandiseShelfAction.merchandiseShelf,_.Ok2);w&&(w.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){Z.attachVEs(w);Z.data=w},Number(w.renderDelayMs))):(this.attachVEs(w),this.data=w))};
_.e.updateOnResize=function(){if(this.JSC$14547_scrollContainer!==void 0&&this.JSC$14547_scrollContainer.clientWidth!==0&&this.items!==void 0){var q=this.JSC$14547_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-q));this.ytdHorizontalListBehavior.reposition_();var Z;switch((Z=this.data)==null?void 0:Z.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var w,
r;((w=this.data)==null?void 0:(r=w.items)==null?void 0:r.length)===1?this.itemStyle="cta-item":this.itemStyle=q>=740?"large-item":"small-item"}}};
_.e.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.fj(this.updateOnResizeDebouncer,_.Kj.after(100),this.updateOnResize)};
var OC=XyV;OC.prototype.debouncedUpdateOnResize=OC.prototype.debouncedUpdateOnResize;OC.prototype.dataChanged=OC.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],OC.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.Mt.YtdHorizontalListBehavior),_.A("design:type",Object)],OC.prototype,"ytdHorizontalListBehavior",void 0);
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],OC.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],OC.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],OC.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],OC.prototype,"itemStyle",void 0);_.X([_.F({value:6}),_.A("design:type",Number)],OC.prototype,"initialCount",void 0);
_.X([_.F({value:"data.items"}),_.A("design:type",String)],OC.prototype,"itemsPath",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],OC.prototype,"watchMetadataRefresh",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],OC.prototype,"skinnyMode",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],OC.prototype,"metaPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],OC.prototype,"inStructuredDescription",void 0);
_.X([_.fo("#items"),_.A("design:type",HTMLDivElement)],OC.prototype,"items",void 0);_.X([_.fo("#scroll-container"),_.A("design:type",HTMLDivElement)],OC.prototype,"JSC$14547_scrollContainer",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OC.prototype,"dataChanged",null);_.X([_.m2("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OC.prototype,"debouncedUpdateOnResize",null);
OC=_.X([_.l({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],OC);
_.p(OC,"ytd-merch-shelf-renderer",function(){if(pyl!==void 0)return pyl;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return pyl=q},{mode:2});var mSS;var Acy=function(){var q=_.N.apply(this,arguments)||this;q.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 q};
_.z(Acy,_.N);_.e=Acy.prototype;
_.e.addBackstagePostAction=function(q){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(q=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",q))&&(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:q}):this.set("data.contents",[{backstagePostThreadRenderer:q}]))};
_.e.addBackstageCommentAction=function(q){var Z=this.get("addBackstageCommentAction.parentId",q);q=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",q);if(Z&&q){Z=this.postIdToIndices(Z);for(var w=0;w<Z.length;w++){var r=Z[w];if(r<0)break;r="data.contents."+r+".backstagePostThreadRenderer.comments";this.get(r)&&(this.get(r+".backstageCommentsRenderer.contents")&&this.push(r+".backstageCommentsRenderer.contents",{commentThreadRenderer:q}),this.get(r+".backstageCommentsRenderer.teaserContents")?
this.push(r+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:q}):this.set(r+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:q}]))}}};
_.e.addBackstageReplyAction=function(q){var Z=this.get("addBackstageReplyAction.parentId",q);q=this.get("addBackstageReplyAction.renderer.commentRenderer",q);Z&&q&&this.setCreatorReply(Z,q)};
_.e.banAuthorAction=function(q){var Z=this.get("banAuthorAction.commentId",q);Z&&(q=this.get("banAuthorAction.parentCommentId",q)||this.getParentPostId(Z),this.removeFromStream(Z,q))};
_.e.hideReportedCommentAction=function(q){var Z=this.get("hideReportedCommentAction.commentId",q);Z&&((q=this.get("hideReportedCommentAction.parentCommentId",q))||(q=this.getParentPostId(Z)),this.removeFromStream(Z,q))};
_.e.replaceBackstageCommentAction=function(q){var Z=this.get("replaceBackstageCommentAction.commentId",q),w=this.get("replaceBackstageCommentAction.parentId",q);q=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",q);if(Z&&w&&q){w=this.postIdToIndices(w);for(var r=0;r<w.length;r++){var Y=w[r];if(Y<0)break;var C=this.commentIdToIndex(Z,Y,!1);if(C>=0){var d=this.get("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+C+".commentThreadRenderer.replies.commentRepliesRenderer");
d&&(q.replies={commentRepliesRenderer:d});this.splice("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",C,1,{commentThreadRenderer:q})}C=this.commentIdToIndex(Z,Y,!0);if(C>=0){if(d=this.get("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(C+".commentThreadRenderer.replies.commentRepliesRenderer")))q.replies={commentRepliesRenderer:d};this.splice("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
C,1,{commentThreadRenderer:q})}}}};
_.e.replaceBackstagePostAction=function(q){var Z=this.get("replaceBackstagePostAction.itemId",q);if(Z){Z=this.postIdToIndices(Z);for(var w=0;w<Z.length;w++){var r=Z[w];if(r<0)break;var Y=this.getPostRendererType(r),C=this.get("replaceBackstagePostAction.renderer."+Y,q);if(!C&&Y!=="sharedPostRenderer")break;var d=!1;C||(d=!0,C=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",q));if(!C)break;var O={};d?(_.da(O,Jq1,C),this.set("data.contents."+r+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
O)):(_.da(O,new _.D(Y),C),this.set("data.contents."+r+".backstagePostThreadRenderer.post",O))}}};
_.e.replaceBackstageReplyAction=function(q){var Z=this.get("replaceBackstageReplyAction.replyId",q),w=this.get("replaceBackstageReplyAction.parentId",q);q=this.get("replaceBackstageReplyAction.renderer.commentRenderer",q);Z&&q&&w&&this.setCreatorReply(w,q)};
_.e.removeCommentAction=function(q){var Z=this.get("removeCommentAction.commentId",q);if(Z){var w=this.get("removeCommentAction.parentCommentId",q);w&&this.get("removeCommentAction.isCreatorReply",q)?this.setCreatorReply(w,void 0):(w||(w=this.getParentPostId(Z)),this.removeFromStream(Z,w))}};
_.e.setCreatorReply=function(q,Z){var w=this.getParentPostId(q);if(w){w=this.postIdToIndices(w);for(var r=0;r<w.length;r++){var Y=w[r];if(Y<0)break;var C=this.commentIdToIndex(q,Y,!1);if(C>=0){var d="data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+C;C=d+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";d+=".commentThreadRenderer.replies";Z==void 0?(this.set(d,{}),this.set(C,!1)):(this.set(d,{commentRepliesRenderer:{teaserContents:[{commentRenderer:Z}]}}),
this.set(d+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(C,!0))}C=this.commentIdToIndex(q,Y,!0);C>=0&&(C="data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+C,Y=C+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",C+=".commentThreadRenderer.replies",Z==void 0?(this.set(C,{}),this.set(Y,!1)):(this.set(C,{commentRepliesRenderer:{teaserContents:[{commentRenderer:Z}]}}),this.set(Y,!0)))}}};
_.e.removeFromStream=function(q,Z){if(Z){Z=this.postIdToIndices(Z);for(var w=0;w<Z.length;w++){var r=Z[w];if(r<0)break;var Y=this.commentIdToIndex(q,r,!1);Y>=0&&this.splice("data.contents."+r+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",Y,1);Y=this.commentIdToIndex(q,r,!0);Y>=0&&this.splice("data.contents."+r+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",Y,1);r="data.contents."+r+".backstagePostThreadRenderer.post.backstagePostRenderer";
Y=r+".backstageAttachment.pollRenderer.votedCommentId";this.get(Y)===q&&(this.set(Y,null),this.set(r+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(Z=this.postIdToIndices(q).reverse(),w=0;w<Z.length;w++){r=Z[w];if(r<0)break;Y=this.getPostRendererType(r);var C=this.get("backstagePostThreadRenderer.post."+Y,this.data.contents[r]);C.postId===q?this.splice("data.contents",r,1):Y==="sharedPostRenderer"&&this.set("data.contents."+r+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);C.scheduledPublishTimeSec&&_.yY(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.e.postIdToIndices=function(q){for(var Z=[],w=0;w<this.data.contents.length;w++){var r=this.getPostRendererType(w);this.get("backstagePostThreadRenderer.post."+r+".postId",this.data.contents[w])===q&&Z.push(w);if(r==="sharedPostRenderer"){var Y=this.get("backstagePostThreadRenderer.post."+r+".originalPost.backstagePostRenderer.postId",this.data.contents[w]);r=this.get("backstagePostThreadRenderer.post."+r+".originalPost.postRenderer.postId",this.data.contents[w]);Y!==q&&r!==q||Z.push(w)}}return Z};
_.e.commentIdToIndex=function(q,Z,w){if(Z<0)return-1;var r,Y,C,d,O=_.J((r=this.data)==null?void 0:(Y=r.contents)==null?void 0:(C=Y[Z])==null?void 0:(d=C.backstagePostThreadRenderer)==null?void 0:d.comments,RUK);return(Z=w?O==null?void 0:O.teaserContents:O==null?void 0:O.contents)&&Z.length?Z.findIndex(function(H){return _.J(H,hU7).comment.commentRenderer.commentId===q}):-1};
_.e.getParentPostId=function(q){q=q.split(".");if(q[1])return q[0]};
_.e.getPostRendererType=function(q){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[q])?"sharedPostRenderer":"backstagePostRenderer"};
var HL=Acy;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],HL.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],HL.prototype,"data",void 0);HL=_.X([_.l({disableElementRegistration:!0,is:"ytd-backstage-items"})],HL);
_.p(HL,"ytd-backstage-items",function(){if(mSS!==void 0)return mSS;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return mSS=
q},{mode:1});var fl7;_.$l({is:"ytd-comments",_template:function(){if(fl7!==void 0)return fl7;var q=document.createElement("template");_.a(q,'\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<tp-yt-paper-spinner-lite active="[[canShowDefaultSpinner_]]" class="style-scope ytd-comments"></tp-yt-paper-spinner-lite>\n<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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return fl7=q},
behaviors:[_.Bqz.YtHostElementBehavior,_.QQ.YtPlayerListenerBehavior,_.y.YtRendererBehavior,_.KK.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},canShowDefaultSpinner_:{type:Boolean,computed:"computeCanShowDefaultSpinner_(data, canScheduleJobs)"},
engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","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_"},
listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)","headerChanged_(data.header)"],created:function(){var q=this;this.RenderingPriority={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};this.initCommentsCsi_();this.player=
null;this.JSC$14559_PLAYER_EVENTS_=new Map;this.JSC$14559_PLAYER_EVENTS_.set("onVideoProgress",function(){q.onVideoProgress_()})},
attached:function(){this.maybeGetAndSetPlayer_()},
maybeGetAndSetPlayer_:function(){var q=this,Z=_.K6(this);Z&&Z.getPlayerPromise().then(function(w){q.playerApiReady_(w)})},
playerApiReady_:function(q){this.setPlayer_(q)},
setPlayer_:function(q){this.player_&&this.unlistenFromPlayerEvents(this.player_,this.JSC$14559_PLAYER_EVENTS_);(this.player_=q)&&this.listenToPlayerEvents(q,this.JSC$14559_PLAYER_EVENTS_)},
detached:function(){this.setPlayer_(null)},
onVideoProgress_:function(){var q=this,Z=_.m6("prefetch_comments_ms_after_video");Z>0&&setTimeout(function(){return q.loadComments()},Z);
_.b("prefetch_comments_idle_job")&&_.WO(_.v5,function(){return q.loadComments()});
this.setPlayer_(null)},
dataChanged_:function(){this.player_||this.maybeGetAndSetPlayer_()},
contentsChanged_:function(q){q&&q.value&&q.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(q){q&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.bI("wn_comments");var q=_.b5();q&&_.RV({clientScreenNonce:q},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(q){q=Biz(q);var Z,w,r;if(q=(Z=q)==null?void 0:(w=Z.createCommentAction)==null?void 0:(r=w.contents)==null?void 0:r.commentThreadRenderer){var Y,C,d,O,H,L;!this.isBackstage&&((Y=this.data)==null?0:(C=Y.header)==null?0:(d=C.commentsHeaderRenderer)==null?0:(O=d.createRenderer)==null?0:(H=O.commentSimpleboxRenderer)==null?0:(L=H.zeroStep)==null?0:L.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var S,v,R,B;this.isBackstage&&((S=this.data)==null?0:(v=S.header)==null?0:(R=v.commentsHeaderRenderer)==null?0:(B=R.zeroStateMessage)==null?0:B.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(q)}},
doReplyInsert_:function(q,Z,w,r){r?this.splice(q,r,0,Z):this.push(q,Z)},
getRepliesPath_:function(q){return"data.contents."+q+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(q,Z){q=this.getRepliesPath_(q);return Z?q+".commentRepliesRenderer.teaserContents":q+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(q){q=Biz(q);var Z,w,r=(Z=q)==null?void 0:(w=Z.createCommentReplyAction)==null?void 0:w.parentCommentId,Y,C;if(Z=(Y=q)==null?void 0:(C=Y.createCommentReplyAction)==null?void 0:C.contents)if(r=this.commentIdToIndex_(r),!(r<0))if(Y=this.getRepliesPath_(r),this.get(Y)){var d,O;q=(d=q)==null?void 0:(O=d.createCommentReplyAction)==null?void 0:O.replyToCommentId;d=this.getRepliesContentsPath_(r,!1);this.get(d)&&(O=this.get(d).length,Y=d+"."+(O-1)+".continuationItemRenderer",
this.get(Y+".button")?(Y=this.replyIdToIndex_(q,r,!1),this.doReplyInsert_(d,Z,Y,O-1)):this.get(Y)||(O=this.replyIdToIndex_(q,r,!1),this.doReplyInsert_(d,Z,O,null)));d=this.getRepliesContentsPath_(r,!0);this.get(d)?(r=this.replyIdToIndex_(q,r,!0),(!q||r>=0)&&this.doReplyInsert_(d,Z,r,null)):this.set(d,[Z])}else this.set(Y,{commentRepliesRenderer:{teaserContents:[Z]}})},
hideReportedCommentAction_:function(q){var Z,w=q==null?void 0:(Z=q.hideReportedCommentAction)==null?void 0:Z.commentId;if(w){var r;q=q==null?void 0:(r=q.hideReportedCommentAction)==null?void 0:r.parentCommentId;w=w.replace("#",".");q||(q=this.getParentCommentId_(w));this.remove_(w,q)}},
getParentCommentId_:function(q){q=q.split(".");if(q[1])return q[0]},
removeCommentAction_:function(q){var Z,w=q==null?void 0:(Z=q.removeCommentAction)==null?void 0:Z.commentId;if(w){var r;q=q==null?void 0:(r=q.removeCommentAction)==null?void 0:r.parentCommentId;w=w.replace("#",".");q||(q=this.getParentCommentId_(w));this.remove_(w,q)}},
pinCommentAction_:function(q){q=Biz(q);var Z,w,r=(Z=q)==null?void 0:(w=Z.pinCommentAction)==null?void 0:w.commentId;r&&(q=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",q))&&(this.remove_(r),this.insert_(q,!0))},
unpinCommentAction_:function(q){q=Biz(q);var Z,w,r=(Z=q)==null?void 0:(w=Z.unpinCommentAction)==null?void 0:w.commentId;if(r){var Y,C,d;if(q=(Y=q.unpinCommentAction)==null?void 0:(C=Y.actionResult)==null?void 0:(d=C.update)==null?void 0:d.commentThreadRenderer)this.remove_(r),this.insert_(q)}},
banAuthorAction_:function(q){var Z,w=q==null?void 0:(Z=q.banAuthorAction)==null?void 0:Z.commentId;if(w){var r;q=q==null?void 0:(r=q.banAuthorAction)==null?void 0:r.parentCommentId;w=w.replace("#",".");q||(q=this.getParentCommentId_(w));this.remove_(w,q)}},
commentIdToIndex_:function(q){var Z;return q&&(Z=this.data)!=null&&Z.contents?this.data.contents.findIndex(function(w){var r,Y;return q===((w==null?void 0:(r=w.commentThreadRenderer)==null?void 0:r.commentViewModel)&&((Y=_.J(w.commentThreadRenderer.commentViewModel,qs2))==null?void 0:Y.commentId))}):-1},
insert_:function(q,Z){var w,r;if((w=this.data)==null?0:(r=w.contents)==null?0:r.some(function(C){return!(C==null||!C.commentThreadRenderer)}))for(w=0,r=this.data.contents.length;w<r;w++){var Y=this.data.contents[w].commentThreadRenderer;
if(this.RenderingPriority[q.renderingPriority]>=this.RenderingPriority[Y.renderingPriority]){Z&&this.RenderingPriority[q.renderingPriority]==this.RenderingPriority[Y.renderingPriority]?this.splice("data.contents",w,1,{commentThreadRenderer:q}):this.splice("data.contents",w,0,{commentThreadRenderer:q});break}}else this.set("data.contents",[{commentThreadRenderer:q}])},
doReplyRemove_:function(q,Z,w){q=this.replyIdToIndex_(q,Z,w);q<0||(Z=this.getRepliesContentsPath_(Z,w),this.splice(Z,q,1))},
remove_:function(q,Z){Z=this.commentIdToIndex_(Z);Z<0?(Z=this.commentIdToIndex_(q),Z<0||this.splice("data.contents",Z,1)):(this.doReplyRemove_(q,Z,!1),this.doReplyRemove_(q,Z,!0))},
replyIdToIndex_:function(q,Z,w){if(Z<0)return-1;Z=this.getRepliesContentsPath_(Z,w);Z=this.get(Z);if(!Z||!Z.length)return-1;w=0;for(var r=Z.length;w<r;w++){var Y=void 0,C=void 0;if(((Y=Z[w])==null?void 0:(C=Y.commentViewModel)==null?void 0:C.commentId)===q)return w}return-1},
computeIsBackstage_:function(q){return!!q},
computeCanShowDefaultSpinner_:function(q,Z){return Z?(Z=_.t().resolve(_.Gj(_.U1)))&&Z.isOnWatch&&Z.isOnWatch()?!(q&&(q.contents||q.header||q.continuations)):!1:!1},
onRetrieveLocation_:function(q,Z){Z&&Z.hasComments&&this.tickForCommentsTimer_("lss")},
tickForCommentsTimer_:function(q){_.z7(q,void 0,"wn_comments")},
reloadComments_:function(q){q&&q.reloadCommentsCommand&&q.reloadCommentsCommand.command&&q.reloadCommentsCommand.command.continuationCommand&&_.qM(this,[q.reloadCommentsCommand.command])},
loadComments:function(){_.m6("prefetch_comments_ms_after_video")||_.b("prefetch_comments_idle_job")?this.$.sections.triggerInitialContinuations():this.$.sections.triggerContinuations()}});var DSS=function(){return _.y5.apply(this,arguments)||this};
_.z(DSS,_.y5);_.e=DSS.prototype;_.e.bindIf=function(q,Z,w){return q?Z:w};
_.e.bindIfDefined=function(q,Z){return q!==void 0?q:Z};
_.e.booleanString=function(q){return(!!q).toString()};
_.e.equals=function(){for(var q=_.Ta.apply(0,arguments),Z=q[0],w=1;w<q.length;w++)if(Z!=q[w])return!1;return!0};
_.e.isGreaterThan=function(q,Z){return q>Z};
_.e.isLessThan=function(q,Z){return q<Z};
_.e.logicalAND=function(){for(var q=_.Ta.apply(0,arguments),Z=!!q[0],w=1;w<q.length;w++)Z=Z&&!!q[w];return Z};
_.e.logicalOR=function(){for(var q=_.Ta.apply(0,arguments),Z=!!q[0],w=1;w<q.length;w++)Z=Z||!!q[w];return Z};
_.e.toBool=function(q){return!!q};
var WL=DSS;WL.prototype.toBool=WL.prototype.toBool;WL.prototype.logicalOR=WL.prototype.logicalOR;WL.prototype.logicalAND=WL.prototype.logicalAND;WL.prototype.isLessThan=WL.prototype.isLessThan;WL.prototype.isGreaterThan=WL.prototype.isGreaterThan;WL.prototype.equals=WL.prototype.equals;WL.prototype.booleanString=WL.prototype.booleanString;WL.prototype.bindIfDefined=WL.prototype.bindIfDefined;WL.prototype.bindIf=WL.prototype.bindIf;WL=_.X([_.iq()],WL);_.hZb=[WL.prototype];var yc8;var ilc;var g8V=function(){return _.N.apply(this,arguments)||this};
_.z(g8V,_.N);g8V.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
g8V.prototype.onBackIconTap_=function(){window.history.back()};
var oN=g8V;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],oN.prototype,"data",void 0);oN=_.X([_.dx({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],oN);
_.p(oN,"yt-header-with-back-renderer",function(){if(ilc===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;yc8===void 0&&(yc8=document.createElement("template"));var r=yc8;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);ilc=q}q=ilc;return q},{mode:2});var qXF;var ZAD;var w8q=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.z(w8q,_.N);_.e=w8q.prototype;_.e.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.e.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.isDarkTheme=q,this.setUrl())};
_.e.dataChanged=function(){var q=this;if(this.data){var Z=this.setUrl();Z&&_.pc({destination:window,iframe:this.iframe,origin:_.S62(Z.toString()),channelName:"yt-iframe",onMessage:function(w){(w=q.getCommunicationCommand(w.data))&&q.ytComponentBehavior.resolveCommand(w)},
onEstablished:function(){}})}};
_.e.setUrl=function(){if(this.data&&this.data.iframeUrl){var q=_.jJ(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(q)return _.F5(this.iframe,q),q}};
_.e.getCommunicationCommand=function(q){var Z;if((Z=this.data)!=null&&Z.onCommunicationCommandsMap){Z=this.data.onCommunicationCommandsMap.find(function(Y){return Y.key===q});
if(Z==null?0:Z.value)return Z==null?void 0:Z.value;try{var w=$nJ(_.q7(q)),r=this.data.onCommunicationCommandsMap.find(function(Y){return Y.key===(w==null?void 0:_.bY(w,1))});
if(r==null?0:r.value)return r==null?void 0:r.value}catch(Y){}}};
var bt=w8q;bt.prototype.dataChanged=bt.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],bt.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],bt.prototype,"actionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],bt.prototype,"data",void 0);
_.X([_.F({value:!1}),_.A("design:type",Boolean)],bt.prototype,"isDarkTheme",void 0);_.X([_.fo("#iframe"),_.A("design:type",HTMLIFrameElement)],bt.prototype,"iframe",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bt.prototype,"dataChanged",null);bt=_.X([_.dx({is:"yt-iframe-renderer",disableElementRegistration:!0})],bt);
_.p(bt,"yt-iframe-renderer",function(){if(ZAD===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;qXF===void 0&&(qXF=document.createElement("template"));var r=qXF;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);ZAD=q}q=ZAD;return q},{mode:2});_.JB=function(q){_.u6.call(this);this.callback=q;this.bezier=new we2(0,0,.4,0,.2,1,1,1);this.delay=new _.Gl(this.next,window,this);this.JSC$14577_animating=!1;_.$i(this,this.delay)};
_.z(_.JB,_.u6);_.JB.prototype.isAnimating=function(){return this.JSC$14577_animating};
_.JB.prototype.start=function(q,Z,w){this.config={from:q,to:Z,duration:w,startTime:(0,_.lp)()};this.JSC$14577_animating=!0;this.next()};
_.JB.prototype.stop=function(){this.delay.stop();this.JSC$14577_animating=!1;this.config=void 0};
_.JB.prototype.next=function(){if(this.config){var q=this.config,Z=q.from,w=q.to,r=q.duration;q=q.startTime;var Y=(0,_.lp)()-q;q=this.bezier;r=Y12(q,Y/r);if(r==0)q=q.y0;else if(r==1)q=q.y3;else{Y=LI(q.y0,q.y1,r);var C=LI(q.y1,q.y2,r);q=LI(q.y2,q.y3,r);Y=LI(Y,C,r);C=LI(C,q,r);q=LI(Y,C,r)}q=_.a0(q,0,1);this.callback(Z+(w-Z)*q);q<1?this.delay.start():this.JSC$14577_animating=!1}};_.zt=new _.F$("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var rIl={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},$K8=function(q,Z,w,r){_.u6.call(this);this.JSC$14585_miniAppId=q;this.localReleaseId=Z;this.derivedDeviceInterface=w;this.isForeground=r;this.JSC$14585_playNonceResolver=new _.Dk;this.playPingTimerId=NaN;this.playPingIntervalMs=_.m6("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.m6("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.b("enable_displaying_ppn");this.JSC$14585_miniAppClientDataProvider=_.t().resolve(_.zt);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;YXZ(this);var Y=setTimeout(function(){_.bx(new _.df("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14585_playNonceResolver.promise.then(function(){clearTimeout(Y)})};
_.z($K8,_.u6);var Cgl=function(q,Z){q.JSC$14585_playNonceResolver.resolve(Z!=null?Z:js(8));q.enableDisplayingPpn&&edF(q).then(function(w){q.JSC$14585_miniAppClientDataProvider.clientData.set("post_play_nonce",w)})},edF=function(q){return _.V(function(Z){return Z.nextAddress==1?_.W(Z,q.JSC$14585_playNonceResolver.promise,2):Z.return(Z.yieldResult)})},YXZ=function(q){var Z,w;
_.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$14585_playNonceResolver.promise,2);Z=r.yieldResult;w={miniAppInfo:{externalPostId:q.JSC$14585_miniAppId,localReleaseId:q.localReleaseId,postPlayNonce:Z,derivedDeviceInterface:q.derivedDeviceInterface}};_.RV(w);_.ub(r)})},dKu=function(q){q.state!==0?_.bx(new _.df("[MiniAppPlayLogger] recordPlayStart failed with state "+rIl[q.state])):(q.state=1,BL(q,"ma_cl"),aN(q,"PLAY_EVENT_TYPE_PLAY_START"),PgC(q))},V6b=function(q){q.isForeground=!1;
aN(q,"PLAY_EVENT_TYPE_PLAY_PAUSE")},OA7=function(q){q.state!==1&&q.state!==2?_.bx(new _.df("[MiniAppPlayLogger] recordPlayEnd failed with state "+rIl[q.state])):(q.state=3,window.clearInterval(q.playPingTimerId),q.playPingTimerId=NaN,qZX(),aN(q,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},HAl=function(q,Z){q.state===2&&q.gameReady&&(q.firstClickRecorded?Date.now()-q.clickRecordedMs<q.playClickIntervalMs||(q.clickRecordedMs=Date.now(),aN(q,"PLAY_EVENT_TYPE_PLAY_CLICK")):Z&&(BL(q,"ma_fua"),aN(q,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),q.firstClickRecorded=!0,q.clickRecordedMs=Date.now()))};
$K8.prototype.logError=function(q){var Z=this,w;_.V(function(r){if(r.nextAddress==1)return q.metadata.externalPostId=Z.JSC$14585_miniAppId,w=q.metadata,_.W(r,Promise.race([Z.JSC$14585_playNonceResolver.promise,new Promise(function(Y){setTimeout(function(){Y("")},3E4)})]),2);
w.postPlayNonce=r.yieldResult;q.metadata.localReleaseId=Z.localReleaseId;q.loggingError.level="WARNING";_.tY(q.loggingError,q.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:q.metadata});_.ub(r)})};
var WmF=function(q,Z,w,r){var Y,C,d,O,H,L;_.V(function(S){if(S.nextAddress==1)return _.W(S,q.JSC$14585_playNonceResolver.promise,2);Y=S.yieldResult;C={externalPostId:q.JSC$14585_miniAppId,localReleaseId:q.localReleaseId,postPlayNonce:Y,sdkVersion:w,api:Z};r!==void 0&&(C.networkRequestsMeasurement={networkRequests:_.DM(r,1),cachedRequests:_.DM(r,2),transferredBytes:_.DM(r,3)},(d=r)==null?0:_.Og(d,ct,6))&&(C.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((O=_.Xy(r,
ct,6))==null?void 0:zP(O,1))||"0",cacheHits:((H=_.Xy(r,ct,6))==null?void 0:zP(H,2))||"0",cachedBytes:((L=_.Xy(r,ct,6))==null?void 0:zP(L,3))||"0"});_.vO("miniAppSdkUsage",C);_.ub(S)})},u5l=function(q,Z,w){var r,Y,C,d,O,H,L,S,v,R,B,n,x,K,k,G;
_.V(function(rz){if(rz.nextAddress==1)return _.W(rz,q.JSC$14585_playNonceResolver.promise,2);r=rz.yieldResult;Y={externalPostId:q.JSC$14585_miniAppId,localReleaseId:q.localReleaseId,postPlayNonce:r,sdkVersion:w,measurementWindow:{startTimestampMs:String(tz(Z,1)),endTimestampMs:String(tz(Z,2))},frameRate:{averageFrameTimeDeltaMs:Rl(Z,3),averageFrameIdleTimeMs:Rl(Z,4)}};_.Og(Z,MI,5)&&(Y.networkRequests={networkRequests:(C=mb(Z))==null?void 0:_.DM(C,1),cachedRequests:(d=mb(Z))==null?void 0:_.DM(d,2),
transferredBytes:(O=mb(Z))==null?void 0:_.DM(O,3),sameOriginStatusCodeToCounts:ovl((H=mb(Z))==null?void 0:v86(H,4)),crossOriginStatusCodeToCounts:ovl((L=mb(Z))==null?void 0:v86(L,5))},(S=mb(Z))==null?0:_.Og(S,ct,6))&&(Y.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((v=mb(Z))==null?void 0:(R=_.Xy(v,ct,6))==null?void 0:zP(R,1))||"0",cacheHits:((B=mb(Z))==null?void 0:(n=_.Xy(B,ct,6))==null?void 0:zP(n,2))||"0",cachedBytes:((x=mb(Z))==null?void 0:(K=_.Xy(x,ct,6))==null?void 0:
zP(K,3))||"0"});_.Og(Z,Sv1,7)&&(Y.gameCapture={averageFrameTimeDeltaMs:(k=_.Xy(Z,Sv1,7))==null?void 0:Rl(k,1),averageFrameIdleTimeMs:(G=_.Xy(Z,Sv1,7))==null?void 0:Rl(G,2)});_.vO("miniAppPerformanceMetrics",Y);_.ub(rz)})},LmZ=function(q,Z,w){var r,Y;
return _.V(function(C){if(C.nextAddress==1)return _.W(C,q.JSC$14585_playNonceResolver.promise,2);r=C.yieldResult;Y={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:q.JSC$14585_miniAppId,postPlayNonce:r,miniAppReleaseId:q.localReleaseId},derivedDeviceInterface:q.derivedDeviceInterface,adTriggerType:Z};Y.rejectedReason=w||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.vO("miniAppAdEvent",Y);_.ub(C)})};
$K8.prototype.disposeInternal=function(){_.u6.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var aN=function(q,Z,w,r){w=w===void 0?{}:w;r=r===void 0?!1:r;var Y,C,d,O;_.V(function(H){if(H.nextAddress==1)return Y=q.isForeground,C=q.beforeReady,_.W(H,q.JSC$14585_playNonceResolver.promise,2);d=H.yieldResult;O={externalPostId:q.JSC$14585_miniAppId,localReleaseId:q.localReleaseId,derivedDeviceInterface:q.derivedDeviceInterface,postPlayNonce:d,type:Z};w.sequenceGroup=d;O.playState=C?"PLAY_STATE_NOT_READY":Y?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.vO("miniAppPlayEvent",O,w);
r&&_.jX();_.ub(H)})},BL=function(q,Z){var w;
_.V(function(r){if(r.nextAddress==1)return w=(0,_.lp)(),_.W(r,q.JSC$14585_playNonceResolver.promise,2);_.JT(Z,w);_.ub(r)})},PgC=function(q){isNaN(q.playPingTimerId)&&(q.playPingTimerId=_.yV(function(){q.state!==1&&q.state!==2?_.bx(new _.df("[MiniAppPlayLogger] reportPlayPing failed with state "+rIl[q.state])):aN(q,"PLAY_EVENT_TYPE_PLAY_PING")},q.playPingIntervalMs))},ovl=function(q){return Array.from(q.entries()).map(function(Z){var w=_.P(Z);
Z=w.next().value;w=w.next().value;return{key:Z,value:w}})};var SX6=_.m6("show_mini_app_ad_frequency_cap_ms",0),vvc=function(){this.showAdIntervalMs=SX6;this.isRateLimited=!0},j9q=function(q,Z){setTimeout(function(){return q.isRateLimited=!1},q.showAdIntervalMs);
q.showMiniAppAdCommand=Z.showMiniAppAdCommand;q.isEmbeddedInWebview=Z.isEmbeddedInWebview;q.playLogger=Z.playLogger},Rdu=function(q,Z){var w;
return _.V(function(r){if(r.nextAddress==1){if(!q.showMiniAppAdCommand||!q.isEmbeddedInWebview)return r.return(t6q(q,Z,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(q.isRateLimited)return r.return(t6q(q,Z,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));q.adResolver=new _.Dk;w=Kwp(new kZD,Z);k_(q.showMiniAppAdCommand,s7W(w));q.isRateLimited=!0;setTimeout(function(){return q.isRateLimited=!1},q.showAdIntervalMs);
return _.W(r,q.adResolver.promise,2)}return r.return(r.yieldResult)})};
vvc.prototype.onAdFinished=function(q){q=hL1(q);var Z;(Z=this.adResolver)==null||Z.resolve(q)};
var t6q=function(q,Z,w){var r;return _.V(function(Y){if(Y.nextAddress==1)Y=_.W(Y,(r=q.playLogger)==null?void 0:LmZ(r,Ti1(Z),w),2);else{var C=Y.return;var d=new DYW;d=_.mh(d,1,2);Y=C.call(Y,d)}return Y})};var bAq=new _.F$("INNERTUBE_MANAGER_TOKEN");var JIu=function(){this.callbacks={}};
JIu.prototype.initialize=function(q){var Z=this;this.callbacks=q;window.youtubewebview?window.youtubewebview.onmessage=function(w){zdV(Z,w)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(w){zdV(Z,w)})};
var zdV=function(q,Z){if(Z.data)try{var w=$nJ(Z.data);if(_.Hy(_.VM(w,1))!=null){var r=Q7g(_.bY(w,2));switch(_.bY(w,1)){case "yt-mini-app-load-audio-state":var Y,C;(C=(Y=q.callbacks).onAudioStateLoaded)==null||C.call(Y,_.jF(r,d5(r,uG,1)));break;case "yt-mute-mini-app":var d,O;(O=(d=q.callbacks).onMuteMiniApp)==null||O.call(d);break;case "yt-unmute-mini-app":var H,L;(L=(H=q.callbacks).onUnmuteMiniApp)==null||L.call(H);break;case "yt-playable-exit":var S,v;(v=(S=q.callbacks).onExit)==null||v.call(S);
break;case "yt-post-play-nonce":var R,B;(B=(R=q.callbacks).onPostPlayNonceReceived)==null||B.call(R,BI(r,2,uG));break;case "yt-confirm-exit-mini-app":var n,x;(x=(n=q.callbacks).confirmExitMiniApp)==null||x.call(n);break;case "yt-confirm-exit-mini-app-edu":var K,k;(k=(K=q.callbacks).confirmExitMiniAppEdu)==null||k.call(K);break;case "yt-benchmarking-response":var G,rz;(rz=(G=q.callbacks).onNativeBenchmarkingMessageReceived)==null||rz.call(G,BI(r,2,uG));break;case "yt-mini-app-load-3p-consent-state":var f,
eO;(eO=(f=q.callbacks).multiplayer3pAckStateLoaded)==null||eO.call(f,_.jF(r,d5(r,uG,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var g,H6;(H6=(g=q.callbacks).exitMiniAppSeenStateLoaded)==null||H6.call(g,_.jF(r,d5(r,uG,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var nX,Qj;(Qj=(nX=q.callbacks).onNavigateToNewMiniApp)==null||Qj.call(nX);break;case "yt-game-data-available":var SO,Te;(Te=(SO=q.callbacks).onGameDataAvailable)==null||Te.call(SO,BI(r,2,uG));break;case "yt-pause-mini-app":var Ze,
W1;(W1=(Ze=q.callbacks).onPauseMiniApp)==null||W1.call(Ze);break;case "yt-resume-mini-app":var A2,f9;(f9=(A2=q.callbacks).onResumeMiniApp)==null||f9.call(A2);break;case "yt-playable-ad-finished":var Dl,$g;($g=(Dl=q.callbacks).onAdFinished)==null||$g.call(Dl,BI(r,2,uG))}}else _.bx(Error("Sh"))}catch(De){_.tY(Error("Th"))}else _.bx(Error("Uh"))};var kr6=function(q){this.rpcErrorCode=q};var n1=function(q,Z,w){this.intervalMs=q;this.apiFunc=Z;this.type=w;this.schedulerReady=!0};
n1.prototype.call=function(q){var Z=this,w;return _.V(function(r){if(r.nextAddress==1){if(Z.type!==1&&q===Z.cachedValue)return r.return();Z.pendingApiRequestResolver||(Z.pendingApiRequestResolver=new _.Dk);w=Z.pendingApiRequestResolver.promise;Z.cachedValue=q;return _.W(r,BrD(Z),2)}return r.return(w)})};
n1.prototype.flush=function(q){q=q===void 0?!1:q;var Z=this;return _.V(function(w){return Z.cachedValue===void 0?w.return():_.W(w,Z.apiFunc(Z.cachedValue,q),0)})};
var BrD=function(q){var Z,w,r;return _.V(function(Y){switch(Y.nextAddress){case 1:if(!q.schedulerReady||!q.pendingApiRequestResolver)return Y.return();q.schedulerReady=!1;Z=q.pendingApiRequestResolver;q.pendingApiRequestResolver=void 0;_.d9(Y,2);if(q.cachedValue===void 0){Y.jumpTo(4);break}return _.W(Y,q.apiFunc(q.cachedValue),5);case 5:w=Y.yieldResult,Z.resolve(w);case 4:_.QL(Y,3);break;case 2:r=_.o3(Y),Z.reject(r);case 3:setTimeout(function(){return _.V(function(C){q.schedulerReady=!0;return _.W(C,
BrD(q),0)})},q.intervalMs),_.ub(Y)}})};var Imj=window.location.origin+"/miniapp_cloudsaves",KVj=[400,401],aFu=_.m6("cloud_save_game_data_rate_limit_ms",3E3),Evq=function(q){var Z=this;this.JSC$14629_miniAppId=q;this.loadAttempts=0;this.cloudSaveIntervalMs=aFu;this.initialDownloadDataSucceeded=!1;this.JSC$14629_playNonceResolver=new _.Dk;this.scottyUploadRateLimiter=new n1(this.cloudSaveIntervalMs,function(w,r){return nv8(Z,w,r)},2);
this.downloadDataPromise=Q9u(this);this.downloadDataPromise.then(function(){Z.initialDownloadDataSucceeded=!0}).catch(function(){})},xKl=function(q,Z){Z.then(function(w){return q.JSC$14629_playNonceResolver.resolve(w)})},Tr6=function(q){return _.V(function(Z){return q.cachedData===void 0?Z.return(q.downloadDataPromise):Z.return(q.cachedData)})},UKC=function(q,Z){return _.V(function(w){q.cachedData=Z;
if(!q.initialDownloadDataSucceeded)throw Error("Vh");return _.W(w,q.scottyUploadRateLimiter.call(Z),0)})},kac=function(){return new Promise(function(q){setTimeout(q,1E3,"")})},Kml=function(q,Z){var w,r;
return _.V(function(Y){if(Y.nextAddress==1)return w=q.JSC$14629_miniAppId,_.W(Y,Promise.race([q.JSC$14629_playNonceResolver.promise,kac()]),2);r={"X-YouTube-MiniAppId":w,"X-YouTube-PostPlayNonce":Y.yieldResult};"DELEGATED_SESSION_ID"in _.Rz&&UM2(Z,r);return Y.return(r)})},nv8=function(q,Z,w){w=w===void 0?!1:w;
return _.V(function(r){return Uc2()?_.b("enable_cloud_save_error_popup_after_retry")?r.return(new Promise(function(Y,C){var d,O,H,L,S;return _.V(function(v){switch(v.nextAddress){case 1:d=0,O=!0,L=H=null;case 2:if(!(O&&d++<2)){v.jumpTo(4);break}_.d9(v,5);return _.W(v,s9q(q,Z,w),7);case 7:H=v.yieldResult;O=H.ok?!1:!KVj.includes(H.status);_.QL(v,2);break;case 5:L=S=_.o3(v);O=sUI(L);v.jumpTo(2);break;case 4:H?H.ok?(Qi(q,aFu),Y()):(Qi(q,q.cloudSaveIntervalMs*2),C(Error("Wh`"+String(H.status),{cause:{rpcErrorCode:H.status}}))):
(Qi(q,q.cloudSaveIntervalMs*2),C(L||Error("Xh"))),_.ub(v)}})})):r.return(new Promise(function(Y,C){var d,O;
return _.V(function(H){if(H.nextAddress==1){if(q.JSC$14629_miniAppId==="")return C(Error("Yh")),H.return();_.d9(H,2);return _.W(H,s9q(q,Z,w),4)}if(H.nextAddress!=2)return d=H.yieldResult,d.ok?(Qi(q,aFu),Y()):(Qi(q,q.cloudSaveIntervalMs*2),C(Error("Wh`"+String(d.status),{cause:{rpcErrorCode:d.status}}))),_.QL(H,0);O=_.o3(H);Qi(q,q.cloudSaveIntervalMs*2);C(O);_.ub(H)})})):r.return()})},s9q=function(q,Z,w){w=w===void 0?!1:w;
var r,Y,C;return _.V(function(d){if(d.nextAddress==1)return r=_.Rq((new TextEncoder).encode(Z)),Y=cUe(),_.W(d,Kml(q,Y),2);C=d.yieldResult;return d.return(fetch(Y,{method:"POST",body:new Blob([r]),headers:C,keepalive:w}))})},Q9u=function(q){var Z,w;
return _.V(function(r){if(r.nextAddress==1){if(!Uc2())return r.return("");if(q.JSC$14629_miniAppId==="")throw Error("Yh");if(q.loadAttempts>2)return r.return(q.downloadDataPromise);_.d9(r,2);return _.W(r,IF6(q),4)}if(r.nextAddress!=2)return Z=r.yieldResult,r.return(Z);w=_.o3(r);if(sUI(w)&&++q.loadAttempts<2)return r.return(Q9u(q));throw w;})},IF6=function(q){var Z,w,r,Y,C;
return _.V(function(d){switch(d.nextAddress){case 1:return _.d9(d,2),Z=cUe(),_.W(d,Kml(q,Z),4);case 4:return w=d.yieldResult,_.W(d,fetch(Z,{method:"GET",headers:w}),5);case 5:return r=d.yieldResult,r.ok?_.W(d,r.text(),6):d.return(Promise.reject(Error("Zh`"+String(r.status),{cause:new kr6(r.status)})));case 6:return Y=d.yieldResult,d.return((new TextDecoder).decode(_.q7(Y)));case 2:return C=_.o3(d),d.return(Promise.reject(C))}})},Qi=function(q,Z){q.cloudSaveIntervalMs=Z;
q.scottyUploadRateLimiter.intervalMs=q.cloudSaveIntervalMs};
Evq.prototype.flush=function(){var q=this;return _.V(function(Z){return q.initialDownloadDataSucceeded?_.W(Z,q.scottyUploadRateLimiter.flush(!0),0):Z.return()})};var cI7=pk(Gv(1),NI(1)),M6V=pk(Gv(1),NI(3)),EC=function(q){this.callbacks=q};
_.e=EC.prototype;_.e.onAudioToggled=function(q,Z){(Z===void 0||Z)&&_.yq("yt-mini-app-is-audio-enabled",q,2592E3)};
_.e.onPause=function(){this.onAudioToggled(!1,!1)};
_.e.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.e.returnNativeBenchmarkingMessage=function(){};
_.e.sendGameData=function(){};
_.e.sendStartGameFrameCapture=function(){};
var MvI=function(q,Z,w){this.callbacks=q;var r=this;this.sdkVersion=new _.Dk;this.channel=new Geg(_.pc({destination:window,iframe:Z,origin:(new URL(w.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var Y=xE;var C=Gv(5);var d=new $fK;d=_.nc(d,1,1E4);C=_.dr(C,4,W91,d);Y(r,C);r.onAudioToggled(r.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){r.sdkVersion.resolve("")},1E4)};
_.z(MvI,EC);_.e=MvI.prototype;_.e.onAudioToggled=function(q,Z){EC.prototype.onAudioToggled.call(this,q,Z===void 0?!0:Z);Z=xE;var w=Gv(2),r=new r$X;q=_.ZA(r,1,q);q=_.dr(w,3,W91,q);Z(this,q)};
_.e.onPause=function(){EC.prototype.onPause.call(this);xE(this,Gv(3))};
_.e.onResume=function(){EC.prototype.onResume.call(this);xE(this,Gv(4))};
_.e.returnNativeBenchmarkingMessage=function(q){var Z=xE,w=Gv(6);var r=NI(_.Og(q,Ir,1)?1:2);q=_.Og(q,Ir,1)?q:null;r=_.dr(r,5,lJ,q);Z(this,pk(w,r))};
_.e.sendGameData=function(q){var Z=xE,w=Gv(7);q=_.dr(w,5,W91,q);Z(this,q)};
_.e.sendStartGameFrameCapture=function(){xE(this,Gv(9))};
var Tt=function(q,Z,w){var r,Y,C;return _.V(function(d){if(d.nextAddress==1)return r=q.callbacks,Y=r.onSdkCalled,C=Z,_.W(d,q.sdkVersion.promise,2);Y.call(r,C,d.yieldResult,w);_.ub(d)})};
MvI.prototype.onMessage=function(){var q=this;return mj9(A4,function(Z){var w,r,Y,C,d,O,H,L,S,v,R,B,n,x,K,k,G,rz,f,eO,g,H6,nX,Qj,SO,Te,Ze,W1,A2,f9,Dl,$g,De,n9,Rh,xg,ZF,mm,CX,rb,mv,lC,L9,ah;return _.V(function(gz){switch(gz.nextAddress){case 1:if(!Rv1(Z.data))return _.bx(Error("$h")),gz.return();w=_.Jz(Z.data,1);_.b("enable_iframe_message_get_type_via_fields")&&(r=Z.data,w=Y=_.Jz(r,1));switch(w){case 8:if(Z.data.hasMetadata()){var lN=q.sdkVersion,Op=lN.resolve;var hK=Z.data.getMetadata();hK=_.bY(hK,
1);Op.call(lN,hK);clearTimeout(q.sdkVersionTimeoutId)}break;case 6:return gz.jumpTo(2);case 16:if(!_.HI(Z.data,ubK,14,fk))return gz.return();C=_.al(Z.data,ubK,14,fk);(O=(d=q.callbacks).onGameFrameReceived)==null||O.call(d,C);return gz.return();case 1:if(lN=_.al(Z.data,P4m,2,fk))switch(_.Jz(lN,1)){case 1:q.callbacks.onFirstFrameReady();if(_.b("enable_network_request_logging_on_game_events")&&_.Og(lN,MI,4)){Tt(q,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Xy(lN,MI,4));break}Tt(q,"MINI_APP_SDK_API_FIRST_FRAME_READY");
break;case 2:(hK=(Op=q.callbacks).onGameReady)==null||hK.call(Op);if(_.b("enable_network_request_logging_on_game_events")&&_.Og(lN,MI,4)){Tt(q,"MINI_APP_SDK_API_GAME_READY",_.Xy(lN,MI,4));break}Tt(q,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.HI(lN,FW,3,dfg))q.callbacks.onResourceLoaded(_.al(lN,FW,3,dfg))}return gz.return();case 3:return gz.jumpTo(3);case 4:return gz.jumpTo(4);case 2:return gz.jumpTo(5);case 9:return gz.jumpTo(6);case 10:return q.callbacks.onClick(),gz.return();case 5:return gz.jumpTo(7);
case 11:if(!_.HI(Z.data,sZ,9,fk))return gz.return();H=_.al(Z.data,sZ,9,fk);(S=(L=q.callbacks).onBenchmarkingMessageReceived)==null||S.call(L,H);lN=Z.reply;Op=Gv(1);hK=NI(1);var wr=new sZ;var TJ=new Uint8Array(uL1(H,d5(H,icW,6))|0);wr=Y7(wr,5,icW,_.JK(TJ,!1));hK=_.dr(hK,5,lJ,wr);lN.call(Z,pk(Op,hK));return gz.return();case 12:return gz.jumpTo(8);case 13:return gz.jumpTo(9);case 15:if(!_.b("enable_open_yt_content"))return Z.reply(M6V),gz.return();if(!_.HI(Z.data,oA9,12,fk))return Z.reply(pk(Gv(1),NI(2))),
gz.return();lN=_.al(Z.data,oA9,12,fk);v=_.bY(lN,1);q.callbacks.onOpenYTContent(v);Z.reply(cI7);return gz.return();case 14:return gz.jumpTo(10);default:return gz.return()}gz.jumpTo(0);break;case 2:if(!_.HI(Z.data,XW,5,fk))return gz.return();Op=Z.data;lN=d5(Op,fk,5);Op=Op.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(lN=Jce(Op,Op[_.P1]|0,XW,lN))||(lN=XW[U7I])||(lN=new XW,H1(lN.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),lN=XW[U7I]=lN);R=lN;lN=_.Aj(R,ID,1,_.fC());B=_.P(lN);n=B.next();
case 12:if(n.done){gz.jumpTo(14);break}x=n.value;K=new _.df;K.level=_.Jz(x,2)===1?"WARNING":"ERROR";k=NiI(x.getSource());return _.W(gz,q.sdkVersion.promise,15);case 15:G={source:k,sdkVersion:gz.yieldResult};_.yD(_.VM(x,6))!=null?(K.message=x.getMessage(),K.stack=_.bY(x,5),G.sdkErrorType=lmO(_.Jz(x,6)),_.yD(_.VM(x,7))!=null&&(G.sdkApi=GrT(_.Jz(x,7)))):K.stack=void 0;f=rz=void 0;(f=(rz=q.callbacks).onError)==null||f.call(rz,{loggingError:K,metadata:G});n=B.next();gz.jumpTo(12);break;case 14:return gz.return();
case 3:return _.d9(gz,16),lN=q.callbacks,Op=lN.onSave,hK=_.al(Z.data,Yv9,4,fk),hK=_.bY(hK,1),_.W(gz,Op.call(lN,hK),18);case 18:Z.reply(cI7);_.QL(gz,17);break;case 16:return eO=_.o3(gz),g=KP,H6=eO,nX=q.callbacks,Qj="MINI_APP_SDK_API_SAVE_DATA",_.W(gz,q.sdkVersion.promise,19);case 19:g(H6,nX,Qj,gz.yieldResult),Z.reply(M6V);case 17:return _.W(gz,Tt(q,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return gz.return();case 4:return _.d9(gz,21),_.W(gz,q.callbacks.onLoad(),23);case 23:SO=gz.yieldResult;lN=Z.reply;
Op=Gv(1);hK=NI(1);wr=new Yv9;wr=_.uM(wr,1,SO);hK=_.dr(hK,3,lJ,wr);lN.call(Z,pk(Op,hK));_.QL(gz,22);break;case 21:return Te=_.o3(gz),Ze=KP,W1=Te,A2=q.callbacks,f9="MINI_APP_SDK_API_LOAD_DATA",_.W(gz,q.sdkVersion.promise,24);case 24:Ze(W1,A2,f9,gz.yieldResult),Z.reply(M6V);case 22:return _.W(gz,Tt(q,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return gz.return();case 5:_.d9(gz,26);q.callbacks.onSendHighScore(z1(_.al(Z.data,jrg,3,fk).getValue()));Z.reply(pk(Gv(1),NI(1)));_.QL(gz,27);break;case 26:return Dl=
_.o3(gz),$g=KP,De=Dl,n9=q.callbacks,Rh="MINI_APP_SDK_API_SEND_SCORE",_.W(gz,q.sdkVersion.promise,28);case 28:$g(De,n9,Rh,gz.yieldResult),Z.reply(M6V);case 27:return _.W(gz,Tt(q,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return gz.return();case 6:if(!_.HI(Z.data,tz9,8,fk)){gz.jumpTo(30);break}lN=_.al(Z.data,tz9,8,fk);lN=_.Jz(lN,1);return _.W(gz,Tt(q,GrT(lN)),30);case 30:return gz.return();case 7:return lN=Z.reply,Op=Gv(1),hK=NI(1),wr=q.callbacks.getLanguage(),hK=Y7(hK,4,lJ,V7(wr)),lN.call(Z,pk(Op,
hK)),_.W(gz,Tt(q,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return gz.return();case 8:if(!_.HI(Z.data,vAD,10,fk))return gz.return();xg=_.al(Z.data,vAD,10,fk);ZF=q.callbacks;mm=ZF.onSdkPerformanceUpdate;return _.W(gz,q.sdkVersion.promise,33);case 33:return mm.call(ZF,xg,gz.yieldResult),gz.return();case 9:lN=Z.data;Op=d5(lN,fk,11);if(_.Hy(_.VM(lN,Op))==null)return Z.reply(pk(Gv(1),NI(2))),gz.return();CX=BI(Z.data,11,fk);q.callbacks.onShareInviteCode(CX);Z.reply(cI7);return _.W(gz,Tt(q,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),
34);case 34:return gz.return();case 10:if(_.HI(Z.data,wrv,13,fk)){gz.jumpTo(35);break}return _.W(gz,q.callbacks.onShowMiniAppAd(2),36);case 36:return rb=gz.yieldResult,Z.reply(pk(Gv(1),OID(rb))),_.W(gz,Tt(q,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return gz.return();case 35:lN=_.al(Z.data,wrv,13,fk);a:switch(_.Jz(lN,1)){case 1:lN={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:lN={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:lN={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}mv=
lN;lC=mv.adType;L9=mv.sdkApi;lN=q.callbacks;Op=lN.onShowMiniAppAd;hK=_.al(Z.data,wrv,13,fk);hK=_.bY(hK,2);return _.W(gz,Op.call(lN,lC,hK||void 0),38);case 38:return ah=gz.yieldResult,Z.reply(pk(Gv(1),OID(ah))),_.W(gz,Tt(q,L9),39);case 39:return gz.return()}})})};
var xE=function(q,Z){_.V(function(w){q.channel.send(Z);_.ub(w)})},sz=function(q,Z,w){this.callbacks=q;
var r=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;q=UKN(Z,(new URL(w.toString())).origin);this.gameSnacks=new $77(q);this.gameSnacks.page.onReady(function(){r.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){r.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var Y,C;(C=(Y=r.callbacks).onGameReady)==null||C.call(Y)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(Y,C){try{r.callbacks.onSendHighScore(C)}catch(d){KP(d,r.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(Y,C){var d;return _.V(function(O){if(O.nextAddress==1)return _.d9(O,2),_.W(O,r.callbacks.onSave(r.decoder.decode(C)),4);if(O.nextAddress!=2)return _.QL(O,0);d=_.o3(O);KP(d,r.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return O.return()})});
this.gameSnacks.storage.onLoad(function(){var Y,C;return _.V(function(d){if(d.nextAddress==1)return _.d9(d,2),_.W(d,r.callbacks.onLoad(),4);if(d.nextAddress!=2)return Y=d.yieldResult,d.return(r.encoder.encode(Y));C=_.o3(d);KP(C,r.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return d.return(r.encoder.encode(""))})});
this.gameSnacks.init()};
_.z(sz,EC);sz.prototype.onAudioToggled=function(q,Z){EC.prototype.onAudioToggled.call(this,q,Z===void 0?!0:Z);var w;(w=this.gameSnacks)==null||w.audio.update(q)};
sz.prototype.onPause=function(){EC.prototype.onPause.call(this);if(_.b("enable_gamesnacks_pause_resume_bugfix")){var q;(q=this.gameSnacks)==null||q.game.pause()}};
sz.prototype.onResume=function(){EC.prototype.onResume.call(this);if(_.b("enable_gamesnacks_pause_resume_bugfix")){var q;(q=this.gameSnacks)==null||q.game.resume()}};var FmF=pcz,NrD=_.xl(function(q){var Z=q.data;var w=q.loadingProgress;q=_.P(_.qo("",void 0,"LYYTdd"));var r=q.next().value,Y=q.next().value;q=_.P(_.qo(!1,void 0,"K0waae"));var C=q.next().value,d=q.next().value,O=[],H=function(){return"transform: scaleX("+(_.jG(w)||0)+")"},L=null,S=function(){var n;
return(n=Z()&&L)!=null?n:L=Z().showAnniversaryAnimation?6:FmF()};
_.L7(function(){var n;if(Z().timeOutMessages&&((n=Z().timeOutMessages)==null?0:n.length)){L=null;n=_.P(O);for(var x=n.next();!x.done;x=n.next())clearTimeout(x.value);O.length=0;Xc8(Z().timeOutMessages,O,Y,d)}});
var v=function(){return!!Z().persistentErrorMessageTitle},R=function(){return w!==void 0},B=function(){return Z().title};
return _.u("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.u("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.u("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.u("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var n,x=(n=Z().backgroundImage)==null?void 0:n.sources,K;return(x==null?0:x.length)?"background-image: url("+((K=x[0])==null?void 0:K.url)+")":
""}}),_.u("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.u(_.PF,{cond:function(){return!v()},
then:function(){var n={};return _.u("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.u("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.u(_.pn,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+S()},
data:function(){var x="loading_animation_"+S();return{animationConfig:{name:x,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+x+".json",loop:!0,autoplay:!0}}}})),_.u("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.u(_.PF,{cond:B,
then:function(){return _.u("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},B)}}),_.u("p",{class:_.GL("mini-app-splash-screen-view-model-wiz__timeout-message",(n["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return C()},n)),
"aria-live":"polite"},r),_.u(_.PF,{cond:R,then:function(){return _.u("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.u("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:H}))}})))}}),_.u(_.PF,{cond:v,
then:function(){return _.u("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.u("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return Z().persistentErrorMessageTitle}),_.u(_.PF,{cond:function(){return!!Z().persistentErrorMessageDescription},
then:function(){return _.u("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return Z().persistentErrorMessageDescription})}}))}})))},"od");var lF7=new _.F$("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var GaV=su;su=function(q){function Z(w){if(w){var r,Y;(r=w.__spec)==null||(Y=r.didUnmount)==null||Y.call(r);for(r=0;r<w.childNodes.length;r++)Z(w.childNodes[r])}}
GaV==null||GaV(q);ep(function(){for(var w=0;w<q.length;w++)Z(q[w])})};var p86=_.xl(function(q){var Z=q.data;var w=q.score;var r=q.formattedScore;var Y=q.onScoreChanged;var C=q.isEmbeddedInWebview;var d=_.cO(),O=function(){var B;return _.J(Z==null?void 0:(B=Z())==null?void 0:B.buttonViewModel,_.Wx)},H=function(){var B;
return(w==null?void 0:w())||Number(Z==null?void 0:(B=Z())==null?void 0:B.lastScore)||0},L=function(){var B;
return(r==null?void 0:r())||((B=O())==null?void 0:B.title)||""},S,v=1;
if(q=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))q=Number(q),v=isNaN(q)?1:q/100;_.L7(function(){Y==null||Y(H());var B;var n=_.oQ((B=O())==null?void 0:B.onTap);if(n){B=_.J(n,UkW);var x,K,k;B=_.J(B==null?void 0:(x=B.panelLoadingStrategy)==null?void 0:(K=x.inlineContent)==null?void 0:(k=K.dialogViewModel)==null?void 0:k.customContent,I7g)}else B=void 0;if(x=B)x.score=L()});
q=_.fn(function(){var B,n,x=Z==null?void 0:(B=Z())==null?void 0:(n=B.loggingDirectives)==null?void 0:n.trackingParams;x&&_.hA(_.t().resolve(_.wK),x);return!1});
_.Ls(function(){if(d.value){var B=d.value.querySelector("button"),n=O();B&&n&&mcz(B,n);GF("yt-share-playable-with-high-score",function(){var x=H().toString(),K=Z==null?void 0:Z().onShareHighScoreCommand,k=Z==null?void 0:Z().highScoreShareClientParamIdentifier,G=C==null?void 0:C();K&&(G?(k=new Rp2,x=_.uM(k,2,x),k_(K,x.JSC$10122_serializeBinary())):k&&(_.t().resolve(lF7).clientParams.set(k,{miniAppClientParams:{highScore:x}}),QU6(K,!1)))})}});
var R=function(){var B=O();B&&(w==null?0:w())&&B.accessibilityText&&(B.accessibilityText=B.accessibilityText.replace(S,L()));S=L();return{numberValue:H(),numberText:L(),heightPx:36,fontSizeMultiplier:v,shouldAnimate:!(w==null||!w())&&!0}};
return _.u("yt-mini-app-score-button-view-model",{class:function(){var B={};return _.XA("mini-app-score-button-view-model-wiz",(B["mini-app-score-button-view-model-wiz--is-visible"]=H()!==0,B))},
el:d,"on:click":q},_.Fs(!1,function(){return _.u("span",{style:"display:none;"},H)}),_.u(_.Hx,{data:function(){var B;
return Z==null?void 0:(B=Z())==null?void 0:B.buttonViewModel}},{buttonViewModel:function(B){return _.u(_.vx,{data:B.data,
animatedTextProps:R})}}))},"pd");var DK7=_.xl(function(q){var Z,w=(Z=_.i8("yt-mini-app-is-theater-mode-enabled"))!=null?Z:!1,r=_.b("enable_playable_container_save_button"),Y=_.b("enable_play_next_destination_page_in_toolbar");Z={};return _.u("ytm-mini-app-top-bar-view-model",null,_.u("div",{class:_.GL("yt-mini-app-top-bar-view-model",(Z["yt-mini-app-top-bar-view-model--mobile"]=!1,Z["yt-mini-app-top-bar-view-model--desktop"]=!0,Z))},_.u("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.u(_.PF,{cond:function(){var C;
return!!q.data().backButtonEdu&&!((C=q.isExitMiniAppSeen)==null?0:C.call(q))},
then:function(){return _.u(_.Hx,{data:function(){return q.data().backButtonEdu}},{buttonViewModel:_.vx})},
else:function(){return _.u(_.Hx,{data:function(){return q.data().backButton}},{buttonViewModel:_.vx})}}),_.u(_.PF,{cond:function(){return q.data().viewAllButton&&!0},
then:function(){return _.u(_.Hx,{data:function(){return q.data().viewAllButton}},{buttonViewModel:_.vx})}}),_.u(_.PF,{cond:function(){return q.data().title&&!0},
then:function(){return _.u("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return q.data().title})}})),_.u("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.u(_.PF,{cond:function(){var C;
return(C=q.isDesktopPlayPage)==null?void 0:C.call(q)},
then:function(){return _.u(_.lS,null,_.u(X88,{highScoreButton:function(){return q.data().highScoreButton},
score:q.score,formattedScore:q.formattedScore,onScoreChanged:q.onScoreChanged,isEmbeddedInWebview:q.isEmbeddedInWebview}),_.u(mKZ,{enableSaveButton:function(){return _.jG(r)},
saveButton:function(){return q.data().saveButton},
isSaved:q.isSaved,onSaveToggled:function(){return q.onSaveToggled}}),_.u(AIZ,{menuButton:function(){return q.data().menuButton}}))},
else:function(){return _.u(_.PF,{cond:function(){return!1},
then:function(){return _.u(_.Hx,{data:function(){return q.data().playPageButton}},{buttonViewModel:function(C){return _.u(_.vx,{data:C.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.u(X88,{highScoreButton:function(){return q.data().highScoreButton},
score:q.score,formattedScore:q.formattedScore,onScoreChanged:q.onScoreChanged,isEmbeddedInWebview:q.isEmbeddedInWebview})}})}})),_.u("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.u(_.Hx,{data:function(){return q.data().muteButton}},{toggleButtonViewModel:function(C){var d=C.data;
return _.u(_.uo,{data:function(){var O,H;return Object.assign({},d(),{isToggled:(H=(O=q.isAudioEnabled)==null?void 0:O.call(q))!=null?H:!0})},
onToggle:q.onAudioToggled,useOutlinedIcon:!0})}}),_.u(_.Hx,{data:function(){return q.data().theatreModeButton}},{toggleButtonViewModel:function(C){var d=C.data;
return _.u("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.u(_.uo,{data:function(){return Object.assign({},d(),{isToggled:w})},
useOutlinedIcon:!0}))}}),_.u(fFS,{fullscreenButton:function(){return q.data().fullscreenButton}}),_.u(_.PF,{cond:function(){return _.jG(Y)&&q.data().viewAllButton&&!1},
then:function(){return _.u(_.Hx,{data:function(){return q.data().viewAllButton}},{buttonViewModel:_.vx})}}),_.u(_.PF,{cond:function(){var C;
return!((C=q.isDesktopPlayPage)==null?0:C.call(q))},
then:function(){return _.u(_.lS,null,_.u(mKZ,{enableSaveButton:function(){return _.jG(r)},
saveButton:function(){return q.data().saveButton},
isSaved:q.isSaved,onSaveToggled:function(){return q.onSaveToggled}}),_.u(AIZ,{menuButton:function(){return q.data().menuButton}}))}}))))},"qd");
DK7.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var AIZ=_.xl(function(q){return _.u("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.u(_.Hx,{data:q.menuButton},{buttonViewModel:_.vx}))},"rd"),mKZ=_.xl(function(q){var Z=q.enableSaveButton;
var w=q.saveButton;var r=q.isSaved;var Y=q.onSaveToggled;return _.u(_.PF,{cond:function(){return Z()&&!(w==null||!w())},
then:function(){return _.u("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.u(_.Hx,{data:function(){var C=_.J(w==null?void 0:w(),_.o5),d;return{toggleButtonViewModel:Object.assign({},C,{isToggled:(d=r==null?void 0:r())!=null?d:!(C==null||!C.isToggled)})}}},{toggleButtonViewModel:function(C){return _.u(_.uo,{data:C.data,
onToggle:Y})}}))}})},"sd"),X88=_.xl(function(q){var Z=q.highScoreButton;
var w=q.score;var r=q.formattedScore;var Y=q.onScoreChanged;var C=q.isEmbeddedInWebview;return _.u(_.Hx,{data:Z},{miniAppScoreButtonViewModel:function(d){return _.u("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.u(p86,{data:d.data,score:w,formattedScore:r,onScoreChanged:Y,isEmbeddedInWebview:C}))}})},"td"),fFS=_.xl(function(q){q=q.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.u(_.lS,null):_.u(_.Hx,{data:q},{buttonViewModel:_.vx})},"ud");_.hdl=new _.F$("DESKTOP_CURRENT_PAGE");var wqC=_.xl(function(q){var Z=q.data;var w=_.b("force_active_time_logging_webview"),r=_.b("skip_logs_after_end_event"),Y=!1,C=new JIu,d=void 0,O=void 0,H=_.t().resolve(bAq),L=new vvc,S=void 0,v=void 0,R=[],B=void 0,n=void 0,x=!1,K=!1,k=!1,G=!1,rz=new _.Dk,f=_.t().resolve(lF7),eO=_.t().resolve(_.zt),g=_.t().resolve(_.Gj(gm)),H6,nX=(H6=_.t().resolve(_.Gj(_.hdl)))==null?void 0:H6.getCurrentPage(),Qj=!1,SO=0,Te=function(Nj){Nj.preventDefault();return Nj.returnValue=""},Ze;
q=_.P(_.qo(!((Ze=_.i8("yt-mini-app-is-audio-enabled"))!=null&&!Ze),void 0,"HKETIe"));var W1=q.next().value,A2=q.next().value,f9;Ze=_.P(_.qo(!((f9=_.i8("exit-mini-app-seen-state"))==null||!f9),void 0,"YikM9"));var Dl=Ze.next().value,$g=Ze.next().value;f9=_.P(_.qo(!1,void 0,"iTNqCb"));var De=f9.next().value,n9=f9.next().value;f9=_.P(_.qo(void 0,void 0,"bU3Vbf"));var Rh=f9.next().value,xg=f9.next().value;f9=_.P(_.qo(void 0,void 0,"qd4Zt"));var ZF=f9.next().value,mm=f9.next().value;f9=_.P(_.qo(!0,void 0,
"Cqc83e"));var CX=f9.next().value,rb=f9.next().value;f9=_.P(_.qo(!1,void 0,"oHovIe"));var mv=f9.next().value,lC=f9.next().value;f9=_.P(_.qo(void 0,void 0,"aeN11"));var L9=f9.next().value,ah=f9.next().value;f9=_.P(_.qo(0,void 0,"AEGRyb"));var gz=f9.next().value,lN=f9.next().value,Op=_.Iw(),hK=function(){return Z().isEmbeddedInWebview},wr=function(){return Z().hasPlayNextShelf};
GF("yt-page-type-changed",function(Nj){if(_.b("enable_is_mini_app_page_active_bugfix"))Nj.detail.newPageSubtype!=="mini_app"&&CX()&&B8();else if(Nj=_.qOj()==="mini_app",Nj!==CX())if(rb(Nj),Nj){var oq;Nj=(oq=Z().playableId)==null?void 0:oq.toString();Nj!==void 0&&window.location.href.includes(Nj)&&!K&&(G=!0,TJ(),hj(tK.value))}else Nj||B8()});
GF("yt-action",function(Nj){Nj.detail.actionName==="yt-engagement-panel-visible-changed"&&Nj.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Nj.detail.args[2]==="PAmini_app_panel"&&B8();_.b("enable_is_mini_app_page_active_bugfix")?Nj.detail.actionName==="yt-history-load"&&!CX()&&(nX==null?0:nX.active)?(rb(!0),TJ(),hj(tK.value)):Nj.detail.actionName==="yt-history-load"&&CX()&&!Z().isEmbeddedInWebview&&GX():CX()&&Nj.detail.actionName==="yt-history-load"&&(G?G=!1:Z().isEmbeddedInWebview||GX())});
_.SG(function(){Iq()});
_.L7(function(){TJ()});
var TJ=function(){var Nj=Z().playableId,oq=Z().localReleaseId,LA=Z().derivedDeviceInterface;if(K)_.bx(new _.df("[MiniAppContainerViewModel] onEnter was called more than once"));else{K=!0;d=new $K8(Nj,oq,LA,document.visibilityState==="visible");dKu(d);O=new Evq(Nj);yIb(H,Nj);j9q(L,{showMiniAppAdCommand:Z().showMiniAppAdCommand,isEmbeddedInWebview:Z().isEmbeddedInWebview,playLogger:d});SE2()&&(n=document.body.style.backgroundColor,_.xA(document.body,"background-color","black"));zd();X7();rz=new _.Dk;
if(Z().isEmbeddedInWebview){if(Nj=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Cgl(d,Nj),Qj=!0;C.initialize({onAudioStateLoaded:function(S6){xx(S6)},
onMuteMiniApp:function(){xx(!1)},
onUnmuteMiniApp:function(){xx(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(S6){Qj||(Cgl(d,S6),Qj=!0)},
confirmExitMiniApp:function(){var S6,Yx,zx;return _.V(function(JI){if(JI.nextAddress==1)return Z().confirmExitMiniAppCommand?_.W(JI,Promise.race([rz.promise,Promise.resolve(!1)]),2):JI.return();(S6=JI.yieldResult)?!Z().confirmExitMiniAppCommandEdu||(zx=(Yx=Dl)==null?void 0:Yx())!=null&&zx?rD(Z().confirmExitMiniAppCommand):(rD(Z().confirmExitMiniAppCommandEdu),_.yq("exit-mini-app-seen-state","true",2592E6)):rD(Z().closeMiniAppCommand);_.ub(JI)})},
onNativeBenchmarkingMessageReceived:function(S6){S6=qvh(_.BBX(S6));if(_.HI(S6,_.Uz,3,yzJ)){var Yx=_.al(S6,_.Uz,3,yzJ),zx=Ewe();var JI=z1(zx.getSeconds())-z1(Yx.getSeconds());Yx=_.DM(zx,2)-_.DM(Yx,2);JI<0&&Yx>0?(JI+=1,Yx-=1E9):JI>0&&Yx<0&&(--JI,Yx+=1E9);JI=(new Ir).setSeconds(JI);JI=_.cy(JI,2,_.iX(Yx),0);_.CA(S6,1,JI)}var AQ;(AQ=v)==null||AQ.returnNativeBenchmarkingMessage(S6)},
multiplayer3pAckStateLoaded:function(S6){GX(S6)},
exitMiniAppSeenStateLoaded:function(S6){Z().confirmExitMiniAppCommandEdu&&$g(S6)},
onNavigateToNewMiniApp:function(){rD(Z().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(S6){S6=new URLSearchParams(S6);var Yx=void 0;S6.has("invite_code")&&(Yx=new C4p,S6=S6.get("invite_code"),Yx=_.uM(Yx,1,S6));if(S6=Yx){var zx;(zx=v)==null||zx.sendGameData(S6)}},
onPauseMiniApp:function(){Y=!0;Ny()},
onResumeMiniApp:function(){Y=!0;P8()},
onAdFinished:function(S6){L.onAdFinished(S6)}});
Z().showMultiplayer3pConsentDialogCommand||rz.resolve(!0);rD(Z().onContainerReadyCommand)}else Cgl(d),rz.resolve(!0);xKl(O,edF(d));edF(d).then(function(S6){S6={miniAppPlayData:{postPlayNonce:S6}};var Yx,zx=(Yx=Z().loggingDirectives)==null?void 0:Yx.trackingParams;zx&&_.iy().stateChanged(zx,S6)});
Nj=Z().showSignInDialogCommand;!Uc2()&&Nj&&(_.yq("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),rD(Nj));Z().confirmExitMiniAppCommand&&g&&(Nj=amz(Z().confirmExitMiniAppCommand))&&(g.customConfirmationCommand=Nj)}},Iq=function(){if(!r||K)n&&_.xA(document.body,"background-color",n),x=!1,B&&B.release(),O.flush().catch(function(Nj){_.bx(Nj)}),H.flush().catch(function(Nj){_.bx(Nj)}),OA7(d),yw(),v=void 0,r&&(K=!1),iA6(f)},B8=function(){rb(!1);
Iq();n9(!1);ah(void 0);xg(void 0);mm(void 0);SO=0;lN(0);r||(K=!1)},Ny=function(){var Nj;
(Nj=v)==null||Nj.onPause();B&&B.release();O.flush().catch(function(oq){_.bx(oq)});
H.flush().catch(function(oq){_.bx(oq)});
V6b(d)},P8=function(){var Nj;
(Nj=v)==null||Nj.onResume();X7();Nj=d;Nj.isForeground=!0;aN(Nj,"PLAY_EVENT_TYPE_PLAY_RESUME")},xx=function(Nj){var oq;
(oq=v)==null||oq.onAudioToggled(Nj);A2(Nj)},GX=function(Nj){Z().showMultiplayer3pConsentDialogCommand&&(Z().isEmbeddedInWebview&&Nj!==void 0&&rz.resolve(Nj),!Nj&&_.qOj()==="mini_app"&&rD(Z().showMultiplayer3pConsentDialogCommand))},Jj=function(){var Nj,oq,LA,S6;
return _.V(function(Yx){if(Yx.nextAddress==1){if(r&&!K)return Yx.return();!Z().isLivestream||Z().disableVideoCapture||(Nj=v)!=null&&Nj.sendStartGameFrameCapture();oq=(new URL(window.location.href)).searchParams;if(oq.has("invite_code")){var zx=new C4p,JI=oq.get("invite_code");LA=_.uM(zx,1,JI);(S6=v)==null||S6.sendGameData(LA)}De()||(n9(!0),zx=d,zx.state!==1?_.bx(new _.df("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+rIl[zx.state])):(_.fs("mini_app_ids_without_game_ready").includes(zx.JSC$14585_miniAppId)&&
(zx.gameReady=!0),zx.state=2,zx.beforeReady=!1,BL(zx,"ma_ffr"),aN(zx,"PLAY_EVENT_TYPE_PLAY_READY")));return _.W(Yx,rz.promise,2)}rD(Z().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();Z().isEmbeddedInWebview||GX();_.ub(Yx)})},gc=function(){var Nj=d;
Nj.gameReady=!0;BL(Nj,"ma_gr")},Jf=function(Nj){var oq;
return _.V(function(LA){if(LA.nextAddress==1)return _.d9(LA,2),_.W(LA,UKC(O,Nj),4);if(LA.nextAddress!=2)return _.QL(LA,0);oq=_.o3(LA);rD(Z().showSavingErrorPopupCommand);throw oq;})},a9=function(){var Nj,oq;
return _.V(function(LA){if(LA.nextAddress==1)return _.d9(LA,2),_.W(LA,Tr6(O),4);if(LA.nextAddress!=2)return Nj=LA.yieldResult,LA.return(Nj);oq=_.o3(LA);rD(Z().showLoadingErrorDialogCommand);throw oq;})},hr=function(Nj){d.logError(Nj)},Fy=function(Nj,oq,LA){WmF(d,Nj,oq,LA)},BN=function(Nj,oq){u5l(d,Nj,oq)},N4=function(){!w&&Z().isEmbeddedInWebview||_.lh();
HAl(d,!0);x||(window.addEventListener("beforeunload",Te,{capture:!0}),x=!0)},mT=function(Nj){var oq,LA,S6,Yx,zx,JI,AQ;
return _.V(function(fP){if(fP.nextAddress==1)return H&&(!S||S<Nj)&&Nj>0?_.W(fP,gv6(H,Nj),3):fP.jumpTo(0);oq=fP.yieldResult;LA=_.P(oq);S6=LA.next().value;Yx=LA.next().value;zx=S6;JI=Yx;((AQ=zx)==null?0:AQ.displayString)&&JI&&(xg(JI),mm(zx.displayString));_.ub(fP)})},Go=function(Nj){var oq=Z().onBenchmarkingMessageReceivedCommand;
if(oq){var LA=Ewe();_.dr(Nj,3,yzJ,LA);k_(oq,ZI1(Nj))}},v6=function(Nj){var oq=Z().onGameFrameReceivedCommand;
if(oq){var LA=new kZD;var S6=new xL9;var Yx=tz(Nj,1);S6=_.OU(S6,1,Yx);Nj=_.bY(Nj,2);Nj=_.uM(S6,2,Nj);LA=_.CA(LA,2,Nj);k_(oq,s7W(LA))}},U2=function(){var Nj=new URLSearchParams(window.location.search);
if(Z().isEmbeddedInWebview&&Nj&&Nj.get("override_hl")==="true"&&Nj.get("hl"))return Nj.get("hl");Nj=document.documentElement.lang;return Nj!==""?Nj:_.BX},c6=function(Nj){var oq=Z().onShareInviteCodeCommand;
if(oq)if(Z().isEmbeddedInWebview){var LA=new Rp2;Nj=_.uM(LA,1,Nj);k_(oq,JD2(Nj))}else LA=Z().inviteCodeShareClientParamIdentifier,f.clientParams.set(LA,{miniAppClientParams:{inviteCode:Nj}}),rD(oq)},oh=function(Nj){var oq,LA,S6;
return _.V(function(Yx){if(Yx.nextAddress==1)return oq=Z().onMiniAppOpenYtContentRequested,H&&_.b("enable_open_yt_content")&&oq?_.W(Yx,qI6(H,Nj),3):Yx.jumpTo(0);LA=Yx.yieldResult;if(LA==="OK")if(Z().isEmbeddedInWebview){var zx=new a79;S6=Y7(zx,2,uG,V7(Nj));k_(oq,Eng(S6))}else eO.clientData.set("video_id",Nj),rD(oq);_.ub(Yx)})},Y8=function(Nj){SO+=_.DM(Nj,3);
Nj=Math.min(Math.log(1+SO/15E6*9)/Math.log(10),.99);lN(Nj);Yg(Nj)},Yg=_.VW(function(Nj){var oq=Z().updateLoadingProgressCommand;
if(oq){var LA=new a79;Nj=Y7(LA,3,uG,_.N7(Nj));k_(oq,Eng(Nj))}},100),dW=function(Nj){return Rdu(L,Nj)},X7=function(){var Nj,oq;
((Nj=_.Z02())==null?void 0:(oq=Nj.wakeLock)==null?void 0:oq.request)!=null&&_.Z02().wakeLock.request("screen").then(function(LA){B=LA}).catch(function(){})},tK=_.Iw();
_.L7(function(){Z().isSupportedCountry&&(Uc2()||_.b("enable_sign_in_promo")||!Z().showSignInDialogCommand?hj(tK.value):rD(Z().onMiniAppReadyCommand))});
var tI=function(){return _.u("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return De()?0:-1},
el:tK})},hj=function(Nj,oq){oq=oq===void 0?!1:oq;
var LA=B1();LA&&(oq||LA.toString()!==Nj.getAttribute("src"))&&(v=FVO(Z().source,{isAudioEnabled:W1,onFirstFrameReady:Jj,onGameReady:gc,onSave:Jf,onLoad:a9,onError:hr,onSdkCalled:Fy,onSdkPerformanceUpdate:BN,onClick:N4,onSendHighScore:mT,onBenchmarkingMessageReceived:Go,getLanguage:U2,onShareInviteCode:c6,onResourceLoaded:Y8,onOpenYTContent:oh,onShowMiniAppAd:dW,onGameFrameReceived:v6},Nj,LA),qx(Nj,"load",function(){BL(d,"ma_il");qx(Nj,"load",function(){hj(Nj,!0)})}),_.F5(Nj,LA))},B1=function(){var Nj=
Z().url;
if(Nj&&(Nj=_.jJ(Nj),Nj!==null)){if(Z().source&&Z().source==="MINI_APP_SOURCE_GAMESNACKS")Nj=_.ZM(Nj,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.b("enable_origin_query_parameter_bugfix")){var oq=_.tW(_.CwO(Nj.toString()));oq=new URLSearchParams(oq||"");oq.set("origin",window.location.origin);oq=oq.toString();Nj=_.ug(Nj).toString();Nj=_.o9(llW.exec(Nj)[0]+(oq.trim()?"#"+oq:""))}return Nj}},$a=function(){var Nj={};
Nj=_.GL("yt-mini-app-container-view-model__loading-screen",(Nj["yt-mini-app-container-view-model__loading-screen--fade-out"]=De,Nj));var oq=function(){return De()?1:gz()};
return _.u("div",{class:Nj},_.u(_.Hx,{data:function(){return Z().splashScreen}},{miniAppSplashScreenViewModel:function(LA){return _.u(NrD,{data:LA.data,
loadingProgress:oq})}}))},zd=function(){R=[];
R.push(_.Yc(window,"visibilitychange",function(){k||Y&&hK()||(document.visibilityState==="visible"?P8():Ny())}));
R.push(_.Yc(window,"pagehide",function(){Iq()}));
R.push(_.Yc(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Op.value.dispatchEvent(new Event("tap"))},0)}));
R.push(_.Yc(Op.value,"pointerdown",function(){HAl(d,!1)},!0));
R.push(_.Yc(Op.value,"pause",function(){k=!0;Ny()}));
R.push(_.Yc(Op.value,"play",function(){k=!1;P8()}));
R.push(_.Yc(Op.value,"exit",function(){Iq()}));
var Nj=navigator.keyboard,oq=Nj&&Nj.lock;R.push(_.Yc(window,tH7,function(){lC(b59());b59()?(Z().hasPlayNextShelf&&Bx("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),SJ("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),oq&&Nj.lock(["Escape"])):(Z().hasPlayNextShelf&&SJ("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Bx("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),oq&&Nj.unlock())}));
Z().showMultiplayer3pConsentDialogCommand&&R.push(_.Yc(window,"yt-playables-ack-3p-data-usage",function(){Z_q(H)}));
Z().confirmExitMiniAppCommandEdu&&R.push(_.Yc(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.yq("exit-mini-app-seen-state","true",2592E6)}))},yw=function(){R.forEach(function(Nj){Zf(Nj)});
window.removeEventListener("beforeunload",Te,{capture:!0})},rD=function(Nj){Nj&&QU6(Nj,Z().isEmbeddedInWebview||!1)},SJ=function(Nj,oq){Nj=_.P(Op.value.getElementsByClassName(Nj));
for(var LA=Nj.next();!LA.done;LA=Nj.next())LA.value.classList.add(oq)},Bx=function(Nj,oq){Nj=_.P(Op.value.getElementsByClassName(Nj));
for(var LA=Nj.next();!LA.done;LA=Nj.next())LA.value.classList.remove(oq)};
return function(){var Nj={};Nj=_.GL("yt-mini-app-container-view-model",(Nj["yt-mini-app-container-view-model--desktop"]=!0,Nj["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return Z().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Nj["yt-mini-app-container-view-model--ios-web-view"]=SE2(),Nj["yt-mini-app-container-view-model--no-top-bar"]=function(){return!Z().topBar},Nj["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return Z().hasPlayNextShelf},Nj["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return Z().hasPlayNextShelf},Nj["yt-mini-app-container-view-model--show-peek-below"]=function(){return!mv()&&Z().hasPlayNextShelf},Nj));
var oq={};oq=_.GL("yt-mini-app-container-view-model__content",(oq["yt-mini-app-container-view-model__content--desktop-content"]=!0,oq["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return Z().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},oq["yt-mini-app-container-view-model--desktop-play-page"]=function(){return Z().hasPlayNextShelf},oq));
return _.u("mini-app-container-view-model",{el:Op},_.u("div",{class:Nj},_.u(_.PF,{cond:function(){return Z().topBar&&!mv()},
then:function(){return _.u(_.Hx,{data:function(){return Z().topBar}},{miniAppTopBarViewModel:function(LA){return _.u(DK7,{data:LA.data,
isAudioEnabled:W1,onAudioToggled:function(S6){xx(S6)},
score:Rh,formattedScore:ZF,onScoreChanged:function(S6){S=S6},
isEmbeddedInWebview:hK,isSaved:L9,onSaveToggled:function(S6){ah(S6)},
isExitMiniAppSeen:Dl,isDesktopPlayPage:wr})}})}}),_.u("div",{class:oq},_.u(_.PF,{cond:CX,
then:function(){return tI()}}),_.u(_.PF,{cond:function(){return!Z().isEmbeddedInWebview},
then:function(){return $a()}}))))}()},"vd");
wqC.idomCompat=!0;_.xc(wqC,"mini-app-container-view-model",{props:{data:_.zG}});var ruS=_.xl(function(q){var Z=q.data;return _.u("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.u("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.fn(function(){var w=Z().onTap;w&&_.Sp(w)})},_.u(_.PF,{cond:function(){return Z().icon},
then:function(w){return _.u(_.q0,{icon:function(){return w().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.u("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return Z().title})))},"wd");
ruS.idomCompat=!0;var YIl=_.xl(function(q){var Z=_.Iw(),w=_.P(_.qo(void 0,void 0,"kFCJ0c")),r=w.next().value,Y=w.next().value;w=_.P(_.qo(void 0,void 0,"PIPgWd"));var C=w.next().value,d=w.next().value;w=_.P(_.qo(void 0,void 0,"rV66ob"));var O=w.next().value,H=w.next().value,L=function(){var k=r();return k!==void 0?Math.abs(k):void 0},S=function(){var k=L();
return k===void 0||k<=3},v=function(){var k=L();
var G=C(),rz=O();k=k!==void 0&&G!==void 0&&rz!==void 0?G-rz-k:void 0;return k===void 0||k<=3},R=function(k){Z.value&&Z.value.scrollBy({top:0,
left:(_.zj("HTML_DIR")==="rtl"?-1:1)*k*Z.value.clientWidth,behavior:"smooth"})},B=function(){var k;
Y((k=Z.value)==null?void 0:k.scrollLeft);var G;d((G=Z.value)==null?void 0:G.scrollWidth);var rz;H((rz=Z.value)==null?void 0:rz.clientWidth)},n=function(){R(-.5)},x=function(){R(.5)};
w=_.fn(function(){B()});
_.oz(function(){B();if(Z.value){var k=new ResizeObserver(B);k.observe(Z.value);_.SG(function(){k.disconnect()})}});
var K={};return _.u("yt-sponsorships-scrollable-shelf",{class:_.GL("ytdSponsorshipsScrollableShelfHost",q.className)},_.u("div",{class:_.GL("ytdSponsorshipsScrollableShelfContent",(K.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return!S()&&!v()},K.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return!S()&&v()},K.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return S()&&!v()},K)),
el:Z,"on:scroll":w},q.children),_.u(_.PF,{cond:function(){return!S()},
then:function(){return _.u(_.Hx,{data:function(){return q.data().previousButton}},{buttonViewModel:function(k){return _.u(_.vx,{data:k.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:n})}})}}),_.u(_.PF,{cond:function(){return!v()},
then:function(){return _.u(_.Hx,{data:function(){return q.data().nextButton}},{buttonViewModel:function(k){return _.u(_.vx,{data:k.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:x})}})}}))},"xd");
YIl.idomCompat=!0;var eBl=_.xl(function(q){var Z=q.data;return _.u("yt-sponsorships-hub",{class:"ytdSponsorshipsHubHost"},_.u("div",{class:"ytdSponsorshipsHubHeader"},_.u("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.u("div",{class:"ytdSponsorshipsHubAvatar"},_.u(_.Hx,{data:function(){return Z().avatar}},{avatarViewModel:_.j4})),_.u(_.PF,{cond:function(){return Z().badgeImage},
then:function(w){return _.u("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.u("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.u("div",{class:"ytdSponsorshipsHubBadge"},_.u(_.aQ,{data:w,targetWidth:24,targetHeight:24,alt:""}))))}})),_.u("div",{class:"ytdSponsorshipsHubDetails"},_.u("div",{class:"ytdSponsorshipsHubTierName"},function(){return Z().tierName}),_.u("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return Z().membershipType}),_.u("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return Z().membershipDurationOrExpiry})),_.u("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.u(_.Hx,{data:function(){return Z().manageButton}},{buttonViewModel:function(w){return _.u(_.vx,{data:w.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.u(_.Hx,{data:function(){return Z().actionMenuButton}},{buttonViewModel:function(w){return _.u(_.vx,{data:w.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.u("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return Z().perksTitle}),_.u(YIl,{data:function(){return{previousButton:Z().previousPerkButton,
nextButton:Z().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.u("div",{class:"ytdSponsorshipsHubPerkCards"},_.u(_.Hx,{data:function(){return Z().perkCards}},{sponsorshipsHubPerkCardViewModel:ruS}),_.u(_.PF,{cond:function(){return Z().viewAllPerksButton},
then:function(w){return _.u($Xl,{data:w})}}))))},"yd");
eBl.idomCompat=!0;var $Xl=_.xl(function(q){var Z=q.data;return _.u("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.u(_.Hx,{data:function(){return Z().button}},{buttonViewModel:_.vx}),_.u("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.u("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return Z().title}),_.u("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return Z().subtitle})))},"zd");
$Xl.idomCompat=!0;_.xc(eBl,"yt-sponsorships-hub",{props:{data:_.zG}});_.Cbl=_.xl(function(q){var Z=q.data;return _.u("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.y1({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var w;return((w=Z().badgeCutoutRadius)!=null?w:14)+"px"}})},_.u("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.u(_.Hx,{data:function(){return Z().startAvatar}},{avatarViewModel:_.j4}),_.u(_.Hx,{data:function(){return Z().endAvatar}},{avatarViewModel:_.j4})),_.u(_.Hx,{data:function(){return Z().badge}},{contentPreviewImageViewModel:function(w){return _.u("div",
{class:"ytDualAvatarViewModelBadge"},_.u(_.yS,{data:w.data}))}}))},"Ad");
_.Cbl.idomCompat=!0;var dXZ=_.xl(function(q){var Z=q.data;var w,r=!((w=_.t().resolve(_.Gj(_.RQ)))==null||!w());q=_.$6(function(){var L,S,v=r?(L=Z().header)==null?void 0:L.backgroundColorDarkMode:(S=Z().header)==null?void 0:S.backgroundColorLightMode;if(v!==void 0)return _.uq(v)},void 0,"UX2G6c");
w=_.$6(function(){var L,S;return r?(L=Z().header)==null?void 0:L.backgroundImagePart1Dark:(S=Z().header)==null?void 0:S.backgroundImagePart1Light},void 0,"GPAi1d");
var Y=_.$6(function(){var L,S;return r?(L=Z().header)==null?void 0:L.backgroundImagePart2Dark:(S=Z().header)==null?void 0:S.backgroundImagePart2Light},void 0,"nboJld"),C=_.$6(function(){return _.zj("HTML_DIR")==="rtl"},void 0,"LGJceb"),d=_.Iw(),O=!1,H=function(){var L=d.value;
if(L&&!O){L=L.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk");for(var S=0;S<L.length;++S){var v=L[S];if(v instanceof HTMLElement){v.scrollIntoView({block:"center",inline:"nearest",behavior:"smooth"});O=!0;break}}}};
_.Ls(function(){var L=d.value;if(L){var S=new ResizeObserver(H);S.observe(L);_.SG(function(){S.disconnect()})}});
return _.u("yt-sponsorships-perks-list",{class:"ytdSponsorshipsPerksListHost",el:d},_.u("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.u("div",{class:"ytdSponsorshipsPerksListHeader",style:_.y1({"background-color":q})},_.u("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.u(_.PF,{cond:w,then:function(L){var S={};return _.u("div",{class:_.GL((S.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=r,S.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!r,S.ytdSponsorshipsPerksListFlipped=
C,S))},_.u(_.aQ,{data:L,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.u("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.u(_.PF,{cond:Y,
then:function(L){var S={};return _.u("div",{class:_.GL((S.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=r,S.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!r,S.ytdSponsorshipsPerksListFlipped=C,S))},_.u(_.aQ,{data:L,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.u("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.u(_.Hx,{data:function(){var L;
return(L=Z().header)==null?void 0:L.dualAvatar}},{dualAvatarViewModel:_.Cbl})))),_.u("div",{class:"ytdSponsorshipsPerksListBody"},_.u("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return Z().title}),_.u(_.PF,{cond:function(){return Z().perks},
then:function(L){return _.u(_.dA,{each:L},function(S,v){var R={};return _.u("div",{class:_.GL("ytdSponsorshipsPerksListPerkContainer",(R.ytdSponsorshipsPerksListSelectedPerk=function(){var B=v(),n=Z().selectedPerkIndex;return B===n},R))},_.u(_.PF,{cond:function(){return v()>0},
then:function(){return _.u("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.u("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.u(_.PF,{cond:function(){return S.icon},
then:function(B){return _.u(_.q0,{icon:function(){return B().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.u("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.u("div",{class:"ytdSponsorshipsPerksListPerkTitle"},S.title),_.u("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.u(_.r6,{text:S.description})),_.u(_.PF,{cond:function(){return S.instructions},
then:function(){var B,n;return _.u("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.u("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(B=S.instructions)==null?void 0:B.title),_.u("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.u(_.r6,{text:(n=S.instructions)==null?void 0:n.text})))}}))),_.u(_.PF,{cond:function(){return S.emoji},
then:function(B){return _.u("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.u(_.dA,{each:function(){return B()}},function(n){return _.u(_.aQ,{data:n,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.u(PbV,{data:S}))})}})))},"Bd");
dXZ.idomCompat=!0;var PbV=_.xl(function(q){var Z=q.data;var w=function(d,O){return d===O},r=function(){var d=Z();
d=_.J(d==null?void 0:d.badgesShelf,nCp);return d!==void 0&&d!==null?d:{previousButton:{},nextButton:{}}},Y=_.cO(),C=function(){var d=Y.value;
if(d){var O=d.parentElement;if(O){d=d.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var H=0;H<d.length;++H){var L=d[H];if(L instanceof HTMLElement){O.scrollTo({left:L.offsetLeft+L.clientWidth/2-O.clientWidth/2,behavior:"instant"});break}}}}};
_.Ls(function(){var d=Y.value;if(d){var O=new ResizeObserver(C);O.observe(d);_.SG(function(){O.disconnect()})}});
return _.u("div",null,_.u(_.PF,{cond:function(){return Z().badges},
then:function(d){return _.u(YIl,{data:r},_.u("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:Y},_.u(_.dA,{each:function(){return d()}},function(O,H){var L={},S={},v={};
return _.u("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.u(_.PF,{cond:function(){return H()>0},
then:function(){return _.u("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.u("div",{class:_.GL("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(L.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return w(H(),Z().currentBadgeIndex)},L.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!w(H(),Z().currentBadgeIndex)},L))},_.u("div",{class:_.GL("ytdSponsorshipsPerksListLoyaltyBadge",(S.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return w(H(),
Z().currentBadgeIndex)},S.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!w(H(),Z().currentBadgeIndex)},S))},_.u(_.PF,{cond:function(){return O.image},
then:function(R){var B={};return _.u("div",{class:_.GL((B.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return w(H(),Z().currentBadgeIndex)},B.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!w(H(),Z().currentBadgeIndex)},B))},_.u(_.aQ,{data:R,
alt:""}))}})),_.u("div",{class:_.GL("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(v.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return w(H(),Z().currentBadgeIndex)},v))},O.title)))})))}}))},"Cd");
PbV.idomCompat=!0;_.xc(dXZ,"yt-sponsorships-perks-list",{props:{data:_.zG}});_.xc(_.xl(function(q){return _.u("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.u(_.PF,{cond:function(){return q.data().image},
then:function(Z){return _.u(_.aQ,{className:"ytwFantasyEmptyStateViewModelImage",data:Z,ariaHidden:!0,alt:""})}}),_.u(_.r6,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return q.data().title}}),_.u(_.r6,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return q.data().subtitle}}),_.u(_.Hx,{data:function(){return q.data().primaryButton}},{buttonViewModel:function(Z){return _.u(_.vx,{data:Z.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Dd"),"ytw-fantasy-empty-state-view-model",{props:{data:_.zG}});_.xc(_.xl(function(q){var Z=q.data;var w;q=_.P(_.qo(!((w=_.i8("yt-mini-app-is-theater-mode-enabled"))==null||!w),void 0,"CUtq5"));var r=q.next().value,Y=q.next().value,C;w=(C=_.t().resolve(_.Gj(Dj8)))!=null?C:function(){return _.u("div",null)};
_.sU("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){Y(!0);_.yq("yt-mini-app-is-theater-mode-enabled",!0)});
_.sU("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){Y(!1);_.yq("yt-mini-app-is-theater-mode-enabled",!1)});
C={};q={};var d={};return _.u("mini-app-play-page-renderer",{class:_.GL("miniAppPlayPageRendererHost",(C.miniAppPlayPageRendererHostDetailsView=function(){return!r()},C))},_.u("div",{class:_.GL("miniAppPlayPageRendererGameContainer",(q.miniAppPlayPageRendererGameContainerDetailsView=function(){return!r()},q))},_.u(_.Hx,{data:function(){return Z().containerViewModel}},{miniAppContainerViewModel:wqC}),_.u(_.PF,{cond:function(){return!r()&&Z().description},
then:function(){return _.u("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.u("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return Z().description}))}})),_.u("div",{class:_.GL("miniAppPlayPageRendererPlayNextContainer",(d.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!r()},d))},_.u(_.Hx,{data:function(){return Z().sectionList}},{sectionListRenderer:w})))},"Ed"),"mini-app-play-page-renderer",{props:{data:_.zG}});var V8F=function(){var q=_.N.apply(this,arguments)||this;q.isSearch=!1;q.isConstrainedList=!1;q.hasChipsBar=!1;q.inReplyPanel=!1;q.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"}};q.monitorScroll=!0;q.SCROLL_ANIMATION_DURATION_MS=300;q.nextContinuation={continuationType:"sectionListContinuation"};return q};
_.z(V8F,_.N);_.e=V8F.prototype;
_.e.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(q){switch(q.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",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},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:_.b("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.b("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.e.created=function(){var q=this;this.JSC$14712_scrollAnimation=new _.JB(function(Z){q.hostElement.scrollTop=Z})};
_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.e.getItemsPath=function(){return"data.contents"};
_.e.replacePrimaryContent=function(q){this.set("data.contents",q)};
_.e.computeHasSortFilter=function(q){return!!q&&!!q.sortFilterSubMenuRenderer};
_.e.computeShouldScrollInPanel=function(q){var Z;return!!(q==null?0:(Z=q.scrollPaneStyle)==null?0:Z.scrollable)};
_.e.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.NZ(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.e.scrollToTop=function(){this.hostElement.scrollTop=0};
_.e.scrollToItemSection=function(q){if(q=this.getItemByIdentifier(q))q=this.getScrollPositionForItem(q),this.hostElement.scrollTop!==q&&this.JSC$14712_scrollAnimation.start(this.hostElement.scrollTop,q,this.SCROLL_ANIMATION_DURATION_MS)};
_.e.getItemByIdentifier=function(q){var Z=this.contents.querySelectorAll("ytd-item-section-renderer");if(Z&&Z.length!==0){var w=Array.from(Z).findIndex(function(r){return r.sectionIdentifier===q});
return Z[w===-1?0:w]}};
_.e.getScrollPositionForItem=function(q){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===q)return 0;q=_.Qg(q).y+this.hostElement.scrollTop-_.Qg(this.hostElement).y;return Math.min(q,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.My.Object.defineProperties(V8F.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.targetId)==="browse-feedFEclips"}}});
var UC=V8F;UC.prototype.onScroll=UC.prototype.onScroll;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],UC.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],UC.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.cj.YtLazyListBehavior),_.A("design:type",Object)],UC.prototype,"ytLazyListBehavior",void 0);_.X([_.U(_.FP.YtNextContinuationBehavior),_.A("design:type",Object)],UC.prototype,"ytNextContinuationBehavior",void 0);
_.X([_.U(_.hZb),_.A("design:type",Object)],UC.prototype,"ytBooleanLogicBehavior",void 0);_.X([_.U(_.Ms),_.A("design:type",Object)],UC.prototype,"ytContinuationHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],UC.prototype,"data",void 0);_.X([_.F({value:2}),_.A("design:type",Number)],UC.prototype,"initialCount",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],UC.prototype,"autoFill",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.A("design:type",Boolean)],UC.prototype,"hasSortFilter",void 0);_.X([_.F({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.A("design:type",Boolean)],UC.prototype,"hideBottomSeparator",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.A("design:type",Boolean)],UC.prototype,"shouldScrollInPanel",void 0);
_.X([_.F(),_.A("design:type",Object)],UC.prototype,"isSearch",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],UC.prototype,"isConstrainedList",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],UC.prototype,"responsiveSizing",void 0);_.X([_.F(),_.A("design:type",Object)],UC.prototype,"hasChipsBar",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],UC.prototype,"pageSubtype",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],UC.prototype,"engagementPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],UC.prototype,"liveChatEngagementPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],UC.prototype,"inReplyPanel",void 0);_.X([_.fo("#action-button"),_.A("design:type",HTMLElement)],UC.prototype,"actionButton",void 0);_.X([_.F(),_.A("design:type",Object)],UC.prototype,"scrollUpButtonData",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],UC.prototype,"engagementPanelDropdown",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],UC.prototype,"engagementPanelDialog",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],UC.prototype,"isClipList",null);_.X([_.fo("#contents"),_.A("design:type",HTMLElement)],UC.prototype,"monitorScrollElement",void 0);_.X([_.fo("#contents"),_.A("design:type",HTMLElement)],UC.prototype,"contents",void 0);
_.X([_.m2("scroll"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UC.prototype,"onScroll",null);UC=_.X([_.l({is:"ytd-section-list-renderer",disableElementRegistration:!0})],UC);
var O_b=_.Fl()(UC,"ytd-section-list-renderer",function(){if(fTl===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);fTl=q}q=fTl;return q},{mode:1});var H_V;var WTD;var oql;var udy;var kE=function(){return _.N.apply(this,arguments)||this};
_.z(kE,_.N);kE.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
kE.prototype.onLikeButtonClick=function(q){q.stopPropagation();q.preventDefault()};
_.My.Object.defineProperties(kE.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)!=null&&q.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)})}}}});
var K1=kE;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],K1.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],K1.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],K1.prototype,"ytRendererStamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],K1.prototype,"data",void 0);
_.X([_.F({selectorArgs:["data.likeStatusEntityKey"],selector:ul}),_.A("design:type",Object)],K1.prototype,"likeStatusEntity",void 0);_.X([_.I("data","likeStatusEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],K1.prototype,"likeButtonRenderer",null);K1=_.X([_.l({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],K1);
_.p(K1,"ytd-slim-metadata-toggle-button-renderer",function(){if(udy!==void 0)return udy;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
return udy=q},{mode:1});var LTu=function(){var q=_.N.apply(this,arguments)||this;q.minimizePipBreakages=_.b("web_pip_minimize_breakages");q.showEqualizer=_.b("web_enable_playlist_video_lockup_equalizer");q.watchColorUpdate=_.b("kevlar_watch_color_update");q.actionMap={};return q};
_.z(LTu,_.N);_.e=LTu.prototype;_.e.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"}}}};
_.e.computeEditableClass=function(q){return q&&q.menu?"editable":""};
_.e.computeSelected=function(q){return!(q==null||!q.selected)};
_.e.computeUseColorPalette=function(q){return!!((q==null?0:q.lightColorPalette)&&(q==null?0:q.darkColorPalette))};
_.e.computeLargerPlaylistThumbs=function(q,Z){return _.b("web_enable_playlist_bigger_thumbnails")&&!Z};
_.e.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.e.onYtServiceRequestSent=function(q,Z){Z.endpoint&&this.isHideEnclosingAction(Z.endpoint)&&!this.selected&&M4v(_.nq(),this.data.videoId)};
_.e.isHideEnclosingAction=function(q){var Z=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",q);q=this.get("likeEndpoint.status",q)==="INDIFFERENT";return Z||q};
_.e.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.e.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.My.Object.defineProperties(LTu.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var q;return!!(this.withinMiniplayer&&((q=this.data)==null?0:q.actionButtons))}}});
var sC=LTu;sC.prototype.onYtServiceRequestSent=sC.prototype.onYtServiceRequestSent;sC.prototype.canReorderChanged=sC.prototype.canReorderChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],sC.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],sC.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],sC.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.ay),_.A("design:type",Object)],sC.prototype,"ytdLockupBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],sC.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],sC.prototype,"withinMiniplayer",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],sC.prototype,"minimizePipBreakages",void 0);_.X([_.F({computed:"computeSelected(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],sC.prototype,"selected",void 0);
_.X([_.F({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],sC.prototype,"useColorPalette",void 0);_.X([_.F({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.A("design:type",Boolean)],sC.prototype,"largerPlaylistThumbs",void 0);_.X([_.F(),_.A("design:type",Object)],sC.prototype,"showEqualizer",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],sC.prototype,"canReorder",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],sC.prototype,"touchPersistentDragHandle",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],sC.prototype,"handleIsHovered",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],sC.prototype,"watchColorUpdate",void 0);_.X([_.I("largerPlaylistThumbs"),_.A("design:type",Number),_.A("design:paramtypes",[])],sC.prototype,"thumbnailWidth",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],sC.prototype,"showActionButtons",null);_.X([_.g3("canReorder"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sC.prototype,"canReorderChanged",null);_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],sC.prototype,"onYtServiceRequestSent",null);
sC=_.X([_.l({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],sC);
_.p(sC,"ytd-playlist-panel-video-renderer",function(){if(oql!==void 0)return oql;var q=document.createElement("template");_.a(q,'\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="yt-icons:drag_handle" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return oql=q},{mode:2});var SIy=function(){return _.N.apply(this,arguments)||this};
_.z(SIy,_.N);SIy.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
var IN=SIy;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],IN.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],IN.prototype,"data",void 0);IN=_.X([_.l({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],IN);
_.p(IN,"ytd-playlist-panel-supported-items",function(){if(WTD!==void 0)return WTD;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return WTD=
q},{mode:1});RKp=!0;cQ7("\\P{N}");var AU1;var vql=_.dT("END_OF_PLAYLIST",void 0,"End of playlist"),j3b=_.dT("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),t8D=function(){var q=_.N.apply(this,arguments)||this;q.minimizePipBreakages=_.b("web_pip_minimize_breakages");q.updatedCoursePanel=_.b("move_three_dot_menu_to_playlist_panel_header_for_courses");q.reducedPlaylistHeight=_.b("web_playlist_mini_playlist_height");q.hideHeaderText=!1;q.useColorPalette=!1;q.collapsed=!1;q.collapsedPreServerOverride="not_tracked";
q.isHovered=!1;q.modernPanels=_.b("kevlar_watch_modern_panels");q.expandLabel=_.dT("MINIPLAYER_EXPAND_LABEL");q.collapseLabel=_.dT("MINIPLAYER_COLLAPSE_LABEL");q.isFloating=!1;q.metaPanel=!1;q.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};q.currentIndex=void 0;return q};
_.z(t8D,_.N);_.e=t8D.prototype;
_.e.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"}}}};
_.e.created=function(){this.scrollThrottle=new _.pV(this.onThrottledScroll,1E3,this)};
_.e.onMouseEnter=function(){this.isHovered=!0};
_.e.onMouseLeave=function(){this.isHovered=!1};
_.e.computeOverflowMenuData=function(q){return q&&q.menu?q.menu:null};
_.e.computeCollapsible=function(q){return!q};
_.e.computeHasPlaylistButtons=function(q){return!(!q||!q.playlistButtons)};
_.e.computeHasSeparateSaveButton=function(q){return!(!q||!q.saveButton)};
_.e.computeHasToolbarButton=function(q,Z){return!(!q||!(Z||q.saveButton||q.menu))};
_.e.computePlaylistType=function(q){if(q&&q.playlistId)return q.playlistId.substring(0,4)};
_.e.computeCanReorder=function(q){return q?q.playlistId&&q.playlistId.startsWith("TLPQ")?!0:!!q.isEditable&&!q.isInfinite:!1};
_.e.attached=function(){var q=this;try{_.t().resolve(_.b8).setPlaylistComponent(this.hostElement)}catch(Z){if(_.b("kevlar_park_on_playlist_token_killswitch"))throw Z;_.zB().parkOrScheduleJob(function(){_.t().resolve(_.b8).setPlaylistComponent(q.hostElement)},2,"ci")}_.fp(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.e.detached=function(){_.Dj(this.hostElement)};
_.e.computeTrailingIcon=function(q,Z,w){return w?Z?"yt-icons:collapse":"yt-icons:close":Z?"yt-icons:expand":_.b("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.e.computeIndexMessage=function(q,Z){return ha2(q+1)+" / "+ha2(Z)};
_.e.onRenderStamperFinished=function(){if(this.scrollForStampDom){var q=!0;this.isHovered&&(q=!1);if(this.collapsed||this.hidden)q=!1;q&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.e.collapseChanged=function(){var q=this;this.collapsed||(_.OM(this.ytTaskEmitterBehavior.getTaskManager(),function(){q.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.e.hiddenChanged=function(){var q=this;this.hidden||_.OM(this.ytTaskEmitterBehavior.getTaskManager(),function(){q.scrollToCurrentVideo()})};
_.e.setupReordering=function(){var q=_.E(this.hostElement).querySelector("#items");PD7?_.SH7(this.ytReorderableBehavior,q,q,"playlist-drag-handle"):_.SH7(this.ytReorderableBehavior,q,q)};
_.e.scrollToCurrentVideo=function(){var q=this;_.v5.addJob(function(){var Z=_.E(q.hostElement).querySelector("#items");if(Z){Z.style.setProperty("padding-bottom","");var w=_.E(q.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(w){Z=w.parentElement||_.jz(document);var r=Z||_.jz(document);var Y=_.Qg(w),C=_.Qg(r),d=_.p8p(r);if(r==_.jz(document)){var O=Y.x-r.scrollLeft;Y=Y.y-r.scrollTop}else O=Y.x-C.x-d.left,Y=Y.y-C.y-d.top;w=Fmv(w);C=r.clientHeight-
w.height;d=r.scrollLeft;var H=r.scrollTop;d+=O-(r.clientWidth-w.width)/2;r=new _.B3(d,H+(Y-C/2));Z.scrollLeft=r.x;Z.scrollTop=r.y}}},8)};
_.e.dataChanged=function(){var q=this;_.Lkh(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.I_(this,function(){_.WO(q.ytTaskEmitterBehavior.getTaskManager(),function(){q.ytRendererBehavior.markDirty();q.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.e.updateNowPlayingOverlay=function(){_.b("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.e.onPlaylistLockupNowPlaying=function(q,Z){Z&&(this.activeNowPlayingRenderer=Z);this.updateNowPlayingOverlay()};
_.e.onScroll=function(){this.scrollThrottle.fire()};
_.e.onThrottledScroll=function(){var q=this;_.WO(this.ytTaskEmitterBehavior.getTaskManager(),function(){q.ytRendererBehavior.markDirty()})};
_.e.onToggleExpanded=function(q){this.collapsible&&_.xz(q).tagName!=="A"&&!_.E1(_.E8(q),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.e.setCollapsed=function(q){this.collapsible&&(this.collapsed=q,_.i5(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.e.handleCollapsedFromData=function(q){if(q){var Z=q.playlistPanelCollapseState;Z==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||Z==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),Z=Z==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==Z&&this.setCollapsed(Z)):this.currentPlaylistId!==q.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(Z=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==Z&&this.setCollapsed(Z),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=q.playlistId}};
_.e.handleDrop=function(q){var Z=q.currDragItem;q=Z.data.playlistSetVideoId;var w=_.IT(Z.parentNode.childNodes,Z),r=void 0;w>0&&(r=Z.parentNode.childNodes[w-1].data.playlistSetVideoId);Z=_.nq();if(Z.responsePlaylistData&&Z.responsePlaylistData.contents){var Y=HZ9(q,Z.responsePlaylistData);Z.responsePlaylistData=(0,_.R4.unsafeClone)(Z.responsePlaylistData);E1j(Z.responsePlaylistData.contents,Y,w);Z.queueProxy?uxh(Z.queueProxy,Y,w,q,r):Z.playlistProxy&&uxh(Z.playlistProxy,Y,w,q,r);_.Qq(Z,_.EK(Z,Z.response?
Z.response.autoplayRenderer:void 0))}};
_.e.handleDarkModeChange=function(q){q!==this.isDarkTheme&&(this.isDarkTheme=q)};
_.e.colorPaletteChanged=function(){var q,Z=((q=this.data)==null?void 0:q.contents)||[],w;q=_.P(Z);for(Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var r=void 0;if((r=Z.playlistPanelVideoRenderer)==null?0:r.selected){q=Z.playlistPanelVideoRenderer;r=Z=void 0;(w=this.isDarkTheme?(Z=q)==null?void 0:Z.darkColorPalette:(r=q)==null?void 0:r.lightColorPalette)&&_.VB(this.hostElement,w);break}}this.useColorPalette=!!w};
_.My.Object.defineProperties(t8D.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!((q=this.data)==null||!q.playlistId)&&!((Z=this.data)==null||!Z.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var q=_.t().resolve(_.Gj(_.b8)),Z;if(((Z=this.data)==null?0:Z.contents)&&(q==null?0:q.hasAutoplayData())){var w;if(((w=this.playlistLoopStateEntity)==null?void 0:w.state)==="PLAYLIST_LOOP_STATE_ONE"){if(q=this.data.currentIndex,q!==void 0){var r,Y;var C=(r=this.data.contents[q])==null?void 0:(Y=r.playlistPanelVideoRenderer)==null?void 0:Y.title}}else{var d,O=(d=_.J(q.getAutoplayEndpoint(),_.ck))==null?void 0:d.videoId,H,L;C=(H=this.data.contents.find(function(S){var v;
return((v=S.playlistPanelVideoRenderer)==null?void 0:v.videoId)===O}))==null?void 0:(L=H.playlistPanelVideoRenderer)==null?void 0:L.title}return C}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)!=null&&q.nextVideoLabel?this.nextVideoTitle?_.kO(this.data.nextVideoLabel)+":":vql:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var q;if(((q=this.data)==null?0:q.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.UE(j3b);var Z;return(Z=this.data)==null?void 0:Z.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r=(q=this.data)==null?void 0:(Z=q.playlistButtons)==null?void 0:(w=Z.menuRenderer)==null?void 0:w.topLevelButtons;if(r)for(q=_.P(r),Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,Z.playlistLoopButtonRenderer)return Z.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var q;return!!(this.collapsed&&((q=this.data)==null?0:q.nextVideoLabel))}}});
var cL=t8D;cL.prototype.colorPaletteChanged=cL.prototype.colorPaletteChanged;cL.prototype.onPlaylistLockupNowPlaying=cL.prototype.onPlaylistLockupNowPlaying;cL.prototype.updateNowPlayingOverlay=cL.prototype.updateNowPlayingOverlay;cL.prototype.dataChanged=cL.prototype.dataChanged;cL.prototype.hiddenChanged=cL.prototype.hiddenChanged;cL.prototype.collapseChanged=cL.prototype.collapseChanged;cL.prototype.onRenderStamperFinished=cL.prototype.onRenderStamperFinished;cL.prototype.onMouseLeave=cL.prototype.onMouseLeave;
cL.prototype.onMouseEnter=cL.prototype.onMouseEnter;_.X([_.U(_.SQ),_.A("design:type",Object)],cL.prototype,"ironResizableBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(oy7.YtPlaylistPanelBehavior),_.A("design:type",Object)],cL.prototype,"ytPlaylistPanelBehavior",void 0);
_.X([_.U(_.EY.YtTaskEmitterBehavior),_.A("design:type",Object)],cL.prototype,"ytTaskEmitterBehavior",void 0);_.X([_.U(_.jID),_.A("design:type",Object)],cL.prototype,"ytReorderableBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],cL.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],cL.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],cL.prototype,"actionHandlerBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],cL.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],cL.prototype,"autoplayData",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],cL.prototype,"withinMiniplayer",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],cL.prototype,"minimizePipBreakages",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],cL.prototype,"updatedCoursePanel",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],cL.prototype,"reducedPlaylistHeight",void 0);_.X([_.F({computed:"setMenuData_(data)"}),_.A("design:type",Object)],cL.prototype,"menuRendererData",void 0);_.X([_.F({computed:"computeOverflowMenuData(data)"}),_.A("design:type",Object)],cL.prototype,"overflowMenuDataTopRow",void 0);_.X([_.F({computed:"computeOverflowMenuData(data)"}),_.A("design:type",Object)],cL.prototype,"overflowMenuData",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],cL.prototype,"hideHeaderText",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],cL.prototype,"useColorPalette",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.A("design:type",Boolean)],cL.prototype,"collapsible",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],cL.prototype,"collapsed",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],cL.prototype,"hidden",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.A("design:type",Boolean)],cL.prototype,"hasPlaylistButtons",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.A("design:type",Boolean)],cL.prototype,"hasSeparateSaveButton",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.A("design:type",Boolean)],cL.prototype,"hasToolbar",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.A("design:type",String)],cL.prototype,"playlistType",void 0);_.X([_.F(),_.A("design:type",Object)],cL.prototype,"isHovered",void 0);_.X([_.F({selectorArgs:["playlistLoopStateEntityKey"],selector:_.nSz}),_.A("design:type",Object)],cL.prototype,"playlistLoopStateEntity",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],cL.prototype,"modernPanels",void 0);_.X([_.F({value:56}),_.A("design:type",Number)],cL.prototype,"scrollMargin",void 0);_.X([_.F({computed:"computeCanReorder(data)"}),_.A("design:type",Boolean)],cL.prototype,"canReorder",void 0);_.X([_.F(),_.A("design:type",Object)],cL.prototype,"expandLabel",void 0);_.X([_.F(),_.A("design:type",Object)],cL.prototype,"collapseLabel",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],cL.prototype,"isFloating",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],cL.prototype,"metaPanel",void 0);_.X([_.F({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.A("design:type",String)],cL.prototype,"trailingIcon",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],cL.prototype,"isDarkTheme",void 0);
_.X([_.F({selector:_.jZ}),_.A("design:type",Boolean)],cL.prototype,"miniplayerIsActive",void 0);_.X([_.F({selector:function(q){return q.watch.playerState}}),
_.A("design:type",Number)],cL.prototype,"playerState",void 0);_.X([_.F(),_.A("design:type",Object)],cL.prototype,"activeNowPlayingRenderer",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],cL.prototype,"moveThreeDotMenuToTopRow",null);_.X([_.I("data","autoplayData","playlistLoopStateEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],cL.prototype,"nextVideoTitle",null);
_.X([_.I("data","nextVideoTitle"),_.A("design:type",String),_.A("design:paramtypes",[])],cL.prototype,"nextVideoLabel",null);_.X([_.I("collapsed"),_.A("design:type",String),_.A("design:paramtypes",[])],cL.prototype,"buttonAriaLabel",null);_.X([_.I("data","playlistId","longBylineText"),_.A("design:type",Object),_.A("design:paramtypes",[])],cL.prototype,"mixLongByLine",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],cL.prototype,"playlistLoopStateEntityKey",null);
_.X([_.m2("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cL.prototype,"onMouseEnter",null);_.X([_.m2("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cL.prototype,"onMouseLeave",null);_.X([_.F({reflectToAttribute:!0}),_.I("data","collapsed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],cL.prototype,"showNextVideoHeader",null);
_.X([_.m2("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cL.prototype,"onRenderStamperFinished",null);_.X([_.M("collapsed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cL.prototype,"collapseChanged",null);_.X([_.M("hidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cL.prototype,"hiddenChanged",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cL.prototype,"dataChanged",null);_.X([_.M("playerState","miniplayerIsActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cL.prototype,"updateNowPlayingOverlay",null);_.X([_.m2("yt-playlist-lockup-now-playing-active"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],cL.prototype,"onPlaylistLockupNowPlaying",null);
_.X([_.M("data","isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cL.prototype,"colorPaletteChanged",null);cL=_.X([_.l({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],cL);
_.RBu=_.Fl()(cL,"ytd-playlist-panel-renderer",function(){if(H_V===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);H_V=q}q=H_V;return q},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var b_q;var Mv=function(){var q=_.N.apply(this,arguments)||this;q.modern=_.b("web_button_rework");return q};
_.z(Mv,_.N);Mv.prototype.computeShouldButtonBeVertical=function(q,Z){return q||Z};
Mv.prototype.onYtServiceRequestSent=function(q,Z){(q=_.J(Z.endpoint,_.Ig))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.wp("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:q.status})):this.handleLikeEndpoint(q))};
Mv.prototype.computelikeStatusEntityKey=function(q){return q==null?void 0:q.likeStatusEntityKey};
Mv.prototype.handleLikeEndpoint=function(q){q.status==="LIKE"?this.JSC$14737_ytdDislikeToggleButtonRenderer.toggle(!1):q.status==="DISLIKE"?this.JSC$14737_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14737_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14737_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.My.Object.defineProperties(Mv.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var q;return qej(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(q=this.likeStatusEntity)==null?void 0:q.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var q;return qej(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(q=this.likeStatusEntity)==null?void 0:q.likeStatus)}}});
var F3=Mv;F3.prototype.onYtServiceRequestSent=F3.prototype.onYtServiceRequestSent;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],F3.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],F3.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],F3.prototype,"vertical",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],F3.prototype,"textTransform",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],F3.prototype,"useShortsIcon",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],F3.prototype,"underIconLabel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],F3.prototype,"modern",void 0);_.X([_.F({value:"left"}),_.A("design:type",String)],F3.prototype,"buttonTooltipPosition",void 0);
_.X([_.F(),_.A("design:type",Object)],F3.prototype,"overrides",void 0);_.X([_.fo("#like-button"),_.A("design:type",Object)],F3.prototype,"JSC$14737_ytdLikeToggleButtonRenderer",void 0);_.X([_.fo("#dislike-button"),_.A("design:type",Object)],F3.prototype,"JSC$14737_ytdDislikeToggleButtonRenderer",void 0);_.X([_.I("data","likeStatusEntity.likeStatus"),_.A("design:type",Object),_.A("design:paramtypes",[])],F3.prototype,"likeButton",null);
_.X([_.I("data","likeStatusEntity.likeStatus"),_.A("design:type",Object),_.A("design:paramtypes",[])],F3.prototype,"dislikeButton",null);_.X([_.F({computed:"computelikeStatusEntityKey(data)"}),_.A("design:type",String)],F3.prototype,"likeStatusEntityKey",void 0);_.X([_.F({selectorArgs:["likeStatusEntityKey"],selector:ul}),_.A("design:type",Object)],F3.prototype,"likeStatusEntity",void 0);
_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],F3.prototype,"onYtServiceRequestSent",null);F3=_.X([_.l({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],F3);
var JuC=_.Fl()(F3,"ytd-like-button-renderer",function(){if(b_q===void 0){var q=document.createElement("template");_.a(q,'\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<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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);b_q=q}q=b_q;return q},{mode:1});_.zBl={};
_.zBl.YtConditionalRendererBehavior=[_.y.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(q,Z){var w=this,r,Y;return _.V(function(C){switch(C.nextAddress){case 1:if(!Z)return w.hidden=!0,w.showSpinner=!1,C.return();if((r=q)==null?0:(Y=r.visibilityCondition)==null?0:Y.mode)switch(q.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return C.jumpTo(5);default:return C.jumpTo(6)}w.showSpinner=
!1;w.hidden=!0;return _.W(C,w.shouldShow_(q),4);case 4:w.hidden=!C.yieldResult;C.jumpTo(0);break;case 5:return _.W(C,w.shouldShow_(q),8);case 8:w.showSpinner=C.yieldResult;w.hidden=!1;C.jumpTo(0);break;case 6:return w.showSpinner=!1,_.W(C,w.shouldShow_(q),9);case 9:w.hidden=!C.yieldResult,_.ub(C)}})},
shouldShow_:function(q){return q&&q.supportedDatas&&q.supportedDatas.rendererVisibilityConditionData&&q.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(q.supportedDatas.rendererVisibilityConditionData.showIf):q&&q.visibilityCondition&&q.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(q.visibilityCondition.showIf):q&&q.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(q.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(q){switch(q){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(q){switch(q){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var q=_.yY(this.hostElement,"yt-get-mdx-status");return q.length==1&&q[0].connected},
isLocationPermissionGranted_:function(){var q;return _.V(function(Z){return Z.nextAddress==1?navigator.permissions?_.W(Z,navigator.permissions.query({name:"geolocation"}),3):Z.jumpTo(2):Z.nextAddress!=2?(q=Z.yieldResult,Z.return(Promise.resolve(q.state==="granted"))):Z.return(Promise.resolve(!1))})}}];var B9u=function(q,Z){Z=Z===void 0?{}:Z;return function(w){var r=document.createElement(q),Y;var C=(Y=r.polymerController)!=null?Y:r;l9j(r,C,w,Z);return r}}("yt-icon");var aJ6=function(q){var Z=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];Fq8();_.IR("ytglobal.ytUtilActivityCallback_",function(){_.i5(q,"yt-user-activity")});
new NN(function(){return Z.JSC$14749_onMouseMove});
document.addEventListener("scroll",function(){return Z.onScroll});
window.addEventListener("resize",function(){return Z.onResize})},nqZ=function(q,Z,w){Z in q.eventJobIds||(w=_.R0().addLowPriorityJob(function(){_.lh();
delete q.eventJobIds[Z]},w),q.eventJobIds[Z]=w)};
aJ6.prototype.onScroll=function(q){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):q.target===document&&nqZ(this,"scroll",200)};
aJ6.prototype.onResize=function(){nqZ(this,"resize",200)};
aJ6.prototype.JSC$14749_onMouseMove=function(){nqZ(this,"mousemove",100)};
_.Wk9=function(q){q.scrollEventsToIgnore+=1;q.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){q.scrollEventsToIgnore--},500))};var Q3l=function(q){this.element=q;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
Q3l.prototype.showFeedbackDialog=function(q,Z,w,r){var Y=EqD();if(!Y)return!1;var C=Hg6();C.productId=Y;Z&&(C.flow="submit",C.report={description:Z});w&&(EqD()==="59"?C.callback=_.QV(function(){_.vO("userFeedbackEvent",{});w()}):C.callback=_.QV(w));
C.bucket=r||_.zj("GOOGLE_FEEDBACK_BUCKET","Other");xXq(C);q=T96(this,"GFEEDBACK",q);try{_.hvW(C,q)}catch(d){return _.ns(d),!1}return!0};
Q3l.prototype.showHelpDialog=function(q,Z,w){var r=this,Y=EqD();if(!Y)return!1;var C={helpCenterPath:"/youtube",productData:T96(this,"GUIDED_HELP",w)};xXq(C);var d=Hg6();d.context=q||C.productData.context||"default";d.defaultHelpArticleId=Z;d.enableSendFeedback=!0;(_.Eq("gapi.load")||function(O,H){return H()})("client",function(){try{var O=Ncm(Y,C);
if(_.b("web_always_load_chat_support")&&!r.chatSupportLoaded)try{O.JSC$7848_loadChatSupport(d),r.chatSupportLoaded=!0}catch(H){}O.startHelp(d)}catch(H){_.ns(H)}})};
var EqD=function(){var q=_.zj("GOOGLE_FEEDBACK_PRODUCT_ID");q||_.ns(Error("di"));return q},xXq=function(q){q&&(q.locale=_.b("kevlar_help_use_locale")?_.zj("INNERTUBE_CONTEXT_HL","en"):_.zj("HTML_LANG","en"))},T96=function(q,Z,w){var r=q.productData;
delete r.origin;r.device=_.jO();var Y;a:{if(Y=document.createElement("canvas")){var C=Y.getContext("experimental-webgl",{stencil:!0});if(C){var d=C.getExtension("WEBGL_debug_renderer_info");if(d){Y=C.getParameter(d.UNMASKED_RENDERER_WEBGL);break a}}if(C=Y.getContext("webgl")){Y=C.getParameter(C.RENDERER);break a}}Y=null}r.gpu=Y;r.isSDC=!!_.zj("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(Y=_.zj("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.R4.extend(r,Y);_.VS9(Z,r);_.Og1(r);(q=_.i5(q.element,"yt-get-autonav-pause-debug-state"))&&
q.length&&(r.autonav_pause_state=q[0]);q=_.H3();r.browser_resolution=q.width+"\u00d7"+q.height+"@"+(window.devicePixelRatio||1)+"x";w&&_.R4.extend(r,w);return r};
Q3l.prototype.resetProductData=function(){this.productData={}};var UXy=function(q){this.feedbackManager=new Q3l(q)};
UXy.prototype.showFeedbackDialog=function(q,Z,w,r){return this.feedbackManager.showFeedbackDialog(q,Z,w,r)};
UXy.prototype.showHelpDialog=function(q,Z,w){return this.feedbackManager.showHelpDialog(q,Z,w)};var k$u=function(){this.baseUrl="";this.aTag=document.createElement("a")},a2g=function(q,Z,w){w=w===void 0?{}:w;
w.pbj||(w.pbj=1);w=_.BpX(Z,w);q.baseUrl&&w&&!_.cF(w)[1]&&!_.MR(w)&&(Z=q.baseUrl,O2(Z,"/")&&(Z=Z.slice(0,-1)),_.Vj(w,"/")&&(w=w.slice(1)),w=Z+"/"+w);KA(q.aTag,nA(w||""));return q.aTag.href};
k$u.prototype.fetchData=function(q){return _.Ye2(q)};
k$u.prototype.postData=function(q,Z){var w={method:"POST"};if(Z){for(var r=_.P(Object.keys(Z)),Y=r.next();!Y.done;Y=r.next()){Y=Y.value;var C=Z[Y];_.DT(C)&&(Z[Y]=JSON.stringify(C))}w.postParams=Z}return _.Ye2(q,w)};
_.nEp=function(q,Z,w,r,Y){q=a2g(q,Z,w);if(!q)throw r=Error("ei"),Object.assign(r,{params:Z}),r;return _.Ye2(q,Y,r)};
k$u.prototype.requestDataForServiceEndpoint=function(q,Z){if(_.J(q,_.vfX))return this.fetchData("/getAccountSwitcherEndpoint");Z=Z||{};var w=_.J(q,rD1);w?Z.se=w.base64EncodedServiceEndpoint:Z.sej=JSON.stringify(q);(w=_.b5())&&_.b("enable_service_ajax_csn")&&(Z.csn=w);Z.theme=_.RJ();_.J(q,LUz)&&_.zj("DELEGATION_CONTEXT")&&(Z.delegation_context=JSON.stringify(_.zj("DELEGATION_CONTEXT")));w=null;for(var r in q)if(O2(r,"Endpoint")||O2(r,"Command")){w=r;break}if(!w){var Y=Error("fi");Object.assign(Y,{params:q});
_.bVj(Y,"WARNING");return new _.r5(function(d,O){O(Y)})}r={name:w};
var C;(w=(C=_.J(q,_.CR))==null?void 0:C.signal)&&(r.signal=w);(C=_.Ks(window.location.href))&&C.internalcountrycode&&(r.internalcountrycode=C.internalcountrycode);C="/service_ajax";_.b("debug_forward_web_query_parameters")&&(C=_.IC9(C,window.location.search));C=_.Iz(C,r);q.clickTrackingParams&&_.l5(C,{itct:q.clickTrackingParams});return this.postData(C,Z)};_.KTS=new _.F$("GFEEDBACK_TOKEN");var s3l;var IJV;var cuC;var M86;var Nv=function(){var q=_.N.apply(this,arguments)||this;q.compact=!1;return q};
_.z(Nv,_.N);Nv.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Nv.prototype.computeHasIcon_=function(q){return!!q};
Nv.prototype.isSignInIcon_=function(q){return q=="yt-icons:prompted_sign_in"};
var lt=Nv;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],lt.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.zBl.YtConditionalRendererBehavior),_.A("design:type",Object)],lt.prototype,"ytConditionalRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],lt.prototype,"data",void 0);
_.X([_.F({computed:"computeIcon_(data.icon)"}),_.A("design:type",Object)],lt.prototype,"icon_",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.A("design:type",Boolean)],lt.prototype,"hasIcon_",void 0);_.X([_.F({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.A("design:type",Boolean)],lt.prototype,"signInIcon_",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],lt.prototype,"compact",void 0);
lt=_.X([_.dx({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],lt);
_.p(lt,"yt-player-error-message-renderer",function(){if(M86===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;cuC===void 0&&(cuC=document.createElement("template"));var r=cuC;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);M86=q}q=M86;return q},{mode:2});var FTl;var N9q;var lJ8=function(){return _.N.apply(this,arguments)||this};
_.z(lJ8,_.N);lJ8.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
lJ8.prototype.computeIcon_=function(q){return q?"yt-icons:"+q.iconType.toLowerCase():"error_outline"};
var Gt=lJ8;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Gt.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Gt.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Gt.prototype,"data",void 0);_.X([_.F({computed:"computeIcon_(data.icon)"}),_.A("design:type",Object)],Gt.prototype,"icon_",void 0);Gt=_.X([_.dx({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Gt);
_.p(Gt,"yt-player-kav-renderer",function(){if(N9q===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;FTl===void 0&&(FTl=document.createElement("template"));var r=FTl;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);N9q=q}q=N9q;return q},{mode:2});_.xc(_.xl(function(q){var Z=_.Iw(),w=_.P(_.qo(0,void 0,"gCmSbf")),r=w.next().value,Y=w.next().value;w=_.P(_.qo(null,void 0,"Rj9zMe"));var C=w.next().value,d=w.next().value;_.Ls(function(){ucT(Z.value,Y,d);Z.value.scrollIntoView()});
w=L_j.bind(null,q.data,r);GF("resize",function(){var O=C();if(r()===1&&O!==null){var H;(H=window.grecaptcha)==null||H.reset(O)}});
return _.u("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.u("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.u("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var O,H;return(O=q.data().accessibility)==null?void 0:(H=O.accessibilityData)==null?void 0:H.label}),_.u(_.r6,{text:w,
className:_.GL("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.u("div",{el:Z,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Fd"),"yt-player-captcha-view-model",{props:{data:_.EL}});var SeT=!1;_.G$7=_.xl(function(q){var Z=q.data;return _.u("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.u(_.PF,{cond:function(){return Z().icon},
then:function(w){return _.u("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.u(_.aQ,{data:w,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.u(_.PF,{cond:function(){return Z().title},
then:function(w){return _.u("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.u(_.r6,{text:w}))}}),_.u(_.PF,{cond:function(){return Z().description},
then:function(w){return _.u("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.u(_.r6,{text:w}))}}),_.u(_.Hx,{data:function(){return Z().primaryButton}},{buttonViewModel:function(w){return _.u(_.vx,{data:w.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.u(_.Hx,{data:function(){return Z().secondaryButton}},{buttonViewModel:function(w){return _.u(_.vx,{data:w.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"Gd");
_.G$7.idomCompat=!0;var pql=_.xl(function(q){var Z=q.data;_.Fa();return _.u("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.u("div",{class:"player-interstitial-renderer-wiz__scrim"},_.u(_.Hx,{data:function(){return Z().content}},{interstitialViewModel:_.G$7})))},"Hd");
pql.idomCompat=!0;_.xc(pql,"yt-player-interstitial-renderer",{props:{data:_.zG}});var Xq8=function(){var q=_.N.apply(this,arguments)||this;q.noBackground=!1;q.compact=!1;q.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return q};
_.z(Xq8,_.N);Xq8.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"}}}};
Xq8.prototype.onUpdatePlayerErrorMessageCommand_=function(q){if(_.J(q,SNX)){var Z;if(q=(Z=_.J(q,SNX))==null?void 0:Z.newPlayerErrorMessageRenderer)this.data=q}};
var p1=Xq8;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],p1.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],p1.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],p1.prototype,"status",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],p1.prototype,"noBackground",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],p1.prototype,"compact",void 0);p1=_.X([_.dx({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],p1);
var mXu=_.Fl()(p1,"yt-playability-error-supported-renderers",function(){if(IJV===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;s3l===void 0&&(s3l=document.createElement("template"));var r=s3l;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);IJV=q}q=IJV;return q},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var vm2=void 0,tS1=void 0;var J8j=new Bce;var r1=new _.F$("ENTITY_STATE_TOKEN"),X3=new _.F$("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var AuF=function(q){this.store=q;this.gHm=new _.QFp},JbN=function(q,Z,w){var r,Y;
if(!(Y=((r=Z.playabilityStatus)==null?void 0:r.status)!=="OK")){q=q.store;var C;Y=Z.offlineState&&((C=Z.videoDetails)==null?0:C.videoId)?_.b("enable_pl_r_c_cd")?Gg8(q.getState().entities,Z.videoDetails.videoId):!!LM2(q.getState().entities,Z.videoDetails.videoId):!1}if(Y)return!0;Y=QCj(Z);if(Y===1){if(_.b("ab_v_vid_sig")){var d,O=(d=Z.videoDetails)==null?void 0:d.videoId;if(!O||!w||O!==w){var H;Z=new _.df("282054944_vid",{pef:w,hnf:(H=Z.videoDetails)==null?void 0:H.videoId});_.tY(Z)}}return!0}h6N=
0;var L,S;H=(O=Z.auxiliaryUi)==null?void 0:(L=O.messageRenderers)==null?void 0:(S=L.bkaEnforcementMessageViewModel)==null?void 0:S.displayType;if(Y!==3&&(H==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||H==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;H={reason:_.G7(_.dT("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.b("ks_something_wrong_learn_more")?n31("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.G7(_.dT("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:_.G7("282054944")};fJV(Z,{playerErrorMessageRenderer:H});return!1},zC2=function(q,Z){if(HOz(Z)){_.gt(1,!0);
var w=(w=HOz(Z))&&_.jC9()?w:void 0;w?(fJV(Z,{enforcementMessageViewModel:w}),q.gHm.increment("IN_PLAYER"),_.gt(5)):(q.gHm.increment("SKIP_DISPLAY"),_.gt(2))}},fJV=function(q,Z){q.playabilityStatus=Object.assign({},q.playabilityStatus,{status:"ERROR",
errorScreen:Z});q.videoDetails=void 0};
AuF.prototype.handleResponse=function(q,Z){if(q.playabilityStatus){var w,r,Y,C=(Z==null?void 0:(w=Z.innerTubeRequest)==null?void 0:w.videoId)||(Z==null?void 0:(r=Z.innerTubeRequest)==null?void 0:(Y=r.playerRequest)==null?void 0:Y.videoId);JbN(this,q,C)&&zC2(this,q)}};
AuF[M1]=[r1];var RCO=new _.F$("ADBLOCK_DETECTION_SERVICE_TOKEN");var pP=function(q){this.tvE=q};
pP.prototype.bindInnertubeChallengeFetcher=function(q){this.tvE.bicf(q)};
pP.prototype.registerChallengeFetchedCallback=function(q){this.tvE.bcr(q)};
pP.prototype.getLatestChallengeResponse=function(){return this.tvE.blc()};var i_u;_.mK=function(q,Z,w){var r=this;this.network=q;this.options=Z;this.networkStatusManager=w;this.hY=null;if(Z.useBotguardEverywhere){var Y=new _.Dk;this.hY=Y.promise;_.$1.ytAtRC&&_.$L(_.v5,function(){var C,d;return _.V(function(O){if(O.nextAddress==1){if(!_.$1.ytAtRC)return O.return();C=DX8(null);return _.W(O,r.pw(C),2)}d=O.yieldResult;_.$1.ytAtRC&&_.$1.ytAtRC(JSON.stringify(d));_.ub(O)})});
kyO().then(function(C){var d,O,H,L;return _.V(function(S){if(S.nextAddress==1)return C.bindInnertubeChallengeFetcher(function(v){return r.pw(DX8(v))}),_.W(S,t99(),2);
d=S.yieldResult;O=C.getLatestChallengeResponse();H=O.challenge;if(!H)throw Error("gi");L={challenge:H,pU:Gs(H),zU:d,bgChallenge:new Nl};Y.resolve(L);C.registerChallengeFetchedCallback(function(v){v=v.challenge;if(!v)throw Error("hi");v={challenge:v,pU:Gs(v),zU:d,bgChallenge:new Nl};r.hY=Promise.resolve(v)});
_.ub(S)})})}else Z.preload&&hBF(this,new Promise(function(C){_.WO(_.v5,function(){C(yuc(r))},0)}))};
i_u=function(q){var Z={preload:!0,useBotguardEverywhere:_.b("attmusi")},w=!1;if(typeof Z==="boolean")var r={preload:Z};else typeof Z==="undefined"?r={preload:!0}:(r=Z,w=!!Z.mSe);Z=w?void 0:new _.To;_.mK.instance=new _.mK(q,r,Z);return _.mK.instance};
_.mK.prototype.jfd=function(){var q=this;return _.V(function(Z){return Z.nextAddress==1?_.W(Z,Promise.race([q.hY,null]),2):Z.return(!!Z.yieldResult)})};
_.mK.prototype.qDQ=function(q,Z,w){var r=this,Y,C,d;return _.V(function(O){r.hY===null&&hBF(r,yuc(r));Y=!1;C={};d=function(){var H,L,S;return _.V(function(v){switch(v.nextAddress){case 1:return _.W(v,r.hY,2);case 2:H=v.yieldResult;C.challenge=H.challenge;if(!H.zU){"c1a"in H.pU&&(C.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");v.jumpTo(3);break}L=Object.assign({},{c:H.challenge,e:q},Z);_.d9(v,4);Y=!0;if(_.b("attbs")&&!_.b("attmusi")){S=_.ni9(H.zU,{pP:L});v.jumpTo(6);break}return _.W(v,H.zU.snapshot({pP:L}),
7);case 7:S=v.yieldResult;case 6:S?C.webResponse=S:C.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.QL(v,3);break;case 4:_.o3(v),C.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(q==="ENGAGEMENT_TYPE_PLAYBACK"){var R=H.pU,B={};if(R.c6a){var n=Number(_.zj("DCLKSTAT",0));B.reportingStatus=String(Number(R.c)^(isNaN(n)?0:n))}R.c6b&&(B.broadSpectrumDetectionResult=String(Number(R.c)^Number(_.zj("CATSTAT",0))));C.adblockReporting=B}return v.return(C)}})};
return O.return(Promise.race([d(),gqy(w,function(){var H=Object.assign({},C);Y&&(H.error="ATTESTATION_ERROR_VM_TIMEOUT");return H})]))})};
var DX8=function(q){var Z={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};q&&(Z.interpreterHash=q);return Z},yuc=function(q,Z){Z=Z===void 0?0:Z;
var w,r,Y,C,d,O,H,L,S,v,R,B;return _.V(function(n){switch(n.nextAddress){case 1:w=DX8(Ei1().eEN);if(_.b("att_fet_ks"))return _.d9(n,7),_.W(n,q.pw(w),9);_.d9(n,4);return _.W(n,q3y(q,w),6);case 6:d=n.yieldResult;Y=d.cmU;C=d.dRh;r=d;_.QL(n,3);break;case 4:return _.o3(n),_.bx(Error("ii`"+Z)),ZC6(q,864E5),n.return({challenge:"",pU:{},zU:void 0,bgChallenge:void 0});case 9:r=n.yieldResult;if(!r)throw Error("ji");if(!r.challenge)throw Error("ki");Y=r.challenge;C=Gs(Y);if("c1a"in C&&(!r.bgChallenge||!r.bgChallenge.program))throw Error("li");
_.QL(n,3);break;case 7:O=_.o3(n);_.bx(O);Z++;if(Z>=5)return _.bx(Error("ii`"+Z)),ZC6(q,864E5),n.return({challenge:"",pU:{},zU:void 0,bgChallenge:void 0});H=1E3*Math.pow(2,Z-1)+Math.random()*1E3;return n.return(new Promise(function(x){_.WO(_.v5,function(){x(yuc(q,Z))},H)}));
case 3:L=UE2(C);ZC6(q,L*1E3);S=void 0;if(!("c1a"in C&&r.bgChallenge)){n.jumpTo(10);break}v=TBN(r.bgChallenge);_.d9(n,11);return _.W(n,TXm(Ei1(),v),13);case 13:_.QL(n,12);break;case 11:return R=_.o3(n),_.bx(R),n.return({challenge:Y,pU:C,zU:S,bgChallenge:v});case 12:return _.d9(n,14),S=new _.bQ({challenge:v,oa:{xz:"aGIf"}}),_.W(n,S.xN7,16);case 16:_.QL(n,10);break;case 14:B=_.o3(n),_.bx(B),S=void 0;case 10:return n.return({challenge:Y,pU:C,zU:S,bgChallenge:v})}})};
_.mK.prototype.pw=function(q){var Z=this,w;return _.V(function(r){w=Z.networkStatusManager;if(!w||w.isNetworkAvailable())return r.return(Z.network.pw(q));_.Bd("att_pna",void 0,"attestation_challenge_fetch");return r.return(new Promise(function(Y){w.listenOnce("publicytnetworkstatus-online",function(){Z.network.pw(q).then(Y)})}))})};
var w3S=function(q){if(!q)throw Error("ji");if(!q.challenge)throw Error("ki");var Z=q.challenge,w=Gs(Z);if("c1a"in w&&(!q.bgChallenge||!q.bgChallenge.program))throw Error("li");return Object.assign({},q,{cmU:Z,dRh:w})},q3y=function(q,Z){var w,r,Y,C,d;
return _.V(function(O){switch(O.nextAddress){case 1:w=void 0,r=0,Y={};case 2:if(!(r<5)){O.jumpTo(4);break}if(!(r>0)){O.jumpTo(5);break}Y.xZw=1E3*Math.pow(2,r-1)+Math.random()*1E3;return _.W(O,new Promise(function(H){return function(L){_.WO(_.v5,function(){L(void 0)},H.xZw)}}(Y)),5);
case 5:return _.d9(O,7),_.W(O,q.pw(Z),9);case 9:return C=O.yieldResult,O.return(w3S(C));case 7:w=d=_.o3(O),d instanceof Error&&_.bx(d);case 8:r++;Y={xZw:void 0};O.jumpTo(2);break;case 4:throw w;}})},hBF=function(q,Z){q.hY=Z},rj7=function(q){var Z,w,r;
return _.V(function(Y){if(Y.nextAddress==1)return _.W(Y,Promise.race([q.hY,null]),2);Z=Y.yieldResult;var C=yuc(q);q.hY=C;(w=Z)==null||(r=w.zU)==null||r.dispose();_.ub(Y)})},ZC6=function(q,Z){var w=Date.now()+Z,r=function(){var Y;
return _.V(function(C){Y=w-Date.now();return Y<1E3?_.W(C,rj7(q),0):(_.WO(_.v5,r,Math.min(Y,6E4)),C.jumpTo(0))})};
r()},gqy=function(q,Z){return new Promise(function(w){_.WO(_.v5,function(){w(Z())},q)})};var Y3q=function(){};
Y3q.prototype.processContext=function(q){var Z=_.mK.instance;if(!Z)return _.EN();var w=MS8(q);return w?new QH(Z.qDQ(w,Ia1(q),500).then(function(r){var Y;(q==null?0:(Y=q.innerTubeRequest)==null?0:Y.context)||(q.innerTubeRequest.context={});Y=q.innerTubeRequest.context;Y.request||(Y.request={});Y.request.attestationResponseData=r})):_.EN()};var $uD=function(q){this.innertubeTransportService=q};
$uD.prototype.pw=function(q){_.Bd("att_fsr",void 0,"attestation_challenge_fetch");return _.tD(this.innertubeTransportService,q,_.IZ(_.ZZW)).then(function(Z){_.Bd("att_frr",void 0,"attestation_challenge_fetch");return Z})};_.eTD=function(q){this.innertubeTransportService=q};var CMC=new _.F$("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var PM7=function(){},VhV=function(q,Z,w,r,Y){var C=_.zj("YPC_MB_URL");
_.vej(C).then(function(){duC(C,q,Z,w,r,Y)})},duC=function(q,Z,w,r,Y,C){try{var d=payments.business.integration,O=payments.business.integration.Style.create().withMaterialDesignStyle(),H=d.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.b("enable_window_constrained_buy_flow_dialog")&&(H=H.usingPopupStyle("windowConstrained"));C&&(H=H.usingCloseCallback(C));var L=w?w:_.zj("YPC_GB_LANGUAGE"),S=_.zj("SESSION_INDEX");d.bootstrap.fromPaymentsUrl(q);d.bootstrap.asMashupMode(H).usingGaiaIndex(S).usingLocale(L).usingStyle(O).usingDefaultActivityStatusChangeHandler().inStandaloneContext(d.standaloneContextAuthId.forGaia()).purchaseManager(Z,function(v){r&&r(v)}).load(void 0,Y)}catch(v){throw Y&&Y(v),_.tY(v),v;
}};var OCZ=new _.F$("PURCHASE_MANAGER_TOKEN");var HC8=function(){var q=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return q.videos},
getContinuationsPresent:function(){return q.continuationsPresent},
setVideos:function(Z){q.videos=Z},
getRecommendedVideos:function(){return q.recommendedVideos},
setRecommendedVideos:function(Z){q.recommendedVideos=Z}}};
HC8.prototype.addVideos=function(q){q&&(this.videos=q.filter(function(Z){return!!_.NB9(Z)}).map(function(Z){var w=_.NB9(Z);
a:{var r;if(Z.playlistVideoRenderer&&((r=Z.playlistVideoRenderer)==null?0:r.voteSortTiebreaker))var Y=Z.playlistVideoRenderer.voteSortTiebreaker;else{if(_.J(Z,mB)){var C;if(r=(Y=_.J(Z,mB))==null?void 0:(C=Y.playlistItemData)==null?void 0:C.voteSortTiebreaker){Y=r;break a}}Y=""}}return{itemId:w,videoId:_.pKz(Z),voteCount:_.XK1(Z),voteSortTiebreaker:Y}}),this.continuationsPresent=!!_.J(q[q.length-1],_.i2))};
var Wel=function(q,Z){return q.videos.findIndex(function(w){return w.itemId===Z})},oxD=function(q,Z){return q.recommendedVideos.findIndex(function(w){return w.itemId===Z})},ugZ=function(q){q={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:q}}}}};_.t().resolve(_.ps).resolveCommand(q)};var LeV=function(){HC8.apply(this,arguments)};
_.z(LeV,HC8);
var Pd1=function(q,Z,w,r){if(!q.parentElem)throw Error("qi");var Y=Wel(q,Z);Y===-1&&(Y=oxD(q,Z),Y=Y!==-1?Y+q.videos.length:-1);if(Y===-1)throw Error("ri");var C=Y>=q.videos.length?q.recommendedVideos[Y-q.videos.length]:q.videos[Y];C.voteCount=w;C.voteSortTiebreaker=Date.now().toString();Y>=q.videos.length?q.recommendedVideos.splice(Y-q.videos.length,1):q.videos.splice(Y,1);var d=q.videos;for(var O=0,H=d.length-1;O<=H;){var L=Math.floor((O+H)/2);if(d[L].voteCount<C.voteCount)H=L-1;else if(d[L].voteCount>C.voteCount)O=
L+1;else{a:{var S=C.voteSortTiebreaker;var v=d[L].voteSortTiebreaker;if(S.length!==v.length)S=S.length>v.length;else{for(var R=0;R<S.length;R++){var B=S.charCodeAt(R),n=v.charCodeAt(R);if(B>n){S=!0;break a}if(B<n)break}S=!1}}S?H=L-1:O=L+1}}d=O;if(d===-1)throw Error("si");q.videos.splice(d,0,C);Y!==d&&S3l(q,Y,d,Z,w,r)},S3l=function(q,Z,w,r,Y,C){var d,O=(d=q.parentElem)==null?void 0:d.children,H=Math.min(Z,w),L=Math.max(Z,w);
if(O)for(d=H;d<=L;d++)O[d].style.viewTransitionName="item-"+String(d);document.startViewTransition(function(){if(q.parentElem){var S=q.parentElem.children;if(!(!S||Z<0||Z>=S.length||w<0||w>=S.length)){var v=S[Z];if(v){v.remove();q.showRefreshPill=w>=q.videos.length-1&&q.continuationsPresent;if(!q.showRefreshPill){S=S[w]||null;var R;(R=q.parentElem)==null||R.insertBefore(v,S)}_.hy(q.parentElem,"yt-update-video-data-voting-animation",{toIdx:w,itemId:r,newVoteCount:Y,voteStatus:C,hideItem:q.showRefreshPill})}}}}).finished.then(function(){if(O)for(var S=
H;S<=L;S++)O[S].style.viewTransitionName="";
if(q.showRefreshPill)ugZ(_.dT("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var v;if(v=S=(v=q.parentElem)==null?void 0:v.children[w])v=S.getBoundingClientRect(),S=v.bottom,v=!(v.top>=0&&S<=q.clientHeight);v&&(v=_.VG(Z>w?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(Z-w)),ugZ(v))}})};var thZ=function(q,Z){var w=this;q?this.innertubeTransportServicePromise=Promise.resolve(q):Z&&(this.innertubeTransportServicePromise=Z(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new n1(3E3,function(r){return vxC(w,r)},0);
this.validateMiniAppVideoIdRateLimiter=new n1(3E3,function(r){return j4y(w,r)},1)},yIb=function(q,Z){q.JSC$14863_miniAppId=Z;
q.reportMiniAppValueRateLimiter=new n1(3E3,function(w){return vxC(q,w)},0);
q.validateMiniAppVideoIdRateLimiter=new n1(3E3,function(w){return j4y(q,w)},1)},gv6=function(q,Z){var w;
return _.V(function(r){if(r.nextAddress==1)return _.W(r,q.reportMiniAppValueRateLimiter.call(Z),2);w=r.yieldResult;return r.return([w,Z])})},vxC=function(q,Z){var w,r,Y,C,d,O,H;
return _.V(function(L){switch(L.nextAddress){case 1:return _.W(L,q.innertubeTransportServicePromise,2);case 2:return w=L.yieldResult,r=_.IZ(PcW),Y=Date.now(),C={externalPostId:q.JSC$14863_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(Y/1E3),nanos:Math.round(Y%1E3*1E6)},intValue:""+Z}},_.d9(L,3),_.W(L,_.tD(w,C,r),5);case 5:d=L.yieldResult;_.QL(L,4);break;case 3:throw O=_.o3(L),O;case 4:if(d){if("error"in d&&d.error)throw d.error;if(d.errorMetadata)throw Error("ti`"+
d.errorMetadata.status);if(H=d.userStatResult)return L.return(H);throw Error("ui");}throw Error("vi");}})},Z_q=function(q){var Z,w,r,Y,C;
_.V(function(d){switch(d.nextAddress){case 1:return _.W(d,q.innertubeTransportServicePromise,2);case 2:return Z=d.yieldResult,w=_.IZ(PcW),r={externalPostId:q.JSC$14863_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.d9(d,3),_.W(d,_.tD(Z,r,w),5);case 5:Y=d.yieldResult;_.QL(d,4);break;case 3:throw C=_.o3(d),C;case 4:if(Y==null)throw Error("vi");if("error"in Y&&Y.error)throw Y.error;if(Y.errorMetadata)throw Error("ti`"+Y.errorMetadata.status);_.ub(d)}})};
thZ.prototype.flush=function(){var q=this;return _.V(function(Z){return Z.nextAddress==1?_.W(Z,q.reportMiniAppValueRateLimiter.flush(),2):_.W(Z,q.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var qI6=function(q,Z){return _.V(function(w){return w.nextAddress==1?_.W(w,q.validateMiniAppVideoIdRateLimiter.call(Z),2):w.return(w.yieldResult)})},j4y=function(q,Z){var w,r,Y,C,d,O;
return _.V(function(H){switch(H.nextAddress){case 1:return _.W(H,q.innertubeTransportServicePromise,2);case 2:return w=H.yieldResult,r=_.IZ(qW2),Y={videoId:Z},_.d9(H,3),_.W(H,_.tD(w,Y,r),5);case 5:C=H.yieldResult;_.QL(H,4);break;case 3:throw d=_.o3(H),d;case 4:if(C){if("error"in C&&C.error)throw C.error;if(C.errorMetadata)throw Error("ti`"+C.errorMetadata.status);if(O=C.playabilityStatus)return H.return(O.status);throw Error("wi");}throw Error("vi");}})};
thZ[M1]=[_.Gj(_.PP),_.Gj(Ej1)];var RTD=function(){this.clientData=new Map};
RTD.prototype.getData=function(q){return this.clientData.get(q)};var bCS=function(q){this.store=q};
bCS.prototype.handleResponse=function(q){(q=_.J(q.frameworkUpdates,n6))&&_.rt(q,this.store)};
bCS[M1]=[_.oL];var Jj8=new _.F$("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var zT7={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_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[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,1,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_list:[[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 BD7=new _.F$("ICON_SET_TOKEN"),aMV=new _.F$("ICON_URL_PROVIDER_TOKEN"),nxS=new _.F$("PREFETCH_ICONS_TOKEN"),Q4b=new _.F$("ICON_MAP_FN_TOKEN");var AB={},Exc=(AB.ACCESS_TIME="clock",AB.ACCOUNT_BOX="person_account",AB.ACCOUNT_BOX_CAIRO="person_account_cairo",AB.ACCOUNT_CIRCLE="person_circle",AB.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",AB.ACCOUNT_LINKED="account_link_success",AB.ACCOUNT_UNLINKED="account_link",AB.ADD_FRIEND="people",AB.ADD_TO_LIBRARY=hQ("add"),AB.ADD_TO_PLAYLIST="add",AB.ADD_TO_QUEUE_TAIL="list_queue",AB.ADD_TO_REMOTE_QUEUE="list_music",AB.ADD_TO_WATCH_LATER="clock",AB.ADD_VIDEO_LINK="film_strip_add",AB.ALERT_WARN_RED="alert_triangle",
AB.ARROW_BACK="arrow_left",AB.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",AB.ARROW_DROP_DOWN="chevron_down",AB.ARROW_DROP_UP="chevron_up",AB.ARROW_FORWARD="arrow_right",AB.AUDIOTRACK="audio",AB.AUTO_AWESOME="sparkle",AB.AVATAR_ANONYMOUS="person_circle",AB.AVATAR_LOGGED_OUT="person_circle",AB.BACK="arrow_left",AB.BAR_CHART="bar_graph",AB.BLOCK="slash_circle_left",AB.BLOCK_USER="slash_circle_left",AB.BOOKMARK_BORDER="bookmark",AB.BREAKING_NEWS_ALT_1="article_alert",AB.BROADCAST_CAIRO="podcast_cairo",
AB.BUG_REPORT="bug",AB.CAMERA_ALT="camera",AB.CAMPAIGN="megaphone",AB.CANCEL="x_circle",AB.CAPTIONS="closed_caption",AB.CAST_OUTLINE="chromecast",AB.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",AB.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",AB.CHAT="message_bubble_left",AB.CHAT_BUBBLE="message_bubble_empty",AB.CHECK_BOX_OUTLINE_BLANK="box_empty",AB.CHECK_CIRCLE_OUTLINE="check_circle",AB.CHECK_CIRCLE_THICK="check_circle",AB.CLARIFY="article_clarify",AB.CLOSED_CAPTION_SELECTED="closed_caption",AB.CLOSE=
"x_mark",AB.CLOUD_UPLOAD="cloud_arrow_up",AB.COLLAPSE="chevron_up",AB.COLLAPSE_CAIRO="chevron_up_cairo",AB.COLLECTION="layers",AB.COLOR_LENS="palette",AB.COMMENT="message_bubble_right",AB.CONSENT_SHIELD="person_shield",AB.CONTENT_CUT="scissors",AB.CONTENT_CUT_CAIRO="scissors_cairo",AB.COURSE=_.b("web_enable_course_icon_update")?"creator_academy":"lightbulb",AB.COURSE_CAIRO=_.b("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",AB.CREATION_LIVE="radar_live",AB.CREATION_UPLOAD=
"my_videos",AB.CREATION_UPLOAD_RED="upload",AB.CREATOR_STUDIO="youtube_studio",AB.DELETE="trash_can",AB.DELETE_SWEEP="trash_can",AB.DESKTOP="laptop",AB.DISLIKE="thumb_down",AB.DISLIKE_SELECTED="thumb_down",AB.DISMISSAL="x_mark",AB.DISMISS_QUEUE="list_remove",AB.DOWN_ARROW="arrow_down",AB.DO_NOT_DISTURB="slash_circle_left",AB.DRAFT="paper_corner_folded",AB.DRAG_HANDLE="bars_2",AB.EDIT="pencil",AB.EMOJI="face_very_happy",AB.EMOJI_FLAGS="flag",AB.EMOJI_OBJECTS="lightbulb",AB.EMOJI_PEOPLE="face_very_happy",
AB.EMOJI_RECENT="clock",AB.EMPTY_HEART="heart",AB.EMPTY_LIKE="thumb_up",AB.ERROR_BLACK="alert_circle",AB.ERROR_OUTLINE="alert_circle",AB.EXIT_APP="arrow_in",AB.EXIT_TO_APP="arrow_in",AB.EXPAND="chevron_down",AB.EXPAND_ALL="chevron_expand",AB.EXPAND_CAIRO="chevron_down_cairo",AB.EXPAND_LESS="chevron_up",AB.EXPAND_MORE="chevron_down",AB.EXPLORE="compass",AB.EXPLORE_DESTINATION="compass",AB.EXTERNAL_LINK="open_new",AB.FAB_UPLOAD="upload",AB.FACE_HAPPY_OUTLINE="face_happy",AB.FACT_CHECK="article_check",
AB.FASHION_LOGO="fashion",AB.FASHION_LOGO_CAIRO="fashion_cairo",AB.FAVORITE="heart",AB.FEEDBACK="message_bubble_alert",AB.FEEDBACK_CAIRO="message_bubble_alert_cairo",AB.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",AB.FILL_ARROW_SOLID_UP_16="arrow_solid_up",AB.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",AB.FLAG="flag",AB.FULL_HEART="heart",AB.GAME_CONSOLE_DPAD="game_console_dpad",AB.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",AB.GAMING_LOGO="gaming",AB.GAMING_LOGO_CAIRO="gaming_cairo",AB.GO_TO_PAGE=
"arrow_right",AB.GROUPS="people_group",AB.HAPPY="face_happy",AB.HEALTH_AND_SAFETY="shield_plus",AB.HELP="question_circle",AB.HELP_CAIRO="question_circle_cairo",AB.HELP_OUTLINE="question_circle",AB.HIDE="slash_circle_left",AB.IMAGE="image",AB.INFINITY_ICON="infinity",AB.INFO="info_circle",AB.INFO_OUTLINE="info_circle",AB.INSERT_CHART_OUTLINED="bar_graph_box_vertical",AB.INSERT_PHOTO="image",AB.KEEP="pin",AB.KEEP_OFF="pin_off",AB.KEYBOARD="keyboard",AB.KEYBOARD_ARROW_DOWN="chevron_down",AB.KEYBOARD_ARROW_UP=
"chevron_up",AB.KIDS_BLOCK="slash_circle_left",AB.LANGUAGE="globe",AB.LAUNCH="open_new",AB.LEARNING="lightbulb",AB.LEARNING_CAIRO="lightbulb_cairo",AB.LIBRARY_ADD=hQ("library_add"),AB.LIBRARY_OUTLINE="library",AB.LIBRARY_REMOVE=hQ(),AB.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",AB.LIKES_PLAYLIST="thumb_up",AB.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",AB.LIKE="thumb_up",AB.LIKE_SELECTED="thumb_up",AB.LIVE="radar_live",AB.LIVE_CAIRO="radar_live_cairo",AB.LIVE_UNLISTED="link",AB.LOCATION_ON="location_point",
AB.LOCATION_PIN="location_point",AB.LOOP="arrow_repeat",AB.LOOP_ACTIVE="arrow_repeat",AB.LOOP_ONE="arrow_repeat_1",AB.LOOP_ONE_ACTIVE="arrow_repeat_1",AB.MEH="face_meh",AB.MEMBERS_ONLY_MODE_OFF="message_bubble_left",AB.MESSAGE="message_bubble_left",AB.MICROPHONE_ON="mic",AB.MIX="youtube_mix",AB.MONETIZATION_ON="dollar_sign_circle",AB.MONEY_FILL="dollar_sign_container",AB.MONEY_FILL_JPY="yen_sign_container",AB.MONEY_HEART="dollar_sign_heart",AB.MORE_HORIZ="overflow_horizontal",AB.MORE_VERT="overflow_vertical",
AB.MUSIC="audio",AB.MUSIC_CAIRO="audio_cairo",AB.MUSIC_NOTE_SYMBOL="music",AB.MUSIC_SHUFFLE="arrow_shuffle",AB.MY_CHANNEL="person_circle",AB.MY_LOCATION="location_point",AB.NEWS_STORY="news",AB.NEXT="chevron_right",AB.NOTIFICATIONS="bell",AB.NOTIFICATIONS_ACTIVE="bell_on",AB.NOTIFICATIONS_CAIRO="bell_cairo",AB.NOTIFICATIONS_DONE_CHECKMARK="check",AB.NOTIFICATIONS_INBOX="bell",AB.NOTIFICATIONS_NONE="bell",AB.NOTIFICATIONS_OFF="bell_off",AB.NOT_INTERESTED="slash_circle_left",AB.OFFICIAL_ARTIST_BADGE=
"audio",AB.OFFLINE_CLOUD="cloud_off",AB.OFFLINE_DOWNLOAD="download",AB.OFFLINE_DOWNLOAD_CAIRO="download_cairo",AB.OFFLINE_PAUSE="pause",AB.OPEN_IN_NEW="open_new",AB.OUTLINE_ADJUST="adjust",AB.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",AB.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",AB.OUTLINE_BAG="bag",AB.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",AB.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",AB.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",AB.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",
AB.PAID="dollar_sign",AB.PAUSE_OUTLINED="pause",AB.PAYMENT="credit_card",AB.PERSON_RADAR_FILLED="person_radar",AB.PHONE_DOWNLOAD="mobile_download",AB.PLAYABLES_LOGO="tic_tac_toe",AB.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",AB.PLAYLISTS="list_play_arrow",AB.PLAYLISTS_CAIRO="list_play_arrow_cairo",AB.PLAYLIST_ADD=hQ("list_add"),AB.PLAYLIST_ADD_CHECK=hQ("list_check"),AB.PLAY_ALL="play_arrow",AB.PLAY_CIRCLE="play_arrow_circle",AB.PLAY_OUTLINED="play_arrow_circle",AB.PRIVACY_INFO="shield",AB.PRIVACY_PRIVATE=
"lock",AB.PRIVACY_PUBLIC="earth",AB.PRIVACY_UNLISTED="link",AB.PROMOTE="megaphone",AB.PURCHASES="price_tag",AB.PURCHASE_SUPER_CHAT="super_chat",AB.PURCHASE_SUPER_STICKER="super_sticker",AB.QUESTION_ANSWER="message_bubble_question",AB.QUEUE_PLAY_LAST="list_queue_last",AB.QUEUE_PLAY_NEXT="list_play_arrow",AB.REMIX_FILLED="youtube_shorts_remix",AB.REMOVE="bar_circle",AB.REMOVE_CIRCLE="bar_circle",AB.REMOVE_CIRCLE_OUTLINE="bar_circle",AB.REMOVE_FROM_HISTORY="bar_circle",AB.REMOVE_FROM_PLAYLIST="bar_circle",
AB.REPLAY="arrow_circle",AB.REPORT_PROBLEM="alert_triangle",AB.SAD="face_sad",AB.SAVE_PLAYLIST=hQ("library_add"),AB.SCHEDULE="clock",AB.SCHOOL="creator_academy",AB.SCREEN_FULLSCREEN="screen_full",AB.SEARCH_HISTORY="arrow_time",AB.SELL="price_tag",AB.SETTINGS="gear",AB.SETTINGS_CAIRO="gear_cairo",AB.SETTINGS_LIGHT="gear",AB.SETTINGS_MATERIAL="gear",AB.SHARE_ARROW="share",AB.SHIELD_WITH_AVATAR="person_shield",AB.SHOPPING_BAG="bag",AB.SHOPPING_BAG_CAIRO="bag_cairo",AB.SHOPPING_CART="cart",AB.SHORTS_COMMENT=
"youtube_shorts_message_bubble_right",AB.SHORTS_DISLIKE="youtube_shorts_thumb_down",AB.SHORTS_LIKE="youtube_shorts_thumb_up",AB.SHORTS_SHARE="youtube_shorts_share",AB.SHUFFLE="arrow_shuffle",AB.SLOW_MODE_OFF="message_bubble_left",AB.SOCIAL="people",AB.SORT="menu_sort",AB.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",AB.SPEED_1X="1x",AB.SPEED_1_POINT_2X="1_point_2x",AB.SPEED_1_POINT_5X="1_point_5x",AB.SPEED_1_POINT_8X="1_point_8x",AB.SPEED_2X="2x",AB.SPEED_POINT_2X="point_2x",AB.SPEED_POINT_8X="point_8x",
AB.SPONSORSHIP_STAR=_.b("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",AB.STAFF_PICK="spotlight",AB.START_DVR="add",AB.STAR_BORDER="star",AB.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",AB.STICKER_EMOTICON="face_happy",AB.STOP_DVR="stop",AB.SUBSCRIBE="youtube_logo_icon",AB.SUBSCRIBE_PLUS="add_cairo",AB.SUBSCRIPTION_MANAGER="gear",AB.SUPERVISOR_ACCOUNT="people",AB.SWAP_HORIZ="arrow_swap_horizontal",AB.SWITCH_ACCOUNTS="person_account",AB.TAB_ACCOUNT="person",AB.TAB_ACTIVITY=
"bell",AB.TAB_EXPLORE="compass",AB.TAB_HOME="home",AB.TAB_HOME_CAIRO="home_cairo",AB.TAB_INBOX="mail",AB.TAB_LIKED="thumb_up",AB.TAB_MUSIC_PREMIUM="youtube_music",AB.TAB_SHORTS="youtube_shorts",AB.TAB_SHORTS_CAIRO="youtube_shorts_cairo",AB.TAB_SUBSCRIPTIONS="subscriptions",AB.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",AB.TAB_TRENDING="fire",AB.TIMER="stopwatch",AB.TRENDING="fire",AB.TRENDING_CAIRO="fire_cairo",AB.TRENDING_UP="rating_up",AB.TROPHY="trophy",AB.TROPHY_CELEBRATIONS="fireworks",AB.TUNE=
"adjust",AB.UNBLOCK_USER="bar_circle",AB.UNLIMITED="youtube_logo_icon",AB.UNPLUGGED_LIVE_GUIDE="radar_live",AB.UNPLUGGED_SPORTS="eye_off",AB.UPLOADS="library",AB.UP_ARROW="arrow_up",AB.VERTICAL_ALIGN_BOTTOM="download",AB.VERY_HAPPY="face_very_happy",AB.VERY_SAD="face_very_sad",AB.VIDEOS="play_arrow_circle",AB.VIDEO_CALL="video_camera_add",AB.VIDEO_LIBRARY_WHITE="library",AB.VIDEO_YOUTUBE="youtube_logo_icon",AB.VIEW_LIST="list_view",AB.VIEW_LIST_CAIRO="list_view_cairo",AB.VISIBILITY="eye",AB.VISIBILITY_OFF=
"eye_off",AB.VOLUME_MUTE="volume_off",AB.VOLUME_UP="volume_on",AB.WALLPAPER="image",AB.WARNING="alert_triangle",AB.WATCH_HISTORY="arrow_time",AB.WATCH_HISTORY_CAIRO="arrow_time_cairo",AB.WATCH_LATER="clock",AB.WATCH_LATER_CAIRO="clock_cairo",AB.WATCH_RELATED_MIX="youtube_mix",AB.WHAT_TO_WATCH="home",AB.YOUTUBE_MUSIC_MONOCHROME="youtube_music",AB.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",AB.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",AB.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",AB.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",AB.YT_OUTLINE_MUSIC_24="music",AB);var xuS={},TDl=(xuS.TAB_SHORTS="youtube_shorts",xuS.TAB_SHORTS_CAIRO="youtube_shorts",xuS.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",xuS);var UuD={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,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,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,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,2,24]],arrow_merge:[[1,
1,24]],arrow_out:[[0,1,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,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,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,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,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,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,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,3,24],[1,3,24]],bag:[[0,5,12],
[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,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,1,24]],bell:[[0,8,24],[1,8,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,1,24]],book:[[1,1,24]],bookmark:[[0,6,24],[1,6,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]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,1,24],[1,
1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,8,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,
2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,
7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,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,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,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,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,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,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,2,24]],code:[[1,1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,
1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,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,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,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,2,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,
8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,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,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],
face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],
flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,3,24]],gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,
24]],glow:[[1,1,24]],google_lens:[[1,3,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,1,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,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,6,24],[1,6,24]],headset:[[0,6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,
15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],info_circle:[[1,8,16],[1,8,18],[1,8,20],[1,8,24]],key:[[1,4,24]],keyboard:[[0,
2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,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,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,6,18],[1,6,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,1,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,9,12],[0,9,24],[1,9,12],[1,9,16],[1,9,18],[1,9,24]],lock_open:[[1,
2,24]],magic_wand:[[0,1,24],[1,1,24]],mail:[[0,6,24],[1,6,24]],map:[[1,2,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,1,24]],medal_star:[[1,1,24]],meet:[[1,1,24]],megaphone:[[0,
2,24],[1,2,24]],memberships:[[0,6,12],[0,6,16],[0,6,18],[0,6,24],[1,6,24]],mention:[[1,3,16],[1,3,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_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,8,24],[1,8,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,3,24],[1,3,24]],mobile_check:[[1,1,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,1,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,1,24]],move:[[1,1,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,3,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,2,24],[1,2,12],[1,2,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,1,24]],node_right:[[1,1,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,4,24],[1,4,32]],overflow_vertical:[[1,10,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,2,24]],palette:[[1,1,24]],panels:[[0,1,24],[1,1,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,6,24]],pause_circle:[[0,1,12],[0,1,16],[0,1,24]],pdf:[[1,1,24]],pencil:[[1,6,16],[1,6,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,5,12],[0,5,13],[0,5,16],[0,5,24],[0,5,48],[1,5,13],[1,5,16],[1,5,24]],person_2:[[1,1,24]],
person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,5,24]],person_box:[[1,5,24]],person_circle:[[0,8,24],[1,8,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,1,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],person_setting:[[1,6,24]],person_shield:[[1,6,24]],phone:[[0,1,24],[1,1,24]],picture_in_picture:[[0,1,24],[1,1,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,5,12],[0,5,24],
[1,5,16],[1,5,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,2,24],[1,2,12],[1,2,16],[1,2,18],[1,2,24]],podcast_add:[[0,1,24],[1,1,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,1,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,7,16],[1,7,24],[1,7,40]],pound:[[1,3,24]],presentation:[[1,1,24]],presentation_remove:[[1,
1,24]],price_tag:[[0,6,12],[0,6,24],[1,6,24]],price_tag_heart:[[1,1,24]],qr_code:[[1,2,24]],question_circle:[[1,5,24]],question_circle_cairo:[[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,1,24]],remix:[[1,1,16],[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,
1,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,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]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,3,24,!0],[1,3,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,1,24]],shadow_soft:[[0,1,24]],shapes:[[0,2,24],[1,2,24]],share:[[0,9,24,!0],[0,9,32,!0],[1,9,16,!0],[1,9,24,!0]],
share_cairo:[[1,2,24]],share_ios:[[1,1,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,4,24]],shield_add:[[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,1,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,3,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,3,24]],skip_previous:[[0,3,24]],skip_up:[[0,
3,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,2,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,1,24]],spark:[[0,6,12],[0,6,16],[0,6,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_video:[[1,2,24]],sparkle:[[0,
4,24],[1,4,24]],speaker:[[1,1,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,1,24]],speaker_off:[[1,1,24]],split:[[1,3,24]],sports:[[0,1,24]],spotlight:[[0,1,24],[1,1,24]],star:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],star_circle:[[0,1,12],[0,1,16],[0,1,18],[0,1,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,1,24]],
stop:[[0,1,24]],stopwatch:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,8,24],[1,8,18],[1,8,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,2,12],[0,2,24],[1,2,24]],super_chat:[[1,6,18],[1,6,24]],super_sticker:[[0,6,16],[0,6,24],[1,6,16],[1,6,24]],super_store:[[1,1,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,1,24],[1,1,16],[1,1,24]],target_add:[[0,1,24],[1,1,16],[1,1,24]],template_add:[[1,2,16],[1,2,24]],template_play:[[0,
1,24],[1,1,24]],text:[[0,8,24],[1,8,16],[1,8,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,1,24]],thumb_down:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up:[[0,17,16],[0,17,24],[0,17,36],[1,17,16],[1,17,24],[1,17,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,
1,24],[1,1,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]],tilt:[[1,3,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,2,24]],toolbox:[[1,2,24]],transcript:[[1,1,16],[1,1,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,3,24],[1,3,24]],translate:[[1,1,24]],trash_can:[[1,6,16],[1,6,24]],triangle_down:[[1,5,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,1,24],[1,1,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,
1,24]],truck:[[0,3,24],[1,3,24]],tv:[[0,5,12],[0,5,16],[0,5,24],[1,5,16],[1,5,24]],tv_arrow_left:[[1,1,24]],tv_circle:[[0,1,24],[1,1,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,4,24]],uploading:[[1,1,24]],variable:[[1,3,24]],verified_circle:[[1,4,24]],video_camera:[[0,7,24],[1,7,24]],video_camera_add:[[1,1,24]],video_camera_off:[[1,1,24]],video_link:[[1,3,16],[1,3,24]],video_stitch:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],
volume_fade:[[1,1,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,5,24],[1,5,24]],waveform:[[1,1,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,1,24],[1,1,24]],x:[[1,8,18],[1,8,24]],x_cairo:[[1,1,24]],x_circle:[[1,5,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,1,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,3,24],[1,3,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,5,24],[1,5,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,6,24],[1,6,24]],youtube_tv:[[0,6,24],[1,6,24]]};var kxD={youtube_shorts:[[0,10,24],[1,10,24]]};var f1=function(q){this.iconUrlProvider=q};
f1.prototype.resolveIcon=function(q,Z){var w=q.iconName;w=w.replace(/-/g,"_");q=Object.assign({},q,{iconName:this.mapIconTypeToStandardName(w)||w.toLowerCase()});if(_.b("enable_web_delhi_icons")){var r;return A8O(kxD,q,((r=this.iconUrlProvider)==null?void 0:r.getYtStandardUrl)||hq9,Z)}var Y;return A8O(UuD,q,((Y=this.iconUrlProvider)==null?void 0:Y.getYtStandardUrl)||DEN,Z)};
f1.prototype.mapIconTypeToStandardName=function(q){return _.b("enable_web_delhi_icons")?TDl[q.toUpperCase()]:Exc[q.toUpperCase()]};
f1[M1]=[_.Gj(aMV)];var Keq=function(q){this.urlProvider=this.iconUrlProvider=q};
_.z(Keq,f1);
Keq.prototype.resolveIcon=function(q,Z){q.iconName==="youtube_logo"&&(q.iconName="yt-logo-updated");if(q.iconName==="youtube_premium_logo"||q.iconName==="youtube_red_logo")q.iconName="yt-logo-red-updated";var w=Object.assign({},q);q.iconName==="menu"&&(w.iconName="bars_3",w.iconStyle="youtube_outline");q.iconName==="youtube_music"&&(w.iconStyle="youtube_fill");q.iconName==="mail"&&q.iconSetName==="socialNetworksRound"&&(w.iconName="email");q.iconName==="more"&&(w.iconName="overflow_horizontal");q.iconName===
"fullscreen"&&(w.iconName="screen_full");if(q.iconName==="play_all"||q.iconName==="play_arrow")w.iconStyle="youtube_fill";q.iconName==="premium_standalone"&&(w.iconName="premium_standalone_cairo");_.b("enable_connect_icon_update_web")&&q.iconName==="account_linked"&&(w.iconName="circles_overlap_check",w.iconStyle="youtube_fill");_.b("enable_connect_icon_update_web")&&q.iconName==="account_unlinked"&&(w.iconName="circles_overlap",w.iconStyle="youtube_outline");q=Object.assign({},w,{iconName:(f1.prototype.mapIconTypeToStandardName.call(this,
w.iconName)||w.iconName).toLowerCase()});var r;return(q=A8O(zT7,q,((r=this.urlProvider)==null?void 0:r.getUrl)||y82,Z))?q:f1.prototype.resolveIcon.call(this,w,Z)};
Keq[M1]=[_.Gj(aMV)];_.s4l=1;var D2=function(){};
_.z(D2,K2);D2.prototype.resolveCommand=function(q){var Z,w;return _.V(function(r){Z=_.J(q,dCh);if(!Z)return r.return();w=Number(Z.enableDelayedPacfLoggingTvMs);if(isNaN(w)){var Y=oc();Z4X(Y,Z,0)}else Z4X(oc(),Z,w);_.ub(r)})};_.hB=function(){};
_.z(_.hB,K2);
_.hB.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C,d,O,H,L;return _.V(function(S){r=_.J(q,V3D);C=(Y=Z.form)==null?void 0:Y.element;O=(d=C)==null?void 0:d.closest("ytd-enforcement-message-view-model");if(!r||!O)return S.return();w.allowAdsAction||(H=r.fundingChoiceInstructionPageUrl,w.allowAdsAction=new pFK(window,_.jJ(H)));var v=w.allowAdsAction;v.wallElement=O;v.allowAdsPopup.style.setProperty("display","flex","important");var R=v.scrollManager;R.originalBodyOverflow=R.JSC$7874_domHelper.JSC$7242_document_.body.style.overflow;R.JSC$7874_domHelper.JSC$7242_document_.body.style.overflow=
"hidden";v.wallElement.style.setProperty("display","none","important");ZsW(v.accessibilityManager,v.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((L=w.allowAdsAction.allowAdsPopup)&&L instanceof HTMLElement)for(v=_.P(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),R=v.next();!R.done;R=v.next()){var B=_.P(R.value);R=B.next().value;B=B.next().value;L.style.setProperty(R,B)}_.ub(S)})};
_.hB.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var yi=function(){};
_.z(yi,K2);yi.prototype.resolveCommand=function(q){var Z;return _.V(function(w){Z=_.J(q,OqX);if(!Z)return w.return();aXT(q);_.ub(w)})};var gN=function(q){this.JSC$14902_commandHandler=q};
_.z(gN,K2);
gN.prototype.resolveCommand=function(q){var Z=this,w,r,Y,C,d,O,H,L;return _.V(function(S){if(S.nextAddress==1){w=_.J(q,li1);if((r=w)==null||!r.text||!navigator.clipboard)return S.return();_.d9(S,2);return _.W(S,navigator.clipboard.writeText(w.text),4)}if(S.nextAddress!=2){if(!w.successActions||w.successActions.length===0)return S.return();Y=_.P(w.successActions);for(C=Y.next();!C.done;C=Y.next())d=C.value,Z.JSC$14902_commandHandler.resolveCommand(d);return _.QL(S,0)}_.o3(S);if(!w.failureActions||w.failureActions.length===
0)return S.return();O=_.P(w.failureActions);for(H=O.next();!H.done;H=O.next())L=H.value,Z.JSC$14902_commandHandler.resolveCommand(L);_.ub(S)})};
gN[M1]=[_.ps];var qV=function(q){this.JSC$14906_commandHandler=q};
_.z(qV,K2);
qV.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C,d,O,H,L,S,v,R;return _.V(function(B){switch(B.nextAddress){case 1:r=_.J(q,vCv);if(!r)return B.return();_.d9(B,2);if(!r.imageBytes&&!r.imageUrl)throw Error("xi");if(!r.imageUrl){if(r.imageBytes){C=r.imageBytes;d=C.replace(/-/g,"+").replace(/_/g,"/");var n=gm1(d);Y=xv(n)}B.jumpTo(4);break}return _.W(B,fetch(r.imageUrl),5);case 5:return O=B.yieldResult,_.W(B,O.blob(),6);case 6:H=B.yieldResult,Y=xv(H);case 4:v=(L=Z)==null?void 0:(S=L.form)==null?
void 0:S.element;R=document.createElement("a");KA(R,Y);v.appendChild(R);R.download="";R.click();v.removeChild(R);URL.revokeObjectURL(_.bg(Y));r.successCommand&&w.JSC$14906_commandHandler.resolveCommand(r.successCommand);_.QL(B,0);break;case 2:_.o3(B),r.errorCommand&&w.JSC$14906_commandHandler.resolveCommand(r.errorCommand),_.ub(B)}})};
qV[M1]=[_.ps];var Z6=function(q){this.store=q};
_.z(Z6,K2);Z6.prototype.resolveCommand=function(q){var Z=this,w,r,Y;return _.V(function(C){r=(w=_.J(q,_.rHK))==null?void 0:w.entityBatchUpdate;if(!r)return C.jumpTo(0);Y=Object.assign({},r,{mutations:[].concat(_.Ju(r.mutations||[]))});return _.W(C,_.rt(Y,Z.store),0)})};var IM8=function(q){this.JSC$14913_commandHandler=q;this.feedbackDialogMap=new Map};
IM8.prototype.openDialog=function(q,Z){(q=this.feedbackDialogMap.get(q))&&this.JSC$14913_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:q}},Z)};
IM8[M1]=[_.ps];var ww=new _.F$("FEEDBACK_CONTROLLER_TOKEN");var rw=new _.F$("APP_STORE_TOKEN");var Yp=function(q,Z){this.store=q;this.controller=Z};
_.z(Yp,K2);Yp.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C,d,O,H,L,S,v,R,B,n,x,K,k,G,rz;return _.V(function(f){if(f.nextAddress==1){r=_.J(q,_.BH);if(C=(Y=r)==null?void 0:Y.contentId)for(O=_.P(((d=r)==null?void 0:d.actions)||[]),H=O.next();!H.done;H=O.next())L=H.value,cjC(w,L,C);R=(S=Z)==null?void 0:(v=S.form)==null?void 0:v.element;return _.W(f,_.qM(R,[q]).catch(function(){}),2)}B=f.yieldResult;
((n=B)==null?0:(x=n.data)==null?0:(K=x.feedbackResponses)==null?0:K.length)&&(G=(k=B.data.feedbackResponses[0])==null?void 0:k.followUpDialog)&&C&&(rz=w.controller)!=null&&rz.feedbackDialogMap.set(C,G);_.ub(f)})};
var cjC=function(q,Z,w){var r=_.J(Z,_.$K);if(r){r=_.P(r.commands||[]);for(var Y=r.next();!Y.done;Y=r.next())cjC(q,Y.value,w)}_.J(Z,_.CH)&&q.store.dispatch(_.wp("commandEntity",nPO(w),{key:w,command:Z}));_.J(Z,CQh)&&q.store.dispatch(_.wp("commandEntity",nPO(w),{key:w,command:Z}))};
Yp[M1]=[rw,ww];var $p=function(q){this.controller=q};
_.z($p,K2);$p.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C,d;return _.V(function(O){r=_.J(q,_.EU);C=(Y=r)==null?void 0:Y.targetId;if(((d=r)==null?void 0:d.signal)!=="TELL_US_WHY"||!C)return O.return();w.controller.openDialog(C,Z);_.ub(O)})};
$p[M1]=[ww];var em=function(q){this.store=q};
_.z(em,K2);em.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C,d,O,H,L;return _.V(function(S){r=_.J(q,$az);C=(Y=r)==null?void 0:Y.contentId;H=(d=Z)==null?void 0:(O=d.form)==null?void 0:O.element;L=_.qM(H,[q]);C&&w.undo(C);return _.W(S,L,0)})};
em.prototype.undo=function(q){this.store.dispatch(_.wp("commandEntity",nPO(q),{key:q,command:void 0}))};
em[M1]=[rw];var CJ=function(q){this.JSC$14928_commandHandler=q};
_.z(CJ,K2);CJ.prototype.resolveCommand=function(q){var Z=this,w,r,Y,C,d,O,H,L;return _.V(function(S){w=_.J(q,j7D);r=w.flowStateKey;Y=w.validationFailureCommand;C=w.submitValidFormCommand;d=zp(_.DQ,[r||""]);O=_.J(d,R11);((H=O)==null?0:H.isValid)&&C&&Z.JSC$14928_commandHandler.resolveCommand(C);((L=O)==null?0:L.isValid)||!Y||Z.JSC$14928_commandHandler.resolveCommand(Y);_.ub(S)})};
CJ[M1]=[_.ps];var PS=function(q){this.innertubeTransportService=q};
_.z(PS,K2);PS.prototype.resolveCommand=function(q,Z){var w=this,r;return _.V(function(Y){return _.W(Y,_.zR(w.innertubeTransportService,q,(r=Z)==null?void 0:r.form).then(function(C){var d,O;Z==null||(d=Z.commandController)==null||(O=d.onSuccess)==null||O.call(d,q,C)},function(C){var d,O;
Z==null||(d=Z.commandController)==null||(O=d.onServerError)==null||O.call(d,q,C)}),0)})};
PS[M1]=[_.PP];var dw=function(){};
_.z(dw,K2);dw.prototype.resolveCommand=function(q){var Z,w,r,Y;return _.V(function(C){if(Z=_.J(q,_.HKK)){if(w=Z.gtmId)r=_.zj("GL",""),_.Yb(w,r);(Y=Z.gtmData)&&_.$b(Y)}_.ub(C)})};var VO=function(q,Z){this.innertubeTransportService=q;this.JSC$14939_actionRouter=Z};
_.z(VO,K2);VO.prototype.resolveCommand=function(q){var Z=this,w,r;return _.V(function(Y){w=_.J(q,xCX);if(!w)return Y.return();r=w.command;if(!r)return Y.return();Z.JSC$14939_actionRouter.triggerAction("yt-insert-rich-section-action",w);return _.W(Y,_.zR(Z.innertubeTransportService,r,{disableCache:!0}),0)})};
VO[M1]=[_.PP,KH];Zxj.bind(null,sy);var Mhq=Zxj.bind(null,ew9);r62.bind(null,sy);var FeC=r62.bind(null,ew9);eu1.bind(null,sy);var NDF=eu1.bind(null,ew9);var O$=function(){};
_.z(O$,K2);
O$.prototype.resolveCommand=function(q){var Z,w,r,Y,C,d,O,H,L,S;return _.V(function(v){Z=_.J(q,CUg);if(!Z)return v.return();r=((w=Z.operations)==null?void 0:w.operations)||[];Y=_.P(r);for(C=Y.next();!C.done;C=Y.next())if(d=C.value,d.insertItemSectionContent){var R=d.insertItemSectionContent,B=R.contents||[];R.insertByPositionInSection?Mhq(R.insertByPositionInSection.sectionTargetId,B,R.insertByPositionInSection.position):R.insertByRelativePositionInSection&&R.insertByRelativePositionInSection.sectionTargetId&&R.insertByRelativePositionInSection.itemTargetId&&
FeC(R.insertByRelativePositionInSection.sectionTargetId,R.insertByRelativePositionInSection.itemTargetId,B,R.insertByRelativePositionInSection.relativePosition)}else d.replaceSection?(R=d.replaceSection,B={},R.replaceByTargetId?B=R.replaceByTargetId:R.replaceByGroupId&&(B={targetId:R.replaceByGroupId.groupId,newContent:R.replaceByGroupId.newContent,undoKey:""}),B.newContent&&di2(B.targetId,{continuationItems:[B.newContent]})):d.removeItem?(R=d.removeItem,R.removeByTargetId&&R.sectionTargetId&&NDF(R.sectionTargetId,
R.removeByTargetId.targetIds||[])):d.removeSection&&(d.removeSection.removeByTargetId?(O=void 0,lMV(((O=d.removeSection)==null?void 0:O.removeByTargetId.targetIds)||[])):d.removeSection.removeByGroupId&&(H=void 0,lMV(((H=d.removeSection)==null?void 0:H.removeByGroupId.groupIds)||[])));S=((L=Z.operations)==null?void 0:L.scrollConfig)||{};Gxl(S);_.ub(v)})};
var lMV=function(q){q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next())di2(Z.value,{continuationItems:[]})},Gxl=function(q){if(q.scrollToItem){var Z=q.scrollToItem.item||{},w=Z.itemTargetId;
Z=Z.sectionTargetId;if(w&&Z){var r=document.querySelector("[data-target-id="+Z+"]"),Y=r==null?void 0:r.querySelector("[data-target-id="+w+"]");r&&Y&&setTimeout(function(){var C=Y.offsetTop-r.offsetTop,d;if(((d=q.scrollToItem)==null?void 0:d.scrollPosition)==="SCROLL_POSITION_CENTER")C-=r.offsetHeight/2,C+=Y.offsetHeight/2;else{var O;((O=q.scrollToItem)==null?void 0:O.scrollPosition)==="SCROLL_POSITION_END"&&(C-=r.offsetHeight,C+=Y.offsetHeight)}r.scroll({top:C,behavior:"smooth"})},100)}}};var HS=new _.F$("CLIENT_NAME_TOKEN");var p3Z=new _.F$("DEFAULT_STORE_EXPIRATION_TOKEN");var bT2=new _.F$("CLIENT_LOCATION_SERVICE_TOKEN");var WS=function(q,Z,w){this.clientName=q||_.zj("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=Z||_.zI.getInstance();this.JSC$14967_commandHandler=w||_.AJ.instance};
_.z(WS,K2);WS.prototype.resolveCommand=function(q){var Z=this,w,r;return _.V(function(Y){r=(w=_.J(q,HD7))==null?void 0:w.onComplete;Z.clientLocationService.clearLocationPlayabilityToken(Z.clientName);r&&Z.JSC$14967_commandHandler.resolveCommand(r);_.ub(Y)})};
WS[M1]=[HS,bT2,_.ps];var om=function(q){this.innertubeTransportService=q};
_.z(om,K2);om.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C,d;return _.V(function(O){C=(r=Z)==null?void 0:(Y=r.form)==null?void 0:Y.element;return _.W(O,_.zR(w.innertubeTransportService,q,(d=Z)==null?void 0:d.form).then(function(H){Kp2(C,new CustomEvent("yt-service-request-completed"),{data:H},_.zj("openPopupConfig"))}),0)})};
om[M1]=[_.PP];var uT=function(){};
_.z(uT,K2);uT.prototype.resolveCommand=function(q){var Z,w;return _.V(function(r){Z=_.J(q,B2D);w=document.querySelector("mini-app-container-view-model");if(!Z||!w)return r.return();Z.isPlaying?w.dispatchEvent(new Event("play")):w.dispatchEvent(new Event("pause"));_.ub(r)})};var X3F=function(){this.dropdownMap=new Map};_.muq=new _.F$("DROPDOWN_CONTROLLER_TOKEN");var LJ=function(q){this.controller=q};
_.z(LJ,K2);LJ.prototype.resolveCommand=function(q){var Z=this,w,r,Y,C;return _.V(function(d){w=_.J(q,NF2);if(!w)return d.return();r=w;Y=r.dropdownId;C=r.selectedOptionIndex;if(Y===void 0||C===void 0)return d.return();var O=Z.controller.dropdownMap.get(Y);O&&O(C);_.ub(d)})};
LJ[M1]=[_.muq];var Sm=function(q){this.controller=q};
_.z(Sm,K2);Sm.prototype.resolveCommand=function(q){var Z=this,w;return _.V(function(r){return(w=_.J(q,tg7))?_.W(r,Z.controller.closeDialog(),0):r.return()})};
Sm[M1]=[_.Wa];var vS=function(q){this.controller=q};
_.z(vS,K2);vS.prototype.resolveCommand=function(q){var Z=this,w,r;return _.V(function(Y){w=_.J(q,qZ9);if(!w)return Y.return();var C,d=w.panelIdentifier||((C=w.identifier)==null?void 0:C.tag);if(!d)throw Error("yi");return(r=d)?_.W(Y,Z.controller.hidePanel(r),0):Y.jumpTo(0)})};
vS[M1]=[_.Of];var jm=function(q,Z){this.innertubeTransportService=q;this.controller=Z};
_.z(jm,K2);jm.prototype.resolveCommand=function(q){var Z=this,w,r,Y,C;return _.V(function(d){if(d.nextAddress==1)return w=_.J(q,ZkJ),(r=w)!=null&&r.panelId?_.W(d,Z.controller.getReloadContinuation(w.panelId),2):d.return();if(d.nextAddress!=3)return(Y=d.yieldResult)?_.W(d,_.zR(Z.innertubeTransportService,q,{continuation:Y}),3):d.return();C=d.yieldResult;return _.W(d,Z.controller.updatePanel(w.panelId,C.content,!1),0)})};
jm[M1]=[_.PP,_.Of];var td=function(q,Z,w){this.innertubeTransportService=q;this.JSC$15000_screenManager=Z;this.JSC$15000_commandHandler=w};
_.z(td,K2);
td.prototype.resolveCommand=function(q){var Z=this,w,r,Y,C,d,O;return _.V(function(H){if(H.nextAddress==1){w=_.J(q,_.Xt2);if(!w)return H.return();if(w.commands)for(r=_.P(w.commands),Y=r.next();!Y.done;Y=r.next())C=Y.value,Z.JSC$15000_commandHandler.resolveCommand(C,{disableClickTracking:!0});d=_.wa(q.clickTrackingParams);_.mG(Z.JSC$15000_screenManager,21760,d,{layer:7,parentLayer:0});return _.W(H,_.zR(Z.innertubeTransportService,q),2)}O=H.yieldResult;if(!O)return H.return();Z.JSC$15000_screenManager.graftServerVe(O.trackingParams,d,
7);_.ub(H)})};
td[M1]=[_.PP,_.wK,_.ps];var Rm=new _.F$("PANEL_LOADING_STRATEGY_TOKEN");var bT=function(q,Z){this.controller=q;this.panelLoadingStrategy=Z};
_.z(bT,K2);
bT.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C;return _.V(function(d){r=_.J(q,UkW);if((Y=r)==null||!Y.panelLoadingStrategy)return d.return();C=function(O){var H,L,S,v,R,B,n,x,K;return _.V(function(k){L=_.J((H=O.dialogViewModel)==null?void 0:H.header,lKW);S={viewModel:O.dialogViewModel};v={};if(n=_.b("web_enable_dialog_header_label")?(R=L)==null?void 0:(B=R.headline)==null?void 0:B.content:void 0)v.ariaLabel=n;r.dismissOnBackgroundTap===!1&&(v.isModal=!0);return O.dialogViewModel?_.W(k,
w.controller.openDialog(S,(x=Z)==null?void 0:(K=x.form)==null?void 0:K.element,v),0):k.return()})};
return _.W(d,w.panelLoadingStrategy.execute({command:q,data:r.panelLoadingStrategy,renderFn:C,createScreenConfig:{layer:4}}),0)})};
bT[M1]=[_.Wa,Rm];var Jd=function(q,Z,w){this.innertubeTransportService=q;this.controller=Z;this.JSC$15020_screenManager=w};
_.z(Jd,K2);
Jd.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C,d,O,H,L,S,v,R,B,n;return _.V(function(x){switch(x.nextAddress){case 1:r=_.J(q,_.zf);if(!r)return x.return();var K,k=r.panelIdentifier||((K=r.identifier)==null?void 0:K.tag);if(!k)throw Error("yi");Y=k;return _.W(x,w.controller.isVisible(Y,!0),2);case 2:if((C=x.yieldResult)&&r.blockIfPanelOpen)return x.return();H=(O=(d=w.controller).getPanelContent)==null?void 0:O.call(d,Y);if(!(K=H))if(r){var G;K=((G=r.globalConfiguration)==null?void 0:G.initialState)||
r.engagementPanel;if(G=!K)G=!!(r==null?0:(k=r.engagementPanelPresentationConfigs)==null?0:k.engagementPanelPopupPresentationConfig);G&&(K=_.CLj(r.panelIdentifier,r.identifier))}else K=void 0;L=K;S=r.engagementPanelPresentationConfigs;v=r.engagementPanelExtras;return _.W(x,w.controller.showPanel(Y,L,S,v,(R=Z)==null?void 0:(B=R.form)==null?void 0:B.element),3);case 3:if(!r.globalConfiguration){x.jumpTo(0);break}_.mG(w.JSC$15020_screenManager,32633);return _.W(x,_.zR(w.innertubeTransportService,q),5);
case 5:return n=x.yieldResult,w.JSC$15020_screenManager.graftServerVe(n.trackingParams),_.W(x,w.controller.updatePanel(Y,n.content,!0,v,void 0,n.updatePanelContinuationData),0)}})};
Jd[M1]=[_.PP,_.Of,_.wK];var zN=function(q,Z){this.controller=q;this.panelLoadingStrategy=Z};
_.z(zN,K2);zN.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C;return _.V(function(d){r=_.J(q,_.rp);if((Y=r)==null||!Y.panelLoadingStrategy)return d.return();C=function(O){var H,L;return _.V(function(S){return O.sheetViewModel?_.W(S,w.controller.openSheet({viewModel:O.sheetViewModel},(H=Z)==null?void 0:(L=H.form)==null?void 0:L.element),0):S.return()})};
return _.W(d,w.panelLoadingStrategy.execute({command:q,data:r.panelLoadingStrategy,renderFn:C,createScreenConfig:{layer:0}}),0)})};
zN[M1]=[_.Ha,Rm];var BS=function(q,Z){this.controller=q;this.JSC$15028_commandHandler=Z};
_.z(BS,K2);BS.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C;return _.V(function(d){if(d.nextAddress==1){r=_.J(q,$Im);var O=_.J(r.showCommand,_.zf),H,L,S=(L=O==null?void 0:O.panelIdentifier)!=null?L:O==null?void 0:(H=O.identifier)==null?void 0:H.tag;if(!S)throw Error("zi");Y=S;return _.W(d,w.controller.isVisible(Y),2)}return(C=d.yieldResult)?_.W(d,w.controller.hidePanel(Y),0):_.W(d,w.JSC$15028_commandHandler.resolveCommand(r.showCommand,Z),0)})};
BS[M1]=[_.Of,_.ps];var am=function(q,Z,w){this.innertubeTransportService=q;this.controller=Z;this.JSC$15031_screenManager=w};
_.z(am,K2);
am.prototype.resolveCommand=function(q){var Z=this,w,r,Y,C,d,O,H,L,S,v,R,B,n,x,K,k,G,rz,f,eO,g,H6;return _.V(function(nX){switch(nX.nextAddress){case 1:return r=w=_.J(q,efK),Y=r.targetPanelIdentifier,C=r.contentSourcePanelIdentifier,d=r.globalConfiguration,((O=Y)==null?0:O.tag)&&((H=C)==null?0:H.tag)?d?_.W(nX,Z.controller.showPanel(Y.tag,_.CLj(Y.tag,Y),void 0,void 0,void 0),5):_.W(nX,(R=(v=Z.controller).getPanel)==null?void 0:R.call(v,C.tag),4):nX.return();case 4:B=nX.yieldResult;L=(n=B)==null?void 0:
(K=(x=n).getPanelContent)==null?void 0:K.call(x);nX.jumpTo(3);break;case 5:return _.W(nX,_.zR(Z.innertubeTransportService,q),6);case 6:k=nX.yieldResult,((G=k)==null?0:G.trackingParams)&&Z.JSC$15031_screenManager.graftServerVe(k.trackingParams),L=(rz=k)==null?void 0:rz.content,S=(f=k)==null?void 0:f.updatePanelContinuationData;case 3:if(g=(eO=L)==null?void 0:eO.engagementPanelSectionListRenderer)return _.W(nX,Z.controller.showPanel(Y.tag,void 0,void 0,void 0,void 0,{content:g.content,secondaryHeaderContent:(H6=
g.header)!=null?H6:{},targetId:g.targetId},S),0);nX.jumpTo(0)}})};
am[M1]=[_.PP,_.Of,_.wK];var nJ=function(q,Z){this.JSC$15039_commandHandler=q;this.store=Z};
_.z(nJ,K2);nJ.prototype.resolveCommand=function(q){var Z=this,w,r,Y,C,d;return _.V(function(O){if(O.nextAddress==1)return(w=_.J(q,vDe))?_.W(O,_.mj(),2):O.return();r=O.yieldResult;if(!r)return O.return();VyO(r,Z.store,(Y=w)==null?void 0:Y.languageCode);C=r.isSubtitlesOn()?_.dT("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.dT("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");d=_.M9(C);Z.JSC$15039_commandHandler.resolveCommand(d);_.ub(O)})};
nJ[M1]=[_.ps,r1];var QO=function(q,Z){this.shortsPlayerPromise=q;this.JSC$15043_commandHandler=Z};
_.z(QO,K2);
QO.prototype.resolveCommand=function(q){var Z=this,w,r,Y,C,d,O,H,L;return _.V(function(S){if(S.nextAddress==1)return(w=_.J(q,UI1))?_.W(S,Z.shortsPlayerPromise,2):S.return();r=S.yieldResult;var v=Oxe(r);v!=null&&v.length||(r.loadModule("captions"),v=Oxe(r));Y=v;if((C=Y)==null||!C.length)return d=_.dT("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),O=_.M9(d),Z.JSC$15043_commandHandler.resolveCommand(O),S.return();r.toggleSubtitles();H=r.isSubtitlesOn()?_.dT("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.dT("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");L=_.M9(H);Z.JSC$15043_commandHandler.resolveCommand(L);_.ub(S)})};
QO[M1]=[_.Zt1,_.ps];var E$=function(q){this.JSC$15046_playerPromise=q};
_.z(E$,K2);E$.prototype.resolveCommand=function(q){var Z=this,w,r,Y,C;return _.V(function(d){if(d.nextAddress==1)return(w=_.J(q,r4g))?_.W(d,Z.JSC$15046_playerPromise,2):d.return();r=d.yieldResult;Y=r.getVideoData().video_id;w.videoId===Y&&(C=Number(w.offsetFromVideoStartMilliseconds),C>=0&&r.seekTo(C/1E3));_.ub(d)})};
E$[M1]=[_.F6];var AjZ=_.yG("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),xp=function(q){this.store=q};
_.z(xp,K2);
var fMl=function(q){var Z,w,r,Y;return _.V(function(C){if(C.nextAddress==1)return Z=_.zj("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,w=_.zj("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,r=Z||w,q.mainAppPlayer=new xN(r),_.W(C,q.mainAppPlayer.api,2);Y=C.yieldResult;Y.addEventListener("onStateChange",q.JSC$15050_playerStateChangeListener.bind(q));document.addEventListener("yt-page-data-updated",q.pauseOnNavigation.bind(q));window.addEventListener("state-navigatestart",
q.pauseOnNavigation.bind(q));_.ub(C)})};
xp.prototype.JSC$15050_playerStateChangeListener=function(q){switch(q){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"}DuD(this)};
var DuD=function(q){q.store.dispatch(_.wp("sfvAudioItemCurrentlyPlayingEntity",AjZ,{key:AjZ,externalVideoId:q.externalVideoId,sfvAudioItemPlaybackState:q.playbackState,nowPlayingEntityValue:q.nowPlayingEntityValue}))};
xp.prototype.pauseOnNavigation=function(){var q=this,Z,w,r,Y;return _.V(function(C){if(C.nextAddress==1){if(!q.mainAppPlayer){var d=new _.df("Error: mainAppPlayer is unavailable",q.mainAppPlayer);_.tY(d);return C.return()}return _.W(C,q.mainAppPlayer.api,2)}Z=C.yieldResult;r=(w=Z)==null?void 0:w.getPlayerState();r!==1||(Y=Z)!=null&&Y.pauseVideo();_.ub(C)})};
xp.prototype.playVideo=function(q,Z,w){var r=this,Y,C;return _.V(function(d){if(d.nextAddress==1)return _.W(d,(Y=r.mainAppPlayer)==null?void 0:Y.api,2);C=d.yieldResult;if(!r.mainAppPlayer||!C){var O=new _.df("Error: mainAppPlayer is unavailable",r.mainAppPlayer);_.tY(O);return d.return()}return _.W(d,r.mainAppPlayer.loadVideoWithPlayerVars({videoId:r.externalVideoId,audio_only:"1",start:q/1E3,end:q/1E3+Z,player_params:w}),0)})};
xp.prototype.pauseVideo=function(){var q=this,Z,w;return _.V(function(r){if(r.nextAddress==1){if(!q.mainAppPlayer){var Y=new _.df("Error: mainAppPlayer is unavailable",q.mainAppPlayer);_.tY(Y);return r.return()}return _.W(r,q.mainAppPlayer.api,2)}Z=r.yieldResult;(w=Z)==null||w.pauseVideo();_.ub(r)})};
xp.prototype.resolveCommand=function(q){var Z=this,w,r,Y,C,d,O,H,L,S,v,R,B,n,x,K,k,G,rz,f;return _.V(function(eO){if(eO.nextAddress==1)return w=_.J(q,Qxm),Y=(r=w)==null?void 0:r.nowPlayingEntityValue,d=(C=w)==null?void 0:C.externalVideoId,v=Number((S=(O=w)==null?void 0:(H=O.defaultStartPoints)==null?void 0:(L=H[0])==null?void 0:L.offsetMs)!=null?S:"0"),k=Number((K=(R=w)==null?void 0:(B=R.defaultStartPoints)==null?void 0:(n=B[0])==null?void 0:(x=n.duration)==null?void 0:x.seconds)!=null?K:"15"),f=
(rz=(G=w)==null?void 0:G.playerParams)!=null?rz:"",Y&&d?Z.mainAppPlayer?eO.jumpTo(2):_.W(eO,fMl(Z),2):eO.return();if(eO.nextAddress!=6){if(Z.nowPlayingEntityValue&&Y===Z.nowPlayingEntityValue)return Z.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.W(eO,Z.pauseVideo(),0):_.W(eO,Z.playVideo(v,k,f),0);Z.externalVideoId=d;Z.nowPlayingEntityValue=Y;Z.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.W(eO,Z.playVideo(v,k,f),6)}DuD(Z);return eO.jumpTo(0)})};
xp[M1]=[r1];var TN=function(q){this.JSC$15067_commandHandler=q};
_.z(TN,K2);TN.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C,d,O;return _.V(function(H){if(H.nextAddress==1)return(r=_.J(q,jWv))?_.W(H,_.mj(),2):H.return();Y=H.yieldResult;if(!Y)return H.return();(C=uB2(Y))?w.JSC$15067_commandHandler.resolveCommand(C,Z):(d=_.dT("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),O=_.M9(d),w.JSC$15067_commandHandler.resolveCommand(O));_.ub(H)})};
TN[M1]=[_.ps];var U$=function(q){this.JSC$15070_playerPromise=q};
_.z(U$,K2);U$.prototype.resolveCommand=function(q){var Z=this,w,r,Y,C,d;return _.V(function(O){if(O.nextAddress==1){w=_.J(q,YZe);if(!w)return O.return();r=w.overlayRenderer;return r?(Y=_.J(r,wEm))?_.W(O,Z.JSC$15070_playerPromise,3):O.jumpTo(0):O.return()}C=O.yieldResult;C.renderChapterSeekingAnimation(1,_.kO(Y.text),(d=Y.icon)==null?void 0:d.iconType);_.ub(O)})};
U$[M1]=[_.F6];var kp=function(q){this.store=q};
_.z(kp,K2);kp.prototype.resolveCommand=function(q){var Z=this,w,r,Y;return _.V(function(C){if(C.nextAddress==1){w=_.J(q,RnK);if(!w)return C.return();r="";(Y=Z.store.getState().collabInviteLink)&&w.id===Y.playlistId?r=Y.inviteLinkURL:w.shortUrl&&(r=w.shortUrl);return r?_.W(C,navigator.clipboard.writeText(r),3):C.jumpTo(0)}var d={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.dT("COPY_LINK_SUCCESS_TOAST")}}}}};_.t().resolve(_.ps).resolveCommand(d);_.ub(C)})};
kp[M1]=[rw];var KJ=function(q,Z){this.innertubeTransportService=q;this.JSC$15080_commandHandler=Z};
_.z(KJ,K2);KJ.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C,d,O,H,L,S,v,R;return _.V(function(B){if(B.nextAddress==1)return(r=_.J(q,_.JA))?_.W(B,_.zR(w.innertubeTransportService,q,(Y=Z)==null?void 0:Y.form),2):B.return();(C=B.yieldResult)&&C.errorMetadata&&(d=C,O=_.M9(d.error.message),w.JSC$15080_commandHandler.resolveCommand(O));H=C;if((L=H)==null?0:L.actions)for(S=_.P(H.actions),v=S.next();!v.done;v=S.next())R=v.value,w.JSC$15080_commandHandler.resolveCommand(R);_.ub(B)})};
KJ[M1]=[_.PP,_.ps];var s$=function(){};
_.z(s$,K2);s$.prototype.resolveCommand=function(q){var Z;return _.V(function(w){Z=_.J(q,u$W);if(!Z)return w.return();(new ms1(Z)).show();_.ub(w)})};_.Im=new _.F$("PLAYLIST_EDIT_CONTROLLER_TOKEN");var cS=function(q,Z,w,r){this.store=q;this.innertubeTransportService=Z;this.controller=w;this.JSC$15088_commandHandler=r};
_.z(cS,K2);
cS.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C,d,O,H,L,S,v,R,B,n,x,K,k,G,rz,f,eO,g,H6,nX,Qj,SO,Te,Ze;return _.V(function(W1){if(W1.nextAddress==1){r=_.J(q,_.SE);if(!r)return W1.return();if(r.clientActions){Y=_.P(r.clientActions);for(C=Y.next();!C.done;C=Y.next())d=C.value,w.JSC$15088_commandHandler.resolveCommand(d);var A2,f9=Z==null?void 0:(A2=Z.form)==null?void 0:A2.element;f9&&_.hy(f9,"yt-dismissible-item-action",r.clientActions)}return _.W(W1,_.zR(w.innertubeTransportService,q,(O=
Z)==null?void 0:O.form),2)}if(H=W1.yieldResult)H.errorMetadata?(L=H,S=_.M9(L.error.message),w.JSC$15088_commandHandler.resolveCommand(S),"error"in H&&((v=Z)==null?0:(R=v.commandController)==null?0:R.onServerError)&&((B=Z)==null||(n=B.commandController)==null||n.onServerError(q,H))):(x=Z)==null||(K=x.commandController)==null||(G=(k=K).onSuccess)==null||G.call(k,q,H);rz=H;((f=rz)==null?0:f.collaborationInviteLink)&&r.playlistId&&(_.b("web_enable_invite_collaborators_link")||_.b("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
w.store.dispatch(_.mu({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:r.playlistId,inviteLinkUrl:rz.collaborationInviteLink}}));((eO=rz)==null?0:eO.redirectEndpoint)&&w.JSC$15088_commandHandler.resolveCommand(rz.redirectEndpoint);((g=rz)==null?0:(H6=g.newHeader)==null?0:H6.playlistHeaderRenderer)?hTF(w.controller,rz.newHeader.playlistHeaderRenderer):((nX=rz)==null?0:(Qj=nX.newHeader)==null?0:Qj.musicEditablePlaylistDetailHeaderRenderer)&&hTF(w.controller,rz.newHeader.musicEditablePlaylistDetailHeaderRenderer);
w.controller.playlistVideoListElement&&((SO=rz)==null?0:(Te=SO.playlistEditResults)==null?0:(Ze=Te[0])==null?0:Ze.playlistEditVideoAddedResultData)&&((f9=w.controller.playlistVideoListElement)==null||f9.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:rz.playlistEditResults[0].playlistEditVideoAddedResultData})));_.ub(W1)})};
cS[M1]=[rw,_.PP,_.Im,_.ps];var MV=function(q,Z){this.controller=q;this.JSC$15098_commandHandler=Z};
_.z(MV,K2);MV.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C;return _.V(function(d){r=_.J(q,bGh);w.controller.showRefreshPill&&((Y=r)==null?0:Y.command)&&(w.JSC$15098_commandHandler.resolveCommand((C=r)==null?void 0:C.command,Z),w.controller.showRefreshPill=!1);_.ub(d)})};
MV[M1]=[_.QK,_.ps];var FM=function(q,Z){this.store=q;this.JSC$15102_commandHandler=Z||_.AJ.instance};
_.z(FM,K2);FM.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C,d,O,H,L,S,v,R;return _.V(function(B){r=_.J(q,stX);Y=w.store.getState().radioButtonGroup;if((C=r)==null?0:C.command)w.JSC$15102_commandHandler.resolveCommand((d=r)==null?void 0:d.command,Z);else if(((O=r)==null?void 0:O.formId)===Y.currentFormId)for(H=Object.values(Y.commandsMap),L=_.P(H),S=L.next();!S.done;S=L.next()){v=S.value;R=_.oQ(v);if(!R)return B.return();w.JSC$15102_commandHandler.resolveCommand(R,Z)}_.ub(B)})};
FM[M1]=[rw];var yj7=new _.F$("USER_PREFS");var NV=function(q){this.JSC$15106_prefCookie=q};
_.z(NV,K2);NV.prototype.resolveCommand=function(q){var Z=this,w,r;return _.V(function(Y){w=_.J(q,zn9);if(!w)return Y.return();r=!1;w.flagNum&&typeof w.value==="boolean"?(_.Wd(0,w.flagNum,w.value),r=!0):w.key&&typeof w.stringValue==="string"&&(Z.JSC$15106_prefCookie.set(w.key,w.stringValue),r=!0);r&&Z.JSC$15106_prefCookie.save();_.ub(Y)})};
NV[M1]=[yj7];var lT=new _.F$("PREF_STORAGE_PROMISE_TOKEN");var GN=function(q){this.JSC$15110_prefStoragePromise=q};
_.z(GN,K2);GN.prototype.resolveCommand=function(q){var Z=this,w,r;return _.V(function(Y){if(Y.nextAddress==1)return(w=_.J(q,agg))?_.W(Y,Z.JSC$15110_prefStoragePromise,2):Y.return();r=Y.yieldResult;return r===void 0||w.key===void 0||w.value===void 0?Y.return():_.W(Y,r.set(w.key,w.value),0)})};
GN[M1]=[lT];var iCb=function(q){this.innertubeTransportService=q};
_.z(iCb,K2);iCb.prototype.resolveCommand=function(q,Z){var w=this,r,Y;return _.V(function(C){(r=_.J(q,_.iHK))&&r&&r.isFirstRequest&&(_.bI("search_overview_answer"),_.JT("so_rq",void 0,"search_overview_answer"));return _.W(C,_.zR(w.innertubeTransportService,q,(Y=Z)==null?void 0:Y.form),0)})};
iCb[M1]=[_.PP];var gxl=function(){};
_.z(gxl,K2);
gxl.prototype.resolveCommand=function(q){var Z,w,r,Y,C,d,O,H,L;return _.V(function(S){Z=_.J(q,wtJ);if((w=Z)==null?0:w.sectionIdentifier){if(Z.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(Y=(r=document.getElementsByTagName(Z.sectionIdentifier))==null?void 0:r.item(0))Y.scrollIntoView({behavior:"smooth"}),(C=TaN(Y))&&C.focus({preventScroll:!0});return S.return()}d=document.querySelector("[section-identifier="+Z.sectionIdentifier+"]");O=document.querySelector("[section-identifier="+Z.referenceSectionIdentifier+
"]");if(!d)return S.return();H=Z.verticalScrollOffsetDp?Z.verticalScrollOffsetDp:0;O&&(H-=O.offsetTop);window.scrollTo({top:d.offsetTop+H,behavior:"smooth"});(L=TaN(d))&&L.focus({preventScroll:!0})}_.ub(S)})};var pJ=function(){};
_.z(pJ,K2);
pJ.prototype.resolveCommand=function(q){var Z,w,r,Y,C,d,O;return _.V(function(H){if(H.nextAddress==1){Z=_.J(q,jae);if(!Z||!Z.imageBytes||!navigator.clipboard)return H.return();if(Z.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.tY(Error("Ai")),H.return();_.d9(H,2);r=(w=Z)==null?void 0:w.imageBytes;Y=r.replace(/-/g,"+").replace(/_/g,"/");C=gm1(Y);d={};O=[new ClipboardItem((d[C.type]=C,d))];return _.W(H,navigator.clipboard.write(O),4)}if(H.nextAddress!=2)return _.QL(H,0);
_.o3(H);_.ub(H)})};var XM=function(q,Z){this.innertubeTransportService=q;this.JSC$15125_commandHandler=Z};
_.z(XM,K2);XM.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C,d,O;return _.V(function(H){if(H.nextAddress==1)return(r=_.J(q,t12))?_.W(H,_.zR(w.innertubeTransportService,q,(Y=Z)==null?void 0:Y.form),2):H.return();(C=H.yieldResult)&&C.errorMetadata&&r.onFailureCommand&&w.JSC$15125_commandHandler.resolveCommand(r.onFailureCommand);d=C;((O=d)==null?0:O.shareCommand)&&w.JSC$15125_commandHandler.resolveCommand(d.shareCommand,Z);_.ub(H)})};
XM[M1]=[_.PP,_.ps];var mC=function(){};
_.z(mC,K2);mC.prototype.resolveCommand=function(){return _.V(function(q){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.ub(q)})};var Ad=function(q){this.JSC$15132_navigationConfirmationService=q};
_.z(Ad,K2);Ad.prototype.resolveCommand=function(){var q=this;return _.V(function(Z){q.JSC$15132_navigationConfirmationService.cancelPendingNavigation();_.ub(Z)})};
Ad[M1]=[gm];var fJ=function(q){this.JSC$15135_screenManager=q};
_.z(fJ,K2);fJ.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C,d,O,H,L;return _.V(function(S){Y=(r=Z.form)==null?void 0:r.event;d=(C=Z.form)==null?void 0:C.element;if(!Y)throw new _.df("Event not passed in when resolving command");O=_.P(Y.composedPath());for(H=O.next();!H.done;H=O.next())if(L=H.value,L.tagName==="YT-COPY-LINK-RENDERER")return L.copyUrlToClipboard(),d&&_.Rk(w.JSC$15135_screenManager,d),S.return();_.ub(S)})};
fJ[M1]=[_.wK];var D6=function(){this.JSC$15139_miniAppClientDataProvider=_.t().resolve(_.zt)};
_.z(D6,K2);D6.prototype.resolveCommand=function(){var q=this,Z,w;return _.V(function(r){if(q.JSC$15139_miniAppClientDataProvider.clientData.has("video_id")){var Y=q.JSC$15139_miniAppClientDataProvider,C=Y.clientData.get("video_id");C&&Y.clientData.delete("video_id");Z="https://youtube.com/watch?v="+C;w=nA(Z);if(w===void 0)throw Error("Bi`"+Z);_.NK(window,w)}_.ub(r)})};var hd=function(){};
_.z(hd,K2);hd.prototype.resolveCommand=function(){return _.V(function(q){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.ub(q)})};var yO=function(){};
_.z(yO,K2);yO.prototype.resolveCommand=function(){var q;return _.V(function(Z){if(Z.nextAddress==1)return _.W(Z,_.$B2(window.document.documentElement),2);(q=document.querySelector("mini-app-container-view-model iframe"))&&q.focus();_.ub(Z)})};var iT=function(q){this.JSC$15146_navigationConfirmationService=q};
_.z(iT,K2);
iT.prototype.resolveCommand=function(){var q=this;return _.V(function(Z){var w=q.JSC$15146_navigationConfirmationService,r=_.t().resolve(_.fq),Y;if(((Y=w.navigateParams)==null?void 0:Y.data)!==void 0){var C;_.HED(r,w.navigateParams.endpoint,w.navigateParams.data,(C=w.navigateParams.navigationType)!=null?C:1,w.navigateParams.tempData,w.navigateParams.isMiniplayer,void 0,!0);w.navigateParams=void 0;w.customConfirmationCommand=void 0}else w.navigateParams&&(r.navigate(w.navigateParams.endpoint,w.navigateParams.reload,
w.navigateParams.params,w.navigateParams.tempData,w.navigateParams.requestType,w.navigateParams.createScreenConfig,!0),w.navigateParams=void 0,w.customConfirmationCommand=void 0);_.ub(Z)})};
iT[M1]=[gm];var gw=function(){};
_.z(gw,K2);gw.prototype.resolveCommand=function(){return _.V(function(q){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.ub(q)})};var qG=function(q){this.JSC$15151_prefStorage=q};
_.z(qG,K2);qG.prototype.resolveCommand=function(){var q=this,Z,w;return _.V(function(r){switch(r.nextAddress){case 1:return _.W(r,q.JSC$15151_prefStorage,2);case 2:return(Z=r.yieldResult)?_.W(r,Z.set("sfvle",!1),3):r.return();case 3:return _.W(r,Z.set("sfvles",!0),4);case 4:w=_.Hd(),_.Wd(0,203,!1),_.Wd(0,204,!0),w.save(),_.ub(r)}})};
qG[M1]=[lT];var ZE=function(q){this.JSC$15154_prefStorage=q};
_.z(ZE,K2);ZE.prototype.resolveCommand=function(){var q=this,Z,w;return _.V(function(r){switch(r.nextAddress){case 1:return _.W(r,q.JSC$15154_prefStorage,2);case 2:return(Z=r.yieldResult)?_.W(r,Z.set("sfvle",!0),3):r.return();case 3:return _.W(r,Z.set("sfvles",!0),4);case 4:w=_.Hd(),_.Wd(0,203,!0),_.Wd(0,204,!0),w.save(),_.ub(r)}})};
ZE[M1]=[lT];var wV=function(){};
_.z(wV,K2);wV.prototype.resolveCommand=function(q){var Z;return _.V(function(w){Z=_.J(q,Bkp);if(!Z||typeof Z.key!=="string"||typeof Z.value!=="string")return w.return();window.localStorage.setItem(Z.key,Z.value);_.ub(w)})};var rV=function(q){this.store=q};
_.z(rV,K2);rV.prototype.resolveCommand=function(q){var Z=this,w;return _.V(function(r){w=_.J(q,Y_z);if(!w||!w.stepId||!w.token)return r.return();Z.store.dispatch(rO7({stepId:w.stepId,token:w.token,isSelected:!1}));_.ub(r)})};
rV[M1]=[rw];var YG=function(q,Z,w){this.innertubeTransportService=q;this.store=Z;this.JSC$15165_screenManager=w};
_.z(YG,K2);
YG.prototype.resolveCommand=function(q){var Z=this,w,r,Y,C,d,O,H,L,S,v,R,B,n,x,K,k,G,rz,f,eO,g,H6,nX;return _.V(function(Qj){w=_.J(q,T_h);if(!w||(r=w.stepIds)==null||!r.length)return Qj.return();Y=Z.store.getState().talkToRecs;C=[];d=[];O=_.P(w.stepIds);for(H=O.next();!H.done;H=O.next())for(L=H.value,S=void 0,(v=(S=Y.stepStates[L])==null?void 0:S.userQuery)&&d.push({userQuery:v.userQuery,userQueryToken:v.token}),R=void 0,B=(R=Y.stepStates[L])==null?void 0:R.selectionStates,n=_.P(Object.entries(B)),x=
n.next();!x.done;x=n.next())K=x.value,k=_.P(K),G=k.next().value,rz=k.next().value,f=G,eO=rz,eO.isSelected&&C.push(f);g={selectedChipTokens:C,userQueries:d,submittedStepIds:w.stepIds};H6={browseTalk2recsFormData:g};w.browseEndpoint?(nX=q,_.da(nX,_.qZ,w.browseEndpoint)):w.command&&(nX=w.command);return nX?_.W(Qj,_.zR(Z.innertubeTransportService,nX,{formData:H6,disableCache:!0}).then(function(SO){(SO==null?0:SO.trackingParams)&&Z.JSC$15165_screenManager.graftServerVe(SO==null?void 0:SO.trackingParams)}),
0):Qj.return()})};
YG[M1]=[_.PP,rw,_.wK];var $G=function(q){this.store=q};
_.z($G,K2);$G.prototype.resolveCommand=function(q){var Z=this,w;return _.V(function(r){w=_.J(q,rs2);if(!w||!w.stepId||!w.token)return r.return();Z.store.dispatch(rO7({stepId:w.stepId,token:w.token,isSelected:!0}));_.ub(r)})};
$G[M1]=[rw];var eB=function(q){this.store=q};
_.z(eB,K2);eB.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C,d,O;return _.V(function(H){r=_.J(q,UC9);if(!r||!r.stepId||!r.userQueryToken)return H.return();O=(d=(Y=Z)==null?void 0:(C=Y.form)==null?void 0:C.userQuery)!=null?d:"";w.store.dispatch(_.mu({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:r.stepId,userQueryToken:r.userQueryToken,userQuery:O}}));_.ub(H)})};
eB[M1]=[rw];_.qJ8=new _.F$("TIMELY_ACTIONS_CONTROLLER_TOKEN");var CF=function(q){this.controller=q};
_.z(CF,K2);CF.prototype.resolveCommand=function(q){var Z=this,w,r,Y,C;return _.V(function(d){w=_.J(q,gDX);if(!w)return d.return();r=w;Y=r.id;C=r.isVisible;if(Y===void 0||C===void 0)return d.return();var O;(O=Z.controller.timelyActionsMap.get(Y))==null||O(Y,C);_.ub(d)})};
CF[M1]=[_.qJ8];var Zhl=function(){this.timelyActionsMap=new Map};var Pu=function(q){this.JSC$15192_commandHandler=q};
_.z(Pu,K2);Pu.prototype.resolveCommand=function(q){var Z=this,w,r,Y,C,d;return _.V(function(O){w=_.J(q,_.eU2);if(!w)return O.return();C=(r=w.item)==null?void 0:(Y=r.notificationTextRenderer)==null?void 0:Y.successResponseText;if(!C)return O.return();d=_.cX(C);Z.JSC$15192_commandHandler.resolveCommand(d);_.ub(O)})};
Pu[M1]=[_.ps];var dV=function(q,Z){this.innertubeTransportService=q;this.JSC$15197_playerApiPromise=Z};
_.z(dV,K2);
dV.prototype.resolveCommand=function(q){var Z=this,w,r,Y,C,d,O,H,L,S;return _.V(function(v){if(v.nextAddress==1)return _.W(v,Z.JSC$15197_playerApiPromise,2);w=v.yieldResult;r=w.getOption("captions","track");Y=Object.assign({},_.J(q,_.A3D));(d=(C=w.getVideoData())==null?void 0:C.video_id)?Y.externalVideoId=d:_.xT(Error("Ci"));if((O=r)==null?0:O.languageCode)Y.languageCode=r.languageCode;if((H=r)==null?0:H.kind)Y.kind=r.kind;if((L=r)==null?0:L.name)Y.name=r.name;S=Object.assign({},q,{getTranscriptEndpoint:Y});return _.W(v,
_.zR(Z.innertubeTransportService,S),0)})};
dV[M1]=[_.PP,_.F6];var Vc=function(){};
_.z(Vc,K2);Vc.prototype.resolveCommand=function(q){var Z,w,r,Y,C,d,O,H;return _.V(function(L){Z=_.J(q,Kn9);if((w=Z)==null||!w.paramKeyValuePairs)return L.return();r=window.location.href;Y=_.P(Z.paramKeyValuePairs);for(C=Y.next();!C.done;C=Y.next())d=C.value,d.key&&d.value&&(O={},r=_.sq(r,(O[d.key]=d.value,O)));H=_.t().resolve(_.FkD);H.replaceUrl(r);_.ub(L)})};var O9=function(q,Z){this.JSC$15204_commandHandler=q;this.innertubeTransportService=Z};
_.z(O9,K2);
O9.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C,d,O,H,L,S,v,R,B,n,x,K,k,G,rz;return _.V(function(f){switch(f.nextAddress){case 1:return(C=(r=Z)==null?void 0:(Y=r.form)==null?void 0:Y.element)&&_.cQ(C),d=_.Hd().get("hl"),O="",_.d9(f,2),_.W(f,jKT(d),4);case 4:O=f.yieldResult;_.QL(f,3);break;case 2:return _.o3(f),C&&_.Ml(C),_.tY(Error("Ei"),"ERROR"),f.return();case 3:H=_.J(q,dnv);if(!H)return C&&_.Ml(C),f.return();(v=(L=H.commerceActionConfig)==null?void 0:(S=L.commandLifeCycleConfig)==null?
void 0:S.onStartCommand)&&w.JSC$15204_commandHandler.resolveCommand(v);return _.W(f,_.zR(w.innertubeTransportService,q,{client_data:{paymentsClientToken:{token:O}}}),5);case 5:(R=f.yieldResult)?(C&&_.Ml(C),((K=R)==null?0:K.command)&&w.JSC$15204_commandHandler.resolveCommand(R.command),(rz=(k=H.commerceActionConfig)==null?void 0:(G=k.commandLifeCycleConfig)==null?void 0:G.onSuccessCommand)&&w.JSC$15204_commandHandler.resolveCommand(rz)):(C&&_.Ml(C),_.tY(Error("Fi")),(x=(B=H.commerceActionConfig)==
null?void 0:(n=B.commandLifeCycleConfig)==null?void 0:n.onFailureCommand)&&w.JSC$15204_commandHandler.resolveCommand(x)),_.ub(f)}})};
O9[M1]=[_.ps,_.PP];var Hu=function(q,Z,w){this.store=q;this.JSC$15220_commandHandler=Z;this.innertubeTransportService=w};
_.z(Hu,K2);
Hu.prototype.resolveCommand=function(q,Z){var w=this,r,Y,C,d,O,H,L,S,v;return _.V(function(R){r=_.J(q,V_g);Y=r.googlePaymentPayload;r.onStartCommand&&w.JSC$15220_commandHandler.resolveCommand(r.onStartCommand);C=Y.encryptedPurchaseParams;d=Y.ypcLogWalletAnalyticDataEndpoint;O=r.serializedTransactionFlowLoggingParams;H=Y.serializedPaymentsClientParams;L=r.ypcCujContext;v=bxI(w.innertubeTransportService,(S=Z)==null?void 0:S.form,C,d,O,H,L);return R.return(v.then(function(B){ty1(Z==null?void 0:Z.form,
!1);var n=w.store,x=w.JSC$15220_commandHandler,K=B.integratorData;K==null||K===""||B.error!=null?(String(B.error)==="-1"&&r.onDismissCommand?x.resolveCommand(r.onDismissCommand):String(B.error)!=="-1"&&r.onFailureCommand&&x.resolveCommand(r.onFailureCommand),String(B.error)!=="-1"&&String(B.error)!=="132"&&_.tY(Error("Gi"),"ERROR")):(r.googlePaymentEntityKey&&n.dispatch(_.wp("commerceAcquisitionClientPayloadEntity",r.googlePaymentEntityKey,{key:r.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:K,
fundsGuaranteeCallbackClientData:B.integratorClientCallbackData}}})),r.onSuccessCommand&&x.resolveCommand(r.onSuccessCommand));_.YK()},function(B){ty1(Z==null?void 0:Z.form,!1);
_.tY(B,"ERROR");r.onFailureCommand&&w.JSC$15220_commandHandler.resolveCommand(r.onFailureCommand)}))})};
Hu[M1]=[r1,_.ps,_.PP];var Wu=function(q,Z){this.JSC$15224_commandHandler=q;this.purchaseManager=Z};
_.z(Wu,K2);
Wu.prototype.resolveCommand=function(q){var Z=this,w,r,Y,C,d,O,H,L,S;return _.V(function(v){w=_.J(q,OK9);((r=w)==null?0:(Y=r.commandLifeCycleConfig)==null?0:Y.onStartCommand)&&Z.JSC$15224_commandHandler.resolveCommand(w.commandLifeCycleConfig.onStartCommand);if(!((C=w)==null?0:(d=C.googlePaymentPurchaseManagerPayload)==null?0:d.securePayloadBytes))return _.tY(Error("Hi"),"ERROR"),v.return();O=DZh(_.q7(w.googlePaymentPurchaseManagerPayload.securePayloadBytes));H=_.Hd().get("hl");L=_.Be();VhV(O.serialize(),
H,function(R){L.resolve(R)},function(R){L.reject(R)},L.resolve);
S=L.promise;return v.return(S.then(function(R){if(R)if(R==null?0:R.errorCode){_.tY(Error("Ii`"+R.errorCode),"ERROR");var B,n;((B=w)==null?0:(n=B.commandLifeCycleConfig)==null?0:n.onFailureCommand)&&Z.JSC$15224_commandHandler.resolveCommand(w.commandLifeCycleConfig.onFailureCommand)}else if(R==null?0:R.isCancelled){var x,K;((x=w)==null?0:(K=x.commandLifeCycleConfig)==null?0:K.onCancelCommand)&&Z.JSC$15224_commandHandler.resolveCommand(w.commandLifeCycleConfig.onCancelCommand)}else{var k,G;((k=w)==
null?0:(G=k.commandLifeCycleConfig)==null?0:G.onSuccessCommand)&&Z.JSC$15224_commandHandler.resolveCommand(w.commandLifeCycleConfig.onSuccessCommand)}},function(R){_.tY(R,"ERROR");
var B,n;((B=w)==null?0:(n=B.commandLifeCycleConfig)==null?0:n.onFailureCommand)&&Z.JSC$15224_commandHandler.resolveCommand(w.commandLifeCycleConfig.onFailureCommand)}))})};
Wu[M1]=[_.ps,OCZ];var wGl=function(q,Z){this.JSC$15232_commandHandler=q;this.commandAllowlistOverride=Z;var w;this.commandAllowlist=(w=this.commandAllowlistOverride)!=null?w:ak};
wGl.prototype.handleResponse=function(q,Z,w){var r,Y=Z==null?void 0:(r=Z.config)==null?void 0:r.command;if(!Y||this.commandAllowlist.some(function(C){return!!_.J(Y,C)})){Z=void 0;
w!==void 0&&(Z={form:{element:w}});q.onResponseReceivedCommand&&this.JSC$15232_commandHandler.resolveCommand(q.onResponseReceivedCommand,Z);q.onResponseReceivedAction&&this.JSC$15232_commandHandler.resolveCommand(q.onResponseReceivedAction,Z);q.onResponseReceivedEndpoint&&this.JSC$15232_commandHandler.resolveCommand(q.onResponseReceivedEndpoint,Z);q.command&&this.JSC$15232_commandHandler.resolveCommand(q.command,Z);if(q.onResponseReceivedCommands)for(w=_.P(q.onResponseReceivedCommands),r=w.next();!r.done;r=
w.next())this.JSC$15232_commandHandler.resolveCommand(r.value,Z);if(q.onResponseReceivedActions)for(w=_.P(q.onResponseReceivedActions),r=w.next();!r.done;r=w.next())this.JSC$15232_commandHandler.resolveCommand(r.value,Z);if(q.onResponseReceivedEndpoints)for(w=_.P(q.onResponseReceivedEndpoints),r=w.next();!r.done;r=w.next())this.JSC$15232_commandHandler.resolveCommand(r.value,Z);if(q.actions)for(q=_.P(q.actions),w=q.next();!w.done;w=q.next())this.JSC$15232_commandHandler.resolveCommand(w.value,Z)}};
wGl[M1]=[_.ps,_.Gj(biO)];var r1b=new _.F$("INNERTUBE_TOKEN_SERVICE");var YJu=new _.F$("SCHEDULER_TOKEN");var $by=function(q){this.scheduler=q;q={};this.tokenMap=(q.app={},q.user={},q)};
$by.prototype.handleResponse=function(q,Z){if(!Z)throw Error("Ji");var w;if(q=(w=q.responseContext)==null?void 0:w.innertubeTokenJar){if(q.appTokens){var r,Y,C;w=(r=Z.innerTubeRequest.context)==null?void 0:(Y=r.request)==null?void 0:(C=Y.innertubeTokenJar)==null?void 0:C.appTokens;eOb(this,q.appTokens,this.tokenMap.app,w)}if(q.userTokens){var d,O,H;Z=(d=Z.innerTubeRequest.context)==null?void 0:(O=d.request)==null?void 0:(H=O.innertubeTokenJar)==null?void 0:H.userTokens;eOb(this,q.userTokens,this.tokenMap.user,
Z)}}};
$by.prototype.processContext=function(q){q.request||(q.request={});var Z=Object.keys(this.tokenMap.app).length,w=Object.keys(this.tokenMap.user).length;if(Z||w)q.request.innertubeTokenJar={},Z&&(q.request.innertubeTokenJar.appTokens=[].concat(_.Ju(Object.values(this.tokenMap.app).flat()))),w&&(q.request.innertubeTokenJar.userTokens=[].concat(_.Ju(Object.values(this.tokenMap.user).flat())))};
var eOb=function(q,Z,w,r){Z=_.P(Z);for(var Y=Z.next(),C={};!Y.done;C={token$jscomp$137:void 0},Y=Z.next()){C.token$jscomp$137=Y.value;if(C.token$jscomp$137.type===void 0)throw new _.df("InnerTube token has no type",C.token$jscomp$137);if(C.token$jscomp$137.clearTokens)w[C.token$jscomp$137.type]=[];else if(C.token$jscomp$137.value!==void 0){w[C.token$jscomp$137.type]||(w[C.token$jscomp$137.type]=[]);if(r!==void 0&&r.length){Y=_.P(r);for(var d=Y.next(),O={};!d.done;O={requestToken:void 0},d=Y.next())O.requestToken=
d.value,d=w[C.token$jscomp$137.type].findIndex(function(H){return function(L){return L===H.requestToken||(0,_.R4.equals)(L,H.requestToken)}}(O)),d>-1&&w[C.token$jscomp$137.type].splice(d,1)}w[C.token$jscomp$137.type].push(C.token$jscomp$137);
C.token$jscomp$137.maxAgeSeconds&&Number(C.token$jscomp$137.maxAgeSeconds)>0&&q.scheduler.addLowPriorityJob(function(H){return function(){var L=w[H.token$jscomp$137.type].indexOf(H.token$jscomp$137);L>-1&&w[H.token$jscomp$137.type].splice(L,1)}}(C),Number(C.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.df("InnerTube token has no value",C.token$jscomp$137);
}};
$by[M1]=[YJu];var C6V=new _.F$("LOCAL_INNERTUBE_ROUTER_TOKEN"),P6F=new _.F$("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var of=function(q){this.serviceMap=q};
of.prototype.shouldPreferLocalResponse=function(q,Z){return(q=dbF(this,q))?q.shouldPreferLocalResponse(Z):!1};
of.prototype.localInnertubeResponse=function(q,Z){var w=this,r;return _.V(function(Y){return(r=dbF(w,q))?Y.return(r.localInnertubeResponse(Z)):Y.return(Promise.reject(Error("Ki")))})};
of.prototype.canProvideFallbackResponse=function(q,Z){return(q=dbF(this,q))?q.canProvideFallbackResponse(Z):!1};
of.prototype.localFallbackInnertubeResponse=function(q,Z){var w=this,r;return _.V(function(Y){return(r=dbF(w,q))?Y.return(r.localFallbackInnertubeResponse(Z)):Y.return(Promise.reject(Error("Ki")))})};
var dbF=function(q,Z){Z=_.gA(Z);return Z?(q=q.serviceMap[Z])?q:null:null};
of[M1]=[P6F];var Ld=function(){};
Ld.prototype.shouldPreferLocalResponse=function(){return!1};
Ld.prototype.localInnertubeResponse=function(){return _.V(function(q){return q.return(Promise.reject(Error("Li")))})};
Ld.prototype.canProvideFallbackResponse=function(){return!0};
Ld.prototype.localFallbackInnertubeResponse=function(){var q,Z,w;return _.V(function(r){q=LP("CLOSE_POPUP");Z={openPopupAction:zuN()};w={actions:[q,Z]};return r.return(w)})};var fs2=function(q,Z){this.JSC$15282_upliftPromise=q;this.store=Z};
_.e=fs2.prototype;_.e.shouldPreferLocalResponse=function(q){var Z=q.videoId,w;if(w=Z)w=Gg8(this.store.getState().entities,q.videoId);return w&&pZ2(this.store.getState().entities,Z)?aDO(this.store.getState().entities,q.playlistId):!1};
_.e.localInnertubeResponse=function(q){var Z=this,w;return _.V(function(r){return(w=Z.getPlayerResponse(q))?r.return(Promise.resolve(w)):r.return(Promise.reject(Error("Mi")))})};
_.e.canProvideFallbackResponse=function(q){return!!q.videoId};
_.e.localFallbackInnertubeResponse=function(q){var Z=this,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,Z.JSC$15282_upliftPromise,2);w=Z.getPlayerResponse(q);var Y;w?Y=r.return(Promise.resolve(w)):Y=OE(Z.store.getState().entities,q.videoId)?r.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.G7(_.dT("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:QH9()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
r.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.G7(_.dT("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:n31()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return Y})};
_.e.getPlayerResponse=function(q){return LM2(this.store.getState().entities,q.videoId)};var ui=function(q,Z){this.localPlayerService=q;this.localWatchNextService=Z};
ui.prototype.shouldPreferLocalResponse=function(q){var Z=q.playerRequest;q=q.watchNextRequest;return!!(Z&&this.localPlayerService.shouldPreferLocalResponse(Z)&&q&&this.localWatchNextService.shouldPreferLocalResponse(q))};
ui.prototype.localInnertubeResponse=function(q){var Z=this,w,r,Y,C;return _.V(function(d){if(d.nextAddress==1){w=q.playerRequest;r=q.watchNextRequest;if(!w||!r)throw new _.df("Missing streaming request",q);return _.W(d,Z.localPlayerService.localInnertubeResponse(w),2)}if(d.nextAddress!=3)return Y=d.yieldResult,_.W(d,Z.localWatchNextService.localInnertubeResponse(r),3);C=d.yieldResult;return d.return({playerResponse:Y,watchNextResponse:C})})};
ui.prototype.canProvideFallbackResponse=function(q){var Z=q.playerRequest;q=q.watchNextRequest;return!!(Z&&this.localPlayerService.canProvideFallbackResponse(Z)&&q&&this.localWatchNextService.canProvideFallbackResponse(q))};
ui.prototype.localFallbackInnertubeResponse=function(q){var Z=this,w,r,Y,C;return _.V(function(d){if(d.nextAddress==1)return w=q.playerRequest,r=q.watchNextRequest,w&&r?_.W(d,Z.localPlayerService.localFallbackInnertubeResponse(w),2):d.return(Promise.reject(new _.df("Missing streaming request",q)));if(d.nextAddress!=3)return Y=d.yieldResult,_.W(d,Z.localWatchNextService.localFallbackInnertubeResponse(r),3);C=d.yieldResult;return d.return({playerResponse:Y,watchNextResponse:C})})};var On=function(q){this.JSC$15292_persistentStorePromiseAccessor=q};
On.prototype.shouldPreferLocalResponse=function(){return!1};
On.prototype.localInnertubeResponse=function(){return _.V(function(q){return q.return(Promise.reject(Error("Ni")))})};
On.prototype.canProvideFallbackResponse=function(){return!0};
On.prototype.localFallbackInnertubeResponse=function(){var q=this,Z,w;return _.V(function(r){return r.nextAddress==1?_.W(r,q.JSC$15292_persistentStorePromiseAccessor(),2):r.nextAddress!=3?(Z=r.yieldResult)?_.W(r,Z.get("service:guide:fallback"),3):r.return(Promise.reject(Error("Oi"))):(w=r.yieldResult)&&_.Zb(w)?r.return(neI(_.Zb(w))):r.return(Promise.reject(Error("Pi")))})};var Sl=function(){};
Sl.prototype.shouldPreferLocalResponse=function(){return!1};
Sl.prototype.localInnertubeResponse=function(){return _.V(function(q){return q.return(Promise.reject(Error("Qi")))})};
Sl.prototype.canProvideFallbackResponse=function(){return!0};
Sl.prototype.localFallbackInnertubeResponse=function(){var q,Z,w;return _.V(function(r){q=LP("CLOSE_POPUP");Z={openPopupAction:zuN()};w={actions:[q,Z]};return r.return(w)})};var VU=function(){this.urlMap=VC8;this.fallbackCommand=_.ZK};
VU.prototype.shouldPreferLocalResponse=function(q){return(q=q.url)?!!Ohb(this,q):!1};
VU.prototype.localInnertubeResponse=function(q){var Z=this,w;return _.V(function(r){return(w=q.url)?r.return(Hh6(q,Ohb(Z,w))):r.return(Promise.reject(Error("Ri")))})};
VU.prototype.canProvideFallbackResponse=function(){return!0};
VU.prototype.localFallbackInnertubeResponse=function(q){var Z=this,w,r,Y,C,d,O,H;return _.V(function(L){w=q.url;if(!w)return L.return(Hh6(q,Z.fallbackCommand));if(r=Ohb(Z,w))return L.return(Hh6(q,r));Y=void 0;C=_.gA(w);C==="/watch"&&(d=_.xi(w,"v"))&&(H=(O=_.xi(w,"list"))!=null?O:void 0,Y=_.lI(d,H));Y||(Y=Z.fallbackCommand);return L.return(Hh6(q,Y))})};
var Ohb=function(q,Z){if(Z)return q.urlMap[_.UP(Z)]},Hh6=function(q,Z){Z&&q.parentTrackingParams&&(Z.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:q.parentTrackingParams}},Z.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:Z})};var HH=function(q,Z,w){this.JSC$15302_upliftPromise=q;this.store=Z;this.JSC$15302_persistentStorePromiseAccessor=w};
HH.prototype.shouldPreferLocalResponse=function(){return!1};
HH.prototype.localInnertubeResponse=function(){return _.V(function(q){return q.return(Promise.reject(Error("Si")))})};
HH.prototype.canProvideFallbackResponse=function(){return!0};
HH.prototype.localFallbackInnertubeResponse=function(){var q=this;return _.V(function(Z){return Z.return(Wtb(q))})};
var Wtb=function(q){var Z,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,qd(q.JSC$15302_upliftPromise,q.store),2);Z=r.yieldResult;w={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[By2(Z)]}}}};return r.return(oiC(q,w))})},oiC=function(q,Z){var w,r;
return _.V(function(Y){if(Y.nextAddress==1)return _.W(Y,q.JSC$15302_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3)return w=Y.yieldResult,_.W(Y,w1(w),3);r=Y.yieldResult;return Y.return({responseContext:{},contents:Z,topbar:r})})};var PH=function(q,Z,w){this.JSC$15309_upliftPromise=q;this.store=Z;this.JSC$15309_persistentStorePromiseAccessor=w};
PH.prototype.shouldPreferLocalResponse=function(q){var Z=q.videoId;return Z&&Gg8(this.store.getState().entities,Z)&&pZ2(this.store.getState().entities,Z)?aDO(this.store.getState().entities,q.playlistId):!1};
PH.prototype.localInnertubeResponse=function(q){var Z=this,w,r;return _.V(function(Y){if(Y.nextAddress==1)return(w=q.videoId)?_.W(Y,Z.JSC$15309_upliftPromise,2):Y.return(Promise.reject(Error("Ti")));if(Y.nextAddress!=3)return _.W(Y,usF(Z,q,w),3);r=Y.yieldResult;return Y.return(Lt6(Z,r,w))})};
PH.prototype.canProvideFallbackResponse=function(q){return q.videoId?!0:!1};
PH.prototype.localFallbackInnertubeResponse=function(q){var Z=this,w,r,Y,C;return _.V(function(d){switch(d.nextAddress){case 1:return(w=q.videoId)?_.W(d,Z.JSC$15309_upliftPromise,2):d.return(Promise.reject(Error("Ti")));case 2:return _.W(d,usF(Z,q,w),3);case 3:r=d.yieldResult;if(OE(Z.store.getState().entities,w)){d.jumpTo(4);break}return _.W(d,qd(Z.JSC$15309_upliftPromise,Z.store),5);case 5:return Y=d.yieldResult,d.return(SJy(r,Y));case 4:return Gg8(Z.store.getState().entities,w)&&pZ2(Z.store.getState().entities,
w)?d.return(Lt6(Z,r,w)):(C={title:_.G7(_.dT("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:QH9()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},d.return(SJy(r,C)))}})};
var usF=function(q,Z,w){var r,Y,C,d,O;return _.V(function(H){if(H.nextAddress==1)return r=Z.playlistId,Y=_.lI(w,r),_.W(H,q.JSC$15309_persistentStorePromiseAccessor(),2);if(H.nextAddress!=3)return C=H.yieldResult,_.W(H,w1(C),3);d=H.yieldResult;O={responseContext:{},currentVideoEndpoint:Y,topbar:d};return H.return(O)})},Lt6=function(q,Z,w){if(q=OE(q.store.getState().entities,w)){var r;
w=q.videoEntity;var Y,C={title:pR(w.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Xm((r=w.localizedStrings)==null?void 0:r.viewCount),viewCount:_.Xm((Y=w.localizedStrings)==null?void 0:Y.viewCount)}}};w.publishedTimestampMillis&&(C.dateText=_.Xm(YYz(new Date(Number(w.publishedTimestampMillis)))));r={videoPrimaryInfoRenderer:C};Y=q.videoEntity;q=q.channelEntity;q={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:pR(_.dT("SHOW_MORE",void 0,"Show more")),
showLessText:pR(_.dT("SHOW_LESS",void 0,"Show less")),description:Y.formattedDescription,owner:{videoOwnerRenderer:{title:pR(q.title),thumbnail:q.avatar}}}};Z.contents={twoColumnWatchNextResults:{results:{results:{contents:[r,q]}}}}}return Z},SJy=function(q,Z){q.contents={singleColumnWatchNextResults:{results:{results:{contents:[By2(Z)]}}}};
return q};var WH=function(q,Z,w){this.JSC$15315_upliftPromise=q;this.store=Z;this.JSC$15315_persistentStorePromiseAccessor=w};
WH.prototype.shouldPreferLocalResponse=function(){return!1};
WH.prototype.localInnertubeResponse=function(){return _.V(function(q){return q.return(Promise.reject(Error("Ui")))})};
WH.prototype.canProvideFallbackResponse=function(){return!0};
WH.prototype.localFallbackInnertubeResponse=function(){var q=this,Z,w,r,Y;return _.V(function(C){switch(C.nextAddress){case 1:return _.W(C,q.JSC$15315_persistentStorePromiseAccessor(),2);case 2:return Z=C.yieldResult,_.W(C,w1(Z),3);case 3:return w=C.yieldResult,r={responseContext:{},topbar:w},_.W(C,q.JSC$15315_upliftPromise,4);case 4:return _.W(C,qd(q.JSC$15315_upliftPromise,q.store),5);case 5:return Y=C.yieldResult,r.watchStatus={backgroundPromoRenderer:Y},C.return(r)}})};var vib=new _.F$("ENDPOINT_MAP");var j1c=function(){var q=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return q.sequenceMap}}},H1h=function(q,Z,w){var r,Y=(r=Z.config)==null?void 0:r.sequenceStrategy;
if(!Y)return w();q.sequenceMap.has(Y.sequenceKey)||q.sequenceMap.set(Y.sequenceKey,[]);q=q.sequenceMap.get(Y.sequenceKey);switch(Y.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return tCD(q,Z,w);case "REQUEST_SEQUENCE_TYPE_REPLACE":return ROl(q,Z,w);default:throw new _.df("Request could not be sequenced",Z);}},tCD=function(q,Z,w){var r,Y,C;
return _.V(function(d){q.length>0?(Y=q[q.length-1],r=Y.responsePromise.then(function(){return w()})):r=w();
C={request:Z,responsePromise:r};q.push(C);bhl(q,C);return d.return(C.responsePromise)})},ROl=function(q,Z,w){w=w();
if(q.length>0)for(var r=_.P(q),Y=r.next();!Y.done;Y=r.next())Y.value.responsePromise=w;var C={request:Z,responsePromise:w};q.push(C);bhl(q,C);return Promise.resolve().then(function(){return q.indexOf(C)>0?C.responsePromise.then(function(d){return Object.assign({},d,{sequenceMetaData:{skipProcessing:!0}})}):C.responsePromise})},bhl=function(q,Z){Z.responsePromise.then(function(){var w=q.indexOf(Z);
w>-1&&q.splice(w,1)})};var J1y=new _.F$("REQUEST_SEQUENCING");var ur=function(){};
_.z(ur,o2);ur.prototype.getApiPaths=function(){return[]};
ur.prototype.getExtension=function(q){return _.J(q,iI9)};
ur.prototype.JSC$11762_buildRequest=function(q,Z){q.recaptchaToken=Z.recaptchaToken};
ur.prototype.getApiUrl=function(){return"/das_captcha"};var LF=function(){};
_.z(LF,o2);LF.prototype.getApiPaths=function(){return PPe};
LF.prototype.getExtension=function(q){return _.J(q,aSm)};
LF.prototype.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;Z.createBackstagePostParams&&(q.createBackstagePostParams=Z.createBackstagePostParams);w.comment_text&&(q.commentText=w.comment_text);if(w.attached_video_id)q.videoAttachment={videoId:w.attached_video_id};else if(w.image_poll_options)q.pollAttachmentData={options:w.image_poll_options};else if(w.poll_options)q.pollAttachment={choices:w.poll_options};else if(w.quiz_options)q.quizAttachmentData={options:w.quiz_options};else if(w.image_blob_id)q.imageAttachment=
{encryptedBlobId:w.image_blob_id},w.source_video_id&&(q.imageAttachment.sourceExternalVideoId=w.source_video_id),w.image_preview_coordinates&&(q.imageAttachment.previewCoordinates=JSON.parse(w.image_preview_coordinates));else if(w.images_data)q.imagesAttachment={imagesData:w.images_data};else if(w.clip_external_video_id!==void 0||w.clip_offset_ms!==void 0||w.clip_duration_ms!==void 0){var r,Y,C,d,O;q.clipAttachment={externalVideoId:(C=w.clip_external_video_id)!=null?C:"",offsetMs:(d=(r=w.clip_offset_ms)==
null?void 0:r.toString())!=null?d:"",durationMs:(O=(Y=w.clip_duration_ms)==null?void 0:Y.toString())!=null?O:""}}else w.shared_post_id&&(q.sharedPostAttachment={postId:w.shared_post_id});w.tagged_video_id&&(q.postCreationData={taggedVideoId:w.tagged_video_id});w.access_restrictions&&(typeof w.access_restrictions==="number"&&(Z=w.access_restrictions,q.accessRestrictions={restriction:Z!==1&&Z===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof w.access_restrictions==="string"&&
(q.accessRestrictionsParams=w.access_restrictions));w.scheduled_publish_time_sec&&(q.scheduledPublishTimeSec=w.scheduled_publish_time_sec.toString())};var SB=function(){};
_.z(SB,o2);SB.prototype.getApiPaths=function(){return uXJ};
SB.prototype.getExtension=function(q){return _.J(q,a12)};
SB.prototype.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;Z.decorateMessageParams&&(q.params=Z.decorateMessageParams);w.text&&(q.text=w.text)};var vu=function(){};
_.z(vu,o2);vu.prototype.getApiPaths=function(){return s2p};
vu.prototype.getExtension=function(q){return _.J(q,n2p)};
vu.prototype.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;w.video_id&&(q.videoId=w.video_id)};var jB=function(){};
_.z(jB,o2);jB.prototype.getApiPaths=function(){return lhW};
jB.prototype.getExtension=function(q){return _.J(q,_.CR)};
jB.prototype.JSC$11762_buildRequest=function(q,Z,w){w.suggestions_query&&(q.input=w.suggestions_query)};var tM=function(){};
_.z(tM,o2);tM.prototype.getApiPaths=function(){return tAh};
tM.prototype.getExtension=function(q){return _.J(q,Qn7)};
tM.prototype.JSC$11762_buildRequest=function(q,Z,w){w.comment_text!==void 0&&(q.commentText=w.comment_text);w.scheduled_publish_time_sec&&(q.scheduledPublishTimeSec=w.scheduled_publish_time_sec.toString());q.updateBackstagePostParams=Z.updateBackstagePostParams};var Rf=function(){};
_.z(Rf,o2);Rf.prototype.getApiPaths=function(){return Xa};
Rf.prototype.getExtension=function(q){return _.J(q,_.L6)};
Rf.prototype.JSC$11762_buildRequest=function(q,Z,w){w.formData&&(q.formData=w.formData);Z.token?q.continuation=Z.token:Z.continuationTokenKey&&(w=_.sE().getState(),Z=_.iI(w.entities,"continuationTokenEntity",Z.continuationTokenKey))&&(q.continuation=String(Z.continuationToken))};
var zO6=function(){};
_.z(zO6,o2);_.e=zO6.prototype;_.e.getApiPaths=function(){return Xa};
_.e.getExtension=function(q){return _.J(q,_.qZ)};
_.e.isNavigationCommand=function(){return!0};
_.e.JSC$11769_getStoreKey=function(q){if((q=this.getExtension(q))&&q.browseId){var Z={browseId:q.browseId};q.browseEndpointContextSupportedConfigs&&(Z.browseEndpointContextSupportedConfigs=JSON.stringify(q.browseEndpointContextSupportedConfigs));q.params&&(Z.params=q.params);q.query&&(Z.query=q.query);return _.Is("browse",Z)}};
_.e.JSC$11762_buildRequest=function(q,Z,w){Z.browseId&&(q.browseId=Z.browseId);Z.params&&(q.params=Z.params);Z.query&&(q.query=Z.query);w.formData?q.formData=w.formData:Z.formData&&(q.formData=Z.formData);Z.browseId==="FEsubscriptions"&&_.Hd().getFlag(155)&&(q.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");Z.browseId==="SPaccount_playback"&&(w=_.Hd(),q.formData||(q.formData={}),q.formData.accountSettingsFormData={flagCaptionsDefaultOff:w.getFlag(65),flagAutoCaptionsDefaultOn:w.getFlag(66),
flagDisableInlinePreview:w.getFlag(186),flagAudioDescriptionDefaultOn:w.getFlag(198)});if(Z.browseId==="FEwhat_to_watch"){w=_.Hd();var r=w.getFlag(196);w.getFlag(197)&&(q.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:r}}})}Z.browseId==="FEwhat_to_watch"&&(Z=_.Hd().getFlag(186),q.inlineSettingStatus=Z?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.e.getRequestConfig=function(q,Z){Z=Z===void 0?{}:Z;var w={};if(q=this.JSC$11769_getStoreKey(q,Z))w.storeStrategy={storeKey:q,disableCache:Z.disableCache};_.b("web_log_browse_ticks_ks")||(w.requestTick="br_s",w.responseTick="br_r");return w};var br=function(){};
_.z(br,o2);br.prototype.getApiPaths=function(){return wv7};
br.prototype.getExtension=function(q){return _.J(q,pWm)};
br.prototype.JSC$11762_buildRequest=function(q,Z,w){q.legacyYoutubeChannelUsername=w.legacyYouTubeChannelUsername||"";q.legacyYoutubeChannelPassword=w.legacyYouTubeChannelPassword||""};var JM=function(){};
_.z(JM,o2);JM.prototype.getApiPaths=function(){return VAv};
JM.prototype.getExtension=function(q){return _.J(q,ISg)};
JM.prototype.JSC$11762_buildRequest=function(q,Z,w){w.recaptcha_response_token&&(q.recaptchaResponseToken=w.recaptcha_response_token);w.channel_id&&(q.channelId=w.channel_id)};var z6=function(){};
_.z(z6,o2);z6.prototype.getApiPaths=function(){return RG2};
z6.prototype.getExtension=function(q){return _.J(q,GM9)};
z6.prototype.JSC$11762_buildRequest=function(q,Z,w){Z.externalChannelId&&(q.externalChannelId=Z.externalChannelId);w.handle&&(q.handleUpdate={handle:w.handle},Z.handleEditSource&&(q.handleUpdate.handleEditSource=Z.handleEditSource))};var Bu=function(){};
_.z(Bu,o2);Bu.prototype.getApiPaths=function(){return BmD};
Bu.prototype.getExtension=function(q){return _.J(q,r31)};
Bu.prototype.JSC$11762_buildRequest=function(q,Z,w){Z.request&&(q.channelId=Z.request.channelId);var r;if(w==null?0:(r=w.uploadDefaults)==null?0:r.emojiReactionSet)q.uploadDefaultsRequest||(q.uploadDefaultsRequest={}),q.uploadDefaultsRequest.emojiReactionSet=w.uploadDefaults.emojiReactionSet};var af=function(){};
_.z(af,o2);af.prototype.getApiPaths=function(){return Qy2};
af.prototype.getExtension=function(q){return _.J(q,cqX)};
af.prototype.JSC$11762_buildRequest=function(q,Z,w){Z.externalChannelId&&(q.externalChannelId=Z.externalChannelId);Z.channelHandleEntityKey&&(q.channelHandleEntityKey=Z.channelHandleEntityKey);Z.handleEditSource&&(q.handleEditSource=Z.handleEditSource);w.handle?q.handle=w.handle:w.name&&(q.name=w.name)};var nF=function(){};
_.z(nF,o2);nF.prototype.getApiPaths=function(){return $We};
nF.prototype.getExtension=function(q){return _.J(q,bG)};
nF.prototype.JSC$11762_buildRequest=function(q,Z){Z.actions?q.actions=Z.actions:Z.action&&(q.actions=[Z.action])};var Qc=function(){};
_.z(Qc,o2);Qc.prototype.getApiPaths=function(){return e67};
Qc.prototype.getExtension=function(q){return _.J(q,_.L6)};
Qc.prototype.JSC$11762_buildRequest=function(q,Z){Z.token&&(q.continuation=Z.token)};var E9=function(){};
_.z(E9,o2);E9.prototype.getApiPaths=function(){return kUK};
E9.prototype.getExtension=function(q){return _.J(q,_.L6)};
E9.prototype.JSC$11762_buildRequest=function(q,Z){q.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";Z.token&&(q.fetchCommentsParams={continuation:Z.token})};var xG=function(){};
_.z(xG,o2);xG.prototype.getApiPaths=function(){return OZD};
xG.prototype.getExtension=function(q){return _.J(q,$kJ)};
xG.prototype.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;Z.createReplyParams&&(q.createReplyParams=Z.createReplyParams);Z.commentText&&(q.commentText=_.kO(Z.commentText));w.comment_text&&(q.commentText=w.comment_text);w.image_blob_id&&(q.imageAttachment={encryptedBlobId:w.image_blob_id});w.botguard_response&&(q.botguardResponse=w.botguard_response)};
_.My.Object.defineProperties(xG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var T6=function(){};
_.z(T6,o2);T6.prototype.getApiPaths=function(){return HZ7};
T6.prototype.getExtension=function(q){return _.J(q,_.YKD)};
T6.prototype.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;Z.createCommentParams&&(q.createCommentParams=Z.createCommentParams);Z.commentText&&(q.commentText=_.kO(Z.commentText));Z.videoPositionMention&&(q.videoPositionMention=Z.videoPositionMention);Z.sources&&(q.sources=Z.sources);w.comment_text&&(q.commentText=w.comment_text);w.attached_video_id?q.videoAttachment={videoId:w.attached_video_id}:w.poll_options?q.pollAttachment={choices:w.poll_options}:w.image_blob_id?q.imageAttachment=
{encryptedBlobId:w.image_blob_id}:w.shared_post_id&&(q.sharedPostAttachment={postId:w.shared_post_id});w.access_restrictions&&typeof w.access_restrictions==="number"&&(Z=w.access_restrictions,q.accessRestrictions={restriction:Z!==1&&Z===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});w.botguard_response&&(q.botguardResponse=w.botguard_response)};
_.My.Object.defineProperties(T6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var U9=function(){};
_.z(U9,o2);U9.prototype.getApiPaths=function(){return bOh};
U9.prototype.getExtension=function(q){return _.J(q,C8J)};
U9.prototype.JSC$11762_buildRequest=function(q,Z,w){Z.commentText&&(q.replyText=_.kO(Z.commentText));w.comment_text&&(q.replyText=w.comment_text);q.updateReplyParams=Z.updateReplyParams};
_.My.Object.defineProperties(U9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kG=function(){};
_.z(kG,o2);kG.prototype.getApiPaths=function(){return J_g};
kG.prototype.getExtension=function(q){return _.J(q,ep1)};
kG.prototype.JSC$11762_buildRequest=function(q,Z,w){Z.commentText&&(q.commentText=_.kO(Z.commentText));w.comment_text&&(q.commentText=w.comment_text);q.updateCommentParams=Z.updateCommentParams};
_.My.Object.defineProperties(kG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var KF=function(){};
_.z(KF,o2);KF.prototype.getApiPaths=function(){return zG1};
KF.prototype.getExtension=function(q){return _.J(q,g2D)};
KF.prototype.JSC$11762_buildRequest=function(q,Z){Z.settings&&(q.settings=Z.settings)};var s9=function(){};
_.z(s9,o2);s9.prototype.getApiPaths=function(){return ahg};
s9.prototype.getExtension=function(q){return _.J(q,M3X)};
s9.prototype.JSC$11762_buildRequest=function(q,Z){Z.channelCreationToken&&(q.channelCreationToken=Z.channelCreationToken);Z.source&&(q.source=Z.source)};var If=function(){};
_.z(If,o2);If.prototype.getApiPaths=function(){return VLm};
If.prototype.getExtension=function(q){return _.J(q,lSK)};
If.prototype.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;if(w.name&&(w.given_name||w.family_name))q=new _.df("channel creation cannot set both GAIA and YouTube names",Z),_.tY(q);else{if(Z.zeroStepChannelCreationParams){if(!w.comment_text){q=new _.df("zero_step_create_comment_params but no zero_step_texts",Z);_.tY(q);return}q.zeroStepChannelCreationParams=Z.zeroStepChannelCreationParams;q.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(q.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
w.comment_text,w.botguard_response&&(q.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=w.botguard_response))}q.channelCreationToken=Z.channelCreationToken;w.given_name&&(q.givenName=w.given_name);w.family_name&&(q.familyName=w.family_name);Z.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(q.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(w.name||w.handle||w.avatar_url||w.encryptedBlobId||w.isNameChanged!==void 0||w.isHandleChanged!==void 0||w.isDefaultProfilePhoto!==
void 0||w.obakeImageSource)q.overrideChannelCreationParams={},w.name&&(q.overrideChannelCreationParams.name=w.name),w.handle&&(q.overrideChannelCreationParams.handle=w.handle),w.avatar_url&&(q.overrideChannelCreationParams.avatarUrl=w.avatar_url),w.encryptedBlobId&&(q.overrideChannelCreationParams.blobEncryptionId=w.encryptedBlobId),w.enableIdentityForAllChannelCreationDialog&&(w.encryptedBlobId?q.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
w.isDefaultProfilePhoto!==void 0&&(q.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=w.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),w.isNameChanged!==void 0&&(q.overrideChannelCreationParams.identityForAllChannelCreationNameTag=w.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),w.isHandleChanged!==
void 0&&(q.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=w.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),w.obakeImageSource&&(q.overrideChannelCreationParams.obakeImageSourceType=w.obakeImageSource))}};var cu=function(){};
_.z(cu,o2);cu.prototype.getApiPaths=function(q){return(q=this.getExtension(q))&&q.status==="DISLIKE"?j21:q&&q.status==="INDIFFERENT"?$tm:AC2};
cu.prototype.getExtension=function(q){return _.J(q,_.Ig)};
cu.prototype.JSC$11762_buildRequest=function(q,Z){Z.target&&(q.target=Z.target);if(Z=this.getParams(Z))q.params=Z};
cu.prototype.getParams=function(q){switch(q==null?void 0:q.status){case "DISLIKE":return q.dislikeParams;case "INDIFFERENT":return q.removeLikeParams;default:return q==null?void 0:q.likeParams}};var MG=function(){};
_.z(MG,o2);MG.prototype.getApiPaths=function(){return uYX};
MG.prototype.getExtension=function(q){return _.J(q,WM1)};
MG.prototype.JSC$11762_buildRequest=function(q,Z){Z.settingItemId&&(q.settingItemId=Z.settingItemId);Z.stringValue!=null&&Z.stringValue!==void 0?q.newValue={stringValue:Z.stringValue}:Z.intValue?q.newValue={intValue:Z.intValue}:Z.boolValue!==null&&Z.boolValue!==void 0?q.newValue={boolValue:Z.boolValue}:(q=new _.df("Unknown value type for SetSettingEndpoint.",Z),_.tY(q))};var Fh=function(){};
_.z(Fh,o2);Fh.prototype.getApiPaths=function(){return SW7};
Fh.prototype.getExtension=function(q){return _.J(q,xk9)||void 0};
Fh.prototype.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;Z.channelIds&&(q.channelIds=Z.channelIds);Z.siloName&&(q.siloName=Z.siloName);Z.params&&(q.params=Z.params);w.botguardResponse&&(q.botguardResponse=w.botguardResponse);w.feature&&(q.clientFeature=w.feature)};
_.My.Object.defineProperties(Fh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var NG=function(){};
_.z(NG,o2);NG.prototype.getApiPaths=function(){return jyJ};
NG.prototype.getExtension=function(q){return _.J(q,oCg)||void 0};
NG.prototype.JSC$11762_buildRequest=function(q,Z){Z.channelIds&&(q.channelIds=Z.channelIds);Z.siloName&&(q.siloName=Z.siloName);Z.params&&(q.params=Z.params)};
_.My.Object.defineProperties(NG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var lr=function(q){this.shareClientParamsProvider=q};
_.z(lr,o2);lr.prototype.getApiPaths=function(){return cCv};
lr.prototype.getExtension=function(q){return _.J(q,ptg)||_.J(q,_.Xt2)||_.J(q,Gv2)};
lr.prototype.JSC$11762_buildRequest=function(q,Z){Z.serializedShareEntity&&(q.serializedSharedEntity=Z.serializedShareEntity);if(Z.clientParamIdentifier){var w;if((w=this.shareClientParamsProvider)==null?0:w.clientParams.has(Z.clientParamIdentifier)){w=this.shareClientParamsProvider;Z=Z.clientParamIdentifier;var r=w.clientParams.get(Z);r&&w.clientParams.delete(Z);q.clientParams=r}}};
lr[M1]=[lF7];var G6=function(){};
_.z(G6,o2);G6.prototype.getApiPaths=function(){return gb2};
G6.prototype.getExtension=function(q){return _.J(q,qiX)};
G6.prototype.JSC$11762_buildRequest=function(q,Z){Z.params&&(q.params=Z.params)};var pF=function(){};
_.z(pF,o2);pF.prototype.getApiPaths=function(){return tLX};
pF.prototype.getExtension=function(q){return _.J(q,y3W)};
pF.prototype.JSC$11762_buildRequest=function(q,Z){Z.dismissal&&(q.items=[Z.dismissal])};
_.My.Object.defineProperties(pF.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Xh=function(){};
_.z(Xh,o2);Xh.prototype.getApiPaths=function(){return Xvm};
Xh.prototype.getExtension=function(q){return _.J(q,_.BH)||void 0};
Xh.prototype.JSC$11762_buildRequest=function(q,Z,w){q.feedbackTokens=[];Z.feedbackToken&&q.feedbackTokens.push(Z.feedbackToken);if(Z=Z.cpn||w.cpn)q.feedbackContext={cpn:Z};q.isFeedbackTokenUnencrypted=!!w.is_feedback_token_unencrypted;q.shouldMerge=!1;w.extra_feedback_tokens&&(q.shouldMerge=!0,q.feedbackTokens=q.feedbackTokens.concat(w.extra_feedback_tokens))};
_.My.Object.defineProperties(Xh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mp=function(){};
_.z(mp,o2);mp.prototype.getApiPaths=function(){return Xvm};
mp.prototype.getExtension=function(q){return _.J(q,_.CR)};
mp.prototype.JSC$11762_buildRequest=function(q,Z,w){w.feedback_tokens&&(q.feedbackTokens=w.feedback_tokens,q.shouldMerge=!0)};
_.My.Object.defineProperties(mp.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var AM=function(){};
_.z(AM,o2);AM.prototype.getApiPaths=function(){return Xvm};
AM.prototype.getExtension=function(q){return _.J(q,$az)};
AM.prototype.JSC$11762_buildRequest=function(q,Z){Z.undoToken&&(q.feedbackTokens=[Z.undoToken]);Z.isUndoTokenUnencrypted&&(q.isFeedbackTokenUnencrypted=Z.isUndoTokenUnencrypted)};
_.My.Object.defineProperties(AM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fF=function(){};
_.z(fF,o2);fF.prototype.getApiPaths=function(){return ENX};
fF.prototype.getExtension=function(q){return _.J(q,fg1)};
fF.prototype.JSC$11762_buildRequest=function(q,Z){Z.nextEndpoint&&_.J(Z.nextEndpoint,_.TF)?q.nextEndpoint={urlEndpoint:_.J(Z.nextEndpoint,_.TF)}:Z.nextEndpoint&&_.J(Z.nextEndpoint,_.ck)&&(q.nextEndpoint={watchEndpoint:_.J(Z.nextEndpoint,_.ck)});Z.setRacy&&(q.setRacy=Z.setRacy);Z.setControvercy&&(q.setControvercy=Z.setControvercy)};var DE=function(q){this.JSC$15497_storeWithEntities=q};
_.z(DE,o2);DE.prototype.getApiPaths=function(){return bZp};
DE.prototype.getExtension=function(q){return _.J(q,vnm)};
DE.prototype.JSC$11762_buildRequest=function(q,Z){Z.flowId&&(q.flowId=Z.flowId);Z.targetId&&(q.targetId=Z.targetId);Z.continuation&&(q.continuation=Z.continuation);var w=Z.flowStateEntityKey;if(Z.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&w&&this.JSC$15497_storeWithEntities){var r;if(Z=(r=this.JSC$15497_storeWithEntities.getState())==null?void 0:r.entities)if(r=_.fR(w).entityType,r=_.iI(Z,r,w))q.flowState=r,q.flowStateEntityKey=w}};
_.My.Object.defineProperties(DE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
DE[M1]=[r1];var BXl=function(){};
_.z(BXl,o2);_.e=BXl.prototype;_.e.getApiPaths=function(){return pv7};
_.e.JSC$11769_getStoreKey=function(){return _.Is("guide")};
_.e.getRequestConfig=function(){var q=this.JSC$11769_getStoreKey(),Z;q&&(Z={storeStrategy:{storeKey:q}});return Z};
_.e.isNavigationCommand=function(){return!0};
_.e.getExtension=function(q){return _.J(q,_.CR)};
_.e.JSC$11762_buildRequest=function(q){q.fetchLiveState=!0};var hM=function(){};
_.z(hM,o2);hM.prototype.getApiPaths=function(){return rCv};
hM.prototype.getExtension=function(q){return _.J(q,Zqv)};
hM.prototype.JSC$11762_buildRequest=function(){};var yc=function(){};
_.z(yc,o2);yc.prototype.getApiPaths=function(){return YtW};
yc.prototype.getExtension=function(q){return _.J(q,wV1)};
yc.prototype.JSC$11762_buildRequest=function(){};var ir=function(){};
_.z(ir,o2);ir.prototype.getApiPaths=function(){return iK2};
ir.prototype.getExtension=function(q){return _.J(q,_.L6)};
ir.prototype.JSC$11762_buildRequest=function(q,Z){Z.token&&(q.continuation=Z.token);var w,r;q==null||(w=q.context)==null||(r=w.user)==null||delete r.onBehalfOfUser};
ir.prototype.getRequestConfig=function(q){var Z={},w;if(((w=this.getExtension(q))==null?void 0:w.sessionIndex)!==void 0){var r;Z={authStrategy:{sessionIndex:(r=this.getExtension(q))==null?void 0:r.sessionIndex}}}return Z};var gV=function(){};
_.z(gV,o2);gV.prototype.JSC$11762_getRequest=function(q){var Z=this.getExtension(q),w=q="";if(Z==null?0:Z.popup)q="true";if(Z==null?0:Z.disableSignout)w="true";Z={};return{input:"/getAccountSwitcherEndpoint",requestShell:sP("/getAccountSwitcherEndpoint","GET",(Z["X-YouTube-Delegation-Context"]=_.zj("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),Z["X-YouTube-Account-Switcher-Popup"]=q,Z["X-YouTube-Account-Switcher-Disable-Signout"]=w,Z)),innerTubeRequest:{}}};
gV.prototype.getApiPaths=function(){return[]};
gV.prototype.getExtension=function(q){return _.J(q,_.vfX)};
gV.prototype.JSC$11762_buildRequest=function(){};var qg=function(){};
_.z(qg,o2);qg.prototype.JSC$11762_getRequest=function(q){var Z="/cross_account_channel_transfer";(q=this.getExtension(q))&&(Z=oKj(Z,{target_session:q.targetSessionIndex,source_rapt:q.sourceRapt,rapt:q.targetRapt}));return{input:Z,requestShell:sP(Z,"GET"),innerTubeRequest:{}}};
qg.prototype.getApiPaths=function(){return[]};
qg.prototype.getExtension=function(q){return _.J(q,YT2)};
qg.prototype.JSC$11762_buildRequest=function(){};var Zz=function(){};
_.z(Zz,o2);Zz.prototype.getApiPaths=function(){return JC7};
Zz.prototype.isNavigationCommand=function(){return!0};
Zz.prototype.getExtension=function(q){return _.J(q,_.CR)};
Zz.prototype.JSC$11762_buildRequest=function(q){var Z=_.Hd().get("gsml","");Z&&(q.safetyModeLockerObfuscatedGaiaId=Z);q.userInterfaceTheme=_.RJ(!0);_.bq()?q.deviceTheme="DEVICE_THEME_SELECTED":_.xO2()?q.deviceTheme="DEVICE_THEME_SUPPORTED":q.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var wU=function(){};
_.z(wU,o2);wU.prototype.getApiPaths=function(){return iK2};
wU.prototype.getExtension=function(q){return _.J(q,$CK)};
wU.prototype.JSC$11762_buildRequest=function(q,Z){if(Z&&Z.requestType&&(q.requestType=Z.requestType,Z.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||Z.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var w=Z.nextUrl;w&&(_.LuT(w)||NR(w))&&(q.nextNavendpoint={urlEndpoint:{url:w}})}Z&&Z.channelSwitcherQuery&&(q.channelSwitcherQuery=Z.channelSwitcherQuery);Z&&Z.triggerChannelCreation&&(q.triggerChannelCreation=Z.triggerChannelCreation);var r;if(Z==null?0:(r=Z.contentOwnerConfig)==
null?0:r.externalContentOwnerId)q.contentOwnerConfig=Z.contentOwnerConfig;q.callCircumstance=Z&&Z.requestType&&Z.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var Y,C;Z=q==null?void 0:(Y=q.context)==null?void 0:(C=Y.user)==null?void 0:C.onBehalfOfUser;if(Z!==void 0){q.obfuscatedSelectedGaiaId=Z;var d,O;q==null||(d=q.context)==null||(O=d.user)==null||delete O.onBehalfOfUser}var H,L;if(Y=q==null?void 0:(H=q.context)==null?void 0:(L=H.user)==null?
void 0:L.serializedDelegationContext)q.selectedSerializedDelegationContext=Y};var rU=function(){};
_.z(rU,o2);rU.prototype.getApiPaths=function(){return Ihv};
rU.prototype.getExtension=function(q){return _.J(q,qTv)};
rU.prototype.JSC$11762_buildRequest=function(q,Z){Z.profileOwnerExternalChannelId&&(q.profileOwnerExternalChannelId=Z.profileOwnerExternalChannelId);Z.profileCardContext&&(q.profileCardContext=Z.profileCardContext)};var Yf=function(){};
_.z(Yf,o2);Yf.prototype.getApiPaths=function(){return qtJ};
Yf.prototype.getExtension=function(q){return _.J(q,mIJ)};
Yf.prototype.JSC$11762_buildRequest=function(q,Z){Z.params&&(q.params=Z.params)};var $f=function(){};
_.z($f,o2);$f.prototype.getApiPaths=function(){return dWm};
$f.prototype.getExtension=function(q){return _.J(q,_.e3W)};
$f.prototype.JSC$11762_buildRequest=function(q,Z){if(Z=Z.createBroadcastRequest)q.useMasks=Z.useMasks,q.broadcastType=Z.broadcastType,q.broadcastSource=Z.broadcastSource,q.broadcastMetadata=Z.broadcastMetadata,q.broadcastMetadataMask=Z.broadcastMetadataMask,q.videoMetadata=Z.videoMetadata,q.videoMetadataMask=Z.videoMetadataMask,q.liveChatSettingsUpdate=Z.liveChatSettingsUpdate,q.liveChatSettingsUpdateMask=Z.liveChatSettingsUpdateMask,q.cloneVideoId=Z.cloneVideoId,q.cloneWithOverrides=Z.cloneWithOverrides,
q.targetEntity=Z.targetEntity,q.scheduledRedirectMetadata=Z.scheduledRedirectMetadata};var en=function(){};
_.z(en,o2);en.prototype.getApiPaths=function(){return Wr7};
en.prototype.getExtension=function(q){return _.J(q,CBv)};
en.prototype.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;Z.params&&(q.params=Z.params);w.questionText&&(q.questionText=w.questionText);w.optionText&&w.optionText.length>0&&(q.optionText=w.optionText)};var Ci=function(){};
_.z(Ci,o2);Ci.prototype.getApiPaths=function(){return Lre};
Ci.prototype.getExtension=function(q){return _.J(q,$BK)};
Ci.prototype.JSC$11762_buildRequest=function(q,Z){Z.params&&(q.params=Z.params)};var PM=function(){};
_.z(PM,o2);PM.prototype.getApiPaths=function(){return Q2K};
PM.prototype.getExtension=function(q){return _.J(q,ZDm)};
PM.prototype.JSC$11762_buildRequest=function(q,Z){Z.params&&(q.params=Z.params)};var dU=function(){};
_.z(dU,o2);dU.prototype.getApiPaths=function(){return xW7};
dU.prototype.getExtension=function(q){return _.J(q,wRm)};
dU.prototype.JSC$11762_buildRequest=function(q,Z,w){Z.params&&(q.params=Z.params);Z.continuation&&(q.continuation=Z.continuation);w.currentPlayerState&&w.currentPlayerState.playerOffsetMs&&(q.currentPlayerState={playerOffsetMs:w.currentPlayerState.playerOffsetMs.toString()})};var VF=function(){};
_.z(VF,o2);VF.prototype.getApiPaths=function(){return TKp};
VF.prototype.getExtension=function(q){return _.J(q,qmD)};
VF.prototype.JSC$11762_buildRequest=function(q,Z,w){Z.params&&(q.params=Z.params);w.continuation&&(q.continuation=w.continuation);"hidden"in w&&(q.webClientInfo={isDocumentHidden:w.hidden});w.isInvalidationTimeoutRequest&&(q.isInvalidationTimeoutRequest=w.isInvalidationTimeoutRequest);w.invalidationPayload&&(Z=gn1(_.q7(lO(w.invalidationPayload))),q.invalidationPayloadLastPublishAtUsec=zP(Z,2));w.reloadActionPanel&&(q.reloadActionPanel=w.reloadActionPanel);w.fullReload&&(q.fullReload=w.fullReload);
w.currentPlayerState&&(q.currentPlayerState=w.currentPlayerState)};var OV=function(){};
_.z(OV,o2);OV.prototype.getApiPaths=function(){return fh1};
OV.prototype.getExtension=function(q){return _.J(q,etg)};
OV.prototype.JSC$11762_buildRequest=function(q,Z){q.params=Z.params};var HM=function(){};
_.z(HM,o2);HM.prototype.getApiPaths=function(){return Ek9};
HM.prototype.getExtension=function(q){return _.J(q,PGX)};
HM.prototype.JSC$11762_buildRequest=function(q,Z){Z.params&&(q.params=Z.params)};var WM=function(){};
_.z(WM,o2);WM.prototype.getApiPaths=function(){return UW7};
WM.prototype.getExtension=function(q){return _.J(q,drm)};
WM.prototype.JSC$11762_buildRequest=function(q,Z){Z.params&&(q.params=Z.params)};var ov=function(){};
_.z(ov,o2);ov.prototype.getApiPaths=function(){return DWJ};
ov.prototype.getExtension=function(q){return _.J(q,PBv)};
ov.prototype.JSC$11762_buildRequest=function(q,Z){Z.params&&(q.params=Z.params)};var us=function(){};
_.z(us,o2);us.prototype.getApiPaths=function(){return yC7};
us.prototype.getExtension=function(q){return _.J(q,dB7)};
us.prototype.JSC$11762_buildRequest=function(q,Z){Z.params&&(q.params=Z.params)};var Li=function(){};
_.z(Li,o2);Li.prototype.getApiPaths=function(){return eGX};
Li.prototype.getExtension=function(q){return _.J(q,DIe)};
Li.prototype.JSC$11762_buildRequest=function(q,Z){Z.params&&(q.params=Z.params)};var Sn=function(){};
_.z(Sn,o2);Sn.prototype.getApiPaths=function(){return WOm};
Sn.prototype.getExtension=function(q){return _.J(q,_.Vg7)};
Sn.prototype.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;Z.params&&(q.params=Z.params);w.client_message_id&&(q.clientMessageId=w.client_message_id);w.recaptcha_token&&(q.recaptchaToken=w.recaptcha_token);w.rich_message&&w.rich_message.text_segments?(Z=w.rich_message.text_segments.map(function(r){var Y={};r.text&&(Y.text=r.text);r.emoji_id&&(Y.emojiId=r.emoji_id);return Y}),q.richMessage={textSegments:Z}):w.message&&(q.message=w.message);
w.currentPlayerState&&(q.currentPlayerState=w.currentPlayerState)};var vM=function(){};
_.z(vM,o2);vM.prototype.getApiPaths=function(){return oN7};
vM.prototype.getExtension=function(q){return _.J(q,ODX)};
vM.prototype.JSC$11762_buildRequest=function(q,Z){Z.params&&(q.params=Z.params)};var jn=function(){};
_.z(jn,o2);jn.prototype.getApiPaths=function(){return vN9};
jn.prototype.getExtension=function(q){return _.J(q,W72)};
jn.prototype.JSC$11762_buildRequest=function(q,Z,w){Z.isUserInitiated&&(q.isUserInitiated=Z.isUserInitiated);Z.initiationSource&&(q.initiationSource=Z.initiationSource);w.locationInfo&&(q.context.client.locationInfo=w.locationInfo)};var to=function(){};
_.z(to,o2);to.prototype.getApiPaths=function(){return h6X};
to.prototype.getExtension=function(q){return _.J(q,CJK)};
to.prototype.JSC$11762_buildRequest=function(q,Z,w){Z.metadataUpdateRequest&&(Z=Z.metadataUpdateRequest,q.encryptedVideoId=Z.encryptedVideoId,Z.liveChat&&(Z=Z.liveChat,q.liveChat||(q.liveChat={}),Z.performAsExternalChannelId&&(q.liveChat.performAsExternalChannelId=Z.performAsExternalChannelId),Z.source&&(q.liveChat.source=Z.source)));var r;if(w==null?0:(r=w.liveChat)==null?0:r.liveChatSettings)q.liveChat||(q.liveChat={}),w=w.liveChat.liveChatSettings,q.liveChat.newLiveChatSettings=w,q.liveChat.newLiveChatSettingsMask||
(q.liveChat.newLiveChatSettingsMask={}),w.emojiReactionSet&&(q.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var Rv=function(){};
_.z(Rv,o2);Rv.prototype.getApiPaths=function(){return nNg};
Rv.prototype.getExtension=function(q){return _.J(q,_.ufm)};
Rv.prototype.JSC$11762_buildRequest=function(q,Z,w){w.continuation?q.continuation=w.continuation:Z.videoId&&(q.videoId=Z.videoId);w.clientParams&&(q.clientParams=w.clientParams)};var bs=function(){};
_.z(bs,o2);bs.prototype.getApiPaths=function(){return kUK};
bs.prototype.getExtension=function(q){return _.J(q,_.LH)};
bs.prototype.JSC$11762_buildRequest=function(q,Z){q.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";q.fetchCommentsParams={};Z.videoId&&(q.fetchCommentsParams.encryptedVideoId=Z.videoId);Z.postId&&(q.fetchCommentsParams.postId=Z.postId);Z.externalChannelId&&(q.fetchCommentsParams.externalChannelId=Z.externalChannelId);Z.linkedCommentId&&(q.fetchCommentsParams.linkedCommentId=Z.linkedCommentId);(0,_.R4.isEmpty)(q.fetchCommentsParams)&&delete q.fetchCommentsParams};var Jo=function(){};
_.z(Jo,o2);Jo.prototype.getApiPaths=function(){return Xa};
Jo.prototype.JSC$11762_buildRequest=function(q){q.browseId="FEnotifications_inbox"};
Jo.prototype.getExtension=function(q){return _.J(q,_.CR)};var zq=function(){};
_.z(zq,o2);zq.prototype.getApiPaths=function(){return kUK};
zq.prototype.JSC$11762_buildRequest=function(q,Z){Z.signal==="GET_NOTIFICATIONS_MENU"&&(q.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");Z.ctoken&&(q.ctoken=Z.ctoken)};
var aA6=function(){};
_.z(aA6,zq);aA6.prototype.getExtension=function(q){return _.J(q,_.CR)};
var nil=function(){};
_.z(nil,zq);nil.prototype.getExtension=function(q){return _.J(q,XWD)};var BM=function(){};
_.z(BM,o2);BM.prototype.getApiPaths=function(){return NKX};
BM.prototype.getExtension=function(q){return _.J(q,_.CR)};
BM.prototype.JSC$11762_buildRequest=function(){};var av=function(){};
_.z(av,o2);av.prototype.getApiPaths=function(){return iZX};
av.prototype.getExtension=function(q){return _.J(q,V12)||void 0};
av.prototype.JSC$11762_buildRequest=function(q,Z){Z.params&&(q.params=Z.params);Z.secondaryParams&&(q.secondaryParams=Z.secondaryParams)};var ni=function(){};
_.z(ni,o2);ni.prototype.getApiPaths=function(){return gkm};
ni.prototype.getExtension=function(q){return _.J(q,A4X)};
ni.prototype.JSC$11762_buildRequest=function(q,Z){Z.undo&&(q.undo=Z.undo);Z.serializedOptOut&&(q.serializedOptOut=Z.serializedOptOut);Z.serializedRecordInteractionsRequest&&(q.serializedRecordInteractionsRequest=Z.serializedRecordInteractionsRequest)};var QF=function(){};
_.z(QF,o2);QF.prototype.getApiPaths=function(){return wjm};
QF.prototype.getExtension=function(q){return _.J(q,fiX)};
QF.prototype.JSC$11762_buildRequest=function(q,Z){Z.serializedInteractionsRequest&&(q.serializedRecordNotificationInteractionsRequest=Z.serializedInteractionsRequest)};var EV=function(){};
_.z(EV,o2);EV.prototype.getApiPaths=function(){return c8I};
EV.prototype.getExtension=function(q){return _.J(q,azT)};
EV.prototype.JSC$11762_buildRequest=function(q,Z,w){Z=Z===void 0?{}:Z;w=w===void 0?{}:w;Z.videoId?q.videoId=Z.videoId:Z.playlistId&&(q.playlistId=Z.playlistId);var r,Y=(r=Z.offlineWebClientEligibility)!=null?r:w.offlineWebClientEligibility;Y&&(q.offlineWebClientEligibility=Y);var C;if(r=(C=Z.preferredFormatType)!=null?C:w.preferredFormatType)q.preferredFormatType=r;var d;if(C=(d=Z.lastOfflineQualitySettingsSavedMs)!=null?d:w.lastOfflineQualitySettingsSavedMs)q.lastOfflineQualitySettingsSavedMs=C;
Z.params&&(q.params=Z.params)};var xf=function(){};
_.z(xf,o2);xf.prototype.getApiPaths=function(){return k5};
xf.prototype.getExtension=function(q){return _.J(q,_.L6)};
xf.prototype.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;Z.token&&(q.continuation=Z.token);w.formData&&(q.formData=w.formData)};var Tq=function(){};
_.z(Tq,o2);Tq.prototype.getApiPaths=function(){return k5};
Tq.prototype.getExtension=function(q){return _.J(q,ZkJ)};
Tq.prototype.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;q.continuation=w.continuation};var UV=function(){};
_.z(UV,o2);UV.prototype.getApiPaths=function(){return k5};
UV.prototype.getExtension=function(q){return _.J(q,_.zf)};
UV.prototype.JSC$11762_buildRequest=function(q,Z){var w,r=Z.panelIdentifier||((w=Z.identifier)==null?void 0:w.tag);r&&(q.panelId=r);var Y;if((Y=Z.globalConfiguration)==null?0:Y.params){var C;q.params=(C=Z.globalConfiguration)==null?void 0:C.params}};
_.My.Object.defineProperties(UV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kf=function(){};
_.z(kf,o2);kf.prototype.getApiPaths=function(){return k5};
kf.prototype.getExtension=function(q){return _.J(q,UkW)};
kf.prototype.JSC$11762_buildRequest=function(q,Z){Z.panelLoadingStrategy&&Ty2(q,Z.panelLoadingStrategy)};var Ki=function(){};
_.z(Ki,o2);Ki.prototype.getApiPaths=function(){return k5};
Ki.prototype.getExtension=function(q){return _.J(q,$rm)};
Ki.prototype.JSC$11762_buildRequest=function(q,Z){Z.loadingStrategy&&Ty2(q,Z.loadingStrategy)};var sV=function(){};
_.z(sV,o2);sV.prototype.getApiPaths=function(){return k5};
sV.prototype.getExtension=function(q){return _.J(q,_.rp)};
sV.prototype.JSC$11762_buildRequest=function(q,Z){Z.panelLoadingStrategy&&Ty2(q,Z.panelLoadingStrategy)};var Iv=function(){};
_.z(Iv,o2);Iv.prototype.getApiPaths=function(){return k5};
Iv.prototype.getExtension=function(q){return _.J(q,efK)};
Iv.prototype.JSC$11762_buildRequest=function(q,Z){var w,r=(w=Z.contentSourcePanelIdentifier)==null?void 0:w.tag;r&&(q.panelId=r);var Y;if((Y=Z.globalConfiguration)==null?0:Y.params){var C;q.params=(C=Z.globalConfiguration)==null?void 0:C.params}};var cM=function(){};
_.z(cM,o2);cM.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
cM.prototype.getExtension=function(q){return _.J(q,CGJ)};
cM.prototype.JSC$11762_buildRequest=function(q,Z){Z.params&&(q.params=Z.params)};var Mg=function(){};
_.z(Mg,o2);Mg.prototype.getApiPaths=function(){return apX};
Mg.prototype.getExtension=function(q){return _.J(q,VEg)};
Mg.prototype.JSC$11762_buildRequest=function(q,Z){Z.externalChannelId&&(q.externalChannelId=Z.externalChannelId);Z.superChatAction&&(q.superChatAction=Z.superChatAction);Z.superStickersAction&&(q.superStickersAction=Z.superStickersAction)};var Fv=function(){};
_.z(Fv,o2);Fv.prototype.getApiPaths=function(){return z6p};
Fv.prototype.getExtension=function(q){return _.J(q,qKp)||_.J(q,Qv2)};
Fv.prototype.JSC$11762_buildRequest=function(q,Z){Z.videoIds?q.videoIds=Z.videoIds:Z.videoId&&(q.videoIds=[Z.videoId]);Z.playlistId&&(q.playlistId=Z.playlistId);Z.params&&(q.params=Z.params);q.excludeWatchLater=!1};var Ng=function(){};
_.z(Ng,o2);Ng.prototype.getApiPaths=function(){return okg};
Ng.prototype.getExtension=function(q){return _.J(q,_.JA)};
Ng.prototype.JSC$11762_buildRequest=function(q,Z,w){w.create_playlist_title?q.title=w.create_playlist_title:Z.title&&(q.title=Z.title);if(w.create_playlist_privacy_status&&typeof w.create_playlist_privacy_status==="number"){a:{var r=w.create_playlist_privacy_status;if(r!==0){if(r===1){r="PUBLIC";break a}if(r===2){r="UNLISTED";break a}}r="PRIVATE"}q.privacyStatus=r}else Z.privacyStatus&&(q.privacyStatus=Z.privacyStatus);w.create_playlist_description&&(q.description=w.create_playlist_description);Z.videoIds&&
(q.videoIds=Z.videoIds);Z.params&&(q.params=Z.params);Z.sourcePlaylistId&&(q.sourcePlaylistId=Z.sourcePlaylistId)};var ls=function(){};
_.z(ls,o2);ls.prototype.getApiPaths=function(){return Stm};
ls.prototype.getExtension=function(q){return _.J(q,P8p)};
ls.prototype.JSC$11762_buildRequest=function(q,Z){q.playlistId=Z.playlistId};var Gq=function(){};
_.z(Gq,o2);Gq.prototype.getApiPaths=function(){return KrJ};
Gq.prototype.getExtension=function(q){return _.J(q,Nl7)};
Gq.prototype.JSC$11762_buildRequest=function(q,Z){Z.playlistId&&(q.playlistId=Z.playlistId);Z.params&&(q.params=Z.params)};var pi=function(){};
_.z(pi,o2);pi.prototype.getApiPaths=function(){return ZOe};
pi.prototype.getExtension=function(q){return _.J(q,_.SE)||void 0};
pi.prototype.JSC$11762_buildRequest=function(q,Z){Z.actions&&(q.actions=Z.actions);Z.params&&(q.params=Z.params);Z.playlistId&&(q.playlistId=Z.playlistId)};var Xv=function(){};
_.z(Xv,o2);_.e=Xv.prototype;_.e.getApiPaths=function(){return r_D};
_.e.getExtension=function(q){return _.J(q,_.Yz)};
_.e.JSC$11762_buildRequest=function(q,Z){Z.videoId&&(q.playerRequest={videoId:Z.videoId},Z.playerParams&&(q.playerRequest.params=Z.playerParams),Z.racyCheckOk&&(q.playerRequest.racyCheckOk=!!Z.racyCheckOk),Z.contentCheckOk&&(q.playerRequest.contentCheckOk=!!Z.contentCheckOk));Z.params&&(q.params=Z.params);Z.inputType&&(q.inputType=Z.inputType);q.disablePlayerResponse=!0};
_.e.getRequestConfig=function(q){var Z;(q=this.JSC$11769_getStoreKey(q))&&(Z={storeStrategy:{storeKey:q}});_.b("web_log_reels_ticks")&&(Z=Z||{},Z.requestTick="r_wrs",Z.responseTick="r_wrr");return Z};
_.e.JSC$11769_getStoreKey=function(q){q=this.getExtension(q);if(_.b("shorts_controller_retrieve_seedless_sequence_v2")){if((q==null?void 0:q.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.Is("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.b("web_prefetch_riw_for_next_video")||_.b("web_shorts_prefetch_service_enabled"))&&q!=null&&q.videoId){var Z={videoId:q.videoId};q.params&&(Z.params=q.params);return _.Is("reel_item_watch",Z)}};var mU=function(){};
_.z(mU,o2);_.e=mU.prototype;_.e.getApiPaths=function(){return YWh};
_.e.getExtension=function(q){return _.J(q,_.Yz)};
_.e.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;q.sequenceParams=Z.sequenceParams;var r;((r=w)==null?0:r.contentPlaybackContext)&&_.b("web_shorts_prefetch_service_enabled")&&(q.playbackContext={contentPlaybackContext:w.contentPlaybackContext})};
_.e.JSC$11769_getStoreKey=function(q){if(_.b("shorts_controller_retrieve_seedless_sequence_v2")&&(q=this.getExtension(q),q==null?0:q.sequenceParams))return _.Is("reel_watch_sequence",{sequenceParams:q.sequenceParams})};
_.e.getRequestConfig=function(q){q=this.JSC$11769_getStoreKey(q);var Z;q&&(Z={storeStrategy:{storeKey:q}});_.b("reel_watch_sequence_request_log_ticks")&&(Z=Z||{},Z.requestTick="r_wsrs",Z.responseTick="r_wsrr",Z.processorTick="r_wsrp");return Z};
var Ao=function(){};
_.z(Ao,o2);Ao.prototype.getApiPaths=function(){return YWh};
Ao.prototype.getExtension=function(q){return _.J(q,_.L6)};
Ao.prototype.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;Z.token&&(q.continuation=Z.token);var r;((r=w)==null?0:r.contentPlaybackContext)&&_.b("web_shorts_prefetch_service_enabled")&&(q.playbackContext={contentPlaybackContext:w.contentPlaybackContext})};
Ao.prototype.getRequestConfig=function(q){q=this.JSC$11769_getStoreKey(q);var Z;q&&(Z={storeStrategy:{storeKey:q}});_.b("reel_watch_sequence_request_log_ticks")&&(Z=Z||{},Z.requestTick="r_wsrs",Z.responseTick="r_wsrr",Z.processorTick="r_wsrp");return Z};var fi=function(){};
_.z(fi,o2);fi.prototype.getApiPaths=function(){return R6X};
fi.prototype.getExtension=function(q){return _.J(q,_.Si7)};
fi.prototype.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;Z.flagAction&&(q.action=Z.flagAction);Z.flagRequestType&&(q.flagRequestType=Z.flagRequestType);Z.additionalDetailCheckboxChecked&&(q.additionalDetailCheckboxChecked=Z.additionalDetailCheckboxChecked);Z.legalCheckboxChecked&&(q.legalCheckboxChecked=Z.legalCheckboxChecked);Z={};w.flag_issue_type!==void 0&&(Z.issue=w.flag_issue_type);w.flag_affiliation!==void 0&&(Z.affiliation=w.flag_affiliation);w.flag_full_name&&(Z.fullName=w.flag_full_name);
Object.keys(Z).length&&(q.legalReportDetails=Z);if(w.flag_description||w.text)q.userComments=w.flag_description||w.text;Z={};w.minutes!==void 0&&w.seconds!==void 0&&(Z.minutes=w.minutes,Z.seconds=w.seconds);w.vss_id&&(Z.vssId=w.vss_id);Object.keys(Z).length&&(q.videoReportDetails=Z);Z={};w.video_ids&&(Z.videoIds=w.video_ids);w.impersonated_channel_url&&(Z.impersonatedChannelUrl=w.impersonated_channel_url);Object.keys(Z).length&&(q.channelAbuseReportDetails=Z)};
_.My.Object.defineProperties(fi.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Dz=function(){};
_.z(Dz,o2);Dz.prototype.getApiPaths=function(){return nkW};
Dz.prototype.getExtension=function(q){return _.J(q,XBp)};
Dz.prototype.JSC$11762_buildRequest=function(q,Z){Z.blockedForKidsContent&&(q.blockedForKidsContent=Z.blockedForKidsContent)};var ho=function(){};
_.z(ho,o2);ho.prototype.getApiPaths=function(){return Cc7};
ho.prototype.getExtension=function(q){return _.J(q,nfN)};
ho.prototype.JSC$11762_buildRequest=function(q,Z,w){q.params=Z.params;w.impersonated_channel_url&&(q.impersonatedChannelUrl=w.impersonated_channel_url)};var yF=function(){};
_.z(yF,o2);yF.prototype.getApiPaths=function(){return mWD};
yF.prototype.getExtension=function(q){return _.J(q,_.mLg)};
yF.prototype.JSC$11762_buildRequest=function(q,Z){Z.items&&(q.items=Z.items);Z.kidGaiaId&&(q.kidGaiaId=Z.kidGaiaId)};var is=function(){};
_.z(is,o2);is.prototype.getApiPaths=function(){return BKh};
is.prototype.getExtension=function(q){return _.J(q,_.iHK)};
is.prototype.JSC$11762_buildRequest=function(q,Z){Z.params&&(q.params=Z.params);Z.targetId&&(q.targetId=Z.targetId)};var gU=function(){};
_.z(gU,o2);gU.prototype.getApiPaths=function(){return OO9};
gU.prototype.getExtension=function(q){return _.J(q,m12)};
gU.prototype.JSC$11762_buildRequest=function(q,Z){Z.externalVideoId&&(q.externalVideoId=Z.externalVideoId);Z.query&&(q.query=Z.query);Z.sourceTimelines&&(q.sourceTimelines=Z.sourceTimelines)};var qp=function(){};
_.z(qp,o2);qp.prototype.getApiPaths=function(){return HOW};
qp.prototype.getExtension=function(q){return _.J(q,_.L6)||void 0};
qp.prototype.JSC$11762_buildRequest=function(q,Z){Z.token&&(q.continuation=Z.token)};
_.Q16=function(){};
_.z(_.Q16,o2);_.e=_.Q16.prototype;_.e.getApiPaths=function(){return HOW};
_.e.getExtension=function(q){return _.J(q,_.Z5)||void 0};
_.e.isNavigationCommand=function(){return!0};
_.e.JSC$11769_getStoreKey=function(q,Z){Z=Z===void 0?{}:Z;if(!Z.disableCache&&(q=this.getExtension(q))&&q.query)return Z={query:q.query},q.params&&(Z.params=q.params),_.Is("search",Z)};
_.e.JSC$11762_buildRequest=function(q,Z,w){Z.query&&(q.query=Z.query);Z.params&&(q.params=Z.params);if(!_.b("web_forward_suggest_stats_killswitch")){var r=_.J(Z,kvm);r&&(q.suggestStats=r)}var Y;!_.b("kevlar_searchbox_stats_killswitch")&&((Y=w.tempData)==null?0:Y.gs_l)&&!_.J(Z,kvm)&&(q.webSearchboxStatsUrl="/search?oq="+(w.tempData.oq||"")+"&gs_l="+w.tempData.gs_l)};
_.e.getRequestConfig=function(q,Z){Z=Z===void 0?{}:Z;q=this.JSC$11769_getStoreKey(q,Z);var w;q&&(w={storeStrategy:{storeKey:q}});_.b("web_log_search_ticks_ks")||(w=w||{},w.requestTick="sr_s",w.responseTick="sr_r");return w};var Z0=function(){};
_.z(Z0,o2);Z0.prototype.getApiPaths=function(){return MLJ};
Z0.prototype.getExtension=function(q){return _.J(q,t12)};
Z0.prototype.JSC$11762_buildRequest=function(q,Z){Z.serializedGetSharingProviderDataParams&&(q.serializedGetSharingProviderDataParams=Z.serializedGetSharingProviderDataParams)};var wP=function(){};
_.z(wP,o2);wP.prototype.getApiPaths=function(){return Frm};
wP.prototype.getExtension=function(q){return _.J(q,HjK)};
wP.prototype.JSC$11762_buildRequest=function(q,Z){Z.endpoint&&(q.endpoint=Z.endpoint);Z.action&&(q.action=Z.action)};var rP=function(){};
_.z(rP,o2);rP.prototype.getApiPaths=function(){return vkp};
rP.prototype.getExtension=function(q){return _.J(q,dk9)};
rP.prototype.JSC$11762_buildRequest=function(q,Z){q.videoId=Z.videoId;Z.scheduledRedirectMetadataSourceVideoId&&(q.scheduledRedirectMetadata={sourceVideoId:Z.scheduledRedirectMetadataSourceVideoId})};var Eiy=XMLHttpRequest.prototype.fetch,xb7=Eiy&&Eiy.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!_.KY?!0:!1;var YS=function(q){this.JSC$15764_storeWithEntities=q};
_.z(YS,o2);_.e=YS.prototype;_.e.getApiPaths=function(){return qW2};
_.e.getExtension=function(q){return _.J(q,_.ck)||_.J(q,_.Yz)||_.J(q,LGe)};
_.e.isNavigationCommand=function(){return!0};
_.e.JSC$11769_getStoreKey=function(q){if((_.b("kevlar_cache_on_ttl_player")||_.b("mweb_enable_shorts_innertube_player_prefetch")||_.b("mweb_use_new_history_manager")||_.b("web_shorts_prefetch_service_enabled"))&&(q=this.getExtension(q))&&q.videoId){var Z={videoId:q.videoId};q.playlistId&&(Z.playlistId=q.playlistId);q.playerParams&&(Z.params=q.playerParams);return _.Is("player",Z)}};
_.e.JSC$11762_getClientScreen=function(q){var Z;return((Z=q.contentPlaybackContext)==null?void 0:Z.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.e.JSC$11762_buildRequest=function(q,Z,w){if(_.b("enable_interstitial_entity_check")){var r=this.JSC$15764_storeWithEntities;if(Z.videoId)for(var Y=_.P(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),C=Y.next();!C.done;C=Y.next()){C=C.value;var d;var O=void 0,H=void 0,L=Z.videoId,S=C;(d=r)?(L=_.yG(L+S,"interstitialInteractionStateEntity"),d=(O=(H=_.iI(d.getState().entities,"interstitialInteractionStateEntity",L))==null?void 0:H.primaryButtonClicked)!=null?O:!1):d=!1;if(d)switch(C){case "CONTENT_CHECK_REQUIRED":Z.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":Z.racyCheckOk=!0}}}Z.videoId&&(q.videoId=Z.videoId);Z.playlistId&&(q.playlistId=Z.playlistId);Z.index!==void 0&&(q.playlistIndex=Z.index+1);Z.playerParams&&(q.params=Z.playerParams);"startTimeSeconds"in Z&&Z.startTimeSeconds&&(_.b("enable_player_request_builder_start_time_floor")?q.startTimeSecs=Math.floor(Z.startTimeSeconds):q.startTimeSecs=Z.startTimeSeconds);w.contentPlaybackContext&&(q.playbackContext={contentPlaybackContext:w.contentPlaybackContext});w.prefetchPlaybackContext&&
(q.playbackContext=Object.assign({},q.playbackContext,{prefetchPlaybackContext:w.prefetchPlaybackContext}),q.context.request||(q.context.request={}),q.context.request.isPrefetch=!0);q.playbackContext||(q.playbackContext={});r=JZW();q.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!r,supportXhr:xb7};w.overrideMutedAtStart&&(q.overrideMutedAtStart=w.overrideMutedAtStart);q.racyCheckOk=!!Z.racyCheckOk;q.contentCheckOk=!!Z.contentCheckOk;!_.b("captions_prefs_killswitch")&&(w=(w=_.i8("yt-player-caption-language-preferences"))?
w:[],w==null?0:w.length)&&(q.captionParams={viewerSelectedCaptionLangs:w})};
_.e.getRequestConfig=function(q){q=this.JSC$11769_getStoreKey(q);var Z;q&&(Z={storeStrategy:{storeKey:q}});_.b("web_log_player_watch_next_ticks")&&(Z=Z||{},Z.requestTick="ps_s",Z.responseTick="ps_r");return Z};
YS[M1]=[r1];var $S=function(){};
_.z($S,o2);$S.prototype.getApiPaths=function(){return LO2};
$S.prototype.getExtension=function(q){return _.J(q,_.mk7)};
$S.prototype.JSC$11762_buildRequest=function(q,Z){q.params=Z.params;q.correctionText=Z.correctionText};var eM=function(){};
_.z(eM,o2);eM.prototype.getApiPaths=function(){return sC9};
eM.prototype.getExtension=function(q){return _.J(q,_.A3D)};
eM.prototype.JSC$11762_buildRequest=function(q,Z){Z.params&&(q.params=Z.params);q.searchQuery=Z.searchQuery;q.languageCode=Z.languageCode;q.kind=Z.kind;q.name=Z.name;q.externalVideoId=Z.externalVideoId};var Cr=function(){};
_.z(Cr,o2);_.e=Cr.prototype;_.e.getApiPaths=function(){return xtm};
_.e.getExtension=function(q){return _.J(q,_.ck)};
_.e.isNavigationCommand=function(){return!0};
_.e.JSC$11769_getStoreKey=function(q){if((q=this.getExtension(q))&&q.videoId){var Z={videoId:q.videoId};q.playlistId&&(Z.playlistId=q.playlistId);q.index&&(Z.index=q.index);q.params&&(Z.params=q.params);return _.Is("next",Z)}};
_.e.JSC$11762_getClientScreen=function(q){var Z;return((Z=q.contentPlaybackContext)==null?void 0:Z.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.e.JSC$11762_buildRequest=function(q,Z,w){Z.videoId&&(q.videoId=Z.videoId);Z.playlistId&&(q.playlistId=Z.playlistId);Z.params&&(q.params=Z.params);Z.index!==void 0&&(q.playlistIndex=Z.index);q.racyCheckOk=!(!w.racyCheckOk&&!Z.racyCheckOk);q.contentCheckOk=!!Z.contentCheckOk;w.contentPlaybackContext&&(q.autonavState=w.contentPlaybackContext.autonavState,q.playbackContext={vis:w.contentPlaybackContext.vis,lactMilliseconds:w.contentPlaybackContext.lactMilliseconds});w.prefetchPlaybackContext&&(q.context.request||
(q.context.request={}),q.context.request.isPrefetch=!0);_.b("captions_hats_killswitch")||(Z=_.Hd().getFlag(65),Z=Z!=null?!Z:!1,w=!!_.i8("yt-player-sticky-caption"),q.captionsRequested=Z&&w)};
_.e.getRequestConfig=function(q){q=this.JSC$11769_getStoreKey(q);var Z;q&&(Z={storeStrategy:{storeKey:q}});_.b("web_log_player_watch_next_ticks")&&(Z=Z||{},Z.requestTick="wn_s",Z.responseTick="wn_r");return Z};
var Ps=function(){};
_.z(Ps,o2);Ps.prototype.getApiPaths=function(){return xtm};
Ps.prototype.getExtension=function(q){return _.J(q,_.L6)};
Ps.prototype.JSC$11762_buildRequest=function(q,Z){Z.token&&(q.continuation=Z.token)};var dP=function(q,Z){this.playerRequestBuilder=q;this.watchNextRequestBuilder=Z};
_.z(dP,wL2);dP.prototype.getApiPaths=function(){return GUe};
dP.prototype.getExtension=function(q){return _.J(q,_.ck)};
dP.prototype.isNavigationCommand=function(){return!0};
dP.prototype.JSC$11762_buildRequest=function(q,Z,w){q.playerRequest={};q.watchNextRequest={};this.playerRequestBuilder.JSC$11762_buildRequest(q.playerRequest,Z,w);this.watchNextRequestBuilder.JSC$11762_buildRequest(q.watchNextRequest,Z,w)};
dP[M1]=[YS,Cr];var Va=function(){};
_.z(Va,o2);Va.prototype.getApiPaths=function(){return TmW};
Va.prototype.getExtension=function(q){return _.J(q,eF2)};
Va.prototype.JSC$11762_buildRequest=function(q,Z){Z.params&&(q.params=Z.params)};var Oo=function(q){this.JSC$15791_storeWithEntities=q};
_.z(Oo,o2);Oo.prototype.getApiPaths=function(){return CPp};
Oo.prototype.getExtension=function(q){return _.J(q,C3W)||_.J(q,dnv)};
Oo.prototype.JSC$11762_buildRequest=function(q,Z,w){w.client_data&&(q.clientData=w.client_data);if(Z.commerceActionConfig){var r=Z.commerceActionConfig;Z=r.actionId;r=r.commerceActionParams;Z&&(q.actionId=Z);r&&(q.commerceActionParams=r)}else{var Y=Z.actionId,C=Z.commerceActionParams;w=Z.entityKeys;Y&&(q.actionId=Y);C&&(q.commerceActionParams=C);var d;Z=(r=this.JSC$15791_storeWithEntities)==null?void 0:(d=r.getState())==null?void 0:d.entities;if(w&&Z){r=[];d=_.P(w);for(w=d.next();!w.done;w=d.next())if(Y=
w.value,w=_.fR(Y).entityType,Y=_.iI(Z,w,Y))C={},r.push((C[w]=Y,C));q.entityMutationPayloads=r}}};
Oo.prototype.getRequestConfig=function(q){var Z,w=(Z=_.J(q,C3W))==null?void 0:Z.requestSequenceType;if(w&&q.clickTrackingParams&&w!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:q.clickTrackingParams,sequenceType:w}}};
Oo[M1]=[r1];var Hs=function(){};
_.z(Hs,o2);Hs.prototype.getApiPaths=function(){return Utm};
Hs.prototype.getExtension=function(q){return _.J(q,_.nbX)};
Hs.prototype.JSC$11762_buildRequest=function(q,Z){Z.feedbackData&&(q.feedbackData=Z.feedbackData);Z.params&&(q.itemParams=Z.params)};
_.My.Object.defineProperties(Hs.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ws=function(){};
_.z(Ws,o2);Ws.prototype.getApiPaths=function(){return kip};
Ws.prototype.getExtension=function(q){return _.J(q,QLK)};
Ws.prototype.JSC$11762_buildRequest=function(q,Z,w){w.payments_payload&&(q.paymentsPayload=w.payments_payload);w.offer_params&&(q.offerParams=w.offer_params);Z.transactionParams&&(q.transactionParams=Z.transactionParams)};var op=function(){};
_.z(op,o2);op.prototype.getApiPaths=function(){return KO1};
op.prototype.getExtension=function(q){return _.J(q,_.Ebg)};
op.prototype.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;Z.buybucketParams&&(q.buybucketData={params:Z.buybucketParams},Z.stickerParams?q.buybucketData.stickerParams=Z.stickerParams:(w.rich_chat_message?q.buybucketData.richChatMessage=w.rich_chat_message:w.chat_message_text&&(q.buybucketData.chatMessageText=w.chat_message_text),w.purchase_price_micros&&(q.buybucketData.purchasePriceMicros=w.purchase_price_micros.toString())));Z.donationAmountMicros&&(q.tipAmountMicros=Z.donationAmountMicros,
Z.tipParams&&(q.tipParams=Z.tipParams));Z.offerParams&&(q.offerParams=Z.offerParams);Z.productData&&(q.productData=Z.productData);Z.transactionParams&&(q.transactionParams=Z.transactionParams)};var uw=function(){};
_.z(uw,o2);uw.prototype.getApiPaths=function(){return syW};
uw.prototype.getExtension=function(q){return _.J(q,Un7)};
uw.prototype.JSC$11762_buildRequest=function(q,Z){Z.updateFopParams&&(q.updateFopParams=Z.updateFopParams)};var Lr=function(){};
_.z(Lr,o2);Lr.prototype.getApiPaths=function(){return Iph};
Lr.prototype.getExtension=function(q){return _.J(q,_.Dv)};
Lr.prototype.JSC$11762_buildRequest=function(q,Z){Z.couponCode&&(q.couponCode=Z.couponCode);Z.params&&(q.itemParams=Z.params)};var SM=function(){};
_.z(SM,o2);SM.prototype.getApiPaths=function(){return c_1};
SM.prototype.getExtension=function(q){return _.J(q,_.P3e)};
SM.prototype.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;Z.params&&(q.params=Z.params);w.ctk&&(q.clientToken=w.ctk)};var vs=function(q){this.JSC$15826_storeWithEntities=q};
_.z(vs,o2);vs.prototype.getApiPaths=function(){return MAm};
vs.prototype.getExtension=function(q){return _.J(q,_.BZ)};
vs.prototype.JSC$11762_buildRequest=function(q,Z,w){w.purchase_price_micros&&(q.productData={pdgData:{purchasePriceMicros:w.purchase_price_micros.toString()}},w.rich_chat_message&&(q.productData.pdgData.richChatMessage=w.rich_chat_message),w.currency_code&&(q.productData.pdgData.currencyCode=w.currency_code));Z.transactionParams&&(q.transactionParams=Z.transactionParams);Z.clientLocationContext&&(q.clientLocationContext=Z.clientLocationContext);w.payments_payload&&(q.paymentsPayload=w.payments_payload);
w.funds_guarantee_callback_client_data&&(q.fundsGuaranteeCallbackClientData=w.funds_guarantee_callback_client_data);var r,Y;w=(r=this.JSC$15826_storeWithEntities)==null?void 0:(Y=r.getState())==null?void 0:Y.entities;if(Z.entityKeys&&w){r=[];Z=_.P(Z.entityKeys);for(Y=Z.next();!Y.done;Y=Z.next()){var C=Y.value;Y=_.fR(C).entityType;if(C=_.iI(w,Y,C)){var d={};r.push((d[Y]=C,d))}}q.entityMutationPayloads=r}};
vs[M1]=[r1];var jM=function(){};
_.z(jM,o2);jM.prototype.getApiPaths=function(){return FO9};
jM.prototype.getExtension=function(q){return _.J(q,xnD)};
jM.prototype.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;w.backend_analytics&&(q.serializedBackendAnalyticsEvent=w.backend_analytics);Z.offerParams&&(q.offerParams=Z.offerParams)};var ta=function(){};
_.z(ta,o2);ta.prototype.getApiPaths=function(){return Iph};
ta.prototype.getExtension=function(q){return _.J(q,gPN)};
ta.prototype.JSC$11762_buildRequest=function(q,Z){Z.params&&(q.itemParams=Z.params)};var Rp=function(){};
_.z(Rp,o2);Rp.prototype.getApiPaths=function(){return Nm9};
Rp.prototype.getExtension=function(q){return _.J(q,_.obX)};
Rp.prototype.JSC$11762_buildRequest=function(q,Z,w){w.resume_time_ms&&(q.resumeTimeMs=w.resume_time_ms);Z.pauseParams&&(q.pauseParams=Z.pauseParams)};var bw=function(){};
_.z(bw,o2);bw.prototype.getApiPaths=function(){return lpg};
bw.prototype.getExtension=function(q){return _.J(q,_.Tjh)};
bw.prototype.JSC$11762_buildRequest=function(q,Z,w){w=w===void 0?{}:w;w.c&&(q.redeemCode=w.c);w.rd&&(q.riskData=w.rd);w.ctk&&(q.clientToken=w.ctk)};var Ja=function(){};
_.z(Ja,o2);Ja.prototype.getApiPaths=function(){return Gim};
Ja.prototype.getExtension=function(q){return _.J(q,_.upg)};
Ja.prototype.JSC$11762_buildRequest=function(q,Z){Z.resumeParams&&(q.resumeParams=Z.resumeParams)};var zV=function(q,Z){this.clientName=q;this.defaultExpirationDelayMs=Z};
zV.prototype.put=function(q,Z){var w=this,r;return _.V(function(Y){r=Object.assign({},Z.data);r.key=q;r.clientName=w.clientName;r.expireTimestampMs===void 0&&(r.expireTimestampMs=(Math.round((0,_.lp)())+w.defaultExpirationDelayMs).toString());return Y.return(w.putInternal(q,r))})};
zV[M1]=[HS,p3Z];var TXZ=function(){zV.apply(this,arguments);this.JSC$15856_responseStore=new Map};
_.z(TXZ,zV);_.e=TXZ.prototype;_.e.get=function(q){var Z=this;return _.V(function(w){return w.return(Dp(Z,q))})};
_.e.putInternal=function(q,Z){var w=this,r,Y,C;return _.V(function(d){r=w.defaultExpirationDelayMs;Z.expireTimestampMs&&(r=Number(Z.expireTimestampMs)-Math.round((0,_.lp)()),Y=_.m6("mweb_override_response_store_expiration_ms"),Y>0&&Y<r&&(r=Y));C=setTimeout(function(){w.remove(q)},r);
w.JSC$15856_responseStore.set(q,{entryData:Z,timer:C});_.ub(d)})};
_.e.remove=function(q){var Z=this;return _.V(function(w){UbF(Z,q);_.ub(w)})};
_.e.removeAll=function(){var q=this;return _.V(function(Z){q.JSC$15856_responseStore.forEach(function(w){clearTimeout(w.timer)});
q.JSC$15856_responseStore.clear();_.ub(Z)})};
_.e.has=function(q){return!!this.JSC$15856_responseStore.get(q)};
_.e.getKeys=function(){return this.JSC$15856_responseStore.keys()};
var Dp=function(q,Z){if(q=q.JSC$15856_responseStore.get(Z))return new _.fO(q.entryData)},UbF=function(q,Z){var w=q.JSC$15856_responseStore.get(Z);
w&&(clearTimeout(w.timer),q.JSC$15856_responseStore.delete(Z))};var U2j;var sK2=function(q,Z,w){zV.call(this,q,Z);this.token=w};
_.z(sK2,zV);_.e=sK2.prototype;_.e.get=function(q){var Z=this,w,r;return _.V(function(Y){return Y.nextAddress==1?_.W(Y,Kd1(Z.token),2):Y.nextAddress!=3?(w=Y.yieldResult,_.W(Y,w.get("ResponseStore",[q,Z.clientName]),3)):(r=Y.yieldResult)?Y.return(new _.fO(r)):Y.return(void 0)})};
_.e.putInternal=function(q,Z){var w=this,r;return _.V(function(Y){if(Y.nextAddress==1)return _.W(Y,Kd1(w.token),2);r=Y.yieldResult;return _.W(Y,r.put("ResponseStore",Z),0)})};
_.e.remove=function(q){var Z=this,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,Kd1(Z.token),2);w=r.yieldResult;return r.return(w.delete("ResponseStore",[q,Z.clientName]))})};
_.e.removeAll=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1)return _.W(w,Kd1(q.token),2);Z=w.yieldResult;return _.W(w,ylK(Z,IDBKeyRange.only(q.clientName)),0)})};
_.e.has=function(){throw Error("Vi");};_.Bs=new _.F$("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var k1c=function(q){var Z;this.stateTagsData=(Z=q.responseContext)==null?void 0:Z.stateTags},KtC=function(q){var Z;
return((Z=q.stateTagsData)==null?void 0:Z.stateTagsModified)||[]};var s1b;s1b=function(q){this.JSC$15869_responseStore=q};
_.sn=function(q,Z,w){if(!_.b("state_tags_killswitch")){var r=new k1c(Z);if(KtC(r).length>0){var Y=q.JSC$15869_responseStore.getKeys();Y=_.P(Y);for(var C=Y.next();!C.done;C=Y.next()){C=C.value;var d=Dp(q.JSC$15869_responseStore,C);if(d){var O=_.Zb(d);a:{var H=void 0;d=KtC(r);O=((H=(new k1c(O)).stateTagsData)==null?void 0:H.relevantStateTags)||[];H=_.P(O);for(O=H.next();!O.done;O=H.next())if(O=O.value,O.stateTag!=null&&d.includes(O.stateTag)&&O.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){d=
!0;break a}d=!1}d&&UbF(q.JSC$15869_responseStore,C)}}}}var L;r=(L=Z.responseContext)==null?void 0:L.maxAgeSeconds;_.b("web_prefetch_riw_for_next_video")&&!r&&Z.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(r=3600);w&&r&&Number(r)>0&&(Z=ll(Z,r),q.JSC$15869_responseStore.put(w,new _.fO(Z)))};
s1b.prototype.handleResponse=function(q,Z){if(!Z)throw Error("Wi");var w,r;Z=(w=Z.config)==null?void 0:(r=w.storeStrategy)==null?void 0:r.storeKey;_.sn(this,q,Z)};
s1b[M1]=[_.A_];_.vWT=new _.F$("STORE_RESPONSE_PROCESSOR_TOKEN");var IAD=function(q){this.JSC$15872_responseStore=q};
IAD.prototype.handleResponse=function(q,Z){if(Z.input.match(_.IZ(YWh))){var w;if(q==null?0:(w=q.entries)==null?0:w.length)for(q=_.P(q.entries),Z=q.next();!Z.done;Z=q.next()){w=Z.value.command;var r=void 0;Z=(r=_.J(w,_.Yz))==null?void 0:r.unserializedPrefetchData;if(!w||!Z)break;r=(new Xv).JSC$11769_getStoreKey(w);var Y=_.J(Z,sxW),C=void 0,d=void 0,O=void 0,H=_.m6("web_shorts_prefetch_service_ttl_seconds")>0?_.m6("web_shorts_prefetch_service_ttl_seconds"):Number((O=(C=Y)==null?void 0:(d=C.responseContext)==
null?void 0:d.maxAgeSeconds)!=null?O:3600);r&&H>0&&(Y=ll(Y,H),this.JSC$15872_responseStore.put(r,new _.fO(Y)));w=(new YS).JSC$11769_getStoreKey(w);Z=_.J(Z,jxv);C=Y=r=void 0;d=_.m6("web_shorts_prefetch_service_ttl_seconds")>0?_.m6("web_shorts_prefetch_service_ttl_seconds"):Number((C=(r=Z)==null?void 0:(Y=r.responseContext)==null?void 0:Y.maxAgeSeconds)!=null?C:3600);w&&d>0&&(Z=ll(Z,d),this.JSC$15872_responseStore.put(w,new _.fO(Z)))}}};
IAD[M1]=[_.A_];var ap=function(){this.scheduler=_.R0()},c1q;
ap.prototype.pause=function(){throw Error("Xi");};
ap.prototype.resume=function(){throw Error("Xi");};
ap.prototype.queue=function(q){var Z=this,w=_.Be(),r=_.WO(this.scheduler,function(){try{var Y;if(_.AJ.instance)var C=_.AJ.instance;else{var d=new _.df("Error: Unexpected uninitialized CommandHandler.");_.tY(d);C=void 0}(Y=C)==null||Y.resolveCommand(q.command);w.resolve()}catch(O){w.reject(O)}});
w.promise.thenCatch(function(Y){Y instanceof _.xQ&&Z.scheduler.cancelJob(r)});
return w.promise};
ap.prototype.queueAll=function(q){var Z=new Map;q=_.P(q);for(var w=q.next();!w.done;w=q.next())w=w.value,Z.set(w.id,this.queue(w));return Z};var FtD=function(q,Z){var w=this;this.taskModel=q;this.onTaskCancelledCallback=Z;this.resolver=_.Be();q=q.proto.prefetchConfig;if(!q)throw Error("Yi");if(!q.prefetchAction)throw Error("Zi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(r){r instanceof _.xQ&&(MCu(w,w.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),w.onTaskCancelledCallback(w.taskModel.id,w.jobId),w.tick("pcc"));
throw r;});
this.timerName=this.taskModel.id;_.bI(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},NXD=function(q){switch(q.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},MCu=function(q,Z){_.RV({prefetchInfo:{cancellationReason:Z}},q.timerName)};
FtD.prototype.tick=function(q){_.JT(q,void 0,this.timerName)};var Qa=function(){var q=this;this.scheduler=_.R0();this.maxInflightTasks=_.m6("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.m6("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new vBg;this.onTaskCancelled=function(Z,w){w&&q.scheduler.cancelJob(w);lAl(q,Z);nr(q,3)}},G1F=function(){Qa.instance||(Qa.instance=new Qa);
return Qa.instance};
Qa.prototype.pause=function(){this.prefetchCoordinatorState=0};
Qa.prototype.resume=function(){nr(this,0)};
Qa.prototype.queue=function(q){q=pGl(this,q);nr(this,1);return q};
Qa.prototype.queueAll=function(q){var Z=new Map;q=_.P(q);for(var w=q.next();!w.done;w=q.next())w=w.value,Z.set(w.id,pGl(this,w));nr(this,1);return Z};
var pGl=function(q,Z){var w=q.allPrefetchTasks.get(Z.id);if(w)return w.cancellablePromise;try{var r=new FtD(Z,q.onTaskCancelled)}catch(C){return _.TX(C)}w=r;w.tick("pcq");var Y={prefetchInfo:{taskId:w.taskModel.id,isPrefetch:!0,fetchAction:w.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:w.taskModel.command.clickTrackingParams}};w.taskModel.csn&&(Y.clientScreenNonce=w.taskModel.csn);_.RV(Y,w.timerName);q.allPrefetchTasks.set(Z.id,r);q.drainingHeap.insert(-NXD(r),r);return r.cancellablePromise},
nr=function(q,Z){q.prefetchCoordinatorState===Z&&(q.prefetchCoordinatorState=2,XGV(q))},XGV=function(q){for(var Z={};q.prefetchCoordinatorState!==0;Z={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(q.inflightPrefetchTasks.size>=q.maxInflightTasks){q.prefetchCoordinatorState=3;break}Z.prefetchTask$jscomp$1=q.drainingHeap.remove();if(!Z.prefetchTask$jscomp$1){q.prefetchCoordinatorState=1;break}Z.taskId$jscomp$3=Z.prefetchTask$jscomp$1.taskModel.id;if(q.allPrefetchTasks.has(Z.taskId$jscomp$3)){var w=-1;q.coordinatorTimeoutMs>0&&(w=_.WO(q.scheduler,function(r){return function(){Eo(q,r.taskId$jscomp$3,Error("$i"))}}(Z),q.coordinatorTimeoutMs));
q.inflightPrefetchTasks.set(Z.taskId$jscomp$3,w);if(!q.JSC$15888_commandHandler){if(!_.AJ.instance){Eo(q,Z.taskId$jscomp$3,Error("aj"));continue}q.JSC$15888_commandHandler=_.AJ.instance}a:switch(Z.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":w=1;break a;default:w=0}Z.prefetchTask$jscomp$1.jobId=q.scheduler.addJob(function(r){return function(){r.prefetchTask$jscomp$1.tick("pcr");try{q.JSC$15888_commandHandler.resolveCommand(r.prefetchTask$jscomp$1.taskModel.command)||
Eo(q,r.taskId$jscomp$3,Error("bj"))}catch(Y){Eo(q,r.taskId$jscomp$3,Y)}}}(Z),w,0)}}},mbZ=function(q,Z){(Z=lAl(q,Z))!=null&&(Z.resolver.resolve(),Z.tick("pce"));
nr(q,3)},Eo=function(q,Z,w){(Z=lAl(q,Z,w))!=null&&(Z.resolver.reject(w),Z.tick("pcc"),MCu(Z,"CANCELLATION_REASON_ERROR"),Math.random()<=_.m6("prefetch_coordinator_error_logging_sampling_rate")&&(w=new _.df("Prefetch Command failed.",Z.taskModel.id,w.message),_.tY(w)));
nr(q,3)},lAl=function(q,Z,w){var r=q.allPrefetchTasks.get(Z);
r?((w=q.inflightPrefetchTasks.get(Z))&&w!==-1&&q.scheduler.cancelJob(w),q.inflightPrefetchTasks.delete(Z),q.allPrefetchTasks.delete(Z)):_.bx(new _.df("Unexpected missing prefetch task when deleting task.",Z,w==null?void 0:w.message));return r};var A1l=function(q,Z,w,r,Y){this.id=q;this.triggerOn=Z;this.cancelOn=w;this.command=r;this.proto=Y};
_.My.Object.defineProperties(A1l.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var fAl=function(){this.JSC$15893_prefetchCoordinator=G1F();c1q||(c1q=new ap);this.defaultCoordinator=c1q},Db7;
fAl.getInstance=function(){Db7||(Db7=new fAl);return Db7};
fAl.prototype.get=function(q){switch(q){case 0:return this.JSC$15893_prefetchCoordinator;default:return this.defaultCoordinator}};var xS=function(){this.coordinatorSupplier=fAl.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},ihq=function(q){var Z=_.b5()||void 0,w=Object.keys(hOl)[0];
if(w){var r=q.taskIdByTriggerId.get(w);if(r!=null){q.taskIdByTriggerId.delete(w);w=[];r=_.P(r);for(var Y=r.next();!Y.done;Y=r.next())if(Y=q.tasks.get(Y.value))Z!=="UNDEFINED_CSN"&&(Y.csn=Z),w.push(Y);w=MyN(w);Z=[];w=_.P(w);for(r=w.next();!r.done;r=w.next()){Y=_.P(r.value);r=Y.next().value;Y=Y.next().value;r=q.coordinatorSupplier.get(r).queueAll(Y);r=_.P(r);var C=r.next();for(Y={};!C.done;Y={taskId$jscomp$9:void 0},C=r.next()){var d=_.P(C.value);C=d.next().value;d=d.next().value;Y.taskId$jscomp$9=
C;C=d;Z.push(Y.taskId$jscomp$9);q.queuedPromisesByTask.set(Y.taskId$jscomp$9,_.on(C,function(O){return function(){y1D(q,O.taskId$jscomp$9)}}(Y)))}}}}else _.bx(new _.df("Unexpected malformed TriggerEvent."))};
xS.prototype.trigger=function(q,Z){var w=this,r=this.tasks.get(q);if(!r||this.queuedPromisesByTask.has(q))return!1;gil(this,q,r.triggerOn);Z!=="UNDEFINED_CSN"&&(r.csn=Z);Z=this.coordinatorSupplier.get(r.taskType).queue(r);this.queuedPromisesByTask.set(q,_.on(Z,function(){y1D(w,q)}));
return!0};
xS.prototype.cancel=function(q){var Z=this.queuedPromisesByTask.get(q);if(Z)Z.cancel();else return y1D(this,q)};
var y1D=function(q,Z){q.queuedPromisesByTask.delete(Z);var w=q.tasks.get(Z);if(!w)return!1;q.tasks.delete(Z);gil(q,Z,w.triggerOn);(w=c66(w.cancelOn))&&(q=q.taskIdByCancelId.get(w))&&q.delete(Z);return!0},gil=function(q,Z,w){(w=Object.keys(w)[0])&&(q=q.taskIdByTriggerId.get(w))&&q.delete(Z)};var hOl={taskRegistered:{}},TV=function(){xS.instance||(xS.instance=new xS);this.JSC$15902_taskManager=xS.instance};
_.z(TV,K2);
TV.prototype.resolveCommand=function(q){var Z=this,w,r;return _.V(function(Y){w=_.J(q,TFW);if((r=w)==null||!r.tasks){var C=new _.df("RegisterTasksCommand is missing tasks.");_.tY(C);return Y.return()}C=Z.JSC$15902_taskManager;for(var d=_.P(w.tasks),O=d.next();!O.done;O=d.next())if(O=O.value,O=O.id&&O.triggerOn&&O.cancelOn&&O.command?new A1l(O.id,O.triggerOn,O.cancelOn,O.command,O):void 0,O){var H=Object.keys(O.triggerOn)[0];if(H){var L=c66(O.cancelOn);L?(C.tasks.set(O.id,O),C.taskIdByTriggerId.has(H)||C.taskIdByTriggerId.set(H,
new Set),C.taskIdByTriggerId.get(H).add(O.id),C.taskIdByCancelId.has(L)||C.taskIdByCancelId.set(L,new Set),C.taskIdByCancelId.get(L).add(O.id)):_.bx(new _.df("Unexpected malformed cancelOn field."))}else _.bx(new _.df("Unexpected malformed triggerOn field."))}else _.bx(new _.df("Unexpected malformed Task proto."));ihq(Z.JSC$15902_taskManager);_.ub(Y)})};var qu7={},Z7V=(qu7.rendered={priority:0,callback:function(){var q={};q.numCpu=navigator.hardwareConcurrency;var Z={};Z.ramGb=_.$1.navigator.deviceMemory;var w={staticContext:{}};Z.ramGb&&Fd6(Z.ramGb)&&(w.staticContext.memoryTotalKbytes=(Z.ramGb*1048576).toString());q.numCpu&&Fd6(q.numCpu)&&(w.staticContext.cpuCores=q.numCpu);if(_.b("web_enable_adaptive_appl_signal")){q={};Z=_.aV("rses_dpj");var r=_.aV("rsef_dpj");Z&&Z>0&&r&&r>0&&(Z=Math.ceil(r-Z),Z>0&&(q.loadLatency=Z));q.loadLatency&&Fd6(q.loadLatency)&&
(w.appL=q.loadLatency.toString())}_.vO("applicationStarted",w)}},qu7);var wN8=new _.F$("WINDOW_ON_ERROR"),rXq=new _.F$("ERROR_WEIGHT_MAPS"),YuD=new _.F$("INIT_ERROR");var $ol={},e2C=($ol.initialized={priority:10,callback:function(q){q.injector.resolve(YuD)()}},$ol);var CS7=function(){},PS8=function(){var q=_.Eq("meta_logger_impl");
q||(q=new CS7,_.IR("meta_logger_impl",q));return q},dou=function(){PS8().csiSubscriptionKey=PyT("meta_logging_csi_event",function(q){var Z=q.timerName;
if(q=q.timelineData){_.bI(Z,{startTime:q.startTime},Z);q.infos&&_.RV(q.infos,Z);for(var w=_.P(Object.keys(q.ticks)),r=w.next();!r.done;r=w.next())r=r.value,_.JT(r,q.ticks[r],Z)}})};
CS7.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&O5X(this.csiSubscriptionKey)};var VGD={},O7l=(VGD.initialized={priority:10,callback:function(){dou()}},VGD);var H77=function(q,Z){this.innertubeClientName=q;this.JSC$15918_prefCookie=Z};
H77.prototype.record=function(){if(_.b("web_li_record_binary_eval_tick")){var q=_.aV("rsef_dpj");var Z=_.aV("rses_dpj");q=q!==void 0&&Z!==void 0?Math.round(q-Z):void 0;if(q!==void 0&&q>0){Z=_.i8(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var w=this.poolSize;if(!(Z.valuesSeen>=1E9)){if(Z.valuesSample.length<w)Z.valuesSample.push(q);else{var r=Math.floor(Math.random()*(Z.valuesSeen+1));r<w&&(Z.valuesSample[r]=q)}Z.valuesSeen+=1}_.yq(this.storagePrefix+"-"+this.innertubeClientName,
Z,2592E3);q=Z.valuesSample;Z=NyT(q);q=q.length<5?void 0:Z<400?1:Z<1700?2:3;q!==void 0&&(this.JSC$15918_prefCookie.set(this.cookiePrefix+this.innertubeClientName,q),this.JSC$15918_prefCookie.save())}}else _.gF(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$15918_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$15918_prefCookie.save()};
H77[M1]=[HS,yj7];var WPq=function(){H77.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.z(WPq,H77);var lDN=!1;var o66=new _.F$("PAGE_LOAD_TIME_TOKEN");var u4u=new _.F$("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Uo=function(q,Z){this.JSC$15941_storeWithEntities=q;this.JSC$15941_commandHandler=Z;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Uo.prototype.start=function(){this.JSC$15941_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Uo.prototype.observeDownloadingEntities=function(){var q=_.cAO(this.JSC$15941_storeWithEntities.getState().entities).map(function(r){return ME2(r)});
if(q.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var Z=_.ih({openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:E3X()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.G7(_.dT("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}});this.JSC$15941_commandHandler.resolveCommand(Z)}this.downloadingEntities=q}else if(this.downloadingEntities.length){var w=I12(this.JSC$15941_storeWithEntities.getState().entities).map(function(r){return ME2(r)});
this.downloadingEntities.filter(function(r){return w.includes(r)}).length&&(q=_.ih({openPopupAction:J6z()}),this.JSC$15941_commandHandler.resolveCommand(q));
this.downloadingEntities=[]}};
Uo[M1]=[r1,_.ps];var LPy;_.kS=function(q,Z,w,r,Y,C,d,O){this.JSC$15944_playerApiPromise=q;this.JSC$15944_commandHandler=Z;this.JSC$15944_screenManager=w;this.offlineWebClientEligibility=r;this.JSC$15944_prefStorage=Y;this.JSC$15944_actionRouter=C;this.entityTypeMap=d;this.JSC$15944_persistentStorePromiseAccessor=O;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
LPy=function(){var q=_.t().resolve(_.kS),Z;_.V(function(w){if(w.nextAddress==1)return q.downloadFailureListenerBound?w.return():_.W(w,q.JSC$15944_playerApiPromise,2);Z=w.yieldResult;Z.addEventListener("onOfflineOperationFailure",function(r){if(r.failureReason&&r.entityKey&&r.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(r.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var Y=_.fR(r.entityKey).entityId;Y&&q.JSC$15944_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
Y)}else if(_.b("kevlar_woffle")){Y=q.JSC$15944_commandHandler;var C=Y.resolveCommand;r=r.failureReason;var d=_.dT("TRANSFER_FAILED",void 0,"Download failed");r==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(d=_.dT("STORAGE_FULL",void 0,"Storage full"));C.call(Y,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.G7(d),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
q.downloadFailureListenerBound=!0;_.ub(w)})};
_.kS.prototype.deleteVideo=function(q,Z){var w=this,r,Y,C;return _.V(function(d){if(d.nextAddress==1)return _.W(d,w.JSC$15944_playerApiPromise,2);r=d.yieldResult;C={offlineLoggingData:{offlineDeleteReason:(Y=Z)!=null?Y:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.W(d,r.queueOfflineAction(q,w.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",C),0)})};
_.kS.prototype.pauseVideoDownload=function(q){var Z=this,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,Z.JSC$15944_playerApiPromise,2);w=r.yieldResult;w.pauseVideoDownload(q);_.ub(r)})};
_.kS.prototype.resumeVideoDownload=function(q){var Z=this,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,Z.JSC$15944_playerApiPromise,2);w=r.yieldResult;return _.W(r,w.resumeVideoDownload(q),0)})};
_.kS[M1]=[_.F6,_.ps,_.wK,u4u,lT,KH,mO9,X3];var SuC=new _.F$("DOWNLOAD_STATE_STORE_TOKEN");var v6F=function(q,Z){this.JSC$15963_persistentStorePromiseAccessor=q;this.store=Z;this.upliftCompletionResolver=new _.Dk},R26=function(){var q=_.t().resolve(jFZ),Z;
_.V(function(w){switch(w.nextAddress){case 1:if(q.upliftImplPromise)return w.return(q.upliftImplPromise);_.d9(w,2);q.upliftImplPromise=tGl(q);return _.W(w,q.upliftImplPromise,4);case 4:q.upliftCompletionResolver.resolve();_.QL(w,3);break;case 2:throw Z=_.o3(w),q.upliftCompletionResolver.reject(Z),Z;case 3:return w.return(q.upliftImplPromise)}})},tGl=function(q){var Z,w,r;
return _.V(function(Y){switch(Y.nextAddress){case 1:return _.BF("LOGGED_IN")?_.W(Y,q.JSC$15963_persistentStorePromiseAccessor(),2):Y.return();case 2:Z=Y.yieldResult;if(!Z)return _.JT("vdeur"),Y.return();_.JT("vdeus");_.d9(Y,3);return _.W(Y,b7S(Z),5);case 5:w=Y.yieldResult;q.store.dispatch(bH2(w));Z.observe(function(C){JA2(q.store,C)});
_.QL(Y,4);break;case 3:throw r=_.o3(Y),_.JT("vdeur"),r;case 4:_.JT("vdeuc"),_.ub(Y)}})},b7S=function(q){var Z;
return _.V(function(w){if(w.nextAddress==1)return _.W(w,hu2(q),2);Z=w.yieldResult;return w.return(Z.reduce(function(r,Y){if(!Y.data||!Y.key||!Y.entityType)return r;r[Y.entityType]||(r[Y.entityType]={});r[Y.entityType][Y.key]=Y.data;return r},{}))})};
v6F[M1]=[X3,_.oL];var jFZ;jFZ=new _.F$("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.Kr=new _.F$("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var so=function(q,Z){this.JSC$15966_persistentStorePromiseAccessor=q;this.transportService=Z};
so.prototype.refresh=function(){var q=this,Z,w,r,Y;return _.V(function(C){if(C.nextAddress==1)return _.BF("LOGGED_IN")?_.W(C,q.JSC$15966_persistentStorePromiseAccessor(),2):C.return();if(C.nextAddress!=3)return(Z=C.yieldResult)?_.W(C,Ee2(Z),3):C.return();if((w=C.yieldResult)&&!(Number(w.data.refreshTimestampMs||0)<(0,_.lp)()))return C.return();r={browseId:"SPaccount_downloads"};Y=_.IZ(Xa);_.tD(q.transportService,r,Y).then(function(d){var O;if(Z&&(d==null?void 0:(O=d.responseContext)==null?void 0:
O.maxAgeSeconds)!==0){var H;O=(d==null?void 0:(H=d.responseContext)==null?void 0:H.maxAgeSeconds)||604800;H=String(Math.floor((0,_.lp)())+O*1E3);Z.put("service:downloads_settings:fallback",new _.fO({innertubeResponse:d,refreshTimestampMs:H}))}});
_.ub(C)})};
so[M1]=[_.Bs,_.PP];var Ip=function(q,Z){this.JSC$15970_playerPromise=q;this.store=Z;this.started=!1};
Ip.prototype.start=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1)return q.started?w.return():_.W(w,q.JSC$15970_playerPromise,2);Z=w.yieldResult;Z.addEventListener("onOrchestrationBecameLeader",q.updateIsLeader.bind(q,!0));Z.addEventListener("onOrchestrationLostLeader",q.updateIsLeader.bind(q,!1));if(Z.isOrchestrationLeader)q.updateIsLeader(Z.isOrchestrationLeader());else{var r=new _.df("Function isOrchestrationLeader is undefined",{"player.isReady":Z.isReady(),"player.playVideo":Z.playVideo?
"defined":"undefined"});_.tY(r);q.updateIsLeader(!1)}q.started=!0;_.ub(w)})};
Ip.prototype.updateIsLeader=function(q){this.store.dispatch(_.mu({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:q}}))};
Ip[M1]=[_.F6,_.oL];var JXF=function(q,Z){this.networkStatusManager=q;this.JSC$15973_prefStoragePromise=Z;this.redirectsToPreload=["https://youtube.com"]},z2Z=function(){var q=_.t().resolve(JXF),Z,w,r,Y,C,d;
_.V(function(O){switch(O.nextAddress){case 1:return _.W(O,q.JSC$15973_prefStoragePromise,2);case 2:Z=O.yieldResult;if(!(w=Z)){O.jumpTo(3);break}return _.W(O,Z.get("yt-redirect-prefetch-id"),4);case 4:w=O.yieldResult;case 3:if(w||!q.networkStatusManager.isNetworkAvailable())return O.return();r={cache:"reload",redirect:"manual"};Y=_.P(q.redirectsToPreload);C=Y.next();case 5:if(C.done){if(!Z){O.jumpTo(0);break}return _.W(O,Z.set("yt-redirect-prefetch-id",!0,86400),0)}d=C.value;_.d9(O,8);return _.W(O,
_.$1.fetch(d,r),10);case 10:_.QL(O,6);break;case 8:_.o3(O);case 6:C=Y.next(),O.jumpTo(5)}})};var cs=function(q){q?(this.container=q,this.containerWasInjected=!0):this.containerWasInjected=!1};
cs.prototype.openDialog=function(q,Z,w){var r=this,Y;return _.V(function(C){(Y=r.container)==null||Y.openDialog(q,Z,w);_.ub(C)})};
cs.prototype.closeDialog=function(){var q=this,Z;return _.V(function(w){(Z=q.container)==null||Z.closeDialog();_.ub(w)})};
cs.prototype.isDialogOpen=function(){var q=this,Z,w;return _.V(function(r){return r.return((w=(Z=q.container)==null?void 0:Z.isDialogOpen())!=null?w:!1)})};
cs[M1]=[_.Gj(FE1)];_.Bcl=new _.F$("POPUP_CONTROLLER_TOKEN");var aBF=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
aBF.prototype.registerPanel=function(q,Z){if(q){this.panelMap.set(q,Z);var w=this.pendingPanelResolvers.get(q);w&&(w.resolve(Z),this.pendingPanelResolvers.delete(q))}};
aBF.prototype.getPanel=function(q){var Z=this,w;return _.V(function(r){return(w=Z.panelMap.get(q))?r.return(w):r.return(n6D(Z,q))})};
var n6D=function(q,Z){var w,r;return _.V(function(Y){if(w=q.pendingPanelResolvers.get(Z))return Y.return(w.promise);r=new _.Dk;q.pendingPanelResolvers.set(Z,r);return Y.return(r.promise)})},QF6=function(q){aBF.call(this);
var Z=this;this.popupController=q;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return Z.panelMap.size}}};
_.z(QF6,aBF);_.e=QF6.prototype;_.e.getReloadContinuation=function(q){var Z=this,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,Z.getPanel(q),2);w=r.yieldResult;return r.return(w.getReloadContinuation())})};
_.e.showPanel=function(q,Z,w,r,Y,C,d){var O=this,H,L,S,v;return _.V(function(R){if(R.nextAddress==1){d&&O.updatePanelContinuationDatas.set(q,d);if((H=w)==null?0:(L=H.engagementPanelPopupPresentationConfig)==null?0:L.popupType){S=w.engagementPanelPopupPresentationConfig.popupType;Y===void 0&&(Y=document.body);var B=R.return,n=O.popupController,x=n.openPopup;a:switch(S){case "PANEL_POPUP_TYPE_DIALOG":var K="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":K="DROPDOWN";break a;default:throw Error("dj`"+
S);}return B.call(R,x.call(n,q,Z,K,Y))}return _.W(R,O.getPanel(q),2)}v=R.yieldResult;(Z||C)&&v.updatePanel(Z,!1,r,C);v.showPanel(r);_.ub(R)})};
_.e.hidePanel=function(q){var Z=this,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,Z.getPanel(q),2);w=r.yieldResult;w.hidePanel();Z.popupController.closePopup(q);_.ub(r)})};
_.e.isVisible=function(q,Z){var w=this,r;return _.V(function(Y){if(Y.nextAddress==1)return Z&&!w.panelMap.has(q)?Y.return(!1):_.W(Y,w.getPanel(q),2);r=Y.yieldResult;return Y.return(r.isVisible())})};
_.e.updatePanel=function(q,Z,w,r,Y,C){w=w===void 0?!1:w;var d=this,O;return _.V(function(H){if(H.nextAddress==1){if(!Z&&!Y)return H.return();C&&d.updatePanelContinuationDatas.set(q,C);return _.W(H,d.getPanel(q),2)}O=H.yieldResult;O.updatePanel(Z,w,r,Y);_.ub(H)})};
_.e.registerPanelContent=function(q,Z){q&&this.panelContentMap.set(q,Z)};
_.e.getPanelContent=function(q){return this.panelContentMap.get(q)};
_.e.getUpdatePanelContinuationData=function(q){return this.updatePanelContinuationDatas.get(q)};
QF6[M1]=[_.Bcl];var Mp=function(q,Z){this.innertubeTransportService=q;this.JSC$15989_screenManager=Z},E6c=function(q){var Z;
return!((Z=q.panelLoadingStrategy)==null||!Z.requestTemplate)};
Mp.prototype.makeRequest=function(q){var Z=this,w,r;return _.V(function(Y){switch(Y.nextAddress){case 1:if(!E6c(Z)){Y.jumpTo(2);break}_.d9(Y,3);return _.W(Y,_.zR(Z.innertubeTransportService,q),5);case 5:return w=Y.yieldResult,w?Y.return(w.content):(_.tY(Error("ej")),Y.return(void 0));case 3:r=_.o3(Y),_.tY(r);case 2:return Y.return(void 0)}})};
Mp.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
Mp.prototype.execute=function(q){var Z=this,w,r,Y,C,d,O,H,L,S,v;return _.V(function(R){if(R.nextAddress==1){w=q;r=w.data;Y=w.fallbackVe;C=w.parentVe;d=w.createScreenConfig;O=w.renderFn;H=w.command;Z.panelLoadingStrategy=r;var B,n,x=((B=Z.panelLoadingStrategy)==null?0:B.screenVe)?(n=Z.panelLoadingStrategy)==null?void 0:n.screenVe:Y;x&&_.mG(Z.JSC$15989_screenManager,x,C,d);return(L=Z.getContent())?_.W(R,O(L),2):R.jumpTo(2)}return R.nextAddress!=4?E6c(Z)?_.W(R,Z.makeRequest(H),4):R.return():(v=S=R.yieldResult)?
_.W(R,O(v),0):R.return()})};
Mp[M1]=[_.PP,_.wK];var Ft=function(){};
Ft.prototype.getContainer=function(){return _.mJ()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Ft.prototype.openSheet=function(q,Z){var w=this,r,Y,C,d,O,H;return _.V(function(L){switch(L.nextAddress){case 1:return r={stack:[],error:void 0,hasError:!1},_.d9(L,2,3),Y=_.Nb,_.W(L,w.isSheetOpen(),5);case 5:C=L.yieldResult;_.Qy(r,_.$Nj(Y));if(C&&!_.b("delay_sheet_open_killswitch")){if(Z&&w.currentTarget===Z)return(d=w.getContainer())==null||d.closeSheet(),L.return();w.pendingData={data:q,target:Z};return L.return()}q.viewModel&&(q={viewModel:q.viewModel});(O=w.getContainer())==null||O.openSheet(q,
Z);w.currentTarget=Z;case 3:_.V2(L);_.ED(r);_.Wq(L,0);break;case 2:H=_.o3(L),r.error=H,r.hasError=!0,L.jumpTo(3)}})};
Ft.prototype.closeSheet=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1)return _.W(w,(Z=q.getContainer())==null?void 0:Z.closeSheet(),2);if(w.nextAddress!=4)return q.currentTarget=void 0,!q.pendingData||_.b("delay_sheet_open_killswitch")?w.jumpTo(0):_.W(w,q.openSheet(q.pendingData.data,q.pendingData.target),4);q.pendingData=void 0;_.ub(w)})};
Ft.prototype.isSheetOpen=function(){var q=this,Z,w;return _.V(function(r){return r.return((w=(Z=q.getContainer())==null?void 0:Z.isSheetOpen())!=null?w:!1)})};var Y4=window.documentPictureInPicture;var xoF=new _.F$("APP_ROOT");var Pf1=_.Fr(["dark"]),dPN=_.Fr(["system-icons"]),V59=_.Fr(["typography"]),O02=_.Fr(["lang"]),H02=_.Fr(["style"]),YSe=_.Fr(["dir"]),$Pz=_.Fr(["rounded-container"]),ecj=_.Fr(["style"]),oV1=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Np=function(q){this.JSC$16001_clientRoot=q;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Np.prototype.openWindow=function(q){var Z=this,w,r;return _.V(function(Y){if(Y.nextAddress==1)return window.documentPictureInPicture&&_.aT()&&!Z.currentPipWindow?_.W(Y,(w=Y4?Y4:null)==null?void 0:w.requestWindow(q),2):Y.return(!1);if(Y.nextAddress!=3){r=Y.yieldResult;if(!r)return Y.return(!1);r.addEventListener("pagehide",function(){Tcc(Z)});
r.addEventListener("resize",Z.handlePipWindowResize);Z.pipWindowResizeDelay=new _.Gl(function(){Z.currentPipWindow&&_.yY(Z.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.O3(Z.currentPipWindow.innerWidth,Z.currentPipWindow.innerHeight)])},r);
WfI(r);LfN(r);return _.W(Y,rkj(r),3)}if(!qS2())return Y.return(!1);Z.currentPipWindow=r;Z.JSC$16001_eventForwarder=uT2(r,Z.JSC$16001_clientRoot);Z.pipWindowResizeDelay.start();return Y.return(!0)})};
Np.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var Tcc=function(q){if(q.currentPipWindow){var Z,w;(Z=Y4?Y4:null)==null||(w=Z.window)==null||w.close();q.currentPipWindow.removeEventListener("resize",q.handlePipWindowResize);var r;(r=q.pipWindowResizeDelay)==null||r.dispose();q.pipWindowResizeDelay=void 0;var Y;(Y=q.JSC$16001_eventForwarder)==null||Y.stop();q.JSC$16001_eventForwarder=void 0;Z=_.P(q.onCloseCallbacks);for(w=Z.next();!w.done;w=Z.next())w=w.value,w();q.onCloseCallbacks=[];q.currentPipWindow=null}};
Np.prototype.getWindow=function(){return this.currentPipWindow};
var UoS=function(q,Z){var w;(w=q.onCloseCallbacks)==null||w.push(Z)};
_.My.Object.defineProperties(Np.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Np[M1]=[xoF];var k26=new _.F$("PICTURE_IN_PICTURE_CONTROLLER");var SS9=function(q,Z){this.lengthY=this.lengthX=0;this.lengthX=Z.x-q.x;this.lengthY=Z.y-q.y};var KP6=function(){},hTF=function(q,Z){var w;
(w=q.headerElement)==null||w.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:Z}))};var sFZ=function(){};
sFZ.prototype.openPopup=function(q,Z,w,r){var Y=this,C;return _.V(function(d){if(!Y.container)return d.return();C={openPopupAction:{popup:Z,popupType:w,uniqueId:q}};return d.return(Y.container.handleOpenPopupAction(C,r))})};
sFZ.prototype.closePopup=function(q){this.container&&this.container.closePopup(q)};var IBS=function(){this.openTunnels=new Map},Wze=function(q,Z,w){if(Rc2(w)){w={handleEvent:function(d){Z&&!Z.closed&&typeof Z.postMessage==="function"&&d&&d.origin&&d.source===Z&&d.data&&d.data.action==="gcl_setup"&&Z.postMessage({action:"gcl_transfer",
gadSource:2},d.origin)}};
for(var r=_.P(q.openTunnels),Y=r.next();!Y.done;Y=r.next()){var C=_.P(Y.value);Y=C.next().value;C=C.next().value;if(Y.closed)try{window.removeEventListener("message",C),q.openTunnels.delete(Y)}catch(d){_.tY(d)}}Z&&q.openTunnels.size<15&&(q.openTunnels.set(Z,w),window.addEventListener("message",w))}};var cXq=function(){this.clientParams=new Map},iA6=function(q){for(var Z=_.P(q.clientParams.keys()),w=Z.next();!w.done;w=Z.next())w=w.value,w.startsWith("yt-mini-app-share")&&q.clientParams.delete(w)};var MGF=function(q,Z){_.u6.call(this);var w=this;this.shortsController=q;this.storeWithShorts=Z;q=_.wF(this.storeWithShorts,_.nFI,function(r){if(r){var Y,C=(Y=w.shortsController.getRoot())==null?void 0:Y.getPlayer(),d;(Y=(d=w.shortsController.alternativePlayerContainerElement)==null?void 0:d.getPlayerContainer())&&(C==null||C.appendTo(Y))}else{var O;d=(O=w.shortsController.alternativePlayerContainerElement)==null?void 0:O.getPlayerContainer().querySelector("#player");Y=w.shortsController.activeIndex;
(O=(C=w.shortsController.getRoot())==null?void 0:C.querySelector('ytd-reel-video-renderer[id="'+Y+'"] #player-container'))&&(d==null||d.appendTo(O,void 0,!0))}});
this.addOnDisposeCallback(q)};
_.z(MGF,_.u6);var lw=function(q,Z,w,r,Y){var C=this;this.storeWithShorts=q;this.ephemeralResponseStore=Z;this.store=w;this.innertubeTransportService=r;this.innertubeTransportLoader=Y;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.ok(_.$_);this.isShortsPipActive=_.ok(_.ee);this.nextReelVe=_.C6(56921);this.prevReelVe=_.C6(56922);this.backButtonVe=_.C6(22156);this.TEST_ONLY={getActiveModules:function(){return C.activeModules}}},lq9,GYe,FPy;
lw.prototype.initOrDisposeActiveModules=function(q){q?this.activeModules.push(new MGF(this,this.storeWithShorts)):(_.vT6(this.activeModules),this.activeModules.length=0)};
lw.prototype.getRoot=function(){return this.rootElement};
lw.prototype.setActiveIndex=function(q){this.activeIndex=q};
_.sXp=function(q,Z){var w,r,Y,C,d,O;return _.V(function(H){switch(H.nextAddress){case 1:return w=new Xv,(r=w.JSC$11769_getStoreKey(Z))&&q.ephemeralResponseStore.has(r)?_.W(H,q.ephemeralResponseStore.get(r),7):_.W(H,FPy(q,Z),4);case 4:Y=H.yieldResult;if(!r){H.jumpTo(3);break}C=ll(Y,3600);return _.W(H,q.ephemeralResponseStore.put(r,new _.fO(C)),3);case 7:Y=(d=H.yieldResult)==null?void 0:_.Zb(d);case 3:return Y.replacementEndpoint&&(O=_.J(Y.replacementEndpoint,_.Yz))&&Y.sequenceContinuation&&(O.sequenceParams=
Y.sequenceContinuation),H.return(Y)}})};
lq9=function(q,Z){Z=(new mU).JSC$11769_getStoreKey(Z);return!!Z&&q.ephemeralResponseStore.has(Z)};
GYe=function(q,Z,w){var r,Y,C,d,O;_.V(function(H){if(H.nextAddress==1){r=new mU;Y=r.JSC$11769_getStoreKey(Z);if(!Y)return H.return();if(w.reelWatchSequenceResponse)return C=ll(w.reelWatchSequenceResponse,3600),q.ephemeralResponseStore.put(Y,new _.fO(C)),H.jumpTo(0);if(!q.ephemeralResponseStore.has(Y))return H.jumpTo(0);O=w;return _.W(H,q.ephemeralResponseStore.get(Y),4)}O.reelWatchSequenceResponse=(d=H.yieldResult)==null?void 0:_.Zb(d);_.ub(H)})};
FPy=function(q,Z){var w=w===void 0?{}:w;var r,Y,C;return _.V(function(d){switch(d.nextAddress){case 1:if(q.innertubeTransportService){r=q.innertubeTransportService;d.jumpTo(2);break}if(!q.innertubeTransportLoader){_.ns(Error("gj"));d.jumpTo(2);break}return _.W(d,q.innertubeTransportLoader(),4);case 4:r=d.yieldResult;case 2:return _.W(d,(Y=r)==null?void 0:_.zR(Y,Z,w),5);case 5:return C=d.yieldResult,d.return(C)}})};
_.My.Object.defineProperties(lw.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
lw[M1]=[zHK,_.A_,r1,_.Gj(_.PP),_.Gj(Ej1)];_.NcZ=new _.F$("STORAGE_MANAGER_TOKEN");var lBb=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},G2l;
lBb.prototype.enqueue=function(q,Z){Z===1?this.currentPersistentToast=q:this.queue.push(q);this.openToast()};
lBb.prototype.openToast=function(){var q;(q=this.currentToast)!=null&&q.opened||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.pNl=new _.F$("TOAST_MANAGER_TOKEN");var XNc;_.moq=_.xl(function(q){return _.u("basic-content-view-model",{class:_.GL("ytBasicContentViewModelHost",_.aA(q.className))},_.u(_.PF,{cond:function(){return q.data().headline},
then:function(Z){return _.u("div",{class:"ytBasicContentViewModelHeadline"},_.u(_.r6,{text:Z}))}}),_.u(_.dA,{each:function(){return q.data().paragraphs||[]},
keyBy:"INDEX"},function(Z){return _.u("div",{class:"ytBasicContentViewModelParagraph"},_.u(_.PF,{cond:function(){var w=Z();return!!(w.header||w.customHeader||w.headline)},
then:function(){return _.u(XNc,{paragraph:Z})}}),_.u(_.PF,{cond:function(){return Z().asset||Z().text},
then:function(){return _.u("div",{class:"ytBasicContentViewModelParagraphContent"},_.u(_.PF,{cond:function(){return Z().asset},
then:function(w){return _.u("div",{class:"ytBasicContentViewModelParagraphAsset"},_.u(_.Hx,{data:w},{contentPreviewImageViewModel:_.yS}))}}),_.u(_.PF,{cond:function(){return Z().text},
then:function(w){return _.u("div",{class:"ytBasicContentViewModelParagraphText"},_.u(_.r6,{text:w}))}}))}}))}))},"Id");
XNc=_.xl(function(q){var Z=q.paragraph;return _.u(_.lS,null,_.u(_.PF,{cond:function(){return Z().headline},
then:function(w){return _.u(_.r6,{text:w,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.u(_.Hx,{data:function(){return Z().header||Z().customHeader}},{sectionHeaderViewModel:function(w){return _.u(_.U0,{data:w.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Jd");var fBV=_.xl(function(q){return _.u("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.u(_.PF,{cond:function(){return q.expanded()},
then:function(){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.u("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.u(_.PF,{cond:function(){return q.data().expandedTitleImage},
then:function(Z){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.u(_.aQ,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:Z}))}}),_.u("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.u("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.u(_.r6,{text:function(){return q.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.u(_.r6,{text:function(){return q.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.u(_.r6,{text:function(){return q.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.u("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.u(_.Hx,{data:function(){return q.data().infoButton}},{buttonViewModel:_.vx}),_.u(_.Hx,{data:function(){return q.data().collapseButton}},{buttonViewModel:function(Z){return _.u(_.vx,{data:Z.data,
onClick:function(){var w;(w=q.expandedCallback)==null||w.call(q,!1)}})}})))},
else:function(){return _.u(AXC,Object.assign({},q))}}))},"Kd"),Do8=_.xl(function(q){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.u(_.PF,{cond:function(){return q.data().collapsedLabelImage},
then:function(Z){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.u(_.aQ,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:Z,alt:""}))}}),_.u(_.r6,{text:function(){return q.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Ld"),AXC=_.xl(function(q){var Z=_.fn(function(){var w;
return void((w=q.expandedCallback)==null?void 0:w.call(q,!0))});
return _.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":Z},_.u("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.u(_.PF,{cond:function(){return q.data().collapsedImage},
then:function(w){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.u(_.aQ,{width:16,height:16,data:w,alt:""}))}}),_.u(_.PF,{cond:function(){return q.data().showLeadingCollapsedLabel},
then:function(){return _.u(Do8,Object.assign({},q))}}),_.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.u(_.r6,{text:function(){return q.data().collapsedTitle}}))),_.u("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.u(_.PF,{cond:function(){return!q.data().showLeadingCollapsedLabel},
then:function(){return _.u(Do8,Object.assign({},q))}}),_.u(_.Hx,{data:function(){return q.data().infoButton}},{buttonViewModel:_.vx}),_.u(_.Hx,{data:function(){return q.data().expandButton}},{buttonViewModel:function(w){return _.u(_.vx,{data:w.data,
onClick:function(){var r;(r=q.expandedCallback)==null||r.call(q,!0)}})}})))},"Md");var h2F=_.xl(function(q){var Z=_.P(_.hE(function(){return q.data().initiallyExpanded})),w=Z.next().value,r=Z.next().value,Y,C=(Y=_.t().resolve(_.Gj(_.RQ)))==null?void 0:Y(),d=function(){var O=q.data().colorData;
if(O)return C?O==null?void 0:O.darkColorPalette:O==null?void 0:O.lightColorPalette};
return _.u("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.y1({"background-color":function(){var O=d();return(O==null?0:O.section2Color)?_.uq(O.section2Color):""}})},_.u(_.Hx,{data:function(){return q.data().header}},{expandableMetadataHeaderViewModel:function(O){return _.u(fBV,{data:O.data,
expanded:function(){return!!w()},
expandedCallback:function(H){r(H)}})}}),_.u(_.PF,{cond:function(){return w()},
then:function(){return _.u("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.u(_.Hx,{data:function(){return q.data().expandedContent}},{horizontalShelfViewModel:function(O){return _.u(_.$t,{data:O.data,
includeMargin:!0,forceNarrowLayout:!0,palette:d})},
videoSummaryContentViewModel:function(O){return _.u(i$v,{data:O.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(O){return _.u(qs,{data:O.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(O){return _.u(_.moq,{data:O.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.u(_.Hx,{data:function(){return q.data().expandedBottomButtons}},{buttonViewModel:function(O){return _.u("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.u(_.vx,{data:O.data}))}}))}}))},"Nd");var yXZ=_.xl(function(q){var Z=q.text;var w=q.marqueeSpacing;var r=q.scrollDelay;var Y=q.scrollDuration;var C=q.enableMarqueeScroll;q=q.large;var d=_.P(_.qo(!1,void 0,"kfNqfd")),O=d.next().value,H=d.next().value,L=_.P(_.qo(0,void 0,"bYgZbf"));d=L.next().value;var S=L.next().value,v=_.Iw();L=_.Iw();var R=_.Iw(),B=_.t().resolve(_.JE);_.L7(function(){if(C()){var K=R.value.getBoundingClientRect().width,k=v.value.getBoundingClientRect().width;if(K>k){var G=(B==="ltr"?-1:1)*(K+(w?w():16));Promise.resolve().then(function(){H(!0);
S(G)})}}});
var n={},x={};return _.u("marquee-scroll",{class:_.GL("ytMarqueeScrollHost",(n.ytMarqueeScrollHostLarge=q,n)),el:v},_.u("div",{id:"marquee-scroll-inner-container",class:_.GL("ytMarqueeScrollInnerContainer",(x.ytMarqueeScrollAnimationEnabled=function(){return O()},x)),
el:L,style:_.y1({gap:w?(0,_.wH)(w):"16px","animation-duration":Y?knW(Y):"16s","animation-delay":r?knW(r):"3s","--marquee-translate":(0,_.wH)(d)})},_.u("span",{el:R,dir:"auto"},_.u(_.r6,{text:Z,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.u(_.PF,{cond:O,then:function(){return _.u("span",{"aria-hidden":"true",dir:"auto"},_.u(_.r6,{text:Z,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Od");_.i7q=_.xl(function(q){var Z=q.data;var w=q.overlayDensity;q=_.fn(function(){Z().onTapCommand&&_.Sp(Z().onTapCommand);return!1});
var r=_.bo(),Y={};return _.u("reel-sound-metadata-view-model",{class:_.GL("ytReelSoundMetadataViewModelHost",(Y.ytReelSoundMetadataViewModelHostLarge=function(){return(w==null?void 0:w())===1},Y)),
"on:click":q,tabindex:0,role:"button","on:keydown":r},_.u("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.u(_.PF,{cond:function(){return Z().musicIcon},
then:function(C){return _.u(_.aQ,{data:C,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.u("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.u(yXZ,{text:function(){return Z().soundMetadata},
enableMarqueeScroll:function(){return!!Z().enableMarqueeScroll},
large:function(){return(w==null?void 0:w())===1}}))))},"Pd");var g6V,qqy,GV,Yq7,eeq,rfC,dR7,POl;g6V=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];qqy=_.m6("wil_icon_max_concurrent_fetches",Infinity);
GV=function(q,Z,w){var r=this;this.iconSet=q;this.appDirection=Z;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.$1.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.b("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.b("wil_icon_network_first");this.renderWhenIdle=_.b("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.b("wil_icon_load_immediately");this.isPurging=!1;q=function(){r.cacheStorageAvailable&&(r.cacheStorageAsync=_.$1.caches.open("yt-icons").then(function(C){return r.cacheStorageSync=C}).catch(function(){r.cacheStorageAvailable=!1}))};
w=(w==null?void 0:w())||{};w=_.P(Object.entries(w));for(Z=w.next();!Z.done;Z=w.next()){var Y=_.P(Z.value);Z=Y.next().value;Y=Y.next().value;Y=iS(Y);Zsb(Y);this.iconCache[Z]=Y.cloneNode(!0)}this.isPurging=wFy(this);this.isPurging instanceof Promise?this.isPurging.then(q):q()};
_.pSI=function(q,Z){var w=q.resolveIcon(Z);return w?q.renderingMode===1?rfC(q,w,q.renderingMode):(Z=q.iconCache[w.url])?(Z=Z.cloneNode(!0),Yq7(q,Z),rfC(q,w,q.renderingMode,Z)):_.$Rc(q,w).then(function(r){var Y=r?0:1;Yq7(q,r);return rfC(q,w,Y,r)}):(_.Rw(new _.df("Icon not found",{iconShape:Z})),function(){})};
Yq7=function(q,Z){if(Z){q.counter+=1;q="_yt"+q.counter;Z=[Z].concat(_.Ju(Z.getElementsByTagName("*")));Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next())if(w=w.value,w.tagName==="style"&&w.textContent)w.textContent=eeq(w.textContent,q,!0);else for(var r=_.P(w.attributes),Y=r.next();!Y.done;Y=r.next()){Y=Y.value;Y.name==="id"&&(Y.value+=q);["mask","fill","clip-path"].includes(Y.name)&&(Y.value=eeq(Y.value,q));if(Y.name==="style"){var C=w.style;try{C.cssText=eeq(C.cssText,q,!0)}catch(S){var d=void 0,O=
void 0,H=void 0,L=void 0;pr({error:((d=S)==null?void 0:(H=(O=d).toString)==null?void 0:H.call(O))||"",el:w.outerHTML,style:!!C,cssText:(L=C)==null?void 0:L.cssText})}}Y.name==="xlink:href"&&(Y.value=Y.value.replace(/#(.*)/,"#$1"+q))}}};
eeq=function(q,Z,w){var r=/url\(["']?#(.*?)["']?\)/;(w===void 0?0:w)&&(r=/url\(["']?#(.*?)["']?\)/g);return q.replace(r,"url(#$1"+Z+")")};
rfC=function(q,Z,w,r){return function(Y,C){var d=Object.assign({},{iconColor:"currentcolor",iconWidth:Z.size+"px",iconHeight:Z.size+"px",iconDisplay:"block"},C);C=_.dX("DIV");var O=d.iconColor,H=d.iconFilter;d="width: "+d.iconWidth+"; height: "+d.iconHeight+"; display: "+d.iconDisplay+";";H&&(d+=" filter: "+H+";");w===0&&(d+=" fill: "+O+";");w===1&&(H=Z.url,d+=" -webkit-mask: url("+H+") no-repeat center / cover; mask: url("+(H+") no-repeat center / cover; background-color: ")+O);Z.allowMirroring&&
q.appDirection==="rtl"&&(d+=" transform: scale(-1, 1); transform-origin: center center;");C.setAttribute("style",d);w===0&&r&&C.appendChild(r);Y.appendChild(C)}};
_.$Rc=function(q,Z){var w,r,Y;return _.V(function(C){w=function(d){return I9(d)};
r=Z.url;if(!CO7(r))throw Error("hj");Y=POl(q,r);return C.return(Y.then(function(d){return d.clone().text()}).then(function(d){var O=w(d);
d=Z.size;var H=_.dX("DIV");_.fA(H,O);O=_.Vb(H.firstElementChild!==void 0?H.firstElementChild:_.Lmm(H.firstChild,!0));d=Zsb(O,d);q.iconCache[r]=d.cloneNode(!0);delete q.responsePromises[r];return d}).catch(function(){}))})};
dR7=function(q){var Z,w=(Z=q.requestAninmationFrameResolver)==null?void 0:Z.promise;w||(q.requestAninmationFrameResolver=new _.Dk,w=q.requestAninmationFrameResolver.promise,_.$1.requestAnimationFrame(function(){var r;(r=q.requestAninmationFrameResolver)==null||r.resolve();q.requestAninmationFrameResolver=null}));
return w};
POl=function(q,Z){var w,r;return _.V(function(Y){if(Y.nextAddress==1)return q.waitForAnimationFrame?_.W(Y,dR7(q),2):Y.jumpTo(2);w=q.responsePromises[Z];w||(r=function(){var C,d,O;return _.V(function(H){switch(H.nextAddress){case 1:if(!q.cacheStorageAvailable){C=void 0;H.jumpTo(2);break}if(d=q.cacheStorageSync){H.jumpTo(3);break}return _.W(H,q.cacheStorageAsync,4);case 4:d=H.yieldResult;case 3:C=d;case 2:return O=C,q.isNetworkFirstStrategy?H.return(q.fetchAndUpdateCache(Z,O).catch(q.getCacheStorageResponse.bind(q,
Z,O))):H.return(q.getCacheStorageResponse(Z,O).catch(q.fetchAndUpdateCache.bind(q,Z,O)))}})},w=q.renderWhenIdle?new Promise(function(C,d){_.WO(_.v5,function(){r().then(C).catch(d)},10)}):r(),q.responsePromises[Z]=w);
return Y.return(w.catch(function(C){delete q.responsePromises[Z];pr({error:(C==null?0:C.toString)?C.toString():"",url:Z});throw C;}))})};
GV.prototype.fetchAndUpdateCache=function(q,Z){var w=this;return _.V(function(r){return r.return(V9c(w,q).then(function(Y){Osc(w,q,Y,Z);return Y}))})};
var V9c=function(q,Z){var w;return _.V(function(r){if(q.numFetches<qqy)return q.numFetches+=1,r.return(HsD(q,Z).finally(function(){--q.numFetches;if(Object.keys(q.queuedResponseResolvers).length){var Y=Object.keys(q.queuedResponseResolvers)[0],C=q.queuedResponseResolvers[Y];delete q.queuedResponseResolvers[Y];C.resolve(V9c(q,Y))}}));
w=new _.Dk;q.queuedResponseResolvers[Z]=w;return r.return(w.promise)})},HsD=function(q,Z,w){w=w===void 0?2:w;
var r;return _.V(function(Y){r={credentials:"same-origin",priority:"low"};return Y.return(_.$1.fetch(Z,r).then(function(C){return C.ok?C:Promise.reject(Error("ij`"+C.status+"`"+C.statusText))}).catch(function(C){if(w>0)return HsD(q,Z,w-1);
throw C;}))})},Osc=function(q,Z,w,r){_.V(function(Y){return r?Y.return(new Promise(function(C){_.WO(_.v5,function(){var d,O;
return _.V(function(H){switch(H.nextAddress){case 1:if(!q.isNetworkFirstStrategy){d=void 0;H.jumpTo(2);break}return _.W(H,r.match(Z).catch(function(){}),3);
case 3:d=H.yieldResult;case 2:if(O=d){H.jumpTo(4);break}return _.W(H,r.put(Z,w.clone()).catch(function(L){pr({error:(L==null?0:L.toString)?L.toString():"",url:Z})}),4);
case 4:C(),_.ub(H)}})},50)})):Y.return()})};
GV.prototype.getCacheStorageResponse=function(q,Z){return _.V(function(w){return Z?w.return(Z.match(q).then(function(r){return r&&r.ok?r:Promise.reject()})):w.return(Promise.reject())})};
var Zsb=function(q,Z){Z===void 0||q.getAttribute("viewBox")||q.setAttribute("viewBox","0 0 "+Z+" "+Z);q.setAttribute("focusable","false");q.setAttribute("aria-hidden","true");try{q.style.pointerEvents="none",q.style.display="inherit",q.style.width="100%",q.style.height="100%"}catch(Y){var w;pr({error:((w=Y)==null?0:w.toString)?Y.toString():""});try{q.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(C){var r;pr({error:((r=C)==null?0:r.toString)?C.toString():
""})}}return q},CO7=function(q){for(var Z=_.P(g6V),w=Z.next();!w.done;w=Z.next())if(q.startsWith(w.value)&&q.endsWith(".svg"))return!0;
return!1};
GV.prototype.resolveIcon=function(q){return this.iconSet.resolveIcon(q)};
var pr=function(q){_.bx(new _.df("Error in IconManager",q))},wFy=function(q){if(_.b("wil_icons_cache_purge_killswitch"))return!1;
try{var Z=_.$1.localStorage}catch(C){return!1}if(!Z||!q.cacheStorageAvailable)return!1;var w=function(C){try{var d;(d=Z)==null||d.setItem("yt-icons-last-purged",C.toString())}catch(H){var O;pr({error:((O=H)==null?0:O.toString)?H.toString():""})}},r=Number(Z.getItem("yt-icons-last-purged"));
if(!r)return r=new Date,r=r.setDate(r.getDate()-Math.floor(Math.random()*90+1)),w(r),!1;if(function(C,d){C=new Date(C);d=new Date(d);return d.getMonth()-C.getMonth()+12*(d.getFullYear()-C.getFullYear())}(r,Date.now())<3)return!1;
try{return _.$1.caches.delete("yt-icons").then(function(C){C&&w(Date.now());return C}).catch(function(){return!1}).finally(function(){q.isPurging=!1})}catch(C){var Y;
pr({error:((Y=C)==null?0:Y.toString)?C.toString():""});return!1}};
GV[M1]=[BD7,_.JE,_.Gj(Q4b)];_.Xt=function(q,Z){this.iconManager=q;this.iconsToFetch=Z};
_.Xt[M1]=[_.my,_.Gj(nxS)];var W6l=function(q,Z,w){this.requestKey=q;this.uJl=Z;this.rTw=w;this.nY5=function(){return new XMLHttpRequest};
this.t4B=void 0;this.sjW=[]};
W6l.prototype.getLatestChallengeResponse=function(){return this.rTw};
var XG2=function(q,Z,w){var r,Y,C,d;return _.V(function(O){if(O.nextAddress==1){_.bI("attestation_challenge_fetch");_.JT("att_fs",void 0,"attestation_challenge_fetch");if(!q.t4B)throw new _.LN(9,"Missing fetcher");return _.W(O,q.t4B(Z,w),2)}r=O.yieldResult;C=(Y=r)==null?void 0:Y.bgChallenge;if(!C)throw new _.LN(15,"Missing field");q.rTw=r;q.sjW.forEach(function(H){H(r)});
d=TBN(C);_.JT("att_fc",void 0,"attestation_challenge_fetch");gDN("attestation_challenge_fetch");return O.return(d)})},o6p=function(q,Z){var w,r,Y,C,d;
return _.V(function(O){switch(O.nextAddress){case 1:w=new wX(100,3E5,.25,2),r=void 0;case 2:if(!(w.currBackoffCount_<10)){O.jumpTo(4);break}_.d9(O,5);if(!(w.currBackoffCount_>0)){O.jumpTo(7);break}return _.W(O,b0N(w.getValue()),7);case 7:return _.W(O,oT7(q,Z),9);case 9:return Y=O.yieldResult,O.return(Y);case 5:C=_.o3(O);C instanceof _.LN?r=C:(d=C instanceof Error?C.message:"Unknown",r=new _.LN(9,d));ZCp(w);O.jumpTo(2);break;case 4:if(r)throw r;throw new _.LN(9,"Unknown error");}})},oT7=function(q,
Z){Z=k1K(KtX(new Ubv,Z),q.requestKey);
var w=new _.Dk,r=q.nY5();r.open("POST",q.uJl);r.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");r.setRequestHeader("Content-Type","application/json+protobuf");r.onload=function(){if(QV9(r)){var Y=G2e(r.responseText);w.resolve(Y)}else w.reject(new _.LN(_.NA1(DV(r)),r.statusText))};
r.onerror=function(){w.reject(new _.LN(_.NA1(DV(r)),r.statusText))};
r.send(Z.serialize());return w.promise};var L6Z=function(q){this.networkStatusManager=q;this.isDownloaded=x22===void 0?function(){return!1}:x22;
this.isReady=!1;this.bo5=ueq(this)},ueq=function(q){var Z;
return _.V(function(w){if(w.nextAddress==1)return _.W(w,t99(),2);if(w.nextAddress!=3)return Z=w.yieldResult,_.W(w,LTJ(Z),3);q.wS=w.yieldResult;zc8(q.wS).then(function(){q.isReady=!0});
return w.return(q.wS)})},SqZ=function(q,Z,w){q.wS?(q=q.wS.gZ({pP:w,
zOt:!0,kZw:!0}),Z.serviceIntegrityDimensions={poToken:q}):_.tY(Error("jj"))};
L6Z.prototype.processContext=function(q){var Z=this;if(!q.input.match(_.IZ(qW2)))return _.EN();var w=q.innerTubeRequest,r=w.videoId;return!r||this.isDownloaded(w)||this.networkStatusManager&&!this.wS&&!this.networkStatusManager.isNetworkAvailable()?_.EN():this.wS?this.isReady?(SqZ(this,w,r),_.EN()):new QH(zc8(this.wS).then(function(){SqZ(Z,w,r)})):new QH(this.bo5.then(function(Y){return _.V(function(C){if(C.nextAddress==1)return _.W(C,zc8(Y),2);
SqZ(Z,w,r);_.ub(C)})}))};var vTy=new _.F$("WEB_PO_CONTEXT_PROCESSOR");var jzy=function(q,Z){var w=this;this.czT=0;var r;this.oLd=(r=Z==null?void 0:Z.oLd)!=null?r:window;this.networkStatusManagerPromise=Z==null?void 0:Z.networkStatusManagerPromise;var Y;this.requestKey=(Y=Z==null?void 0:Z.requestKey)!=null?Y:_.Af("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var C;this.kHl=(C=Z==null?void 0:Z.kHl)!=null?C:function(H){return new Jq(H)};
var d;r=(d=Z==null?void 0:Z.kCl)!=null?d:function(H,L,S){return new W6l(H,L,S)};
this.bgChallenge=TBN(q.bgChallenge);this.ttlSeconds=UE2(Gs(q.challenge||""));this.oN=r(this.requestKey,_.b("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.$1.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",q);JkT(this.oN);var O;this.eu0=(O=Z==null?void 0:Z.eu0)!=null?O:function(H){_.Yc(w.oLd.document,"visibilitychange",function(){w.oLd.document.visibilityState===
"visible"&&H()})}},ReD=function(q){if(!q.zU){var Z={maxAttempts:5,
dgt:q.ttlSeconds*1E3};Bh9(q.oLd);q.zU=q.kHl({oN:q.oN,oa:{disable:_.b("html5_web_po_disable_remote_logging"),xz:"aGIf",giz:JTN("html5_web_po_experiment_ids"),v5v:_.b("wpo_dis_lfdms")?0:1E3},lm2:Z,ttd:q.bgChallenge,seE:as6});q.czT=Date.now();Ft7(q.zU,function(){q.czT=Date.now()});
zeN(q.zU,function(){return _.V(function(r){return r.return(t9D(q))})});
var w=q.sDy.bind(q);q.networkStatusManagerPromise&&q.ttlSeconds>0&&q.networkStatusManagerPromise.then(function(r){r.listen("publicytnetworkstatus-online",w)});
q.eu0(w)}};
jzy.prototype.sDy=function(){if(Date.now()>this.czT+this.ttlSeconds*1E3){var q;(q=this.zU)==null||MCJ(q)}};
var t9D=function(q){if(q.fPB)return q.fPB;if(!q.zU)throw Error("kj");q.fPB=new nN({zU:q.zU,oN:q.oN,su2:!0,onError:as6});return q.fPB},Qj6=function(q,Z){q=new jzy(q,Z);
ReD(q);t9D(q)};var mz=function(q,Z){this.store=q;this.queue=[];this.supportsFocus=_.b("web_ephemeral_actions_focus");Z==null||Z.addEventListener("yt-navigate-start",this.reset.bind(this))};
mz.prototype.enqueue=function(q){var Z=q.command,w=q.durationMs,r=q.elementToFocus;var Y=q.label;var C=q.elementToFocus;q.command?Y=_.dT("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:Y,shortcut:_.dT("SHIFT_PLUS_ENTER")}):C&&this.supportsFocus&&(q=Y+". "+_.dT("SHIFT_PLUS_ENTER")+" to move focus.",Y=_.dT("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:Y,shortcut:_.dT("SHIFT_PLUS_ENTER")},q));w={announcement:Y,durationMs:w!=null?w:this.supportsFocus?8E3:void 0};Z?w.command=Z:r&&this.supportsFocus&&(r.classList.add("ephemeral-action-focusable-element"),
w.selector=r.tagName+".ephemeral-action-focusable-element");this.queue.push(w);bsl(this)};
mz.prototype.activate=function(q){var Z=_.A6j(this.store.getState());if(Z){if(Z==null?0:Z.command)_.um(Z.command),this.store.dispatch(fx7(null));(Z==null?0:Z.selector)&&this.supportsFocus&&(Z=document.querySelector(Z.selector),_.x4j(Z));q.preventDefault()}};
var bsl=function(q){if(!_.A6j(q.store.getState())&&q.queue.length){var Z=q.queue.shift();Z&&(q.previousAnnouncement===Z.announcement&&(Z.announcement+="\u00a0"),q.store.dispatch(fx7(Z)),q.previousAnnouncement=Z.announcement,q.timeoutId=setTimeout(function(){if(Z.selector&&q.supportsFocus){var w;(w=document.querySelector(Z.selector))==null||w.classList.remove("ephemeral-action-focusable-element")}q.store.dispatch(fx7(null));bsl(q)},Z.durationMs))}};
mz.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(fx7(null));this.queue.length=0;this.timeoutId=void 0};
mz[M1]=[_.oL,_.fq];_.Aa=new _.F$("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Jfu=new _.F$("AUTH_SERVICE_TOKEN");var Th2=_.Fr(["about:blank"]),xP1;var zeC=new _.F$("API_IFRAME_TOKEN"),BAV=new _.F$("FETCH_FN_TOKEN"),aVZ=new _.F$("PARSE_FN_TOKEN"),nT6=new _.F$("WINDOW_REQUEST_TOKEN");var XNK;XNK=new _.F$("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.Qzl=new _.F$("MISC_UI_SHARED_FLAGS_TOKEN");var ET7=function(){};
ET7.prototype.getFlag=function(q){if(q.configType!==2)throw Error("lj");return xRF(q)};
var xRF=function(q){switch(q.flagType){case "bool":return _.b(q.flagName);case "int":return _.kg(_.m6(q.flagName));case "double":return _.m6(q.flagName);case "string":return _.Af(q.flagName);case "int32_list":return JTN(q.flagName);case "int64_list":return JTN(q.flagName).map(function(Z){return _.kg(Z)});
case "string_list":return _.fs(q.flagName);default:throw Error("mj");}};var fr=function(q,Z,w){Z=Z===void 0?{}:Z;vB.call(this,w===void 0?"uninitialized":w);this.env=q;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}];Z.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=Z.shouldWaitOnAsyncImmediate)};
_.z(fr,vB);fr.prototype.init=function(q){var Z=this,w;return _.V(function(r){if(r.nextAddress==1)return Z.processPluginOptions.shouldWaitOnAsyncImmediate?_.W(r,q(Z.env),2):(q(Z.env),r.jumpTo(2));if(r.nextAddress!=4)return Z.jobSet?_.W(r,Z.jobSet.completedResolver.promise,4):r.jumpTo(4);w=_.zB();w.parkOrScheduleJob(function(){Z.transition("rendering")},10,"ci");
_.ub(r)})};
fr.prototype.initialRender=function(q){var Z=this,w;return _.V(function(r){if(r.nextAddress==1)return Z.processPluginOptions.shouldWaitOnAsyncImmediate?_.W(r,q(Z.env),2):(q(Z.env),r.jumpTo(2));if(r.nextAddress!=4)return Z.jobSet?_.W(r,Z.jobSet.completedResolver.promise,4):r.jumpTo(4);w=_.zB();w.parkOrScheduleJob(function(){Z.transition("rendered")},10,"cr");
_.ub(r)})};
fr.prototype.afterRenderImmediate=function(q){var Z=this,w;return _.V(function(r){if(r.nextAddress==1)return Z.processPluginOptions.shouldWaitOnAsyncImmediate?_.W(r,q(Z.env),2):(q(Z.env),r.jumpTo(2));if(r.nextAddress!=4)return Z.jobSet?_.W(r,Z.jobSet.completedResolver.promise,4):r.jumpTo(4);w=_.zB();w.parkOrScheduleJob(function(){Z.transition("after-render-deferred")},10,"carml");
_.ub(r)})};
fr.prototype.afterRenderDeferred=function(q){var Z=this;return _.V(function(w){q(Z.env);_.ub(w)})};var TAl={},URy=(TAl.rendered={priority:0,callback:function(q){SPm(q.injector.resolve(ow))}},TAl);var kjZ=!1,NhT=0,Isz=null,FfT=null;var K6D=new _.F$("NETWORK_SLI_TOKEN");var szF=function(q,Z,w,r){this.networkSli=q;this.fetchFn=Z;this.parseFn=w;this.requestFn=r};
szF.prototype.fetch=function(q,Z,w){var r=this,Y,C,d;return _.V(function(O){Y=IV6(r,q,Z);d=(C=r.fetchFn)!=null?C:fetch;return O.return(d(Y).then(function(H){return r.handleResponse(H,w)}).catch(function(H){_.bx(H);
if((w==null?0:w.expectJsonStrict)&&H instanceof Xf&&H.errorType===1)return Promise.reject(H)}))})};
var O1K=function(q,Z,w,r){var Y,C,d,O,H,L;return _.V(function(S){switch(S.nextAddress){case 1:return Y=IV6(q,Z,w),_.d9(S,2),_.W(S,fetch(Y),4);case 4:C=S.yieldResult;_.QL(S,3);break;case 2:throw _.o3(S),new Xf(2,"Failed to parse streaming response",Y.url);case 3:if(!C.redirected&&!C.ok)throw(d=q.networkSli)==null||d.failure(),new _.df("Streaming fetch request not ok",Y.url);if(!C.body)throw new _.df("No response body in streaming response",Y.url);O=C.body.pipeThrough(new TextDecoderStream).getReader();
H=new _.m7;L={};return S.return(cfq(q,O,H,CsT,L,r))}})},IV6=function(q,Z,w){if(q.networkSli){var r=_.gA(_.pp(Z,"key"))||"/UNKNOWN_PATH";
q.networkSli.start(r)}r=w;_.b("wug_networking_gzip_request")&&(r=sAT(w));var Y;return new ((Y=q.requestFn)!=null?Y:window.Request)(Z,r)},cfq=function(q,Z,w,r,Y,C){var d,O,H,L,S,v,R,B,n;
return _.V(function(x){if(x.nextAddress==1)return _.W(x,Z.read(),2);d=x.yieldResult;O=d.value;if(H=d.done)return(L=q.networkSli)==null||L.success(),x.return(Y);try{S=w.parse(O)}catch(K){throw new Xf(1,"Failed to parse streaming response",O);}if(S!=null)for(v=_.P(S),R=v.next();!R.done;R=v.next())B=R.value,r(Y,B),n=void 0,(n=C)==null||n(Y,B);return x.return(cfq(q,Z,w,r,Y,C))})};
szF.prototype.handleResponse=function(q,Z){var w,r=(w=this.parseFn)!=null?w:JSON.parse;w=q.text().then(function(Y){if((Z==null?0:Z.jspbResponseCtor)&&q.ok)return Q9e(Z.jspbResponseCtor,Y);Y=Y.replace(")]}'","");if((Z==null?0:Z.expectJsonStrict)&&Y)try{var C=r(Y)}catch(O){throw new Xf(1,"JSON parsing failed after fetch");}var d;return(d=C)!=null?d:r(Y)});
q.redirected||q.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),w=w.then(function(Y){_.bx(new _.df("Error: API fetch failed",q.status,q.url,Y));return Object.assign({},Y,{errorMetadata:{status:q.status}})}));
return w};
szF[M1]=[_.Gj(K6D),_.Gj(BAV),_.Gj(aVZ),_.Gj(nT6)];var M9u=new _.F$("NETWORK_MANAGER_TOKEN");var F6D=[1,2,4,8,16,30],lV6=function(q){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=q.maxTimeMs;this.maxFrameCount=q.maxFrameCount===void 0?Math.ceil(60*q.maxTimeMs/1E3):q.maxFrameCount;q=_.P(F6D);for(var Z=q.next();!Z.done;Z=q.next())this.brokenFrameSummarizers.push(new NA8(Z.value/60*1E3))},Gjl=function(q){var Z=q.frameCountInternal>=q.maxFrameCount;
return q.elapsedTimeMs>=q.maxTimeMs||Z},pFc=function(q){for(var Z=[],w=_.P(q.brokenFrameSummarizers),r=w.next();!r.done;r=w.next())r=r.value,r=r.brokenFrameCount!==0?{severityMs:Math.round(r.targetFrameTimeMs),
eventCount:r.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(r.averageDurationBetweenEventsMs)}:void 0,r&&Z.push(r);return{summaries:Z,monitoringDurationMs:Math.round(q.elapsedTimeMs)}};
_.My.Object.defineProperties(lV6.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 NA8=function(q){this.targetFrameTimeMs=q;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.My.Object.defineProperties(NA8.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var XFl=function(){};
XFl.prototype.start=function(q,Z){var w=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var r=new lV6({maxTimeMs:q});this.monitor=r;this.lastSummaryInternal=void 0;this.metadataToLog=Z;return new Promise(function(Y){var C=function(d){if(d===void 0)w.stop(),Y(void 0);else if(w.monitor!==r)d=Object.assign({},pFc(r),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),Y(d);else{var O=w.monitor;if(!Gjl(O)){O.frameCountInternal++;if(O.prevTime===void 0)O.startTime=
d;else for(var H=d-O.prevTime,L=_.P(O.brokenFrameSummarizers),S=L.next();!S.done;S=L.next()){S=S.value;var v=S.currTimeMs;S.currTimeMs+=H;H>S.targetFrameTimeMs+2&&(S.brokenFrameCount++,S.timeOfFirstBrokenFrameMs===void 0&&(S.timeOfFirstBrokenFrameMs=v),S.timeOfLastBrokenFrameMs=v)}O.prevTime=d}Gjl(w.monitor)?Y(w.stop()):_.v5.addJob(C,5,0)}};
_.v5.addJob(C,5,0)})};
XFl.prototype.stop=function(q){if(!this.monitor)return this.lastSummaryInternal;var Z=Object.assign({},pFc(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(Z.monitoringDurationMs){q=q!=null?q:this.metadataToLog;var w={droppedFramesSummary:Z,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};q&&(w[q.type]=q.data);_.vO("manualSmoothnessMeasurement",w)}this.monitor=void 0;this.lastSummaryInternal=Z;this.metadataToLog=void 0;return Z};_.mRb=new _.F$("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var AfF;AfF=function(q){this.JSC$16117_expiringStorage=new Ok(q)};
_.fVZ=function(q){if(_.lsX()&&(q=_.Oz2(_.CY()+"::"+q)))return new AfF(q)};
AfF.prototype.set=function(q,Z,w){w=w!==void 0?Date.now()+w:void 0;this.JSC$16117_expiringStorage.set(q,Z,w)};
AfF.prototype.get=function(q){return this.JSC$16117_expiringStorage.get(q)};
AfF.prototype.remove=function(q){this.JSC$16117_expiringStorage.remove(q)};var DRy=new _.F$("SESSION_STORAGE");_.D0=function(){};
_.D0.getInstance=function(){var q=_.Eq("ytglobal.storage_");q||(q=new _.D0,_.IR("ytglobal.storage_",q));return q};
_.D0.prototype.estimate=function(){var q,Z,w;return _.V(function(r){q=navigator;return((Z=q.storage)==null?0:Z.estimate)?r.return(q.storage.estimate()):((w=q.webkitTemporaryStorage)==null?0:w.queryUsageAndQuota)?r.return(G89()):r.return()})};
_.IR("ytglobal.storageClass_",_.D0);var heq=_.Fr(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),yfl=_.Fr(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var VC8={"/":_.ZK,"/?feature=ytca":_.ZK,"/feed/downloads":_.BsX};var d1=function(q,Z,w){this.JSC$16128_upliftPromise=q;this.store=Z;this.JSC$16128_persistentStorePromiseAccessor=w};
d1.prototype.shouldPreferLocalResponse=function(q){return q.browseId==="FEdownloads"||q.browseId==="FEsmart_downloads"&&_.b("kevlar_modern_downloads_page")?!0:!1};
d1.prototype.localInnertubeResponse=function(q){var Z=this;return _.V(function(w){return q.browseId==="FEdownloads"?_.b("kevlar_modern_downloads_page")?w.return(isy(Z)):w.return(gTq(Z)):q.browseId==="FEsmart_downloads"&&_.b("kevlar_modern_downloads_page")?w.return(qkb(Z)):w.return(Promise.reject(Error("oj")))})};
d1.prototype.canProvideFallbackResponse=function(){return!0};
d1.prototype.localFallbackInnertubeResponse=function(q){var Z=this,w,r,Y;return _.V(function(C){switch(C.nextAddress){case 1:return _.W(C,Z.JSC$16128_persistentStorePromiseAccessor(),2);case 2:w=C.yieldResult;if(q.browseId!=="SPaccount_downloads"||!w){C.jumpTo(3);break}return _.W(C,Ee2(w),4);case 4:if(r=C.yieldResult)return C.return(_.Zb(r));case 3:return q.browseId==="FEwhat_to_watch"?C.return(ZYq(Z)):(Y=_.b("web_offline_continuation_automatic_retry")||_.b("web_offline_continuation_retry_button"))&&
q.continuation?C.return(wgZ(Z)):C.return(rmZ(Z))}})};
var ZYq=function(q){var Z;return _.V(function(w){if(w.nextAddress==1)return _.W(w,q.JSC$16128_upliftPromise,2);Z=_.uf8(q.store.getState().entities);return Z.length?w.return(YkF(q,Z)):w.return(rmZ(q))})},gTq=function(q){var Z,w;
return _.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$16128_upliftPromise,2);if(r.nextAddress!=3)return Z=$4S([{offlineItemSectionRenderer:{}}]),_.W(r,eRy(q,Z),3);w=r.yieldResult;w.onResponseReceivedActions=[LP("REFRESH_DOWNLOADS")];return r.return(w)})},isy=function(q){var Z,w,r,Y,C,d,O,H,L,S,v,R,B;
return _.V(function(n){if(n.nextAddress==1)return _.W(n,q.JSC$16128_upliftPromise,2);if(n.nextAddress!=3)return Z=q.store.getState(),w=Z.entities,r=_.oZ(w),Y=_.uF(w),C=_.mk9(Z),d=_.XVT(Z),O=_.ADT(Z),H=_.jaT(w),L=_.dt(r),S=_.Lz(w),v={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.sH9(r,Y,H,C,d,L,S,O),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},R=_.dT("DOWNLOADS",void 0,"Downloads"),_.W(n,CpZ(q,v,R),3);B=n.yieldResult;
B.onResponseReceivedActions=[LP("REFRESH_DOWNLOADS")];return n.return(B)})},qkb=function(q){var Z,w,r,Y,C,d,O,H,L;
return _.V(function(S){if(S.nextAddress==1)return _.W(S,q.JSC$16128_upliftPromise,2);if(S.nextAddress!=3)return Z=q.store.getState(),w=Z.entities,r=_.oZ(w),Y=_.dt(r),C=_.Lz(w),d={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.cee(r),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},O=_.dT("SMART_DOWNLOADS",void 0,"Smart downloads"),H=kHz(Y,C),_.W(S,CpZ(q,d,O,H),3);L=S.yieldResult;L.onResponseReceivedActions=[LP("REFRESH_DOWNLOADS")];
return S.return(L)})},rmZ=function(q){var Z,w;
return _.V(function(r){if(r.nextAddress==1)return _.W(r,qd(q.JSC$16128_upliftPromise,q.store),2);Z=r.yieldResult;w=$4S([By2(Z)]);return r.return(eRy(q,w))})},wgZ=function(q){var Z,w,r,Y;
return _.V(function(C){if(C.nextAddress==1)return Z={},w=q.store.getState().continuation.continuationCommand,_.da(Z,_.L6,w),_.W(C,qd(q.JSC$16128_upliftPromise,q.store,Z,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);r=C.yieldResult;Y={};_.da(Y,_.Ysm,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:r}}}],targetId:"browse-feedFEwhat_to_watch"});return C.return({responseContext:{},onResponseReceivedActions:[Y]})})},$4S=function(q){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:q}}}}]}}},YkF=function(q,Z){var w,r;
return _.V(function(Y){var C={contents:Se(Z)};w=C&&C.contents?C:{};_.b("kevlar_modern_downloads_page")&&(w=Object.assign({},_.Mo8(Z),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));r={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:w}}}]}};return Y.return(eRy(q,r))})},eRy=function(q,Z){var w,r;
return _.V(function(Y){if(Y.nextAddress==1)return _.W(Y,q.JSC$16128_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3)return w=Y.yieldResult,_.W(Y,w1(w),3);r=Y.yieldResult;return Y.return({responseContext:{},contents:Z,topbar:r})})},CpZ=function(q,Z,w,r){var Y,C;
return _.V(function(d){if(d.nextAddress==1)return _.W(d,q.JSC$16128_persistentStorePromiseAccessor(),2);if(d.nextAddress!=3)return Y=d.yieldResult,_.W(d,w1(Y),3);C=d.yieldResult;var O=d.return,H=r;H=H===void 0?"":H;var L={dynamicTextViewModel:{text:{content:w}}};var S={flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.dT("SETTINGS",void 0,"Settings"),accessibilityText:_.dT("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:NM("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}};return O.call(d,{responseContext:{},contents:Z,topbar:C,header:{pageHeaderRenderer:{content:{pageHeaderViewModel:{title:L,actions:S,metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:H}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},
pageTitle:w}}})})};var Ppl=function(){this.moduleRegistry={};this.fetchCount=0};
Ppl.prototype.isFetching=function(){return this.fetchCount>0};
var Un=function(q,Z){q.moduleRegistry[Z.toString()]={asyncId:Z,isFetching:!1};return q};
Ppl.prototype.JSC$16139_loadModules=function(){for(var q=this,Z=new Map,w=[],r=_.P(_.Ta.apply(0,arguments)),Y=r.next();!Y.done;Y=r.next()){Y=Y.value;var C=this.moduleRegistry[Y];C?C.resolver?Z.set(Y,C.resolver):(C.resolver=new _.Dk,Z.set(Y,C.resolver),w.push(C.asyncId),C.isFetching=!0):(C=new _.Dk,Z.set(Y,C),C.resolve(void 0))}w.length&&(this.fetchCount+=1,_.on(_.Wv.getMultipleAsync.apply(_.Wv,_.Ju(w)).then(function(d){for(var O=0;O<w.length;O++){var H=d[O],L=q.moduleRegistry[w[O].toString()];L.isFetching=
!1;L.resolver.resolve(H)}}).catch(function(d){for(var O=_.P(w),H=O.next();!H.done;H=O.next()){H=H.value;
var L=q.moduleRegistry[H.toString()];L.resolver=void 0;L.isFetching=!1;Z.get(H.toString()).reject(d)}}),function(){--q.fetchCount}));
return Promise.all([].concat(_.Ju(Z.values())).map(function(d){return d.promise}))};_.k4=new _.F$("MODULE_REGISTRY_TOKEN");var d4D={},VTq=(d4D.rendered={priority:0,callback:function(q){a:{var Z=void 0;try{var w;b:{if(_.HL2()){var r=_.VZ2(_.CY()+"::pom");if(r){var Y=new qn(r);break b}}Y=void 0}var C=(w=Y)==null?void 0:w.get("role_text");if(!C)break a;Z={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:C}]}}}}}}catch(H){}Z&&q.injector.resolve(_.ps).resolveCommand(Z)}try{var d=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(d){var O=JSON.parse(d);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
O&&q.injector.resolve(_.ps).resolveCommand(O)}}catch(H){}}},d4D);var OY7,HYC={},Why=(HYC.initialized={priority:10,callback:function(){OY7=jl()}},HYC.rendering={callback:function(q){var Z;
return _.V(function(w){if(w.nextAddress==1)return _.W(w,OY7,2);Z=w.yieldResult;if(!Z.endpoint)throw Error("qj`"+_.$1.location.href);JW(q,Z);_.ub(w)})}},HYC);var orb={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(_.Ju(_.b("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(q){var Z=q.stack;if(Z.includes("chrome://")||Z.includes("chrome-extension://")||q.message.includes("chrome-extension://")||Z.includes("moz-extension://")||Z.includes("local.adguard.org")||Z.includes("auctioneer3.50million.club")||Z.includes("youtubedownloader")||Z.includes("youtube_home_page")||Z.includes("is_youtube_video_no_longer_available")||
Z.includes("switchScreenSizeHack")||Z.includes("yt_main_big_banner.js")||Z.includes("YouTubeCenter.js")||Z.includes("/mytube.js")||Z.includes("JSON.parseWrapper")||Z.includes("/inj_js/common.js")||Z.includes("firebug-lite")||Z.includes(".repl.co/")||Z.includes("linkfix")||Z.includes("playAfterAd")||q.message.includes("Access is denied for this document")&&Z.includes("<anonymous>")||q.fileName==="user-script"||q.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
Z.includes("<anonymous>"))return!0;if(Z.includes("https://www.youtube.com"))return!1;q=Z.split("\n");if(!q.length)return!1;if(q.length<=3&&Z.includes("s.onloadeddata"))return!0;Z=0;for(var w=_.P(q),r=w.next();!r.done;r=w.next())r=r.value,(r.includes("https://")||r.includes("http://"))&&Z++;return Z/q.length>.95},
weight:0},{callback:function(q){return q.message==="Unknown Error"&&q.name.indexOf("NS_")===0},
weight:100},{callback:function(q){if(!_.wS)return!1;var Z=q.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||q.message.includes("available to complete this operation"),w=q.stack.includes("webcomponents")&&q.message==="Object doesn't support this action";q=q.message.includes("object that does not implement interface Element");return Z||w||q},
weight:0},{callback:function(q){return q.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(q){return q.message==="Operation is not supported"&&(q.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(q){return q.stack.includes("eval code (eval (code:1:1)")||q.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(q){return q.message.includes("Permission denied")&&q.stack.includes("this.domHandler")?!0:q.name.includes("TypeError")&&q.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(q){if(!q.stack)return!1;var Z=q.stack.trim().split("\n");Z.length&&Z[0].endsWith("Error: "+q.message)&&Z.shift();Z.length&&Z[Z.length-1].includes("at window.onerror (")&&Z.pop();if(!Z.length)return!0;if(q.message==="Script error.")return Z[0].includes("www.youtube.com")||Z.length>=2&&Z[0].startsWith("at new")&&Z[1].startsWith("at window.onerror");if(q.message==="Unexpected token")return!0;q=_.P(Z);for(Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,!(Z.includes("<anonymous>")||
Z.startsWith("load@")||Z.startsWith("global code@")||Z.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(q){return q.message==="Cannot read property 'experiments'"&&q.stack.includes("/s/player/")},
weight:500},{callback:function(q){return q.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(q){return q.stack.includes("/embed.js")?(q.params&&q.params&&(q.params.name="56"),!0):!1},
weight:1}]};var uyS={},Lhl=(uyS.initialized={priority:10,callback:function(q){q.injector.addProvider({provide:xoF,useValue:q.root});q.injector.addProvider({provide:wN8,useValue:Po9});q.injector.addProvider({provide:rXq,useValue:orb});var Z={};q.injector.addProvider((Z.provide=YuD,Z.useFactory=function(w,r){return function(){m2j(w,r)}},Z[M1]=[wN8,
rXq],Z));q.injector.addProvider({provide:yQ,useClass:yQ})}},uyS);var Skl={},vrF=(Skl.initialized={priority:3,callback:function(){var q;if(q=r01()){q=q.replace("/",".");var Z=_.Hd();Z.set("tz",q);Z.save();q=!0}else q=!1;q||(q=_.Hd(),q.set("utco",-Math.floor((new Date).getTimezoneOffset())),q.save())}},Skl);var jRy={},tT6=(jRy.initialized={priority:10,callback:function(q){q.injector.resolve(yQ).start();q=_.BP();var Z=_.BF("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.BF("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.BF("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.BF("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.el(_.z1X(),{mainAppWeb:Object.assign({},q,{pageType:Z})});_.el(a7X(),{mainAppWeb:Object.assign({},q,{pageType:Z})});
_.el(nnT(),{mainAppWeb:q});_.el(Q71(),{mainAppWeb:q});Ea9(function(){_.Cd(nnT(),"FAILURE");_.Cd(Q71(),"FAILURE")});
Z32();wU8();waI()}},jRy);var RRb={},bYb=(RRb.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.JT("dl"),_.zB().processSignal("pcl");else{var q=function(){_.JT("dl");_.zB().processSignal("pcl");window.removeEventListener("load",q)};
window.addEventListener("load",q)}}},RRb);var JmC={},zR8=(JmC.rendering={priority:0,callback:function(){var q=_.zB();q.parkOrScheduleJob(function(){q.processSignal("eocs")},10,"eor",5E3)}},JmC);var Bf8=function(){};
_.z(Bf8,K2);
Bf8.prototype.resolveCommand=function(q,Z){var w,r,Y,C,d,O,H,L;return _.V(function(S){Y=(w=_.J(q,_.IiJ))==null?void 0:(r=w.dialog)==null?void 0:r.commentReplyDialogRenderer;if(!Y)throw new _.df("No dialog in createCommentReplyDialogEndpoint");d=(C=Z.form)==null?void 0:C.event;if(!d)throw new _.df("Event not passed in when resolving command");O=_.P(d.composedPath());for(H=O.next();!H.done;H=O.next())if(L=H.value,L.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||L.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return L.showReplyDialog(Y),S.return();
_.ub(S)})};var ha=function(q){this.pageRequestService=q;this.JSC$16154_prefetchCoordinator=G1F()};
_.z(ha,K2);ha.prototype.resolveCommand=function(q){var Z=this,w,r,Y,C;return _.V(function(d){if(d.nextAddress==1){w=_.J(q,LGe);if((r=w)==null||!r.taskId)throw Error("rj");Y=w.taskId;_.d9(d,2);return _.W(d,_.F82(Z.pageRequestService,q,{},"").then(function(O){if(!O)throw Error("sj");},function(O){throw Error("tj`"+O);
}),4)}if(d.nextAddress!=2)return mbZ(Z.JSC$16154_prefetchCoordinator,Y),_.QL(d,0);
C=_.o3(d);Eo(Z.JSC$16154_prefetchCoordinator,Y,C);_.ub(d)})};
ha[M1]=[vH];var ya=function(q){this.innertubeTransportService=q};
_.z(ya,K2);ya.prototype.resolveCommand=function(q){var Z=this,w,r;return _.V(function(Y){w=_.J(q,WM1);if(w.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||w.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")r=w.boolValue?2:1,_.sN.getInstance().setState(r,!0,!0);return _.W(Y,_.zR(Z.innertubeTransportService,q),0)})};
ya[M1]=[_.PP];var iw={},aLF=(iw.addToPlaylistEndpoint=Fm(om),iw.addToToastAction=Fm(Pu),iw.adsControlFlowOpportunityReceivedCommand=Fm(D2),iw.captionLanguageSelectActionCommand=Fm(nJ),iw.captionPickerEndpoint=Fm(QO),iw.changeMiniAppPlayStateCommand=Fm(uT),iw.changeTimelyActionVisibilityCommand=Fm(CF),iw.channelCreationFormEndpoint=Fm(PS),iw.clearLocationCommand=Fm(WS),iw.copyLinkCommand=Fm(kp),iw.copyTextEndpoint=Fm(gN),iw.createCommentReplyDialogEndpoint=xI6(Bf8),iw.createPlaylistServiceEndpoint=Fm(KJ),iw.dismissDialogEndpoint=
Fm(Sm),iw.entityUpdateCommand=Fm(Z6),iw.feedbackEndpoint=Fm(Yp),iw.getAnswerCommand=Fm(iCb),iw.getPaymentsClientTokenCommand=Fm(O9),iw.getTranscriptEndpoint=Fm(dV),iw.googlePaymentBillingCommand=Fm(Hu),iw.googlePaymentPurchaseManagerCommand=Fm(Wu),iw.hideEngagementPanelEndpoint=Fm(vS),iw.insertRichSectionCommand=Fm(VO),iw.listMutationCommand=Fm(O$),iw.logGtmCommand=Fm(dw),iw.notifyDropdownOptionSelectedCommand=Fm(LJ),iw.openAdAllowlistInstructionCommand=Fm(_.hB),iw.openOnePickAddVideoModalCommand=
Fm(s$),iw.pingingEndpoint=Fm(yi),iw.playlistEditEndpoint=Fm(cS),iw.playlistVotingRefreshPopupCommand=Fm(MV),iw.refreshPanelEndpoint=Fm(jm),iw.saveImageToDeviceEndpoint=Fm(qV),iw.scrollToSectionEndpoint=xI6(gxl),iw.seekToVideoTimestampCommand=Fm(E$),iw.setCookieCommand=Fm(NV),iw.setLocalStorageCommand=Fm(wV),iw.setPrefStorageEntryCommand=Fm(GN),iw.setSettingEndpoint=Fm(ya),iw.sfvAudioItemPlaybackCommand=Fm(xp),iw.shareImageCommand=Fm(pJ),iw.sharingProviderDataCommand=Fm(XM),iw.showCaptionLanguageSelectActionCommand=
Fm(TN),iw.showDialogCommand=Fm(bT),iw.showEngagementPanelEndpoint=Fm(Jd),iw.showSheetCommand=Fm(zN),iw.showTransientPlayerScrimOverlayCommand=Fm(U$),iw.submitFormWithValidationFlowCommand=Fm(CJ),iw.talkToRecsDeselectCommand=Fm(rV),iw.talkToRecsNextCommand=Fm(YG),iw.talkToRecsSelectCommand=Fm($G),iw.talkToRecsUpdateTextCommand=Fm(eB),iw.toggleEngagementPanelCommand=Fm(BS),iw.undoFeedbackEndpoint=Fm(em),iw.updateEngagementPanelContentCommand=Fm(am),iw.updateUrlParamCommand=Fm(Vc),iw.verifyCommand=Fm(PS),
iw.webSubmitFormCommand=Fm(FM),iw.ACK_PLAYABLES_3P_DATA_CONSENT=Fm(mC),iw.CANCEL_NAVIGATION=Fm(Ad),iw.COPY_SHARE_URL=Fm(fJ),iw.MINI_APP_EXIT_DIALOG_SEEN=Fm(hd),iw.MINI_APP_OPEN_URL=Fm(D6),iw.REQUEST_MINI_APP_FULLSCREEN=Fm(yO),iw.RESUME_NAVIGATION=Fm(iT),iw.SHARE_PLAYABLE_WITH_HIGH_SCORE=Fm(gw),iw.TELL_US_WHY=Fm($p),iw);_.b("web_enable_prefetching_videos_on_home")&&(aLF.prefetchWatchCommand=Fm(ha),aLF.registerTasksCommand=Fm(TV));
_.b("enable_share_panel_navigation_logging_fix_on_web")&&(aLF.shareEntityServiceEndpoint=Fm(td));var rp9=Object.assign({},aLF);var nrq={},QRZ=(nrq.initialized={priority:10,callback:CvN},nrq);var Erc={},x47=(Erc.initialized={callback:function(q){var Z={},w={};gf6().install((Z.document_disposed={callback:function(){_.b("finalize_all_timelines")?qZX():tT();ckj("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.VMN();var r=q.injector.resolve(yQ);r.intervalId!==void 0&&(r.intervalId&&_.v5.cancelJob(r.intervalId),r.intervalId=void 0,--r.currentPartitionIndex,r=p9X(r),r>0&&pEh({mainAppWeb:_.BP(),survivalSli:{partitionMinute:r,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));Kag(ax);nH!=null&&
nH.flush();pz&&pz.snapshotAndFlush()}},Z),(w.flush_logs={callback:function(){_.jX()}},w))}},Erc);var Tfq={},U4C=(Tfq.rendered={priority:0,callback:function(){var q=new JXv;q.increment("STARTED");if(_.zj("LOGGED_IN")&&_.zj("SERVER_VERSION")!=="test"&&_.zj("SERVER_VERSION")!=="dev"&&!Olm()&&!VV7()){q.increment("EXECUTING");var Z=document.createElement("iframe");Z.style.display="none";_.AI8(Z,2,_.EX("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.zj("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(Z);q.increment("DONE")}}},Tfq);var kOS={},Kh8=(kOS.rendered={callback:function(){G1F().resume()}},kOS);var sRV={acknowledgeChannelTouStrikeCommand:Sj(G6),addToPlaylistServiceEndpoint:Sj(Fv),addToPlaylistEndpoint:Sj(Fv),addUpcomingEventReminderEndpoint:Sj(Yf),browseEndpoint:Sj(zO6),channelCreationFormEndpoint:Sj(s9),channelCreationServiceEndpoint:Sj(If),claimLegacyYoutubeChannelEndpoint:Sj(br),clearSearchHistoryEndpoint:Sj(hM),clearWatchHistoryEndpoint:Sj(yc),commerceActionCommand:ve(Oo),createBackstagePostEndpoint:Sj(LF),createBroadcastCommand:Sj($f),createCommentEndpoint:Sj(T6),createCommentReplyEndpoint:Sj(xG),
createLiveChatPollEndpoint:Sj(en),createPlaylistServiceEndpoint:Sj(Ng),crossAccountChannelTransferEndpoint:Sj(qg),deleteLiveChatMessageCommand:Sj(Ci),deletePlaylistEndpoint:Sj(ls),deleteVideoEndpoint:Sj(rP),dismissalEndpoint:Sj(pF),feedbackEndpoint:Sj(Xh),flagEndpoint:Sj(fi),getAccountSwitcherEndpoint:Sj(gV),verifyCommand:Sj(ur),getAccountsListInnertubeEndpoint:Sj(wU),getCommentsFromInboxCommand:Sj(bs),getDownloadActionCommand:Sj(EV),getFlowCommand:ve(DE),getKidsBlocklistPickerCommand:Sj(Dz),getNotificationMenuEndpoint:Sj(nil),
getPaymentInstrumentsParamsCommand:Sj(SM),getPaymentsClientTokenCommand:ve(Oo),getPdgBuyFlowCommand:Sj(cM),getReportFormEndpoint:Sj(ho),getSearchInVideoCommand:Sj(gU),getAnswerCommand:Sj(is),getSurveyCommand:Sj(wP),getTranscriptEndpoint:Sj(eM),getPostVideoPreviewEndpoint:Sj(vu),decorateMessageEndpoint:Sj(SB),likeEndpoint:Sj(cu),liveChatActionEndpoint:Sj(OV),liveChatEndpoint:Sj(VF),liveChatItemContextMenuEndpoint:Sj(PM),liveChatPurchaseMessageEndpoint:Sj(HM),liveChatReplayEndpoint:Sj(dU),manageLiveChatUserEndpoint:Sj(ov),
metadataUpdateCommand:Sj(to),moderateLiveChatEndpoint:Sj(us),modifyChannelNotificationPreferenceEndpoint:Sj(av),notificationOptOutEndpoint:Sj(ni),openSuperStickerBuyFlowCommand:Sj(WM),performCommentActionEndpoint:Sj(nF),playlistEditEndpoint:Sj(pi),playlistEditorEndpoint:Sj(Gq),profileCardCommand:Sj(rU),recordNotificationInteractionsEndpoint:Sj(QF),reelWatchEndpoint:Sj(Xv),refreshPanelEndpoint:Sj(Tq),removeUpcomingEventReminderEndpoint:Sj(Li),resolveLocationCommand:Sj(jn),revealBusinessEmailCommand:Sj(JM),
searchEndpoint:Sj(_.Q16),sendLiveChatMessageEndpoint:Sj(Sn),sendLiveChatVoteEndpoint:Sj(vM),setSettingEndpoint:Sj(MG),shareEntityServiceEndpoint:ve(lr),sharingProviderDataCommand:Sj(Z0),showEngagementPanelEndpoint:Sj(UV),showMoreDrawerCommand:Sj(Ki),showSheetCommand:Sj(sV),showDialogCommand:Sj(kf),subscribeEndpoint:Sj(Fh),transcriptSubmitCaptionCorrectionCommand:Sj($S),undoFeedbackEndpoint:Sj(AM),unsubscribeEndpoint:Sj(NG),updateBackstagePostEndpoint:Sj(tM),updateCommentEndpoint:Sj(kG),updateCommentReplyEndpoint:Sj(U9),
updateCommentsSettingsEndpoint:Sj(KF),updateCreatorChannelInnertubeCommand:Sj(Bu),updateKidsBlacklistEndpoint:Sj(yF),updateEngagementPanelContentCommand:Sj(Iv),updatePdgFeatureEnablementCommand:Sj(Mg),updatedMetadataEndpoint:Sj(Rv),validateChannelHandleCommand:Sj(af),updateChannelPageSettingsEndpoint:Sj(z6),verifyAgeEndpoint:Sj(fF),watchEndpoint:ve(YS),whitelistEditEndpoint:Sj(Va),ypcCancelRecurrenceEndpoint:Sj(Hs),ypcCompleteTransactionEndpoint:Sj(Ws),ypcFixInstrumentEndpoint:Sj(uw),ypcGetCartEndpoint:Sj(op),
ypcGetOffersEndpoint:Sj(Lr),ypcHandleTransactionEndpoint:ve(vs),ypcLogWalletAnalyticDataEndpoint:Sj(jM),ypcOffersEndpoint:Sj(ta),ypcPauseSubscriptionCommand:Sj(Rp),ypcRedeemCodeEndpoint:Sj(bw),ypcResumeSubscriptionCommand:Sj(Ja),ypcUpdateFopEndpoint:Sj(uw)},gP={},ILS=(gP.GET_ACCOUNT_MENU=Sj(Zz),gP.GET_NOTIFICATIONS_MENU=Sj(aA6),gP.GET_NOTIFICATIONS_INBOX=Sj(Jo),gP.GET_UNSEEN_NOTIFICATION_COUNT=Sj(BM),gP.GET_USER_MENTION_SUGGESTIONS=Sj(jB),gP.LOAD_GUIDE=Sj(BXl),gP.SUBMIT_FEEDBACK=Sj(mp),gP),q3={},
cmu=(q3.CONTINUATION_REQUEST_TYPE_BROWSE=Sj(Rf),q3.CONTINUATION_REQUEST_TYPE_SEARCH=Sj(qp),q3.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Sj(Ps),q3.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Sj(ir),q3.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Sj(E9),q3.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Sj(Qc),q3.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Sj(Ao),q3.CONTINUATION_REQUEST_TYPE_GET_PANEL=Sj(xf),q3),MTC={player:ve(YS),watchNext:Sj(Cr)},FhS={player:ve(YS),reelItemWatch:Sj(Xv),reelWatchSequence:Sj(mU)},
Nfc={watchEndpoint:ve(dP)},lLD={commandEndpointMap:sRV,signalEndpointMap:ILS,continuationEndpointMap:cmu,watchEndpointMap:MTC,reelWatchEndpointMap:FhS,streamingEndpointMap:Nfc};var GOu,pgq,XgD,m4y={disableAllTransitions:(pgq=(GOu=window).matchMedia)==null?void 0:(XgD=pgq.call(GOu,"(prefers-reduced-motion: reduce)"))==null?void 0:XgD.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var Aml=new _.F$("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.fLZ=new _.F$("VIEW_TRANSITION_MANAGER_TOKEN");var D4c=function(q){this.config=q;this.transitionTasksMap=new Map;q=_.P(q.transitionConfigs);for(var Z=q.next();!Z.done;Z=q.next())Z=_.P(Z.value).next().value,this.transitionTasksMap.set(Z,[])};
D4c[M1]=[Aml];var Pv8={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};var Vue=["videoPrimaryInfoRenderer","title"],O38=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var hR7;hR7=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.ymS=_.xl(function(q){q=_.n5(q,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var Z=q.data,w=q.playlistData,r=q.expanded,Y=q.onExpandClick,C=q.isReadyToResume,d=function(){var S;return!((S=w())==null||!S.contents)},O=function(){var S=w();
return S&&S.totalVideos&&S.currentIndex!==void 0?S.currentIndex+1+" / "+S.totalVideos:""};
q=_.fn(function(){_.Zy(_.t().resolve(_.Tf))});
var H=_.fn(function(){d()&&Y&&Y()}),L={};
return _.u("ytd-miniplayer-info-bar",{class:_.GL("ytdMiniplayerInfoBarHost",(L.ytdMiniplayerInfoBarHasPlaylistData=d,L)),"on:click":H},_.u("div",{class:"ytdMiniplayerInfoBarContent"},_.u("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":q},_.u(_.r6,{text:function(){var S=Z();var v=w();if(v==null?0:v.contents){var R;S=(R=_.uXe(v))==null?void 0:R.title}else S=S==null?void 0:S.miniplayerTitle;return Wi6(S)},
noEndpoints:!0,ellipsisTruncate:!0})),_.u("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.u("h1",null,_.u(_.r6,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var S=Z();var v=w();S=C()?{simpleText:_.dT("CONTINUE_WATCHING",void 0,"Continue watching")}:(v==null?0:v.contents)?v.titleText:S==null?void 0:S.miniplayerSubtitle;return Wi6(S)},
noEndpoints:!0,ellipsisTruncate:!0})),_.u(_.PF,{cond:function(){return!!O()&&!C()},
then:function(){return _.u("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.u("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.u("span",null,O))}}),_.u(_.PF,{cond:C,
then:function(){return _.u(OvD,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:hR7})}}))),_.u(_.PF,{cond:d,
then:function(){return _.u("div",{class:"ytdMiniplayerInfoBarExpand"},_.u(X_,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(S){Y&&(Y(),S.stopPropagation())}}},
iconName:function(){return r()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Qd");var iYy;iYy=_.xl(function(q){return _.u("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.u(X_,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:q.onTap}},
iconName:"yt-icons:close"}))},"Rd");
_.grq=_.xl(function(q){q=_.n5(q,{playabilityStatus:void 0,isDisabled:!1});var Z=q.size,w=q.playabilityStatus,r=q.isDisabled,Y=_.Iw();q=_.P(_.qo(void 0,void 0,"bJr0Se"));var C=q.next().value,d=q.next().value;q=_.ok(_.ee);var O=!1,H=function(){return Z().height<=0};
_.L7(function(){var R=Z(),B=H(),n=C();n&&!B&&n.setInternalSize(R.width,R.height)});
_.oz(function(){var R,B,n;return _.V(function(x){if(x.nextAddress==1){R=_.t().resolve(_.Tf);B=R.getPlayerElement();if(!R.isMiniplayerActive()||!B||!Y.value)return x.return();B.appendTo(Y.value);return _.W(x,B.getPlayerPromise(),2)}n=x.yieldResult;n.setSizeStyle(!1,!0);d(n);_.ub(x)})});
_.SG(function(){L()});
_.L7(function(){var R=C();if(R)if(r()){var B=R.getPlayerState();(O=B===-1||B===1||B===3)&&R.pauseVideo()}else L()});
var L=function(){if(O){O=!1;var R;(R=C())==null||R.playVideo()}},S=_.fn(function(){_.Zy(_.t().resolve(_.Tf))}),v={};
return _.u("ytd-miniplayer-player-container",{class:_.GL("ytdMiniplayerPlayerContainerHost",(v.ytdMiniplayerPlayerContainerHidden=H,v.ytdMiniplayerPlayerContainerHostShortsPip=q,v)),style:_.y1({width:function(){return Z().width+"px"},
height:function(){return Z().height+"px"}})},_.u("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:Y}),_.u(_.PF,{cond:function(){return!!w()&&!_.t5j(w())},
then:function(){return _.u(mXu,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var R;return((R=w())==null?void 0:R.errorScreen)||null},
status:function(){var R;return((R=w())==null?void 0:R.status)||null}})}}),_.u(_.PF,{cond:r,
then:function(){return _.u("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":S},_.u(iYy,{onTap:function(){_.t().resolve(_.Tf).close()}}))}}))},"Sd");_.qGV=_.xl(function(q){var Z=q.toastData;var w=_.Iw();q=_.P(_.hE(function(){return!!Z()}));
var r=q.next().value,Y=q.next().value;q=_.P(_.qo(!1,void 0,"xkrBze"));var C=q.next().value,d=q.next().value,O=function(){var S;return _.kO((S=Z())==null?void 0:S.data.title)};
_.Ls(function(){_.aD.requestAvailability();Z()&&Y(!1)});
var H,L;_.L7(function(){r()&&(_.hy(w.value,"iron-announce",{text:Z().label+" "+O()}),H&&_.v5.cancelJob(H),H=_.v5.addLowPriorityJob(function(){d(!0)},2500))});
_.L7(function(){C()&&(L&&_.v5.cancelJob(L),L=_.v5.addLowPriorityJob(function(){Y(!1);d(!1)},300))});
q={};return _.u("ytd-miniplayer-toast",{el:w,class:_.GL("ytdMiniplayerToastHost",(q.ytdMiniplayerToastOpening=function(){return r()},q.ytdMiniplayerToastClosing=function(){return C()},q))},_.u(_.PF,{cond:function(){var S;
return(S=Z())==null?void 0:S.data},
then:function(S){return _.u(WZm,{className:"ytdMiniplayerToastThumbnail",data:S,width:78})}}),_.u("div",{class:"ytdMiniplayerToastInfo"},_.u("div",{class:"ytdMiniplayerToastLabel"},function(){var S;
return(S=Z())==null?void 0:S.label}),_.u("div",{class:"ytdMiniplayerToastTitle"},O)))},"Td");var Jsj;var n$8=new Set,aYN=null;var E$8=null;var w5F=_.xl(function(q){var Z=q.progressState;var w=q.multiMarkersPlayerBarRenderer;var r=q.progressBarWidth;var Y=function(){return khI(w())},C=function(){return IY2(Z())},d=function(){return r()*(Z().playedTime/Z().videoDuration)};
return _.u("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.u(_.dA,{each:Y},function(O,H){return _.u(ZB7,{modifiedProps:C,chapters:Y,index:H,playedProgressWidth:d,backgroundGradientPosition:function(){var L=C(),S=Y(),v=H(),R=d();return(L.playedTime-En(_.J(S[v],QU)))/L.playedTime*R}})}))},"Ud"),ZB7=_.xl(function(q){var Z=q.modifiedProps;
var w=q.chapters;var r=q.index;var Y=q.playedProgressWidth;var C=q.backgroundGradientPosition;q={};q=_.GL("ytChapteredProgressBarChapteredPlayerBarChapter",(q.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return d().isScrubbing},q.ytChapteredProgressBarHoveredMacroMarker=function(){return d().scrubberHovering},q.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return d().videoPosition==="seen"},q));
var d=function(){return csz(Z(),w(),r())},O=function(){var H=Z();
var L=w(),S=r();if(csz(H,L,S).videoPosition!=="active")H=0;else{var v=En(_.J(L[S],QU));H=(H.playedTime-v)/((En(_.J(L[S+1],QU))||H.videoDuration)-v)}return H};
return _.u("div",{class:q,style:_.y1({width:function(){var H=Z(),L=w(),S=r(),v=_.J(L[S],QU);L=_.J(L[S+1],QU);return(L?En(L)-En(v):H.videoDuration-En(v))/H.videoDuration*100+"%"},
"background-color":function(){a:{var H=d();switch(H.videoPosition){case "pending":H=H.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":H=H.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:H=""}}return H},
"background-size":function(){return(MuT(d())?Y():"")+"px"},
"background-position-x":function(){return(MuT(d())?C():"")+"px"}})},_.u("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var H=Z(),L=w(),S=r();if(csz(H,L,S).videoPosition==="seen")var v=0;else v=En(_.J(L[S],QU)),L=En(_.J(L[S+1],QU))||H.videoDuration,H=H.videoDuration*H.percentLoaded,v=L<=H?1:v>=H?0:(H-v)/(L-v);return"width: "+v*100+"%"}}),_.u("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.y1({width:function(){return O()*100+"%"},
"background-size":function(){return(MuT(d(),O())?Y():"")+"px"},
"background-position-x":function(){return(MuT(d(),O())?C():"")+"px"}})}))},"Vd");var r9F=function(q,Z){Z=Z===void 0?Iv7:Z;var w,r=[],Y,C=!1;return function(){var d=_.Ta.apply(0,arguments);if(C&&w===this&&Z(d,r))return Y;Y=q.apply(this,d);C=!0;w=this;r=d;return Y}}(function(q){var Z=q.heatMarkers,w=q.minHeightDp===void 0?0:q.minHeightDp,r=q.maxHeightDp===void 0?60:q.maxHeightDp;
var Y=Y===void 0?!1:Y;var C=1E3/Z.length;q=[];q.push({x:0,y:100});for(var d=0;d<Z.length;d++){var O=void 0,H=((O=_.J(Z[d],ZK1))==null?void 0:O.heatMarkerIntensityScoreNormalized)||0;O=(d+.5)*C;H=100-_.a0(H*100,w/321*100,r/321*100);d!==0||Y||q.push({x:0,y:H});q.push({x:O,y:H});d===Z.length-1&&q.push({x:1E3,y:H})}q.push({x:1E3,y:100});Z="";for(w=0;w<q.length;w++)Y=q[w],w===0?Y="M "+Y.x.toFixed(1)+","+Y.y.toFixed(1):(r=vV1(q[w-1],q[w-2],Y),C=vV1(Y,q[w-1],q[w+1],!0),Y=" C "+(r.x.toFixed(1)+","+r.y.toFixed(1)+
" "+C.x.toFixed(1)+","+C.y.toFixed(1)+" "+Y.x.toFixed(1)+","+Y.y.toFixed(1))),Z+=Y;return Z});var YG8=_.xl(function(q){var Z=q.progressBarProps;var w=q.config;var r={};q=_.GL("ytHeatSeekerHost",(r.ytHeatSeekerHighContrast=q.highContrast,r));var Y=function(){return v$9(w().chapterData)};
return _.u("yt-progress-bar-heatseeker",{class:q,style:function(){var C;return"height: 320px; display: "+(Z().isDragging&&((C=Y())==null?0:C.heatMarkers)?"block":"none")}},_.u(_.PF,{cond:Y,
then:function(C){return _.u(_.PF,{cond:function(){return C().heatMarkers},
then:function(){return _.u("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.u("path",{d:function(){return r9F(C())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Wd");var $N7=_.xl(function(q){var Z=q.progressBarProps;var w=q.config;q={};q=_.GL("ytProgressBarLineProgressBarLine",(q.ytProgressBarLineProgressBarLineRounded=function(){return w().rounded},q.ytProgressBarLineProgressBarLineBottomInset=function(){return w().position===2},q));
return _.u("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.u("div",{class:q},_.u("div",{class:"ytProgressBarLineProgressBarBackground"}),_.u("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+Z().percentLoaded*100+"%"}}),_.u("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var r=Z();return"width: "+(r.videoDuration?_.a0(r.hoveredTime/r.videoDuration,0,1):0)*100+"%"}}),_.u("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+ujN(Z())*100+"%"}})))},"Xd");
$N7.idomCompat=!0;var e$C=_.xl(function(q){var Z=q.progressBarProps;var w=q.playheadData;var r=q.interpolateDotPosition;var Y=q.hidePlayhead;q={};var C=_.GL("ytProgressBarPlayheadProgressBarPlayheadDot",(q.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return Z().isDragging},q.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!Z().isDragging&&Y()},q));
return _.u("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.y1({"margin-left":function(){return LiO(Z())*100+"%"},
transform:function(){return"translateX(-"+(r()?LiO(Z())*12:6)+"px)"}})},_.u(_.PF,{cond:function(){var d;
return(d=_.aA(w)())==null?void 0:d.playheadImage},
then:function(d){var O={};return _.u("div",{class:_.GL("ytProgressBarPlayheadProgressBarPlayheadCustom",(O.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return Z().isDragging},O.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!Z().isDragging&&Y()},O)),
style:_.y1({"transform-origin":function(){return(r()?LiO(Z())*20:10)+"px center"}})},_.u(_.aQ,{data:d,
alt:"","aria-hidden":"true"}))},
else:function(){return _.u("div",{class:C,style:_.y1({"transform-origin":function(){return(r()?LiO(Z())*12:6)+"px center"}})})}}))},"Yd");
e$C.idomCompat=!0;var wu=function(q,Z,w,r,Y,C){this.getProgressBarRect=q;this.updateProgressBarRect=Z;this.getFilmstripYPosition=w;this.setFineScrubbingDraggedTime=r;this.updateFilmStripDraggedYDistance=Y;this.resetFilmStripYOffset=C;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.pV(this.onThrottledSeek,100,this)},Chl=function(q,Z,w){return function(r){q.handleClick(r,Z(),w())}},VJS=function(q,Z){return function(w){Ph7(q,
w,dND(w),Z())}},OBZ=function(q,Z){return function(w){Ph7(q,w,{x:w.clientX,
y:w.clientY},Z())}},Wll=function(q,Z,w){return function(r){var Y=Z(),C=w();
HB6(q,r,dND(r),Y,C,!0);if(C.onTouchMove)C.onTouchMove(Y)}},uwZ=function(q,Z,w){return function(r){oYZ(q,r,Z(),w())}},Ll8=function(q,Z){return function(){q.handleMouseLeave(Z())}},SGl=function(q,Z,w){return function(){var r=Z(),Y=w();
ru(q,r,Y);if(Y.onTouchEnd)Y.onTouchEnd(r)}},vY7=function(q,Z,w){return function(){var r=Z(),Y=w();
ru(q,r,Y);if(Y.onTouchEnd)Y.onTouchEnd(r)}},j$C=function(q,Z,w){return function(){ru(q,Z(),w())}},tJF=function(q,Z,w){return function(r){!w().disableScrubbing&&q.startPosition&&oYZ(q,r,Z(),w())}},R$q=function(q,Z,w){return function(){if(!w().disableScrubbing)if(q.startPosition){var r=Z(),Y=w();
ru(q,Z(),w());if(Y.onTouchEnd)Y.onTouchEnd(r)}else Z().setState({isDragging:!1})}},dND=function(q){q=q.touches[0];
return{x:q.clientX,y:q.clientY}},oYZ=function(q,Z,w,r){if(Z.buttons!==1){if(Z.movementX||Z.movementY)Z.preventDefault(),Z.stopPropagation(),q=bBC(q,w,Z.clientX),w.setState({isHovering:!0,
hoveredTime:q*w.videoDuration})}else J9u(w),HB6(q,Z,{x:Z.clientX,y:Z.clientY},w,r,!1)};
wu.prototype.handleMouseLeave=function(q){J9u(q)};
var J9u=function(q){q.isHovering&&q.setState({isHovering:!1,hoveredTime:0})},Ph7=function(q,Z,w,r){q.startPosition||(q.startPosition=w,q.updateProgressBarRect(),q.controlsWereVisibleBeforeDragging=r.controlsVisible,Z.stopPropagation(),_.b("medium_progress_bar_modification")||Z.preventDefault())},HB6=function(q,Z,w,r,Y,C){if(q.startPosition)if(C&&Y.isInlinePlayback&&q.startPosition&&!q.hasDraggedTheMinimumDistance&&Math.abs(w.y-q.startPosition.y)>Math.abs(w.x-q.startPosition.x))ru(q,r,Y);
else if(Z.preventDefault(),Z.stopPropagation(),r.videoDuration&&(q.startPosition&&!q.hasDraggedTheMinimumDistance&&(q.hasDraggedTheMinimumDistance=Math.abs(w.x-q.startPosition.x)>=1),Y.enableFineScrubbing&&(q.startPosition&&(q.isDraggedForFineScrubbing=-(w.y-q.startPosition.y)>=60),!q.startPosition||w.y>=q.startPosition.y||(r.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:Fij(r.draggedTime,r,Y.chapterData)}),q.setFineScrubbingDraggedTime(r.draggedTime),q.updateFilmStripDraggedYDistance(q.startPosition.y,
w.y,r))),q.hasDraggedTheMinimumDistance)){Z=bBC(q,r,w.x);if(q.isDraggedForFineScrubbing){var d;(d=r.playerApi)==null||d.pauseVideo();r.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:r.draggedTime,filmStripXDistance:Fij(Z*r.videoDuration,r,Y.chapterData)})}!(d=!Y.enableFineScrubbing)&&(d=Y.enableFineScrubbing)&&(d=!(q.getFilmstripYPosition(r)<68));d&&r.setState({draggedTime:Z*r.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:q.controlsWereVisibleBeforeDragging});
var O;(O=Y.cancelAutohideControlsFn)==null||O.call(Y)}},ru=function(q,Z,w){var r=w.enableFineScrubbing&&Z.fineScrubbingActiveState!=="off";
if(Z.isDragging||r){r={isDragging:!1,playedTime:Z.draggedTime,controlsVisible:q.controlsWereVisibleBeforeDragging};w.enableFineScrubbing&&Z.fineScrubbingActiveState!=="on"&&(q.resetFilmStripYOffset(),r.fineScrubbingActiveState="off");var Y=Y===void 0?E$8:Y;var C=_.b5(0);C&&Y&&_.IV(C,Y,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(Z.playedTime*1E3),endMediaTimeMs:Math.round(Z.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});Z.setState(r);
q.seekThrottle.fire(Z.draggedTime,Z,7);_.b("mweb_new_progress_bar_play_on_seek")&&q.resumeVideo(Z);w.unmuteOnSeek&&(w=Z.playerApi,Z.volumeMuted&&(w==null||w.unMute()))}else Z.setState({controlsVisible:!Z.controlsVisible}),(C=w.triggerAutohideControlsAfterDelayFn)==null||C.call(w);q.startPosition=null;q.hasDraggedTheMinimumDistance=!1;q.isDraggedForFineScrubbing=!1;q.controlsWereVisibleBeforeDragging=!1};
wu.prototype.handleClick=function(q,Z,w){this.updateProgressBarRect();q.stopPropagation();q=bBC(this,Z,q.clientX)*Z.videoDuration;Z.setState({playedTime:q});if(Z.playerState!==2){var r;(r=w.triggerAutohideControlsAfterDelayFn)==null||r.call(w)}this.seekThrottle.fire(q,Z,7)};
var bBC=function(q,Z,w){q=q.getProgressBarRect(Z);return _.a0(0,(w-q.left)/q.width,1)};
wu.prototype.resumeVideo=function(q){if(q.draggedTime<q.videoDuration){var Z;(Z=q.playerApi)==null||Z.playVideo()}};
wu.prototype.onThrottledSeek=function(q,Z,w){if(Z=Z.playerApi){var r;if((r=Z.getVideoData())==null?0:r.isLive)r=this.getProgressState(Z),q+=(r==null?void 0:r.seekableStart)||0;Z.seekTo(q,void 0,void 0,void 0,w)}};
wu.prototype.getProgressState=function(q){var Z=q==null?void 0:q.getPresentingPlayerType();return q==null?void 0:q.getProgressState(Z)};var a$S,BI7,nYq,EYl,z$F,xNl,TID,UND,kob;a$S=_.xl(function(q){var Z=q.progressBarProps;var w=q.config;var r=q.progressBarWidthPx;var Y=q.chapterData;var C=XUI(Z,function(){return w().isShortsPage}),d=function(){return!Z().isHovering&&!w().isShortsPage};
q={};var O=_.GL("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(q.ytPlayerStoryboardHostMwebShorts=function(){return w().isShortsPage&&!1},q));
return _.u("yt-player-storyboard",null,_.u(_.PF,{cond:function(){return Z().isDragging||Z().isHovering},
then:function(){return _.u(_.PF,{cond:C,then:function(H){return _.u(_.PF,{cond:d,then:function(){return _.u("div",{class:O,"aria-hidden":"true"},_.u(z$F,{props:Z,config:w,isBigboard:!0,chapterData:Y}))},
else:function(){return _.u(BI7,{props:Z,frame:H,config:w,progressBarWidthPx:r,chapterData:Y})}})}})}}))},"Zd");
_.Q$8=_.xl(function(q){var Z=q.progressBarProps;var w=XUI(Z,q.isShortsPage);return _.u("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.u(_.PF,{cond:function(){return Z().isDragging||Z().isHovering},
then:function(){return _.u(_.PF,{cond:w,then:function(r){return _.u(nYq,{frame:r,props:Z,isBigboard:!0})}})}}))},"$d");
BI7=_.xl(function(q){var Z=q.props;var w=q.frame;var r=q.config;var Y=q.progressBarWidthPx;q=q.chapterData;var C={};C=_.GL("ytPlayerStoryboardHost",(C.ytPlayerStoryboardHostMwebShorts=function(){return r().isShortsPage&&!1},C.ytPlayerStoryboardHostInlinePlayer=function(){return r().isInlinePlayer},C.ytPlayerStoryboardHostFadeIn=function(){return r().useFadeInAnimation},C));
return _.u("div",{class:C,"aria-hidden":"true",style:function(){var d=Z(),O=NG2(w()),H=Y();d=lY9(d)/d.videoDuration;var L=H*d,S=O/2+6;O=H-(O/2+6);return"left: "+(L<=S?S/H*100:L>=O?O/H*100:d*100)+"%"}},_.u(_.PF,{cond:function(){var d=Z();
return!(r().isShortsPage&&d.videoDuration<15)},
then:function(){return _.u(nYq,{frame:w,props:Z,isBigboard:!1})}}),_.u(z$F,{props:Z,
config:r,isBigboard:!1,chapterData:q}))},"ae");
nYq=_.xl(function(q){var Z=q.frame;var w=q.props;var r=q.isBigboard;var Y=function(){var O,H;return(H=(O=w().playerApi)==null?void 0:O.getVideoContentRect())!=null?H:{width:0,height:0}},C=function(){return NG2(Z())},d=function(){var O=Z();
return O?O.height/O.rows:0};
q={};q=_.GL((q.ytPlayerStoryboardBigboardImageWrapper=r,q.ytPlayerStoryboardStoryboardImageWrapper=function(){return!r()},q));
return _.u("div",{class:q,style:function(){return"width: "+(r()?Y().width:C())+"px; height: "+(r()?Y().height:d())+"px;"}},_.u(EYl,{frame:Z,
storyboardWidth:C,storyboardHeight:d,storyboardScale:function(){return(r()?Y().width:C())/C()}}))},"be");
EYl=_.xl(function(q){var Z=q.frame;var w=q.storyboardWidth;var r=q.storyboardHeight;var Y=q.storyboardScale;var C=function(){var d=Z().row,O=Z().column,H=w(),L=r(),S=Y();return{left:-O*H*S,top:-d*L*S}};
return _.u("img",{src:function(){return Z().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+C().left+"px; top: "+C().top+"px; width: "+Z().width*Y()+"px; height: "+Z().height*Y()+"px;"}})},"ce");
z$F=_.xl(function(q){var Z=q.props;var w=q.config;var r=q.isBigboard;var Y=q.chapterData;q={};q=_.GL("ytPlayerStoryboardMetadata",(q.ytPlayerStoryboardMetadataBigboard=r,q));return _.u("div",{class:q},_.u(_.PF,{cond:r,then:function(){return _.u(_.lS,null,_.u(xNl,{props:Z,config:w}),_.u(_.PF,{cond:function(){a:{var C=Z();var d=w(),O=Y(),H;if((d==null?0:d.activeChapter)&&((H=_.J(d==null?void 0:d.activeChapter,QU))==null?0:H.title))C=!0;else{d=_.P(jiO(O));for(d=d.next();!d.done;d=d.next()){C=(d=_.J(d.value,
rg2))&&Ghj(C,d);break a}C=!1}}return C},
then:function(){return _.u(TID,{props:Z,config:w,isBigboard:!0,chapterData:Y})}}))},
else:function(){return _.u(_.lS,null,_.u(TID,{props:Z,config:w,isBigboard:!0,chapterData:Y}),_.u(xNl,{props:Z,config:w}))}}))},"de");
xNl=_.xl(function(q){var Z=q.props;var w=q.config;q={};q=_.GL("ytPlayerStoryboardTimestamp",(q.ytPlayerStoryboardTimestampShorts=function(){return w().isShortsPage},q.ytPlayerStoryboardTimestampIsHovering=function(){return Z().isHovering||w().isShortsPage&&!0},q));
return _.u("div",{class:q},_.u(_.lS,null,function(){return _.pUj(lY9(Z()))}))},"ee");
TID=_.xl(function(q){var Z=q.props;var w=q.config;var r=q.isBigboard;var Y=q.chapterData;q={};r=_.GL("ytPlayerStoryboardTitle",(q.ytPlayerStoryboardTitleBigboard=r,q));return _.u("div",{class:r},_.u(_.PF,{cond:function(){return!w().isShortsPage},
then:function(){return _.u(UND,{props:Z,activeChapter:function(){return w().activeChapter},
chapterData:Y})}}))},"fe");
UND=_.xl(function(q){var Z=q.props;var w=q.activeChapter;var r=q.chapterData;return _.u(_.lS,null,_.u(_.dA,{each:function(){return jiO(r())},
keyBy:"INDEX"},function(Y){return _.u(_.lS,null,_.u(_.PF,{cond:function(){return _.J(Y(),rg2)&&Ghj(Z(),_.J(Y(),rg2))},
then:function(){return _.u(kob,{timedMarker:function(){return _.J(Y(),rg2)}})}}))}),_.u(_.PF,{cond:function(){var Y;
return w()&&((Y=_.J(w(),QU))==null?void 0:Y.title)},
then:function(Y){return _.u(_.r6,{text:Y,noPreWrap:!0})}}))},"ge");
kob=_.xl(function(q){var Z=q.timedMarker;return _.u(_.lS,null,_.u("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.u(_.q0,{icon:function(){return Z().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.u(_.r6,{text:function(){return Z().label},
noPreWrap:!0}))},"he");_.Klc=_.xl(function(q){var Z=q.progressBarProps;var w=q.playheadData;var r=q.config;q=_.Iw();var Y=_.Iw(),C=_.Iw(),d=_.P(_.qo({width:0,left:0},void 0,"v323Dc")),O=d.next().value,H=d.next().value,L=function(){C.value&&H(C.value.getBoundingClientRect())},S=function(){O().width<=0&&L();
return O()};
GF("resize",L);var v=new wu(S,function(){},function(){return 0},function(){},function(){},function(){}),R=function(){return Z()};
d=_.P(_.qo(!1,void 0,"tcVkKf"));var B=d.next().value,n=d.next().value;_.MU(Y,"mouseenter",function(){n(!0);r().position===2?setTimeout(function(){L()},100):L()});
_.MU(Y,"mouseleave",function(){n(!1);Ll8(v,R)()});
d=_.fn(function(Te){r().doSeekOnClick&&Chl(v,R,r)(Te);return!1});
var x=_.fn(function(Te){VJS(v,R)(Te);return!1}),K=_.fn(function(Te){OBZ(v,R)(Te);
return!1}),k=_.fn(function(Te){Wll(v,R,r)(Te);
return!1}),G=_.fn(function(Te){uwZ(v,R,r)(Te);
return!1}),rz=_.fn(function(){SGl(v,R,r)();
return!1}),f=_.fn(function(){vY7(v,R,r)();
return!1}),eO=_.fn(function(){j$C(v,R,r)();
return!1});
GF("mousemove",tJF(v,R,r));GF("mouseup",R$q(v,R,r));_.Ls(function(){xa2(Y.value);n(!1);L();R$q(v,R,r)()});
var g={};g=_.GL("ytPlayerProgressBarHost",function(){return r().className},(g.ytPlayerProgressBarHostReadOnly=function(){return r().disableScrubbing},g.ytPlayerProgressBarHostHidden=function(){return r().hideProgressBar&&!B()},g.ytPlayerProgressBarHostLowerPlayer=function(){return r().position===0},g.ytPlayerProgressBarHostBottomEdge=function(){return r().position===1},g.ytPlayerProgressBarHostBottomInset=function(){return r().position===2},g.ytPlayerProgressBarHostCustom=function(){return r().position===
3},g));
var H6={},nX=_.GL("ytPlayerProgressBarBackground",(H6.ytPlayerProgressBarBackgroundHide=function(){return r().position===2&&!B()&&!Z().isDragging},H6));
H6={};H6=_.GL("ytPlayerProgressBarDragContainer",(H6.ytPlayerProgressBarDragContainerBottomEdge=function(){return r().position===1},H6));
var Qj={};Qj=_.GL("ytPlayerProgressBarProgressBar",(Qj.ytPlayerProgressBarProgressBarInset=function(){return r().position===2},Qj.ytPlayerProgressBarProgressBarInsetMinimized=function(){return r().position===2&&!B()&&!Z().isDragging},Qj));
var SO=function(){return Math.floor(ujN(Z())*100)};
return _.u("yt-progress-bar",{el:q,class:g},_.u(_.PF,{cond:function(){return r().position===2},
then:function(){return _.u("div",{class:nX})}}),_.u("div",{el:Y,
"on:click":d,"on:touchstart":x,"on:mousedown":K,"on:touchmove":k,"on:mousemove":G,"on:touchend":rz,"on:mouseup":f,"on:touchcancel":eO,class:H6,role:"slider","aria-valuenow":SO,"aria-valuetext":function(){return SO()+"%"},
tabindex:0,"aria-label":_.dT("SEEK_SLIDER")},_.u("div",{el:C,class:Qj},_.u(YG8,{progressBarProps:Z,config:r,highContrast:function(){return!!r().isInlinePlayback}}),_.u(_.PF,{cond:function(){return r().chapterData&&tuT(r().chapterData)},
then:function(){return _.u(w5F,{progressState:Z,multiMarkersPlayerBarRenderer:function(){return r().chapterData},
progressBarWidth:function(){return O().width}})},
else:function(){return _.u($N7,{progressBarProps:Z,config:r})}}),_.u(e$C,{progressBarProps:Z,
playheadData:w,interpolateDotPosition:function(){return r().position!==2},
hidePlayhead:function(){return r().playheadDotBehavior===1&&!B()}}))),_.u(a$S,{progressBarProps:Z,
config:function(){return{activeChapter:siz(Z(),r().chapterData),getProgressBarWidthPx:function(){return S().width},
isShortsPage:!!r().isShortsPage,isInlinePlayer:!!r().isInlinePlayback,useFadeInAnimation:!!r().isInlinePlayback}},
progressBarWidthPx:function(){return O().width},
chapterData:function(){return r().chapterData}}))},"ie");
_.Klc.idomCompat=!0;Object.assign({},_.Rr2(),{setState:function(){},
domMeasurements:{},appApi:_.o$O(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var s$8;
_.I$6=_.xl(function(){var q,Z=(q=_.x4(maO().playerApi))!=null?q:void 0;q=_.P(_.qo(!1,void 0,"HLFBmb"));var w=q.next().value,r=q.next().value;q=_.P(_.qo(!1,void 0,"lHH9bc"));var Y=q.next().value,C=q.next().value;q=_.P(_.qo(!1,void 0,"zsY7yd"));var d=q.next().value,O=q.next().value;q=_.P(_.qo(!1,void 0,"KeHQgc"));var H=q.next().value,L=q.next().value;q=_.P(_.qo(0,void 0,"gLLCj"));var S=q.next().value,v=q.next().value;q=_.P(_.qo(0,void 0,"s3RYkf"));var R=q.next().value,B=q.next().value;q=_.P(_.qo(!1,void 0,
"Dn608e"));var n=q.next().value,x=q.next().value;q=_.P(_.qo(0,void 0,"AnkH1b"));var K=q.next().value,k=q.next().value;q=_.P(_.qo(0,void 0,"QYNL0b"));var G=q.next().value,rz=q.next().value;q=_.P(_.qo("",void 0,"Yzw45d"));var f=q.next().value,eO=q.next().value;q=_.P(_.qo(-1,void 0,"iiVI0c"));var g=q.next().value,H6=q.next().value,nX=_.$6(function(){var Qj={controlsVisible:w(),isOverlayHidden:Y(),shouldWaitToHideControls:d(),isDragging:H(),isHovering:n(),videoDuration:K(),playedTime:G(),videoId:f(),
draggedTime:R(),hoveredTime:S(),playerState:g()};return Object.assign({},_.Rr2(),Qj,{domMeasurements:{},setState:function(SO){SO.controlsVisible!==void 0&&r(SO.controlsVisible);SO.isOverlayHidden!==void 0&&C(SO.isOverlayHidden);SO.shouldWaitToHideControls!==void 0&&O(SO.shouldWaitToHideControls);SO.isDragging!==void 0&&L(SO.isDragging);SO.isHovering!==void 0&&x(SO.isHovering);SO.draggedTime!==void 0&&B(SO.draggedTime);SO.hoveredTime!==void 0&&v(SO.hoveredTime);SO.videoDuration!==void 0&&k(SO.videoDuration);
SO.playedTime!==void 0&&rz(SO.playedTime);SO.videoId!==void 0&&eO(SO.videoId);SO.playerState!==void 0&&H6(SO.playerState)},
appApi:_.o$O(),playerApi:Z})},void 0,"ZW7y9");
_.oz(function(){Z==null||Z.addEventListener("onVideoProgress",BG8(nX));Z==null||Z.addEventListener("onVideoDataChange",zr9(nX));Z==null||Z.addEventListener("onStateChange",b38(nX))});
_.SG(function(){if(Z==null?0:Z.isReady())Z==null||Z.removeEventListener("onVideoProgress",BG8(nX)),Z==null||Z.removeEventListener("onVideoDataChange",zr9(nX)),Z==null||Z.removeEventListener("onStateChange",b38(nX))});
return _.u("desktop-shorts-player-controls",null,_.u(s$8,{playerControlsProps:nX}))},"je");
s$8=_.xl(function(q){var Z=q.playerControlsProps;return _.u("div",{class:"desktopShortsPlayerControlsWizHost"},_.u(_.Klc,{progressBarProps:Z,config:function(){return{isShortsPage:!0,hideProgressBar:Z().videoDuration<30&&Z().playerState!==2&&!Z().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"ke");_.mD(_.ysN);_.c9Z=_.xl(function(q){var Z=q.data;return _.u("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.u(_.w6,{command:function(){return Z().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.u(_.PF,{cond:function(){return Z().iconName},
then:function(w){return _.u(_.q0,{icon:w})}}),_.u("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return Z().text}),_.u(_.PF,{cond:function(){return Z().showEndChevron},
then:function(){return _.u(_.q0,{icon:"CHEVRON_RIGHT"})}})))},"le");var MJS=_.xl(function(q){var Z=q.data;var w=q.overlayDensity;q={};return _.u("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.u(_.Hx,{data:function(){return Z().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(r){var Y=r.data;
return _.u(_.tO,{data:function(){if((w==null?void 0:w())===1){var C=Object;var d=C.assign,O=Y();var H={avatarViewModel:Object.assign({},_.J(Y().avatar,_.kL),{avatarImageSize:"AVATAR_SIZE_48"})};C=d.call(C,{},O,{avatar:H})}else C=Y();return C}})}}),_.u(_.r6,{className:_.GL("ytReelChannelBarViewModelChannelName",(q.ytReelChannelBarViewModelChannelNameLarge=function(){return(w==null?void 0:w())===1},q)),
text:function(){return Z().channelName},
linkInheritColor:!0,userInput:!0}),_.u("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.u(_.Hx,{data:function(){return Z().subscribeButtonViewModel}},{subscribeButtonViewModel:function(r){var Y=r.data;
return _.u(yhK,{data:function(){return(w==null?void 0:w())===1?Object.assign({},Y(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},Y().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):Y()},
isOverlay:!1})},
buttonViewModel:_.vx})),_.u("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.u(_.Hx,{data:function(){var r,Y;return(Y=_.J((r=Z())==null?void 0:r.sponsorButtonViewModel,KG9))==null?void 0:Y.sponsorButton}},{buttonViewModel:function(r){return _.u(_.vx,{data:r.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"me");var FlC=_.xl(function(q){var Z={};return _.u("yt-reel-multi-format-link-view-model",{class:_.GL("ytReelMultiFormatLinkViewModelHost",(Z.ytReelMultiFormatLinkViewModelHostTall=!0,Z.ytReelMultiFormatLinkViewModelHostLarge=function(){var w;return((w=q.overlayDensity)==null?void 0:w.call(q))===1},Z))},_.u(_.w6,{ariaLabel:function(){return q.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.oQ(q.data().command)},
dangerousStopPropagation:!1},_.u("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.u(_.PF,{cond:function(){return q.data().icon},
then:function(w){return _.u(_.aQ,{data:w,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.u(_.r6,{text:function(){return q.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ne");
FlC.idomCompat=!0;var NI7=_.xl(function(q){var Z=q.data;var w=_.Iw();q=_.P(_.qo(!1,void 0,"XwMNzb"));var r=q.next().value,Y=q.next().value;q=_.P(_.qo(!1,void 0,"ZysOx"));var C=q.next().value,d=q.next().value,O=function(){return Z().isMultiLineSa},H=_.g6(Ep8,function(){var k,G;
return(G=(k=Z().toggleableContent)==null?void 0:k.entityKey)!=null?G:""}),L=function(){var k,G,rz;
return(rz=Z().toggleableContent)!=null&&rz.entityKey?(G=(k=H())==null?void 0:k.value)!=null?G:!1:!1},S=function(){var k,G,rz,f,eO,g,H6,nX,Qj,SO,Te;
return Z().toggleableContent?L()?(k=Z().toggleableContent)==null?void 0:k.toggledData:(G=Z().toggleableContent)==null?void 0:G.untoggledData:{primaryText:(nX=(rz=Z().defaultContent)==null?void 0:rz.primaryText)!=null?nX:Z().text,secondaryText:(f=Z().defaultContent)==null?void 0:f.secondaryText,onTapCommand:(Qj=(eO=Z().defaultContent)==null?void 0:eO.onTapCommand)!=null?Qj:Z().onTapCommand,icon:(SO=(g=Z().defaultContent)==null?void 0:g.icon)!=null?SO:Z().icon,image:(Te=(H6=Z().defaultContent)==null?
void 0:H6.image)!=null?Te:Z().image}},v=function(){return O()?Z().trailingTapTarget:void 0};
q=function(k,G){return function(){return r()?G:k}};
var R={leadingSection:q("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:q("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:q("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:q("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};q={};q=_.GL((q.ytShortsSuggestedActionViewModelStaticHost=function(){return!O()},q.ytShortsSuggestedActionViewModelDynamicHost=O,q.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return O()&&C()},q.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return O()&&!C()},q));
_.Ls(function(){if(O()){var k=0,G;if((G=Z().animationParams)==null?0:G.shouldExpand){var rz,f;k=((f=(rz=Z().animationParams)==null?void 0:rz.expansionDelaySecs)!=null?f:0)*1E3}var eO,g=((eO=Z().animationParams)==null?0:eO.shouldExpand)?setTimeout(function(){Y(!0)},k):void 0,H6,nX;
k=((H6=Z().animationParams)==null?0:H6.visibilityDelaySecs)?((nX=Z().animationParams)==null?NaN:nX.visibilityDelaySecs)*1E3:0;var Qj=setTimeout(function(){d(!0)},k);
_.SG(function(){g&&clearTimeout(g);clearTimeout(Qj)})}});
var B=function(k){_.Sp(k,Object.assign({},{form:{element:w.value}}))},n=_.fn(function(){var k,G=(k=S())==null?void 0:k.onTapCommand;
G&&B(G)}),x=_.fn(function(){var k,G;
if(k=(G=v())==null?void 0:G.onTapCommand)return B(k),!1}),K=_.y1({"vertical-align":"bottom",
"border-radius":function(){var k;return O()?((k=Z().defaultContent)==null?0:k.isCircleImage)?"50%":"4px":"0px"},
width:function(){var k,G,rz;return O()&&((k=Z().defaultContent)==null?0:k.imageSize)?((rz=(G=Z().defaultContent)==null?void 0:G.imageSize)!=null?rz:24)+"px":null},
height:function(){var k,G,rz;return O()&&((k=Z().defaultContent)==null?0:k.imageSize)?((rz=(G=Z().defaultContent)==null?void 0:G.imageSize)!=null?rz:24)+"px":null}});
return _.u("yt-shorts-suggested-action-view-model",{class:q,el:w},_.u("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.u("button",{class:_.GL(function(){return O()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var k;
return(k=Z().useFullRoundedBorder)!=null&&k?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!v()&&O()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":O()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var k;
return(k=Z().disableFixedHeight)!=null&&k?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""}),
"on:click":n},_.u(_.YB,{model:{color:4}}),_.u("div",{class:_.GL(function(){return O()?R.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.u(_.PF,{cond:function(){var k;
return(k=S())==null?void 0:k.image},
then:function(k){return _.u(_.aQ,{data:k,alt:"",className:function(){return O()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:K})}}),_.u(_.PF,{cond:function(){var k,G;
return(k=S())==null?void 0:(G=k.icon)==null?void 0:G.iconType},
then:function(k){return _.u(_.q0,{icon:k,active:L,className:function(){return O()?r()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.u("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.u(_.PF,{cond:function(){var k;
return(k=S())==null?void 0:k.primaryText},
then:function(k){return _.u("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.u(_.r6,{text:k}))}}),_.u(_.PF,{cond:function(){var k;
return(k=S())==null?void 0:k.secondaryText},
then:function(k){return _.u("div",{class:R.secondaryText},_.u(_.r6,{text:k}))}}))),_.u(_.PF,{cond:v,
then:function(k){return _.u("div",{class:R.trailingSection,"aria-label":function(){var G;return(G=k().a11yLabel)!=null?G:""},
"on:click":x,role:"button",tabindex:0},_.u(_.YB,{model:{color:4}}),_.u(_.q0,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"oe");var l$V=_.xl(function(q){var Z=q.data;var w=q.overlayDensity;var r=_.Iw();q=_.fn(function(d){if(_.R0j(_.JL(d),r.value,["A".toString()]))return!1;(d=Z().truncatedTextOnTapCommand)&&_.Sp(d);return!1});
var Y={},C={};return _.u("yt-shorts-video-title-view-model",{el:r,class:_.GL("ytShortsVideoTitleViewModelHost",(Y.ytShortsVideoTitleViewModelHostClickable=function(){return!!Z().truncatedTextOnTapCommand},Y)),
"on:click":q},_.u("h2",{class:_.GL("ytShortsVideoTitleViewModelShortsVideoTitle",(C.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(w==null?void 0:w())===1},C))},_.u(_.r6,{text:function(){return Z().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"pe");_.GoZ=_.xl(function(q){var Z=q.data;var w=q.overlayDensity;return _.u("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.u(_.Hx,{data:function(){return Z().metadataItems}},{badgeViewModel:function(r){return _.u("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.u(_.hO,{data:r.data}))},
playerDisclosureViewModel:function(r){return _.u("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.u(_.c9Z,{data:r.data}))},
shortsSuggestedActionViewModel:function(r){return _.u("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.u(NI7,{data:r.data}))},
reelChannelBarViewModel:function(r){return _.u("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.u(MJS,{data:r.data,overlayDensity:w}))},
reelMultiFormatLinkViewModel:function(r){return _.u("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.u(FlC,{data:r.data,overlayDensity:w}))},
shortsVideoTitleViewModel:function(r){return _.u("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.u(l$V,{data:r.data,overlayDensity:w}))},
reelSoundMetadataViewModel:function(r){return _.u("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.u(_.i7q,{data:r.data,overlayDensity:w}))}}))},"qe");var p56=_.xl(function(q){var Z=_.n5(q,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),w=Z.size,r=Z.onTap,Y=Z.disabled,C=Z.tooltipText;return _.u("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.u(X_,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:w(),disabled:Y(),tooltipText:C(),onTap:r}},
iconName:q.iconType}))},"re"),X5D=_.xl(function(q){function Z(S){S.stopPropagation();
S.code==="ArrowUp"?(S.preventDefault(),ZTO(O.value)):S.code==="ArrowDown"?(S.preventDefault(),wC2(O.value)):S.code==="KeyM"?g$I():(S.code==="KeyK"||S.code==="Space")&&qRz(H())}
var w=_.n5(q,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});q=w.previousButtonDisabled;var r=w.nextButtonDisabled,Y=w.data,C=w.playabilityStatus,d=w.previewThumbnail,O=_.Iw(),H=_.ok(_.Ukz),L;_.oz(function(){(L=_.nC(O.value))&&L.addEventListener("keydown",Z)});
_.SG(function(){var S;(S=L)==null||S.removeEventListener("keydown",Z)});
w=function(){var S,v,R;return(S=Y())==null?void 0:(v=S.reelPlayerOverlayRenderer)==null?void 0:(R=v.likeButton)==null?void 0:R.likeButtonRenderer};
return _.u("ytd-shorts-miniplayer-overlay",{el:O,class:"ytdShortsMiniplayerOverlayHost"},_.u("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.y1({"background-image":function(){var S=d();return S?'url("'+_.UL(S.thumbnails)+'")':""}})}),_.u("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.u("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.u(p56,{iconType:function(){var S=H();
return S===2||S===-1||S===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){qRz(H())},
tooltipText:function(){var S=H();return S===1||S===3?_.dT("PLAYER_LABEL_PAUSE"):_.dT("PLAYER_LABEL_PLAY")}}),_.u(_.ysN,null)),_.u("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.u(p56,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:q,onTap:function(){ZTO(O.value)},
tooltipText:_.dT("PREVIOUS_VIDEO_LABEL")}),_.u(p56,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:r,onTap:function(){wC2(O.value)},
tooltipText:_.dT("NEXT_VIDEO_LABEL")}),_.b("web_shorts_pip_like_button")?_.u("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.u(JuC,{buttonTooltipPosition:"left",data:w,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.u("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.u(_.PF,{cond:function(){var S,v;return _.J((S=Y())==null?void 0:(v=S.reelPlayerOverlayRenderer)==null?void 0:v.metapanel,
xr9)},
then:function(S){return _.u("div",{class:_.GL("ytdShortsMiniplayerOverlayInteractive")},_.u(_.GoZ,{data:S}))}})),_.u("div",{class:_.GL("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var S;return!((S=Y())==null||!S.adsOverlay)||C()&&!jjN(C())}},_.u("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.u(_.I$6,null)))),_.u(_.PF,{cond:function(){var S=Y(),v,R;
S=_.J(S==null?void 0:(v=S.adsOverlay)==null?void 0:(R=v.fulfillmentContent)==null?void 0:R.fulfilledLayout,o2D);return _.J(S==null?void 0:S.renderingContent,jnW)},
then:function(S){return _.u("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.u(Sbe,{data:S}))}}))},"se");var rbj=_.xl(function(){var q=_.P(_.qo(new _.O3(NaN,NaN),void 0,"dCf7yb")),Z=q.next().value,w=q.next().value;q=_.P(_.qo(!1,void 0,"smJHAc"));var r=q.next().value,Y=q.next().value,C=_.P(_.qo(!1,void 0,"HnqDAc"));q=C.next().value;var d=C.next().value,O=_.t().resolve(_.Tf).miniplayerPropSignalMap[0],H=O.data,L=O.shortsData,S=O.nextButtonDisabled,v=O.shortsPreviewThumbnail,R=O.previousButtonDisabled,B=O.externalPlaylistData;C=O.toastData;var n=O.playabilityStatus,x=O.isDisabled;O=_.ok(_.ee);_.sU("yt-pip-window-resized",
function(rz){w(rz)});
_.sU("yt-activate-pip-miniplayer",function(){return _.V(function(rz){d(!0);_.ub(rz)})});
var K=function(){var rz;return!((rz=B())==null||!rz.contents)&&r()},k=function(){var rz=Z(),f=!!H(),eO=K();
rz=rz.clone();f&&(rz.height-=76);eO&&(rz.height-=285);return rz},G=function(){Y(!r())};
return _.u("ytd-pip-container",{class:"ytdPipContainerHost"},_.u(_.PF,{cond:q,then:function(){return _.u(_.grq,{isDisabled:x,playabilityStatus:n,size:k})}}),_.u(_.PF,{cond:H,
then:function(){return _.u(_.ymS,{data:H,expanded:r,onExpandClick:G,playlistData:B})}}),_.u(_.PF,{cond:K,
then:function(){return _.u("div",{class:"ytdPipContainerPlaylistPanel"},_.u(_.RBu,{data:B,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.u(_.PF,{cond:O,
then:function(){return _.u(X5D,{data:L,nextButtonDisabled:S,previousButtonDisabled:R,playabilityStatus:n,previewThumbnail:v})}}),_.u("div",{class:"ytdPipContainerToast"},_.u(_.qGV,{toastData:C})))},"te");var Yy=function(q,Z){var w=this;this.pipController=q;this.JSC$16298_clientRoot=Z;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=daX();this.watchPipEnabled=_.b("web_watch_pip");this.shortsPipEnabled=_.b("web_shorts_pip");this.JSC$16298_watchWhileEnabled=_.b("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;_.wF(_.sE(),_.QaN,function(r){w.isSingleOptionSurveyActive=r});
this.JSC$16298_onPlayerPlayVideo=this.JSC$16298_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);_.k7(_.UU.getInstance(),this.miniplayerServiceActionMap,this.JSC$16298_clientRoot);window.documentPictureInPicture&&_.aT()&&_.vO("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},Ydp,ZbD,y9l,wOy,Omg,rYb,YU7,$UZ,gYy;
Yy.prototype.handleMediaSessionPipActivation=function(){var q=this,Z;return _.V(function(w){_.qk().mediaSessionPipActivation=!0;Z=_.t().resolve(_.U1);return Z.isOnWatch()&&q.watchPipEnabled?(_.qk().watchPipActivation=!0,_.mNb(q,Z.data),w.jumpTo(0)):Z.isOnShorts()&&q.shortsPipEnabled?(_.qk().shortsPipActivation=!0,_.A9F(q),w.jumpTo(0)):q.isMiniplayerActive()&&q.watchPipEnabled&&!q.watchWhileMode?_.W(w,f$b(q),0):w.jumpTo(0)})};
var f$b=function(q){var Z,w,r,Y;return _.V(function(C){if(C.nextAddress==1)return Z=!q.miniplayerToPipMode,w=q.playerElement,r=q.miniplayerData,Y=q.watchResponse,_.W(C,q.deactivate(),2);if(C.nextAddress!=3)return Z?(_.qk().mediaSessionPipActivation=!0,_.qk().watchPipActivation=!0):_.qk().miniplayerButtonActivation=!0,_.W(C,q.activate(w,r,Y),3);q.miniplayerToPipMode=Z;_.ub(C)})};
Yy.prototype.onDownloadedVideoDeleted=function(q){var Z,w=_.J((Z=this.miniplayerData)==null?void 0:Z.watchEndpoint,_.ck),r,Y;w&&((r=this.watchResponse)==null?void 0:(Y=r.playerResponse)==null?void 0:Y.offlineState)!==void 0&&(Z=w.videoId)&&q&&Z===q&&this.close()};
Yy.prototype.onShowMiniplayerCommand=function(q){var Z=this,w,r,Y,C,d,O,H,L,S,v,R,B,n;return _.V(function(x){switch(x.nextAddress){case 1:return w=_.J(q,bDh),Y=(r=w)==null?void 0:r.miniplayerCommand,C=_.J(Y,_.ck),Y&&C&&!Z.active?_.W(x,_.dF.getInstance(),2):x.return();case 2:return d=x.yieldResult,_.W(x,(O=d)==null?void 0:O.get("yt-miniplayer-shown-video-id"),3);case 3:H=x.yieldResult;L=C.videoId;if(!L||H===L)return x.return();S=_.t().resolve(_.U1);if(S.isOnWatch())return _.bx(Error("Cj")),x.return();
v={channelItem:{externalId:btoa(L)}};Z.readyToResumeVe=_.C6(121253,void 0,void 0,v);_.qk().showMiniplayerCommandActivation=!0;return _.W(x,_.Hmv(Z,Y,!0),4);case 4:return Z.active?(_.$y(Z,{readyToResumeVe:Z.readyToResumeVe,continueWatching:!0,premiumBranding:!((R=w)==null||!R.showPremiumBranding)}),Z.isReadyToResume=!0):_.$y(Z,{continueWatching:!0,premiumBranding:!((B=w)==null||!B.showPremiumBranding)}),_.b("ytd_miniplayer_to_wiz")&&_.$y(Z,{isReadyToResume:!0}),_.W(x,(n=d)==null?void 0:n.set("yt-miniplayer-shown-video-id",
C.videoId),5);case 5:Z.readyToResumeVe=void 0,_.ub(x)}})};
Yy.prototype.init=function(q){this.miniplayerEl?_.bx(new _.df("MiniplayerService already initialized.")):this.miniplayerEl=q};
Yy.prototype.isInitialized=function(){var q=!!this.miniplayerEl;q||_.bx(new _.df("MiniplayerService used before initialized."));return q};
_.mNb=function(q,Z){if(q.isInitialized()){var w=_.H3T(Z.response,Z.playerResponse),r=_.t().resolve(_.U1).getPlayerFromWatch();_.qk().currentEndpoint=w.watchEndpoint||null;q.activate(r,w,Z)}};
_.A9F=function(q){if(q.isInitialized()){var Z=_.t().resolve(_.U1).getPlayerFromShorts();q.activate(Z)}};
Ydp=function(q,Z){var w;(w=!q.isInitialized())||(w=_.t().resolve(_.U1).isOnWatch()&&q.watchPipMode,w=!(q.isMiniplayerActive()&&(_.qk().userActivation||_.qk().lockupActivation||w)));if(w)return!1;DNl(q,Z)?_.Zy(q):Omg(q,Z);return q.watchPipMode?!_.t().resolve(_.U1).isOnWatch():!0};
Yy.prototype.isMiniplayerActive=function(){return this.active};
var DNl=function(q,Z){var w;Z=(w=_.J(Z,_.ck))==null?void 0:w.videoId;var r,Y;q=(Y=_.J((r=q.miniplayerData)==null?void 0:r.watchEndpoint,_.ck))==null?void 0:Y.videoId;return Z!=null&&Z===q};
Yy.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.hy(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.yY(this.miniplayerEl,"yt-navigate-home-action"))};
_.Hmv=function(q,Z,w,r){w=w===void 0?!1:w;var Y,C,d;return _.V(function(O){switch(O.nextAddress){case 1:if(q.active){O.jumpTo(2);break}Y=_.t().resolve(_.U1);if(d=(C=q.playerElement)!=null?C:Y.getPlayerFromWatch()){O.jumpTo(3);break}return _.W(O,_.t().resolve(_.F6),4);case 4:d=Y.getPlayerFromWatch();case 3:if(!d){_.bx(Error("Ej"));O.jumpTo(2);break}return _.W(O,q.activate(d,r),2);case 2:return q.active?_.W(O,Omg(q,Z,w),0):O.return()}})};
Yy.prototype.activate=function(q,Z,w){var r=this,Y,C,d,O,H,L,S,v;return _.V(function(R){switch(R.nextAddress){case 1:if(!r.isInitialized())return R.return();if(!q)return _.bx(Error("Ej")),R.return();if(_.HLp()||r.isMiniplayerActive())var B=!0;else B=_.qk().watchPipActivation||_.qk().watchWhileActivation,_.t().resolve(_.U1).isOnWatch()&&!B?(_.bx(new _.df("miniplayer activated on watch page")),B=!0):B=_.qk().watchWhileActivation?r.userDeactivatedWatchWhile||!!document.pictureInPictureElement||qS2():
!1;if(B)return OL9(),R.return();Y=_.qk().mediaSessionPipActivation;C=_.qk().shortsPipActivation;d=_.qk().watchPipActivation;H=(O=_.qk().watchWhileActivation)||d;L=d||C;if(!r.pictureInPictureEnabled()||!L){R.jumpTo(2);break}return _.W(R,h$F(r,Y),3);case 3:if(!R.yieldResult)return _.bx(Error("Dj")),OL9(),R.return();case 2:return r.setActive(!0),r.watchResponse=w,r.playerElement=q,r.updateMiniplayerData(Z),_.W(R,y9l(r,q),4);case 4:if(!r.active)return _.bx(new _.df("miniplayer deactivated during activation")),
r.removePlayerListeners(),R.return();B=_.t().resolve(_.b8);B.addEventListener("yt-navigate",_.XN(r,r.onPlaylistNavigate));B.addEventListener("yt-playlist-data-updated",_.XN(r,r.JSC$16298_onPlaylistDataUpdated));r.JSC$16298_onPlaylistDataUpdated();OL9();r.JSC$16298_watchWhileEnabled&&_.iBF(r,O);r.pictureInPictureEnabled()&&r.shortsPipEnabled&&(r.shortsPipMode=C,_.sE().dispatch(ypJ(r.shortsPipMode)));r.pictureInPictureEnabled()&&r.watchPipEnabled&&(r.watchPipMode=d);r.player&&(S=r.player.getPlayerState(),
v=S===1,_.sE().dispatch(eMW(S)),_.i5(r.miniplayerEl,"yt-miniplayer-play-state-changed",[v]),_.qk().isVideoPlaying=v);r.watchPipEnabled&&_.wf1(r.handleMediaSessionPipActivation);_.i5(r.miniplayerEl,"yt-miniplayer-endpoint-changed");gYy(r);_.qUC(r);return r.shortsPipMode||r.watchPipMode?_.W(R,_.g0(r.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.b("ytd_miniplayer_to_wiz")?_.W(R,_.g0(r.miniplayerEl,"yt-activate-miniplayer",[H]),6):_.W(R,_.g0(r.miniplayerEl,"yt-activate-miniplayer-action",[q,H]),6);
case 6:ZbD(r),wOy(r,!0),_.ub(R)}})};
Yy.prototype.updateMiniplayerData=function(q){this.miniplayerData=q;_.$y(this,{data:q})};
_.qUC=function(q){var Z,w,r=((Z=q.miniplayerData)==null?void 0:(w=Z.miniplayerRenderer)==null?void 0:w.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";Z=q.watchWhileMode||q.watchPipMode?r&&!_.t().resolve(_.U1).isOnWatch():r;_.$y(q,{isDisabled:Z});var Y,C;w=_.J((Y=q.miniplayerData)==null?void 0:(C=Y.miniplayerRenderer)==null?void 0:C.minimizedEndpoint,_.HZ);Z&&w&&_.t().resolve(_.Ha).openSheet({openPopupActionCommand:{openPopupAction:w}},q.miniplayerEl)};
ZbD=function(q){if(q.watchResponse&&(!q.watchWhileMode||!_.b("kevlar_watch_while_counterfactual"))){var Z,w=(Z=q.watchResponse.playerResponse)==null?void 0:Z.trackingParams;w&&(_.$y(q,{expandVe:_.C6(35989),closeVe:_.C6(34699),readyToResumeCloseVe:_.C6(131070),repositionVe:_.C6(226204),resizeVe:_.C6(226205)}),_.$y(q,{playerVe:_.wa(w)}))}};
y9l=function(q,Z){return _.V(function(w){if(w.nextAddress==1)return Z.preparePlayer(),_.W(w,Z.getPlayerPromise(),2);q.player=w.yieldResult;q.player&&(q.player.addEventListener("onPlayVideo",q.JSC$16298_onPlayerPlayVideo),q.player.addEventListener("onCloseMiniplayer",q.onPlayerCloseMiniplayer),q.player.addEventListener("onExpandMiniplayer",q.onPlayerExpandMiniplayer),q.player.addEventListener("onStateChange",q.onPlayerStateChange));_.ub(w)})};
_.e=Yy.prototype;_.e.JSC$16298_onPlayerPlayVideo=function(q){var Z=q.sessionData&&"autonav"in q.sessionData,w;q.sessionData&&q.sessionData.itct&&(w=q.sessionData.itct);var r=q.watchEndpoint;Z=r&&Z?_.Ize(r,w):_.lI(q.videoId,q.listId||void 0,w);q.sessionData&&_.l5(_.J(Z.commandMetadata,_.XK).url,q.sessionData);Omg(this,Z)};
_.e.onPlayerExpandMiniplayer=function(){_.Zy(this)};
_.e.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.e.onPlayerStateChange=function(){if(this.player){var q=this.player.getPlayerState(),Z=q===1;_.sE().dispatch(eMW(q));_.sE().dispatch(_.P_K(q));_.i5(this.miniplayerEl,"yt-miniplayer-play-state-changed",[Z]);_.qk().isVideoPlaying=Z;if(q===0){Z=!_.sN.getInstance().isAutoplaySetExplicitly();var w,r,Y,C,d,O,H=(w=this.watchResponse.response)==null?void 0:(r=w.contents)==null?void 0:(Y=r.twoColumnWatchNextResults)==null?void 0:(C=Y.autoplay)==null?void 0:(d=C.autoplay)==null?void 0:(O=d.autoplayExplicitChoiceDialogRenderer)==
null?void 0:O.confirmDialogRenderer;Z&&H&&this.player.setAutonavState(1)}q===0&&this.watchWhileMode&&this.deactivate()}};
_.e.onPlaylistNavigate=function(q,Z){var w=this,r,Y,C,d,O,H,L;return _.V(function(S){if(S.nextAddress==1){if(!_.J(Z.endpoint,_.ck))return S.return();_.qk().currentEndpoint=Z.endpoint;_.i5(w.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.t().resolve(_.U1).isOnWatch()&&(w.watchWhileMode||w.watchPipMode))return S.return();q.stopPropagation();(C=(Y=_.J((r=Z.endpoint)==null?void 0:r.commandMetadata,_.XK))==null?void 0:Y.url)&&Z.tempData&&!_.R4.isEmpty(Z.tempData)&&_.l5(C,Z.tempData);d={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};O=new dsD(function(){return w.getPlayerElement()},d,{layer:3});
H=function(v){O.processChunk({endpoint:Z.endpoint,data:v})};
rYb(w);w.miniplayerFetchRequest=YU7(w,Z.endpoint,H);_.d9(S,2);return _.W(S,w.miniplayerFetchRequest,4)}if(S.nextAddress!=2)return L=S.yieldResult,$UZ(w,L),_.QL(S,0);_.o3(S);_.ub(S)})};
_.e.JSC$16298_onPlaylistDataUpdated=function(){var q=_.t().resolve(_.b8).getPlaylistData();this.hasPlaylistData=!!q;_.$y(this,{externalPlaylistData:q||{}})};
_.e.close=function(q){if(this.isInitialized())if(q){if(!((this.watchWhileMode||this.watchPipMode)&&_.t().resolve(_.U1).isOnWatch()||this.shortsPipMode)){var Z;(Z=this.getPlayerElement())==null||Z.stop()}this.deactivate()}else _.nq().closeMiniplayer(this.miniplayerEl)};
_.e.deactivate=function(q){var Z=this,w,r,Y,C;return _.V(function(d){if(d.nextAddress==1){if(!Z.isInitialized()||!Z.active)return d.return();Z.setActive(!1);rYb(Z);(w=!!q&&DNl(Z,q))&&Z.isSingleOptionSurveyActive&&_.yY(Z.miniplayerEl,"yt-show-watch-page-survey",[Z.isSingleOptionSurveyActive]);return _.W(d,e7u(Z),2)}if(d.nextAddress!=3){wOy(Z,!1);Z.isReadyToResume=!1;Z.watchResponse=void 0;Z.updateMiniplayerData(void 0);Z.shortsPipMode&&(Z.shortsPipMode=!1,_.sE().dispatch(ypJ(Z.shortsPipMode)),Tcc(Z.pipController),
(r=Z.player)==null||r.setInternalSize(NaN,NaN));Z.watchPipMode&&(Z.watchPipMode=!1,Tcc(Z.pipController));(Y=Z.watchWhileMode)&&_.iBF(Z,!1);Z.removePlayerListeners();var O=_.t().resolve(_.b8);O.removeEventListener("yt-navigate",_.XN(Z,Z.onPlaylistNavigate));O.removeEventListener("yt-playlist-data-updated",_.XN(Z,Z.JSC$16298_onPlaylistDataUpdated));_.qk().currentEndpoint=null;_.i5(Z.miniplayerEl,"yt-miniplayer-endpoint-changed");Z.playerElement=null;OL9();return Z.shortsPipMode||Z.watchPipMode?d.jumpTo(3):
_.W(d,_.g0(Z.miniplayerEl,_.b("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[w,Y]),3)}(C=Z.player)==null||C.setInternalSize(NaN,NaN);Z.player=null;_.ub(d)})};
var e7u=function(q){var Z;return _.V(function(w){Z=_.t().resolve(_.U1);return q.shortsPipMode?_.W(w,Z.movePlayerToShorts(q.playerElement),0):_.W(w,Z.movePlayerToWatch(q.playerElement),0)})};
Yy.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16298_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
Yy.prototype.setActive=function(q){this.active=q;this.isSingleOptionSurveyActive?_.yY(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.yY(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.sE().dispatch(_.mu({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.iBF=function(q,Z){q.watchWhileMode=Z;_.$y(q,{watchWhile:Z})};
wOy=function(q,Z){if(q.shortsPipMode||q.watchPipMode){var w;(w=q.player)==null||w.setDocumentPictureInPicture(Z)}else{var r;(r=q.player)==null||r.setMinimized(Z)}};
_.Zy=function(q){var Z;return _.V(function(w){switch(w.nextAddress){case 1:if(!q.isInitialized())return w.return();_.d9(w,2);return _.W(w,q.miniplayerFetchRequest,4);case 4:_.QL(w,3);break;case 2:_.o3(w);case 3:q.watchResponse&&q.miniplayerData&&q.miniplayerData.watchEndpoint?(Z={url:q.watchResponse.url,endpoint:q.miniplayerData.watchEndpoint,data:q.watchResponse,miniplayer:!0},_.hy(q.miniplayerEl,"yt-navigate-cache",Z)):q.miniplayerData&&q.miniplayerData.watchEndpoint&&_.hy(q.miniplayerEl,"yt-navigate",
{endpoint:q.miniplayerData.watchEndpoint}),_.ub(w)}})};
Omg=function(q,Z,w){var r,Y,C,d;return _.V(function(O){if(O.nextAddress==1){if(DNl(q,Z))return O.return();_.qk().currentEndpoint=Z;_.i5(q.miniplayerEl,"yt-miniplayer-endpoint-changed");_.i5(q.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.qk().isVideoPlaying=!1;r={clientParams:{miniplayer:!0,autoSaveToQueue:!w}};Y=new dsD(function(){return q.getPlayerElement()},r,{layer:3,
parentLayer:0},void 0,q.readyToResumeVe);C=function(H){var L,S,v=Object.assign({},(L=H.playerResponse)==null?void 0:(S=L.playerConfig)==null?void 0:S.playbackStartConfig,{startPaused:!0}),R;w&&((R=H.playerResponse)==null?0:R.playerConfig)&&(H.playerResponse.playerConfig.playbackStartConfig=v);Y.processChunk({endpoint:Z,data:H})};
rYb(q);q.miniplayerFetchRequest=YU7(q,Z,C);_.d9(O,2);return _.W(O,q.miniplayerFetchRequest,4)}if(O.nextAddress!=2)return d=O.yieldResult,$UZ(q,d),_.QL(O,0);_.o3(O);_.ub(O)})};
rYb=function(q){q.miniplayerFetchRequest&&(q.miniplayerFetchRequest.cancel&&q.miniplayerFetchRequest.cancel("Active request obsolete"),q.miniplayerFetchRequest=null)};
YU7=function(q,Z,w){var r=_.mM.instance,Y,C=(Y=_.J(Z.commandMetadata,_.XK))==null?void 0:Y.url,d;Y=!C||_.b("disable_miniplayer_tempdata")?{}:(d=wR8(C))!=null?d:{};return Kd(r,Z,Y,window.location.href,"watch",function(O,H){w(H)},function(O){return O!==q.miniplayerFetchRequest})};
$UZ=function(q,Z){var w;_.V(function(r){if(!Z)return r.return();q.watchResponse=Z;ZbD(q);gYy(q);w=_.H3T(Z.response,Z.playerResponse);if(q.isMiniplayerActive()){Z.response&&(q.playerElement.watchNextData=Z.response);var Y=_.R4.getValueByKeys.apply(_.R4,[Z].concat(_.Ju(t4m)));_.R4.getValueByKeys.apply(_.R4,[Z].concat(_.Ju(B87)))&&Y&&_.t().resolve(_.b8).setAutoplayRenderer(Y);if(Y)if(_.b("kevlar_is_pupi_enabled")){var C,d,O,H,L,S=((C=Z.response)==null?0:(d=C.playerOverlays)==null?0:(O=d.playerOverlayRenderer)==
null?0:(H=O.autonavToggle)==null?0:(L=H.autoplaySwitchButtonRenderer)==null?0:L.enabled)?2:1;_.sN.getInstance().setState(S,!1,!1)}else C=uO1()?2:1,(S=q.player)==null||S.setAutonavState(C);q.updateMiniplayerData(w);_.qUC(q)}_.ub(r)})};
gYy=function(q){var Z,w,r=(Z=q.watchResponse)==null?void 0:(w=Z.playerResponse)==null?void 0:w.playabilityStatus,Y;Z=r==null?void 0:(Y=r.miniplayer)==null?void 0:Y.miniplayerRenderer;(Z==null?void 0:Z.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&Z.minimizedEndpoint&&_.qM(q.miniplayerEl,[Z.minimizedEndpoint]);_.$y(q,{miniplayerRenderer:Z,playabilityStatus:r})};
Yy.prototype.openToast=function(q,Z){_.$y(this,{toastData:{data:q,label:Z}})};
_.$y=function(q,Z){var w=q.miniplayerEl,r;for(r in Z)w[r]=Z[r];(0,q.miniplayerPropSignalMap[1])(Z)};
Yy.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var q;return this.playerElement?this.playerElement:(q=_.E(this.miniplayerEl).querySelector("#player-container"))==null?void 0:q.firstElementChild};
var h$F=function(q,Z){Z=Z===void 0?!1:Z;var w,r,Y,C,d,O,H;return _.V(function(L){if(L.nextAddress==1){w=navigator.userActivation.isActive||Z;if(!w)return L.return(!1);r=CxZ(q);Y=r.width;C=r.height;return _.W(L,q.pipController.openWindow({width:Y,height:C}),2)}d=L.yieldResult;O=q.pipController.getWindow();if(!O||!d)return L.return(!1);O.document.body.style.overflow="hidden";H=YR2(O);UoS(q.pipController,function(){PxF(q);H()});
return L.return(!0)})},CxZ=function(q){var Z=_.qk().shortsPipActivation,w,r;
q=Z?.5625:(r=(w=q.player)==null?void 0:w.getVideoAspectRatio())!=null?r:16/9;w=Math.min(window.innerWidth,window.innerHeight)/2;Z=Z?0:76;return q>1?new _.O3(w,Z+w/q):new _.O3(w*q,Z+w)},PxF=function(q){var Z;
_.V(function(w){Z=_.t().resolve(_.U1);return Z.isOnWatch()&&q.watchPipMode||Z.isOnShorts()&&q.shortsPipMode?_.W(w,q.deactivate(),0):q.miniplayerToPipMode?_.W(w,f$b(q),0):q.watchPipMode?_.W(w,_.Zy(q),0):w.jumpTo(0)})};
Yy.prototype.pictureInPictureEnabled=function(){return!!window.documentPictureInPicture&&_.aT()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.My.Object.defineProperties(Yy.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Yy[M1]=[k26,xoF];var dUb="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(" "),
VX8="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" ");var Obl=null;var HbF={},WDq=(HbF.initialized={priority:10,callback:function(q){var Z=_.t();Z.addProvider({provide:XNK,useClass:ET7});Z.addProvider({provide:_.Qzl,useFactory:function(){return new moh}});
Z.addProvider({provide:HS,useValue:_.zj("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});Z.addProvider({provide:p3Z,useValue:5184E6});Z.addProvider({provide:YJu,useValue:_.R0()});Z.addProvider({provide:o66,useClass:q0J});Z.addProvider({provide:IX,useClass:IX});Z.addProvider({provide:_.F6,useFactory:function(){return gd9.promise}});
Z.addProvider({provide:_.Zt1,useFactory:function(){return _.qF7.promise}});
Z.addProvider({provide:_.X6,useValue:function(){var O;return((O=_.K6())==null?void 0:O.getPlayer())||null}});
var w={};Z.addProvider((w.provide=_.Bs,w.useFactory=function(O,H){return function(){return ID9(O,H)}},w[M1]=[HS,
p3Z],w));w={};Z.addProvider((w.provide=_.A_,w.useClass=TXZ,w[M1]=[HS,p3Z],w));w={};Z.addProvider((w.provide=_.vWT,w.useClass=s1b,w[M1]=[_.A_],w));Z.addProvider({provide:rw,useFactory:_.sE});Z.addProvider({provide:r1,useFactory:_.sE});Z.addProvider({provide:SuC,useFactory:_.sE});Z.addProvider({provide:zHK,useFactory:_.sE});Z.addProvider({provide:_.oL,useFactory:_.sE});Z.addProvider({provide:X3,useValue:_.Zk});Z.addProvider({provide:Jfu,useClass:uNe});Z.addProvider({provide:Jj8,useClass:bCS});Z.addProvider({provide:Oo,
useClass:Oo});Z.addProvider({provide:YS,useClass:YS});Z.addProvider({provide:Cr,useClass:Cr});Z.addProvider({provide:dP,useClass:dP});Z.addProvider({provide:vs,useClass:vs});Z.addProvider({provide:DE,useClass:DE});Z.addProvider({provide:lr,useClass:lr});Z.addProvider({provide:vib,useValue:lLD});Z.addProvider({provide:_.wK,useFactory:_.iy});Z.addProvider({provide:yj7,useFactory:_.Hd});w={};Z.addProvider((w.provide=i0e,w.useFactory=function(O){return function(H){var L=L===void 0?{}:L;var S,v,R=(v=_.J((S=
H.endpoint)==null?void 0:S.commandMetadata,_.XK))==null?void 0:v.rootVe;if(R){var B,n;if(S=H.previousCsn||((n=_.J((B=H.endpoint)==null?void 0:B.commandMetadata,hfh))==null?void 0:n.parentCsn)){var x=x===void 0?{}:x;if(S!==_.b5(x.layer)||R!==PaN(x.layer))WwT(S,x.cttAuthInfo,x.layer||0),e1T(S,x.layer||0),B=x.layer||0,_.bO(CaO(B===void 0?0:B),R);L.parentCsn=S}H.endpoint&&S?y_W(O,H.endpoint,L):_.mG(O,R,void 0,L);var K;((K=H.response)==null?0:K.trackingParams)&&O.graftServerVe(H.response.trackingParams);
var k;((k=H.playerResponse)==null?0:k.trackingParams)&&O.graftServerVe(H.playerResponse.trackingParams);var G;((G=H.reelWatchSequenceResponse)==null?0:G.trackingParams)&&O.graftServerVe(H.reelWatchSequenceResponse.trackingParams)}}},w[M1]=[_.wK],w));
w={};Z.addProvider((w.provide=jFZ,w.useClass=v6F,w[M1]=[X3,_.oL],w));w={};Z.addProvider((w.provide=Ip,w.useClass=Ip,w[M1]=[_.F6,_.oL],w));w={};Z.addProvider((w.provide=Uo,w.useClass=Uo,w[M1]=[r1,_.ps],w));Z.addProvider({provide:_.Bcl,useClass:sFZ});w={};Z.addProvider((w.provide=_.Of,w.useClass=QF6,w[M1]=[_.Bcl],w));Z.addProvider({provide:_.Ha,useClass:Ft});Z.addProvider({provide:_.Wa,useClass:cs});w={};Z.addProvider((w.provide=_.Im,w.useClass=KP6,w[M1]=[_.Im],w));_.b("web_enable_voting_animation")&&
Z.addProvider({provide:_.QK,useClass:LeV});Z.addProvider({provide:PS,useClass:PS});Z.addProvider({provide:om,useClass:om});Z.addProvider({provide:Rm,useClass:Mp});w={};Z.addProvider((w.provide=zN,w.useClass=zN,w[M1]=[_.Ha,Rm],w));_.b("web_enable_feedback_endpoint_resolver")&&(w={},Z.addProvider((w.provide=Yp,w.useClass=Yp,w[M1]=[rw,ww],w)),Z.addProvider({provide:ww,useClass:IM8}));_.b("web_enable_feedback_endpoint_resolver_batch_2")&&(w={},Z.addProvider((w.provide=em,w.useClass=em,w[M1]=[rw],w)),
w={},Z.addProvider((w.provide=$p,w.useClass=$p,w[M1]=[ww],w)));w={};Z.addProvider((w.provide=bT,w.useClass=bT,w[M1]=[_.Wa,Rm],w));w={};Z.addProvider((w.provide=Sm,w.useClass=Sm,w[M1]=[_.Wa],w));w={};Z.addProvider((w.provide=Jd,w.useClass=Jd,w[M1]=[_.PP,_.Of],w));w={};Z.addProvider((w.provide=td,w.useClass=td,w[M1]=[_.PP,_.wK],w));Z.addProvider({provide:pJ,useClass:pJ});w={};Z.addProvider((w.provide=FM,w.useClass=FM,w[M1]=[rw],w));w={};Z.addProvider((w.provide=rV,w.useClass=rV,w[M1]=[rw],w));w={};
Z.addProvider((w.provide=YG,w.useClass=YG,w[M1]=[_.PP,rw],w));w={};Z.addProvider((w.provide=$G,w.useClass=$G,w[M1]=[rw],w));w={};Z.addProvider((w.provide=eB,w.useClass=eB,w[M1]=[rw],w));w={};Z.addProvider((w.provide=vS,w.useClass=vS,w[M1]=[_.Of],w));w={};Z.addProvider((w.provide=fJ,w.useClass=fJ,w[M1]=[_.wK],w));w={};Z.addProvider((w.provide=qG,w.useClass=qG,w[M1]=[lT],w));w={};Z.addProvider((w.provide=ZE,w.useClass=ZE,w[M1]=[lT],w));Z.addProvider({provide:yO,useClass:yO});Z.addProvider({provide:iT,
useClass:iT});Z.addProvider({provide:Ad,useClass:Ad});w={};Z.addProvider((w.provide=BS,w.useClass=BS,w[M1]=[_.Of,_.ps],w));Z.addProvider({provide:O$,useClass:O$});w={};Z.addProvider((w.provide=jm,w.useClass=jm,w[M1]=[_.PP,_.Of],w));Z.addProvider({provide:uT,useClass:uT});w={};Z.addProvider((w.provide=cS,w.useClass=cS,w[M1]=[rw,_.PP,_.Im],w));w={};Z.addProvider((w.provide=KJ,w.useClass=KJ,w[M1]=[_.PP,_.ps],w));Z.addProvider({provide:dzK,useValue:igX});Z.addProvider({provide:voj,useValue:$V8});Z.addProvider({provide:s$,
useClass:s$});w={};Z.addProvider((w.provide=kp,w.useClass=kp,w[M1]=[rw],w));w={};Z.addProvider((w.provide=MV,w.useClass=MV,w[M1]=[_.QK,_.ps],w));w={};Z.addProvider((w.provide=CJ,w.useClass=CJ,w[M1]=[_.ps],w));Z.addProvider({provide:Z6,useFactory:function(){return new Z6(_.sE())}});
Z.addProvider({provide:bT2,useFactory:_.zI.getInstance});w={};Z.addProvider((w.provide=WS,w.useClass=WS,w[M1]=[HS,bT2,_.ps],w));Z.addProvider({provide:dw,useClass:dw});Z.addProvider({provide:D2,useClass:D2});Z.addProvider({provide:yi,useClass:yi});Z.addProvider({provide:_.hB,useClass:_.hB});Z.addProvider({provide:dV,useClass:dV});w={};Z.addProvider((w.provide=xp,w.useClass=xp,w[M1]=[r1],w));w={};Z.addProvider((w.provide=TN,w.useClass=TN,w[M1]=[_.ps],w));_.b("web_enable_prefetching_videos_on_home")&&
(Z.addProvider({provide:TV,useClass:TV}),Z.addProvider({provide:ha,useClass:ha}));w={};Z.addProvider((w.provide=Pu,w.useClass=Pu,w[M1]=[_.ps],w));Z.addProvider({provide:gN,useClass:gN});w={};Z.addProvider((w.provide=XM,w.useClass=XM,w[M1]=[_.PP,_.ps],w));w={};Z.addProvider((w.provide=qV,w.useClass=qV,w[M1]=[_.ps],w));Z.addProvider({provide:ya,useClass:ya});Z.addProvider({provide:QO,useClass:QO});w={};Z.addProvider((w.provide=nJ,w.useClass=nJ,w[M1]=[r1,_.ps],w));w={};Z.addProvider((w.provide=Hu,w.useClass=
Hu,w[M1]=[r1,_.ps,_.PP],w));w={};Z.addProvider((w.provide=Wu,w.useClass=Wu,w[M1]=[_.ps],w));w={};Z.addProvider((w.provide=O9,w.useClass=O9,w[M1]=[_.ps,_.PP],w));w={};Z.addProvider((w.provide=U$,w.useClass=U$,w[M1]=[_.F6],w));w={};Z.addProvider((w.provide=E$,w.useClass=E$,w[M1]=[_.F6],w));Z.addProvider({provide:NV,useClass:NV});Z.addProvider({provide:GN,useClass:GN});Z.addProvider({provide:wV,useClass:wV});_.b("kevlar_enable_mss_lazy_load")&&Z.addProvider({provide:_.k4,useClass:Ppl});Z.addProvider({provide:_.pq,
useClass:lw});Z.addProvider({provide:KH,useFactory:function(){return _.UU.getInstance()}});
Z.addProvider({provide:u4u,useFactory:ge9});Z.addProvider({provide:lT,useFactory:function(){return _.dF.getInstance()}});
Z.addProvider({provide:mO9,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});w={};Z.addProvider((w.provide=_.kS,w.useClass=_.kS,w[M1]=[_.F6,_.ps,_.wK,u4u,lT,KH,mO9,X3],w));Z.addProvider({provide:_.FkD,useClass:MN7});Z.addProvider({provide:_.muq,useClass:X3F});w={};Z.addProvider((w.provide=LJ,w.useClass=LJ,w[M1]=[_.muq],w));w={};Z.addProvider((w.provide=_.Kr,w.useFactory=function(O){return O.upliftCompletionResolver.promise},w[M1]=[jFZ],w));
w=_.BF("IS_SHELL_LOAD")?"aa":"eocs";var r=_.BF("IS_SHELL_LOAD")?3:2;_.zB().parkOrScheduleJob(function(){R26()},r,w);
_.zB().parkOrScheduleJob(function(){_.t().resolve(Ip).start()},2,"eocs");
_.zB().parkOrScheduleJob(function(){LPy()},2,"eocs");
_.zB().parkOrScheduleJob(function(){_.t().resolve(Uo).start()},2,"eocs");
_.b("kevlar_debug_data_app_registration_ks")||$pN();Z.addProvider({provide:_.d6,useValue:new aJ6(q.root)});Z.addProvider({provide:x7,useValue:new KWO});Z.addProvider({provide:_.KTS,useValue:new UXy(q.root)});Z.addProvider({provide:_.Co,useValue:new k$u});Z.addProvider({provide:_.fq,useValue:new qO(q.root)});Z.addProvider({provide:k26,useClass:Np});_.b("kevlar_network_sli_killswitch")||Z.addProvider({provide:K6D,useValue:xHm});Z.addProvider({provide:zeC,useFactory:UP6});_.b("web_bind_fetch")&&(w={},
Z.addProvider((w.provide=BAV,w.useFactory=k8j,w[M1]=[_.Gj(zeC)],w)));_.b("web_bind_parse")&&(w={},Z.addProvider((w.provide=aVZ,w.useFactory=Kf8,w[M1]=[_.Gj(zeC)],w)));_.b("web_bind_window_request")&&(w={},Z.addProvider((w.provide=nT6,w.useFactory=sjI,w[M1]=[_.Gj(zeC)],w)));w={};Z.addProvider((w.provide=P6F,w.useFactory=DPT,w[M1]=[_.Kr,rw,_.Bs],w));w={};Z.addProvider((w.provide=C6V,w.useClass=of,w[M1]=[P6F],w));Z.addProvider({provide:J1y,useClass:j1c});Z.addProvider({provide:r1b,useClass:$by});w=[].concat(_.Ju(ak));
_.b("web_continuation_response_processing")&&w.push(_.L6);w.push(C3W);_.b("enable_share_panel_navigation_logging_fix_on_web")&&w.push(_.Xt2);Z.addProvider({provide:biO,useValue:w});Z.addProvider({provide:BL6,useClass:wGl});Z.addProvider({provide:M9u,useClass:szF});w={};Z.addProvider((w.provide=RCO,w.useClass=AuF,w[M1]=[r1],w));_.v5.addLowPriorityJob(function(){bgj()});
w={};Z.addProvider((w.provide=Ehm,w.useFactory=function(O){return function(H){var L,S=(L=_.J(H.commandMetadata,_.XK))==null?void 0:L.url;if(!S)throw new _.df("No URL for PBJ Command",H);S=oKj(S,{pbj:"1"});L=UM2(S,{})||{};L=Object.assign({},L,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.zj("STS").toString()});H=_.ZL({command:JSON.stringify(H),session_token:_.zj("XSRF_TOKEN")});return O.fetch(S,{method:"POST",headers:L,body:H})}},w[M1]=[M9u],w));
w=[];w.push(Z.resolve(r1b));r={};r=(r.client_location=_.zI.getInstance(),r.consistency=_.K5O(),r.entities=Z.resolve(Jj8),r.response_received_commands=Z.resolve(BL6),r.store=Z.resolve(_.vWT),r.tokens=Z.resolve(r1b),r);if(_.b("web_shorts_prefetch_service_enabled")){var Y=new IAD(Z.resolve(_.A_));r.shorts_prefetch=Y}r.adblock_detection=Z.resolve(RCO);Z.addProvider({provide:_.To,useClass:_.To});Y=Z.resolve(vib);var C=[];if(_.b("PremiumClientSharedConfig__enable_att_context_processor")||_.b("enable_att_for_transcript_request_on_web_client"))Z.addProvider({provide:CMC,
useClass:Y3q}),C.push(Z.resolve(CMC));if(_.b("owl_pl_await")){var d={};Z.addProvider((d.provide=vTy,d.useFactory=function(O){return new L6Z(O)},d[M1]=[_.To],d));
C.push(Z.resolve(vTy))}CtD(Y,Z.resolve(M9u),Z.resolve(Jfu),r,Z.resolve(_.A_),w,C,Z.resolve(C6V),Z.resolve(J1y));Z.addProvider({provide:_.PP,useValue:_.bl.instance});_.b("start_client_gcf")&&Z.addProvider({provide:ow,useValue:oQg()});Z.addProvider({provide:JXF,useFactory:function(){return new JXF(_.t().resolve(_.To),_.dF.getInstance())}});
_.zB().parkOrScheduleJob(function(){z2Z()},1,"eocs");
w={};Z.addProvider((w.provide=so,w.useClass=so,w[M1]=[_.Bs,_.PP],w));Z.addProvider({provide:_.NcZ,useFactory:_.D0.getInstance});_.zB().parkOrScheduleJob(function(){_.t().resolve(so).refresh()},0,"eocs");
xs7(lLD.watchEndpointMap||{},Y.reelWatchEndpointMap||{},q.injector.resolve(_.PP));Z.addProvider({provide:vH,useValue:_.mM.instance});_.b("web_prs_testing_mode_killswitch")||(w=new _.M$(window.location.href),w.JSC$7906_queryData_.toString()!==""&&w.JSC$7906_queryData_.get("force_ad_encrypted")&&(_.mM.instance.forceWebFEForAdsTesting=!0));_.b("kevlar_signal_collection_killswitch")||(w={},Z.addProvider((w.provide=WPq,w.useClass=WPq,w[M1]=[HS,yj7],w)),_.zB().parkOrScheduleJob(function(){_.t().resolve(WPq).record()},
1,"eocs"));
_.b("web_debug_handler_registration_killswitch")||_.zB().parkOrScheduleJob(function(){raO("DOWNLOAD_PES",ixz);_.b("offline_client_state_export_ks")||raO("OFFLINE_CLIENT_STATE",D26)},0,"eocs");
_.b("kevlar_prevent_polymer_dynamic_font_load")&&_.zB().parkOrScheduleJob(function(){var O=[_.qu(heq),_.qu(yfl)];O=_.P(O);for(var H=O.next();!H.done;H=O.next()){H=H.value;var L=document.createElement("link");_.hI(L,H,"stylesheet");document.head.appendChild(L)}},1,"eocs");
w=q.injector.resolve(_.PP);_.eTD.instance=new _.eTD(w);K_1(i_u(new $uD(w)));w={};q.injector.addProvider((w.provide=pb,w.useFactory=function(O){(O=O==null?void 0:O.getCurrentPage())?O=O.visibilityObserver:(Obl||(Obl=syz()),O=Obl);return O},w[M1]=[_.Gj(_.U1)],w.skipCache=!0,w));
Z.addProvider({provide:_.Tf,useClass:Yy});Z.addProvider({provide:gm,useClass:AVJ});Z.addProvider({provide:X9O,useValue:Zg8});q.injector.addProvider({provide:MWp,useValue:B9u});Z.addProvider({provide:FZe,useValue:yUe});Z.addProvider({provide:_.RQ,useValue:dE1});q=Z.addProvider;G2l||(G2l=new lBb);q.call(Z,{provide:_.pNl,useValue:G2l});Z.addProvider({provide:_.JE,useValue:_.zj("HTML_DIR")==="rtl"?"rtl":"ltr"});Z.addProvider({provide:BD7,useClass:Keq});Z.addProvider({provide:_.my,useClass:GV});_.t().addProvider({provide:nxS,
useValue:dUb.concat(VX8)});Z.addProvider({provide:_.Xt,useClass:_.Xt});Z.addProvider({provide:_.mRb,useValue:new XFl});Z.addProvider({provide:bAq,useClass:thZ});Z.addProvider({provide:mC,useClass:mC});Z.addProvider({provide:D6,useClass:D6});q={};Z.addProvider((q.provide=am,q.useClass=am,q[M1]=[_.PP,_.Of],q));Z.addProvider({provide:Vc,useClass:Vc});Z.addProvider({provide:lF7,useClass:cXq});Z.addProvider({provide:gw,useClass:gw});Z.addProvider({provide:wCK,useValue:xaK});Z.addProvider({provide:_.zt,
useClass:RTD});_.b("enable_payments_purchase_manager")&&Z.addProvider({provide:OCZ,useClass:PM7});Z.addProvider({provide:DRy,useFactory:function(){return function(O){return _.fVZ(O)}}});
Z.addProvider({provide:_.qJ8,useClass:Zhl});q={};Z.addProvider((q.provide=CF,q.useClass=CF,q[M1]=[_.qJ8],q));Z.addProvider({provide:hd,useClass:hd});Z.addProvider({provide:Dj8,useValue:O_b});Z.addProvider({provide:b$h,useValue:h2F});Z.addProvider({provide:oS9,useClass:IBS});Z.addProvider({provide:Aml,useValue:m4y});q={};Z.addProvider((q.provide=_.fLZ,q.useClass=D4c,q[M1]=[Aml],q));_.b("web_ephemeral_actions")&&(q={},Z.addProvider((q.provide=_.Aa,q.useClass=mz,q[M1]=[_.oL,_.fq],q)));if(_.b("web_explore_hub_on_hover")||
_.b("web_client_explore_hub_on_hover"))q={},Z.addProvider((q.provide=VO,q.useClass=VO,q[M1]=[_.PP,KH],q));Z.addProvider({provide:l6T,useValue:kNj})}},HbF);var o7D={},uuu=(o7D.initialized={priority:10,callback:function(){if(!kjZ){Fq8();ckj("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.yV(_.Oh(ckj,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.b("log_heartbeat_with_lifecycles")){var q={};kN.instance||(kN.instance=new kN);kN.instance.install((q.document_visible={callback:M5j,priority:10},q.document_hidden={callback:M5j,priority:10},q))}else _.Fw(document,"visibilitychange",M5j);kjZ=!0}(q=_.b5())&&q!=="UNDEFINED_CSN"&&Yij(q)}},o7D);var LDy={},SUq=(LDy.initialized={callback:function(q){var Z=_.C6(232091),w=q.injector.resolve(_.wK);_.AA(w,Z);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?$J2()&&_.D1(w,Z):(q=q.injector.resolve(DRy)("refresh_detector"))&&(q.get("first_tab_load")?_.D1(w,Z):q.set("first_tab_load","1"))}},LDy);var v7V={},jw7=(v7V.initialized={priority:10,callback:Wo9},v7V);var tXV={},R7V=(tXV.rendering={priority:8,callback:oW1},tXV);var bby={},JYu=(bby.rendering={priority:10,callback:nW1},bby.rendered={callback:atX},bby),z7V={},B5F=(z7V.rendering={callback:nW1},z7V.rendered={callback:atX},z7V);var aUZ=!1,n7F={},QwS=(n7F.initialized={priority:10,callback:function(){aUZ||(WJI({didPatch:function(q){q.el&&FE6(q.el,q.props)},
didUnmount:function(q){ch2(q.el)}}),aUZ=!0)}},n7F);var E7q=/^\/shorts\/?$/;_.bO("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(_.b("kevlar_enable_mss")){_.kOj(new yTg);var xU7=!0,T57,eN;xU7=xU7===void 0?!1:xU7;T57=T57===void 0?!1:T57;eN=eN===void 0?{}:eN;var UUu=eN.cssRowKey||"",kF6=eN.combinedSignature||"";!UUu&&window&&window._F_cssRowKey&&(UUu=window._F_cssRowKey,!kF6&&window._F_combinedSignature&&(kF6=window._F_combinedSignature));if(UUu&&typeof window._F_installCss!=="function")throw Error("vd");var KDl=eN.loaderClass||_.BB,swS,IU6=vYj("base-js");swS=_.o9(IU6);var CW=new KDl(swS,UUu,kF6,xU7,T57);eN.useCors&&(CW.useCors_=
eN.useCors);eN.corsMode&&(CW.corsMode_=eN.corsMode);eN.urlMaxLength&&(CW.urlMaxLength=eN.urlMaxLength);eN.fetchPriority&&(CW.fetchPriority=eN.fetchPriority);var cYS=R1();cYS.JSC$7928_loader_=CW;cYS.setBatchModeEnabled(!0)}
(function(){var q=document.querySelector("ytd-app");if(!q)throw Error("Fj");q=new fr({root:q,injector:_.t()});q.install(uuu);var Z={};q.install((Z.initialized={priority:10,callback:axj},Z));_.b("wp_lat_b")&&(Z={},q.install((Z.initialized={priority:10,callback:function(){EVe()}},Z)));
Z={};q.install((Z.rendered={priority:0,callback:JpO},Z));Z={};q.install((Z.rendered={priority:0,callback:function(){_.v5.addLowPriorityJob(function(){_.s4l>1&&(L5I(),Rh8())},4E4)}},Z));
q.install(bYb);q.install(SUq);q.install(QwS);bp8=HRW;Opj=pfT;nQ2=iej;zEe=gI1;_.b("ytwiz_enable_debug_component_props")&&kX6();q.install(x47);q.install(Lhl);q.install(tT6);q.install(e2C);q.install(O7l);q.install(QRZ);q.install(WDq);_.b("kevlar_enable_mss_lazy_load")&&q.install(jw7);q.install(vrF);if(!_.BF("IS_SHELL_LOAD")||_.b("kevlar_fetch_initial_data_promise_client")||_.b("sw_nav_preload_pbj")){var w=_.gA(window.location.href);Z=w&&w==="/watch";w=w&&w.match(E7q);Z?q.install(B5F):w?q.install(R7V):
q.install(JYu)}else q.install(Why);q.install(zR8);_.b("web_enable_prefetching_videos_on_home")&&q.install(Kh8);_.b("start_client_gcf")&&q.install(URy);q.install(Z7V);(new JXv).increment("INSTALLED");q.install(U4C);q.install(VTq);q.transition("initialized")})();
_._ModuleManager_initialize=function(q,Z){if(!_.jC){if(!_.t1)return;_.kOj(_.t1())}_.jC.setAllModuleInfoString(q,Z)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/nmfa2d:h,n,o/syl:7,o/sym:g,h,q/CF909:n,r/Tm0L3c:r/L3n37:g,h,n,q/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','syl','syg','syf','syj','sym','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.H9=function(q,Z,w,r,Y){var C={};Z&&(C[Z]=w);r?C.errorType=r:Y&&(C.errorReason=Y);_.vO(q,C);_.jX()};
_.W9=function(q,Z){_.AP1(q,_.UE(Z))};
_.oI=function(q){var Z=_.zB();return _.T87(Z,q,1)};
_.$l({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 q=this.query;q&&(this.full||q[0]==="("||(q="("+q+")"),this._mq=window.matchMedia(q),this._add(),this.queryHandler(this._mq))},
queryHandler:function(q){this._setQueryMatches(q.matches)}});var yYl;var ibV;var g7C=function(){};
_.e=g7C.prototype;_.e.addOwnKeyBinding=function(){};
_.e.removeOwnKeyBindings=function(){};
_.e.keyboardEventMatchesKeys=function(){};
_.e._collectKeyBindings=function(){};
_.e._prepKeyBindings=function(){};
_.e._addKeyBinding=function(){};
_.e._resetKeyEventListeners=function(){};
_.e._listenKeyEventListeners=function(){};
_.e._unlistenKeyEventListeners=function(){};
_.e._onKeyBindingEvent=function(){};
_.e._triggerKeyHandler=function(){};
_.e._tapHandler=function(){};
_.e._focusChanged=function(){};
_.e._detectKeyboardFocus=function(){};
_.e._userActivate=function(){};
_.e._upHandler=function(){};
_.e._spaceKeyDownHandler=function(){};
_.e._spaceKeyUpHandler=function(){};
_.e._asyncClick=function(){};
_.e._pressedChanged=function(){};
_.e._ariaActiveAttributeChanged=function(){};
_.e._activeChanged=function(){};
_.e._controlStateChanged=function(){};
_.e._changedButtonState=function(){};
_.e._focusBlurHandler=function(){};
_.e._disabledChanged=function(){};
_.e._changedControlState=function(){};
_.e._downHandler=function(){};
_.e.ensureRipple=function(){};
_.e.getRipple=function(){};
_.e.hasRipple=function(){};
_.e._noinkChanged=function(){};
_.e._focusedChanged=function(){};
_.e._createRipple=function(){};
_.e.registered=function(){};
_.e._invalidChanged=function(){};
_.e.hasValidator=function(){};
_.e.validate=function(){};
_.e._getValidity=function(){};
_.e._requiredChanged=function(){};
_.e._valueChanged=function(){};
_.e._checkedChanged=function(){};
_.e._buttonStateChanged=function(){};
_.e._setPressed=function(){};
_.e._setPointerDown=function(){};
_.e._setReceivedFocusFromKeyboard=function(){};
_.e._setFocused=function(){};
g7C=_.$l({is:"tp-yt-paper-radio-button",_template:function(){if(ibV!==void 0)return ibV;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;yYl===void 0&&(yYl=document.createElement("template"));var r=yYl;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return ibV=q},
behaviors:[_.Ml7],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(){_.I_(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var q=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),Z=Math.floor(3*q);Z%2!==q%2&&Z++;this.updateStyles({"--paper-radio-button-ink-size":Z+"px"})}})}});var qAl;var ZyF;_.$l({_template:function(){if(ZyF!==void 0)return ZyF;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;qAl===void 0&&(qAl=document.createElement("template"));var r=qAl;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return ZyF=q},
is:"tp-yt-paper-radio-group",behaviors:[_.yLe],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(q){var Z=this._valueToItem(q);if(!Z||!Z.hasAttribute("disabled")){if(this.selected){Z=this._valueToItem(this.selected);if(this.selected==q)if(this.allowEmptySelection)q="";else{Z&&(Z.checked=!0);return}Z&&
(Z.checked=!1)}_.tJ.select.apply(this,[q]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(q){this._focusPrevious();q.preventDefault();this._activateFocusedItem()},
_onDownKey:function(q){this._focusNext();q.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(q){_.hY1._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(q){_.hY1._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.tJ._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.Lk._resetTabindices.apply(this,arguments);this.items.forEach(function(q){q.removeAttribute("aria-selected")},this)}});var w0u;_.He("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var rl8=function(){return _.N.apply(this,arguments)||this};
_.z(rl8,_.N);_.e=rl8.prototype;_.e.computeHasPrimaryIcon=function(q){return!(!q.icon&&!q.thumbnail)};
_.e.computeHasSecondary=function(q){return!(!q.secondaryIcon&&!q.secondaryNotificationText)};
_.e.computeHideSecondaryString=function(q){return!_.b("disable_hide_empty_secondary_string")&&!q.secondaryNotificationText};
_.e.computeCompactLinkStyle=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.e.computeHasFitHeight=function(q){return q==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.e.isActiveEndpoint=function(q){return(q=this.get("commandMetadata.webCommandMetadata.url",q))?_.gA(window.location.href)!=="/account_transfer_channel"&&_.gA(window.location.href)!=="/gaia_link"&&_.gA(window.location.href)!=="/channel_switcher"||q!=="/account"?_.gA(window.location.href)===q:!0:!1};
_.e.onTap=function(){var q;((q=this.data)==null?0:q.serviceEndpoint)&&_.qM(this.hostElement,[this.data.serviceEndpoint])};
var uu=rl8;uu.prototype.onTap=uu.prototype.onTap;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],uu.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],uu.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.A("design:type",Boolean)],uu.prototype,"active",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.A("design:type",String)],uu.prototype,"compactLinkStyle",void 0);_.X([_.F({computed:"computeIcon_(data.icon)"}),_.A("design:type",Object)],uu.prototype,"icon",void 0);_.X([_.F({computed:"computeIcon_(data.secondaryIcon)"}),_.A("design:type",Object)],uu.prototype,"secondaryIcon",void 0);_.X([_.F({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],uu.prototype,"hasSecondary",void 0);
_.X([_.F({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],uu.prototype,"hideSecondaryString",void 0);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uu.prototype,"onTap",null);uu=_.X([_.l({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],uu);
_.p(uu,"ytd-compact-link-renderer",function(){if(w0u!==void 0)return w0u;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return w0u=q},{mode:1});var YAl;_.He("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var $yF=function(){var q=_.N.apply(this,arguments)||this;q.role="link";q.tabindex="0";q.actionMap=_.b("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 q};
_.z($yF,_.N);_.e=$yF.prototype;_.e.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.RJ()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.e.getCurrentTheme=function(){return _.bq()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.RJ()};
_.e.onThemeSelected=function(q,Z){var w=q||Z?q:_.tr(),r=(w&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!w&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.T7e(_.gA(window.location.href));_.Wd(0,165,q);_.Wd(0,174,Z);this.prefs.save();r&&_.yY(this.hostElement,"yt-dark-mode-toggled-action",[w]);_.yY(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.e.onTap=function(){this.data.serviceEndpoint&&(_.b("web_ytd_toggle_theme_compact_link_renderer_command_resolver_ks")?_.qM(this.hostElement,[this.data.serviceEndpoint]):_.t().resolve(_.ps).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}))};
_.e.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.e.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.e.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
var LW=$yF;LW.prototype.onTap=LW.prototype.onTap;LW.prototype.dataChanged=LW.prototype.dataChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],LW.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Kk),_.A("design:type",Object)],LW.prototype,"paperItemBehaviors",void 0);_.X([_.F(),_.A("design:type",Object)],LW.prototype,"data",void 0);_.X([_.F({value:function(){return _.Hd()}}),
_.A("design:type",_.lU)],LW.prototype,"prefs",void 0);_.X([_.F(),_.A("design:type",Object)],LW.prototype,"label",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],LW.prototype,"role",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],LW.prototype,"tabindex",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LW.prototype,"dataChanged",null);
_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LW.prototype,"onTap",null);LW=_.X([_.l({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],LW);
_.p(LW,"ytd-toggle-theme-compact-link-renderer",function(){if(YAl!==void 0)return YAl;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return YAl=q},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.k0=function(q,Z,w){_.QV(_.Wb8)(void 0,q,Z,w)};
_.KE=function(q){return function(Z,w){var r=q||w.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(Z,w,{get:function(){var Y;return this.$?this.$[r]:(Y=_.Ar(this))==null?void 0:Y.querySelector("#"+r)},
enumerable:!0,configurable:!0})}};_.sd=function(q){q=q===void 0?!1:q;_.u6.call(this);this.pubSub_=new _.wf(q);_.$i(this,this.pubSub_)};
_.yU(_.sd,_.u6);_.sd.prototype.subscribe=function(q,Z,w){return this.isDisposed()?0:this.pubSub_.subscribe(q,Z,w)};
_.sd.prototype.unsubscribe=function(q,Z,w){return this.isDisposed()?!1:this.pubSub_.unsubscribe(q,Z,w)};
_.sd.prototype.unsubscribeByKey=function(q){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(q)};
_.sd.prototype.publish=function(q,Z){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var yUu=function(){_.H9("ypcRedeemFlowStarted")},i4V=function(q){_.H9("ypcRedeemFlowFailed",void 0,void 0,void 0,q)},gwV=function(q,Z,w){Z&&w&&(q.videos.forEach(function(r){r.videoId===Z&&(r.itemId=w)}),q.recommendedVideos.forEach(function(r){r.videoId===Z&&(r.itemId=w)}))};var qeS;var ZgZ;/*

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
*/
_.$l({_template:function(){if(ZgZ!==void 0)return ZgZ;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;qeS===void 0&&(qeS=document.createElement("template"));var r=qeS;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return ZgZ=q},
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(q,Z){var w=this._resolveSrc(q);w!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",q===""||Z?this._setLoading(!1):(this._resolvedSrc=w,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 q=this.$.sizedImgDiv.style,Z=this.$.placeholder.style;q.backgroundSize=Z.backgroundSize=this.sizing;q.backgroundPosition=Z.backgroundPosition=this.sizing?this.position:"";q.backgroundRepeat=Z.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(q){q=_.fb(q,this.$.baseURIAnchor.href);q.length>=2&&q[0]==="/"&&q[1]!=="/"&&(q=(location.origin||location.protocol+"//"+location.host)+q);return q}});var wK7;var r8l;_.$l({_template:function(){if(r8l!==void 0)return r8l;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;wK7===void 0&&(wK7=document.createElement("template"));var r=wK7;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return r8l=q},
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(q){return q?"false":"true"},
_headingChanged:function(q){var Z=this.getAttribute("heading"),w=this.getAttribute("aria-label");typeof w==="string"&&w!==Z||this.setAttribute("aria-label",q)},
_computeHeadingClass:function(q){return q?" over-image":""},
_computeAnimated:function(q){return q}});var Yec=new _.D("addRendererToItemSectionAction");var $El;var eql=function(){return _.N.apply(this,arguments)||this};
_.z(eql,_.N);eql.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
var xe=eql;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],xe.prototype,"rendererBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],xe.prototype,"dismissibleItemBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],xe.prototype,"rendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],xe.prototype,"data",void 0);xe=_.X([_.l({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],xe);
_.p(xe,"ytd-comment-history-entry-renderer",function(){if($El!==void 0)return $El;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return $El=q},{mode:1});var CAu;_.He("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.He("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var PAZ=function(){return _.N.apply(this,arguments)||this};
_.z(PAZ,_.N);_.e=PAZ.prototype;_.e.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e.onKeyUp=function(q){if(q.keyCode===13)this.onTap()};
_.e.onTap=function(){this.data.recordClickEndpoint&&_.t().resolve(_.ps).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var q=this.data.navigationEndpoint;q&&_.J(q,_.LH)&&_.t().resolve(_.ps).resolveCommand(q,{form:{element:this.hostElement}})};
_.e.readChanged=function(){var q;_.NZ(this.hostElement,"unread",!((q=this.data)==null?0:q.read))};
_.e.dataChanged=function(){this.data&&_.NZ(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.e.computeThumbnailSize=function(){var q;return((q=this.data)==null?0:q.highPriorityNotification)?32:48};
_.e.getEndpointURL=function(q){return q&&!_.J(q,_.LH)?this.componentBehavior.computeHref_(q):null};
_.e.getEndpointData=function(q){return q&&!_.J(q,_.LH)?q:null};
var TA=PAZ;TA.prototype.computeThumbnailSize=TA.prototype.computeThumbnailSize;TA.prototype.dataChanged=TA.prototype.dataChanged;TA.prototype.readChanged=TA.prototype.readChanged;TA.prototype.onKeyUp=TA.prototype.onKeyUp;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],TA.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],TA.prototype,"data",void 0);_.X([_.F({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.A("design:type",Number)],TA.prototype,"thumbnailSize",void 0);_.X([_.m2("keyup"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],TA.prototype,"onKeyUp",null);
_.X([_.M("data.read"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TA.prototype,"readChanged",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TA.prototype,"dataChanged",null);_.X([_.M("data.highPriorityNotification"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TA.prototype,"computeThumbnailSize",null);
TA=_.X([_.l({is:"ytd-notification-renderer",disableElementRegistration:!0})],TA);
_.p(TA,"ytd-notification-renderer",function(){if(CAu!==void 0)return CAu;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return CAu=q},{mode:1});var dE8;var VSD=function(){return _.N.apply(this,arguments)||this};
_.z(VSD,_.N);VSD.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"}}}};
VSD.prototype.computeActionButtonClass=function(q){return!q.actionButtons||q.actionButtons.length<=1?"single-button":q.description?"vertical-buttons":"horizontal-buttons"};
var Ur=VSD;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ur.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ur.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ur.prototype,"data",void 0);Ur=_.X([_.l({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],Ur);
_.p(Ur,"ytd-playlist-show-metadata-renderer",function(){if(dE8!==void 0)return dE8;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return dE8=q},{mode:1});var Og8;_.He("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var Hgy=function(){return _.N.apply(this,arguments)||this};
_.z(Hgy,_.N);var ke=Hgy;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ke.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ke.prototype,"data",void 0);ke=_.X([_.l({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],ke);
_.p(ke,"ytd-purchase-item-renderer",function(){if(Og8!==void 0)return Og8;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Og8=q},{mode:1});var W_q;var omZ={};omZ.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(q){if(q)return q.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(q){if(q==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.He("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var ucq=function(){return _.N.apply(this,arguments)||this};
_.z(ucq,_.N);ucq.prototype.onYtNavigate=function(q){var Z=this.openPopupBehavior.getNavigationEndpointPopupAction(q.detail.endpoint);Z&&(q.stopPropagation(),this.openPopupBehavior.openPopup(Z))};
var Kx=ucq;Kx.prototype.onYtNavigate=Kx.prototype.onYtNavigate;_.X([_.U(omZ.YtSimpleTextSectionBehavior),_.A("design:type",Object)],Kx.prototype,"ytSimpleTextSectionBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Kx.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Et),_.A("design:type",Object)],Kx.prototype,"openPopupBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Kx.prototype,"data",void 0);
_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Kx.prototype,"onYtNavigate",null);Kx=_.X([_.l({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],Kx);
_.p(Kx,"ytd-simple-text-section-renderer",function(){if(W_q!==void 0)return W_q;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return W_q=q},{mode:1});var L_S;_.He("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var Sel=function(){return _.N.apply(this,arguments)||this};
_.z(Sel,_.N);var vmc=Sel;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],vmc.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],vmc.prototype,"data",void 0);vmc=_.X([_.l({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],vmc);
_.p(vmc,"ytd-unlimited-page-feature-info-renderer",function(){if(L_S!==void 0)return L_S;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return L_S=q},{mode:1});var jCD;var tS8;var Rq8=function(){return _.N.apply(this,arguments)||this};
_.z(Rq8,_.N);Rq8.prototype.dataChanged=function(){if(this.data){var q=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);q&&(q=_.TL(q,screen.width),this.hostElement.style.backgroundImage="url("+q+")")}};
var sr=Rq8;sr.prototype.dataChanged=sr.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],sr.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],sr.prototype,"data",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sr.prototype,"dataChanged",null);sr=_.X([_.l({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],sr);
_.p(sr,"ytd-post-redemption-section-renderer",function(){if(tS8!==void 0)return tS8;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return tS8=q},{mode:1});var bgS;var J87=function(){return _.N.apply(this,arguments)||this};
_.z(J87,_.N);J87.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
var IK=J87;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],IK.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],IK.prototype,"data",void 0);IK=_.X([_.l({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],IK);
_.p(IK,"ytd-ypc-post-redemption-renderer",function(){if(bgS!==void 0)return bgS;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return bgS=q},{mode:1});_.He("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var zq6=function(){var q=_.N.apply(this,arguments)||this;q.MIN_CODE_LENGTH=12;q.MAX_CODE_LENGTH=24;return q};
_.z(zq6,_.N);_.e=zq6.prototype;_.e.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.e.created=function(){this.riskService=new _.LdN;this.loadPaymentThenable=_.vej(_.zj("YPC_MB_URL"))};
_.e.ready=function(){var q=this;this.code.addEventListener("keypress",function(Z){q.onCodeInputKeypress(Z)})};
_.e.dataChanged=function(){var q=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(Z){Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next())w=w.value,w.type==="attributes"&&w.attributeName==="dark"&&q.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.e.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var q=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+q+")")}};
_.e.computeRedeemButton=function(q){(q=this.get("redeemButton.buttonRenderer",q))&&(q=Object.assign({},q,{serviceEndpoint:void 0}));return q};
_.e.onRedeemButtonTap=function(q){q.stopPropagation();yUu();this.redeemCode()};
_.e.redeemCode=function(){var q=this;this.isLoading=!0;var Z=this.riskService.init();_.WD([Z,this.loadPaymentThenable]).then(function(){var w=q.data.redeemButton.buttonRenderer.serviceEndpoint,r=_.SrI(),Y=payments.business.integration.ClientTokenFactory.createClientToken(_.J(w,_.Tjh).countryCode,r);r={c:q.code.value.trim(),rd:window.btoa(r),ctk:Y};w&&(_.b("web_ytd_redeem_code_renderer_command_resolver_ks")?_.qM(q.hostElement,[w,r]):_.t().resolve(_.ps).resolveCommand(w,{form:Object.assign({},r,{element:q.hostElement})}))},
function(){q.showGenericError();
i4V("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.ns(Error("Sl"))})};
_.e.onYtServiceRequestCompleted=function(q){q.stopPropagation();this.isLoading=!1;var Z,w;this.errorMessage=(Z=q.detail)==null?void 0:(w=Z.data)==null?void 0:w.errorMessage;var r,Y;this.postRedemptionRenderer=(r=q.detail)==null?void 0:(Y=r.data)==null?void 0:Y.renderer;var C,d;if(q=(C=q.detail)==null?void 0:(d=C.data)==null?void 0:d.redirectEndpoint)this.isLoading=!0,_.hy(this.hostElement,"yt-navigate",{endpoint:q});this.errorMessage?i4V("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
q)&&_.H9("ypcRedeemFlowSucceeded")};
_.e.onYtServiceRequestError=function(q){q.stopPropagation();this.isLoading=!1;if(q=this.get("detail.error.message",q))this.errorMessage=_.UE(q);i4V("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.e.onInvokeInstrumentManagerActionCompleted=function(q){q.stopPropagation();this.redeemCode()};
_.e.onInvokeInstrumentManagerActionError=function(q){q.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",q)){case "instrumentManagerLoadError":this.showGenericError();i4V("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();i4V("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.H9("ypcRedeemFlowCancelled")}};
_.e.onInput=function(){var q=this;_.vp(this,"onInput",function(){var Z=q.code.value.trim();q.redeemButtonDisabled=Z.length<q.MIN_CODE_LENGTH||Z.length>q.MAX_CODE_LENGTH},200)};
_.e.onCodeInputKeypress=function(q){q.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(yUu(),this.redeemCode())};
_.e.computeImageUrl=function(q){return q?_.TL(q.thumbnails,600):null};
_.e.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
var co=zq6;co.prototype.onInvokeInstrumentManagerActionError=co.prototype.onInvokeInstrumentManagerActionError;co.prototype.onInvokeInstrumentManagerActionCompleted=co.prototype.onInvokeInstrumentManagerActionCompleted;co.prototype.onYtServiceRequestError=co.prototype.onYtServiceRequestError;co.prototype.onYtServiceRequestCompleted=co.prototype.onYtServiceRequestCompleted;co.prototype.dataChanged=co.prototype.dataChanged;
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],co.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],co.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],co.prototype,"isLoading",void 0);_.X([_.F(),_.A("design:type",Boolean)],co.prototype,"redeemButtonDisabled",void 0);
_.X([_.F(),_.A("design:type",Object)],co.prototype,"errorMessage",void 0);_.X([_.F(),_.A("design:type",Object)],co.prototype,"postRedemptionRenderer",void 0);_.X([_.F(),_.A("design:type",Object)],co.prototype,"observer",void 0);_.X([_.fo("#code"),_.A("design:type",HTMLInputElement)],co.prototype,"code",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],co.prototype,"dataChanged",null);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],co.prototype,"onYtServiceRequestCompleted",null);_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],co.prototype,"onYtServiceRequestError",null);
_.X([_.m2("yt-invoke-instrument-manager-action-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],co.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.X([_.m2("yt-invoke-instrument-manager-action-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],co.prototype,"onInvokeInstrumentManagerActionError",null);co=_.X([_.l({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],co);
_.p(co,"ytd-redeem-code-renderer",function(){if(jCD!==void 0)return jCD;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return jCD=q},{mode:1});var BBl;_.He("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var aaC=function(){var q=_.N.apply(this,arguments)||this;q.businessEmailDisplayState="HIDE_SECTION";return q};
_.z(aaC,_.N);_.e=aaC.prototype;_.e.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}}}}}};
_.e.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"};
_.e.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.e.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.np("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.e.onYtServiceRequestCompleted=function(q){var Z;if((Z=q.detail.data)==null?0:Z.businessEmail)this.businessEmail=q.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var w;if((w=q.detail.data)==null?0:w.errorMessage)this.businessEmailErrorMessage=q.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.e.computeEmailHref=function(q){return"mailto:"+q};
_.e.computeSafeUrl=function(q){if(q)return _.EX(q)};
_.e.onBusinessEmailCaptchaSubmit=function(){var q;(q=this.data)!=null&&q.onBusinessEmailRevealClickCommand&&(q=this.JSC$18866_captchaTextarea.value)&&(q={recaptcha_response_token:q,channel_id:this.data.channelId},_.t().resolve(_.ps).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},q,{element:this.hostElement})}))};
_.e.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.My.Object.defineProperties(aaC.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 q,Z;return!((q=this.data)==null||!q.primaryLinks)&&!((Z=this.data)==null?0:Z.links)&&this.data.primaryLinks.every(function(w){return w.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!((q=this.data)==null||!q.primaryLinks)&&!((Z=this.data)==null?0:Z.links)&&!this.shouldShowNewLinks}}});
var M2=aaC;M2.prototype.onYtServiceRequestCompleted=M2.prototype.onYtServiceRequestCompleted;M2.prototype.dataChanged=M2.prototype.dataChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],M2.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],M2.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.fo("#g-recaptcha-response"),_.A("design:type",HTMLTextAreaElement)],M2.prototype,"JSC$18866_captchaTextarea",void 0);_.X([_.F(),_.A("design:type",Object)],M2.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],M2.prototype,"businessEmailDisplayState",void 0);_.X([_.F(),_.A("design:type",String)],M2.prototype,"businessEmail",void 0);_.X([_.F(),_.A("design:type",String)],M2.prototype,"businessEmailErrorMessage",void 0);
_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],M2.prototype,"hideDetailsSection",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M2.prototype,"dataChanged",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],M2.prototype,"shouldShowNewLinks",null);_.X([_.I("data","shouldShowLinks"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],M2.prototype,"shouldShowLegacyLinks",null);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],M2.prototype,"onYtServiceRequestCompleted",null);M2=_.X([_.l({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],M2);
_.p(M2,"ytd-channel-about-metadata-renderer",function(){if(BBl!==void 0)return BBl;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return BBl=q},{mode:1});var nmD;_.He("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var QCS=function(){return _.N.apply(this,arguments)||this};
_.z(QCS,_.N);QCS.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"}}}};
var FB=QCS;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],FB.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],FB.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],FB.prototype,"data",void 0);FB=_.X([_.l({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],FB);
_.p(FB,"ytd-channel-featured-content-renderer",function(){if(nmD!==void 0)return nmD;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return nmD=q},{mode:1});var EmC;_.He("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var xE6=function(){var q=_.N.apply(this,arguments)||this;q.roundContainer=!0;q.amsterdamEnabled=_.b("enable_desktop_amsterdam_info_panels");return q};
_.z(xE6,_.N);_.e=xE6.prototype;_.e.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.e.dataChanged=function(){this.imageWidth=this.imageHeight=24;var q=this.data;q.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!q.style&&q.image&&q.image.thumbnails.length&&(q=q.image.thumbnails[0],this.imageWidth=q.width||0,this.imageHeight=q.height||0)};
_.e.computeSource=function(q){return q.secondarySource?_.kO(q.secondarySource):_.kO(q.source)};
_.e.computeClarifyStyle=function(q){return q?q.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.e.isLargeStyle=function(q){return q==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.e.computeBackgroundStyle=function(q){return q?q.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.e.computeHasActionButton=function(q){return!!q.actionButton};
_.e.computeHasBottomSection=function(q){return!!q.ctaHasBottomSection};
_.e.computeIsSourceMissing=function(q){return q.ctaHasBottomSection===!1?!0:q&&this.computeSource(q)?!1:!0};
_.e.computeSecondaryEndpoint=function(q){return q.secondaryEndpoint||q.endpoint};
var N2=xE6;N2.prototype.dataChanged=N2.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],N2.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],N2.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Number)],N2.prototype,"imageWidth",void 0);_.X([_.F(),_.A("design:type",Number)],N2.prototype,"imageHeight",void 0);
_.X([_.F({computed:"computeSecondaryEndpoint(data)"}),_.A("design:type",Object)],N2.prototype,"secondaryEndpoint",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.A("design:type",Boolean)],N2.prototype,"hasActionButton",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.A("design:type",Boolean)],N2.prototype,"hasBottomSection",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.A("design:type",Boolean)],N2.prototype,"missingSource",void 0);_.X([_.F({computed:"computeIcon_(data.icon)"}),_.A("design:type",String)],N2.prototype,"icon",void 0);_.X([_.F({computed:"computeIcon_(data.secondaryIcon)"}),_.A("design:type",String)],N2.prototype,"secondaryIcon",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.A("design:type",String)],N2.prototype,"clarifyStyle",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.A("design:type",String)],N2.prototype,"backgroundStyle",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],N2.prototype,"roundContainer",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],N2.prototype,"amsterdamEnabled",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],N2.prototype,"dataChanged",null);
N2=_.X([_.l({is:"ytd-clarification-renderer",disableElementRegistration:!0})],N2);
_.p(N2,"ytd-clarification-renderer",function(){if(EmC!==void 0)return EmC;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return EmC=q},{mode:1});var TBC;var UE6;var kyV=function(){var q=_.N.apply(this,arguments)||this;q.amsterdamEnabled=_.b("enable_desktop_amsterdam_info_panels");return q};
_.z(kyV,_.N);_.e=kyV.prototype;_.e.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.e.computeIcon=function(q){return q?"yt-icons:"+q.toLowerCase():null};
_.e.computeUseContacts=function(q){return!!q.contacts&&q.contacts.length>0};
_.e.computePhoneContact=function(q){var Z,w;return(Z=q.contacts)==null?void 0:(w=Z.find(function(r){var Y;return(r==null?void 0:(Y=r.icon)==null?void 0:Y.iconType)==="PHONE"}))==null?void 0:w.actionText};
_.e.computeSmsContact=function(q){var Z,w;return(Z=q.contacts)==null?void 0:(w=Z.find(function(r){var Y;return(r==null?void 0:(Y=r.icon)==null?void 0:Y.iconType)==="SMS"}))==null?void 0:w.actionText};
var lL=kyV;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],lL.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],lL.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],lL.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],lL.prototype,"amsterdamEnabled",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.A("design:type",Boolean)],lL.prototype,"useContacts",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.A("design:type",String)],lL.prototype,"phoneContact",void 0);lL=_.X([_.l({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],lL);
_.p(lL,"ytd-single-action-emergency-support-renderer",function(){if(UE6!==void 0)return UE6;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return UE6=q},{mode:1});_.He("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var K_8=function(){var q=_.N.apply(this,arguments)||this;q.roundedContainer=!0;q.amsterdamEnabled=_.b("enable_desktop_amsterdam_info_panels");return q};
_.z(K_8,_.N);K_8.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"}}}}};
var GA=K_8;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],GA.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],GA.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],GA.prototype,"roundedContainer",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],GA.prototype,"amsterdamEnabled",void 0);
GA=_.X([_.l({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],GA);
_.p(GA,"ytd-emergency-onebox-renderer",function(){if(TBC!==void 0)return TBC;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return TBC=q},{mode:1});var sCD;_.He("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Ia8=function(){return _.N.apply(this,arguments)||this};
_.z(Ia8,_.N);Ia8.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"}}}};
var px=Ia8;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],px.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],px.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],px.prototype,"data",void 0);px=_.X([_.l({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],px);
_.p(px,"ytd-exploratory-results-renderer",function(){if(sCD!==void 0)return sCD;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return sCD=q},{mode:1});var c8F;_.He("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var MSZ=function(){var q=_.N.apply(this,arguments)||this;q.messageData=null;return q};
_.z(MSZ,_.N);_.e=MSZ.prototype;_.e.onServiceRequestCompleted=function(q,Z){q=Z.actions||[];Z=0;for(var w=q.length;Z<w;Z++){var r=q[Z],Y=void 0,C=void 0;if((Y=_.J(r,_.CH))==null?0:(C=Y.item)==null?0:C.messageRenderer)this.messageData=_.J(r,_.CH).item.messageRenderer}};
_.e.dataChanged=function(){var q=this.data;this.hostElement.hidden=!1;_.NZ(this.hostElement,"is-channel",q&&!q.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.e.computeThumbnailWidth=function(q){return q?126:56};
_.e.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.e.onSubmitTap=function(){var q=this.data,Z=this.selectedResponseIndex;q!==void 0&&Z!==void 0&&(q=q.responses[Z],q.responseData&&(_.b("web_ytd_feedback_elicitation_single_question_renderer_command_resolver_ks")?_.qM(this.hostElement,[q.responseData]):_.t().resolve(_.ps).resolveCommand(q.responseData,{form:{element:this.hostElement}})))};
_.e.onDismissTap=function(){this.hostElement.hidden=!0;var q=this.data;q!==void 0&&q.dismissalEndpoint&&(_.b("web_ytd_feedback_elicitation_single_question_renderer_command_resolver_ks")?_.qM(this.hostElement,[q.dismissalEndpoint]):_.t().resolve(_.ps).resolveCommand(q.dismissalEndpoint,{form:{element:this.hostElement}}))};
_.e.updateSelectedResponseIndexFromBinding=function(q){this.selectedResponseIndex=q.detail.value};
var XB=MSZ;XB.prototype.onSelectedResponseIndexChange=XB.prototype.onSelectedResponseIndexChange;XB.prototype.dataChanged=XB.prototype.dataChanged;XB.prototype.onServiceRequestCompleted=XB.prototype.onServiceRequestCompleted;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],XB.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],XB.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],XB.prototype,"messageData",void 0);
_.X([_.F(),_.A("design:type",Number)],XB.prototype,"selectedResponseIndex",void 0);_.X([_.fo("#submit-button"),_.A("design:type",HTMLButtonElement)],XB.prototype,"submitButton",void 0);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],XB.prototype,"onServiceRequestCompleted",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],XB.prototype,"dataChanged",null);
_.X([_.M("selectedResponseIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],XB.prototype,"onSelectedResponseIndexChange",null);XB=_.X([_.l({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],XB);
_.p(XB,"ytd-feedback-elicitation-single-question-renderer",function(){if(c8F!==void 0)return c8F;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return c8F=q},{mode:1});var F_V;var NBD=function(){return _.N.apply(this,arguments)||this};
_.z(NBD,_.N);NBD.prototype.computeThumbnailWidth=function(q){return q?602:428};
NBD.prototype.updateWideFromBinding=function(q){this.wide=q.detail.value};
var md=NBD;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],md.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],md.prototype,"wide",void 0);md=_.X([_.l({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],md);
_.p(md,"ytd-newspaper-hero-video-renderer",function(){if(F_V!==void 0)return F_V;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return F_V=q},{mode:1});var laF;var Gyl=function(){return _.N.apply(this,arguments)||this};
_.z(Gyl,_.N);var pKb=Gyl;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],pKb.prototype,"rendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],pKb.prototype,"data",void 0);pKb=_.X([_.l({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],pKb);
_.p(pKb,"ytd-newspaper-mini-video-renderer",function(){if(laF!==void 0)return laF;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return laF=q},{mode:1});var XK8;_.He("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var mE6=function(){return _.N.apply(this,arguments)||this};
_.z(mE6,_.N);mE6.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"}}}};
var A6=mE6;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],A6.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],A6.prototype,"data",void 0);A6=_.X([_.l({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],A6);
_.p(A6,"ytd-newspaper-renderer",function(){if(XK8!==void 0)return XK8;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return XK8=q},{mode:1});var A8V;_.He("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var fac=function(){var q=_.N.apply(this,arguments)||this;q.isSegment=!1;q.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};q.nextContinuation={continuationType:"playlistVideoListContinuation"};return q};
_.z(fac,_.N);_.e=fac.prototype;_.e.attached=function(){_.t();var q;(q=_.t().resolve(_.Gj(_.Im)))!=null&&(q.playlistVideoListElement=this.hostElement)};
_.e.detached=function(){var q;(q=_.t().resolve(_.Gj(_.Im)))!=null&&(q.playlistVideoListElement=void 0);q=_.t().resolve(_.Gj(_.QK));_.b("web_enable_voting_animation")&&q&&(q.parentElem=void 0,q.videos=[],q.continuationsPresent=!1,q.showRefreshPill=!1)};
_.e.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"}}}}}};
_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.e.dataChanged=function(){var q=_.t().resolve(_.Gj(_.QK));if(_.b("web_enable_voting_animation")&&this.data&&q){var Z=_.E(this.hostElement).querySelector("#contents");Z&&(q.parentElem=Z);q.addVideos(this.data.contents)}_.Lkh(this.ytReorderableBehavior)};
_.e.onRendererstamperFinished=function(){this.canReorder&&_.SH7(this.ytReorderableBehavior,_.E(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.e.onPlaylistReloading=function(){this.isReloading=!0};
_.e.onUpdateSetVideoId=function(q){if(q.detail&&this.data&&this.data.contents){var Z=q.detail;q=this.data.contents.findIndex(function(Y){var C;return((C=Y.playlistVideoRenderer)==null?void 0:C.videoId)===Z.videoId});
if(!(q<0)&&Z.setVideoId&&(this.set("data.contents."+q+".playlistVideoRenderer.setVideoId",Z.setVideoId),_.b("web_enable_voting_animation"))){var w;if(q=_.J((w=this.data.contents[q].playlistVideoRenderer)==null?void 0:w.engagementBar,_.laI)){var r;(r=q.actions)==null||r.forEach(function(Y){if(Y=_.J(Y,_.GyX))Y.itemId=Z.setVideoId})}(w=_.t().resolve(_.Gj(_.QK)))&&gwV(w,Z.videoId,Z.setVideoId)}}};
_.e.computeContentsClass=function(q){return q?"reloading":""};
_.e.computeIsSortable=function(q,Z){return q&&Z>0&&!this.isSegment&&!_.b("shorts_in_playlists_web")};
_.e.computeIsEditable=function(q){return q};
_.e.computeCanReorder=function(q){return q};
_.e.handlePlaylistRemoveVideosAction=function(q){if(this.get("playlistRemoveVideosAction.setVideoIds",q)&&this.data&&this.data.contents){q=_.J(q,_.PUK).setVideoIds;for(var Z=this.data.contents.length-1;Z>=0;){var w=this.data.contents[Z].playlistVideoRenderer;w&&w.setVideoId&&q.includes(w.setVideoId)&&this.splice("data.contents",Z,1);Z--}_.yY(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.e.updateIndices=function(){if(this.data&&this.data.contents)for(var q=0;q<this.data.contents.length;q++)this.set("data.contents."+q+".playlistVideoRenderer.index",_.UE(String(q+1)))};
_.e.handleDrop=function(q){q=q.currDragItem;var Z=_.IT(q.parentNode.childNodes,q),w=this.data.contents.splice(Number(_.kO(q.data.index))-1,1)[0];this.data.contents.splice(Z,0,w);Z=Z?this.get("contents."+(Z-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();q=this.buildReorderServiceEndpoint(q.data.setVideoId,Z);this.ytComponentBehavior.resolveCommand(q)};
_.e.buildReorderServiceEndpoint=function(q,Z){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",q),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",Z),this.data.onReorderEndpoint):null};
_.e.handleUpdatePlaylistAction=function(q){var Z;(q=_.J((Z=_.J(q,_.d1g))==null?void 0:Z.updatedRenderer,_.Rfh))&&this.canReorder!==q.canReorder&&this.set("data.canReorder",q.canReorder);q&&q.contents&&(this.set("data.contents",q.contents),this.isReloading=!1);q&&q.continuations&&this.set("data.continuations",q.continuations)};
_.e.handleAddRendererToItemSectionAction=function(q){var Z,w=(Z=_.J(q,Yec))==null?void 0:Z.renderer,r;w&&((r=_.J(q,Yec))==null?void 0:r.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,w),q=_.t().resolve(_.Gj(_.QK)),_.b("web_enable_voting_animation")&&q&&(w&&(Z=_.NB9(w))&&q.recommendedVideos.push({itemId:Z,videoId:_.pKz(w),voteCount:_.XK1(w),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.e.isVotingEnabledOnPlaylist=function(q){if(!q)return!1;q=_.P(q);for(q=q.next();!q.done;q=q.next()){var Z=void 0;return!!_.J((Z=q.value.playlistVideoRenderer)==null?void 0:Z.engagementBar,_.laI)}return!1};
_.e.onAppendContinuationItemsActionFinished=function(){var q;this.isVotingEnabledOnPlaylist((q=this.data)==null?void 0:q.contents)&&(this.updateIndices(),q=_.t().resolve(_.Gj(_.QK)),_.b("web_enable_voting_animation")&&q&&this.data&&q.addVideos(this.data.contents))};
_.e.updateVideoData=function(q){if(q.detail&&this.data&&this.data.contents){var Z=q.detail;q=Z.toIdx;var w=Z.itemId,r=Z.newVoteCount,Y=Z.voteStatus;Z=Z.hideItem;var C,d,O=(C=this.data)==null?void 0:(d=C.contents)==null?void 0:d.findIndex(function(v){return _.NB9(v)===w});
if(!(O<0)){C=this.data.contents[O];var H;if((H=C.playlistVideoRenderer)==null?0:H.voteCount)C.playlistVideoRenderer.voteCount=r;var L;if(H=_.J((L=C.playlistVideoRenderer)==null?void 0:L.engagementBar,_.laI)){var S;(S=H.actions)==null||S.forEach(function(v){(v=_.J(v,_.GyX))&&v.initialState&&(v.initialState.votes=r,v.initialState.status=Y)})}this.data.contents.splice(O,1);
Z||this.data.contents.splice(q,0,C);this.updateIndices()}}};
var fx=fac;fx.prototype.updateVideoData=fx.prototype.updateVideoData;fx.prototype.onAppendContinuationItemsActionFinished=fx.prototype.onAppendContinuationItemsActionFinished;fx.prototype.onUpdateSetVideoId=fx.prototype.onUpdateSetVideoId;fx.prototype.onPlaylistReloading=fx.prototype.onPlaylistReloading;fx.prototype.onRendererstamperFinished=fx.prototype.onRendererstamperFinished;fx.prototype.dataChanged=fx.prototype.dataChanged;
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],fx.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],fx.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],fx.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.FP.YtNextContinuationBehavior),_.A("design:type",Object)],fx.prototype,"ytNextContinuationBehavior",void 0);
_.X([_.U(_.jID),_.A("design:type",Object)],fx.prototype,"ytReorderableBehavior",void 0);_.X([_.U(_.Ms),_.A("design:type",Object)],fx.prototype,"ytContinuationHandlerBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],fx.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],fx.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],fx.prototype,"isReloading",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],fx.prototype,"isSegment",void 0);_.X([_.F({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.A("design:type",Boolean)],fx.prototype,"isSortable",void 0);_.X([_.F({computed:"computeIsEditable(data.isEditable)"}),_.A("design:type",Boolean)],fx.prototype,"isEditable",void 0);_.X([_.F({computed:"computeCanReorder(data.canReorder)"}),_.A("design:type",Boolean)],fx.prototype,"canReorder",void 0);
_.X([_.F({value:101}),_.A("design:type",Number)],fx.prototype,"scrollMargin",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fx.prototype,"dataChanged",null);_.X([_.m2("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fx.prototype,"onRendererstamperFinished",null);
_.X([_.m2("yt-playlist-reloading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fx.prototype,"onPlaylistReloading",null);_.X([_.m2("yt-update-set-video-id"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],fx.prototype,"onUpdateSetVideoId",null);
_.X([_.m2("yt-append-continuation-items-action-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fx.prototype,"onAppendContinuationItemsActionFinished",null);_.X([_.m2("yt-update-video-data-voting-animation"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],fx.prototype,"updateVideoData",null);fx=_.X([_.l({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],fx);
_.p(fx,"ytd-playlist-video-list-renderer",function(){if(A8V!==void 0)return A8V;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return A8V=q},{mode:_.NT("kevlar_poly_si_batch_j047")?1:2});var DEC;var hqD=function(){return _.N.apply(this,arguments)||this};
_.z(hqD,_.N);hqD.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"}}}}};
hqD.prototype.onTextWrapperTap=function(q){var Z=this.data&&this.data.navigationEndpoint;Z&&!_.E1(_.E8(q),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.hy(this.hostElement,"yt-navigate",{endpoint:Z})};
hqD.prototype.dataChanged=function(){var q=this.get("data.offerButton.buttonRenderer.serviceEndpoint");q&&q.commandMetadata&&_.J(q.commandMetadata,_.WZ)&&_.J(q.commandMetadata,_.WZ).fireAutomatically&&_.t().resolve(_.ps).resolveCommand(q,{form:{element:this.hostElement}})};
var DD=hqD;DD.prototype.dataChanged=DD.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],DD.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.ay),_.A("design:type",Object)],DD.prototype,"ytdLockupBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],DD.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],DD.prototype,"useBiggerThumbs",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.Af("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],DD.prototype,"biggerThumbsStyle",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],DD.prototype,"leftAligned",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],DD.prototype,"dataChanged",null);DD=_.X([_.l({disableElementRegistration:!0,is:"ytd-movie-renderer"})],DD);
_.p(DD,"ytd-movie-renderer",function(){if(DEC!==void 0)return DEC;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return DEC=q},{mode:1});var y86;var h6=function(){var q=_.N.apply(this,arguments)||this;q.rounded=!0;q.pageAttachedTo=void 0;q.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return q};
_.z(h6,_.N);h6.prototype.attached=function(){this.pageAttachedTo=_.t().resolve(_.U1).getCurrentPage();_.hy(this.hostElement,"yt-player-attached",this.player)};
h6.prototype.detached=function(){var q;if((q=this.pageAttachedTo)==null?0:q.hostElement)_.hy(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
h6.prototype.dataChanged=function(){var q;if((q=this.data)==null?0:q.videoId)q={video_id:this.data.videoId,autoplay:!0},!_.b("miniplayer_stop_channel_video_autoplay_killswitch")&&_.t().resolve(_.Tf).isMiniplayerActive()&&(q.pause_at_start=!0,q.autoplay=!1),this.player.loadVideoWithPlayerVars(q)};
h6.prototype.handleSignalActionPausePlayer=function(){_.s1().pause()};
var ym=h6;ym.prototype.dataChanged=ym.prototype.dataChanged;_.X([_.F(),_.A("design:type",Object)],ym.prototype,"data",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],ym.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ym.prototype,"rounded",void 0);
_.X([_.fo("#player"),_.A("design:type",Object)],ym.prototype,"player",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ym.prototype,"dataChanged",null);ym=_.X([_.l({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],ym);
_.p(ym,"ytd-channel-video-player-renderer",function(){if(y86!==void 0)return y86;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return y86=q},{mode:1});var igl;var gm8;var qr6;var Zx7=function(){var q=_.N.apply(this,arguments)||this;q.playing=!1;q.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.yj(q);q.active=!1;return q};
_.z(Zx7,_.N);_.e=Zx7.prototype;_.e.detached=function(){this.stop()};
_.e.play=function(){var q=this,Z,w,r,Y,C;return _.V(function(d){if(d.nextAddress==1)return q.active=!0,Z=q.get("data.inlinePlaybackEndpoint.watchEndpoint"),w=Z.videoId||q.data.videoId,r=Z.startTimeSeconds||0,Y=Z.playerParams||null,_.b("kevlar_player_update_killswitch")?_.W(d,q.playerEl.update({args:{video_id:w,startSeconds:r,player_params:Y}}),2):(q.playerEl.loadVideoWithPlayerVars({video_id:w,startSeconds:r,player_params:Y,autoplay:!0}),d.jumpTo(2));if(d.nextAddress!=4)return _.W(d,q.playerEl.getPlayerPromise(),
4);C=d.yieldResult;C.unloadModule("annotations_module");C.addEventListener("onStateChange",function(O){q.onPlayerStateChange(O)});
_.ub(d)})};
_.e.onPlayerStateChange=function(q){if(this.active)switch(this.playing=q===1,q){case 1:_.hy(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.hy(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.e.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.e.resize=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1)return _.W(w,q.playerEl.getPlayerPromise(),2);Z=w.yieldResult;Z.setSize(NaN,NaN);_.ub(w)})};
var iL=Zx7;_.X([_.F(),_.A("design:type",Object)],iL.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],iL.prototype,"playing",void 0);_.X([_.F(),_.A("design:type",Object)],iL.prototype,"playerId",void 0);_.X([_.fo("#player"),_.A("design:type",Object)],iL.prototype,"playerEl",void 0);iL=_.X([_.l({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],iL);
_.p(iL,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(qr6!==void 0)return qr6;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return qr6=q},{mode:1});var wob;var r66;var Yrb=function(){var q=_.N.apply(this,arguments)||this;q.width=0;return q};
_.z(Yrb,_.N);_.e=Yrb.prototype;_.e.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.XN(this,this.onEnded));this.mp4El.addEventListener("error",_.XN(this,this.onError))};
_.e.detached=function(){this.videoEl.removeEventListener("ended",_.XN(this,this.onEnded));this.mp4El.removeEventListener("error",_.XN(this,this.onError))};
_.e.play=function(){var q=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var Z=this.videoEl.play();Z?Z.then(function(){q.handleVideoStartPlaying()}).catch(function(){_.hy(q.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.hy(this.hostElement,"yt-video-thumbnail-not-playing")};
_.e.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.e.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.e.dataChanged=function(){var q;if((q=this.data)==null?0:q.thumbnailPlaceholder)q=_.TL(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+q+")";this.stop();this.autoplay&&this.play()};
_.e.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.e.onEnded=function(){this.stop();_.hy(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.e.onError=function(){_.hy(this.hostElement,"yt-video-thumbnail-error")};
_.e.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.e.getVideoThumbnail=function(q){if(q&&q.length)return q[0]};
var gy=Yrb;gy.prototype.dataChanged=gy.prototype.dataChanged;_.X([_.F(),_.A("design:type",Object)],gy.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],gy.prototype,"animatePlaceholderOnEntrance",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],gy.prototype,"autoplay",void 0);_.X([_.F({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.A("design:type",Object)],gy.prototype,"videoThumbnail",void 0);
_.X([_.F(),_.A("design:type",Boolean)],gy.prototype,"loop",void 0);_.X([_.F(),_.A("design:type",Boolean)],gy.prototype,"isVideoPlaying",void 0);_.X([_.F(),_.A("design:type",Object)],gy.prototype,"width",void 0);_.X([_.fo("#mp4"),_.A("design:type",HTMLElement)],gy.prototype,"mp4El",void 0);_.X([_.fo("#placeholder"),_.A("design:type",HTMLElement)],gy.prototype,"placeholderEl",void 0);_.X([_.fo("#video"),_.A("design:type",HTMLVideoElement)],gy.prototype,"videoEl",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gy.prototype,"dataChanged",null);gy=_.X([_.dx({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],gy);
_.p(gy,"yt-video-as-thumbnail-details",function(){if(r66===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;wob===void 0&&(wob=document.createElement("template"));var r=wob;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);r66=q}q=r66;return q},{mode:2});var qP,$2c=function(){var q=_.N.apply(this,arguments)||this;q.disableGridStateAware=!1;q.animationEnabled=_.b("enable_web_ketchup_hero_animation");q.transitioningOut=!1;q.narrow=!1;q.narrower=!1;q.isCarouselInFeed=!1;q.videoTimeoutJobId=0;q.panelTimeoutJobId=0;q.panelTimeoutJobStartMs=0;q.actionMap={"yt-window-resized":"onWindowResized"};return q};
_.z($2c,_.N);_.e=$2c.prototype;_.e.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.e.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var q;this.player&&((q=this.data)==null?0:q.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.e.attached=function(){this.onWindowResized()};
_.e.detached=function(){this.clearTimeouts()};
_.e.onWindowResized=function(){this.updateSize()};
_.e.computePanelLayout=function(q){return q&&q.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.e.playVideo=function(){var q;this.video&&((q=this.data)==null?0:q.videoThumbnail)&&this.video.play();var Z;this.player&&((Z=this.data)==null?0:Z.inlinePlaybackRenderer)&&this.player.play()};
_.e.stopVideo=function(){var q;this.video&&((q=this.data)==null?0:q.videoThumbnail)&&this.video.stop();var Z;this.player&&((Z=this.data)==null?0:Z.inlinePlaybackRenderer)&&this.player.stop()};
_.e.transitionOut=function(){var q=this;this.transitioningOut=!0;return new Promise(function(Z){var w=function(){_.E(q.hostElement).querySelector("#action-button").removeEventListener("animationend",w);_.v5.cancelJob(r);Z();q.transitioningOut=!1};
var r=_.WO(_.v5,w,1E3);_.E(q.hostElement).querySelector("#action-button").addEventListener("animationend",w);q.player&&(q.player.playing=!1)})};
_.e.computeMetadataOrder=function(q){return q&&q.metadataOrder&&q.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?q.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.e.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.e.computeAvatarSize=function(q){return q&&q.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.e.onContentClick=function(q){if(!_.E1(_.E8(q),this.hostElement,["A".toString(),"BUTTON".toString()])){var Z;if((Z=this.data)==null?0:Z.navigationEndpoint){var w;this.componentBehavior.resolveCommand((w=this.data)==null?void 0:w.navigationEndpoint)}}};
_.e.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.e.setBackgroundImage=function(q){if(q=this.getBackgroundImageUrl(q))_.E(this.hostElement).querySelector("#hero").style.backgroundImage="url("+q+")"};
_.e.setScrimLayer=function(q){var Z=this.getScrimLayerColorStops(q);q=((q==null?void 0:q.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(q=180);_.zj("HTML_DIR")==="rtl"&&(q=-q);Z&&(_.E(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+q+"deg, "+Z+")")};
_.e.isNarrower=function(){return this.hostElement.clientWidth<qP.NARROW_VERSION_SIZE};
_.e.getScrimLayerColorStops=function(){var q,Z=(q=this.data)==null?void 0:q.scrimColorValues;if(!Z)return null;if(Z.length===1)return q=_.uq(Z[0]),q+" 0%, "+q+" 100%";if(Z.length===3){var w=[0,72,98];return Z.map(function(r,Y){return _.uq(r)+" "+w[Y]+"%"}).join(",")}return null};
_.e.getBackgroundImageUrl=function(q){return q&&q.largeFormFactorBackgroundThumbnail?_.TL((q.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||q.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.e.onPlaying=function(){this.startVideoTimeout()};
_.e.onEnded=function(){this.rotate()};
_.e.startPanelTimeout=function(){var q=this;if(!this.panelTimeoutJobId){var Z=this.get("data.minPanelDisplayDurationMs");Z&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.WO(_.v5,function(){q.rotate()},Z))}};
_.e.startVideoTimeout=function(){var q=this;if(!this.videoTimeoutJobId){_.v5.cancelJob(this.panelTimeoutJobId);var Z=Date.now()-this.panelTimeoutJobStartMs;Z=Math.max(0,this.get("data.minPanelDisplayDurationMs")-Z);Z=Math.max(this.get("data.minVideoPlayDurationMs")||0,Z);this.videoTimeoutJobId=_.WO(_.v5,function(){q.rotate()},Z)}};
_.e.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.v5.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.v5.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.e.rotate=function(){this.clearTimeouts();_.hy(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.My.Object.defineProperties($2c.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("#video")}}});
_.My.Object.defineProperties($2c,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
var Zs=qP=$2c;qP.prototype.onEnded=qP.prototype.onEnded;qP.prototype.onPlaying=qP.prototype.onPlaying;qP.prototype.dataChanged=qP.prototype.dataChanged;_.X([_.U(_.Ry),_.A("design:type",Object)],Zs.prototype,"ytdGridStateAwareBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Zs.prototype,"componentBehavior",void 0);_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],Zs.prototype,"ytdGuideStateAwareBehavior",void 0);
_.X([_.U(_.hZb),_.A("design:type",Object)],Zs.prototype,"ytBooleanLogicBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Zs.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Zs.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Zs.prototype,"ytRendererBehavior",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Zs.prototype,"disableGridStateAware",void 0);_.X([_.F(),_.A("design:type",Object)],Zs.prototype,"data",void 0);_.X([_.F({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.A("design:type",String)],Zs.prototype,"panelLayout",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Zs.prototype,"animationEnabled",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Zs.prototype,"transitioningOut",void 0);
_.X([_.F({computed:"computeMetadataOrder(data)"}),_.A("design:type",Boolean)],Zs.prototype,"metadataOrder",void 0);_.X([_.F({computed:"computeByline(data)"}),_.A("design:type",Object)],Zs.prototype,"byline",void 0);_.X([_.F({computed:"computeAvatarSize(data)"}),_.A("design:type",Number)],Zs.prototype,"avatarSize",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Zs.prototype,"narrow",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Zs.prototype,"narrower",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Zs.prototype,"layoutStyle",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Zs.prototype,"isCarouselInFeed",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zs.prototype,"dataChanged",null);_.X([_.m2("yt-default-promo-panel-renderer-playing"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zs.prototype,"onPlaying",null);
_.X([_.m2("yt-default-promo-panel-renderer-ended"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zs.prototype,"onEnded",null);Zs=qP=_.X([_.l({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Zs);
_.p(Zs,"ytd-default-promo-panel-renderer",function(){if(gm8!==void 0)return gm8;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return gm8=q},{mode:1});_.He("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var eu8=function(){var q=_.N.apply(this,arguments)||this;q.narrower=!1;q.dotMenuVisible=!1;q.paginationThumbnailsVisible=!1;q.active=!0;q.disableGridStateAware=!1;q.actionMap={"yt-window-resized":"onWindowResized"};return q};
_.z(eu8,_.N);_.e=eu8.prototype;_.e.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]]"}}}}}};
_.e.attached=function(){this.onWindowResized()};
_.e.detached=function(){this.jobId&&_.v5.cancelJob(this.jobId);this.updateSizeJobId&&_.v5.cancelJob(this.updateSizeJobId)};
_.e.onWindowResized=function(){this.updateSize()};
_.e.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.e.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.e.setCarouselItem=function(q){q>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.v5.cancelJob(this.jobId);var Z=this.getCurrentPanelElement();Z&&Z.stopVideo();this.currentItemIndex=q%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(Z||(Z=this.getCurrentPanelElement()),Z.playVideo()):this.startRotationJob()};
_.e.scrollThumbnails=function(q){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var Z=this.getCurrentPaginationElement();if(Z){var w=_.E(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?w.style.transform="translateX(0)":(Z=Z.offsetWidth+8,w.style.transform="translateX(-"+Z*(q-Math.ceil(Math.floor(this.overlay.offsetWidth/Z)/2)+1)+"px)")}}};
_.e.onDataChanged=function(){var q=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.OM(_.v5,function(){q.getCurrentPanelElement().updateSize();q.updateSize()}))};
_.e.getCurrentPanelElement=function(){return _.E(_.E(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.e.getCurrentPaginationElement=function(){return _.E(_.E(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.e.getNavigationClass=function(q,Z){return q===Z?"selected":""};
_.e.getNavigationDurationStyle=function(q){return"animation-duration:"+(this.get("data.carouselItems."+q+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.e.onNavigationTap=function(q){var Z=this,w=q.model.index;w!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){Z.setCarouselItem(w)}),this.autorotateActive=!1)};
_.e.onVideoThumbnailEnded=function(){var q=this;if(this.shouldRotate()){var Z=this.getCurrentPaginationElement();Z&&(Z.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){Z.classList.remove("finished");q.setNextCarouselItem()}))}};
_.e.onVideoThumbnailError=function(){this.startRotationJob()};
_.e.onVideoNotPlaying=function(){this.startRotationJob()};
_.e.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.e.startRotationJob=function(){var q=this;_.v5.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.v5.addLowPriorityJob(function(){q.getCurrentPanelElement().transitionOut().then(function(){q.setNextCarouselItem()})},this.rotationTimeout))};
_.e.computeDotMenuVisible=function(q,Z){return!!q&&!!q.carouselItems&&q.carouselItems.length>1&&!q.paginationThumbnails||!!Z};
_.e.computePaginationThumbnailsVisible=function(q,Z){var w,r;return((r=q==null?void 0:(w=q.paginationThumbnails)==null?void 0:w.length)!=null?r:0)>1&&!Z};
_.e.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.e.computePaginatorAlignment=function(q){return(q==null?void 0:q.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.e.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.e.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.e.isNarrower=function(q){return(q!=null?q:0)<Zs.NARROW_VERSION_SIZE};
var wh=eu8;wh.prototype.activeChanged=wh.prototype.activeChanged;wh.prototype.onVideoNotPlaying=wh.prototype.onVideoNotPlaying;wh.prototype.onVideoThumbnailError=wh.prototype.onVideoThumbnailError;wh.prototype.onVideoThumbnailEnded=wh.prototype.onVideoThumbnailEnded;wh.prototype.onDataChanged=wh.prototype.onDataChanged;_.X([_.U(_.Ry),_.A("design:type",Object)],wh.prototype,"ytdGridStateAwareBehavior",void 0);
_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],wh.prototype,"ytdGuideStateAwareBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],wh.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],wh.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],wh.prototype,"currentItem",void 0);
_.X([_.F(),_.A("design:type",Number)],wh.prototype,"currentItemIndex",void 0);_.X([_.F(),_.A("design:type",Number)],wh.prototype,"rotationTimeout",void 0);_.X([_.F(),_.A("design:type",Number)],wh.prototype,"loopCount",void 0);_.X([_.F({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.A("design:type",String)],wh.prototype,"paginatorAlignment",void 0);_.X([_.F(),_.A("design:type",Number)],wh.prototype,"jobId",void 0);
_.X([_.F(),_.A("design:type",Number)],wh.prototype,"updateSizeJobId",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],wh.prototype,"isCarouselInFeed",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],wh.prototype,"narrower",void 0);_.X([_.F({computed:"computeDotMenuVisible(data, narrower)"}),_.A("design:type",Object)],wh.prototype,"dotMenuVisible",void 0);
_.X([_.F({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.A("design:type",Object)],wh.prototype,"paginationThumbnailsVisible",void 0);_.X([_.F({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.A("design:type",String)],wh.prototype,"layoutType",void 0);_.X([_.F({value:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],wh.prototype,"autorotateActive",void 0);_.X([_.F(),_.A("design:type",Object)],wh.prototype,"active",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],wh.prototype,"disableGridStateAware",void 0);_.X([_.fo("#overlay"),_.A("design:type",HTMLElement)],wh.prototype,"overlay",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wh.prototype,"onDataChanged",null);
_.X([_.m2("yt-video-thumbnail-ended"),_.m2("yt-default-promo-panel-renderer-rotate"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wh.prototype,"onVideoThumbnailEnded",null);_.X([_.m2("yt-video-thumbnail-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wh.prototype,"onVideoThumbnailError",null);
_.X([_.m2("yt-video-thumbnail-not-playing"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wh.prototype,"onVideoNotPlaying",null);_.X([_.g3("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wh.prototype,"activeChanged",null);wh=_.X([_.l({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],wh);
_.p(wh,"ytd-carousel-item-renderer",function(){if(igl!==void 0)return igl;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return igl=q},{mode:2});var CLS;var PLb;var d2D;var VyV;var Oxu=function(){var q=_.N.apply(this,arguments)||this;q.originalQuery=null;q.originalEndpoint=null;return q};
_.z(Oxu,_.N);Oxu.prototype.computeShowOriginalQueryWithoutEndpoint_=function(q,Z){return!(!q||Z)};
var rh=Oxu;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],rh.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],rh.prototype,"correctedText",void 0);_.X([_.F(),_.A("design:type",Object)],rh.prototype,"correctedQuery",void 0);_.X([_.F(),_.A("design:type",Object)],rh.prototype,"correctedEndpoint",void 0);_.X([_.F(),_.A("design:type",Object)],rh.prototype,"originalText",void 0);_.X([_.F(),_.A("design:type",Object)],rh.prototype,"originalQuery",void 0);
_.X([_.F(),_.A("design:type",Object)],rh.prototype,"originalEndpoint",void 0);_.X([_.F({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.A("design:type",Boolean)],rh.prototype,"showOriginalQueryWithoutEndpoint",void 0);rh=_.X([_.dx({is:"yt-search-query-correction",disableElementRegistration:!0})],rh);
_.p(rh,"yt-search-query-correction",function(){if(VyV===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;d2D===void 0&&(d2D=document.createElement("template"));var r=d2D;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);VyV=q}q=VyV;return q},{mode:2});_.He("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var Hxb=function(){return _.N.apply(this,arguments)||this};
_.z(Hxb,_.N);var Wdc=Hxb;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Wdc.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Wdc.prototype,"data",void 0);Wdc=_.X([_.dx({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],Wdc);
_.p(Wdc,"yt-did-you-mean-renderer",function(){if(PLb===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;CLS===void 0&&(CLS=document.createElement("template"));var r=CLS;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);PLb=q}q=PLb;return q},{mode:2});var oel;var uBc;_.He("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var LdC=function(){return _.N.apply(this,arguments)||this};
_.z(LdC,_.N);var SrF=LdC;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],SrF.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],SrF.prototype,"data",void 0);SrF=_.X([_.dx({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],SrF);
_.p(SrF,"yt-including-results-for-renderer",function(){if(uBc===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;oel===void 0&&(oel=document.createElement("template"));var r=oel;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);uBc=q}q=uBc;return q},{mode:2});var veS;var jKl;_.He("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var ty8=function(){return _.N.apply(this,arguments)||this};
_.z(ty8,_.N);ty8.prototype.computeExtraClasses_=function(q,Z){var w="";q&&(w+=" "+q.toLowerCase().replace(/_/g,"-"));Z&&(w+=" "+Z.toLowerCase().replace(/_/g,"-"));return w};
ty8.prototype.computeUrlImg_=function(){var q=this.data;q.image&&(_.E(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.TL(q.image.thumbnails,Number.MAX_VALUE)+")")};
var YV=ty8;YV.prototype.computeUrlImg_=YV.prototype.computeUrlImg_;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],YV.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],YV.prototype,"data",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YV.prototype,"computeUrlImg_",null);YV=_.X([_.dx({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],YV);
_.p(YV,"yt-music-pass-feature-info-renderer",function(){if(jKl===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;veS===void 0&&(veS=document.createElement("template"));var r=veS;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);jKl=q}q=jKl;return q},{mode:2});var Rul;var bxF;_.He("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var J6b=function(){return _.N.apply(this,arguments)||this};
_.z(J6b,_.N);var zuC=J6b;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],zuC.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],zuC.prototype,"data",void 0);zuC=_.X([_.dx({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],zuC);
_.p(zuC,"yt-no-results-found-showing-results-for-renderer",function(){if(bxF===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Rul===void 0&&(Rul=document.createElement("template"));var r=Rul;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);bxF=q}q=bxF;return q},{mode:2});var Byc;var aDV;_.He("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var neF=function(){return _.N.apply(this,arguments)||this};
_.z(neF,_.N);var QKC=neF;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],QKC.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],QKC.prototype,"data",void 0);QKC=_.X([_.dx({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],QKC);
_.p(QKC,"yt-results-without-quotes-renderer",function(){if(aDV===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Byc===void 0&&(Byc=document.createElement("template"));var r=Byc;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);aDV=q}q=aDV;return q},{mode:2});var Eec;var x26;_.He("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var Ty6=function(){return _.N.apply(this,arguments)||this};
_.z(Ty6,_.N);var U2S=Ty6;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],U2S.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],U2S.prototype,"data",void 0);U2S=_.X([_.dx({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],U2S);
_.p(U2S,"yt-search-no-results-renderer",function(){if(x26===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Eec===void 0&&(Eec=document.createElement("template"));var r=Eec;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);x26=q}q=x26;return q},{mode:2});var kAb;var Kd8;_.He("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var sKc=function(){return _.N.apply(this,arguments)||this};
_.z(sKc,_.N);var IDD=sKc;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],IDD.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],IDD.prototype,"data",void 0);IDD=_.X([_.dx({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],IDD);
_.p(IDD,"yt-showing-results-for-renderer",function(){if(Kd8===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;kAb===void 0&&(kAb=document.createElement("template"));var r=kAb;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Kd8=q}q=Kd8;return q},{mode:2});var c6y;var MyC;var Fdy;var Nyl;var lDC=function(){var q=_.N.apply(this,arguments)||this;q.answerExpanded=!1;return q};
_.z(lDC,_.N);lDC.prototype.toggleAnswer_=function(q){var Z=_.xz(q);Z&&Z.classList.contains("yt-simple-endpoint")||(q.preventDefault(),q.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
var $V=lDC;$V.prototype.toggleAnswer_=$V.prototype.toggleAnswer_;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],$V.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],$V.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],$V.prototype,"answerExpanded",void 0);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],$V.prototype,"toggleAnswer_",null);
$V=_.X([_.dx({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],$V);
_.p($V,"yt-generic-faq-question-renderer",function(){if(Nyl===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Fdy===void 0&&(Fdy=document.createElement("template"));var r=Fdy;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Nyl=q}q=Nyl;return q},{mode:2});_.He("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var GAF=function(){return _.N.apply(this,arguments)||this};
_.z(GAF,_.N);GAF.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
var e5=GAF;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],e5.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],e5.prototype,"data",void 0);e5=_.X([_.dx({is:"yt-faq-section-renderer",disableElementRegistration:!0})],e5);
_.p(e5,"yt-faq-section-renderer",function(){if(MyC===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;c6y===void 0&&(c6y=document.createElement("template"));var r=c6y;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);MyC=q}q=MyC;return q},{mode:2});var poS;var Xou;_.He("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var m2S=function(){return _.N.apply(this,arguments)||this};
_.z(m2S,_.N);
m2S.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"}}}}};
var C0=m2S;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],C0.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],C0.prototype,"data",void 0);C0=_.X([_.dx({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],C0);
_.p(C0,"yt-offer-item-expanded-renderer",function(){if(Xou===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;poS===void 0&&(poS=document.createElement("template"));var r=poS;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Xou=q}q=Xou;return q},{mode:2});var A67;var fD6;_.He("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var D2y=function(){return _.N.apply(this,arguments)||this};
_.z(D2y,_.N);
D2y.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"}}}}};
D2y.prototype.computeFullWidthMode=function(q){return!(!q||!q.fullWidthMode)};
D2y.prototype.computeBorderlessMode=function(q){return!(!q||!q.borderlessMode)};
var Pf=D2y;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Pf.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Pf.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.A("design:type",Boolean)],Pf.prototype,"fullWidthMode",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.A("design:type",Boolean)],Pf.prototype,"borderlessMode",void 0);Pf=_.X([_.dx({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Pf);
_.p(Pf,"yt-offer-item-renderer",function(){if(fD6===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;A67===void 0&&(A67=document.createElement("template"));var r=A67;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);fD6=q}q=fD6;return q},{mode:2});var hu6;var y6y;_.He("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var ixb=function(){return _.N.apply(this,arguments)||this};
_.z(ixb,_.N);ixb.prototype.computeAriaLevel_=function(q){return this.getLevelID_(q)};
ixb.prototype.getLevelID_=function(q){return(q=q.match(/[0-9]+$/))&&q.length==1?q[0]:"1"};
var dh=ixb;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],dh.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],dh.prototype,"data",void 0);_.X([_.F({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.A("design:type",String)],dh.prototype,"ariaLevel",void 0);_.X([_.F({value:"heading",reflectToAttribute:!0}),_.A("design:type",String)],dh.prototype,"role",void 0);
_.X([_.F({value:-1,reflectToAttribute:!0}),_.A("design:type",Number)],dh.prototype,"tabindex",void 0);dh=_.X([_.dx({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],dh);
_.p(dh,"yt-subscription-product-header-renderer",function(){if(y6y===void 0){var q=document.createElement("template");_.a(q,"\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");q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;hu6===void 0&&(hu6=document.createElement("template"));var r=hu6;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);y6y=q}q=y6y;return q},{mode:2});var geD;var qS6;_.He("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Z06=function(){return _.N.apply(this,arguments)||this};
_.z(Z06,_.N);Z06.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:_.We("menuRenderer"),events:!0}}};
Z06.prototype.onStampFinished_=function(){_.E(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
var VX=Z06;VX.prototype.onStampFinished_=VX.prototype.onStampFinished_;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],VX.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],VX.prototype,"data",void 0);
_.X([_.m2("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],VX.prototype,"onStampFinished_",null);VX=_.X([_.dx({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],VX);
_.p(VX,"yt-subscription-product-renderer",function(){if(qS6===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;geD===void 0&&(geD=document.createElement("template"));var r=geD;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);qS6=q}q=qS6;return q},{mode:2});var wf8;var rk7;_.He("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var YSu=function(){return _.N.apply(this,arguments)||this};
_.z(YSu,_.N);YSu.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
YSu.prototype.imageScrimColorValuesChanged_=function(){var q,Z=(q=this.data)==null?void 0:q.imageScrimColorValues;_.E(this.hostElement).querySelector("#scrim").style.backgroundColor=Z?_.uq(Z[0]):"transparent"};
var OS=YSu;OS.prototype.imageScrimColorValuesChanged_=OS.prototype.imageScrimColorValuesChanged_;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],OS.prototype,"data",void 0);
_.X([_.M("data.imageScrimColorValues"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OS.prototype,"imageScrimColorValuesChanged_",null);OS=_.X([_.dx({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],OS);
_.p(OS,"yt-subscription-product-upsell-offer-renderer",function(){if(rk7===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;wf8===void 0&&(wf8=document.createElement("template"));var r=wf8;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);rk7=q}q=rk7;return q},{mode:2});var $Pb;var ec7;var Cfl;var Pf8;var dPC;var V5D;var O0c=function(){return _.N.apply(this,arguments)||this};
_.z(O0c,_.N);O0c.prototype.onYtServiceRequestError_=function(q){_.W9(this.hostElement,q.detail.error.message)};
var Hf=O0c;Hf.prototype.onYtServiceRequestError_=Hf.prototype.onYtServiceRequestError_;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Hf.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Hf.prototype,"data",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Hf.prototype,"collapsible",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Hf.prototype,"isManageRed",void 0);
_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Hf.prototype,"onYtServiceRequestError_",null);Hf=_.X([_.dx({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],Hf);
_.p(Hf,"yt-single-ypc-offer-renderer",function(){if(V5D===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;dPC===void 0&&(dPC=document.createElement("template"));var r=dPC;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);V5D=q}q=V5D;return q},{mode:2});var H0c=function(){return _.N.apply(this,arguments)||this};
_.z(H0c,_.N);H0c.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
var Wf=H0c;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Wf.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Wf.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Wf.prototype,"isManageRed",void 0);Wf=_.X([_.dx({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Wf);
_.p(Wf,"yt-single-ypc-offer-list-renderer",function(){if(Pf8===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;Cfl===void 0&&(Cfl=document.createElement("template"));var r=Cfl;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Pf8=q}q=Pf8;return q},{mode:2});var WfF;var oV8;_.He("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var uTc=function(){return _.N.apply(this,arguments)||this};
_.z(uTc,_.N);uTc.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
var oj=uTc;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],oj.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],oj.prototype,"isManageRed",void 0);oj=_.X([_.dx({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],oj);
_.p(oj,"yt-ypc-offers-list-renderer",function(){if(oV8===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;WfF===void 0&&(WfF=document.createElement("template"));var r=WfF;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);oV8=q}q=oV8;return q},{mode:2});_.He("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var LfC=function(){return _.N.apply(this,arguments)||this};
_.z(LfC,_.N);
LfC.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}}}}}};
var uf=LfC;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],uf.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],uf.prototype,"data",void 0);uf=_.X([_.dx({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],uf);
_.p(uf,"yt-unlimited-manage-subscription-page-renderer",function(){if(ec7===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;$Pb===void 0&&($Pb=document.createElement("template"));var r=$Pb;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);ec7=q}q=ec7;return q},{mode:2});var SSD;var vV8;var jjC=function(){return _.N.apply(this,arguments)||this};
_.z(jjC,_.N);_.e=jjC.prototype;_.e.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.e.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.e.onKeypress_=function(q){q.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.e.handleHeaderTap_=function(q){q.preventDefault();q.stopPropagation();this.expandOffers_()};
_.e.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.e.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
var L0=jjC;L0.prototype.dataChanged_=L0.prototype.dataChanged_;_.X([_.U(_.Pt),_.A("design:type",Object)],L0.prototype,"ironA11yKeysBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],L0.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],L0.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],L0.prototype,"offersVisible_",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],L0.prototype,"dataChanged_",null);L0=_.X([_.dx({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],L0);
_.p(L0,"yt-collapsible-ypc-offer-renderer",function(){if(vV8===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;SSD===void 0&&(SSD=document.createElement("template"));var r=SSD;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);vV8=q}q=vV8;return q},{mode:2});var t5S;var Rcc;_.He("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var b0C=function(){return _.N.apply(this,arguments)||this};
_.z(b0C,_.N);_.e=b0C.prototype;_.e.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.e.dataChanged_=function(){if(this.data.backgroundImage){var q=_.TL(this.data.backgroundImage.thumbnails,screen.width),Z=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=Z?"linear-gradient(180deg, "+Z+"), url("+q+")":"url("+q+")";this.data.gtmId&&_.Yb(this.data.gtmId,_.zj("GL",""))}};
_.e.onYtServiceRequestError_=function(q){_.W9(this.hostElement,q.detail.error.message)};
_.e.getScrimLayerColorStops_=function(){var q,Z,w=(q=this.data.unlimitedHeaderV2Data)==null?void 0:(Z=q.unlimitedHeaderV2Data)==null?void 0:Z.scrimLayerColors;if(!w)return null;var r=100/w.length;return w.map(function(Y,C){C*=r;return _.uq(Y)+" "+C+"%"}).join(",")};
_.e.computeLogoWithPadding=function(q){var Z,w,r;return(q=(Z=q.unlimitedLogoImage)==null?void 0:(w=Z.thumbnails)==null?void 0:(r=w[0])==null?void 0:r.height)&&q%31===0?!0:!1};
var S5=b0C;S5.prototype.onYtServiceRequestError_=S5.prototype.onYtServiceRequestError_;S5.prototype.dataChanged_=S5.prototype.dataChanged_;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],S5.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.X([_.F({computed:"computeLogoWithPadding(data)"}),_.A("design:type",Boolean)],S5.prototype,"logoWithPadding",void 0);
_.X([_.F(),_.A("design:type",Object)],S5.prototype,"data",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],S5.prototype,"dataChanged_",null);_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],S5.prototype,"onYtServiceRequestError_",null);S5=_.X([_.dx({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],S5);
_.p(S5,"yt-unlimited-page-header-renderer",function(){if(Rcc===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;t5S===void 0&&(t5S=document.createElement("template"));var r=t5S;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Rcc=q}q=Rcc;return q},{mode:2});var Jkq;var zcZ;_.He("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var BhD=function(){return _.N.apply(this,arguments)||this};
_.z(BhD,_.N);BhD.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
var vf=BhD;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],vf.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],vf.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],vf.prototype,"data",void 0);vf=_.X([_.dx({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],vf);
_.p(vf,"yt-unlimited-user-notification-renderer",function(){if(zcZ===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;Jkq===void 0&&(Jkq=document.createElement("template"));var r=Jkq;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);zcZ=q}q=zcZ;return q},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.Onl=_.xl(function(q){var Z=_.n5(q,{numberOfChips:5}).numberOfChips;return _.u("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.u(_.dA,{each:function(){return Array(Z==null?void 0:Z())}},function(){return _.u("div",{class:"ytGhostChipShelfChip"})}))},"Hf");
}catch(e){_._DumpException(e)}
try{
var qPS,Zpl,wkl,ryq,YPZ,$$8,eES,M3,Fo,P5C,d$F,Vsq,Hpc,tsZ,N3,jsy,uKc,vQq,SPZ,LJZ,oQ8,REc,bpZ,JyS,zEu,lu,B07,ajZ,nQ6,U$V,T0V,x$y,QsF,EQZ,KJC,ssq,Ijc,cyy,Msq,FJ6,pkD,Ayy,fjD,D$b,yyC,gQ6,ZRC,wdl,rT7,YhS,eAy,CIy,PIq,dMl,VKb,ORV,HRb,oKS,vKu,ShV,uml,jVl,Lul,tKZ,zA8,JTC,RAF,bR6,Xo,BTl,QVD,Ku7,sVy,ICD,cT8,MK7,FuZ,NTl,lCV,G7V,pd6,mMc,ATy,fC6,kXy,C5b,TTb;
_.II=function(q){var Z=new _.df("Error accessing DB");return _.NmX().then(function(w){return new Promise(function(r,Y){try{var C=w.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(q);C.onsuccess=function(){var d=C.result;r(d?d.value:null)};
C.onerror=function(){Z.params={key:q,source:"onerror"};Y(Z)}}catch(d){Z.params={key:q,
thrownError:String(d)},Y(Z)}})},function(){return null})};
_.ga8=function(q,Z){var w=_.GaO(Z);w!=="javascript:"&&w!=="data:"&&q.setAttribute("href",Z)};
qPS=function(q,Z){return _.iI(q.entities,"flowStateEntity",Z)};
Zpl=function(q){return(q=q.getOption("captions","track"))?!!q.displayName:!1};
wkl=function(q,Z){Z=Z.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(Z==null||!Z.length)return q;var w=Z.filter(function(d){return d});
Z=q.filter(function(d){return d.languageCode.startsWith("en")});
w=_.P(w);for(var r=w.next();!r.done;r=w.next())if(r=r.value,Z.length){var Y=Z[0],C=Object.assign({},Y);Y.languageCode!==r.languageCode&&(C.displayName=Y.languageName+" >> "+r.languageName,C.translationLanguage=r,q.push(C))}return q};
ryq=function(q){var Z,w=(Z=q.getOption("captions","tracklist",{includeAsr:!0}))!=null?Z:[];_.b("mweb_watch_captions_enable_auto_translate")&&(w=wkl(w,q));return w};
YPZ=function(q){return _.KX(q,function(Z){return Z.languageCode==="en"})};
$$8=function(q){var Z=c9;if(Zpl(q))q.setOption("captions","stickyLoading",{}),q.setOption("captions","track",{});else{var w=_.KX(ryq(q),function(r){return r.displayName===Z});
q.setOption("captions","track",w)}};
eES=function(q){if(!q)return 0;var Z=q.getPresentingPlayerType(),w=q.getVideoData();return w&&w.isLive?(q=q.getProgressState(Z),q.seekableEnd-q.seekableStart):q.getDuration(Z)};
M3=function(q,Z){_.nd(Z,q,function(){return C5b[Z]},function(w){C5b[Z]=w;
if(!_.b("mweb_player_ve_show_ks")){var r=_.b5(0);r&&w&&_.Uh(r,w)}})};
Fo=function(q){(q=C5b[q])&&_.D1(_.iy(),q)};
P5C=function(q,Z){for(var w=_.P(Object.keys(q)),r=w.next();!r.done;r=w.next())if(r=r.value,q[r]!==Z[r])return!1;return!0};
d$F=function(){return document.getElementById("player-control-overlay")};
Vsq=function(q){q!==-1&&!_.b("player_controls_log_creation_killswitch")&&d$F()&&(_.JT("pcu_cs",q),_.JT("pcu_ce"))};
Hpc=function(q){return _.u("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(q.subscribeButton?[q.subscribeButton,q.channelAccess]:[q.channelAccess]).map(function(Z){return _.u("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.u("div",{class:"yt-profile-identity-info-view-model-wiz--button"},OpS(Z)))}))};
_.WJF=function(q){var Z=q.data;q=q.hideDivider;var w={};w=(w["yt-profile-identity-info-view-model-wiz__frame"]=!0,w["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!Z.channelBanner,w);w={class:_.XA(w)};var r,Y={imageBannerViewModel:{image:(r=Z.channelBanner)==null?void 0:r.image,style:"IMAGE_BANNER_STYLE_INSET"}};r=_.u("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},Z.channelBanner?_.u("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
OpS(Y,{imageBannerViewModel:{isPositionRelative:!0}})):null);Y=_.u("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},OpS(Z.avatar));var C;var d=_.u("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.u("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},Z.channelDisplayName),Z.verifiedOrOacBadge?_.u("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.u(_.aQ,{data:{thumbnails:[{url:(C=Z.verifiedOrOacBadge)==null?void 0:C.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);C=_.u("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},d,OpS(Z.threeDotMenu));d=_.u("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.u("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.u("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},Z.channelHandle),Z.channelPronouns&&Z.channelHandle?_.u("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.u("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},Z.channelPronouns)),_.u("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.u("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},Z.leftOfBulletInfo),Z.leftOfBulletInfo&&Z.rightOfBulletInfo?_.u("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.u("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},Z.rightOfBulletInfo)));C=_.u("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},C,d);return _.u("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.u("div",w,r,_.u("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},Y,C),Z.channelDescription?_.u("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},Z.channelDescription):
null,Hpc(Z),q?null:_.u("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
tsZ=function(q,Z){var w=_.aA(q,{}),r=oQ8("top",Z),Y=oQ8("bottom",Z),C=oQ8("left",Z),d=oQ8("right",Z);return _.y1({top:function(){return N3(w().position,r)},
bottom:function(){return N3(w().position,Y)},
left:function(){return N3(w().position,C)},
right:function(){return N3(w().position,d)},
position:function(){return N3(w().positionType,uKc)},
height:function(){return N3(w().height,lu)},
width:function(){return N3(w().width,lu)},
"min-width":function(){return N3(w().minWidth,lu)},
"min-height":function(){return N3(w().minHeight,lu)},
"max-width":function(){return N3(w().maxWidth,lu)},
"max-height":function(){return N3(w().maxHeight,lu)},
"aspect-ratio":function(){return N3(w().aspectRatio,String)},
"margin-top":function(){return N3(w().margin,r)},
"margin-bottom":function(){return N3(w().margin,Y)},
"margin-left":function(){return N3(w().margin,C)},
"margin-right":function(){return N3(w().margin,d)},
"padding-top":function(){return N3(w().padding,r)},
"padding-bottom":function(){return N3(w().padding,Y)},
"padding-left":function(){return N3(w().padding,C)},
"padding-right":function(){return N3(w().padding,d)},
"flex-direction":function(){return N3(w().flexDirection,LJZ)},
"justify-content":function(){return N3(w().justifyContent,SPZ)},
"align-items":function(){return N3(w().alignItems,vQq)},
"flex-grow":function(){return N3(w().flexGrow,String)},
"flex-shrink":function(){return N3(w().flexShrink,String)},
"flex-basis":function(){return N3(w().flexBasis,lu)},
"align-self":function(){return N3(w().alignSelf,vQq)},
"flex-wrap":function(){return N3(w().flexWrap,jsy)},
"align-content":function(){return N3(w().alignContent,vQq)}})};
N3=function(q,Z){return q!==void 0?Z(q):void 0};
jsy=function(q){switch(q){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
uKc=function(q){switch(q){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
vQq=function(q){switch(q){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"}};
SPZ=function(q){switch(q){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"}};
LJZ=function(q){switch(q){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"}};
oQ8=function(q,Z){var w=Z==="rtl";switch(q){case "top":var r=REc;break;case "bottom":r=bpZ;break;case "left":r=JyS;break;default:r=zEu}return function(Y){return N3(r(Y,w),lu)}};
REc=function(q){var Z=q.top;var w=q.vertical;q=q.all;var r;return(r=Z!=null?Z:w)!=null?r:q};
bpZ=function(q){var Z=q.bottom;var w=q.vertical;q=q.all;var r;return(r=Z!=null?Z:w)!=null?r:q};
JyS=function(q,Z){var w=q.left;var r=q.end;var Y=q.start;var C=q.horizontal;q=q.all;var d,O;return(O=(d=w!=null?w:Z?r:Y)!=null?d:C)!=null?O:q};
zEu=function(q,Z){var w=q.right;var r=q.end;var Y=q.start;var C=q.horizontal;q=q.all;var d,O;return(O=(d=w!=null?w:Z?Y:r)!=null?d:C)!=null?O:q};
lu=function(q){var Z=q.value;switch(q.unit){case "YPC_DIMENSION_UNIT_POINT":return Z+"px";case "YPC_DIMENSION_UNIT_FRACTION":return Z+"%";default:return""+Z}};
B07=function(q){switch(q){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"}};
ajZ=function(q){var Z=q!=null?q:{};q=Z.fontRole;var w=Z.fontSize;Z=Z.fontWeight;if(q!==null&&w!==null)switch(q){case "YPC_FONT_ROLE_DISPLAY":switch(w){case "YPC_FONT_SIZE_L":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(w){case "YPC_FONT_SIZE_L":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return Z===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(w){case "YPC_FONT_SIZE_XL":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
nQ6=function(q,Z){return _.iI(q.entities,"pdpStateEntity",Z)};
U$V=function(q,Z,w){function r(L){return Object.values(L).map(function(S){var v=S.productId;S=S.pricingOptionIndex;return QsF(Y(v).pricingOptions,S).pricingOptionId})}
function Y(L){return O().get(L)}
function C(L){L=r(L);w(L)}
var d=EQZ([q,Z],function(L,S){var v=L==null?void 0:L.selectedPricingOptions;L={};var R=!0;if(v&&S.length)for(var B=_.P(S),n=B.next();!n.done;n=B.next()){n=n.value;var x=x$y(n.pricingOptions,function(K){a:{K=K.pricingOptionId;for(var k=_.P(v),G=k.next();!G.done;G=k.next())if(G.value===K){K=!0;break a}K=!1}return K});
x>=0&&(R=!1,L[n.groupId]={productId:n.productId,pricingOptionIndex:x})}R&&S.length&&(L[S[0].groupId]={productId:S[0].productId,pricingOptionIndex:0});return L}),O=EQZ([Z],function(L){return new Map(L.map(function(S){return[S.productId,
S]}))}),H=EQZ([Z],function(L){var S=new Map;
L=_.P(L);for(var v=L.next();!v.done;v=L.next()){var R=v.value;v=R.groupId;var B=R.productId;R=_.P(T0V(R.pricingOptions));for(var n=R.next();!n.done;n=R.next()){var x=_.P(n.value);n=x.next().value;x=x.next().value;S.set(x.pricingOptionId,{groupId:v,productId:B,index:n,pricingOption:x})}}return S});
return{getProductById:Y,isProductSelected:function(L){var S=Y(L);if(!S)return!1;var v;return((v=d()[S.groupId])==null?void 0:v.productId)===L},
getSelectedPricingOptions:function(){return Object.values(d()).map(function(L){var S=L.productId;L=L.pricingOptionIndex;return QsF(Y(S).pricingOptions,L)})},
getSelectedProductByGroupId:function(L){var S;return(L=(S=d()[L])==null?void 0:S.productId)?Y(L):void 0},
onProductSelected:function(L){var S=Y(L);if(S){var v=d(),R;if(((R=v[S.groupId])==null?void 0:R.productId)!==L){var B,n;R=(n=(B=v[S.groupId])==null?void 0:B.pricingOptionIndex)!=null?n:0;B=0;for(n=S.pricingOptions[Symbol.iterator]();!n.next().done;)++B;B<=R&&(R=0);B={};C(Object.assign({},v,(B[S.groupId]={productId:L,pricingOptionIndex:R},B)))}}},
onPricingOptionSelected:function(L){var S=H().get(L);if(S){L=S.groupId;var v=S.productId;S=S.index;var R=d(),B,n;if(((B=R[L])==null?void 0:B.productId)!==v||((n=R[L])==null?void 0:n.pricingOptionIndex)!==S)B={},C(Object.assign({},R,(B[L]={productId:v,pricingOptionIndex:S},B)))}},
onClearGroupSelected:function(L){var S=d();S[L]&&(S=Object.fromEntries(Object.entries(S).filter(function(v){return _.P(v).next().value!==L})),C(S))}}};
T0V=function(q){return function w(){var r,Y,C,d;return kXy(w,function(O){switch(O.nextAddress){case 1:_.Hq(O,2),r=0,Y=_.P(q),C=Y.next();case 4:if(C.done){O.jumpTo(2);break}d=C.value;var H=[r++,d];return _.W(O,H,7);case 7:C=Y.next();O.jumpTo(4);break;case 2:_.V2(O),_.Wq(O,0)}})}()};
x$y=function(q,Z){q=_.P(T0V(q));for(var w=q.next();!w.done;w=q.next()){var r=_.P(w.value);w=r.next().value;r=r.next().value;if(Z(r))return w}return-1};
QsF=function(q,Z){q=_.P(T0V(q));for(var w=q.next();!w.done;w=q.next()){var r=_.P(w.value);w=r.next().value;r=r.next().value;if(w===Z)return r}};
EQZ=function(q,Z){var w,r;return function(){for(var Y=q.map(function(d){return d()}),C=0;C<Y.length;C++)if(!w||Y[C]!==w[C]){w=Y;
r=Z.apply(null,_.Ju(Y));break}return r}};
KJC=function(q){var Z;return!!(q.productId&&q.groupId&&((Z=q.pricingOptions)==null?0:Z.length)&&q.pricingOptions.every(function(w){return w.pricingOptionId}))};
ssq=function(q,Z,w){return U$V(q,EQZ([Z],function(r){return r.filter(KJC)}),w)};
Ijc=function(q){switch(q){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""}};
cyy=function(q,Z){return Z.length===0?[q]:[q.slice(0,Z[0]),q.slice(Z[0])].filter(function(w){return w.length>0})};
Msq=function(q){switch(q){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""}};
FJ6=function(q,Z,w,r){r=Object.assign({},r);_.da(r,Gm,{selectedOptionId:q,primaryButtonOverride:w});_.JJ().dispatch(_.wp("flowStateEntity",Z,r))};
_.GXV=function(){if(!N0F){var q=_.P(_.qo(new Map,void 0,"UJImUe"));N0F=q.next().value;ljD=q.next().value}return N0F};
pkD=function(q){if(q)return _.GXV()().get(q)};
_.Xku=function(q,Z){if(q&&Z){var w=_.GXV();w().set(q,Z);q=w();ljD(new Map(q))}};
_.m$F=function(q){return{onSubmit:function(){var Z;(Z=pkD(q()))==null||Z.onSubmit()},
isValid:function(){var Z=pkD(q());return Z?Z.isValid():!0},
isSubmitting:function(){var Z,w;return!!((Z=pkD(q()))==null?0:(w=Z.isSubmitting)==null?0:w.call(Z))}}};
Ayy=function(q,Z){return _.iI(q.entities,"contextNoteFeedEntityPayload",Z)};
fjD=function(q){q.style.height="auto";q.style.height=q.scrollHeight+"px"};
D$b=function(q){return[q.syncStep,q.asyncStep].filter(function(Z){return Z!==void 0})};
yyC=function(q){var Z,w,r;if(q=(Z=q.structuredContextNoteFormSchema)==null?void 0:(w=Z.fieldSchemas)==null?void 0:(r=w.noteBody)==null?void 0:r.validationSchema)for(Z=_.P(D$b(q)),w=Z.next();!w.done;w=Z.next()){w=w.value.rules;if(!w)break;w=_.P(w);for(w=w.next();!w.done;w=w.next())return _.J(w.value,_.hEF)}};
gQ6=function(q){if(q){q=_.P(D$b(q));for(var Z=q.next();!Z.done;Z=q.next()){Z=Z.value.rules;if(!Z)break;Z=_.P(Z);for(Z=Z.next();!Z.done;Z=Z.next())return _.J(Z.value,ipb)}}};
ZRC=function(q){if(q){q=_.P(D$b(q));for(var Z=q.next();!Z.done;Z=q.next()){Z=Z.value.rules;if(!Z)break;Z=_.P(Z);for(Z=Z.next();!Z.done;Z=Z.next())return _.J(Z.value,qhF)}}};
wdl=function(q){q=/^https?:\/\//.test(q)?q:"http://"+q;try{var Z=_.UJ(q)}catch(w){return!1}if(Z.toString()!==q)return!1;q=Z.JSC$7906_domain_.split(".");return q.length>1&&q.every(function(w){return!!w})};
rT7=function(q,Z,w,r){var Y;r=(Y=r.structuredContextNoteData)==null?void 0:Y.createCommentEndpoint;if(Y=_.J(r,_.YKD))return Y.commentText=_.UE(q),Y.videoPositionMention=Z,Y.sources=w,r};
YhS=function(q){return q==null?void 0:q.stringValue};
eAy=function(q,Z,w){q=q.map(function(r,Y){return{listItemViewModel:{title:r.title,subtitle:r.subtitle,leadingImage:r.leadingImage,trailingImage:Y===Z?$Mu:void 0,rendererContext:{commandContext:{onTap:r.onTap}}}}});
return Object.assign({},w&&{header:{panelHeaderViewModel:{title:w}}},{content:{listViewModel:{listItems:q}}})};
CIy=function(q,Z){if(q&&Z)switch(Z){case "SELECTION_TYPE_BOOL":return q.boolValue;case "SELECTION_TYPE_INT":return q.intValue;case "SELECTION_TYPE_STRING":return q.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return q.privacyStatusValue}};
PIq=function(q){var Z;q=(Z=q.options)==null?void 0:Z.findIndex(function(w){return w.isSelected});
return q===void 0?-1:q};
dMl=function(q,Z,w){var r=function(){return q().label},Y={},C=_.GL("ytDropdownViewModelLabel",(Y.ytDropdownViewModelLabelError=Z,Y));
return _.u(_.PF,{cond:function(){var d;if(d=q().label)d=!(w()===-1&&q().label&&!q().placeholderText);return d},
then:function(){return _.u("div",{class:C},_.u(_.r6,{text:r}))}})};
VKb=function(q,Z){var w={};w=_.GL("ytDropdownViewModelTitle",(w.ytDropdownViewModelTitlePlaceholder=function(){return Z()===-1},w));
return _.u("div",{class:w},_.u(_.r6,{text:function(){var r=q();var Y=Z();if(Y===-1)r=r.placeholderText?r.placeholderText:r.label;else{var C,d;r=(C=r.options)==null?void 0:(d=C[Y])==null?void 0:d.title}return r}}))};
ORV=function(q,Z){var w=function(){return q().hint};
return _.u(_.lS,null,_.u(_.PF,{cond:function(){return w()&&!Z()},
then:function(){return _.u("div",{class:_.GL("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.u(_.r6,{text:w,className:"ytDropdownViewModelSupportText"}))}}),_.u(_.PF,{cond:Z,
then:function(){return _.u("div",{id:"dropdown-view-model-error",role:"alert",class:_.GL("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.u(_.q0,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.u(_.r6,{text:Z,className:"ytDropdownViewModelSupportText"}))}}))};
HRb=function(q,Z){var w=_.t().resolve(_.muq);_.Ls(function(){var r=q().id;r&&w!=null&&w.dropdownMap.set(r,Z)})};
oKS=function(q){q=_.J(q.scheduleButton,Wuy);q=_.J(q==null?void 0:q.primaryButton,_.Wx);q=_.J(q==null?void 0:q.onTap,_.WJ);var Z,w,r=((w=_.J(q,_.$K))==null?void 0:w.commands)||[q];w=_.P(r);for(q=w.next();!q.done&&!(Z=_.J(q.value,_.e3W));q=w.next());var Y;Z=(Y=Z)==null?void 0:Y.createBroadcastRequest;if(!Z)throw Error("Hj");return Z};
vKu=function(q,Z,w){w=w===void 0?{}:w;var r,Y;return _.V(function(C){if(r=uml(Z))return C.return(r);(Y=Lul(q,Z,w))&&ShV(Z,Y);return C.return(Y)})};
ShV=function(q,Z){var w=jVl(q);w&&Z.then(function(r){_.t().resolve(_.A_).put(w,new _.fO({innertubeResponse:r}))})};
uml=function(q){if(q=jVl(q)){var Z=_.t().resolve(_.A_);if(Z.has(q))return Z.get(q).then(function(w){return w==null?void 0:_.Zb(w)})}return null};
jVl=function(q){var Z=_.J(q.endpoint,_.ck);if(Z!=null&&Z.videoId)return Z={videoId:Z.videoId},_.b("web_imp_player_mute_params")&&(Z.mutedAtStart=q.startPlaybackInMutedState),_.Is("inline_playback",Z)};
Lul=function(q,Z,w){q=_.zR(q,Z.endpoint,tKZ(Z,w)).then(function(r){return r});
return Promise.resolve(q)};
tKZ=function(q,Z){Z=_.b("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!q.startPlaybackInMutedState},Z):Object.assign({},{vis:5,autonav:"1"},Z);var w;Z={contentPlaybackContext:_.$z(Z,(w=_.J(q.endpoint.commandMetadata,_.XK))==null?void 0:w.url,window.location.href)};_.b("web_imp_player_mute_params")&&(Z.overrideMutedAtStart=!q.startPlaybackInMutedState);return Z};
zA8=function(q,Z){var w=window.MutationObserver;w&&(pW=new w(function(r,Y){r=_.P(r);for(var C=r.next();!C.done;C=r.next()){C=C.value;var d;if(d=C.type==="childList"&&C.target)a:{d=q;C=RAF(C.target);d=RAF(d);for(var O=null,H=0;H<C.length;H++)if(d.includes(C[H])){if(H===0){d=!1;break a}O=C[H];break}O?(C=bR6(C,O),d=bR6(d,O),d=C<d):d=!1}if(d){Z();Y.disconnect();break}}}),(w=JTC())&&pW.observe(w,{childList:!0,
subtree:!0}))};
JTC=function(){var q=document.getElementsByTagName("ytd-rich-grid-renderer");if(q.length>0)return q[0];q=document.getElementsByTagName("ytd-section-list-renderer");return q.length>0?q[0]:null};
RAF=function(q){for(var Z=[];q;)Z.push(q),q=q.parentElement;return Z};
bR6=function(q,Z){var w=Array.from(Z.children);Z=q.indexOf(Z);return Z>0?w.indexOf(q[Z-1]):-1};
Xo=function(q,Z,w){w=w===void 0?{}:w;return _.dT(q,w,Z)};
BTl=function(q){return q==null?void 0:q.filter(function(Z){return Z.premiereTrailerBadgeRenderer})};
QVD=function(q,Z){var w="",r="";switch(q){case -1:case 0:w=Z?"VOLUME_OFF":"VOLUME_OFF_FILLED";r=aC7;break;case 1:w=Z?"VOLUME_UP_OUTLINE":"VOLUME_UP";r=nKS;break;default:_.F7(q)}return{iconName:w,ariaLabel:r}};
Ku7=function(q,Z){var w=EKq,r=_.P(_.qo(xMV(new TTb(function(){},w,Z)),void 0,"PAnyd")),Y=r.next().value,C=r.next().value,d=new TTb(function(O){C(O)},w,Z);
_.L7(function(){Promise.resolve().then(function(){var O,H=(O=q())!=null?O:{};d.playerControlsData=H;_.b("player_controls_skip_double_signal_old")&&(d.lastSeenPlayerApi=_.x4(H.playerApi));_.b("player_controls_skip_double_signal_old")||(d.lastSeenPlayerApi=_.x4(H.playerApi));UM6(d)});
_.SG(function(){k7b(d)})});
_.SG(function(){k7b(d)});
return function(){return Y()}};
sVy=function(q){return function(Z){var w=q(),r={playerState:Z};if(Z===1){var Y;(Y=w.playerApi)==null||Y.loadModule("captions")}if(Z===0){var C;(C=w.playerApi)==null||C.unloadModule("captions")}(Z!==-1||_.b("web_imp_controls_set_player_state_killswitch"))&&w.setState(r)}};
ICD=function(q){return function(Z){q().setState({playbackRate:Z})}};
cT8=function(q){return function(Z){var w=q(),r=w.playerApi,Y=r==null?void 0:r.getVideoData(),C=(Y==null?void 0:Y.isLive)||!1;Y=Y==null?void 0:Y.video_id;C={videoDuration:eES(r||void 0),isLive:C,videoId:Y};C.videoId!==w.videoId&&(C=Object.assign({},_.Rr2(r),C));if(Z==null?0:Z.playertype)C.playerType=Z.playertype;if(r){C.captionsAvailable=!!r.getOptions("captions");Z=C;var d;Y=(d=r.getStoryboardLevel(r.getNumberOfStoryboardLevels()-1))==null?void 0:d.intervalMs;Z.storyboardInterval=Y?Y/1E3:void 0;C.captionsAvailable&&
(C.captionsEnabled=Zpl(r))}C.volumeMuted=!(r==null||!r.isMuted());w.setState(C)}};
MK7=function(q){return function(Z){var w=q(),r=w.playerApi;if(r){var Y=r.getPresentingPlayerType();Z={playedTime:Z||0,percentLoaded:r.getVideoLoadedFraction(),playerType:Y};w.playerState===0&&(Z.playedTime=w.videoDuration);w.isLive&&(Y=r.getProgressState(Y),Z.playedTime-=Y.seekableStart,Z.videoDuration=eES(r));w.playerType!==1&&delete Z.playedTime;w.setState(Z)}}};
FuZ=function(q){return function(){var Z=q(),w,r,Y,C={volume:(Y=(w=Z.playerApi)==null?void 0:w.getVolume())!=null?Y:0,volumeMuted:!((r=Z.playerApi)==null||!r.isMuted())};Z.setState(C)}};
NTl=function(q){return function(){var Z=q(),w=Z.playerApi;if(w){var r={captionsAvailable:!!w.getOptions("captions")};r.captionsAvailable&&(r.captionsEnabled=Zpl(w));Z.setState(r)}}};
lCV=function(q){return function(){var Z=q();if(Z.playerApi&&!(Z.volumeMuted||Z.controlsVisible&&Z.isProbablyAScreenreaderUser)){Z.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var w;(w=document.querySelector(".player-control-play-pause-icon"))==null||w.focus()}}};
G7V=function(q){return{appApi:Object.assign({},_.o$O(),{showCaptionsToggleToast:function(Z){var w,r;(r=(w=q()).showCaptionsToggleToast)==null||r.call(w,Z)},
openInMiniplayer:function(){var Z,w;(w=(Z=q()).openInMiniplayer)==null||w.call(Z)}})}};
pd6=function(q,Z){var w,r,Y;return!!(q==null?0:(w=q.playerResponse)==null?0:(r=w.playerConfig)==null?0:(Y=r.inlinePlaybackConfig)==null?0:Y.showScrubbingControls)&&!(Z==null?0:Z.hideScrubbingControls)};
_.Xd8=function(q){var Z=!q.miniplayerIsActive;return[5,2,0].includes(q.miniplayerPlaybackState)||Z};
mMc={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};ATy=function(q,Z){var w,r,Y,C,d;_.V(function(O){if(!Z.length)return O.return([]);w=[];r=_.P(Z);for(Y=r.next();!Y.done;Y=r.next())C=Y.value,(d=q.resolveIcon(C))&&!q.iconCache[d.url]&&w.push(_.$Rc(q,d).then(function(){}).catch(function(){}));
return O.return(Promise.all(w))})};
fC6=function(q,Z){var w=[];Z=(new Set(Z)).values();Z=_.P(Z);for(var r=Z.next();!r.done;r=Z.next()){r=r.value;for(var Y=_.P(Object.values(mMc)),C=Y.next();!C.done;C=Y.next())w.push({iconName:r,iconStyle:C.value})}ATy(q.iconManager,w)};
_.DMb=function(q,Z,w){var r=w!=null?w:q.iconsToFetch;r!=null&&r.length?Z!==void 0&&Z>=0?_.WO(_.v5,function(){fC6(q,r)},Z):fC6(q,r):Promise.resolve()};
kXy=function(q,Z){Z=new _.AbI(new _.pCe(Z));_.Md&&q.prototype&&(0,_.Md)(Z,q.prototype);return Z};
C5b={};
TTb=function(q,Z,w){var r=this;this.renderFn=q;this.listeners=Z;this.context=w;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var Y;this.lastSeenPlayerApi=_.x4((Y=this.playerControlsData)==null?void 0:Y.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.Rr2(),void 0);_.b("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){xMV(r).setState({playerState:-1});r.resetRecentlyNavigatedJobId&&_.v5.cancelJob(r.resetRecentlyNavigatedJobId);r.recentlyNavigated=
!0;r.resetRecentlyNavigatedJobId=_.v5.addJob(function(){r.recentlyNavigated=!1},8,1E4)})};
TTb.prototype.setState=function(q){if(!_.b("mweb_player_skip_no_op_state_changes")||!P5C(q,this.state))if(this.state=Object.assign({},this.state,q),!_.b("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)q=-1,_.b("player_controls_log_creation_killswitch")||d$F()||(q=(0,_.lp)()),_.JT("pcu_s"),_.JT("pcu_se"),_.JT("pcu_rs"),this.renderFn(xMV(this)),_.JT("pcu_re"),Vsq(q),_.v5.addJob(function(){_.JT("pcu_ap")},8)};
var xMV=function(q){var Z;var w=_.x4((Z=q.playerControlsData)==null?void 0:Z.playerApi);return Object.assign({},q.state,{setState:q.boundSetState,domMeasurements:{progressBarLineRect:q.progressBarLineRect},playerApi:w,appApi:q.context.appApi,playerContainer:q.context.playerContainer,playerControlContainer:q.context.playerControlContainer,uxConfig:q.context.uxConfig})},UM6=function(q){q.listeners.forEach(function(Z){q.eventListenerCleanupFunctions.push(Z.register(function(){return xMV(q)},function(){return q.getData()}))})},
k7b=function(q){q.eventListenerCleanupFunctions.forEach(function(Z){Z()});
q.eventListenerCleanupFunctions.length=0};
TTb.prototype.getData=function(){return this.playerControlsData};
var mk=new _.D("abuseReportFlowState");var hAS=new _.D("feedbackFormFlowState");var yT8=new _.D("inputBoxViewModel");var iRy=new _.D("flowNextStepCommand");var gKl=new _.D("flowPrevStepCommand");var qEC=new _.D("updateFlowCommand");_.ZzS=new _.D("flowStepRenderer");_.hEF=new _.D("lengthValidationRule");var ipb=new _.D("regexValidationRule");var qhF=new _.D("selectedValidationRule");var wXZ=new _.D("talkToRecsViewModel");var r08=new _.D("creatorGoalSetUpFlowDropdownItemViewModel");var YE7=new _.D("creatorGoalSetUpFlowDropdownViewModel");_.$97=new _.D("radioButtonGroupViewModel");var Wuy=new _.D("panelFooterViewModel");var eW6=new _.D("ypcCancelRecurrenceCommand");var CFy=new _.D("cancellationFlowState");var Gm=new _.D("premiumPurchaseFlowState");var PFD=new _.D("surveyAnswerCardRenderer");var d9l=new _.D("showMoreButtonRenderer");var VZc;var Ozc,Hzc=function(){if(Ozc!==void 0)return Ozc;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;VZc===void 0&&(VZc=document.createElement("template"));var r=VZc;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return Ozc=q};var WSq=function(){var q=_.N.apply(this,arguments)||this;q.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";q.goalDescription="";q.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";q.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";q.startButtonId="start-button";q.exampleButtonId="example-button";return q};
_.z(WSq,_.N);_.e=WSq.prototype;_.e.getGoalDropdownItems=function(){var q,Z;return(Z=_.J((q=this.data)==null?void 0:q.purchaseTargetDropdown,YE7))==null?void 0:Z.dropdownItems};
_.e.getTimerDropdownItems=function(){var q,Z;return(Z=_.J((q=this.data)==null?void 0:q.timerDropdown,YE7))==null?void 0:Z.dropdownItems};
_.e.getColorDropdownItems=function(){var q,Z;return(Z=_.J((q=this.data)==null?void 0:q.colorDropdown,YE7))==null?void 0:Z.dropdownItems};
_.e.getDropdownItemText=function(q){var Z;return(Z=_.J(q,r08))==null?void 0:Z.itemLabel};
_.e.getDropdownItemValue=function(q){q=_.J(q,r08);return(q==null?void 0:q.timeLimit)||(q==null?void 0:q.purchaseTarget)||(q==null?void 0:q.eligiblePurchaseType)};
_.e.updateFlowState=function(q){_.yY(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:q}])};
_.e.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.e.updateGoalValue=function(q){this.goal=q.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.e.onTextValueChanged=function(q){this.goalDescription=q.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.e.updateTimerValue=function(q){this.timer=q.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.e.updateTierValue=function(q){this.tier=q.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.e.getButtonViewModel=function(q){q=(q==null?void 0:q.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var Z,w=_.J((Z=this.data)==null?void 0:Z.startGoalButton,_.Wx);return Object.assign({},w,{state:q})};
_.My.Object.defineProperties(WSq,{template:{configurable:!0,enumerable:!0,get:function(){return Hzc()}}});
var AV=WSq;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],AV.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],AV.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],AV.prototype,"goal",void 0);_.X([_.F(),_.A("design:type",Object)],AV.prototype,"goalDescription",void 0);_.X([_.F(),_.A("design:type",Object)],AV.prototype,"timer",void 0);_.X([_.F(),_.A("design:type",Object)],AV.prototype,"tier",void 0);
_.X([_.F(),_.A("design:type",Object)],AV.prototype,"startButtonId",void 0);_.X([_.F(),_.A("design:type",Object)],AV.prototype,"exampleButtonId",void 0);AV=_.X([_.dx({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],AV);_.p(AV,"yt-creator-goal-set-up-flow-view-model",function(){return Hzc()},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var oOC;var uRb;var LSl;var SE6=function(){return _.N.apply(this,arguments)||this};
_.z(SE6,_.N);var vO8=SE6;_.X([_.F(),_.A("design:type",Object)],vO8.prototype,"data",void 0);vO8=_.X([_.dx({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],vO8);
_.p(vO8,"yt-survey-answer-card-renderer",function(){if(LSl===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;uRb===void 0&&(uRb=document.createElement("template"));var r=uRb;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);LSl=q}q=LSl;return q},{mode:2});var jZ7;var tZZ;var RWb=function(){return _.N.apply(this,arguments)||this};
_.z(RWb,_.N);_.e=RWb.prototype;_.e.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.e.selectedItemChanged=function(q){_.yY(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[q.feedbackToken||""]}])};
_.e.surveyAnswerCardRendererClicked=function(q){if(q.target&&_.J(q.model.item,PFD)){var Z=q.target;q=_.J(q.model.item,PFD);q.onTapCommand?_.ZC(Z,[q.onTapCommand],Z):this.data.onTapCommand&&_.ZC(Z,[this.data.onTapCommand],Z);this.selectedItemChanged(q)}};
_.e.checkIsCancellationStyle=function(q){return q==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.e.updateSelectedItemFromBinding=function(q){this.selectedItem=q.detail.value};
var fW=RWb;fW.prototype.onSelectedItemChanged=fW.prototype.onSelectedItemChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],fW.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],fW.prototype,"selectedItem",void 0);_.X([_.F({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.A("design:type",Boolean)],fW.prototype,"isCancellationStyle",void 0);
_.X([_.M("selectedItem"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fW.prototype,"onSelectedItemChanged",null);fW=_.X([_.dx({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],fW);
_.p(fW,"yt-survey-flow-step-renderer",function(){if(tZZ===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;jZ7===void 0&&(jZ7=document.createElement("template"));var r=jZ7;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);tZZ=q}q=tZZ;return q},{mode:2});var bzl=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return q};
_.z(bzl,_.N);bzl.prototype.handleSurveyFlowStepOptionChanged=function(q){this.ytdReduxBehavior.dispatch(_.mu({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:q}));_.yY(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:q}}])};
var Dy=bzl;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Dy.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],Dy.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Dy.prototype,"data",void 0);Dy=_.X([_.l({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],Dy);
_.p(Dy,"ytd-survey-flow-step-renderer",function(){if(oOC!==void 0)return oOC;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return oOC=q},{mode:1});var OpS;OpS=_.Px({avatarViewModel:_.vQ,buttonViewModel:_.vx,subscribeButtonViewModel:_.hQX,imageBannerViewModel:_.v1F});_.J0q=_.mq(_.WJF);_.mD(_.WJF);var zWl;var BtS=function(){return _.N.apply(this,arguments)||this};
_.z(BtS,_.N);var hV=BtS;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],hV.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],hV.prototype,"data",void 0);hV=_.X([_.l({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],hV);
_.p(hV,"ytd-channel-history-renderer",function(){if(zWl!==void 0)return zWl;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return zWl=q},{mode:1});var akb;var nOZ=function(){return _.N.apply(this,arguments)||this};
_.z(nOZ,_.N);var QZD=nOZ;_.X([_.F(),_.A("design:type",Object)],QZD.prototype,"data",void 0);QZD=_.X([_.l({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],QZD);
_.p(QZD,"ytd-feature-enablement-info-renderer",function(){if(akb!==void 0)return akb;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return akb=q},{mode:1});var EOD;var x97;var Ttc=function(){var q=_.N.apply(this,arguments)||this;q.textBoxMaxLength=_.b("enable_tvod_campaign_code_integration")?15:12;return q};
_.z(Ttc,_.N);_.e=Ttc.prototype;_.e.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.e.onSubmit=function(){var q=this.data.serviceEndpoint,Z=_.J(q,_.Dv);Z&&q&&(Z.couponCode=this.userInput,_.b("web_ytd_ypc_coupon_renderer_command_resolver_ks")?_.qM(this.hostElement,[q]):_.t().resolve(_.ps).resolveCommand(q,{form:{element:this.hostElement}}))};
_.e.validate=function(){var q=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=q&&!this.data.errorMessage;this.showErrorMessage=q&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.b("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.e.computeStyle=function(q){return q};
_.e.computeShowValidationBelowInput=function(q){return q!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.e.updateUserInputFromBinding=function(q){this.userInput=q.currentTarget.value};
_.e.updateShowErrorMessageFromBinding=function(q){this.showErrorMessage=q.detail.value};
_.My.Object.defineProperties(Ttc.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
var y$=Ttc;y$.prototype.dataChanged=y$.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],y$.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],y$.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],y$.prototype,"userInput",void 0);_.X([_.F(),_.A("design:type",Boolean)],y$.prototype,"disableApplyButton",void 0);_.X([_.F(),_.A("design:type",Boolean)],y$.prototype,"hideApplyButton",void 0);
_.X([_.F(),_.A("design:type",Boolean)],y$.prototype,"hideErrorMessage",void 0);_.X([_.F(),_.A("design:type",Boolean)],y$.prototype,"showTick",void 0);_.X([_.F(),_.A("design:type",Boolean)],y$.prototype,"showErrorMessage",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],y$.prototype,"couponStyle",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.A("design:type",Boolean)],y$.prototype,"showValidationBelowInput",void 0);_.X([_.F(),_.A("design:type",Object)],y$.prototype,"textBoxMaxLength",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],y$.prototype,"dataChanged",null);
_.X([_.I("showTick","showErrorMessage","userInput"),_.A("design:type",String),_.A("design:paramtypes",[])],y$.prototype,"validationState",null);y$=_.X([_.l({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],y$);
_.p(y$,"ytd-ypc-coupon-renderer",function(){if(x97!==void 0)return x97;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return x97=q},{mode:1});var U9F=function(){return _.N.apply(this,arguments)||this};
_.z(U9F,_.N);U9F.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"}}}};
U9F.prototype.computeStyle=function(q){return q};
var iu=U9F;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],iu.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],iu.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],iu.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],iu.prototype,"buttonStyle",void 0);
iu=_.X([_.l({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],iu);
_.p(iu,"ytd-flow-bottom-bar-renderer",function(){if(EOD!==void 0)return EOD;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return EOD=q},{mode:1});var k9c;var KSl;var sZC;var Ik8=function(){return _.N.apply(this,arguments)||this};
_.z(Ik8,_.N);Ik8.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ik8.prototype.focus=function(q){this.title&&_.KB(this.title,q)};
var gu=Ik8;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],gu.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],gu.prototype,"data",void 0);_.X([_.fo("#title"),_.A("design:type",HTMLElement)],gu.prototype,"title",void 0);gu=_.X([_.l({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],gu);
_.p(gu,"ytd-flow-top-bar-renderer",function(){if(sZC!==void 0)return sZC;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return sZC=q},{mode:1});var c0u;var MZl;var FS8;var qm=function(){return _.N.apply(this,arguments)||this};
_.z(qm,_.N);qm.prototype.freeTextValueChanged=function(){_.yY(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
qm.prototype.updateFreeTextValueFromBinding=function(q){this.freeTextValue=q.detail.value};
_.My.Object.defineProperties(qm.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var q,Z,w=(Z=(q=this.data)==null?void 0:q.responseMaxLength)!=null?Z:500,r;return((r=this.freeTextValue)!=null?r:"").length>=w?"maxed-out":""}}});
var ZR=qm;ZR.prototype.freeTextValueChanged=ZR.prototype.freeTextValueChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ZR.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ZR.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],ZR.prototype,"freeTextValue",void 0);_.X([_.fo("#user-input"),_.A("design:type",HTMLTextAreaElement)],ZR.prototype,"input",void 0);
_.X([_.I("freeTextValue"),_.A("design:type",Object),_.A("design:paramtypes",[])],ZR.prototype,"characterLimitClass",null);_.X([_.M("freeTextValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZR.prototype,"freeTextValueChanged",null);ZR=_.X([_.dx({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],ZR);
_.p(ZR,"yt-free-text-input-flow-step-renderer",function(){if(FS8===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;MZl===void 0&&(MZl=document.createElement("template"));var r=MZl;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);FS8=q}q=FS8;return q},{mode:2});var NtZ=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return q};
_.z(NtZ,_.N);NtZ.prototype.handleFreeTextFlowStepInputChanged=function(q){_.yY(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:q}}])};
var w$=NtZ;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],w$.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],w$.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],w$.prototype,"data",void 0);w$=_.X([_.l({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],w$);
_.p(w$,"ytd-free-text-input-flow-step-renderer",function(){if(c0u!==void 0)return c0u;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return c0u=q},{mode:1});var lk8;var G96;var pXb=function(){return _.N.apply(this,arguments)||this};
_.z(pXb,_.N);var XXD=pXb;_.X([_.F(),_.A("design:type",Object)],XXD.prototype,"data",void 0);XXD=_.X([_.l({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],XXD);
_.p(XXD,"ytd-metadata-line-renderer",function(){if(G96!==void 0)return G96;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return G96=q},{mode:1});var m9C=function(){return _.N.apply(this,arguments)||this};
_.z(m9C,_.N);m9C.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
var r$=m9C;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],r$.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],r$.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],r$.prototype,"isMasthead",void 0);r$=_.X([_.l({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],r$);
_.p(r$,"ytd-media-product-renderer",function(){if(lk8!==void 0)return lk8;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return lk8=q},{mode:1});var A07;var fk6=function(){return _.N.apply(this,arguments)||this};
_.z(fk6,_.N);fk6.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
fk6.prototype.onBillboardImageLoaded=function(){_.hy(this.hostElement,"yt-refit")};
var Y0=fk6;Y0.prototype.onBillboardImageLoaded=Y0.prototype.onBillboardImageLoaded;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Y0.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Y0.prototype,"data",void 0);_.X([_.fo("#billboardImage"),_.A("design:type",Object)],Y0.prototype,"billboardImage",void 0);_.X([_.m2("yt-img-shadow-loaded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Y0.prototype,"onBillboardImageLoaded",null);
Y0=_.X([_.l({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Y0);
_.p(Y0,"ytd-billboard-masthead-renderer",function(){if(A07!==void 0)return A07;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return A07=q},{mode:1});var D96;var hWu=function(){var q=_.N.apply(this,arguments)||this;q.smallSize=!1;return q};
_.z(hWu,_.N);var $0=hWu;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],$0.prototype,"ytComponentBehaviorType",void 0);_.X([_.F(),_.A("design:type",Object)],$0.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],$0.prototype,"smallSize",void 0);$0=_.X([_.l({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],$0);
_.p($0,"ytd-bullet-formatted-string",function(){if(D96!==void 0)return D96;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return D96=q},{mode:1});var y0D;var izF=function(){return _.N.apply(this,arguments)||this};
_.z(izF,_.N);izF.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
var eP=izF;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],eP.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],eP.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],eP.prototype,"data",void 0);eP=_.X([_.l({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],eP);
_.p(eP,"ytd-offer-detail-renderer",function(){if(y0D!==void 0)return y0D;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return y0D=q},{mode:1});var gOq;var q8q=function(){return _.N.apply(this,arguments)||this};
_.z(q8q,_.N);q8q.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"}}}};
var CE=q8q;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],CE.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],CE.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],CE.prototype,"data",void 0);CE=_.X([_.l({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],CE);
_.p(CE,"ytd-offer-detail-step-renderer",function(){if(gOq!==void 0)return gOq;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return gOq=q},{mode:1});var ZoD;var wPl=function(){var q=_.N.apply(this,arguments)||this;q.isInOfferModule=!1;return q};
_.z(wPl,_.N);_.e=wPl.prototype;_.e.computeHasEndpoint=function(){var q;return!((q=this.data)==null||!q.onClickCommand)};
_.e.dataChanged=function(){var q;if((q=this.data)==null?0:q.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")};
_.e.detached=function(){var q;if((q=this.data)==null?0:q.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.e.handleClickEvent=function(){var q;if((q=this.data)==null?0:q.onClickCommand){var Z;this.componentBehavior.resolveCommand((Z=this.data)==null?void 0:Z.onClickCommand)}};
_.e.onContentKeyDown=function(q){q.key==="Enter"?this.handleClickEvent(q):q.key===" "&&q.preventDefault()};
_.e.onContentKeyUp=function(q){q.key===" "&&this.handleClickEvent(q)};
var Pn=wPl;Pn.prototype.dataChanged=Pn.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Pn.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Pn.prototype,"data",void 0);_.X([_.F({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Pn.prototype,"hasEndpoint",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Pn.prototype,"isInOfferModule",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pn.prototype,"dataChanged",null);Pn=_.X([_.l({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Pn);
_.p(Pn,"ytd-channel-masthead-renderer",function(){if(ZoD!==void 0)return ZoD;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ZoD=q},{mode:1});var rry;var Y88=function(){var q=_.N.apply(this,arguments)||this;q.thumbnailObjectFit="CONTAIN";q.thumbnailObjectPosition="LEFT";q.isExpanded=!1;return q};
_.z(Y88,_.N);_.e=Y88.prototype;_.e.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.e.dataChanged=function(){this.resetStates()};
_.e.computeisTapOnOfferInfoContainerEnabled=function(){var q;return((q=this.data)==null?void 0:q.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.e.onExpandBtnClick=function(){var q,Z=_.J((q=this.data)==null?void 0:q.showMoreButtonRenderer,d9l);Z&&_.hA(_.iy(),Z.trackingParams);this.isExpanded=!this.isExpanded};
_.e.onOfferInfoClick=function(q){this.isTapOnOfferInfoContainerEnabled&&(_.E1(_.E8(q)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.xB(_.E8(q)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.e.onBottomBarClick=function(){this.executeTapCommand()};
_.e.executeTapCommand=function(){var q,Z=(q=this.data)==null?void 0:q.tapCommand;Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.e.resetStates=function(){this.isExpanded=!1};
_.My.Object.defineProperties(Y88.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var q=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),Z,w,r;return((Z=this.data)==null?void 0:Z.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&q&&!!((w=this.data)==null?0:(r=w.benefits)==null?0:r.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return((Z=_.J((q=this.data)==null?void 0:q.showMoreButtonRenderer,d9l))==null?void 0:Z.showMoreButtonTitle)||((w=this.data)==null?void 0:w.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return((Z=_.J((q=this.data)==null?void 0:q.showMoreButtonRenderer,d9l))==null?void 0:Z.showLessButtonTitle)||((w=this.data)==null?void 0:w.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var q;return(q=this.showLessButtonTitle)!=null?q:""}var Z;return(Z=this.showMoreButtonTitle)!=null?Z:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return((q=this.data)==null?void 0:q.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((Z=this.data)==null?0:Z.footerTitle)||((w=this.data)==null?0:w.footerSubtitle))}}});
var d$=Y88;d$.prototype.dataChanged=d$.prototype.dataChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],d$.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],d$.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",String)],d$.prototype,"thumbnailObjectFit",void 0);
_.X([_.F(),_.A("design:type",String)],d$.prototype,"thumbnailObjectPosition",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.A("design:type",Boolean)],d$.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.X([_.F(),_.A("design:type",Object)],d$.prototype,"isExpanded",void 0);_.X([_.F(),_.A("design:type",Object)],d$.prototype,"data",void 0);_.X([_.F({computed:"computeIcon_(data.footerIcon)"}),_.A("design:type",String)],d$.prototype,"icon",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],d$.prototype,"dataChanged",null);_.X([_.I("data.thumbnail"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],d$.prototype,"hasThumbnail",null);_.X([_.I("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],d$.prototype,"enableExpandButton",null);
_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],d$.prototype,"enableOfferContentIcon",null);_.X([_.I("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.A("design:type",Object),_.A("design:paramtypes",[])],d$.prototype,"showMoreButtonTitle",null);_.X([_.I("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.A("design:type",Object),_.A("design:paramtypes",[])],d$.prototype,"showLessButtonTitle",null);
_.X([_.I("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.A("design:type",String),_.A("design:paramtypes",[])],d$.prototype,"expandedBtnText",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],d$.prototype,"enableBottomBar",null);d$=_.X([_.l({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],d$);
_.p(d$,"ytd-offer-card-renderer",function(){if(rry!==void 0)return rry;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return rry=q},{mode:1});var $ZZ;var ey7=function(){return _.N.apply(this,arguments)||this};
_.z(ey7,_.N);ey7.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"}}}};
ey7.prototype.onClick=function(q){if(!_.E1(q.composedPath()||[],this.hostElement,["A".toString()])){var Z,w;if((q=(w=_.J((Z=this.data)==null?void 0:Z.actionButton,_.tA))==null?void 0:w.command)&&!this.ytComponentBehavior.resolveCommand(q)){var r;(r=_.iy())==null||r.clickCommand(q);_.b("web_ytd_offer_content_renderer_command_resolver_ks")?_.qM(this.hostElement,[q]):_.t().resolve(_.ps).resolveCommand(q,{form:{element:this.hostElement}})}}};
var VJ=ey7;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],VJ.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],VJ.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],VJ.prototype,"data",void 0);VJ=_.X([_.l({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],VJ);
_.p(VJ,"ytd-offer-content-renderer",function(){if($ZZ!==void 0)return $ZZ;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return $ZZ=q},{mode:1});var CqD;var PqD=function(){return _.N.apply(this,arguments)||this};
_.z(PqD,_.N);PqD.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.My.Object.defineProperties(PqD.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!((q=this.data)==null||!q.title)||!((Z=this.data)==null||!Z.description)}}});
var Od=PqD;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Od.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Od.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Od.prototype,"data",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Od.prototype,"hasHeaderData",null);Od=_.X([_.l({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Od);
_.p(Od,"ytd-offer-section-renderer",function(){if(CqD!==void 0)return CqD;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return CqD=q},{mode:1});var dZl;var VaC=function(){return _.N.apply(this,arguments)||this};
_.z(VaC,_.N);
VaC.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"}}}}};
var Hn=VaC;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Hn.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Hn.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Hn.prototype,"data",void 0);Hn=_.X([_.l({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Hn);
_.p(Hn,"ytd-offer-selection-step-renderer",function(){if(dZl!==void 0)return dZl;var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return dZl=q},{mode:1});var Ooq;var HoF=function(){return _.N.apply(this,arguments)||this};
_.z(HoF,_.N);HoF.prototype.computeStyle=function(q){return q};
HoF.prototype.computeImageWidth=function(q){return q==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
var Wn=HoF;_.X([_.F({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.A("design:type",String)],Wn.prototype,"containerStyle",void 0);_.X([_.F({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.A("design:type",String)],Wn.prototype,"imageWidth",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Wn.prototype,"ytRendererBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],Wn.prototype,"data",void 0);Wn=_.X([_.l({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Wn);
_.p(Wn,"ytd-confirmation-masthead-renderer",function(){if(Ooq!==void 0)return Ooq;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Ooq=q},{mode:1});var W26;var ozZ=function(){return _.N.apply(this,arguments)||this};
_.z(ozZ,_.N);ozZ.prototype.computeStyle=function(q){return q};
var od=ozZ;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],od.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],od.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.A("design:type",String)],od.prototype,"containerStyle",void 0);od=_.X([_.l({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],od);
_.p(od,"ytd-purchase-complete-detail-renderer",function(){if(W26!==void 0)return W26;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return W26=q},{mode:1});var uNu;var uj=function(){var q=_.N.apply(this,arguments)||this;q.scriptsAppended=!1;return q};
_.z(uj,_.N);uj.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"}}}};
uj.prototype.onDataChanged=function(){var q=this.get("data.gtmId");q&&(_.Yb(q,_.zj("GL","")),this.setupConversionTracking())};
uj.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var q=document.createElement("noscript");q.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(q);this.scriptsAppended=!0}};
var LE=uj;LE.prototype.onDataChanged=LE.prototype.onDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],LE.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],LE.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],LE.prototype,"scriptsAppended",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LE.prototype,"onDataChanged",null);LE=_.X([_.l({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],LE);
_.p(LE,"ytd-purchase-complete-step-renderer",function(){if(uNu!==void 0)return uNu;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return uNu=q},{mode:1});var L2Z;var S8S=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");return q};
_.z(S8S,_.N);S8S.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var SP=S8S;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],SP.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],SP.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],SP.prototype,"darkerDarkTheme",void 0);SP=_.X([_.l({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],SP);
_.p(SP,"ytd-ypc-transaction-error-message-renderer",function(){if(L2Z!==void 0)return L2Z;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return L2Z=q},{mode:1});var vzC;var jJy;var vn=function(){var q=_.N.apply(this,arguments)||this;q.handlePhoneVerificationSuccess=function(Z){if(q.isValidPhoneVerificationCompletionMessageEvent(Z)){var w;((w=q.data)==null?0:w.nextStepCommand)&&q.ytComponentBehavior.resolveCommand(q.data.nextStepCommand)}};
return q};
_.z(vn,_.N);vn.prototype.isValidPhoneVerificationCompletionMessageEvent=function(q){if(q.data!=="yt-phone-verification-complete")return!1;q=_.MR(q.origin);return q!==null&&q.includes("youtube.com")};
vn.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
vn.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
var jP=vn;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],jP.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],jP.prototype,"data",void 0);jP=_.X([_.dx({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],jP);
_.p(jP,"yt-feature-enablement-soft-entry-renderer",function(){if(jJy===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;vzC===void 0&&(vzC=document.createElement("template"));var r=vzC;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);jJy=q}q=jJy;return q},{mode:1});var taq;var Ryc;var boD;var Jr6;var zyl=function(){return _.N.apply(this,arguments)||this};
_.z(zyl,_.N);var B3C=zyl;_.X([_.F(),_.A("design:type",Object)],B3C.prototype,"data",void 0);B3C=_.X([_.dx({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],B3C);
_.p(B3C,"yt-benefits-item-renderer",function(){if(Jr6===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;boD===void 0&&(boD=document.createElement("template"));var r=boD;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Jr6=q}q=Jr6;return q},{mode:2});var a5b;var nzu;var QJ6=function(){return _.N.apply(this,arguments)||this};
_.z(QJ6,_.N);QJ6.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
QJ6.prototype.computeisWithoutPadding=function(){var q;return((q=this.data)==null?void 0:q.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
var th=QJ6;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],th.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.A("design:type",Boolean)],th.prototype,"isWithoutPadding",void 0);th=_.X([_.dx({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],th);
_.p(th,"yt-benefits-section-renderer",function(){if(nzu===void 0){var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;a5b===void 0&&(a5b=document.createElement("template"));var r=a5b;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);nzu=q}q=nzu;return q},{mode:2});var Ezc=function(){return _.N.apply(this,arguments)||this};
_.z(Ezc,_.N);Ezc.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Ezc.prototype.computeisUsingLargeWidth=function(){var q;return((q=this.data)==null?void 0:q.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
var Rd=Ezc;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Rd.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Rd.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.A("design:type",Boolean)],Rd.prototype,"isUsingLargeWidth",void 0);Rd=_.X([_.dx({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],Rd);
_.p(Rd,"yt-benefits-flow-step-renderer",function(){if(Ryc===void 0){var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;taq===void 0&&(taq=document.createElement("template"));var r=taq;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Ryc=q}q=Ryc;return q},{mode:2});var xZ7;var T3D;var UZq=function(){return _.N.apply(this,arguments)||this};
_.z(UZq,_.N);UZq.prototype.checkIsUsingLargeWidth=function(){var q;return((q=this.data)==null?void 0:q.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
var bj=UZq;_.X([_.F(),_.A("design:type",Object)],bj.prototype,"data",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.X([_.F({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.A("design:type",Boolean)],bj.prototype,"isUsingLargeWidth",void 0);bj=_.X([_.dx({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],bj);
_.p(bj,"yt-confirmation-flow-step-renderer",function(){if(T3D===void 0){var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;xZ7===void 0&&(xZ7=document.createElement("template"));var r=xZ7;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);T3D=q}q=T3D;return q},{mode:2});var kIl;var K2V;var sJD=function(){return _.N.apply(this,arguments)||this};
_.z(sJD,_.N);var I58=sJD;_.X([_.F(),_.A("design:type",Object)],I58.prototype,"data",void 0);I58=_.X([_.dx({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],I58);
_.p(I58,"yt-info-flow-step-renderer",function(){if(K2V===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;kIl===void 0&&(kIl=document.createElement("template"));var r=kIl;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);K2V=q}q=K2V;return q},{mode:2});var crD;var Ma6;var F2y=function(){return _.N.apply(this,arguments)||this};
_.z(F2y,_.N);var N3q=F2y;_.X([_.F(),_.A("design:type",Object)],N3q.prototype,"data",void 0);N3q=_.X([_.dx({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],N3q);
_.p(N3q,"yt-info-list-flow-step-renderer",function(){if(Ma6===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;crD===void 0&&(crD=document.createElement("template"));var r=crD;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Ma6=q}q=Ma6;return q},{mode:2});var l5V=_.xl(function(q){var Z=q.data;return _.u("styled-text-view-model",{class:_.GL("ytStyledTextViewModelHost",function(){return ajZ(Z().fontAttributes)},function(){return B07(Z().color)})},_.u(_.r6,{text:function(){return Z().text},
ariaLabel:function(){var w,r,Y;return(Y=(w=Z().accessibility)==null?void 0:(r=w.accessibilityData)==null?void 0:r.label)!=null?Y:""}}))},"ue");
l5V.idomCompat=!0;var GIq=_.xl(function(q){var Z=function(){var Y,C,d,O;return(O=(d=(Y=q.alt)==null?void 0:Y.call(q))!=null?d:(C=q.data().accessibilityData)==null?void 0:C.label)!=null?O:""},w=function(){return q.data().imageWidth},r=function(){return q.data().imageHeight};
return _.u("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.u(_.PF,{cond:function(){var Y=q.data();if(Y){var C,d,O;var H=((C=_.t().resolve(_.Gj(_.RQ)))==null?0:C())?(d=Y.imageDark)!=null?d:Y.imageLight:(O=Y.imageLight)!=null?O:Y.imageDark}else H=void 0;return H},
then:function(Y){return _.u(_.aQ,Object.assign({},q,{data:Y,alt:Z,targetWidth:w,targetHeight:r,preserveHeight:!0,preserveWidth:!0}))}}))},"ve");
GIq.idomCompat=!0;var Jh=_.xl(function(q){var Z=q.data;q=_.aA(function(){return Z().slots},[]);
var w=_.aA(function(){return Z().layoutProperties},{}),r=_.t().resolve(_.JE);
return _.u("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:tsZ(w,r)},_.u(_.dA,{each:q,keyBy:"INDEX"},function(Y){return _.u("div",{class:"ytContainerLayoutViewModelSlot",style:tsZ(function(){return Y().layoutProperties},r)},_.u(_.Hx,{data:function(){return Y().contents}},{containerLayoutViewModel:Jh,
badgeViewModel:_.hO,buttonViewModel:_.vx,styledTextViewModel:l5V,contentPreviewImageViewModel:function(C){return _.u(_.yS,{data:C.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(C){return _.u(GIq,{data:C.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"we");
Jh.idomCompat=!0;var pP7=_.xl(function(q){var Z=q.data;var w=q.stateFns;var r=function(){var L=Z(),S=L.productId;return!(!L.clearGroupId&&!S)},Y=function(){var L=Z(),S=L.clearGroupId;
return(L=L.productId)?w().isProductSelected(L):S?w().getSelectedProductByGroupId(S)==null:!1},C=function(){var L=Z(),S=L.clearGroupId;
if(L=L.productId)w().onProductSelected(L);else if(S)w().onClearGroupSelected(S)},d=function(){var L=Z(),S=L.clearGroupId;
if(L=L.productId){var v;return"group:"+(((v=w().getProductById(L))==null?void 0:v.groupId)||"")}return S?"group:"+S:""},O=_.aA(function(){return Z().header},[]),H=_.aA(function(){return Z().body},[]);
return _.u("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.u(_.PF,{cond:function(){return O().length>0||r()},
then:function(){return _.u("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.u("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.u(_.Hx,{data:O},{containerLayoutViewModel:function(L){return _.u("div",{class:"ytPdpCardSectionViewModelContentItem"},_.u(Jh,{data:L.data}))},
styledTextViewModel:function(L){return _.u("div",{class:"ytPdpCardSectionViewModelContentItem"},_.u(l5V,{data:L.data}))}})),_.u(_.PF,{cond:r,
then:function(){return _.u("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.u(_.NQK,{checked:Y,name:d,onChange:C}))}}))}}),_.u(_.PF,{cond:function(){return H().length>0},
then:function(){return _.u("div",null,_.u(_.Hx,{data:H},{containerLayoutViewModel:function(L){return _.u("div",{class:"ytPdpCardSectionViewModelContentItem"},_.u(Jh,{data:L.data}))}}))}}))},"xe");
pP7.idomCompat=!0;var XPc=_.xl(function(q){var Z=q.data;var w=q.stateFns;return _.u("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.u(_.PF,{cond:function(){return Z().banner},
then:function(r){return _.u("div",{class:"ytPdpCardViewModelBanner"},_.u(_.r6,{text:r}))}}),_.u(_.Hx,{data:function(){return Z().sections}},{pdpCardSectionViewModel:function(r){r=r.data;
var Y={};return _.u("div",{class:_.GL("ytPdpCardViewModelSectionContainer",(Y.ytPdpCardViewModelShowDividers=function(){return Z().showDividers},Y))},_.u(pP7,{data:r,
stateFns:w}))}}))},"ye");
XPc.idomCompat=!0;var mZu=_.xl(function(q){var Z=q.data;var w=q.isOverlay;q={};return _.u("pdp-masthead-view-model",{class:_.GL("ytPdpMastheadViewModelHost",(q.ytPdpMastheadViewModelIsOverlay=w,q))},_.u(_.Hx,{data:function(){return Z().image}},{contentPreviewImageViewModel:_.yS,
themedImageViewModel:function(r){return _.u(GIq,{data:r.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.u(_.PF,{cond:function(){return Z().title},
then:function(r){return _.u("h1",{class:"ytPdpMastheadViewModelHeading"},_.u(_.r6,{text:r,isOverlay:w}))}}),_.u(_.dA,{each:function(){var r;
return(r=Z().finePrint)!=null?r:[]}},function(r){return _.u("div",{class:"ytPdpMastheadViewModelFinePrint"},_.u(_.r6,{text:r,
isOverlay:w}))}))},"ze");
mZu.idomCompat=!0;var Aru=_.xl(function(q){var Z=q.data;var w=q.stateFns;return _.u("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.u(_.dA,{each:function(){var r=w().getSelectedPricingOptions().map(function(C){return C.pricingOptionId}),Y=w().getSelectedProductByGroupId(_.Ep(Z().groupId));
return Y?Y.pricingOptions.map(function(C){return{pricingOption:C,isSelected:r.includes(C.pricingOptionId)}}):(_.Rw(Error("Gj`"+_.Ep(Z().groupId))),[])},
keyBy:"INDEX"},function(r){return _.u("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.u("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.u(_.Hx,{data:function(){return r().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:Jh})),_.u("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.u(_.NQK,{checked:function(){return r().isSelected},
onClick:function(){w().onPricingOptionSelected(r().pricingOption.pricingOptionId);var Y=r().pricingOption.onSelectPricingOption;if(Y=_.oQ(Y)){var C;(C=_.t().resolve(_.ps))==null||C.resolveCommand(Y)}}})))}))},"Ae");
Aru.idomCompat=!0;var f5C=_.xl(function(q){var Z=q.data;var w=q.stateFns;return _.u("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.u(_.Hx,{data:function(){var r,Y;return(Y=(r=w().getSelectedPricingOptions()[0])==null?void 0:r.primaryButton)!=null?Y:Z().emptyStateButton}},{buttonViewModel:_.vx}))},"Be");
f5C.idomCompat=!0;var DZq=_.xl(function(q){var Z=q.stateFns;return _.u("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.u(_.Hx,{data:function(){return Z().getSelectedPricingOptions().flatMap(function(w){return w.summaryLines}).filter(function(w){return!!w})}},{containerLayoutViewModel:function(w){return _.u("div",{class:"ytPdpSummaryViewModelLineItem"},_.u(Jh,{data:w.data}))}}))},"Ce");
DZq.idomCompat=!0;var hyc=_.xl(function(q){var Z=q.data;q={};return _.u("divider-view-model",{class:_.GL("divider-view-model-wiz",(q["divider-view-model-wiz__inset-thin-padding"]=function(){return Z().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},q))},_.u("div",{class:_.GL("divider-view-model-wiz__base-divider",function(){return Ijc(Z().dividerStyle)}),
style:_.y1({"background-color":function(){return Z().backgroundColor?_.oJ(Z().backgroundColor):void 0}})}))},"De");
hyc.idomCompat=!0;var yrD=_.xl(function(q){function Z(K){var k=d();_.Bp(_.LV("pdpStateEntity",k,{key:k,selectedPricingOptions:K}))}
var w=q.data;var r=q.internalScrolling;var Y=q.stateFnsForTesting;var C=_.aA(function(){return w().allProducts},[]),d=_.aA(function(){return w().pdpStateEntityKey},""),O=_.g6(nQ6,d),H=_.$6(function(){_.jG(!0);
var K;return(K=Y==null?void 0:Y())!=null?K:ssq(O,C,Z)},void 0,"POBqwe"),L=_.aA(function(){return w().body},[]),S=_.aA(function(){return w().columnBreakHints},[]),v=function(){return w().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},R=function(){return v()||w().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},B=_.$6(function(){var K=_.lo(w().background),k;
if(K==null?0:(k=K.sources)==null?0:k.length){var G=G===void 0?!0:G;K=_.u3N(void 0,K.sources,void 0,G,G?1E3:void 0,G?void 0:1E3)}else K=null;return K},void 0,"BkCmEd");
q=_.y1({"--pdp-view-model-background":function(){return B()?"url("+B()+")":void 0}});
var n={};r=_.GL("ytPdpViewModelHost",(n.ytPdpViewModelHasBackground=function(){return R()||!!B()},n.ytPdpViewModelHasDarkBackground=R,n.ytPdpViewModelHasScrim=v,n.ytPdpViewModelInternalScrolling=_.aA(r,!1),n));
var x=function(K){var k={};return _.GL("ytPdpViewModelItem",(k.ytPdpViewModelFullBleed=function(){return _.dm9(K())==="dividerViewModel"||_.dm9(K())==="sectionHeaderViewModel"},k.ytPdpViewModelNoVerticalPadding=function(){return _.dm9(K())==="sectionHeaderViewModel"},k))};
_.Ls(function(){var K=w().onStartCommand;if(K&&(K=_.oQ(K))){var k;(k=_.t().resolve(_.ps))==null||k.resolveCommand(K)}});
return _.u("pdp-view-model",{class:r,style:q},_.u("div",{class:"ytPdpViewModelColumnContainer"},_.u(_.dA,{each:function(){return cyy(L(),S())},
keyBy:"INDEX"},function(K){return _.u("div",{class:"ytPdpViewModelColumn"},_.u(_.Hx,{data:K},{containerLayoutViewModel:function(k,G){k=k.data;return _.u("div",{class:x(function(){return K()[G()]})},_.u(Jh,{data:k}))},
dividerViewModel:function(k,G){k=k.data;return _.u("div",{class:x(function(){return K()[G()]})},_.u(hyc,{data:k}))},
pdpCardViewModel:function(k,G){k=k.data;return _.u("div",{class:x(function(){return K()[G()]})},_.u(XPc,{data:k,
stateFns:H}))},
pdpMastheadViewModel:function(k,G){k=k.data;return _.u("div",{class:x(function(){return K()[G()]})},_.u(mZu,{data:k,
isOverlay:R}))},
pdpPricingOptionSelectorViewModel:function(k,G){k=k.data;return _.u("div",{class:x(function(){return K()[G()]})},_.u(Aru,{data:k,
stateFns:H}))},
pdpPrimaryButtonViewModel:function(k,G){k=k.data;return _.u("div",{class:x(function(){return K()[G()]})},_.u(f5C,{data:k,
stateFns:H}))},
pdpSummaryViewModel:function(k,G){k=k.data;return _.u("div",{class:x(function(){return K()[G()]})},_.u(DZq,{data:k,
stateFns:H}))},
sectionHeaderViewModel:function(k,G){k=k.data;return _.u("div",{class:x(function(){return K()[G()]})},_.u(_.U0,{data:k}))}}))})))},"Ee");
yrD.idomCompat=!0;_.xc(yrD,"pdp-view-model",{props:{data:_.zG,stateFnsForTesting:_.EL,internalScrolling:_.EL}});var ioZ=_.xl(function(q){var Z=q.data;var w=q.className;var r=_.g6(_.DQ,function(){return Z().flowStateEntityKey});
return _.u("ytm-premium-purchase-button-renderer",{class:_.GL("yt-premium-purchase-button-renderer",w)},_.u(_.Hx,{data:function(){var Y;return(Y=_.J(r(),Gm))==null?void 0:Y.primaryButtonOverride}},{buttonRenderer:function(Y){return _.u(_.Mh,{data:Y.data,
className:w})},
buttonViewModel:function(Y){return _.u(_.vx,{data:Y.data,className:w})}}))},"Fe");
ioZ.idomCompat=!0;var gzZ=_.xl(function(q){var Z=q.data;var w=function(){return Msq(Z().style)},r=_.GL("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",w),Y=_.GL("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",w);
return _.u("yt-flow-bottom-bar-renderer",{class:_.GL("yt-flow-bottom-bar-renderer",q.className,w)},_.u(_.Hx,{data:function(){return Z().secondaryButton}},{buttonRenderer:function(C){return _.u(_.Mh,{data:C.data,
className:Y})},
buttonViewModel:function(C){return _.u(_.vx,{data:C.data,className:Y})},
premiumPurchaseButtonRenderer:function(C){return _.u(ioZ,{data:C.data,className:Y})}}),_.u(_.Hx,{data:function(){return Z().primaryButton}},{buttonRenderer:function(C){return _.u(_.Mh,{data:C.data,
className:r})},
buttonViewModel:function(C){return _.u(_.vx,{data:C.data,className:r})},
premiumPurchaseButtonRenderer:function(C){return _.u(ioZ,{data:C.data,className:r})}}))},"Ge");
gzZ.idomCompat=!0;_.xc(gzZ,"yt-flow-bottom-bar-renderer",{props:{data:_.zG,className:_.zG}});var qDF=_.xl(function(q){return _.u("yt-offer-summary-renderer",{class:_.GL(q.className,"ytOfferSummaryRendererHost")},_.u("div",{class:"ytOfferSummaryRendererTextContainer"},_.u("div",{class:"ytOfferSummaryRendererEyebrowText"},_.u(_.r6,{text:function(){return q.data().eyebrowText}})),_.u("div",{class:"ytOfferSummaryRendererTitle"},_.u(_.r6,{text:function(){return q.data().title}})),_.u("div",{class:"ytOfferSummaryRendererSubtitle"},_.u(_.r6,{text:function(){return q.data().subtitle}})),_.u("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.u(_.dA,{each:function(){var Z;
return(Z=q.data().featureListData)!=null?Z:[]}},function(Z){var w;
return _.u("div",{class:"ytOfferSummaryRendererFeatureList"},_.u(_.q0,{icon:(w=Z.icon)==null?void 0:w.iconType,className:Z.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.u("div",{class:"ytOfferSummaryRendererFeatureListText"},_.u(_.r6,{text:Z.text})))})),_.u("div",{class:"ytOfferSummaryRendererDescription"},_.u(_.r6,{text:function(){return q.data().description}}))))},"He");_.xc(_.xl(function(q){var Z={};Z=_.GL("ytOfferSummaryFlowStepRendererHost",(Z.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=q.shouldDisableHeaderTopMargin,Z));return _.u("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:Z},_.u("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.u("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.u(_.r6,{text:function(){return q.data().header}})),_.u("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.u(_.r6,{text:function(){return q.data().subtitle}}))),_.u("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.u(_.Hx,{data:function(){return q.data().offerSummary}},{offerSummaryRenderer:function(w){return _.u(qDF,{data:w.data,
className:q.flowClassName})}})))},"Ie"),"yt-offer-summary-flow-step-renderer",{props:{data:_.EL,
flowClassName:_.EL,flowStateEntityKey:_.EL,shouldDisableHeaderTopMargin:_.EL}});var Z5q=_.xl(function(q){var Z=q.data;var w=q.className;var r=q.flowStateEntityKey;var Y=q.selectionStepStyle;q=_.fn(function(H){var L=Z(),S=r==null?void 0:r();H.target&&(H.stopPropagation(),H=S||"",S=_.DQ(_.JJ().getState(),H),L=Object.assign({},S,{premiumPurchaseFlowState:{selectedOptionId:L.optionId,primaryButtonOverride:L.primaryButtonOverride}}),_.JJ().dispatch(_.wp("flowStateEntity",H,L)));return!1});
var C=function(){return(r==null?void 0:r())||""},d=_.g6(_.DQ,C);
_.Ls(function(){var H=Z(),L=C(),S=d();!_.J(S,Gm)&&H.defaultSelected&&L!==""&&H.primaryButtonOverride&&FJ6(H.optionId||"",L,H.primaryButtonOverride,S)});
var O={};return _.u("ytm-option-item-renderer",{"on:click":q,class:_.GL(w,"ytm-option-item-renderer",(O["ytm-option-item-renderer--lp2-style"]=function(){return(Y==null?void 0:Y())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},O))},_.u("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.u("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var H=Z(),L=C(),S=d();S=_.J(S,Gm);return(S?(S==null?void 0:S.selectedOptionId)||"":H.defaultSelected&&L!==""?(H==null?void 0:H.optionId)||"":"")===Z().optionId},
name:("input"+_.b2(_.JQ)).toString()})),_.u("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.u(_.PF,{cond:function(){return Z().eyebrowText},
then:function(){return _.u("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.u(_.r6,{text:function(){return Z().eyebrowText}}))}}),_.u("div",{class:"ytm-option-item-renderer__option-item-title"},_.u(_.r6,{text:function(){return Z().title}})),_.u("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.u(_.r6,{text:function(){return Z().subtitle}})),_.u("div",{class:"ytm-option-item-renderer__option-item-description"},_.u(_.r6,{text:function(){return Z().description}}))))},
"Je");var wpl=_.xl(function(q){var Z=q.data;var w=q.flowClassName;var r=q.flowStateEntityKey;var Y=q.selectionStepStyle;return _.u("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.u("div",{class:"yt-option-section-renderer__option-section-header-section"},_.u("div",{class:"yt-option-section-renderer__option-section-header"},_.u(_.r6,{text:function(){return Z().title}}),_.u(_.Hx,{data:function(){return Z().titleBadge}},{badgeViewModel:function(C){return _.u(_.hO,
{data:C.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.u(_.PF,{cond:function(){return Z().subtitle},
then:function(){return _.u("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.u(_.r6,{text:function(){return Z().subtitle}}))}}),_.u(_.PF,{cond:function(){return Z().featureListData},
then:function(C){return _.u("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.u(_.dA,{each:C},function(d){var O;return _.u("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.u(_.q0,{icon:(O=d.icon)==null?void 0:O.iconType,className:d.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.u("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.u(_.r6,{text:d.text})))}))}}),_.u(_.dA,{each:function(){return Z().sectionDisclaimers||[]}},function(C){return _.u("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.u(_.r6,{text:C}))})),_.u(_.Hx,{data:function(){return Z().optionItems}},{optionItemRenderer:function(C){return _.u("div",{class:"yt-option-section-renderer__option-item"},_.u(Z5q,{data:C.data,
className:w,flowStateEntityKey:r,selectionStepStyle:Y}))}}),_.u(_.PF,{cond:function(){return Z().offerText},
then:function(){return _.u("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.u(_.r6,{text:function(){return Z().offerText}}))}}))},"Ke");
wpl.idomCompat=!0;var rJu=_.xl(function(q){var Z=q.data;var w=q.flowClassName;var r=q.flowStateEntityKey;q=q.isDesktop;var Y=function(){var L;return(L=Z().flowStateEntityKey)!=null?L:r==null?void 0:r()},C=function(){return(Y==null?void 0:Y())||""},d=function(){return Z().style},O=_.g6(_.DQ,C);
_.Ls(function(){var L=Z(),S=C(),v=O();!_.J(v,Gm)&&L.noPreselect&&S!==""&&L.defaultButtonOverride&&FJ6("default",S,L.defaultButtonOverride,v)});
var H={};return _.u("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.GL("ytm-option-selection-flow-step-renderer",(H["ytm-option-selection-flow-step-renderer--desktop"]=q,H["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return Z().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},H))},_.u("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"},
_.u("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.u(_.r6,{text:function(){return Z().header}})),_.u("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.u(_.r6,{text:function(){return Z().subtitle}}))),_.u(_.Hx,{data:function(){return Z().optionItems||[]}},{optionItemRenderer:function(L){return _.u("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.u(Z5q,{data:L.data,
className:w,flowStateEntityKey:Y,selectionStepStyle:d}))},
optionSectionRenderer:function(L){return _.u("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.u(wpl,{data:L.data,flowClassName:w,flowStateEntityKey:Y,selectionStepStyle:d}))}}))},"Le");
rJu.idomCompat=!0;_.xc(rJu,"yt-option-selection-flow-step-renderer",{props:{data:_.zG,flowClassName:_.zG,flowStateEntityKey:_.zG,isDesktop:_.zG}});var N0F,ljD;_.z_=_.xl(function(q){var Z=_.n5(q,{type:1,disablePadding:!1,disablePrimaryButton:!1}),w=Z.data,r=Z.type;q=Z.disablePadding;var Y=Z.disablePrimaryButton,C=Z.onClickPrimaryButton,d=function(){return w().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},O=function(){return{disabled:Y(),
state:Y()?"disabled":"active"}},H=function(){return w().leadingLabel||w().trailingLabel};
Z={};return _.u("yt-panel-footer-view-model",{class:_.GL("yt-panel-footer-view-model-wiz",(Z["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return w().shouldHideDivider},Z["yt-panel-footer-view-model-wiz--disable-padding"]=q,Z))},_.u(_.PF,{cond:H,
then:function(){var L={},S={};return _.u("div",{class:_.GL("yt-panel-footer-view-model-wiz__text-row",(L["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var v=w();return!(!v.leadingLabel&&!v.trailingLabel||!v.primaryButton&&!v.secondaryButton)},L))},_.u(_.r6,{text:function(){return w().leadingLabel},
className:_.GL((S["yt-panel-footer-view-model-wiz--text-padding"]=H,S))}),_.u(_.r6,{text:function(){return w().trailingLabel}}))}}),_.u(_.PF,{cond:d,
then:function(){var L={};return _.u("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.u("div",{class:_.GL("yt-panel-footer-view-model-wiz__primary-button",(L["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return w().secondaryButton},L))},_.u(_.Hx,{data:function(){return w().primaryButton}},{buttonViewModel:function(S){return _.u(_.vx,{data:S.data,
buttonOverrides:O,onClick:C})}})),_.u(_.Hx,{data:function(){return w().secondaryButton}},{buttonViewModel:_.vx}))}}),_.u(_.PF,{cond:function(){return!d()},
then:function(){var L={},S={},v={};return _.u("div",{class:_.GL("yt-panel-footer-view-model-wiz__button-row",(L["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===r()},L))},_.u("div",{class:_.GL("yt-panel-footer-view-model-wiz__button-row--left-button",(S["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===r()},S["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!w().secondaryButton||0===r()},S["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===r()},S))},_.u(_.Hx,{data:function(){return w().secondaryButton}},{buttonViewModel:_.vx})),_.u("div",{class:_.GL("yt-panel-footer-view-model-wiz__primary-button",(v["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===r()||1===r()},v["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===r()},v))},_.u(_.Hx,{data:function(){return w().primaryButton}},{buttonViewModel:function(R){return _.u(_.vx,{data:R.data,
buttonOverrides:O,onClick:C})}})))}}))},"Me");
_.z_.idomCompat=!0;_.YDy=_.xl(function(q){q=_.n5(q,{disablePadding:!1});var Z=q.data,w=q.disablePadding;q=_.m$F(function(){return Z().formId});
var r=q.onSubmit,Y=q.isValid,C=q.isSubmitting;return _.u("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.u(_.Hx,{data:function(){return Z().panelFooter}},{panelFooterViewModel:function(d){return _.u(_.z_,{data:d.data,
onClickPrimaryButton:function(){r()},
disablePrimaryButton:function(){return!Y()||C()},
disablePadding:w})}}))},"Ne");_.xc(_.YDy,"yt-form-footer-view-model",{props:{data:_.zG,disablePadding:_.zG}});_.xc(_.xl(function(q){return _.u("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.u("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.u(_.PF,{cond:function(){var Z;return(Z=q.data())==null?void 0:Z.image},
then:function(Z){return _.u(_.aQ,{data:Z,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.u("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.u(_.r6,{text:function(){var Z;
return(Z=q.data())==null?void 0:Z.title}})),_.u("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.u(_.r6,{text:function(){var Z;
return(Z=q.data())==null?void 0:Z.subtitle}})),_.u("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.u(_.Hx,{data:function(){var Z;
return(Z=q.data())==null?void 0:Z.viewTipsButton}},{buttonViewModel:_.vx}))))},"Oe"),"yt-contributor-zero-state-view-model",{props:{data:_.zG}});var $Tu=_.xl(function(q){var Z=_.g6(Ayy,_.aA(function(){var w;return(w=q.data())==null?void 0:w.noteFeedEntityKey},""));
return _.u("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.u(_.PF,{cond:function(){var w,r;return(w=q.data())==null?void 0:(r=w.noteData)==null?void 0:r.isPinned},
then:function(){return _.u(_.q0,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.u(_.r6,{text:function(){var w,r;
return(w=q.data())==null?void 0:(r=w.noteData)==null?void 0:r.headerText}}),_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.u(_.r6,{text:function(){var w,r;
return(w=q.data())==null?void 0:(r=w.noteData)==null?void 0:r.delimiter}})),_.u(_.r6,{text:function(){var w,r;
return(w=Z())==null?void 0:(r=w.contributorNote)==null?void 0:r.publishedTimeText}})),_.u(_.Hx,{data:function(){var w,r,Y,C=(w=q.data())==null?void 0:w.noteData;
w=(r=Z())==null?void 0:(Y=r.contributorNote)==null?void 0:Y.deleteAction;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:C.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:C.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:C.deleteDialogTitle}]},dialogMessages:[{runs:[{text:C.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:C.deleteActionText}]},command:{performCommentActionEndpoint:{action:w}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:C.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(w){return _.u(_.vx,{data:w.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.u("div",{class:"ytNoteViewModelNoteContent"},_.u(_.r6,{text:function(){var w,r;
return(w=Z())==null?void 0:(r=w.contributorNote)==null?void 0:r.text}})))},"Pe");
$Tu.idomCompat=!0;_.xc($Tu,"yt-note-view-model",{props:{data:_.zG}});var Bn=_.xl(function(q){var Z=_.n5(q,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),w=Z.label,r=Z.text,Y=Z.placeholder,C=Z.hint;q=Z.rows;var d=Z.overflowStyle,O=Z.outline,H=Z.disabled,L=Z.disableNewLines,S=Z.characterLimit,v=Z.validation,R=Z.onInput,B=_.Iw();Z=_.P(_.hE(function(){return r()}));
var n=Z.next().value,x=Z.next().value;Z=_.P(_.qo(!1,void 0,"fXvinf"));var K=Z.next().value,k=Z.next().value,G=function(){k(!0)},rz=function(){k(!1)};
_.Ls(function(){var W1=B.value,A2=d(),f9=n();A2==="expand-vertically"&&f9&&fjD(W1);B.value.addEventListener("focusin",G);B.value.addEventListener("focusout",rz)});
_.SG(function(){B.value.removeEventListener("focusin",G);B.value.removeEventListener("focusout",rz)});
var f=function(){var W1;return(W1=v())==null?void 0:W1.validate(n())},eO=function(){return S()&&!f()&&n().length>S().maxChars},g=function(){return!!f()||eO()};
Z=_.fn(function(W1){if(!W1.currentTarget)return!1;W1=W1.currentTarget;x(W1.value);d()==="expand-vertically"&&fjD(W1);R==null||R(W1.value);return!0});
var H6=_.fn(function(W1){L()&&W1.key==="Enter"&&W1.preventDefault();return!1}),nX=_.fn(function(){B.value.focus()}),Qj=function(){return Y()||w()},SO={},Te={},Ze={};
return _.u("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.u("div",{class:_.GL("ytStandardsTextareaShapeTextareaContainer",(SO.ytStandardsTextareaShapeTextareaContainerOutline=O,SO.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=H,SO.ytStandardsTextareaShapeTextareaContainerOutlineError=g,SO)),"on:click":nX},_.u("label",{class:_.GL("ytStandardsTextareaShapeLabel",(Te.ytStandardsTextareaShapeLabelFocused=K,Te.ytStandardsTextareaShapeLabelDisabled=H,Te.ytStandardsTextareaShapeLabelError=
function(){return g()&&!H()},Te.ytStandardsTextareaShapeLabelHidden=function(){return!K()&&!n()&&!!Qj()},Te))},w),_.u("div",{class:_.GL("ytStandardsTextareaShapePlaceholder",(Ze.ytStandardsTextareaShapePlaceholderVisible=function(){return!K()&&!n()},Ze)),
"aria-hidden":"true"},Qj),_.u("textarea",{el:B,class:"ytStandardsTextareaShapeTextarea",rows:q,disabled:H,placeholder:Qj,"on:input":Z,"on:keydown":H6},n)),_.u(_.PF,{cond:function(){return C()&&!g()},
then:function(){var W1={};return _.u("div",{class:_.GL("ytStandardsTextareaShapeHint",(W1.ytStandardsTextareaShapeHintDisabled=H,W1))},_.u("div",{class:"ytStandardsTextareaShapeHintHintMessage"},C))}}),_.u(_.PF,{cond:f,
then:function(){return _.u(es7,{disabled:H},_.u("div",{class:"ytStandardsTextareaShapeErrorMessage"},f))}}),_.u(_.PF,{cond:S,
then:function(W1){return _.u(_.PF,{cond:eO,then:function(){return _.u(es7,{disabled:H},_.u("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return W1().errorMessage}),_.u("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return n().length+"/"+W1().maxChars}))}})}}))},"Qe");
Bn.idomCompat={callbacks:{onInput:!0}};var es7=_.xl(function(q){var Z={};return _.u("div",{class:_.GL("ytStandardsTextareaShapeError",(Z.ytStandardsTextareaShapeErrorDisabled=q.disabled,Z)),role:"alert"},_.u(_.q0,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),q.children)},"Re");_.Cyy=_.xl(function(q){var Z=q.data;return _.u("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.u(Bn,{text:q.text,label:function(){var w;return(w=Z().contentProperties)==null?void 0:w.labelText},
placeholder:function(){var w;return(w=Z().contentProperties)==null?void 0:w.placeholderText},
hint:function(){var w;return(w=Z().contentProperties)==null?void 0:w.hintText},
outline:function(){var w;return!((w=Z().displayProperties)==null?0:w.hideBorder)},
overflowStyle:function(){var w;return((w=Z().displayProperties)==null?0:w.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:q.disabled,disableNewLines:function(){var w;return(w=Z().displayProperties)==null?void 0:w.disableNewLines},
onInput:q.onInput,characterLimit:q.characterLimit,validation:q.validation,rows:function(){var w;return(w=Z().displayProperties)==null?void 0:w.rows}}))},"Se");_.Pyq=_.xl(function(q){var Z=q.data;return _.u("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.u(Bn,{text:q.text,label:function(){var w;return(w=Z().contentProperties)==null?void 0:w.labelText},
placeholder:function(){var w;return(w=Z().contentProperties)==null?void 0:w.placeholderText},
hint:function(){var w;return(w=Z().contentProperties)==null?void 0:w.hintText},
outline:function(){var w;return!((w=Z().displayProperties)==null?0:w.hideBorder)},
overflowStyle:function(){var w;return((w=Z().displayProperties)==null?0:w.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var w;return(w=Z().displayProperties)==null?void 0:w.disableNewLines},
onInput:q.onInput,characterLimit:q.characterLimit,validation:q.validation,rows:function(){var w;return(w=Z().displayProperties)==null?void 0:w.rows}}))},"Te");var dTC=_.xl(function(q){var Z=_.P(_.hE(function(){var Qj,SO;return((Qj=q.data().structuredContextNoteFormSchema)==null?0:(SO=Qj.initialValues)==null?0:SO.noteBody)?q.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),w=Z.next().value,r=Z.next().value;
Z=_.P(_.hE(function(){q.data();return!1}));
var Y=Z.next().value,C=Z.next().value;Z=_.P(_.hE(function(){q.data();return!1}));
var d=Z.next().value,O=Z.next().value;Z=_.P(_.hE(function(){var Qj,SO;return((Qj=q.data().structuredContextNoteFormSchema)==null?0:(SO=Qj.initialValues)==null?0:SO.timestamp)?q.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var H=Z.next().value,L=Z.next().value;Z=_.P(_.hE(function(){q.data();return!1}));
var S=Z.next().value,v=Z.next().value;Z=_.P(_.hE(function(){var Qj,SO;return((Qj=q.data().structuredContextNoteFormSchema)==null?0:(SO=Qj.initialValues)==null?0:SO.sources)?[q.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var R=Z.next().value,B=Z.next().value;Z=_.P(_.hE(function(){q.data();return!1}));
var n=Z.next().value,x=Z.next().value;Z=_.P(_.hE(function(){return!1}));
var K=Z.next().value,k=Z.next().value;_.Ls(function(){var Qj;_.Xku((Qj=q.data().structuredContextNoteFormSchema)==null?void 0:Qj.id,{isSubmitting:K,onSubmit:function(){k(!0);var SO=rT7(w(),H(),R(),q.data()),Te=_.t().resolve(_.ps);SO&&Te&&Te.resolveCommand(SO,{commandController:{onSuccess:function(){k(!1)}}})},
isValid:function(){return Y()&&!d()&&!S()&&!n()}})});
var G=function(Qj){if(Qj!==void 0&&(r(Qj),!Y()&&Qj.length>0&&C(!0),Y())){var SO=yyC(q.data());if(SO){var Te=SO.minLength;SO=SO.maxLength;Te&&Qj.length<Te?O(!0):SO&&Qj.length>SO?O(!0):O(!1)}}},rz=function(Qj){if(Qj!==void 0){L(Qj);
if(Qj.length>0){var SO,Te,Ze,W1,A2=gQ6((SO=q.data())==null?void 0:(Te=SO.structuredContextNoteFormSchema)==null?void 0:(Ze=Te.fieldSchemas)==null?void 0:(W1=Ze.timestamp)==null?void 0:W1.validationSchema);if(A2&&(SO=A2.regex)&&!(new RegExp(SO)).test(Qj)){v(!0);return}}v(!1)}},f=function(Qj){if(Qj!==void 0){var SO=Qj.split(/[ \n]/).map(function(Te){return Te.trim()});
B(SO);if(Qj.length>0)for(Qj=_.P(SO),SO=Qj.next();!SO.done;SO=Qj.next())if(!wdl(SO.value)){x(!0);return}x(!1)}},eO=function(){return{validate:function(Qj){if(Y()){var SO=yyC(q.data());
if(SO){var Te=SO.minLength;SO=SO.translations;if(Te&&Qj.length<Te)return SO==null?void 0:SO.minLengthErrorMessage}}}}},g=function(){var Qj=yyC(q.data()),SO=Qj==null?void 0:Qj.maxLength,Te;
Qj=Qj==null?void 0:(Te=Qj.translations)==null?void 0:Te.maxLengthErrorMessage;if(SO&&Qj)return{maxChars:SO,errorMessage:Qj}},H6=function(){return{validate:function(Qj){if(Qj){var SO,Te,Ze,W1,A2=gQ6((SO=q.data())==null?void 0:(Te=SO.structuredContextNoteFormSchema)==null?void 0:(Ze=Te.fieldSchemas)==null?void 0:(W1=Ze.timestamp)==null?void 0:W1.validationSchema);
if(A2&&(SO=A2.regex,A2=A2.translations,SO&&!(new RegExp(SO)).test(Qj)))return A2==null?void 0:A2.regexErrorMessage}}}},nX=function(){return{validate:function(Qj){if(Qj){var SO,Te,Ze,W1,A2=ZRC((SO=q.data())==null?void 0:(Te=SO.structuredContextNoteFormSchema)==null?void 0:(Ze=Te.fieldSchemas)==null?void 0:(W1=Ze.sources)==null?void 0:W1.validationSchema);
if(A2&&(SO=A2.translations,SO==null?0:SO.selectedErrorMessage))for(Qj=Qj.split(/[ \n]/).map(function(f9){return f9.trim()}),Qj=_.P(Qj),Te=Qj.next();!Te.done;Te=Qj.next())if(!wdl(Te.value))return Qj=void 0,(Qj=SO)==null?void 0:Qj.selectedErrorMessage}}}};
return _.u("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.u("div",{class:"ytStructuredContextNoteViewModelTextField"},_.u(_.Hx,{data:function(){var Qj;return(Qj=q.data())==null?void 0:Qj.noteContents}},{textFormFieldViewModel:function(Qj){return _.u(_.Pyq,{data:Qj.data,
onInput:G,validation:eO,characterLimit:g})},
textFieldViewModel:function(Qj){return _.u(_.Cyy,{data:Qj.data,onInput:G,validation:eO,characterLimit:g})}})),_.u("div",{class:"ytStructuredContextNoteViewModelTextField"},_.u(_.Hx,{data:function(){var Qj;
return(Qj=q.data())==null?void 0:Qj.noteTimestamp}},{textFormFieldViewModel:function(Qj){return _.u(_.Pyq,{data:Qj.data,
onInput:rz,validation:H6})},
textFieldViewModel:function(Qj){return _.u(_.Cyy,{data:Qj.data,onInput:rz,validation:H6})}})),_.u("div",{class:"ytStructuredContextNoteViewModelTextField"},_.u(_.Hx,{data:function(){var Qj;
return(Qj=q.data())==null?void 0:Qj.noteSources}},{textFormFieldViewModel:function(Qj){return _.u(_.Pyq,{data:Qj.data,
onInput:f,validation:nX})},
textFieldViewModel:function(Qj){return _.u(_.Cyy,{data:Qj.data,onInput:f,validation:nX})}})))},"Ue");
dTC.idomCompat=!0;_.xc(dTC,"yt-structured-context-note-view-model",{props:{data:_.zG}});var VHC=_.xl(function(q){var Z=_.P(_.hE(function(){var C;if((C=q.controlled)==null?0:C.call(q))return[];var d;return(((d=q.data())==null?void 0:d.chips)||[]).map(function(O){O=_.J(O,_.zg);if(O==null?0:O.selected)return YhS(O.chipValue)}).filter(function(O){return O!==void 0})})),w=Z.next().value,r=Z.next().value,Y=function(C){var d=YhS(C.chipValue);
if(d!==void 0){var O;if((O=q.controlled)==null?0:O.call(q))return void q.controlled().onTap(d);C=w().includes(d)?[].concat(_.Ju(w().filter(function(L){return L!==d}))):[].concat(_.Ju(w()),[d]);
r(C);var H;if((H=q.uncontrolled)==null?0:H.call(q))q.uncontrolled().onUpdate(C)}};
return _.u("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.u(_.dA,{each:function(){return q.data().chips||[]}},function(C){return _.u("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.u(_.TQm,{data:function(){return _.J(C,_.zg)},
selected:function(){var d;if(d=_.J(C,_.zg)){var O=YhS(d.chipValue);if(O!==void 0){var H;d=((H=q.controlled)==null?0:H.call(q))?q.controlled().selectedValues.includes(O):w().includes(O)}else d=void 0}else d=!1;return d},
callback:Y}))}))},"Ve");var O5l=_.xl(function(q){var Z=q.data;var w=function(){var O;return((O=Z())==null?void 0:O.flowStateKey)||""},r=_.g6(_.DQ,w),Y=function(){var O;
return(O=_.J(r(),hAS))==null?void 0:O.chips},C=function(O){if(O!==void 0){var H=Y()||[];
H=H.find(function(L){return L===O})?H.filter(function(L){return L!==O}):[].concat(_.Ju(H),[O]);
H=Object.assign({},r(),{feedbackFormFlowState:Object.assign({},_.J(r(),hAS),{chips:H})});_.Bp(_.wp("flowStateEntity",w(),H))}},d=function(){var O;
return _.J((O=Z())==null?void 0:O.inputBox,yT8)};
q=_.VW(function(O){var H=d();H=!(H==null?0:H.maxChars)||O.length<=H.maxChars;O=Object.assign({},r(),{feedbackFormFlowState:Object.assign({},_.J(r(),hAS),{detail:O}),abuseReportFlowState:Object.assign({},_.J(r(),mk),{navigationEnabled:H})});_.Bp(_.wp("flowStateEntity",w(),O))},150);
return _.u("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.u("div",{class:"ytFeedbackFormViewModelChips"},_.u(_.Hx,{data:function(){var O;return(O=Z())==null?void 0:O.chipSelection}},{chipSelectionFormFieldViewModel:function(O){return _.u(VHC,{data:O.data,
controlled:function(){return{selectedValues:Y()||[],onTap:C}}})}})),_.u("div",{class:"ytFeedbackFormViewModelInputBox"},_.u(Bn,{text:function(){var O;
return(O=_.J(r(),hAS))==null?void 0:O.detail},
placeholder:function(){var O;return((O=d())==null?void 0:O.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var O=d();if(O&&O.maxChars)return{maxChars:O.maxChars,errorMessage:O.maxCharsExceededErrorMessage||""}},
onInput:q})),_.u("div",{class:"ytFeedbackFormViewModelFooterText"},_.u(_.r6,{text:function(){return Z().footerText}})))},"We");
O5l.idomCompat=!0;_.xc(O5l,"yt-feedback-form-view-model",{props:{data:_.zG}});var H5C=_.xl(function(q){var Z=q.data;var w=function(){return Z().flowStateKey||""},r=_.g6(qPS,w),Y=function(){return _.J(r(),mk)},C=function(){if(_.b("enable_gff_accessibility_fix")){var d=!0,O;
if((O=Y())==null?0:O.navigationEnabled){var H;_.Sp((H=Y())==null?void 0:H.navigationCommand);d=!1}O=Object.assign({},r(),{abuseReportFlowState:Object.assign({},Y(),{isReportFormDirty:d})});_.Bp(_.wp("flowStateEntity",w(),O))}else _.Sp((d=Y())==null?void 0:d.navigationCommand)};
return _.u("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.u("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.u(_.Hx,{data:function(){return Z().cancelButton}},{buttonViewModel:function(d){return _.u(_.vx,{data:d.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:C})}}),_.u(_.Hx,{data:function(){var d;
if(Z().navButton){var O=Object;var H=O.assign,L=_.J(Z().navButton,_.Wx),S=((d=Y())==null?0:d.navigationEnabled)||_.b("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",v,R;d=_.J((v=Y())==null?void 0:v.navigationCommand,_.WJ);v=(R=_.J(d,_.TF))==null?void 0:R.url;O={buttonViewModel:H.call(O,{},L,{state:S,iconName:v?"OPEN_IN_NEW":""})}}else O=void 0;return O}},{buttonViewModel:function(d){return _.u(_.vx,{data:d.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:C})}})))},"Xe");
H5C.idomCompat=!0;_.xc(H5C,"yt-report-form-bottom-bar-view-model",{props:{data:_.zG}});var Wy7=_.xl(function(q){var Z=q.nextStep;return _.u("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.u("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.u(_.q0,{icon:function(){return Z().iconName||""}})),_.u("div",null,_.u(_.r6,{text:function(){return Z().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ye"),ol6=_.xl(function(q){var Z=q.data;
var w,r=(w=_.t().resolve(_.Gj(_.RQ)))==null?void 0:w(),Y=_.g6(_.DQ,function(){return Z().flowStateKey||""});
return _.u("yt-report-form-confirmation-page-view-model",{class:function(){var C;return((C=_.J(Y(),mk))==null?void 0:C.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.u("div",{class:function(){var C;
return((C=_.J(Y(),mk))==null?void 0:C.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.u(_.aQ,{data:function(){return r&&Z().imageDark?Z().imageDark:Z().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.u("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.u("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return Z().confirmationHeader}),_.u("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.u(_.r6,{text:function(){return Z().confirmationText}})),_.u("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.u(_.r6,{text:function(){return Z().lawEnforcementText}})),
_.u("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return Z().whatToExpectHeader}),_.u(_.PF,{cond:function(){return Z().nextSteps},
then:function(C){return _.u("div",null,_.u(_.dA,{each:C},function(d){return _.u(Wy7,{nextStep:d})}))}}),_.u(_.PF,{cond:function(){return Z().legalReportText},
then:function(C){return _.u("div",null,_.u(_.r6,{text:C,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Ze");
ol6.idomCompat=!0;_.xc(ol6,"yt-report-form-confirmation-page-view-model",{props:{data:_.zG}});var ulq=_.xl(function(q){var Z=q.data;var w=function(){var C;return((C=_.J(Z().inputBox,yT8))==null?void 0:C.maxChars)||500},r=function(){return Z().flowStateKey||""},Y=_.g6(_.DQ,r);
q=_.VW(function(C){C=Object.assign({},Y(),{flowFormState:{isValid:C.length<=w()},abuseReportFlowState:{userComments:C,navigationEnabled:!(C.length>w()),isReportFormDirty:!0}});_.JJ().dispatch(_.LV("flowStateEntity",r(),C))},150);
_.Ls(function(){var C=Object.assign({},Y(),{flowFormState:{isValid:!0}});_.JJ().dispatch(_.LV("flowStateEntity",r(),C))});
return _.u("yt-report-form-details-page-view-model",{class:function(){var C;return((C=_.J(Y(),mk))==null?void 0:C.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.u("h1",{class:function(){var C;
return((C=_.J(Y(),mk))==null?void 0:C.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return Z().detailsPageHeader}),_.u("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.u(_.r6,{text:function(){return Z().bodyText}})),_.u("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.u(Bn,{label:function(){var C;
return((C=_.J(Z().inputBox,yT8))==null?void 0:C.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var C;return{errorMessage:((C=_.J(Z().inputBox,yT8))==null?void 0:C.maxCharsExceededErrorMessage)||"",maxChars:w()}},
onInput:q})))},"$e");
ulq.idomCompat=!0;_.xc(ulq,"yt-report-form-details-page-view-model",{props:{data:_.zG}});var Lyc=_.xl(function(q){var Z=q.data;var w=q.selectedKey;var r=q.onSelected;var Y=q.groupName;var C=_.u("div",{class:"ytRadioButtonItemViewModelLabel"},_.u("div",null,function(){return Z().text}),_.u("div",{class:"ytRadioButtonItemViewModelSubText"},function(){return Z().subtext}));
q={};return _.u("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost",tabindex:0},_.u(_.NQK,{name:Y,checked:function(){return!(w==null||!w()||Z().key!==(w==null?void 0:w()))},
onChange:function(d){r==null||r(d.target,Z(),Y==null?void 0:Y())},
labelRenderable:function(){return C},
ariaLabel:function(){return Z().subtext?Z().text+", "+Z().subtext:Z().text},
className:_.GL((q.ytRadioButtonItemViewModelSubTitle=function(){return!!Z().subtext},q))}))},"af");_.SDF=_.xl(function(q){var Z=q.data;var w=q.onSelected;var r=q.selectedKey;var Y=q.groupName;return _.u("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.u("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.u(_.Hx,{data:function(){return Z().radioButtons}},{radioButtonItemViewModel:function(C){var d=C.data;
return _.u(Lyc,{data:d,onSelected:w,selectedKey:r,groupName:function(){return Y!=null?Y:d().key}})}})))},"bf");var vlb=_.xl(function(q){var Z=q.data;var w=_.cO(),r=function(){return Z().flowStateKey||""},Y=_.g6(_.DQ,r),C=function(){return _.J(Y(),mk)};
_.L7(function(){var d,O;if(((d=C())==null?0:d.isReportFormDirty)&&((O=C())==null||!O.navigationEnabled)&&_.b("enable_gff_accessibility_fix")){var H;if(((H=C())==null?void 0:H.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var L;(L=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||L.scrollIntoView()}else{var S;(S=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||S.scrollIntoView()}}});
return _.u("yt-report-form-reason-select-page-view-model",{class:function(){var d;return((d=C())==null?void 0:d.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.u("h1",{class:function(){var d;
return((d=C())==null?void 0:d.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return Z().pageHeader}),_.u("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.u(_.r6,{text:function(){return Z().bodyText}})),_.u("div",{class:function(){var d;
return((d=C())==null?void 0:d.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.u(_.PF,{cond:function(){var d,O;
return((d=C())==null?void 0:d.isReportFormDirty)&&!((O=C())==null?0:O.navigationEnabled)&&_.b("enable_gff_accessibility_fix")},
then:function(){return _.u("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:w},_.u(_.q0,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.u("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return Z().emptyReasonSelectErrorMessage}))}}),_.u(_.SDF,{data:function(){return _.J(Z().radioButtonGroup,_.$97)},
onSelected:function(d,O){d=Object.assign({},Y(),{abuseReportFlowState:Object.assign({},C(),{reasonKey:O.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:O.command})});_.Bp(_.wp("flowStateEntity",r(),d))},
selectedKey:function(){var d;return(d=C())==null?void 0:d.reasonKey},
groupName:"report-form-reason-select-page"})))},"cf");
vlb.idomCompat=!0;_.xc(vlb,"yt-report-form-reason-select-page-view-model",{props:{data:_.zG}});var jAF=_.xl(function(q){var Z=q.data;var w,r=(w=_.t().resolve(_.Gj(_.RQ)))==null?void 0:w();return _.u("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.u("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.u(_.aQ,{data:function(){return r&&Z().imageDark?Z().imageDark:Z().image},
alt:""})),_.u("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.u("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return Z().header}),_.u(_.r6,{text:function(){return Z().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"df");
jAF.idomCompat=!0;_.xc(jAF,"yt-report-form-sign-in-page-view-model",{props:{data:_.zG}});_.xc(_.xl(function(q){var Z=q.data;var w=function(){var L;return(L=Z().textInputPlaceholder)==null?void 0:L.content},r=function(L){L=L.target.value.trim();
var S=Z().onUpdateText;S&&_.Sp(S,{form:{userQuery:L}});Z().userQuery=L},Y=_.VW(function(L){r(L)},150),C=_.fn(function(L){Y(L);
return!1}),d=_.fn(function(L){L.key==="Enter"&&(r(L),(L=Z().onNextStepCommand)&&_.Sp(L,{}));
return!1}),O=_.Iw(),H=function(){if(_.b("web_hide_explore_hub_until_user_navigates_back_to_home")){var L,S,v;
(v=(S=(L=O.value)==null?void 0:L.closest("ytd-flow-step-renderer"))==null?void 0:S.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||v.click()}};
return _.u("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:O},_.u("div",{class:"ytwTalkToRecsTopCornerButton"},_.u(_.Hx,{data:function(){return Z().topCornerButton}},{buttonViewModel:_.vx})),_.u("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.u("div",{class:"ytwTalkToRecsTitle"},_.u(_.r6,{text:function(){return Z().title}})),_.u("div",{class:"ytwTalkToRecsSubtitle"},_.u(_.r6,{text:function(){return Z().subtitle}})),_.u("div",{class:"ytwTalkToRecsChipsShelf"},_.u(_.Hx,{data:function(){return Z().answersShelf}},
{chipsShelfViewModel:function(L){return _.u(_.cRJ,{data:L.data,
callback:H})}})),_.u(_.PF,{cond:function(){return Z().showOpenTextInput&&!_.b("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.u("div",{class:"ytwTalkToRecsUserInputBox"},_.u("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:w,value:function(){return Z().userQuery},
"on:input":C,"on:keyup":d}))}})))},"ef"),"yt-talk-to-recs-view-model",{props:{data:_.zG}});var $Mu={sources:[{clientResource:{imageName:"CHECK"}}]};_.tHD=_.xl(function(q){var Z=_.Iw();q=_.n5(q,{error:void 0});var w=q.data,r=q.error,Y=q.onSelected;q=_.P(_.hE(function(){return PIq(w())}));
var C=q.next().value,d=q.next().value;HRb(w,function(v){d(v);var R,B,n=CIy((R=w().options)==null?void 0:(B=R[v])==null?void 0:B.value,w().type);Y==null||Y(n);Z.value.focus()});
q=_.fn(function(){if(!w().disabled){var v=w(),R=C(),B=Z.value;v.options&&(v=eAy(v.options,R,v.label),_.t().resolve(_.Ha).openSheet({viewModel:v},B))}});
var O=_.tfj(),H=function(){return!!r()},L=function(){return!!w().disabled},S={};
S=_.GL("ytDropdownViewModelDropdownContainer",(S.ytDropdownViewModelDropdownContainerErrorBorder=H,S.ytDropdownViewModelDropdownContainerDisabled=L,S));return _.u("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.u("div",{class:S,"on:click":q,el:Z,role:"combobox",tabindex:0,"on:keydown":O,"aria-invalid":H,"aria-disabled":L,"aria-describedby":function(){return H()?"dropdown-view-model-error":void 0}},_.u("div",{class:"ytDropdownViewModelText"},dMl(w,H,C),VKb(w,C)),_.u("div",{class:"ytDropdownViewModelChevronDown"},
_.u(_.q0,{icon:"CHEVRON_DOWN"}))),ORV(w,r))},"ff");_.xc(_.xl(function(q){var Z=q.data;var w=function(Y){var C=oKS(Z());C.videoMetadata||(C.videoMetadata={});C.videoMetadata.sponsorshipsMetadata||(C.videoMetadata.sponsorshipsMetadata={});C.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(Y)},r=function(Y){var C=oKS(Z());
C.scheduledRedirectMetadata||(C.scheduledRedirectMetadata={});C.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(Y)};
return _.u("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.u("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.u("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.u(_.r6,{text:function(){return Z().title}}),_.u(_.q0,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.u(_.r6,{text:function(){return Z().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.u(_.Hx,{data:function(){return Z().tierChoices}},{dropdownViewModel:function(Y){return _.u("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.u(_.tHD,{data:Y.data,
onSelected:w}))}}),_.u(_.Hx,{data:function(){return Z().startTimeChoices}},{dropdownViewModel:function(Y){return _.u("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.u(_.tHD,{data:Y.data,
onSelected:r}))}}),_.u(_.r6,{text:function(){return Z().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.u("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.u(_.Hx,{data:function(){return Z().scheduleButton}},{panelFooterViewModel:_.z_})))},"gf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.zG}});_.xc(_.xl(function(q){var Z=q.data;q=q.className===void 0?"":q.className;var w=_.g6(qPS,function(){return Z().flowStateEntityKey||""}),r={};
r=_.GL("ytFlowBottomBarViewModelFlowBottomBarButtons",(r.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},r));
var Y={},C=_.GL("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",r,(Y.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Y.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},Y));
Y={};var d=_.GL("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",r,(Y.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Y.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},Y));
r={};r=_.GL("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(r.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},r.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},r.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
r));
return _.u("yt-flow-bottom-bar-view-model",{class:_.GL("ytFlowBottomBarViewModelHost",q)},_.u(_.PF,{cond:function(){var O;return(O=Z())==null?void 0:O.textSection},
then:function(O){return _.u("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.u(_.r6,{text:O}))}}),_.u("div",{class:r},_.u(_.Hx,{data:function(){return Z().secondaryButton}},{buttonViewModel:function(O){return _.u(_.vx,{data:O.data,
className:d})}}),_.u(_.Hx,{data:function(){return Z().primaryButton}},{buttonViewModel:function(O){return _.u(_.vx,{data:O.data,
className:C,buttonOverrides:function(){var H;return{disabled:!((H=w())==null||!H.primaryButtonDisabled)}}})}})))},"hf"),"yt-flow-bottom-bar-view-model",{props:{data:_.zG,
className:_.EL}});var RsC="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),b5l=function(){var q=_.N.apply(this,arguments)||this;q.enableScrollingFix=!0;q.bottomBar=!1;q.hideBottomBar=!1;q.fitContent=!1;return q};
_.z(b5l,_.N);_.e=b5l.prototype;_.e.ready=function(){_.b("enable_pdp_icon_prefetch")&&_.DMb(_.t().resolve(_.Xt),0,RsC)};
_.e.focus=function(q){this.topBar?_.KB(this.topBar,q):this.paperDialog.focus(q)};
_.e.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16653_scroller&&(this.JSC$16653_scroller.dialogElement=this.paperDialog,this.JSC$16653_scroller.attached&&typeof this.JSC$16653_scroller.attached==="function"&&this.JSC$16653_scroller.attached())};
_.e.onDataChanged=function(){var q;this.fitContent=!((q=this.data)==null||!q.fitContent);var Z;this.bottomBar=!((Z=this.data)==null||!Z.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.e.onProgressChanged=function(){var q,Z,w=((Z=(q=this.data)==null?void 0:q.progress)!=null?Z:0)*100;this.progressElement.style.width=w+"%"};
_.e.isProgressHidden=function(){var q;return!((q=this.data)==null?0:q.progress)};
_.e.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",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(q){return _.b("enable_wiz_next_lp2_msof")&&q&&!q.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.My.Object.defineProperties(b5l.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var q;return _.b("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.J((q=this.data)==null?void 0:q.content,wXZ)}}});
var ad=b5l;ad.prototype.onProgressChanged=ad.prototype.onProgressChanged;ad.prototype.onDataChanged=ad.prototype.onDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ad.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ad.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ad.prototype,"enableScrollingFix",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ad.prototype,"bottomBar",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ad.prototype,"hideBottomBar",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ad.prototype,"containsExploreHub",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ad.prototype,"fitContent",void 0);
_.X([_.fo("#progress"),_.A("design:type",HTMLElement)],ad.prototype,"progressElement",void 0);_.X([_.fo("#scroller"),_.A("design:type",Object)],ad.prototype,"JSC$16653_scroller",void 0);_.X([_.fo("ytd-flow-top-bar-renderer"),_.A("design:type",HTMLElement)],ad.prototype,"topBar",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ad.prototype,"onDataChanged",null);
_.X([_.M("data.progress"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ad.prototype,"onProgressChanged",null);ad=_.X([_.l({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],ad);
_.p(ad,"ytd-flow-step-renderer",function(){if(KSl!==void 0)return KSl;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return KSl=q},{mode:1});var JJl=function(q){this.resolveCommand=q;this.steps={}},zsl=function(q,Z){Z=_.P(Z||[]);
for(var w=Z.next();!w.done;w=Z.next()){w=w.value;var r=Object.values(w)[0],Y=void 0;if((Y=r)==null?0:Y.stepId)q.steps[r.stepId]=w}},nll=function(q,Z){var w,r,Y,C,d;
return _.V(function(O){if((w=q.state)==null||!w.currentStepId)return O.return(void 0);r=BxV(q);if(!r)return O.return(aNy(q));if(Y=_.J(r,_.ZzS)){var H;((H=Y.screenLoggingData)==null?0:H.screenVeType)&&_.mG(_.iy(),Y.screenLoggingData.screenVeType);((C=Y)==null?0:C.onStepStartCommand)&&q.resolveCommand((d=Y)==null?void 0:d.onStepStartCommand,{})}if(Y&&Z){H=Y;var L,S,v,R;((L=Z.flowLoggingData)==null?0:L.eventNamespace)&&((S=H.flowEventData)==null?0:S.eventType)&&((v=H.flowEventData)==null?0:v.eventMetadata)&&
((R=Z.flowLoggingData)==null?0:R.flowType)&&(L=_.h0(Z.flowLoggingData.eventNamespace,H.flowEventData.eventType,H.flowEventData.eventMetadata),_.yR(_.iF(),L,Z.flowLoggingData.flowType));Z.steps&&!Z.steps.includes(r)&&Z.steps.push(r)}return O.return(r)})};
JJl.prototype.back=function(){var q;(q=this.state)!=null&&q.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
JJl.prototype.handleUpdateFlowCommand=function(q){q.steps&&zsl(this,q.steps);q.entityUpdateCommand&&this.resolveCommand(q.entityUpdateCommand,{});q.flowContinuationCommand&&(q=q.flowContinuationCommand)&&(this.getFlowContinuationCommand=q);this.awaitFlowContinuation&&(this.awaitFlowContinuation(BxV(this)),this.awaitFlowContinuation=void 0)};
JJl.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var aNy=function(q){return _.V(function(Z){return q.getFlowContinuationCommand?Z.return(new Promise(function(w){q.awaitFlowContinuation=w;q.getFlowContinuationCommand&&q.resolveCommand(q.getFlowContinuationCommand,{flow_state:q.state})})):Z.return(Promise.resolve(void 0))})},BxV=function(q){var Z;
if((Z=q.state)!=null&&Z.currentStepId)return q.steps[q.state.currentStepId]};var QAV=function(){var q=_.N.apply(this,arguments)||this;q.flowState=new JJl(function(Z,w){w=w===void 0?{}:w;_.AJ.instance.resolveCommand(Z,{form:{form:w,element:q.hostElement}})});
q.initialState=!0;q.isLoading=!1;q.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"};return q};
_.z(QAV,_.N);_.e=QAV.prototype;_.e.onPopupClosed=function(q){q&&this.hostElement!==q.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.e.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"}}}};
_.e.focus=function(q){var Z=this;_.SH(function(){var w=_.E(Z.hostElement).querySelector("ytd-flow-step-renderer");w.topBar?w.focus(q):Z.topBar&&_.KB(Z.topBar,q)},1)};
_.e.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.e.computeTopBarHidden=function(q){var Z;return!((Z=_.J(q,_.ZzS))==null||!Z.topBarOverride)};
_.e.dataChanged=function(){var q=this,Z,w;return _.V(function(r){if(r.nextAddress==1){((Z=q.data)==null?0:Z.steps)&&zsl(q.flowState,q.data.steps);if((w=q.data)==null?0:w.flowContinuationCommand){var Y=q.flowState,C=q.data.flowContinuationCommand;C&&(Y.getFlowContinuationCommand=C)}return _.W(r,nll(q.flowState,q.data),2)}q.currentFlowStep=r.yieldResult;_.ub(r)})};
_.e.flowChanged=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1){if(!q.flow)return w.return();q.flowState.state=q.flow;q.isLoading=!0;return _.W(w,nll(q.flowState,q.data),2)}Z=w.yieldResult;if(!Z||q.flow.isLoading)return w.return();q.currentFlowStep=Z;q.initialState=!1;q.isLoading=!1;q.autofocusAndRefit();_.ub(w)})};
_.e.autofocusAndRefit=function(){var q=this,Z=_.t().resolve(_.Gj(_.er)),w=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),r=document.querySelector("yt-report-form-confirmation-page-view-model"),Y=document.querySelector("yt-report-form-details-page-view-model"),C=document.querySelector("yt-report-form-reason-select-page-view-model"),d=document.querySelector("yt-contributor-zero-state-view-model"),
O=document.querySelector("yt-structured-context-note-view-model"),H=document.querySelector("yt-note-view-model");(!w&&Z&&Z.isKeyBoardInUse()||r||!w&&Y||!w&&C||d||O||H)&&_.sG(this.hostElement);_.I_(this,function(){_.hy(q.hostElement,"yt-refit")})};
_.e.handleUpdateFlowCommand=function(q){this.data&&(q=_.J(q,qEC),q.targetId===this.data.targetId&&(q.flowContinuationCommand&&(this.data.flowContinuationCommand=q.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(q),this.autofocusAndRefit()))};
_.e.handleFlowNextStepCommand=function(q){this.data&&this.flow&&this.flow.key&&(q=_.J(q,iRy),q.targetId===this.data.targetId&&(q=q.stepId||"",this.ytdReduxBehavior.dispatch(_.LV("flowStateEntity",this.flow.key,{currentStepId:q,stepIdStack:(this.flow.stepIdStack||[]).concat(q)}))))};
_.e.handleFlowPrevStepCommand=function(q){if(this.data&&this.flow&&this.flow.key&&(q=_.J(q,gKl),q.targetId===this.data.targetId)){var Z=[].concat(_.Ju(this.flow.stepIdStack||[]));Z.length>1?(Z.pop(),this.ytdReduxBehavior.dispatch(_.LV("flowStateEntity",this.flow.key,{currentStepId:Z[Z.length-1],stepIdStack:Z}))):q.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(q.onFirstStepCommand)}};
_.e.handleYpcCancelRecurrenceCommand=function(q){if(this.data&&this.flow&&this.flow.key&&(q=_.J(q,eW6),q.targetId===this.data.targetId&&q.endpointCommand)){var Z=_.J(this.flow,CFy);Z&&_.J(q.endpointCommand,_.nbX)&&(_.J(q.endpointCommand,_.nbX).feedbackData=Z.surveyFeedback);this.ytComponentBehavior.resolveCommand(q.endpointCommand)}};
_.e.handlePartialUpdateFlowStateEntity=function(q){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.LV("flowStateEntity",this.flow.key,q,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
var nE=QAV;nE.prototype.flowChanged=nE.prototype.flowChanged;nE.prototype.dataChanged=nE.prototype.dataChanged;nE.prototype.onPopupClosed=nE.prototype.onPopupClosed;_.X([_.U(_.LO),_.A("design:type",Object)],nE.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],nE.prototype,"ytComponentBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],nE.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],nE.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],nE.prototype,"initialState",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],nE.prototype,"isLoading",void 0);_.X([_.F(),_.A("design:type",Object)],nE.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],nE.prototype,"currentFlowStep",void 0);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],nE.prototype,"onPopupClosed",null);_.X([_.F({selectorArgs:["data.flowStateEntityKey"],selector:qPS}),_.A("design:type",Object)],nE.prototype,"flow",void 0);_.X([_.fo("ytd-flow-top-bar-renderer"),_.A("design:type",HTMLElement)],nE.prototype,"topBar",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],nE.prototype,"dataChanged",null);_.X([_.g3("flow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],nE.prototype,"flowChanged",null);nE=_.X([_.l({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],nE);
_.Elc=_.Fl()(nE,"ytd-flow-root-renderer",function(){if(k9c!==void 0)return k9c;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return k9c=q},{mode:_.NT("kevlar_poly_si_batch_j025")?1:2});var xTb;var pW=null;_.xc(_.xl(function(q){return _.u("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.u("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.u(_.r6,{text:function(){return q.data().text}}),_.u("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"jf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.zG}});var Txl=_.xl(function(q){var Z=q.playerControlsProps;var w=q.isShortsPage;return _.u("yt-bigboard",null,_.u(_.PF,{cond:function(){return Z().isDragging},
then:function(){return _.u("div",{class:"ytBigboardStoryboardHost"},_.u(_.Q$8,{progressBarProps:Z,isShortsPage:w}))}}))},"kf");
Txl.idomCompat=!0;_.QJ={ACCOUNT_LABEL:Xo("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:Xo("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:Xo("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:Xo("AD_BADGE_HINT"),AD_BADGE_TEXT:Xo("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:Xo("ALL_CHANNELS_LABEL"),AMBIENT_MODE:Xo("AMBIENT_MODE"),AMBIENT_MODE_OFF:Xo("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:Xo("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:Xo("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:Xo("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:Xo("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:Xo("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:Xo("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:Xo("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:Xo("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:Xo("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:Xo("AUTOPLAY_UP_NEXT_IN"),BACK:Xo("BACK"),CANCEL:Xo("CANCEL"),CHANNEL_SWITCHER_LABEL:Xo("CHANNEL_SWITCHER_LABEL"),CLOSE:Xo("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:Xo("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:Xo("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:Xo("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:Xo("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:Xo("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:Xo("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:Xo("COMMENT_MODAL_CONTENT"),CONFIRM_OK:Xo("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:Xo("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:Xo("COPIED_TO_CLIPBOARD"),COPY:Xo("COPY"),COPY_DEBUG_INFO:Xo("COPY_DEBUG_INFO"),COPY_EMBED_CODE:Xo("COPY_EMBED_CODE"),COPY_LINK_LABEL:Xo("COPY_LINK_LABEL"),
COPY_VIDEO_URL:Xo("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:Xo("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:Xo("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:Xo("DELETE_FROM_DOWNLOADS"),DIALOG:Xo("DIALOG"),DONE:Xo("DONE"),DOWNLOAD:Xo("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:Xo("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:Xo("FLAG_CONFIRM"),FLAG_CONTENT:Xo("FLAG_CONTENT"),FLAG_LABEL:Xo("FLAG_LABEL"),FLAG_TITLE:Xo("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:Xo("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:Xo("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:Xo("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:Xo("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:Xo("HIDE_SEARCH_FILTERS_LABEL"),HOME:Xo("HOME","Home"),INVALID_RESPONSE_RECEIVED:Xo("INVALID_RESPONSE_RECEIVED"),LIBRARY:Xo("LIBRARY","Library"),LISTENING:Xo("LISTENING"),LOADING:Xo("LOADING"),LONG_PRESS_MIC_TO_SPEAK:Xo("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:Xo("LOOP"),MENU_DESKTOP:Xo("MENU_DESKTOP"),MENU_EXIT:Xo("MENU_EXIT"),
MENU_FEEDBACK:Xo("MENU_FEEDBACK"),MENU_HELP:Xo("MENU_HELP"),MENU_IMPRESSUM:Xo("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:Xo("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:Xo("MENU_SETTINGS"),MENU_SIGN_IN:Xo("MENU_SIGN_IN"),MENU_TITLE:Xo("MENU_TITLE"),MENU_YOUR_DATA:Xo("MENU_YOUR_DATA"),MORE_INFO:Xo("MORE_INFO"),MORE_OPTIONS:Xo("MORE_OPTIONS"),MUTE_VOLUME:Xo("MUTE_VOLUME"),NEW_PLAYLIST:Xo("NEW_PLAYLIST"),NEXT_VIDEO:Xo("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:Xo("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:Xo("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:Xo("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:Xo("NOT_FOUND_TITLE"),NO_DOWNLOADS:Xo("NO_DOWNLOADS"),NO_MIC_INPUT:Xo("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:Xo("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:Xo("OOPS_MESSAGE"),OPEN_APP:Xo("OPEN_APP"),OPEN_YOUTUBE:Xo("OPEN_YOUTUBE"),PAUSE:Xo("PAUSE"),PLAY:Xo("PLAY"),PLAYER_CAPTION:Xo("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:Xo("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:Xo("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:Xo("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:Xo("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:Xo("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:Xo("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:Xo("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:Xo("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:Xo("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:Xo("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:Xo("PLAYER_MINIMIZE"),PLAYER_NEXT:Xo("PLAYER_NEXT"),PLAYER_PAUSE:Xo("PLAYER_PAUSE"),PLAYER_PLAY:Xo("PLAYER_PLAY"),
PLAYER_PREVIOUS:Xo("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:Xo("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:Xo("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:Xo("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:Xo("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:Xo("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:Xo("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:Xo("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:Xo("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:Xo("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:Xo("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:Xo("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:Xo("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:Xo("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:Xo("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:Xo("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:Xo("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:Xo("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:Xo("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:Xo("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:Xo("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:Xo("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:Xo("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:Xo("PLAY_ALL"),PLEASE_FIX_ERRORS:Xo("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:Xo("PREVIOUS_VIDEO"),PRIVACY_POLICY:Xo("PRIVACY_POLICY"),RELOAD:Xo("RELOAD"),REQUIRED_LABEL:Xo("REQUIRED_LABEL"),SAVE_PLAYLIST:Xo("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:Xo("SCRUB_SLIDE_USER_EDU"),SEARCH:Xo("SEARCH","Search"),SEARCH_APPEND_LABEL:Xo("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:Xo("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:Xo("SEARCH_CLEAR_LABEL"),SEARCH_FILTERS_LABEL:Xo("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:Xo("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:Xo("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:Xo("SEEK_SLIDER"),SETTINGS_LABEL:Xo("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:Xo("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:Xo("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:Xo("SHOW_LESS"),SHOW_MORE:Xo("SHOW_MORE"),SHOW_PLAYER_CONTROLS:Xo("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:Xo("SHOW_PLAYLIST_VIDEOS"),
SHOW_SEARCH_FILTERS_LABEL:Xo("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:Xo("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:Xo("SIGN_IN_ON_WEB"),STABLE_VOLUME:Xo("STABLE_VOLUME"),STABLE_VOLUME_OFF:Xo("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:Xo("STABLE_VOLUME_ON"),STATS_FOR_NERDS:Xo("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:Xo("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:Xo("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:Xo("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:Xo("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:Xo("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:Xo("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:Xo("TIMESTAMP_SECONDS"),TOGGLE_OFF:Xo("TOGGLE_OFF"),TOGGLE_ON:Xo("TOGGLE_ON"),TRENDING:Xo("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:Xo("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:Xo("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:Xo("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:Xo("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:Xo("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:Xo("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:Xo("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:Xo("VIDEO_LINK_LABEL")};var UT6=_.xl(function(q){var Z=q.playerApi;q=_.Iw(function(Y){M3(Y,36843)});
var w=Xo("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),r=_.fn(function(){Fo(36843);Z&&Z().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.u("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.u("button",{el:q,class:"ytPlayerControlsJumpForwardButtonButton",title:w,"aria-label":w,"on:click":r},_.u("span",null,_.u(_.q0,{icon:"FAST_FORWARD"}))))},"lf");var kpS=_.xl(function(q){var Z=q.appApi;q=_.Iw(function(Y){M3(Y,62946)});
var w=Xo("OPEN_IN_MINIPLAYER"),r=_.fn(function(){Fo(62946);var Y,C;(C=(Y=Z()).openInMiniplayer)==null||C.call(Y);return!1});
return _.u("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.u("button",{el:q,class:"ytMiniplayerButtonButton",title:w,"aria-label":w,"on:click":r},_.u(_.q0,{icon:"PICTURE_IN_PICTURE",active:!1})))},"mf");var Kyb=_.xl(function(q){var Z=q.playerApi;q=_.Iw(function(d){M3(d,142812)});
var w=_.P(_.qo(!1,void 0,"I3VCyb")),r=w.next().value,Y=w.next().value;w=function(){return Xo("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(r()?1:2)})};
var C=_.fn(function(){Fo(142812);if(Z){var d=Z(),O=r();d.setPlaybackRate(O?1:2);Y(!r())}return!1});
return _.u("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.u("button",{el:q,class:"ytPlaybackSpeedButtonButton",title:w,"aria-label":w,"on:click":C},_.u("span",null,_.u(_.q0,{icon:function(){return r()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"nf");var sAl=_.xl(function(q){var Z=q.title;var w=q.ariaLabel;var r=q.icon;var Y=q.command;var C=q.veType;q=_.Iw(function(O){C&&M3(O,C())});
var d=_.fn(function(){C&&Fo(C());Y&&_.t().resolve(_.ps).resolveCommand(Y())});
return _.u("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.u("button",{el:q,class:"ytdThumbnailOverlayButtonButton",title:Z,"aria-label":w,"on:click":d},_.u(_.q0,{icon:r})))},"of");var INF=["en-CA","en","es-MX","fr-CA"];var cJy=_.xl(function(q){var Z=_.n5(q,{isOverlay:!1}),w=Z.captionIconType,r=Z.onClick;q=Z.ariaLabel;var Y=Z.ariaPressed,C=Z.isOverlay;Z=_.Iw(function(H){M3(H,127299)});
var d=_.fn(function(H){Fo(127299);r==null||r(H);return!1}),O={};
return _.u("ytm-closed-captioning-button",{class:_.GL("ytmClosedCaptioningButtonHost",(O.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return w()===-1&&C()},O.ytmClosedCaptioningButtonIconDisabled=function(){return w()===-1&&!C()},O))},_.u("button",{el:Z,
class:"ytmClosedCaptioningButtonButton",title:q,"aria-label":q,"aria-pressed":Y,"on:click":d},_.u(_.q0,{icon:function(){var H="";var L=_.Hd().get("hl");L=!L||INF.includes(L)?"CLOSED_CAPTION":"SUBTITLES";var S=w();switch(S){case -1:case 0:H=L;break;case 1:H=L+"_FILLED";break;default:_.F7(S)}return H}})))},"pf");
cJy.idomCompat={callbacks:{onClick:!0}};var c9="";var MHy=_.xl(function(q){var Z=q.playerControlsProps,w=q.onClickFn;q=_.$6(function(){var C=Z(),d=-1;C.captionsAvailable&&(d=C.captionsEnabled?1:0);return d},void 0,"WecR8e");
var r=_.$6(function(){var C=Z();return C.captionsAvailable?_.dT(C.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.dT("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),Y=_.$6(function(){var C=Z();
C=C.captionsAvailable?C.captionsEnabled:void 0;return C},void 0,"Q17ly");
return _.u("yt-closed-captions-toggle-button",null,_.u(cJy,{captionIconType:q,ariaLabel:r,ariaPressed:Y,onClick:function(C){var d=Z();if(d.captionsAvailable){var O=d.playerApi;if(O){var H=d.playerApi;if(H){var L=c9;if(L){H=H.getOption("captions","track");var S;c9=(S=H?H.displayName:null)!=null?S:L}else H.getOptions("captions")?(L=ryq(H),c9=L.length?(S=YPZ(L))?S.displayName:L[0].displayName:""):c9=""}$$8(O);_.b("mweb_disable_set_state_captions_killswitch")&&d.setState({captionsEnabled:!d.captionsEnabled})}}var v,
R;(R=(v=d.appApi).showCaptionsToggleToast)==null||R.call(v,d);w==null||w(C)},
isOverlay:!0}))},"qf");var FyD=_.xl(function(q){var Z=q.data;return _.u("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.u(_.NA,{data:function(){return{type:16,text:_.ScX(Z().label)}}}))},"rf");var NxC=_.xl(function(q){var Z=_.GL("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return q.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return q.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return q.size()==="small"?q.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
q.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.u("animated-seek-arrows",{class:_.GL("ytPlayerControlsAnimatedSeekArrowsHost")},_.u("span",{class:Z}),_.u("span",{class:Z}),_.u("span",{class:Z}))},"sf");
NxC.idomCompat=!0;var lNC=_.xl(function(){var q=_.dT("PLAYER_SECONDS",{seconds_placeholder:"30"}),Z=_.P(_.qo(!1,void 0,"Yj8msb")),w=Z.next().value,r=Z.next().value,Y=_.P(_.qo(!1,void 0,"r9Z50e"));Z=Y.next().value;var C=Y.next().value;Y={};var d=_.GL("jumpForwardOverlayOverlay",(Y.jumpForwardOverlayOverlayHidden=Z,Y));_.Ls(function(){var O=null,H=null,L=function(){O!==null&&_.R0().cancelJob(O);H!==null&&_.R0().cancelJob(H);C(!0);r(!0);_.sL(_.R0(),function(){C(!1)});
O=_.sL(_.R0(),function(){C(!0);H=_.sL(_.R0(),function(){r(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",L);_.SG(function(){window.removeEventListener("jump-forward-clicked",L)})});
return _.u("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.u(_.PF,{cond:w,then:function(){return _.u("div",{class:d},_.u(NxC,{direction:1,size:"large"}),_.u("div",null,q))}}))},"tf");var nKS=_.QJ.MUTE_VOLUME,aC7=_.QJ.UNMUTE_VOLUME,Gpu=_.xl(function(q){var Z=q.muteIconType;var w=q.onClick;var r=q.useOutlineIcon;q=_.Iw(function(d){M3(d,28662)});
var Y=function(){return QVD(Z(),r==null?void 0:r()).ariaLabel},C=_.fn(function(d){Fo(28662);
w==null||w(d);return!1});
return _.u("ytm-mute-button",{class:"ytmMuteButtonHost"},_.u("button",{el:q,class:"ytmMuteButtonButton",title:Y,"aria-label":Y,"on:click":C},_.u("span",null,_.u(_.q0,{icon:function(){return QVD(Z(),r==null?void 0:r()).iconName}}))))},"uf");var ppF=_.xl(function(q){var Z=q.volumeProps;var w=q.onClickFn;var r=q.useOutlineIcon;return _.u("yt-mute-toggle-button",null,_.u(Gpu,{muteIconType:function(){var Y=Z(),C=!_.b("mweb_treat_zero_volume_as_muted_killswitch")&&Y.volume===0;return Y.volumeMuted||C?0:1},
onClick:function(Y){var C=Z().playerApi;C&&(C.isMuted()?C.unMute():C.mute(!1));w==null||w(Y)},
useOutlineIcon:function(){return!(r==null||!r())}}))},"vf");
ppF.idomCompat=!0;var XpD=_.xl(function(q){var Z=q.data;var w=_.Iw();q=_.fn(function(){w.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.u("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:w,"on:animationend":q},_.u(_.w6,{command:function(){return Z().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.u(_.PF,{cond:function(){var r;return(r=Z().icon)==null?void 0:r.iconType},
then:function(){return _.u("span",null,_.u(_.q0,{icon:function(){var r;return(r=Z().icon)==null?void 0:r.iconType}}))}}),_.u("div",{class:"ytmPaidContentOverlayText"},_.u(_.r6,{text:function(){return Z().text}})),_.u(_.PF,{cond:function(){return Z().navigationEndpoint},
then:function(){return _.u(_.q0,{icon:"CHEVRON_RIGHT"})}})))},"wf");
XpD.idomCompat=!0;var EKq=[].concat(_.Ju([{register:function(q){var Z=FuZ(q),w;(w=q().playerApi)==null||w.addEventListener("onVolumeChange",Z);return function(){}}},
{register:function(q){var Z=NTl(q);q=q().playerApi;q==null||q.addEventListener("captionschanged",Z);q==null||q.addEventListener("captionssettingschanged",Z);q==null||q.addEventListener("onCaptionsTrackListChanged",Z);return function(){}}},
{register:function(q){if(!_.b("mweb_screenreader_accessible_player"))return function(){};
var Z=lCV(q),w=document.querySelector("video");w==null||w.addEventListener("touchend",Z);return function(){w==null||w.removeEventListener("touchend",Z)}}},
{register:function(q){if(!_.b("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var Z=lCV(q),w=document.querySelector("video");w==null||w.addEventListener("focus",Z);return function(){w==null||w.removeEventListener("focus",Z)}}}]),[{register:function(q){var Z=sVy(q),w;
(w=q().playerApi)==null||w.addEventListener("onStateChange",Z);return function(){}}},
{register:function(q){var Z=ICD(q),w;(w=q().playerApi)==null||w.addEventListener("onPlaybackRateChange",Z);return function(){}}},
{register:function(q){var Z=cT8(q),w;(w=q().playerApi)==null||w.addEventListener("onVideoDataChange",Z);return function(){}}},
{register:function(q){var Z=MK7(q),w,r;(w=q())==null||(r=w.playerApi)==null||r.addEventListener("onVideoProgress",Z);return function(){}}}]);var mTq=_.xl(function(q){var Z=q.data;var w=function(){return _.dT("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+Z().playbackRate})};
return _.u(_.PF,{cond:function(){return Z().playbackRate&&Z().playbackRate!==1},
then:function(){return _.u("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.u("div",{class:"ytPlaybackRateOverlayOverlay"},_.u(NxC,{direction:1,size:"small"}),_.u("div",{class:"ytPlaybackRateOverlayLabel"},w)))}})},"xf");var AJc=_.xl(function(q){var Z=q.data;return _.u("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.u(_.PF,{cond:function(){var w,r=(w=Z())==null?void 0:w.playerResponse,Y;return r==null?void 0:(Y=r.paidContentOverlay)==null?void 0:Y.paidContentOverlayRenderer},
then:function(w){return _.u(XpD,{data:w})}}))},"zf"),fN8=_.xl(function(q){var Z=q.props;
var w=q.data;var r=q.options;var Y=function(){var L,S,v,R;return(L=w())==null?void 0:(S=L.playerResponse)==null?void 0:(v=S.playerConfig)==null?void 0:(R=v.inlinePlaybackConfig)==null?void 0:R.showAudioControls},C=function(){var L,S;
if(Y()&&((L=r())==null?void 0:(S=L.additionalButton)==null?void 0:S.button)!==void 0){var v,R,B;L=(v=w())==null?void 0:(R=v.playerApi)==null?void 0:(B=R.getSize())==null?void 0:B.height;if(!(L===void 0||L<184)){var n,x;return(n=r())==null?void 0:(x=n.additionalButton)==null?void 0:x.button}}},d=function(){var L,S;
return(L=r())==null?void 0:(S=L.additionalButton)==null?void 0:S.thumbnailOverlayButtonRenderers},O=function(){var L,S;
return(L=r())==null?void 0:(S=L.additionalButton)==null?void 0:S.thumbnailOverlayButtonViewModels},H=function(){var L=[_.u(ppF,{volumeProps:Z}),
_.u(MHy,{playerControlsProps:Z})];C()===1&&L.push(_.u(UT6,{playerApi:function(){return Z().playerApi}}));
C()===2&&L.push(_.u(kpS,{appApi:function(){return Z().appApi}}));
C()===3&&L.push(_.u(Kyb,{playerApi:function(){return Z().playerApi}}));
var S=d();if(C()===4&&S){S=_.P(S);for(var v=S.next(),R={};!v.done;R={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$52:void 0,command$jscomp$565:void 0},v=S.next()){v=v.value;R.tooltip$jscomp$2=v.tooltip;var B=void 0,n=void 0;R.ariaLabel$jscomp$20=((B=v.accessibility)==null?void 0:(n=B.accessibilityData)==null?void 0:n.label)||R.tooltip$jscomp$2;B=void 0;R.icon$jscomp$52=(B=v.icon)==null?void 0:B.iconType;R.command$jscomp$565=v.command;R.tooltip$jscomp$2&&R.ariaLabel$jscomp$20&&R.icon$jscomp$52&&
L.push(_.u(sAl,{title:function(x){return function(){return x.tooltip$jscomp$2}}(R),
ariaLabel:function(x){return function(){return x.ariaLabel$jscomp$20}}(R),
icon:function(x){return function(){return x.icon$jscomp$52}}(R),
command:function(x){return function(){return x.command$jscomp$565}}(R)}))}}S=O();
if(C()===4&&S)for(S=_.P(S),v=S.next(),R={};!v.done;R={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$53:void 0,command$jscomp$566:void 0},v=S.next())v=v.value,R.tooltip$jscomp$3=v.title,R.ariaLabel$jscomp$21=v.accessibilityText||R.tooltip$jscomp$3,R.icon$jscomp$53=v.iconName,R.command$jscomp$566=_.oQ(v.onTap),R.tooltip$jscomp$3&&R.ariaLabel$jscomp$21&&R.icon$jscomp$53&&L.push(_.u(sAl,{title:function(x){return function(){return x.tooltip$jscomp$3}}(R),
ariaLabel:function(x){return function(){return x.ariaLabel$jscomp$21}}(R),
icon:function(x){return function(){return x.icon$jscomp$53}}(R),
command:function(x){return function(){return x.command$jscomp$566}}(R)}));
return L};
return _.u(_.PF,{cond:Y,then:function(){return _.u("div",{class:"ytInlinePlayerControlsTopRightControls"},_.u(_.dA,{each:H},function(L){return _.u("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.u("div",{class:"ytInlinePlayerControlsButtonIcon"},L))}))}})},"Af"),yJF=_.xl(function(q){var Z=q.props;
var w=q.data;var r=q.options;q={};q=_.GL("ytInlinePlayerControlsBottomRightControls",(q.ytInlinePlayerControlsBottomRightControlsHidden=function(){var Y;return pd6(w(),r())&&((Y=r())==null?void 0:Y.insetProgressBar)&&(Z().isHovering||Z().isDragging)},q));
return _.u("div",{class:q},_.u(DT8,{data:w}),_.u(_.PF,{cond:function(){var Y;return!((Y=r())==null?0:Y.hideTimeDisplay)},
then:function(){return _.u(hs6,{props:Z})}}))},"Bf"),DT8=_.xl(function(q){var Z=q.data;
return _.u(_.Hx,{data:function(){var w;return BTl((w=Z())==null?void 0:w.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:FyD})},"Cf"),hs6=_.xl(function(q){var Z=q.props;
return _.u(_.PF,{cond:function(){return Z().isLive},
then:function(){return _.u(i5D,null)},
else:function(){return _.u(glD,{props:Z})}})},"Df"),glD=_.xl(function(q){var Z=q.props;
return _.u("div",{class:_.GL("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.QJ.PLAYER_TIME_ELAPSED+" "+_.pUj(Z().playedTime)}},_.u(_.NA,{data:function(){return{type:16,
text:_.pUj(Z().videoDuration-Z().playedTime)}}}))},"Ef"),i5D=_.xl(function(){return _.u("div",{class:_.GL("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.u(_.NA,{data:{type:17,
text:_.QJ.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Ff"),qL6=_.xl(function(q){var Z=q.props;
var w=q.data;var r=q.options;return _.u(_.Klc,{progressBarProps:Z,config:function(){var Y,C=_.J((Y=w())==null?void 0:Y.multiMarkersPlayerBar,_.qYv),d;Y=((d=r())==null?0:d.insetProgressBar)?2:1;var O;d=(O=r())==null?void 0:O.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:Y,chapterData:C,isInlinePlayback:!0,doSeekOnClick:d,playheadDotBehavior:d?1:0}}})},"Gf");_.xc(_.xl(function(q){var Z=q.data;var w=q.appApi;var r=q.options;var Y=Ku7(Z,G7V(w));q={};w={};return _.u("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.u("div",{class:_.GL("ytInlinePlayerControlsDarkenedOverlay",(q.ytInlinePlayerControlsDarkenedOverlayShow=function(){return Y().isHovering},q))}),_.u(lNC,null),_.u(mTq,{data:Y}),_.u(AJc,{data:Z}),_.u(Txl,{playerControlsProps:Y,
isShortsPage:!1}),_.u("div",{class:_.GL((w.ytInlinePlayerControlsControlsHidden=function(){return Y().isDragging},w))},_.u(fN8,{props:Y,
data:Z,options:r}),_.u(yJF,{props:Y,data:Z,options:r})),_.u(_.PF,{cond:function(){return pd6(Z(),r())},
then:function(){return _.u(qL6,{props:Y,data:Z,options:r})}}))},"yf"),"yt-inline-player-controls",{props:{data:_.zG,
appApi:_.EL,options:_.zG}});var Ed,ZnS=function(){var q=_.N.apply(this,arguments)||this;q.opts=null;q.playerControlsData=null;q.playerControlsAppApi={openInMiniplayer:function(){q.openInMiniplayer()}};
q.playerControlsOptions={};q.noAnimation=!1;q.playbackIntentTriggered=!1;q.positionData=null;q.hidden=!0;q.active=!1;q.playing=!1;q.videoPreviewDataIndex=0;q.JSC$16707_playerPromise=null;q.player=null;q.enableAudioControls=!1;q.hasBeenUnmuted=!1;q.captionsHaveBeenTurnedOff=!1;q.JSC$16707_playerEvents=new Map;q.videoPreviewFetchRequest=null;q.scheduledPreviewEndJobId=null;q.JSC$16707_preventProgressSaveTimer=null;q.watchEndpointStartTimeUpdaterInterval=null;q.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};q.windowOnBlurFn=function(){q.deactivate()};
return q};
_.z(ZnS,_.N);_.e=ZnS.prototype;
_.e.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.b("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"}}}};
_.e.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16707_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16707_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16707_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16707_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.XN(this,this.onPageTypeChange));this.pagePath=location.pathname};
_.e.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn)};
_.e.onPageTypeChange=function(){this.deactivate()};
_.e.onWindowResized=function(){this.deactivate()};
_.e.onCaptionsChanged=function(q){q=!!q.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!q);this.setCaptionSize()};
_.e.setCaptionSize=function(){var q;if(this.active&&!this.captionsHaveBeenTurnedOff&&((q=this.player)==null?0:q.getCaptionWindowContainerId())){var Z;(Z=this.player)==null||Z.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.e.currentPageAllowed=function(){return!this.isWatchPage};
_.e.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var q=this.positionData,Z=q.initialTopPosition,w=q.initialHorizontalPosition;_.po(this.hostElement,{"--ytd-video-preview-translate-left":q.finalHorizontalPosition-w+"px","--ytd-video-preview-translate-top":q.finalTopPosition-Z+"px","--ytd-video-preview-original-top-position":Z+"px","--ytd-video-preview-original-horizontal-position":w+"px",
"--ytd-video-preview-initial-scale":"scale("+q.initialScale+")","--ytd-video-preview-width":q.videoPreviewWidth+"px","--ytd-video-preview-height":q.videoPreviewHeight+"px"});return!0};
_.e.handleOpenVideoPreviewAction=function(q){var Z=this,w;return _.V(function(r){if(!Z.currentPageAllowed())return r.return(0);Z.opts=q;return(w=Z.alignVideoPreviewForAnimation(q.thumbnail))?r.return(Z.activate()):r.return(0)})};
_.e.onMouseLeave=function(q){this.shouldDeactivateOnMouseLeave(q)&&this.deactivate()};
_.e.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.v5.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.e.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.e.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",Ed.JSC$16706_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ed.JSC$16706_CLICK_LOCATION_ID_MAP)};
_.e.shouldDeactivateOnMouseLeave=function(q){q=q.relatedTarget;if(!q)return!0;var Z;return(Z=this.opts)!=null&&Z.mediaRenderer?!_.FN(this.opts.mediaRenderer).contains(q):!0};
_.e.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.e.onPlaybackStart=function(){var q=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$16707_preventProgressSaveTimer=
_.sL(_.v5,function(){q.resetPreventProgressSaveTimer()},1E4);
var Z;if((Z=this.opts)==null?0:Z.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.sL(_.v5,function(){q.hasMultipleVideoPreviews()?q.startPlaybackForNextVideo():q.deactivate()},this.opts.videoPreviewDurationMs);
var w;this.player.setGlobalCrop(((w=this.opts)==null?0:w.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.e.getRoundedCornersSize=function(){var q;if((q=this.opts)==null?0:q.roundedCornersSize){var Z;return(Z=this.opts)==null?void 0:Z.roundedCornersSize}var w;if((w=this.opts)==null?0:w.enableRounding){var r;if(((r=this.opts)==null?void 0:r.thumbnailSize)==="small")return 1;var Y;if(((Y=this.opts)==null?void 0:Y.thumbnailSize)==="medium")return 2;var C;if(((C=this.opts)==null?void 0:C.thumbnailSize)==="large")return 3}return _.b("web_imp_inset_progress_bar")?3:0};
_.e.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.e.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.e.onMediaContainerClick=function(q){this.isShortcutClick(q)||(this.navigateToWatch(q),q.preventDefault(),q.stopPropagation())};
_.e.activate=function(){var q=this,Z,w,r,Y,C,d,O,H;return _.V(function(L){switch(L.nextAddress){case 1:if(!q.currentPageAllowed())return L.return(0);w=(Z=q.videoPreviewData)==null?void 0:Z.inlinePlaybackEndpoint;r=_.bl.instance;if(!w||!r)return L.return(0);q.playbackIntentTriggered=!0;((Y=q.opts)==null?0:Y.mediaRenderer)&&zA8(q.opts.mediaRenderer,function(){q.deactivate()});
_.I_(q,function(){q.revealPreviewUi()});
C={};_.b("enable_unknown_lact_fix_on_html5")&&(_.t().resolve(_.d6),C.lact=_.pB());q.videoPreviewFetchRequest=vKu(r,q.getInlinePlaybackRequestData(q.videoPreviewData),C);_.d9(L,2);return _.W(L,q.videoPreviewFetchRequest,4);case 4:d=L.yieldResult;if(((O=d)==null?void 0:(H=O.playabilityStatus)==null?void 0:H.status)==="OK")return L.return(q.handlePlayerResponse(d));throw Error("Ij");case 2:_.o3(L),q.deactivate();case 3:return L.return(1)}})};
_.e.getInlinePlaybackRequestData=function(q){var Z,w=_.b("web_imp_player_mute_params")?((Z=this.opts)==null?void 0:Z.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:q.inlinePlaybackEndpoint,startPlaybackInMutedState:w}};
_.e.handlePlayerResponse=function(q){var Z=this,w,r,Y,C,d,O,H,L,S,v;return _.V(function(R){if(R.nextAddress==1){w=Z.getInlinePlaybackVideoId();if(!(((r=q)==null?0:(Y=r.videoDetails)==null?0:Y.videoId)&&Z.currentPageAllowed()&&Z.playbackIntentTriggered&&Z.opts&&w))return Z.deactivate(),R.return(0);if(q.videoDetails.videoId!==w)return R.return(0);Z.enableAudioControls=!!((C=q.playerConfig)==null?0:(d=C.inlinePlaybackConfig)==null?0:d.showAudioControls);q.trackingParams=Z.getInlinePlaybackTrackingParams();
if(!Z.inlinePlayer)return R.return(0);O={};if(L=_.J((H=Z.videoPreviewData)==null?void 0:H.inlinePlaybackEndpoint,_.ck))O.watch_endpoint=L;if(Z.videoPreviewData){var B,n=(B=_.J(Z.videoPreviewData.inlinePlaybackEndpoint,_.ck))==null?void 0:B.startTimeSeconds;n!==void 0&&(q.playerConfig||(q.playerConfig={}),q.playerConfig.playbackStartConfig||(q.playerConfig.playbackStartConfig={}),q.playerConfig.playbackStartConfig.startPosition||(q.playerConfig.playbackStartConfig.startPosition={}),q.playerConfig.playbackStartConfig.startSeconds=
n,q.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(n*1E3))}Z.inlinePlayer.loadVideoWithPlayerResponse(q,O);if(Z.JSC$16707_playerPromise)return R.jumpTo(2);Z.JSC$16707_playerPromise=Z.inlinePlayer.getPlayerPromise();return _.W(R,Z.JSC$16707_playerPromise,3)}R.nextAddress!=2&&(S=R.yieldResult,S.setInlinePreview(!0),S.setSizeStyle(!1,!0),Z.ytPlayerListenerBehavior.listenToPlayerEvents(S,Z.JSC$16707_playerEvents),Z.player=S,_.hy(Z.hostElement,"player-api-ready"));((v=Z.opts)==
null?0:v.showPlayerControls)&&Z.videoPreviewData&&Z.player&&(Z.playerControlsData={playerResponse:q,isInlinePlayback:!0,thumbnailOverlays:Z.videoPreviewData.thumbnailOverlays,playerApi:Z.player},Z.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!Z.unroundCornersForPlayback,additionalButton:Z.getAdditionalButtonType(Z.videoPreviewData.thumbnailOverlays)});return R.return(2)})};
_.e.revealPreviewUi=function(){var q=this;this.playbackIntentTriggered&&_.BST(this,function(){q.hasThumbnailPositionChangedSinceTriggered()||(q.updateActiveState(!0),q.noAnimation=!1)})};
_.e.hasThumbnailPositionChangedSinceTriggered=function(){var q=this.positionData,Z=this.getThumbnailPositionData();return(q==null?void 0:q.initialTopPosition)!==(Z==null?void 0:Z.initialTopPosition)||(q==null?void 0:q.initialHorizontalPosition)!==(Z==null?void 0:Z.initialHorizontalPosition)};
_.e.getThumbnailPositionData=function(){var q,Z;if((Z=this.opts)==null||!Z.thumbnail)return null;Z=this.opts.thumbnail;var w=((q=this.opts)==null?0:q.cropPlayerToFillThumbnailHorizontally)?!1:!0;var r=Z.getBoundingClientRect();q=r.width;Z=r.height;var Y=r.top+window.scrollY;r=r.left+window.scrollX;var C=w?Math.ceil(q):q;w=w?Math.ceil(Z):Z;var d=q/C;q={initialScale:d,initialTopPosition:Y-12*d,finalTopPosition:Y-12-(w-Z)/2,initialHorizontalPosition:r-(12+(C-q)/2),finalHorizontalPosition:r-12-(C-q)/
2,videoPreviewWidth:C,videoPreviewHeight:w};return q};
_.e.updateActiveState=function(q){this.active=q;this.ytdReduxBehavior.dispatch(_.mu({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:q}))};
_.e.stopPlayer=function(q){q=q.resetWatchEndpointStartTime===void 0?!1:q.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(q)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.v5.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.e.deactivate=function(q){q=q===void 0?{}:q;q=q.resetWatchEndpointStartTime===void 0?!1:q.resetWatchEndpointStartTime;pW&&(pW.disconnect(),pW=null);this.stopPlayer({resetWatchEndpointStartTime:q});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.e.isValidThumbnailOverlayButton=function(q,Z){q=q.thumbnailOverlayButtonRenderer;var w;return!!q&&!!q.tooltip&&!((w=q.icon)==null||!w.iconType)&&Z.includes(q.icon.iconType)};
_.e.isValidThumbnailOverlayButtonViewModel=function(q,Z){var w;q=_.J((w=q.thumbnailOverlayButtonViewModel)==null?void 0:w.overlayButton,_.Wx);return!!q&&!!q.title&&!!q.iconName&&Z.includes(q.iconName)};
_.e.getAdditionalButtonType=function(q){var Z=this;if(_.b("web_imp_fastforward_button"))return{button:1};if(_.b("web_imp_miniplayer_button"))return{button:2};if(_.b("web_imp_playback_speed_button"))return{button:3};var w=["AUTO_AWESOME"],r=(q||[]).filter(function(C){return Z.isValidThumbnailOverlayButton(C,w)}).map(function(C){return C.thumbnailOverlayButtonRenderer});
if(r.length)return{button:4,thumbnailOverlayButtonRenderers:r};var Y=["AUTO_AWESOME"];q=(q||[]).filter(function(C){return Z.isValidThumbnailOverlayButtonViewModel(C,Y)}).map(function(C){return _.J(C.thumbnailOverlayButtonViewModel.overlayButton,_.Wx)});
if(q.length)return{button:4,thumbnailOverlayButtonViewModels:q}};
_.e.allowCaptions=function(){var q;return!((q=this.opts)==null?0:q.forceCaptionsOff)};
_.e.allowUnmuting=function(){var q;return this.enableAudioControls&&!((q=this.opts)==null?0:q.forceMutedVolume)};
_.e.beginStartTimeUpdater=function(){var q=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.yV(function(){q.updateWatchEndpointStartTime()},1E3)};
_.e.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.e.resetPreventProgressSaveTimer=function(){this.JSC$16707_preventProgressSaveTimer!==null&&(_.v5.cancelJob(this.JSC$16707_preventProgressSaveTimer),this.JSC$16707_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.e.updateWatchEndpointStartTime=function(q){var Z=this.videoPreviewData;if(this.player&&Z!=null&&Z.inlinePlaybackEndpoint&&!this.JSC$16707_preventProgressSaveTimer){q=q?0:Math.floor(this.player.getCurrentTime());var w=_.J(Z.navigationEndpoint,_.ck);w&&(w.startTimeSeconds=q);if(Z=_.J(Z.inlinePlaybackEndpoint,_.ck))Z.startTimeSeconds=q}};
_.e.isShortcutClick=function(q){return!!q&&(q.ctrlKey||q.shiftKey||q.metaKey)};
_.e.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.e.openInMiniplayer=function(){var q=this,Z,w;return _.V(function(r){if(r.nextAddress==1){w=(Z=q.videoPreviewData)==null?void 0:Z.navigationEndpoint;if(!w)return r.return();_.qk().lockupActivation=!0;return _.W(r,_.Hmv(_.t().resolve(_.Tf),w),2)}_.qk().userActivation=!0;_.ub(r)})};
_.e.navigateToWatch=function(q){var Z,w=(Z=this.videoPreviewData)==null?void 0:Z.navigationEndpoint;if(w){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(w,q,!0);else{if(_.b("web_thumbnail_to_watch_transition")){var r,Y;(r=this.opts)==null||(Y=r.onNavigateToWatchCallback)==null||Y.call(r)}_.hy(this.hostElement,"yt-navigate",{endpoint:w})}this.deactivate()}};
_.e.getInlinePlaybackVideoId=function(){var q,Z;return(Z=_.J((q=this.videoPreviewData)==null?void 0:q.inlinePlaybackEndpoint,_.ck))==null?void 0:Z.videoId};
_.e.getInlinePlaybackTrackingParams=function(){var q,Z;return(q=this.videoPreviewData)==null?void 0:(Z=q.inlinePlaybackEndpoint)==null?void 0:Z.clickTrackingParams};
_.e.hasMultipleVideoPreviews=function(){var q;return!!(((q=this.opts)==null?0:q.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.e.startPlaybackForNextVideo=function(){var q;(q=this.opts)!=null&&q.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())};
_.My.Object.defineProperties(ZnS.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.opts)==null?0:q.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.opts)==null||!q.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 q;if(Array.isArray((q=this.opts)==null?void 0:q.videoPreviewData)){var Z;return(Z=this.opts)==null?void 0:Z.videoPreviewData[this.videoPreviewDataIndex]}var w;return(w=this.opts)==null?void 0:w.videoPreviewData}}});
var x0=Ed=ZnS;Ed.prototype.onIsAdsVideoChange=Ed.prototype.onIsAdsVideoChange;Ed.prototype.onInlinePreviewIsEnabledChange=Ed.prototype.onInlinePreviewIsEnabledChange;Ed.prototype.optsChanged=Ed.prototype.optsChanged;Ed.prototype.onMouseLeave=Ed.prototype.onMouseLeave;x0.JSC$16706_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);x0.JSC$16706_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"}];
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],x0.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],x0.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.QQ.YtPlayerListenerBehavior),_.A("design:type",_.EW)],x0.prototype,"ytPlayerListenerBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],x0.prototype,"componentBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],x0.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],x0.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.Iy.YtSparklesClickLocationBehavior),_.A("design:type",Object)],x0.prototype,"ytSparklesClickLocationBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],x0.prototype,"opts",void 0);_.X([_.F(),_.A("design:type",Object)],x0.prototype,"playerControlsData",void 0);
_.X([_.F(),_.A("design:type",Object)],x0.prototype,"playerControlsAppApi",void 0);_.X([_.F(),_.A("design:type",Object)],x0.prototype,"playerControlsOptions",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],x0.prototype,"noAnimation",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],x0.prototype,"hidden",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],x0.prototype,"active",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],x0.prototype,"playing",void 0);_.X([_.F({selector:_.TFz}),_.A("design:type",Boolean)],x0.prototype,"inlinePreviewIsEnabled",void 0);_.X([_.F(),_.A("design:type",String)],x0.prototype,"pagePath",void 0);_.X([_.F({selector:_.t0}),_.A("design:type",Boolean)],x0.prototype,"isWatchPage",void 0);_.X([_.I("videoPreviewData"),_.A("design:type",Object),_.A("design:paramtypes",[])],x0.prototype,"thumbnailData",null);
_.X([_.I("opts","active"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],x0.prototype,"hidePlayerControls",null);_.X([_.I("opts"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],x0.prototype,"isAdsVideo",null);_.X([_.I("opts"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],x0.prototype,"roundedCornersSmall",null);
_.X([_.I("opts"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],x0.prototype,"roundedCornersMedium",null);_.X([_.I("opts"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],x0.prototype,"roundedCornersLarge",null);_.X([_.I("opts"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],x0.prototype,"unroundCornersForPlayback",null);
_.X([_.I("opts","videoPreviewDataIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],x0.prototype,"videoPreviewData",null);_.X([_.F(),_.A("design:type",Object)],x0.prototype,"videoPreviewDataIndex",void 0);_.X([_.fo("#inline-player"),_.A("design:type",Object)],x0.prototype,"inlinePlayer",void 0);_.X([_.m2("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[MouseEvent]),_.A("design:returntype")],x0.prototype,"onMouseLeave",null);
_.X([_.g3("opts"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],x0.prototype,"optsChanged",null);_.X([_.g3("inlinePreviewIsEnabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],x0.prototype,"onInlinePreviewIsEnabledChange",null);_.X([_.M("isAdsVideo"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],x0.prototype,"onIsAdsVideoChange",null);
x0=Ed=_.X([_.l({is:"ytd-video-preview",disableElementRegistration:!0})],x0);
_.p(x0,"ytd-video-preview",function(){if(xTb!==void 0)return xTb;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return xTb=q},{mode:2});
}catch(e){_._DumpException(e)}
try{
var ePS;var C9C;/*

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
*/
_.$l({_template:function(){if(C9C!==void 0)return C9C;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;ePS===void 0&&(ePS=document.createElement("template"));var r=ePS;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return C9C=q},
is:"tp-yt-paper-checkbox",behaviors:[_.Ml7],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.I_(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var q=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),Z="px",w=q.match(/[A-Za-z]+$/);w!==null&&(Z=w[0]);q=parseFloat(q);w=8/3*q;Z==="px"&&(w=Math.floor(w),w%2!==q%2&&w++);this.updateStyles({"--paper-checkbox-ink-size":w+
Z})}})},
_computeCheckboxClass:function(q,Z){var w="";q&&(w+="checked ");Z&&(w+="invalid");return w},
_computeCheckmarkClass:function(q){return q?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.Ib9._createRipple.call(this)}});var P9V=new _.D("radioButtonSurveyOptionRenderer"),dyS=new _.D("checkboxSurveyOptionRenderer");var Vxu;var Oyy;var HyV=0,W3y=function(){var q=_.N.call(this)||this;q.selected=!1;q.isOverlay=!1;q.inputId="toggle-option-"+HyV;HyV++;return q};
_.z(W3y,_.N);W3y.prototype.onTap=function(){_.hy(this.hostElement,"ytd-toggle-option-clicked")};
var SN=W3y;_.X([_.F(),_.A("design:type",String)],SN.prototype,"label",void 0);_.X([_.F(),_.A("design:type",String)],SN.prototype,"inputId",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],SN.prototype,"selected",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],SN.prototype,"isOverlay",void 0);SN=_.X([_.l({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.A("design:paramtypes",[])],SN);
_.p(SN,"ytd-toggle-option-renderer",function(){if(Oyy!==void 0)return Oyy;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Oyy=q},{mode:1});var oal=function(){var q=_.N.apply(this,arguments)||this;q.isToggleOption=!1;q.isOverlay=!1;return q};
_.z(oal,_.N);oal.prototype.onTap=function(q){q.preventDefault();this.data&&(q=!this.data.checked,this.set("data.checked",q),_.hy(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:q,value:this.data.value}))};
_.My.Object.defineProperties(oal.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
var v9=oal;v9.prototype.onTap=v9.prototype.onTap;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],v9.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],v9.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],v9.prototype,"isToggleOption",void 0);_.X([_.F(),_.A("design:type",Object)],v9.prototype,"isOverlay",void 0);_.X([_.I("data.responseText"),_.A("design:type",String),_.A("design:paramtypes",[])],v9.prototype,"label",null);
_.X([_.m2("ytd-toggle-option-clicked"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],v9.prototype,"onTap",null);v9=_.X([_.l({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],v9);
_.p(v9,"ytd-checkbox-survey-option-renderer",function(){if(Vxu!==void 0)return Vxu;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Vxu=q},{mode:1});var u1b;var L3C;var SAl=function(){var q=_.N.apply(this,arguments)||this;q.checked=!1;q.isToggleOption=!1;return q};
_.z(SAl,_.N);SAl.prototype.onTap=function(){this.data&&(this.checked?_.yY(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.yY(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
var jN=SAl;jN.prototype.onTap=jN.prototype.onTap;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],jN.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],jN.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],jN.prototype,"checked",void 0);_.X([_.F(),_.A("design:type",Object)],jN.prototype,"isToggleOption",void 0);
_.X([_.m2("ytd-toggle-option-clicked"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],jN.prototype,"onTap",null);jN=_.X([_.l({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],jN);
_.p(jN,"ytd-radio-button-survey-option-renderer",function(){if(L3C!==void 0)return L3C;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return L3C=q},{mode:1});var va8=function(){var q=_.N.apply(this,arguments)||this;q.disableAnimation=!1;q.isToggleOption=!0;q.followUpSurveyCommand=null;q.selectedRatingEndpoint=null;q.isSlimlineSurveyFollowUp=!1;q.isShortsStyle=!1;q.styleOverrideAttribute=!0;q.isDarkMode=!1;q.isSubmitted=!1;q.roundedContainer=!0;q.improveShortsResponseRate=_.b("web_improve_shorts_response_rate");q.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 q};
_.z(va8,_.N);_.e=va8.prototype;
_.e.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"}}}}};
_.e.attached=function(){var q=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(w){var r;if((r=w[0])!=null&&r.isIntersecting){_.hJ().reportShown(q.hostElement);var Y;(Y=q.intersectionObserver)==null||Y.unobserve(q.hostElement)}},{rootMargin:"0px",
threshold:.6});var Z;(Z=this.intersectionObserver)==null||Z.observe(this.hostElement)};
_.e.onDarkModeToggledAction=function(q){this.isDarkMode=q};
_.e.dataChanged=function(){var q;if(((q=this.data)==null?void 0:q.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var Z;((Z=this.data)==null?void 0:Z.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var w,r,Y,C;this.darkColorPalette=(w=this.data)==null?void 0:(r=w.inlineContent)==null?void 0:(Y=r.compactVideoRenderer)==null?void 0:(C=Y.thumbnail)==null?
void 0:C.darkColorPalette;var d,O,H,L;this.lightColorPalette=(d=this.data)==null?void 0:(O=d.inlineContent)==null?void 0:(H=O.compactVideoRenderer)==null?void 0:(L=H.thumbnail)==null?void 0:L.lightColorPalette;var S,v;if(((S=this.data)==null?0:(v=S.inlineContent)==null?0:v.compactVideoRenderer)&&this.isShortsStyle){var R,B,n,x;q=_.UL((R=this.data)==null?void 0:(B=R.inlineContent)==null?void 0:(n=B.compactVideoRenderer)==null?void 0:(x=n.thumbnail)==null?void 0:x.thumbnails);_.po(this.hostElement,
{"--yt-background-url":"url("+q+")"})}};
_.e.handleRequestCompletion=function(){this.hostElement.hidden&&_.hy(this.hostElement,"yt-dismissible-item-dismissed")};
_.e.onPopupClosed=function(q){var Z;((Z=q.detail)==null?void 0:Z.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.yY(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.e.handleInlineSurveyRatingSelect=function(q,Z){var w=this;this.selectedRatingEndpoint=q;this.followUpSurveyCommand=Z;this.expanded=!!q;this.getOptionRenderers().forEach(function(r,Y){w.notifyPath("followUpSurveyCommand.followUpOptions."+Y+".checkboxSurveyOptionRenderer.checked");w.set("followUpSurveyCommand.followUpOptions."+Y+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),q=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.yY(this.hostElement,"yt-reel-non-video-content-dismissal-command",[q]))};
_.e.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.yY(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var q,Z=(q=this.data)==null?void 0:q.dismissalEndpoint;Z&&this.ytComponentBehavior.resolveCommand(Z)}};
_.e.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.yY(this.hostElement,"yt-close-popup-action"))};
_.e.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var q=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{q=this.getOptionRenderers().filter(function(r){return r.checked});
if(q.length===0)return;q=q.map(function(r){return r.responseEndpoint})}var Z=[];
q.forEach(function(r,Y){Y!==0&&(r=_.J(r,_.BH))&&r.feedbackToken&&Z.push(r.feedbackToken)});
if(q=q[0]){var w={};Z.length>0&&(w.extra_feedback_tokens=Z);this.ytComponentBehavior.resolveCommand(q,{form:w})}}};
_.e.getOptionRenderers=function(){var q=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(Z){q.isSingleSelect=!!_.J(Z,P9V);return q.isSingleSelect?_.J(Z,P9V):_.J(Z,dyS)}):[]};
_.e.handleInlineSurveyOptionSelect=function(q){q=this.optionSelector.indexOf(q);q!==-1&&this.optionSelector.selectIndex(q)};
_.e.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.e.maybeGetBackgroundColor=function(q){return this.isDarkMode?q.section2Color:q.section3Color};
_.e.colorPaletteChanged=function(){var q=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;q=q&&this.maybeGetBackgroundColor(q);this.dismissibleEl.style.backgroundColor=!q||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.oJ(q)};
_.My.Object.defineProperties(va8.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
var tV=va8;tV.prototype.colorPaletteChanged=tV.prototype.colorPaletteChanged;tV.prototype.onPopupClosed=tV.prototype.onPopupClosed;tV.prototype.handleRequestCompletion=tV.prototype.handleRequestCompletion;tV.prototype.dataChanged=tV.prototype.dataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],tV.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],tV.prototype,"actionHandlerBehavior",void 0);
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],tV.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],tV.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],tV.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.fo("#follow-up-survey-options"),_.A("design:type",Object)],tV.prototype,"optionSelector",void 0);_.X([_.F(),_.A("design:type",Object)],tV.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],tV.prototype,"disableAnimation",void 0);_.X([_.F(),_.A("design:type",Object)],tV.prototype,"isToggleOption",void 0);_.X([_.F(),_.A("design:type",Object)],tV.prototype,"followUpSurveyCommand",void 0);_.X([_.F(),_.A("design:type",Object)],tV.prototype,"selectedRatingEndpoint",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],tV.prototype,"expanded",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],tV.prototype,"isSlimlineSurveyFollowUp",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],tV.prototype,"isShortsStyle",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],tV.prototype,"styleOverrideAttribute",void 0);_.X([_.F(),_.A("design:type",Boolean)],tV.prototype,"isSingleSelect",void 0);_.X([_.F(),_.A("design:type",Object)],tV.prototype,"isDarkMode",void 0);
_.X([_.F(),_.A("design:type",Object)],tV.prototype,"lightColorPalette",void 0);_.X([_.F(),_.A("design:type",Object)],tV.prototype,"darkColorPalette",void 0);_.X([_.I("selectedRatingEndpoint","isShortsStyle"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],tV.prototype,"isOptionSelected",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],tV.prototype,"roundedContainer",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],tV.prototype,"improveShortsResponseRate",void 0);_.X([_.fo("#dismissible"),_.A("design:type",HTMLElement)],tV.prototype,"dismissibleEl",void 0);_.X([_.fo("#dismiss-button yt-icon-button"),_.A("design:type",HTMLElement)],tV.prototype,"dismissButtonEl",void 0);_.X([_.fo("#inline-survey-header yt-icon-button"),_.A("design:type",HTMLElement)],tV.prototype,"inlineHeaderDismissButtonEl",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tV.prototype,"dataChanged",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tV.prototype,"handleRequestCompletion",null);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],tV.prototype,"onPopupClosed",null);
_.X([_.M("darkColorPalette","lightColorPalette","isDarkMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tV.prototype,"colorPaletteChanged",null);tV=_.X([_.l({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],tV);
_.p(tV,"ytd-inline-survey-renderer",function(){if(u1b!==void 0)return u1b;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return u1b=q},{mode:1});
}catch(e){_._DumpException(e)}
try{
var X6d,mjA,A2r;X6d=function(q){return _.b("kevlar_watch_cinematics_invisible")||q.fullscreen&&_.b("kevlar_watch_cinematics_invisible_in_fullscreen")||q.theater&&!q.fullscreen&&_.b("kevlar_watch_cinematics_invisible_in_theater")};
mjA=function(){var q=document.createElement("canvas"),Z=q.getContext("2d");if(!Z)throw Error("Wl");_.xA(q,{position:"absolute",width:"100%",height:"100%"});return{element:q,context:Z}};
A2r=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.b("kevlar_watch_cinematics_css_blur")};
_.fTA=function(q,Z,w){return Math.abs(q-Z)<=(w||1E-6)};
_.Djv=function(q,Z){return q==Z?!0:q&&Z?q.width==Z.width&&q.height==Z.height:!1};_.h8d=new _.D("notificationActionRenderer");var y2a=function(q){var Z=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Dk;this.element.addEventListener("load",function(){Z.loaded=!0;Z.resolver.resolve(Z.element)});
this.element.addEventListener("error",function(){Z.failed=!0});
this.element.src=q};var iXm=function(q,Z){this.image=q;this.frame=Z};
iXm.prototype.drawToCanvas=function(q,Z){var w=this.frame.width/this.frame.columns,r=this.frame.height/this.frame.rows,Y=Z.offsetX,C=Z.offsetY;X6d(Z)?(q.fillStyle=Z.fullscreen?"#000":"#0f0f0f",q.fillRect(Y,C,(Z==null?void 0:Z.width)||w,(Z==null?void 0:Z.height)||r)):q.drawImage(this.image,this.frame.column*w,this.frame.row*r,w,r,Y,C,(Z==null?void 0:Z.width)||w,(Z==null?void 0:Z.height)||r)};
var g1F=function(q){this.color=q};
g1F.prototype.drawToCanvas=function(q,Z){var w=Z.offsetX,r=Z.offsetY,Y=Z.width,C=Z.height;q.fillStyle=X6d(Z)?Z.fullscreen?"#000":"#0f0f0f":this.color;q.fillRect(w,r,Y,C)};var dL=function(q,Z){_.sd.call(this);this.playerApi=Z;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.O3(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();qp9(this,q);_.Z9m(this);this.update()},YpX;
_.z(dL,_.sd);dL.prototype.addEventListeners=function(){var q=this,Z=function(){q.update()},w=function(Y){q.paused||(Y.type==="newdata"&&(q.mosaics.clear(),w1m(q),Vh(q)),_.Z9m(q),q.update())},r=function(){q.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",Z);this.playerApi.addEventListener("onVideoDataChange",w);this.playerApi.addEventListener("onStateChange",r);this.addOnDisposeCallback(function(){q.playerApi.removeEventListener("onVideoProgress",Z);q.playerApi.removeEventListener("onVideoDataChange",w);q.playerApi.removeEventListener("onStateChange",r)})};
var qp9=function(q,Z){q.cinematicContainerRenderer!==Z&&(q.cinematicContainerRenderer=Z,w1m(q),Vh(q),q.colorStoreUpdateJobId=_.v5.addLowPriorityJob(function(){var w;if((w=q.cinematicContainerRenderer.colorStore)!=null&&w.sampledColors){w=Infinity;for(var r=_.P(q.cinematicContainerRenderer.colorStore.sampledColors),Y=r.next();!Y.done;Y=r.next()){Y=Y.value;var C=Number(Y.key);C!==0&&C<w&&(w=C);C=_.uq(Y.value);q.colorStore.set(Y.key,C)}q.colorStoreTimeInterval=w}}))},w1m=function(q){q.colorStoreUpdateJobId&&
(_.v5.cancelJob(q.colorStoreUpdateJobId),q.colorStoreUpdateJobId=void 0);
q.colorStore.clear();q.currentStoryboardColor=void 0},rKr=function(q,Z){var w;
return(w=q.getStoryboardFrame(Z))==null?void 0:w.url};
dL.prototype.onPlayerStateChange=function(){this.update()};
dL.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
_.Z9m=function(q){var Z=q.getStoryboardFrame(0);Z&&(Z=new _.O3(Z.width/Z.columns,Z.height/Z.rows),_.Djv(q.currentStoryboardSize,Z)||(q.currentStoryboardSize=Z,q.publish("STORYBOARD_SIZE_CHANGED",q.currentStoryboardSize)))};
YpX=function(q,Z){q.currentStoryboardIndex=Z;q.pendingStoryboardIndex=NaN;Z=q.getStoryboardFrame(q.currentStoryboardIndex);q.currentStoryboard=new iXm(q.mosaics.get(Z.url).element,Z);q.publish("STORYBOARD_CHANGED",q.currentStoryboard);q.lastUpdateTime=(0,_.lp)()};
dL.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Vh=function(q){q.currentStoryboardIndex=NaN;q.pendingStoryboardIndex=NaN;q.currentStoryboard&&(q.currentStoryboard=void 0,q.publish("STORYBOARD_CHANGED",void 0));q.lastUpdateTime=NaN};
dL.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Vh(this);else{var q=this.playerApi.getPlayerState(1);if(q===-1||q===5||q===0)Vh(this);else if(isNaN(this.lastUpdateTime)||!((0,_.lp)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(q=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){q=""+Math.round(q*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var Z=this.colorStore.get(q);Z?Z!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=Z,this.currentStoryboard=new g1F(Z),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.lp)()):(_.bx(new _.df("Could not find color for timestamp: "+q,this.cinematicContainerRenderer)),Vh(this))}else Vh(this);else $7K(this,q)}};
var $7K=function(q,Z){var w=q.getStoryboardFrameIndex(Z);if(w!==q.currentStoryboardIndex&&w!==q.pendingStoryboardIndex){Z=rKr(q,w);var r=q.mosaics.get(Z);r?r.loaded&&YpX(q,w):(q.pendingStoryboardIndex=w,w=new y2a(Z),q.mosaics.set(Z,w),w.resolver.promise.then(function(){if(!q.isDisposed()&&!q.paused&&!isNaN(q.pendingStoryboardIndex)){var Y=rKr(q,q.pendingStoryboardIndex);if(Y){var C;(C=q.mosaics.get(Y))!=null&&C.loaded&&YpX(q,q.pendingStoryboardIndex)}else Vh(q)}}))}};
dL.prototype.getStoryboardFrameIndex=function(q){var Z=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(q,Z)};
dL.prototype.getStoryboardFrame=function(q){var Z=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,w,r;return((r=(w=this.playerApi).getStoryboardFrame)==null?void 0:r.call(w,q,Z))||null};
dL.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var HC=function(q,Z,w,r){r=r===void 0?!1:r;_.u6.call(this);this.cinematicContainerRenderer=Z;this.playerApi=w;this.theater=this.fullscreen=!1;var Y;this.ambientLightThemeEnabled=!r&&!!(Z==null?0:(Y=Z.config)==null?0:Y.enableInLightTheme);this.ambientFullscreenEnabled=r&&_.b("web_cinematic_fullscreen");this.container=document.createElement("div");q.appendChild(this.container);var C;if(_.b("web_cinematic_theater_mode")||_.b("web_cinematic_fullscreen")||(Z==null?0:(C=Z.config)==null?0:C.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);emm(this);q=this.ambientV2Container||this.container;this.backCanvas=mjA();this.frontCanvas=mjA();q.appendChild(this.backCanvas.element);q.appendChild(this.frontCanvas.element);this.storyboardManager=new dL(Z,this.playerApi);_.$i(this,this.storyboardManager);this.addEventListeners();CX5(this)?PXX(this,100+OR(this)*3*2,100+OR(this)*3*2):d7g(this);V2g(this,this.storyboardManager.currentStoryboard)};
_.z(HC,_.u6);var emm=function(q){q.ambientV2Container?O9w(q):(_.xA(q.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+H99(q)+", "+Wvr(q)+")"}),A2r()&&_.xA(q.container,"filter","blur("+_.m6("cinematic_watch_css_filter_blur_strength",40)+"px)"))},O9w=function(q){if(q.ambientV2Container){var Z=q.playerApi.getVideoAspectRatio();
_.xA(q.container,{"aspect-ratio":""+Z,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.xA(q.ambientV2Container,{"aspect-ratio":""+Z,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+H99(q)+", "+Wvr(q)+")"});A2r()&&_.xA(q.ambientV2Container,"filter","blur("+_.m6("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
HC.prototype.setFullscreen=function(q,Z){this.fullscreen=q;this.theater=!!Z;emm(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),q=this.storyboardManager.currentStoryboard,ogv(this),q&&u7A(this,q)};
HC.prototype.addEventListeners=function(){var q=this,Z=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(Y){V2g(q,Y)}),w=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){d7g(q)});
this.addOnDisposeCallback(function(){q.storyboardManager.unsubscribeByKey(Z);q.storyboardManager.unsubscribeByKey(w)});
if(this.ambientV2Container){var r=function(){O9w(q)};
this.playerApi.addEventListener("onVideoDataChange",r);this.addOnDisposeCallback(function(){q.playerApi.removeEventListener("onVideoDataChange",r)})}};
var d7g=function(q){if(!CX5(q)){var Z=q.storyboardManager.currentStoryboardSize;isNaN(Z.width)||isNaN(Z.height)||PXX(q,Number(Z.width)+OR(q)*3*2,Number(Z.height)+OR(q)*3*2)}},PXX=function(q,Z,w){q.backCanvas.element.width=Z;
q.backCanvas.element.height=w;q.frontCanvas.element.width=Z;q.frontCanvas.element.height=w},CX5=function(q){return q.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},V2g=function(q,Z){var w=q.frontCanvas.element.getAnimations()[0];
w?(w.pause(),q.backCanvas.context.globalAlpha=Number(getComputedStyle(q.frontCanvas.element).opacity),q.frontCanvas.element.style.opacity="0",w.finish()):q.backCanvas.context.globalAlpha=1;q.backCanvas.context.drawImage(q.frontCanvas.element,0,0,q.backCanvas.element.width,q.backCanvas.element.height);ogv(q);Z&&u7A(q,Z);Z=Z?q.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.m6("cinematic_watch_fade_out_duration",500);w=_.m6("cinematic_watch_transition_frame_rate")/1E3;var r=
{};w&&(r={easing:"steps("+Math.round(Z*w)+")"});q.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:Z,iterations:1},r));q.frontCanvas.element.style.opacity="1"},ogv=function(q){var Z=q.ambientLightThemeEnabled,w=q.ambientLightThemeEnabled||q.ambientFullscreenEnabled&&!_.b("web_cinematic_fullscreen_v2");
q.frontCanvas.context.fillStyle=q.theater&&Z||q.fullscreen&&w?"#000":"#0f0f0f";A2r()||(q.frontCanvas.context.filter="blur(0)");q.frontCanvas.context.fillRect(0,0,q.frontCanvas.element.width,q.frontCanvas.element.height)},u7A=function(q,Z){A2r()||(q.frontCanvas.context.filter="blur("+OR(q)+"px)");
q.frontCanvas.context.globalAlpha=_.m6("cinematic_watch_effect_opacity",.4);var w={offsetX:OR(q)*3,offsetY:OR(q)*3,theater:q.theater,fullscreen:q.fullscreen};CX5(q)&&(w.width=100,w.height=100);Z.drawToCanvas(q.frontCanvas.context,w);q.frontCanvas.context.globalAlpha=1},OR=function(q){var Z;
return(Z=q.cinematicContainerRenderer.config.blurStrength)!=null?Z:5},H99=function(q){var Z,w;
if((q.fullscreen||q.theater)&&((Z=q.cinematicContainerRenderer.config)==null?0:(w=Z.watchFullscreenConfig)==null?0:w.colorSourceWidthMultiplier))return q.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var r;return(r=q.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?r:q.cinematicContainerRenderer.config.colorSourceSizeMultiplier},Wvr=function(q){var Z,w;
if((q.fullscreen||q.theater)&&((Z=q.cinematicContainerRenderer.config)==null?0:(w=Z.watchFullscreenConfig)==null?0:w.colorSourceHeightMultiplier))return q.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var r;return(r=q.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?r:q.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
HC.prototype.disposeInternal=function(){_.u6.prototype.disposeInternal.call(this);this.container.remove()};
HC.prototype.clear=function(){V2g(this)};
HC.prototype.pause=function(){this.storyboardManager.pause()};var Lvd;Lvd=_.dM(function(){var q,Z,w=!((Z=(q=document.createElement("canvas")).getContext)==null||!Z.call(q,"2d")),r;q=!((r=CSS)==null||!r.supports("filter: blur(0)"));r=!!Element.prototype.animate&&!!Element.prototype.getAnimations;Z=_.b("web_cinematic_fullscreen")||_.b("web_cinematic_theater_mode")||_.b("web_cinematic_light_theme")||!1;var Y;return w&&q&&r&&(!Z||!((Y=CSS)==null||!Y.supports("aspect-ratio: 1 / 1")))});
_.WC=function(q,Z){_.sd.call(this);this.container=q;this.playerApi=Z;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=Spw(this);this.update()};
_.z(_.WC,_.sd);_.vgX=function(q){var Z=document.documentElement.hasAttribute("dark");q.isDarkModeEnabled=Z;q.update()};
_.jhd=function(q,Z){q.settingEnabled=Z;q.update()};
_.WC.prototype.setFullscreen=function(q,Z){this.fullscreen=q;this.theater=!!Z;this.update()};
_.t25=function(q,Z){q.cinematicContainerRenderer=Z;q.cinematicContainerRenderer&&(q.cinematicsVe=_.C6(q.isShorts()?227858:159022),_.AA(_.iy(),q.cinematicsVe),q.loggingClientData={watchCinematicContainerData:{presentationStyle:q.cinematicContainerRenderer.presentationStyle}});q.update()};
_.WC.prototype.isShorts=function(){var q,Z;return((q=this.cinematicContainerRenderer)==null?void 0:(Z=q.config)==null?void 0:Z.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.WC.prototype.isAllowed=function(){var q;if(q=Lvd()){var Z,w,r;q=((w=this.cinematicContainerRenderer)==null?void 0:w.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((r=this.cinematicContainerRenderer)==null||!r.colorStore)||((Z=this.cinematicContainerRenderer)==null?void 0:Z.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(q)if(_.b("web_cinematics_pausing")){var Y,C;q=this.isDarkModeEnabled||!!((Y=this.cinematicContainerRenderer)==
null?0:(C=Y.config)==null?0:C.enableInLightTheme)}else{var d,O;Y=!!((d=this.cinematicContainerRenderer)==null?0:(O=d.config)==null?0:O.enableInLightTheme)&&(_.zj("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);q=this.isDarkModeEnabled||Y}if(d=q){var H,L;d=!((L=(H=this.prefersReducedMotionQuery)==null?void 0:H.matches)!=null&&L)}return d};
_.WC.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var Spw=function(q){if(!_.b("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var Z=window.matchMedia("(prefers-reduced-motion: reduce)"),w=function(){q.update()};
Z.addListener(w);q.addOnDisposeCallback(function(){Z.removeListener(w)});
return Z}};
_.WC.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var q=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new HC(this.container,q,this.playerApi,this.isDarkModeEnabled),_.$i(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var Z=this.currentCinematicEffect;Z.cinematicContainerRenderer!==
q&&(Z.cinematicContainerRenderer=q,qp9(Z.storyboardManager,q),emm(Z));q=_.Hd();_.Wd(0,194,!0);q.save();q=_.b5();this.cinematicsVe&&q&&_.kK(q,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(q=_.b5(),this.cinematicsVe&&q&&_.KR(q,[this.cinematicsVe],!1,this.loggingClientData),_.Xg(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.My.Object.defineProperties(_.WC.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var hib;var yRl;_.$l({_template:function(){if(yRl!==void 0)return yRl;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=
q.content,w=Z.insertBefore;hib===void 0&&(hib=document.createElement("template"));var r=hib;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return yRl=q},
is:"tp-yt-iron-pages",behaviors:[_.SQ,_.tJ],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var UaD;_.khF=function(){if(_.b("kevlar_home_skeleton")&&!UaD){var q=document.querySelector("#home-page-skeleton");q&&(_.JT("hgcr"),_.Vb(q),UaD=!0)}};
UaD=!1;_.xV=new _.D("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var asy=function(q){return _.OLX(_.VRj(q&16777215))<.5},nVb=function(q,Z,w){var r=w.minimumRowsOfVideosBetweenSections===void 0?1:w.minimumRowsOfVideosBetweenSections;
return q<(w.minimumRowsOfVideosAtStart===void 0?2:w.minimumRowsOfVideosAtStart)||Z!==null&&q-Z<=r?!1:!0},Qjy=function(q,Z){var w=0,r=0;
q=_.P(q);for(var Y=q.next();!Y.done;Y=q.next()){var C=Y.value;if(C.richItemRenderer)C.richItemRenderer.rowIndex=r,C.richItemRenderer.colIndex=w++,w===Z&&(w=0,r++);else if(C.richGroupRenderer&&C.richGroupRenderer.numColumns!==void 0)C.richGroupRenderer.rowIndex=r,C.richGroupRenderer.colIndex=w,w+=C.richGroupRenderer.numColumns,w===Z&&(w=0,r++);else if(C.richSectionRenderer){var d=Y=void 0;if(C=_.J((Y=C)==null?void 0:(d=Y.richSectionRenderer)==null?void 0:d.content,_.Fn1))C.rowIndex=r++}}},EVu=function(q,
Z){var w=Z.contentElement;
Z=Z.rendererToTagNameMap;if(w&&Z&&Z.size!==0){for(var r=new Map,Y=_.P(w.children),C=Y.next();!C.done;C=Y.next()){C=C.value;var d=C.tagName.toLowerCase(),O=r.get(d);O||(O=[],r.set(d,O));O.push(C)}if(r.size!==0)for(Y=Math.min(q.length,w.children.length),C=new Map,d=0;d<Y;d++){O=Object.keys(q[d])[0];O=Z.get(O);if(!O)break;var H=C.get(O);H===void 0&&(H=0,C.set(O,H));var L=r.get(O);if(!L||H>=L.length)break;C.set(O,H+1);O=L[H];H=w.children[d];H!==O&&(_.Dv2=!0,_.h5j.set(O,!0),w.insertBefore(O,H),_.h5j.delete(O),
_.Dv2=!1)}}},xP8=function(q,Z,w,r,Y,C,d){r=r===void 0?{}:r;
if(!q||!q.length)return[];q=q.slice();var O=[],H=[];Y=null;for(var L=0,S=function(k){H.sort(function(f,eO){return eO.skippedOnRow-f.skippedOnRow});
for(var G,rz=(G=H.shift())==null?void 0:G.content;rz;)!rz.richSectionRenderer&&k||O.push(rz),G=void 0,rz=(G=H.shift())==null?void 0:G.content},v=[];q.length>0||H.length>0;){for(var R=[],B=Z;B>0;){var n=void 0,x=void 0,K=(x=H[0]&&H[0].skippedOnRow<L?(n=H.shift())==null?void 0:n.content:void 0)!=null?x:q.shift();
if(!K)break;if(K.richItemRenderer)n=K.richItemRenderer.targetId,x=void 0,n&&((x=d)==null?0:x.has(n))&&v.push(d.get(n)),R.push(K),B--;else if(K.richGroupRenderer&&K.richGroupRenderer.numColumns!==void 0)K.richGroupRenderer.numColumns<=B?(R.push(K),B-=K.richGroupRenderer.numColumns):B===Z&&K.richGroupRenderer.numColumns>Z?(R.push({richGroupRenderer:Object.assign({},K.richGroupRenderer,{numColumns:Z})}),B=0):H.push({content:K,skippedOnRow:L});else if(K.richSectionRenderer)if(nVb(L,Y,r)&&B===Z){O.push(K);
Y=L;L++;continue}else H.push({content:K,skippedOnRow:L});else if(K.continuationItemRenderer){S(!0);O.push(K);B=0;break}if(B===0)O.push.apply(O,_.Ju(R));else if(!w&&q.length===0){S(!1);O.push.apply(O,_.Ju(R));B=0;break}}L++;v=_.P(v);for(R=v.next();!R.done;R=v.next())O.push(R.value),L++;v=[]}Qjy(O,Z);C&&EVu(O,C);return O},UPy=function(q){var Z=q.data;
var w=q.uniqueId;q=q.overrides;var r,Y=((r=Z.timedAnimationData)==null?void 0:r.animationTiming)||[];return _.u("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.u(_.UmN,{settings:{uniqueId:w,timings:Y,experimentEnabled:Y.length>0,enabled:Y.length>0}},Thc(Z.buttonRenderer,{buttonRenderer:{buttonOverrides:q}})))},k8S=function(q){return q.talkToRecs},Isb=function(q,Z){if(Z){var w=_.sE().getState().entities.flowStateEntity,r=KfZ(q),Y=[Z];
r&&r!==Z&&Y.push(r);var C=!0,d;if(w&&q.flowStateEntityKey&&((d=w[q.flowStateEntityKey])==null?void 0:d.primaryButtonDisabled)!==void 0){var O;C=!((O=w[q.flowStateEntityKey])==null||!O.primaryButtonDisabled)}sjF(q,r!=null?r:Z,Y,C)}},M5S=function(q){return _.wF(_.sE(),function(Z){return Z.entities.flowStateEntity},function(Z,w){if(q.flowStateEntityKey){var r,Y=Z==null?void 0:(r=Z[q.flowStateEntityKey])==null?void 0:r.currentStepId,C;
w=w==null?void 0:(C=w[q.flowStateEntityKey])==null?void 0:C.currentStepId;C=_.sE().getState().talkToRecs;if(Y&&Y!==w){var d;Z=(Z==null?void 0:(d=Z[q.flowStateEntityKey])==null?void 0:d.stepIdStack)||Object.keys(C.stepStates);d=!ck7(C==null?void 0:C.stepStates[Y]);sjF(q,Y,Z,d)}}})},Ffq=function(q){return _.wF(_.sE(),k8S,function(Z){var w=KfZ(q);
if(w){var r=Object.keys(Z.stepStates);Z=!ck7(Z==null?void 0:Z.stepStates[w]);sjF(q,w,r,Z)}})},ck7=function(q){var Z=Object.keys((q==null?void 0:q.selectionStates)||{}).reduce(function(C,d){return C||(q==null?void 0:q.selectionStates[d].isSelected)},!1),w,r,Y=!!(q==null?0:(w=q.userQuery)==null?0:(r=w.userQuery)==null?0:r.trim());
return Z||Y},KfZ=function(q){if(q.flowStateEntityKey){var Z,w,r=(Z=_.sE().getState().entities.flowStateEntity)==null?void 0:(w=Z[q.flowStateEntityKey])==null?void 0:w.currentStepId;
if(r)return r}},sjF=function(q,Z,w,r){_.sE().dispatch(_.wp("flowStateEntity",q.flowStateEntityKey,{currentStepId:Z,
stepIdStack:w,key:q.flowStateEntityKey,primaryButtonDisabled:r}))},Nhl;var lsl;_.$l({_template:function(){if(lsl!==void 0)return lsl;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
var Z=q.content,w=Z.insertBefore;Nhl===void 0&&(Nhl=document.createElement("template"));var r=Nhl;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return lsl=q},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var G8D=new _.D("talkToRecsFlowRenderer");var pfq=new _.D("flowRootRenderer");var XfF=new _.D("chipsShelfViewModel");_.mP8=new _.D("engagementPanelSectionListRenderer");var AkZ=function(){this.horizontal=!1},fs6=function(q,Z){q.horizontal=Z};
AkZ.prototype.position=function(q,Z,w,r){r=r===void 0?1:r;q=this.delta(q)*r+Z;r=Math.max(Z,w);return q>=Math.min(Z,w)&&q<=r?q:w};
AkZ.prototype.axis=function(q){q=this.direction(q);return q==="up"||q==="down"?"Y":"X"};var j5=function(q,Z,w){Z=Z===void 0?_.hD():Z;this.target=q;this.manager=Z;this.touchAction=w;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
j5.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(_.Ju(this.events)));for(var q=_.P(this.events),Z=q.next();!Z.done;Z=q.next())this.listen(Z.value)}};
j5.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.Ju(this.events)));for(var q=_.P(this.events),Z=q.next();!Z.done;Z=q.next())this.unlisten(Z.value)}};
j5.prototype.listen=function(q){this.eventMap[q]&&this.target.addEventListener(q,this.eventMap[q])};
j5.prototype.unlisten=function(q){this.eventMap[q]&&this.target.removeEventListener(q,this.eventMap[q])};var tk=function(){AkZ.apply(this,arguments)};
_.z(tk,AkZ);tk.prototype.direction=function(q){var Z=q.detail;q=Z.deltaY;Z=Z.deltaX;return q&&!this.horizontal?q>0?"down":"up":Z&&this.horizontal?Z>0?"right":"left":"none"};
tk.prototype.distance=function(q){return Math.abs(this.delta(q))};
tk.prototype.delta=function(q){var Z=this.direction(q),w=q.detail;q=w.deltaX;w=w.deltaY;return Z==="up"||Z==="down"?w||0:q||0};
tk.prototype.velocity=function(q){var Z=this.direction(q),w=q.detail;q=w.velocityX;w=w.velocityY;return Math.abs(Z==="up"||Z==="down"?w||0:q||0)};_.Rj=function(q,Z,w,r,Y,C){Y=Y===void 0?new tk:Y;C=C===void 0?_.hD():C;j5.call(this,Z,C,r);var d=this;this.element=q;this.target=Z;this.config=w;this.input=Y;this.manager=C;this.events=["panstart","panmove","panend"];this.onPanStart=function(){d.config.draggingClass&&d.element.classList.add(d.config.draggingClass);d.config.startAction&&d.config.startAction()};
this.onPanMove=function(O){var H=DPl(d,O);if(H){d.move(O,H);H.fade&&d.fade(O,H);var L=d.input.direction(O);H.moveAction&&H.moveAction(hcu(d,O,H),L)}};
this.onPanEnd=function(O){var H,L,S,v,R,B;return _.V(function(n){if(n.nextAddress==1){d.animationRequestId&&cancelAnimationFrame(d.animationRequestId);d.animationRequestId=void 0;H=DPl(d,O);if(!H)return n.return();L=H;S=L.triggerAction;v=L.fade;R=L.disableFinish;B=L.translateBack;var x=d.input.velocity(O),K=d.input.distance(O),k=d.threshold(H);return x>.3&&K>10||K>k?R?n.jumpTo(6):v?_.W(n,ykb(d,O),6):_.W(n,i0u(d,O,H),6):B?_.W(n,d.translateBack(O),3):n.jumpTo(3)}n.nextAddress!=3&&S&&S();d.config.draggingClass&&
d.element.classList.remove(d.config.draggingClass);d.reset();_.ub(n)})};
q=Object.keys(w.triggers);this.directions=new Set(q);fs6(this.input,this.directions.has("right")||this.directions.has("left"))};
_.z(_.Rj,j5);_.Rj.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var DPl=function(q,Z){Z=q.input.direction(Z);return q.config.triggers[Z]};
_.Rj.prototype.move=function(q,Z){var w=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var r=w.input.axis(q),Y=w.input.position(q,w.config.startPosition,Z.endPosition,Z.moveRatio||1);w.element.style.transform="translate"+r+"("+Y+"px)";w.animationRequestId=void 0}))};
var hcu=function(q,Z,w){var r=w.moveRatio||1;w=Math.abs(q.config.startPosition-w.endPosition);return Math.min(q.input.distance(Z)*r,w)/w};
_.Rj.prototype.fade=function(q,Z){var w=Z.endOpacity;q=hcu(this,q,Z);q>0&&(this.element.style.opacity=""+(((w||0)-1)*q+1))};
_.Rj.prototype.threshold=function(q){return q.threshold?q.threshold:Math.abs(q.endPosition-this.config.startPosition)/3};
var i0u=function(q,Z,w){var r,Y,C,d,O,H,L;return _.V(function(S){if(S.nextAddress==1)return r=q.input.delta(Z)+q.config.startPosition,Y=q.input.axis(Z),C=w,d=C.endPosition,O=C.transitionEndPosition,L=(H=O)!=null?H:d,_.W(S,q.element.animate([{transform:"translate"+Y+"("+r+"px)"},{transform:"translate"+Y+"("+L+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);q.element.style.transform="translate"+Y+"("+L+"px)";_.ub(S)})};
_.Rj.prototype.translateBack=function(q){var Z=this,w,r;return _.V(function(Y){if(Y.nextAddress==1){if(!Z.element.style.transform)return Y.return();w=Z.input.axis(q);r=Z.config.startPosition;return _.W(Y,Z.element.animate([{transform:Z.element.style.transform},{transform:"translate"+w+"("+r+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}Z.element.style.transform="translate"+w+"("+r+"px)";_.ub(Y)})};
var ykb=function(q,Z){var w,r,Y,C;return _.V(function(d){if(d.nextAddress==1)return w=q.input.delta(Z)+q.config.startPosition,r=q.input.axis(Z),Y=w+70,C=q.element.style.opacity===""?1:q.element.style.opacity,_.W(d,q.element.animate([{transform:"translate"+r+"("+w+"px)",opacity:C},{transform:"translate"+r+"("+Y+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);q.element.style.transform="translate"+r+"("+Y+"px)";q.element.style.opacity="0";_.ub(d)})};var gVD=function(){var q=_.y5.apply(this,arguments)||this;q._noAccessors=!0;q.scrollRate=3;q.autoScrollAnimationStart=0;q.autoScrollPaused=!1;q.autoScrollRafId=0;return q};
_.z(gVD,_.y5);_.e=gVD.prototype;_.e.created=function(){var q=this;this.boundAutoScrollHandler=function(Z){q.autoScroll(Z)}};
_.e.detached=function(){this.hostElement.removeEventListener("mouseout",_.XN(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.XN(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.XN(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.e.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.XN(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.XN(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.XN(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.XN(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.XN(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.XN(this,this.endAutoScroll)),this.endAutoScroll())};
_.e.autoScroll=function(q){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=q);var Z;if(Z=!this.autoScrollPaused&&this.scrollTarget)Z=this.scrollTarget,Z=Z.scrollHeight-Z.scrollTop!==Z.clientHeight;Z&&(Z=1E3/this.scrollRate,q-=this.autoScrollAnimationStart,q>Z&&(this.scrollTarget.scrollTop+=Math.ceil(q/Z),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.e.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.e.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
var bf=gVD;bf.prototype.autoScrollEnabledChanged=bf.prototype.autoScrollEnabledChanged;_.X([_.F(),_.A("design:type",Object)],bf.prototype,"scrollRate",void 0);_.X([_.F(),_.A("design:type",Object)],bf.prototype,"scrollTarget",void 0);_.X([_.F(),_.A("design:type",Boolean)],bf.prototype,"autoScrollEnabled",void 0);_.X([_.M("autoScrollEnabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bf.prototype,"autoScrollEnabledChanged",null);bf=_.X([_.iq()],bf);_.q_8=[bf.prototype];var Z3c;_.xc(_.C0X,"yt-avatar-stack-view-model",{props:{className:_.zG,data:_.zG,isOverlay:_.zG,useMediumText:_.zG,decorations:_.zG,hideAvatar:_.zG}});var Thc=_.Px({buttonRenderer:_.Mh});_.mD(UPy);_.Mx(UPy,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var wUZ=function(){var q=_.N.apply(this,arguments)||this;q.hideJoinButtonBeforeSubscribed=_.b("hide_join_button_before_subscribed");q.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return q};
_.z(wUZ,_.N);_.e=wUZ.prototype;
_.e.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"}}}};
_.e.updateJoinButtonOverrides=function(){var q,Z;(q=_.E(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(Z=q.polymerController)==null||Z.set("overrides",this.joinButtonOverrides);if(q=_.E(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))q.overrides=this.joinButtonOverrides};
_.e.handleButtonRefreshAction=function(q){if(q=_.J(q,_.PQW))this.set("data.membershipButton",q.membershipButton),this.notifyPath("data.membershipButton")};
_.e.onYtServiceRequestError=function(q){_.W9(this.hostElement,q.detail.error.message)};
_.e.handleUnsubscribeAction=function(){var q,Z,w;((q=this.data)==null?void 0:(Z=q.membershipButton)==null?void 0:(w=Z.buttonRenderer)==null?void 0:w.style)==="STYLE_PRIMARY"&&_.E(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.My.Object.defineProperties(wUZ.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.subscriptionStateEntity)==null||!q.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var q,Z=(q=this.data)==null?void 0:q.membershipButton,w;q=(Z==null?void 0:Z.buttonRenderer)||_.J(Z==null?void 0:(w=Z.timedAnimationButtonRenderer)==null?void 0:w.buttonRenderer,_.tA);return(q==null?void 0:q.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(q==null?void 0:q.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(q==null?void 0:q.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
var Jk=wUZ;Jk.prototype.onYtServiceRequestError=Jk.prototype.onYtServiceRequestError;Jk.prototype.updateJoinButtonOverrides=Jk.prototype.updateJoinButtonOverrides;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Jk.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Jk.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Jk.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.LO),_.A("design:type",Object)],Jk.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Jk.prototype,"data",void 0);_.X([_.I("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.A("design:type",Object),_.A("design:paramtypes",[])],Jk.prototype,"hideJoin",null);_.X([_.F(),_.A("design:type",String)],Jk.prototype,"subscribeKey",void 0);_.X([_.F({selectorArgs:["subscribeKey"],selector:_.p6}),_.A("design:type",Object)],Jk.prototype,"subscriptionStateEntity",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Jk.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.X([_.I("subscriptionStateEntity"),_.F({reflectToAttribute:!0}),_.A("design:type",Object),_.A("design:paramtypes",[])],Jk.prototype,"subscribed",null);_.X([_.I("subscribed","data.membershipButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],Jk.prototype,"joinButtonOverrides",null);
_.X([_.M("joinButtonOverrides"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jk.prototype,"updateJoinButtonOverrides",null);_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Jk.prototype,"onYtServiceRequestError",null);Jk=_.X([_.l({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Jk);
_.p(Jk,"ytd-video-owner-renderer",function(){if(Z3c!==void 0)return Z3c;var q=document.createElement("template");_.a(q,'\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]]" 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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Z3c=q},{mode:1});var rs6;var Y_b=function(){var q=_.N.apply(this,arguments)||this;q.buttonUpdate=_.b("web_button_rework");q.dismissButtonOverrides=_.b("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;q.forceDarkTheme=!1;q.forceLightTheme=!1;q.dynamicTextHeight=94;q.hasOverflowButton=!1;q.isInfeedModernization=!1;return q};
_.z(Y_b,_.N);_.e=Y_b.prototype;_.e.computeUrlImg=function(q){if(q)return _.UL(q.thumbnails)};
_.e.getLogoHeight=function(q){return this.logoWithPadding(q)?"31":"24"};
_.e.getLogoClassName=function(q){return this.logoWithPadding(q)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.e.logoWithPadding=function(q){var Z,w;return(q=(Z=q.thumbnails)==null?void 0:(w=Z[0])==null?void 0:w.height)&&q%31===0?!0:!1};
_.e.sendImpressionEndpoints=function(q){q.impressionEndpoints&&_.qM(this.hostElement,q.impressionEndpoints)};
_.e.observeBasicPalette=function(){var q,Z,w=(q=this.data)==null?void 0:(Z=q.colorData)==null?void 0:Z.basicColorPaletteData;w?_.VB(this.hostElement,w):_.VB(this.hostElement,{})};
_.e.observeDataChanged=function(){var q;this.dynamicTextHeight=((q=this.data)==null?0:q.supplementalText)?74:94;var Z;this.hasSupplementalText=!((Z=this.data)==null||!Z.supplementalText);if(_.b("web_button_rework")){var w,r,Y,C;q=(w=this.data)==null?void 0:(r=w.actionButton)==null?void 0:(Y=r.buttonRenderer)==null?void 0:(C=Y.colorData)==null?void 0:C.basicColorPaletteData;var d,O,H;if(!((d=this.data)==null?0:(O=d.actionButton)==null?0:(H=O.buttonRenderer)==null?0:H.style)&&q){this.computeIsInfeedModernization(this.data)||
(q.borderColor=q.foregroundTitleColor);var L,S;this.set("data.actionButton.buttonRenderer",_.R4.unsafeClone((L=this.data)==null?void 0:(S=L.actionButton)==null?void 0:S.buttonRenderer))}}};
_.e.observeDataForCounterfactual=function(){if(_.b("kevlar_banner_cf_extra_logging")){var q;((q=this.data)==null?0:q.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.e.computeSupplementalStyle=function(){var q;if((q=this.data)!=null&&q.supplementalText){var Z,w,r;if((Z=this.data)==null?0:(w=Z.colorData)==null?0:(r=w.basicColorPaletteData)==null?0:r.foregroundActivatedColor)return q=_.oJ(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+q+"; --yt-endpoint-hover-color:"+q+"; --yt-endpoint-visited-color:"+q+"; --yt-formatted-string-bold-font-weight:700;"}};
_.e.computeForcedDarkTheme=function(){var q,Z,w,r=(q=this.data)==null?void 0:(Z=q.actionButton)==null?void 0:(w=Z.buttonRenderer)==null?void 0:w.style,Y,C,d;q=asy(((Y=this.data)==null?void 0:(C=Y.colorData)==null?void 0:(d=C.basicColorPaletteData)==null?void 0:d.backgroundColor)||0);return r&&q};
_.e.computeForcedLightTheme=function(){var q,Z,w,r=(q=this.data)==null?void 0:(Z=q.actionButton)==null?void 0:(w=Z.buttonRenderer)==null?void 0:w.style,Y,C,d;q=!asy(((Y=this.data)==null?void 0:(C=Y.colorData)==null?void 0:(d=C.basicColorPaletteData)==null?void 0:d.backgroundColor)||0);return r&&q};
_.e.computeHasOverflowButton=function(q){return!!q.overflowButton};
_.e.computeHasTitle=function(q){return!!q.title};
_.e.computeTitleMaxFontSize=function(q){return this.computeHasOverflowButton(q)?28:64};
_.e.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.e.computeIsInfeedModernization=function(){var q,Z,w,r,Y=(q=this.data)==null?void 0:(Z=q.actionButton)==null?void 0:(w=Z.buttonRenderer)==null?void 0:(r=w.colorData)==null?void 0:r.basicColorPaletteData;return(Y==null?void 0:Y.backgroundColor)===452984831||(Y==null?void 0:Y.backgroundColor)===218103808};
var z8=Y_b;z8.prototype.observeDataForCounterfactual=z8.prototype.observeDataForCounterfactual;z8.prototype.observeDataChanged=z8.prototype.observeDataChanged;z8.prototype.observeBasicPalette=z8.prototype.observeBasicPalette;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],z8.prototype,"ytdDismissibleItemBehavior",void 0);
_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],z8.prototype,"ytdGuideStateAwareBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],z8.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],z8.prototype,"buttonUpdate",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],z8.prototype,"hasSupplementalText",void 0);_.X([_.F(),_.A("design:type",Object)],z8.prototype,"dismissButtonOverrides",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.A("design:type",Boolean)],z8.prototype,"hasTitle",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.A("design:type",Object)],z8.prototype,"forceDarkTheme",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.A("design:type",Object)],z8.prototype,"forceLightTheme",void 0);_.X([_.F(),_.A("design:type",Object)],z8.prototype,"dynamicTextHeight",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.A("design:type",Object)],z8.prototype,"hasOverflowButton",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.A("design:type",Object)],z8.prototype,"isInfeedModernization",void 0);_.X([_.M("data.colorData.basicColorPaletteData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],z8.prototype,"observeBasicPalette",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],z8.prototype,"observeDataChanged",null);_.X([_.M("data.isVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],z8.prototype,"observeDataForCounterfactual",null);z8=_.X([_.l({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],z8);
_.p(z8,"ytd-banner-promo-renderer",function(){if(rs6!==void 0)return rs6;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return rs6=q},{mode:1});var $ab;var erl;var CvC;var PvZ=function(){return _.N.apply(this,arguments)||this};
_.z(PvZ,_.N);var dal=PvZ;_.X([_.F(),_.A("design:type",Object)],dal.prototype,"data",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],dal.prototype,"ytRendererBehavior",void 0);dal=_.X([_.l({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],dal);
_.p(dal,"ytd-hashtag-grid-tile-renderer",function(){if(CvC!==void 0)return CvC;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return CvC=q},{mode:1});var Vuu=function(){return _.N.apply(this,arguments)||this};
_.z(Vuu,_.N);Vuu.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Vuu.prototype.updateRichGridTrendingHashtagsVisibility=function(){var q,Z;if(((q=this.data)==null||!q.isExpanded)&&(Z=this.data)!=null&&Z.tiles){q=this.data.tiles.length;Z=q>this.richGridItemsPerRow?this.richGridItemsPerRow+1:q;var w=Math.ceil(q/Z);this.fullyVisibleRows=q%Z===1&&w===2?1:Math.min(w,2);this.isShowMoreVisible=this.fullyVisibleRows<w}};
Vuu.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
var Bf=Vuu;Bf.prototype.updateRichGridTrendingHashtagsVisibility=Bf.prototype.updateRichGridTrendingHashtagsVisibility;_.X([_.F(),_.A("design:type",Object)],Bf.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Number)],Bf.prototype,"fullyVisibleRows",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Bf.prototype,"isShowMoreVisible",void 0);_.X([_.F({selector:_.vX,value:0}),_.A("design:type",Number)],Bf.prototype,"richGridItemsPerRow",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Bf.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],Bf.prototype,"ytdReduxBehavior",void 0);_.X([_.M("data","richGridItemsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Bf.prototype,"updateRichGridTrendingHashtagsVisibility",null);
Bf=_.X([_.l({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Bf);
_.p(Bf,"ytd-hashtag-grid-shelf-renderer",function(){if(erl!==void 0)return erl;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return erl=q},{mode:1});var O3Z;var H3q;var Wiy=function(){var q=_.N.apply(this,arguments)||this;q.visibleVideos=[];q.hiddenVideos=[];q.modern=_.b("web_modern_buttons");q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.z(Wiy,_.N);_.e=Wiy.prototype;_.e.attached=function(){var q=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",q);this.onDarkModeToggledAction(q)};
_.e.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"}}}};
_.e.dataChanged=function(){var q=this;this.requestElementsPerRow();var Z,w;this.currentColorPalette=this.isDarkTheme?(Z=this.data)==null?void 0:Z.darkColorData:(w=this.data)==null?void 0:w.lightColorData;var r;if((r=this.currentColorPalette)==null?0:r.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.I_(this,function(){q.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.e.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.e.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.e.computeIsFirstFeedItem=function(q){return q};
_.e.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&this.set("isDarkTheme",q);this.data&&(this.currentColorPalette=q?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.e.getCurrentLogo=function(q,Z){if(q)return Z?q.darkLogoImage:q.lightLogoImage};
_.e.computeTitleStyle=function(q){var Z;if((Z=this.data)!=null&&Z.title&&q&&q.textPrimary!==void 0)return"color:"+_.oJ(q.textPrimary)+";"};
_.e.computeSubtitleStyle=function(q){var Z;if((Z=this.data)!=null&&Z.subtitle&&q&&q.textSecondary!==void 0)return"color:"+_.oJ(q.textSecondary)+";"};
_.e.computeDismissIconStyle=function(q){if(this.data&&this.data.dismissButton){var Z;if(q==null?0:(Z=q.dismissButtonColorData)==null?0:Z.foregroundTitleColor)return"--yt-button-color:"+_.oJ(q.dismissButtonColorData.foregroundTitleColor)+";";var w,r,Y,C;if((w=this.data.dismissButton)==null?0:(r=w.buttonRenderer)==null?0:(Y=r.colorData)==null?0:(C=Y.basicColorPaletteData)==null?0:C.foregroundTitleColor)return"--yt-button-color:"+_.oJ(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.e.computeOverflowButtonStyle=function(q){var Z;if(this.data&&this.data.overflowButton&&(q==null?0:(Z=q.dismissButtonColorData)==null?0:Z.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.oJ(q.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.oJ(q.dismissButtonColorData.foregroundTitleColor)+";"};
_.e.computeBackgroundStyle=function(q){if(q&&this.data){var Z="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var w=_.UL((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);w&&(Z+='background-image:url("'+w+'");')}q.backgroundColor!==void 0&&(Z+="background-color:"+_.uq(q.backgroundColor)+";");return Z}};
_.e.computeButton=function(){var q,Z=Object.assign({},_.J((q=this.data)==null?void 0:q.showMoreButton,_.tA));if(this.modern&&Z){Z.style="STYLE_DEFAULT";var w,r;if(q=(w=this.currentColorPalette)==null?void 0:(r=w.dismissButtonColorData)==null?void 0:r.foregroundTitleColor)Z.colorData={basicColorPaletteData:{foregroundTitleColor:q,borderColor:q}}}return Z};
_.e.shouldShowBottomButton=function(q,Z){return!(q==null?0:q.header)&&!(q==null||!q.primaryButton)&&Z<3};
_.e.checkExpanded=function(q){this.isExpanded=q&&q.content?this.hiddenVideos.length===0:!0};
_.e.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.e.getLogoHeight=function(q){return this.logoWithPadding(q)?"26":"20"};
_.e.getLogoImageId=function(q){return this.logoWithPadding(q)?"logo-image-with-padding":"logo-image"};
_.e.computeHasSectionHeader=function(q){return!!q.header};
_.e.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var q;if((q=this.data.primaryButton)==null?0:q.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 Z;((Z=this.data.dismissButton)==null?0:Z.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var w,r;((w=this.data)==null?0:(r=w.primaryButton)==null?0:r.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.e.setVisibleVideos=function(q){if(this.data&&this.data.content)if(this.data.content.length){var Z=this.data.content.length;this.data.header?q?(this.visibleVideos=this.data.content.slice(0,Math.min(Z,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(Z,this.slimItemsPerRow),Z)):(this.visibleVideos=this.data.content.slice(0,Math.min(Z,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(Z,this.elementsPerRow),Z)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(Z,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(Z,this.elementsPerRow),Z)):(this.visibleVideos=this.data.content.slice(0,Math.min(Z,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(Z,this.elementsPerRow-1),Z))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.e.setHasMovieRenderer=function(){var q;if((q=this.data)!=null&&q.content){var Z;this.hasMovieRenderer=!!_.J((Z=this.data)==null?void 0:Z.content[0],_.Wbm)}else this.hasMovieRenderer=!1};
_.e.requestElementsPerRow=function(){_.hy(this.hostElement,"yt-request-elements-per-row")};
_.e.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var q=_.P(this.hiddenMediaRenderers),Z=q.next();!Z.done;Z=q.next())Z.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(q=_.E(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&q.focus()}};
_.e.updateTitleSpec=function(){var q;(q=this.data)!=null&&q.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.e.logoWithPadding=function(q){var Z,w,r;return(q=(Z=this.getCurrentLogo(q,this.isDarkTheme))==null?void 0:(w=Z.thumbnails)==null?void 0:(r=w[0])==null?void 0:r.height)&&q%31===0?!0:!1};
_.e.onUpdateElementsPerRowAction=function(q,Z,w){q&&this.elementsPerRow!==q&&(this.elementsPerRow=q);w&&this.slimItemsPerRow!==w&&(this.slimItemsPerRow=w)};
var aj=Wiy;aj.prototype.slimItemsPerRowChanged=aj.prototype.slimItemsPerRowChanged;aj.prototype.elementsPerRowChanged=aj.prototype.elementsPerRowChanged;aj.prototype.dataChanged=aj.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],aj.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.vj),_.A("design:type",Object)],aj.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],aj.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],aj.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],aj.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],aj.prototype,"currentColorPalette",void 0);_.X([_.F(),_.A("design:type",Array)],aj.prototype,"visibleVideos",void 0);
_.X([_.F(),_.A("design:type",Array)],aj.prototype,"hiddenVideos",void 0);_.X([_.F(),_.A("design:type",Object)],aj.prototype,"primaryButton",void 0);_.X([_.F({reflectToAttribute:!0,value:3}),_.A("design:type",Number)],aj.prototype,"elementsPerRow",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],aj.prototype,"isDarkTheme",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],aj.prototype,"isExpanded",void 0);
_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],aj.prototype,"largeTitle",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],aj.prototype,"hasMovieRenderer",void 0);_.X([_.F(),_.A("design:type",Number)],aj.prototype,"slimItemsPerRow",void 0);_.X([_.F(),_.A("design:type",Boolean)],aj.prototype,"showLightVideoMetadata",void 0);_.X([_.F(),_.A("design:type",Boolean)],aj.prototype,"showDarkVideoMetadata",void 0);
_.X([_.F(),_.A("design:type",Number)],aj.prototype,"videoMetadataColor",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.SZ}),_.A("design:type",Boolean)],aj.prototype,"miniMode",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.A("design:type",Boolean)],aj.prototype,"isFirstFeedItem",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.A("design:type",Boolean)],aj.prototype,"hasSectionHeader",void 0);
_.X([_.F({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],aj.prototype,"roundedContainer",void 0);_.X([_.D5("#visible-video-container ytd-rich-grid-media"),_.A("design:type",Array)],aj.prototype,"visibleMediaRenderers",void 0);_.X([_.D5("#hidden-video-container ytd-rich-grid-media"),_.A("design:type",Array)],aj.prototype,"hiddenMediaRenderers",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],aj.prototype,"modern",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aj.prototype,"dataChanged",null);_.X([_.M("elementsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aj.prototype,"elementsPerRowChanged",null);_.X([_.M("slimItemsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aj.prototype,"slimItemsPerRowChanged",null);
aj=_.X([_.l({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],aj);
_.p(aj,"ytd-brand-video-shelf-renderer",function(){if(H3q!==void 0)return H3q;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return H3q=q},{mode:1});var o$V;var ujC=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.z(ujC,_.N);_.e=ujC.prototype;_.e.attached=function(){var q=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",q);this.onDarkModeToggledAction(q)};
_.e.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-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"}}}};
_.e.dataChanged=function(){this.requestElementsPerRow();var q,Z;this.currentColorPalette=this.isDarkTheme?(q=this.data)==null?void 0:q.darkColorData:(Z=this.data)==null?void 0:Z.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.e.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.e.computeIsFirstFeedItem=function(q){return q};
_.e.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&this.set("isDarkTheme",q);this.data&&(this.currentColorPalette=q?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(q),this.updateButtonPalette())};
_.e.shouldShowThumbnailInMetadata=function(q){return q<=1};
_.e.getCurrentLogo=function(q,Z){if(q)return Z?q.darkLogoImage:q.lightLogoImage};
_.e.computeVideoMetadataColor=function(){if(this.data){var q;if((q=this.currentColorPalette)==null?0:q.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.e.computeTitleStyle=function(q){var Z;if((Z=this.data)!=null&&Z.title&&q&&q.textPrimary!==void 0)return"color:"+_.oJ(q.textPrimary)+";"};
_.e.computeSubtitleStyle=function(q){var Z;if((Z=this.data)!=null&&Z.subtitle&&q&&q.textSecondary!==void 0)return"color:"+_.oJ(q.textSecondary)+";"};
_.e.computeDismissIconStyle=function(q){if(this.data&&this.data.dismissButton){var Z;if(q==null?0:(Z=q.dismissButtonColorData)==null?0:Z.foregroundTitleColor)return"--yt-button-color:"+_.oJ(q.dismissButtonColorData.foregroundTitleColor)+";";var w,r,Y,C;if((w=this.data.dismissButton)==null?0:(r=w.buttonRenderer)==null?0:(Y=r.colorData)==null?0:(C=Y.basicColorPaletteData)==null?0:C.foregroundTitleColor)return"--yt-button-color:"+_.oJ(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.e.computeOverflowButtonStyle=function(q){var Z;if(this.data&&this.data.overflowButton&&(q==null?0:(Z=q.dismissButtonColorData)==null?0:Z.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.oJ(q.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.oJ(q.dismissButtonColorData.foregroundTitleColor)+";"};
_.e.computeBackgroundStyle=function(q){if(q&&this.data){var Z="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var w=_.UL((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);w&&(Z+='background-image:url("'+w+'");')}q.backgroundColor!==void 0&&(Z+="background-color:"+_.uq(q.backgroundColor)+";");return Z}};
_.e.computeHasOverflowButton=function(q){return!!q.overflowButton};
_.e.getLogoHeight=function(q){return this.logoWithPadding(q)?"26":"20"};
_.e.getLogoImageId=function(q){return this.logoWithPadding(q)?"logo-image-with-padding":"logo-image"};
_.e.updateButtonPalette=function(){if(this.data){var q;if((q=this.data.primaryButton)==null?0:q.buttonRenderer){var Z;if((Z=this.currentColorPalette)==null?0:Z.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var w;if((w=this.currentColorPalette)==null?0:w.primaryButtonStyleType)this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}var r;if((r=this.data.dismissButton)==null?0:r.buttonRenderer){var Y;if((Y=this.currentColorPalette)==null?0:Y.dismissButtonColorData)this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData}}}};
_.e.requestElementsPerRow=function(){_.hy(this.hostElement,"yt-request-elements-per-row")};
_.e.updateTitleSpec=function(){var q;(q=this.data)!=null&&q.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")};
_.e.logoWithPadding=function(q){var Z,w,r;return(q=(Z=this.getCurrentLogo(q,this.isDarkTheme))==null?void 0:(w=Z.thumbnails)==null?void 0:(r=w[0])==null?void 0:r.height)&&q%31===0?!0:!1};
_.e.onUpdateElementsPerRowAction=function(q){q&&this.elementsPerRow!==q&&(this.elementsPerRow=q)};
var n0=ujC;n0.prototype.elementsPerRowChanged=n0.prototype.elementsPerRowChanged;n0.prototype.dataChanged=n0.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],n0.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],n0.prototype,"ytdDismissibleItemBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],n0.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],n0.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],n0.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],n0.prototype,"currentColorPalette",void 0);_.X([_.F(),_.A("design:type",Object)],n0.prototype,"primaryButton",void 0);
_.X([_.F({reflectToAttribute:!0,value:3}),_.A("design:type",Number)],n0.prototype,"elementsPerRow",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],n0.prototype,"isDarkTheme",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],n0.prototype,"titleSize",void 0);_.X([_.F(),_.A("design:type",Number)],n0.prototype,"videoMetadataColor",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.SZ}),_.A("design:type",Boolean)],n0.prototype,"miniMode",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.A("design:type",Boolean)],n0.prototype,"isFirstFeedItem",void 0);_.X([_.F({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],n0.prototype,"roundedContainer",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.A("design:type",Boolean)],n0.prototype,"hasOverflowButton",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],n0.prototype,"dataChanged",null);_.X([_.M("elementsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],n0.prototype,"elementsPerRowChanged",null);n0=_.X([_.l({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],n0);
_.p(n0,"ytd-brand-video-singleton-renderer",function(){if(o$V!==void 0)return o$V;var q=document.createElement("template");_.a(q,'\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" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" 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="header-container" hidden="[[data.overflowButton]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n          </div>\n        </div>\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)]]" hidden="[[!data.overflowButton]]" 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="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return o$V=q},{mode:_.NT("kevlar_poly_si_batch_j070")?1:2});var LiV;var S_y=_.xl(function(q){var Z=q.data;return _.u(_.aQ,{data:function(){return Z().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(Z().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var w=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":w=88;break a;default:w=88}return w},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return Z().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"zh"),jiV=_.xl(function(q){var Z=q.metadataRow;
var w=q.delimiter;return _.u(_.dA,{each:function(){return Z().textParts||[]},
keyBy:"INDEX"},function(r,Y){return _.u(_.lS,null,_.u(_.r6,{text:r,noWrap:!0,userInput:!0}),_.u(v$D,{delimiter:w,max:function(){return Z().textParts.length},
index:Y}))})},"Ah"),v$D=_.xl(function(q){var Z=q.delimiter;
var w=q.max;var r=q.index;return _.u(_.PF,{cond:function(){return(Z==null?void 0:Z())&&w()-1>r()},
then:function(){return _.u("span",null,Z)}})},"Bh"),tul=_.xl(function(q){var Z=q.data;
q={};return _.u("yt-profile-page-header-information-view-model",{class:_.GL("profile-page-header-information-view-model-wiz",(q["profile-page-header-information-view-model-wiz--mobile"]=!1,q))},_.u(_.PF,{cond:function(){return Z().onTap},
then:function(){return _.u(_.w6,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.oQ(Z().onTap)}},_.u(_.Hx,{data:function(){return Z().thumbnail}},{profilePageHeaderThumbnailViewModel:S_y}))},
else:function(){return _.u("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.u(_.Hx,{data:function(){return Z().thumbnail}},{profilePageHeaderThumbnailViewModel:S_y}))}}),_.u("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.u(_.PF,{cond:function(){return Z().onTap},
then:function(){return _.u(_.Hx,{data:function(){return Z().title}},{profilePageHeaderTitleViewModel:function(w){var r=w.data;
return _.u(_.w6,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.oQ(r().onTap)}},_.u(_.r6,{text:function(){return r().title}}))}})},
else:function(){return _.u(_.Hx,{data:function(){return Z().title}},{profilePageHeaderTitleViewModel:function(w){var r=w.data;
return _.u(_.r6,{text:function(){return r().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.u(_.Hx,{data:function(){return Z().metadata}},{profilePageHeaderMetadataViewModel:function(w){var r=w.data;
return _.u(_.PF,{cond:function(){return r().metadataRows},
then:function(Y){return _.u("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.u(_.dA,{each:Y,keyBy:"INDEX"},function(C,d){return _.u(_.lS,null,_.u(jiV,{metadataRow:C,delimiter:" \u2022 "}),_.u(v$D,{delimiter:" \u2022 ",max:function(){return Y().length},
index:d}))}))}})}})))},"Ch");
tul.idomCompat=!0;_.xc(tul,"yt-profile-page-header-information-view-model",{props:{data:_.zG}});var Rrc=function(){return _.N.apply(this,arguments)||this};
_.z(Rrc,_.N);Rrc.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
var b3Z=Rrc;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],b3Z.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],b3Z.prototype,"data",void 0);b3Z=_.X([_.l({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],b3Z);
_.p(b3Z,"ytd-effect-pivot-header-view-model",function(){if(LiV!==void 0)return LiV;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return LiV=
q},{mode:1});var Js7;var zrD=function(){return _.N.apply(this,arguments)||this};
_.z(zrD,_.N);zrD.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
var BGZ=zrD;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],BGZ.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],BGZ.prototype,"data",void 0);BGZ=_.X([_.l({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],BGZ);
_.p(BGZ,"ytd-source-pivot-header-renderer",function(){if(Js7!==void 0)return Js7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Js7=q},{mode:1});_.xc(_.xl(function(q){var Z=function(){return _.J(q.data().flowRoot,pfq)};
_.Ls(function(){var w=Z(),r=function(){},Y=function(){};
if(w){var C,d,O=(d=_.J((C=w.steps)==null?void 0:C[0],_.ZzS))==null?void 0:d.stepId;Isb(w,O||"");r=M5S(w);Y=Ffq(w)}_.SG(function(){r();r=function(){};
Y();Y=function(){}})});
return _.u("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.u(_.Gw2,{contentId:function(){return q.data().contentId}},function(){return _.u("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.u(_.PF,{cond:Z,
then:function(w){return _.u(_.Elc,{data:w})}}))}))},"Dh"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.zG}});_.xc(_.xl(function(){return _.u("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.u("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.u("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.u(_.Onl,null)),_.u(_.g32,{data:{rows:1},isExploreHub:!0}))},"Eh"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.xc(_.xl(function(q){var Z=q.data;var w=q.standardUnitMinWidth;q=_.Iw();var r=_.P((0,_.Ylp)(Z)),Y=r.next().value,C=r.next().value,d=function(){var H,L=(H=Y())==null?void 0:H.contents;return L==null||L.length===0},O=function(){C(Object.assign({},Y(),{contents:[]}))};
_.Xu(q,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var H=_.J(Z().chipsShelf,XfF);if(H!=null&&H!=null&&H.autoselectChipOnVisible){var L,S,v=_.J(H==null?void 0:(L=H.contents)==null?void 0:L[(S=H.autoselectedChipIndex)!=null?S:0],_.zg);v&&v.tapCommand&&_.Sp(v.tapCommand)}}});
return _.u("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:q},_.u(_.Gw2,{contentId:function(){return Z().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.u("div",null,_.u("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.u(_.Hx,{data:function(){return Z().header}},{sectionHeaderViewModel:function(H){return _.u(_.U0,{data:H.data,
disableHorizontalPadding:!0})}})),_.u("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.u(_.Hx,{data:function(){return Z().chipsShelf}},{chipsShelfViewModel:function(H){return _.u(_.cRJ,{data:H.data,
callback:O,enableSingleChipSelection:!0})}})),_.u("div",null,_.u(_.PF,{cond:d,
then:function(){return _.u("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.u(_.g32,{data:{rows:1},isExploreHub:!0}))}}),_.u(_.Hx,{data:function(){var H;
return(H=Y())==null?void 0:H.contents}},{richShelfRenderer:function(H){return _.u(_.Ce2,{data:H.data,
isInnerShelf:!0,standardUnitMinWidth:w})}})))}))},"Fh"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.zG,
standardUnitMinWidth:_.zG}});var aYC=function(){return _.N.apply(this,arguments)||this};
_.z(aYC,_.N);
aYC.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",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}}};
aYC.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
var QX=aYC;_.X([_.U(_.LO),_.A("design:type",Object)],QX.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],QX.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.Ms),_.A("design:type",Object)],QX.prototype,"ytContinuationHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],QX.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Number)],QX.prototype,"standardUnitMinWidth",void 0);QX=_.X([_.l({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],QX);
_.p(QX,"ytd-rich-section-renderer",function(){if(O3Z!==void 0)return O3Z;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return O3Z=q},{mode:_.NT("kevlar_poly_si_batch_j029")?
1:2});_.xc(_.J0q,"yt-profile-identity-info-view-model",{props:{data:_.zG,hideDivider:_.zG}});_.xc(_.jTF,"yt-page-header-view-model",{props:{data:_.zG,noPadding:_.zG,enableBanner:_.zG,cinematicContainerTopbarOffset:_.zG,allowCinematicContainerOverflow:_.zG,displayAsSidebar:_.zG,displayAsPanel:_.zG}});_.xc(_.xl(function(q){var Z=q.data;var w=function(){var Y;return(Y=Z().numColumns)!=null?Y:2},r=function(){return w()>1?3:2};
q={};return _.u("ytd-rich-grid-group",{class:_.GL("ytdRichGridGroupHost",(q.ytdRichGridGroupHostFirstColumn=function(){return Z().colIndex===0},q)),
style:_.y1({"--ytd-rich-grid-group-num-columns":w,"--ytd-rich-grid-items-per-group":r})},_.u("div",{class:"ytdRichGridGroupContents"},_.u(_.Hx,{data:function(){var Y;return(Y=Z().contents)==null?void 0:Y.slice(0,r())}},{richItemRenderer:function(Y){return _.u(_.YRp,{data:Y.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Gh"),"ytd-rich-grid-group",{props:{data:_.zG}});var n$Z=function(){var q=_.N.apply(this,arguments)||this;q.resizeOnObserverInit=!1;q.isInlinePreviewDisabled=_.b("web_disable_inline_preview");q.disableStickyFilterBar=!1;q.transparentBackgroundChipsBar=!1;q.hideChipsBar=!1;q.isWatchDefaultLayout=!0;q.continuationShowButton=!1;q.rowReducedHorizontalMargin=!1;q.useCompactList=!1;q.manualDownloadsPresent=!1;q.smartDownloadsPresent=!1;q.shouldRenderDownloadsBanner=!1;q.hasOptedIntoSmartDownloads=!1;q.elementsPerRow=4;q.typographyBump=!1;q.showGnomeContents=
!1;q.showExploreHubContents=!1;q.slimItemsPerRow=1;q.pageLoadingFromNavigation=!1;q.loggingRefactor=_.b("kevlar_rich_grid_logging_fix");q.resizeObserver=null;q.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"};q.rendererToTagNameMap=
new Map(Object.entries(q.contentMapping()).map(function(Z){var w=_.P(Z);Z=w.next().value;w=w.next().value;return[Z,w.component]}));
q.insertedContent=new Map;return q};
_.z(n$Z,_.N);_.e=n$Z.prototype;_.e.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var q=_.P(_.E(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),Z=q.next();!Z.done;Z=q.next())Z.value.useCompactList=this.useCompactList};
_.e.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var q=_.P(_.E(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.sizing=this.sizing,Z.typographyBump=this.typographyBump};
_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.e.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]]"},
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]]"}}}};
_.e.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}}};
_.e.attached=function(){document.addEventListener("yt-page-type-changed",_.XN(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.pV(this.resizeObserved,_.m6("rich_grid_resize_delay_ms",50),this)};
_.e.detached=function(){var q;(q=this.resizeObserver)==null||q.disconnect();document.removeEventListener("yt-page-type-changed",_.XN(this,this.onPageChange))};
_.e.insertRichSection=function(q){var Z=q.richItemTargetId;q=q.richSectionRendererToInsert;Z&&q&&(this.insertedContent.set(Z,q),this.reflowContent())};
_.e.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.e.computeIsInlinePreviewEnabled=function(q,Z,w){return _.b("web_disable_inline_preview")?!1:!w&&_.Xd8({miniplayerIsActive:q,miniplayerPlaybackState:Z})};
_.e.computeSizing=function(){var q=_.DD6(this.data);if(q||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return q?this.useCompactList?"COMPACT":q:this.miniMode?"COMPACT":_.b("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.e.updateItemMinAndMaxWidth=function(){var q=_.m6("rich_grid_max_item_width",500);q>0&&_.po(this.hostElement,{"--ytd-rich-grid-item-max-width":q+"px"});var Z;q=this.getRichItemMinWidth((Z=this.hostElement)==null?void 0:Z.clientWidth);q>0&&_.po(this.hostElement,{"--ytd-rich-grid-item-min-width":q+"px"})};
_.e.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.e.resizeObserved=function(){_.i5(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.e.navigateBackToHome=function(){_.b("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.b("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var q=_.t().resolve(_.U1).isOnWatch(),Z,w=((Z=_.jye(location.pathname))==null?void 0:Z.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(w)||q)&&this.gnomeContents&&_.b("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);q&&this.exploreHubContents&&_.b("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.sE().dispatch(_.mu({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.e.onPageChange=function(){var q=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.b("disable_chip_select_on_nav")||_.i5(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.v5.addJob(function(){q.pageLoadingFromNavigation=!1;_.b("disable_chip_select_on_nav")&&_.b("h5_reset_cache_and_filter_before_update_masthead")&&q.resetCacheAndIsFilteredFeed();q.setMasthead();q.maybeSetBigYoodle();q.forceRefreshAndLog();q.terminateVideoPreview();_.b("web_hide_gnome_until_user_navigates_back_to_home")&&
(q.dataChanged(),_.I_(q,function(){if(q.showGnomeContents){var Z=Array.from(_.E(q.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(r){r=_.E(r).querySelector("ytd-rich-shelf-renderer");return!!r&&r.isGnomeShelf()});
if(Z){Z=Z.offsetTop-q.contentsElement.offsetTop;var w=_.t().resolve(_.U1).getCurrentPage();w&&w.getPageScrollingElement().scrollTo({top:Z,behavior:"smooth"})}}}));
_.b("web_hide_explore_hub_until_user_navigates_back_to_home")&&(q.dataChanged(),_.I_(q,function(){if(q.showExploreHubContents&&!_.b("web_explore_hub_no_scroll")){var Z=Array.from(_.E(q.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(r){return!!r.querySelector("ytd-talk-to-recs-flow-renderer")});
if(Z){Z=Z.offsetTop-q.contentsElement.offsetTop;var w=_.t().resolve(_.U1).getCurrentPage();w&&w.getPageScrollingElement().scrollTo({top:Z,behavior:"smooth"})}}}))},8)):((_.b("web_hide_gnome_until_user_navigates_back_to_home")||_.b("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.e.dataChanged=function(){var q=this,Z=_.m6("web_rich_grid_row_margin",0);Z>0&&_.po(this.hostElement,{"--ytd-rich-grid-row-margin":Z+"px"});_.i5(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.I_(this,function(){q.updateRichItemGridPositions();q.contentsElement&&_.po(q.hostElement,{"--ytd-rich-grid-content-offset-top":q.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.e.initResizeObserver=function(){var q=this;if(window.ResizeObserver){var Z;(Z=this.resizeObserver)==null||Z.disconnect();var w=!1;this.resizeObserver=new ResizeObserver(function(){if(w){var r;(r=q.resizeObserver)==null||r.disconnect();var Y;(Y=q.throttledOnResize)==null||Y.fire();requestAnimationFrame(function(){var d;(d=q.throttledOnResize)==null||d.fire();q.initResizeObserver()})}else if(w=!0,q.resizeOnObserverInit){var C;
(C=q.throttledOnResize)==null||C.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.e.contentLengthChanged=function(){if(_.b("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.i5(this.hostElement,"ytd-rich-item-index-update-action")};
_.e.updateElementsPerRow=function(){_.i5(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.mu({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.mu({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.e.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.e.onRichShelfRendererCollapse=function(q){if(this.shownItems){var Z=q.detail;q=this.shownItems.findIndex(function(r){var Y,C;return((C=_.J(r==null?void 0:(Y=r.richSectionRenderer)==null?void 0:Y.content,_.Fn1))==null?void 0:C.trackingParams)===Z});
var w=q+1;q<0||w>=this.contentsElement.children.length||!this.shownItems[w].richItemRenderer||this.contentsElement.children[w].scrollIntoView({behavior:"smooth",block:"start"})}};
_.e.onSoftReloadPage=function(){this.scrollUpToTop()};
_.e.handleRerenderDownloadsData=function(){_.b("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.e.handlePlaylistRemoveVideosAction=function(q){var Z;if(((Z=_.J(q,_.PUK))==null?0:Z.setVideoIds)&&this.data&&this.data.contents){q=_.J(q,_.PUK).setVideoIds;for(Z=this.data.contents.length-1;Z>=0;){var w=_.J(this.data.contents[Z],_.ox);(w=w&&_.J(w.content,_.jE))&&w.setVideoId&&q.includes(w.setVideoId)&&this.splice("data.contents",Z,1);Z--}this.updateIndices()}};
_.e.updateIndices=function(){if(this.data&&this.data.contents)for(var q=0;q<this.data.contents.length;q++)this.set("data.contents."+q+".richItemRenderer.index",_.UE(String(q+1)))};
_.e.hasTopRowInlinePlayableVideoWithEndorsement=function(q){var Z;return!((Z=q.slice(0,this.getItemsPerRow()))==null||!Z.some(function(w){var r;w=_.J(w==null?void 0:(r=w.richItemRenderer)==null?void 0:r.content,_.Dr1);var Y;return(w==null?void 0:w.inlinePlaybackEndpoint)&&(w==null?void 0:(Y=w.thumbnailOverlays)==null?void 0:Y.some(function(C){return C.thumbnailOverlayEndorsementRenderer}))}))};
_.e.refreshGridLayoutNew=function(q,Z,w,r){var Y=r.postsPerRow;var C=r.slimItemsPerRow;var d=r.gameCardsPerRow;r=r.miniGameCardsPerRow;var O;if((O=this.data)==null||!O.contents||!this.containerWidth)return!1;var H;if((H=this.data.responsiveContainerConfiguration)==null?0:H.responsiveSize){var L=_.GHX(this.data.responsiveContainerConfiguration,this.containerWidth),S;O=_.F_(Object.assign({},L,{standardUnitMinWidth:(S=this.data)==null?void 0:S.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&L.isCompactList)}else O=_.F_({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(L=this.data)==null?void 0:L.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=O.typographyBump;S=!1;if(q||this.elementsPerRow!==O.numItems||this.postsPerRow!==Y||this.slimItemsPerRow!==C||this.gameCardsPerRow!==
d||this.miniGameCardsPerRow!==r||this.gutter!==O.gutter)S=this.elementsPerRow!==O.numItems,this.elementsPerRow=O.numItems,this.postsPerRow=Y,this.slimItemsPerRow=C,this.gameCardsPerRow=d,this.miniGameCardsPerRow=r,this.gutter=O.gutter,this.itemWidth=O.itemWidth,this.reflowContent(Z),_.po(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":O.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(w);this.ytdReduxBehavior.dispatch(_.mu({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:O.maxContainerWidth}));return S};
_.e.refreshGridLayout=function(q,Z){var w,r=(w=this.hostElement)==null?void 0:w.clientWidth;this.containerWidth=this.adjustRichGridWidth(r,!0);var Y;if((Y=this.data)==null||!Y.contents||!this.containerWidth)return q&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.b("rg_pending_reflow_ks")&&(q=!0,this.pendingForceReflow=!1);w=this.getRichItemMinWidth(r);var C=this.isShortsPanel?146:194,d=this.getMiniGameCardMinWidth(),O=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
r=w=this.calcElementsPerRow(w,O);(Y=w<=3&&this.miniModeAllowed())&&(w=this.calcElementsPerRow(240,4));var H=this.calcMaxSlimElementsPerRow(w,O,this.isDefaultGrid);O=this.calcElementsPerRow(C,H);var L=this.calcElementsPerRow(this.isCompactGrid?C:154,H);C=this.calcElementsPerRow(this.isCompactGrid?C:d,H);d=!1;if(this.sizing)return this.refreshGridLayoutNew(q,Z,Y,{postsPerRow:r,slimItemsPerRow:O,gameCardsPerRow:L,miniGameCardsPerRow:C});if(q||this.elementsPerRow!==w||this.postsPerRow!==r||this.slimItemsPerRow!==
O||this.gameCardsPerRow!==L||this.miniGameCardsPerRow!==C)d=this.elementsPerRow!==w,this.elementsPerRow=w,this.postsPerRow=r,this.slimItemsPerRow=O,this.gameCardsPerRow=L,this.miniGameCardsPerRow=C,this.reflowContent(Z),this.updateElementsPerRow(),_.po(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)&&_.po(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(Y);_.i5(this.hostElement,"yt-rich-grid-layout-refreshed");return d};
_.e.getRichItemMinWidth=function(q){var Z=_.m6("rich_grid_min_item_width",310);if(!_.b("kevlar_disable_min_width_override")){var w,r;Z=(r=(w=this.data)==null?void 0:w.minItemWidth)!=null?r:Z}return Z+_.lWX(q)};
_.e.calcMaxSlimElementsPerRow=function(q,Z,w){return(w===void 0?0:w)?q===1?2:q%2===0?_.b("web_shorts_2_by_3_reduce_items_per_row")&&q>=4?q/2*3-1:q/2*3:_.b("web_shorts_2_by_3_reduce_items_per_row")&&q>=3?q+1:q+2:Z*2};
_.e.adjustRichGridWidth=function(q,Z){var w=_.b("disable_rich_grid_guide_compensation");if(!this.isWatch&&!w){w=_.t().resolve(_.Gj(_.bc));var r=w==null?void 0:w.guideElement;if(!(!w||w.getData()||r!=null&&r.opened||w.getMiniGuideVisible()))if(w.canFitPersistentGuide(q)&&w.getGuideExpandsAutomatically()){var Y,C,d=Number((Y=window.getComputedStyle(this.hostElement))==null?void 0:(C=Y.getPropertyValue("--app-drawer-width"))==null?void 0:C.replace("px",""));q-=d||0}else if(w.canFitMiniGuide(q)){var O;
Y=Number((d=window.getComputedStyle(this.hostElement))==null?void 0:(O=d.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:O.replace("px",""));q-=Y||0}}q>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(q-=Z?32:48));return q};
_.e.calcElementsPerRow=function(q,Z){var w=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),r=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((w+r)/(q+r))||1,Z)};
_.e.reflowContent=function(q){var Z=this;if(!this.isReflowing){this.isReflowing=!0;var w,r,Y=!!((w=this.data)==null?0:(r=w.contents)==null?0:r.some(function(B){return _.J(B,_.i2)}));
w=this.getItemsPerRow();var C;r=(C=this.data)==null?void 0:C.reflowOptions;q&&(_.JT("rgr_s"),_.I_(this,function(){_.JT("rgr_nrf")}));
q={};(C=_.E(this.hostElement).querySelector("#contents"))&&(q={contentElement:C,rendererToTagNameMap:this.rendererToTagNameMap});C=(C=this.data.contents)?C.slice():[];var d=(_.b("web_hide_gnome_behind_feed_filter_chip")||_.b("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,O=_.b("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,H=-1,L=-1;if(this.isHomePage&&O){for(O=0;O<C.length;O++){var S=void 0,v=void 0;_.J((S=C[O])==null?void 0:
(v=S.richSectionRenderer)==null?void 0:v.content,G8D)&&(L=O)}L>-1&&(this.exploreHubContents=C.splice(L,1))}if(this.isHomePage&&d){for(L=0;L<C.length;L++)v=S=void 0,(O=_.J((S=C[L])==null?void 0:(v=S.richSectionRenderer)==null?void 0:v.content,_.Fn1))&&d&&(v=S=void 0,O=_.J((S=O)==null?void 0:(v=S.contents)==null?void 0:v[0],_.ox),S=void 0,_.J((S=O)==null?void 0:S.content,_.N2v)&&(H=L));H>-1&&(this.gnomeContents=C.splice(H,1))}var R=xP8(C,w,Y,r,this.getRichGridStyle(),q,this.insertedContent);Y=function(){Z.shownItems=
R;Z.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(R),_.I_(this,Y)):Y()}};
_.e.getFirstRowItems=function(q){for(var Z=[],w=0;w<q.length;w++){var r=void 0,Y=void 0,C=void 0,d=void 0,O=void 0,H=void 0;if(((r=q[w])==null?void 0:(Y=r.richItemRenderer)==null?void 0:Y.rowIndex)===0||((C=q[w])==null?void 0:(d=C.richGroupRenderer)==null?void 0:d.rowIndex)===0||((O=q[w])==null?void 0:(H=O.richSectionRenderer)==null?void 0:H.rowIndex)===0)Z.push(q[w]);else break}return Z};
_.e.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.e.handleChipCloudChipSelectAction=function(q,Z){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.b("web_hide_gnome_behind_feed_filter_chip")&&(Z?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.e.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.b("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.e.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.b("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.e.terminateVideoPreview=function(){_.i5(this.hostElement,"yt-terminate-video-preview-action")};
_.e.updateRichItemGridPositions=function(){var q={gridData:{gridColumnCount:this.elementsPerRow}},Z;if((Z=this.data)==null?0:Z.trackingParams)this.loggingRefactor?_.iy().stateChanged(this.data.trackingParams,q):(Z=_.b5())&&_.cd(Z,_.wa(this.data.trackingParams),q);_.i5(this.hostElement,"ytd-rich-item-index-update-action")};
_.e.miniModeAllowed=function(){return _.b("disable_channels_mini_mode")?!1:this.isChannelPage};
_.e.getMiniGameCardMinWidth=function(){return 154};
_.e.updateMiniMode=function(q){this.miniMode=this.miniModeAllowed()&&q;this.ytdReduxBehavior.dispatch(_.mu({type:"SET_RICH_GRID_MINI_MODE",payload:q}))};
_.e.isCurrentPage=function(){return location.pathname===this.pagePath};
_.e.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var q=_.t().resolve(_.U1).getCurrentPage();q&&q.setScrollTop(0)}};
_.e.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.e.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.e.maybeSetBigYoodle=function(){var q,Z=(q=this.data)==null?void 0:q.bigYoodle;this.bigYoodleData!==Z&&(this.bigYoodleData=Z)};
_.e.setMasthead=function(){var q;((q=this.data)==null?0:q.masthead)?this.mastheadData=this.data.masthead:_.b("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.e.getRichGridStyle=function(){var q,Z;return(Z=(q=this.data)==null?void 0:q.style)!=null?Z:"RICH_GRID_STYLE_UNKNOWN"};
_.e.onIsShortsGridChange=function(){var q=this.ytdReduxBehavior,Z=q.dispatch,w=this.getRichGridStyle();Z.call(q,_.mu({type:"SET_RICH_GRID_STYLE",payload:w}))};
_.My.Object.defineProperties(n$Z.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var q;return(((q=this.data)==null?void 0:q.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var q;return(((q=this.data)==null?void 0:q.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var q=_.t().resolve(_.U1).getCurrentPage(),Z,w,r;return(((Z=this.data)==null?void 0:Z.targetId)==="browse-feedFEsfv_audio_pivot"||_.b("web_enable_channel_pivot_panel")&&((w=this.data)==null?void 0:w.targetId)==="browse-feedFEsfv_channel_pivot"||_.b("web_enable_effect_pivot_panel")&&((r=this.data)==null?void 0:r.targetId)==="browse-feedFEsfv_effect_pivot")&&(q==null?void 0:q.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.b("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 q;return!((q=this.data)==null?0:q.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var q;return((q=_.t().resolve(_.U1).getCurrentPage())==null?void 0:q.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var q;return((q=_.t().resolve(_.U1).getCurrentPage())==null?void 0:q.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 q;return this.hideChipsBar||(((q=this.data)==null?void 0:q.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.b("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var q;return(((q=this.data)==null?void 0:q.targetId)||"")==="watch-next-feed"&&!_.b("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return((q=this.data)==null?0:q.enableContentSpecificAspectRatio)||((Z=this.data)==null?0:(w=Z.responsiveContainerConfiguration)==null?0:w.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.m6("web_continuation_handler_margin",0):0}}});
var ES=n$Z;ES.prototype.onIsShortsGridChange=ES.prototype.onIsShortsGridChange;ES.prototype.onReloadContinuationFinish=ES.prototype.onReloadContinuationFinish;ES.prototype.reflowContent=ES.prototype.reflowContent;ES.prototype.handleRerenderDownloadsData=ES.prototype.handleRerenderDownloadsData;ES.prototype.onRichShelfRendererCollapse=ES.prototype.onRichShelfRendererCollapse;ES.prototype.onRequestElementsPerRow=ES.prototype.onRequestElementsPerRow;ES.prototype.contentLengthChanged=ES.prototype.contentLengthChanged;
ES.prototype.dataChanged=ES.prototype.dataChanged;ES.prototype.onSizingChange=ES.prototype.onSizingChange;ES.prototype.onUseCompactListChange=ES.prototype.onUseCompactListChange;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ES.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.SQ),_.A("design:type",Object)],ES.prototype,"ironResizableBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],ES.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.Ms),_.A("design:type",Object)],ES.prototype,"ytContinuationHandlerBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],ES.prototype,"componentBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],ES.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ES.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0,selector:_.SZ}),_.A("design:type",Boolean)],ES.prototype,"miniMode",void 0);_.X([_.F({value:[]}),_.A("design:type",Array)],ES.prototype,"shownItems",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],ES.prototype,"isReflowing",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],ES.prototype,"isFilteredFeed",void 0);_.X([_.F({selector:_.nC2}),_.A("design:type",Boolean)],ES.prototype,"guideIsExpanded",void 0);
_.X([_.F({selectorArgs:["entitySelectorType"],selector:function(q,Z){if(_.b("kevlar_modern_downloads_page")&&Z&&Z!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(Z){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var w=q.entities;Z=_.oZ(w);var r=_.uF(w),Y=_.mk9(q),C=_.XVT(q);q=_.ADT(q);var d=_.jaT(w),O=_.dt(Z);w=_.Lz(w);return _.sH9(Z,r,d,Y,C,O,w,q);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return Z=_.oZ(q.entities),_.cee(Z);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return Z=
_.uf8(q.entities),_.Mo8(Z);default:_.bx(new _.df("Error: entitySelectorType defined but not matched in selector.",q,Z))}}}),
_.A("design:type",Object)],ES.prototype,"entityDrivenRichGridData",void 0);_.X([_.F(),_.A("design:type",Object)],ES.prototype,"resizeOnObserverInit",void 0);_.X([_.F(),_.A("design:type",Object)],ES.prototype,"bigYoodleData",void 0);_.X([_.F(),_.A("design:type",Object)],ES.prototype,"mastheadData",void 0);_.X([_.F(),_.A("design:type",Boolean)],ES.prototype,"isInlinePreviewDisabled",void 0);_.X([_.F(),_.A("design:type",Object)],ES.prototype,"disableStickyFilterBar",void 0);
_.X([_.F(),_.A("design:type",Object)],ES.prototype,"transparentBackgroundChipsBar",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ES.prototype,"hideChipsBar",void 0);_.X([_.F(),_.A("design:type",Object)],ES.prototype,"isWatchDefaultLayout",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ES.prototype,"continuationShowButton",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ES.prototype,"rowReducedHorizontalMargin",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ES.prototype,"useCompactList",void 0);_.X([_.F({selector:function(q){return _.uF(q.entities).length>0}}),
_.A("design:type",Object)],ES.prototype,"manualDownloadsPresent",void 0);_.X([_.F({selector:function(q){return _.oZ(q.entities).length>0}}),
_.A("design:type",Object)],ES.prototype,"smartDownloadsPresent",void 0);_.X([_.F({selector:_.XVT}),_.A("design:type",Object)],ES.prototype,"shouldRenderDownloadsBanner",void 0);_.X([_.F({selector:_.mk9}),_.A("design:type",Object)],ES.prototype,"hasOptedIntoSmartDownloads",void 0);_.X([_.M("useCompactList"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ES.prototype,"onUseCompactListChange",null);
_.X([_.M("sizing","typographyBump"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ES.prototype,"onSizingChange",null);_.X([_.F({selector:_.Ukz}),_.A("design:type",Number)],ES.prototype,"miniplayerPlaybackState",void 0);_.X([_.F({selector:_.jZ}),_.A("design:type",Boolean)],ES.prototype,"miniplayerIsActive",void 0);
_.X([_.F({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.A("design:type",Boolean)],ES.prototype,"isInlinePreviewEnabled",void 0);_.X([_.F({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.A("design:type",String)],ES.prototype,"sizing",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ES.prototype,"elementsPerRow",void 0);
_.X([_.F(),_.A("design:type",Object)],ES.prototype,"typographyBump",void 0);_.X([_.F(),_.A("design:type",Number)],ES.prototype,"itemWidth",void 0);_.X([_.fo("#header"),_.A("design:type",HTMLElement)],ES.prototype,"headerElement",void 0);_.X([_.fo("#contents"),_.A("design:type",HTMLElement)],ES.prototype,"contentsElement",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ES.prototype,"dataChanged",null);
_.X([_.g3("data.contents.length"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ES.prototype,"contentLengthChanged",null);_.X([_.m2("yt-request-elements-per-row"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ES.prototype,"onRequestElementsPerRow",null);
_.X([_.m2("yt-rich-shelf-renderer-collapse"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ES.prototype,"onRichShelfRendererCollapse",null);_.X([_.g3("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ES.prototype,"handleRerenderDownloadsData",null);
_.X([_.I("data"),_.A("design:type",String),_.A("design:paramtypes",[])],ES.prototype,"entitySelectorType",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.targetId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ES.prototype,"isSub",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.targetId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ES.prototype,"isWatch",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data.targetId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ES.prototype,"isShortsPanel",null);_.X([_.F({reflectToAttribute:!0}),_.I("isWatch"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ES.prototype,"reducedTopMargin",null);_.X([_.F({reflectToAttribute:!0}),_.I("data","isWatch","isWatchDefaultLayout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ES.prototype,"noTopMargin",null);
_.X([_.F({reflectToAttribute:!0}),_.I("isInlinePreviewEnabled","shownItems"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ES.prototype,"topRowEndorsement",null);_.X([_.I("data.header"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ES.prototype,"hideHeader",null);_.X([_.m2("yt-rich-grid-reflow"),_.A("design:type",Function),_.A("design:paramtypes",[Boolean]),_.A("design:returntype")],ES.prototype,"reflowContent",null);
_.X([_.m2("yt-reload-continuation-finish"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ES.prototype,"onReloadContinuationFinish",null);_.X([_.I("data"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ES.prototype,"isSlimGrid",null);_.X([_.I("data"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ES.prototype,"isShortsGrid",null);
_.X([_.I("data","isSlimGrid","isShortsGrid"),_.F(),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ES.prototype,"noRichItemGutterMargins",null);_.X([_.I("data"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ES.prototype,"isShortsGridSlim",null);_.X([_.I("data"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ES.prototype,"isCompactGrid",null);
_.X([_.I("data"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ES.prototype,"isDefaultGrid",null);_.X([_.I("data.targetId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ES.prototype,"hideChipsBarOnHome",null);_.X([_.I("data.targetId"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ES.prototype,"hideChipsBarOnWatch",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ES.prototype,"onIsShortsGridChange",null);_.X([_.I("data.enableContentSpecificAspectRatio"),_.F(),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ES.prototype,"force16By9ThumbnailAspectRatio",null);_.X([_.I("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],ES.prototype,"continuationTriggerOffset",null);ES=_.X([_.l({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],ES);
_.p(ES,"ytd-rich-grid-renderer",function(){if($ab!==void 0)return $ab;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return $ab=q},{mode:2});var Qi8;var E$Z;var xac=function(){return _.N.apply(this,arguments)||this};
_.z(xac,_.N);var TGD=xac;_.X([_.F(),_.A("design:type",Object)],TGD.prototype,"data",void 0);TGD=_.X([_.dx({is:"yt-alert-renderer",disableElementRegistration:!0})],TGD);
_.p(TGD,"yt-alert-renderer",function(){if(E$Z===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Qi8===void 0&&(Qi8=document.createElement("template"));var r=Qi8;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);E$Z=q}q=E$Z;return q},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.Hnb=_.xl(function(q){var Z=_.A7(),w=_.t().resolve(_.JE);_.oz(function(){requestAnimationFrame(function(){var Y;(Y=Z.lottieEl)==null||Y.addEventListener("DOMLoaded",function(){var C;(C=q.onLottieLoaded)==null||C.call(q)})})});
var r={};return _.u("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var Y;return((Y=q.data)==null?void 0:Y.call(q).targetId)||""}},_.u(_.pn,{className:_.GL((r.ytChatLoadingViewModelRtl=w==="rtl",r)),
animationName:"YOUCHAT_LOADER",data:function(){var Y;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:(Y=q.data)==null?void 0:Y.call(q).animationUrl}}},
animationRef:Z}))},"If");
}catch(e){_._DumpException(e)}
try{
var GFq;GFq=function(q,Z){Z=Z.width!==window.innerWidth||Z.height!==window.innerHeight;document.visibilityState==="hidden"||Z||q&&_.tY(q)};
_.pOS=function(q,Z){Z=Z===void 0?{}:Z;var w,r,Y,C,d,O,H,L,S,v,R,B;return _.V(function(n){switch(n.nextAddress){case 1:w=Z;r=w.shouldWrap===void 0?!0:w.shouldWrap;Y=w.skipTransitionTimeoutMs===void 0?300:w.skipTransitionTimeoutMs;C=w.beforeTransition;d=w.afterTransition;if(!r||!document.startViewTransition||document.visibilityState==="hidden")return n.return(q());O={width:window.innerWidth,height:window.innerHeight};(H=C)==null||H();_.d9(n,2);L=document.startViewTransition(q);S=setTimeout(function(){L.skipTransition();
var x;(x=d)==null||x()},Y);
return _.W(n,L.ready,4);case 4:return clearTimeout(S),_.W(n,L.finished,5);case 5:clearTimeout(S);(v=d)==null||v();_.QL(n,0);break;case 2:R=_.o3(n),(B=d)==null||B(),GFq(R,O),_.ub(n)}})};
_.P9=function(q){return q.watch.isTheaterMode};
_.XOu=function(q){var Z=_.dX("DIV");q&&(Z.className=q);Z.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";q=_.dX("DIV");_.IFp(q,"200px","200px");Z.appendChild(q);document.body.appendChild(Z);q=Z.offsetWidth-Z.clientWidth;_.Vb(Z);return q};
_.du=function(){for(var q=Array(36),Z=0,w,r=0;r<36;r++)r==8||r==13||r==18||r==23?q[r]="-":r==14?q[r]="4":(Z<=2&&(Z=33554432+Math.random()*16777216|0),w=Z&15,Z>>=4,q[r]=_.$lD[r==19?w&3|8:w]);return q.join("")};/*

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 mU6=_.Fr(['<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>']),
AYC=_.m9X(mU6);AYC.setAttribute("style","display: none;");document.head.appendChild(AYC.content);_.V$=_.grT(_.XOu);var fUu;var DUc;var h78=function(){var q=_.N.apply(this,arguments)||this;q.icon=null;return q};
_.z(h78,_.N);h78.prototype.dismiss=function(){_.hy(this.hostElement,"yt-live-chat-error-message-dismiss")};
h78.prototype.computeIcon=function(q){return q&&q.iconType?"yt-icons:"+q.iconType.toLowerCase():"yt-icons:close"};
var OH=h78;_.X([_.F(),_.A("design:type",Object)],OH.prototype,"data",void 0);_.X([_.F({computed:"computeIcon(data.icon)"}),_.A("design:type",Object)],OH.prototype,"icon",void 0);OH=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],OH);
_.p(OH,"yt-live-chat-error-message-renderer",function(){if(DUc===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;fUu===void 0&&(fUu=document.createElement("template"));var r=fUu;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);DUc=q}q=DUc;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var E8a,xS6,TbK,US5,kug,UR,FFK,Nba,llr,Gu8,pyA,Xy6,sR,mSK,Ac8,flw,DSK,hZr,ycv,ilI,g86,qXm,ZA5,w89,rIF,YXd,$Kv,edm,CgA,Pgg,dKa,V6r,OAw,HAA,Wmm,ovA,u5A,Lmd,SXX,vvI,j99,bA9,zd6,aFa,nvv,Q9a,Ev9,t69,Rda,UKg,kaI,KmF,s99,IFX,xKF,Fmm;E8a=function(q,Z,w){Z=Z===void 0?5:Z;if(Z!==0){var r=typeof q==="function"?q():document.querySelector(q);r?(w==null?0:w.enableSmartFocus)?_.x4j(r):r.focus():setTimeout(function(){E8a(q,Z-1,w)},500)}};
xS6=function(q,Z){return _.iI(q.entities,"timedMarkersListSyncEntity",Z)};
TbK=function(q,Z){return _.iI(q.entities,"liveReactionsDataEntity",Z)};
US5=function(q,Z){q=_.iI(q.entities,"booleanEntity",Z);return!(!q||!q.value)};
kug=function(q,Z){var w=_.b5();w&&q&&_.T7(w,_.wa(q),Z)};
_.KFr=function(){_.b("web_watch_log_theater_mode")&&_.PEX("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.sq6=function(q,Z,w){if(!q.includes("START_TIME_PLACEHOLDER")||!q.includes("END_TIME_PLACEHOLDER"))return q;var r=new Date(0),Y=new Date(0);r.setUTCMilliseconds(Z);Y.setUTCMilliseconds(w);return q.replace("START_TIME_PLACEHOLDER",_.QR(r,7)).replace("END_TIME_PLACEHOLDER",_.QR(Y,7))};
UR=function(q){return q.watch.isWatchActive};
_.kW=function(q){return q!=null&&q.watch?q.watch.isWatchFullscreen:!1};
_.Ilw=function(q){return q.watch.watchWindowSize};
_.cc8=function(q){return _.P9(q)||_.kW(q)||_.WQT(q)};
_.MV5=function(q){return!_.cc8(q)};
_.KT=function(q){return q.watch.watchScrollTop};
FFK=function(q){return q.watch.isLiveChatCollapsed};
Nba=function(q){return q.watch.openEngagementPanels};
llr=function(q){switch(q){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}};
Gu8=function(q,Z,w){var r=_.oQ(w);q&&Z&&r&&q.getPlayerPromise().then(function(Y){_.RJT(r)&&_.jX();(new _.jd(Y)).executeCommand(r,Z);_.b("continue_playback_on_desktop_companion_click")||Y.pauseVideo()})};
pyA=function(q){var Z=_.K6(),w;if(w=_.Eq("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var r;w=(r=w())==null?void 0:r.layoutId}else w=null;Gu8(Z,w,q)};
Xy6=function(q){var Z=_.K6(),w;if(w=_.Eq("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var r;w=(r=w())==null?void 0:r.layoutId}else w=null;Gu8(Z,w,q)};
sR=function(q,Z){var w=q<0?"-":"";q=Math.abs(q);var r=Math.floor(q/3600),Y=Math.floor(q)%3600,C=Math.floor(Y/60);Y=Math.floor(Y)%60;var d="";(Z===void 0?0:Z)&&(d="."+Math.round((q-Math.floor(q))*10));return r>0?w+r+":"+(C<10?"0"+C:""+C)+":"+(Y<10?"0"+Y:""+Y)+d:w+C+":"+(Y<10?"0"+Y:""+Y)+d};
mSK=function(q){var Z=q.match(/[^0-9:\.]/g);if(Z&&Z.length>0)return null;q=q.split(":");if(q.length===0||q.length>3)return null;Z=1;for(var w=0;q.length>0;){var r=q.pop();if(r===void 0)break;var Y=Number(r);if(r===""||isNaN(Y))return null;w+=Y*Z;Z*=60}return w};
Ac8=function(q,Z,w,r){q=Math.max(w,q);Z=Math.min(Z,r-w);q+Z>r?(w=r,q=w-Z):w=q+Z;return{start:q,end:w}};
flw=function(q,Z,w,r,Y,C){q<w?q=w:q+Y>r&&(q=r-Y);Z>r&&(Z=r);Z=Math.min(q+C,Math.max(q+Y,Z));return{start:q,end:Z}};
DSK=function(q,Z,w,r,Y,C){Z>r?Z=r:Z-Y<w&&(Z=w+Y);q<w&&(q=w);q=Math.min(Z-Y,Math.max(Z-C,q));return{start:q,end:Z}};
hZr=function(q){return _.b("web_transcript_cue_id_killswitch")?String(q):"ytd-transcript-renderer_"+q};
ycv=function(q){return _.b("web_transcript_cue_id_killswitch")?!0:q.startsWith("ytd-transcript-renderer")};
ilI=function(q){var Z=_.K6(),w;if(w=_.Eq("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var r;w=(r=w())==null?void 0:r.layoutId}else w=null;Gu8(Z,w,q)};
g86=function(q,Z){return _.iI(q.entities,"youchatPendingResponseEntity",Z)};
qXm=function(q){return function(Z){_.Bp(_.wp("youchatPendingResponseEntity",q,{entityKey:q,isPendingResponse:Z}))}};
ZA5=function(q,Z){return _.iI(q.entities,"booleanEntity",Z)};
w89=function(){return function(q){_.Bp(_.wp("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:q}))}};
rIF=function(q){q==null||q.addEventListener("DOMLoaded",function(){q.goToAndPlay(q.totalFrames-48,!0)})};
YXd=function(q){q.style.height="auto";q.style.height=Math.min(q.scrollHeight||20,80)+"px"};
$Kv=function(q,Z){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:Z}}],insertByPositionInSection:{sectionTargetId:q,position:"INSERTION_POSITION_LAST"}}}]}}}};
edm=function(q){var Z=_.K6(),w;w=(w=_.Eq("yt.www.ads.eventcache.getLastCompanionData"))?(w=w())&&w.layoutId:null;Gu8(Z,w,q)};
CgA=function(q){var Z=_.K6(),w;w=(w=_.Eq("yt.www.ads.eventcache.getLastCompanionData"))?(w=w())&&w.layoutId:null;Gu8(Z,w,q)};
Pgg=function(q,Z){Z=Z===void 0?!1:Z;if(q.simpleText)q=[{text:q.simpleText}];else{var w;q=((w=q.runs)!=null?w:[]).map(function(r){return Object.assign({},r)})}if(Z)for(Z=_.P(q),w=Z.next();!w.done;w=Z.next())w.value.bold=!0;
return q};
dKa=function(q){var Z=q.startEndTimeTemplate,w=q.startTimeUtcMillis;q=q.endTimeUtcMillis;if(Z&&w&&q)return _.UE(_.sq6(_.kO(Z),Number(w),Number(q)))};
V6r=function(q,Z){var w,r,Y=q==null?void 0:(w=q.viewCount)==null?void 0:(r=w.videoViewCountRenderer)==null?void 0:r.shortViewCount;if(!Z&&Y)return Y;var C,d;return q==null?void 0:(C=q.viewCount)==null?void 0:(d=C.videoViewCountRenderer)==null?void 0:d.viewCount};
OAw=function(q,Z){var w=q==null?void 0:q.relativeDateText;return!Z&&w?[w,!0]:[q==null?void 0:q.dateText,!1]};
HAA=function(q,Z,w,r,Y){r=r===void 0?!0:r;Y=Y===void 0?"":Y;var C=V6r(q,Z),d=_.P(OAw(q,Z)),O=d.next().value;d=d.next().value;Z=Z?q==null?void 0:q.sponsorsOnlyFirstTimeLongText:q==null?void 0:q.sponsorsOnlyFirstTimeShortText;var H=[];w&&C&&H.push(C);!w&&d||!O||H.push(O);q=[].concat(_.Ju(H),[Z,q==null?void 0:q.stationName,q==null?void 0:q.rating,q?dKa(q):void 0,q==null?void 0:q.upNextProgramText,q==null?void 0:q.superTitleLink]).filter(function(L){return!!L});
w={runs:[]};for(C=0;C<q.length;C++)w.runs.push.apply(w.runs,_.Ju(Pgg(q[C],r))),C<q.length-1&&w.runs.push({text:" "+Y+" ",bold:r});return w};
Wmm=function(q){if(q)return{runs:[{text:q,bold:!0}]}};
ovA=function(q){var Z,w,r,Y;if(q=q==null?void 0:(Z=q.contents)==null?void 0:(w=Z.twoColumnWatchNextResults)==null?void 0:(r=w.results)==null?void 0:(Y=r.results)==null?void 0:Y.contents){var C,d;return(d=(C=q.find(function(O){return!!O.videoPrimaryInfoRenderer}))==null?void 0:C.videoPrimaryInfoRenderer)==null?void 0:d.updatedMetadataEndpoint}};
u5A=function(q,Z){var w;return(w=q.sourceConfigs)==null?void 0:w.find(function(r){return r.videoId===Z})};
Lmd=function(q){return q==="End of video"||q==="End of playlist"};
SXX=function(q){var Z,w,r,Y;return(Z=q.getWatchNextResponse())==null?void 0:(w=Z.contents)==null?void 0:(r=w.twoColumnWatchNextResults)==null?void 0:(Y=r.playlist)==null?void 0:Y.playlist};
vvI=function(q){var Z,w,r,Y,C,d;return(Z=SXX(q))==null?void 0:(w=Z.playlistButtons)==null?void 0:(r=w.menuRenderer)==null?void 0:(Y=r.topLevelButtons)==null?void 0:(C=Y[0])==null?void 0:(d=C.playlistLoopButtonRenderer)==null?void 0:d.playlistLoopStateEntityKey};
j99=function(q){var Z=_.t().resolve(_.b8),w;return(Z=(w=_.J(Z.getAutoplayEndpoint(),_.ck))==null?void 0:w.playlistId)&&Z===q};
bA9=function(q,Z,w,r,Y){function C(){_.v5.cancelJob(Ib);var d=t69(Z,w/q.getPlaybackRate()),O=d.hours,H=d.minutes;d=(d.seconds*1E3||6E4)/q.getPlaybackRate();q.setVideoTimeLeft(Rda(O,H));r&&q.getPlayerState()!==0&&q.setSleepTimerTimeLeft(Rda(O,H,!0));(O>0||H>0)&&!Y&&(Ib=_.$L(_.v5,C,d))}
_.v5.cancelJob(Ib);Ib=_.$L(_.v5,C)};
zd6=function(q,Z,w){function r(){_.v5.cancelJob(JIa);var Y=t69(Z,w),C=Y.hours;Y=Y.minutes;var d=6E4/q.getPlaybackRate();if(C>0||Y>0)q.setSleepTimerTimeLeft(Rda(C,Y,!0)),JIa=_.$L(_.v5,r,d)}
_.v5.cancelJob(JIa);JIa=_.$L(_.v5,r)};
aFa=function(q,Z){var w=q.getVolume()/(Z/500),r=function(Y){_.v5.cancelJob(Br5);var C=Math.floor(Y-w);q.setVolume(C,!1);C>0&&(Br5=_.$L(_.v5,function(){r(C)},500))};
_.v5.cancelJob(Br5);Br5=_.$L(_.v5,function(){r(q.getVolume())})};
nvv=function(q,Z){_.v5.cancelJob(Br5);Z&&q.syncVolume()};
Q9a=function(){var q={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.dT("SLEEP_TIMER_DISRUPTED")}}}}};_.t().resolve(_.ps).resolveCommand(q)};
Ev9=function(q){return(q.getDuration()-q.getProgressState().current)*1E3};
t69=function(q,Z){q=q+Z-(0,_.lp)();if(q<=0)return{hours:0,minutes:0,seconds:0};var w=new xKF(0,0,0,0,0,0,q);q=w.getHours();Z=w.getMinutes();w=w.getSeconds();w!==0&&Z++;Z!==0&&Z%60===0&&(q++,Z=0);return{hours:q,minutes:Z,seconds:w}};
Rda=function(q,Z,w){return q>0&&Z>0?w?_.dT("TIME_LEFT_HOURS_MINUTES",{hours:q.toString(),minutes:Z.toString()}):_.dT("TIME_HOURS_MINUTES",{hours:q.toString(),minutes:Z.toString()}):q>0?w?_.VG("TIME_LEFT_HOURS",q):_.VG("TIME_HOURS",q):w?_.dT("TIME_LEFT_MINUTES",{minutes:Z.toString()}):_.dT("TIME_MINUTES",{minutes:Z.toString()})};
UKg=function(q,Z){if(q.timelyActions)return q.timelyActions.find(function(w){var r;return((r=_.J(w,TrX))==null?void 0:r.cueRangeId)===Z})};
kaI=function(q){var Z=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.y8(q);q.keyMap_.forEach(function(w,r){_.Mj(Z,r)||this.remove(r)},q)};
KmF=function(q,Z){q.reloadContinuationItemsCommandMatcher=Z};
_.cC=function(q,Z){q.insertBefore(Z,q.childNodes[0]||null)};
s99=function(q){if(q>=48&&q<=57||q>=96&&q<=106||q>=65&&q<=90||_.YZ&&q==0)return!0;switch(q){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 _.rS;default:return!1}};
IFX=function(q){if(q.altKey&&!q.ctrlKey||q.metaKey||q.keyCode>=112&&q.keyCode<=123)return!1;if(s99(q.keyCode))return!0;switch(q.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!_.rS;default:return q.keyCode<166||q.keyCode>183}};
xKF=function(q,Z,w,r,Y,C,d){this.date=typeof q==="number"?new Date(q,Z||0,w||1,r||0,Y||0,C||0,d||0):new Date(q&&q.getTime?q.getTime():_.hW())};
_.yU(xKF,_.V6);_.e=xKF.prototype;_.e.getHours=function(){return this.date.getHours()};
_.e.getMinutes=function(){return this.date.getMinutes()};
_.e.getSeconds=function(){return this.date.getSeconds()};
_.e.getMilliseconds=function(){return this.date.getMilliseconds()};
_.e.getUTCDay=function(){return this.date.getUTCDay()};
_.e.getUTCHours=function(){return this.date.getUTCHours()};
_.e.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.e.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.e.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.e.setHours=function(q){this.date.setHours(q)};
_.e.setMinutes=function(q){this.date.setMinutes(q)};
_.e.setSeconds=function(q){this.date.setSeconds(q)};
_.e.setMilliseconds=function(q){this.date.setMilliseconds(q)};
_.e.setUTCHours=function(q){this.date.setUTCHours(q)};
_.e.setUTCMinutes=function(q){this.date.setUTCMinutes(q)};
_.e.setUTCSeconds=function(q){this.date.setUTCSeconds(q)};
_.e.setUTCMilliseconds=function(q){this.date.setUTCMilliseconds(q)};
_.e.add=function(q){_.V6.prototype.add.call(this,q);q.hours&&this.setUTCHours(this.date.getUTCHours()+q.hours);q.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+q.minutes);q.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+q.seconds)};
_.e.JSC$9092_toIsoString=function(q){var Z=_.V6.prototype.JSC$9092_toIsoString.call(this,q);return q?Z+"T"+_.Az(this.getHours(),2)+":"+_.Az(this.getMinutes(),2)+":"+_.Az(this.getSeconds(),2):Z+"T"+_.Az(this.getHours(),2)+_.Az(this.getMinutes(),2)+_.Az(this.getSeconds(),2)};
_.e.equals=function(q){return this.getTime()==q.getTime()};
_.e.toString=function(){return this.JSC$9092_toIsoString()};
_.e.clone=function(){var q=new xKF(this.date);q.firstDayOfWeek_=this.firstDayOfWeek_;q.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return q};
_.cIw=function(q){return _.mu({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:q}})};
_.M66=function(q){return _.mu({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:q}})};
Fmm=new _.D("imageTileRenderer");var Nr5=new _.D("adGridCardCollectionViewModel");var lFw=new _.D("carouselTitleViewModel");var Ga6=new _.D("ctaCarouselItemViewModel");var p8X=new _.D("textFieldViewModel");_.X8v=new _.D("engagementPanelHeaderShowNavigationButtonCommand");var mKd=new _.D("hideEngagementPanelScrimAction");var AId=new _.D("setActivePanelItemAction");var fFK=new _.D("showEngagementPanelScrimAction");var DKw=new _.D("updateEngagementPanelAction");var hdF=new _.D("updateSearchInVideoResultsAction");var yIr=new _.D("transcriptCueGroupRenderer");var iAX=new _.D("transcriptCueRenderer");var gvX=new _.D("transcriptFooterRenderer");var qIX=new _.D("engagementPanelAdSubtitleRenderer");var Z_9=new _.D("videoDescriptionFantasySectionViewModel");var wqg=new _.D("deleteClipEngagementPanelCommand");var ruK=new _.D("loopCommand");var YIF=new _.D("changeCreatorEndscreenVisibilityCommand");var $XF=new _.D("liveChatCallForQuestionsRenderer");var eBA=new _.D("updateTimedMarkersSyncObserverCommand");var TrX=new _.D("timelyActionViewModel");var CbA=new _.D("timelyActionsOverlayViewModel");var Pb6=new _.D("repeatChapterCommand");var dXd=new _.D("watchPlayerOverflowMenuCommand");var V8m=new _.D("compositeVideoOverlayRenderer");var O_r=new _.D("sortFilterSubMenuRenderer");var H_6=new _.D("horizontalShelfViewModel");var WT5=new _.D("switchListItemViewModel");var oqF=new _.D("inputComposerViewModel");var ud8=new _.D("transcriptEditSegmentCommand");var LTa=new _.D("transcriptUpdateSegmentTextCommand");var SI8=new _.D("transcriptSearchBoxRenderer");var vqA=new _.D("transcriptSegmentListRenderer");var j3r=new _.D("transcriptSegmentRenderer");_.t85=new _.D("updateDateTextAction");var RBa=new _.D("updateTitleAction");var b_9=new _.D("updateViewershipAction");var Jug=new _.D("carouselLockupRenderer");var zBA=new _.D("expandableVideoDescriptionBodyRenderer");var B9a=new _.D("videoDescriptionYouchatSectionViewModel");var aJX=new _.D("conversationResourceViewModel");_.MJ=_.m6("kevlar_watch_page_horizontal_margin",24);_.nqd=_.m6("kevlar_watch_page_columns_top_padding",24);_.Q3F=_.m6("web_screen_width_midpoint",1500);_.Eq5=_.m6("web_watch_sidebar_width_offset_per_100",10);_.xX9=426+_.MJ*2;_.FC=_.m6("kevlar_watch_two_column_width_threshold",1E3);_.T9X=_.MJ*2;_.NJ=_.m6("kevlar_watch_secondary_width",402);_.UX8=_.m6("kevlar_watch_secondary_max_width",600);_.k$a=_.m6("kevlar_watch_max_player_width",1280);_.KTK=_.m6("kevlar_watch_flexy_metadata_height",136);
_.s3A=_.T9X+310+_.MJ;_.IJ6=_.T9X+360+_.MJ;var cug={PAUSE_CHAT:18};var M8X;var FTA;var N99=function(){return _.N.apply(this,arguments)||this};
_.z(N99,_.N);N99.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
N99.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var q=_.J(this.data.button,_.Wx);q&&(q.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.My.Object.defineProperties(N99,{template:{configurable:!0,enumerable:!0,get:function(){if(FTA===void 0){var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;M8X===void 0&&(M8X=document.createElement("template"));var r=M8X;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);FTA=q}q=FTA;return q}}});
var le=N99;_.X([_.U(_.u3),_.A("design:type",Object)],le.prototype,"ytLiveChatReduxBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],le.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F({selectorArgs:["data.enabledEntityKey"],selector:US5,observer:"onEnabledChange"}),_.A("design:type",Boolean)],le.prototype,"enabled",void 0);_.X([_.F(),_.A("design:type",Object)],le.prototype,"data",void 0);
le=_.X([_.dx({is:"yt-disableable-button-view-model",noInjection:!0})],le);var lJv;var G$w;var pqA=["transVert01","transVert02","transVert03"],Xqv="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),mXa=function(){var q=_.N.apply(this,arguments)||this;q.emojiManager=_.tC;q.isDarkTheme=document.documentElement.hasAttribute("dark");q.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};q.reactionBuckets=[];q.noEmojiIdentifier="NO_EMOJI";return q};
_.z(mXa,_.N);_.e=mXa.prototype;_.e.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.e.desktopFountainEmojiSizePxChanged=function(){_.po(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.e.createUserReactionAnimation=function(q){this.createEmojiAnimation(q,!0)};
_.e.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var q;((q=this.data)==null?0:q.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.wp("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.Ju(this.emojiContainer.children)).forEach(function(Z){Z.remove()})};
_.e.detached=function(){this.cleanupFountain()};
_.e.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var q;this.reactionBuckets=_.R4.unsafeClone((q=this.emojiFountainData)==null?void 0:q.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.e.processEmojiBucket=function(q){var Z=this;if(this.reactionBuckets&&!(q>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var w=this.reactionBuckets[q];this.generateEmojiAnimations(w);if(q<this.reactionBuckets.length-1){var r;if(w==null?0:(r=w.duration)==null?0:r.seconds)this.emojiBucketTimerId=setTimeout(function(){Z.processEmojiBucket(q+1)},Number(w.duration.seconds)*1E3)}}};
_.e.generateEmojiAnimations=function(q){var Z=this,w=this.getRandomEmojiIdFromBucketWithOverride(q);if(w&&w!==this.noEmojiIdentifier){var r=0;q.targetEps?(r=this.linearInterpolateBounded(1,20,100,12,q.emojiSizeIndex||0),this.createEmojiAnimation(w,!1,q.emojiAnimationMs,r),r=this.getEmojiDelayMsFromTargetEps(q.targetEps)):(this.createEmojiAnimation(w),r=this.getEmojiDelayMsFromDistribution(q.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){Z.generateEmojiAnimations(q)},r)}};
_.e.getRandomEmojiIdFromBucketWithOverride=function(q){if(!(q&&q.reactionsData&&q.reactionsData.length&&q.totalReactions))return this.noEmojiIdentifier;for(var Z=q.totalReactions,w=1,r=_.P(q.reactionsData),Y=r.next();!Y.done;Y=r.next())Y=Y.value,(Y.reactionWeightOverride||Y.reactionWeightOverride===0)&&Y.reactionCount&&(Z-=Y.reactionCount,w-=Y.reactionWeightOverride);r=!0;w<0&&(r=!1,Z=q.totalReactions,w=1);if(r&&w>0&&Z===0)if(w===1){Y=0;for(var C=_.P(q.reactionsData),d=C.next();!d.done;d=C.next())d=
d.value,d.reactionCount&&d.reactionCount>0&&Y++;Y=1/Y;C=_.P(q.reactionsData);for(d=C.next();!d.done;d=C.next())d.value.reactionWeightOverride=Y}else for(Y=1/(1-w),C=_.P(q.reactionsData),d=C.next();!d.done;d=C.next())d=d.value,d.reactionWeightOverride&&(d.reactionWeightOverride*=Y);Y=Math.random();C=0;d=_.P(q.reactionsData);for(var O=d.next();!O.done;O=d.next())if(O=O.value,O.reactionCount&&(C=(O.reactionWeightOverride||O.reactionWeightOverride===0)&&r?C+O.reactionWeightOverride:C+w*O.reactionCount/
Z,C>Y&&(O.reactionCount--,q.totalReactions--,O=this.reactionItemToEmojiString(O),O!==this.noEmojiIdentifier)))return O;return this.noEmojiIdentifier};
_.e.reactionItemToEmojiString=function(q){if(q.unicodeEmojiId)return q.unicodeEmojiId;if(q.emoteId)return q.emoteId;if(q.videoReactionType)switch(q.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.e.createEmojiAnimation=function(q,Z,w,r){Z=Z===void 0?!1:Z;this.lastEmojiRequestedForTesting=q;var Y=q.startsWith("yt-icons:"),C=_.vv(this.emojiManager,q);if(C||Y){var d=document.createElement("emoji");d.classList.add("yt-emoji-fountain-view-model");d.classList.add(pqA[Math.floor(Math.random()*pqA.length)]);var O=document.createElement("div");O.classList.add("yt-emoji-fountain-view-model");O.classList.add("horizontal-container");O.classList.add(Xqv[Math.floor(Math.random()*Xqv.length)]);Z?(w=document.createElement("div"),
w.classList.add("user-reaction-bubble"),w.classList.add("yt-emoji-fountain-view-model"),O.appendChild(w)):(w&&(d.style.animationDuration=w+"ms",O.style.animationDuration=w+"ms"),r&&(d.style.width=r+"px",d.style.height=r+"px"));Y?(Y=document.createElement("yt-icon"),Y.polymerController.icon=q,r&&(Y.style.width=r+"px",Y.style.height=r+"px"),q=Y):q=this.emojiManager.createEmoji(C,!1);q.classList.add("yt-emoji-fountain-view-model");O.appendChild(q);d.appendChild(O);this.emojiContainer.appendChild(d);
d.addEventListener("animationend",function(){d.remove()});
var H,L;if((H=this.data)==null?0:(L=H.loggingDirectives)==null?0:L.trackingParams)Z=Z?_.C6(183501):_.C6(183500),kug(this.data.loggingDirectives.trackingParams,Z),_.xGj(Z);setTimeout(function(){d&&d.remove()},2E3)}};
_.e.getEmojiDelayMsFromDistribution=function(q){return Math.random()*(q||1)*1E3};
_.e.getEmojiDelayMsFromTargetEps=function(q){return Math.random()*2*(1/q)*1E3};
_.e.linearInterpolateBounded=function(q,Z,w,r,Y){Y=Math.min(Math.max(Y,q),w);return(Z*(w-Y)+r*(Y-q))/(w-q)};
var GQ=mXa;GQ.prototype.onEmojiFountainDataEntityUpdate=GQ.prototype.onEmojiFountainDataEntityUpdate;GQ.prototype.desktopFountainEmojiSizePxChanged=GQ.prototype.desktopFountainEmojiSizePxChanged;GQ.prototype.isActiveChanged=GQ.prototype.isActiveChanged;_.X([_.F(),_.A("design:type",_.SL)],GQ.prototype,"emojiManager",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.u3),_.A("design:type",Object)],GQ.prototype,"ytLiveChatReduxBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],GQ.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],GQ.prototype,"data",void 0);_.X([_.F({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(q,Z){return _.iI(q.entities,"emojiFountainDataEntity",Z)}}),
_.A("design:type",Object)],GQ.prototype,"emojiFountainData",void 0);_.X([_.F(),_.A("design:type",Boolean)],GQ.prototype,"isActive",void 0);_.X([_.M("isActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GQ.prototype,"isActiveChanged",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],GQ.prototype,"isDarkTheme",void 0);_.X([_.F(),_.A("design:type",String)],GQ.prototype,"lastEmojiRequestedForTesting",void 0);
_.X([_.F({value:function(){return _.m6("desktop_fountain_emoji_size_px",20)}}),
_.A("design:type",Number)],GQ.prototype,"desktopFountainEmojiSizePx",void 0);_.X([_.M("desktopFountainEmojiSizePx"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GQ.prototype,"desktopFountainEmojiSizePxChanged",null);_.X([_.fo("#emoji-container"),_.A("design:type",HTMLElement)],GQ.prototype,"emojiContainer",void 0);
_.X([_.M("emojiFountainData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GQ.prototype,"onEmojiFountainDataEntityUpdate",null);GQ=_.X([_.dx({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],GQ);
_.p(GQ,"yt-emoji-fountain-view-model",function(){if(G$w===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;lJv===void 0&&(lJv=document.createElement("template"));var r=lJv;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);G$w=q}q=G$w;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var Aum;var fJ6;var DXv=function(){return _.N.apply(this,arguments)||this};
_.z(DXv,_.N);DXv.prototype.onChoiceChanged=function(){this.data&&_.po(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
var pT=DXv;pT.prototype.onChoiceChanged=pT.prototype.onChoiceChanged;_.X([_.F(),_.A("design:type",Object)],pT.prototype,"data",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pT.prototype,"onChoiceChanged",null);pT=_.X([_.l({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],pT);
_.p(pT,"yt-live-chat-banner-poll-choice",function(){if(fJ6===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Aum===void 0&&(Aum=document.createElement("template"));var r=Aum;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);fJ6=q}q=fJ6;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var hBm;var yuI;var i_a=function(){var q=_.N.apply(this,arguments)||this;q.modern=_.b("web_button_rework_with_live");q.small=!1;return q};
_.z(i_a,_.N);i_a.prototype.computeIsSmall=function(){var q;return((q=this.buttonOverrides)==null?void 0:q.size)==="S"};
i_a.prototype.computeId=function(){return this.data&&this.data.targetId};
var XC=i_a;_.X([_.U(_.LK.YtLiveChatTooltipTargetingBehavior),_.A("design:type",Object)],XC.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.X([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.A("design:type",String)],XC.prototype,"id",void 0);_.X([_.F(),_.A("design:type",Object)],XC.prototype,"buttonOverrides",void 0);_.X([_.F(),_.A("design:type",Object)],XC.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],XC.prototype,"modern",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.A("design:type",Object)],XC.prototype,"small",void 0);XC=_.X([_.l({disableElementRegistration:!0,is:"yt-live-chat-button"})],XC);
_.p(XC,"yt-live-chat-button",function(){if(yuI===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;hBm===void 0&&(hBm=document.createElement("template"));var r=hBm;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);yuI=q}q=yuI;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var gq8;var q38;var ZCX=function(){var q=_.N.apply(this,arguments)||this;q.inCollapsedBanner=!1;q.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};q.questionButtonOverrides={style:"mono",type:"filled"};return q};
_.z(ZCX,_.N);_.e=ZCX.prototype;_.e.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]]"}}}}}};
_.e.onContextMenuButtonClick=function(q){this.ytLiveChatItemBehavior.showContextMenu(q)};
_.e.onYtRendererstamperFinished=function(){this.menuButton=_.E(this.hostElement).querySelector("#menu-button")};
_.e.dataChanged=function(){var q,Z;if((Z=_.J((q=this.data)==null?void 0:q.overflowMenuButton,_.tA))==null?0:Z.command)this.data.contextMenuEndpoint=_.J(this.data.overflowMenuButton,_.tA).command};
_.e.onButtonClick=function(){var q,Z=_.J((q=this.data)==null?void 0:q.askQuestionButton,_.tA);if(Z){if(Z.trackingParams&&(q=_.wa(Z.trackingParams))){var w=_.b5();w&&_.sh(w,q)}_.hy(this.hostElement,"innertube-command",Z.command)}};
var mo=ZCX;mo.prototype.onYtRendererstamperFinished=mo.prototype.onYtRendererstamperFinished;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],mo.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.u3),_.A("design:type",Object)],mo.prototype,"ytLiveChatReduxBehavior",void 0);_.X([_.U(_.R2.YtLiveChatItemBehavior),_.A("design:type",_.bP)],mo.prototype,"ytLiveChatItemBehavior",void 0);_.X([_.F({observer:"dataChanged"}),_.A("design:type",Object)],mo.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],mo.prototype,"inCollapsedBanner",void 0);_.X([_.F(),_.A("design:type",Object)],mo.prototype,"buttonOverrides",void 0);_.X([_.F(),_.A("design:type",Object)],mo.prototype,"questionButtonOverrides",void 0);_.X([_.m2("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mo.prototype,"onYtRendererstamperFinished",null);
mo=_.X([_.l({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],mo);
_.p(mo,"yt-live-chat-call-for-questions-renderer",function(){if(q38===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;gq8===void 0&&(gq8=document.createElement("template"));var r=gq8;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);q38=q}q=q38;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var w3K={};w3K.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 q=this;window.requestAnimationFrame(function(){q.restoreFocusNode_||(q.restoreFocusNode_=document.activeElement);var Z=_.SnD(q.hostElement);Z.length&&Z[Z.length-1].focus()})},
isAttachedChanged_:function(q,Z){q?this.focusChild_():Z&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(q){this.hidden||_.E8(q).indexOf(this.hostElement)!==-1||(q.stopPropagation(),this.focusChild_())}};var rjw;var Y39;var $u5=function(){return _.N.apply(this,arguments)||this};
_.z($u5,_.N);$u5.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
$u5.prototype.onClick=function(q){q.target!==this.confirmButton&&q.target!==this.cancelButton&&(this.hidden=!0)};
var Ab=$u5;_.X([_.fo("#confirm_button"),_.A("design:type",Object)],Ab.prototype,"confirmButton",void 0);_.X([_.fo("#cancel_button"),_.A("design:type",Object)],Ab.prototype,"cancelButton",void 0);_.X([_.F(),_.A("design:type",eT5)],Ab.prototype,"data",void 0);_.X([_.F({value:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],Ab.prototype,"hidden",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ab.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(w3K.YtLiveChatDialogBehavior),_.A("design:type",Object)],Ab.prototype,"ytLiveChatDialogBehavior",void 0);Ab=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Ab);
var eT5=_.p(Ab,"yt-live-chat-dialog-renderer",function(){if(Y39===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;rjw===void 0&&(rjw=document.createElement("template"));var r=rjw;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Y39=q}q=Y39;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var CMg;var PMw,dug=function(){if(PMw!==void 0)return PMw;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;CMg===void 0&&(CMg=document.createElement("template"));var r=CMg;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return PMw=q};var Vh6;var OCd;var HCv=function(){var q=_.N.apply(this,arguments)||this;q.tooltip=null;q.data=null;q.id="";q.active=!1;q.icon="";q.disabled=!1;q.showTooltip=!1;q.useToggledActiveState=!0;q.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return q};
_.z(HCv,_.N);_.e=HCv.prototype;
_.e.dataChanged=function(){var q;((q=this.data)==null?0:q.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,_.GI)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var Z;if((Z=this.data)==null?0:Z.disabled)this.disabled=!0};
_.e.computeId=function(q){return q};
_.e.computeIcon=function(q,Z){if(!q)return"";if(this.useToggledActiveState)return"yt-icons:"+q.toLowerCase();var w,r;return Z&&((w=this.data)==null?0:(r=w.toggledIcon)==null?0:r.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+q.toLowerCase()};
_.e.logPDGEntryPoint=function(){_.uYN(_.h0("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")};
_.e.immediatelyShowTooltip=function(){var q=_.E(this.hostElement).querySelector("#tooltip");q.animationDelay=0;q.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};q.show()};
_.e.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.e.onClick=function(q){var Z;((Z=this.data)==null?0:Z.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(),q.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.hy(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.e.computeShowTooltip=function(q,Z){return!!(q&&q.tooltip&&Z)};
_.e.maybeUpdateTooltipText=function(){var q=this,Z;if((Z=this.data)==null?0:Z.tooltip){var w=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.GI)(q.tooltip).textContent=w},250)}};
_.e.handleLiveChatActions=function(q){var Z=this;q.length&&(this.id!=="creator"&&this.id!=="product-picker"||q.forEach(function(w){(w=Z.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",w))&&w.durationSec===w.fullDurationSec&&Z.startBubble(Z.colorFromDecimal(w.startBackgroundColor))}))};
_.e.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.e.startBubble=function(q){_.po(this.hostElement,{"--yt-live-chat-monetization-button-glow":q});this.hostElement.setAttribute("bubble","")};
_.e.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.e.colorFromDecimal=function(q){typeof q==="string"&&(q=Number(q));return"rgba("+[q>>16&255,q>>8&255,q&255,(q>>24&255)/255].join()+")"};
var fT=HCv;fT.prototype.onAnimationEnd=fT.prototype.onAnimationEnd;fT.prototype.disabledChanged=fT.prototype.disabledChanged;fT.prototype.dataChanged=fT.prototype.dataChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],fT.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],fT.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.LK.YtLiveChatTooltipTargetingBehavior),_.A("design:type",Object)],fT.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],fT.prototype,"data",void 0);_.X([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.A("design:type",Object)],fT.prototype,"id",void 0);_.X([_.F({notify:!0,reflectToAttribute:!0}),_.A("design:type",Object)],fT.prototype,"active",void 0);
_.X([_.F({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.A("design:type",Object)],fT.prototype,"icon",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],fT.prototype,"disabled",void 0);_.X([_.F({computed:"computeShowTooltip(data, disabled)"}),_.A("design:type",Object)],fT.prototype,"showTooltip",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],fT.prototype,"useToggledActiveState",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fT.prototype,"dataChanged",null);_.X([_.M("disabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fT.prototype,"disabledChanged",null);_.X([_.m2("animationend"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],fT.prototype,"onAnimationEnd",null);
fT=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],fT);
_.p(fT,"yt-live-chat-icon-toggle-button-renderer",function(){if(OCd===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Vh6===void 0&&(Vh6=document.createElement("template"));var r=Vh6;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);OCd=q}q=OCd;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var WeF;var ox5;var ugd=function(){return _.N.apply(this,arguments)||this};
_.z(ugd,_.N);ugd.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
var Le6=ugd;_.X([_.F(),_.A("design:type",Object)],Le6.prototype,"data",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Le6.prototype,"ytRendererstamperBehavior",void 0);Le6=_.X([_.l({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],Le6);
_.p(Le6,"yt-live-chat-message-input-prompt-header-renderer",function(){if(ox5===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;WeF===void 0&&(WeF=document.createElement("template"));var r=WeF;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);ox5=q}q=ox5;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var S3F;var vxg;var j48;var thd;var RT5;var bCK;var Jjv=function(){return _.N.apply(this,arguments)||this};
_.z(Jjv,_.N);var zTw=Jjv;_.X([_.F(),_.A("design:type",Object)],zTw.prototype,"data",void 0);zTw=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],zTw);
_.p(zTw,"yt-live-chat-message-subtext-renderer",function(){if(bCK===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;RT5===void 0&&(RT5=document.createElement("template"));var r=RT5;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);bCK=q}q=bCK;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var BDw=function(){var q=_.N.apply(this,arguments)||this;q.subtextOnBottom=!1;q.buttonOverrides={style:"mono",type:"tonal"};return q};
_.z(BDw,_.N);BDw.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"}}}};
var Dt=BDw;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Dt.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Dt.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Dt.prototype,"subtextOnBottom",void 0);_.X([_.F(),_.A("design:type",Object)],Dt.prototype,"buttonOverrides",void 0);
Dt=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Dt);
_.p(Dt,"yt-live-chat-message-renderer",function(){if(thd===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;j48===void 0&&(j48=document.createElement("template"));var r=j48;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);thd=q}q=thd;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var aM6;var nxK;var Q4r=function(){var q=_.N.apply(this,arguments)||this;q.isRemovable=!1;q.hasPrefilledText=!1;q.isInputDirty=!1;q.overCharacterLimit=!1;q.underCharacterLimit=!1;q.showErrorMessage=!1;return q};
_.z(Q4r,_.N);_.e=Q4r.prototype;_.e.computeId=function(){return this.data.id};
_.e.computeInputData=function(){return this.data.inputData};
_.e.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.e.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.e.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.e.getLiveChatRichMessageInput=function(){return _.E(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.e.clearInput=function(){_.E(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.e.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.e.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.e.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.e.handleTextInputCharCountChanged=function(q){q=q.detail&&q.detail.characterCount;q!==void 0&&(this.characterCount=q,q!==0&&(this.isInputDirty=!0))};
_.e.onInputFocusOut=function(){this.isInputDirty=!0};
_.e.onClickCloseButton=function(){_.hy(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
var hb=Q4r;hb.prototype.handleTextInputCharCountChanged=hb.prototype.handleTextInputCharCountChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],hb.prototype,"data",void 0);_.X([_.F({computed:"computeId(data.id)"}),_.A("design:type",String)],hb.prototype,"id",void 0);_.X([_.F({computed:"computeInputData(data.inputData)"}),_.A("design:type",Object)],hb.prototype,"inputData",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.A("design:type",Object)],hb.prototype,"isRemovable",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.A("design:type",Object)],hb.prototype,"hasPrefilledText",void 0);_.X([_.F({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.A("design:type",Number)],hb.prototype,"charactersRemaining",void 0);
_.X([_.F(),_.A("design:type",Number)],hb.prototype,"characterCount",void 0);_.X([_.F(),_.A("design:type",Object)],hb.prototype,"isInputDirty",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.A("design:type",Object)],hb.prototype,"overCharacterLimit",void 0);_.X([_.F({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.A("design:type",Object)],hb.prototype,"underCharacterLimit",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.A("design:type",Object)],hb.prototype,"showErrorMessage",void 0);_.X([_.m2("yt-live-chat-text-input-field-renderer-character-count-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],hb.prototype,"handleTextInputCharCountChanged",null);
hb=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],hb);
_.p(hb,"yt-live-chat-poll-editor-input",function(){if(nxK===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;aM6===void 0&&(aM6=document.createElement("template"));var r=aM6;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);nxK=q}q=nxK;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var ExI;var xuK;var TDF={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Uu5=function(){var q=_.N.apply(this,arguments)||this;q.modern=_.b("web_button_rework_with_live");q.closeButtonOverrides={iconPosition:"icon-only"};q.startButtonOverrides={style:"mono",type:"filled"};q.addOptionButtonOverrides={style:"mono",type:"text"};return q};
_.z(Uu5,_.N);_.e=Uu5.prototype;
_.e.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"}}}}};
_.e.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var q;_.J((q=this.data)==null?void 0:q.startButton,_.tA)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.e.computeId=function(){return this.data&&this.data.id||""};
_.e.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.e.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.e.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.e.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.e.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var q=0;q<this.pollEditorInfoWithDefaults.minPollOptions;q++)this.addPollOptionData()};
_.e.getIsValidPoll=function(){var q=this;if(!this.pollEditorInfoWithDefaults)return!1;var Z=this.pollEditorInfoWithDefaults,w=Z.minPollOptionChars,r=Z.maxPollOptionChars,Y=Z.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>Z.maxPollQuestionChars)return!1;Z=_.E(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(Z).every(function(C,d){C=C.characterCount;!C&&Y[d]&&(C=q.ytRendererBehavior.getSimpleString(Y[d]).length);return C!==void 0&&C>=w&&C<=r})};
_.e.isValidPollChanged=function(){var q;_.J((q=this.data)==null?void 0:q.startButton,_.tA)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.e.addPollOptionData=function(){var q=this.pollEditorInfoWithDefaults,Z=q.maxPollOptionChars,w=q.optionPlaceholderText,r=q.customOptionPlaceholderText,Y=q.pollOptionData;this.currentNumPollOptions>=q.maxPollOptions||(q={liveChatPollOptionInput:{inputData:{placeholder:r[this.currentNumPollOptions]||w,maxCharacterLimit:Z},maxCharacterLimit:Z,minCharacterLimit:q.minPollOptionChars,hasPrefilledText:!!r[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=q.minPollOptions}},Y.charCountErrorText&&
(q.liveChatPollOptionInput.charCountErrorText=Y.charCountErrorText),Y.charsRemainingAltLabel&&(q.liveChatPollOptionInput.charsRemainingAltLabel=Y.charsRemainingAltLabel),Y.removeOptionAltText&&(q.liveChatPollOptionInput.removeOptionAltText=Y.removeOptionAltText),this.push("pollOptionsData",q),Y=Array.from(_.E(_.E(this.hostElement).querySelector("#poll-options")).children),Y.forEach(function(C,d){C.polymerController.set("data.id",d)}),_.E(Y[Y.length-1]).querySelector("#input").focus())};
_.e.getPollOptionInputValues=function(){var q=this,Z=[],w=_.E(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),r=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(w).forEach(function(Y,C){var d=null;Y=Y.getLiveChatRichMessageInput();var O;(Y==null?0:(O=Y.textSegments)==null?0:O.length)?d=_.jj(Y):r[C]&&(d=q.formattedStringToLiveChatRichMessageInput(r[C]));Z.push(d)});
return Z};
_.e.requestCreateAndStartPoll=function(q){var Z=this.getPollOptionInputValues();if(!Z.some(function(r){return!r})){Z={optionText:Z};
var w=_.E(_.E(this.hostElement).querySelector("#poll-question")).firstChild;w&&w.liveChatRichMessageInput&&(Z.questionText=_.jj(w.liveChatRichMessageInput));_.qM(this.hostElement,[q,Z])}};
_.e.selectedChanged=function(){if(this.selected){var q=_.E(_.E(this.hostElement).querySelector("#start-button")).firstElementChild;if(q){var Z;(Z=_.E(q).querySelector("#button")||_.FN(q).querySelector("button"))==null||Z.focus()}}};
_.e.handleTextInputChanged=function(q){var Z;((Z=q.target)==null?void 0:Z.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=q.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.e.handleStartButtonAction=function(q){q.detail.actionName==="yt-service-request"&&(q.stopPropagation(),(q=q.detail.args[1])&&this.requestCreateAndStartPoll(q))};
_.e.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.e.handleServiceRequestCompleted=function(q){this.createPollRequestInFlight=!1;(q=q.detail&&q.detail.data)&&q.success&&(_.hy(this.hostElement,"picker-cancelled"),_.yY(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.e.onCloseClick=function(){_.hy(this.hostElement,"picker-cancelled");_.yY(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.e.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.e.handlePollEditorInputClosed=function(q){var Z=this.pollOptionsData.findIndex(function(w){return w.liveChatPollOptionInput.id===q.detail.id});
this.splice("pollOptionsData",Z,1);this.isValidPoll=this.getIsValidPoll()};
_.e.onPickerCancelled=function(){this.reset()};
_.e.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var q=_.E(_.E(this.hostElement).querySelector("#poll-question")).firstChild;q&&q.setLiveChatRichMessageInput(null);if(q=_.E(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){q=_.P(Array.from(q));for(var Z=q.next();!Z.done;Z=q.next())Z.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.e.formattedStringToLiveChatRichMessageInput=function(q){return q.simpleText?{text_segments:[q.simpleText]}:{text_segments:q.runs}};
_.My.Object.defineProperties(Uu5.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(TDF,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
var yh=Uu5;yh.prototype.onPickerCancelled=yh.prototype.onPickerCancelled;yh.prototype.handlePollEditorInputClosed=yh.prototype.handlePollEditorInputClosed;yh.prototype.handleServiceRequestCompleted=yh.prototype.handleServiceRequestCompleted;yh.prototype.handleServiceRequestSent=yh.prototype.handleServiceRequestSent;yh.prototype.handleTextInputChanged=yh.prototype.handleTextInputChanged;yh.prototype.selectedChanged=yh.prototype.selectedChanged;yh.prototype.isValidPollChanged=yh.prototype.isValidPollChanged;
yh.prototype.shouldInitializePollChanged=yh.prototype.shouldInitializePollChanged;yh.prototype.dataChanged=yh.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],yh.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],yh.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],yh.prototype,"modern",void 0);
_.X([_.F(),_.A("design:type",Object)],yh.prototype,"closeButtonOverrides",void 0);_.X([_.F(),_.A("design:type",Object)],yh.prototype,"startButtonOverrides",void 0);_.X([_.F(),_.A("design:type",Object)],yh.prototype,"addOptionButtonOverrides",void 0);_.X([_.F({computed:"computeId(data.id)",reflectToAttribute:!0}),_.A("design:type",String)],yh.prototype,"id",void 0);_.X([_.F({value:function(){return[]}}),
_.A("design:type",Array)],yh.prototype,"pollOptionsData",void 0);_.X([_.I("pollEditorInfoWithDefaults"),_.A("design:type",Object),_.A("design:paramtypes",[])],yh.prototype,"pollQuestionData",null);_.X([_.F({value:0}),_.A("design:type",Number)],yh.prototype,"pollQuestionCharacterCount",void 0);_.X([_.I("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.A("design:type",Object),_.A("design:paramtypes",[])],yh.prototype,"pollQuestionCharactersRemaining",null);
_.X([_.F({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.A("design:type",Boolean)],yh.prototype,"overQuestionCharacterLimit",void 0);_.X([_.I("data.pollEditorInfo"),_.A("design:type",Object),_.A("design:paramtypes",[])],yh.prototype,"pollEditorInfoWithDefaults",null);_.X([_.F({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.A("design:type",Number)],yh.prototype,"currentNumPollOptions",void 0);
_.X([_.F({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.A("design:type",Boolean)],yh.prototype,"hasMaxNumPollOptions",void 0);_.X([_.I("pollEditorInfoWithDefaults","pollOptionsData"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yh.prototype,"shouldInitializePoll",null);_.X([_.F(),_.A("design:type",Object)],yh.prototype,"isValidPoll",void 0);
_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],yh.prototype,"createPollRequestInFlight",void 0);_.X([_.F(),_.A("design:type",Object)],yh.prototype,"selected",void 0);_.X([_.F({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.A("design:type",Boolean)],yh.prototype,"showQuestionErrorMessage",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yh.prototype,"dataChanged",null);_.X([_.M("shouldInitializePoll"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yh.prototype,"shouldInitializePollChanged",null);_.X([_.M("isValidPoll"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yh.prototype,"isValidPollChanged",null);
_.X([_.M("selected"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yh.prototype,"selectedChanged",null);_.X([_.m2("yt-live-chat-text-input-field-renderer-character-count-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],yh.prototype,"handleTextInputChanged",null);
_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yh.prototype,"handleServiceRequestSent",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],yh.prototype,"handleServiceRequestCompleted",null);
_.X([_.m2("yt-live-chat-poll-editor-input-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],yh.prototype,"handlePollEditorInputClosed",null);_.X([_.m2("picker-cancelled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yh.prototype,"onPickerCancelled",null);yh=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],yh);
_.p(yh,"yt-live-chat-poll-editor-panel-renderer",function(){if(xuK===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;ExI===void 0&&(ExI=document.createElement("template"));var r=ExI;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);xuK=q}q=xuK;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var kx5;var Ke9;var s4A=function(){return _.N.apply(this,arguments)||this};
_.z(s4A,_.N);s4A.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
s4A.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.My.Object.defineProperties(s4A.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var q,Z;return(q=this.data)==null?void 0:(Z=q.title)==null?void 0:Z.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var q;return _.oQ((q=this.data)==null?void 0:q.onTapCommand)}}});
var ie=s4A;_.X([_.U(_.ma.YtEndpointBehavior),_.A("design:type",Object)],ie.prototype,"ytEndpointBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ie.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ie.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ie.prototype,"itemId",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ie.prototype,"hasPromotion",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ie.prototype,"innertubeCommand",null);ie=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],ie);
_.p(ie,"yt-live-chat-product-picker-panel-item-view-model",function(){if(Ke9===void 0){var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;kx5===void 0&&(kx5=document.createElement("template"));var r=kx5;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Ke9=q}q=Ke9;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var IMv;var cjg;var Mh9=function(){var q=_.N.apply(this,arguments)||this;q.id="product-picker";q.selected=!1;q.closeButtonId="close-button";q.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return q};
_.z(Mh9,_.N);_.e=Mh9.prototype;_.e.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.e.observeSelected=function(){this.selected&&this.hostElement.focus();var q=_.E(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");q.length&&q[0].focus()};
_.e.onCloseBuyFlow=function(){_.hy(this.hostElement,"picker-cancelled")};
_.e.onCloseClick=function(){_.hy(this.hostElement,"picker-cancelled");var q;((q=this.data)==null?0:q.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.J(this.data.closeButton,_.Wx))};
_.e.onCloseEngageWithAudienceEditorPanels=function(){_.hy(this.hostElement,"picker-cancelled")};
var gL=Mh9;gL.prototype.observeSelected=gL.prototype.observeSelected;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],gL.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],gL.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],gL.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],gL.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gL.prototype,"id",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gL.prototype,"selected",void 0);_.X([_.F(),_.A("design:type",Object)],gL.prototype,"closeButtonId",void 0);_.X([_.M("selected"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gL.prototype,"observeSelected",null);
gL=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],gL);
_.p(gL,"yt-live-chat-product-picker-panel-view-model",function(){if(cjg===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;IMv===void 0&&(IMv=document.createElement("template"));var r=IMv;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);cjg=q}q=cjg;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var Feg;var NDm;var lM6=function(){var q=_.N.apply(this,arguments)||this;q.iconId="";q.icon="";q.disabled=!1;q.systemIcons=_.b("kevlar_system_icons");return q};
_.z(lM6,_.N);_.e=lM6.prototype;_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.e.computeIconId=function(q){return q&&q.icon&&q.icon.iconType?q.icon.iconType.toLowerCase():""};
_.e.computeIcon=function(q){return q&&q.icon&&q.icon.iconType?(q=q.icon.iconType.toLowerCase(),(q.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+q):""};
_.e.computeDisabled=function(q){return!!q};
_.e.computeCommand=function(q,Z){return Z?void 0:q};
_.e.computeTooltip=function(q,Z){return Z&&q?q:""};
_.e.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
var q_=lM6;_.X([_.U(_.ma.YtEndpointBehavior),_.A("design:type",Object)],q_.prototype,"ytEndpointBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],q_.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],q_.prototype,"data",void 0);_.X([_.F({computed:"computeIconId(data)",reflectToAttribute:!0}),_.A("design:type",Object)],q_.prototype,"iconId",void 0);
_.X([_.F({computed:"computeIcon(data)",reflectToAttribute:!0}),_.A("design:type",Object)],q_.prototype,"icon",void 0);_.X([_.F({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.A("design:type",Object)],q_.prototype,"disabled",void 0);_.X([_.F({computed:"computeCommand(data.command, disabled)"}),_.A("design:type",Object)],q_.prototype,"command",void 0);_.X([_.F({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.A("design:type",String)],q_.prototype,"tooltip",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],q_.prototype,"systemIcons",void 0);q_=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],q_);
_.p(q_,"yt-live-chat-product-button-renderer",function(){if(NDm===void 0){var q=document.createElement("template");_.a(q,'\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" disabled$="[[disabled]]" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Feg===void 0&&(Feg=document.createElement("template"));var r=Feg;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);NDm=q}q=NDm;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var GxA;var p3d;var X3m=function(){var q=_.N.apply(this,arguments)||this;q.selected=!1;q.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return q};
_.z(X3m,_.N);_.e=X3m.prototype;_.e.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"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.e.computeId=function(q){return q.id||""};
_.e.onCloseClick=function(){_.hy(this.hostElement,"picker-cancelled")};
_.e.observeSelected=function(){this.selected&&this.hostElement.focus();var q=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");q.length&&q[0].focus()};
_.e.onCloseBuyFlow=function(){_.hy(this.hostElement,"picker-cancelled")};
_.e.onCloseEngageWithAudienceEditorPanels=function(){_.hy(this.hostElement,"picker-cancelled")};
var ZP=X3m;ZP.prototype.observeSelected=ZP.prototype.observeSelected;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],ZP.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ZP.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ZP.prototype,"data",void 0);
_.X([_.F({computed:"computeId(data)",reflectToAttribute:!0}),_.A("design:type",String)],ZP.prototype,"id",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ZP.prototype,"selected",void 0);_.X([_.M("selected"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZP.prototype,"observeSelected",null);ZP=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],ZP);
_.p(ZP,"yt-live-chat-product-picker-renderer",function(){if(p3d===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;GxA===void 0&&(GxA=document.createElement("template"));var r=GxA;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);p3d=q}q=p3d;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var mu9;var Ajd;var fMF;var Du5;var hTm=function(){return _.N.apply(this,arguments)||this};
_.z(hTm,_.N);hTm.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()};
hTm.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
hTm.prototype.created=function(){this.ids={background:_.du(),maskOne:_.du(),maskTwo:_.du(),gradient:_.du(),largeBackground:_.du(),largeGradientOne:_.du(),largeGradientTwo:_.du(),largeGradientPath:_.du()}};
var wC=hTm;wC.prototype.maybeLoadAnimationBackground=wC.prototype.maybeLoadAnimationBackground;_.X([_.F({value:!1}),_.A("design:type",Boolean)],wC.prototype,"useLargeBackground",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],wC.prototype,"useAnimationBackground",void 0);_.X([_.F({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.A("design:type",Boolean)],wC.prototype,"useRegularBackground",void 0);
_.X([_.F(),_.A("design:type",Object)],wC.prototype,"ids",void 0);_.X([_.F(),_.A("design:type",Object)],wC.prototype,"lottieAnimation",void 0);_.X([_.fo("#animation-background"),_.A("design:type",HTMLDivElement)],wC.prototype,"animationBackground",void 0);_.X([_.M("useAnimationBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wC.prototype,"maybeLoadAnimationBackground",null);
wC=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],wC);
_.p(wC,"yt-live-interactivity-component-background",function(){if(Du5===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;fMF===void 0&&(fMF=document.createElement("template"));var r=fMF;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Du5=q}q=Du5;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var yjw=function(){var q=_.N.apply(this,arguments)||this;q.characterCount=0;q.showInputErrorMessage=!1;q.startQnaRequestInFlight=!1;q.modern=_.b("web_button_rework_with_live");q.buttonOverrides={style:"mono",type:"filled"};q.closeButtonOverrides={iconPosition:"icon-only"};q.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return q};
_.z(yjw,_.N);_.e=yjw.prototype;
_.e.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]]"}}}}}};
_.e.onCharacterCountChanged=function(q){var Z,w,r,Y,C=(w=_.J(this==null?void 0:(Z=this.data)==null?void 0:Z.creatorCallForQuestions,$XF))==null?void 0:(r=w.inputField)==null?void 0:(Y=r.liveChatTextInputFieldRenderer)==null?void 0:Y.maxCharacterLimit,d,O;C!=null&&(q==null?void 0:(d=q.detail)==null?void 0:d.characterCount)!=null&&_.J(this==null?void 0:(O=this.data)==null?void 0:O.startButton,_.tA)&&(Z=q.detail.characterCount>C,this.set("data.startButton.buttonRenderer.isDisabled",q.detail.characterCount===
0||Z),this.showInputErrorMessage=Z)};
_.e.onCloseClick=function(){_.hy(this.hostElement,"picker-cancelled");_.yY(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.e.onPickerCancelled=function(){var q=_.E(this.hostElement).querySelector("#qna-creator-text-input-field");q&&q.setLiveChatRichMessageInput(null)};
_.e.handleOpenQnaStartPanel=function(){var q=_.E(this.hostElement).querySelector("#qna-creator-text-input-field");q&&q.focus()};
_.e.handleStartButtonAction=function(q){var Z=this;if(q.detail.actionName==="yt-service-request"&&(q.stopPropagation(),q=q.detail.args[1])){var w=_.E(this.hostElement).querySelector("#qna-creator-text-input-field"),r;(w==null?0:(r=w.liveChatRichMessageInput)==null?0:r.textSegments)&&w.liveChatRichMessageInput.textSegments.length!==0&&(r={rich_message:_.jj(w.liveChatRichMessageInput)},_.qM(this.hostElement,[q,r]).then(function(){_.hy(Z.hostElement,"picker-cancelled")}))}};
_.e.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.e.handleServiceRequestCompleted=function(q){var Z;q=q==null?void 0:(Z=q.detail)==null?void 0:Z.data;(q==null?0:q.actions)&&q.actions.length>0?this.startQnaRequestInFlight=!1:_.yY(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.e.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
var rC=yjw;rC.prototype.handleServiceRequestError=rC.prototype.handleServiceRequestError;rC.prototype.handleServiceRequestCompleted=rC.prototype.handleServiceRequestCompleted;rC.prototype.handleServiceRequestSent=rC.prototype.handleServiceRequestSent;rC.prototype.onPickerCancelled=rC.prototype.onPickerCancelled;rC.prototype.onCharacterCountChanged=rC.prototype.onCharacterCountChanged;_.X([_.F(),_.A("design:type",Object)],rC.prototype,"characterCount",void 0);
_.X([_.F(),_.A("design:type",Object)],rC.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],rC.prototype,"showInputErrorMessage",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],rC.prototype,"startQnaRequestInFlight",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],rC.prototype,"modern",void 0);_.X([_.F(),_.A("design:type",Object)],rC.prototype,"buttonOverrides",void 0);
_.X([_.F(),_.A("design:type",Object)],rC.prototype,"closeButtonOverrides",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],rC.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.u3),_.A("design:type",Object)],rC.prototype,"ytLiveChatReduxBehavior",void 0);_.X([_.U(_.R2.YtLiveChatItemBehavior),_.A("design:type",_.bP)],rC.prototype,"ytLiveChatItemBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],rC.prototype,"ytActionHandlerBehavior",void 0);_.X([_.m2("yt-live-chat-text-input-field-renderer-character-count-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],rC.prototype,"onCharacterCountChanged",null);_.X([_.m2("picker-cancelled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rC.prototype,"onPickerCancelled",null);
_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rC.prototype,"handleServiceRequestSent",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],rC.prototype,"handleServiceRequestCompleted",null);
_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],rC.prototype,"handleServiceRequestError",null);rC=_.X([_.l({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],rC);
_.p(rC,"yt-live-chat-qna-start-panel-renderer",function(){if(Ajd===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;mu9===void 0&&(mu9=document.createElement("template"));var r=mu9;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Ajd=q}q=Ajd;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var iCr;var gxA;var qJv=function(){return _.N.apply(this,arguments)||this};
_.z(qJv,_.N);qJv.prototype.dismiss=function(){_.hy(this.hostElement,"yt-live-chat-error-message-dismiss")};
qJv.prototype.edit=function(){_.hy(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
var ZhA=qJv;_.X([_.F(),_.A("design:type",Object)],ZhA.prototype,"data",void 0);ZhA=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],ZhA);
_.p(ZhA,"yt-live-chat-text-actions-error-message-renderer",function(){if(gxA===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;iCr===void 0&&(iCr=document.createElement("template"));var r=iCr;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);gxA=q}q=gxA;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var wGF;var r1r;var YJa;var $b8;var YU=function(){var q=_.N.apply(this,arguments)||this;q.isDarkTheme=document.documentElement.hasAttribute("dark");q.newnessDotEligible=!1;return q};
_.z(YU,_.N);YU.prototype.sendReaction=function(){var q,Z,w=((q=this.data)==null?void 0:q.emojiId)||((Z=this.data)==null?void 0:Z.emoteId),r;w&&((r=this.data)==null?0:r.shouldTriggerAnimation)&&_.yY(this.hostElement,"yt-create-user-reaction-animation",[w]);var Y;(q=_.oQ((Y=this.data)==null?void 0:Y.onTap))&&_.f5(q,this.hostElement);this.showNewnessDot&&_.yY(this.hostElement,"yt-hide-newness-dot")};
YU.prototype.onClick=function(q){(!q||q.clientX||q.clientY)&&this.sendReaction()};
YU.prototype.onKeyDown=function(q){q.key!=="Enter"&&q.key!==" "||q.repeat||this.sendReaction()};
_.My.Object.defineProperties(YU.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!!(((q=this.data)==null?0:q.emojiId)||((Z=this.data)==null?0:Z.emoteId))}}});
var $U=YU;_.X([_.F(),_.A("design:type",Object)],$U.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],$U.prototype,"isDarkTheme",void 0);_.X([_.F(),_.A("design:type",Object)],$U.prototype,"newnessDotEligible",void 0);_.X([_.I("data.maybeShowNewnessDot"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],$U.prototype,"showNewnessDot",null);
_.X([_.I("data.emojiId","data.emoteId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],$U.prototype,"useYtImage",null);$U=_.X([_.dx({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],$U);
_.p($U,"yt-reaction-control-panel-button-view-model",function(){if($b8===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;YJa===void 0&&(YJa=document.createElement("template"));var r=YJa;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);$b8=q}q=$b8;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var eOr;var C66;var P6m=function(){var q=_.N.apply(this,arguments)||this;q.reactionControlPanelExpanded=!1;q.isDarkTheme=document.documentElement.hasAttribute("dark");q.newnessDotEligible=!1;return q};
_.z(P6m,_.N);_.e=P6m.prototype;_.e.expandedButtonsChanged=function(){var q,Z;_.po(this.hostElement,{"--expanded-buttons-height":((Z=(q=this.expandedButtonsData)==null?void 0:q.length)!=null?Z:0)*36+"px"})};
_.e.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}}};
_.e.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.e.onMouseLeave=function(){var q=this;this.collapseTimer=setTimeout(function(){q.reactionControlPanelExpanded=!1},500)};
_.e.onFocusIn=function(){this.onMouseEnter()};
_.e.onFocusOut=function(){this.onMouseLeave()};
_.e.onCollapsedButtonFocusIn=function(){var q=this;setTimeout(function(){var Z;(Z=q.expandedButtons.querySelector("button"))==null||Z.focus()},100)};
_.e.onCollapsedButtonFocusOut=function(q){q.stopPropagation()};
_.My.Object.defineProperties(P6m.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var q,Z;return _.R4.unsafeClone((q=this.liveReactionsData)==null?void 0:q.emojiButtonData)||((Z=this.data)==null?void 0:Z.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var q;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((q=this.data)==null||!q.maybeShowNewnessDot)}}});
var e0=P6m;e0.prototype.expandedButtonsChanged=e0.prototype.expandedButtonsChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],e0.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],e0.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.u3),_.A("design:type",Object)],e0.prototype,"ytLiveChatReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],e0.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],e0.prototype,"reactionControlPanelExpanded",void 0);_.X([_.F({selectorArgs:["data.liveReactionsDataEntityKey"],selector:TbK}),_.A("design:type",Object)],e0.prototype,"liveReactionsData",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],e0.prototype,"isDarkTheme",void 0);_.X([_.F(),_.A("design:type",Object)],e0.prototype,"newnessDotEligible",void 0);
_.X([_.I("liveReactionsData","data.expandedButtons"),_.A("design:type",Object),_.A("design:paramtypes",[])],e0.prototype,"expandedButtonsData",null);_.X([_.I("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.F({reflectToAttribute:!0}),_.A("design:type",Object),_.A("design:paramtypes",[])],e0.prototype,"showNewnessDot",null);_.X([_.fo("#expanded-buttons"),_.A("design:type",HTMLElement)],e0.prototype,"expandedButtons",void 0);
_.X([_.M("expandedButtonsData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],e0.prototype,"expandedButtonsChanged",null);e0=_.X([_.dx({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],e0);
_.p(e0,"yt-reaction-control-panel-view-model",function(){if(C66===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;eOr===void 0&&(eOr=document.createElement("template"));var r=eOr;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);C66=q}q=C66;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var Cm=new _.zo("yt-live-chat"),dbm=Date.parse("2024-7-24"),VCv=function(){var q=_.N.apply(this,arguments)||this;q.emojiManager=_.tC;q.newnessDotEligible=!1;q.newnessDotImpressionCounted=!1;q.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return q};
_.z(VCv,_.N);_.e=VCv.prototype;_.e.emojiCustomizationEnabledChanged=function(){var q;((q=this.data)==null?0:q.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((q=Cm.getCreationTime("emoji-customization-count"))&&q<dbm&&Cm.set("emoji-customization-count","0"),q=Number(Cm.get("emoji-customization-count"))||0,q<3&&(this.newnessDotEligible=!0,Cm.set("emoji-customization-count",(q+1).toString())),this.newnessDotImpressionCounted=!0)};
_.e.hideNewnessDot=function(){this.newnessDotEligible=!1;Cm.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.e.handleReactionsMute=function(q){var Z=_.b5(),w=_.C6(206221),r={checkboxData:{state:q?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};Z&&_.sh(Z,w,r);this.reactionsMuted=q};
_.e.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.e.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}}};
_.My.Object.defineProperties(VCv.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var q;return(!((q=this.liveReactionsData)==null||!q.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
var Pl=VCv;Pl.prototype.liveReactionsSettingChanged=Pl.prototype.liveReactionsSettingChanged;Pl.prototype.emojiCustomizationEnabledChanged=Pl.prototype.emojiCustomizationEnabledChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Pl.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Pl.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.u3),_.A("design:type",Object)],Pl.prototype,"ytLiveChatReduxBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Pl.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Pl.prototype,"data",void 0);_.X([_.F(),_.A("design:type",_.SL)],Pl.prototype,"emojiManager",void 0);_.X([_.F(),_.A("design:type",Object)],Pl.prototype,"newnessDotEligible",void 0);_.X([_.F(),_.A("design:type",Object)],Pl.prototype,"newnessDotImpressionCounted",void 0);
_.X([_.F({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:US5}),_.A("design:type",Boolean)],Pl.prototype,"liveReactionsSetting",void 0);_.X([_.F({selectorArgs:["data.liveReactionsDataEntityKey"],selector:TbK}),_.A("design:type",Object)],Pl.prototype,"liveReactionsData",void 0);_.X([_.F({value:function(){var q=_.b("enable_lwe_web_mute"),Z=Cm.get("allow-reactions");return Z===void 0?!1:!Z&&q}}),
_.A("design:type",Boolean)],Pl.prototype,"reactionsMuted",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Pl.prototype,"liveReactionsEnabled",null);_.X([_.M("data.emojiCustomizationEnabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pl.prototype,"emojiCustomizationEnabledChanged",null);
_.X([_.M("liveReactionsEnabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pl.prototype,"liveReactionsSettingChanged",null);Pl=_.X([_.dx({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Pl);
_.p(Pl,"yt-reaction-control-panel-overlay-view-model",function(){if(r1r===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;wGF===void 0&&(wGF=document.createElement("template"));var r=wGF;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);r1r=q}q=r1r;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var Ohr={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(q){var Z=this.$.pickers.selected;if(Z){_.E(this.hostElement).removeAttribute(Z+"-open");var w="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(w="#picker-buttons",Z==="emoji"&&_.E(this.hostElement).querySelector("#emoji-picker-button")&&(w="#emoji-picker-button"));if(w=_.E(this.hostElement).querySelector(w).querySelector("#"+Z))w.active=!1}w=q;Z==q&&(w=null);Z!=q&&
_.E(this.hostElement).setAttribute(q+"-open","");this.$.pickers.selected=w;_.yY(this.hostElement,"yt-live-chat-picker-changed",[w])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var HhX=function(){var q=_.N.apply(this,arguments)||this;q.numSentMessages=0;q.timeoutDurationMs=0;q.timeoutMs=0;q.lastTimeoutTimeMs=0;q.pendingMessageId="";q.hasFiredInitialFocusActions=!1;q.isBeforeFocusEnabled=!0;q.id="";q.characterCount=0;q.maxCharacterLimit=0;q.remainingCharacterCount=0;q.inputExpanded=!1;q.buttonOverrides={iconPosition:"icon-only"};q.inReplyPanel=!1;q.countdownRatio=0;q.isTooltipVisible=!1;q.tooltipTimeout=1E4;q.systemIcons=_.b("kevlar_system_icons");q.tallerEmojiPicker=_.b("live_chat_taller_emoji_picker");
q.blockSendMessageWithCountdown=!_.b("live_chat_enable_send_button_in_slow_mode");q.sendReplyMessageInFlight=!1;q.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"};q.onResize=function(){q.maybeToggleCharacterCount()};
return q};
_.z(HhX,_.N);_.e=HhX.prototype;
_.e.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"}}}};
_.e.attached=function(){window.addEventListener("resize",this.onResize)};
_.e.detached=function(){window.removeEventListener("resize",this.onResize)};
_.e.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.e.sendMessage=function(){var q=this,Z,w,r,Y;return _.V(function(C){if(q.sendDisabled)return C.return();q.isTooltipVisible&&_.yY(q.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(q.data.sendButton&&q.data.sendButton.buttonRenderer){q.input.completeEmojis();Z=q.data.sendButton.buttonRenderer.serviceEndpoint;if(!Z)return C.return();r=((w=_.J(Z,_.Vg7))==null?void 0:w.clientIdPrefix)||"";Y={client_message_id:r+String(q.numSentMessages++),rich_message:_.jj(q.input.liveChatRichMessageInput)};
q.pendingMessageId=Y.client_message_id;q.inReplyPanel&&(q.sendReplyMessageInFlight=!0);_.qM(q.hostElement,[Z,Y]);q.input.setLiveChatRichMessageInput(null)}_.ub(C)})};
_.e.handleSendButtonAction=function(q){q.detail.actionName==="yt-service-request"&&(q.stopPropagation(),this.sendMessage())};
_.e.onSendCompleted=function(q,Z){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(q=this.get("timeoutDurationUsec",Z.data))&&this.handleTimeout(Number(q)/1E3);this.errorMessage=this.get("errorMessage",Z.data);this.pendingMessageId=""};
_.e.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.yY(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.e.handlePickerButtonToggle=function(q){q=q.detail.targetId;this.ytPickerBehavior.togglePicker_(q);if(q==="emoji")this.input.focus();else if(q==="qna-start-panel"){var Z,w;(Z=_.E(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(w=Z.querySelector("#qna-creator-text-input-field"))==null||w.focus()}};
_.e.onComponentReplaced=function(q){var Z,w;q.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((Z=q.replacement.liveChatMessageInputRenderer)==null?0:(w=Z.headerRenderer)==null?0:w.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.e.onEmojiSelect=function(q){this.input.focus();this.input.insertEmoji(q.detail)};
_.e.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.e.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.yY(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.yY(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.e.onOpenPopupAction=function(q,Z){var w=this;Z===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.yY(w.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.e.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.e.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.e.focusChanged=function(){this.maybeToggleCharacterCount()};
_.e.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var q=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",q>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.e.computeId=function(){return this.data&&this.data.targetId||""};
_.e.computeSendDisabled=function(q,Z,w,r){q=!!(this.blockSendMessageWithCountdown&&w||!q||Z&&q>Z||r);(Z=_.E(this.hostElement).querySelector("#send-button"))&&Z.children.length&&(Z.children[0].disabled=q);return q};
_.e.handleTimeout=function(q){this.timeoutDurationMs=this.timeoutMs=q;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.e.updateTimeout=function(q){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(q-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=q,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.e.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.e.onErrorMessageEdit=function(q){this.input.setLiveChatRichMessageInput(q.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.e.errorMessageChanged=function(){var q=this;_.SH(function(){_.yY(q.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.e.computeAuthorNameColor=function(q){var Z;if(_.b("live_chat_author_name_color_usernames")&&(q==null?0:(Z=q.authorName)==null?0:Z.simpleText))return _.uSX(_.LR1(q.authorName.simpleText));if(_.b("live_chat_seed_color_usernames")&&(q==null?0:q.authorSeedColorArgb))return _.uSX(_.Gp(q.authorSeedColorArgb));if(_.b("live_chat_colored_usernames"))return"#cc0000";var w;return _.b("live_chat_simple_color_usernames")&&(q==null?0:(w=q.authorName)==null?0:w.simpleText)&&(q==null?0:q.authorUsernameColorLight)&&
(q==null?0:q.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.Gp(q.authorUsernameColorDark):_.Gp(q.authorUsernameColorLight):""};
_.e.onIsTooltipVisibleChanged=function(){var q=_.E(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){q.hidden=!1;q.setAttribute("role","alert")},0):(q.hidden=!0,q.removeAttribute("role"))};
_.e.onFocusedChanged=function(q){this.inputFocused=q.detail.value};
_.My.Object.defineProperties(HhX.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 q;return!((q=this.data)==null||!q.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.data)==null?void 0:(Z=q.pickers)==null?void 0:Z.find(function(w){return w.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var q=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return q?this.ytRendererBehavior.getSimpleString(q):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
var dC=HhX;dC.prototype.onIsTooltipVisibleChanged=dC.prototype.onIsTooltipVisibleChanged;dC.prototype.errorMessageChanged=dC.prototype.errorMessageChanged;dC.prototype.onErrorMessageEdit=dC.prototype.onErrorMessageEdit;dC.prototype.onErrorMessageDismiss=dC.prototype.onErrorMessageDismiss;dC.prototype.focusChanged=dC.prototype.focusChanged;dC.prototype.characterCountChanged=dC.prototype.characterCountChanged;dC.prototype.onEmojiSelect=dC.prototype.onEmojiSelect;
dC.prototype.handlePickerButtonToggle=dC.prototype.handlePickerButtonToggle;dC.prototype.onSendError=dC.prototype.onSendError;dC.prototype.onSendCompleted=dC.prototype.onSendCompleted;dC.prototype.sendMessage=dC.prototype.sendMessage;dC.prototype.dataChanged=dC.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],dC.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.U(Ohr.YtPickerBehavior),_.A("design:type",Object)],dC.prototype,"ytPickerBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],dC.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.LK.YtLiveChatTooltipTargetingBehavior),_.A("design:type",Object)],dC.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],dC.prototype,"hasFiredInitialFocusActions",void 0);
_.X([_.F(),_.A("design:type",Object)],dC.prototype,"isBeforeFocusEnabled",void 0);_.X([_.F(),_.A("design:type",Object)],dC.prototype,"data",void 0);_.X([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.A("design:type",Object)],dC.prototype,"id",void 0);_.X([_.F(),_.A("design:type",Object)],dC.prototype,"characterCount",void 0);_.X([_.F(),_.A("design:type",Object)],dC.prototype,"maxCharacterLimit",void 0);
_.X([_.F(),_.A("design:type",Object)],dC.prototype,"remainingCharacterCount",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],dC.prototype,"inputExpanded",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],dC.prototype,"inputFocused",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],dC.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.X([_.F(),_.A("design:type",_.Bv)],dC.prototype,"participantsManager",void 0);
_.X([_.F(),_.A("design:type",Object)],dC.prototype,"buttonOverrides",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],dC.prototype,"inReplyPanel",void 0);_.X([_.I("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],dC.prototype,"sendDisabled",null);_.X([_.F(),_.A("design:type",Object)],dC.prototype,"countdownRatio",void 0);
_.X([_.I("countdownRatio"),_.A("design:type",Number),_.A("design:paramtypes",[])],dC.prototype,"countdownStrokeDashOffset",null);_.X([_.I("countdownRatio"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],dC.prototype,"countdownActive",null);_.X([_.I("data.interactionMessage"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],dC.prototype,"hasInteractionMessage",null);
_.X([_.I("data.emojiPickerButton"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],dC.prototype,"hasEmojiPickerButton",null);_.X([_.I("data, characterCount"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],dC.prototype,"showAvatar",null);_.X([_.I("data.pickers"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],dC.prototype,"hasProductPickerPanelViewModel",null);
_.X([_.F(),_.A("design:type",Object)],dC.prototype,"errorMessage",void 0);_.X([_.F(),_.A("design:type",Object)],dC.prototype,"genericErrorMessage",void 0);_.X([_.F(),_.A("design:type",Object)],dC.prototype,"isTooltipVisible",void 0);_.X([_.F(),_.A("design:type",Object)],dC.prototype,"tooltipTimeout",void 0);_.X([_.I("data.onInitialFocusCommand"),_.A("design:type",String),_.A("design:paramtypes",[])],dC.prototype,"tooltipMessage",null);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],dC.prototype,"systemIcons",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],dC.prototype,"tallerEmojiPicker",void 0);_.X([_.I("data"),_.A("design:type",String),_.A("design:paramtypes",[])],dC.prototype,"authorNameColor",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],dC.prototype,"blockSendMessageWithCountdown",void 0);_.X([_.F(),_.A("design:type",Object)],dC.prototype,"sendReplyMessageInFlight",void 0);
_.X([_.fo("#input"),_.A("design:type",_.FKh)],dC.prototype,"input",void 0);_.X([_.fo("#count"),_.A("design:type",HTMLElement)],dC.prototype,"count",void 0);_.X([_.fo("#input-container"),_.A("design:type",HTMLElement)],dC.prototype,"inputContainer",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dC.prototype,"dataChanged",null);
_.X([_.m2("yt-live-chat-send-message"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],dC.prototype,"sendMessage",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[Event,_.QB]),_.A("design:returntype")],dC.prototype,"onSendCompleted",null);_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dC.prototype,"onSendError",null);
_.X([_.m2("yt-live-chat-icon-toggle-button-renderer-toggle"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],dC.prototype,"handlePickerButtonToggle",null);_.X([_.m2("yt-emoji-select"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],dC.prototype,"onEmojiSelect",null);
_.X([_.M("characterCount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dC.prototype,"characterCountChanged",null);_.X([_.M("inputFocused"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dC.prototype,"focusChanged",null);_.X([_.m2("yt-live-chat-error-message-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dC.prototype,"onErrorMessageDismiss",null);
_.X([_.m2("yt-live-chat-error-message-edit"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],dC.prototype,"onErrorMessageEdit",null);_.X([_.M("errorMessage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dC.prototype,"errorMessageChanged",null);_.X([_.M("isTooltipVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dC.prototype,"onIsTooltipVisibleChanged",null);
dC=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],dC);
_.p(dC,"yt-live-chat-message-input-renderer",function(){if(vxg===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;S3F===void 0&&(S3F=document.createElement("template"));var r=S3F;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);vxg=q}q=vxg;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var Wtr;var oig;var VI=function(){var q=_.N.apply(this,arguments)||this;q.systemIcons=_.b("kevlar_system_icons");q.firedOnClickCommand=!1;q.inReplyPanel=!1;return q};
_.z(VI,_.N);
VI.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"}}}};
VI.prototype.onButtonToggle=function(q){q.target.disabled||this.ytPickerBehavior.togglePicker_(q.detail.targetId)};
VI.prototype.onClick=function(){var q=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.yY(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return q.firedOnClickCommand=!1},5E3))};
_.My.Object.defineProperties(VI.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.data)==null?void 0:(Z=q.panels)==null?void 0:Z.find(function(w){return w.liveChatProductPickerPanelViewModel}))!==void 0}}});
var Ow=VI;Ow.prototype.onButtonToggle=Ow.prototype.onButtonToggle;_.X([_.U(Ohr.YtPickerBehavior),_.A("design:type",Object)],Ow.prototype,"ytPickerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ow.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ow.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ow.prototype,"systemIcons",void 0);_.X([_.F({reflectToAttribute:!1}),_.A("design:type",Object)],Ow.prototype,"firedOnClickCommand",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ow.prototype,"inReplyPanel",void 0);_.X([_.I("data.pickers"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ow.prototype,"hasProductPickerPanelViewModel",null);
_.X([_.m2("yt-live-chat-icon-toggle-button-renderer-toggle"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ow.prototype,"onButtonToggle",null);Ow=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Ow);
_.p(Ow,"yt-live-chat-restricted-participation-renderer",function(){if(oig===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Wtr===void 0&&(Wtr=document.createElement("template"));var r=Wtr;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);oig=q}q=oig;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var usm=function(){var q=_.N.apply(this,arguments)||this;q.genericErrorMessage=_.UE("Error, try again.");q.inReplyPanel=!1;q.hideBorder=!1;return q};
_.z(usm,_.N);usm.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}}}}}};
_.My.Object.defineProperties(usm,{template:{configurable:!0,enumerable:!0,get:function(){return dug()}}});
var Hl=usm;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Hl.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Hl.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Hl.prototype,"genericErrorMessage",void 0);_.X([_.F(),_.A("design:type",Object)],Hl.prototype,"inReplyPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Hl.prototype,"hideBorder",void 0);
Hl=_.X([_.dx({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Hl);_.p(Hl,"yt-live-chat-engagement-panel-input-renderer",function(){return dug()},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var LtX,SJ8;LtX=_.C6(115994);SJ8=_.C6(115993);_.vir=function(q,Z,w){var r=this;var Y=w.dragDownAction;this.layer=0;this.JSC$19700_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return r.dragDownAction()}}}};
this.JSC$19700_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return r.dragDownAction()}}}};
this.fullscreen=!1;var C=_.iy();_.fH(C,LtX,this.layer);_.fH(C,SJ8,this.layer);this.dragDownAction=function(){Y();_.Rk(C,{visualElement:r.fullscreen?LtX:SJ8})};
this.gesture=new _.Rj(q,Z,this.JSC$19700_watchConfig,"pandown");this.attach()};
_.vir.prototype.attach=function(){this.gesture.attach()};
_.vir.prototype.detach=function(){this.gesture.detach()};
_.vir.prototype.update=function(q){this.fullscreen=q;this.gesture.config=q?this.JSC$19700_watchFullScreenConfig:this.JSC$19700_watchConfig};var j1I={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(q){if(q&&q.length==1&&Array.isArray(q[0].loggingUrls)){q=_.R4.unsafeClone(q[0]);var Z=this.macros||{},w=this.getAdModuleClient_();if(!w)return _.YK();q.loggingUrls.forEach(function(r){if(r.baseUrl){var Y=r.baseUrl;var C=Z;C=C===void 0?{}:C;Y=w.getOptions().includes("replaceUrlMacros")?_.aH2(w,"replaceUrlMacros",{url:Y,additionalMapping:C}):Y;r.baseUrl=Y}},this);
q=[q]}return _.qM(this.hostElement,q)},
getAdModuleClient_:function(){var q=_.K6(this);return q?(q=q.getPlayer())?new _.jd(q):null:null}}]};var tC5;var ROF=function(){var q=_.N.apply(this,arguments)||this;q.isCollapsed=!1;q.modernPanels=_.b("kevlar_watch_modern_panels");q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return q};
_.z(ROF,_.N);_.e=ROF.prototype;_.e.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.e.onDonateTap=function(){var q=this.get("data.donateButton.buttonRenderer.command");if(q){var Z=_.b5(),w=this.get("data.donateButton.buttonRenderer.trackingParams");Z&&w&&_.sh(Z,_.wa(w));this.ytOpenPopupBehavior.openPopup(q)}};
_.e.onShowMore=function(){this.isCollapsed=!1;var q=_.b5(),Z=this.get("data.expandButton.buttonRenderer.trackingParams");q&&Z&&_.sh(q,_.wa(Z))};
_.e.onShowLess=function(){this.isCollapsed=!0};
_.e.dataChanged=function(){_.po(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.e.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.e.handleUpdate=function(q){if(q=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",q))this.set("data.startLabel",q.startLabel),this.set("data.endLabel",q.endLabel),this.set("data.progress",q.progress),this.set("data.amountRaisedLabel",q.amountRaisedLabel),this.dataChanged()};
_.e.handleOpenPopupAction=function(q){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",q)&&_.yY(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.e.computeHeaderBackgroundUrl=function(q,Z){if(q)return Z?q.headerBackgroundDarkUrl:q.headerBackgroundUrl};
_.e.isProgressBarVisible=function(q){return!(!q||q.progress===void 0)};
_.e.headerBackgroundClass=function(){return _.zj("HTML_DIR")==="rtl"?"flip":""};
var Wl=ROF;Wl.prototype.dataChanged=Wl.prototype.dataChanged;_.X([_.U(_.Xp.YtOpenPopupBehavior),_.A("design:type",Object)],Wl.prototype,"ytOpenPopupBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Wl.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Wl.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],Wl.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Wl.prototype,"isCollapsed",void 0);_.X([_.F({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.A("design:type",String)],Wl.prototype,"headerBackgroundUrl",void 0);_.X([_.F(),_.A("design:type",Boolean)],Wl.prototype,"isDarkTheme",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Wl.prototype,"modernPanels",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wl.prototype,"dataChanged",null);Wl=_.X([_.l({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Wl);
_.p(Wl,"ytd-donation-shelf-renderer",function(){if(tC5!==void 0)return tC5;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return tC5=q},{mode:1});var bhF;var J18=function(){return _.N.apply(this,arguments)||this};
_.z(J18,_.N);var zOX=J18;_.X([_.F(),_.A("design:type",Object)],zOX.prototype,"data",void 0);zOX=_.X([_.l({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],zOX);
_.p(zOX,"ytd-donation-unavailable-renderer",function(){if(bhF!==void 0)return bhF;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return bhF=q},{mode:1});var BXA;var aAX=function(){return _.N.apply(this,arguments)||this};
_.z(aAX,_.N);aAX.prototype.computeIconType=function(q){return q?"yt-icons:"+q.toLowerCase():null};
var niA=aAX;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],niA.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],niA.prototype,"data",void 0);niA=_.X([_.l({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],niA);
_.p(niA,"ytd-limited-state-message-renderer",function(){if(BXA!==void 0)return BXA;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return BXA=q},{mode:1});var Q1X;var Ei8=function(){return _.N.apply(this,arguments)||this};
_.z(Ei8,_.N);Ei8.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Ei8.prototype.onTap=function(q){var Z=this.data&&this.data.endpoint;Z&&!_.E1(_.E8(q),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.hy(this.hostElement,"yt-navigate",{endpoint:Z})};
var oo=Ei8;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],oo.prototype,"data",void 0);oo=_.X([_.l({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],oo);
_.p(oo,"ytd-autotagging-metadata-renderer",function(){if(Q1X!==void 0)return Q1X;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Q1X=q},{mode:1});var xbw;var TXd=function(){return _.N.apply(this,arguments)||this};
_.z(TXd,_.N);TXd.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
var ud=TXd;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ud.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ud.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ud.prototype,"data",void 0);ud=_.X([_.l({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],ud);
_.p(ud,"ytd-autotagging-metadata-row-renderer",function(){if(xbw!==void 0)return xbw;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return xbw=q},{mode:1});var Ubm;var k1I;var Ktg=function(){var q=_.N.apply(this,arguments)||this;q.engagementPanelContent=!1;return q};
_.z(Ktg,_.N);Ktg.prototype.computeHasDividerLine=function(q,Z){return q&&!Z};
var Lm=Ktg;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Lm.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.A("design:type",Boolean)],Lm.prototype,"hasDividerLine",void 0);_.X([_.F(),_.A("design:type",Object)],Lm.prototype,"engagementPanelContent",void 0);
Lm=_.X([_.l({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Lm);
_.p(Lm,"ytd-metadata-row-header-renderer",function(){if(k1I!==void 0)return k1I;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return k1I=q},{mode:1});var s1r;var IA5=function(){return _.N.apply(this,arguments)||this};
_.z(IA5,_.N);IA5.prototype.computeHasDividerLine=function(q){return q};
var S0=IA5;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],S0.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.A("design:type",Boolean)],S0.prototype,"hasDividerLine",void 0);S0=_.X([_.l({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],S0);
_.p(S0,"ytd-metadata-row-renderer",function(){if(s1r!==void 0)return s1r;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return s1r=q},{mode:1});var c19;var MCa=function(){return _.N.apply(this,arguments)||this};
_.z(MCa,_.N);var Ft5=MCa;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ft5.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ft5.prototype,"data",void 0);Ft5=_.X([_.l({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Ft5);
_.p(Ft5,"ytd-metadata-with-image-row-renderer",function(){if(c19!==void 0)return c19;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return c19=q},{mode:1});var NX5;var lAA=function(){var q=_.N.apply(this,arguments)||this;q.rounded=!0;q.fixie=!1;q.fullWidth=!1;return q};
_.z(lAA,_.N);_.e=lAA.prototype;_.e.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e.onDataChanged=function(){var q=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(Z){q.onEndpointLinkKeyPress(Z)}))};
_.e.onEndpointLinkKeyPress=function(q){q.target===this.endpointLink&&q.keyCode===13&&_.hy(this.hostElement,"click")};
_.e.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var q;if((q=this.data)==null?0:q.endpoint)_.ZC(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.e.onYtNavigate=function(q){this.endpointHref||(q.stopPropagation(),q.preventDefault())};
_.e.onInformationButtonContainerClick=function(q){q.target.id!=="information-button-container"&&(q.stopPropagation(),q.preventDefault())};
_.e.computeStyle=function(q){return q};
_.e.computeIsThumbnailStyle=function(q){return q==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.e.computeThumbnailWidth=function(q){switch(q){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}};
_.e.computeThumbnailObjectFit=function(q){switch(q){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.My.Object.defineProperties(lAA.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
var vl=lAA;vl.prototype.onYtNavigate=vl.prototype.onYtNavigate;vl.prototype.onClick=vl.prototype.onClick;vl.prototype.onDataChanged=vl.prototype.onDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],vl.prototype,"componentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],vl.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],vl.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],vl.prototype,"componentStyle",void 0);_.X([_.F({computed:"computeIsThumbnailStyle(data.style)"}),_.A("design:type",Boolean)],vl.prototype,"isThumbnailStyle",void 0);_.X([_.F({computed:"computeThumbnailObjectFit(data.style)"}),_.A("design:type",String)],vl.prototype,"thumbnailObjectFit",void 0);
_.X([_.F({computed:"computeThumbnailWidth(data.style)"}),_.A("design:type",Number)],vl.prototype,"thumbnailWidth",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],vl.prototype,"rounded",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],vl.prototype,"fixie",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],vl.prototype,"fullWidth",void 0);_.X([_.fo("#endpoint-link"),_.A("design:type",HTMLAnchorElement)],vl.prototype,"endpointLink",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vl.prototype,"onDataChanged",null);_.X([_.I("data.endpoint"),_.A("design:type",Object),_.A("design:paramtypes",[])],vl.prototype,"endpointHref",null);_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],vl.prototype,"onClick",null);
_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],vl.prototype,"onYtNavigate",null);vl=_.X([_.l({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],vl);
_.p(vl,"ytd-rich-metadata-renderer",function(){if(NX5!==void 0)return NX5;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return NX5=q},{mode:_.NT("kevlar_poly_si_batch_j075")?1:2});var G1m;var pGF=function(){var q=_.N.apply(this,arguments)||this;q.fixie=!1;q.fullWidth=!1;return q};
_.z(pGF,_.N);pGF.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
pGF.prototype.computeHasDividerLine=function(q){return q};
var j0=pGF;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],j0.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],j0.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.A("design:type",Boolean)],j0.prototype,"hasDividerLine",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],j0.prototype,"fixie",void 0);
_.X([_.F(),_.A("design:type",Object)],j0.prototype,"fullWidth",void 0);j0=_.X([_.l({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],j0);
_.p(j0,"ytd-rich-metadata-row-renderer",function(){if(G1m!==void 0)return G1m;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return G1m=q},{mode:1});var XG6=function(){var q=_.N.apply(this,arguments)||this;q.engagementPanelContent=!1;q.fixie=!1;q.fullWidth=!1;return q};
_.z(XG6,_.N);
XG6.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"}}}};
XG6.prototype.computeCollapsibleItems=function(q,Z,w){return q===void 0||Z===void 0||w===void 0||w?[]:q.slice(Z)};
XG6.prototype.computeAlwaysShownItems=function(q,Z){return q&&q.length?q.slice(0,Z):[]};
var tG=XG6;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],tG.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],tG.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],tG.prototype,"collapsed",void 0);
_.X([_.F({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.A("design:type",Array)],tG.prototype,"alwaysShownItems",void 0);_.X([_.F({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.A("design:type",Array)],tG.prototype,"collapsibleItems",void 0);_.X([_.F(),_.A("design:type",Object)],tG.prototype,"engagementPanelContent",void 0);_.X([_.F(),_.A("design:type",Object)],tG.prototype,"fixie",void 0);
_.X([_.F(),_.A("design:type",Object)],tG.prototype,"fullWidth",void 0);tG=_.X([_.l({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],tG);
_.p(tG,"ytd-metadata-row-container-renderer",function(){if(Ubm!==void 0)return Ubm;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Ubm=q},{mode:1});var mbd;var A1F=function(){var q=_.N.apply(this,arguments)||this;q.currentPageUrl="";q.baseUrl="";q.isHiddenByUser=null;q.hidden=!1;q.showAboveScrim=!1;q.watchNextGrid=_.b("kevlar_watch_grid");q.modernButtons=_.b("web_modern_buttons");q.roundedContainer=!0;q.noBorder=!1;q.roundBackground=!_.b("live_chat_round_background_killswitch");q.overflowHideChat=_.b("live_chat_overflow_hide_chat");q.forceDarkTheme=!1;q.theaterWatchWhile=!1;q.isListeningForPlayerProgress=!1;q.JSC$19736_playerEvents=new Map;q.isFrameReady=
!1;q.player=null;q.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 q};
_.z(A1F,_.N);_.e=A1F.prototype;_.e.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.i5(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.e.created=function(){var q=this;this.handleIframeEventListener=function(Z){q.handleIframeEvent(Z)};
this.handleKeyboardEventListener=function(Z){q.handleKeyboardEvent(Z)};
this.JSC$19736_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19736_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19736_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19736_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19736_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.e.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()};
_.e.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};
_.e.computeBaseUrl=function(q){var Z="/live_chat";this.isChatReplay()&&(Z="/live_chat_replay");return _.mx(_.Xi(_.pN(_.UJ(q),Z),null),"").toString()};
_.e.dataChanged=function(){_.b("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.e.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var q=this.url;if(this.isChatReplay()&&this.player){var Z=Math.floor(this.player.getProgressState().current*1E3);q=_.Kh(_.UJ(q),"playerOffsetMs",Z.toString()).toString()}Z=this.chatframe;try{var w=q==="about:blank"?_.u79:_.EX(q),r=Z.contentDocument.location,Y=_.kv(w);Y!==void 0&&r.replace(Y)}catch(C){Z.src=q}}};
_.e.collapsedChanged=function(){_.hy(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.e.handleIframeEvent=function(q){if(q&&this.baseUrl.startsWith(q.origin)&&q.source===this.chatframe.contentWindow&&_.DT(q.data))if(q.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(q);else if(q.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(q.data["yt-show-feedback-dialog"]){var Z=_.t().resolve(_.Gj(_.KTS));if(Z){var w=q.ports,r;w&&w.length&&(r=function(){w[0].postMessage({})});
q=q.data["yt-show-feedback-dialog"];Z.showFeedbackDialog(q.customProductData,q.feedbackContent,r,q.bucket)}}else if(q.data["yt-show-survey"])_.hy(this.hostElement,"yt-show-survey",q.data["yt-show-survey"]);else if(q.data["yt-purchase-membership"])_.t().resolve(_.ps).resolveCommand(q.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(q.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(q.data["yt-tunnel-out-live-service-request"]);else if(q.data["yt-user-activity"])_.lh();
else if(q.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(q.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(q.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(q.data["yt-open-popup"]);else if(q.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(q.data["yt-log-flow-logging-event-command"]);else if(q.data["yt-hide-live-chat"])this.onShowHideChat();else q.data["yt-report-moderation-state-log"]&&
this.player&&(Z={cpn:this.player.getVideoData().cpn},_.vO("liveChatBeingModerated",Z))};
_.e.attachLiveChatResponseVeTrackingParams=function(q){q=_.wa(q);var Z=_.b5(),w=_.Eq("liveChatRenderer.trackingParams",this.data);Z&&w&&_.T7(Z,_.wa(w),q)};
_.e.handleBuyflowMessages=function(q){var Z=q.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,w=q.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,r=q.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.RuX(_.gn(_.Q5),Z.replace(/-/g,"+").replace(/_/g,"/"),function(Y){q.ports[0].postMessage({success:!0,buyFlowResponse:Y})},void 0,function(Y){q.ports[0].postMessage({success:!1,
error:Y&&Y.message||"Buyflow rejected without error."})},_.Hd().get("hl"),void 0,function(){q.ports[0].postMessage({closed:!0})},w,r)};
_.e.setupPlayerProgressRelay=function(){var q=this;if(!this.isListeningForPlayerProgress){var Z=_.s1();Z!=null&&Z.getPlayerPromise&&(Z.getPlayerPromise().then(function(w){q.playerApiReady(w)}),this.isListeningForPlayerProgress=!0)}};
_.e.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.e.playerApiReady=function(q){this.setPlayer(q)};
_.e.playerProgressHandler=function(){if(this.player){var q=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":q.current})}};
_.e.playerAdStartHandler=function(q){this.postToContentWindow({"yt-player-ad-start":q})};
_.e.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.e.playerStateChangeHandler=function(q){this.postToContentWindow({"yt-player-state-change":q})};
_.e.setPlayer=function(q){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19736_playerEvents);q&&(this.player=q,this.ytPlayerListenerBehavior.listenToPlayerEvents(q,this.JSC$19736_playerEvents),_.hy(this.hostElement,"player-api-ready"))};
_.e.liveChatPageUrl=function(q,Z,w,r){return!w||Z?"about:blank":w.liveChatRenderer?(Z=_.UJ(this.currentPageUrl).JSC$7906_queryData_,kaI(Z),q=_.UJ(q),Z.add("continuation",w.liveChatRenderer.continuations[0].reloadContinuationData.continuation),w=_.RJ()==="USER_INTERFACE_THEME_DARK",(r||w)&&Z.add("dark_theme","true"),_.Xi(q,Z),r=_.UJ(q.toString()),w=r.JSC$7906_queryData_,"SESSION_INDEX"in _.Rz&&(w.add("authuser",_.zj("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Rz&&w.add("pageId",_.zj("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Rz&&w.add("sdc",_.zj("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),r.toString()):""};
_.e.isCollapsed=function(q,Z){return Z!==null?Z:this.isChatReplay()||q&&q.conversationBarRenderer&&q.conversationBarRenderer.availabilityMessage?!0:q&&q.liveChatRenderer?q.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!1};
_.e.isHidden=function(q,Z,w){var r=Z&&Z.conversationBarRenderer&&Z.conversationBarRenderer.availabilityMessage,Y=Z&&Z.liveChatRenderer&&Z.liveChatRenderer.showHideButton,C=Z&&Z.liveChatRenderer&&Z.liveChatRenderer.showButton;return w&&q&&!r&&!C||!w&&q&&!r&&!Y?!0:Z&&Z.liveChatRenderer&&Z.liveChatRenderer.initialDisplayState?Z.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.e.computeButtonOverride=function(q,Z){if(q&&Z)return{type:"outline"}};
_.e.setCollapsedState=function(q){_.J(q,_.h1X)&&(this.isHiddenByUser=!!_.J(q,_.h1X).collapsed,!this.isHiddenByUser&&_.b("enable_teaser_framework_web_client")&&_.yY(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.e.forwardReduxActionToIframe=function(q){this.postToContentWindow({"yt-live-chat-forward-redux-action":q})};
_.e.onLoopRangeChange=function(q){this.showAboveScrim=!(q==null||!q.postId)};
_.e.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.e.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.e.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.e.sendDarkThemePostMessage=function(q){this.postToContentWindow({"yt-live-chat-set-dark-theme":q})};
_.e.onLiveChatBuyFlowCallback=function(q){this.postToContentWindow({"yt-live-chat-buy-flow-callback":q})};
_.e.handleKeyboardEvent=function(q){(0,_.R4.containsValue)(cug,q.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:q.type,keyCode:q.keyCode}})};
_.e.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.e.postToContentWindow=function(q){if(this.isFrameReady)try{var Z=window.location.protocol+"//"+window.location.host,w;(w=this.chatframe)!=null&&w.contentWindow?this.chatframe.contentWindow.postMessage(q,Z):_.bx(new _.df("Tried posting a message to an iframe with no content window",q))}catch(r){_.tY(r)}};
_.e.shouldHideChatFrame=function(q){return q&&_.b("hide_live_chat_button_when_collapsed")};
_.My.Object.defineProperties(A1F.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.b("live_chat_overflow_hide_chat")||_.b("web_watch_chat_hide_button_killswitch"))return _.b("live_chat_overflow_hide_chat");var q,Z,w,r;return!!((q=this.data)==null?0:(Z=q.liveChatRenderer)==null?0:(w=Z.header)==null?0:(r=w.liveChatHeaderRenderer)==null?0:r.collapseButton)}}});
var Ro=A1F;Ro.prototype.collapsedChanged=Ro.prototype.collapsedChanged;Ro.prototype.urlChanged=Ro.prototype.urlChanged;Ro.prototype.dataChanged=Ro.prototype.dataChanged;Ro.prototype.onShowHideChat=Ro.prototype.onShowHideChat;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Ro.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Ro.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.QQ.YtPlayerListenerBehavior),_.A("design:type",_.EW)],Ro.prototype,"ytPlayerListenerBehavior",void 0);_.X([_.U(_.Xp.YtOpenPopupBehavior),_.A("design:type",Object)],Ro.prototype,"ytOpenPopupBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ro.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Ro.prototype,"currentPageUrl",void 0);
_.X([_.F({computed:"computeBaseUrl(currentPageUrl,data)"}),_.A("design:type",Object)],Ro.prototype,"baseUrl",void 0);_.X([_.F({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.A("design:type",String)],Ro.prototype,"url",void 0);_.X([_.F(),_.A("design:type",Object)],Ro.prototype,"isHiddenByUser",void 0);_.X([_.F({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.A("design:type",Object)],Ro.prototype,"hidden",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.A("design:type",Boolean)],Ro.prototype,"collapsed",void 0);_.X([_.F({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.A("design:type",Boolean)],Ro.prototype,"hideChatFrame",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ro.prototype,"showAboveScrim",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ro.prototype,"watchNextGrid",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ro.prototype,"modernButtons",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ro.prototype,"roundedContainer",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ro.prototype,"noBorder",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ro.prototype,"roundBackground",void 0);
_.X([_.F({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.A("design:type",Object)],Ro.prototype,"toggleButtonOverride",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ro.prototype,"overflowHideChat",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ro.prototype,"forceDarkTheme",void 0);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ro.prototype,"enableShowWithoutHideChatButton",null);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ro.prototype,"theaterWatchWhile",void 0);_.X([_.fo("#chatframe"),_.A("design:type",HTMLIFrameElement)],Ro.prototype,"chatframe",void 0);_.X([_.m2("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ro.prototype,"onShowHideChat",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ro.prototype,"dataChanged",null);
_.X([_.M("url"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ro.prototype,"urlChanged",null);_.X([_.M("collapsed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ro.prototype,"collapsedChanged",null);Ro=_.X([_.l({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Ro);
_.p(Ro,"ytd-live-chat-frame",function(){if(mbd!==void 0)return mbd;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return mbd=q},{mode:1});var fAA;var bd=function(){var q=_.N.apply(this,arguments)||this;q.modern=_.b("web_modern_buttons");q.buttonOverrides={style:"call-to-action",type:"filled"};return q};
_.z(bd,_.N);bd.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=_.oJ(this.data.backgroundColor)))};
bd.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var q=this.getFormattedStringLoggingDirectives(this.data.headline);q&&this.rendererBehavior.logExplicitClick(q)}};
bd.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var q=this.getFormattedStringLoggingDirectives(this.data.description);q&&this.rendererBehavior.logExplicitClick(q)}};
bd.prototype.getFormattedStringLoggingDirectives=function(q){return q&&q.runs&&q.runs.length>0&&q.runs[0]&&q.runs[0].loggingDirectives?q.runs[0].loggingDirectives:null};
var JG=bd;JG.prototype.dataChanged=JG.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],JG.prototype,"rendererBehavior",void 0);_.X([_.U(j1I.YtMacroReplacementBehavior),_.A("design:type",Object)],JG.prototype,"macroReplacementBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],JG.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],JG.prototype,"navigationEndpoint",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],JG.prototype,"enableColors",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],JG.prototype,"modern",void 0);_.X([_.F(),_.A("design:type",Object)],JG.prototype,"buttonOverrides",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],JG.prototype,"dataChanged",null);JG=_.X([_.l({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],JG);
_.p(JG,"ytd-action-basic-immersive-content-renderer",function(){if(fAA!==void 0)return fAA;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return fAA=q},{mode:1});var Dbw;var hOA;var y15=function(){return _.N.apply(this,arguments)||this};
_.z(y15,_.N);y15.prototype.dataChanged=function(){var q;((q=this.data)==null?void 0:q.backgroundColor)!==void 0&&_.po(this.hostElement,{"--bgu-color":_.oJ(this.data.backgroundColor)})};
y15.prototype.onImageTileClick=function(){var q;((q=this.data)==null?0:q.navigationEndpoint)&&_.hy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var Z;((Z=this.data)==null?0:Z.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.My.Object.defineProperties(y15.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var q;if(((q=this.data)==null?void 0:q.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 q;return((q=this.data)==null?void 0:q.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;if(((q=this.data)==null?void 0:(Z=q.detailsLine)==null?void 0:Z.texts)!=null&&((w=this.data)==null?void 0:w.detailsLine.texts.length)>0){var r;return(r=this.data)==null?void 0:r.detailsLine.texts.map(function(Y){return Y.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;if(((q=this.data)==null?void 0:(Z=q.optionalDetailsLine)==null?void 0:Z.texts)!=null&&((w=this.data)==null?void 0:w.optionalDetailsLine.texts.length)>0){var r;return(r=this.data)==null?void 0:r.optionalDetailsLine.texts.map(function(Y){return Y.text}).join("")}return null}}});
var zC=y15;zC.prototype.dataChanged=zC.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],zC.prototype,"rendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],zC.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],zC.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data.backgroundColor"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zC.prototype,"hasBackgroundColor",null);
_.X([_.I("data.objectFit"),_.A("design:type",Object),_.A("design:paramtypes",[])],zC.prototype,"getObjectFit",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.tileRenderingStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zC.prototype,"hasTileMetadata",null);_.X([_.I("data.detailsLine"),_.A("design:type",Object),_.A("design:paramtypes",[])],zC.prototype,"getSecondaryDetails",null);
_.X([_.I("data.optionalDetailsLine"),_.A("design:type",Object),_.A("design:paramtypes",[])],zC.prototype,"getOptionalDetails",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zC.prototype,"dataChanged",null);zC=_.X([_.l({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],zC);
_.p(zC,"ytd-image-tile-renderer",function(){if(hOA!==void 0)return hOA;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return hOA=q},{mode:1});var ih9;var giA=function(){return _.N.apply(this,arguments)||this};
_.z(giA,_.N);giA.prototype.getOpenLinkIcon=function(){return _.b("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
giA.prototype.onSitelinkTap=function(){_.hy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.b("kevlar_command_handler_migration_killswitch"))_.ZC(this.hostElement,this.data.clickCommands,this.hostElement);else for(var q=_.P(this.data.clickCommands),Z=q.next();!Z.done;Z=q.next())this.ytComponentBehavior.resolveCommand(Z.value)};
var Bl=giA;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Bl.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Bl.prototype,"rendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Bl.prototype,"data",void 0);Bl=_.X([_.l({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],Bl);
_.p(Bl,"ytd-sitelink-renderer",function(){if(ih9!==void 0)return ih9;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ih9=q},{mode:1});var ao=function(){var q=_.N.apply(this,arguments)||this;q.paddingFix=_.b("enable_ads_web_ep_buenos_aires_and_padding_fix");return q};
_.z(ao,_.N);ao.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"}}}};
ao.prototype.dataChanged=function(){var q=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(Z){Z.clickTrackingParams&&delete Z.clickTrackingParams;q.ytMacroReplacementBehavior.sendServiceRequestAction([Z])})};
ao.prototype.shouldHideFooter=function(q){return!(q&&_.b("use_ads_engagement_panel_desktop_footer_cta"))};
_.My.Object.defineProperties(ao.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.data)==null?void 0:q.imageTileRenderers)===void 0||((Z=this.data)==null?void 0:Z.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(w){var r;return(r=_.J(w,Fmm))==null?void 0:r.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.data)==null?void 0:q.imageTileRenderers)===void 0||((Z=this.data)==null?void 0:Z.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(w){var r;return((r=_.J(w,Fmm))==null?void 0:r.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
var nm=ao;nm.prototype.dataChanged=nm.prototype.dataChanged;_.X([_.U(j1I.YtMacroReplacementBehavior),_.A("design:type",Object)],nm.prototype,"ytMacroReplacementBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],nm.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],nm.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],nm.prototype,"paddingFix",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data.imageTileRenderers"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],nm.prototype,"removeBorderFromImageTiles",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.imageTileRenderers"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],nm.prototype,"useFooteredMetadataRenderingStyle",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nm.prototype,"dataChanged",null);nm=_.X([_.l({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],nm);
_.p(nm,"ytd-action-engagement-panel-content-renderer",function(){if(Dbw!==void 0)return Dbw;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Dbw=q},{mode:1});var quw;var Z76=_.xl(function(q){var Z=q.data;var w=q.customCommandResolver;q=_.Iw();_.MA(q,function(){return Z().interaction},w);
_.Xu(q,{visibilityCallback:function(r){var Y,C=(Y=Z().interaction)==null?void 0:Y.onFirstVisible;r&&C&&_.Sp(C)},
showOption:_.AO});return _.u("ad-grid-card-image-full-metadata-view-model",{class:function(){var r;return((r=Z().interaction)==null?0:r.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:q,"aria-label":function(){var r,Y;return(r=Z().interaction)==null?void 0:(Y=r.accessibility)==null?void 0:Y.label}},_.u("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.u(_.Hx,{data:function(){return Z().adImage}},{adImageViewModel:function(r){return _.u(_.SD,{data:r.data,
customCommandResolver:w})}})),_.u("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.u(_.PF,{cond:function(){return Z().headline},
then:function(r){return _.u(_.r6,{text:r,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.u(_.PF,{cond:function(){return Z().detailsLine},
then:function(r){return _.u("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.u(_.Hx,{data:r},{adDetailsLineViewModel:function(Y){return _.u(_.g8,{data:Y.data,customCommandResolver:w,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.u(_.PF,{cond:function(){return Z().secondaryDetailsLine},
then:function(r){return _.u("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.u(_.Hx,{data:r},{adDetailsLineViewModel:function(Y){return _.u(_.g8,{data:Y.data,customCommandResolver:w,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Kh");var wNv=_.xl(function(q){var Z=q.data;var w=q.customCommandResolver;q=_.Iw();_.MA(q,function(){return Z().interaction},w);
_.Xu(q,{visibilityCallback:function(r){var Y,C=(Y=Z().interaction)==null?void 0:Y.onFirstVisible;r&&C&&_.Sp(C)},
showOption:_.AO});return _.u("ad-grid-card-image-view-model",{class:function(){var r;return((r=Z().interaction)==null?0:r.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:q,"aria-label":function(){var r,Y;return(r=Z().interaction)==null?void 0:(Y=r.accessibility)==null?void 0:Y.label}},_.u(_.Hx,{data:function(){return Z().adImage}},{adImageViewModel:function(r){return _.u(_.SD,{data:r.data,
customCommandResolver:w})}}),_.u("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.u(_.Hx,{data:function(){return Z().adCardBadge}},{adCardBadgeViewModel:_.ea2})))},"Lh");var rX9=_.xl(function(q){var Z=q.data;var w=q.customCommandResolver;q=_.Iw();_.MA(q,function(){return Z().interaction},w);
_.Xu(q,{visibilityCallback:function(r){var Y,C=(Y=Z().interaction)==null?void 0:Y.onFirstVisible;r&&C&&_.Sp(C)},
showOption:_.AO});return _.u("ad-grid-card-text-view-model",{class:function(){var r;return((r=Z().interaction)==null?0:r.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:q,"aria-label":function(){var r,Y;return(r=Z().interaction)==null?void 0:(Y=r.accessibility)==null?void 0:Y.label}},_.u("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.u(_.PF,{cond:function(){return Z().title},
then:function(r){return _.u(_.r6,{text:r,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.u("div",{class:function(){return _.b("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.u(_.dA,{each:function(){var r;
return((r=Z())==null?void 0:r.descriptions)||[]},
keyBy:"INDEX"},function(r){return _.u(_.r6,{text:r,className:function(){return _.b("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.u("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.u(_.Hx,{data:function(){return Z().moreInfoButton}},{adButtonViewModel:function(r){return _.u(_.Du,{data:r.data,
customCommandResolver:w})}})))},"Mh");var Yu5=_.xl(function(q){var Z=q.data;var w=q.customCommandResolver;var r=q.adGridCardCollectionStyle;q=_.Iw();_.Xu(q,{visibilityCallback:function(Y){var C,d=(C=Z().interaction)==null?void 0:C.onFirstVisible;Y&&d&&_.Sp(d)},
showOption:_.AO});return _.u("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:q,style:function(){return"grid-template-columns: repeat("+llr(r?r():Z().style)+", minmax(0, 1fr));"}},_.u(_.Hx,{data:function(){var Y;
return(Y=Z())==null?void 0:Y.gridCards}},{adGridCardImageViewModel:function(Y){return _.u(wNv,{data:Y.data,
customCommandResolver:w})},
adGridCardImageFullMetadataViewModel:function(Y){return _.u(Z76,{data:Y.data,customCommandResolver:w})},
adGridCardTextViewModel:function(Y){return _.u(rX9,{data:Y.data,customCommandResolver:w})}}))},"Nh");_.xc(_.xl(function(q){var Z=q.data;q=_.Iw();_.MA(q,function(){return Z().interaction},pyA);
_.Xu(q,{visibilityCallback:function(w){var r,Y=(r=Z().interaction)==null?void 0:r.onFirstVisible;w&&Y&&_.Sp(Y)},
showOption:_.AO});return _.u("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:q},_.u("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.u(_.PF,{cond:_.gHX("(min-width: "+((0,_.V$)()+_.FC)+"px)"),then:function(){return _.u(_.Hx,{data:function(){return Z().adGridCardCollection}},{adGridCardCollectionViewModel:function(w){return _.u(Yu5,{data:w.data,
customCommandResolver:pyA})}})},
else:function(){return _.u(_.Hx,{data:function(){return Z().adGridCardCollection}},{adGridCardCollectionViewModel:function(w){return _.u(Yu5,{data:w.data,
customCommandResolver:pyA,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.u("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.u(_.Hx,{data:function(){return Z().adButton}},{adButtonViewModel:function(w){return _.u(_.Du,{data:w.data,
customCommandResolver:pyA})}})))},"Oh"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.zG}});_.xc(_.xl(function(q){var Z=q.data;q=_.Iw();_.MA(q,function(){return Z().interaction},Xy6);
_.Xu(q,{visibilityCallback:function(w){var r,Y=(r=Z().interaction)==null?void 0:r.onFirstVisible;w&&Y&&_.Sp(Y)},
showOption:_.AO});return _.u("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:q},_.u("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.u(_.Hx,{data:function(){if(_.gHX("(min-width: "+((0,_.V$)()+_.FC)+"px)")())var w=Z().adGridCardCollection;else{w=Object.assign({},_.J(Z().adGridCardCollection,Nr5));var r;w.gridCards!==void 0&&((r=w.gridCards)==null?void 0:r.length)>1?w.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":w.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";w={adGridCardCollectionViewModel:w}}return w}},{adGridCardCollectionViewModel:function(w){return _.u(Yu5,{data:w.data,
customCommandResolver:Xy6})}})),_.u("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.u(_.Hx,{data:function(){return Z().adButton}},{adButtonViewModel:function(w){return _.u(_.Du,{data:w.data,
customCommandResolver:Xy6})}})))},"Ph"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.zG}});var $oA=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return q};
_.z($oA,_.N);_.e=$oA.prototype;_.e.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"}}}};
_.e.attached=function(){this.getDataFromPlayerAndRender()};
_.e.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.e.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.e.getDataFromPlayerAndRender=function(){var q=this,Z=_.K6(this.hostElement);Z&&Z.getPlayerPromise().then(function(w){q.getCachedDataAndListen(w)})};
_.e.getCachedDataAndListen=function(q){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(q,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(q,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=q)};
_.e.resolveCachedActions=function(){var q=_.Eq("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(q=q&&q())&&!_.R4.isEmpty(q)&&this.sendUpdateEngagementPanelAction(q);(q=(q=_.Eq("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&q())&&!_.R4.isEmpty(q)&&this.sendChangeEngagementPanelVisibilityAction(q);(q=(q=_.Eq("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&q())&&!_.R4.isEmpty(q)&&this.sendScrollToEngagementPanelCommand(q)};
_.e.sendUpdateEngagementPanelAction=function(q){var Z;_.yY(this.hostElement,"yt-update-engagement-panel-action",[(Z=_.R4.get(q,"action"))!=null?Z:q])};
_.e.sendChangeEngagementPanelVisibilityAction=function(q){_.yY(this.hostElement,"yt-change-engagement-panel-visibility-action",[q])};
_.e.sendScrollToEngagementPanelCommand=function(q){_.yY(this.hostElement,"yt-scroll-to-engagement-panel-command",[q])};
_.e.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.b("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.bx(Error("fm"))};
var QI=$oA;QI.prototype.dataChanged=QI.prototype.dataChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],QI.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],QI.prototype,"componentBehavior",void 0);_.X([_.U(_.QQ.YtPlayerListenerBehavior),_.A("design:type",_.EW)],QI.prototype,"ytPlayerListenerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],QI.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],QI.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],QI.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],QI.prototype,"player",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QI.prototype,"dataChanged",null);QI=_.X([_.l({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],QI);
_.p(QI,"ytd-ads-engagement-panel-content-renderer",function(){if(quw!==void 0)return quw;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
return quw=q},{mode:1});var e2g;var CSw=function(){var q=_.N.apply(this,arguments)||this;q.player=null;q.JSC$19773_playerEvents=new Map;q.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return q};
_.z(CSw,_.N);_.e=CSw.prototype;_.e.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]]"}}}}}};
_.e.created=function(){this.player=null;this.JSC$19773_playerEvents=new Map;this.JSC$19773_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19773_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19773_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19773_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.e.attached=function(){var q=this,Z=_.K6();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));Z&&Z.getPlayerPromise().then(function(w){q.setPlayer(w);q.set("isPageLoad",!1)})};
_.e.setPlayer=function(q){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19773_playerEvents);this.set("player",q);q&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(q,this.JSC$19773_playerEvents),q.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.e.onLoopRangeChange=function(q){var Z=_.t().resolve(_.Gj(_.U1));if((!Z||Z.isOnWatch())&&this.hostElement.clientHeight){var w;!q&&((w=this.data)==null?0:w.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.e.onVideoProgress=function(q){var Z,w,r=((Z=this.player)==null?void 0:(w=Z.getPresentingPlayerType)==null?void 0:w.call(Z))===2;this.isAdPlaying!==r&&this.set("isAdPlaying",r);var Y;if(!r&&(Y=this.player)!=null&&Y.getLoopRange()){w=this.player.getLoopRange();Z=w.startTimeMs;w=w.endTimeMs;r=this.player.getProgressState(1).seekableStart;var C;Z<r*1E3&&((C=this.data)==null?0:C.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
q=w<q*1E3;var d;((d=this.player)==null?0:d.getLoopRange())&&q&&this.player.seekTo(Z/1E3)}};
_.e.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.e.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.e.onYtDeleteClipEngagementPanelCommand=function(q){_.J(q,wqg).command&&this.ytComponentBehavior.resolveCommand(_.J(q,wqg).command)};
_.My.Object.defineProperties(CSw.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.voteCount)||_.UE("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
var Ew=CSw;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Ew.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ew.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Ew.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.QQ.YtPlayerListenerBehavior),_.A("design:type",_.EW)],Ew.prototype,"ytPlayerListenerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ew.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Ew.prototype,"isAdPlaying",void 0);_.X([_.F({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],Ew.prototype,"isPageLoad",void 0);_.X([_.F({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],Ew.prototype,"isDarkTheme",void 0);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ew.prototype,"voteCount",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ew.prototype,"channelEndpoint",null);_.X([_.I("channelEndpoint"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ew.prototype,"channelHref",null);Ew=_.X([_.l({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Ew);
_.p(Ew,"ytd-clip-attribution-renderer",function(){if(e2g!==void 0)return e2g;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return e2g=q},{mode:1});var PSv;var doa=function(){var q=_.N.apply(this,arguments)||this;q.player=null;q.JSC$19778_playerEvents=new Map;return q};
_.z(doa,_.N);_.e=doa.prototype;_.e.created=function(){this.player=null;this.JSC$19778_playerEvents=new Map;this.JSC$19778_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19778_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19778_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.e.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.e.attached=function(){var q=this,Z=_.K6();Z&&Z.getPlayerPromise().then(function(w){q.setPlayer(w);q.set("isPageLoad",!1)})};
_.e.setPlayer=function(q){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19778_playerEvents);this.set("player",q);if(q){this.ytPlayerListenerBehavior.listenToPlayerEvents(q,this.JSC$19778_playerEvents);var Z;(q==null?void 0:(Z=q.getPresentingPlayerType)==null?void 0:Z.call(q))===2&&this.playerAdStartHandler()}};
_.e.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.e.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.e.onVideoProgress=function(){var q,Z,w=((q=this.player)==null?void 0:(Z=q.getPresentingPlayerType)==null?void 0:Z.call(q))===2;this.isAdPlaying!==w&&this.set("isAdPlaying",w)};
var xU=doa;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],xU.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],xU.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.QQ.YtPlayerListenerBehavior),_.A("design:type",_.EW)],xU.prototype,"ytPlayerListenerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],xU.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],xU.prototype,"isAdPlaying",void 0);_.X([_.F({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],xU.prototype,"isPageLoad",void 0);xU=_.X([_.l({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],xU);
_.p(xU,"ytd-clip-section-footer-renderer",function(){if(PSv!==void 0)return PSv;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return PSv=q},{mode:1});var VG5;var O7F;var H7w=function(){return _.N.apply(this,arguments)||this};
_.z(H7w,_.N);var WP9=H7w;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],WP9.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],WP9.prototype,"data",void 0);WP9=_.X([_.l({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],WP9);
_.p(WP9,"ytd-clip-ad-state-renderer",function(){if(O7F!==void 0)return O7F;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return O7F=q},{mode:1});var o6X;var u4a=function(){var q=_.N.apply(this,arguments)||this;q.value="";q.valid=!1;q.userChangedValue=!1;q.disabled=!1;q.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return q};
_.z(u4a,_.N);_.e=u4a.prototype;_.e.detached=function(){this.userChangedValue=!1};
_.e.handleKeyDown=function(q){if(_.rS)var Z=13;else _.Qo8&&_.YZ?Z=13:Z=13;q.keyCode===Z&&q.preventDefault()};
_.e.handleInput=function(){var q=_.E(this.hostElement).querySelector("#title");if(q){var Z=(q.value||"").replace(/\r|\n/g," ");this.set("value",Z);q.value=Z;this.valid=q.validate();this.userChangedValue=!0}};
_.e.handleBlur=function(){this.valid=_.E(this.hostElement).querySelector("#title").validate()};
_.e.onValueChanged=function(){_.hy(this.hostElement,"title-changed",{title:this.value})};
_.e.onValidChanged=function(){_.hy(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.e.setInput=function(q,Z){var w=_.E(this.hostElement).querySelector("#title");w&&(w.value=q,this.handleInput(),Z&&(w.invalid=!1,this.valid=!0))};
_.e.onClipCreationDisable=function(){this.set("disabled",!0)};
_.e.onClipCreationEnable=function(){this.set("disabled",!1)};
_.e.onClipCreationVisibilityChange=function(q){var Z=this;q.visible?requestAnimationFrame(function(){var w;((w=_.E(Z.hostElement).querySelector("#title"))==null?void 0:w.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
var TC=u4a;TC.prototype.onValidChanged=TC.prototype.onValidChanged;TC.prototype.onValueChanged=TC.prototype.onValueChanged;TC.prototype.handleBlur=TC.prototype.handleBlur;TC.prototype.handleInput=TC.prototype.handleInput;TC.prototype.handleKeyDown=TC.prototype.handleKeyDown;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],TC.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],TC.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],TC.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],TC.prototype,"value",void 0);_.X([_.F(),_.A("design:type",Object)],TC.prototype,"valid",void 0);_.X([_.F(),_.A("design:type",Object)],TC.prototype,"userChangedValue",void 0);_.X([_.F(),_.A("design:type",Object)],TC.prototype,"disabled",void 0);_.X([_.m2("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],TC.prototype,"handleKeyDown",null);
_.X([_.m2("input"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TC.prototype,"handleInput",null);_.X([_.m2("blur"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TC.prototype,"handleBlur",null);_.X([_.M("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TC.prototype,"onValueChanged",null);
_.X([_.M("valid"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TC.prototype,"onValidChanged",null);TC=_.X([_.l({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],TC);
_.p(TC,"ytd-clip-creation-text-input-renderer",function(){if(o6X!==void 0)return o6X;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return o6X=q},{mode:1});var LP8;var Sug;var v6m;var jFd;var tGA;var R2X=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};q.pendingStoryboardImages_={};q.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];q.tickLabelInterval=30;q.mediumTickInterval=5;q.largeTickInterval=15;q.aboveRulerHeight=32;q.rulerHeight=50;q.smallTickHeight=4;q.mediumTickHeight=8;q.largeTickHeight=16;q.mediaListeners_=
{};return q};
_.z(R2X,_.N);_.e=R2X.prototype;_.e.attached=function(){var q=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(Z){Z=_.P(["screen and (min-resolution: "+Z+")","screen and (max-resolution: "+Z+")"]);for(var w=Z.next();!w.done;w=Z.next()){w=w.value;var r=window.matchMedia(w);r&&(q.mediaListeners_[w]=q.updatePixelRatio_.bind(q),r.addEventListener?r.addEventListener("change",q.mediaListeners_[w]):r.addListener?r.addListener(q.mediaListeners_[w]):delete q.mediaListeners_[w])}})};
_.e.detached=function(){this.setPlayer(null);for(var q=_.P(Object.keys(this.mediaListeners_)),Z=q.next();!Z.done;Z=q.next()){var w=Z.value;Z=this.mediaListeners_[w];(w=window.matchMedia(w))&&(w.removeEventListener?w.removeEventListener("change",Z):w.removeListener&&w.removeListener(Z))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.e.onVisibilityChangedAction_=function(q){var Z=this;q.visible&&!this.player_&&(q=_.K6())&&q.getPlayerPromise().then(function(w){Z.setPlayer(w)})};
_.e.setPlayer=function(q){q&&this.set("player_",q)};
_.e.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.e.setUpCanvas_=function(){var q=this.rulerWidth,Z=this.devicePixelRatio_,w=this.visible;this.set("canvasReady_",!1);if(w&&Z!==0){w=this.aboveRulerHeight+this.rulerHeight;var r=_.E(this.hostElement).querySelector("#ticks");r.width=q*Z;r.height=w*Z;r.style.width=q+"px";r.style.height=w+"px";r.getContext("2d").scale(Z,Z);this.set("canvasReady_",!0)}};
_.e.drawRuler_=function(q,Z,w,r,Y,C,d,O,H,L,S,v){q&&w&&Z&&(q=_.E(this.hostElement).querySelector("#ticks"),Z=q.getContext("2d"),Z.clearRect(0,0,q.width,q.height),Z.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),Z.lineWidth=2,Z.beginPath(),Z.moveTo(0,this.aboveRulerHeight),Z.lineTo(q.width,this.aboveRulerHeight),Z.moveTo(0,q.height),Z.lineTo(q.width,q.height),Z.stroke(),this.drawRulerTicks_(q,C,Y,r),this.drawStoryboardImages_(q,w,C,Y,r),Z.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
Z.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(d-C,r,!1),this.rulerHeight),w=this.timeToPixels_(O-C,r,!1),Z.fillRect(w,this.aboveRulerHeight,q.width-w,this.rulerHeight),this.drawSpeedLines_(q,C,v))};
_.e.drawRulerTicks_=function(q,Z,w,r){var Y=q.getContext("2d");Y.save();Y.lineWidth=1;for(var C=Math.floor(Math.max(0,Z-this.tickLabelInterval));C<Z+w;C++){Y.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var d=(C-Z)*r;Y.beginPath();Y.moveTo(d,q.height);var O=this.smallTickHeight;C%this.largeTickInterval===0?O=this.largeTickHeight:C%this.mediumTickInterval===0&&(O=this.mediumTickHeight);Y.lineTo(d,q.height-O);Y.stroke();C%this.tickLabelInterval===0&&(Y.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),Y.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),Y.fillText(sR(C),d+4,12),Y.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),Y.moveTo(d,0),Y.lineTo(d,this.aboveRulerHeight),Y.stroke())}Y.restore()};
_.e.percentToHex_=function(q){q=Math.round(q*255).toString(16);q.length<2&&(q="0"+q);return q};
_.e.drawSpeedLines_=function(q,Z,w){var r=q.getContext("2d");r.save();var Y=Math.min(25,Math.abs(w)-15)/25,C=q.width*.3*Y,d=q.width*-.3,O=q.width*1.3,H=this.aboveRulerHeight;q=q.height;var L=Math.round(4*Y),S=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");S.length<7&&(S="#"+S.substring(1,4).repeat(2));var v=this.percentToHex_(.5+Y/2);v=S+v;S+="00";if(Y>0)for(Y=0;Y<L;Y++){var R=d+Math.random()*(O-d),B=H+Math.random()*(q-H),n=C+Z%C,x=r.createLinearGradient(R,B,R+n,B);
w<0?(x.addColorStop(0,v),x.addColorStop(.4,v),x.addColorStop(.9,S)):(x.addColorStop(.1,S),x.addColorStop(.6,v),x.addColorStop(1,v));r.strokeStyle=x;r.lineWidth=1;r.beginPath();r.moveTo(R,B);r.lineTo(R+n,B);r.stroke()}r.restore()};
_.e.getStoryboardForTime_=function(q,Z,w){w===void 0&&(w=Z.getNumberOfStoryboardLevels()-1);q=Z.getStoryboardFrameIndex(q,w);return Z.getStoryboardFrame(q,w)};
_.e.drawStoryboardImages_=function(q,Z,w,r,Y){if(!this.disabled){q=q.getContext("2d");var C=this.getStoryboardForTime_(0,Z);if(C){var d=C.width/C.columns;C=C.height/C.rows;var O=d/C,H=this.rulerHeight*O;H=this.tickLabelInterval*(O<this.tickLabelInterval*Y/this.rulerHeight?1/Math.floor(this.tickLabelInterval*Y/H):Math.round(H/(this.tickLabelInterval*Y)));var L=H*Y,S=this.rulerHeight,v=L/this.rulerHeight,R=Math.floor(Math.max(0,w-H));for(R-=R%H;R<w+r;R+=H){var B=this.getStoryboardForTime_(R,Z),n=this.getPreloadedStoryboard_(B.url);
if(n){var x=(R-w)*Y,K=this.aboveRulerHeight,k=B.column*d,G=B.row*C;if(O<v){var rz=S/(L/O);B=d;rz*=C;G+=(C-rz)/2}else B=L/(S*O)*d,rz=C,k+=(d-B)/2;q.drawImage(n,k,G,B,rz,x,K,L,S)}else this.fetchStoryboardImage_(B)}}}};
_.e.getPreloadedStoryboard_=function(q){return this.storyboardImages_.find(function(Z){if(Z.src==q)return!0;var w=Z.src.indexOf(q);return w!=-1&&w==Z.src.length-q.length})};
_.e.fetchStoryboardImage_=function(q){var Z=this,w=this.getPreloadedStoryboard_(q.url),r=this.pendingStoryboardImages_[q.url];w||r!==void 0||(w=new Promise(function(Y){var C=new Image(q.width,q.height);C.src=q.url;C.onload=function(){Y(C)};
C.onerror=function(){Y(null)}}),this.pendingStoryboardImages_[q.url]=w,w.then(function(Y){Y&&Z.push("storyboardImages_",Y);
return Y}).finally(function(){delete Z.pendingStoryboardImages_[q.url]}))};
_.e.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.e.timeToPixels_=function(q,Z,w){q*=Z;return w===void 0||w?q+"px":q};
_.e.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
var Uw=R2X;Uw.prototype.drawRuler_=Uw.prototype.drawRuler_;Uw.prototype.setUpCanvas_=Uw.prototype.setUpCanvas_;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Uw.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],Uw.prototype,"start",void 0);_.X([_.F({value:30}),_.A("design:type",Number)],Uw.prototype,"end",void 0);
_.X([_.F({value:!1}),_.A("design:type",Boolean)],Uw.prototype,"visible",void 0);_.X([_.F(),_.A("design:type",Object)],Uw.prototype,"player_",void 0);_.X([_.F(),_.A("design:type",Number)],Uw.prototype,"tickSpacing",void 0);_.X([_.F(),_.A("design:type",Number)],Uw.prototype,"windowSizeSec",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],Uw.prototype,"rulerWidth",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],Uw.prototype,"rulerShift",void 0);
_.X([_.F({value:!1}),_.A("design:type",Boolean)],Uw.prototype,"canvasReady_",void 0);_.X([_.F({value:function(){return[]}}),
_.A("design:type",Array)],Uw.prototype,"storyboardImages_",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Uw.prototype,"disabled",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],Uw.prototype,"forceRender_",void 0);_.X([_.F({value:1}),_.A("design:type",Number)],Uw.prototype,"devicePixelRatio_",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],Uw.prototype,"windowSpeed",void 0);
_.X([_.M("visible","devicePixelRatio_","rulerWidth"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Uw.prototype,"setUpCanvas_",null);
_.X([_.M("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.A("design:type",Function),_.A("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.A("design:returntype")],Uw.prototype,"drawRuler_",null);Uw=_.X([_.dx({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Uw);
_.p(Uw,"yt-clip-creation-scrubber-canvas",function(){if(tGA===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);tGA=q}q=tGA;return q},
{mode:2});var b7K;var JXm;var z2d=function(){var q=_.N.apply(this,arguments)||this;q.start=0;q.end=30;q.visible=!1;q.draggingLeft_=!1;q.draggingRight_=!1;q.draggingRuler_=!1;q.draggingWindow_=!1;q.seekableStart=0;q.seekableEnd=0;q.rulerWidth_=0;q.rulerShift_=0;q.windowSlideSpeed=0;q.disabled=!1;q.initialized=!1;q.durationAccessibilityLabel="";q.activeLoopRange_=!1;q.rulerDragMouseStart_=0;q.rulerDragRulerStart_=0;q.rulerDragStartTime_=0;q.rulerDragEndTime_=0;q.dragMouseLastX_=0;q.scrollInterval_=null;q.scrubberVe_=null;q.boundHandlers_=
{};q.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return q};
_.z(z2d,_.N);_.e=z2d.prototype;
_.e.created=function(){var q=this;this.JSC$19791_playerEvents=new Map;this.JSC$19791_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19791_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19791_playerEvents.set("onStateChange",this.onStateChange_);var Z={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(Z).forEach(function(w){q.boundHandlers_[w]=Z[w].bind(q)})};
_.e.attached=function(){this.activeLoopRange_=!1;_.E(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.E(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.C6(156731)};
_.e.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.E(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.E(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.e.onVisibilityChangedAction_=function(q){var Z=this;q.visible&&!this.player_&&(q=_.K6())&&q.getPlayerPromise().then(function(w){Z.setPlayer(w)})};
_.e.setPlayer=function(q){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19791_playerEvents);q&&(this.set("player_",q),this.ytPlayerListenerBehavior.listenToPlayerEvents(q,this.JSC$19791_playerEvents))};
_.e.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.e.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.e.beginHandleDrag_=function(q){this.disabled||(q.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=q.clientX,q.target===_.E(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():q.target===_.E(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.e.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.e.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.e.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.e.beginRulerDrag_=function(q){this.disabled||(q.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=q.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.e.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.e.beginWindowScroll_=function(){var q=this;this.scrollInterval_=setInterval(function(){var Z=q.windowSlideSpeed;if(Z=_.fTA(q.start,q.boundedRulerStartLimit_())?Z-.1:_.fTA(q.end,q.boundedRulerEndLimit_())?Z+.1:0){var w=q.capRulerOffset_(q.rulerShift_+Z);w==q.rulerShift_?Z=0:(q.set("rulerShift_",w),_.hy(q.hostElement,"set-fixed-length-range",{start:q.start+Z,duration:q.end-q.start}))}q.set("windowSlideSpeed",Z)},33)};
_.e.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.e.endDrag_=function(){this.logClick();var q=void 0;this.draggingRight_?q=this.end-1:this.draggingLeft_&&(q=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,q);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))};
_.e.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.e.updateRulerSize_=function(){this.set("rulerWidth_",_.E(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.e.handleMouseDrag_=function(q){q.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(q):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(q):this.draggingWindow_&&this.handleWindowDrag_(q))};
_.e.handleRulerDrag_=function(q){q=this.pixelsToTime_(q.clientX-this.rulerDragMouseStart_);q=this.capRulerOffset_(this.rulerDragRulerStart_-q);this.set("rulerShift_",q);var Z=this.rulerDragStartTime_-(this.rulerDragRulerStart_-q);_.hy(this.hostElement,"set-fixed-length-range",{start:Z,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-q)-Z})};
_.e.handleWindowDrag_=function(q){var Z=q.clientX-this.dragMouseLastX_;this.dragMouseLastX_=q.clientX;q=this.pixelsToTime_(Z);_.hy(this.hostElement,"set-fixed-length-range",{start:this.start+q,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.e.capRulerOffset_=function(q){var Z=this.seekableStart-this.pixelsToTime_(16),w=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(Z,q),w)};
_.e.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.e.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.e.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.e.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.e.handleWindowHandleDrag_=function(q){var Z=q.clientX-this.dragMouseLastX_;this.dragMouseLastX_=q.clientX;q=this.pixelsToTime_(Z);if(this.draggingLeft_){var w=this.start+q;var r=this.end}else this.draggingRight_&&(w=this.start,r=this.end+q);_.hy(this.hostElement,"set-range",{start:w,end:r,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.e.onVideoProgress_=function(q){this.disabled||(q=this.timeToPixels_(q-this.rulerShift_,this.tickSpacing_),_.E(this.hostElement).querySelector("#playhead").style.transform="translateX("+q+")")};
_.e.onClipCreationDisable_=function(){this.endDrag_()};
_.e.timeToPixels_=function(q,Z,w){q*=Z;return w===void 0||w?q+"px":q};
_.e.pixelsToTime_=function(q){return q/this.tickSpacing_};
_.e.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.e.centerRuler_=function(q,Z,w){this.set("rulerShift_",this.capRulerOffset_(q+(Z-q)/2-w/2))};
_.e.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.e.updateLoopRange_=function(q,Z,w,r,Y,C,d){q&&(Z&&r&&!w?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(q.pauseVideo(),q.seekTo(Y,!1,void 0,void 0,50)):this.draggingRight_?(q.pauseVideo(),q.seekTo(C-.1,!1,void 0,void 0,50)):(d!==void 0?q.seekTo(d,!0,void 0,void 0,50):(Z=q.getCurrentTime(),Z<Y||Z>C?q.seekTo(Y,!0,void 0,void 0,50):q.seekTo(Z,!0,void 0,void 0,50)),q.playVideo()),q.setLoopRange({startTimeMs:Y*1E3,endTimeMs:C*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(q.getCurrentTime())):
this.activeLoopRange_&&(q.setLoopRange(null),this.activeLoopRange_=!1))};
_.e.updateHandles_=function(){_.E(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.E(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.e.updateRuler_=function(){var q=this.end,Z=this.start,w=this.draggableStartLimit_(),r=this.draggableEndLimit_();(Z<w-.001||q>r+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.e.computeDurationLabel_=function(q,Z){return q?q.replace("$clip_length",parseFloat(Z).toFixed(1)):""};
_.e.computeDuration_=function(q,Z){return this.isValidTime_(q)&&this.isValidTime_(Z)&&q<Z?Z-q:0};
_.e.isValidTime_=function(q){return isNaN(parseFloat(q))||q<0?!1:this.player_?q>=this.seekableStart&&q<=this.seekableEnd:!0};
_.e.computeWindowSizeSec_=function(q,Z,w){return Math.min((q||12E4)/1E3,w-Z)};
_.e.computeTickSpacing_=function(q,Z){return Z?Z/q:1};
_.e.onDragStateChanged_=function(){_.hy(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.e.centerRangeOnTime_=function(q){var Z=this.duration;q=Ac8(q-Z/2,Z,this.seekableStart,this.seekableEnd);_.hy(this.hostElement,"set-fixed-length-range",{start:q.start,duration:q.end-q.start})};
_.e.nearlyLessThan_=function(q,Z,w){return q+(w===void 0?1E-6:w)<Z};
_.e.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var q=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(q,this.start)||this.nearlyLessThan_(this.end,q))&&this.centerRangeOnTime_(q)}};
_.e.onStateChange_=function(q){this.visible&&!this.disabled&&q==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.e.computeDragState_=function(q,Z,w,r){return q?"left":Z?"right":w?"ruler":r?"window":"none"};
_.e.logClick=function(){var q=_.b5(),Z=_.Rs();q&&Z&&this.scrubberVe_&&(_.b("combine_ve_grafts")?_.AA(_.iy(),this.scrubberVe_,Z):_.T7(q,Z,this.scrubberVe_),_.sh(q,this.scrubberVe_))};
var kU=z2d;kU.prototype.onDragStateChanged_=kU.prototype.onDragStateChanged_;kU.prototype.updateRuler_=kU.prototype.updateRuler_;kU.prototype.updateHandles_=kU.prototype.updateHandles_;kU.prototype.onUpdateLoopRange=kU.prototype.onUpdateLoopRange;kU.prototype.onInitializedChanged_=kU.prototype.onInitializedChanged_;kU.prototype.onVisibleChanged_=kU.prototype.onVisibleChanged_;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],kU.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.U(_.QQ.YtPlayerListenerBehavior),_.A("design:type",Object)],kU.prototype,"ytPlayerListenerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],kU.prototype,"start",void 0);_.X([_.F(),_.A("design:type",Object)],kU.prototype,"end",void 0);_.X([_.F({computed:"computeDuration_(start, end)"}),_.A("design:type",Number)],kU.prototype,"duration",void 0);
_.X([_.F(),_.A("design:type",String)],kU.prototype,"lengthTemplate",void 0);_.X([_.F({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.A("design:type",String)],kU.prototype,"durationLabel",void 0);_.X([_.F(),_.A("design:type",Object)],kU.prototype,"visible",void 0);_.X([_.F(),_.A("design:type",Object)],kU.prototype,"player_",void 0);_.X([_.F(),_.A("design:type",Object)],kU.prototype,"draggingLeft_",void 0);_.X([_.F(),_.A("design:type",Object)],kU.prototype,"draggingRight_",void 0);
_.X([_.F(),_.A("design:type",Object)],kU.prototype,"draggingRuler_",void 0);_.X([_.F({value:!1}),_.A("design:type",Object)],kU.prototype,"draggingWindow_",void 0);_.X([_.F({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.A("design:type",Number)],kU.prototype,"tickSpacing_",void 0);_.X([_.F(),_.A("design:type",Object)],kU.prototype,"seekableStart",void 0);_.X([_.F(),_.A("design:type",Object)],kU.prototype,"seekableEnd",void 0);
_.X([_.F(),_.A("design:type",Number)],kU.prototype,"windowSizeMs",void 0);_.X([_.F({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.A("design:type",Number)],kU.prototype,"windowSizeSec_",void 0);_.X([_.F(),_.A("design:type",Object)],kU.prototype,"rulerWidth_",void 0);_.X([_.F(),_.A("design:type",Object)],kU.prototype,"rulerShift_",void 0);_.X([_.F(),_.A("design:type",Object)],kU.prototype,"windowSlideSpeed",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],kU.prototype,"disabled",void 0);_.X([_.F(),_.A("design:type",Object)],kU.prototype,"initialized",void 0);_.X([_.F(),_.A("design:type",Object)],kU.prototype,"durationAccessibilityLabel",void 0);_.X([_.F({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.A("design:type",String)],kU.prototype,"dragState",void 0);
_.X([_.M("visible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kU.prototype,"onVisibleChanged_",null);_.X([_.M("initialized"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kU.prototype,"onInitializedChanged_",null);_.X([_.M("player_","visible","disabled","initialized","start","end"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kU.prototype,"onUpdateLoopRange",null);
_.X([_.M("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kU.prototype,"updateHandles_",null);_.X([_.M("start","end"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kU.prototype,"updateRuler_",null);
_.X([_.M("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kU.prototype,"onDragStateChanged_",null);kU=_.X([_.dx({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],kU);
_.p(kU,"yt-clip-creation-scrubber-view",function(){if(JXm===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;b7K===void 0&&(b7K=document.createElement("template"));var r=b7K;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);JXm=q}q=JXm;return q},{mode:2});var BcF=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};q.startHighlightTimeout=0;q.endHighlightTimeout=0;return q};
_.z(BcF,_.N);_.e=BcF.prototype;_.e.attached=function(){var q=this;this.startInput.addEventListener("input",function(Z){return q.handleStartInput_(Z)});
this.endInput.addEventListener("input",function(Z){return q.handleEndInput_(Z)});
this.startInput.addEventListener("focusout",function(Z){return q.handleStartBlur_(Z)});
this.endInput.addEventListener("focusout",function(Z){return q.handleEndBlur_(Z)})};
_.e.setPlayer=function(q){this.set("player_",q)};
_.e.onSetFixedLengthRange_=function(q){var Z=q.detail;q=Z.start;var w=Z.duration,r=Z.startLimit;Z=Z.endLimit;r||(r=this.seekableStart_);Z||(Z=this.seekableEnd_);q=Ac8(q,w,r,Z);this.start=q.start;this.end=q.end};
_.e.onSetRange_=function(q){var Z=q.detail;q=Z.start;var w=Z.end,r=Z.startLimit;Z=Z.endLimit;r||(r=this.seekableStart_);Z||(Z=this.seekableEnd_);if(q=flw(q,w,r,Z,this.minLengthSec,this.maxLengthSec))this.start=q.start,this.end=q.end};
_.e.updateInputs_=function(){var q=this.end,Z=this.start;this.startInput.focused||(this.startInput.value=sR(Z,!0));this.endInput.focused||(this.endInput.value=sR(q,!0))};
_.e.handleStartInput_=function(q){q=mSK(q.target.value);if(q===null)this.set("startValid",!1);else{var Z=this.end,w=flw(q,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);w?(this.set("endWillUpdate",w.end!==Z),this.set("startValid",w.start===q)):this.set("startValid",!1)}};
_.e.handleEndInput_=function(q){q=mSK(q.target.value);if(q===null)this.set("endValid",!1);else{var Z=this.start,w=DSK(this.start,q,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);w?(this.set("startWillUpdate",w.start!==Z),this.set("endValid",w.end===q)):this.set("endValid",!1)}};
_.e.handleStartBlur_=function(q){q=mSK(q.target.value);q===null?this.startInput.value=sR(this.start,!0):this.forceUpdateInputs_(flw(q,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.e.handleEndBlur_=function(q){q=mSK(q.target.value);q===null?this.endInput.value=sR(this.end,!0):this.forceUpdateInputs_(DSK(this.start,q,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.e.forceUpdateInputs_=function(q){q&&(this.start=q.start,this.end=q.end);this.startInput.value=sR(this.start,!0);this.endInput.value=sR(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.e.initializeClipRange_=function(){var q=this.seekableEnd_,Z=this.seekableStart_,w=this.visible_,r=this.player_;if(!r||!w||Z===null||!q)this.set("initialized",!1);else if(!this.initialized){var Y=r.getCurrentTime(),C=this.getDefaultLengthSec_();w=r.getVideoData();var d=r.getPlayerState()==1,O=w.isLive;C=Math.min(C,q-Z);Y=Math.max(0,Y);q=O?DSK(Y-C,Y,Z,q,this.minLengthSec,this.maxLengthSec):d?Ac8(Y-C/2,C,Z,q):Ac8(Y,C,Z,q);this.start=q.start;this.end=q.end;this.set("initialized",!0);w.isLive&&r.seekTo(q.start);
this.startInput.value=sR(this.start,!0);this.endInput.value=sR(this.end,!0)}};
_.e.onStartChanged_=function(){var q=this;_.hy(this.hostElement,"start-changed",{start:this.start});var Z;isNaN((Z=this.oldStart)!=null?Z:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){q.set("highlightStart",!1);q.startHighlightTimeout=0;q.oldStart=q.start},3E3))};
_.e.onEndChanged_=function(){var q=this;_.hy(this.hostElement,"end-changed",{end:this.end});var Z;isNaN((Z=this.oldEnd)!=null?Z:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){q.set("highlightEnd",!1);q.endHighlightTimeout=0;q.oldEnd=q.end},3E3))};
_.e.onVisibilityChangedAction_=function(q){var Z=this;this.set("visible_",q.visible);this.visible_&&!this.player_&&(q=_.K6())&&q.getPlayerPromise().then(function(w){Z.setPlayer(w)})};
_.e.computeMinLengthSec_=function(q){return q/1E3||5};
_.e.computeMaxLengthSec_=function(q){return q/1E3||60};
_.e.computeDefaultLengthSec_=function(q){return q/1E3};
_.e.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.e.computeSeekableStart_=function(q,Z){return q&&Z?q.getProgressState(1).seekableStart:0};
_.e.computeSeekableEnd_=function(q,Z){return q&&Z?q.getProgressState(1).seekableEnd:0};
_.e.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.e.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.e.onDragState_=function(q){this.set("highlightStart",q.detail.startChanging);this.set("highlightEnd",q.detail.endChanging)};
var Km=BcF;Km.prototype.onDragState_=Km.prototype.onDragState_;Km.prototype.onEndChanged_=Km.prototype.onEndChanged_;Km.prototype.onStartChanged_=Km.prototype.onStartChanged_;Km.prototype.initializeClipRange_=Km.prototype.initializeClipRange_;Km.prototype.updateInputs_=Km.prototype.updateInputs_;Km.prototype.onSetRange_=Km.prototype.onSetRange_;Km.prototype.onSetFixedLengthRange_=Km.prototype.onSetFixedLengthRange_;
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Km.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Km.prototype,"data",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],Km.prototype,"start",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],Km.prototype,"startValid",void 0);
_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Km.prototype,"startWillUpdate",void 0);_.X([_.F({value:30}),_.A("design:type",Number)],Km.prototype,"end",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],Km.prototype,"endValid",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Km.prototype,"endWillUpdate",void 0);_.X([_.F({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.A("design:type",Number)],Km.prototype,"minLengthSec",void 0);
_.X([_.F({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.A("design:type",Number)],Km.prototype,"maxLengthSec",void 0);_.X([_.F({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.A("design:type",Number)],Km.prototype,"defaultLengthSec",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],Km.prototype,"visible_",void 0);_.X([_.F(),_.A("design:type",Object)],Km.prototype,"player_",void 0);
_.X([_.F({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.A("design:type",Number)],Km.prototype,"seekableStart_",void 0);_.X([_.F({computed:"computeSeekableEnd_(player_, visible_)"}),_.A("design:type",Number)],Km.prototype,"seekableEnd_",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],Km.prototype,"initialized",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Km.prototype,"disabled",void 0);
_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Km.prototype,"highlightStart",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Km.prototype,"highlightEnd",void 0);_.X([_.fo("#start"),_.A("design:type",HTMLInputElement)],Km.prototype,"startInput",void 0);_.X([_.fo("#end"),_.A("design:type",HTMLInputElement)],Km.prototype,"endInput",void 0);
_.X([_.m2("set-fixed-length-range"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Km.prototype,"onSetFixedLengthRange_",null);_.X([_.m2("set-range"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Km.prototype,"onSetRange_",null);_.X([_.M("start","end"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Km.prototype,"updateInputs_",null);
_.X([_.M("player_","visible_","seekableStart_","seekableEnd_"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Km.prototype,"initializeClipRange_",null);_.X([_.M("start"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Km.prototype,"onStartChanged_",null);_.X([_.M("end"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Km.prototype,"onEndChanged_",null);
_.X([_.m2("clips-drag-state"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Km.prototype,"onDragState_",null);Km=_.X([_.dx({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],Km);
_.p(Km,"yt-clip-creation-scrubber-renderer",function(){if(jFd===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;v6m===void 0&&(v6m=document.createElement("template"));var r=v6m;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);jFd=q}q=jFd;return q},{mode:2});var aBm=function(){var q=_.N.apply(this,arguments)||this;q.player_=null;q.JSC$19805_playerEvents=new Map;q.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return q};
_.z(aBm,_.N);_.e=aBm.prototype;_.e.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"}}}};
_.e.created=function(){this.JSC$19805_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19805_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19805_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19805_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.e.detached=function(){this.setPlayer(null)};
_.e.onVisibilityChangedAction_=function(q){var Z=this,w;if((w=this.data)==null?0:w.externalVideoId){var r;this.videoId=(r=this.data)==null?void 0:r.externalVideoId}this.getPlayer().then(function(Y){if(q.visible)Z.returnTime=Y.getCurrentTime(),Z.isAtLiveHead=Y.getProgressState().isAtLiveHead;else{var C=Z.returnTime;Z.isAtLiveHead&&(C=Number.POSITIVE_INFINITY);Y.seekTo(C,void 0,void 0,void 0,51)}})};
_.e.getPlayer=function(){var q=this;if(!this.player_){var Z=_.K6();if(Z)return Z.getPlayerPromise().then(function(w){q.setPlayer(w);return w})}return Promise.resolve(this.player_)};
_.e.setPlayer=function(q){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19805_playerEvents);if(q){this.player_=q;var Z;((Z=this.data)==null?0:Z.externalVideoId)||this.set("videoId",q.getVideoData().video_id||"");var w;(q==null?void 0:(w=q.getPresentingPlayerType)==null?void 0:w.call(q))===2&&(this.set("isAdPlaying",!0),_.yY(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(q,this.JSC$19805_playerEvents)}};
_.e.ready=function(){_.E(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.e.onTitleChanged_=function(q){this.set("titleValue",q.detail.title)};
_.e.onStartChanged_=function(q){this.set("start",q.detail.start)};
_.e.onEndChanged_=function(q){this.set("end",q.detail.end)};
_.e.onTitleValidChanged_=function(q){this.set("titleValid",q.detail.valid)};
_.e.onStartValidChanged_=function(q){this.set("startValid",q.detail.valid)};
_.e.onEndValidChanged_=function(q){this.set("endValid",q.detail.valid)};
_.e.onVideoDataChange_=function(){var q;if((q=this.data)==null||!q.externalVideoId){var Z;this.set("videoId",((Z=this.player_)==null?void 0:Z.getVideoData().video_id)||"")}};
_.e.computeFormValid_=function(q,Z,w,r){return!!(q&&Z&&w&&r)};
_.e.computeCancelButton_=function(q,Z,w){return q&&_.J(q,_.tA)?{buttonRenderer:Object.assign({},_.J(q,_.tA),{isDisabled:Z||w})}:null};
_.e.computeSubmitButton_=function(q,Z,w){return q&&_.J(q,_.tA)?{buttonRenderer:Object.assign({},_.J(q,_.tA),{command:void 0,isDisabled:!this.formValid||Z||w})}:null};
_.e.computeSubmitCommand_=function(q){return q||null};
_.e.onSubmit_=function(q){var Z=this;q.stopPropagation();q.preventDefault();this.submitCommand_&&(q={},q.comment_text=this.titleValue,q.clip_external_video_id=this.videoId,q.clip_offset_ms=parseInt(this.start*1E3,10),q.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.qM(this.hostElement,[this.submitCommand_,q]).then(function(){Z.set("isLoading_",!1)},function(){Z.set("isLoading_",!1)}))};
_.e.playerAdStartHandler_=function(){_.yY(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.e.playerAdEndHandler_=function(){_.yY(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.e.onVideoProgress_=function(){var q=this;this.getPlayer().then(function(Z){var w,r=(Z==null?void 0:(w=Z.getPresentingPlayerType)==null?void 0:w.call(Z))===2;q.isAdPlaying!==r&&(r?q.playerAdStartHandler_():q.playerAdEndHandler_())})};
var sw=aBm;sw.prototype.onEndValidChanged_=sw.prototype.onEndValidChanged_;sw.prototype.onStartValidChanged_=sw.prototype.onStartValidChanged_;sw.prototype.onTitleValidChanged_=sw.prototype.onTitleValidChanged_;sw.prototype.onEndChanged_=sw.prototype.onEndChanged_;sw.prototype.onStartChanged_=sw.prototype.onStartChanged_;sw.prototype.onTitleChanged_=sw.prototype.onTitleChanged_;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],sw.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.U(_.QQ.YtPlayerListenerBehavior),_.A("design:type",Object)],sw.prototype,"ytPlayerListenerBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],sw.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],sw.prototype,"data",void 0);_.X([_.F({value:""}),_.A("design:type",String)],sw.prototype,"titleValue",void 0);
_.X([_.F({value:!1}),_.A("design:type",Boolean)],sw.prototype,"titleValid",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],sw.prototype,"start",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],sw.prototype,"startValid",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],sw.prototype,"end",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],sw.prototype,"endValid",void 0);_.X([_.F({value:""}),_.A("design:type",String)],sw.prototype,"videoId",void 0);
_.X([_.F({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.A("design:type",Boolean)],sw.prototype,"formValid",void 0);_.X([_.F({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.A("design:type",Object)],sw.prototype,"submitButton_",void 0);_.X([_.F({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.A("design:type",Object)],sw.prototype,"submitCommand_",void 0);
_.X([_.F({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.A("design:type",Object)],sw.prototype,"cancelButton_",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],sw.prototype,"isLoading_",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],sw.prototype,"isAdPlaying",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],sw.prototype,"returnTime",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],sw.prototype,"isAtLiveHead",void 0);
_.X([_.m2("title-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],sw.prototype,"onTitleChanged_",null);_.X([_.m2("start-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],sw.prototype,"onStartChanged_",null);_.X([_.m2("end-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],sw.prototype,"onEndChanged_",null);
_.X([_.m2("title-valid-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],sw.prototype,"onTitleValidChanged_",null);_.X([_.m2("start-valid-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],sw.prototype,"onStartValidChanged_",null);_.X([_.m2("end-valid-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],sw.prototype,"onEndValidChanged_",null);
sw=_.X([_.dx({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],sw);
_.p(sw,"yt-clip-creation-renderer",function(){if(Sug===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;LP8===void 0&&(LP8=document.createElement("template"));var r=LP8;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Sug=q}q=Sug;return q},{mode:2});var n65=function(){return _.N.apply(this,arguments)||this};
_.z(n65,_.N);n65.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"}}}};
n65.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(q){return q.hasOwnProperty("clipCreationRenderer")})&&_.yY(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
var Io=n65;Io.prototype.onPanelContentVisibleChanged=Io.prototype.onPanelContentVisibleChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Io.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.tg.YtVisibilityBehavior),_.A("design:type",Object)],Io.prototype,"ytVisibilityBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],Io.prototype,"ytdReduxBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],Io.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Io.prototype,"panelContentVisible",void 0);_.X([_.M("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Io.prototype,"onPanelContentVisibleChanged",null);Io=_.X([_.l({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],Io);
_.p(Io,"ytd-clip-section-renderer",function(){if(VG5!==void 0)return VG5;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return VG5=q},{mode:1});var QFX;var E6I=function(){return _.N.apply(this,arguments)||this};
_.z(E6I,_.N);_.e=E6I.prototype;
_.e.onKeyDown=function(q){if(this.snippetElements.length!==0&&(q=q.keyCode,q===38||q===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);q===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.a0(this.highlightedIndex,-1,this.snippetElements.length);q=this.snippetElements.length;var Z=this.highlightedIndex%q;this.highlightedIndex=Z*q<0?Z+q:Z;q=this.snippetElements[this.highlightedIndex];this.highlightSnippet(q);this.ensureVisible(q)}};
_.e.onKeyUp=function(q){var Z=this;IFX(q)&&(q.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.v5.cancelJob(this.inputTimerId),this.inputTimerId=_.v5.addLowPriorityJob(function(){Z.typedValue&&(Z.fetchSnippets(Z.typedValue),Z.logInputGesture(Z.data))},1E3))};
_.e.onClick=function(q){(q=_.Evh(q.target,null,"snippet-item"))&&this.selectSnippet(q)};
_.e.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.e.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.e.ready=function(){var q=this;this.inputElement.addEventListener("focus",function(){q.snippetsWrapper.style.removeProperty("display")})};
_.e.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.e.getSourceTimelines=function(){if(!this.data)return[];var q=[];if(this.data.searchInVideoSources)for(var Z=_.P(this.data.searchInVideoSources),w=Z.next();!w.done;w=Z.next())w=w.value,w==="SEARCH_IN_VIDEO_SOURCE_ASR"?q.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):w==="SEARCH_IN_VIDEO_SOURCE_OCR"&&q.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return q};
_.e.fetchSnippets=function(q){var Z=_.yY(this.hostElement,"yt-get-current-video-id-action")[0],w=this.getSourceTimelines();q={getSearchInVideoCommand:{externalVideoId:Z,query:q!=null?q:"",sourceTimelines:w},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.t().resolve(_.ps).resolveCommand(q,{form:{element:this.hostElement}})};
_.e.filterSnippets=function(q,Z){var w=this;if(Z){this.filteredSnippets=(0,_.R4.unsafeClone)(q);var r=RegExp(_.UCX(Z),"i");this.filteredSnippets=this.filteredSnippets.filter(function(d){return r.test(w.ytRendererBehavior.getSimpleString(d.snippet))});
q=_.P(this.filteredSnippets);for(var Y=q.next();!Y.done;Y=q.next()){Y=Y.value;var C=this.ytRendererBehavior.getSimpleString(Y.snippet);Y.snippet={runs:[{text:C.substring(0,C.toLowerCase().indexOf(Z))},{text:C.substring(C.toLowerCase().indexOf(Z),C.toLowerCase().indexOf(Z)+Z.length),bold:!0},{text:C.substring(C.toLowerCase().indexOf(Z)+Z.length,C.length)}]}}}else this.filteredSnippets=q};
_.e.onUpdateSearchInVideoResults=function(q){if(!(this.snippets.length>0)){var Z,w,r;if((r=(Z=_.J(q,hdF))==null?void 0:(w=Z.results)==null?void 0:w.length)!=null&&r){var Y;this.filteredSnippets=this.snippets=((Y=_.J(q,hdF))==null?void 0:Y.results).map(function(C){var d,O,H;return{startMs:C==null?void 0:(d=C.searchInVideoResultRenderer)==null?void 0:d.startMs,startTimeText:C==null?void 0:(O=C.searchInVideoResultRenderer)==null?void 0:O.startTimeText,snippet:C==null?void 0:(H=C.searchInVideoResultRenderer)==
null?void 0:H.snippet}})}}};
_.e.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};
_.e.highlightSnippet=function(q){q.classList.add("highlighted")};
_.e.removeSnippetHighlight=function(q){q.classList.remove("highlighted")};
_.e.selectSnippet=function(q){this.typedValue=String(q.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(q);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.e.ensureVisible=function(q){var Z=this.snippetsWrapper.scrollTop,w=Z+this.snippetsWrapper.clientHeight,r=q.offsetTop-this.snippetsWrapper.offsetTop;q=r+q.clientHeight;r<Z?this.snippetsWrapper.scrollTop-=Z-r:q>w&&(this.snippetsWrapper.scrollTop+=q-w)};
_.e.seekPlayer=function(q){var Z,w;return _.V(function(r){if(r.nextAddress==1){if(!q)return r.jumpTo(0);Z=Number(q.dataset.startOffset);return _.W(r,_.s1().getPlayerPromise(),3)}w=r.yieldResult;w.seekTo(Z/1E3,!0);w.wakeUpControls();_.ub(r)})};
_.e.logInputGesture=function(q){var Z=_.b5();Z&&(q==null?0:q.trackingParams)&&_.IV(Z,_.wa(q.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.e.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("typed-value-changed",this.typedValue))};
_.e.updateTypedValueFromBinding=function(q){this.typedValue=q.currentTarget.value};
var cl=E6I;cl.prototype.typedValueChangedForBinding=cl.prototype.typedValueChangedForBinding;cl.prototype.dataChanged=cl.prototype.dataChanged;cl.prototype.panelContentVisibleChanged=cl.prototype.panelContentVisibleChanged;cl.prototype.onClick=cl.prototype.onClick;cl.prototype.onKeyUp=cl.prototype.onKeyUp;cl.prototype.onKeyDown=cl.prototype.onKeyDown;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],cl.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],cl.prototype,"data",void 0);_.X([_.F({value:[]}),_.A("design:type",Array)],cl.prototype,"snippets",void 0);_.X([_.F({value:[]}),_.A("design:type",Array)],cl.prototype,"filteredSnippets",void 0);_.X([_.F({value:[]}),_.A("design:type",Array)],cl.prototype,"snippetElements",void 0);
_.X([_.fo("#siv-input"),_.A("design:type",HTMLElement)],cl.prototype,"inputElement",void 0);_.X([_.fo("#siv-snippets-wrapper"),_.A("design:type",HTMLElement)],cl.prototype,"snippetsWrapper",void 0);_.X([_.F(),_.A("design:type",String)],cl.prototype,"typedValue",void 0);_.X([_.F({value:-1}),_.A("design:type",Number)],cl.prototype,"highlightedIndex",void 0);_.X([_.m2("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[_.e3]),_.A("design:returntype")],cl.prototype,"onKeyDown",null);
_.X([_.m2("keyup"),_.A("design:type",Function),_.A("design:paramtypes",[_.e3]),_.A("design:returntype")],cl.prototype,"onKeyUp",null);_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],cl.prototype,"onClick",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],cl.prototype,"panelContentVisible",void 0);
_.X([_.M("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cl.prototype,"panelContentVisibleChanged",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cl.prototype,"dataChanged",null);_.X([_.M("typedValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cl.prototype,"typedValueChangedForBinding",null);
cl=_.X([_.l({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],cl);
_.p(cl,"ytd-search-in-video-renderer",function(){if(QFX!==void 0)return QFX;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return QFX=q},{mode:1});var xom;var M_=function(){return _.N.apply(this,arguments)||this};
_.z(M_,_.N);M_.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
M_.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]]"}}}}}};
M_.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var q,Z,w,r,Y=(Z=_.J((q=this.data)==null?void 0:q.onClickCommand,_.eU2))==null?void 0:(w=Z.item)==null?void 0:(r=w.notificationTextRenderer)==null?void 0:r.successResponseText;Y&&_.AP1(this.hostElement,Y)}};
_.My.Object.defineProperties(M_.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r;return this.isProductPlaceholder&&((q=this.data)==null?void 0:(Z=q.hiddenProductOptions)==null?void 0:Z.showDropCountdown)&&!!((w=this.data)==null?0:(r=w.hiddenProductOptions)==null?0:r.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var q;return!this.isProductPlaceholder&&!((q=this.data)==null?0:q.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!((q=this.data)==null?0:q.priceReplacementText)&&!((Z=this.data)==null||!Z.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
var FU=M_;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],FU.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],FU.prototype,"componentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],FU.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],FU.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("isProductPlaceholder"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"useCenterLayoutContainer",null);_.X([_.F({computed:"computeButtonOverride(data)"}),_.A("design:type",Object)],FU.prototype,"buttonOverride",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"isProductPlaceholder",null);
_.X([_.I("isProductPlaceholder"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"showDropCountdown",null);_.X([_.I("isProductPlaceholder","data"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"showBrandName",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"showPriceReplacementText",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"showPrice",null);
_.X([_.I("isProductPlaceholder"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"showMetadata",null);FU=_.X([_.l({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],FU);
_.p(FU,"ytd-product-list-item-renderer",function(){if(xom!==void 0)return xom;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return xom=q},{mode:1});var TcI;var UoK=function(){return _.N.apply(this,arguments)||this};
_.z(UoK,_.N);UoK.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
UoK.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
UoK.prototype.panelContentVisibleChanged=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1)return q.playerApi?w.jumpTo(2):_.W(w,_.s1().getPlayerPromise(),3);w.nextAddress!=2&&(q.playerApi=w.yieldResult);(Z=q.playerApi)==null||Z.productsInVideoVisibilityUpdated(!!q.panelContentVisible);_.ub(w)})};
var N_=UoK;N_.prototype.panelContentVisibleChanged=N_.prototype.panelContentVisibleChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],N_.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],N_.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],N_.prototype,"panelContentVisible",void 0);_.X([_.F(),_.A("design:type",Object)],N_.prototype,"data",void 0);
_.X([_.M("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],N_.prototype,"panelContentVisibleChanged",null);N_=_.X([_.l({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],N_);
_.p(N_,"ytd-product-list-renderer",function(){if(TcI!==void 0)return TcI;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return TcI=q},{mode:1});var k2X;var KPX=function(){var q=_.N.apply(this,arguments)||this;q.hideTimestamps=!!_.i8("hide-transcript-timestamps");q.currentCueIndex=-1;q.flatCues=[];q.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};q.TEST_ONLY={getFlatCues:function(){return q.flatCues}};
return q};
_.z(KPX,_.N);_.e=KPX.prototype;_.e.hideTimestampsChanged=function(){_.yq("hide-transcript-timestamps",this.hideTimestamps)};
_.e.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.e.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.e.dataChanged=function(){var q;if((q=this.data)!=null&&q.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;q=_.P(this.data.cueGroups);for(var Z=q.next();!Z.done;Z=q.next()){Z=_.P(_.J(Z.value,yIr).cues);for(var w=Z.next();!w.done;w=Z.next())this.flatCues.push(Number(_.J(w.value,iAX).startOffsetMs))}}};
_.e.onYtPlayerTimeChanged=function(q){if(!(q<0)){for(var Z=this.currentCueIndex,w=Z;;){var r=w>=0?this.flatCues[w]/1E3:-1;if(q+.5<r)--w;else if(r=w+1<this.flatCues.length?this.flatCues[w+1]/1E3:Infinity,q+.5>r)w+=1;else break}w!==Z&&(Z>=0&&((q=this.getCueElement(Z))&&q.classList.remove("active"),(Z=this.getCueGroupElement(Z))&&Z.classList.remove("active")),(Z=this.getCueElement(w))&&Z.classList.add("active"),(Z=this.getCueGroupElement(w))&&Z.classList.add("active"),this.currentCueIndex=w,this.isHovered||
this.scrollElementToTop(w))}};
_.e.scrollElementToTop=function(q){q=this.getCueElement(q>=3?q-3:0);this.hostElement.scrollTop=Math.min(q.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.e.getCueElement=function(q){return _.E(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[q]+'"]')};
_.e.getCueGroupElement=function(q){return(q=this.getCueElement(q))&&q.parentElement?q.parentElement.parentElement:null};
_.e.onTap=function(q){var Z=_.xz(q);q.target.classList.contains("cue")&&this.seekCueElement(Z)};
_.e.onKeyPress=function(q){q.keyCode==13&&(q=_.Evh(q.target,null,"cue"))&&this.seekCueElement(q)};
_.e.seekCueElement=function(q){q=Number(q.getAttribute("start-offset"));_.yY(this.hostElement,"yt-transcript-player-seek",[q/1E3])};
_.e.onMouseEnter=function(){this.isHovered=!0};
_.e.onMouseLeave=function(){this.isHovered=!1};
var ld=KPX;ld.prototype.onMouseLeave=ld.prototype.onMouseLeave;ld.prototype.onMouseEnter=ld.prototype.onMouseEnter;ld.prototype.onKeyPress=ld.prototype.onKeyPress;ld.prototype.onTap=ld.prototype.onTap;ld.prototype.dataChanged=ld.prototype.dataChanged;ld.prototype.hideTimestampsChanged=ld.prototype.hideTimestampsChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],ld.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ld.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ld.prototype,"hideTimestamps",void 0);_.X([_.F(),_.A("design:type",Boolean)],ld.prototype,"isHovered",void 0);_.X([_.M("hideTimestamps"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ld.prototype,"hideTimestampsChanged",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ld.prototype,"dataChanged",null);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],ld.prototype,"onTap",null);_.X([_.m2("keypress"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],ld.prototype,"onKeyPress",null);
_.X([_.m2("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ld.prototype,"onMouseEnter",null);_.X([_.m2("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ld.prototype,"onMouseLeave",null);ld=_.X([_.l({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],ld);
_.p(ld,"ytd-transcript-body-renderer",function(){if(k2X!==void 0)return k2X;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return k2X=q},{mode:1});var sFd;var IBK=function(){var q=_.N.apply(this,arguments)||this;q.darkerPanels=_.b("web_watch_darker_panels");return q};
_.z(IBK,_.N);IBK.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
var GC=IBK;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],GC.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],GC.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],GC.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],GC.prototype,"darkerPanels",void 0);GC=_.X([_.l({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],GC);
_.p(GC,"ytd-transcript-footer-renderer",function(){if(sFd!==void 0)return sFd;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return sFd=q},{mode:1});var cX9;var MGm;var FP8=function(){var q=_.N.apply(this,arguments)||this;q.systemIcons=_.b("kevlar_system_icons");q.showClearButton=!1;return q};
_.z(FP8,_.N);_.e=FP8.prototype;_.e.handleInput=function(q){var Z=this;q.target.value.length?_.vp(this,"ytdTranscriptSearchBoxSearch",function(){Z.emitSearchEvent(q)},500):(_.JnI(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=q.target.value.length>0};
_.e.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.e.handleClick=function(){var q,Z=(q=this.data)==null?void 0:q.trackingParams;Z&&_.hA(_.iy(),Z)};
_.e.handleClear=function(){_.JnI(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var q,Z,w=(Z=_.J((q=this.data)==null?void 0:q.clearButton,_.tA))==null?void 0:Z.trackingParams;w&&_.hA(_.iy(),w);this.clear()};
_.e.emitSearchEvent=function(q){_.hy(this.hostElement,"yt-transcript-search-box-search",{query:q.target.value});var Z,w;(q=(w=_.J((Z=this.data)==null?void 0:Z.searchButton,_.tA))==null?void 0:w.trackingParams)&&_.hA(_.iy(),q)};
_.e.emitClearEvent=function(){_.hy(this.hostElement,"yt-transcript-search-box-clear")};
_.My.Object.defineProperties(FP8.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
var pm=FP8;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],pm.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],pm.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],pm.prototype,"systemIcons",void 0);pm=_.X([_.l({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],pm);
_.p(pm,"ytd-transcript-search-box-renderer",function(){if(MGm!==void 0)return MGm;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return MGm=q},{mode:1});var Ncd;var lBr;var XU=function(){return _.N.apply(this,arguments)||this};
_.z(XU,_.N);XU.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var q,Z;this.sectionHeaderAriaLabel=(q=this.data)==null?void 0:(Z=q.accessibility)==null?void 0:Z.accessibilityData.label}};
XU.prototype.fireSelectedEvent=function(q){_.hy(this.hostElement,"ytd-transcript-section-header",{startMs:q})};
XU.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
XU.prototype.handleKeyPress=function(q){this.data&&q.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.My.Object.defineProperties(XU.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var q,Z;return(Z=(q=this.data)==null?void 0:q.enableTappableTranscriptHeader)!=null?Z:!1}}});
var mL=XU;mL.prototype.dataChanged=mL.prototype.dataChanged;_.X([_.F(),_.A("design:type",Object)],mL.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],mL.prototype,"sectionHeaderAriaLabel",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],mL.prototype,"enableTappableTranscriptHeader",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mL.prototype,"dataChanged",null);
mL=_.X([_.l({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],mL);
_.p(mL,"ytd-transcript-section-header-renderer",function(){if(lBr!==void 0)return lBr;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return lBr=q},{mode:1});var G2F;var pNA;var XNI=function(){var q=_.N.apply(this,arguments)||this;q.isEditMode=!1;q.touchCaptionsEnabled=!1;q.deleteCaptionCorrectionPopupCommand=null;q.voteCaptionCorrectionPopupCommand=null;q.roundedContainer=!0;q.mouseOver=!1;q.textChanged=!1;q.messages={suggest_correction:_.dT("suggest_correction",void 0,"Edit caption"),suggested_caption:_.dT("suggested_caption",void 0,"Suggested caption"),submit_correction:_.dT("submit_correction",void 0,"Submit for review"),cancel_correction:_.dT("cancel_correction",
void 0,"Cancel"),replay_segment:_.dT("replay_segment",void 0,"Re-play segment"),delete_correction:_.dT("delete_correction",void 0,"Delete correction")};q.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return q};
_.z(XNI,_.N);_.e=XNI.prototype;_.e.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)};
_.e.handleDelete=function(q){if(this.deleteCaptionCorrectionPopupCommand){var Z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);Z&&this.ytdOpenPopupBehavior.openPopup(Z);q.stopPropagation()}};
_.e.handleSubmit=function(q){if(this.data&&this.data.submitCaptionCorrectionCommand&&(q.stopPropagation(),this.textChanged)){var Z;q=(Z=_.J(this.data.submitCaptionCorrectionCommand,_.mk7))==null?void 0:Z.params;Z=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:q,correctionText:String(this.ironTextAreaElement.value),originalText:_.kO(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(Z);this.isEditMode=!1}};
_.e.handleUpdateSegmentText=function(q){(q=_.J(q,LTa))&&q.targetId&&this.data&&q.targetId===this.data.targetId&&(q.userCorrection&&(this.editedText=q.userCorrection),q.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.kO(this.data.snippet)),q.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=q.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=q.voteCaptionCorrectionPopupCommand?
q.voteCaptionCorrectionPopupCommand:null,q.accessibility&&(this.segmentAriaLabel=q.accessibility.accessibilityData.label))};
_.e.handleCancel=function(q){this.isEditMode=!1;q.stopPropagation();this.logClientVe(159409)};
_.e.handleEditSegmentCommand=function(q){(q=_.J(q,ud8))&&q.targetId&&this.data&&q.targetId===this.data.targetId&&this.handleEdit()};
_.e.handleEditButtonClick=function(q){this.data&&(this.handleEdit(),q.stopPropagation())};
_.e.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var q;(q=this.ironTextAreaElement.textarea)==null||q.focus();this.logClientVe(159407)}};
_.e.handleMouseEnter=function(){this.mouseOver=!0};
_.e.handleMouseLeave=function(){this.mouseOver=!1};
_.e.handleReplay=function(q){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),q.stopPropagation(),this.logClientVe(159408))};
_.e.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()))};
_.e.handleKeypress=function(q){this.data&&(this.isEditMode?q.stopPropagation():this.isEnterPress(q)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(q)&&this.logClientVe(138758))};
_.e.handleTextboxClick=function(q){q.stopPropagation()};
_.e.handleTextboxKeydown=function(q){this.isControlEnterPress(q)?this.handleSubmit(q):q.key==="Escape"&&this.handleCancel(q)};
_.e.handleTextboxKeyup=function(){this.textChanged=_.kO(this.latestText)!==String(this.ironTextAreaElement.value)};
_.e.fireSelectedEvent=function(q){_.hy(this.hostElement,"yt-transcript-segment-selected",{startMs:q})};
_.e.fireReplayEvent=function(q,Z){_.hy(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(q-100,0),endMs:Z})};
_.e.fireEditEvent=function(q,Z){_.hy(this.hostElement,"yt-transcript-segment-edit",{startMs:q,endMs:Z})};
_.e.isEnterPress=function(q){return q.key==="Enter"||q.code==="Enter"||q.code==="NumpadEnter"||q.keyCode===13?!0:!1};
_.e.isControlEnterPress=function(q){var Z=q.key==="Enter"||q.code==="Enter"||q.code==="NumpadEnter"||q.keyCode===13;return(q.ctrlKey||q.metaKey)&&Z};
_.e.isCopyPress=function(q){var Z=q.ctrlKey;return q.key==="c"&&Z};
_.e.logClick=function(){var q,Z=(q=this.data)==null?void 0:q.trackingParams;Z&&_.hA(_.iy(),Z)};
_.e.logClientVe=function(q){_.D1(_.iy(),_.C6(q))};
_.My.Object.defineProperties(XNI.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}}});
var AG=XNI;AG.prototype.handleMouseLeave=AG.prototype.handleMouseLeave;AG.prototype.handleMouseEnter=AG.prototype.handleMouseEnter;AG.prototype.dataChanged=AG.prototype.dataChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],AG.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.Et),_.A("design:type",Object)],AG.prototype,"ytdOpenPopupBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],AG.prototype,"ytRendererBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],AG.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],AG.prototype,"isEditMode",void 0);_.X([_.F(),_.A("design:type",Object)],AG.prototype,"touchCaptionsEnabled",void 0);_.X([_.F(),_.A("design:type",Object)],AG.prototype,"editedText",void 0);_.X([_.F(),_.A("design:type",Object)],AG.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.X([_.F(),_.A("design:type",Object)],AG.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.X([_.F(),_.A("design:type",String)],AG.prototype,"segmentAriaLabel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],AG.prototype,"roundedContainer",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],AG.prototype,"mouseOver",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],AG.prototype,"textChanged",void 0);_.X([_.F(),_.A("design:type",Object)],AG.prototype,"messages",void 0);
_.X([_.fo("#suggestion"),_.A("design:type",Object)],AG.prototype,"ironTextAreaElement",void 0);_.X([_.I("data","editedText"),_.A("design:type",Object),_.A("design:paramtypes",[])],AG.prototype,"latestText",null);_.X([_.I("touchCaptionsEnabled","isEditMode"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AG.prototype,"enableEditButton",null);
_.X([_.I("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AG.prototype,"enableUndoButton",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AG.prototype,"dataChanged",null);_.X([_.m2("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AG.prototype,"handleMouseEnter",null);
_.X([_.m2("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AG.prototype,"handleMouseLeave",null);AG=_.X([_.l({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],AG);
_.p(AG,"ytd-transcript-segment-renderer",function(){if(pNA!==void 0)return pNA;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return pNA=q},{mode:1});var mo9=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};q.isError=!1;q.darkerPanels=_.b("web_watch_darker_panels");q.segmentOffsets=[];q.segmentIndex=-1;return q};
_.z(mo9,_.N);_.e=mo9.prototype;_.e.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"}}}}};
_.e.segmentsChanged=function(){this.updateOffsets()};
_.e.onYtPlayerTimeChanged=function(q){for(var Z=this.segmentIndex,w=Z;;){if(w>=0){var r=this.segmentOffsets[w].start;var Y=this.segmentOffsets[w].isAutoScrollable}else r=-1,Y=!0;var C=q+.5;if(!Y){r=w+1<this.segmentOffsets.length?this.segmentOffsets[w+1].start:Infinity;if(C>=r){w+=1;continue}w=-1;break}if(C<r)r=w-1>=0&&this.segmentOffsets[w-1].isAutoScrollable,Y=w===0||r?1:2,w-=Y;else if(Y=w+1<this.segmentOffsets.length&&this.segmentOffsets[w+1].isAutoScrollable?1:2,r=w+Y<this.segmentOffsets.length?
this.segmentOffsets[w+Y].start:Infinity,C>r)w+=Y;else{if(w<0)break;w<this.segmentOffsets.length&&C>this.segmentOffsets[w].end&&(w=-1);break}}if(Z!==w){if(Z>=0){var d;(d=this.getSegmentElement(Z))==null||d.classList.remove("active")}this.segmentIndex=w;if(!(w<0)){var O;(O=this.getSegmentElement(w))==null||O.classList.add("active");this.isHovered||this.scrollElementToTop(w)}}};
_.e.handleSegmentEdit=function(q){q.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=q.target,_.yY(this.hostElement,"yt-transcript-player-edit",[q.detail.startMs/1E3,q.detail.endMs/1E3]))};
_.e.handleSegmentSelected=function(q){_.yY(this.hostElement,"yt-transcript-player-seek",[q.detail.startMs/1E3])};
_.e.handleSegmentReplay=function(q){_.yY(this.hostElement,"yt-transcript-player-replay",[q.detail.startMs/1E3,q.detail.endMs/1E3])};
_.e.handleSectionHeaderSelected=function(q){_.yY(this.hostElement,"yt-transcript-player-seek",[q.detail.startMs/1E3])};
_.e.onMouseEnter=function(){this.isHovered=!0};
_.e.onMouseLeave=function(){this.isHovered=!1};
_.e.onRetryButtonClick=function(){_.hy(this.hostElement,"transcript-retry-button-click")};
_.e.getSegmentElement=function(q){return _.E(this.hostElement).querySelector(":nth-child("+(q+1)+")")};
_.e.scrollElementToTop=function(q){q=this.getSegmentElement(q>=2?q-2:0);this.hostElement.scrollTop=Math.min(q.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.e.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(q){var Z,w=(Z=q.transcriptSegmentRenderer)!=null?Z:q.transcriptSectionHeaderRenderer;return{start:Number(w.startMs)/1E3,end:Number(w.endMs)/1E3,isAutoScrollable:q.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.e.clearHighlightedSegments=function(){var q=_.E(this.hostElement);q=_.P(q.querySelectorAll("ytd-transcript-segment-renderer"));for(var Z=q.next();!Z.done;Z=q.next())Z.value.classList.remove("active")};
_.My.Object.defineProperties(mo9.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.data)==null?void 0:q.searchResultSegments)||((Z=this.data)==null?void 0:Z.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
var fm=mo9;fm.prototype.onMouseLeave=fm.prototype.onMouseLeave;fm.prototype.onMouseEnter=fm.prototype.onMouseEnter;fm.prototype.handleSectionHeaderSelected=fm.prototype.handleSectionHeaderSelected;fm.prototype.handleSegmentReplay=fm.prototype.handleSegmentReplay;fm.prototype.handleSegmentSelected=fm.prototype.handleSegmentSelected;fm.prototype.handleSegmentEdit=fm.prototype.handleSegmentEdit;fm.prototype.segmentsChanged=fm.prototype.segmentsChanged;
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],fm.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],fm.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],fm.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],fm.prototype,"isError",void 0);
_.X([_.F(),_.A("design:type",Object)],fm.prototype,"noResultLabel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],fm.prototype,"darkerPanels",void 0);_.X([_.I("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],fm.prototype,"segments",null);_.X([_.I("segments","noResultLabel"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],fm.prototype,"displayNoResults",null);
_.X([_.M("segments"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fm.prototype,"segmentsChanged",null);_.X([_.m2("yt-transcript-segment-edit"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],fm.prototype,"handleSegmentEdit",null);_.X([_.m2("yt-transcript-segment-selected"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],fm.prototype,"handleSegmentSelected",null);
_.X([_.m2("yt-transcript-segment-replay"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],fm.prototype,"handleSegmentReplay",null);_.X([_.m2("ytd-transcript-section-header"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],fm.prototype,"handleSectionHeaderSelected",null);_.X([_.m2("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fm.prototype,"onMouseEnter",null);
_.X([_.m2("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fm.prototype,"onMouseLeave",null);fm=_.X([_.l({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],fm);
_.p(fm,"ytd-transcript-segment-list-renderer",function(){if(G2F!==void 0)return G2F;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return G2F=q},{mode:1});var AXg=function(){var q=_.N.apply(this,arguments)||this;q.hideTimestamps=!!_.i8("hide-transcript-timestamps");q.isLoadingTranscripts=!1;q.darkerPanels=_.b("web_watch_darker_panels");q.isError=!1;q.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return q};
_.z(AXg,_.N);_.e=AXg.prototype;_.e.headerChanged=function(){var q,Z;this.baseGetTranscriptsCommand=(Z=_.J((q=this.data)==null?void 0:q.header,SI8))==null?void 0:Z.onTextChangeCommand};
_.e.bodyChanged=function(){var q=this.getBodyRenderer();q&&(q.initialSegments&&(this.initialTranscriptsRenderer=q),q.noResultLabel&&(this.noResultLabel=q.noResultLabel),q.retryLabel&&(this.retryLabel=q.retryLabel))};
_.e.detached=function(){this.clearSearchBoxText()};
_.e.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.e.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"}}}};
_.e.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.e.fireSearch=function(q){var Z=this;if(q){var w=q.detail.query;if(this.baseGetTranscriptsCommand){var r;q=(r=_.J(this.baseGetTranscriptsCommand,_.A3D))==null?void 0:r.params;var Y;r=_.J((Y=this.data)==null?void 0:Y.footer,gvX);var C;if((Y=(C=_.J(r==null?void 0:r.languageMenu,O_r))==null?void 0:C.subMenuItems)&&Y.length>0&&(C=Y.find(function(H){return H.selected}))){var d,O;
q=(d=C.continuation)==null?void 0:(O=d.reloadContinuationData)==null?void 0:O.continuation}d=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:q,searchQuery:w}});this.ytComponentBehavior.resolveCommand(d,{commandController:{onServerError:function(){Z.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});KmF(this.ytContinuationHandlerBehavior,function(){return w===Z.getCurrentSearchBoxText()})}}};
_.e.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.e.onRetryButtonClick=function(){this.isError=!1;var q={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:q}))};
_.e.hideTimestampsChanged=function(){_.yq("hide-transcript-timestamps",this.hideTimestamps)};
_.e.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.e.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.e.handleSignalActionCopyTranscript=function(){var q=this,Z=this.getBodyRenderer();Z&&(Z=((Z==null?void 0:Z.searchResultSegments)||(Z==null?void 0:Z.initialSegments)||[]).map(function(w){return _.J(w,j3r)}).filter(function(w){return!!w}).map(function(w){return{snippet:w.snippet||{runs:[{text:""}]},
startTimeText:w.startTimeText||{simpleText:""}}}).map(function(w){var r=(w.snippet.runs||[]).reduce(function(Y,C){return Y+C.text},"");
return q.hideTimestamps?r:w.startTimeText.simpleText+" "+r}).join("\n"),this.copyToClipboard(Z))};
_.e.copyToClipboard=function(q){navigator.clipboard&&navigator.clipboard.writeText(q)};
_.e.getCurrentSearchBoxText=function(){var q;return(q=this.searchBox)==null?void 0:q.value};
_.e.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.e.getBodyRenderer=function(){var q;return _.J((q=this.data)==null?void 0:q.body,vqA)};
_.e.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.My.Object.defineProperties(AXg.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
var DP=AXg;DP.prototype.hideTimestampsChanged=DP.prototype.hideTimestampsChanged;DP.prototype.searchCleared=DP.prototype.searchCleared;DP.prototype.fireSearch=DP.prototype.fireSearch;DP.prototype.onReloadContinuationFinish=DP.prototype.onReloadContinuationFinish;DP.prototype.bodyChanged=DP.prototype.bodyChanged;DP.prototype.headerChanged=DP.prototype.headerChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],DP.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],DP.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.Ms),_.A("design:type",Object)],DP.prototype,"ytContinuationHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],DP.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],DP.prototype,"hideTimestamps",void 0);
_.X([_.F(),_.A("design:type",Object)],DP.prototype,"isLoadingTranscripts",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],DP.prototype,"darkerPanels",void 0);_.X([_.F(),_.A("design:type",Object)],DP.prototype,"isError",void 0);_.X([_.M("data.header"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],DP.prototype,"headerChanged",null);
_.X([_.g3("data.body"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],DP.prototype,"bodyChanged",null);_.X([_.m2("yt-reload-continuation-finish"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],DP.prototype,"onReloadContinuationFinish",null);_.X([_.m2("yt-transcript-search-box-search"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],DP.prototype,"fireSearch",null);
_.X([_.m2("yt-transcript-search-box-clear"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],DP.prototype,"searchCleared",null);_.X([_.M("hideTimestamps"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],DP.prototype,"hideTimestampsChanged",null);DP=_.X([_.l({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],DP);
_.p(DP,"ytd-transcript-search-panel-renderer",function(){if(Ncd!==void 0)return Ncd;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Ncd=q},{mode:1});var fB6=function(){var q=_.N.apply(this,arguments)||this;q.player=null;q.playerPollJobId=0;return q};
_.z(fB6,_.N);_.e=fB6.prototype;_.e.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.e.onLoadReloadContinuation=function(q){_.b("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:q.target.data.continuation}}):(q={clickTrackingParams:q.target.data.clickTrackingParams,getTranscriptEndpoint:{params:q.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.t().resolve(_.ps).resolveCommand(q,{form:{element:this.hostElement}}))};
_.e.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"}}}};
_.e.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.e.attached=function(){this.updatePlayerListening()};
_.e.detached=function(){this.updatePlayerListening()};
_.e.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.e.startPlayerListening=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1)return(Z=_.K6())?_.W(w,Z.getPlayerPromise(),2):w.return();q.player=w.yieldResult;q.playerPollJobId=_.v5.addLowPriorityJob(function(){q.getPlayerVideoProgress()},1E3);
q.player.addEventListener("onCueRangeEnter",function(r){q.onCueRangeEnter(r)});
q.player.addEventListener("onCueRangeExit",function(r){q.onCueRangeExit(r)});
q.player.addEventListener("onStateChange",function(r){q.onPlayerStateChange(r)});
q.player.addEventListener("SEEK_TO",function(r){q.onPlayerSeek(r)});
_.ub(w)})};
_.e.getPlayerVideoProgress=function(){var q=this;_.v5.cancelJob(this.playerPollJobId);if(this.player){var Z=this.player.getCurrentTime();_.yY(this.hostElement,"yt-player-time-changed",[Z])}this.playerPollJobId=_.v5.addLowPriorityJob(function(){q.getPlayerVideoProgress()},1E3)};
_.e.stopPlayerListening=function(){this.player=null;_.v5.cancelJob(this.playerPollJobId)};
_.e.onPlayerStateChange=function(q){q===2&&this.removePendingCue()};
_.e.onPlayerSeek=function(q){var Z;if(Z=this.pendingReplayCueId)Z=this.pendingReplayCueId,Z=q===(_.b("web_transcript_cue_id_killswitch")?Number(Z):Number(Z.split("_")[1]));Z||this.removePendingCue()};
_.e.onCueRangeEnter=function(q){ycv(q)&&(this.pendingReplayCueId=q)};
_.e.onCueRangeExit=function(q){ycv(q)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.e.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.e.onYtTranscriptPlayerSeek=function(q){this.player&&this.player.seekTo(q,!0)};
_.e.onYtTranscriptPlayerReplay=function(q,Z){this.player&&(this.player.addCueRange(hZr(q),q,Z),this.player.seekTo(q,!0),this.player.playVideo())};
_.e.onYtTranscriptPlayerEdit=function(q,Z){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(hZr(q),q,Z),this.player.seekTo(q,!0))};
var hG=fB6;hG.prototype.onLoadReloadContinuation=hG.prototype.onLoadReloadContinuation;hG.prototype.panelContentVisibleChanged=hG.prototype.panelContentVisibleChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],hG.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],hG.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],hG.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],hG.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],hG.prototype,"panelContentVisible",void 0);_.X([_.M("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hG.prototype,"panelContentVisibleChanged",null);
_.X([_.m2("yt-load-reload-continuation"),_.A("design:type",Function),_.A("design:paramtypes",[Object]),_.A("design:returntype")],hG.prototype,"onLoadReloadContinuation",null);hG=_.X([_.l({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],hG);
_.p(hG,"ytd-transcript-renderer",function(){if(cX9!==void 0)return cX9;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return cX9=q},{mode:1});var Dov;var h2m;var yXd=function(){return _.N.apply(this,arguments)||this};
_.z(yXd,_.N);yXd.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.hy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.ZC(this.hostElement,[this.data.clickCommand],this.hostElement))};
yXd.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.V$)()+_.FC)+"px)"};
yXd.prototype.updateShouldHideFromBinding=function(q){this.shouldHide=q.detail.value};
var yI=yXd;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],yI.prototype,"rendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],yI.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],yI.prototype,"shouldHide",void 0);yI=_.X([_.l({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],yI);
_.p(yI,"ytd-ad-engagement-panel-banner-renderer",function(){if(h2m!==void 0)return h2m;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return h2m=q},{mode:_.NT("kevlar_poly_si_batch_j070")?1:2});var i79;var g66=function(){var q=_.N.apply(this,arguments)||this;q.modernPanels=_.b("kevlar_watch_modern_panels");q.buttonUpdate=_.b("web_modern_buttons");q.adsSemanticText=_.b("enable_ads_web_ep_buenos_aires_and_padding_fix");return q};
_.z(g66,_.N);g66.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
var id=g66;_.X([_.F(),_.A("design:type",Object)],id.prototype,"data",void 0);_.X([_.F({computed:"computeHideDefaultAdBadge(data)"}),_.A("design:type",Boolean)],id.prototype,"hideDefaultAdBadge",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],id.prototype,"modernPanels",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],id.prototype,"buttonUpdate",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],id.prototype,"adsSemanticText",void 0);
id=_.X([_.l({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],id);
_.p(id,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(i79!==void 0)return i79;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return i79=q},{mode:1});var qq8;var Zsr=function(){var q=_.N.apply(this,arguments)||this;q.darkerPanels=_.b("web_watch_darker_panels");q.enableSqueezebackPanels=_.b("web_shorts_enable_squeezeback_panels");q.enableAnchoredPanel=_.b("desktop_shorts_v2_anchored_panel");q.modernPanels=_.b("kevlar_watch_modern_panels");q.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return q};
_.z(Zsr,_.N);_.e=Zsr.prototype;_.e.computeAdsInfoButton=function(){if(_.b("web_modern_buttons")){var q,Z;return(Z=_.J((q=this.data)==null?void 0:q.subtitleComplex,qIX))==null?void 0:Z.adInfoRenderer}};
_.e.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}}}}}};
_.e.collapsedChanged=function(){var q;(q=this.data)!=null&&q.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.b("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.e.focus=function(q){this.titleElement&&_.KB(this.titleElement,q)};
_.e.computeTitleAriaLabel=function(q){var Z=[];q.title&&Z.push(this.ytRendererBehavior.getSimpleString(q.title));q.contextualInfo&&Z.push(this.ytRendererBehavior.getSimpleString(q.contextualInfo));return Z.join(" ")};
_.e.onHeaderClick=function(q){this.shouldTriggerHeaderClick(q)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.hy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.ZC(this.hostElement,[this.data.onClickCommand],this.hostElement)):(q=this.getVisibilityToggleButton())&&q.click())};
_.e.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var q=_.J(this.data.visibilityButton,_.tA)||_.J(this.data.visibilityButton,_.Rx);q&&this.ytRendererBehavior.logExplicitClick(q)}};
_.e.getVisibilityToggleButton=function(){var q=_.E(this.hostElement).querySelector("#visibility-button").firstElementChild;return(q==null?void 0:q.is)==="ytd-toggle-button-renderer"?q:null};
_.e.shouldTriggerHeaderClick=function(q){return!_.E1(_.E8(q),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.e.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(q){q=_.J(q,_.X8v);this.targetId&&(q==null?void 0:q.targetId)===this.targetId&&(q=q.navigationButton)&&this.set("data.navigationButton",q)};
_.My.Object.defineProperties(Zsr.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.b("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var q;return!!(((q=this.entity)==null?0:q.isActionButtonHidden)||this.hideActionButton)}}});
var gC=Zsr;gC.prototype.collapsedChanged=gC.prototype.collapsedChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],gC.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],gC.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],gC.prototype,"ytdReduxBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],gC.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],gC.prototype,"targetId",void 0);_.X([_.F(),_.A("design:type",Boolean)],gC.prototype,"collapsed",void 0);_.X([_.F(),_.A("design:type",Boolean)],gC.prototype,"hideActionButton",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],gC.prototype,"shortsPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],gC.prototype,"liveChatEngagementPanel",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gC.prototype,"darkerPanels",void 0);_.X([_.fo("#title"),_.A("design:type",HTMLElement)],gC.prototype,"titleElement",void 0);_.X([_.F({computed:"computeAdsInfoButton(data)"}),_.A("design:type",Object)],gC.prototype,"adsInfoButton",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gC.prototype,"enableSqueezebackPanels",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gC.prototype,"enableAnchoredPanel",void 0);_.X([_.F({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(q,Z){return _.iI(q.entities,"engagementPanelTitleHeaderEntity",Z)}}),
_.A("design:type",Object)],gC.prototype,"entity",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gC.prototype,"modernPanels",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("targetId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],gC.prototype,"adsSemanticText",null);_.X([_.g3("collapsed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gC.prototype,"collapsedChanged",null);
_.X([_.I("entity","hideActionButton"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],gC.prototype,"isActionButtonHidden",null);gC=_.X([_.l({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],gC);
_.p(gC,"ytd-engagement-panel-title-header-renderer",function(){if(qq8!==void 0)return qq8;var q=document.createElement("template");_.a(q,'\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" on-click="onHeaderClick" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return qq8=q},{mode:1});var wF8;var rfg=function(){return _.N.apply(this,arguments)||this};
_.z(rfg,_.N);rfg.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var qF=rfg;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],qF.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],qF.prototype,"data",void 0);qF=_.X([_.l({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],qF);
_.p(qF,"ytd-macro-markers-info-item-renderer",function(){if(wF8!==void 0)return wF8;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return wF8=q},{mode:1});var Yqw;var COw=function(q,Z,w,r,Y){_.u6.call(this);this.JSC$19906_containerElement=q;this.hostElement=Z;this.supportedSyncItems=w;this.syncEntityKey=r;this.options=Y;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;$RI(this);ee9(this);this.JSC$19906_scrollAnimation=new _.JB(function(C){q.scrollTop=C});
_.$i(this,this.JSC$19906_scrollAnimation)};
_.z(COw,_.u6);var $RI=function(q){var Z=_.wF(_.t().resolve(_.oL),function(w){return w.entities.markersEngagementPanelSyncEntity||{}},function(w,r){var Y;
w[q.syncEntityKey]!==r[q.syncEntityKey]&&((Y=w[q.syncEntityKey])==null?void 0:Y.activeItemIndex)!==void 0&&q.updatePanelActiveItem(w[q.syncEntityKey].activeItemIndex)});
q.addOnDisposeCallback(Z)},ee9=function(q){var Z=new _.pV(q.onScroll,50,q);
_.$i(q,Z);var w=function(){Z.fire()};
q.JSC$19906_containerElement.addEventListener("scroll",w);q.addOnDisposeCallback(function(){q.JSC$19906_containerElement.removeEventListener("scroll",w)})};
_.e=COw.prototype;
_.e.updatePanelActiveItem=function(q){var Z=this.getItemByIndex(q);if(Z){if(this.setActiveItem(Z),this.contentVisible)if(this.browsingMode){var w;((w=this.options)==null?void 0:w.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(q=POA(this),Z.offsetTop<this.JSC$19906_containerElement.clientHeight+this.JSC$19906_containerElement.scrollTop&&q&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));dRw(this)}else this.scrollToItem(Z)}else _.bx(new _.df("Could not find "+this.supportedSyncItems+
" sync child to set active.",q,this.JSC$19906_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.e.getItemByIndex=function(q){var Z;(Z=this.renderLazyListItems)==null||Z.call(this,q);Z=this.JSC$19906_containerElement.querySelectorAll(this.supportedSyncItems);if(Z.length>q)return Z[q]};
_.e.setActiveItem=function(q){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));q.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=q};
_.e.scrollToItem=function(q){q=this.getScrollPositionForItem(q);this.JSC$19906_containerElement.scrollTop!==q&&this.JSC$19906_scrollAnimation.start(this.JSC$19906_containerElement.scrollTop,q,300)};
_.e.getScrollPositionForItem=function(q){if(this.JSC$19906_containerElement.querySelectorAll(this.supportedSyncItems)[0]===q)return 0;var Z,w=((Z=this.options)==null?0:Z.percentOffset)?this.JSC$19906_containerElement.clientHeight*this.options.percentOffset:0;q=_.Qg(q).y+this.JSC$19906_containerElement.scrollTop-(_.Qg(this.JSC$19906_containerElement).y+w);return Math.max(0,Math.min(q,this.JSC$19906_containerElement.scrollHeight-this.JSC$19906_containerElement.offsetHeight))};
_.e.onScroll=function(){this.activeItemBelowSyncPosition=POA(this);if(this.activeItem&&!this.JSC$19906_scrollAnimation.isAnimating()&&Math.abs(this.JSC$19906_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var q;switch((q=this.options)==null?void 0:q.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!V9I(this));dRw(this);break;default:this.enterBrowsingMode(!0)}}};
_.e.enterBrowsingMode=function(q){var Z=this,w,r;return _.V(function(Y){if(Y.nextAddress==1){if(Z.browsingMode)return Y.return();Z.browsingMode=!0;q&&Z.hostElement.classList.add("browsing-mode");Z.playerExitBrowsingModeListener=function(){Z.exitBrowsingMode(!1)};
return _.W(Y,_.mj(),2)}w=Y.yieldResult;(r=w)==null||r.addEventListener("SEEK_TO",Z.playerExitBrowsingModeListener);_.ub(Y)})};
_.e.exitBrowsingMode=function(q){q=q===void 0?!0:q;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),q&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.e.removePlayerSeekListener=function(){var q=this,Z,w;return _.V(function(r){if(r.nextAddress==1)return q.playerExitBrowsingModeListener?_.W(r,_.mj(),3):r.jumpTo(0);Z=r.yieldResult;(w=Z)==null||w.removeEventListener("SEEK_TO",q.playerExitBrowsingModeListener);q.playerExitBrowsingModeListener=void 0;_.ub(r)})};
var dRw=function(q){var Z;((Z=q.options)==null?void 0:Z.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(V9I(q)?q.hostElement.classList.remove("browsing-mode"):q.activeItem&&q.hostElement.classList.add("browsing-mode"))},POA=function(q){if(!q.activeItem)return!1;
var Z,w=((Z=q.options)==null?0:Z.percentOffset)?q.JSC$19906_containerElement.clientHeight*q.options.percentOffset:0;return q.activeItem.offsetTop>=q.JSC$19906_containerElement.scrollTop+w},V9I=function(q){if(!q.activeItem)return!1;
var Z=q.activeItem.offsetTop+14<=q.JSC$19906_containerElement.scrollTop+q.JSC$19906_containerElement.clientHeight;return q.activeItem.offsetTop+q.activeItem.clientHeight-14>=q.JSC$19906_containerElement.scrollTop&&Z};
COw.prototype.panelContentVisibleChanged=function(q){(this.contentVisible=q)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var OsI=function(q,Z){q.renderLazyListItems=Z};var Hs5=function(){var q=_.N.apply(this,arguments)||this;q.browsingMode=!1;q.modern=_.b("web_button_rework");q.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return q};
_.z(Hs5,_.N);_.e=Hs5.prototype;_.e.activeItemChanged=function(){if(!_.b("synced_panel_scrolling_controller")){var q;((q=this.syncEntity)==null?void 0:q.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.e.created=function(){var q=this;_.b("synced_panel_scrolling_controller")||(this.JSC$19911_scrollAnimation=new _.JB(function(Z){q.contents.scrollTop=Z}),this.boundExitBrowsingMode=function(){q.exitBrowsingMode(!1)})};
_.e.attached=function(){var q=this;if(_.b("synced_panel_scrolling_controller")&&!this.scrollController){var Z,w,r,Y;this.scrollController=new COw(this.contents,this.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(Y=(Z=this.data)==null?void 0:Z.syncModelEntityKey)!=null?Y:"default-macro-markers-list-renderer-entity-key",{percentOffset:(w=this.data)==null?void 0:w.selectedItemAlignmentPercentOffset,floatingPillType:(r=this.data)==null?void 0:r.floatingPillType});
OsI(this.scrollController,function(C){q.renderLazyListItems(C)});
this.scrollController.panelContentVisibleChanged(!!this.panelContentVisible)}};
_.e.detached=function(){if(_.b("synced_panel_scrolling_controller")){var q;(q=this.scrollController)==null||q.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.e.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"}}}};
_.e.dataChanged=function(){if(_.b("synced_panel_scrolling_controller")){var q;(q=this.scrollController)==null||q.exitBrowsingMode();var Z,w;if((q=this.scrollController)!=null){var r=(w=(Z=this.data)==null?void 0:Z.syncModelEntityKey)!=null?w:"default-macro-markers-list-renderer-entity-key";q.syncEntityKey=r}var Y,C;(Z=this.scrollController)!=null&&(w={percentOffset:(Y=this.data)==null?void 0:Y.selectedItemAlignmentPercentOffset,floatingPillType:(C=this.data)==null?void 0:C.floatingPillType},Z.options=
w)}else this.exitBrowsingMode()};
_.e.computeButtonShape=function(){var q=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){q.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.e.computeSyncEnabled=function(q){return!(q==null||!q.syncButtonLabel)};
_.e.renderLazyListItems=function(q){for(var Z=this.contents.children,w=0,r=0;r<Z.length;r++){var Y=void 0;(Y=Z[r].ytLazyListBehavior)==null||Y.fillRemainingListItems();var C=void 0,d=void 0;Y=_.J((C=this.data)==null?void 0:(d=C.contents)==null?void 0:d[r],_.Yrz);d=C=void 0;if((C=Y)==null?0:(d=C.contents)==null?0:d.length)w+=Y.contents.length;if(w>=q)break}};
_.e.getItemByIndex=function(q){this.renderLazyListItems(q);var Z=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(Z.length>q)return Z[q]};
_.e.setActiveItem=function(q){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);q.active!==void 0&&(q.active=!0);this.currentActiveItem=q};
_.e.handleSetActivePanelItemAction=function(q){if((q=_.J(q,AId))&&this.panelTargetId===q.panelTargetId){q=q.itemIndex;if(_.b("synced_panel_scrolling_controller")){var Z,w;var r=(w=(Z=this.data)==null?void 0:Z.syncModelEntityKey)!=null?w:"default-macro-markers-list-renderer-entity-key"}else{var Y;r=(Y=this.data)==null?void 0:Y.syncModelEntityKey}var C;r&&((C=this.syncEntity)==null?void 0:C.activeItemIndex)!==q?this.ytdReduxBehavior.dispatch(_.wp("markersEngagementPanelSyncEntity",r,{key:r,activeItemIndex:q})):
this.updatePanelActiveItem(q)}};
_.e.updatePanelActiveItem=function(q){var Z=this.getItemByIndex(q);Z?(this.setActiveItem(Z),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(Z)):_.bx(new _.df("Could not find ytd-macro-markers-list-renderer sync child to set active.",q,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.e.scrollToItem=function(q){q=this.getScrollPositionForItem(q);this.contents.scrollTop!==q&&this.JSC$19911_scrollAnimation.start(this.contents.scrollTop,q,300)};
_.e.getScrollPositionForItem=function(q){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===q)return 0;q=_.Qg(q).y+this.contents.scrollTop-_.Qg(this.contents).y-this.getStickyHeaderHeight(q);return Math.min(q,this.contents.scrollHeight-this.contents.offsetHeight)};
_.e.getStickyHeaderHeight=function(q){if(q.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var Z,w,r;return(r=(Z=q.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(w=Z.header)==null?void 0:w.offsetHeight)!=null?r:0}return 0};
_.e.onScroll=function(){_.b("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$19911_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.e.enterBrowsingMode=function(){var q=this;return _.V(function(Z){if(Z.nextAddress==1){if(q.browsingMode)return Z.return();q.browsingMode=!0;return _.W(Z,_.s1().getPlayerPromise(),2)}q.player=Z.yieldResult;q.player.addEventListener("SEEK_TO",q.boundExitBrowsingMode);_.ub(Z)})};
_.e.exitBrowsingMode=function(q){this.browsingMode&&(this.browsingMode=!1,(q===void 0||q)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.e.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.e.onSyncClick=function(){if(_.b("synced_panel_scrolling_controller")){var q;(q=this.scrollController)==null||q.exitBrowsingMode()}else this.exitBrowsingMode()};
_.e.panelContentVisibleChanged=function(){if(_.b("synced_panel_scrolling_controller")){var q;(q=this.scrollController)==null||q.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
var Zr=Hs5;Zr.prototype.panelContentVisibleChanged=Zr.prototype.panelContentVisibleChanged;Zr.prototype.dataChanged=Zr.prototype.dataChanged;Zr.prototype.activeItemChanged=Zr.prototype.activeItemChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Zr.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Zr.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],Zr.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Zr.prototype,"data",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Zr.prototype,"useCustomColors",void 0);_.X([_.F({computed:"computeSyncEnabled(data)"}),_.A("design:type",Boolean)],Zr.prototype,"syncEnabled",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],Zr.prototype,"panelTargetId",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Zr.prototype,"panelContentVisible",void 0);_.X([_.fo("#contents"),_.A("design:type",HTMLElement)],Zr.prototype,"contents",void 0);_.X([_.fo("#sync-container"),_.A("design:type",HTMLElement)],Zr.prototype,"syncContainer",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Zr.prototype,"browsingMode",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Zr.prototype,"modern",void 0);_.X([_.F({selectorArgs:["data.syncModelEntityKey"],selector:_.BwT}),_.A("design:type",Object)],Zr.prototype,"syncEntity",void 0);_.X([_.M("syncEntity.activeItemIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zr.prototype,"activeItemChanged",null);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zr.prototype,"dataChanged",null);_.X([_.M("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zr.prototype,"panelContentVisibleChanged",null);Zr=_.X([_.l({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Zr);
_.p(Zr,"ytd-macro-markers-list-renderer",function(){if(Yqw!==void 0)return Yqw;var q=document.createElement("template");_.a(q,'\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  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Yqw=q},{mode:1});var W6A;var oTw=function(){return _.N.apply(this,arguments)||this};
_.z(oTw,_.N);var wQ=oTw;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],wQ.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],wQ.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],wQ.prototype,"data",void 0);wQ=_.X([_.l({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],wQ);
_.p(wQ,"ytd-error-corrections-section-item-renderer",function(){if(W6A!==void 0)return W6A;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return W6A=q},{mode:1});var ue9;var L6d=function(){return _.N.apply(this,arguments)||this};
_.z(L6d,_.N);L6d.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
var rQ=L6d;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],rQ.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],rQ.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],rQ.prototype,"data",void 0);rQ=_.X([_.l({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],rQ);
_.p(rQ,"ytd-error-corrections-section-renderer",function(){if(ue9!==void 0)return ue9;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return ue9=q},{mode:1});var Sqd;var vT8=function(){return _.N.apply(this,arguments)||this};
_.z(vT8,_.N);var Yu=vT8;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Yu.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Yu.prototype,"data",void 0);Yu=_.X([_.l({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],Yu);
_.p(Yu,"ytd-topic-link-renderer",function(){if(Sqd!==void 0)return Sqd;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Sqd=q},{mode:1});var jz8;var t95=function(){var q=_.N.apply(this,arguments)||this;q.modern=_.b("kevlar_modern_sd_v2");q.modernLockupV2=_.b("modernize_structured_description_playlist_lockups_v2");q.modernTypography=_.b("web_modern_typography");return q};
_.z(t95,_.N);t95.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"}}}};
var $u=t95;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],$u.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],$u.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],$u.prototype,"modern",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],$u.prototype,"modernLockupV2",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],$u.prototype,"modernTypography",void 0);$u=_.X([_.l({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],$u);
_.p($u,"ytd-video-description-course-section-renderer",function(){if(jz8!==void 0)return jz8;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return jz8=q},{mode:1});var Re5;var bsA=function(){var q=_.N.apply(this,arguments)||this;q.modern=_.b("kevlar_modern_sd_v2");q.modernTypography=_.b("web_modern_typography");return q};
_.z(bsA,_.N);bsA.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"}}}};
var e7=bsA;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],e7.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],e7.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],e7.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],e7.prototype,"modern",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],e7.prototype,"modernTypography",void 0);
e7=_.X([_.l({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],e7);
_.p(e7,"ytd-video-description-files-section-renderer",function(){if(Re5!==void 0)return Re5;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Re5=q},{mode:1});var Jfa;var zeg=function(){return _.N.apply(this,arguments)||this};
_.z(zeg,_.N);zeg.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"}}}};
var Cf=zeg;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Cf.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Cf.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Cf.prototype,"data",void 0);Cf=_.X([_.l({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Cf);
_.p(Cf,"ytd-video-description-gaming-section-renderer",function(){if(Jfa!==void 0)return Jfa;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Jfa=q},{mode:1});var BA6;var aVd=function(){var q=_.N.apply(this,arguments)||this;q.isExpanded=!1;return q};
_.z(aVd,_.N);aVd.prototype.computeHasDefaultMetadataEndpoint=function(q){var Z;q=q==null?void 0:(Z=q.defaultMetadata)==null?void 0:Z.runs;return!(!q||q.length!==1||!q[0].navigationEndpoint)};
aVd.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.My.Object.defineProperties(aVd.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
var PA=aVd;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],PA.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],PA.prototype,"isExpanded",void 0);_.X([_.F({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],PA.prototype,"hasDefaultMetadataEndpoint",void 0);
_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],PA.prototype,"isExpandable",null);_.X([_.I("data","isExpandable","isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],PA.prototype,"showExpandedMetadata",null);PA=_.X([_.l({is:"ytd-info-row-renderer",disableElementRegistration:!0})],PA);
_.p(PA,"ytd-info-row-renderer",function(){if(BA6!==void 0)return BA6;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return BA6=q},{mode:1});var nTX;var QzF=function(){var q=_.N.apply(this,arguments)||this;q.currentIndex=0;q.supportComponentResize=!0;q.modern=_.b("kevlar_modern_sd_v2");q.JSC$19937_lastScrollContainerWidth=NaN;return q};
_.z(QzF,_.N);_.e=QzF.prototype;
_.e.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"}}}};
_.e.getItemsPath=function(){return"videoLockups"};
_.e.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.e.onIronResize=function(){this.updateVideoLockupStyles()};
_.e.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.e.updateVideoLockupStyles=function(){var q;this.JSC$19937_scrollContainer!==void 0&&(q=this.videoLockups)!=null&&q.length&&(q=this.JSC$19937_scrollContainer.clientWidth,q!==this.JSC$19937_lastScrollContainerWidth&&(this.JSC$19937_lastScrollContainerWidth=q,_.po(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(q*.8,415)+"px"}),_.hy(this.hostElement,"iron-resize")))};
_.My.Object.defineProperties(QzF.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var q=[],Z;if((Z=this.data)==null||!Z.carouselLockups)return q;Z=_.P(this.data.carouselLockups);for(var w=Z.next();!w.done;w=Z.next()){w=w.value;var r=void 0;((r=_.J(w,Jug))==null?0:r.videoLockup)&&q.push(_.J(w,Jug).videoLockup)}return q}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.videoLockups)==null||!q.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var q=[],Z;if((Z=this.data)==null||!Z.carouselLockups)return q;var w;return(w=_.J(this.data.carouselLockups[this.scrollCount],Jug))==null?void 0:w.infoRows}}});
var dQ=QzF;dQ.prototype.dataChanged=dQ.prototype.dataChanged;dQ.prototype.onIronResize=dQ.prototype.onIronResize;dQ.prototype.hiddenChanged=dQ.prototype.hiddenChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],dQ.prototype,"componentBehavior",void 0);_.X([_.U(_.Mt.YtdHorizontalListBehavior),_.A("design:type",Object)],dQ.prototype,"ytdHorizontalListBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],dQ.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],dQ.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],dQ.prototype,"inlineStructuredDescription",void 0);_.X([_.F({value:2}),_.A("design:type",Number)],dQ.prototype,"initialCount",void 0);_.X([_.F(),_.A("design:type",Object)],dQ.prototype,"currentIndex",void 0);
_.X([_.F(),_.A("design:type",Number)],dQ.prototype,"scrollCount",void 0);_.X([_.F(),_.A("design:type",Object)],dQ.prototype,"supportComponentResize",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],dQ.prototype,"contentHidden",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],dQ.prototype,"modern",void 0);_.X([_.fo("#scroll-container"),_.A("design:type",HTMLDivElement)],dQ.prototype,"JSC$19937_scrollContainer",void 0);
_.X([_.M("contentHidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dQ.prototype,"hiddenChanged",null);_.X([_.I("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],dQ.prototype,"videoLockups",null);_.X([_.I("videoLockups"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],dQ.prototype,"hasVideoLockups",null);
_.X([_.m2("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dQ.prototype,"onIronResize",null);_.X([_.I("data","scrollCount"),_.A("design:type",Object),_.A("design:paramtypes",[])],dQ.prototype,"infoRows",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dQ.prototype,"dataChanged",null);dQ=_.X([_.l({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],dQ);
_.p(dQ,"ytd-video-description-music-section-renderer",function(){if(nTX!==void 0)return nTX;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return nTX=q},{mode:_.NT("kevlar_poly_si_batch_j081")?1:2});var ETw;var xRm=function(){var q=_.N.apply(this,arguments)||this;q.modern=_.b("kevlar_modern_sd_v2");q.modernTypography=_.b("web_modern_typography");return q};
_.z(xRm,_.N);xRm.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var V_=xRm;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],V_.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.X([_.F({}),_.A("design:type",Object)],V_.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],V_.prototype,"modern",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],V_.prototype,"modernTypography",void 0);
V_=_.X([_.l({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],V_);
_.p(V_,"ytd-video-description-transcript-section-renderer",function(){if(ETw!==void 0)return ETw;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ETw=q},{mode:1});var TAF;_.xc(_.xl(function(q){var Z=_.g6(_.DmT,function(){return q.data().firstProviderLinkStatusEntityKey}),w=_.g6(_.DmT,function(){return q.data().secondProviderLinkStatusEntityKey}),r=function(){var Y,C;
return((Y=Z())==null?void 0:Y.linked)||((C=w())==null?void 0:C.linked)};
return _.u("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.u(_.r6,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return q.data().sectionTitle}}),_.u(_.r6,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return r()?q.data().connectedMessage:q.data().notConnectedMessage}}),_.u(_.PF,{cond:r,
then:function(){return _.u(_.Hx,{data:function(){return q.data().connectedButton}},{buttonViewModel:function(Y){return _.u(_.vx,{data:Y.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.u(_.PF,{cond:function(){return!r()},
then:function(){return _.u(_.Hx,{data:function(){return q.data().notConnectedButton}},{buttonViewModel:function(Y){return _.u(_.vx,{data:Y.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Qh"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.zG}});_.xc(_.xl(function(q){var Z=q.data;return _.u("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.u("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.u(_.r6,{text:function(){return Z().sectionTitle}})),_.u("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.u(_.r6,{text:function(){return Z().bodyHeader}})),_.u("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.u(_.r6,{text:function(){return Z().bodyText}})),_.u(_.PF,
{cond:function(){return Z().attributionText},
then:function(){return _.u("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.u(_.r6,{text:function(){return Z().attributionText}}))}}))},"Rh"),"how-this-was-made-section-view-model",{props:{data:_.zG}});_.xc(_.xl(function(q){return _.u("yt-video-description-youchat-section-view-model",{class:_.GL("ytVideoDescriptionYouchatSectionViewModelHost")},_.u("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.u(_.r6,{text:function(){return q.data().sectionTitle}})),_.u("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.u(_.r6,{text:function(){return q.data().subHeaderText}})),_.u("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.u(_.vx,{data:function(){return _.J(q.data().primaryButton,
_.Wx)}})))},"Sh"),"yt-video-description-youchat-section-view-model",{props:{data:_.zG}});var UR8=function(){var q=_.N.apply(this,arguments)||this;q.modern=_.b("kevlar_modern_sd_v2");q.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return q};
_.z(UR8,_.N);_.e=UR8.prototype;
_.e.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}}}}}};
_.e.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.e.dataChanged=function(){var q,Z;this.hasDescriptionOnly=!(((q=this.data)==null?void 0:(Z=q.items)==null?void 0:Z.length)!==1||!_.J(this.data.items[0],zBA))};
_.e.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.e.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.e.autoFocusDescription=function(){var q;((q=_.t().resolve(_.Gj(_.er)))==null?0:q.isKeyBoardInUse())&&this.description&&_.sG(this.description)};
_.e.resize=function(){if(_.b("kevlar_disable_sd_resize"))this.JSC$19945_cardList&&_.hy(this.JSC$19945_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.hy(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.hy(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.e.scrollToSection=function(q){if(q=this.getSectionElement(q))_.yY(this.hostElement,"yt-scroll-to-watch-element",[q]),q.focus()};
_.e.getSectionElement=function(q){switch(q){case "infocards-item-section":var Z;return(Z=this.infocardsSection)!=null?Z:null;case "transcript-item-section":var w;return(w=this.transcriptSection)!=null?w:null;case "how-this-was-made-section-item-section":var r;return(r=this.howThisWasMadeSection)!=null?r:null;case "files-item-section":var Y;return(Y=this.filesSection)!=null?Y:null;default:return null}};
_.e.handleSetActiveItemAction=function(q){var Z=_.J(q,AId),w=Z&&(Z==null?void 0:Z.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$19945_cardList;if(Z&&w){q=this.currentActiveChapter;var r=this.currentActiveProblem;Z=w==null?void 0:w.getItemByIndex(Z.itemIndex);var Y=w=!0;Z&&(Z.active=!0,Z.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(w=q!==Z,Y=!1,this.currentActiveChapter=Z):(Z==null?void 0:Z.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(w=!1,Y=r!==Z,this.currentActiveProblem=Z));q&&w&&(q.active=!1);r&&Y&&(r.active=!1)}};
_.My.Object.defineProperties(UR8.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.b("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
var O5=UR8;O5.prototype.onYtExpanderMoreTapped=O5.prototype.onYtExpanderMoreTapped;O5.prototype.onHiddenChanged=O5.prototype.onHiddenChanged;O5.prototype.dataChanged=O5.prototype.dataChanged;O5.prototype.panelContentVisibleChanged=O5.prototype.panelContentVisibleChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],O5.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],O5.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.SQ),_.A("design:type",Object)],O5.prototype,"ironResizableBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],O5.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],O5.prototype,"panelContentVisible",void 0);_.X([_.F(),_.A("design:type",Boolean)],O5.prototype,"hasDescriptionOnly",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],O5.prototype,"inlineStructuredDescription",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],O5.prototype,"hidden",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],O5.prototype,"shortsPanel",void 0);_.X([_.F(),_.A("design:type",Object)],O5.prototype,"videoSummary",void 0);_.X([_.F(),_.A("design:type",Object)],O5.prototype,"merchShelf",void 0);
_.X([_.I("videoSummary"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],O5.prototype,"showVideoSummary",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],O5.prototype,"modern",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],O5.prototype,"engagementPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],O5.prototype,"watchWhileSdp",void 0);
_.X([_.fo("ytd-expandable-video-description-body-renderer"),_.A("design:type",Object)],O5.prototype,"description",void 0);_.X([_.fo("ytd-horizontal-card-list-renderer"),_.A("design:type",Object)],O5.prototype,"JSC$19945_cardList",void 0);_.X([_.fo("ytd-horizontal-card-list-renderer[center-items]"),_.A("design:type",Object)],O5.prototype,"problemWalkthroughCardList",void 0);_.X([_.fo("ytd-shelf-renderer"),_.A("design:type",Object)],O5.prototype,"shelfSection",void 0);
_.X([_.fo("ytd-video-description-music-section-renderer"),_.A("design:type",Object)],O5.prototype,"musicMetadataSection",void 0);_.X([_.fo("ytd-video-description-infocards-section-renderer"),_.A("design:type",Object)],O5.prototype,"infocardsSection",void 0);_.X([_.fo("ytd-video-description-transcript-section-renderer"),_.A("design:type",Object)],O5.prototype,"transcriptSection",void 0);
_.X([_.fo("how-this-was-made-section-view-model"),_.A("design:type",Object)],O5.prototype,"howThisWasMadeSection",void 0);_.X([_.fo("ytd-video-description-files-section-renderer"),_.A("design:type",Object)],O5.prototype,"filesSection",void 0);_.X([_.M("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],O5.prototype,"panelContentVisibleChanged",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],O5.prototype,"dataChanged",null);_.X([_.M("hidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],O5.prototype,"onHiddenChanged",null);_.X([_.m2("yt-expander-more-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],O5.prototype,"onYtExpanderMoreTapped",null);
O5=_.X([_.l({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],O5);
_.p(O5,"ytd-structured-description-content-renderer",function(){if(TAF!==void 0)return TAF;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return TAF=q},{mode:2});var kjd;var K65;var szm=function(){return _.N.apply(this,arguments)||this};
_.z(szm,_.N);szm.prototype.computeAriaLabel=function(q){var Z,w;return(q==null?void 0:(Z=q.accessibility)==null?void 0:(w=Z.accessibilityData)==null?void 0:w.label)||_.dT("LOADING",void 0,"Loading")};
var HA=szm;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],HA.prototype,"data",void 0);_.X([_.F({computed:"computeAriaLabel(data)"}),_.A("design:type",String)],HA.prototype,"ariaLabel",void 0);HA=_.X([_.dx({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],HA);
_.p(HA,"yt-content-loading-renderer",function(){if(K65===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;kjd===void 0&&(kjd=document.createElement("template"));var r=kjd;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);K65=q}q=K65;return q},{mode:_.NT("kevlar_poly_si_batch_j043")?1:2});var IVX=_.xl(function(q){var Z=q.data;q=_.Iw();_.EM(q,function(){return Z().rendererContext});
var w=function(){var r;return _.nV((r=Z())==null?void 0:r.rendererContext)};
return _.u("content-list-item-view-model",{el:q,class:"ytContentListItemViewModelHost",role:function(){return w()?"listitem":void 0},
tabindex:function(){return w()?0:void 0}},_.u("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.u("div",{class:"ytContentListItemViewModelImageContainer"},_.u(_.PF,{cond:function(){return Z().image},
then:function(r){return _.u(_.aQ,{data:r,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.u(_.Hx,{data:function(){var r;
return(r=Z())==null?void 0:r.avatar}},{avatarViewModel:_.j4})),_.u("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.u("div",{class:"ytContentListItemViewModelTitle"},_.u(_.r6,{text:function(){return Z().title}})),_.u("div",{class:"ytContentListItemViewModelMetadata"},_.u(_.Hx,{data:function(){return Z().metadata}},{contentMetadataViewModel:function(r){return _.u(_.cxm,{data:r.data,
layout:1})}})))),_.u("div",{class:"ytContentListItemViewModelActionButton"},_.u(_.Hx,{data:function(){var r;
return(r=Z())==null?void 0:r.actionButton}},{buttonViewModel:_.vx,
toggleButtonViewModel:_.uo})))},"Th");_.xc(_.xl(function(q){var Z=_.P(_.qo(!1,void 0,"WbYeXc")),w=Z.next().value,r=Z.next().value;Z=_.P(_.qo(!1,void 0,"msXkzc"));var Y=Z.next().value,C=Z.next().value;_.Ls(function(){var H=_.J(q.data().collaboratePlaylistCollaborationSetting,WT5);H&&r(H.switchedOnByDefault);var L=_.J(q.data().allowNewCollaboratorsPlaylistCollaborationSetting,WT5);L&&C(L.switchedOnByDefault);if(!H&&!L||!H&&q.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")r(!0),C(!0)});
var d=function(H){r(H);C(H);var L=q.data().playlistCollaborationEntityKey||"";var S=_.JJ().getState();(S=_.iI(S.entities,"playlistCollaborationEntity",L))&&(S==null?void 0:S.isCollaborative)===H||_.JJ().dispatch(_.wp("playlistCollaborationEntity",L,Object.assign({},S,{isCollaborative:H})))},O=function(H){C(H)};
return _.u("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.u("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.u(_.Hx,{data:function(){return q.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(H){return _.u(_.lrg,{data:H.data,
onSwitch:d})}})),_.u(_.PF,{cond:w,
then:function(){return _.u("div",null,_.u("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.u(_.Hx,{data:function(){return q.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(H){return _.u(_.lrg,{data:H.data,
onSwitch:O,overrideDisabled:!1})}})),_.u(_.PF,{cond:Y,
then:function(){return _.u("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.u(_.Hx,{data:function(){return q.data().copyLinkButton}},{buttonViewModel:_.vx}))}}),_.u("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.u(_.Hx,{data:function(){return q.data().playlistCollaborators}},{contentListItemViewModel:IVX})))}}))},"Uh"),"playlist-collaboration-view-model",{props:{data:_.zG}});var cf9=_.xl(function(q){var Z=q.data;var w=q.customCommandResolver;return _.u(_.lS,null,_.u("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.u(_.Hx,{data:function(){return Z().adAvatar}},{adAvatarViewModel:function(r){return _.u(_.pT7,{data:r.data,
customCommandResolver:w})}})),_.u("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.u(_.PF,{cond:function(){return Z().headline},
then:function(r){return _.u(_.r6,{text:r,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.u("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.u(_.Hx,{data:function(){return Z().adBadge}},{adBadgeViewModel:function(r){return _.u(_.i_,{data:r.data,
hasDot:function(){return Z().primaryDetailsLine!==void 0},
customCommandResolver:w,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.u(_.Hx,{data:function(){return Z().primaryDetailsLine}},{adDetailsLineViewModel:function(r){return _.u(_.g8,{data:r.data,
customCommandResolver:w,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Vh"),M9a=_.xl(function(q){var Z=q.data;
var w=q.customCommandResolver;q=_.Iw();_.MA(q,function(){return Z().interaction},w);
_.Xu(q,{visibilityCallback:function(r){var Y,C=(Y=Z().interaction)==null?void 0:Y.onFirstVisible;r&&C&&_.Sp(C)},
showOption:_.AO});return _.u("ad-avatar-lockup-view-model",{class:function(){var r;return((r=Z().interaction)==null?0:r.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:q,"aria-label":function(){var r,Y;return(r=Z().interaction)==null?void 0:(Y=r.accessibility)==null?void 0:Y.label}},_.u(_.Oq,null,_.u(_.VV,{when:function(){return Z().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.u(cf9,{data:Z,
customCommandResolver:w})}),_.u(_.lj9,null,function(){return null})))},"Wh");_.xc(_.xl(function(q){var Z=q.data;var w=q.panelContentVisibility;q=_.Iw();_.MA(q,function(){return Z().interaction},ilI);
_.Xu(q,{visibilityCallback:function(Y){var C,d=(C=Z().interaction)==null?void 0:C.onFirstVisible;Y&&d&&_.Sp(d)},
showOption:_.AO});_.uS(function(){var Y,C;if(C=_.Eq("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var d;C=(d=C())==null?void 0:d.onLayoutVisibleCallback}else C=null;(Y=C)==null||Y()});
var r=function(){return w()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.u("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:q},_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.u(_.PF,{cond:_.gHX("(min-width: "+((0,_.V$)()+_.FC)+"px) or (max-width: 600px)"),then:function(){return _.u(_.Hx,{data:function(){return Z().adImage}},{adImageViewModel:function(Y){return _.u(_.SD,{data:Y.data,
targetHeight:80,customCommandResolver:ilI})}})}})),_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.u(_.Hx,{data:function(){return Z().adAvatarLockup}},{adAvatarLockupViewModel:function(Y){return _.u(M9a,{data:Y.data,
customCommandResolver:ilI})}})),_.u(_.PF,{cond:r,
then:function(){return _.u(_.Hx,{data:function(){return Z().adButton}},{adButtonViewModel:function(Y){return _.u(_.Du,{data:Y.data,
customCommandResolver:ilI})}})},
else:function(){return _.u(_.Hx,{data:function(){return Z().menu}},{buttonViewModel:_.vx})}}),_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.u(_.Hx,{data:function(){var Y=_.J(Z().toggleButton,_.o5);
return{toggleButtonViewModel:Object.assign({},Y,{isTogglingDisabled:!0,isToggled:r()})}}},{toggleButtonViewModel:_.uo})))))},"Xh"),"panel-ad-header-image-lockup-view-model",{props:{data:_.zG,
panelContentVisibility:_.zG}});var F65=_.xl(function(q){var Z=q.thumbsUp;q=q.thumbsDown;var w=_.P(_.qo(!1,void 0,"OxPsH")),r=w.next().value,Y=w.next().value;w=_.P(_.qo(!1,void 0,"V5vWne"));var C=w.next().value,d=w.next().value;return _.u("div",{class:"ytwThumbsUpDownThumbs"},_.u(_.uo,{data:Z,onToggle:function(O){Y(O);C()&&d(!1)},
buttonShapeOverrides:function(){return{toggled:r()}}}),_.u(_.uo,{data:q,
onToggle:function(O){d(O);r()&&Y(!1)},
buttonShapeOverrides:function(){return{toggled:C()}}}))},"Yh");
F65.idomCompat=!0;var lVX=_.xl(function(q){var Z=function(){return q.data().pendingStateEntityKey||""},w=_.g6(g86,Z),r=function(){var Y;
if(!(Y=q.disabled())){var C;Y=!((C=w())==null||!C.isPendingResponse)}return Y};
return _.u("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.u(_.dA,{each:function(){return q.data().chipData||[]},
keyBy:"REFERENCE"},function(Y){return _.u(NAv,{data:Y,disabled:r,pendingStateKey:Z,onError:q.onError})}))},"Zh"),NAv=_.xl(function(q){var Z=_.Iw(),w=_.P(_.qo(!0,void 0,"HBREAe")),r=w.next().value,Y=w.next().value,C=function(){return q.data().text.content},d=_.fn(function(O){var H,L,S,v,R,B,n,x;
return _.V(function(K){switch(K.nextAddress){case 1:O.stopPropagation();if(q.disabled())return K.return();L=String(Math.floor(((H=_.t().resolve(_.X6)())==null?void 0:H.getCurrentTime())||0)*1E3);S="youchat-"+Date.now();v=function(){_.um(q.data().onClick||{});var k=_.ih({continuationCommand:{token:q.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}),G={inputComposerFormData:{clientMessageId:S,playerOffsetMs:L}};return new Promise(function(rz,f){_.um(k,{form:{formData:G},commandController:{onSuccess:function(eO,
g){rz(g)},
onServerError:function(eO,g){f(g.error)}}})})};
R=qXm(q.pendingStateKey());R(!0);E8a("#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");Y(!1);_.d9(K,2);return _.W(K,v(),4);case 4:_.QL(K,3);break;case 2:B=_.o3(K),(x=(n=q).onError)==null||x.call(n,B);case 3:R(!1),_.ub(K)}})});
return _.u(_.PF,{cond:r,then:function(){return _.u("div",{class:"ytwYouChatChipsDataChipWrapper"},_.u("button",{el:Z,class:"ytwYouChatChipsDataChip","data-disabled":q.disabled,"on:click":d,tabindex:0},C))}})},"$h");var GjF=_.xl(function(q){var Z=q.data;return _.u("yt-conversation-resource-view-model",{class:_.GL("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.u(_.PF,{cond:function(){var w;return(w=Z().conversationResourceData)==null?void 0:w.learningGuideData},
then:function(w){return _.u(_.dA,{each:function(){return w().sectionData||[]}},function(r){return _.u("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.u(_.r6,{text:function(){return r.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.u("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.u(_.r6,{text:function(){return r.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.u(_.r6,{text:function(){return r.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"ai");
GjF.idomCompat=!0;var pFI=_.xl(function(q){var Z=function(){var k;return(k=q.data().text)==null?void 0:k.content},w=function(){var k,G;
return(k=q.data().webData)==null?void 0:(G=k.textResult)==null?void 0:G.content},r=_.t().resolve(_.JE),Y=_.A7(),C=function(){return q.data().chatResponseStyle},d=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:q.data().animationUrl}}},O=function(){var k;
return q.data().webData||((k=q.data().text)==null?void 0:k.content)||q.data().videoResultsData||q.data().conversationResourceViewModel},H=function(){var k;
return(k=q.data().videoResultsData)==null?void 0:k.videoShelf},L=function(){var k;
return _.J(((k=q.data().videoResultsData)==null?void 0:k.videoShelf)||{},H_6)},S=function(){var k;
return(k=q.data().webData)==null?void 0:k.sourcesShelf},v=function(){var k;
return _.J(((k=q.data().webData)==null?void 0:k.sourcesShelf)||{},H_6)},R=function(){return _.J(q.data().conversationResourceViewModel||{},aJX)},B=function(){return C()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||C()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:q.data().thumbsDownViewModel&&q.data().thumbsUpViewModel},n=function(){return _.J(q.data().thumbsUpViewModel,_.o5)},x=function(){return _.J(q.data().thumbsDownViewModel,_.o5)};
_.oz(function(){requestAnimationFrame(function(){var k;(k=q.shouldAnimateIcon)!=null&&k.call(q)&&rIF(Y.lottieEl)})});
var K={};return _.u("you-chat-item-view-model",{class:_.GL("ytwYouChatItemViewModelYouChatItemViewModel",(K.ytwYouChatItemViewModelHostNoPadding=function(){return!1},K)),
"data-target-id":function(){return q.data().id||""}},_.u(_.PF,{cond:O,
then:function(){var k={};return _.u("div",{"aria-hidden":"true"},_.u(_.pn,{className:_.GL("ytwYouChatItemViewModelIcon",(k.ytwYouChatItemViewModelRtl=r==="rtl",k.ytwYouChatItemViewModelHidden=function(){return!(q.data().hideIcon||C()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||C()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:O())},k)),
animationName:"YOUCHAT_ICON",data:d,animationRef:Y}))}}),_.u(_.PF,{cond:O,
then:function(){var k={};return _.u("div",{class:_.GL("ytwYouChatItemViewModelHost",(k.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return C()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},k.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return C()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},k.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return C()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},k)),
role:"alert"},_.u(_.PF,{cond:Z,then:function(G){return _.u(_.eq,{text:G})}}),_.u(_.PF,{cond:w,
then:function(G){return _.u(_.eq,{text:G})}}),_.u(_.PF,{cond:H,
then:function(){return _.u("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.u(_.$t,{data:L,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.u(_.PF,{cond:S,
then:function(){return _.u("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.u(_.$t,{data:v,hasPeek:!0,disableArrows:!1}))}}),_.u(_.PF,{cond:R,
then:function(){return _.u(GjF,{data:R})}}),_.u(_.PF,{cond:B,
then:function(){return _.u(F65,{thumbsUp:n,thumbsDown:x})}}))}}),_.u(_.PF,{cond:function(){return q.data().chipsData},
then:function(k){return _.u(lVX,{data:k,disabled:q.pending,onError:q.onError})}}))},"bi");
pFI.idomCompat={callbacks:{onError:!0,onSend:!0}};var XFA=_.xl(function(q){var Z=function(){return q.data().choiceSelectedText};
return _.u("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.u(_.PF,{cond:Z,then:function(){return _.u("div",{class:"ytYouChatUserTurnChoiceSelected"},_.u(_.r6,{text:Z}))}}),_.u("div",{class:"ytYouChatUserTurnUserMessage"},function(){return q.data().text}))},"ci");var mRr=_.xl(function(q){var Z=_.P((0,_.Cz1)(q.data)).next().value;return _.u("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return q.data().targetId||""}},_.u(_.Hx,{data:function(){return Z().contents}},{chatLoadingViewModel:_.Hnb,
youChatItemViewModel:function(w){return _.u(pFI,{data:w.data,pending:!1})},
chatUserTurnViewModel:function(w){return _.u(XFA,{data:w.data})},
accordionViewModel:function(w){return _.u(_.Y2F,{data:w.data})},
learningJourneyLoaderViewModel:function(w){return _.u(_.q2q,{data:w.data})}}))},"di");_.xc(_.xl(function(q){var Z=_.P((0,_.Cz1)(q.data)).next().value;return _.u("yt-section-list-renderer",{class:_.GL("ytSectionListRendererHost",q.className),"data-target-id":function(){return q.data().targetId||""}},_.u(_.Hx,{data:function(){return Z().contents}},{itemSectionRenderer:mRr}))},"ei"),"yt-section-list-renderer",{props:{data:_.zG,
className:_.EL}});_.xc(_.xl(function(q){var Z=function(){return _.J(q.data().inputComposerViewModel,oqF)},w=function(){var K;
return((K=Z())==null?void 0:K.youchatPendingResponseEntityKey)||""},r=_.g6(g86,w),Y=function(){var K;
return!((K=r())==null||!K.isPendingResponse)},C=_.P(_.qo(!0,void 0,"DR0q1d")),d=C.next().value,O=C.next().value,H=function(){return Z().sectionTargetId||"youchat_messages_section"};
C=_.cO();var L=_.Iw(),S=_.g6(ZA5,"chat_input_view_model_state"),v=w89(),R=function(){var K;return!((K=S())==null||!K.value)};
_.Ls(function(){var K;!R()&&((K=Z())==null?0:K.welcomeFeatureContinuation)&&(K=_.ih({continuationCommand:{token:Z().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}),_.um(K),v(!0));var k=H(),G;(G=_.t().resolve(_.Gj(_.fq)))==null||G.addEventListener("yt-navigate-start",function(){_.dp.remove(k);v(!1)},{once:!0})});
var B=_.fn(function(K){var k=Y()||!1;YXd(L.value);k||K.key!=="Enter"||K.shiftKey||(K.preventDefault(),x());return!1}),n=_.fn(function(){O(L.value.value.length===0);
return!1}),x=function(){var K,k,G,rz,f,eO,g,H6,nX;
return _.V(function(Qj){K=L.value.value;L.value.value="";YXd(L.value);k=$Kv(H(),K);_.um(k);G=qXm(w());_.Sp(((rz=Z())==null?void 0:rz.onSubmitCommand)||{});G(!0);eO=String(Math.floor(((f=_.t().resolve(_.X6)())==null?void 0:f.getCurrentTime())||0)*1E3);H6=_.ih({continuationCommand:{token:(g=Z())==null?void 0:g.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}});nX=_.ih({inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:K,playerOffsetMs:eO}});_.um(H6,{form:{formData:nX},
commandController:{onSuccess:function(){G(!1)},
onServerError:function(){var SO=H();_.um({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:SO}}]}}});G(!1)}}});
_.ub(Qj)})};
return _.u("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:C},_.u("div",{class:"chatInputViewModelChatInputWrapper"},_.u("form",{class:"chatInputViewModelChatInputForm"},_.u("textarea",{class:"chatInputViewModelChatInput",el:L,"on:keydown":B,"on:keyup":n,placeholder:function(){var K,k;var G=_.J((k=Z())==null?void 0:k.inputFormField,p8X);return G==null?void 0:(K=G.contentProperties)==null?void 0:K.placeholderText},
rows:1}),_.u(_.vx,{data:function(){return _.J(q.data().sendButton,_.Wx)},
onClick:function(K){K.preventDefault();x();O(L.value.value.length===0)},
buttonOverrides:function(){return{disabled:d()||Y()}}})),_.u(_.r6,{className:"chatInputViewModelChatDisclaimer",
text:function(){var K;return(K=_.J(q.data().disclaimer,_.AAv))==null?void 0:K.text}})))},"fi"),"yt-chat-input-view-model",{props:{data:_.zG}});var Afm=["engagement-panel-clip-create","engagement-panel-clip-view"],fVd=0,DR8=function(){var q=_.N.apply(this,arguments)||this;var Z;q.headerData=(Z=q.data)==null?void 0:Z.header;q.darkerPanels=_.b("web_watch_darker_panels");q.disableAutoFill=!1;q.isFullscreen=!1;q.modernPanels=_.b("kevlar_watch_modern_panels");q.liveChatReplyPanel=!1;q.enableAnchoredPanel=_.b("desktop_shorts_v2_anchored_panel");q.disableBackdropFilter=_.b("web_disable_backdrop_filter");q.trackEngagementPanelVisibility=_.b("web_watch_track_engagement_panel_visibility");
q.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 q};
_.z(DR8,_.N);_.e=DR8.prototype;
_.e.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},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(q){q=
q==null?void 0:q.contents;if(!q||q.length<1)return"ytd-section-list-renderer";var Z,w;q=(Z=q[0])==null?void 0:(w=Z.itemSectionRenderer)==null?void 0:w.contents;if(!q||q.length<1)return"ytd-section-list-renderer";var r;return((r=q[0])==null?0:r.youChatItemViewModel)?"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"}}}};
_.e.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var q;if((q=this.hostElement.parentElement)==null?0:q.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.e.detached=function(){this.updateTheaterDisablement()};
_.e.showPanel=function(){var q=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.v5.addJob(function(){q.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.e.maybeScrollToItemSection=function(q){var Z=this,w,r=q==null?void 0:(w=q.sectionListEngagementPanelExtras)==null?void 0:w.scrollToItemSectionIdentifier;r&&_.v5.addJob(function(){var Y;(Y=Z.sectionListRendererElement)==null||Y.scrollToItemSection(r)},8)};
_.e.hidePanel=function(){var q=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.v5.addJob(function(){q.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.e.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.e.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.e.updatePanel=function(q,Z,w,r){var Y=this;if((q=q==null?void 0:q.engagementPanelSectionListRenderer)||r){if(q){r=q.header;var C=q.content,d=q.footer;(q=q.targetId)&&this.set("data.targetId",q);r&&this.set("data.header",r);C&&this.set("data.content",C);d&&this.set("data.footer",d)}else r&&(q=r.content,C=r.secondaryHeaderContent,(r=r.targetId)&&this.set("data.targetId",r),q&&this.set("data.content",q),C&&(this.secondaryHeaderData=C));this.updateChildVisibilityProperties();if(Z){var O;_.b("kevlar_update_panel_focus_scroll_killswitch")||
(O={preventScroll:!0});this.focus(O)}_.I_(this,function(){_.hy(Y.hostElement,"yt-refit");Y.maybeScrollToItemSection(w)})}};
_.e.computeHeaderData=function(){var q,Z=(0,_.R4.unsafeClone)((q=this.data)==null?void 0:q.header);if(Z){q=new _.D(Object.keys(Z)[0]);var w=_.J(Z,q),r=_.J(this.secondaryHeaderData,q);r&&_.da(Z,q,Object.assign({},r,w))}return Z};
_.e.getReloadContinuation=function(){var q,Z,w,r=_.P(((q=this.data)==null?void 0:(Z=q.content)==null?void 0:(w=Z.sectionListRenderer)==null?void 0:w.continuations)||[]);for(q=r.next();!q.done;q=r.next())if(q=q.value,q.reloadContinuationData)return q.reloadContinuationData.continuation};
_.e.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var q;((q=this.data)==null?0:q.targetId)&&(q=this.contentElement.firstElementChild)&&q.setAttribute("panel-target-id",this.data.targetId)};
_.e.forwardPopupClosedToFlowRootRenderer=function(){var q=_.E(this.hostElement).querySelector("ytd-flow-root-renderer");if(q)q.onPopupClosed()};
_.e.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));if(_.b("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"){var q;this.visibility=(q=this.data)==null?void 0:q.visibility;var Z;this.trackEngagementPanelVisibility&&((Z=this.data)==null?void 0:Z.visibility)===
"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var w,r,Y,C;this.contentEmpty=!!(((w=this.data)==null?0:(r=w.content)==null?0:r.structuredDescriptionContentRenderer)&&Object.keys((Y=this.data)==null?void 0:(C=Y.content)==null?void 0:C.structuredDescriptionContentRenderer).length===0);(q=_.t().resolve(_.Of))&&q.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",
this.visibility=this.data.visibility};
_.e.isFullscreenChanged=function(){this.isFullscreen&&_.b("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.e.focus=function(q){if(this.header)this.header.focus(q);else{var Z;(Z=_.E(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||Z.focus(q)}};
_.e.visibilityChanged=function(){if(!_.b("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var q=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Z=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",w=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",r=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Y=r||!this.lastVisibility,C,d,O=(C=this.data)==null?void 0:(d=C.identifier)==null?void 0:d.tag,
H;if(((H=this.data)==null?0:H.onShowCommands)&&q&&Y)_.ZC(this.hostElement,this.data.onShowCommands,this.hostElement),O&&_.sE().dispatch(_.mu({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:O}}));else{var L;((L=this.data)==null?0:L.onHideCommands)&&Z&&w&&(_.ZC(this.hostElement,this.data.onHideCommands,this.hostElement),O&&_.sE().dispatch(_.mu({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:O}})))}q&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*fVd++));_.b("kevlar_watch_focus_on_engagement_panels")&&
q&&r&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.e.notifyVisibilityChanged=function(q){var Z;_.i5(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,q,(Z=this.data)==null?void 0:Z.targetId])};
_.e.updateTheaterDisablement=function(){if(!_.b("kevlar_watch_theater_disablement_killswitch")){var q=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&Afm.includes(q)&&!_.b("watch_next_grid_ignore_disallowed_panels")){var Z=_.P9(_.sE().getState()),w=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";q!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():w?(this.originalTheaterState===void 0&&(this.originalTheaterState=Z,this.theaterDisablementPanelIdentifier=
q),Z&&_.yY(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.e.clearTheaterDisablement=function(){_.yY(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.e.updateChildVisibilityProperties=function(){this.hostElement||_.b("kevlar_panel_property_init_killswitch")||this._enableProperties();var q=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=q);var Z,w=(Z=this.headerElement)==null?void 0:Z.firstElementChild;if(w&&!this.adHeaderImageLockupViewModel){Z=q==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";w.collapsed=Z;w=_.E(w).querySelector("#visibility-button");if(!w)return;(w=w.firstElementChild)&&
w.polymerController.is==="ytd-toggle-button-renderer"&&w.polymerController.data.isToggled!==Z&&w.polymerController.set("data.isToggled",Z)}var r;if(Z=(r=this.contentElement)==null?void 0:r.firstElementChild)if(q&&q!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")Z.removeAttribute("panel-content-visible");else{Z.setAttribute("panel-content-visible","");var Y;(Y=Z.markDirty)==null||Y.call(Z)}};
_.e.onYtChangeEngagementPanelVisibilityAction=function(q){var Z=this,w,r=(w=this.data)==null?void 0:w.targetId,Y,C,d;w=((Y=this.data)==null?void 0:(C=Y.identifier)==null?void 0:C.tag)||((d=this.data)==null?void 0:d.panelIdentifier);var O=_.J(q,_.$1h),H;q=r&&(O==null?void 0:O.targetId)===r||w&&(O==null?void 0:(H=O.panelIdentifier)==null?void 0:H.tag)===w;this.dialog&&q&&(O==null?void 0:O.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(r==="engagement-panel-comments-section"?_.yY(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.yY(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",w]));r=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";H=this.isFullscreen&&_.b("kevlar_single_panel_fullscreen");r=!q&&(O==null?void 0:O.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&!r&&H;_.b("kevlar_use_engagement_panel_management_component")||(q?(r=O.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&
!r?_.v5.addJob(function(){Z.visibility=O.visibility},2,this.hideDelayMs):this.visibility=O.visibility,O.visibility&&this.notifyVisibilityChanged(O.visibility)):r&&this.hidePanel())};
_.e.onYtScrollToEngagementPanelCommand=function(q){var Z,w=(Z=this.data)==null?void 0:Z.targetId,r,Y,C;Z=((r=this.data)==null?void 0:(Y=r.identifier)==null?void 0:Y.tag)||((C=this.data)==null?void 0:C.panelIdentifier);q=_.J(q,_.Ln7);var d;(w&&(q==null?void 0:q.targetId)===w||Z&&(q==null?void 0:(d=q.panelIdentifier)==null?void 0:d.tag)===Z)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.yY(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.e.attachVEs=function(q){var Z,w;(q==null?0:(Z=q.content)==null?0:(w=Z.productListRenderer)==null?0:w.trackingParams)&&_.iy().graftServerVe(q.content.productListRenderer.trackingParams);var r,Y;(q==null?0:(r=q.content)==null?0:(Y=r.transcriptRenderer)==null?0:Y.trackingParams)&&_.iy().graftServerVe(q.content.transcriptRenderer.trackingParams)};
_.e.onYtUpdateEngagementPanelAction=function(q){var Z,w=(Z=this.data)==null?void 0:Z.targetId;q=_.J(q,DKw);w&&(q==null?void 0:q.targetId)===w&&(this.updatePanel({engagementPanelSectionListRenderer:{header:q==null?void 0:q.header,content:q==null?void 0:q.content}},!1),this.attachVEs(q))};
_.e.onYtShowEngagementPanelScrimAction=function(q){var Z,w=(Z=this.data)==null?void 0:Z.targetId;q=_.J(q,fFK);w&&(q==null?void 0:q.engagementPanelTargetId)===w&&(this.scrimmed=!0)};
_.e.onYtHideEngagementPanelScrimAction=function(q){var Z,w=(Z=this.data)==null?void 0:Z.targetId;q=_.J(q,mKd);w&&(q==null?void 0:q.engagementPanelTargetId)===w&&(this.scrimmed=!1)};
_.e.getIdentifier=function(){var q,Z,w;return((q=this.data)==null?void 0:q.panelIdentifier)||((Z=this.data)==null?void 0:(w=Z.identifier)==null?void 0:w.tag)};
_.e.getSurface=function(){var q,Z;return(q=this.data)==null?void 0:(Z=q.identifier)==null?void 0:Z.surface};
_.My.Object.defineProperties(DR8.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var q=this.getIdentifier();return q==="engagement-panel-youchat"||q==="PAyouchat"}}});
var WA=DR8;WA.prototype.visibilityChanged=WA.prototype.visibilityChanged;WA.prototype.isFullscreenChanged=WA.prototype.isFullscreenChanged;WA.prototype.dataChanged=WA.prototype.dataChanged;WA.prototype.forwardPopupClosedToFlowRootRenderer=WA.prototype.forwardPopupClosedToFlowRootRenderer;WA.prototype.onYtRendererstamperFinished=WA.prototype.onYtRendererstamperFinished;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],WA.prototype,"actionHandlerBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],WA.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],WA.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],WA.prototype,"ytEventForwardingBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],WA.prototype,"data",void 0);
_.X([_.F({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.A("design:type",Object)],WA.prototype,"headerData",void 0);_.X([_.F(),_.A("design:type",Object)],WA.prototype,"secondaryHeaderData",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],WA.prototype,"visibility",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],WA.prototype,"contentEmpty",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],WA.prototype,"scrimmed",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],WA.prototype,"dialog",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],WA.prototype,"dropdown",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],WA.prototype,"darkerPanels",void 0);_.X([_.F(),_.A("design:type",Object)],WA.prototype,"disableAutoFill",void 0);
_.X([_.F({reflectToAttribute:!0,value:_.b("optimal_reading_width_comments_ep")}),_.A("design:type",Boolean)],WA.prototype,"optimalReadingWidthComments",void 0);_.X([_.F(),_.A("design:type",Number)],WA.prototype,"hideDelayMs",void 0);_.X([_.F({selector:_.kW,reflectToAttribute:!0}),_.A("design:type",Object)],WA.prototype,"isFullscreen",void 0);_.X([_.F(),_.A("design:type",Number)],WA.prototype,"showDelayMs",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("data.targetId"),_.A("design:type",Object),_.A("design:paramtypes",[])],WA.prototype,"targetId",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],WA.prototype,"webSize",null);_.X([_.F(),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],WA.prototype,"hideFooterBorder",null);_.X([_.F(),_.A("design:type",Object)],WA.prototype,"isWatch",void 0);
_.X([_.F(),_.A("design:type",Object)],WA.prototype,"originalTheaterState",void 0);_.X([_.F(),_.A("design:type",Object)],WA.prototype,"theaterDisablementPanelIdentifier",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],WA.prototype,"modernPanels",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],WA.prototype,"isWatchWhilePanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],WA.prototype,"shortsPanel",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],WA.prototype,"liveChatEngagementPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],WA.prototype,"liveChatReplyPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],WA.prototype,"enableAnchoredPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],WA.prototype,"disableBackdropFilter",void 0);
_.X([_.F(),_.A("design:type",Object)],WA.prototype,"trackEngagementPanelVisibility",void 0);_.X([_.fo("#header"),_.A("design:type",HTMLElement)],WA.prototype,"headerElement",void 0);_.X([_.fo("#header > *"),_.A("design:type",HTMLElement)],WA.prototype,"header",void 0);_.X([_.fo("ytd-section-list-renderer"),_.A("design:type",Object)],WA.prototype,"sectionListRendererElement",void 0);
_.X([_.fo("panel-ad-header-image-lockup-view-model"),_.A("design:type",HTMLElement)],WA.prototype,"adHeaderImageLockupViewModel",void 0);_.X([_.fo("#content"),_.A("design:type",HTMLElement)],WA.prototype,"contentElement",void 0);_.X([_.m2("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WA.prototype,"onYtRendererstamperFinished",null);
_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WA.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WA.prototype,"dataChanged",null);_.X([_.M("isFullscreen"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WA.prototype,"isFullscreenChanged",null);
_.X([_.M("visibility"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WA.prototype,"visibilityChanged",null);WA=_.X([_.l({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],WA);
_.p(WA,"ytd-engagement-panel-section-list-renderer",function(){if(Dov!==void 0)return Dov;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Dov=q},{mode:_.NT("kevlar_poly_si_batch_j028")?1:2});var he9;var yfA=function(){var q=_.N.apply(this,arguments)||this;q.lastRenderedPanelIds=new Set;q.visiblePanels=[];q.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return q};
_.z(yfA,_.N);_.e=yfA.prototype;_.e.dataChanged=function(){if(this.data){for(var q=[],Z=_.P(this.data),w=Z.next();!w.done;w=Z.next()){w=w.value;var r=void 0,Y=void 0,C=(r=w)==null?void 0:(Y=r.engagementPanelSectionListRenderer)==null?void 0:Y.visibility;Y=r=void 0;((r=w)==null?0:(Y=r.engagementPanelSectionListRenderer)==null?0:Y.targetId)&&C!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&q.push(w)}this.visiblePanels=q}else this.visiblePanels=[]};
_.e.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}}};
_.e.withoutVisiblePanelById=function(q){return this.visiblePanels.filter(function(Z){var w;return((w=Z.engagementPanelSectionListRenderer)==null?void 0:w.targetId)!==q})};
_.e.onYtChangeEngagementPanelVisibilityAction=function(q){var Z=this,w=_.J(q,_.$1h);if(this.data&&(w==null?0:w.targetId)&&(w==null?0:w.visibility)){var r,Y=(r=this.data.find(function(d){var O;return((O=d.engagementPanelSectionListRenderer)==null?void 0:O.targetId)===w.targetId}))==null?void 0:r.engagementPanelSectionListRenderer;
if(Y){var C=this.withoutVisiblePanelById(w.targetId);w.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(q=this.data.find(function(d){var O;return((O=d.engagementPanelSectionListRenderer)==null?void 0:O.targetId)===w.targetId}))&&(C=[q].concat(_.Ju(C)));
this.hideDelayMs&&w.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&C.length===0?_.v5.addJob(function(){Y.visibility=w.visibility;Z.visiblePanels=C},10,this.hideDelayMs):(Y.visibility=w.visibility,this.visiblePanels=C);
_.i5(this.hostElement,"yt-engagement-panels-visible-changed",[C])}}};
_.e.onRendererstamperFinished=function(){var q=new Set(this.visiblePanels.map(function(Z){var w;return(w=Z.engagementPanelSectionListRenderer)==null?void 0:w.targetId}));
this.handlePanelVisibilityChange(q,this.lastRenderedPanelIds);this.lastRenderedPanelIds=q};
_.e.handlePanelVisibilityChange=function(q,Z){q=q===void 0?new Set:q;Z=Z===void 0?new Set:Z;if(this.data)for(var w=_.P(this.data),r=w.next();!r.done;r=w.next()){r=r.value;var Y=void 0,C=void 0,d=(Y=r)==null?void 0:(C=Y.engagementPanelSectionListRenderer)==null?void 0:C.targetId;if(d&&(Y=Z.has(d),C=q.has(d),d=void 0,!Y&&C?(C=Y=void 0,d=(Y=r)==null?void 0:(C=Y.engagementPanelSectionListRenderer)==null?void 0:C.onShowCommands):Y&&!C&&(C=Y=void 0,d=(Y=r)==null?void 0:(C=Y.engagementPanelSectionListRenderer)==
null?void 0:C.onHideCommands),d))for(r=_.P(d),d=r.next();!d.done;d=r.next())this.ytComponentBehavior.resolveCommand(d.value)}};
var oG=yfA;oG.prototype.onRendererstamperFinished=oG.prototype.onRendererstamperFinished;oG.prototype.dataChanged=oG.prototype.dataChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],oG.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],oG.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],oG.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],oG.prototype,"lastRenderedPanelIds",void 0);_.X([_.F(),_.A("design:type",Number)],oG.prototype,"hideDelayMs",void 0);_.X([_.F(),_.A("design:type",Array)],oG.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Array)],oG.prototype,"visiblePanels",void 0);_.X([_.F(),_.A("design:type",Boolean)],oG.prototype,"isWatchWhilePanel",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oG.prototype,"dataChanged",null);_.X([_.m2("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oG.prototype,"onRendererstamperFinished",null);oG=_.X([_.l({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],oG);
_.p(oG,"ytd-watch-engagement-panels",function(){if(he9!==void 0)return he9;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return he9=q},{mode:1});var is8;var uW=function(){return _.N.apply(this,arguments)||this};
_.z(uW,_.N);uW.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.fA(_.E(this.hostElement).querySelector("#text"),_.sq2(_.MV7,this.data.companionLegalText))};
uW.prototype.computeAutoScrollEnabled=function(q,Z){return q&&!Z};
uW.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
uW.prototype.onToggleTap=function(){this.expanded=!this.expanded};
var Lf=uW;Lf.prototype.expandedChanged=Lf.prototype.expandedChanged;Lf.prototype.dataChanged=Lf.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.q_8),_.A("design:type",Object)],Lf.prototype,"ytdAutoScrollBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Lf.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Lf.prototype,"expanded",void 0);
_.X([_.F({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.A("design:type",Boolean)],Lf.prototype,"autoScrollEnabled",void 0);_.X([_.F(),_.A("design:type",String)],Lf.prototype,"expanderIcon",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lf.prototype,"dataChanged",null);
_.X([_.M("expanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lf.prototype,"expandedChanged",null);Lf=_.X([_.l({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Lf);
_.p(Lf,"ytd-companion-legal-text-renderer",function(){if(is8!==void 0)return is8;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return is8=q},{mode:1});var gT9;var S7,qkr=function(){var q=_.N.apply(this,arguments)||this;q.buttonUpdate=_.b("web_modern_buttons");q.kevlarWatchGrid=_.b("kevlar_watch_grid");q.centerAlignDescription=_.b("action_companion_center_align_description");q.truncateDomain=_.b("action_companion_truncate_domain");return q};
_.z(qkr,_.N);_.e=qkr.prototype;_.e.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.e.getOnLayoutVisibleCallback=function(){var q=_.Eq("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.onLayoutVisibleCallback:null};
_.e.getLayoutId=function(){var q=_.Eq("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.layoutId:null};
_.e.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",S7.JSC$20007_DEFAULT_AD_BADGE_RENDERER);var q=this.getOnLayoutVisibleCallback();q&&q()}};
_.e.getButtonRenderer=function(q){return q.actionButton&&_.J(q.actionButton,_.tA)?(delete _.J(q.actionButton,_.tA).navigationEndpoint,_.J(q.actionButton,_.tA)):{}};
_.e.onClick=function(q){var Z=this;if((!_.b("web_modern_buttons")||!_.E1(_.E8(q),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){q=_.K6();var w=this.getLayoutId();q&&w&&_.b("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?q.getPlayerPromise().then(function(r){(new _.jd(r)).executeCommand(Z.data.navigationEndpoint,w)}):_.b("kevlar_companion_resolve_command_killswitch")?_.hy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.yY(this.hostElement,"yt-companion-ad-clicked",["action-companion",w])}};
_.My.Object.defineProperties(qkr.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return((q=this.data)==null?0:(Z=q.detailsLine)==null?0:(w=Z.adRating)==null?0:w.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 q,Z,w,r;return((q=this.data)==null?0:(Z=q.detailsLine)==null?0:(w=Z.adRating)==null?0:(r=w.ratingIcon)==null?0:r.iconType)?_.Xl(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r;return((q=this.data)==null?0:(Z=q.detailsLine)==null?0:(w=Z.texts)==null?0:(r=w[0])==null?0:r.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 q,Z;return((q=this.data)==null?0:(Z=q.description)==null?0:Z.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var q=_.Eq("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var q=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return q?q.indexOf("/default_banner")!==-1:!0}}});
var vA=S7=qkr;S7.prototype.onClick=S7.prototype.onClick;S7.prototype.dataChanged=S7.prototype.dataChanged;vA.JSC$20007_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.dT("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],vA.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],vA.prototype,"rendererBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],vA.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],vA.prototype,"buttonUpdate",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],vA.prototype,"kevlarWatchGrid",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],vA.prototype,"centerAlignDescription",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],vA.prototype,"truncateDomain",void 0);
_.X([_.F({computed:"computeButtonOverride(buttonUpdate)"}),_.A("design:type",Object)],vA.prototype,"buttonOverride",void 0);_.X([_.I("data.detailsLine.adRating.ratingText"),_.A("design:type",Object),_.A("design:paramtypes",[])],vA.prototype,"getRating",null);_.X([_.I("getRating"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vA.prototype,"computeRatingHidden",null);
_.X([_.I("data.detailsLine.adRating.ratingIcon.iconType"),_.A("design:type",Object),_.A("design:paramtypes",[])],vA.prototype,"iconType",null);_.X([_.I("data.detailsLine.texts.0.text"),_.A("design:type",Object),_.A("design:paramtypes",[])],vA.prototype,"getDetailsLine",null);_.X([_.I("getDetailsLine"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vA.prototype,"computeDetailsLineHidden",null);
_.X([_.I("data.description.text"),_.A("design:type",Object),_.A("design:paramtypes",[])],vA.prototype,"getDescriptionText",null);_.X([_.I("getDescriptionText"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vA.prototype,"computeDescriptionTextHidden",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],vA.prototype,"interactionLoggingClientData",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vA.prototype,"hideBanner",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vA.prototype,"dataChanged",null);_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],vA.prototype,"onClick",null);vA=S7=_.X([_.l({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],vA);
_.p(vA,"ytd-action-companion-ad-renderer",function(){if(gT9!==void 0)return gT9;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return gT9=q},{mode:_.NT("kevlar_poly_si_batch_j067")?1:2});var ZY9;var wgd;var rmd=function(){var q=_.N.apply(this,arguments)||this;q.buttonUpdate=_.b("web_modern_buttons");q.hideLegacyBanner=_.b("enable_dsa_one_click_ata_translators_infeed_elements");q.adInfoButtonStyle="mono";q.adInfoButtonType="text";q.noDotAdBadge=!0;return q};
_.z(rmd,_.N);_.e=rmd.prototype;_.e.getOnLayoutVisibleCallback=function(){var q=_.Eq("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.onLayoutVisibleCallback:null};
_.e.getLayoutId=function(){var q=_.Eq("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.layoutId:null};
_.e.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 q=this.data.image.thumbnail.thumbnails[0];this.imageSrc=q.url?_.EX(q.url):void 0;this.imageWidth=q.width||0;this.imageHeight=q.height||0}this.data.clickthroughEndpoint&&_.J(this.data.clickthroughEndpoint,_.TF)&&(q=_.J(this.data.clickthroughEndpoint,_.TF).url,_.b("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
q||"":q?(q=_.EX(q),this.clickThroughUrl=_.bg(q)):this.clickThroughUrl=void 0);(q=this.getOnLayoutVisibleCallback())&&q()}};
_.e.onClick=function(q){_.E1(_.E8(q),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(q)};
_.e.handleClick=function(){var q=this;this.data&&this.data.clickthroughEndpoint&&(_.hy(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(Z){q.macroReplacementBehavior.sendServiceRequestAction([Z])}),_.yY(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.e.onLoad=function(){_.i5(this.hostElement,"yt-refit-popups-action")};
_.My.Object.defineProperties(rmd.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var q=_.Eq("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var q=_.Eq("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.interactionLoggingClientData:null}}});
var j7=rmd;j7.prototype.onLoad=j7.prototype.onLoad;j7.prototype.onClick=j7.prototype.onClick;j7.prototype.dataChanged=j7.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],j7.prototype,"rendererBehavior",void 0);_.X([_.U(j1I.YtMacroReplacementBehavior),_.A("design:type",Object)],j7.prototype,"macroReplacementBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],j7.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],j7.prototype,"buttonUpdate",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],j7.prototype,"hideLegacyBanner",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],j7.prototype,"adInfoButtonStyle",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],j7.prototype,"adInfoButtonType",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],j7.prototype,"macros",null);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],j7.prototype,"interactionLoggingClientData",null);_.X([_.F(),_.A("design:type",String)],j7.prototype,"clickThroughUrl",void 0);_.X([_.F(),_.A("design:type",_.v8)],j7.prototype,"imageSrc",void 0);_.X([_.F(),_.A("design:type",Number)],j7.prototype,"imageWidth",void 0);_.X([_.F(),_.A("design:type",Number)],j7.prototype,"imageHeight",void 0);_.X([_.F(),_.A("design:type",Object)],j7.prototype,"noDotAdBadge",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],j7.prototype,"dataChanged",null);_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],j7.prototype,"onClick",null);_.X([_.m2("load"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],j7.prototype,"onLoad",null);j7=_.X([_.l({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],j7);
_.p(j7,"ytd-image-companion-renderer",function(){if(wgd!==void 0)return wgd;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return wgd=q},{mode:_.NT("kevlar_poly_si_batch_j067")?1:2});var Ykm;var tR,$4K=function(){return _.N.apply(this,arguments)||this};
_.z($4K,_.N);_.e=$4K.prototype;_.e.dataChanged=function(){this.set("data.adBadge",tR.JSC$20016_DEFAULT_AD_BADGE_RENDERER);if(this.data){var q=this.getOnLayoutVisibleCallback();q&&q()}};
_.e.getOnLayoutVisibleCallback=function(){var q=_.Eq("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.onLayoutVisibleCallback:null};
_.e.getLayoutId=function(){var q=_.Eq("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.layoutId:null};
_.e.onCompanionClicked=function(q){this.data&&(q.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.yY(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.e.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var q=_.K6(),Z=this.getLayoutId(),w=this.data.clickToAdvSiteEndpoint;q&&Z&&_.b("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?q.getPlayerPromise().then(function(r){(new _.jd(r)).executeCommand(w,Z)}):_.hy(this.hostElement,"yt-navigate",{endpoint:w})}};
_.e.sendTrackingPings=function(q){if(q&&q.length!==0&&q[0].loggingUrls&&(q=q[0].loggingUrls.map(this.getBaseUrl)))for(var Z=0;Z<q.length;Z++)_.EG(q[Z])};
_.e.getBaseUrl=function(q){return q.baseUrl||""};
_.My.Object.defineProperties($4K.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var q=_.Eq("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.interactionLoggingClientData:null}}});
var RG=tR=$4K;tR.prototype.onCompanionClicked=tR.prototype.onCompanionClicked;tR.prototype.dataChanged=tR.prototype.dataChanged;RG.JSC$20016_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.dT("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],RG.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],RG.prototype,"data",void 0);
_.X([_.fo("#title"),_.A("design:type",HTMLElement)],RG.prototype,"shopTitle",void 0);_.X([_.g3("data.impressionEndpoints"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RG.prototype,"dataChanged",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RG.prototype,"interactionLoggingClientData",null);
_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],RG.prototype,"onCompanionClicked",null);RG=tR=_.X([_.l({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],RG);
_.p(RG,"ytd-shopping-companion-renderer",function(){if(Ykm!==void 0)return Ykm;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Ykm=q},{mode:1});_.xc(_.xl(function(q){var Z=q.data;var w=_.Iw();_.MA(w,function(){return Z().interaction},edm);
_.Xu(w,{visibilityCallback:function(r){var Y,C=(Y=Z().interaction)==null?void 0:Y.onFirstVisible;r&&C&&_.Sp(C)},
showOption:_.AO});_.uS(function(){var r,Y;Y=(Y=_.Eq("yt.www.ads.eventcache.getLastCompanionData"))?(Y=Y())&&Y.onLayoutVisibleCallback:null;(r=Y)==null||r()});
_.MU(w,"load",function(){_.i5(w.value,"yt-refit-popups-action")});
return _.u("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost",el:w,"aria-label":function(){var r,Y;return(r=Z().interaction)==null?void 0:(Y=r.accessibility)==null?void 0:Y.label}},_.u("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.u(_.Hx,{data:function(){return Z().adImage}},{adImageViewModel:function(r){return _.u(_.SD,{data:r.data,
targetHeight:80,customCommandResolver:edm})}})),_.u("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.u("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.u(_.Hx,{data:function(){return Z().adBadge}},{adBadgeViewModel:function(r){return _.u(_.i_,{data:r.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.u("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.u(_.Hx,{data:function(){return Z().menu}},{buttonViewModel:_.vx}))))},"gi"),"banner-image-layout-view-model",{props:{data:_.zG}});_.xc(_.xl(function(q){var Z=q.data;q=_.Iw();_.MA(q,function(){return Z().interaction},CgA);
_.Xu(q,{visibilityCallback:function(w){var r,Y=(r=Z().interaction)==null?void 0:r.onFirstVisible;w&&Y&&_.Sp(Y)},
showOption:_.AO});_.uS(function(){var w,r;r=(r=_.Eq("yt.www.ads.eventcache.getLastCompanionData"))?(r=r())&&r.onLayoutVisibleCallback:null;(w=r)==null||w()});
return _.u("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:q},_.u("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.u(_.Hx,{data:function(){return Z().adImage}},{adImageViewModel:function(w){return _.u(_.SD,{data:w.data,
targetHeight:80,customCommandResolver:CgA})}})),_.u("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.u("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.u(_.Hx,{data:function(){return Z().adAvatarLockup}},{adAvatarLockupViewModel:function(w){return _.u(M9a,{data:w.data,
customCommandResolver:CgA})}})),_.u(_.Hx,{data:function(){return Z().adButton}},{adButtonViewModel:function(w){return _.u(_.Du,{data:w.data,
customCommandResolver:CgA})}}),_.u("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.u(_.Hx,{data:function(){return Z().menu}},{buttonViewModel:_.vx}))))},"hi"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.zG}});var eR8={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"},Cpd=function(){var q=_.N.apply(this,arguments)||this;q.updateCompanionDataJobId=0;q.contentVideoId=null;q.player=null;q.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return q};
_.z(Cpd,_.N);_.e=Cpd.prototype;_.e.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:eR8}}};
_.e.attached=function(){var q=this,Z=_.K6();Z&&Z.getPlayerPromise().then(function(w){q.getCachedDataAndListen(w)})};
_.e.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.e.updateRendererStamper=function(){var q={};if(this.data)for(var Z in eR8)if(this.data[Z]){q[Z]=this.data[Z];break}if(this.oneofRenderer!=void 0||Object.keys(q).length)this.oneofRenderer=q};
_.e.getCachedDataAndListen=function(q){var Z=this.retrieveCachedCompanionData();Z&&Object.keys(Z).length&&this.receiveCompanionData(Z);this.ytPlayerListenerBehavior.listenToPlayerEvent(q,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=q};
_.e.retrieveCachedCompanionData=function(){return _.$1.yt&&_.$1.yt.www&&_.$1.yt.www.ads&&_.$1.yt.www.ads.eventcache&&_.$1.yt.www.ads.eventcache.getLastCompanionData?_.$1.yt.www.ads.eventcache.getLastCompanionData():null};
_.e.receiveCompanionData=function(q){q&&Object.keys(q).length?(this.contentVideoId=q.contentVideoId,this.setCompanionData(q)):this.setCompanionData(q)};
_.e.setCompanionData=function(q){this.cancelPendingCompanionAdJobs();if(q){this.updateCompanionDataJobId=0;for(var Z in eR8)eR8.hasOwnProperty(Z)&&(this.data[Z]=void 0);q.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",q.shoppingCompanionCarouselRenderer):q.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",q.imageCompanionAdRenderer):q.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",q.actionCompanionAdRenderer),_.i5(this.hostElement,
"yt-hide-unlimited-offer-module"),_.i5(this.hostElement,"yt-hide-tvfilm-offer-module")):q.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",q.bannerImageLayoutViewModel):q.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",q.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.e.dataChanged=function(){var q=this,Z=_.K6();Z?Z.getPlayerPromise().then(function(w){q.contentVideoId&&w.getVideoUrl().includes("v="+q.contentVideoId)||(q.cancelPendingCompanionAdJobs(),q.updateRendererStamper())}):_.xT(Error("gm"))};
_.e.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.v5.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.e.handleCompanionAdClicked=function(q,Z){this.player.onAdUxClicked(q,Z);this.player.pauseVideo()};
var bW=Cpd;bW.prototype.dataChanged=bW.prototype.dataChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],bW.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],bW.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],bW.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.QQ.YtPlayerListenerBehavior),_.A("design:type",_.EW)],bW.prototype,"ytPlayerListenerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],bW.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],bW.prototype,"oneofRenderer",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bW.prototype,"dataChanged",null);bW=_.X([_.l({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],bW);
_.p(bW,"ytd-companion-slot-renderer",function(){if(ZY9!==void 0)return ZY9;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return ZY9=q},{mode:_.NT("kevlar_poly_si_batch_j067")?
1:2});var PpF;var d45=function(){return _.N.apply(this,arguments)||this};
_.z(d45,_.N);d45.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
var JR=d45;JR.prototype.dataChanged=JR.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],JR.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],JR.prototype,"companionSlotData",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],JR.prototype,"dataChanged",null);
JR=_.X([_.l({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],JR);
_.p(JR,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(PpF!==void 0)return PpF;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return PpF=q},{mode:1});var VT9;var OYw=function(){var q=_.N.apply(this,arguments)||this;q.skinnyMode=!1;q.COMPACT_EVENT_COUNT=4;q.onShelfToggleButtonTap=function(){q.logTap(q.data);q.showingMore=!q.showingMore};
q.onShelfToggleButtonFocus=function(){q.showingMore||(q.logTap(q.data),q.showingMore=!0,_.I_(q,function(){var Z=q.COMPACT_EVENT_COUNT-1,w;(w=_.E(q.hostElement).querySelector("#event-"+Z))==null||w.focus()}))};
return q};
_.z(OYw,_.N);_.e=OYw.prototype;_.e.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.e.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.e.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.XN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.XN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.XN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.XN(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.XN(this.infoTooltip,this.infoTooltip.hide))};
_.e.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.XN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.XN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.XN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.XN(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.XN(this.infoTooltip,this.infoTooltip.hide))};
_.e.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)};
_.e.onShowingMoreChanged=function(){var q;this.showingMoreChanged((q=this.showingMore)!=null?q:!1)};
_.e.showingMoreChanged=function(q){var Z=this.get("data.events")||[];this.set("restEvents",Z.slice(1,q?Z.length:this.COMPACT_EVENT_COUNT).map(function(w){return w.ticketEventRenderer}));
Z.slice(0,q?Z.length:this.COMPACT_EVENT_COUNT).forEach(function(w){var r=_.b5();w=w.ticketEventRenderer.trackingParams;_.Rs()&&r&&w&&(w=_.wa(w),r&&_.Uh(r,w))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.e.computeAriaLabel=function(q){return q.subtitle1+", "+q.subtitle2};
_.e.logTap=function(q){_.Rs()&&this.ytRendererBehavior.logExplicitClick(q)};
_.e.isKeyboardAction=function(q){return this.get("detail.x",q)===0&&this.get("detail.y",q)===0};
_.e.onFirstEventTap=function(q){q.target&&this.handleTap(q.target,this.firstEvent,this.isKeyboardAction(q))};
_.e.onTicketLinkTap=function(q){q.target&&this.handleTap(q.target,q.model.item,this.isKeyboardAction(q))};
_.e.handleTap=function(q,Z,w){if(Z.buttonCommand)if(Z.hasMultipleOffers)Object.assign(_.J(Z.buttonCommand,_.HZ),{properties:{source:w?"keyboard":"tap"}}),this.logTap(Z),this.popupPositionTarget=q,_.ZC(this.hostElement,[Z.buttonCommand],this.hostElement);else{var r;if((r=_.J(Z.buttonCommand,_.TF))==null?0:r.url)this.logTap(Z),_.NK(window,_.J(Z.buttonCommand,_.TF).url)}};
var zn=OYw;zn.prototype.onShowingMoreChanged=zn.prototype.onShowingMoreChanged;zn.prototype.dataChanged=zn.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],zn.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],zn.prototype,"firstEvent",void 0);_.X([_.F(),_.A("design:type",Object)],zn.prototype,"restEvents",void 0);
_.X([_.F(),_.A("design:type",String)],zn.prototype,"imageUrl",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],zn.prototype,"showingMore",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],zn.prototype,"canShowMore",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],zn.prototype,"skinnyMode",void 0);_.X([_.F(),_.A("design:type",HTMLElement)],zn.prototype,"popupPositionTarget",void 0);
_.X([_.fo("#banner-info-tooltip"),_.A("design:type",Object)],zn.prototype,"infoTooltip",void 0);_.X([_.fo("#info-container"),_.A("design:type",HTMLElement)],zn.prototype,"infoContainer",void 0);_.X([_.fo("#shelf-toggler"),_.A("design:type",HTMLElement)],zn.prototype,"shelfToggleButton",void 0);_.X([_.fo("#separator"),_.A("design:type",HTMLDivElement)],zn.prototype,"separator",void 0);_.X([_.F(),_.A("design:type",String)],zn.prototype,"shelfTogglerLabelText",void 0);
_.X([_.F(),_.A("design:type",String)],zn.prototype,"shelfTogglerIcon",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zn.prototype,"dataChanged",null);_.X([_.g3("showingMore"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zn.prototype,"onShowingMoreChanged",null);zn=_.X([_.l({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],zn);
_.p(zn,"ytd-ticket-shelf-renderer",function(){if(VT9!==void 0)return VT9;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return VT9=q},{mode:1});var HYg;var Wh8;var orr=function(){return _.N.apply(this,arguments)||this};
_.z(orr,_.N);var uyK=orr;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],uyK.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],uyK.prototype,"data",void 0);uyK=_.X([_.l({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],uyK);
_.p(uyK,"ytd-comments-entry-point-message-renderer",function(){if(Wh8!==void 0)return Wh8;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Wh8=q},{mode:1});var LhA;var SkA=function(){return _.N.apply(this,arguments)||this};
_.z(SkA,_.N);_.My.Object.defineProperties(SkA.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.teaserAvatar)}}});
var BA=SkA;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],BA.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],BA.prototype,"data",void 0);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],BA.prototype,"hasAvatar",null);BA=_.X([_.l({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],BA);
_.p(BA,"ytd-comments-entry-point-teaser-renderer",function(){if(LhA!==void 0)return LhA;var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return LhA=q},{mode:1});var vrm;var jR8=function(){return _.N.apply(this,arguments)||this};
_.z(jR8,_.N);var tTX=jR8;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],tTX.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],tTX.prototype,"data",void 0);tTX=_.X([_.l({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],tTX);
_.p(tTX,"ytd-comments-simplebox-renderer",function(){if(vrm!==void 0)return vrm;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return vrm=q},{mode:1});var aG=function(){var q=_.N.apply(this,arguments)||this;q.fullHeight=!_.b("comment_teaser_full_height_kill_switch")&&_.b("kevlar_watch_grid");return q};
_.z(aG,_.N);aG.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"}}}};
aG.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
aG.prototype.onTap=function(){var q=this.tapCommand;q&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(q))};
aG.prototype.onKeyUp=function(q){if(q.keyCode===13)this.onTap()};
_.My.Object.defineProperties(aG.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null?0:q.onTap)return this.data.onTap;var Z,w;if(((Z=this.data)==null?0:Z.teaserContent)||((w=this.data)==null?0:w.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)!=null&&q.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
var nf=aG;nf.prototype.onKeyUp=nf.prototype.onKeyUp;nf.prototype.onTap=nf.prototype.onTap;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],nf.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],nf.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],nf.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],nf.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],nf.prototype,"fullHeight",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],nf.prototype,"tapCommand",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],nf.prototype,"simpleboxPlaceholder",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],nf.prototype,"hasSimpleboxPlaceholder",null);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],nf.prototype,"simpleboxAvatar",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],nf.prototype,"teaserContent",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],nf.prototype,"hasTeaserContent",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],nf.prototype,"teaserAvatar",null);
_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],nf.prototype,"hasTeaserAvatar",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],nf.prototype,"messageText",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],nf.prototype,"contentRenderer",null);_.X([_.I("data"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],nf.prototype,"hasContents",null);
_.X([_.I("data"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],nf.prototype,"hasContentRenderer",null);_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nf.prototype,"onTap",null);_.X([_.m2("keypress"),_.A("design:type",Function),_.A("design:paramtypes",[_.e3]),_.A("design:returntype")],nf.prototype,"onKeyUp",null);nf=_.X([_.l({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],nf);
_.p(nf,"ytd-comments-entry-point-header-renderer",function(){if(HYg!==void 0)return HYg;var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return HYg=q},{mode:1});var RRr;_.Mx(_.AE,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var bYr=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),Jmg={numberText:"",heightPx:2*bYr,shouldAnimate:!1},zRv=function(){var q=_.N.apply(this,arguments)||this;q.usingAnimatedComponents=!0;q.wasDetailed=!1;q.JSC$20052_browserSupportsAnimation=_.b("web_supports_animations_api");q.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};q.detailed=!1;q.shouldAnimate=!1;q.viewCountProps=Jmg;q.dateTextProps=
Jmg;q.metadataBadgesInDescription=_.b("web_metadata_badges_in_description");return q};
_.z(zRv,_.N);_.e=zRv.prototype;_.e.resetAnimationState=function(){this.shouldAnimate=!1};
_.e.updateDynamicMetadata=function(){if(this.JSC$20052_browserSupportsAnimation){if(!this.detailed){var q,Z,w,r;var Y=(q=this.videoPrimaryInfoRenderer)==null?void 0:(Z=q.viewCount)==null?void 0:(w=Z.videoViewCountRenderer)==null?void 0:(r=w.extraShortViewCount)==null?void 0:r.simpleText;var C,d,O,H;var L=(C=this.videoPrimaryInfoRenderer)==null?void 0:(d=C.viewCount)==null?void 0:(O=d.videoViewCountRenderer)==null?void 0:(H=O.shortViewCount)==null?void 0:H.simpleText}if(!L){var S,v,R,B;Y=(S=this.videoPrimaryInfoRenderer)==
null?void 0:(v=S.viewCount)==null?void 0:(R=v.videoViewCountRenderer)==null?void 0:(B=R.unlabeledViewCountValue)==null?void 0:B.simpleText;var n,x,K,k;L=(n=this.videoPrimaryInfoRenderer)==null?void 0:(x=n.viewCount)==null?void 0:(K=x.videoViewCountRenderer)==null?void 0:(k=K.viewCount)==null?void 0:k.simpleText}var G,rz,f;q=Number((G=this.videoPrimaryInfoRenderer)==null?void 0:(rz=G.viewCount)==null?void 0:(f=rz.videoViewCountRenderer)==null?void 0:f.originalViewCount);var eO,g;G=(eO=this.videoPrimaryInfoRenderer)==
null?void 0:(g=eO.relativeDateText)==null?void 0:g.simpleText;var H6;eO=!((H6=this.videoPrimaryInfoRenderer)==null||!H6.relativeDateText);if(Y&&L&&q&&(G||!eO)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;H6=L.split(new RegExp("("+Y+")"));Y=Wmm(H6[0]);var nX;L={numberText:(nX=H6[1])!=null?nX:"",numberValue:q,heightPx:2*bYr,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Qj;nX=((Qj=H6[2])!=null?Qj:"")+"  ";this.setViewCount(L,Y,Wmm(nX));
if(!this.detailed&&eO){Y=G.split(/(\d+)/);Qj=Wmm(Y[0]);var SO;nX={numberText:(SO=Y[1])!=null?SO:"",heightPx:2*bYr,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Te;SO=((Te=Y[2])!=null?Te:"")+"  ";this.setDateText(nX,Qj,Wmm(SO))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.e.setViewCount=function(q,Z,w){_.kO(Z)!==_.kO(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=Z);this.viewCountProps.numberText!==(q==null?void 0:q.numberText)&&(this.viewCountProps=q||Jmg);_.kO(w)!==_.kO(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=w)};
_.e.setDateText=function(q,Z,w){_.kO(Z)!==_.kO(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=Z);this.dateTextProps.numberText!==(q==null?void 0:q.numberText)&&(this.dateTextProps=q||Jmg);_.kO(w)!==_.kO(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=w)};
_.e.onYtUpdateViewershipAction=function(q){this.videoPrimaryInfoRenderer&&(_.J(q,b_9).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.J(q,b_9).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.J(q,b_9).viewCount)))};
_.e.onYtUpdateDateTextAction=function(q){if(this.videoPrimaryInfoRenderer){q=_.J(q,_.t85).dateText;this.shouldAnimate=!0;var Z;((Z=this.videoPrimaryInfoRenderer)==null?0:Z.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",q):this.set("videoPrimaryInfoRenderer.dateText",q)}};
_.My.Object.defineProperties(zRv.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return HAA(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.kO(HAA(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.kO(this.viewCountPreNumberText),this.viewCountProps.numberText,_.kO(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.kO(this.dateTextPreNumberText),this.dateTextProps.numberText,_.kO(this.dateTextPostNumberText)].join("")}}});
var Q_=zRv;Q_.prototype.updateDynamicMetadata=Q_.prototype.updateDynamicMetadata;Q_.prototype.resetAnimationState=Q_.prototype.resetAnimationState;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Q_.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Q_.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Q_.prototype,"videoPrimaryInfoRenderer",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Q_.prototype,"detailed",void 0);_.X([_.F(),_.A("design:type",Object)],Q_.prototype,"shouldAnimate",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Q_.prototype,"viewCountPreNumberText",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Q_.prototype,"viewCountProps",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Q_.prototype,"viewCountPostNumberText",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Q_.prototype,"dateTextPreNumberText",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Q_.prototype,"dateTextProps",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Q_.prototype,"dateTextPostNumberText",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Q_.prototype,"metadataBadgesInDescription",void 0);_.X([_.I("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.A("design:type",Object),_.A("design:paramtypes",[])],Q_.prototype,"infoText",null);
_.X([_.I("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.A("design:type",String),_.A("design:paramtypes",[])],Q_.prototype,"descriptionInfoTooltipText",null);_.X([_.I("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.A("design:type",String),_.A("design:paramtypes",[])],Q_.prototype,"animatedViewCountAccessibilityLabel",null);
_.X([_.I("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.A("design:type",String),_.A("design:paramtypes",[])],Q_.prototype,"animatedDateTextAccessibilityLabel",null);_.X([_.M("videoPrimaryInfoRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Q_.prototype,"resetAnimationState",null);
_.X([_.M("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Q_.prototype,"updateDynamicMetadata",null);Q_=_.X([_.l({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Q_);
_.p(Q_,"ytd-watch-info-text",function(){if(RRr!==void 0)return RRr;var q=document.createElement("template");_.a(q,'\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 id="view-count-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<tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return RRr=q},{mode:1});var Bfv;var aLm=_.xl(function(q){var Z=q.data;var w=q.setTapCommand;_.L7(function(){var r=_.oQ(Z().onTap);w(r)});
return _.u("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.u(_.Hx,{data:function(){return Z().avatar}},{avatarViewModel:_.j4}),_.u("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.u("span",null,function(){return Z().simpleboxText})))},"ii");var nr9=_.xl(function(q){return _.u("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.u(_.PF,{cond:function(){return _.J(q.data().avatar,_.kL)},
then:function(Z){return _.u(_.j4,{data:Z,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.u("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.u(_.r6,{text:function(){return q.data().teaserText}})))},"ji");var QRd=_.xl(function(q){var Z=q.data;var w=q.setTapCommand;_.L7(function(){var r=_.oQ(Z().onTap);w(r)});
return _.u("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.u(_.Hx,{data:function(){return Z().teasers}},{commentsEntryPointTeaserViewModel:nr9}))},"ki");var ErI=_.xl(function(q){var Z=q.data;var w=q.setTapCommand;_.L7(function(){var r=_.oQ(Z().onTap);w(r)});
return _.u("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.u(_.r6,{text:function(){return Z().messageText}}))},"li");var x4w=_.xl(function(q){var Z=q.data;var w=q.setTapCommand;var r=q.isDisabled;_.L7(function(){var Y=(r==null?0:r())?void 0:_.oQ(Z().onTap);w(Y)});
return _.u("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.u(_.q0,{icon:function(){return Z().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.u(_.PF,{cond:function(){return Z().image},
then:function(Y){return _.u(_.aQ,{data:Y,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.u(_.r6,{text:function(){return Z().text},
className:function(){return Z().image||Z().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.u(_.Hx,{data:function(){return Z().button}},{buttonViewModel:function(Y){return _.u(_.vx,{data:Y.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:r==null?void 0:r()}}})}}))},"mi");var Tf9=_.xl(function(q){var Z=q.data;var w=q.itemIndex;var r=q.selectedIndex;var Y=q.indexUpdatedCallback;var C=q.observer;q=q.title;var d=_.Iw(),O=function(v){w()===r()&&Y(v)},H=_.ok(FFK),L=_.ok(Nba),S=function(){var v,R,B;
return((v=Z())==null?void 0:v.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!H()||((R=Z())==null?void 0:R.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&L().includes("PAposts_by_host")||((B=Z())==null?void 0:B.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&L().includes("PAyouchat")};
_.Ls(function(){C&&C().observe(d.value)});
return _.u("yt-carousel-item-view-model",{el:d,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":q},_.u(_.Hx,{data:function(){var v,R;return(R=(v=_.J(Z().carouselItem,Ga6))==null?void 0:v.textCarousel)!=null?R:Z().carouselItem}},{textCarouselItemViewModel:function(v){return _.u(x4w,{data:v.data,
setTapCommand:O,isDisabled:S})},
commentTeaserCarouselItemViewModel:function(v){return _.u(QRd,{data:v.data,setTapCommand:O})},
commentInputBoxCarouselItemViewModel:function(v){return _.u(aLm,{data:v.data,setTapCommand:O})},
commentsEntryPointMessageViewModel:function(v){return _.u(ErI,{data:v.data,setTapCommand:O})}}))},"ni");var U4g=_.xl(function(q){var Z=q.numDots;var w=q.activeIndex;return _.u("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.u(_.dA,{each:function(){return Array.from({length:Z()})},
keyBy:"INDEX"},function(r,Y){return _.u("div",{class:function(){var C={};return _.XA("ytCarouselDotsShapeDot",(C.ytCarouselDotsShapeDotActive=Y===w(),C))}})}))},"oi");var kOK=_.xl(function(q){var Z=q.data;var w=q.handleCarouselNavigation;var r=q.numItems;var Y=q.selectedIndex;var C=function(){return{disabled:Y()===0}},d=function(){return{disabled:Y()===r()-1}};
return _.u("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.u("div",null,_.u("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return Z().title}),_.u(_.PF,{cond:function(){return Z().subtitle},
then:function(O){return _.u("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return Z().subtitleAccessibilityText}},O)}})),_.u(_.PF,{cond:function(){return r()>1},
then:function(){return _.u("div",{class:"ytCarouselTitleViewModelNavigation"},_.u(U4g,{numDots:r,activeIndex:Y}),_.u(_.PF,{cond:function(){return Z().previousButton},
then:function(O){return _.u(_.Hx,{data:O},{buttonViewModel:function(H){return _.u(_.vx,{data:H.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return w(-1)},
buttonOverrides:C})}})}}),_.u(_.PF,{cond:function(){return Z().nextButton},
then:function(O){return _.u(_.Hx,{data:O},{buttonViewModel:function(H){return _.u(_.vx,{data:H.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return w(1)},
buttonOverrides:d})}})}}))}}))},"pi");_.xc(_.xl(function(q){var Z=q.data;var w=_.Iw(),r=_.Iw(),Y=_.zj("HTML_DIR")==="rtl",C=!1,d=0,O=0;q=_.P(_.qo(0,void 0,"m0dtIf"));var H=q.next().value,L=q.next().value;q=_.P(_.qo(0,void 0,"fL6I6"));var S=q.next().value,v=q.next().value;q=_.P(_.qo(!1,void 0,"ZPrwNb"));var R=q.next().value,B=q.next().value,n=function(){var H6,nX,Qj;return(Qj=(H6=Z())==null?void 0:(nX=H6.carouselTitles)==null?void 0:nX.length)!=null?Qj:0},x=function(){r.value&&r.value.scrollLeft!==d&&L((Y?r.value.scrollLeft<d:r.value.scrollLeft>
d)?Math.min(H()+1,n()-1):Math.max(H()-1,0))},K;
window.IntersectionObserver&&(K=new IntersectionObserver(function(H6){H6=_.P(H6);for(var nX=H6.next();!nX.done;nX=H6.next())if(nX.value.isIntersecting){if(C){C=!1;break}x()}else L(O)},{threshold:.2}));
_.L7(function(){if(r.value){var H6=(Y?-1:1)*(S()/n()+12)*(R()&&K?O:H());typeof r.value.scrollTo==="function"?r.value.scrollTo({left:H6,behavior:"smooth"}):r.value.scrollLeft=H6;d=H6;O=R()&&K?O:H()}});
var k,G=function(H6){k=H6};
_.Ls(function(){var H6=function(){var Qj=r.value.offsetWidth*n(),SO=24*(n()-1);v(Qj+SO)};
H6();if(window.ResizeObserver){var nX=new ResizeObserver(H6);nX.observe(r.value);_.SG(function(){nX.disconnect();K&&K.disconnect()})}});
q=_.fn(function(H6){if(_.R0j(_.JL(H6),w.value,["BUTTON".toString()])||!k)return!1;_.t().resolve(_.ps).resolveCommand(k,{forceClickLogging:!0});return!1});
var rz=function(H6){H6=H()+H6;H6>=0&&H6<n()&&(C=!0,L(H6))},f=_.fn(function(){B(!0);
return!1}),eO=_.fn(function(){K||x();
B(!1);return!1}),g={};
return _.u("yt-video-metadata-carousel-view-model",{class:_.GL("ytVideoMetadataCarouselViewModelHost",(g.ytVideoMetadataCarouselViewModelShortMode=_.b("mweb_video_metadata_carousel_short_mode"),g)),el:w,"on:click":q,"on:touchstart":f,"on:touchend":eO,hidden:function(){var H6,nX;return!((H6=Z())==null?0:(nX=H6.carouselItems)==null?0:nX.length)}},_.u("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.u(_.PF,{cond:function(){return Z().carouselTitles},
then:function(H6){return _.u(_.Hx,{data:function(){return H6()[R()&&K?O:H()]}},{carouselTitleViewModel:function(nX){return _.u(kOK,{data:nX.data,
handleCarouselNavigation:rz,numItems:n,selectedIndex:H})}})}})),_.u("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:r},_.u("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+S()+"px;"}},_.u(_.PF,{cond:function(){return Z().carouselItems},
then:function(H6){return _.u(_.dA,{each:H6},function(nX,Qj){return _.u(_.Hx,{data:function(){return nX}},{carouselItemViewModel:function(SO){return _.u(Tf9,{data:SO.data,
itemIndex:Qj,selectedIndex:H,indexUpdatedCallback:G,observer:K,title:function(){a:{var Te=Qj();var Ze,W1=(Ze=Z())==null?void 0:Ze.carouselTitles;if(W1&&(Te=W1[Te])){var A2;Te=(A2=_.J(Te,lFw))==null?void 0:A2.title;break a}Te=void 0}return Te}})}})})}}))))},"qi"),"yt-video-metadata-carousel-view-model",{props:{data:_.zG}});var Khv=_.b("web_action_buttons_update_owner_width")?32:12,sR6=function(){var q=_.N.apply(this,arguments)||this;q.metadataBadgesInDescription=_.b("web_metadata_badges_in_description");q.descriptionCollapsed=!0;q.useFadedScrimDescription=_.b("kevlar_enable_faded_scrim_on_description");q.skinnyMode=!1;q.playlist=!1;q.isDark=document.documentElement.hasAttribute("dark");q.disableVideoOwnerOnTap=_.b("swatchie_video_owner_on_tap_ks");q.swatcherooDelayLoad=_.b("swatcheroo_enable_ghost_cards");q.primaryMenuWidth=
0;q.videoId="";q.titleHeadlineXs=_.b("web_watch_typography_title_headline_xs");q.titleHeadlineS=_.b("web_watch_typography_title_headline_s");q.titleHeadlineM=_.b("web_watch_typography_title_headline_m");q.titleHashtagBlackLinkified=_.b("web_title_hashtag_black_linkified");q.titleHashtagGreyLinkified=_.b("web_title_hashtag_grey_linkified");q.actionButtonsUpdateOwnerWidth=_.b("web_action_buttons_update_owner_width");q.shouldForceIconOnly=!1;q.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};return q};
_.z(sR6,_.N);_.e=sR6.prototype;_.e.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.e.updateOwnerAndDescriptionPosition=function(){_.b("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.cC(this.bottomRowElement,this.ownerElement)):(_.cC(this.bottomRowElement,this.descriptionElement),_.cC(this.topRowElement,this.ownerElement)))};
_.e.titleOnTap=function(q){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.E1(_.E8(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Z;((Z=window.getSelection())==null?0:Z.toString().length)||this.handleExpandDescriptionCommands()}};
_.e.videoOwnerOnTap=function(q){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.E1(_.E8(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.e.detached=function(){var q=this,Z;return _.V(function(w){(Z=q.resizeObserver)==null||Z.disconnect();_.ub(w)})};
_.e.maybeAttachResizeObserver=function(){var q=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.pV(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){q.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.e.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var q=this.hostElement.clientWidth,Z=Math.max(this.largerItemWrap?400:350,q/2-Khv);if(_.b("web_action_buttons_update_owner_width")){var w;Z=(((w=document.getElementById("owner"))==null?void 0:w.clientWidth)||0)+Khv}this.actionsOnSeparateLine=this.primaryMenuWidth>q-Z?!0:!1}};
_.e.stripAttributedDescription=function(q){return{content:q.content.replace(/[\r\n]{2,}/g,"\n")}};
_.e.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.b("web_modern_buttons"),forceIconButton:!_.b("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:_.b("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"}}}};
_.e.videoPrimaryInfoRendererChanged=function(){var q;if((q=this.videoPrimaryInfoRenderer)==null?0:q.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.e.videoSecondaryInfoRendererChanged=function(){var q,Z;(Z=(q=this.descriptionInlineExpander).collapse)==null||Z.call(q);this.descriptionExpandClientVe=_.C6(110509);this.descriptionCollapseClientVe=_.C6(110510);q=_.b5();Z=_.Rs();q&&Z&&(_.b("combine_ve_grafts")?(_.AA(_.iy(),this.descriptionExpandClientVe,Z),_.AA(_.iy(),this.descriptionCollapseClientVe,Z)):_.k0(q,Z,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.e.structuredDescriptionContentRendererChanged=function(){_.b("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.e.updateTopLevelIconsOnly=function(){var q=this;_.b("top_level_update_killswitch")||this.menu&&_.v5.addLowPriorityJob(function(){q.menu.topLevelIconsOnly=q.skinnyMode},_.m6("swathceroo_delay_flexible_menu_update",100))};
_.e.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.b("web_action_buttons_minimize_subscribe")};
_.e.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.e.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.e.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.e.onYtTextInlineExpanderExpandedChanged=function(){if(!_.b("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var q,Z;(Z=(q=this.structuredDescriptionContentRendererElement).resize)==null||Z.call(q)}};
_.e.onRenderStamperFinished=function(q){(q==null?void 0:q.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.e.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.e.onYtExpanderLessTapped=function(){var q,Z=(q=this.videoSecondaryInfoRenderer)==null?void 0:q.showLessCommand;Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.e.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.e.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.e.onDescriptionClick=function(q){if(!_.E1(_.E8(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Z;((Z=window.getSelection())==null?0:Z.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.b("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.e.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.e.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.e.logCollapseClick=function(){var q=_.b5();q&&this.descriptionCollapseClientVe&&_.sh(q,this.descriptionCollapseClientVe)};
_.e.logExpandClick=function(){var q=_.b5();q&&this.descriptionExpandClientVe&&_.sh(q,this.descriptionExpandClientVe)};
_.e.collapseDescription=function(){this.descriptionCollapsed=!0};
_.e.scrollToTopOfContainer=function(){_.yY(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.e.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.e.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.e.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.e.resize=function(){if(this.descriptionInlineExpander){var q,Z;(Z=(q=this.descriptionInlineExpander).resize)==null||Z.call(q)}else _.bx(new _.df("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var w;(w=this.menu)==null||w.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.b("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.e.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var q,Z,w,r,Y=_.b("web_action_buttons_update_owner_width")?(w=(q=_.E(this.menu).querySelector("#button-shape"))==null?void 0:q.clientWidth)!=null?w:0:(r=(Z=_.E(this.menu).querySelector("#button"))==null?void 0:Z.clientWidth)!=null?r:0,C,d;q=((d=(C=_.E(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:C.clientWidth)!=null?d:0)+8+Y;var O,H;Y=(H=(O=_.E(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:O.children.length)!=null?H:2;q<=8*Y||(this.primaryMenuWidth=q)}};
_.e.onYtUpdateTitleAction=function(q){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.J(q,RBa).title)};
_.e.onYtUpdateDescriptionAction=function(q){if(q=_.J(q,_.yD9)){var Z,w=!((Z=this.videoSecondaryInfoRenderer)==null||!Z.attributedDescription);q.isEmpty||!q.description&&!q.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):q.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",q.attributedDescription):q.description&&(w?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.V1(q.description)):this.set("videoSecondaryInfoRenderer.description",q.description))}};
_.e.onYtDarkModeToggledAction=function(q){this.isDark=q};
_.e.registerPanel=function(){if(!_.b("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var q=_.t().resolve(_.Of);q&&q.registerPanel("engagement-panel-structured-description",this)}};
_.e.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.e.showPanel=function(q){this.expandDescription();var Z=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;Z.resize();var w,r=q==null?void 0:(w=q.sectionListEngagementPanelExtras)==null?void 0:w.scrollToItemSectionIdentifier;r?_.v5.addJob(function(){Z==null||Z.scrollToSection(r)},8):this.scrollToTopOfContainer()};
_.e.isVisible=function(){return!this.descriptionCollapsed};
_.e.getReloadContinuation=function(){};
_.e.hidePanel=function(){};
_.e.updatePanel=function(){};
_.My.Object.defineProperties(sR6.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.structuredDescriptionContentRenderer)!=null&&q.items){var Z;q=_.P((Z=this.structuredDescriptionContentRenderer)==null?void 0:Z.items);for(Z=q.next();!Z.done;Z=q.next())if(Z=_.J(Z.value,_.Ok2))return Z}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.videoPrimaryInfoRenderer)==null?0:q.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return!!((q=this.videoSecondaryInfoRenderer)==null?0:(Z=q.owner)==null?0:(w=Z.videoOwnerRenderer)==null?0:w.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.b("swatchie_sd_new_line_strip_ks")){var q,Z;if((q=this.videoSecondaryInfoRenderer)==null?0:(Z=q.attributedDescription)==null?0:Z.content){var w,r;return(r=this.stripAttributedDescription((w=this.videoSecondaryInfoRenderer)==null?void 0:w.attributedDescription))!=null?r:{runs:[]}}}var Y,C,d,O;return(O=(d=(Y=this.videoSecondaryInfoRenderer)==null?void 0:Y.description)!=null?d:(C=this.videoSecondaryInfoRenderer)==null?
void 0:C.attributedDescription)!=null?O:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var q,Z;return(Z=(q=this.videoSecondaryInfoRenderer)==null?void 0:q.headerRuns)!=null?Z:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.commentsEntryPointHeaderRenderer)==null||!q.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.videoMetadataCarousel)==null||!q.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.m6("swatchie_desc_lines",3):this.hasTeaserCarousel?_.m6("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var q,Z,w=Object.assign({},(q=this.videoSecondaryInfoRenderer)==null?void 0:(Z=q.metadataRowContainer)==null?void 0:Z.metadataRowContainerRenderer);if(w&&w.rows&&w.collapsedItemCount!==void 0&&!(w.rows.length<=w.collapsedItemCount))return w.rows=w.rows.slice(w.collapsedItemCount),w.collapsedItemCount=0,w}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var q,Z,w=Object.assign({},(q=this.videoSecondaryInfoRenderer)==null?void 0:(Z=q.metadataRowContainer)==null?void 0:Z.metadataRowContainerRenderer);if(w&&w.rows&&w.collapsedItemCount!==void 0)return w.rows=w.rows.slice(0,w.collapsedItemCount),w.collapsedItemCount=w.rows.length,w}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!!((q=this.structuredDescriptionContentRenderer)==null?0:(Z=q.items)==null?0:Z.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var q;return(q=this.videoSecondaryInfoRenderer)==null?void 0:q.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return((q=this.videoSecondaryInfoRenderer)==null?0:(Z=q.owner)==null?0:(w=Z.videoOwnerRenderer)==null?0:w.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r;return!!((q=this.videoPrimaryInfoRenderer)==null?0:(Z=q.videoActions)==null?0:(w=Z.menuRenderer)==null?0:(r=w.flexibleItems)==null?0:r.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.bm(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.bm(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var q=this;if(_.b("web_title_hashtag_grey_delinkified")){var Z,w=_.R4.unsafeClone((Z=this.videoPrimaryInfoRenderer)==null?void 0:Z.title);(Z=w==null?void 0:w.runs)&&Z.forEach(function(r){if(r==null?0:r.navigationEndpoint)r.textColor=4284506208,q.isDark&&(r.textColor=4289374890)});
return w}return(w=this.videoPrimaryInfoRenderer)==null?void 0:w.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.b("web_title_hashtag_black_delinkified")||_.b("web_title_hashtag_grey_delinkified")}}});
var E5=sR6;E5.prototype.resetDescriptionState=E5.prototype.resetDescriptionState;E5.prototype.registerPanel=E5.prototype.registerPanel;E5.prototype.onYtExpanderLessTapped=E5.prototype.onYtExpanderLessTapped;E5.prototype.onYtExpanderMoreTapped=E5.prototype.onYtExpanderMoreTapped;E5.prototype.onRenderStamperFinished=E5.prototype.onRenderStamperFinished;E5.prototype.onYtTextInlineExpanderExpandedChanged=E5.prototype.onYtTextInlineExpanderExpandedChanged;
E5.prototype.onYtTextInlineExpanderCollapseClicked=E5.prototype.onYtTextInlineExpanderCollapseClicked;E5.prototype.onYtTextInlineExpanderExpandClicked=E5.prototype.onYtTextInlineExpanderExpandClicked;E5.prototype.moveActionsElement=E5.prototype.moveActionsElement;E5.prototype.updateShouldForceIconOnly=E5.prototype.updateShouldForceIconOnly;E5.prototype.updateTopLevelIconsOnly=E5.prototype.updateTopLevelIconsOnly;E5.prototype.structuredDescriptionContentRendererChanged=E5.prototype.structuredDescriptionContentRendererChanged;
E5.prototype.videoSecondaryInfoRendererChanged=E5.prototype.videoSecondaryInfoRendererChanged;E5.prototype.videoPrimaryInfoRendererChanged=E5.prototype.videoPrimaryInfoRendererChanged;E5.prototype.maybeUpdateActionsOnSeparateLine=E5.prototype.maybeUpdateActionsOnSeparateLine;E5.prototype.updateOwnerAndDescriptionPosition=E5.prototype.updateOwnerAndDescriptionPosition;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],E5.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],E5.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],E5.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],E5.prototype,"ytRendererstamperBehavior",void 0);_.X([_.fo("#above-the-fold"),_.A("design:type",HTMLElement)],E5.prototype,"aboveTheFoldContainer",void 0);
_.X([_.fo("#menu ytd-menu-renderer"),_.A("design:type",Object)],E5.prototype,"menu",void 0);_.X([_.fo("#description-inline-expander"),_.A("design:type",Object)],E5.prototype,"descriptionInlineExpander",void 0);_.X([_.fo("#faded-structured-description"),_.A("design:type",Object)],E5.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.X([_.fo("#structured-description"),_.A("design:type",Object)],E5.prototype,"structuredDescriptionContentRendererElement",void 0);
_.X([_.fo("#title"),_.A("design:type",HTMLElement)],E5.prototype,"titleElement",void 0);_.X([_.fo("#description"),_.A("design:type",HTMLElement)],E5.prototype,"descriptionElement",void 0);_.X([_.fo("#description-interaction"),_.A("design:type",Object)],E5.prototype,"descriptionInteraction",void 0);_.X([_.fo("#owner"),_.A("design:type",HTMLElement)],E5.prototype,"ownerElement",void 0);_.X([_.fo("#top-row"),_.A("design:type",HTMLElement)],E5.prototype,"topRowElement",void 0);
_.X([_.fo("#bottom-row"),_.A("design:type",HTMLElement)],E5.prototype,"bottomRowElement",void 0);_.X([_.fo("#actions"),_.A("design:type",HTMLElement)],E5.prototype,"actionsElement",void 0);_.X([_.fo("#bottom-actions"),_.A("design:type",HTMLElement)],E5.prototype,"bottomActionsElement",void 0);_.X([_.fo("#ytd-watch-info-text"),_.A("design:type",Object)],E5.prototype,"watchInfoTextElement",void 0);_.X([_.F(),_.A("design:type",Object)],E5.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],E5.prototype,"videoPrimaryInfoRenderer",void 0);_.X([_.F(),_.A("design:type",Object)],E5.prototype,"videoSecondaryInfoRenderer",void 0);_.X([_.F(),_.A("design:type",Object)],E5.prototype,"commentsEntryPointHeaderRenderer",void 0);_.X([_.F(),_.A("design:type",Object)],E5.prototype,"videoMetadataCarousel",void 0);_.X([_.F(),_.A("design:type",Object)],E5.prototype,"structuredDescriptionContentRenderer",void 0);
_.X([_.F(),_.A("design:type",Object)],E5.prototype,"videoSummary",void 0);_.X([_.F(),_.A("design:type",Object)],E5.prototype,"merchShelf",void 0);_.X([_.F(),_.A("design:type",Object)],E5.prototype,"infoPanelBelowMetadata",void 0);_.X([_.I("structuredDescriptionContentRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"productShelf",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E5.prototype,"metadataBadgesInDescription",void 0);
_.X([_.I("videoPrimaryInfoRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"shouldHideBadges",null);_.X([_.I("productShelf","descriptionCollapsed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],E5.prototype,"shouldShowProductShelf",null);_.X([_.F(),_.A("design:type",Boolean)],E5.prototype,"isWatchFlexy",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E5.prototype,"descriptionCollapsed",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],E5.prototype,"useFadedScrimDescription",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E5.prototype,"skinnyMode",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("videoSecondaryInfoRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"largerItemWrap",null);_.X([_.F(),_.A("design:type",Object)],E5.prototype,"playlist",void 0);_.X([_.F(),_.A("design:type",Object)],E5.prototype,"clarifyBox",void 0);
_.X([_.F(),_.A("design:type",Object)],E5.prototype,"playerAds",void 0);_.X([_.F(),_.A("design:type",Boolean)],E5.prototype,"isDark",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],E5.prototype,"actionsOnSeparateLine",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E5.prototype,"disableVideoOwnerOnTap",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E5.prototype,"swatcherooDelayLoad",void 0);
_.X([_.F(),_.A("design:type",Boolean)],E5.prototype,"suppressTopLevelMetadataRows",void 0);_.X([_.F(),_.A("design:type",Object)],E5.prototype,"primaryMenuWidth",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E5.prototype,"videoId",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E5.prototype,"titleHeadlineXs",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E5.prototype,"titleHeadlineS",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E5.prototype,"titleHeadlineM",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E5.prototype,"titleHashtagBlackLinkified",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E5.prototype,"titleHashtagGreyLinkified",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E5.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.X([_.F(),_.A("design:type",Object)],E5.prototype,"shouldForceIconOnly",void 0);_.X([_.g3("skinnyMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E5.prototype,"updateOwnerAndDescriptionPosition",null);_.X([_.g3("skinnyMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E5.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.X([_.I("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"descriptionText",null);_.X([_.I("videoSecondaryInfoRenderer.headerRuns"),_.A("design:type",Array),_.A("design:paramtypes",[])],E5.prototype,"headerRuns",null);_.X([_.F({value:!1}),_.I("commentsEntryPointHeaderRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"hasTeaser",null);
_.X([_.F({value:!1,reflectToAttribute:!0}),_.I("videoMetadataCarousel"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"hasTeaserCarousel",null);_.X([_.F({value:3}),_.I("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"descriptionMaxLines",null);_.X([_.I("videoSecondaryInfoRenderer.metadataRowContainer"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"collapsibleMetadataRows",null);
_.X([_.I("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"alwaysVisibleMetadataRows",null);_.X([_.I("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],E5.prototype,"hasInlineStructuredDescription",null);
_.X([_.I("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],E5.prototype,"showInlineStructuredDescription",null);_.X([_.I("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"descriptionExpandCommand",null);
_.X([_.I("videoSecondaryInfoRenderer.owner"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"videoOwnerCommand",null);_.X([_.F({reflectToAttribute:!0}),_.I("videoPrimaryInfoRenderer.videoActions"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],E5.prototype,"flexMenuEnabled",null);_.X([_.I("descriptionText","useFadedScrimDescription"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],E5.prototype,"showAttributedStringDescription",null);
_.X([_.I("descriptionText","useFadedScrimDescription"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],E5.prototype,"showFormattedStringDescription",null);_.X([_.I("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],E5.prototype,"showFadedStructuredDescription",null);
_.X([_.g3("videoPrimaryInfoRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E5.prototype,"videoPrimaryInfoRendererChanged",null);_.X([_.I("videoPrimaryInfoRenderer.title"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"videoTitle",null);_.X([_.I("videoPrimaryInfoRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"noEndpoints",null);
_.X([_.g3("videoSecondaryInfoRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E5.prototype,"videoSecondaryInfoRendererChanged",null);_.X([_.M("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E5.prototype,"structuredDescriptionContentRendererChanged",null);
_.X([_.M("skinnyMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E5.prototype,"updateTopLevelIconsOnly",null);_.X([_.M("skinnyMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E5.prototype,"updateShouldForceIconOnly",null);_.X([_.M("skinnyMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E5.prototype,"moveActionsElement",null);
_.X([_.m2("yt-text-inline-expander-expand-clicked"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E5.prototype,"onYtTextInlineExpanderExpandClicked",null);_.X([_.m2("yt-text-inline-expander-collapse-clicked"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E5.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.X([_.m2("yt-text-inline-expander-expanded-changed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E5.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.X([_.m2("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],E5.prototype,"onRenderStamperFinished",null);
_.X([_.m2("yt-expander-more-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E5.prototype,"onYtExpanderMoreTapped",null);_.X([_.m2("yt-expander-less-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E5.prototype,"onYtExpanderLessTapped",null);
_.X([_.M("videoPrimaryInfoRenderer","hasInlineStructuredDescription"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E5.prototype,"registerPanel",null);_.X([_.M("videoSecondaryInfoRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E5.prototype,"resetDescriptionState",null);E5=_.X([_.l({disableElementRegistration:!0,is:"ytd-watch-metadata"})],E5);
_.p(E5,"ytd-watch-metadata",function(){if(Bfv!==void 0)return Bfv;var q=document.createElement("template");_.a(q,'\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">\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">\n          </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="[[structuredDescriptionContentRenderer]]" 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="[[structuredDescriptionContentRenderer]]" 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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Bfv=q},{mode:2});var pg9=function(q){_.u6.call(this);this.JSC$20076_watchApi=q;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;ILK(this);cma(this);MTg(this);FhK(this);NfI(this);lL5(this);GOa(this)};
_.z(pg9,_.u6);var MTg=function(q){var Z=function(){_.b("kevlar_is_pupi_enabled")||xu(q)};
q.JSC$20076_watchApi.getRoot().addEventListener("yt-player-updated",Z);q.addOnDisposeCallback(function(){q.JSC$20076_watchApi.getRoot().removeEventListener("yt-player-updated",Z)})},NfI=function(q){if(_.b("kevlar_endscreen_auto_theater_mode")){var Z=_.wF(_.sE(),UR,function(){Xg5(q)});
q.addOnDisposeCallback(Z)}},ILK=function(q){var Z,w,r,Y,C;
_.V(function(d){if(d.nextAddress==1)return _.W(d,q.JSC$20076_watchApi.playerApi,2);Z=d.yieldResult;w=function(O){O=!!O;m48(q)&&(O=O?2:1,_.sN.getInstance().setState(O,!0,!1))};
r=function(O){O&&_.MV5(_.sE().getState())&&(_.yY(q.JSC$20076_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),q.temporaryTheaterMode=!0)};
Y=function(O){_.b("kevlar_player_update_autonav_on_new_data")&&O.type==="newdata"&&(_.b("kevlar_is_pupi_enabled")||xu(q))};
C=function(O){q.onPlayerStateChange(O)};
_.b("kevlar_endscreen_auto_theater_mode")&&Z.addEventListener("onAutonavCancelled",r);Z.addEventListener("onAutonavChangeRequest",w);Z.addEventListener("onVideoDataChange",Y);Z.addEventListener("onStateChange",C);q.addOnDisposeCallback(function(){Z.removeEventListener("onAutonavChangeRequest",w);Z.removeEventListener("onVideoDataChange",Y);Z.removeEventListener("onStateChange",C);_.b("kevlar_endscreen_auto_theater_mode")&&Z.removeEventListener("onAutonavCancelled",r)});
_.ub(d)})},cma=function(q){q.JSC$20076_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){q.autonavCancelledBySignal=!0;
_.b("kevlar_is_pupi_enabled")||xu(q)});
q.JSC$20076_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(Z,w,r){w&&xu(q,r)});
q.JSC$20076_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){m48(q)&&_.sN.getInstance().setState(2,!0,!0)});
q.JSC$20076_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){m48(q)&&_.sN.getInstance().setState(1,!0,!0)});
q.addOnDisposeCallback(function(){Tn(q.JSC$20076_watchApi,"yt-signal-action-cancel-autonav");Tn(q.JSC$20076_watchApi,"yt-autonav-state-changed-action");Tn(q.JSC$20076_watchApi,"yt-enable-autoplay-command");Tn(q.JSC$20076_watchApi,"yt-disable-autoplay-command")})},FhK=function(q){var Z=q.JSC$20076_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){GOa(q)}),w=q.JSC$20076_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){lL5(q)});
q.addOnDisposeCallback(function(){q.JSC$20076_watchApi.unsubscribeByKey(Z);q.JSC$20076_watchApi.unsubscribeByKey(w)})},GOa=function(q){q.autonavCancelledBySignal=!1;
_.b("kevlar_is_pupi_enabled")||xu(q)},lL5=function(q){var Z=q.JSC$20076_watchApi.getWatchNextResponse(),w,r;
var Y=(Z=(r=_.J(Z==null?void 0:(Y=Z.playerOverlays)==null?void 0:(w=Y.playerOverlayRenderer)==null?void 0:w.autonavToggle,_.gCK))==null?void 0:r.enabled)?2:1;_.b("kevlar_is_pupi_enabled")?_.sN.getInstance().setState(Y,!1,!1):xu(q);_.b("web_persist_server_autonav_state_on_client")&&typeof Z==="boolean"&&_.L72(Y===2)},m48=function(q){if(q.autonavCancelledBySignal)return!1;
var Z,w,r,Y;return!!((Z=q.JSC$20076_watchApi.getWatchNextResponse())==null?0:(w=Z.contents)==null?0:(r=w.twoColumnWatchNextResults)==null?0:(Y=r.autoplay)==null?0:Y.autoplay)};
pg9.prototype.onPlayerStateChange=function(q){if(q===0){q=!_.sN.getInstance().isAutoplaySetExplicitly();var Z=this.JSC$20076_watchApi.getWatchNextResponse(),w,r,Y,C;Z=_.J(Z==null?void 0:(w=Z.contents)==null?void 0:(r=w.twoColumnWatchNextResults)==null?void 0:(Y=r.autoplay)==null?void 0:(C=Y.autoplay)==null?void 0:C.autoplayExplicitChoiceDialogRenderer,_.cA2);m48(this)&&q&&Z&&_.AJ.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:Z},popupType:"DIALOG"}})}else Xg5(this)};
var Xg5=function(q){q.temporaryTheaterMode&&(q.temporaryTheaterMode=!1,_.yY(q.JSC$20076_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},xu=function(q,Z){Z=Z===void 0?!1:Z;
var w;_.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$20076_watchApi.playerApi,2);w=r.yieldResult;m48(q)?w.setAutonavState(_.sN.getInstance().getState(),Z):w.setAutonavState(1,Z);_.ub(r)})};var AmA={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"};var D4I=function(q){_.u6.call(this);var Z=this;this.JSC$20081_watchApi=q;var w=this.JSC$20081_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){fLd(Z)});
this.addOnDisposeCallback(function(){Z.JSC$20081_watchApi.unsubscribeByKey(w)});
fLd(this)};
_.z(D4I,_.u6);var fLd=function(q){var Z=q.JSC$20081_watchApi.getPlayerResponse(),w=q.JSC$20081_watchApi.getWatchNextResponse();if(!_.t5j(Z==null?void 0:Z.playabilityStatus,w==null?void 0:w.playerOverlays)){var r;var Y=Z==null?void 0:(r=Z.playabilityStatus)==null?void 0:r.errorScreen}q.JSC$20081_watchApi.provideRenderingData("ERROR_SCREEN",Y)};var hRw=_.xl(function(q){var Z=q.data;return _.u("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost"},_.u("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.u(_.r6,{text:function(){return Z().title}})),_.u("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.u(_.Hx,{data:function(){return Z().channelAvatar}},{avatarViewModel:_.j4}),_.u(_.r6,{text:function(){return Z().subtitle}})))},"ri");var ymK=_.xl(function(q){return _.u("yt-player-quick-action-buttons",{class:_.GL("ytPlayerQuickActionButtonsHost")},_.u(_.dA,{each:q.data},function(Z){return _.u(_.Hx,{data:function(){return Z}},{buttonViewModel:_.vx,
likeButtonViewModel:function(w){return _.u(_.$QX,{data:w.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.YxW})}))},"si");var gr9=function(q){_.u6.call(this);var Z=this;this.JSC$20084_watchApi=q;q=_.P(_.qo({},void 0,"ufFdVc"));this.quickActionsViewModel=q.next().value;this.setQuickActionsViewModel=q.next().value;q=_.P(_.qo({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=q.next().value;this.setPlayerOverlayVideoDetailsRenderer=q.next().value;var w=this.JSC$20084_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){iY8(Z)});
this.addOnDisposeCallback(function(){Z.JSC$20084_watchApi.unsubscribeByKey(w)})};
_.z(gr9,_.u6);
var iY8=function(q){var Z,w,r,Y,C,d,O,H,L,S,v,R,B,n;_.V(function(x){if(x.nextAddress==1)return _.W(x,q.JSC$20084_watchApi.playerApi,2);Z=x.yieldResult;w=q.JSC$20084_watchApi.getWatchNextResponse();C=(r=w)==null?void 0:(Y=r.playerOverlays)==null?void 0:Y.playerOverlayRenderer;O=_.J((d=C)==null?void 0:d.fullscreenQuickActionsBar,_.v57);(L=(H=q).setQuickActionsViewModel)==null||L.call(H,O||{});O&&qG6(q,Z);R=(S=C)==null?void 0:(v=S.videoDetails)==null?void 0:v.playerOverlayVideoDetailsRenderer;(n=(B=
q).setPlayerOverlayVideoDetailsRenderer)==null||n.call(B,R||{});R&&ZBw(q,Z);_.ub(x)})},qG6=function(q,Z){if(!q.quickActionButtonsContainer){q.quickActionButtonsContainer=document.createElement("div");
Z.setFullscreenQuickActions(q.quickActionButtonsContainer);var w=function(){return q.quickActionsViewModel().quickActionButtons||[]},r=_.WF(q.quickActionButtonsContainer,function(){return _.u(ymK,{data:w})});
q.addOnDisposeCallback(function(){Z.setFullscreenQuickActions(void 0);r()})}},ZBw=function(q,Z){if(!q.playerOverlayVideoDetailsRendererContainer){q.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
Z.setPlayerOverlayVideoDetailsRenderer(q.playerOverlayVideoDetailsRendererContainer);var w=_.WF(q.playerOverlayVideoDetailsRendererContainer,function(){return _.u(hRw,{data:q.playerOverlayVideoDetailsRenderer})});
q.addOnDisposeCallback(function(){Z.setPlayerOverlayVideoDetailsRenderer(void 0);w()})}};var U5=function(q){_.u6.call(this);var Z=this;this.JSC$20089_watchApi=q;this.JSC$20089_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;q=_.wF(_.sE(),_.kW,function(w){w5m(Z,w)});
this.addOnDisposeCallback(q);q=_.wF(_.sE(),_.KT,function(w){Z.onWatchScroll(w)});
this.addOnDisposeCallback(q);_.b("kevlar_watch_while_v2")&&(q=_.wF(_.sE(),_.jZ,function(w){r9m(Z,w)}),this.addOnDisposeCallback(q));
YGv(this);$Nw(this);e$g();this.onWatchScroll(_.KT(_.sE().getState()));_.BF("START_IN_FULL_WINDOW_MODE")&&this.JSC$20089_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.z(U5,_.u6);var YGv=function(q){q.JSC$20089_watchApi.registerActionHandler("yt-fullscreen-change-action",function(Z){var w=UR(_.sE().getState());Z&&!w||_.sE().dispatch(_.mu({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!Z}}))});
q.addOnDisposeCallback(function(){Tn(q.JSC$20089_watchApi,"yt-fullscreen-change-action")})},$Nw=function(q){var Z,w;
_.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$20089_watchApi.playerApi,2);Z=r.yieldResult;w=function(){q.onFullerscreenEduClicked()};
Z.addEventListener("onFullerscreenEduClicked",w);q.addOnDisposeCallback(function(){Z.removeEventListener("onFullerscreenEduClicked",w)});
_.ub(r)})},w5m=function(q,Z){var w;
_.V(function(r){if(r.nextAddress==1)return q.isFullscreen=!!_.mJ(),_.W(r,q.JSC$20089_watchApi.playerApi,2);w=r.yieldResult;q.JSC$20089_miniplayerActive||w.setFauxFullscreen(q.isFullscreen);if(Z&&(q.JSC$20089_watchApi.focusOnPlayer(),!q.fullerscreenEduButtonShownThisPlayback)){q.fullerscreenEduButtonShownThisPlayback=!0;var Y=_.i8("yt-fullerscreen-edu-button-shown-count")||0;_.yq("yt-fullerscreen-edu-button-shown-count",Y+1,31536E3);q.updateFullerscreenEduButtonSubtleModeState()}_.ub(r)})},r9m=function(q,
Z){var w;
_.V(function(r){if(r.nextAddress==1)return q.JSC$20089_miniplayerActive=Z,_.W(r,q.JSC$20089_watchApi.playerApi,2);w=r.yieldResult;w.setFauxFullscreen(!q.JSC$20089_miniplayerActive&&q.isFullscreen);_.ub(r)})};
U5.prototype.onWatchScroll=function(q){var Z=this,w,r;return _.V(function(Y){if(Y.nextAddress==1)return _.b("external_fullscreen_with_edu")?_.W(Y,Z.JSC$20089_watchApi.playerApi,2):Y.return();w=Y.yieldResult;r=q<=0;Z.shouldShowFullerscreenEdu!==r&&(Z.shouldShowFullerscreenEdu=r,w.updateFullerscreenEduButtonVisibility(!Z.shouldShowFullerscreenEdu));_.ub(Y)})};
U5.prototype.onFullerscreenEduClicked=function(){this.JSC$20089_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var q=_.i8("yt-fullerscreen-edu-button-click-count")||0;_.yq("yt-fullerscreen-edu-button-click-count",q+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
U5.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var q=this,Z,w,r,Y,C,d;return _.V(function(O){if(O.nextAddress==1)return Z=_.i8("yt-fullerscreen-edu-button-click-count")||0,w=_.i8("yt-fullerscreen-edu-button-shown-count")||0,r=_.m6("external_fullscreen_button_click_threshold"),Y=_.m6("external_fullscreen_button_shown_threshold"),C=Z>=r||w>=Y,_.W(O,q.JSC$20089_watchApi.playerApi,2);d=O.yieldResult;d.updateFullerscreenEduButtonSubtleModeState(C);_.ub(O)})};
U5.prototype.disposeInternal=function(){_.u6.prototype.disposeInternal.call(this);var q=_.mJ();_.b("kevlar_exit_fullscreen_leaving_watch")&&q&&_.Ay(q)};
var e$g=function(){if(_.b("web_watch_add_viewport_meta_tag")){var q=document.querySelector("meta[name=viewport]"),Z=document.head;Z&&!q&&(q=document.createElement("meta"),q.name="viewport",q.content="width=device-width, initial-scale=1.0, viewport-fit=cover",Z.appendChild(q))}};var Phw=function(q){_.u6.call(this);var Z=this;this.JSC$20093_watchApi=q;this.jobId=0;this.pendingRequestId=void 0;var w=this.JSC$20093_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ChF(Z)});
this.addOnDisposeCallback(function(){Z.JSC$20093_watchApi.unsubscribeByKey(w)});
ChF(this)};
_.z(Phw,_.u6);var dN5=function(q){_.v5.cancelJob(q.jobId);q.pendingRequestId=void 0},ChF=function(q){dN5(q);
var Z=ovA(q.JSC$20093_watchApi.getWatchNextResponse());if(Z){var w=250,r,Y=(r=_.J(Z,_.ufm))==null?void 0:r.initialDelayMs;_.b("web_watch_updated_metadata_server_initial_delay")&&Y&&(w=Y);q.jobId=_.v5.addLowPriorityJob(function(){return q.fetchUpdatedMetadata(Z)},w)}};
Phw.prototype.fetchUpdatedMetadata=function(q,Z){var w=this,r,Y,C,d,O,H,L,S,v,R,B,n,x,K,k;return _.V(function(G){switch(G.nextAddress){case 1:Z&&(r={continuation:Z});if(!_.b("web_get_updated_metadata_fantasy_panel_continuation_params")){G.jumpTo(2);break}Y=_.t().resolve(_.Of);C="PAsports_fantasy";return _.W(G,Y.isVisible(C,!0),3);case 3:G.yieldResult&&(L=(O=(d=Y).getUpdatePanelContinuationData)==null?void 0:(H=O.call(d,C))==null?void 0:H.updatePanelContinuationRequest)&&(r||(r={}),r.clientParams=
{panelContinuationParams:{panelContinuation:L}});case 2:S=_.t().resolve(_.PP);if(!S)return _.tY(Error("hm")),G.return();v={};w.pendingRequestId=v;return _.W(G,_.zR(S,q,r),4);case 4:R=G.yieldResult;if(v!==w.pendingRequestId)return G.return();x=(B=R)==null?void 0:(n=B.continuation)==null?void 0:n.timedContinuationData;((K=x)==null?0:K.continuation)&&((k=x)==null?0:k.timeoutMs)&&(w.jobId=_.v5.addLowPriorityJob(function(){return w.fetchUpdatedMetadata(q,x.continuation)},x.timeoutMs));
_.ub(G)}})};
Phw.prototype.disposeInternal=function(){_.u6.prototype.disposeInternal.call(this);dN5(this)};var VJK=_.xl(function(q){var Z=_.fn(function(){var r=q.data().videoId;if(q.active())r=_.lI(r),_.t().resolve(_.ps).resolveCommand(r);else{var Y=q.playerApi(),C=Y.getAvailableAudioTracks(),d,O,H=(d=q.sourceVideoConfig().audioTracks)==null?void 0:(O=d.find(function(L){return L.isDefaultForSource}))==null?void 0:O.id;
if(C=C.find(function(L){return L.getLanguageInfo().getId()===H}))Y.setAudioTrack(C,!0),Y.setCompositeParam({activeVideoId:r}),q.setActiveSourceId(r)}}),w={};
return _.u("ytw-composite-source-video-overlay",{class:_.GL("ytwCompositeSourceVideoOverlayHost",(w.ytwCompositeSourceVideoOverlayActive=q.active,w.ytwCompositeSourceVideoOverlayInteracting=q.interacting,w)),style:_.y1({left:function(){var r;return((r=q.data().topLeftCornerX)!=null?r:0)*100+"%"},
top:function(){var r;return((r=q.data().topLeftCornerY)!=null?r:0)*100+"%"},
width:function(){var r;return((r=q.data().width)!=null?r:0)*100+"%"},
height:function(){var r;return((r=q.data().height)!=null?r:0)*100+"%"}}),
"on:click":Z},_.u("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"ti");var OBd=_.xl(function(q){var Z=_.P(_.hE(function(){var O,H=(O=q.data().sources)==null?void 0:O.find(function(L){return L.isActive});
if(H)return H.videoId})),w=Z.next().value,r=Z.next().value;
Z=_.P(_.qo(!1,void 0,"WI4BUb"));var Y=Z.next().value,C=Z.next().value;Z=_.fn(function(){C(!0)});
var d=_.fn(function(){C(!1)});
return _.u("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":Z,"on:mouseout":d},_.u(_.PF,{cond:function(){return q.data().sources},
then:function(O){return _.u(_.dA,{each:O},function(H){return _.u(VJK,{data:H,active:function(){return H.videoId===w()},
setActiveSourceId:r,interacting:Y,playerApi:q.playerApi,sourceVideoConfig:function(){return u5A(q.compositeVideoConfig(),H.videoId)}})})}}))},"ui");var oYd=function(q){_.u6.call(this);this.JSC$20109_watchApi=q;q=_.P(_.qo({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=q.next().value;this.setCompositeVideoOverlayRenderer=q.next().value;q=_.P(_.qo({},void 0,"U5hcq"));this.compositeVideoConfig=q.next().value;this.setCompositeVideoConfig=q.next().value;HBX(this);WlA(this)};
_.z(oYd,_.u6);var HBX=function(q){var Z=q.JSC$20109_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){WlA(q)});
q.addOnDisposeCallback(function(){q.JSC$20109_watchApi.unsubscribeByKey(Z)})},uwd=function(q){var Z;
return _.V(function(w){if(w.nextAddress==1)return _.W(w,q.JSC$20109_watchApi.playerApi,2);Z=w.yieldResult;Z.setCompositeVideoOverlayRendererComponent(q.container);_.ub(w)})},Llv=function(q){var Z;
return _.V(function(w){if(w.nextAddress==1)return _.W(w,q.JSC$20109_watchApi.playerApi,2);Z=w.yieldResult;Z.setCompositeVideoOverlayRendererComponent(void 0);_.ub(w)})},SGF=function(q){var Z,w;
return _.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$20109_watchApi.playerApi,2);Z=r.yieldResult;q.container=document.createElement("div");w=_.WF(q.container,function(){return _.u(OBd,{data:q.compositeVideoOverlayRenderer,compositeVideoConfig:q.compositeVideoConfig,playerApi:Z})});
q.addOnDisposeCallback(w);_.ub(r)})},WlA=function(q){var Z,w,r,Y,C,d,O,H;
_.V(function(L){return L.nextAddress==1?(Z=q.JSC$20109_watchApi.getPlayerResponse(),C=_.J((w=Z)==null?void 0:(r=w.overlay)==null?void 0:(Y=r.playerControlsOverlayRenderer)==null?void 0:Y.compositeVideoOverlay,V8m),H=(d=Z)==null?void 0:(O=d.playerConfig)==null?void 0:O.compositeVideoConfig,C&&q.setCompositeVideoOverlayRenderer(C),H&&q.setCompositeVideoConfig(H),C&&H?q.container?L.jumpTo(6):_.W(L,SGF(q),6):vYw(q)?_.W(L,Llv(q),0):L.jumpTo(0)):vYw(q)?L.jumpTo(0):_.W(L,uwd(q),0)})},vYw=function(q){var Z;
return!((Z=q.container)==null||!Z.parentElement)};
oYd.prototype.disposeInternal=function(){vYw(this)&&Llv(this);_.u6.prototype.disposeInternal.call(this)};var J9a=function(q){_.u6.call(this);var Z=this;this.JSC$20115_watchApi=q;var w=this.JSC$20115_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var r=Z.JSC$20115_watchApi.getPlayerResponse();if(r){var Y,C;if(r=_.J((Y=r.endscreen)==null?void 0:(C=Y.endscreenRenderer)==null?void 0:C.hideButton,_.o5)){var d;(d=Z.setEndscreenHideButton)==null||d.call(Z,r);j$g(Z)}}});
this.addOnDisposeCallback(function(){Z.JSC$20115_watchApi.unsubscribeByKey(w)});
q=_.P(_.qo({},void 0,"PPHRb"));this.endscreenHideButton=q.next().value;this.setEndscreenHideButton=q.next().value;tJm(this);R$9(this);bBg(this)};
_.z(J9a,_.u6);var j$g=function(q){var Z,w;_.V(function(r){if(r.nextAddress==1)return q.creatorEndscreenHideButtonContainer?r.return():_.W(r,q.JSC$20115_watchApi.playerApi,2);Z=r.yieldResult;q.creatorEndscreenHideButtonContainer=document.createElement("div");_.sJ(q.creatorEndscreenHideButtonContainer,!1);Z.setCreatorEndscreenHideButton(q.creatorEndscreenHideButtonContainer);w=_.WF(q.creatorEndscreenHideButtonContainer,function(){return _.u(_.uo,{data:q.endscreenHideButton,useOutlinedIcon:!0})});
q.addOnDisposeCallback(function(){w();Z.setCreatorEndscreenHideButton(void 0)});
_.ub(r)})},tJm=function(q){var Z,w;
_.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$20115_watchApi.playerApi,2);Z=r.yieldResult;w=function(){q.creatorEndscreenHideButtonContainer&&_.sJ(q.creatorEndscreenHideButtonContainer,!0)};
Z.addEventListener("endscreenelementshown",w);q.addOnDisposeCallback(function(){Z.removeEventListener("endscreenelementshown",w)});
_.ub(r)})},R$9=function(q){var Z=function(){q.creatorEndscreenHideButtonContainer&&_.sJ(q.creatorEndscreenHideButtonContainer,!1)},w=q.JSC$20115_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",Z),r=q.JSC$20115_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",Z);
q.addOnDisposeCallback(function(){q.JSC$20115_watchApi.unsubscribeByKey(w);q.JSC$20115_watchApi.unsubscribeByKey(r)})},bBg=function(q){q.JSC$20115_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(Z){var w=_.J(Z,YIF);
q.JSC$20115_watchApi.playerApi.then(function(r){r==null||r.setCreatorEndscreenVisibility(!!w.hide)})});
q.addOnDisposeCallback(function(){Tn(q.JSC$20115_watchApi,"yt-change-creator-endscreen-visibility-command")})};var BIw=function(q){_.u6.call(this);this.JSC$20121_watchApi=q;z$m(this)};
_.z(BIw,_.u6);var z$m=function(q){var Z,w;_.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$20121_watchApi.playerApi,2);Z=r.yieldResult;w=function(Y){_.sE().dispatch(_.mu({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:Y}}))};
Z.addEventListener("onRetroModeChanged",w);q.addOnDisposeCallback(function(){Z.removeEventListener("onRetroModeChanged",w)});
_.ub(r)})};var JIa=0,Ib=0,Br5=0;var a$K=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),ku=function(q){_.u6.call(this);this.JSC$20134_watchApi=q;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;nY9(this)};
_.z(ku,_.u6);
var nY9=function(q){var Z,w,r;_.V(function(Y){if(Y.nextAddress==1)return _.W(Y,q.JSC$20134_watchApi.playerApi,2);Z=Y.yieldResult;if(q.isDisposed())return Y.return();q.sessionStorage=_.fVZ("yt-sleep-timer");q.sessionStorage||_.bx(new _.df("SessionStorage for Sleep Timer is undefined."));((w=q.sessionStorage)==null?void 0:w.get("yt-sleep-timer"))==="true"&&(Q9a(),(r=q.sessionStorage)==null||r.remove("yt-sleep-timer"),Z.syncVolume());Q$v(q,Z);EYF(q,Z);xNA(q,Z);_.ub(Y)})},Q$v=function(q,Z){var w=function(L){q.onSleepTimerSettingsChanged(L,
Z)},r=function(L){q.onPlayerStateChange(L,Z)},Y=function(){q.onLoopChange(Z)},C=function(){q.onCloseMiniplayer(Z)},d=function(){bA9(Z,(0,_.lp)(),Ev9(Z),q.selectedOption==="End of video",Z.getPlayerState()!==1)},O=function(){q.onSeekComplete(Z)},H=function(){_.v5.cancelJob(Ib);
var L=Z.getCurrentTime()>=Z.getDuration(),S=q.selectedOption==="End of video"||q.selectedOption==="End of playlist"&&!j99(q.playlistId);L&&S&&TI5(q,Z)};
Z.addEventListener("onSleepTimerSettingsChanged",w);Z.addEventListener("onLoopChange",Y);Z.addEventListener("onLoopRangeChange",Y);Z.addEventListener("onStateChange",r);Z.addEventListener("onCloseMiniplayer",C);Z.addEventListener("onSleepTimerFeatureAvailable",d);Z.addEventListener("SEEK_COMPLETE",O);Z.addEventListener("onAdStart",H);q.addOnDisposeCallback(function(){Z.removeEventListener("onSleepTimerSettingsChanged",w);Z.removeEventListener("onLoopChange",Y);Z.removeEventListener("onLoopRangeChange",
Y);Z.removeEventListener("onStateChange",r);Z.removeEventListener("onCloseMiniplayer",C);Z.removeEventListener("onSleepTimerFeatureAvailable",d);Z.removeEventListener("SEEK_COMPLETE",O);Z.removeEventListener("onAdStart",H)})},EYF=function(q,Z){var w=q.JSC$20134_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var r=Z.getVideoData().video_id,Y,C=(Y=SXX(q.JSC$20134_watchApi))==null?void 0:Y.playlistId;
q.pauseAutonavPlayback&&(Z.pauseVideo(),Z.syncVolume(),q.pauseAutonavPlayback=!1);if(q.selectedOption==="End of video"&&r!==q.videoId)Kf(q,Z);else{if(q.selectedOption==="End of playlist"){Y=j99(q.playlistId);if(C!==q.playlistId){Kf(q,Z);break a}Y?Y&&UN5(q,Z):kor(q,Z)}q.videoId=r;q.playlistId=C}}});
q.addOnDisposeCallback(function(){q.JSC$20134_watchApi.unsubscribeByKey(w)})},xNA=function(q,Z){var w=_.t().resolve(_.oL),r=_.wF(w,_.ECN,function(C){C&&q.selectedOption!=="Off"&&Kf(q,Z)}),Y=_.wF(w,UR,function(C){var d,O;
return _.V(function(H){if(H.nextAddress==1)return _.W(H,_.qk().navigationFinishPromise,2);d=!_.HLp();O=_.t().resolve(_.Tf).isMiniplayerActive();C||!Lmd(q.selectedOption)||O||d||Kf(q,Z);_.ub(H)})});
w=_.wF(w,function(C){return C.entities.playlistLoopStateEntity||{}},function(C){C=C===void 0?{}:C;
var d=vvI(q.JSC$20134_watchApi);if(d){var O;((O=C[d])==null?void 0:O.state)==="PLAYLIST_LOOP_STATE_ALL"&&Lmd(q.selectedOption)&&Kf(q,Z)}});
q.addOnDisposeCallback(r);q.addOnDisposeCallback(w);q.addOnDisposeCallback(Y)};
ku.prototype.onSleepTimerSettingsChanged=function(q,Z){switch(q){case "Off":this.selectedOption!=="Off"&&Kf(this,Z);break;case "End of video":case "End of playlist":KlI(this,q,Z);break;default:KlI(this,q,Z,a$K.get(q))}};
ku.prototype.onLoopChange=function(q){(q.getLoopVideo()||q.getLoopRange())&&Lmd(this.selectedOption)&&Kf(this,q)};
ku.prototype.onCloseMiniplayer=function(q){Lmd(this.selectedOption)&&Kf(this,q)};
var KlI=function(q,Z,w,r){s$v(q,w);q.selectedOption=Z;q.videoId=w.getVideoData().video_id;q.playlistId="";var Y;(Y=q.sessionStorage)==null||Y.set("yt-sleep-timer","true");q.adjustmentsCount++;bA9(w,(0,_.lp)(),Ev9(w),q.selectedOption==="End of video");if(q.selectedOption==="End of video")kor(q,w),I$X(q,w);else if(q.selectedOption==="End of playlist"){I$X(q,w);var C,d;q.playlistId=(d=(C=SXX(q.JSC$20134_watchApi))==null?void 0:C.playlistId)!=null?d:"";j99(q.playlistId)||kor(q,w)}else r&&(q.presetFadeSchedulerId=
_.$L(_.v5,function(){aFa(w,15E3)},r-15E3),q.presetPauseSchedulerId=_.$L(_.v5,function(){TI5(q,w)},r),zd6(w,(0,_.lp)(),r))},TI5=function(q,Z){if(UR(_.t().resolve(_.oL).getState())){var w={dismissDialogEndpoint:{}};
var r={commandExecutorCommand:{commands:[w,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};w={buttonViewModel:{title:_.dT("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:w}}};r={buttonViewModel:{title:_.dT("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:r}}};var Y={dialogHeaderViewModel:{headline:{content:_.dT("SLEEP_TIMER_ENDED_TITLE")}}};
var C={basicContentViewModel:{paragraphs:[{text:{content:_.dT("SLEEP_TIMER_ENDED_TEXT")}}]}};w={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Y,content:C,footer:{panelFooterViewModel:{primaryButton:w,secondaryButton:r,shouldHideDivider:!0}}}}}}};_.t().resolve(_.ps).resolveCommand(w,{form:{element:q}})}else Q9a();c9d(q,!1);MJK(q,Z);Z.pauseVideo();_.sN.getInstance().getState()===2&&Z.getPlayerState()===5&&(q.pauseAutonavPlayback=!0)},Kf=function(q,Z){c9d(q,!0);
MJK(q,Z);Q9a()},MJK=function(q,Z){s$v(q,Z);
q.selectedOption="Off";q.videoId="";q.playlistId="";q.adjustmentsCount=0;var w;(w=q.sessionStorage)==null||w.remove("yt-sleep-timer");_.v5.cancelJob(JIa);Z.resetSleepTimerMenuSettings()},c9d=function(q,Z){Z={timer_length_adjustment_times_during_session:q.adjustmentsCount-1,
is_session_cancelled:Z};switch(q.selectedOption){case "Off":Z.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":Z.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":Z.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:Z.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",Z.option_duration_in_minutes=a$K.get(q.selectedOption)/6E4}_.vO("sleepTimerSessionFinishEvent",Z)};
ku.prototype.onPlayerStateChange=function(q,Z){q===1?bA9(Z,(0,_.lp)(),Ev9(Z),this.selectedOption==="End of video"):q===0?(_.v5.cancelJob(Ib),Z.setVideoTimeLeft(Rda(0,0))):q===2&&_.v5.cancelJob(Ib);this.selectedOption==="End of video"?q===0?TI5(this,Z):q===2&&nvv(Z):this.selectedOption!=="End of playlist"||j99(this.playlistId)||(q===0?TI5(this,Z):q===2&&nvv(Z))};
ku.prototype.onSeekComplete=function(q){q.getPlayerState()===2&&bA9(q,(0,_.lp)(),Ev9(q),this.selectedOption==="End of video",!0)};
ku.prototype.onCueRangeEnter=function(q,Z){q==="sleep-timer-fade-audio"&&(q=(Z.getDuration()-Z.getProgressState().current)*1E3,aFa(Z,q))};
ku.prototype.onCueRangeExit=function(q,Z){q==="sleep-timer-fade-audio"&&Z.getPlayerState()!==0&&nvv(Z,!0)};
var kor=function(q,Z){Z.addCueRange("sleep-timer-fade-audio",Z.getDuration()-15,Z.getDuration());Z.addEventListener("onCueRangeEnter",function(w){q.onCueRangeEnter(w,Z)});
Z.addEventListener("onCueRangeExit",function(w){q.onCueRangeExit(w,Z)})},UN5=function(q,Z){Z.removeCueRange("sleep-timer-fade-audio");
Z.removeEventListener("onCueRangeEnter",function(w){q.onCueRangeEnter(w,Z)});
Z.removeEventListener("onCueRangeExit",function(w){q.onCueRangeExit(w,Z)})},s$v=function(q,Z){Lmd(q.selectedOption)?UN5(q,Z):(_.v5.cancelJob(q.presetPauseSchedulerId),_.v5.cancelJob(q.presetFadeSchedulerId),q.presetPauseSchedulerId=0,q.presetFadeSchedulerId=0);
nvv(Z,!0)},I$X=function(q,Z){Z.setLoop(!1);
Z.setLoopVideo(!1);Z.setLoopRange(null);(q=vvI(q.JSC$20134_watchApi))&&_.t().resolve(_.oL).dispatch(_.wp("playlistLoopStateEntity",q,{key:q,state:"PLAYLIST_LOOP_STATE_NONE"}))};var God=function(q){_.u6.call(this);this.JSC$20137_watchApi=q;Flg(this);NIw(this);l$6(this);q=q.getRoot();if(q.is==="ytd-watch-flexy"||q.is==="ytd-watch-grid")q.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.KFr();_.b("web_watch_log_theater_mode_cookie_state")&&_.Yr.get("wide","0")==="1"&&_.PEX("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.z(God,_.u6);var Flg=function(q){var Z,w;_.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$20137_watchApi.playerApi,2);Z=r.yieldResult;w=function(Y){p5X(q,!!Y)};
Z.addEventListener("SIZE_CLICKED",w);q.addOnDisposeCallback(function(){Z.removeEventListener("SIZE_CLICKED",w)});
_.ub(r)})},NIw=function(q){q.JSC$20137_watchApi.registerActionHandler("yt-toggle-theater-mode",function(Z,w){p5X(q,Z,w===void 0?!0:w)});
q.addOnDisposeCallback(function(){Tn(q.JSC$20137_watchApi,"yt-toggle-theater-mode")})};
God.prototype.getState=function(){return _.P9(_.sE().getState())};
var p5X=function(q,Z,w){w=w===void 0?!0:w;var r,Y,C,d=_.b("enable_player_resize_transition")&&!!q.JSC$20137_watchApi.getWatchNextResponse()&&!((r=q.JSC$20137_watchApi.getWatchNextResponse())==null?0:(Y=r.contents)==null?0:(C=Y.twoColumnWatchNextResults)==null?0:C.conversationBar);_.pOS(function(){_.sE().dispatch(_.mu({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:Z}}));_.b("theater_mode_scroll_to_top_killswitch")||q.JSC$20137_watchApi.scrollWatchTo(0,!1);_.mJ()&&_.b("external_fullscreen")&&_.Ay(document.documentElement);
l$6(q);w&&_.$r("wide",Z?"1":"0",-1);_.yY(q.JSC$20137_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);q.JSC$20137_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:Z});Z&&_.KFr()},{shouldWrap:d})},l$6=function(q){var Z;
_.V(function(w){if(w.nextAddress==1)return _.W(w,q.JSC$20137_watchApi.playerApi,2);Z=w.yieldResult;Z.setSizeStyle(!0,q.getState());_.ub(w)})};var A9m=function(q){_.u6.call(this);var Z=this;this.playerApi=q;this.timeToPanelSyncKeyMap={};var w;if(q==null?0:(w=q.isReady)==null?0:w.call(q)){w=_.wF(_.t().resolve(_.oL),function(Y){return Y.entities.timedMarkersListSyncEntity||{}},function(Y,C){Y=Y===void 0?{}:Y;
C=C===void 0?{}:C;for(var d=_.P(Object.keys(C)),O=d.next();!O.done;O=d.next())O=O.value,Y[O]!==C[O]&&X55(Z,C[O]);C=_.P(Object.keys(Y));for(d=C.next();!d.done;d=C.next())d=d.value,O=Y[d],Z.timeToPanelSyncKeyMap[d]&&mNr(Z,O)});
this.addOnDisposeCallback(w);var r=function(Y){Z.onCueRangeEnter(Y)};
q.addEventListener("onCueRangeEnter",r);this.addOnDisposeCallback(function(){var Y;(Y=q.removeEventListener)==null||Y.call(q,"onCueRangeEnter",r)})}};
_.z(A9m,_.u6);
var mNr=function(q,Z){var w,r;if((w=q.playerApi)==null?0:(r=w.isReady)==null?0:r.call(w)){var Y;if((w=Z==null?void 0:(Y=Z.timedListData)==null?void 0:Y.sections)&&Z!=null&&Z.key)for(Y=_.P(w),w=Y.next();!w.done;w=Y.next())if(w=w.value,w.timedSyncDataList&&w.sectionId)for(r=0;r<w.timedSyncDataList.length;r++){var C=w.timedSyncDataList[r];C.syncItemId&&q.playerApi.addCueRange(w.sectionId+"_"+Z.key+"_"+C.syncItemId,Number(C.videoTimeMs)/1E3,r===w.timedSyncDataList.length-1?0x8000000000000:Number(w.timedSyncDataList[r+
1].videoTimeMs)/1E3)}}},X55=function(q,Z){var w,r;
if((w=q.playerApi)==null?0:(r=w.isReady)==null?0:r.call(w)){var Y;if((w=Z==null?void 0:(Y=Z.timedListData)==null?void 0:Y.sections)&&Z!=null&&Z.key)for(Y=_.P(w),w=Y.next();!w.done;w=Y.next())if(w=w.value,w.timedSyncDataList&&w.sectionId){r=_.P(w.timedSyncDataList);for(var C=r.next();!C.done;C=r.next())C=C.value,C.syncItemId&&q.playerApi.removeCueRange(w.sectionId+"_"+Z.key+"_"+C.syncItemId)}}};
A9m.prototype.onCueRangeEnter=function(q){for(var Z=_.P(Object.keys(this.timeToPanelSyncKeyMap)),w=Z.next();!w.done;w=Z.next()){w=w.value;var r=_.P(q.split("_"+w+"_")),Y=r.next().value;r=r.next().value;if(Y&&r){q=_.t().resolve(_.oL);Z=this.timeToPanelSyncKeyMap[w];var C=_.BwT(q.getState(),Z);w=f$r(w,Y,r);if(w===-1)break;w={activeSyncId:r,activeItemIndex:w,activeSectionInfo:{sectionIdentifier:Y}};C?q.dispatch(_.LV("markersEngagementPanelSyncEntity",Z,w)):q.dispatch(_.wp("markersEngagementPanelSyncEntity",
Z,Object.assign({},{key:Z},w)));break}}};
var f$r=function(q,Z,w){var r=_.t().resolve(_.oL),Y,C;q=(Y=xS6(r.getState(),q))==null?void 0:(C=Y.timedListData)==null?void 0:C.sections;if(!q)return-1;Y=0;C=_.P(q);for(q=C.next();!q.done;q=C.next()){q=q.value;r=q.timedSyncDataList||[];if(q.sectionId===Z)return Z=r.findIndex(function(d){return d.syncItemId===w}),Z===-1?Z:Y+Z;
Y+=r.length}return-1};var y9A=function(q){_.u6.call(this);var Z=this;this.JSC$20149_watchApi=q;this.unresolvedCommands=[];this.JSC$20149_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(w){DNF(Z,w)});
this.addOnDisposeCallback(function(){Tn(Z.JSC$20149_watchApi,"yt-update-timed-markers-sync-observer-command")});
h$m(this)};
_.z(y9A,_.u6);var h$m=function(q){var Z;_.V(function(w){if(w.nextAddress==1)return _.W(w,q.JSC$20149_watchApi.playerApi,2);Z=w.yieldResult;if(q.isDisposed())return w.return();q.timedSyncObserver=new A9m(Z);q.unresolvedCommands.length&&(q.unresolvedCommands.forEach(function(r){return DNF(q,r)}),q.unresolvedCommands=[]);
_.$i(q,q.timedSyncObserver);_.ub(w)})},DNF=function(q,Z){if(q.timedSyncObserver){var w=_.J(Z,eBA);
if(w&&w.timedSyncEntityKey&&w.panelSyncEntityKey){q=q.timedSyncObserver;Z=w.timedSyncEntityKey;var r=w.panelSyncEntityKey;w=!!w.isEnabled;w=w===void 0?!0:w;var Y=_.t().resolve(_.oL);Y=xS6(Y.getState(),Z);w?q.timeToPanelSyncKeyMap[Z]||(q.timeToPanelSyncKeyMap[Z]=r,mNr(q,Y)):(delete q.timeToPanelSyncKeyMap[Z],X55(q,Y))}}else q.unresolvedCommands.push(Z)};var iBm=_.xl(function(q){var Z=q.data,w=q.maybeLogSmartSkipClientData,r=_.Iw();_.EM(r,function(){return Z().rendererContext},{onTap:function(S,v){v({disableClickTracking:!0})}});
var Y=null,C=null,d=_.b("web_enable_auto_focus_for_timely_action_button"),O=function(){Y=document.activeElement},H=function(){Z().smartSkipMetadata&&(Y=document.activeElement,E8a(function(){return C}))},L=function(S){if(Z().smartSkipMetadata&&(!S||S.key!=="Enter")){Y&&Y.isConnected&&(E8a(function(){return Y}),Y=null);
var v;(v=C)==null||v.blur()}};
q=_.fn(function(){w==null||w(!0,Z());return!1});
_.Xu(r,{visibilityCallback:function(S){if(d)S?C&&Z().smartSkipMetadata&&(H(),document.addEventListener("focusin",O)):(document.removeEventListener("focusin",O),L());else if(S&&_.b("web_ephemeral_actions")){S=_.a5(Z().rendererContext);var v=Number(Z().maxVisibleDurationMilliseconds),R,B=(R=_.J(Z().rendererContext,_.xL))==null?void 0:R.label;S&&v&&B&&(R={label:B,command:S,durationMs:v},_.t().resolve(_.Aa).enqueue(R))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.oz(function(){if(d){var S;if((C=(S=r.value)==null?void 0:S.querySelector("button"))&&Z().smartSkipMetadata){var v;(v=r.value)==null||v.addEventListener("keydown",L)}}});
_.SG(function(){d&&(C&&Z().smartSkipMetadata&&C.removeEventListener("keydown",L),document.removeEventListener("focusin",O),L())});
return _.u("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:r,"on:click":q},_.u(_.Hx,{data:function(){return Z().content}},{buttonViewModel:_.vx}))},"vi");var gY8=_.xl(function(q){var Z=q.data,w=q.playerApi,r=_.t().resolve(_.qJ8);q=_.P(_.hE(function(){Z()}));
var Y=q.next().value,C=q.next().value,d=function(){return UKg(Z(),Y())},O=function(L,S){var v,R,B=(v=_.J(S==null?void 0:S.rendererContext,_.KRT))==null?void 0:(R=v.loggingDirectives)==null?void 0:R.trackingParams;
if((S=S==null?void 0:S.smartSkipMetadata)&&S.loggingData&&(R=S.loggingData,S=R.algorithmId,v=R.startMilliseconds,R=R.endMilliseconds,S&&v!==void 0&&R!==void 0)){var n,x;L={smartSkipData:Object.assign({},{versionName:S,startMediaTimeMs:v,endMediaTimeMs:R},L&&{userInteractionMediaTimeMs:(Math.floor(((n=_.K6())==null?void 0:(x=n.getPlayer())==null?void 0:x.getCurrentTime())||0)*1E3).toString()})};n=_.b5();var K;B&&(K=_.wa(B));n&&K&&_.cd(n,K,L)}},H=function(L,S){var v=UKg(Z(),L);
if(v){var R=_.J(v,TrX),B;if(B=S)B=w(),v=_.J(v,TrX),B=v!=null&&v.smartSkipMetadata?!(B==null?0:B.isSameMarkerTypeVisible((v==null?void 0:v.smartSkipMetadata.markerKey)||"")):!0;if(B){var n,x;(R==null?0:(n=R.smartSkipMetadata)==null?0:(x=n.loggingData)==null?0:x.isCounterfactual)||(O(!1,R),C(L))}else S||Y()!==L||C(void 0)}};
_.L7(function(){var L=Z().timelyActions;if(L){L=_.P(L);for(var S=L.next();!S.done;S=L.next()){S=_.J(S.value,TrX);var v=void 0;(v=S)!=null&&v.cueRangeId&&r.timelyActionsMap.set(S.cueRangeId,H)}_.SG(function(){r.timelyActionsMap.clear()})}});
return _.u("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.u(_.Hx,{data:d},{timelyActionViewModel:function(L){return _.u(iBm,{data:L.data,maybeLogSmartSkipClientData:function(){O(!0,_.J(d(),TrX))}})}}))},"wi");var Zb5=function(q){_.u6.call(this);this.JSC$20161_watchApi=q;q=_.P(_.qo({},void 0,"pLDp2"));this.timelyActionsOverlay=q.next().value;this.setTimelyActionsOverlay=q.next().value;qUg(this)};
_.z(Zb5,_.u6);var qUg=function(q){var Z,w,r,Y;_.V(function(C){if(C.nextAddress==1)return wO8(q),rYr(q),q.timelyActionsContainer=document.createElement("div"),_.W(C,q.JSC$20161_watchApi.playerApi,2);Z=C.yieldResult;(r=(w=Z).insertTimelyActionUi)==null||r.call(w,q.timelyActionsContainer);Y=_.WF(q.timelyActionsContainer,function(){return _.u(gY8,{data:q.timelyActionsOverlay,playerApi:Z})});
q.addOnDisposeCallback(Y);_.ub(C)})},rYr=function(q){var Z=q.JSC$20161_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){wO8(q)});
q.addOnDisposeCallback(function(){q.JSC$20161_watchApi.unsubscribeByKey(Z)})},wO8=function(q){var Z=q.JSC$20161_watchApi.getWatchNextResponse();
if(Z){var w,r;if(Z=_.J((w=Z.playerOverlays)==null?void 0:(r=w.playerOverlayRenderer)==null?void 0:r.timelyActionsOverlayViewModel,CbA)){var Y;(Y=q.setTimelyActionsOverlay)==null||Y.call(q,Z)}}};var $Ud=function(q){_.u6.call(this);this.JSC$20165_watchApi=q;YUw(this)};
_.z($Ud,_.u6);var YUw=function(q){var Z,w;_.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$20165_watchApi.playerApi,2);Z=r.yieldResult;w=function(Y){_.AJ.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.J(Y,_.h8d)},popupType:"TOAST"}})};
Z.addEventListener("onYtShowToast",w);q.addOnDisposeCallback(function(){Z.removeEventListener("onYtShowToast",w)});
_.ub(r)})};var e7a=!1,VXv=function(q){_.u6.call(this);this.JSC$20168_watchApi=q;this.fullscreen=this.theater=!1;Cxd(this);Pxm(this);dUr(this)};
_.z(VXv,_.u6);var dUr=function(q){var Z,w,r;_.V(function(Y){if(Y.nextAddress==1)return _.W(Y,q.JSC$20168_watchApi.playerApi,2);Z=Y.yieldResult;if(q.isDisposed())return Y.return();w=q.JSC$20168_watchApi.getElement("CINEMATICS");if(!w)return Y.return();q.JSC$20168_cinematicController=new _.WC(w,Z);_.$i(q,q.JSC$20168_cinematicController);_.vgX(q.JSC$20168_cinematicController);ObF(q,_.ENN());r=q.JSC$20168_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(C){Hbm(q,C)});
q.addOnDisposeCallback(function(){q.JSC$20168_watchApi.unsubscribeByKey(r)});
WD9(q);Hbm(q,q.JSC$20168_cinematicController.isAllowed());o75(q,q.fullscreen,q.theater);uua(q);_.ub(Y)})},Cxd=function(q){var Z=q.JSC$20168_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){WD9(q)});
q.addOnDisposeCallback(function(){q.JSC$20168_watchApi.unsubscribeByKey(Z)})},Pxm=function(q){var Z,w;
_.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$20168_watchApi.playerApi,2);Z=r.yieldResult;w=function(Y){ObF(q,Y)};
Z.addEventListener("cinematicSettingsToggleChange",w);q.addOnDisposeCallback(function(){Z.removeEventListener("cinematicSettingsToggleChange",w)});
_.ub(r)})},WD9=function(q){var Z=q.JSC$20168_watchApi.getWatchNextResponse(),w;
Z=_.J(Z==null?void 0:(w=Z.pageVisualEffects)==null?void 0:w[0],_.xV);var r;(r=q.JSC$20168_cinematicController)==null||_.t25(r,Z)},ObF=function(q,Z){var w;
(w=q.JSC$20168_cinematicController)==null||_.jhd(w,Z);LD8(q)},Hbm=function(q,Z){var w;
_.V(function(r){if(r.nextAddress==1)return _.b("kevlar_watch_cinematics_invisible")&&(Z=!1),_.W(r,q.JSC$20168_watchApi.playerApi,2);w=r.yieldResult;w.updateCinematicSettings(Z);LD8(q);_.ub(r)})},uua=function(q){var Z=_.Hd();
if(_.b("kevlar_measure_ambient_mode_idle")&&!Z.getFlag(192)&&!e7a){e7a=!0;var w=_.WO(_.v5,function(){_.t().resolve(_.mRb).start(1E4)},5E3);
q.addOnDisposeCallback(function(){_.v5.cancelJob(w);_.t().resolve(_.mRb).stop()})}},o75=function(q,Z,w){q.fullscreen=Z;
q.theater=w;var r;(r=q.JSC$20168_cinematicController)==null||r.setFullscreen(q.fullscreen,q.theater);if(_.b("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(q.theater||q.fullscreen){var Y;(Y=q.JSC$20168_cinematicController)!=null&&(Y=Y.currentCinematicEffect)!=null&&(Y=Y.storyboardManager,Y.paused=!1,_.Z9m(Y),Y.update())}else(q=q.JSC$20168_cinematicController)==null||(Y=q.currentCinematicEffect)!=null&&Y.pause()},LD8=function(q){if(_.b("web_cinematic_theater_mode")||_.b("web_cinematic_fullscreen")){var Z;
q.JSC$20168_watchApi.getRoot().toggleCinematicsActive(!((Z=q.JSC$20168_cinematicController)==null||!Z.isEnabled()))}};var tX6=function(q){_.u6.call(this);var Z=this;this.JSC$20171_watchApi=q;this.commentsReady=!1;this.setCommentsJobId=0;q=_.wF(_.sE(),_.KT,function(){SU9(Z)});
this.addOnDisposeCallback(q);var w=this.JSC$20171_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){v76(Z)}),r=this.JSC$20171_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){v76(Z)});
this.addOnDisposeCallback(function(){Z.JSC$20171_watchApi.unsubscribeByKey(w);Z.JSC$20171_watchApi.unsubscribeByKey(r)});
var Y=function(){_.b("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&jww(Z,"false")};
this.JSC$20171_watchApi.getRoot().addEventListener("yt-page-data-will-update",Y);this.addOnDisposeCallback(function(){Z.JSC$20171_watchApi.getRoot().removeEventListener("yt-page-data-will-update",Y)});
v76(this)};
_.z(tX6,_.u6);var v76=function(q){q.commentsReady=!1;_.v5.cancelJob(q.setCommentsJobId);q.setCommentsJobId=_.WO(_.v5,function(){SU9(q)},1E3)},SU9=function(q){if(!q.commentsReady){_.JT("cmi");
_.v5.cancelJob(q.setCommentsJobId);var Z,w,r,Y,C=(Z=q.JSC$20171_watchApi.getWatchNextResponse())==null?void 0:(w=Z.contents)==null?void 0:(r=w.twoColumnWatchNextResults)==null?void 0:(Y=r.results)==null?void 0:Y.results.contents;Z=void 0;if(C&&C.length)for(C=_.P(C),w=C.next();!w.done;w=C.next())if(w=w.value,Y=r=void 0,((r=w)==null?void 0:(Y=r.itemSectionRenderer)==null?void 0:Y.sectionIdentifier)==="comment-item-section"){_.b("web_watch_provide_undefined_comments")?Z=w.itemSectionRenderer:q.JSC$20171_watchApi.provideRenderingData("COMMENTS",
w.itemSectionRenderer);jww(q,"true");break}_.b("web_watch_provide_undefined_comments")&&q.JSC$20171_watchApi.provideRenderingData("COMMENTS",Z);q.commentsReady=!0;q.JSC$20171_watchApi.dispatchEvent("yt-watch-comments-ready")}},jww=function(q,Z){var w;
(w=q.JSC$20171_watchApi.getElement("COMMENTS"))==null||w.setAttribute("canScheduleJobs",Z)};var aUd;_.R76=["engagement-panel-ads"];
aUd=function(q){_.u6.call(this);var Z=this;this.JSC$20174_watchApi=q;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.b("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.b("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.b("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.m6("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)bb8(this);
else{var w=this.JSC$20174_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){JYa(Z);s5(Z)}),r=this.JSC$20174_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){IG(Z);
s5(Z)});
this.JSC$20174_watchApi.getRoot().is==="ytd-watch-grid"&&_.b("swatcheroo_pbs_load_grid")&&(z76(this),B5m(this));this.addOnDisposeCallback(function(){Z.JSC$20174_watchApi.unsubscribeByKey(w);Z.JSC$20174_watchApi.unsubscribeByKey(r);_.v5.cancelJob(Z.provideRichGridJobId)});
JYa(this);IG(this)}};
_.z(aUd,_.u6);var bb8=function(q){var Z=q.JSC$20174_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){q.providePlayerJobId=_.OM(_.v5,function(){JYa(q);s5(q)},q.provideAllDataDelayMs)}),w=q.JSC$20174_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){q.provideWatchNextJobId=_.OM(_.v5,function(){IG(q);
s5(q)},q.provideAllDataDelayMs)}),r=q.JSC$20174_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){q.provideWatchNextJobId=_.OM(_.v5,function(){IG(q);
s5(q)},q.provideAllDataDelayMs)});
q.JSC$20174_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.WO(_.v5,function(){JYa(q);IG(q);s5(q)},100)});
n7m(q.JSC$20174_watchApi,function(){_.v5.cancelJob(q.provideWatchNextJobId);_.v5.cancelJob(q.providePlayerJobId)});
q.addOnDisposeCallback(function(){Tn(q.JSC$20174_watchApi,"yt-pending-navigation-cancelled");q.JSC$20174_watchApi.unsubscribeByKey(Z);q.JSC$20174_watchApi.unsubscribeByKey(w);q.JSC$20174_watchApi.unsubscribeByKey(r);_.v5.cancelJob(q.providePlayerJobId);_.v5.cancelJob(q.provideWatchNextJobId)});
JYa(q);IG(q)},JYa=function(q){var Z=q.JSC$20174_watchApi.getPlayerResponse(),w,r,Y=(r=Z==null?void 0:(w=Z.playabilityStatus)==null?void 0:w.messageRenderers)!=null?r:[],C,d;
Z=(d=Z==null?void 0:(C=Z.playabilityStatus)==null?void 0:C.messages)!=null?d:[];C=_.P(Z);for(d=C.next();!d.done;d=C.next())Y.push({alertRenderer:{text:_.UE(d.value),type:"WARNING"}});q.JSC$20174_watchApi.provideRenderingData("ALERTS",Y)},IG=function(q){var Z=[],w,r,Y,C=q.JSC$20174_watchApi.getWatchNextResponse(),d,O,H,L,S=C==null?void 0:(d=C.contents)==null?void 0:(O=d.twoColumnWatchNextResults)==null?void 0:(H=O.results)==null?void 0:(L=H.results)==null?void 0:L.contents;
if(S)for(d=_.P(S),O=d.next();!O.done;O=d.next())if(O=O.value,O.videoPrimaryInfoRenderer)var v=O;else if(O.videoSecondaryInfoRenderer){var R=O;L=H=void 0;O=Object.assign({},(H=O.videoSecondaryInfoRenderer)==null?void 0:(L=H.metadataRowContainer)==null?void 0:L.metadataRowContainerRenderer);if(O.rows&&O.collapsedItemCount!==void 0){O.rows=O.rows.slice(0,O.collapsedItemCount).filter(function(lN){return!!lN.richMetadataRowRenderer});
O.collapsedItemCount=O.rows.length;var B={metadataRowContainerRenderer:O}}}else if(O.merchandiseShelfRenderer)var n=O;else if(O.ticketShelfRenderer)var x=O;else if(O.expandableMetadataRenderer)var K=O;else if(O.itemSectionRenderer)if(H=O.itemSectionRenderer.contents,L=void 0,q.directlyProvideComments&&((L=O.itemSectionRenderer)==null?void 0:L.sectionIdentifier)==="comment-item-section")_.JT("cmi"),q.JSC$20174_watchApi.provideRenderingData("COMMENTS",O.itemSectionRenderer);else if(H)for(O=_.P(H),H=
O.next();!H.done;H=O.next())if(H=H.value,H.commentsEntryPointHeaderRenderer)var k=H;else if(H.clarificationRenderer||H.infoPanelContainerRenderer||H.infoPanelContentRenderer||H.emergencyOneboxRenderer){Z.push(H);var G=G||!!R}else H.limitedStateMessageRenderer?r=H:H.videoMetadataCarouselViewModel&&(Y=H);if(_.b("web_watch_merch_in_sd_when_ticket_shelf_present")&&n&&x){var rz=n;n=void 0}if(q.provideWatchNextSecondaryResults){var f,eO,g;q.JSC$20174_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
C==null?void 0:(f=C.contents)==null?void 0:(eO=f.twoColumnWatchNextResults)==null?void 0:(g=eO.secondaryResults)==null?void 0:g.secondaryResults)}if(q.JSC$20174_watchApi.getRoot().is==="ytd-watch-grid"&&!_.b("swa_prov_panels_ks")&&(C==null?0:C.engagementPanels)){var H6=C.engagementPanels.filter(function(lN){var Op,hK;return _.R76.includes((hK=lN==null?void 0:(Op=lN.engagementPanelSectionListRenderer)==null?void 0:Op.targetId)!=null?hK:"")});
var nX=C.engagementPanels.filter(function(lN){var Op,hK;return!_.R76.includes((hK=lN==null?void 0:(Op=lN.engagementPanelSectionListRenderer)==null?void 0:Op.targetId)!=null?hK:"")})}if(q.JSC$20174_watchApi.getRoot().is==="ytd-watch-grid"){var Qj,SO;
q.JSC$20174_watchApi.provideRenderingData("LIVE_CHAT",C==null?void 0:(Qj=C.contents)==null?void 0:(SO=Qj.twoColumnWatchNextResults)==null?void 0:SO.conversationBar)}var Te,Ze,W1,A2;(f=C==null?void 0:(Te=C.contents)==null?void 0:(Ze=Te.twoColumnWatchNextResults)==null?void 0:(W1=Ze.secondaryResults)==null?void 0:(A2=W1.secondaryResults)==null?void 0:A2.offerModule)&&(f.donationShelfRenderer||f.donationUnavailableRenderer)&&q.JSC$20174_watchApi.getRoot().is!=="ytd-watch-grid"&&(w=f);Te=q.JSC$20174_watchApi.getPlayerResponse();
if(!Te||!_.t5j(Te.playabilityStatus,C==null?void 0:C.playerOverlays)){var f9;if(C==null?0:(f9=C.contents)==null?0:f9.singleColumnWatchNextResults){var Dl,$g;var De=C==null?void 0:(Dl=C.contents.singleColumnWatchNextResults.results)==null?void 0:($g=Dl.results)==null?void 0:$g.contents}else{var n9,Rh,xg,ZF;f9=!!(S==null?0:(n9=S[0])==null?0:(Rh=n9.itemSectionRenderer)==null?0:(xg=Rh.contents)==null?0:(ZF=xg[0])==null?0:ZF.backgroundPromoRenderer);var mm,CX;n9=!!(C==null?0:(mm=C.contents)==null?0:(CX=
mm.twoColumnWatchNextResults)==null?0:CX.secondaryResults);f9&&!n9&&(De=S)}}S=Z[0];mm=Z[1];G&&Z.length===1&&(mm=S,S=void 0);q.JSC$20174_watchApi.provideRenderingData("PRIMARY_INFO",v);q.JSC$20174_watchApi.provideRenderingData("SECONDARY_INFO",R);q.JSC$20174_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",k);q.JSC$20174_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",Y);q.JSC$20174_watchApi.provideRenderingData("CLARIFICATION",S);q.JSC$20174_watchApi.provideRenderingData("RICH_METADATA",
B);q.JSC$20174_watchApi.getRoot().is!=="ytd-watch-grid"||_.b("swa_prov_panels_ks")||_.b("web_watch_inject_placeholder_panels")||(q.JSC$20174_watchApi.provideRenderingData("ENGAGEMENT_PANELS",nX),q.JSC$20174_watchApi.provideRenderingData("INLINE_ENGAGEMENT_PANELS",H6));q.JSC$20174_watchApi.provideRenderingData("MERCH_SHELF",n);_.b("web_watch_merch_in_sd_when_ticket_shelf_present")&&q.JSC$20174_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",rz);q.JSC$20174_watchApi.provideRenderingData("TICKET_SHELF",
x);q.JSC$20174_watchApi.provideRenderingData("LIMITED_STATE",r);q.JSC$20174_watchApi.getRoot().is!=="ytd-watch-grid"&&q.JSC$20174_watchApi.provideRenderingData("DONATION_SHELF",w);q.JSC$20174_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",De);q.JSC$20174_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",mm);q.JSC$20174_watchApi.provideRenderingData("EXPANDABLE_METADATA",K);if(q.swatcherooProvideAllDataOnScheduledJob){var rb,mv,lC,L9,ah,gz;v=C==null?void 0:(rb=C.contents)==null?void 0:
(mv=rb.twoColumnWatchNextResults)==null?void 0:(lC=mv.secondaryResults)==null?void 0:(L9=lC.secondaryResults)==null?void 0:(ah=L9.results)==null?void 0:(gz=ah[0])==null?void 0:gz.richGridRenderer;q.JSC$20174_watchApi.provideRenderingData("RICH_GRID_RENDERER",v)}};
aUd.prototype.hasCompanionAds=function(q){var Z,w;return(w=q==null?void 0:(Z=q.adPlacements)==null?void 0:Z.some(function(r){var Y,C,d,O;return(r==null?void 0:(Y=r.adPlacementRenderer)==null?void 0:(C=Y.renderer)==null?void 0:C.actionCompanionAdRenderer)||(r==null?void 0:(d=r.adPlacementRenderer)==null?void 0:(O=d.renderer)==null?void 0:O.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?w:!1};
var s5=function(q){if(!_.b("swaterdoo_ps_wn_handle_ks")){q.swatcherooProvideAllDataOnScheduledJob||B5m(q,3E3);var Z=q.JSC$20174_watchApi.getPlayerResponse(),w,r,Y,C,d,O=(w=q.JSC$20174_watchApi.getWatchNextResponse())==null?void 0:(r=w.contents)==null?void 0:(Y=r.twoColumnWatchNextResults)==null?void 0:(C=Y.secondaryResults)==null?void 0:(d=C.secondaryResults)==null?void 0:d.offerModule;Z=q.hasCompanionAds(Z);var H,L;w=(O==null?void 0:(H=O.tvfilmOfferModuleRenderer)==null?void 0:H.clientShouldSuppressIfCompanionAdDisplayed)||
(O==null?void 0:(L=O.unlimitedOfferModuleRenderer)==null?void 0:L.suppressIfCompanionAds);H=Z&&w;q.JSC$20174_watchApi.getRoot().is==="ytd-watch-grid"&&q.JSC$20174_watchApi.provideRenderingData("OFFER_MODULE",H?void 0:O)}},B5m=function(q,Z){_.b("swatcheroo_pbs_load_grid")&&(q.provideRichGridJobId&&_.v5.cancelJob(q.provideRichGridJobId),q.provideRichGridJobId=_.OM(_.v5,function(){q.provideRichGridJobId=0;
var w,r,Y,C,d,O,H,L=(w=q.JSC$20174_watchApi.getWatchNextResponse())==null?void 0:(r=w.contents)==null?void 0:(Y=r.twoColumnWatchNextResults)==null?void 0:(C=Y.secondaryResults)==null?void 0:(d=C.secondaryResults)==null?void 0:(O=d.results)==null?void 0:(H=O[0])==null?void 0:H.richGridRenderer;L&&q.JSC$20174_watchApi.provideRenderingData("RICH_GRID_RENDERER",L)},Z))},z76=function(q){var Z,w;
_.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$20174_watchApi.playerApi,2);Z=r.yieldResult;w=function(){q.onPlaybackStart()};
Z.addEventListener("onPlaybackStartExternal",w);q.addOnDisposeCallback(function(){Z.removeEventListener("onPlaybackStartExternal",w)});
_.ub(r)})};
aUd.prototype.onPlaybackStart=function(){B5m(this)};var E79=function(q){_.u6.call(this);var Z=this;this.JSC$20184_watchApi=q;q.playerApi.then(function(w){Z.player=w});
this.gestures=new _.vir(this.JSC$20184_watchApi.getRoot(),q.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(UR(_.sE().getState())&&_.KT(_.sE().getState())<=0)if(_.kW(_.sE().getState())){var w;(w=Z.player)==null||w.toggleFullscreen()}else _.yY(Z.JSC$20184_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
QwK(this)};
_.z(E79,_.u6);var QwK=function(q){var Z=_.wF(_.sE(),_.kW,function(w){q.gestures&&q.gestures.update(w)});
q.addOnDisposeCallback(Z);Z=_.wF(_.sE(),_.KT,function(w){q.gestures&&(w>0?q.gestures.detach():q.gestures.attach())});
q.addOnDisposeCallback(Z)};var T5w=function(q){_.u6.call(this);var Z=this;this.JSC$20187_watchApi=q;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
q=_.wF(_.sE(),UR,function(w){Z.onActiveChanged(w)});
this.addOnDisposeCallback(q);xUw(this);this.onActiveChanged(UR(_.sE().getState()))};
_.z(T5w,_.u6);var UUa=function(q){if(_.b("swatcheroo_page_dispose_all_watch_data"))q.pageDisposalDataTypes=Object.values(AmA).filter(function(w){return w!=="PLAYLIST"});
else if(_.b("swatcheroo_page_dispose_rich_grid")){var Z;(Z=q.pageDisposalDataTypes)==null||Z.push("RICH_GRID_RENDERER")}},xUw=function(q){_.b("swatcheroo_enable_ghost_cards")&&(UUa(q),q.JSC$20187_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.v5.cancelJob(q.clearDataJobId);
q.clearDataJobId=0}),q.runPageDisposeJob=function(){var Z=_.t().resolve(_.U1).getDestinationPageType()==="watch";
q.clearDataJobId=_.OM(_.v5,q.runClearDataJob,Z?0:_.m6("web_watch_delay_page_dispose_ms",1E4))},q.runClearDataJob=function(){kFX(q)},q.runOnYtNavigateAwayFinish=function(){q.clearDataJobId&&(_.v5.cancelJob(q.clearDataJobId),q.clearDataJobId=0,kFX(q))},document.addEventListener("yt-navigate-finish",q.runOnYtNavigateAwayFinish),n7m(q.JSC$20187_watchApi,q.runPageDisposeJob),q.addOnDisposeCallback(function(){var Z=q.JSC$20187_watchApi;
Z.rootElement.pageDisposeJobs&&_.F9(Z.rootElement.pageDisposeJobs,q.runPageDisposeJob);Tn(q.JSC$20187_watchApi,"yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",q.runOnYtNavigateAwayFinish)}))},kFX=function(q){q.pageDisposalDataTypes.forEach(function(Z){q.JSC$20187_watchApi.provideRenderingData(Z,void 0)});
q.clearDataJobId=0};
T5w.prototype.onActiveChanged=function(q){q&&((q=document.querySelector("#watch-page-skeleton"))&&_.Vb(q),KDF(this),document.body.removeAttribute("no-y-overflow"),_.BF("IS_SHELL_LOAD")&&_.khF())};
var KDF=function(q){_.V(function(Z){if(Z.nextAddress==1)return _.W(Z,q.JSC$20187_watchApi.playerApi,2);_.Fa();_.ub(Z)})};var swK=_.b("kevlar_watch_while_counterfactual")?0:.25,FDa=function(q){_.u6.call(this);this.JSC$20190_watchApi=q;this.JSC$20190_watchWhileEnabled=_.b("kevlar_watch_while_v2");this.pipEnabled=_.b("web_enable_pip_on_miniplayer");IUX(this);cYK(this);MXm(this)};
_.z(FDa,_.u6);var IUX=function(q){q.JSC$20190_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){N59(q)});
q.addOnDisposeCallback(function(){Tn(q.JSC$20190_watchApi,"yt-activate-miniplayer-from-watch-action")})},cYK=function(q){var Z,w;
_.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$20190_watchApi.playerApi,2);Z=r.yieldResult;w=function(){N59(q)};
Z.addEventListener("onCollapseMiniplayer",w);q.addOnDisposeCallback(function(){Z.removeEventListener("onCollapseMiniplayer",w)});
_.ub(r)})},MXm=function(q){var Z=q.JSC$20190_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&Z&&q.JSC$20190_watchWhileEnabled&&(q.playerIntersectionObserver=new IntersectionObserver(function(w){q.handleIntersect(w)},{threshold:[swK]}),q.playerIntersectionObserver.observe(Z),q.addOnDisposeCallback(function(){var w;
(w=q.playerIntersectionObserver)==null||w.disconnect()}))},N59=function(q){var Z,w,r;
_.V(function(Y){if(Y.nextAddress==1){Z=_.t().resolve(_.U1);w=Z.data;r=_.H3T(w.response,w.playerResponse);_.qk().miniplayerButtonActivation=!0;if(q.pipEnabled)return _.qk().watchPipActivation=!0,Y.jumpTo(2);_.t().resolve(_.Tf).collapse();return _.W(Y,_.qk().navigationFinishPromise,2)}if(Y.nextAddress!=4)return _.qk().currentEndpoint=r.watchEndpoint||null,_.W(Y,_.t().resolve(_.Tf).activate(q.JSC$20190_watchApi.getElement("PLAYER"),r,w),4);_.qk().userActivation=!0;_.ub(Y)})};
FDa.prototype.handleIntersect=function(q){lUr(this,q[q.length-1])};
var lUr=function(q,Z){q.watchWhileJobId&&_.v5.cancelJob(q.watchWhileJobId);q.watchWhileJobId=_.v5.addLowPriorityJob(function(){var w,r;return _.V(function(Y){if(Y.nextAddress==1)return q.watchWhileJobId=void 0,w=_.t().resolve(_.Tf),Z.intersectionRatio>swK?w.isMiniplayerActive()?_.W(Y,w.deactivate(),0):Y.jumpTo(0):(r=!w.isMiniplayerActive())?_.W(Y,GF9(q),5):Y.jumpTo(4);Y.nextAddress!=4&&(r=Y.yieldResult);if(!r)return Y.jumpTo(0);_.qk().watchWhileActivation=!0;return _.W(Y,pOK(q),0)})},100)},GF9=function(q){return _.V(function(Z){return Z.nextAddress==
1?_.b("kevlar_watch_while_paused")?Z.return(!0):_.W(Z,q.isPlayerPlaying(),2):Z.return(Z.yieldResult)})};
FDa.prototype.isPlayerPlaying=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1)return _.W(w,q.JSC$20190_watchApi.playerApi,2);Z=w.yieldResult;return w.return(Z.getPlayerStateObject().isPlaying)})};
var pOK=function(q){var Z,w;return _.V(function(r){Z=_.t().resolve(_.U1).data;w=_.H3T(Z.response,Z.playerResponse);_.qk().currentEndpoint=w.watchEndpoint||null;return _.W(r,_.t().resolve(_.Tf).activate(q.JSC$20190_watchApi.getElement("PLAYER"),w,Z),0)})};var AYg=function(q){_.u6.call(this);this.JSC$20194_watchApi=q;XOa(this);mUX(this)};
_.z(AYg,_.u6);var mUX=function(q){var Z,w;_.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$20194_watchApi.playerApi,2);Z=r.yieldResult;w=function(Y){var C;Y.sessionData&&Y.sessionData.itct&&(C=Y.sessionData.itct);var d=Y.watchEndpoint;if(d&&Y.sessionData&&Y.sessionData.autonav)d=_.Ize(d,C);else{var O;d=_.lI(Y.videoId,(O=Y.listId)!=null?O:void 0,C)}C={endpoint:d};Y.sessionData&&(C.tempData=Y.sessionData);q.JSC$20194_watchApi.dispatchEvent("yt-navigate",C)};
Z.addEventListener("onPlayVideo",w);q.addOnDisposeCallback(function(){Z.removeEventListener("onPlayVideo",w)});
_.ub(r)})},XOa=function(q){var Z=function(w){q.onYtNavigate(w)};
q.JSC$20194_watchApi.getRoot().addEventListener("yt-navigate",Z);q.addOnDisposeCallback(function(){q.JSC$20194_watchApi.getRoot().removeEventListener("yt-navigate",Z)})};
AYg.prototype.onYtNavigate=function(q){var Z=this,w,r,Y,C,d,O,H,L,S;return _.V(function(v){if(v.nextAddress==1){if(!((w=q.detail)==null?0:(r=w.endpoint)==null?0:r.watchEndpoint))return v.return();Y=q.detail.endpoint.watchEndpoint;C=Z.JSC$20194_watchApi.getWatchNextResponse();O=_.J((d=C)==null?void 0:d.currentVideoEndpoint,_.ck);if(!O)return v.return();if(Y.videoId!==O.videoId||Y.playlistId&&Y.playlistId!==O.playlistId||typeof Y.startTimeSeconds!=="number")return v.jumpTo(0);q.stopPropagation();(H=
_.b("kevlar_watch_while_v2")&&!_.b("kevlar_watch_while_counterfactual"))&&_.t().resolve(_.Tf).isMiniplayerActive()||Z.JSC$20194_watchApi.scrollWatchTo(0,!0);return _.W(v,Z.JSC$20194_watchApi.playerApi,3)}L=v.yieldResult;S=Y.startTimeSeconds;L.seekTo(S,void 0,void 0,void 0,84);L.wakeUpControls();S<L.getDuration()&&L.playVideo();_.ub(v)})};var ib6=function(q){_.u6.call(this);var Z=this;this.JSC$20197_watchApi=q;q=_.wF(_.sE(),_.WQT,function(){fUa(Z)});
this.addOnDisposeCallback(q);q=_.wF(_.sE(),_.Ilw,function(){fUa(Z)});
this.addOnDisposeCallback(q);DUI(this);h7v(this);yYF()};
_.z(ib6,_.u6);var DUI=function(q){var Z=function(r){_.sE().dispatch(_.M66(r.matches))},w=window.matchMedia("(max-width: "+(999+_.V$())+"px)");
w.addListener(Z);q.addOnDisposeCallback(function(){w.removeListener(Z)});
Z(w)},h7v=function(q){q.JSC$20197_watchApi.registerActionHandler("yt-window-resized",function(){yYF()});
q.addOnDisposeCallback(function(){Tn(q.JSC$20197_watchApi,"yt-window-resized")})},yYF=function(){var q=_.r3();
_.sE().dispatch(_.mu({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:q.width,height:q.height}}}))},fUa=function(q){var Z;
_.V(function(w){if(w.nextAddress==1)return _.W(w,q.JSC$20197_watchApi.playerApi,2);Z=w.yieldResult;Z.setSize(NaN,NaN);_.ub(w)})};var qAA=function(q){_.u6.call(this);var Z=this;this.JSC$20201_watchApi=q;var w=this.JSC$20201_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){g7g(Z)});
this.addOnDisposeCallback(function(){Z.JSC$20201_watchApi.unsubscribeByKey(w)});
g7g(this)};
_.z(qAA,_.u6);var g7g=function(q){var Z=q.JSC$20201_watchApi.getWatchNextResponse();if(Z){var w,r=[].concat(_.Ju((w=Z==null?void 0:Z.engagementPanels)!=null?w:[]));r.unshift.apply(r,_.Ju(Zym(Z)));q.JSC$20201_watchApi.provideRenderingData("ENGAGEMENT_PANELS",r)}},w0a=function(q){var Z;
if(_.b("enable_yoututor_for_learning_journeys")&&((Z=_.xi(window.location.href,"list"))==null?0:Z.startsWith("LJ")))return!0;var w,r,Y;Z=(w=q.engagementPanels)==null?void 0:(r=w.find(function(B){var n;return((n=B.engagementPanelSectionListRenderer)==null?void 0:n.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Y=r.engagementPanelSectionListRenderer.content)==null?void 0:Y.structuredDescriptionContentRenderer;
var C;if(_.J(Z==null?void 0:(C=Z.items)==null?void 0:C.find(function(B){return!!_.J(B,B9a)}),B9a))return!0;
var d,O,H,L;if(q=(((d=q.contents)==null?void 0:(O=d.twoColumnWatchNextResults)==null?void 0:(H=O.results)==null?void 0:(L=H.results)==null?void 0:L.contents)||[]).find(function(B){return B.videoPrimaryInfoRenderer})){var S,v,R;
return(((S=q.videoPrimaryInfoRenderer)==null?void 0:(v=S.videoActions)==null?void 0:(R=v.menuRenderer)==null?void 0:R.flexibleItems)||[]).some(function(B){B=_.J(B,_.FGX);if(!B)return!1;var n,x;B=(n=B.topLevelButton)==null?void 0:(x=n.buttonViewModel)==null?void 0:x.onTap;if(!B)return!1;n=_.oQ(B);if(!n)return!1;var K;return((K=_.J(n,_.zf))==null?void 0:K.panelIdentifier)==="PAyouchat"})}return!1},Zym=function(q){var Z=[];
if(!_.b("web_watch_inject_placeholder_fantasy_panel_killswitch")){var w,r,Y,C=(w=q.engagementPanels)==null?void 0:(r=w.find(function(O){var H;return((H=O.engagementPanelSectionListRenderer)==null?void 0:H.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Y=r.engagementPanelSectionListRenderer.content)==null?void 0:Y.structuredDescriptionContentRenderer,d;
_.J(C==null?void 0:(d=C.items)==null?void 0:d.find(function(O){return!!_.J(O,Z_9)}),Z_9)&&(w=_.CLj("PAsports_fantasy"),w.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Z.push(w))}w0a(q)&&(q=_.CLj("PAyouchat"),q.engagementPanelSectionListRenderer.targetId="PAyouchat",q.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Z.push(q));
return Z};var YAF=function(q){_.u6.call(this);this.JSC$20204_watchApi=q;rlv(this)};
_.z(YAF,_.u6);var rlv=function(q){q.JSC$20204_watchApi.registerActionHandler("yt-loop-command",function(Z){$ym(q,Z)});
q.JSC$20204_watchApi.registerActionHandler("yt-repeat-chapter-command",function(Z){ePK(q,Z)});
q.addOnDisposeCallback(function(){Tn(q.JSC$20204_watchApi,"yt-loop-command");Tn(q.JSC$20204_watchApi,"yt-repeat-chapter-command")})},$ym=function(q,Z){var w;
_.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$20204_watchApi.playerApi,2);w=r.yieldResult;_.J(Z,ruK).loop?(w.setLoopRange({startTimeMs:Number(_.J(Z,ruK).startTimeMs),endTimeMs:Number(_.J(Z,ruK).endTimeMs),postId:_.J(Z,ruK).postId,type:"clips"}),w.playVideo()):w.setLoopRange(null);_.ub(r)})},ePK=function(q,Z){var w,r;
_.V(function(Y){if(Y.nextAddress==1)return _.W(Y,q.JSC$20204_watchApi.playerApi,2);w=Y.yieldResult;r=_.J(Z,Pb6).repeat;r==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(w.setLoopRange({startTimeMs:Number(_.J(Z,Pb6).startTimeMs),endTimeMs:Number(_.J(Z,Pb6).endTimeMs),type:"repeatChapter"}),w.playVideo()):r==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&w.setLoopRange(null);_.ub(Y)})};var P96=function(q){_.u6.call(this);this.JSC$20209_watchApi=q;C9g(this)};
_.z(P96,_.u6);var C9g=function(q){q.JSC$20209_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(Z){dyK(q,Z)});
q.addOnDisposeCallback(function(){Tn(q.JSC$20209_watchApi,"yt-watch-player-overflow-menu-command")})},dyK=function(q,Z){var w,r,Y,C,d,O,H,L,S,v,R;
_.V(function(B){if(B.nextAddress==1)return _.W(B,q.JSC$20209_watchApi.playerApi,2);w=B.yieldResult;if(C=(Y=(r=_.J(Z,dXd))==null?void 0:r.highlightedMenuItemKey)!=null?Y:"")(O=(d=w).highlightSettingsMenuItem)==null||O.call(d,C);if(S=(L=(H=_.J(Z,dXd))==null?void 0:H.openMenuItemKey)!=null?L:"")(R=(v=w).openSettingsMenuItem)==null||R.call(v,S);_.ub(B)})};var Vxa=_.yG("/youtube/app/watch/player_state","playerStateEntity");var Hy6=function(q){_.u6.call(this);this.JSC$20212_watchApi=q;Oy8(this)};
_.z(Hy6,_.u6);var W38=function(q){switch(q){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"}},Oy8=function(q){var Z,w;
_.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$20212_watchApi.playerApi,2);Z=r.yieldResult;w=function(Y){q.onPlayerStateChange(Y)};
Z.addEventListener("onStateChange",w);q.addOnDisposeCallback(function(){Z.removeEventListener("onStateChange",w)});
_.ub(r)})};
Hy6.prototype.onPlayerStateChange=function(q){var Z=this,w,r;return _.V(function(Y){if(Y.nextAddress==1)return _.W(Y,Z.JSC$20212_watchApi.playerApi,2);w=Y.yieldResult;r=w.getVideoData().video_id;_.JJ().dispatch(_.wp("playerStateEntity",Vxa,{key:Vxa,playerState:W38(q),videoId:r}));_.ub(Y)})};var oaA=function(q){_.u6.call(this);var Z=this;this.JSC$20216_watchApi=q;q=_.sE();var w=_.wF(q,UR,function(r){Z.onActiveChanged(r)});
this.addOnDisposeCallback(w);_.t().resolve(_.b8).setPlayer(this.JSC$20216_watchApi.getElement("PLAYER"));this.onActiveChanged(UR(q.getState()))};
_.z(oaA,_.u6);oaA.prototype.onActiveChanged=function(q){var Z=this,w=_.t().resolve(_.b8),r=function(){u1r(Z)};
q?(q=this.JSC$20216_watchApi.getElement("PLAYLIST_PANEL"))?(w.setPlaylistComponent(q),w.addEventListener("yt-playlist-data-updated",r),this.addOnDisposeCallback(function(){w.removeEventListener("yt-playlist-data-updated",r)}),u1r(this)):_.xT(Error("im")):(w.removeEventListener("yt-playlist-data-updated",r),w.cancelVideoSkip())};
var u1r=function(q){var Z=_.t().resolve(_.b8);q.JSC$20216_watchApi.provideRenderingData("PLAYLIST",Z.getPlaylistData())};var j_6=function(q){_.u6.call(this);var Z=this;this.JSC$20219_watchApi=q;this.onPageScroll=function(){Z.scrollThrottle.fire();Z.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.pV(this.onThrottledScroll,200,this);_.$i(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.pV(this.onMastheadThrottledScroll,50,this);_.$i(this,this.mastheadScrollThrottle);this.animation=new _.JB(function(w){Z.JSC$20219_watchApi.getRoot().setScrollTop(w)});
q=_.wF(_.sE(),_.kW,function(){L3g(Z)});
this.addOnDisposeCallback(q);SAF(this);vav(this);this.onThrottledScroll()};
_.z(j_6,_.u6);
var L3g=function(q){var Z=q.JSC$20219_watchApi.getRoot();!q.pageScrollElement&&Z.pageScrollElement?(q.pageScrollElement=Z.pageScrollElement,Z.pageScrollElement.addEventListener("scroll",q.onPageScroll),q.addOnDisposeCallback(function(){q.pageScrollElement&&q.pageScrollElement.removeEventListener("scroll",q.onPageScroll)})):q.pageScrollElement&&!Z.pageScrollElement&&(q.pageScrollElement.removeEventListener("scroll",q.onPageScroll),q.pageScrollElement=void 0)},SAF=function(q){window.addEventListener("scroll",q.onPageScroll);
q.addOnDisposeCallback(function(){window.removeEventListener("scroll",q.onPageScroll)})},vav=function(q){q.JSC$20219_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(Z){a:{var w;
if(w=q.JSC$20219_watchApi.getRoot().contains(Z)&&!q.animation.isAnimating()){w=Z.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var r,Y,C=(Z==null?void 0:(r=Z.parentElement)==null?void 0:(Y=r.parentElement)==null?void 0:Y.id)==="fixed-secondary";w=!(w&&C)}if(w){if(_.b("kevlar_watch_scroll_manager_absolute_offset_killswitch"))r=Z.offsetTop;else for(r=0,Y=Z;Y!==null;)r+=Y.offsetTop,r-=Y.scrollTop,Y=Y.offsetParent;Y=r;r=Y-24;Z=Y+Z.offsetHeight+24;Y=q.JSC$20219_watchApi.getRoot().getPageScrollingElement();
w=q.JSC$20219_watchApi.getRoot().getScrollTop();C=w+Y.clientHeight-56;if(r<w+56)Z=r-56;else if(Z>C)Z-=Y.clientHeight;else break a;q.scrollWatchTo(Math.max(0,Z),!0)}}});
q.addOnDisposeCallback(function(){Tn(q.JSC$20219_watchApi,"yt-scroll-to-watch-element")})};
j_6.prototype.onThrottledScroll=function(){var q=_.sE(),Z=q.dispatch,w=this.JSC$20219_watchApi.getRoot().getScrollTop();Z.call(q,_.mu({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:w}}))};
j_6.prototype.onMastheadThrottledScroll=function(){this.JSC$20219_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20219_watchApi.getRoot().getScrollTop())};
j_6.prototype.scrollWatchTo=function(q,Z){(Z===void 0?0:Z)?this.animation.start(this.JSC$20219_watchApi.getRoot().getScrollTop(),Math.max(0,q),500):this.JSC$20219_watchApi.getRoot().setScrollTop(q)};var by8=function(q){_.u6.call(this);var Z=this;this.JSC$20222_watchApi=q;var w=this.JSC$20222_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){txw(Z)}),r=this.JSC$20222_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){RPI(Z)});
this.addOnDisposeCallback(function(){Z.JSC$20222_watchApi.unsubscribeByKey(w);Z.JSC$20222_watchApi.unsubscribeByKey(r)});
txw(this);RPI(this)};
_.z(by8,_.u6);
var txw=function(q){var Z,w,r,Y=(r=(Z=q.JSC$20222_watchApi.getPlayerResponse())==null?void 0:(w=Z.videoDetails)==null?void 0:w.title)!=null?r:"";q.JSC$20222_watchApi.dispatchEvent("yt-update-title",Y)},RPI=function(q){var Z,w,r,Y,C,d,O,H=(O=((d=(Z=q.JSC$20222_watchApi.getWatchNextResponse())==null?void 0:(w=Z.contents)==null?void 0:(r=w.twoColumnWatchNextResults)==null?void 0:(Y=r.results)==null?void 0:(C=Y.results)==null?void 0:C.contents)!=null?d:[]).find(function(L){return!!L.videoPrimaryInfoRenderer}))==null?
void 0:O.videoPrimaryInfoRenderer;
(Z=_.kO(H==null?void 0:H.title))&&q.JSC$20222_watchApi.dispatchEvent("yt-update-title",Z)};var zP6=function(q){_.u6.call(this);this.JSC$20225_watchApi=q;Jl9(this)};
_.z(zP6,_.u6);var Jl9=function(q){var Z,w;_.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$20225_watchApi.playerApi,2);Z=r.yieldResult;w=function(){q.onYpcContentRequest()};
Z.addEventListener("onYpcContentRequest",w);q.addOnDisposeCallback(function(){Z.removeEventListener("onYpcContentRequest",w)});
_.ub(r)})};
zP6.prototype.onYpcContentRequest=function(){var q,Z,w,r,Y,C=(q=this.JSC$20225_watchApi.getWatchNextResponse())==null?void 0:(Z=q.contents)==null?void 0:(w=Z.twoColumnWatchNextResults)==null?void 0:(r=w.secondaryResults)==null?void 0:(Y=r.secondaryResults)==null?void 0:Y.offerModule,d,O,H,L;q=(L=(H=(O=(d=C==null?void 0:C.episodeOfferModuleRenderer)!=null?d:C==null?void 0:C.movieOfferModuleRenderer)!=null?O:C==null?void 0:C.unlimitedOfferModuleRenderer)!=null?H:C==null?void 0:C.liveOfferModuleRenderer)!=
null?L:C==null?void 0:C.tvfilmOfferModuleRenderer;var S,v,R;C=(R=C==null?void 0:(S=C.tvfilmOfferModuleRenderer)==null?void 0:(v=S.actionButtons)==null?void 0:v.length)!=null?R:0;v=Math.max(C-1,0);var B,n,x;S=(x=q==null?void 0:(B=q.offerButton)==null?void 0:B.buttonRenderer)!=null?x:q==null?void 0:(n=q.actionButtons)==null?void 0:n[v].buttonRenderer;var K,k;(B=(k=(K=S==null?void 0:S.navigationEndpoint)!=null?K:S==null?void 0:S.serviceEndpoint)!=null?k:S==null?void 0:S.command)&&_.AJ.instance.resolveCommand(B)};_.cA=function(q){_.sd.call(this);var Z=this;this.rootElement=q;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return Z.activeModules}};
BJA(this);q=_.wF(_.sE(),UR,function(w){Z.initOrDisposeActiveModules(w)});
this.addOnDisposeCallback(q);this.initOrDisposeActiveModules(UR(_.sE().getState()));this.onAttached()};
_.z(_.cA,_.sd);_.cA.prototype.getRoot=function(){return this.rootElement};
_.cA.prototype.getElement=function(q){return this.rootElement.getElement(q)};
_.MF=function(q,Z){q.playerResponse=Z;q.publish("PLAYER_RESPONSE_UPDATED",Z)};
_.cA.prototype.getPlayerResponse=function(){return this.playerResponse};
_.FL=function(q,Z){q.watchNextResponse===Z?q.publish("WATCH_NEXT_RESPONSE_RELOADED"):(q.watchNextResponse=Z,q.publish("WATCH_NEXT_RESPONSE_UPDATED",Z))};
_.cA.prototype.getWatchNextResponse=function(){return this.watchNextResponse};
_.cA.prototype.registerActionHandler=function(q,Z){var w=this;if(_.b("web_watch_controller_reg_multiple_handlers_killswitch")){var r={};_.k7(_.UU.getInstance(),(r[q]=Z,r),this.getRoot())}else this.actionHandlers.has(q)||(this.actionHandlers.set(q,[]),r={},_.k7(_.UU.getInstance(),(r[q]=function(){var Y=_.Ta.apply(0,arguments);return(w.actionHandlers.get(q)||[]).map(function(C){return C.apply(null,_.Ju(Y))})},r),this.getRoot())),this.actionHandlers.get(q).push(Z)};
var Tn=function(q,Z){if(_.b("web_watch_controller_reg_multiple_handlers_killswitch")){var w={};_.Kb(_.UU.getInstance(),(w[Z]=!0,w),q.getRoot())}else(w=q.actionHandlers.get(Z))?(w.pop(),w.length===0&&(w={},_.Kb(_.UU.getInstance(),(w[Z]=!0,w),q.getRoot()),q.actionHandlers.delete(Z))):_.bx(new _.df("Attempted to unregister an action handler which is not registered.",Z))},n7m=function(q,Z){q.rootElement.pageDisposeJobs||(q.rootElement.pageDisposeJobs=[]);
_.R8T(q.rootElement.pageDisposeJobs,Z)};
_.cA.prototype.dispatchEvent=function(q,Z){_.hy(this.rootElement,q,Z)};
_.cA.prototype.provideRenderingData=function(q,Z){this.rootElement.provideRenderingData(q,Z)};
_.cA.prototype.scrollWatchTo=function(q,Z){var w;(w=this.watchScrollManager)==null||w.scrollWatchTo(q,Z)};
_.cA.prototype.focusOnPlayer=function(){var q=this.getElement("PLAYER");_.I_(q,function(){if(q&&q.firstElementChild){var Z=q.querySelector(".html5-video-player");Z&&(_.Wk9(_.t().resolve(_.d6)),Z.focus())}else _.bx(Error("jm"))})};
_.awm=function(q){var Z=!!q.rootElement.theater,w=!!q.rootElement.fullscreen,r;(r=q.watchCinematicManager)==null||o75(r,w,Z)};
_.cA.prototype.onAttached=function(){var q=_.b("external_fullscreen");_.b("use_unified_flag_accessor")&&(q=_.t().resolve(_.Qzl).retriever.getFlag(_.pN9));(q||_.BF("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var naw=function(q){return q.getRoot().is==="ytd-watch-flexy"||q.getRoot().is==="ytd-watch-grid"},NF=function(q){return q.getRoot().is==="ytd-watch-fixie"},BJA=function(q){if(NF(q)||naw(q)&&_.b("kevlar_watch_flexy_theater_manager")){var Z=new God(q);
_.$i(q,Z)}Z=new T5w(q);_.$i(q,Z);Z=new U5(q);_.$i(q,Z);Z=new aUd(q);_.$i(q,Z);Z=new Hy6(q);_.$i(q,Z);Z=new ku(q);_.$i(q,Z);if(NF(q)||naw(q)&&_.b("kevlar_watch_flexy_playlist_manager"))Z=new oaA(q),_.$i(q,Z)};
_.cA.prototype.initOrDisposeActiveModules=function(q){q?(this.watchScrollManager=new j_6(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new AYg(this)),this.activeModules.push(new pg9(this)),NF(this)&&this.activeModules.push(new ib6(this)),this.activeModules.push(new by8(this)),this.activeModules.push(new FDa(this)),(NF(this)||_.b("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new D4I(this)),this.activeModules.push(new YAF(this)),(NF(this)||
_.b("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new zP6(this)),(NF(this)||_.b("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new $Ud(this)),_.b("kevlar_watch_cinematics")&&(this.watchCinematicManager=new VXv(this),this.activeModules.push(this.watchCinematicManager),_.awm(this)),_.b("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new P96(this)),_.b("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new E79(this)),q=_.b("swatcheroo_directly_provide_comments")&&
this.getRoot().is==="ytd-watch-grid",_.b("kevlar_watch_flexy_comments_manager")&&!q&&this.activeModules.push(new tX6(this)),_.b("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new Phw(this)),this.activeModules.push(new y9A(this)),_.b("web_watch_inject_placeholder_panels")&&this.activeModules.push(new qAA(this)),_.b("web_enable_timely_actions")&&this.activeModules.push(new Zb5(this)),_.b("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new J9a(this)),_.b("web_watch_enable_multiview_manager")&&
this.activeModules.push(new oYd(this)),_.b("web_fullscreen_video_action_bar")&&this.activeModules.push(new gr9(this)),_.b("web_player_rtr_ctrls")&&this.activeModules.push(new BIw(this))):(_.vT6(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.cA.prototype.disposeInternal=function(){_.sd.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.My.Object.defineProperties(_.cA.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var wJC;wJC=function(q){switch(q){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:_.F7(q,"unknown result type")}};
_.rEF=function(q,Z,w){Z=_.WO8[Z];w={detected:q===0,source:Z.eOW,detectionResult:wJC(q),contentCpn:w};_.vO("biscottiBasedDetection",w);_.Z2p.increment(Z.eOW,q);Z.sr1!==void 0&&_.bO("CATSTAT",_.OOX(q,Z))};
_.T_=function(q,Z){var w={};w.key=q;w.value=Z;return _.NmX().then(function(r){return new Promise(function(Y,C){try{var d=r.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(w);d.onsuccess=function(){Y()};
d.onerror=function(){C()}}catch(O){C(O)}})})};
_.$xD=function(){var q=_.m6("user_engagement_experiments_rate_limit_ms"),Z=YL7.get("last-user-engagement-exp-trigger-timestamp");return!Z||(0,_.lp)()>=Z+q?(YL7.set("last-user-engagement-exp-trigger-timestamp",(0,_.lp)()),!0):!1};
_.Ud=function(q,Z,w,r,Y){Z=Z===void 0?null:Z;w=w===void 0?null:w;r=r===void 0?null:r;Y=Y===void 0?null:Y;q={youThereEventType:q};w&&(q.lactThresholdMs=w.lactThresholdMs,q.mediaPosSec=w.promptDelaySec,q.lactServerRequestMs=w.lactServerRequestMs,q.triggerReason=w.triggerReason);Y!=null&&(q.renderingMediaPosSec=Math.round(Y));Z||(Z=_.b5());Z&&(q.clientScreenNonce=Z);r&&(q.clientPlaybackNonce=r);_.vO("youThere",q)};var YL7=new _.zo("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.iyS=function(q){return _.mu({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:q})};
}catch(e){_._DumpException(e)}
try{
var s_v,NJI,lw8,GlA,kla,Uya,X0A;_.EaA=function(){var q=window.location.hash;q.charAt(0)==="#"&&(q=q.charAt(1)==="!"?q.substring(2):q.substring(1));return _.kT(q)};
_.xy9=function(q){var Z;_.V(function(w){Z=["b.f_","j.s_","r.s_","e.h_"];_.b("ab_det_sc_inj")&&Z.push("s.i_");_.b("ab_deg_unex_thr")||Z.push("a.o_");_.b("ks_get_o_pp")||Z.push("g.o_");_.b("ks_det_gpbl")||Z.push("p.i_");Z.push("f.i_");Z.push("a.b_");Z.push("p.m_");_.b("ab_det_el_h_v2")&&Z.push("n.h_");Z.push("o.p_");_.b("ab_det_apm")&&Z.push("o.a_");Z.forEach(function(r){var Y;return _.V(function(C){if(C.nextAddress==1)return _.W(C,_.yO1[r](),2);Y=C.yieldResult;q(Y,r);_.ub(C)})});
_.ub(w)})};
_.TJa=function(q,Z){q={videoId:q};Z&&(q.playlistId=Z);return q};
_.K36=function(){if(!_.b("disable_biscotti_fetch_for_ad_blocker_detection")&&!_.b("disable_biscotti_fetch_entirely_for_all_web_clients")&&_.f7N()){var q=_.zj("PLAYER_VARS",{});if(_.R4.get(q,"privembed",!1)!="1"&&!_.yHz(q)){var Z=function(){Uya=!0;"google_ad_status"in window?_.bO("DCLKSTAT",1):_.bO("DCLKSTAT",2)};
try{_.np("//static.doubleclick.net/instream/ad_status.js",Z)}catch(w){}kla.push(_.v5.addLowPriorityJob(function(){if(!(Uya||"google_ad_status"in window)){try{_.I71("//static.doubleclick.net/instream/ad_status.js",Z)}catch(w){}Uya=!0;_.bO("DCLKSTAT",3)}},5E3))}}};
s_v=function(q){return _.b("web_watch_adjust_sidebar_width")?_.NJ+((q===void 0?1500:q)-_.Q3F)/100*_.Eq5:_.NJ};
_.Iwg=function(q,Z){q=q.width-_.XOu();var w=s_v(q);return Math.max(w,Math.min(_.UX8,w+(q-(_.T9X+s_v(q)+_.MJ+2*_.MJ+Z))))};
_.clw=function(q,Z,w){w=w===void 0?!1:w;var r=Math.max(q.width,_.xX9);if(_.b("kevlar_watch_feed_big_thumbs")&&q.width>=1550-_.V$()&&q.height>=800)r-=_.IJ6;else if(q.width>=_.FC){var Y=_.T9X+s_v(q.width)+_.MJ;_.b("kevlar_watch_feed_big_thumbs")&&(Y=_.s3A);r-=Y}else r-=_.T9X;r=Math.min(r,_.k$a);Y=240;w&&(Y=380);Z<.5624||(!_.b("kevlar_watch_flexy_disable_small_window_sizing")&&(q.height<630&&q.width>=657||q.height>=630&&q.width>=_.FC&&q.width<1327)?Y=360:!_.b("kevlar_watch_flexy_disable_large_window_sizing")&&
q.height>=630&&q.width>=1327&&(Y=480));var C=Math.min(r*Z,q.height-(56+_.nqd+_.KTK));C=Math.max(C,Y);Z<1?r=C/Z:q.width>=_.FC&&(r=_.clw(q,.5625,w).width);return new _.O3(Math.round(r),Math.round(C))};
_.Mxm=function(q){var Z=0;q.indexOf("h")!=-1&&(q=q.split("h"),Z=q[0]*60*60,q=q[1]);q.indexOf("m")!=-1&&(q=q.split("m"),Z=q[0]*60+Z,q=q[1]);q.indexOf("s")!=-1?(q=q.split("s"),Z=q[0]*1+Z):Z=q*1+Z;return Z};
_.F3a=function(){_.m6("service_worker_push_logged_out_prompt_watches")!=-1&&_.II("WatchCount").then(function(q){q>=100||_.T_("WatchCount",q+1)})};
NJI=function(q){var Z=q.externalVideoId||"";return Z?(_.b("webfe_watch_shorts_canonical_url_fix")||_.zj("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&q.isShortsEligible?"https://www.youtube.com/shorts/"+Z:"https://www.youtube.com/watch?v="+Z:""};
lw8=function(q){var Z=[];q.viewCount&&Z.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:q.viewCount});q.likeCount&&Z.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:q.likeCount});return Z};
GlA=function(q){var Z,w,r={"@context":"https://schema.org","@type":"VideoObject",description:_.kO(q.description),duration:"PT"+(q.lengthSeconds||"0")+"S",embedUrl:q.embed?q.embed.iframeUrl:"",name:_.kO(q.title),thumbnailUrl:((Z=q.thumbnail)==null?void 0:(w=Z.thumbnails)==null?void 0:w.map(function(S){return S&&S.url||""}))||[],
uploadDate:q.publishDate};_.b("mweb_video_schema_id_killswitch")||(r["@id"]=NJI(q));Z=lw8(q);Z.length&&(r.interactionStatistic=Z);q.category&&(r.genre=q.category);q.ownerChannelName&&(r.author=q.ownerChannelName);q.liveBroadcastDetails&&(r.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:q.liveBroadcastDetails.startTimestamp,endDate:q.liveBroadcastDetails.endTimestamp}]);if(q.learningResource){q=q.learningResource;r["@type"]=["VideoObject","LearningResource"];var Y;if((Y=q.learningResourceType)==
null?0:Y.length)r.learningResourceType=q.learningResourceType[0];var C;if((C=q.educationalAlignment)==null?0:C.length)r.educationalAlignment={"@type":"AlignmentObject",targetName:q.educationalAlignment[0]};var d;if((d=q.educationalLevel)==null?0:d.length){Y=q.educationalLevel[0];var O;if((O=q.educationalLevelCountry)==null?0:O.length)Y+=" ("+q.educationalLevelCountry+")";r.educationalLevel=Y}var H,L;if(((H=q.learningResourceType)==null?0:H.length)&&q.learningResourceType[0]==="Problem walkthrough"&&
((L=q.problemDescriptions)==null?0:L.length))for(r.hasPart=[],O=_.P(q.problemDescriptions),H=O.next();!H.done;H=O.next())Y=H.value,H=Y.problemDescriptionText,L=Y.startOffset,Y=Y.url,H&&L!==void 0&&Y&&r.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:H,text:H,startOffset:L,url:Y})}return r};
_.p0a=function(q){return _.mu({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:q}})};
kla=[];Uya=!1;X0A=new _.D("updateSentimentBarStateCommand");_.myd=new _.D("showSurveyCommand");_.Gn=new _.D("changeMarkersVisibilityCommand");var fww,DyI,gav,iyK,ylI,pf;_.Al8=function(q,Z){this.playerProvider_=q;this.actionSenderElement_=Z;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.Al8.prototype.reset=function(){fww(this);this.isUserPredictedAbsent_=!1};
fww=function(q,Z){!q.youThereData_||q.showWarningJob_||Z!==void 0&&Z||(_.Ud("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.b5(),q.youThereData_,q.clientPlaybackNonce_),_.jX());_.v5.cancelJob(q.showWarningJob_);q.showWarningJob_=0;_.v5.cancelJob(q.showBlockingWarningJob_);q.showBlockingWarningJob_=0;_.v5.cancelJob(q.pausePlaybackJob_);q.pausePlaybackJob_=0;q.youThereData_=null;q.clientPlaybackNonce_=void 0;q.inYouThereFlow_=!1};
_.hPw=function(q,Z){var w,r,Y;_.V(function(C){if(C.nextAddress==1)return q.reset(),_.W(C,q.playerProvider_().getPlayerPromise(),2);w=C.yieldResult;q.clientPlaybackNonce_=w.getVideoData().cpn;q.youThereData_=Z.configData.youThereData;if(!q.youThereData_)return C.return();if(q.youThereData_.triggerReason&&q.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.$xD())return _.Ud("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.b5(),q.youThereData_,q.clientPlaybackNonce_),C.return();r=q.youThereData_.promptDelaySec;
Y=w.getCurrentTime();q.showWarningJob_=_.v5.addLowPriorityJob(function(){return _.V(function(d){q.showWarningJob_=0;return _.W(d,DyI(q),0)})},Math.max(r-Y,0)*1E3);
_.ub(C)})};
DyI=function(q){var Z,w,r,Y,C,d;return _.V(function(O){if(O.nextAddress==1)return _.W(O,q.playerProvider_().getPlayerPromise(),2);if(O.nextAddress!=3)return Z=O.yieldResult,w=Z.getCurrentTime(),_.W(O,ylI(q),3);r=O.yieldResult;if(!r||!q.youThereData_)return O.return();if(_.b("check_user_lact_at_prompt_shown_time_on_web")&&(Y=parseInt(q.youThereData_.lactThresholdMs,10),_.pB()<Y))return _.Ud("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.b5(),q.youThereData_,q.clientPlaybackNonce_),O.return();if(q.youThereData_.playbackPauseDelayMs<=
0)return iyK(q),O.return();!_.b("external_fullscreen")&&(C=_.mJ())&&(q.ignoreFullscreenExitUserActivity_=!0,_.v5.addLowPriorityJob(function(){q.ignoreFullscreenExitUserActivity_=!1},2E3),_.Ay(C));
q.youThereData_.showToastWarningPrompt&&(pf(q,q.youThereData_.showWarningActions),q.inYouThereFlow_=!0,_.Ud("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.b5(),q.youThereData_,q.clientPlaybackNonce_,w),_.Ud("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.b5(),q.youThereData_,q.clientPlaybackNonce_,w));d=0;q.youThereData_.blockingPromptDelayMs&&(d=q.youThereData_.blockingPromptDelayMs);q.showBlockingWarningJob_=_.v5.addLowPriorityJob(function(){return _.V(function(H){q.showBlockingWarningJob_=0;return _.W(H,
gav(q),0)})},d);
_.ub(O)})};
gav=function(q){var Z,w,r;return _.V(function(Y){if(Y.nextAddress==1)return _.W(Y,ylI(q),2);Z=Y.yieldResult;if(!q.youThereData_)return Y.return();Z&&(q.youThereData_.showBlockingWarningAction&&(_.Ud("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.b5(),q.youThereData_,q.clientPlaybackNonce_),(w=_.J(q.youThereData_.showBlockingWarningAction,_.$K))?pf(q,w.commands):pf(q,[q.youThereData_.showBlockingWarningAction]),q.inYouThereFlow_=!0),r=q.youThereData_.playbackPauseDelayMs,q.pausePlaybackJob_=
_.v5.addLowPriorityJob(function(){return _.V(function(C){q.pausePlaybackJob_=0;return _.W(C,iyK(q),0)})},r));
_.ub(Y)})};
iyK=function(q){var Z;return _.V(function(w){if(w.nextAddress==1)return _.W(w,ylI(q),2);Z=w.yieldResult;if(!q.youThereData_)return w.return();Z&&(_.Ud("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.b5(),q.youThereData_,q.clientPlaybackNonce_),pf(q,q.youThereData_.showPausedActions),q.inYouThereFlow_=!0);_.ub(w)})};
_.Al8.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var q=_.J(this.youThereData_.userActiveDuringFlowAction,_.$K);q?pf(this,q.commands):pf(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Ud("YOU_THERE_EVENT_TYPE_LACT_RESET",_.b5(),this.youThereData_,this.clientPlaybackNonce_),_.jX());fww(this,!0)}_.qPK(this,!1)};
_.ZpA=function(q){_.Ud("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.b5(),q.youThereData_,q.clientPlaybackNonce_)};
ylI=function(q){var Z,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,q.playerProvider_().getPlayerPromise(),2);Z=r.yieldResult;w=Z.getPlayerState();return r.return(w==-1||w==1||w==3)})};
_.qPK=function(q,Z){var w;_.V(function(r){if(r.nextAddress==1){if(q.isUserPredictedAbsent_==Z)return r.jumpTo(0);q.isUserPredictedAbsent_=Z;return _.W(r,q.playerProvider_().getPlayerPromise(),3)}w=r.yieldResult;w.setUserEngagement(Z);Z&&_.Ud("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.b5(),q.youThereData_,q.clientPlaybackNonce_);_.ub(r)})};
pf=function(q,Z){if(_.b("handle_service_request_actions")||_.b("kevlar_youthere_service_endpoint_actions_killswitch"))_.ZC(q.actionSenderElement_,Z,q.actionSenderElement_);else{Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next())w=w.value,w.commandMetadata&&w.commandMetadata.webCommandMetadata&&w.commandMetadata.webCommandMetadata.sendPost?_.qM(q.actionSenderElement_,[w]):_.ZC(q.actionSenderElement_,[w],q.actionSenderElement_)}};var wkA;var ry9;var YPd=function(){var q=_.N.apply(this,arguments)||this;q.systemIcons=_.b("kevlar_system_icons");q.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return q};
_.z(YPd,_.N);YPd.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var q=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(q=this.data.percentIfLiked||0,this.activated=!0):(q=this.data.percentIfIndifferent||0,this.activated=!1);_.E(this.hostElement).querySelector("#like-bar").style.width=q+"%"}};
YPd.prototype.handleUpdateSentimentBarStateCommand=function(q){this.data&&this.set("data.likeStatus",_.J(q,X0A).likeStatus)};
var XL=YPd;XL.prototype.observeLikeStatus=XL.prototype.observeLikeStatus;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],XL.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],XL.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],XL.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],XL.prototype,"activated",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],XL.prototype,"systemIcons",void 0);_.X([_.M("data.likeStatus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],XL.prototype,"observeLikeStatus",null);XL=_.X([_.l({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],XL);
_.p(XL,"ytd-sentiment-bar-renderer",function(){if(ry9!==void 0)return ry9;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ry9=q},{mode:1});var $$v;var eEK=function(){var q=_.N.apply(this,arguments)||this;q.small=!0;return q};
_.z(eEK,_.N);var mY=eEK;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],mY.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],mY.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],mY.prototype,"small",void 0);mY=_.X([_.l({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],mY);
_.p(mY,"ytd-video-view-count-renderer",function(){if($$v!==void 0)return $$v;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return $$v=q},{mode:_.NT("kevlar_poly_si_batch_j080")?1:2});var AR=function(){var q=_.N.apply(this,arguments)||this;q.infoFormattedStrings=[];q.wrapVideoActions=_.b("kevar_watch_wrap_video_actions");q.hideSentimentBar=_.b("kevlar_watch_hide_sentiment_bar");q.actionMap={};return q};
_.z(AR,_.N);_.e=AR.prototype;_.e.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.b("web_modern_buttons"),forceIconButton:!_.b("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.e.dataChanged=function(){_.b("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.e.computeInfoFormattedStrings=function(q){if(!q)return[];var Z=[];q.dateText&&Z.push(q.dateText);q.stationName&&Z.push(q.stationName);q.rating&&Z.push(q.rating);q.startEndTimeTemplate&&q.startTimeUtcMillis&&q.endTimeUtcMillis&&Z.push(_.UE(_.sq6(_.kO(q.startEndTimeTemplate),Number(q.startTimeUtcMillis),Number(q.endTimeUtcMillis))));q.upNextProgramText&&Z.push(q.upNextProgramText);return Z};
_.e.scheduleInitialUpdatedMetadataRequest=function(){var q,Z=(q=this.data)==null?void 0:q.updatedMetadataEndpoint;if(Z){var w;q=Number((w=_.J(Z,_.ufm))==null?void 0:w.initialDelayMs);w=isNaN(q)?250:q;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),w)}};
_.e.setSentimentBarWidth=function(){var q=this;_.I_(this,function(){var Z=_.E(q.hostElement).querySelector("ytd-menu-renderer");if(Z){Z=Z.topLevelButtons;for(var w=0,r=0;r<Z.length;r++){var Y=Z[r],C=q.get("toggleButtonSupportedData.toggleButtonIdData.id",Y.data);if(C==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||C==="TOGGLE_BUTTON_ID_TYPE_LIKE")w+=Y.clientWidth+8;else break}w&&(q.sentiment.style.width=w-8+" px")}})};
_.e.fetchUpdatedMetadata=function(q){var Z;q&&(Z={continuation:q});var w;(q=(w=this.data)==null?void 0:w.updatedMetadataEndpoint)&&_.t().resolve(_.ps).resolveCommand(q,{form:Object.assign({},Z,{element:this.hostElement})})};
_.e.onYtServiceRequestSent=function(q,Z){Z.endpoint&&_.J(Z.endpoint,_.Ig)&&(this.hasUpdateSentimentBarStateCommands()&&!_.b("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.J(Z.endpoint,_.Ig).status),this.setSentimentBarWidth())};
_.e.hasUpdateSentimentBarStateCommands=function(){var q,Z,w,r,Y=(r=(q=this.data)==null?void 0:(Z=q.videoActions)==null?void 0:(w=Z.menuRenderer)==null?void 0:w.topLevelButtons)!=null?r:[];q=_.P(Y);for(Z=q.next();!Z.done;Z=q.next()){Z=Z.value;Y=r=w=void 0;var C=(w=Z.toggleButtonRenderer)==null?void 0:(r=w.toggleButtonSupportedData)==null?void 0:(Y=r.toggleButtonIdData)==null?void 0:Y.id;if(C==="TOGGLE_BUTTON_ID_TYPE_LIKE"||C==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){r=w=void 0;Z=(r=_.J((w=Z.toggleButtonRenderer)==
null?void 0:w.defaultServiceEndpoint,_.$K))==null?void 0:r.commands;if(!Z)break;Z=_.P(Z);for(w=Z.next();!w.done;w=Z.next())if(_.J(w.value,X0A))return!0}}return!1};
_.e.onYtServiceRequestCompleted=function(q,Z){var w;(q=(w=Z.data)==null?void 0:w.loggingDirectives)&&_.mmO(_.iy(),q);this.get("continuation.timedContinuationData",Z.data)&&this.data&&this.data.updatedMetadataEndpoint&&(Z=Z.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,Z.continuation),Z.timeoutMs))};
_.e.computeHasDateText=function(q){return!!q&&!!q.dateText};
_.My.Object.defineProperties(AR.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r;return!((r=(q=this.data)==null?void 0:(Z=q.videoActions)==null?void 0:(w=Z.menuRenderer)==null?void 0:w.flexibleItems)==null||!r.length)}}});
AR.prototype.onYtServiceRequestCompleted=AR.prototype.onYtServiceRequestCompleted;AR.prototype.onYtServiceRequestSent=AR.prototype.onYtServiceRequestSent;AR.prototype.dataChanged=AR.prototype.dataChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],AR.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],AR.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.EY.YtTaskEmitterBehavior),_.A("design:type",Object)],AR.prototype,"ytTaskEmitterBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],AR.prototype,"data",void 0);_.X([_.F({computed:"computeInfoFormattedStrings(data)"}),_.A("design:type",Array)],AR.prototype,"infoFormattedStrings",void 0);
_.X([_.F({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],AR.prototype,"hasDateText",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],AR.prototype,"wrapVideoActions",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],AR.prototype,"hideSentimentBar",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AR.prototype,"flexMenuEnabled",null);
_.X([_.fo("#sentiment"),_.A("design:type",Object)],AR.prototype,"sentiment",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AR.prototype,"dataChanged",null);_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],AR.prototype,"onYtServiceRequestSent",null);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],AR.prototype,"onYtServiceRequestCompleted",null);
_.p(AR,"ytd-video-primary-info-renderer",function(){if(wkA===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);wkA=q}q=wkA;return q},{mode:1});var C5r;var ff=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return q};
_.z(ff,_.N);_.e=ff.prototype;_.e.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"}}}};
_.e.dataChanged=function(){var q;this.descriptionToggled=!((q=this.data)==null||!q.defaultExpanded);var Z;this.collapsed=this.descriptionAlwaysCollapsed||!((Z=this.data)==null?0:Z.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.C6(110509);this.showLessClientVe=_.C6(110510);q=_.b5();Z=_.Rs();q&&Z&&_.k0(q,Z,[this.showMoreClientVe,this.showLessClientVe])};
_.e.onYtExpanderMoreTapped=function(){var q,Z=(q=this.data)==null?void 0:q.showMoreCommand;Z&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(Z);(q=_.b5())&&this.showMoreClientVe&&_.sh(q,this.showMoreClientVe)};
_.e.onYtExpanderLessTapped=function(){var q=_.b5();q&&this.showLessClientVe&&_.sh(q,this.showLessClientVe);var Z;(q=(Z=this.data)==null?void 0:Z.showLessCommand)&&this.componentBehavior.resolveCommand(q)};
_.e.handleUpdateDateTextAction=function(q){this.data&&this.data.dateText&&this.set("data.dateText",_.J(q,_.t85).dateText)};
_.e.handleUpdateDescriptionAction=function(q){if(q=_.J(q,_.yD9))q.isEmpty||!q.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.V1(q.description)):this.set("data.description",q.description)};
_.e.onYtChangeEngagementPanelVisibilityAction=function(q){if(_.b("web_structured_description_show_more")||_.b("web_engagement_panel_open_description")){var Z,w=(Z=_.J(q,_.$1h))==null?void 0:Z.targetId,r;q=((r=_.J(q,_.$1h))==null?void 0:r.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";w==="engagement-panel-structured-description"&&q&&(this.descriptionToggled=!0)}};
_.e.updateCollapsedFromBinding=function(q){this.collapsed=q.detail.value};
_.e.updateDescriptionToggledFromBinding=function(q){this.descriptionToggled=q.detail.value};
_.e.updateCanCollapseFromBinding=function(q){this.canCollapse=q.detail.value};
_.My.Object.defineProperties(ff.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var q,Z,w=(q=this.data)==null?void 0:(Z=q.metadataRowContainer)==null?void 0:Z.metadataRowContainerRenderer;return!!w&&!!w.rows&&w.rows.length>w.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.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}}});
ff.prototype.onYtExpanderLessTapped=ff.prototype.onYtExpanderLessTapped;ff.prototype.onYtExpanderMoreTapped=ff.prototype.onYtExpanderMoreTapped;ff.prototype.dataChanged=ff.prototype.dataChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],ff.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ff.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ff.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],ff.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ff.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],ff.prototype,"collapsed",void 0);_.X([_.F(),_.A("design:type",Boolean)],ff.prototype,"descriptionToggled",void 0);
_.X([_.F(),_.A("design:type",Boolean)],ff.prototype,"canCollapse",void 0);_.X([_.F(),_.A("design:type",Object)],ff.prototype,"subscribeButtonData",void 0);_.X([_.F(),_.A("design:type",Number)],ff.prototype,"descriptionCollapsedHeight",void 0);_.X([_.F(),_.A("design:type",Object)],ff.prototype,"structuredDescriptionContentRenderer",void 0);_.X([_.F({value:function(){return _.b("web_watch_description_always_collapsed")}}),
_.A("design:type",Boolean)],ff.prototype,"descriptionAlwaysCollapsed",void 0);_.X([_.fo("#description"),_.A("design:type",HTMLDivElement)],ff.prototype,"description",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ff.prototype,"dataChanged",null);_.X([_.m2("yt-expander-more-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ff.prototype,"onYtExpanderMoreTapped",null);
_.X([_.m2("yt-expander-less-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ff.prototype,"onYtExpanderLessTapped",null);_.X([_.I("data.metadataRowContainer"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ff.prototype,"metadataCollapsible",null);_.X([_.I("data","structuredDescriptionContentRenderer"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ff.prototype,"hasInlineStructuredDescription",null);
_.X([_.I("data.attributedDescription"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ff.prototype,"hasAttributedDescription",null);_.X([_.I("hasInlineStructuredDescription","collapsed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ff.prototype,"loadStructuredDescription",null);_.X([_.I("data","structuredDescriptionContentRenderer","collapsed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ff.prototype,"showInlineStructuredDescription",null);
_.X([_.I("data","hasInlineStructuredDescription","metadataCollapsible"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ff.prototype,"descriptionAlwaysCollapsible",null);
_.p(ff,"ytd-video-secondary-info-renderer",function(){if(C5r===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);C5r=q}q=C5r;return q},{mode:2});var P5g;var Dr=function(){return _.N.apply(this,arguments)||this};
_.z(Dr,_.N);Dr.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:_.b("web_modern_buttons"),forceIconButton:!_.b("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Dr.prototype.activate=function(q){q.appendTo(this.player);q.getPlayerPromise().then(function(Z){Z.setMinimized(!0)});
this.active=!0};
Dr.prototype.deactivate=function(){var q=this.player.firstElementChild;q.getPlayerPromise().then(function(Z){Z.setMinimized(!1)});
this.active=!1;return q};
Dr.prototype.onScrollUpTap=function(){var q=_.t().resolve(_.U1).getCurrentPage();q&&q.setScrollTop(0)};
var hR=Dr;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],hR.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],hR.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],hR.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],hR.prototype,"active",void 0);
_.X([_.F({reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.A("design:type",Boolean)],hR.prototype,"darkLaunch",void 0);_.X([_.fo("#player"),_.A("design:type",HTMLDivElement)],hR.prototype,"player",void 0);hR=_.X([_.l({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],hR);
_.p(hR,"ytd-miniplayer-bar-renderer",function(){if(P5g!==void 0)return P5g;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return P5g=q},{mode:1});_.xc(_.xl(function(q){var Z=_.Iw();_.L7(function(){var w;if(w=JSON)w=GlA(q.data()),w=_.pA(JSON.stringify(w).replace(/</g,"\\u003C"));var r=q.data(),Y=_.kO(r.title).trim().length===0,C=!r.publishDate||r.publishDate.trim().length===0,d,O,H,L,S=!((d=r.thumbnail)==null?0:(O=d.thumbnails)==null?0:O.length)||!((H=r.thumbnail)==null?0:H.thumbnails[0].url)||((L=r.thumbnail)==null?void 0:L.thumbnails[0].url.trim().length)===0;Z.value&&w&&!(Y||C||S)&&_.X5(Z.value,w)});
return _.u("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.u("script",{el:Z,type:"application/ld+json"}))},"xi"),"player-microformat-renderer",{props:{data:_.EL}});
}catch(e){_._DumpException(e)}
try{
var IYc,US,csb,Muq,NG6,lYD,Fi7,GhS;IYc=function(){var q=_.oV();q.info||(q.info={});return q.info};
US=function(q){return Math.round(_.LR()+q)};
csb=function(){var q;if(_.b("csi_use_performance_navigation_timing")||_.b("csi_use_performance_navigation_timing_tvhtml5")){var Z,w,r,Y=_.uI==null?void 0:(q=_.uI.getEntriesByType)==null?void 0:(Z=q.call(_.uI,"navigation"))==null?void 0:(w=Z[0])==null?void 0:(r=w.toJSON)==null?void 0:r.call(w);Y?(Y.requestStart=US(Y.requestStart),Y.responseEnd=US(Y.responseEnd),Y.redirectStart=US(Y.redirectStart),Y.redirectEnd=US(Y.redirectEnd),Y.domainLookupEnd=US(Y.domainLookupEnd),Y.connectStart=US(Y.connectStart),
Y.connectEnd=US(Y.connectEnd),Y.responseStart=US(Y.responseStart),Y.secureConnectionStart=US(Y.secureConnectionStart),Y.domainLookupStart=US(Y.domainLookupStart),Y.isPerformanceNavigationTiming=!0,q=Y):q=_.uI.timing}else q=_.b("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.uI.timing)):_.uI.timing;return q};
Muq=function(){if(_.uI.getEntriesByType){var q=_.uI.getEntriesByType("paint");if(q=_.KX(q,function(w){return w.name==="first-paint"}))return US(q.startTime)}var Z;
_.b("csi_use_performance_navigation_timing")||_.b("csi_use_performance_navigation_timing_tvhtml5")?Z=_.uI.getEntriesByType("first-paint")[0].startTime:Z=_.uI.timing.msFirstPaint;return Z?Math.max(0,Z):0};
NG6=function(){var q=window.location.protocol,Z=_.uI.getEntriesByType("resource");Z=_.qY(Z,function(w){return w.name.indexOf(q+"//fonts.gstatic.com/s/")===0});
(Z=Fi7(Z,function(w,r){return r.duration>w.duration?r:w}))&&Z.startTime>0&&Z.responseEnd>0&&(_.SK("wffs",US(Z.startTime)),_.SK("wffe",US(Z.responseEnd)))};
lYD=function(q,Z){q=document.querySelector(q);if(!q)return!1;var w="",r=q.nodeName;r==="SCRIPT"?(w=q.src,w||(w=q.getAttribute("data-timing-href"))&&(w=window.location.protocol+w)):r==="LINK"&&(w=q.href);_.lg(document)&&q.setAttribute("nonce",_.lg(document));return w?(q=_.uI.getEntriesByName(w))&&q[0]&&(q=q[0],w=_.LR(),_.SK("rsf_"+Z,w+Math.round(q.fetchStart)),_.SK("rse_"+Z,w+Math.round(q.responseEnd)),q.transferSize!==void 0&&q.transferSize===0)?!0:!1:!1};
_.pU7=function(q,Z){_.QV(function(){_.nDj("").info.actionType=q;Z&&_.bO("TIMING_AFT_KEYS",Z);_.bO("TIMING_ACTION",q);var w=_.pRX(_.zj("TIMING_INFO",{}));Object.keys(w).length>0&&_.vd(w);w={isNavigation:!0,actionType:_.xB9(_.zj("TIMING_ACTION"))};var r=_.zj("PREVIOUS_ACTION");r&&(w.previousAction=_.xB9(r));if(r=_.zj("CLIENT_PROTOCOL"))w.httpProtocol=r;if(r=_.zj("CLIENT_TRANSPORT"))w.transportProtocol=r;(r=_.b5())&&r!=="UNDEFINED_CSN"&&(w.clientScreenNonce=r);r=_.GTI();if(r===1||r===-1)w.isVisible=
!0;r=_.tg9().loadType==="cold";var Y=IYc();r||(r=Y.yt_lt==="cold");if(r){w.loadType="cold";r=IYc();Y=csb();var C=_.LR(),d=_.zj("CSI_START_TIMESTAMP_MILLIS",0);d>0&&!_.b("embeds_web_enable_csi_start_override_killswitch")&&(C=d);C&&(_.SK("srt",Y.responseStart),r.prerender!==1&&_.sWe(C));r=Muq();r>0&&_.SK("fpt",r);r=csb();r.isPerformanceNavigationTiming&&_.vd({performanceNavigationTiming:!0},void 0);_.SK("nreqs",r.requestStart,void 0);_.SK("nress",r.responseStart,void 0);_.SK("nrese",r.responseEnd,void 0);
r.redirectEnd-r.redirectStart>0&&(_.SK("nrs",r.redirectStart,void 0),_.SK("nre",r.redirectEnd,void 0));r.domainLookupEnd-r.domainLookupStart>0&&(_.SK("ndnss",r.domainLookupStart,void 0),_.SK("ndnse",r.domainLookupEnd,void 0));r.connectEnd-r.connectStart>0&&(_.SK("ntcps",r.connectStart,void 0),_.SK("ntcpe",r.connectEnd,void 0));r.secureConnectionStart>=_.LR()&&r.connectEnd-r.secureConnectionStart>0&&(_.SK("nstcps",r.secureConnectionStart,void 0),_.SK("ntcpe",r.connectEnd,void 0));_.uI&&"getEntriesByType"in
_.uI&&NG6();r=[];if(document.querySelector&&_.uI&&_.uI.getEntriesByName)for(var O in GhS)GhS.hasOwnProperty(O)&&(Y=GhS[O],lYD(O,Y)&&r.push(Y));if(r.length>0)for(w.resourceInfo=[],O=_.P(r),r=O.next();!r.done;r=O.next())w.resourceInfo.push({resourceCache:r.value})}_.vd(w);w=_.bDT();w.preLoggedGelInfos||(w.preLoggedGelInfos=[]);O=w.preLoggedGelInfos;w=_.J5e();r=void 0;for(Y=0;Y<O.length;Y++)if(C=O[Y],C.loadType){r=C.loadType;break}if(_.tg9().loadType==="cold"&&(w.loadType==="cold"||r==="cold")){r=_.Rt9();
Y=_.bDT();Y=Y.gelTicks?Y.gelTicks:Y.gelTicks={};for(var H in r)if(!(H in Y))if(typeof r[H]==="number")_.SK(H,_.jK(H));else if(_.b("log_repeated_ytcsi_ticks"))for(C=_.P(r[H]),d=C.next();!d.done;d=C.next())d=d.value,_.SK(H.slice(1),d);H={};r=!1;O=_.P(O);for(Y=O.next();!Y.done;Y=O.next())r=Y.value,_.Si9(w,r),_.Si9(H,r),r=!0;r&&_.vd(H)}_.mBe(!0);H=_.zj("TIMING_ACTION");_.Eq("ytglobal.timingready_")&&H&&_.wte()&&_.XRI()&&_.N49()})()};
Fi7=function(q,Z){return Array.prototype.reduce.call(q,Z,{duration:0})};
GhS={'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 XUF={};XUF.YtVisibilityRootBehavior=[_.ynW.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Xg(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.zj("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var q=_.zj("INNERTUBE_CLIENT_NAME")!=="WEB";_.b("kevlar_use_vimio_behavior")&&q&&_.hGp()}}];_.kV={};_.kV.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(q){q.detail.contextProvider=this;q.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
XUF.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.Be();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(q){var Z=this;this.pageCount+=1;_.b("kevlar_use_vimio_behavior")&&(_.zj("INNERTUBE_CLIENT_NAME")==="WEB"?_.v5.addJob(function(){Z.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(q)},
loadPage_:function(q){this.data=q},
ytPageBehaviorActiveObserver_:function(q){var Z=this;_.b("kevlar_use_vimio_behavior")&&(q?_.zj("INNERTUBE_CLIENT_NAME")==="WEB"?_.v5.addJob(function(){Z.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(q){if(!this.setScrollTopJobId_){var Z=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){Z.setScrollTopJobId_=0;var w=_.t().resolve(_.Gj(_.d6));w&&_.Wk9(w);this.getPageScrollingElement().scrollTop=q}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.jz(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var Ki7;var sib=function(){var q=_.N.apply(this,arguments)||this;q.playerListenerConfig=null;q.actionMap={"yt-show-watch-page-survey":"openSurvey"};return q};
_.z(sib,_.N);_.e=sib.prototype;_.e.dataChanged=function(){var q=this,Z=_.K6();Z&&Z.getPlayerPromise().then(function(r){q.maybeRemovePlayerListeners(r)});
var w=this.data&&this.data.survey;w&&((w=(w=w.singleOptionSurveyRenderer||w.checkboxSurveyRenderer||w.multiStageSurveyRenderer)&&w.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(Z,w):this.openSurvey())};
_.e.triggerWatchPageSurvey=function(q,Z){var w=this,r,Y,C,d,O,H,L,S,v;return _.V(function(R){if(R.nextAddress==1)return q?_.W(R,q.getPlayerPromise(),2):R.return();w.player=R.yieldResult;if(!w.player)return R.return();r={};Y=_.P(Z);for(C=Y.next();!C.done;C=Y.next())d=C.value,O=_.P(w.createEventListenerPair(d)),H=O.next().value,L=O.next().value,S=H,v=L,S&&v&&(r[S]=v,w.ytPlayerListenerBehavior.listenToPlayerEvent(w.player,S,v));w.playerListenerConfig=r;_.ub(R)})};
_.e.createEventListenerPair=function(q){var Z=q.playbackEventTrigger;return Z?this.handlePlaybackTrigger(Z):(q=q.watchTimeTrigger)?this.handleWatchTimeTrigger(q):[void 0,void 0]};
_.e.handleWatchTimeTrigger=function(q){var Z=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var w=q.videoWatchFraction,r=q.watchTimeSec;return r&&w?["onVideoProgress",function(){Z.player&&Z.isWatchTimeConditionMet(Z.player,w,r)&&Z.showSurvey()}]:[void 0,
void 0]};
_.e.isWatchTimeConditionMet=function(q,Z,w){var r=q.getProgressState(),Y=r.current-this.lastKnownPlaybackPosition;Y<5&&(this.accumulatedMediaTime+=Y);this.lastKnownPlaybackPosition=r.current;r=Math.round(this.accumulatedMediaTime/r.duration*1E3)/1E3;return q.getPresentingPlayerType&&q.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>w||r>Z)};
_.e.handlePlaybackTrigger=function(q){var Z=this;q=q.playbackEvent;if(q==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var w="onStateChange";var r=function(Y){Y===0&&Z.showSurvey()}}else q==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(w="onVideoProgress",r=function(Y){Z.player&&Z.player.getPresentingPlayerType&&Z.player.getPresentingPlayerType()===1&&Y&&Z.showSurvey()}):q==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(w="onAdEnd",r=this.showSurvey);
return[w,r]};
_.e.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.e.openSurvey=function(){var q=this,Z=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.iyS(!!Z));_.v5.addJob(function(){q.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:Z}})},0,0)};
_.e.maybeRemovePlayerListeners=function(q){if(this.playerListenerConfig){for(var Z=_.P(Object.keys(this.playerListenerConfig)),w=Z.next();!w.done;w=Z.next())w=w.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(q,w,this.playerListenerConfig[w]);this.playerListenerConfig=null}};
var T8=sib;T8.prototype.dataChanged=T8.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Et),_.A("design:type",Object)],T8.prototype,"ytdOpenPopupBehavior",void 0);_.X([_.U(_.QQ.YtPlayerListenerBehavior),_.A("design:type",_.EW)],T8.prototype,"ytPlayerListenerBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],T8.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.U(_.LO),_.A("design:type",Object)],T8.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],T8.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],T8.prototype,"playerListenerConfig",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],T8.prototype,"lastKnownPlaybackPosition",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],T8.prototype,"accumulatedMediaTime",void 0);_.X([_.F(),_.A("design:type",Object)],T8.prototype,"player",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],T8.prototype,"dataChanged",null);T8=_.X([_.l({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],T8);
_.p(T8,"ytd-survey-trigger-renderer",function(){if(Ki7!==void 0)return Ki7;var q=document.createElement("template");_.a(q,"\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");q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Ki7=q},{mode:1});
}catch(e){_._DumpException(e)}
try{
var dSA=new _.D("promotedSparklesWebRenderer");var VV5=new _.D("relatedChipCommand");var Old;var Hl9;var WFm=function(){return _.N.apply(this,arguments)||this};
_.z(WFm,_.N);WFm.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
var Jb=WFm;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Jb.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Jb.prototype,"data",void 0);Jb=_.X([_.l({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Jb);
_.p(Jb,"ytd-compact-tvfilm-entry-point-renderer",function(){if(Hl9!==void 0)return Hl9;var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Hl9=q},{mode:1});var o8g;var uDg;var LFK;var zQ=function(){return _.N.apply(this,arguments)||this};
_.z(zQ,_.N);zQ.prototype.ready=function(){this.initializeDefs()};
zQ.prototype.initializeDefs=function(){var q=this.meta.byKey("yt-icons"),Z=_.E(q).querySelector("#star"),w=_.E(q).querySelector("#star_half");q=_.E(q).querySelector("#star_border");Z&&this.defs.appendChild(Z.cloneNode(!0));w&&this.defs.appendChild(w.cloneNode(!0));q&&this.defs.appendChild(q.cloneNode(!0))};
zQ.prototype.percentChanged=function(){for(var q=this.rating;q.firstChild;)q.removeChild(q.firstChild);var Z=Math.round(this.percent/10);q=Math.floor(Z/2);Z%=2;var w=5-q-Z;this.appendStars("star",q,0);this.appendStars("star_half",Z,q);this.appendStars("star_border",w,q+Z)};
zQ.prototype.appendStars=function(q,Z,w){for(var r=0;r<Z;r++){var Y=(18+this.spacing)*(r+w),C=document.createElementNS("http://www.w3.org/2000/svg","use");_.ga8(C,"#"+q);C.setAttribute("x",""+Y);C.setAttribute("y","0");this.rating.appendChild(C)}};
var BC=zQ;BC.prototype.percentChanged=BC.prototype.percentChanged;_.X([_.fo("#defs"),_.A("design:type",HTMLElement)],BC.prototype,"defs",void 0);_.X([_.fo("#rating"),_.A("design:type",HTMLElement)],BC.prototype,"rating",void 0);_.X([_.F(),_.A("design:type",Number)],BC.prototype,"percent",void 0);_.X([_.F({value:6}),_.A("design:type",Number)],BC.prototype,"spacing",void 0);_.X([_.F({value:_.d4.create("iron-meta",{type:"iconset"})}),_.A("design:type",_.Wt)],BC.prototype,"meta",void 0);
_.X([_.M("percent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BC.prototype,"percentChanged",null);BC=_.X([_.l({disableElementRegistration:!0,is:"ytd-ratings"})],BC);
_.p(BC,"ytd-ratings",function(){if(LFK!==void 0)return LFK;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return LFK=q},{mode:1});var S66=function(){return _.N.apply(this,arguments)||this};
_.z(S66,_.N);var v88=S66;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],v88.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],v88.prototype,"data",void 0);v88=_.X([_.l({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],v88);
_.p(v88,"ytd-offer-review-renderer",function(){if(uDg!==void 0)return uDg;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return uDg=q},{mode:1});var jq8=function(){var q=_.N.apply(this,arguments)||this;q.badges=[{textBadge:{label:_.UE("CC")}}];return q};
_.z(jq8,_.N);_.e=jq8.prototype;_.e.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.e.dataChanged=function(){var q=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(q&&q.commandMetadata&&_.J(q.commandMetadata,_.WZ)&&_.J(q.commandMetadata,_.WZ).fireAutomatically)_.t().resolve(_.ps).resolveCommand(q,{form:{element:this.hostElement}});else{var Z;q&&((Z=_.J(q,_.WZ))==null?0:Z.fireAutomatically)&&_.t().resolve(_.ps).resolveCommand(q,{form:{element:this.hostElement}})}};
_.e.isEmptyContent=function(q){return this.isStorefrontEntryPointEmpty(q)&&this.shouldHideOfferModule(q)};
_.e.isStorefrontEntryPointEmpty=function(q){return!q||!q.storefrontEntryPoint};
_.e.shouldHideOfferModule=function(q){return!!q.hideVideoDetails};
_.e.isOfferModuleNavigationInactive=function(q){return!q.navigationEndpoint&&!q.serviceEndpoint};
_.e.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.t().resolve(_.ps).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
var ab=jq8;ab.prototype.dataChanged=ab.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ab.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ab.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.A("design:type",Boolean)],ab.prototype,"hidden",void 0);
_.X([_.F(),_.A("design:type",Object)],ab.prototype,"badges",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ab.prototype,"dataChanged",null);ab=_.X([_.l({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],ab);
_.p(ab,"ytd-movie-offer-module-renderer",function(){if(o8g!==void 0)return o8g;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return o8g=q},{mode:1});var tVd;var RZ5=function(){return _.N.apply(this,arguments)||this};
_.z(RZ5,_.N);var bl8=RZ5;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],bl8.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],bl8.prototype,"data",void 0);bl8=_.X([_.l({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],bl8);
_.p(bl8,"ytd-media-masthead-renderer",function(){if(tVd!==void 0)return tVd;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return tVd=q},{mode:1});var Jca;_.xc(_.u9V,"course-metadata-view-model",{props:{data:_.EL,isOverlay:_.EL}});var zZw=function(){var q=_.N.apply(this,arguments)||this;q.isMetadataVisible=!1;q.modernPanels=_.b("kevlar_watch_modern_panels");q.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return q};
_.z(zZw,_.N);_.e=zZw.prototype;
_.e.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"}}}}};
_.e.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.e.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.e.expanderChanged=function(){var q;if((q=this.data)==null?0:q.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.e.isExpandButtonToggled=function(){var q,Z;return(Z=_.J((q=this.data)==null?void 0:q.expandMetadataButton,_.o5))==null?void 0:Z.isToggled};
_.e.onVisibilityButtonClick=function(){var q;if((q=this.data)==null?0:q.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.e.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
var nT=zZw;nT.prototype.expanderChanged=nT.prototype.expanderChanged;nT.prototype.dataChanged=nT.prototype.dataChanged;nT.prototype.descriptionChanged=nT.prototype.descriptionChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],nT.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],nT.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U([_.KK.YtActionHandlerBehavior]),_.A("design:type",Object)],nT.prototype,"actionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],nT.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],nT.prototype,"isMetadataVisible",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],nT.prototype,"modernPanels",void 0);_.X([_.fo("#expander"),_.A("design:type",Object)],nT.prototype,"expander",void 0);
_.X([_.M("data.description"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nT.prototype,"descriptionChanged",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nT.prototype,"dataChanged",null);_.X([_.M("isMetadataVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nT.prototype,"expanderChanged",null);
nT=_.X([_.l({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],nT);
_.p(nT,"ytd-tvfilm-offer-module-renderer",function(){if(Jca!==void 0)return Jca;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Jca=q},{mode:2});var Bb5;var Qh=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return q};
_.z(Qh,_.N);Qh.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Qh.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Qh.prototype.onThumbnailTap=function(q){this.data&&this.data.serviceEndpoint&&(_.t().resolve(_.ps).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),q.stopPropagation())};
Qh.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
var ER=Qh;ER.prototype.dataChanged=ER.prototype.dataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ER.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ER.prototype,"rendererBehaviors",void 0);_.X([_.U([_.KK.YtActionHandlerBehavior]),_.A("design:type",Object)],ER.prototype,"actionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ER.prototype,"data",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ER.prototype,"dataChanged",null);ER=_.X([_.l({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],ER);
_.p(ER,"ytd-unlimited-offer-module-renderer",function(){if(Bb5!==void 0)return Bb5;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Bb5=q},{mode:1});var alg;var n8v;var Qqd=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return q};
_.z(Qqd,_.N);Qqd.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Qqd.prototype.handleRelatedChipCommand=function(q){q=_.J(q,VV5);var Z=q.contents;Z?_.i5(this.hostElement,"yt-item-section-replace-action",[Z,q.targetSectionIdentifier]):_.i5(this.hostElement,"yt-item-section-continuation-action",[q.continuationData,q.targetSectionIdentifier])};
var xW=Qqd;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],xW.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],xW.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],xW.prototype,"actionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],xW.prototype,"data",void 0);xW=_.X([_.dx({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],xW);
_.p(xW,"yt-related-chip-cloud-renderer",function(){if(n8v===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;alg===void 0&&(alg=document.createElement("template"));var r=alg;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);n8v=q}q=n8v;return q},{mode:2});var TQ=function(){var q=_.N.apply(this,arguments)||this;q.isTwoColumns=!0;q.hideOfferModules=!1;q.watchFeedBigThumbs=_.b("kevlar_watch_feed_big_thumbs");q.watchNextGridHideChips=_.b("kevlar_watch_grid_hide_chips");q.eligibleToSwitchToGrid=_.b("web_watch_eligible_to_switch_to_grid");q.disableShortsShelfHeightOverride=_.b("web_shorts_wn_shelf_ratio_tuning");q.isWatchNextGrid=!1;q.reuseComponents=!_.b("kevlar_watch_grid");q.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return q};
_.z(TQ,_.N);_.e=TQ.prototype;
_.e.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]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.b("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}}};
_.e.getItemsPath=function(){return"data.results"};
_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.e.created=function(){this.ytLazyListBehavior.initialCount=1};
_.e.ready=function(){_.po(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%"})};
_.e.resultsChanged=function(){if(this.data&&this.data.results){for(var q=this.data.results,Z=null,w=null,r=0;r<q.length;r++)q[r].relatedChipCloudRenderer?Z=q[r].relatedChipCloudRenderer:q[r].itemSectionRenderer&&(w=q[r].itemSectionRenderer);if(Z&&w)for(this.set("data.continuations",[]),q=_.J(Z.content,_.Ggm).chips,Z=0;Z<q.length;Z++)if(r=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",q[Z]),r.loadCached||!r.contents){r.contents=w.contents;break}}};
_.e.dataChanged=function(){var q=this,Z;if((Z=this.data)!=null&&Z.results&&this.hasAllowedInstreamAd(this.playerData)){if(Z=this.data.results.filter(function(O){return!!O.promotedSparklesWebRenderer})){for(var w=0;w<Z.length;w++){var r=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",Z[w]);
if(r)for(var Y=0;Y<r.length;Y++)r[Y]&&r[Y].baseUrl&&_.EG(r[Y].baseUrl)}this.set("data.results",this.data.results.filter(function(O){return!O.promotedSparklesWebRenderer}))}if(Z=this.data.results.filter(function(O){return!!q.getSparklesAd(O)})){Z=_.P(Z);
for(Y=Z.next();!Y.done;Y=Z.next())if(r=w=void 0,Y=(w=this.getSparklesAd(Y.value))==null?void 0:(r=w.errorCommand)==null?void 0:r.loggingUrls)for(w=_.P(Y),r=w.next();!r.done;r=w.next())(r=r.value)&&r.baseUrl&&_.EG(r.baseUrl);var C,d;this.set("data.results",(C=this.data)==null?void 0:(d=C.results)==null?void 0:d.filter(function(O){return!O.adSlotRenderer}))}}};
_.e.getSparklesAd=function(q){var Z,w;q=_.J((Z=q.adSlotRenderer)==null?void 0:(w=Z.fulfillmentContent)==null?void 0:w.fulfilledLayout,_.Wx7);return _.J(q==null?void 0:q.renderingContent,dSA)};
_.e.hasAllowedInstreamAd=function(q){q=this.get("adPlacements",q)||[];for(var Z=0;Z<q.length;Z++){var w=this.get("adPlacementRenderer.config.adPlacementConfig",q[Z]);if(w&&w.suppressDisplayAd)return!0}return!1};
_.e.computeHideUnlimitedOfferModule=function(q,Z){return q&&q.offerModule&&Z&&q.offerModule.unlimitedOfferModuleRenderer&&q.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(Z)?!0:!1};
_.e.hideUnlimitedOfferModuleChanged=function(){var q=_.E(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");q&&(q.hidden=this.hideUnlimitedOfferModule)};
_.e.updateLockupContainerTypes=function(q){if(this.eligibleToSwitchToGrid){var Z;(Z=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||Z.forEach(function(w){w.containerType=q})}};
_.e.computeHideTvfilmOfferModule=function(q,Z){var w,r;return!!((q==null?0:(w=q.offerModule)==null?0:(r=w.tvfilmOfferModuleRenderer)==null?0:r.clientShouldSuppressIfCompanionAdDisplayed)&&Z&&this.hasCompanionAds(Z))};
_.e.hideTvfilmOfferModuleChanged=function(){var q=_.E(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");q&&(q.hidden=this.hideTvfilmOfferModule)};
_.e.hasCompanionAds=function(q){q=this.get("adPlacements",q)||[];for(var Z=0;Z<q.length;Z++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",q[Z]))return!0;var w=void 0,r=void 0,Y=void 0;if(!_.b("web_watch_top_banner_companion_check_killswitch")&&((w=q[Z])==null?0:(r=w.adPlacementRenderer)==null?0:(Y=r.renderer)==null?0:Y.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.e.hasSuppressedResults=function(q){return q==null?!0:q.filter(function(Z){return!Z.continuationItemRenderer&&!Z.compactPromotedVideoRenderer&&!Z.promotedSparklesWebRenderer}).length===0};
_.e.computeShowButton=function(q,Z){return this.isWatchNextGrid?q:q||this.hasSuppressedResults(Z)};
_.e.showButtonChanged=function(){if(this.isWatchNextGrid){var q=_.E(this.hostElement).querySelector("ytd-rich-grid-renderer");q&&this.showButton!==null&&(q.continuationShowButton=this.showButton)}else{q=_.E(this.hostElement).querySelector("yt-next-continuation");var Z=_.E(this.hostElement).querySelector("ytd-continuation-item-renderer"),w=_.E(this.hostElement).querySelector("ytd-item-section-renderer");q&&(q.showButton=this.showButton);Z&&(Z.showButton=this.showButton);w&&(w.continuationShowButton=
this.showButton)}};
_.e.continuationTap=function(q){var Z;if(((Z=this.data)==null?void 0:Z.continuations)!=null&&q.target.tagName==="TP-YT-PAPER-BUTTON")for(q=this.data.continuations,Z=0;Z<q.length;Z++)q[Z].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(q[Z].nextContinuationData||{})};
_.e.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("shown-items-changed",this.shownItems))};
_.My.Object.defineProperties(TQ.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid&&this.containsLockupViewModel?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.shownItems)==null||!q.some(function(Z){return!!Z.lockupViewModel}))}}});
TQ.prototype.shownItemsChangedForBinding=TQ.prototype.shownItemsChangedForBinding;TQ.prototype.showButtonChanged=TQ.prototype.showButtonChanged;TQ.prototype.hideTvfilmOfferModuleChanged=TQ.prototype.hideTvfilmOfferModuleChanged;TQ.prototype.updateLockupContainerTypes=TQ.prototype.updateLockupContainerTypes;TQ.prototype.hideUnlimitedOfferModuleChanged=TQ.prototype.hideUnlimitedOfferModuleChanged;TQ.prototype.dataChanged=TQ.prototype.dataChanged;TQ.prototype.resultsChanged=TQ.prototype.resultsChanged;
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],TQ.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.cj.YtLazyListBehavior),_.A("design:type",Object)],TQ.prototype,"ytLazyListBehavior",void 0);_.X([_.U(_.FP.YtNextContinuationBehavior),_.A("design:type",Object)],TQ.prototype,"ytNextContinuationBehavior",void 0);
_.X([_.U(_.Ms),_.A("design:type",Object)],TQ.prototype,"ytContinuationHandlerBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],TQ.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],TQ.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],TQ.prototype,"playerData",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],TQ.prototype,"autoFill",void 0);_.X([_.F({value:60}),_.A("design:type",Number)],TQ.prototype,"targetFramerate",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],TQ.prototype,"isTwoColumns",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],TQ.prototype,"hideOfferModules",void 0);_.X([_.F(),_.A("design:type",Object)],TQ.prototype,"shownItems",void 0);_.X([_.F({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.A("design:type",Boolean)],TQ.prototype,"hideUnlimitedOfferModule",void 0);
_.X([_.F({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.A("design:type",Boolean)],TQ.prototype,"hideTvfilmOfferModule",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],TQ.prototype,"watchFeedBigThumbs",void 0);_.X([_.F(),_.A("design:type",Object)],TQ.prototype,"watchNextGridHideChips",void 0);_.X([_.F(),_.A("design:type",Object)],TQ.prototype,"eligibleToSwitchToGrid",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],TQ.prototype,"disableShortsShelfHeightOverride",void 0);_.X([_.F({selector:_.tL}),_.A("design:type",Object)],TQ.prototype,"isGridViewEnabled",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],TQ.prototype,"showMoreButton",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],TQ.prototype,"isWatchNextGrid",void 0);
_.X([_.F({computed:"computeShowButton(showMoreButton, data.results)"}),_.A("design:type",Boolean)],TQ.prototype,"showButton",void 0);_.X([_.g3("data.results.*"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TQ.prototype,"resultsChanged",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TQ.prototype,"dataChanged",null);
_.X([_.M("hideUnlimitedOfferModule"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TQ.prototype,"hideUnlimitedOfferModuleChanged",null);_.X([_.I("isGridViewEnabled","containsLockupViewModel","data"),_.F({reflectToAttribute:!0}),_.A("design:type",Number),_.A("design:paramtypes",[])],TQ.prototype,"lockupContainerType",null);
_.X([_.M("lockupContainerType","data"),_.A("design:type",Function),_.A("design:paramtypes",[Number]),_.A("design:returntype")],TQ.prototype,"updateLockupContainerTypes",null);_.X([_.M("hideTvfilmOfferModule"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TQ.prototype,"hideTvfilmOfferModuleChanged",null);_.X([_.M("showButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TQ.prototype,"showButtonChanged",null);
_.X([_.M("shownItems"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TQ.prototype,"shownItemsChangedForBinding",null);_.X([_.I("shownItems"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],TQ.prototype,"containsLockupViewModel",null);
_.p(TQ,"ytd-watch-next-secondary-results-renderer",function(){if(Old===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);Old=q}q=Old;return q},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.d$m={};
_.d$m.YtdWatchBehavior=[_.y.YtRendererBehavior,_.QQ.YtPlayerListenerBehavior,_.kb.YtRendererstamperBehavior,_.KK.YtActionHandlerBehavior,_.kV.YtPageBehavior,_.ma.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},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},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 _.BF("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.b("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 _.BF("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},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.b("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)"},
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, fullscreen)"},richItemMinWidth:{type:Number,value:function(){return _.m6("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.m6("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!_.b("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.b("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 _.b("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.b("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("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)"},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 _.b("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.b("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.b("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("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 _.b("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("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 _.b("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);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var q={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:_.oI(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.oI(["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"||_.b("swa_prov_panels_ks")?_.b("web_watch_inject_placeholder_panels")?q.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.b("kevlar_use_engagement_panel_management_component")||
(q["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):(q.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},q.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});
return q},
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 q=this;this.watchController=void 0;this.pageDisposeJobs=[function(){q.showMetadataPlaceholder_()},
function(){_.b("web_watch_dont_clear_comments")||q.clearComments_()},
function(){q.clearPlayerAds_()},
function(){q.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;_.b("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.b("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.Al8(function(){return _.kB(q)},this.hostElement);
this.pageDisposeJobs.push(function(){q.youThereManager_.reset()});
_.b("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){q.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.DG;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;_.b("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.b("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));_.b("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.XN(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(q){q&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:q}),q.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(q){_.b("kevlar_watch_flexy_theater_manager")&&(this.theater=q,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(q){!_.b("kevlar_watch_while_v2")&&!_.b("web_watch_pip")||q||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(q){this.active!==void 0&&(this.fullscreen=q,_.b("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(q){this.active!==void 0&&(_.hy(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.b("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.b("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(q>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(q){this.initCsi_();this.updatePageData_(q)},
updatePageData_:function(q){var Z=this;if(q)if(this.data===q){this.onPageLoadWithSameData_();var w;(w=this.watchController)==null||_.FL(w,this.data)}else this.data=q;this.playlist&&_.RV({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.JT("nw");this.loading=!1;_.WO(_.v5,function(){Z.initDclkstatus_();var r,Y=((r=Z.player)==null?void 0:r.getVideoData().cpn)||"";_.xy9(function(C,d){_.rEF(C,d,Y)})})},
onPageLoadWithSameData_:function(){_.b("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 q=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!q);this.set("loadingData.playlistLoading",q&&q!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),q=this.watchNextSkeletonEl_.firstElementChild;q;)q.classList.remove("hidden"),q=q.nextElementSibling;if(_.b("kevlar_watch_frame0_loading_state")){var Z,w,r;q=(Z=this.loadingData)==null?void 0:(w=Z.endpoint)==null?void 0:(r=w.watchEndpoint)==null?void 0:r.videoId;var Y;q&&(Y="https://i.ytimg.com/vi/"+q+"/frame0.jpg");_.E(this.hostElement).querySelector("#player").style.backgroundImage=Y?"url("+Y+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var q=_.E(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&q&&(q.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var Z,w;(w=(Z=this.watchMetadata).updateSentimentBarWidth)==
null||w.call(Z);var r,Y;(Y=(r=this.watchMetadata).resize)==null||Y.call(r)}_.b("kevlar_watch_frame0_loading_state")&&(_.E(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(q){var Z=_.E(this.hostElement).querySelector(q);Z?_.fp(Z,!1):_.bx(new _.df("Overscroll monitor not found for component: ",q))},
removeSplitScrollMouseTrap:function(q){var Z=_.E(this.hostElement).querySelector(q);Z?_.Dj(Z):_.bx(new _.df("Disposal component for  overscroll monitoring not found: ",q))},
onLoadingChanged_:function(q){q?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(q){var Z=this;q?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.v5.addLowPriorityJob(function(){Z.onWindowResized_(_.r3(!0))})},
updateTheaterModeState_:function(q){if(!_.b("kevlar_watch_flexy_theater_manager")){q=q||this.fullWindowMode_;if(this.theater!==void 0||q)this.theater=q;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();q&&_.KFr()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var q=this.theater;_.b("external_fullscreen")&&this.fullscreen&&(q=!0);q=q?_.E(this.hostElement).querySelector("#player-full-bleed-container"):_.E(this.hostElement).querySelector("#player-container-inner");var Z=this.getPlayerContainer(),w=_.b("kevlar_watch_while_v2")||_.b("web_watch_pip");Z.parentElement!==q&&(w&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.kB(this).appendTo(q,Z),q.appendChild(_.E(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var q=this;return _.V(function(Z){if(Z.nextAddress==1)return _.W(Z,_.t().resolve(_.Tf).deactivate(),2);q.updatePlayerLocation();_.ub(Z)})},
updateCinematicsLocation:function(){var q=this.getElement("CINEMATICS");if(q){var Z=this.getCinematicsLocationContainer();q.parentElement!==Z&&Z.appendChild(q);var w;(w=this.watchController)==null||_.awm(w)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.E(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.E(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(q,Z){var w=document.documentElement.hasAttribute("dark"),r=w&&_.b("web_cinematic_theater_mode"),Y=w&&_.b("web_cinematic_fullscreen");w=!w&&this.cinematicLightTheme;return q&&r||Z&&Y||(Z||q)&&w},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var q=this,Z;(Z=this.watchController)==null||_.FL(Z,this.data);_.b("kevlar_watch_flexy_comments_manager")||this.initComments_();_.b("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.t().resolve(_.b8).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,_.b("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.v5.addLowPriorityJob(function(){_.i5(q.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.b("web_watch_start_chat_in_theater_mode")){var w,r,Y;if((w=this.data)==null?0:(r=w.contents)==null?0:(Y=r.twoColumnWatchNextResults)==null?0:Y.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var C,d;((C=this.data)==null?0:(d=C.contents)==null?0:d.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(q){var Z;(Z=this.watchController)==null||_.MF(Z,this.playerData);q&&q.playabilityStatus&&(Z=this.isVideoPlayable_(q.playabilityStatus,this.getPlayerOverlays_(this.data)),q=this.isLiveStreamOffline_(q.playabilityStatus),Z&&!q||_.I_(this,function(){_.JT("pbu")}));
this.setPlayerAds_();_.i5(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(q,Z){if((_.b("kevlar_watch_while_v2")||_.b("web_watch_pip"))&&this.playerData&&Z)return this.playerData.videoDetails},
watchPageActiveChanged_:function(q){_.sE().dispatch(_.cIw(this.active));q?this.activate_():this.deactivate_()},
attached:function(){var q=this;this.watchController=new _.cA(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.MF(this.watchController,this.playerData);this.data&&_.FL(this.watchController,this.data);_.b("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var Z=_.kB(this);_.b("kevlar_disable_prepare_player")||Z.preparePlayer();
_.b("kevlar_watch_flexy_playlist_manager")||_.t().resolve(_.b8).setPlayer(Z);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();Z={"--ytd-watch-flexy-scrollbar-width":_.V$()+"px"};this.is==="ytd-watch-grid"&&(Z["--ytd-watch-flexy-sidebar-width"]=_.NJ+"px",Z["--ytd-watch-grid-horizontal-page-margins"]=_.MJ+"px",Z["--ytd-watch-grid-columns-top-margins"]=_.nqd+"px",Z["--ytd-watch-grid-min-player-height-medium"]="360px");!_.m6("kv_pl_mx_sz_ks")&&_.m6("kevlar_watch_max_player_width")&&
(Z["--ytd-watch-flexy-max-player-width-wide-screen"]=_.k$a+"px");_.m6("kevlar_watch_flexy_metadata_height")&&(Z["--ytd-watch-flexy-space-below-player"]=_.KTK+"px");this.safeUpdateStyles(Z);_.b("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.vir(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return q.onPlayerTouchPanDown_()}}));
_.b("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.E(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var q=_.V$(),Z=_.FC+q,w=Z;this.fixedPanels&&(Z+=_.NJ);var r=657+q;q=1327+q;_.E(this.hostElement).querySelector("#two-column-query").query="(min-width: "+Z+"px)";_.E(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(r+"px), (min-height: 630px) and (min-width: ")+(Z+"px) and (max-width: ")+(q+"px)");_.E(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(q+"px)");_.E(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+w+"px)"},
calculateCurrentPlayerSize_:function(){var q=_.E(this.hostElement).querySelector("#miniplayer-bar").firstChild;return q&&q.active||this.theater||_.b("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.O3(NaN,NaN):_.clw(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.clw(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Xg(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var q=this;this.onWindowResized_(_.r3());_.b("browse_skeleton_removal_on_watch_killswitch")||_.BF("IS_SHELL_LOAD")&&_.khF();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var Z=_.kB(this);Z.addEventListener("yt-player-updated",_.XN(this,this.onPlayerUpdated_));Z.getPlayerPromise().then(function(w){q.playerApiReady_(w)});
_.b("kevlar_watch_flexy_playlist_manager")||(Z=_.t().resolve(_.b8),_.b("kevlar_watch_observe_playlist_navigations_killswitch")&&Z.addEventListener("yt-navigate",_.XN(this,this.onYtNavigate_)),Z.setPlaylistComponent(_.E(this.hostElement).querySelector("#playlist")),Z.addEventListener("yt-playlist-data-updated",_.XN(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.v5.addLowPriorityJob(function(){_.hy(q.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.kB(this).removeEventListener("yt-player-updated",_.XN(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.b("kevlar_watch_flexy_playlist_manager")){var q=_.t().resolve(_.b8);_.b("kevlar_watch_observe_playlist_navigations_killswitch")&&q.removeEventListener("yt-navigate",_.XN(this,this.onYtNavigate_));
q.cancelVideoSkip();q.removeEventListener("yt-playlist-data-updated",_.XN(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.b("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.hy(this.hostElement,"yt-autonav-pause-player",!1);q=_.mJ();_.b("kevlar_exit_fullscreen_leaving_watch")&&q&&_.Ay(q)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(q){this.player&&this.player.updateVideoData({rvs:q.rvs})},
getPageContents:function(q){return q&&q.contents&&q.contents.twoColumnWatchNextResults&&q.contents.twoColumnWatchNextResults.results&&q.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(q){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",q)},
onRetrieveLocation_:function(q,Z){Z.hasComments?Z.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):Z.locationRetrieved("/related_ajax",void 0);q.stopPropagation()},
onSubscriptionChanged_:function(q,Z){this.player&&(Z?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.pU7("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.E(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.E(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(q){this.player=q;this.setPlayerState(q.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.b("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.b("kevlar_unified_player")||_.b("kevlar_player_new_bootstrap_adoption"))&&_.Fa()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(q,Z){Z=Z===void 0?!0:Z;_.mJ()&&_.b("external_fullscreen")&&_.Ay(document.documentElement);this.theaterRequested_=q;Z&&_.$r("wide",q?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.yY(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.hy(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(q){_.JY(q,typeof this.player),this.player&&_.JY(q,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var q;((q=this.player)==null?0:q.isFullscreen())?this.player.toggleFullscreen():_.yY(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(q,Z){return this.loading?Z:!!Object.keys(q).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(q){if(q){q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.youThereRenderer&&_.hPw(this.youThereManager_,Z.youThereRenderer)}},
setPlaylistData_:function(q){return q||{}},
userEngagementConfigDataChanged_:function(q){if(q)if(q.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var Z=this.youThereManager_;_.pB()<q.lowEngagementThresholdMs||_.qPK(Z,!0)}else q.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.yY(this.hostElement,"yt-autonav-pause-user-engagement",[q])},
isPlayerUnavailable_:function(q,Z,w){return!!q&&!this.isVideoPlayable_(q,w)&&!Z},
getPlayerOverlays_:function(q){return(q==null?void 0:q.playerOverlays)||null},
isVideoPlayable_:function(q,Z){if(!q)return!1;var w=q.status==="OK"||q.status==="LIVE_STREAM_OFFLINE",r=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",q)||this.get("errorScreen.ypcTrailerRenderer",q);q=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",q);var Y;Z=Z==null?void 0:(Y=Z.playerOverlayRenderer)==null?void 0:Y.gatedActionsOverlayRenderer;return!!w||!!r||!!q||!!Z},
hasWatchNextResponseErrorRenderer:function(q){var Z=this.getPageContents(q),w,r,Y,C,d;return!(q==null?0:(w=q.contents)==null?0:(r=w.twoColumnWatchNextResults)==null?0:r.secondaryResults)&&!!((Y=Z[0])==null?0:(C=Y.itemSectionRenderer)==null?0:(d=C.contents[0])==null?0:d.backgroundPromoRenderer)},
isLiveStreamOffline_:function(q){return q?q.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(q,Z,w){var r=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",Z),Y=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Y=_.b("web_no_skip_video_on_verification_checks")?(q==null?void 0:q.status)&&Y.includes(q.status):q&&q.status==="AGE_CHECK_REQUIRED";var C=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",q);C==void 0&&(C=!0);!w||this.isVideoPlayable_(q,this.getPlayerOverlays_(Z))||
r||Y||!C||_.t().resolve(_.b8).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.F3a()},
onPlayerFeedbackStartRequest_:function(q){_.yY(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:q}])},
onPlayerFeedbackArticleRequest_:function(q){_.yY(this.hostElement,"yt-help-dialog-requested",[q])},
onPlayerYpcContentRequest_:function(){var q,Z,w,r,Y,C,d,O,H=((q=this.data)==null?NaN:(Z=q.contents)==null?NaN:(w=Z.twoColumnWatchNextResults)==null?NaN:(r=w.secondaryResults)==null?NaN:(Y=r.secondaryResults)==null?NaN:(C=Y.offerModule)==null?NaN:(d=C.tvfilmOfferModuleRenderer)==null?NaN:(O=d.actionButtons)==null?NaN:O.length)-1;q=[".offerButton.buttonRenderer.",".actionButtons."+(H>=0?H:0)+".buttonRenderer."];Z=_.P(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(w=Z.next();!w.done;w=Z.next())for(w=w.value,r=_.P(q),Y=r.next();!Y.done;Y=r.next())if(Y="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+w+Y.value,Y=this.get(Y+"navigationEndpoint",this.data)||this.get(Y+"serviceEndpoint",this.data)||this.get(Y+"command",this.data)){_.f5(Y,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(q){_.hy(this.hostElement,"yt-autonav-pause-player",q)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(q){q()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(q){switch(q){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(q){switch(q){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.hy(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(q)},
setPlayerState:function(q){_.sE().dispatch(_.P_K(q))},
onPlayerSubscribe_:function(q){_.yY(this.hostElement,"yt-player-subscribe",[q])},
onPlayerUnsubscribe_:function(q){_.yY(this.hostElement,"yt-player-unsubscribe",[q])},
onPlayerAdYtShowToast_:function(q){_.yY(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:q.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(q){if(q)return q},
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(q){return!_.b("web_watch_move_summary_to_sd")&&!!q},
computeWatchMetadataRefresh:function(){return _.b("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.b("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var q,Z,w,r;this.watchNextSecondaryResults=(q=this.data)==null?void 0:(Z=q.contents)==null?void 0:(w=Z.twoColumnWatchNextResults)==null?void 0:(r=w.secondaryResults)==null?void 0:r.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.b("swatcheroo_pbs_load_grid")&&!_.b("swatcheroo_provide_all_data_on_scheduled_job")){_.v5.cancelJob(this.setRichGridJobId_);var q,Z,w,r,Y,C,d;this.setRichGridRendererData((q=this.data)==null?void 0:(Z=q.contents)==null?void 0:(w=Z.twoColumnWatchNextResults)==null?void 0:(r=w.secondaryResults)==null?void 0:(Y=r.secondaryResults)==null?void 0:(C=Y.results)==null?void 0:(d=C[0])==null?
void 0:d.richGridRenderer)}},
setRichGridRendererData:function(q){this.richGridRendererData=q},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var q,Z=(q=this.data)==null?void 0:q.engagementPanels;if(Z==null?0:Z.length){q=null;Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next()){w=w.value;var r=void 0;if(((r=w.engagementPanelSectionListRenderer)==null?void 0:r.targetId)==="engagement-panel-structured-description"){q=w;break}}var Y,C,d;q=(Y=q)==null?void 0:(C=Y.engagementPanelSectionListRenderer)==null?void 0:(d=C.content)==null?void 0:d.structuredDescriptionContentRenderer;if(q==null?0:q.items){Y=
[];C=_.P(q.items);for(d=C.next();!d.done;d=C.next()){d=d.value;if(!_.b("sd_horizontal_list_show_nav_killswitch")){var O=r=w=Z=q=void 0,H=void 0,L=(q=d.horizontalCardListRenderer)==null?void 0:(Z=q.header)==null?void 0:(w=Z.richListHeaderRenderer)==null?void 0:(r=w.navigationButton)==null?void 0:(O=r.buttonRenderer)==null?void 0:(H=O.command)==null?void 0:H.commandExecutorCommand;L&&L.commands&&(L.commands=L.commands.filter(function(S){return!_.J(S,_.X8v)}))}d.expandableVideoDescriptionBodyRenderer||
d.videoDescriptionHeaderRenderer||Y.push(d)}return{items:Y}}}},
constructWarning_:function(q){return{text:_.UE(q),type:"WARNING"}},
isPlaShelfEnabled_:function(q){if((this.get("adPlacements",q)||[]).length)return!0;q=this.get("playerAds",q)||[];return!(!q.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",q[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var q=this;_.hy(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.b("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var Z=this.getScrollTop()>0;this.gestures_&&(Z?this.gestures_.detach():this.gestures_.attach());Z!==this.showFullerscreenEdu_&&_.b("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=Z,_.kB(this).getPlayerPromise().then(function(w){w.updateFullerscreenEduButtonVisibility(q.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.hy(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var q=this;this.commentsReady=!1;_.v5.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.WO(_.v5,function(){q.setComments_()},1E3)},
setComments_:function(){if(!_.b("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.JT("cmi");_.v5.cancelJob(this.setCommentsJobId_);var q=this.getPageContents(this.data);if(q&&q.length){q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,this.get("itemSectionRenderer.sectionIdentifier",Z)==="comment-item-section"){this.comments=Z.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.hy(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.b("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.b("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.JT("cmc")},
doRemoveComments_:function(){this.comments={};_.b("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.v5.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.v5.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(q,Z){var w=_.J(Z.endpoint,_.ck);w&&(!(Z=this.get("data.currentVideoEndpoint.watchEndpoint"))||w.videoId!==Z.videoId||w.playlistId&&w.playlistId!==Z.playlistId||_.b("kevlar_watch_timestamp_seek_playlist_index_comparison")&&w.index!==void 0&&w.index!==Z.index||typeof w.startTimeSeconds!=="number"||(q.stopPropagation(),this.setScrollTop(0),_.kB(this).getPlayerPromise().then(function(r){var Y=w.startTimeSeconds;r.seekTo(Y);r.wakeUpControls();Y<r.getDuration()&&r.playVideo()})))},
updatePlayerStartTime_:function(){var q=_.EaA();"t"in q&&(q=_.Mxm(q.t),this.player.seekTo(q,!0))},
updateTitleFromWatchNext:function(q){q=this.getPageContents(q);var Z,w;(q=_.kO(q==null?void 0:(Z=q[0])==null?void 0:(w=Z.videoPrimaryInfoRenderer)==null?void 0:w.title))&&_.hy(this.hostElement,"yt-update-title",q)},
updateTitle_:function(q){q=this.get("videoDetails.title",q)||"";_.hy(this.hostElement,"yt-update-title",q)},
syncWithRemoteVideo_:function(q,Z,w){if(this.active&&this.player){var r=this.player.getVideoData();if(r.video_id===w&&(w=r.list,_.b("polymer_enable_mdx_queue")&&w&&w.startsWith("RQ")&&(w=void 0),r.video_id!==q||w!=Z)){var Y;_.b("kevlar_player_watch_endpoint_navigation")?Y=_.Ize(_.TJa(q,Z)):Y=this.buildWatchEndpoint_(q,Z);_.hy(this.hostElement,"yt-navigate",{endpoint:Y,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(q,Z,w){return _.lI(q,Z,w)},
initDclkstatus_:function(){_.K36()},
attachWatchPageSkeleton_:function(){var q=document.querySelector("#watch-page-skeleton");if(q){var Z=q.querySelector("#primary-info"),w=q.querySelector("#secondary-info"),r=q.querySelector("#related");Z&&_.E(this.hostElement).querySelector("#info-skeleton").appendChild(Z);w&&_.E(this.hostElement).querySelector("#meta-skeleton").appendChild(w);r&&(_.E(this.hostElement).querySelector("#related-skeleton").appendChild(r),this.watchNextSkeletonEl_=r);_.Vb(q)}},
handlePlayerUpdated_:function(){_.kB(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(q,Z){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof Z!=="undefined"){var w=this.watchNextSkeletonEl_.children,r=q&&q.indexSplices.length?q.indexSplices[0].index:0;q=Math.min(this.watchNextShownItems.length,w.length);Z||(r=0,q=w.length);for(Z=r;Z<q;Z++)w[Z].classList.add("hidden")}},
onPlayerFullscreenChange_:function(q){_.b("external_fullscreen")||_.yY(this.hostElement,"yt-player-fullscreen",[q.fullscreen])},
onFullscreenChange_:function(q){this.fullscreen=q;this.gestures_&&this.gestures_.update(this.fullscreen);var Z=_.kB(this);Z.getPlayerPromise().then(function(w){w.setFauxFullscreen(!!_.mJ())});
this.updateFullBleedElementLocations();q&&(Z.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(q,Z){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!Z},
computeIsDonationShelfCollapsed_:function(q){return q},
computeShouldShowMerchShelf:function(q,Z){return Z&&!!q},
computeResponseHasComments:function(q){var Z,w,r,Y,C;return!!(q==null?0:(Z=q.contents)==null?0:(w=Z.twoColumnWatchNextResults)==null?0:(r=w.results)==null?0:(Y=r.results)==null?0:(C=Y.contents)==null?0:C.some(function(d){var O;return(d==null?void 0:(O=d.itemSectionRenderer)==null?void 0:O.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(q,Z,w,r){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&r?!1:!!q&&!!Object.keys(q).length&&!Z},
identity:_.s2,onWindowResized_:function(q){this.windowSize_=q;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_());_.b("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(q){var Z=this;q&&q.type!=="dataloaded"&&q.type!=="dataupdated"||_.kB(this).getPlayerPromise().then(function(w){var r=w.getPlayerState();r!==5&&r!==0&&(w=1/w.getVideoAspectRatio(),Z.videoHeightToWidthRatio_!==w&&(Z.videoHeightToWidthRatio_=w))})},
schedulePlayerSizeUpdate_:function(q){var Z=this,w=_.b("kevlar_watch_while_v2")||_.b("web_watch_pip"),r=function(){if(Z.watchMetadata){var Y,C;(C=(Y=Z.watchMetadata).resize)==null||C.call(Y)}_.kB(Z).getPlayerPromise().then(function(d){if(_.b("kevlar_set_internal_player_size")){if(!w||!Z.isMiniplayerActive()){var O=Z.calculateCurrentPlayerSize_();d.setInternalSize(O.width,O.height)}}else d.setSize(NaN,NaN);_.b("kevlar_watch_while")&&Z.updateWatchWhileScrollThreshold_()})};
q?r():_.OM(_.v5,r)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(q){this.set("data.survey",q.detail)},
onYtShowSurveyCommand_:function(q){this.set("data.survey",_.J(q,_.myd).survey)},
onDownloadedVideoDeleted:function(q){var Z=this,w,r;return _.V(function(Y){if(Y.nextAddress==1){if(!Z.active||(w=Z.playerData)==null||!w.offlineState||Z.videoId!==q)return Y.return();(r=Z.player)==null||r.stopVideo();_.qk().navigatingAwayFromWatchDeletedVideo=!0;_.f5(_.BsX,Z.hostElement);return _.W(Y,_.qk().navigationFinishPromise,2)}_.qk().navigatingAwayFromWatchDeletedVideo=!1;_.ub(Y)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var q;this.theater?q=_.a0(.5625*this.windowSize_.width,480,this.windowSize_.height-185):q=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==q&&(this.watchWhileScrollThreshold_=q,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var q=_.E(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&q){var Z=this.windowSize_.height>=624,w=this.active?this.getScrollTop():0;!q.active&&Z&&w>=this.watchWhileScrollThreshold_?(q.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):q.active&&(!Z||w<this.watchWhileScrollThreshold_&&!_.mJ())&&(q.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var q=_.E(this.hostElement).querySelector("#secondary-inner");if(q){var Z=_.E(this.hostElement).querySelector("#below"),w=_.E(this.hostElement).querySelector("#secondary"),r=_.E(this.hostElement).querySelector("#comments");r&&w&&Z&&(this.defaultTwoColumnLayout?(q.appendChild(r),w.appendChild(q)):(Z.appendChild(r),_.cC(Z,q)))}}},
isTwoColumnsChanged_:function(q,Z){if(q!==!0||Z!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(q=_.E(this.hostElement).querySelector("#secondary-inner"))){Z=_.E(this.hostElement).querySelector("#below");var w=_.E(this.hostElement).querySelector("#secondary"),r=_.E(this.hostElement).querySelector("#comments");r&&w&&Z&&(this.isTwoColumns_?(q.appendChild(r),w.appendChild(q)):(Z.appendChild(r),_.cC(Z,q)))}}else{q=!_.b("live_chat_over_engagement_panels");Z=_.E(this.hostElement).querySelector("#chat-container");
w=_.E(this.hostElement).querySelector("#panels");var Y=_.E(this.hostElement).querySelector("#alerts");r=_.E(this.hostElement).querySelector("#playlist");var C=_.E(this.hostElement).querySelector("#related"),d=_.E(this.hostElement).querySelector("#donation-shelf"),O=_.E(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Y=_.E(this.hostElement).querySelector("#secondary-inner"),q&&Y.appendChild(w),Y.appendChild(r),_.b("web_watch_theater_chat")||Y.appendChild(Z),q||Y.appendChild(w),Y.appendChild(d),
Y.appendChild(C)):(q&&_.Br(w,Y),_.Br(r,Y),_.b("web_watch_theater_chat")||_.Br(Z,Y),q||_.Br(w,Y),_.Br(d,Y),O&&_.Br(C,O));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.b("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.b("web_watch_theater_chat")){var q=_.E(this.hostElement).querySelector("#chat-container"),Z=this.theater&&!this.fullscreen||_.b("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&Z?_.b("web_watch_theater_chat_beside_player")?(Z=_.E(this.hostElement).querySelector("#panels-full-bleed-container"),(q==null?void 0:q.parentElement)!==Z&&Z.append(q),this.panelsBesidePlayer=!0):
_.b("web_watch_theater_fixed_chat")&&(Z=_.E(this.hostElement).querySelector("#columns"),(q==null?void 0:q.parentElement)!==Z&&Z.append(q),this.fixedPanels=!0):(_.b("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.b("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),Z=_.E(this.hostElement).querySelector("#playlist"),q&&Z?_.ar(q,Z):_.bx(new _.df("Missing element when updating chat location",{"chatContainer defined":!!q,"playlist defined":!!Z})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(q,Z){return _.b("sw_metadata_vis_toggle_ks")?!0:!!q||!!Z},
computeForceDarkPanelTheme:function(q){return _.b("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&q:!1},
safeUpdateStyles:function(q){try{_.po(this.hostElement,q)}catch(Z){_.bx(Z)}},
videoHeightToWidthRatioChanged_:function(q,Z){Z&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(q){this.videoHeightToWidthRatio_=1/q},
computeIsVerticalVideo_:function(q){return q>=1},
computeIsFourThreeToSixteenNineVideo_:function(q){return q<=.7501&&q>=.5624},
computeIsExtraWideVideo_:function(q){return q<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.kB(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.kB(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.ZpA(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(q){var Z=_.i8(q)||0;_.yq(q,Z+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var q=_.i8("yt-fullerscreen-edu-button-click-count")||0,Z=_.i8("yt-fullerscreen-edu-button-shown-count")||0,w=_.m6("external_fullscreen_button_shown_threshold"),r=q>=_.m6("external_fullscreen_button_click_threshold")||Z>=w;_.kB(this).getPlayerPromise().then(function(Y){Y.updateFullerscreenEduButtonSubtleModeState(r)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(q,Z){return Z},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.t().resolve(_.b8).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var q=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.v5.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.v5.addLowPriorityJob(function(){q.fullHeightPanelPositionUpdateJobId=0;var Z=_.E(q.hostElement).querySelector("#secondary"),w=_.E(q.hostElement).querySelector("#fixed-secondary");Z=Z.getBoundingClientRect();var r=Z.width;q.swatcherooSqueezeback&&
(r+=_.MJ);if(q.swatcherooSqueezeback){var Y=_.E(q.hostElement).querySelector("#squeezeback-constraining-container");Y.style.width=r+"px";Y.style.flex="0 0 "+r+"px"}w.style.width=r+"px";w.style.left=Z.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var q=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.v5.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.v5.addLowPriorityJob(function(){q.panelMaxHeightUpdateJob_=0;var Z;!q.isTwoColumns_||q.theater||q.fullscreen?Z=460:Z=q.calculateNormalPlayerSize_().height;var w=Z+"px";_.b("live_chat_taller_height")&&!q.theater&&(w="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.b("live_chat_medium_height")&&!q.theater&&(w="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.b("live_chat_scaled_height")&&!q.theater&&(w="calc(100vh - var(--ytd-toolbar-height) - 238px)");q.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":Z+"px","--ytd-watch-flexy-chat-max-height":w,"--ytd-watch-flexy-structured-description-max-height":Z+"px","--ytd-watch-flexy-comments-panel-max-height":Z+"px","--ytd-comments-engagement-panel-content-height":Z+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var q=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.b("web_watch_flexy_adjust_sidebar_width"))&&!_.b("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.v5.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.v5.addLowPriorityJob(function(){q.panelMaxHeightUpdateJob_=0;if(q.isTwoColumns_){var Z=_.Iwg(q.windowSize_,q.calculateNormalPlayerSize_().width);Z!==q.currentSidebarWidth&&(q.currentSidebarWidth=
Z,q.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":Z+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(q){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",q)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.ZC(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(q){var Z=_.E(this.hostElement).querySelector("#engagement-panel-scrim");q?Z.addEventListener("tap",_.XN(this,this.onEngagementPanelScrimClick_)):Z.removeEventListener("tap",_.XN(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(q){if(this.hostElement.contains(q)&&!this.scrollToAnimation_.isAnimating()){var Z=q.offsetTop-24;q=q.offsetTop+q.offsetHeight+24;var w=this.getPageScrollingElement(),r=this.getScrollTop(),Y=r+w.clientHeight-56;if(Z<r+56)Z-=56;else if(q>Y)Z=q-w.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,Z),500)}},
onYtSignalActionScrollToComments:function(){var q=this.hostElement.querySelector("#comments");if(q&&!this.scrollToAnimation_.isAnimating()){q=q.offsetTop-56-24;if(_.b("kevlar_comment_teaser_scroll_to_midpoint")&&(q-=_.H3().height/3,q<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,q),500)}},
onYtEngagementPanelVisibleChanged:function(q,Z,w){this.active&&this.trackEngagementPanelVisibility&&!_.R76.includes(w)&&(Z==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(w),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.i5(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),Z!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&Z!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(w),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(q){return q?"":"watch-active-metadata"},
computeNewMetadataClass:function(q){return q?"watch-active-metadata":""},
computeFullBleedPlayer:function(q,Z){return q||Z},
computeDefaultLayout:function(q){return!q},
computeDefaultTwoColumnLayout:function(q,Z){return!q&&Z},
updatePanelsLocation:function(){if(_.b("web_watch_enable_fs_squeezeback_panels")){var q=_.E(this.hostElement).querySelector("#below"),Z=_.E(this.hostElement).querySelector("#panels"),w=_.E(this.hostElement).querySelector("#panels-full-bleed-container"),r=_.E(this.hostElement).querySelector("#secondary-inner");this.fullscreen?w.appendChild(Z):this.isTwoColumns_?_.cC(r,Z):q.appendChild(Z)}},
swatcherooUpdatePanelsLocation:function(q,Z,w,r,Y,C){if(this.is==="ytd-watch-grid"){Z=q&&!Z;this.swatcherooSplitScroll&&(Z?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));w=_.E(this.hostElement).querySelector("#panels");var d=_.E(this.hostElement).querySelector("#playlist"),O=_.E(this.hostElement).querySelector("#fixed-secondary"),H=_.E(this.hostElement).querySelector("#fixed-below"),
L=_.E(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),S=_.E(this.hostElement).querySelector("#chat-container");C&&(q?O.appendChild(w):H.appendChild(w));Y?q?O.appendChild(S):H.appendChild(S):_.ar(S,L);r?q?O.appendChild(d):H.appendChild(d):_.ar(d,L);this.swatcherooSplitScroll&&(q=_.E(this.hostElement).querySelector("#secondary"),r=_.E(this.hostElement).querySelector("#columns"),Y=_.E(this.hostElement).querySelector("#fixed-columns-secondary"),Z?Y.appendChild(q):
r.appendChild(q))}},
computeMetadataSkinnyMode:function(q,Z,w){return this.is!=="ytd-watch-grid"?!1:q?w:Z},
computeWatchWhilePanelsActive:function(q,Z){return q||Z},
computeNoBorderOnChat:function(q){return _.b("web_watch_theater_chat_no_border")&&q},
computeLiveChatPresentAndExpanded:function(q,Z){return q&&!Z},
computePanelExpanded:function(q,Z,w){return q||Z||w},
computeSqueezeback:function(q,Z){if(_.b("web_watch_enable_fs_squeezeback_panels"))return q&&Z},
computeSwatcherooSqueezeback:function(q,Z,w){return this.is!=="ytd-watch-grid"||_.b("ww_squeezeback_killswitch")?!1:q&&Z&&w},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(q){_.kB(this).getPlayerPromise().then(function(Z){var w;(w=Z.changeMarkerVisibility)==null||w.call(Z,_.J(q,_.Gn).isVisible||!1,_.J(q,_.Gn).entityKeys||[],_.J(q,_.Gn).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(q){this.liveChatCollapsed=q.detail;_.sE().dispatch(_.p0a(q.detail))},
onSetPlaylistCollapsed:function(q){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!q)},
provideRenderingData:function(q,Z){switch(q){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=Z;break;case "PRIMARY_INFO":_.b("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=Z);this.videoPrimaryInfoRendererValue=Z==null?void 0:Z.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.b("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=Z);this.videoSecondaryInfoRendererValue=Z==null?void 0:Z.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
Z;break;case "CLARIFICATION":this.clarifyBoxValue=Z;break;case "LIVE_CHAT":this.conversationBar=Z;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=Z;break;case "PLAYLIST":this.externalPlaylistData_=Z!=null?Z:{};break;case "MERCH_SHELF":this.merchShelfValue=Z==null?void 0:Z.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=Z;break;case "TICKET_SHELF":this.ticket=Z;break;case "OFFER_MODULE":this.offerModule=Z;break;case "LIMITED_STATE":this.limitedStateValue=
Z;break;case "DONATION_SHELF":this.donation=Z;break;case "ALERTS":this.alertsValue=Z;break;case "COMMENTS":this.comments=Z;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=Z;break;case "ENGAGEMENT_PANELS":this.engagementPanels=Z;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=Z;break;case "RICH_GRID_RENDERER":this.richGridRendererData=Z;break;case "EXPANDABLE_METADATA":this.expandableMetadata=Z;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
Z}},
toggleCinematicsActive:function(q){this.cinematicsActive=q},
isMiniplayerActive:function(){return _.t().resolve(_.Tf).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var CmS;_.eKZ=function(q){return q.shorts.isShortsActive};
_.PmV=function(q){return q.findIndex(function(Z){return CmS.indexOf(Z.tagName)>-1})>-1};
_.dxS=function(q){return _.mu({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:q}})};
_.Vpq=function(){var q=_.t().resolve(_.pq);_.xxj(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(q.isFullscreenEnabled()?_.Ay(document.documentElement):_.$B2(document.documentElement))};
CmS=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.Id=new Map;_.Id.set(32,59972);_.Id.set(27,50765);_.Id.set(70,60102);_.Id.set(76,60221);_.Id.set(77,60222);_.Id.set(74,60223);_.Id.set(84,60224);_.Id.set(38,61941);_.Id.set(40,61942);_.Id.set(73,62521);_.Id.set(67,62522);_.Id.set(80,63390);_.Id.set(78,63397);_.Id.set(75,59972);_.Id.set(188,63385);_.Id.set(190,63384);_.Id.set(36,63387);
_.Id.set(35,63386);_.Id.set(37,63388);_.Id.set(39,63389);_.Id.set(79,63423);_.Id.set(87,63424);_.Id.set(107,63426);_.Id.set(109,63425);_.Id.set(65,63428);_.Id.set(83,63430);_.Id.set(68,63429);_.Id.set(221,63431);_.Id.set(219,63432);_.Id.set(97,63439);_.Id.set(98,63440);_.Id.set(99,63441);_.Id.set(100,63442);_.Id.set(101,63443);_.Id.set(102,63444);_.Id.set(103,63445);_.Id.set(104,63446);_.Id.set(105,63447);_.cn=new Map;_.cn.set(80,63390);_.cn.set(78,63397);_.cn.set(188,63400);_.cn.set(190,63401);
_.cn.set(191,60765);_.cn.set(13,247917);_.Mm=new Map;_.FF=new Map;
}catch(e){_._DumpException(e)}
try{
var Jlq,awF,na7,Q_l;_.j_V=function(q){return q.ui.guideIsVisibleButNotPersistent};
_.tx7=function(q){return q.ui.tabGesturesIsActive};
_.RPc=function(){var q=_.Af("service_worker_scope");try{return navigator.serviceWorker.getRegistration(q)}catch(Z){return Promise.reject(Z)}};
_.byy=function(q){return!(!q||!q.pushManager)};
Jlq=function(){return _.RPc().then(_.byy).catch(function(){return!1})};
_.zPV=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?Jlq():Promise.resolve(!1)};
_.BJl=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
awF=function(){var q,Z,w;return _.V(function(r){switch(r.nextAddress){case 1:return _.W(r,_.dF.getInstance(),2);case 2:q=r.yieldResult;if(!q){Z=void 0;r.jumpTo(3);break}return _.W(r,q.get("lmqf"),4);case 4:Z=r.yieldResult;case 3:switch((w=Z)||(w="SD"),w){case "HD":return r.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return r.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return r.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return r.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return r.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
na7=function(q){var Z,w,r;return _.V(function(Y){if(Y.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]){var C=window.localStorage["yt-player-av1-pref"];C=C==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":C==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else C="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(Z=q===C)return Y.jumpTo(2);r=w=q;return _.W(Y,awF(),3)}Y.nextAddress!=2&&(Z=r===Y.yieldResult);return Y.return(Z)})};var Eal;var xyq=_.OZ.IronButtonState,TJu=(0,_.PR)(HTMLElement);
_.$l({_template:function(){if(Eal!==void 0)return Eal;var q=document.createElement("template");_.a(q,'\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]]" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Q_l===void 0&&(Q_l=document.createElement("template"));var r=Q_l;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return Eal=q},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[xyq,_.dl,_.Ht,_.uJ],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}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(q){var Z=(0,_.Cy)(this);Z.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:q});
Z.shadowRoot.appendChild(q);return TJu.prototype._attachDom.call(this,q)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var q=this.contentElement;q&&q.selectedItem&&this._setSelectedItem(q.selectedItem)},
get contentElement(){for(var q=_.os(this.$.content).getDistributedNodes(),Z=0,w=q.length;Z<w;Z++)if(q[Z].nodeType===Node.ELEMENT_NODE)return q[Z]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(q){this._setSelectedItem(q.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(q){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q)===this&&this.open()},
_selectedItemChanged:function(q){var Z="";q?Z=q.label||q.getAttribute("label")||q.textContent.trim():Z="";this.value=Z;this._setSelectedItemLabel(Z)},
_computeMenuVerticalOffset:function(q,Z){return Z?Z:q?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var q=this.opened?"true":"false",Z=this.contentElement;Z&&Z.setAttribute("aria-expanded",q)}});_.RI=new _.D("navigateAction");var Uyu=new _.D("formRenderer");var klu=function(){var q=_.y5.apply(this,arguments)||this;q.showInput=!1;return q};
_.z(klu,_.y5);_.e=klu.prototype;_.e.detached=function(){this.showInput&&window.removeEventListener("click",_.XN(this,this.closeOnOutsideClick_))};
_.e.stopPropagation_=function(q){this.showInput&&q.stopPropagation()};
_.e.closeOnOutsideClick_=function(q){this.closeOnOutsideClickCondition(q)&&(this.showInput=!1,window.removeEventListener("click",_.XN(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.e.closeOnOutsideClickCondition=function(){return!0};
_.e.closeOnOutsideClickHandler=function(){};
_.e.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.XN(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.e.openOnClickHandler=function(){};
_.e.showInputChanged=function(){};
_.e.setShowInput=function(q){this.showInput=q};
var bu=klu;bu.prototype.setShowInput=bu.prototype.setShowInput;bu.prototype.showInputChanged=bu.prototype.showInputChanged;bu.prototype.openOnClickHandler=bu.prototype.openOnClickHandler;bu.prototype.openOnClick_=bu.prototype.openOnClick_;bu.prototype.closeOnOutsideClickHandler=bu.prototype.closeOnOutsideClickHandler;bu.prototype.closeOnOutsideClickCondition=bu.prototype.closeOnOutsideClickCondition;bu.prototype.closeOnOutsideClick_=bu.prototype.closeOnOutsideClick_;
bu.prototype.stopPropagation_=bu.prototype.stopPropagation_;_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],bu.prototype,"showInput",void 0);_.X([_.m2("click"),_.m2("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],bu.prototype,"stopPropagation_",null);_.X([_.M("showInput"),_.A("design:type",Function),_.A("design:paramtypes",[Boolean]),_.A("design:returntype")],bu.prototype,"showInputChanged",null);bu=_.X([_.iq()],bu);_.K3V=[bu.prototype];var s_8;var IwC;var cl7=function(){return _.N.apply(this,arguments)||this};
_.z(cl7,_.N);_.e=cl7.prototype;_.e.computePreselectedOption=function(q,Z){return Z===this.itemSelected_?q:void 0};
_.e.dataChanged_=function(){var q=this;this.preselectedSubreason=this.itemSelected_=-1;var Z;(Z=this.data)!=null&&Z.key&&_.I_(this,function(){var w,r=Number((w=q.data)==null?void 0:w.key);!Number.isNaN(r)&&(q.itemSelected_=r,w=(w=(q.data.items||[])[r])&&w.optionSelectableItemRenderer&&w.optionSelectableItemRenderer.preselectedIndex)&&(q.preselectedSubreason=w)})};
_.e.isSubReasonHidden_=function(q,Z){return q!=Z};
_.e.onTopItemSelected_=function(q,Z){for(var w=_.E(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),r=0,Y=w.length;r<Y;r++)w[r].select(0);_.yY(this.hostElement,"yt-report-form-update",[Z.item.value]);q.stopPropagation()};
_.e.onItemSelected_=function(q,Z){_.yY(this.hostElement,"yt-report-form-update",[Z.item.value]);q.stopPropagation()};
_.e.getItem_=function(q){return q.serviceItem?q.serviceItem:q.navigationItem?q.navigationItem:q.optionSelectableItemRenderer?q.optionSelectableItemRenderer:null};
_.e.computeText_=function(q){return(q=this.getItem_(q))?this.ytRendererBehavior.getSimpleString(q.text):null};
_.e.validate=function(){return this.itemSelected_!==-1};
_.e.computeAriaLabel_=function(q){var Z=_.kO(q.text);(q=q.accessibility&&q.accessibility.accessibilityData&&q.accessibility.accessibilityData.label)&&(Z+=". "+q);return Z};
_.e.computeItemSelected_=function(q){return q};
_.e.preventSelection_=function(q){q.stopPropagation();this.tooltipTapped=!0};
_.e.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.e.updateItemSelectedFromBinding=function(q){this.itemSelected_=q.detail.value};
_.e.save=function(){var q;this.validate()&&(q=this.data)!=null&&q.items&&(q=this.data.items[this.itemSelected_],q!=null&&q.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(q.optionSelectableItemRenderer.submitEndpoint)||_.qM(this.hostElement,[q.optionSelectableItemRenderer.submitEndpoint])))};
var JV=cl7;JV.prototype.onPaperRippleTransitionEnd_=JV.prototype.onPaperRippleTransitionEnd_;JV.prototype.dataChanged_=JV.prototype.dataChanged_;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],JV.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],JV.prototype,"data",void 0);_.X([_.F({value:-1}),_.A("design:type",Number)],JV.prototype,"itemSelected_",void 0);
_.X([_.F({computed:"computeItemSelected_(itemSelected_)"}),_.A("design:type",Number)],JV.prototype,"value",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],JV.prototype,"restoreFocusOnClose",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],JV.prototype,"tooltipTapped",void 0);_.X([_.F({value:-1}),_.A("design:type",Number)],JV.prototype,"preselectedSubreason",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],JV.prototype,"dataChanged_",null);_.X([_.m2("transitionend"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],JV.prototype,"onPaperRippleTransitionEnd_",null);JV=_.X([_.dx({is:"yt-options-renderer",disableElementRegistration:!0})],JV);
_.p(JV,"yt-options-renderer",function(){if(IwC===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;s_8===void 0&&(s_8=document.createElement("template"));var r=s_8;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);IwC=q}q=IwC;return q},{mode:2});var MxF;var F3u;var NJc;var lwy;var Gll;var p0u;var zm=function(){return _.N.apply(this,arguments)||this};
_.z(zm,_.N);zm.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
zm.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
zm.prototype.onTap=function(q){if(this.hostElement.classList.contains("selected")||_.g0(this.hostElement,"yt-share-panel-can-select-contact-action"))q&&q.detail&&(q.detail.x||q.detail.y)&&_.E(this.hostElement).querySelector("#target").blur(),(q=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),q={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:q?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.yY(this.hostElement,"yt-share-panel-select-contact-action",[q])};
var B9=zm;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],B9.prototype,"ytRendererBehavior",void 0);_.X([_.F({observer:"onDataChanged"}),_.A("design:type",Object)],B9.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.A("design:type",String)],B9.prototype,"componentTitle",void 0);_.X([_.fo("#thumbnail"),_.A("design:type",Object)],B9.prototype,"thumbnail",void 0);
B9=_.X([_.dx({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],B9);
_.p(B9,"yt-enrolled-contact-renderer",function(){if(p0u===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Gll===void 0&&(Gll=document.createElement("template"));var r=Gll;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);p0u=q}q=p0u;return q},{mode:2});var X0l;var myZ;var aI=function(){return _.N.apply(this,arguments)||this};
_.z(aI,_.N);aI.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
aI.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
aI.prototype.onTap=function(q){if(this.hostElement.classList.contains("selected")||_.g0(this.hostElement,"yt-share-panel-can-select-contact-action"))q&&q.detail&&(q.detail.x||q.detail.y)&&_.E(this.hostElement).querySelector("#target").blur(),(q=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),q={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:q?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.yY(this.hostElement,"yt-share-panel-select-contact-action",[q])};
var nW=aI;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],nW.prototype,"ytRendererBehavior",void 0);_.X([_.F({observer:"onDataChanged"}),_.A("design:type",Object)],nW.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.A("design:type",String)],nW.prototype,"componentTitle",void 0);_.X([_.fo("#thumbnail"),_.A("design:type",Object)],nW.prototype,"thumbnail",void 0);
nW=_.X([_.dx({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],nW);
_.p(nW,"yt-suggested-contact-renderer",function(){if(myZ===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;X0l===void 0&&(X0l=document.createElement("template"));var r=X0l;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);myZ=q}q=myZ;return q},{mode:2});var Q$=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-share-panel-reset-action":"onReset"};return q};
_.z(Q$,_.N);Q$.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"}}}}}};
Q$.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.yY(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
Q$.prototype.onReset=function(){for(var q=_.E(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),Z=q.length-1;Z>=0;Z--)q[Z].classList.toggle("selected")};
var EH=Q$;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],EH.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],EH.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F({observer:"onDataChanged"}),_.A("design:type",Object)],EH.prototype,"data",void 0);
EH=_.X([_.dx({is:"yt-contact-section-renderer",disableElementRegistration:!0})],EH);
_.p(EH,"yt-contact-section-renderer",function(){if(lwy===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;NJc===void 0&&(NJc=document.createElement("template"));var r=NJc;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);lwy=q}q=lwy;return q},{mode:2});var Aly=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return q};
_.z(Aly,_.N);_.e=Aly.prototype;_.e.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"}}}};
_.e.onYtRefreshFormCommand=function(q){var Z;(q=_.J((Z=_.J(q,_.oX7))==null?void 0:Z.formRenderer,Uyu))&&this.set("data",q)};
_.e.reset=function(){var q=_.E(this.hostElement).querySelector("#fields").children;q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.reset&&Z.reset()};
_.e.getForm=function(){var q={},Z=_.E(this.hostElement).querySelector("#fields").children;Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next()){w=w.value;if(!w.validate())return null;q[w.data.key]=w.value}return q};
_.e.submitFormFields=function(){if(this.fields)for(var q=_.P(this.fields),Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?Z.save():Z.nodeName==="YT-OPTIONS-RENDERER"&&Z.save()};
var xy=Aly;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],xy.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],xy.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],xy.prototype,"data",void 0);_.X([_.D5("#fields > *"),_.A("design:type",Array)],xy.prototype,"fields",void 0);
xy=_.X([_.dx({is:"yt-form-renderer",disableElementRegistration:!0})],xy);
_.p(xy,"yt-form-renderer",function(){if(F3u===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;MxF===void 0&&(MxF=document.createElement("template"));var r=MxF;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);F3u=q}q=F3u;return q},{mode:2});var fw7;var Dyc=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return q};
_.z(Dyc,_.N);Dyc.prototype.onCheckboxChange=function(q){this.data&&(q=(this.checked=_.xz(q).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.t().resolve(_.ps).resolveCommand(q,{form:{element:this.hostElement}})};
Dyc.prototype.handleUpdateCheckboxCommand=function(q){(q=_.J(q,_.nXh))&&this.data&&this.data.id===q.id&&(this.set("data.disabled",q.disabled),this.set("data.title",q.title))};
var Tm=Dyc;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Tm.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Tm.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Tm.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],Tm.prototype,"checked",void 0);Tm=_.X([_.l({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Tm);
_.p(Tm,"ytd-settings-checkbox-renderer",function(){if(fw7!==void 0)return fw7;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return fw7=q},{mode:1});var hP7;var UH=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return q};
_.z(UH,_.N);UH.prototype.dataChanged=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1)return q.radio.removeAttribute("checked"),!q.data||!q.data.id||q.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.BJl()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(Z=q.data&&q.data.id)?_.W(w,na7(q.data.id),4):w.jumpTo(3):(q.set("data.hidden",!0),w.jumpTo(0));w.nextAddress!=3&&(Z=w.yieldResult);Z&&_.yY(q.hostElement,"yt-select-settings-radio-option",[q.data.id]);_.ub(w)})};
UH.prototype.onButtonChanged=function(q){_.xz(q).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.t().resolve(_.ps).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.yY(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
UH.prototype.onSelectOption=function(q){this.data&&this.data.id&&(this.data.id===q?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
var ky=UH;ky.prototype.dataChanged=ky.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],ky.prototype,"ytActionHandlerBehavior",void 0);_.X([_.fo("#radio"),_.A("design:type",Object)],ky.prototype,"radio",void 0);_.X([_.F(),_.A("design:type",Object)],ky.prototype,"data",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],ky.prototype,"dataChanged",null);ky=_.X([_.l({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],ky);
_.p(ky,"ytd-settings-radio-option-renderer",function(){if(hP7!==void 0)return hP7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return hP7=q},{mode:1});var ylc;var KW=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return q};
_.z(KW,_.N);
KW.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"}}}};
KW.prototype.handleUpdateTextCommand=function(q){(q=_.J(q,_.QtJ))&&this.data&&this.data.id===q.id&&this.set("data",q)};
KW.prototype.handleUpdateConnectedAppRendererCommand=function(q){if(_.J(q,_.Tkp)&&this.data){var Z,w;if(q=(Z=_.J(q,_.Tkp))==null?void 0:(w=Z.newConnectedAppRenderer)==null?void 0:w.connectedAppRenderer)this.data=q}};
KW.prototype.computeConnectedAppStyle=function(q){return q.style?q.style.toLowerCase().replace(/_/g,"-"):""};
var sH=KW;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],sH.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],sH.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],sH.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],sH.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.A("design:type",String)],sH.prototype,"connectedAppStyle",void 0);sH=_.X([_.l({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],sH);
_.p(sH,"ytd-connected-app-renderer",function(){if(ylc!==void 0)return ylc;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ylc=q},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.b6("iuT5Oc");

_.J1();
}catch(e){_._DumpException(e)}
try{
_.b6("L3n37");
var js8=_.C6(115994),tsd=_.C6(115993),REI=function(q,Z,w){var r=this;var Y=w.dragDownAction;this.layer=0;this.JSC$20288_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return r.dragDownAction()}}}};
this.JSC$20288_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return r.dragDownAction()}}}};
this.fullscreen=!1;var C=_.iy();_.fH(C,js8,this.layer);_.fH(C,tsd,this.layer);this.dragDownAction=function(){Y();_.Rk(C,{visualElement:r.fullscreen?js8:tsd})};
this.gesture=new _.Rj(q,Z,this.JSC$20288_watchConfig,"pandown");this.attach()};
REI.prototype.attach=function(){this.gesture.attach()};
REI.prototype.detach=function(){this.gesture.detach()};
REI.prototype.update=function(q){this.fullscreen=q;this.gesture.config=q?this.JSC$20288_watchFullScreenConfig:this.JSC$20288_watchConfig};var bpd={},JyK=["learning-journey-engagement-panel","PAyouchat"];
bpd.YtdLearningJourneyWatchBehavior=[_.y.YtRendererBehavior,_.QQ.YtPlayerListenerBehavior,_.kb.YtRendererstamperBehavior,_.KK.YtActionHandlerBehavior,_.kV.YtPageBehavior,_.ma.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)"},hasLearningJourneyPanels:{type:Boolean,reflectToAttribute:!0,computed:"getHasLearningJourneyPanels(learningJourneyEngagementPanels,hasLearningJourneyPanelsValue)"},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 _.BF("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.b("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 _.BF("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 _.b("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.b("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)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},richItemMinWidth:{type:Number,value:function(){return _.m6("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.m6("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!_.b("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.b("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 _.b("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.b("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("web_watch_rounded_player_large")||_.b("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_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.b("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.b("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.b("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("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 _.b("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("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 _.b("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var q={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:_.oI(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.oI(["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"||_.b("swa_prov_panels_ks")?this.is==="ytd-watch-learning-journey"?(q.learningJourneyEngagementPanels={id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},q.nonLearningJourneyEngagementPanels=
{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):_.b("web_watch_inject_placeholder_panels")?q.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.b("kevlar_use_engagement_panel_management_component")||(q["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}):(q.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},q.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return q},
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 q=this;this.watchController=void 0;this.pageDisposeJobs=[function(){q.showMetadataPlaceholder_()},
function(){_.b("web_watch_dont_clear_comments")||q.clearComments_()},
function(){q.clearPlayerAds_()},
function(){q.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;_.b("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.b("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.Al8(function(){return _.kB(q)},this.hostElement);
this.pageDisposeJobs.push(function(){q.youThereManager_.reset()});
_.b("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){q.resetFullerscreenEduButtonForNewPlayback_()}));
_.b("kevlar_watch_js_panel_height")&&(this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.DG;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;_.b("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.b("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));_.b("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.XN(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(q){q&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:q}),q.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(q){_.b("kevlar_watch_flexy_theater_manager")&&(this.theater=q,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.b("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(q){!_.b("kevlar_watch_while_v2")&&!_.b("web_watch_pip")||q||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(q){this.active!==void 0&&(this.fullscreen=q,_.b("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(q){this.active!==void 0&&(_.hy(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.b("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.b("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(q>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(q){this.initCsi_();this.updatePageData_(q)},
updatePageData_:function(q){var Z=this;if(q)if(this.data===q){this.onPageLoadWithSameData_();var w;(w=this.watchController)==null||_.FL(w,this.data)}else this.data=q;this.playlist&&_.RV({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.JT("nw");this.loading=!1;_.WO(_.v5,function(){Z.initDclkstatus_();var r,Y=((r=Z.player)==null?void 0:r.getVideoData().cpn)||"";_.xy9(function(C,d){_.rEF(C,d,Y)})})},
onPageLoadWithSameData_:function(){_.b("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 q=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!q);this.set("loadingData.playlistLoading",q&&q!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),q=this.watchNextSkeletonEl_.firstElementChild;q;)q.classList.remove("hidden"),q=q.nextElementSibling;if(_.b("kevlar_watch_frame0_loading_state")){var Z,w,r;q=(Z=this.loadingData)==null?void 0:(w=Z.endpoint)==null?void 0:(r=w.watchEndpoint)==null?void 0:r.videoId;var Y;q&&(Y="https://i.ytimg.com/vi/"+q+"/frame0.jpg");_.E(this.hostElement).querySelector("#player").style.backgroundImage=Y?"url("+Y+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var q=_.E(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&q&&(q.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var Z,w;(w=(Z=this.watchMetadata).updateSentimentBarWidth)==
null||w.call(Z);var r,Y;(Y=(r=this.watchMetadata).resize)==null||Y.call(r)}_.b("kevlar_watch_frame0_loading_state")&&(_.E(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(q){var Z=_.E(this.hostElement).querySelector(q);Z?_.fp(Z,!1):_.bx(new _.df("Overscroll monitor not found for component: ",q))},
removeSplitScrollMouseTrap:function(q){var Z=_.E(this.hostElement).querySelector(q);Z?_.Dj(Z):_.bx(new _.df("Disposal component for  overscroll monitoring not found: ",q))},
onLoadingChanged_:function(q){q?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(q){var Z=this;q?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.v5.addLowPriorityJob(function(){Z.onWindowResized_(_.r3(!0))})},
updateTheaterModeState_:function(q){if(!_.b("kevlar_watch_flexy_theater_manager")){q=q||this.fullWindowMode_;if(this.theater!==void 0||q)this.theater=q;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();q&&_.KFr()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var q=this.theater;_.b("external_fullscreen")&&this.fullscreen&&(q=!0);q=q?_.E(this.hostElement).querySelector("#player-full-bleed-container"):_.E(this.hostElement).querySelector("#player-container-inner");var Z=this.getPlayerContainer(),w=_.b("kevlar_watch_while_v2")||_.b("web_watch_pip");Z.parentElement!==q&&(w&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.kB(this).appendTo(q,Z),q.appendChild(_.E(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var q=this;return _.V(function(Z){if(Z.nextAddress==1)return _.W(Z,_.t().resolve(_.Tf).deactivate(),2);q.updatePlayerLocation();_.ub(Z)})},
updateCinematicsLocation:function(){var q=this.getElement("CINEMATICS");if(q){var Z=this.getCinematicsLocationContainer();q.parentElement!==Z&&Z.appendChild(q);var w;(w=this.watchController)==null||_.awm(w)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.E(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.E(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(q,Z){var w=document.documentElement.hasAttribute("dark"),r=w&&_.b("web_cinematic_theater_mode"),Y=w&&_.b("web_cinematic_fullscreen");w=!w&&this.cinematicLightTheme;return q&&r||Z&&Y||(Z||q)&&w},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var q=this,Z;(Z=this.watchController)==null||_.FL(Z,this.data);_.b("kevlar_watch_flexy_comments_manager")||this.initComments_();_.b("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.t().resolve(_.b8).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,_.b("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.v5.addLowPriorityJob(function(){_.i5(q.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.b("web_watch_start_chat_in_theater_mode")){var w,r,Y;if((w=this.data)==null?0:(r=w.contents)==null?0:(Y=r.twoColumnWatchNextResults)==null?0:Y.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var C,d;((C=this.data)==null?0:(d=C.contents)==null?0:d.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(q){var Z;(Z=this.watchController)==null||_.MF(Z,this.playerData);q&&q.playabilityStatus&&(Z=this.isVideoPlayable_(q.playabilityStatus,this.getPlayerOverlays_(this.data)),q=this.isLiveStreamOffline_(q.playabilityStatus),Z&&!q||_.I_(this,function(){_.JT("pbu")}));
this.setPlayerAds_();_.i5(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(q){_.sE().dispatch(_.cIw(this.active));q?this.activate_():this.deactivate_()},
attached:function(){var q=this;this.watchController=new _.cA(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.MF(this.watchController,this.playerData);this.data&&_.FL(this.watchController,this.data);_.b("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var Z=_.kB(this);_.b("kevlar_disable_prepare_player")||Z.preparePlayer();
_.b("kevlar_watch_flexy_playlist_manager")||_.t().resolve(_.b8).setPlayer(Z);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();Z={"--ytd-watch-flexy-scrollbar-width":_.V$()+"px"};this.is==="ytd-watch-grid"&&(Z["--ytd-watch-flexy-sidebar-width"]=_.NJ+"px",Z["--ytd-watch-grid-horizontal-page-margins"]=_.MJ+"px",Z["--ytd-watch-grid-columns-top-margins"]=_.nqd+"px",Z["--ytd-watch-grid-min-player-height-medium"]="360px");!_.m6("kv_pl_mx_sz_ks")&&_.m6("kevlar_watch_max_player_width")&&
(Z["--ytd-watch-flexy-max-player-width-wide-screen"]=_.k$a+"px");_.m6("kevlar_watch_flexy_metadata_height")&&(Z["--ytd-watch-flexy-space-below-player"]=_.KTK+"px");this.safeUpdateStyles(Z);_.b("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new REI(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return q.onPlayerTouchPanDown_()}}));
_.b("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.E(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var q=_.V$(),Z=_.FC+q,w=Z;this.fixedPanels&&(Z+=_.NJ);var r=657+q;q=1327+q;_.E(this.hostElement).querySelector("#two-column-query").query="(min-width: "+Z+"px)";_.E(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(r+"px), (min-height: 630px) and (min-width: ")+(Z+"px) and (max-width: ")+(q+"px)");_.E(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(q+"px)");_.E(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+w+"px)"},
calculateCurrentPlayerSize_:function(){var q=_.E(this.hostElement).querySelector("#miniplayer-bar").firstChild;return q&&q.active||this.theater||_.b("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.O3(NaN,NaN):_.clw(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.clw(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Xg(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var q=this;this.onWindowResized_(_.r3());_.b("browse_skeleton_removal_on_watch_killswitch")||_.BF("IS_SHELL_LOAD")&&_.khF();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var Z=_.kB(this);Z.addEventListener("yt-player-updated",_.XN(this,this.onPlayerUpdated_));Z.getPlayerPromise().then(function(w){q.playerApiReady_(w)});
_.b("kevlar_watch_flexy_playlist_manager")||(Z=_.t().resolve(_.b8),_.b("kevlar_watch_observe_playlist_navigations_killswitch")&&Z.addEventListener("yt-navigate",_.XN(this,this.onYtNavigate_)),Z.setPlaylistComponent(_.E(this.hostElement).querySelector("#playlist")),Z.addEventListener("yt-playlist-data-updated",_.XN(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.v5.addLowPriorityJob(function(){_.hy(q.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.kB(this).removeEventListener("yt-player-updated",_.XN(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.b("kevlar_watch_flexy_playlist_manager")){var q=_.t().resolve(_.b8);_.b("kevlar_watch_observe_playlist_navigations_killswitch")&&q.removeEventListener("yt-navigate",_.XN(this,this.onYtNavigate_));
q.cancelVideoSkip();q.removeEventListener("yt-playlist-data-updated",_.XN(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.b("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.hy(this.hostElement,"yt-autonav-pause-player",!1);q=_.mJ();_.b("kevlar_exit_fullscreen_leaving_watch")&&q&&_.Ay(q)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(q){this.player&&this.player.updateVideoData({rvs:q.rvs})},
getPageContents:function(q){return q&&q.contents&&q.contents.twoColumnWatchNextResults&&q.contents.twoColumnWatchNextResults.results&&q.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(q){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",q)},
onRetrieveLocation_:function(q,Z){Z.hasComments?Z.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):Z.locationRetrieved("/related_ajax",void 0);q.stopPropagation()},
onSubscriptionChanged_:function(q,Z){this.player&&(Z?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.pU7("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.E(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.E(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(q){this.player=q;this.setPlayerState(q.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.b("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.b("kevlar_unified_player")||_.b("kevlar_player_new_bootstrap_adoption"))&&_.Fa()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(q,Z){Z=Z===void 0?!0:Z;_.mJ()&&_.b("external_fullscreen")&&_.Ay(document.documentElement);this.theaterRequested_=q;Z&&_.$r("wide",q?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.b("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.yY(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.hy(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(q){_.JY(q,typeof this.player),this.player&&_.JY(q,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var q;((q=this.player)==null?0:q.isFullscreen())?this.player.toggleFullscreen():_.yY(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(q,Z){return this.loading?Z:!!Object.keys(q).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(q){if(q){q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.youThereRenderer&&_.hPw(this.youThereManager_,Z.youThereRenderer)}},
setPlaylistData_:function(q){return q||{}},
userEngagementConfigDataChanged_:function(q){if(q)if(q.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var Z=this.youThereManager_;_.pB()<q.lowEngagementThresholdMs||_.qPK(Z,!0)}else q.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.yY(this.hostElement,"yt-autonav-pause-user-engagement",[q])},
isPlayerUnavailable_:function(q,Z,w){return!!q&&!this.isVideoPlayable_(q,w)&&!Z},
getPlayerOverlays_:function(q){return(q==null?void 0:q.playerOverlays)||null},
isVideoPlayable_:function(q,Z){if(!q)return!1;var w=q.status==="OK"||q.status==="LIVE_STREAM_OFFLINE",r=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",q)||this.get("errorScreen.ypcTrailerRenderer",q);q=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",q);var Y;Z=Z==null?void 0:(Y=Z.playerOverlayRenderer)==null?void 0:Y.gatedActionsOverlayRenderer;return!!w||!!r||!!q||!!Z},
hasWatchNextResponseErrorRenderer:function(q){var Z=this.getPageContents(q),w,r,Y,C,d;return!(q==null?0:(w=q.contents)==null?0:(r=w.twoColumnWatchNextResults)==null?0:r.secondaryResults)&&!!((Y=Z[0])==null?0:(C=Y.itemSectionRenderer)==null?0:(d=C.contents[0])==null?0:d.backgroundPromoRenderer)},
isLiveStreamOffline_:function(q){return q?q.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(q,Z,w){var r=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",Z),Y=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Y=_.b("web_no_skip_video_on_verification_checks")?(q==null?void 0:q.status)&&Y.includes(q.status):q&&q.status==="AGE_CHECK_REQUIRED";var C=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",q);C==void 0&&(C=!0);!w||this.isVideoPlayable_(q,this.getPlayerOverlays_(Z))||
r||Y||!C||_.t().resolve(_.b8).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.F3a()},
onPlayerFeedbackStartRequest_:function(q){_.yY(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:q}])},
onPlayerFeedbackArticleRequest_:function(q){_.yY(this.hostElement,"yt-help-dialog-requested",[q])},
onPlayerYpcContentRequest_:function(){var q,Z,w,r,Y,C,d,O,H=((q=this.data)==null?NaN:(Z=q.contents)==null?NaN:(w=Z.twoColumnWatchNextResults)==null?NaN:(r=w.secondaryResults)==null?NaN:(Y=r.secondaryResults)==null?NaN:(C=Y.offerModule)==null?NaN:(d=C.tvfilmOfferModuleRenderer)==null?NaN:(O=d.actionButtons)==null?NaN:O.length)-1;q=[".offerButton.buttonRenderer.",".actionButtons."+(H>=0?H:0)+".buttonRenderer."];Z=_.P(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(w=Z.next();!w.done;w=Z.next())for(w=w.value,r=_.P(q),Y=r.next();!Y.done;Y=r.next())if(Y="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+w+Y.value,Y=this.get(Y+"navigationEndpoint",this.data)||this.get(Y+"serviceEndpoint",this.data)||this.get(Y+"command",this.data)){_.f5(Y,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(q){_.hy(this.hostElement,"yt-autonav-pause-player",q)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(q){q()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(q){switch(q){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(q){switch(q){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.hy(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(q)},
setPlayerState:function(q){_.sE().dispatch(_.P_K(q))},
onPlayerSubscribe_:function(q){_.yY(this.hostElement,"yt-player-subscribe",[q])},
onPlayerUnsubscribe_:function(q){_.yY(this.hostElement,"yt-player-unsubscribe",[q])},
onPlayerAdYtShowToast_:function(q){_.yY(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:q.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(q){if(q)return q},
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(q){return!_.b("web_watch_move_summary_to_sd")&&!!q},
computeWatchMetadataRefresh:function(){return _.b("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var q,Z,w,r;this.watchNextSecondaryResults=(q=this.data)==null?void 0:(Z=q.contents)==null?void 0:(w=Z.twoColumnWatchNextResults)==null?void 0:(r=w.secondaryResults)==null?void 0:r.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.b("swatcheroo_pbs_load_grid")&&!_.b("swatcheroo_provide_all_data_on_scheduled_job")){_.v5.cancelJob(this.setRichGridJobId_);var q,Z,w,r,Y,C,d;this.setRichGridRendererData((q=this.data)==null?void 0:(Z=q.contents)==null?void 0:(w=Z.twoColumnWatchNextResults)==null?void 0:(r=w.secondaryResults)==null?void 0:(Y=r.secondaryResults)==null?void 0:(C=Y.results)==null?void 0:(d=C[0])==null?
void 0:d.richGridRenderer)}},
setRichGridRendererData:function(q){this.richGridRendererData=q},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var q,Z=(q=this.data)==null?void 0:q.engagementPanels;if(Z==null?0:Z.length){q=null;Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next()){w=w.value;var r=void 0;if(((r=w.engagementPanelSectionListRenderer)==null?void 0:r.targetId)==="engagement-panel-structured-description"){q=w;break}}var Y,C,d;q=(Y=q)==null?void 0:(C=Y.engagementPanelSectionListRenderer)==null?void 0:(d=C.content)==null?void 0:d.structuredDescriptionContentRenderer;if(q==null?0:q.items){Y=
[];C=_.P(q.items);for(d=C.next();!d.done;d=C.next()){d=d.value;if(!_.b("sd_horizontal_list_show_nav_killswitch")){var O=r=w=Z=q=void 0,H=void 0,L=(q=d.horizontalCardListRenderer)==null?void 0:(Z=q.header)==null?void 0:(w=Z.richListHeaderRenderer)==null?void 0:(r=w.navigationButton)==null?void 0:(O=r.buttonRenderer)==null?void 0:(H=O.command)==null?void 0:H.commandExecutorCommand;L&&L.commands&&(L.commands=L.commands.filter(function(S){return!_.J(S,_.X8v)}))}d.expandableVideoDescriptionBodyRenderer||
d.videoDescriptionHeaderRenderer||Y.push(d)}return{items:Y}}}},
constructWarning_:function(q){return{text:_.UE(q),type:"WARNING"}},
isPlaShelfEnabled_:function(q){if((this.get("adPlacements",q)||[]).length)return!0;q=this.get("playerAds",q)||[];return!(!q.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",q[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var q=this;_.hy(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.b("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var Z=this.getScrollTop()>0;this.gestures_&&(Z?this.gestures_.detach():this.gestures_.attach());Z!==this.showFullerscreenEdu_&&_.b("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=Z,_.kB(this).getPlayerPromise().then(function(w){w.updateFullerscreenEduButtonVisibility(q.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.hy(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var q=this;this.commentsReady=!1;_.v5.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.WO(_.v5,function(){q.setComments_()},1E3)},
setComments_:function(){if(!_.b("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.JT("cmi");_.v5.cancelJob(this.setCommentsJobId_);var q=this.getPageContents(this.data);if(q&&q.length){q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,this.get("itemSectionRenderer.sectionIdentifier",Z)==="comment-item-section"){this.comments=Z.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.hy(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.b("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.b("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.JT("cmc")},
doRemoveComments_:function(){this.comments={};_.b("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.v5.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.v5.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(q,Z){var w=_.J(Z.endpoint,_.ck);w&&(!(Z=this.get("data.currentVideoEndpoint.watchEndpoint"))||w.videoId!==Z.videoId||w.playlistId&&w.playlistId!==Z.playlistId||_.b("kevlar_watch_timestamp_seek_playlist_index_comparison")&&w.index!==void 0&&w.index!==Z.index||typeof w.startTimeSeconds!=="number"||(q.stopPropagation(),this.setScrollTop(0),_.kB(this).getPlayerPromise().then(function(r){var Y=w.startTimeSeconds;r.seekTo(Y);r.wakeUpControls();Y<r.getDuration()&&r.playVideo()})))},
updatePlayerStartTime_:function(){var q=_.EaA();"t"in q&&(q=_.Mxm(q.t),this.player.seekTo(q,!0))},
updateTitleFromWatchNext:function(q){q=this.getPageContents(q);var Z,w;(q=_.kO(q==null?void 0:(Z=q[0])==null?void 0:(w=Z.videoPrimaryInfoRenderer)==null?void 0:w.title))&&_.hy(this.hostElement,"yt-update-title",q)},
updateTitle_:function(q){q=this.get("videoDetails.title",q)||"";_.hy(this.hostElement,"yt-update-title",q)},
syncWithRemoteVideo_:function(q,Z,w){if(this.active&&this.player){var r=this.player.getVideoData();if(r.video_id===w&&(w=r.list,_.b("polymer_enable_mdx_queue")&&w&&w.startsWith("RQ")&&(w=void 0),r.video_id!==q||w!=Z)){var Y;_.b("kevlar_player_watch_endpoint_navigation")?Y=_.Ize(_.TJa(q,Z)):Y=this.buildWatchEndpoint_(q,Z);_.hy(this.hostElement,"yt-navigate",{endpoint:Y,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(q,Z,w){return _.lI(q,Z,w)},
initDclkstatus_:function(){_.K36()},
attachWatchPageSkeleton_:function(){var q=document.querySelector("#watch-page-skeleton");if(q){var Z=q.querySelector("#primary-info"),w=q.querySelector("#secondary-info"),r=q.querySelector("#related");Z&&_.E(this.hostElement).querySelector("#info-skeleton").appendChild(Z);w&&_.E(this.hostElement).querySelector("#meta-skeleton").appendChild(w);r&&(_.E(this.hostElement).querySelector("#related-skeleton").appendChild(r),this.watchNextSkeletonEl_=r);_.Vb(q)}},
handlePlayerUpdated_:function(){_.kB(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(q,Z){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof Z!=="undefined"){var w=this.watchNextSkeletonEl_.children,r=q&&q.indexSplices.length?q.indexSplices[0].index:0;q=Math.min(this.watchNextShownItems.length,w.length);Z||(r=0,q=w.length);for(Z=r;Z<q;Z++)w[Z].classList.add("hidden")}},
onPlayerFullscreenChange_:function(q){_.b("external_fullscreen")||_.yY(this.hostElement,"yt-player-fullscreen",[q.fullscreen])},
onFullscreenChange_:function(q){this.fullscreen=q;this.gestures_&&this.gestures_.update(this.fullscreen);var Z=_.kB(this);Z.getPlayerPromise().then(function(w){w.setFauxFullscreen(!!_.mJ())});
this.updateFullBleedElementLocations();q&&(Z.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(q,Z){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!Z},
computeIsDonationShelfCollapsed_:function(q){return q},
computeShouldShowMerchShelf:function(q,Z){return Z&&!!q},
computeResponseHasComments:function(q){var Z,w,r,Y,C;return!!(q==null?0:(Z=q.contents)==null?0:(w=Z.twoColumnWatchNextResults)==null?0:(r=w.results)==null?0:(Y=r.results)==null?0:(C=Y.contents)==null?0:C.some(function(d){var O;return(d==null?void 0:(O=d.itemSectionRenderer)==null?void 0:O.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(q,Z,w,r){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&r?!1:!!q&&!!Object.keys(q).length&&!Z},
identity:_.s2,onWindowResized_:function(q){this.windowSize_=q;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.b("kevlar_watch_js_panel_height")&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_()));_.b("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(q){var Z=this;q&&q.type!=="dataloaded"&&q.type!=="dataupdated"||_.kB(this).getPlayerPromise().then(function(w){var r=w.getPlayerState();r!==5&&r!==0&&(w=1/w.getVideoAspectRatio(),Z.videoHeightToWidthRatio_!==w&&(Z.videoHeightToWidthRatio_=w))})},
schedulePlayerSizeUpdate_:function(q){var Z=this,w=_.b("kevlar_watch_while_v2")||_.b("web_watch_pip"),r=function(){if(Z.watchMetadata){var Y,C;(C=(Y=Z.watchMetadata).resize)==null||C.call(Y)}_.kB(Z).getPlayerPromise().then(function(d){if(_.b("kevlar_set_internal_player_size")){if(!w||!Z.isMiniplayerActive()){var O=Z.calculateCurrentPlayerSize_();d.setInternalSize(O.width,O.height)}}else d.setSize(NaN,NaN);_.b("kevlar_watch_while")&&Z.updateWatchWhileScrollThreshold_()})};
q?r():_.OM(_.v5,r)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(q){this.set("data.survey",q.detail)},
onYtShowSurveyCommand_:function(q){this.set("data.survey",_.J(q,_.myd).survey)},
onDownloadedVideoDeleted:function(q){var Z=this,w,r;return _.V(function(Y){if(Y.nextAddress==1){if(!Z.active||(w=Z.playerData)==null||!w.offlineState||Z.videoId!==q)return Y.return();(r=Z.player)==null||r.stopVideo();_.qk().navigatingAwayFromWatchDeletedVideo=!0;_.f5(_.BsX,Z.hostElement);return _.W(Y,_.qk().navigationFinishPromise,2)}_.qk().navigatingAwayFromWatchDeletedVideo=!1;_.ub(Y)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var q;this.theater?q=_.a0(.5625*this.windowSize_.width,480,this.windowSize_.height-185):q=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==q&&(this.watchWhileScrollThreshold_=q,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var q=_.E(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&q){var Z=this.windowSize_.height>=624,w=this.active?this.getScrollTop():0;!q.active&&Z&&w>=this.watchWhileScrollThreshold_?(q.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):q.active&&(!Z||w<this.watchWhileScrollThreshold_&&!_.mJ())&&(q.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var q=_.E(this.hostElement).querySelector("#secondary-inner");if(q){var Z=_.E(this.hostElement).querySelector("#below"),w=_.E(this.hostElement).querySelector("#secondary"),r=_.E(this.hostElement).querySelector("#comments");r&&w&&Z&&(this.defaultTwoColumnLayout?(q.appendChild(r),w.appendChild(q)):(Z.appendChild(r),_.cC(Z,q)))}}},
isTwoColumnsChanged_:function(q,Z){if(q!==!0||Z!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(q=_.E(this.hostElement).querySelector("#secondary-inner"))){Z=_.E(this.hostElement).querySelector("#below");var w=_.E(this.hostElement).querySelector("#secondary"),r=_.E(this.hostElement).querySelector("#comments");r&&w&&Z&&(this.isTwoColumns_?(q.appendChild(r),w.appendChild(q)):(Z.appendChild(r),_.cC(Z,q)))}}else{q=!_.b("live_chat_over_engagement_panels");Z=_.E(this.hostElement).querySelector("#chat-container");
w=_.E(this.hostElement).querySelector("#plj-sidebar");r=_.E(this.hostElement).querySelector("#panels");var Y=_.E(this.hostElement).querySelector("#plj-panels"),C=_.E(this.hostElement).querySelector("#plj-playlist"),d=_.E(this.hostElement).querySelector("#alerts"),O=_.E(this.hostElement).querySelector("#playlist"),H=_.E(this.hostElement).querySelector("#related"),L=_.E(this.hostElement).querySelector("#donation-shelf"),S=_.E(this.hostElement).querySelector("#comments");this.isTwoColumns_?(d=_.E(this.hostElement).querySelector("#secondary-inner"),
d.appendChild(w),w.appendChild(C),C.appendChild(O),w.appendChild(Y),q&&d.appendChild(r),_.b("web_watch_theater_chat")||d.appendChild(Z),q||d.appendChild(r),d.appendChild(L),d.appendChild(H)):(q&&_.Br(r,d),_.Br(O,d),_.b("web_watch_theater_chat")||_.Br(Z,d),q||_.Br(r,d),_.Br(L,d),S&&_.Br(H,S));_.b("kevlar_watch_js_panel_height")&&this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.b("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.b("web_watch_theater_chat")){var q=_.E(this.hostElement).querySelector("#chat-container"),Z=this.theater&&!this.fullscreen||_.b("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&Z?_.b("web_watch_theater_chat_beside_player")?(Z=_.E(this.hostElement).querySelector("#panels-full-bleed-container"),(q==null?void 0:q.parentElement)!==Z&&Z.append(q),this.panelsBesidePlayer=!0):
_.b("web_watch_theater_fixed_chat")&&(Z=_.E(this.hostElement).querySelector("#columns"),(q==null?void 0:q.parentElement)!==Z&&Z.append(q),this.fixedPanels=!0):(_.b("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.b("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),Z=_.E(this.hostElement).querySelector("#playlist"),q&&Z?_.ar(q,Z):_.bx(new _.df("Missing element when updating chat location",{"chatContainer defined":!!q,"playlist defined":!!Z})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(q,Z){return _.b("sw_metadata_vis_toggle_ks")?!0:!!q||!!Z},
computeForceDarkPanelTheme:function(q){return _.b("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&q:!1},
safeUpdateStyles:function(q){try{_.po(this.hostElement,q)}catch(Z){_.bx(Z)}},
videoHeightToWidthRatioChanged_:function(q,Z){Z&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.b("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(q){this.videoHeightToWidthRatio_=1/q},
computeIsVerticalVideo_:function(q){return q>=1},
computeIsFourThreeToSixteenNineVideo_:function(q){return q<=.7501&&q>=.5624},
computeIsExtraWideVideo_:function(q){return q<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.kB(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.kB(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.ZpA(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(q){var Z=_.i8(q)||0;_.yq(q,Z+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var q=_.i8("yt-fullerscreen-edu-button-click-count")||0,Z=_.i8("yt-fullerscreen-edu-button-shown-count")||0,w=_.m6("external_fullscreen_button_shown_threshold"),r=q>=_.m6("external_fullscreen_button_click_threshold")||Z>=w;_.kB(this).getPlayerPromise().then(function(Y){Y.updateFullerscreenEduButtonSubtleModeState(r)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(q,Z){return Z},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.t().resolve(_.b8).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var q=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.v5.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.v5.addLowPriorityJob(function(){q.fullHeightPanelPositionUpdateJobId=0;var Z=_.E(q.hostElement).querySelector("#secondary"),w=_.E(q.hostElement).querySelector("#fixed-secondary");Z=Z.getBoundingClientRect();var r=Z.width;q.swatcherooSqueezeback&&
(r+=_.MJ);if(q.swatcherooSqueezeback){var Y=_.E(q.hostElement).querySelector("#squeezeback-constraining-container");Y.style.width=r+"px";Y.style.flex="0 0 "+r+"px"}w.style.width=r+"px";w.style.left=Z.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var q=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.v5.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.v5.addLowPriorityJob(function(){q.panelMaxHeightUpdateJob_=0;var Z;!q.isTwoColumns_||q.theater||q.fullscreen?Z=460:Z=q.calculateNormalPlayerSize_().height;var w=Z+"px";_.b("live_chat_taller_height")&&!q.theater&&(w="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.b("live_chat_medium_height")&&!q.theater&&(w="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.b("live_chat_scaled_height")&&!q.theater&&(w="calc(100vh - var(--ytd-toolbar-height) - 238px)");q.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":Z+"px","--ytd-watch-flexy-chat-max-height":w,"--ytd-watch-flexy-structured-description-max-height":Z+"px","--ytd-watch-flexy-comments-panel-max-height":Z+"px","--ytd-comments-engagement-panel-content-height":Z+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var q=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.b("web_watch_flexy_adjust_sidebar_width"))&&!_.b("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.v5.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.v5.addLowPriorityJob(function(){q.panelMaxHeightUpdateJob_=0;if(q.isTwoColumns_){var Z=_.Iwg(q.windowSize_,q.calculateNormalPlayerSize_().width);Z!==q.currentSidebarWidth&&(q.currentSidebarWidth=
Z,q.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":Z+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(q){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",q)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.ZC(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(q){var Z=_.E(this.hostElement).querySelector("#engagement-panel-scrim");q?Z.addEventListener("tap",_.XN(this,this.onEngagementPanelScrimClick_)):Z.removeEventListener("tap",_.XN(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(q){if(this.hostElement.contains(q)&&!this.scrollToAnimation_.isAnimating()){var Z=q.offsetTop-24;q=q.offsetTop+q.offsetHeight+24;var w=this.getPageScrollingElement(),r=this.getScrollTop(),Y=r+w.clientHeight-56;if(Z<r+56)Z-=56;else if(q>Y)Z=q-w.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,Z),500)}},
onYtSignalActionScrollToComments:function(){var q=this.hostElement.querySelector("#comments");if(q&&!this.scrollToAnimation_.isAnimating()){q=q.offsetTop-56-24;if(_.b("kevlar_comment_teaser_scroll_to_midpoint")&&(q-=_.H3().height/3,q<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,q),500)}},
onYtEngagementPanelVisibleChanged:function(q,Z,w){this.active&&this.trackEngagementPanelVisibility&&!_.R76.includes(w)&&(Z==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(w),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.i5(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),Z!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&Z!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(w),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(q){return q?"":"watch-active-metadata"},
computeNewMetadataClass:function(q){return q?"watch-active-metadata":""},
computeFullBleedPlayer:function(q,Z){return q||Z},
computeDefaultLayout:function(q){return!q},
computeDefaultTwoColumnLayout:function(q,Z){return!q&&Z},
swatcherooUpdatePanelsLocation:function(q,Z,w,r,Y,C){if(this.is==="ytd-watch-grid"){Z=q&&!Z;this.swatcherooSplitScroll&&(Z?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));w=_.E(this.hostElement).querySelector("#panels");var d=_.E(this.hostElement).querySelector("#playlist"),O=_.E(this.hostElement).querySelector("#fixed-secondary"),H=_.E(this.hostElement).querySelector("#fixed-below"),
L=_.E(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),S=_.E(this.hostElement).querySelector("#chat-container");C&&(q?O.appendChild(w):H.appendChild(w));Y?q?O.appendChild(S):H.appendChild(S):_.ar(S,L);r?q?O.appendChild(d):H.appendChild(d):_.ar(d,L);this.swatcherooSplitScroll&&(q=_.E(this.hostElement).querySelector("#secondary"),r=_.E(this.hostElement).querySelector("#columns"),Y=_.E(this.hostElement).querySelector("#fixed-columns-secondary"),Z?Y.appendChild(q):
r.appendChild(q))}},
computeMetadataSkinnyMode:function(q,Z,w){return this.is!=="ytd-watch-grid"?!1:q?w:Z},
computeWatchWhilePanelsActive:function(q,Z){return q||Z},
computeNoBorderOnChat:function(q){return _.b("web_watch_theater_chat_no_border")&&q},
computeLiveChatPresentAndExpanded:function(q,Z){return q&&!Z},
computePanelExpanded:function(q,Z,w){return q||Z||w},
computeSwatcherooSqueezeback:function(q,Z,w){return this.is!=="ytd-watch-grid"||_.b("ww_squeezeback_killswitch")?!1:q&&Z&&w},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(q){_.kB(this).getPlayerPromise().then(function(Z){var w;(w=Z.changeMarkerVisibility)==null||w.call(Z,_.J(q,_.Gn).isVisible||!1,_.J(q,_.Gn).entityKeys||[],_.J(q,_.Gn).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(q){this.liveChatCollapsed=q.detail;_.sE().dispatch(_.p0a(q.detail))},
onSetPlaylistCollapsed:function(q){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!q)},
provideRenderingData:function(q,Z){switch(q){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=Z;break;case "PRIMARY_INFO":_.b("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=Z);this.videoPrimaryInfoRendererValue=Z==null?void 0:Z.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.b("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=Z);this.videoSecondaryInfoRendererValue=Z==null?void 0:Z.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
Z;break;case "CLARIFICATION":this.clarifyBoxValue=Z;break;case "LIVE_CHAT":this.conversationBar=Z;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=Z;break;case "PLAYLIST":this.externalPlaylistData_=Z!=null?Z:{};break;case "MERCH_SHELF":this.merchShelfValue=Z==null?void 0:Z.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=Z;break;case "OFFER_MODULE":this.offerModule=Z;break;case "LIMITED_STATE":this.limitedStateValue=Z;break;case "DONATION_SHELF":this.donation=Z;break;
case "ALERTS":this.alertsValue=Z;break;case "COMMENTS":this.comments=Z;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=Z;break;case "ENGAGEMENT_PANELS":this.engagementPanels=Z;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=Z;break;case "RICH_GRID_RENDERER":this.richGridRendererData=Z;break;case "EXPANDABLE_METADATA":this.expandableMetadata=Z;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=Z}},
toggleCinematicsActive:function(q){this.cinematicsActive=q},
isMiniplayerActive:function(){return _.t().resolve(_.Tf).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(q){return JyK.map(function(Z){return q.find(function(w){var r;return(w==null?void 0:(r=w.engagementPanelSectionListRenderer)==null?void 0:r.targetId)===Z})}).filter(function(Z){return Z!==void 0})},
getNonLearningJourneyEngagementPanels:function(q){return q.filter(function(Z){var w;return!JyK.includes((Z==null?void 0:(w=Z.engagementPanelSectionListRenderer)==null?void 0:w.targetId)||"")})},
getHasLearningJourneyPanels:function(q){return q.length>0}}];var zEa;var B0w=function(){var q=_.N.apply(this,arguments)||this;q.flexy=!0;q.learningJourney=!0;q.roundedInfoPanel=!0;q.viewTransitionEnabled=_.b("enable_player_resize_transition");q.smallerChatMinHeight=_.b("live_chat_smaller_min_height");q.cinematicTheaterMode=_.b("web_cinematic_theater_mode");q.transparentTheaterMode=_.b("web_transparent_theater_mode");q.cinematicFullscreen=_.b("web_cinematic_fullscreen");q.useLargerMaxPlayerValue=_.b("kevlar_flexy_use_larger_player_value");q.cinematicFullscreenV2=_.b("web_cinematic_fullscreen_v2");
q.isDarkTheme=document.documentElement.hasAttribute("dark");q.theaterLargerPlayer=_.b("web_watch_theater_larger_player");q.defaultCollapsePlaylist=_.b("web_watch_default_collapse_playlist");return q};
_.z(B0w,_.N);_.e=B0w.prototype;_.e.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.e.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.e.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.e.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.e.ready=function(){var q=this,Z=function(){q.onColumnScroll()};
this.primary.addEventListener("scroll",Z);this.secondary.addEventListener("scroll",Z)};
_.e.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.e.updateIsTwoColumnsFromBinding=function(q){_.b("web_watch_update_narrow_width_killswitch")||_.sE().dispatch(_.M66(!q.detail.value));this.ytdWatchBehavior.isTwoColumns_=q.detail.value};
_.e.updateFlexySmallWindowFromBinding=function(q){this.ytdWatchBehavior.flexySmallWindow_=q.detail.value};
_.e.updateFlexyLargeWindowFromBinding=function(q){this.ytdWatchBehavior.flexyLargeWindow_=q.detail.value};
_.e.updateWatchWhileWindowSizeSufficientFromBinding=function(q){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=q.detail.value};
_.e.updateWatchNextCanShowMoreFromBinding=function(q){this.ytdWatchBehavior.watchNextCanShowMore=q.detail.value};
_.e.updateShownItemsFromBinding=function(q){q.detail.path?this.set(q.detail.path,q.detail.value):this.ytdWatchBehavior.watchNextShownItems=q.detail.value};
_.e.getElement=function(q){switch(q){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20294_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20294_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.My.Object.defineProperties(B0w.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.pageVisualEffects)return!1;for(var Z=0;Z<this.data.pageVisualEffects.length;Z++)if(q=_.J(this.data.pageVisualEffects[Z],_.xV))return Z=void 0,(Z=q.config)==null?void 0:Z.enableInLightTheme;return!1}}});
_.My.Object.defineProperties(B0w,{template:{configurable:!0,enumerable:!0,get:function(){if(zEa===void 0){var q=document.createElement("template");_.a(q,'\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\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="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-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\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-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>\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);zEa=q}q=zEa;return q}}});
var gQ=B0w;gQ.prototype.updateMiniplayerIsActiveValue=gQ.prototype.updateMiniplayerIsActiveValue;gQ.prototype.updateScrollTopValue=gQ.prototype.updateScrollTopValue;gQ.prototype.updateFullscreenValue=gQ.prototype.updateFullscreenValue;gQ.prototype.updateTheaterValue=gQ.prototype.updateTheaterValue;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],gQ.prototype,"ytComponentBehavior",void 0);
_.X([_.U(bpd.YtdLearningJourneyWatchBehavior),_.A("design:type",Object)],gQ.prototype,"ytdWatchBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],gQ.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],gQ.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],gQ.prototype,"playerData",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gQ.prototype,"flexy",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gQ.prototype,"learningJourney",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gQ.prototype,"roundedInfoPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gQ.prototype,"viewTransitionEnabled",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gQ.prototype,"smallerChatMinHeight",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gQ.prototype,"cinematicTheaterMode",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gQ.prototype,"transparentTheaterMode",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gQ.prototype,"cinematicFullscreen",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gQ.prototype,"useLargerMaxPlayerValue",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gQ.prototype,"cinematicFullscreenV2",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gQ.prototype,"isDarkTheme",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gQ.prototype,"theaterLargerPlayer",void 0);_.X([_.F(),_.A("design:type",Object)],gQ.prototype,"defaultCollapsePlaylist",void 0);_.X([_.F({selector:_.P9}),_.A("design:type",Object)],gQ.prototype,"theaterValue",void 0);
_.X([_.F({selector:_.kW}),_.A("design:type",Object)],gQ.prototype,"fullscreenValue",void 0);_.X([_.F({selector:_.KT}),_.A("design:type",Object)],gQ.prototype,"scrollTopValue",void 0);_.X([_.F({selector:_.jZ}),_.A("design:type",Object)],gQ.prototype,"miniplayerIsActiveValue",void 0);_.X([_.KE("ytd-player"),_.A("design:type",HTMLElement)],gQ.prototype,"ytdPlayer",void 0);_.X([_.fo("#playlist"),_.A("design:type",HTMLElement)],gQ.prototype,"JSC$20294_ytdPlaylistPanelRenderer",void 0);
_.X([_.KE("ytd-comments"),_.A("design:type",HTMLElement)],gQ.prototype,"ytdComments",void 0);_.X([_.fo("#primary"),_.A("design:type",HTMLElement)],gQ.prototype,"primary",void 0);_.X([_.fo("#secondary"),_.A("design:type",HTMLElement)],gQ.prototype,"secondary",void 0);_.X([_.fo("#player-container"),_.A("design:type",HTMLElement)],gQ.prototype,"playerContainer",void 0);_.X([_.fo("#cinematics"),_.A("design:type",HTMLElement)],gQ.prototype,"JSC$20294_cinematics",void 0);
_.X([_.M("theaterValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gQ.prototype,"updateTheaterValue",null);_.X([_.M("fullscreenValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gQ.prototype,"updateFullscreenValue",null);_.X([_.M("scrollTopValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gQ.prototype,"updateScrollTopValue",null);
_.X([_.M("miniplayerIsActiveValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gQ.prototype,"updateMiniplayerIsActiveValue",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],gQ.prototype,"cinematicLightTheme",null);gQ=_.X([_.l({is:"ytd-watch-learning-journey"})],gQ);_.Wv.registerService(_.HT6,gQ);
_.J1();
}catch(e){_._DumpException(e)}
try{
_.b6("Tm0L3c");
var HpI;var WJm;var oQv=function(){return _.N.apply(this,arguments)||this};
_.z(oQv,_.N);var uKI=oQv;uKI=_.X([_.l({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],uKI);
_.p(uKI,"ytd-ghost-comments-renderer",function(){if(WJm===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);WJm=q}q=WJm;return q},{mode:1});var LJd;var SPd=function(){return _.N.apply(this,arguments)||this};
_.z(SPd,_.N);var vQ9=SPd;vQ9=_.X([_.l({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],vQ9);
_.p(vQ9,"ytd-ghost-watch-metadata-renderer",function(){if(LJd===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);LJd=q}q=LJd;return q},{mode:1});var iW=function(){var q=_.N.apply(this,arguments)||this;q.ghostGridRenderer={rows:6};q.roundedInfoPanel=!0;q.hideOfferModules=!0;q.smallerChatMinHeight=_.b("live_chat_smaller_min_height");q.cinematicTheaterMode=_.b("web_cinematic_theater_mode");q.transparentTheaterMode=_.b("web_transparent_theater_mode");q.darkerPanels=_.b("web_watch_darker_panels");q.cinematicFullscreen=_.b("web_cinematic_fullscreen");q.cinematicFullscreenV2=_.b("web_cinematic_fullscreen_v2");q.isDarkTheme=document.documentElement.hasAttribute("dark");
return q};
_.z(iW,_.N);_.e=iW.prototype;_.e.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.e.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.e.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.e.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.e.ready=function(){var q=this,Z=function(){q.onColumnScroll()};
this.primary.addEventListener("scroll",Z);this.secondary.addEventListener("scroll",Z)};
_.e.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.e.updateIsTwoColumnsFromBinding=function(q){this.ytdWatchBehavior.isTwoColumns_=q.detail.value};
_.e.updateFlexySmallWindowFromBinding=function(q){this.ytdWatchBehavior.flexySmallWindow_=q.detail.value};
_.e.updateFlexyLargeWindowFromBinding=function(q){this.ytdWatchBehavior.flexyLargeWindow_=q.detail.value};
_.e.updateWatchWhileWindowSizeSufficientFromBinding=function(q){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=q.detail.value};
_.e.updateWatchNextCanShowMoreFromBinding=function(q){this.ytdWatchBehavior.watchNextCanShowMore=q.detail.value};
_.e.updateShownItemsFromBinding=function(q){_.b("swatcheroo_direct_use_rich_grid")||(q.detail.path?this.set(q.detail.path,q.detail.value):this.ytdWatchBehavior.watchNextShownItems=q.detail.value)};
_.e.getElement=function(q){switch(q){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20285_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20285_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.My.Object.defineProperties(iW.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.pageVisualEffects)return!1;for(var Z=0;Z<this.data.pageVisualEffects.length;Z++)if(q=_.J(this.data.pageVisualEffects[Z],_.xV))return Z=void 0,(Z=q.config)==null?void 0:Z.enableInLightTheme;return!1}}});
iW.prototype.updateMiniplayerIsActiveValue=iW.prototype.updateMiniplayerIsActiveValue;iW.prototype.updateScrollTopValue=iW.prototype.updateScrollTopValue;iW.prototype.updateFullscreenValue=iW.prototype.updateFullscreenValue;iW.prototype.updateTheaterValue=iW.prototype.updateTheaterValue;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],iW.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],iW.prototype,"ytComponentBehavior",void 0);
_.X([_.U(_.d$m.YtdWatchBehavior),_.A("design:type",Object)],iW.prototype,"ytdWatchBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],iW.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],iW.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],iW.prototype,"ghostGridRenderer",void 0);_.X([_.F(),_.A("design:type",Object)],iW.prototype,"playerData",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],iW.prototype,"roundedInfoPanel",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],iW.prototype,"hideOfferModules",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],iW.prototype,"smallerChatMinHeight",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],iW.prototype,"cinematicTheaterMode",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],iW.prototype,"transparentTheaterMode",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],iW.prototype,"darkerPanels",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],iW.prototype,"cinematicFullscreen",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],iW.prototype,"cinematicFullscreenV2",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],iW.prototype,"isDarkTheme",void 0);_.X([_.F({selector:_.P9}),_.A("design:type",Object)],iW.prototype,"theaterValue",void 0);
_.X([_.F({selector:_.kW}),_.A("design:type",Object)],iW.prototype,"fullscreenValue",void 0);_.X([_.F({selector:_.KT}),_.A("design:type",Object)],iW.prototype,"scrollTopValue",void 0);_.X([_.F({selector:_.jZ}),_.A("design:type",Object)],iW.prototype,"miniplayerIsActiveValue",void 0);_.X([_.fo("#ytd-player"),_.A("design:type",HTMLElement)],iW.prototype,"ytdPlayer",void 0);_.X([_.fo("#playlist"),_.A("design:type",HTMLElement)],iW.prototype,"JSC$20285_ytdPlaylistPanelRenderer",void 0);
_.X([_.fo("#ytd-comments"),_.A("design:type",HTMLElement)],iW.prototype,"ytdComments",void 0);_.X([_.fo("#primary"),_.A("design:type",HTMLElement)],iW.prototype,"primary",void 0);_.X([_.fo("#secondary"),_.A("design:type",HTMLElement)],iW.prototype,"secondary",void 0);_.X([_.fo("#player-container"),_.A("design:type",HTMLElement)],iW.prototype,"playerContainer",void 0);_.X([_.fo("#cinematics"),_.A("design:type",HTMLElement)],iW.prototype,"JSC$20285_cinematics",void 0);
_.X([_.M("theaterValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iW.prototype,"updateTheaterValue",null);_.X([_.M("fullscreenValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iW.prototype,"updateFullscreenValue",null);_.X([_.M("scrollTopValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iW.prototype,"updateScrollTopValue",null);
_.X([_.M("miniplayerIsActiveValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iW.prototype,"updateMiniplayerIsActiveValue",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],iW.prototype,"cinematicLightTheme",null);
_.p(iW,"ytd-watch-grid",function(){if(HpI===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);HpI=q}q=HpI;return q},{mode:2});_.Wv.registerService(_.OTe,iW);
_.J1();
}catch(e){_._DumpException(e)}
try{
_.b6("CF909");
var Vs9;var OpK=function(){var q=_.N.apply(this,arguments)||this;q.flexy=!0;q.roundedInfoPanel=!0;q.viewTransitionEnabled=_.b("enable_player_resize_transition");q.smallerChatMinHeight=_.b("live_chat_smaller_min_height");q.cinematicTheaterMode=_.b("web_cinematic_theater_mode");q.transparentTheaterMode=_.b("web_transparent_theater_mode");q.cinematicFullscreen=_.b("web_cinematic_fullscreen");q.useLargerMaxPlayerValue=_.b("kevlar_flexy_use_larger_player_value");q.cinematicFullscreenV2=_.b("web_cinematic_fullscreen_v2");
q.isDarkTheme=document.documentElement.hasAttribute("dark");q.theaterLargerPlayer=_.b("web_watch_theater_larger_player");q.defaultCollapsePlaylist=_.b("web_watch_default_collapse_playlist");q.retroModeReduxValue=!1;return q};
_.z(OpK,_.N);_.e=OpK.prototype;_.e.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.e.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.e.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.e.updateRetroModeReduxValue=function(){_.b("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.e.ready=function(){var q=this,Z=function(){q.onColumnScroll()};
this.primary.addEventListener("scroll",Z);this.secondary.addEventListener("scroll",Z)};
_.e.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.e.updateIsTwoColumnsFromBinding=function(q){_.b("web_watch_update_narrow_width_killswitch")||_.sE().dispatch(_.M66(!q.detail.value));this.ytdWatchBehavior.isTwoColumns_=q.detail.value};
_.e.updateFlexySmallWindowFromBinding=function(q){this.ytdWatchBehavior.flexySmallWindow_=q.detail.value};
_.e.updateFlexyLargeWindowFromBinding=function(q){this.ytdWatchBehavior.flexyLargeWindow_=q.detail.value};
_.e.updateWatchWhileWindowSizeSufficientFromBinding=function(q){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=q.detail.value};
_.e.updateWatchNextCanShowMoreFromBinding=function(q){this.ytdWatchBehavior.watchNextCanShowMore=q.detail.value};
_.e.updateShownItemsFromBinding=function(q){q.detail.path?this.set(q.detail.path,q.detail.value):this.ytdWatchBehavior.watchNextShownItems=q.detail.value};
_.e.getElement=function(q){switch(q){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20280_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20280_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.My.Object.defineProperties(OpK.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.pageVisualEffects)return!1;for(var Z=0;Z<this.data.pageVisualEffects.length;Z++)if(q=_.J(this.data.pageVisualEffects[Z],_.xV))return Z=void 0,(Z=q.config)==null?void 0:Z.enableInLightTheme;return!1}}});
_.My.Object.defineProperties(OpK,{template:{configurable:!0,enumerable:!0,get:function(){if(Vs9===void 0){var q=document.createElement("template");_.a(q,'\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="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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);Vs9=q}q=Vs9;return q}}});
var y_=OpK;y_.prototype.updateRetroModeReduxValue=y_.prototype.updateRetroModeReduxValue;y_.prototype.updateScrollTopValue=y_.prototype.updateScrollTopValue;y_.prototype.updateFullscreenValue=y_.prototype.updateFullscreenValue;y_.prototype.updateTheaterValue=y_.prototype.updateTheaterValue;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],y_.prototype,"ytComponentBehavior",void 0);
_.X([_.U(_.d$m.YtdWatchBehavior),_.A("design:type",Object)],y_.prototype,"ytdWatchBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],y_.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],y_.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],y_.prototype,"playerData",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],y_.prototype,"flexy",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],y_.prototype,"roundedInfoPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],y_.prototype,"viewTransitionEnabled",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],y_.prototype,"smallerChatMinHeight",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],y_.prototype,"cinematicTheaterMode",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],y_.prototype,"transparentTheaterMode",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],y_.prototype,"cinematicFullscreen",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],y_.prototype,"useLargerMaxPlayerValue",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],y_.prototype,"cinematicFullscreenV2",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],y_.prototype,"isDarkTheme",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],y_.prototype,"theaterLargerPlayer",void 0);_.X([_.F(),_.A("design:type",Object)],y_.prototype,"defaultCollapsePlaylist",void 0);_.X([_.F({selector:_.P9}),_.A("design:type",Object)],y_.prototype,"theaterValue",void 0);_.X([_.F({selector:_.kW}),_.A("design:type",Object)],y_.prototype,"fullscreenValue",void 0);
_.X([_.F({selector:_.KT}),_.A("design:type",Object)],y_.prototype,"scrollTopValue",void 0);_.X([_.F({selector:_.jZ}),_.A("design:type",Object)],y_.prototype,"miniplayerIsActive",void 0);_.X([_.F({selector:function(q){return q.watch.isWatchRetroMode}}),
_.A("design:type",Object)],y_.prototype,"retroModeReduxValue",void 0);_.X([_.KE("ytd-player"),_.A("design:type",HTMLElement)],y_.prototype,"ytdPlayer",void 0);_.X([_.fo("#playlist"),_.A("design:type",HTMLElement)],y_.prototype,"JSC$20280_ytdPlaylistPanelRenderer",void 0);_.X([_.KE("ytd-comments"),_.A("design:type",HTMLElement)],y_.prototype,"ytdComments",void 0);_.X([_.fo("#primary"),_.A("design:type",HTMLElement)],y_.prototype,"primary",void 0);
_.X([_.fo("#secondary"),_.A("design:type",HTMLElement)],y_.prototype,"secondary",void 0);_.X([_.fo("#player-container"),_.A("design:type",HTMLElement)],y_.prototype,"playerContainer",void 0);_.X([_.fo("#cinematics"),_.A("design:type",HTMLElement)],y_.prototype,"JSC$20280_cinematics",void 0);_.X([_.M("theaterValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],y_.prototype,"updateTheaterValue",null);
_.X([_.M("fullscreenValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],y_.prototype,"updateFullscreenValue",null);_.X([_.M("scrollTopValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],y_.prototype,"updateScrollTopValue",null);_.X([_.M("retroModeReduxValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],y_.prototype,"updateRetroModeReduxValue",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],y_.prototype,"cinematicLightTheme",null);y_=_.X([_.l({is:"ytd-watch-flexy"})],y_);_.Wv.registerService(_.VUI,y_);
_.J1();
}catch(e){_._DumpException(e)}
try{
_.b6("nmfa2d");
var Q_F;var lW=function(){var q=_.N.apply(this,arguments)||this;q.hidden=!1;q.errorScreen=null;q.playlistData={};return q};
_.z(lW,_.N);_.e=lW.prototype;_.e.getPlayer=function(){return this.ytdPlayer};
_.e.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:_.oI(["aa","eocs"])}}};
_.e.onActiveChanged=function(){_.sE().dispatch(_.cIw(this.ytPageBehavior.active))};
_.e.playerDataChanged=function(){var q;(q=this.watchController)==null||_.MF(q,this.playerData)};
_.e.dataChanged=function(){var q;(q=this.watchController)==null||_.FL(q,this.data)};
_.e.sizeChanged=function(){var q,Z;(Z=(q=this.metadata).resize)==null||Z.call(q)};
_.e.attached=function(){this.watchController=new _.cA(this);this.playerData&&_.MF(this.watchController,this.playerData);this.data&&_.FL(this.watchController,this.data)};
_.e.detached=function(){_.Xg(this.watchController);this.watchController=void 0};
_.e.getPlayerContainer=function(){return this.playerContainer};
_.e.getElement=function(q){switch(q){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20232_playlistPanel}};
_.e.provideRenderingData=function(q,Z){switch(q){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=Z;break;case "ERROR_SCREEN":this.errorScreen=Z!=null?Z:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=Z;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=Z;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=Z;break;case "RICH_METADATA":this.richMetadataRowContainer=Z;break;case "CLARIFICATION":this.clarificationData=Z;break;case "PLAYLIST":this.playlistData=
Z!=null?Z:{};break;case "MERCH_SHELF":this.merchShelf=Z;break;case "TICKET_SHELF":this.ticketShelf=Z;break;case "LIMITED_STATE":this.limitedState=Z;break;case "DONATION_SHELF":this.donationShelf=Z;break;case "ALERTS":this.alerts=Z}};
_.My.Object.defineProperties(lW.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return!this.hidden&&!!((q=this.data)==null?0:(Z=q.contents)==null?0:(w=Z.twoColumnWatchNextResults)==null?0:w.conversationBar)}}});
lW.prototype.sizeChanged=lW.prototype.sizeChanged;lW.prototype.dataChanged=lW.prototype.dataChanged;lW.prototype.playerDataChanged=lW.prototype.playerDataChanged;lW.prototype.onActiveChanged=lW.prototype.onActiveChanged;_.X([_.U(_.kV.YtPageBehavior),_.A("design:type",Object)],lW.prototype,"ytPageBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],lW.prototype,"ytComponentBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],lW.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],lW.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],lW.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],lW.prototype,"playerData",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],lW.prototype,"hidden",void 0);_.X([_.fo("#ytd-player"),_.A("design:type",HTMLElement)],lW.prototype,"ytdPlayer",void 0);_.X([_.fo("#player-container"),_.A("design:type",HTMLElement)],lW.prototype,"playerContainer",void 0);_.X([_.fo("#metadata"),_.A("design:type",Object)],lW.prototype,"metadata",void 0);_.X([_.fo("#playlist"),_.A("design:type",HTMLElement)],lW.prototype,"JSC$20232_playlistPanel",void 0);
_.X([_.F({selector:_.MV5,reflectToAttribute:!0}),_.A("design:type",Object)],lW.prototype,"fixie",void 0);_.X([_.F({selector:_.cc8,reflectToAttribute:!0}),_.A("design:type",Object)],lW.prototype,"singleColumn",void 0);_.X([_.F({selector:function(q){return _.P9(q)&&!_.kW(q)},
reflectToAttribute:!0}),_.A("design:type",Object)],lW.prototype,"theater",void 0);_.X([_.F({selector:_.kW,reflectToAttribute:!0}),_.A("design:type",Object)],lW.prototype,"fullscreen",void 0);_.X([_.F({selector:_.Ilw}),_.A("design:type",Object)],lW.prototype,"windowSize",void 0);_.X([_.F(),_.A("design:type",Object)],lW.prototype,"singleColumnContents",void 0);_.X([_.F(),_.A("design:type",Object)],lW.prototype,"errorScreen",void 0);_.X([_.F(),_.A("design:type",Object)],lW.prototype,"playlistData",void 0);
_.X([_.F(),_.A("design:type",Object)],lW.prototype,"videoPrimaryInfoRenderer",void 0);_.X([_.F(),_.A("design:type",Object)],lW.prototype,"videoSecondaryInfoRenderer",void 0);_.X([_.F(),_.A("design:type",Object)],lW.prototype,"richMetadataRowContainer",void 0);_.X([_.F(),_.A("design:type",Object)],lW.prototype,"clarificationData",void 0);_.X([_.F(),_.A("design:type",Object)],lW.prototype,"commentsEntryPointHeaderRenderer",void 0);_.X([_.F(),_.A("design:type",Object)],lW.prototype,"ticketShelf",void 0);
_.X([_.F(),_.A("design:type",Object)],lW.prototype,"merchShelf",void 0);_.X([_.F(),_.A("design:type",Object)],lW.prototype,"donationShelf",void 0);_.X([_.F(),_.A("design:type",Object)],lW.prototype,"limitedState",void 0);_.X([_.F(),_.A("design:type",Object)],lW.prototype,"alerts",void 0);_.X([_.I("playlistData"),_.A("design:type",Object),_.A("design:paramtypes",[])],lW.prototype,"hasPlaylistData",null);
_.X([_.I("data","hidden"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],lW.prototype,"hasChat",null);_.X([_.M("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lW.prototype,"onActiveChanged",null);_.X([_.M("playerData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lW.prototype,"playerDataChanged",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lW.prototype,"dataChanged",null);_.X([_.M("windowSize","singleColumn"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lW.prototype,"sizeChanged",null);
_.p(lW,"ytd-watch-fixie",function(){if(Q_F===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);Q_F=q}q=Q_F;return q},{mode:1});_.Wv.registerService(_.dJO,lW);
_.J1();
}catch(e){_._DumpException(e)}
try{
_.b6("xwEKAe");
var Rmw=function(q){var Z=_.Hd();if(Z.getFlag(202))Z=Z.getFlag(201);else{var w;Z=(q==null?void 0:(w=q.config)==null?void 0:w.settingOnByDefault)!==void 0?q.config.settingOnByDefault:!_.b("web_shorts_cinematics_disabled_by_default")}return Z},b9v=function(q){var Z=_.Hd();
_.Wd(0,201,q);_.Wd(0,202,!0);Z.save()},JKw=function(q){return(q=_.dvj(q))?_.O12(q):0},zmr=function(q){return q.shorts.isSmallScreenSqueezeback},BWw=function(q){return q.shorts.isPlaybackStarted},QhX=function(q,Z,w){for(var r=[],Y=0,C=-1;Y<q.length;Y++)Y%3===0&&(C++,r[C]=[]),r[C].push(q[Y]);
q=new ob(r);r=new ob([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);r=q.multiply(r);q=new ob([[0,0],[0,0],[0,0],[0,0]]);for(Y=0;Y<r.getSize().width;Y++){C=ue(r,0,Y);var d=ue(r,1,Y);if(C===null||d===null)throw Error("dm`"+(Y+1).toString());ae5(q,Y,0,C*Z);ae5(q,Y,1,d*w)}Z=ue(q,0,0);Y=ue(q,1,0);w=ue(q,0,1);C=ue(q,1,1);if(Z===null||Y===null||w===null||C===null)throw Error("bm");r=ng5(Z,Y,w,C);d=ue(q,3,0);q=ue(q,3,1);if(d===null||q===null)throw Error("cm");q=ng5(Z,d,w,q);C=(Number((C*-1).toFixed(2))-Number((w*-1).toFixed(2)))/
(Number(Y.toFixed(2))-Number(Z.toFixed(2)));d=Math.atan(C)*180/Math.PI;Y=C===Number.POSITIVE_INFINITY?-90:C===Number.NEGATIVE_INFINITY?90:Object.is(C,-0)?180:C===0?0:C>0?d*-1:Z<Y?d*-1:Math.abs(d)+180;return{top:w,left:Z,width:r,height:q,rotation:Y}},ng5=function(q,Z,w,r){q=Z-q;
w=r-w;return Math.sqrt(q*q+w*w)},Ega=function(q,Z){q&&_.t().resolve(_.ps).resolveCommand(q,{forceClickLogging:!0,
form:{element:Z}})},TWv=function(q){var Z=q.data;
var w=q.parentContainerWidth;var r=q.parentContainerHeight;var Y=_.Iw(),C;return _.u("yt-player-overlay-video-interactions",{el:Y,class:"yt-player-overlay-video-interactions__video-interactions-wrapper"},Z==null?void 0:(C=Z.regions)==null?void 0:C.map(function(d){return x7A(Y,Z,d,w,r)}))},x7A=function(q,Z,w,r,Y){function C(){var R,B,n,x,K=(B=_.J((R=O)==null?void 0:R.command,_.eU2))==null?void 0:(n=B.item)==null?void 0:(x=n.notificationTextRenderer)==null?void 0:x.successResponseText;
if(K)_.yY(q.value,"yt-open-popup-action",[_.cX(K),q.value]);else if(H)Ega(H,d.value);else{var k;Ega((k=O)==null?void 0:k.command,d.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var d=_.Iw();if(w==null||!w.transformationMatrix)throw Error("em");Z.trackingParams&&_.iy().graftServerVe(Z.trackingParams);w=QhX(w==null?void 0:w.transformationMatrix,r,Y);w="left:"+w.left+"px; top:"+(w.top+"px; width:")+(w.width+"px; height:")+(w.height+"px; transform:rotate(")+(w.rotation+"deg);");var O=_.J(Z==null?void 0:Z.popUp,U7m),H=Z==null?void 0:Z.command,L=_.J(H,_.rp)!==void 0;Z=Z==null?void 0:Z.a11yString;r=_.fn(function(){L&&d.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hover");
d.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hide-outline");return!1});
Y=_.fn(function(){d.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hover");d.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hide-outline");return!1});
_.MU(d,"focus",function(){L&&d.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hover")});
_.MU(d,"blur",function(){L&&d.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hover")});
var S=_.fn(function(){C();return!1}),v=_.fn(function(R){R.key==="Enter"&&C();
return!1});
return _.u("svg",{"on:mouseover":r,"on:mouseout":Y,"on:keydown":v,el:d,tabindex:0,"aria-label":Z,id:"player-overlay-video-interaction-svg",class:"yt-player-overlay-video-interactions__interactions-svg",role:"button",style:w,"on:click":S})},kJK=function(q){q.unsubscribeFromStore=_.wF(q.storeWithShorts,_.eKZ,function(Z){q.initOrDisposeActiveModules(Z);
!Z&&q.storeWithShorts.getState().shorts.isFullscreen&&(_.Ay(document.documentElement),q.storeWithShorts.dispatch(_.dxS(!1)))});
q.initOrDisposeActiveModules(_.eKZ(q.storeWithShorts.getState()))},Kvg=function(q){var Z=_.t().resolve(_.pq);
Z.rootElement=q;kJK(Z)},sh8=function(){return _.t().resolve(_.pq).dismissedIndices},IeX=function(q){return _.mu({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:q}})},cKd=function(q){return _.mu({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:q}})},M2m=function(q){return _.mu({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:q}})},ob=function(q,Z){if(q instanceof ob)this.array_=q.array_;
else{var w;if(w=_.pX(q))a:{for(var r=w=0;r<q.length;r++){if(!_.pX(q[r])||w>0&&q[r].length!=w){w=!1;break a}for(var Y=0;Y<q[r].length;Y++)if(typeof q[r][Y]!=="number"){w=!1;break a}w==0&&(w=q[r].length)}w=w!=0}if(w)this.array_=_.Ge(q);else if(q instanceof _.O3)this.array_=Fvg(q.height,q.width);else if(typeof q==="number"&&typeof Z==="number"&&q>0&&Z>0)this.array_=Fvg(q,Z);else throw Error("Xl");}this.size_=new _.O3(this.array_[0].length,this.array_.length)},NW5=function(q,Z,w){for(var r=0;r<q.getSize().height;r++)for(var Y=
0;Y<q.getSize().width;Y++)Z.call(w,q.array_[r][Y],r,Y,q)},lem=function(q,Z){var w=new ob(q.getSize());
NW5(q,function(r,Y,C){w.array_[Y][C]=Z.call(void 0,r,Y,C,q)});
return w},Fvg=function(q,Z){for(var w=[],r=0;r<q;r++){w[r]=[];
for(var Y=0;Y<Z;Y++)w[r][Y]=0}return w};
ob.prototype.add=function(q){if(!_.Djv(this.size_,q.getSize()))throw Error("Yl");return lem(this,function(Z,w,r){return Z+q.array_[w][r]})};
ob.prototype.equals=function(q,Z){if(this.size_.width!=q.size_.width||this.size_.height!=q.size_.height)return!1;Z=Z||0;for(var w=0;w<this.size_.height;w++)for(var r=0;r<this.size_.width;r++)if(!_.fTA(this.array_[w][r],q.array_[w][r],Z))return!1;return!0};
ob.prototype.getSize=function(){return this.size_};
var ue=function(q,Z,w){return Z>=0&&Z<q.size_.height&&w>=0&&w<q.size_.width?q.array_[Z][w]:null};
ob.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var ae5=function(q,Z,w,r){if(!(Z>=0&&Z<q.size_.height&&w>=0&&w<q.size_.width))throw Error("Zl`"+Z+"`"+w+"`"+q.size_.height+"`"+q.size_.width);q.array_[Z][w]=r};
ob.prototype.multiply=function(q){if(q instanceof ob){if(this.size_.width!=q.getSize().height)throw Error("$l");return GJK(this,q)}if(typeof q==="number")return p1K(this,q);throw Error("am");};
var GJK=function(q,Z){var w=new ob(q.size_.height,Z.getSize().width);NW5(w,function(r,Y,C){for(var d=r=0;d<this.size_.width;d++)r+=ue(this,Y,d)*ue(Z,d,C);ae5(w,Y,C,r)},q);
return w},p1K=function(q,Z){return lem(q,function(w){return w*Z})};var X1K=new _.D("inlineSurveyRenderer");var m79=new _.D("interstitialViewModel");var AKr=new _.D("reelNavigateCommand");var fea=new _.D("reelNonVideoContentDismissalCommand");var D7K=new _.D("showReelsCommentsOverlayCommand");var U7m=new _.D("videoInteractionPopUpRenderer");var hmm;var yK9;var i9g;var ggF=function(){var q=_.N.apply(this,arguments)||this;q.ctaVisualElement=null;q.currentCsn=null;return q};
_.z(ggF,_.N);_.e=ggF.prototype;_.e.onDataChanged=function(){this.maybeLogShows()};
_.e.computeButtonShape=function(){var q=this;if(this.data)return{buttonText:_.kO(this.data.text),state:"active",onTap:function(){q.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.e.maybeCreateCtaVe=function(){var q;if((q=this.data)!=null&&q.badgeInteractionLogging){var Z;if(q=(Z=this.data.badgeInteractionLogging)==null?void 0:Z.trackingParams)this.ctaVisualElement=_.wa(q)}};
_.e.maybeLogClicks=function(){this.currentCsn=_.b5(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.sh(this.currentCsn,this.ctaVisualElement)};
_.e.maybeLogShows=function(){this.currentCsn=_.b5(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.kK(this.currentCsn,[this.ctaVisualElement])};
_.e.onTap=function(){var q;if((q=this.data)!=null&&q.onClickCommand){var Z;this.ytComponentBehavior.resolveCommand((Z=this.data)==null?void 0:Z.onClickCommand);this.maybeLogClicks()}};
var LT=ggF;LT.prototype.onDataChanged=LT.prototype.onDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],LT.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],LT.prototype,"ytComponentBehavior",void 0);_.X([_.F({}),_.A("design:type",Object)],LT.prototype,"data",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LT.prototype,"onDataChanged",null);
LT=_.X([_.l({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],LT);
_.p(LT,"ytd-shopping-overlay-badge-renderer",function(){if(i9g!==void 0)return i9g;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return i9g=q},{mode:1});_.xc(_.i7q,"reel-sound-metadata-view-model",{props:{data:_.EL,overlayDensity:_.EL}});_.xc(_.c9Z,"player-disclosure-view-model",{props:{data:_.zG}});_.xc(_.O4h,"pivot-button-view-model",{props:{data:_.EL,className:_.EL}});_.xc(_.H49,"reel-action-bar-view-model",{props:{data:_.zG,buttonShapeOverrideables:_.zG}});_.mD(TWv);_.Mx(TWv,"yt-player-overlay-video-interactions",{propNames:["data","parentContainerWidth","parentContainerHeight"]});_.xc(_.GoZ,"yt-reel-metapanel-view-model",{props:{data:_.zG,overlayDensity:_.zG}});var q6g=function(){var q=_.N.apply(this,arguments)||this;q.showScrubber=!1;q.isWatchWhileMode=!1;q.enableAnchoredPanel=_.b("desktop_shorts_v2_anchored_panel");q.anchoredPanelActive=!1;q.enableLivingroomLayout=_.b("reels_enable_livingroom_layout");q.enablePlayerMetadataContainer=_.b("reels_web_enable_metadata_container");q.enableSqueezebackPanels=_.b("web_shorts_enable_squeezeback_panels");q.isSqueezebackActive=!1;q.smallScreenSqueezeback=!1;q.isPlayerStarted=!1;q.overlayDensity=0;q.isOverlay=!1;q.isImmersive=
!1;q.isImmersiveHorizontal=!1;q.isFullscreen=!1;q.onWindowResized=function(){var Z;q.set("isImmersive",((Z=window.getComputedStyle(q.hostElement))==null?void 0:Z.getPropertyValue("--immersive-mode-on"))==="1");q.set("isImmersiveHorizontal",q.isImmersive&&q.enableLivingroomLayout&&!q.isWatchWhileMode);q.setPlayerDimensions()};
return q};
_.z(q6g,_.N);_.e=q6g.prototype;_.e.updateIsOverlay=function(q){this.isOverlay=q.detail.value};
_.e.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.b("web_enable_flexible_overlay")||_.b("web_enable_format_first")||_.b("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.e.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.e.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.e.onDataChanged=function(){this.setPlayerDimensions()};
_.e.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.e.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.e.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.e.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.Af("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.Af("reels_action_justified_content")||"flex-start")};
_.e.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}}};
_.e.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.dT("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.dT("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.dT("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.dT("SHARE_LABEL",
void 0,"Share")}}});_.b("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.dT("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()};
_.e.setEmptyOverlayMetadata=function(){_.b("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}))};
_.e.setPlayerDimensions=function(){var q=document.getElementById("short-video-container"),Z,w;q&&((Z=this.data)==null?0:(w=Z.videoInteractions)==null?0:w.interactions)&&(this.playerContainerHeight=q.getBoundingClientRect().height,this.playerContainerWidth=q.getBoundingClientRect().width)};
_.My.Object.defineProperties(q6g.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.infoPanel)}}});
var SU=q6g;SU.prototype.onDataChanged=SU.prototype.onDataChanged;SU.prototype.onIsActiveChanged=SU.prototype.onIsActiveChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],SU.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],SU.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],SU.prototype,"ytdReduxBehavior",void 0);
_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],SU.prototype,"ytdGuideStateAwareBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],SU.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],SU.prototype,"isActive",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],SU.prototype,"hidden",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],SU.prototype,"useShortsIcon",void 0);
_.X([_.F({value:"left"}),_.A("design:type",String)],SU.prototype,"buttonTooltipPosition",void 0);_.X([_.F({value:_.b("reels_enable_livingroom_layout")?"top":"left"}),_.A("design:type",String)],SU.prototype,"likeButtonTooltipPosition",void 0);_.X([_.F({value:"none"}),_.A("design:type",String)],SU.prototype,"textTransform",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],SU.prototype,"showScrubber",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],SU.prototype,"isWatchWhileMode",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data.infoPanel"),_.A("design:type",Object),_.A("design:paramtypes",[])],SU.prototype,"hasInfoPanel",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],SU.prototype,"enableAnchoredPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],SU.prototype,"anchoredPanelActive",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],SU.prototype,"enableLivingroomLayout",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],SU.prototype,"enablePlayerMetadataContainer",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],SU.prototype,"enableSqueezebackPanels",void 0);_.X([_.F({selector:_.nFI,reflectToAttribute:!0}),_.A("design:type",Object)],SU.prototype,"isSqueezebackActive",void 0);
_.X([_.F({selector:zmr,reflectToAttribute:!0}),_.A("design:type",Object)],SU.prototype,"smallScreenSqueezeback",void 0);_.X([_.F({selector:BWw}),_.A("design:type",Object)],SU.prototype,"isPlayerStarted",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],SU.prototype,"overlayDensity",void 0);_.X([_.F(),_.A("design:type",Object)],SU.prototype,"isOverlay",void 0);
_.X([_.F({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.A("design:type",Boolean)],SU.prototype,"isShortsOverlay",void 0);_.X([_.F(),_.A("design:type",Object)],SU.prototype,"isImmersive",void 0);_.X([_.F(),_.A("design:type",Object)],SU.prototype,"isImmersiveHorizontal",void 0);_.X([_.F({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.A("design:type",Boolean)],SU.prototype,"isShortsImmersive",void 0);
_.X([_.F({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.A("design:type",Object)],SU.prototype,"buttonOverride",void 0);_.X([_.F(),_.A("design:type",Number)],SU.prototype,"playerContainerHeight",void 0);_.X([_.F(),_.A("design:type",Number)],SU.prototype,"playerContainerWidth",void 0);_.X([_.F({selector:_.$_,reflectToAttribute:!0}),_.A("design:type",Object)],SU.prototype,"isFullscreen",void 0);
_.X([_.M("isActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SU.prototype,"onIsActiveChanged",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SU.prototype,"onDataChanged",null);SU=_.X([_.l({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],SU);
_.p(SU,"ytd-reel-player-overlay-renderer",function(){if(yK9!==void 0)return yK9;var q=document.createElement("template");_.a(q,'\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-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" parent-container-height="[[playerContainerHeight]]" parent-container-width="[[playerContainerWidth]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\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    <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="[[buttonOverride]]" 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="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    <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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return yK9=q},{mode:1});var ZlI;var vC=function(){var q=_.N.apply(this,arguments)||this;q.videoDuration=0;q.playedTime=0;q.isActive=!1;q.JSC$19481_playerEvents=new Map;return q};
_.z(vC,_.N);_.e=vC.prototype;_.e.created=function(){this.JSC$19481_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19481_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.e.attached=function(){this.getPlayerAndInitializeListeners()};
_.e.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19481_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.XN(this,this.onPageChanged))};
_.e.getPlayerAndInitializeListeners=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1)return Z=_.K6(),Z?_.W(w,Z.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.XN(q,q.onPageChanged)),w.jumpTo(0));q.player=w.yieldResult;q.initializePlayerListeners();_.ub(w)})};
_.e.onPageChanged=function(q){var Z=this;return _.V(function(w){if(w.nextAddress==1)return q.detail.newPageType!=="ytd-shorts"?w.return():_.W(w,_.s1().getPlayerPromise(),2);Z.player=w.yieldResult;Z.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.XN(Z,Z.onPageChanged));_.ub(w)})};
_.e.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19481_playerEvents)};
_.e.onVideoDataChange=function(q){var Z=this;return _.V(function(w){if(!Z.player||q.type!=="newdata")return w.return();Z.videoDuration=_.b("web_shorts_use_progress_state_for_gapless")?Z.player.getProgressState(q.playertype).seekableEnd:Z.player.getDuration(q.playertype);Z.playedTime=0;_.ub(w)})};
_.e.onVideoProgress=function(q){var Z=this,w,r;return _.V(function(Y){if(!Z.player)return Y.return();w=Z.player.getPresentingPlayerType();r=Z.player.getPlayerState();Z.videoDuration=_.b("web_shorts_use_progress_state_for_gapless")?Z.player.getProgressState(w).seekableEnd:Z.player.getDuration(w);Z.playedTime=r===0?Z.videoDuration:q;_.ub(Y)})};
_.e.getPercentPlayed=function(q,Z){return q?_.a0(Z/q,0,1):0};
_.My.Object.defineProperties(vC.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 q="";return q=this.videoDuration&&this.playedTime?q+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):q+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],vC.prototype,"componentBehavior",void 0);_.X([_.U(_.QQ.YtPlayerListenerBehavior),_.A("design:type",_.EW)],vC.prototype,"ytPlayerListenerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],vC.prototype,"player",void 0);_.X([_.F(),_.A("design:type",Object)],vC.prototype,"videoDuration",void 0);_.X([_.F(),_.A("design:type",Object)],vC.prototype,"playedTime",void 0);_.X([_.F(),_.A("design:type",Object)],vC.prototype,"isActive",void 0);
_.X([_.I("videoDuration","playedTime"),_.A("design:type",Number),_.A("design:paramtypes",[])],vC.prototype,"percentPlayed",null);_.X([_.I("videoDuration","playedTime"),_.A("design:type",Object),_.A("design:paramtypes",[])],vC.prototype,"percentPlayedStyle",null);_.X([_.I("videoDuration","isActive"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vC.prototype,"hideProgressBar",null);
_.p(vC,"ytd-progress-bar-line",function(){if(ZlI===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);ZlI=q}q=ZlI;return q},{mode:_.NT("kevlar_poly_si_batch_j028")?1:2});var wy5;_.Mx(_.ysN,"desktop-shorts-volume-controls",{propNames:["noSlider"]});var jU=function(){var q=_.N.apply(this,arguments)||this;q.playerState=null;q.isMuted=!1;q.shortsPipButtonEnabled=_.b("web_shorts_pip_button");q.JSC$19484_playerEvents=new Map;return q};
_.z(jU,_.N);_.e=jU.prototype;_.e.created=function(){this.JSC$19484_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19484_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.e.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.C6(28662);this.playPauseButtonClientVE=_.C6(36842);this.fullscreenButtonToggleOffClientVE=_.C6(222256);this.fullscreenButtonToggleOnClientVE=_.C6(222257);var q=_.b5(),Z=_.Rs();q&&Z&&(_.b("combine_ve_grafts")?(_.AA(_.iy(),this.muteButtonClientVE,Z),_.AA(_.iy(),this.playPauseButtonClientVE,Z)):_.k0(q,Z,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.e.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19484_playerEvents),this.player=null)};
_.e.getPlayerAndInitializeListeners=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1)return Z=_.K6(),Z?_.W(w,Z.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.XN(q,q.onPageChanged)),w.jumpTo(0));q.player=w.yieldResult;q.initializePlayerListeners();_.ub(w)})};
_.e.onPageChanged=function(q){var Z=this;return _.V(function(w){if(w.nextAddress==1)return q.detail.newPageType!=="ytd-shorts"?w.return():_.W(w,_.s1().getPlayerPromise(),2);Z.player=w.yieldResult;Z.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.XN(Z,Z.onPageChanged));_.ub(w)})};
_.e.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19484_playerEvents)};
_.e.onPlayerStateChange=function(q){this.playerState=q};
_.e.onPlayerVolumeChange=function(q){this.isMuted=q.muted};
_.e.onPlayPauseButtonClick=function(){var q=this,Z,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,_.s1().getPlayerPromise(),2);Z=r.yieldResult;(w=_.b5())&&q.playPauseButtonClientVE&&_.sh(w,q.playPauseButtonClientVE);Z.getPlayerState()!==1?Z.playVideo():Z.pauseVideo();_.ub(r)})};
_.e.computePlayPauseIcon=function(q){return q===2||q===-1||q===5?"PLAY_ARROW_FILLED":"miniplayer:shorts-pause"};
_.e.computeFullscreenLabel=function(q){return q?_.dT("FULLSCREEN_EXIT_LABEL"):_.dT("FULLSCREEN_ENTER_LABEL")};
_.e.computeShortsPipLabel=function(q){return q?_.dT("MINIPLAYER_CLOSE"):_.dT("OPEN_IN_MINIPLAYER")};
_.e.computePlayPauseLabel=function(q){return q===1||q===3?_.dT("PLAYER_LABEL_PAUSE"):_.dT("PLAYER_LABEL_PLAY")};
_.e.onMuteButtonClick=function(){var q=this,Z,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,_.s1().getPlayerPromise(),2);Z=r.yieldResult;(w=_.b5())&&q.muteButtonClientVE&&_.sh(w,q.muteButtonClientVE);Z.isMuted()?Z.unMute(!0):Z.mute(!0);_.ub(r)})};
_.e.computeMuteIcon=function(q){return q?"miniplayer:volume-off":"miniplayer:volume-up"};
_.e.computeMuteLabel=function(q){return q?_.dT("PLAYER_LABEL_UNMUTE"):_.dT("PLAYER_LABEL_MUTE")};
_.e.onFullscreenButtonClick=function(){var q=_.b5();q&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.sh(q,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.sh(q,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.Vpq()};
_.e.onShortsPipButtonClick=function(){var q=_.t().resolve(_.pq);if(_.b("web_shorts_pip")){var Z=_.t().resolve(_.Tf);q.isShortsPipActive()?Z.deactivate():Z.isMiniplayerActive()||(_.qk().shortsPipActivation=!0,_.A9F(Z))}};
_.My.Object.defineProperties(jU.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var q=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(){q.onPlayPauseButtonClick()}}}},
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)}}},
shortsPipButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeShortsPipLabel(this.isShortsPipActive),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeShortsPipLabel(this.isShortsPipActive)}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?"screen_full_exit":"screen_full"}},
shortsPipIcon:{configurable:!0,enumerable:!0,get:function(){return this.isShortsPipActive?"miniplayer_exit":"picture_in_picture"}}});
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],jU.prototype,"componentBehavior",void 0);_.X([_.U(_.QQ.YtPlayerListenerBehavior),_.A("design:type",_.EW)],jU.prototype,"ytPlayerListenerBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],jU.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],jU.prototype,"player",void 0);_.X([_.F(),_.A("design:type",Object)],jU.prototype,"playerState",void 0);_.X([_.F(),_.A("design:type",Object)],jU.prototype,"isMuted",void 0);
_.X([_.F({computed:"computePlayPauseIcon(playerState)"}),_.A("design:type",String)],jU.prototype,"playPauseIcon",void 0);_.X([_.F({computed:"computeMuteIcon(isMuted)"}),_.A("design:type",String)],jU.prototype,"muteIcon",void 0);_.X([_.F({selector:_.$_}),_.A("design:type",Boolean)],jU.prototype,"isFullscreen",void 0);_.X([_.F({selector:_.ee}),_.A("design:type",Boolean)],jU.prototype,"isShortsPipActive",void 0);_.X([_.F(),_.A("design:type",Object)],jU.prototype,"shortsPipButtonEnabled",void 0);
_.X([_.I("playerState"),_.A("design:type",Object),_.A("design:paramtypes",[])],jU.prototype,"playPauseButtonData",null);_.X([_.I("isFullscreen"),_.A("design:type",Object),_.A("design:paramtypes",[])],jU.prototype,"fullscreenButtonData",null);_.X([_.I("isShortsPipActive"),_.A("design:type",Object),_.A("design:paramtypes",[])],jU.prototype,"shortsPipButtonData",null);_.X([_.I("isFullscreen"),_.A("design:type",String),_.A("design:paramtypes",[])],jU.prototype,"fullscreenIcon",null);
_.X([_.I("isShortsPipActive"),_.A("design:type",String),_.A("design:paramtypes",[])],jU.prototype,"shortsPipIcon",null);
_.p(jU,"ytd-shorts-player-controls",function(){if(wy5===void 0){var q=document.createElement("template");_.a(q,'\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<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 is="dom-if" if="[[shortsPipButtonEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="shorts-pip-button-shape" data="[[shortsPipButtonData]]" icon-name="[[shortsPipIcon]]" on-click="onShortsPipButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);wy5=q}q=wy5;return q},{mode:1});var rcv;_.xc(_.G$7,"yt-interstitial-view-model",{props:{data:_.zG}});var Y6v=_.xl(function(q){var Z=q.data;return _.u("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.u("h1",{class:"reelWatchBreakViewModelHostTitle"},_.u(_.r6,{text:function(){return Z().title}})),_.u("h2",{class:"reelWatchBreakViewModelHostBody"},_.u(_.r6,{text:function(){return Z().body},
isOverlay:!0})),_.u(_.Hx,{data:function(){return Z().buttons}},{buttonViewModel:function(w,r){return _.u("div",{class:function(){return r()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.u(_.vx,{data:w.data}))}}))},"Jh");
Y6v.idomCompat=!0;_.xc(Y6v,"reel-watch-break-view-model",{props:{data:_.zG}});var $S9=function(){return _.N.apply(this,arguments)||this};
_.z($S9,_.N);$S9.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}}};
_.My.Object.defineProperties($S9.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var q;return!!_.J((q=this.data)==null?void 0:q.renderer,X1K)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var q;return!!_.J((q=this.data)==null?void 0:q.renderer,m79)}}});
var tb=$S9;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],tb.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],tb.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],tb.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],tb.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("data.renderer"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],tb.prototype,"isSurvey",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.renderer"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],tb.prototype,"isInterstitialViewModel",null);tb=_.X([_.l({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],tb);
_.p(tb,"ytd-reel-non-video-content-renderer",function(){if(rcv!==void 0)return rcv;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
return rcv=q},{mode:_.NT("kevlar_poly_si_batch_j028")?1:2});var eZA;_.xc(_.I$6,"desktop-shorts-player-controls",{});var CCd=function(){var q=_.N.apply(this,arguments)||this;q.isPlayerPaused=!1;q.isPlayerStarted=!1;q.showPlayerControls=!1;q.showScrubber=!1;q.autoHideJobId=0;q.backgroundImageJobId=0;q.modern=_.b("web_button_rework");q.overlayType=_.Af("web_shorts_expanded_overlay_type");q.panelData=void 0;q.isWatchWhileMode=!1;q.hasError=!1;q.panelShowDelayMs=1;q.scrubberComponent={};q.useStamper=_.b("web_shorts_enable_title_deflation");q.isFullscreen=!1;q.shouldHideOverlay=!1;q.enableAnchoredPanel=_.b("desktop_shorts_v2_anchored_panel");
q.enablePersistentAnchoredPanel=_.b("desktop_shorts_v2_persistent_anchored_panel");q.hideWatchWhilePanel=_.b("web_shorts_hide_watch_while_panel");q.isPersistentPanelActive=!1;q.anchoredPanelActive=!1;q.isShortsPipActive=!1;q.smallScreenSqueezeback=!1;q.enableFlexibleOverlay=_.b("web_enable_flexible_overlay");q.aspectRatio=.5625;q.overlayDensity=0;q.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
q.onWindowResized=function(){_.vp(q,"calculateOverlayDensity",function(){q.calculateOverlayDensity()},100)};
return q};
_.z(CCd,_.N);_.e=CCd.prototype;_.e.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.e.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.e.shouldRenderOverlayControl=function(q){return!this.useStamper&&this.isVideoContent(q)};
_.e.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var q=_.t().resolve(_.Of);this.isWatchWhileMode&&(_.b("web_enable_shorts_new_carousel")?_.v5.addJob(function(){q.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):q.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.e.handleShowReelsCommentsOverlayCommand=function(q){q=_.J(q,D7K);this.isActive&&(q==null?0:q.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))};
_.e.updateEngagementPanelVisibility=function(q,Z){q&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:Z?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:q}})};
_.e.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.e.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.t().resolve(_.pq).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.e.handleWatchWhilePanelScrimClick=function(){var q=_.t().resolve(_.Of);this.activeWatchWhilePanel&&(q.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.e.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.e.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:_.b("web_enable_shorts_new_carousel")?0:void 0}}};
_.e.handlePlayerClick=function(q){var Z=this,w,r;if((r=(w=window).matchMedia)!=null&&r.call(w,"(any-pointer: coarse)").matches||!q)this.showPlayerControls=!0,_.v5.cancelJob(this.autoHideJobId),this.autoHideJobId=_.WO(_.v5,function(){Z.showPlayerControls=!1},4E3)};
_.e.isFirstReel=function(){return this.index===0};
_.e.handleMouseenter=function(){_.v5.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.e.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.e.handleScrubberEnter=function(){this.showScrubber=!0};
_.e.handleScrubberLeave=function(){this.showScrubber=!1};
_.e.onAspectRatioChange=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1)return q.hostElement.style.setProperty("--ytd-shorts-player-ratio",""+q.aspectRatio),q.isActive?_.W(w,_.t().resolve(_.pq).playerApi,3):w.jumpTo(0);(Z=w.yieldResult)&&Z.setSize(NaN,NaN);_.ub(w)})};
_.e.updateBackgroundImage=function(){var q=this,Z;if((Z=this.data)!=null&&Z.thumbnail){var w=(Z=_.UL(this.data.thumbnail.thumbnails))?'background-image:url("'+Z+'");':"",r;w.toString()!==((r=this.backgroundImage)==null?void 0:r.toString())&&(this.isActive?this.backgroundImage=w:(_.v5.cancelJob(this.backgroundImageJobId),this.backgroundImageJobId=_.WO(_.v5,function(){q.isAttached&&(q.backgroundImage=w)},1E3)))}else this.backgroundImage=void 0};
_.e.setAspectRatio=function(){var q;(q=this.data)!=null&&q.thumbnail&&(this.isActive&&.5625!==JKw(this.data.thumbnail)&&_.PEX("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO"),this.enableFormatFirst&&(this.aspectRatio=this.isPersistentPanelActive?.5625:JKw(this.data.thumbnail)))};
_.e.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var q=document.querySelector("#shorts-container");if(q){q=q.offsetWidth-96-this.playerContainer.offsetWidth-72;q=q>=720?1:q>=360?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&q===1&&(q=0);this.isPersistentPanelActive&&(q=0);this.overlayDensity=q;var Z;(Z=this.onOverlayDensityChanged)==null||Z.call(this,this.index,this.overlayDensity)}}};
_.e.onOverlayDensityChange=function(){var q;(q=this.onOverlayDensityChanged)==null||q.call(this,this.index,this.overlayDensity);(q=_.E(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&q.set("overlayDensity",this.overlayDensity);if(q=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))q.overlayDensity=this.overlayDensity};
_.e.isVideoContent=function(q){_.t().resolve(_.pq);return!!_.J(q,_.Yz)};
_.e.isNonVideoContent=function(q){_.t().resolve(_.pq);return!!_.J(q,_.vZ)};
_.e.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.My.Object.defineProperties(CCd.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var q,Z;return _.b("web_enable_format_first")||((q=this.data)==null?void 0:q.adsOverlay)&&_.b("web_enable_format_first_ads_only")||((Z=this.data)==null?void 0:Z.reelPlayerOverlayRenderer)&&_.b("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var q;return!this.isActive||!this.isPlayerStarted||(q=this.data)!=null&&q.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var q;if(this.useStamper&&((q=this.data)==null?0:q.command)&&this.isVideoContent(this.data.command)){var Z,w;if(((Z=this.data)==null?0:Z.adsOverlay)&&Object.keys((w=this.data)==null?void 0:w.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var r,Y;if(((r=this.data)==null?0:r.reelPlayerOverlayRenderer)&&Object.keys((Y=this.data)==null?void 0:Y.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
var Rb=CCd;Rb.prototype.onOverlayDensityChange=Rb.prototype.onOverlayDensityChange;Rb.prototype.calculateOverlayDensity=Rb.prototype.calculateOverlayDensity;Rb.prototype.setAspectRatio=Rb.prototype.setAspectRatio;Rb.prototype.updateBackgroundImage=Rb.prototype.updateBackgroundImage;Rb.prototype.onAspectRatioChange=Rb.prototype.onAspectRatioChange;Rb.prototype.onEngagementPanelsChanged=Rb.prototype.onEngagementPanelsChanged;Rb.prototype.onScrubberDataChange=Rb.prototype.onScrubberDataChange;
Rb.prototype.updateShouldHideOverlay=Rb.prototype.updateShouldHideOverlay;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Rb.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],Rb.prototype,"ytdGuideStateAwareBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Rb.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Number)],Rb.prototype,"index",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Rb.prototype,"isActive",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Rb.prototype,"isHiddenInDom",void 0);_.X([_.F(),_.A("design:type",Object)],Rb.prototype,"isPlayerPaused",void 0);_.X([_.F({selector:BWw}),_.A("design:type",Object)],Rb.prototype,"isPlayerStarted",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Rb.prototype,"showPlayerControls",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Rb.prototype,"showScrubber",void 0);_.X([_.F(),_.A("design:type",Object)],Rb.prototype,"autoHideJobId",void 0);_.X([_.F(),_.A("design:type",Object)],Rb.prototype,"backgroundImageJobId",void 0);_.X([_.F(),_.A("design:type",Object)],Rb.prototype,"backgroundImage",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Rb.prototype,"modern",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Rb.prototype,"overlayType",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],Rb.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Rb.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Rb.prototype,"watchWhileEngagementPanels",void 0);
_.X([_.F(),_.A("design:type",Object)],Rb.prototype,"panelData",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Rb.prototype,"isWatchWhileMode",void 0);_.X([_.F(),_.A("design:type",String)],Rb.prototype,"activeWatchWhilePanel",void 0);_.X([_.F(),_.A("design:type",Object)],Rb.prototype,"hasError",void 0);_.X([_.F(),_.A("design:type",Object)],Rb.prototype,"panelShowDelayMs",void 0);_.X([_.F(),_.A("design:type",Object)],Rb.prototype,"scrubberComponent",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Rb.prototype,"useStamper",void 0);_.X([_.F({selector:_.$_,reflectToAttribute:!0}),_.A("design:type",Object)],Rb.prototype,"isFullscreen",void 0);_.X([_.F(),_.A("design:type",Object)],Rb.prototype,"shouldHideOverlay",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Rb.prototype,"enableAnchoredPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Rb.prototype,"enablePersistentAnchoredPanel",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Rb.prototype,"hideWatchWhilePanel",void 0);_.X([_.F({selector:_.nFI,reflectToAttribute:!0}),_.A("design:type",Object)],Rb.prototype,"isPersistentPanelActive",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Rb.prototype,"anchoredPanelActive",void 0);_.X([_.F({selector:_.ee,reflectToAttribute:!0}),_.A("design:type",Object)],Rb.prototype,"isShortsPipActive",void 0);
_.X([_.F({selector:zmr,reflectToAttribute:!0}),_.A("design:type",Object)],Rb.prototype,"smallScreenSqueezeback",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],Rb.prototype,"enableFormatFirst",null);_.X([_.F(),_.A("design:type",Object)],Rb.prototype,"enableFlexibleOverlay",void 0);_.X([_.F(),_.A("design:type",Object)],Rb.prototype,"aspectRatio",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Rb.prototype,"overlayDensity",void 0);_.X([_.F(),_.A("design:type",Function)],Rb.prototype,"onOverlayDensityChanged",void 0);_.X([_.F(),_.I("isActive","hasError"),_.A("design:type",Object),_.A("design:paramtypes",[])],Rb.prototype,"shouldRenderPlayerElements",null);_.X([_.F(),_.I("isActive","isWatchWhileMode"),_.A("design:type",Object),_.A("design:paramtypes",[])],Rb.prototype,"watchWhileOrPersistentActive",null);
_.X([_.M("isActive","hasError","showingExpandedOverlay"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rb.prototype,"updateShouldHideOverlay",null);_.X([_.F({reflectToAttribute:!0}),_.I("isActive","isPlayerStarted","data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Rb.prototype,"shouldRenderScrubber",null);
_.X([_.M("shouldRenderScrubber"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rb.prototype,"onScrubberDataChange",null);_.X([_.I("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],Rb.prototype,"overlayComponent",null);_.X([_.M("watchWhileEngagementPanels"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rb.prototype,"onEngagementPanelsChanged",null);
_.X([_.fo("#player-container"),_.A("design:type",HTMLElement)],Rb.prototype,"playerContainer",void 0);_.X([_.fo("#cinematic-container"),_.A("design:type",HTMLElement)],Rb.prototype,"cinematicContainer",void 0);_.X([_.M("aspectRatio"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],Rb.prototype,"onAspectRatioChange",null);
_.X([_.M("data.thumbnail"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rb.prototype,"updateBackgroundImage",null);_.X([_.M("isPersistentPanelActive","data.thumbnail"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rb.prototype,"setAspectRatio",null);_.X([_.M("isPersistentPanelActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rb.prototype,"calculateOverlayDensity",null);
_.X([_.M("overlayDensity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rb.prototype,"onOverlayDensityChange",null);Rb=_.X([_.l({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Rb);
_.p(Rb,"ytd-reel-video-renderer",function(){if(eZA!==void 0)return eZA;var q=document.createElement("template");_.a(q,'\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="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" style$="[[backgroundImage]]">\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]]" 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="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return eZA=q},{mode:_.NT("kevlar_poly_si_batch_j028")?1:2});var PCv=function(){var q=_.N.apply(this,arguments)||this;q.isPreviousPageShorts=!1;q.index=0;q.delayedActiveIndex=0;q.playablePreviousIndex=null;q.isPlayerPaused=!1;q.isPlayerStarted=!1;q.intersectionObserverThreshold=.6;q.fitToVisibleBounds=!1;q.pageSubtype="shorts";q.panelShowDelayMs=_.m6("enable_shorts_panel_show_delay_ms");q.enablePreviousContinuation=_.b("shorts_in_playlists_web");q.shortsPipEnabled=_.b("web_shorts_pip");q.isDark=document.documentElement.hasAttribute("dark");q.shortsViewTransitions=
_.b("web_shorts_view_transitions");q.isFullscreen=!1;q.isShortsPipActive=!1;q.buttonOverride={iconPosition:"icon-only",size:"XL"};q.anchoredPanelActive=!1;q.isActive=!1;q.smallScreenPersistentPanel=!1;q.isPersistentPanelActive=!1;q.smallScreenSqueezeBack=!1;q.enableScrollIntoViewCenter=_.b("web_scroll_into_view_center");q.formatFirst=_.b("web_enable_format_first")||_.b("web_enable_format_first_ads_only")||_.b("web_enable_format_first_organic_only");q.enableFlexibleOverlay=_.b("web_enable_flexible_overlay");
q.isShortsInitialized=!1;q.hidePreviousButtonImmediately=!1;q.showPreviousButtonImmediately=!1;q.endOfNextContinuation=!1;q.currentPlayerIndex=0;q.nextReelVe=_.C6(56921);q.prevReelVe=_.C6(56922);q.loopToggleOffVe=_.C6(198013);q.loopToggleOnVe=_.C6(198014);q.ambientModeToggleVe=_.C6(227860);q.reelPlayerPausedStateRendererVe=_.C6(141313);q.storedPlaybackSpeed=null;q.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"};q.onOverlayDensityChanged=function(Z,w){var r;(r=q.getActiveReelVideo(Z))==null||r.setAttribute("overlay-density",String(w))};
return q};
_.z(PCv,_.N);_.e=PCv.prototype;
_.e.deflateInactivePreviousSlides=function(){var q=_.m6("web_shorts_deflate_inactive_slides_aggressive_distance");if(q>0&&this.shortsProcessedSequence&&this.activeIndex){q=this.activeIndex-q;for(var Z=0;Z<=q;Z++){var w=void 0;((w=this.shortsProcessedSequence[Z].reelPlayerOverlayRenderer)==null?0:w.likeButton)&&this.set("shortsProcessedSequence."+Z+".reelPlayerOverlayRenderer",{});w=void 0;((w=this.shortsProcessedSequence[Z].adsOverlay)==null?0:w.adSlotMetadata)&&this.set("shortsProcessedSequence."+Z+
".adsOverlay",{})}}};
_.e.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.e.onResize=function(){var q=_.sE(),Z=q.dispatch,w=this.calculateIsSmallWidth();Z.call(q,_.mu({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:w}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.e.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:_.b("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},properties:{showDelayMs:"[[panelShowDelayMs]]"}}},renderPriority:0}}};
_.e.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var q=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,Z=q,w=0;q<250&&(Z=q+this.shortsInnerContainer.clientWidth,w=24);_.po(this.hostElement,{"--ytd-shorts-header-width":Z+"px","--ytd-shorts-top-spacing":w+"px"})}};
_.e.isFirstShorts=function(q){return q?this.index===-q.length:this.index===0};
_.e.isActiveReel=function(q,Z,w){w&&(Z=this.calculatePrevIndex(Z,w));return q===Z};
_.e.onFullscreenChange=function(){if(_.b("web_fullscreen_shorts")){var q;(q=this.getActiveReelVideo(this.activeIndex))==null||q.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.t().resolve(_.Tf).close(!0)}};
_.e.engagementPanelsChanged=function(){var q;this.watchWhileEngagementPanels=(q=this.data)==null?void 0:q.engagementPanels};
_.e.unregisterPanels=function(){var q=_.t().resolve(_.Of);if(this.watchWhileEngagementPanels)for(var Z=_.P(this.watchWhileEngagementPanels),w=Z.next();!w.done;w=Z.next()){var r=void 0,Y=void 0;w=(r=w.value.engagementPanelSectionListRenderer)==null?void 0:(Y=r.identifier)==null?void 0:Y.tag;q&&w&&q.panelMap.delete(w)}};
_.e.isVideoContent=function(q){return this.isVideoContentCommand(q==null?void 0:q.command)};
_.e.getActiveReelVideo=function(q){return _.E(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+q+'"]')};
_.e.calculatePrevIndex=function(q,Z){return Z?q-((Z==null?void 0:Z.length)||0):-1};
_.e.onKeydown=function(q){var Z=_.E8(q)||[];if(!_.PmV(Z))if(q.code==="ArrowUp")q.preventDefault(),this.handlePrevButtonClick();else if(q.code==="ArrowDown")q.preventDefault(),this.handleNextButtonClick();else if(q.code==="KeyM")this.toggleMuteUnmuteVideo();else if(q.code==="KeyK"||q.code==="Space")this.togglePlayPauseVideo();else if((q.code==="KeyA"||q.code==="ArrowLeft")&&_.b("web_shorts_keyboard_enable_seek_shortcuts")){var w;(w=this.player)==null||w.seekBy(-5)}else if((q.code==="KeyD"||q.code===
"ArrowRight")&&_.b("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var r;(r=this.player)==null||r.seekBy(5)}};
_.e.onServiceRequestCompleted=function(q,Z){q=Z.data;q.continuationEndpoint&&q.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:q.entries,continuationEndpoint:q.continuationEndpoint}}):q.prevContinuationEndpoint&&q.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:q.prevEntries,prevContinuationEndpoint:q.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.e.handleEngagementPanelVisibilityChanged=function(q,Z){var w=_.t().resolve(_.Of);if(q&&w){var r,Y=((r=q.identifier)==null?void 0:r.tag)||q.panelIdentifier||q.targetId;if(Z==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==Y){w.hidePanel(this.activePanel);var C;this.activePanel=((C=q.identifier)==null?void 0:C.tag)||q.panelIdentifier}else this.isPersistentPanelActive=!0,_.sE().dispatch(IeX(!0)),this.anchoredPanelActive=!0,this.activePanel=Y;else Z==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===Y&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.sE().dispatch(IeX(!1)))}};
_.e.handlePanelScrimClick=function(){var q=_.t().resolve(_.Of);this.activePanel&&(q.hidePanel(this.activePanel),_.sE().dispatch(IeX(!1)))};
_.e.getShortsLoopSetting=function(){var q,Z,w,r,Y;return _.V(function(C){switch(C.nextAddress){case 1:return _.b("kevlar_shorts_auto_advance")?_.W(C,_.dF.getInstance(),2):C.return(!0);case 2:return(q=C.yieldResult)?_.W(C,q.get("sfvles"),3):C.return(!0);case 3:return w=(Z=C.yieldResult)!=null?Z:!1,_.W(C,q.get("sfvle"),4);case 4:return Y=(r=C.yieldResult)!=null?r:!0,w?C.return(Y):C.return(!0)}})};
_.e.handleSignalActionToggleLoopShortsOff=function(){var q=this,Z,w,r;return _.V(function(Y){switch(Y.nextAddress){case 1:if(!q.player)return Y.return();q.player.setLoopVideo(!1);Z=_.iy();_.D1(Z,q.loopToggleOffVe);return _.W(Y,_.dF.getInstance(),2);case 2:return(w=Y.yieldResult)?_.W(Y,w.set("sfvle",!1),3):Y.return();case 3:return _.W(Y,w.set("sfvles",!0),4);case 4:r=_.Hd(),_.Wd(0,203,!1),_.Wd(0,204,!0),r.save(),_.ub(Y)}})};
_.e.handleSignalActionToggleLoopShortsOn=function(){var q=this,Z,w,r;return _.V(function(Y){switch(Y.nextAddress){case 1:if(!q.player)return Y.return();q.player.setLoopVideo(!0);Z=_.iy();_.D1(Z,q.loopToggleOnVe);return _.W(Y,_.dF.getInstance(),2);case 2:return(w=Y.yieldResult)?_.W(Y,w.set("sfvle",!0),3):Y.return();case 3:return _.W(Y,w.set("sfvles",!0),4);case 4:r=_.Hd(),_.Wd(0,203,!0),_.Wd(0,204,!0),r.save(),_.ub(Y)}})};
_.e.handleSignalActionToggleCinematicShortsOn=function(){b9v(!0);var q;(q=this.JSC$19508_cinematicController)==null||_.jhd(q,!0);_.D1(_.iy(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.e.handleSignalActionToggleCinematicShortsOff=function(){b9v(!1);var q;(q=this.JSC$19508_cinematicController)==null||_.jhd(q,!1);_.D1(_.iy(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.e.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.e.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.e.unhideCurrentOverlay=function(){if(this.overlayContainer){var q=this.overlayContainer.querySelector("#experiment-overlay");q&&_.v5.addLowPriorityJob(function(){q.style.display="unset"},100)}};
_.e.getCurrentShort=function(){if(this.currentEndpoint){var q=this.currentEndpoint;if(this.isNonVideoContentCommand(q)){var Z=_.J(q,_.vZ);return{reelNonVideoContentRenderer:_.J(Z==null?void 0:Z.renderer,_.TZD),command:q}}if(this.data){var w;Z=(w=_.J(this.currentEndpoint,_.Yz))==null?void 0:w.thumbnail;var r;w=(r=this.data.overlay)==null?void 0:r.reelPlayerOverlayRenderer;_.t().resolve(_.pq);var Y,C;r=_.J((Y=this.data.overlay)==null?void 0:(C=Y.shortsAdsRenderer)==null?void 0:C.overlay,_.uiD);q=Object.assign({},
this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.J(this.currentEndpoint,_.Yz),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:w,thumbnail:Z,command:q,adsOverlay:r}}}};
_.e.created=function(){var q=this;this.scrollToVideoThrottle=new _.pV(function(Z){var w;(w=q.getActiveReelVideo(Z))==null||w.scrollIntoView({behavior:"smooth",block:"nearest",inline:q.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.pV(function(Z){var w;(w=q.getActiveReelVideo(Z))==null||w.scrollIntoView({behavior:"auto",block:"nearest",inline:q.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.e.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.e.attached=function(){var q=this;Kvg(this);this.pageScrollElement=_.E(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.XN(this,this.processResetAction));_.b("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.b("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var Z=q.getActiveReelVideo(q.activeIndex);
q.maybeCreateIntersectionObserver();Z==null||Z.scrollIntoView({behavior:"instant",block:"nearest",inline:q.enableScrollIntoViewCenter?"center":"start"});q.shortsContainer.style.overflowY="scroll"}))};
_.e.calculateSqueezebackPanelSize=function(){var q=this,Z=window.innerWidth-456-(window.innerHeight-106)*.5625;_.v5.addLowPriorityJob(function(){Z<360?_.sE().dispatch(cKd(!0)):(q.hostElement.style.setProperty("--anchored-panel-width",Math.min(Z,480)+"px"),_.sE().dispatch(cKd(!1)))})};
_.e.detached=function(){var q=_.t().resolve(_.pq);q.rootElement=void 0;var Z;(Z=q.unsubscribeFromStore)==null||Z.call(q);q.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.XN(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.e.onResizeFinished=function(q,Z){var w=this,r=new ResizeObserver(function(){w.shortsContainer.style.overflowY="hidden";_.v5.addLowPriorityJob(function(){Z()},100)});
r.observe(q);return r};
_.e.resetDocumentScrollTop=function(){var q,Z;if((q=document)==null?0:(Z=q.scrollingElement)==null?0:Z.scrollTop)document.scrollingElement.scrollTop=0};
_.e.loadPage_=function(q){var Z=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),q){var w;if((w=_.J(this.currentEndpoint,_.Yz))==null?0:w.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=q;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){Z.isPlayerStarted&&
(Z.handleOnPlaybackCommand(),Z.afterPlayerStarted=function(){})};
this.registerPanel(q)}};
_.e.afterPlayerStarted=function(){};
_.e.handleOnPlaybackCommand=function(){if(_.b("web_shorts_comment_stickers")&&this.isPlayerStarted){var q,Z=(q=_.J(this.currentEndpoint,_.Yz))==null?void 0:q.onPlaybackCommand;Z&&this.ytComponentBehavior.resolveCommand(Z)}};
_.e.maybeCreateIntersectionObserver=function(){var q=this,Z=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==Z){this.intersectionObserverThreshold=Z;var w={rootMargin:"0px",threshold:Z},r;(r=this.intersectionObserver)==null||r.disconnect();this.intersectionObserver=new IntersectionObserver(function(Y){Y=_.P(Y);for(var C=Y.next();!C.done;C=Y.next())if(C=C.value,C.intersectionRatio>Z){C=Number(C.target.id);if(isNaN(C))break;if(C===q.index)break;
_.iDI();q.loadVideo(C);_.Bd("r_vtc")}},w);
this.observeShorts()}};
_.e.observeShorts=function(){var q=[].concat(_.Ju(_.E(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var w=void 0;(w=this.intersectionObserver)==null||w.observe(Z)}};
_.e.initCsi=function(){_.pU7("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var q={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"}},Z,w;if((Z=this.playerData)==null?0:(w=Z.cacheMetadata)==null?0:w.isCacheHit)q.isCacheHit=!0;var r;if(Z=(r=_.J(this.currentEndpoint,_.Yz))==null?void 0:
r.prefetchTaskId)q.prefetchInfo={taskId:Z};_.RV(q)};
_.e.isAd=function(){var q,Z;return!!((q=_.J(this.currentEndpoint,_.Yz))==null?0:(Z=q.adClientParams)==null?0:Z.isAd)};
_.e.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.e.getPlayerContainer=function(){var q;return(q=_.E(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:q.playerContainer};
_.e.onPlayerStateChange=function(q){var Z=this;this.isPlayerPaused=q===2;q!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?q===1&&this.index===0&&(this.isPlayerStarted||_.sE().dispatch(M2m(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.sE().dispatch(M2m(!0)));this.player&&!this.player.getLoopVideo()&&_.v5.addLowPriorityJob(function(){Z.getShortsLoopSetting().then(function(w){var r;(r=Z.player)==null||r.setLoopVideo(w)})});
this.isPlayerPaused&&_.b("web_shorts_paused_state_logging")&&_.kK(_.b5(),[this.reelPlayerPausedStateRendererVe])};
_.e.isInBackground=function(){var q=window.document.visibilityState;return!(!q||q==="visible")};
_.e.isShortPlayable=function(){if(_.b("kevlar_playable_short_killswitch"))return!0;var q;return(q=this.playerData)!=null&&q.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.e.setNormalPlaybackSpeed=function(){var q=this,Z,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,q.getPlayer().getPlayerPromise(),2);Z=r.yieldResult;w=Z.getPlaybackRate();w!==1&&(q.storedPlaybackSpeed=w,Z.setPlaybackRate(1));_.ub(r)})};
_.e.restorePlaybackSpeed=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1)return q.storedPlaybackSpeed===null?w.jumpTo(0):_.W(w,q.getPlayer().getPlayerPromise(),3);Z=w.yieldResult;Z.setPlaybackRate(q.storedPlaybackSpeed);q.storedPlaybackSpeed=null;_.ub(w)})};
_.e.playerDataChanged=function(){var q=this,Z,w,r,Y,C,d,O,H,L;return _.V(function(S){if(S.nextAddress==1){Z=q.getPlayer();_.b("web_shorts_dynamic_intersection_observer_threshold")&&((w=q.intersectionObserver)==null||w.disconnect());if(q.playerData){if(((r=q.playerData.videoDetails)==null?void 0:r.videoId)!==((Y=Z.getPlayer())==null?void 0:Y.getVideoData().video_id)){C={};if(d=_.J(q.currentEndpoint,_.Yz))C.watch_endpoint=d,d.endTimeSeconds&&(C.end=d.endTimeSeconds);Z.loadVideoWithPlayerResponse(q.playerData,
C)}}else return S.return();return q.player?S.jumpTo(2):_.W(S,Z.getPlayerPromise(),3)}S.nextAddress!=2&&(q.player=S.yieldResult,q.JSC$19508_playerStateChangeListener=q.onPlayerStateChange.bind(q),q.player.addEventListener("onStateChange",q.JSC$19508_playerStateChangeListener),_.b("kevlar_client_enable_shorts_player_bootstrap")&&_.Fa(),q.scrollToVideoThrottle.fire(q.index),q.movePlayerToVideo(q.index),_.v5.addLowPriorityJob(function(){q.getShortsLoopSetting().then(function(v){var R;(R=q.player)==null||
R.setLoopVideo(v)})}),_.qF7.resolve(q.player),q.player.syncVolume(),q.getPlayer().focusOnPlayer());
_.b("web_shorts_caption_language_entity_killswitch")||_.v5.addLowPriorityJob(function(){var v=_.t().resolve(_.pq),R,B=(R=q.player)==null?void 0:R.getOption("captions","track");R=_.yG("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(B){var n;((n=_.g6(_.wMI,R)())==null?void 0:n.value)!==B.displayName&&v.store.dispatch(_.wp("stringEntity",R,{key:R,value:B.displayName||""}))}else v.store.dispatch(_.wp("stringEntity",R,{key:R,value:"CAPTIONS_UNAVAILABLE"}))});
_.v5.addLowPriorityJob(function(){q.observeShorts()},100);
O=q.player.getPlayerState(q.player.getPresentingPlayerType());O!==1||q.isPlayerStarted||_.sE().dispatch(M2m(!0));q.updateBackNavContainerWidth();H=_.J(q.currentEndpoint,_.Yz);((L=H)==null?0:L.startTimeSeconds)&&q.player.seekTo(H.startTimeSeconds);if(q.JSC$19508_cinematicController||q.cinematicsInitializeJobId)return S.return();q.cinematicsInitializeJobId=_.v5.addLowPriorityJob(function(){q.initCinematicController();q.cinematicsInitializeJobId=void 0});
_.ub(S)})};
_.e.onShortUndoDismiss=function(){var q=this,Z=sh8().pop();Z!==void 0&&(_.I_(this,function(){q.showCardWithIndex(Z)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.e.onShortsDismiss=function(q){if(q=q.detail.reelDismissalActionRenderer)(q=_.J(q.onDismissalCompletionRenderer,_.h8d))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:q}}}),this.scrollAndDismissCard()};
_.e.processReelNonVideoContentDismissalCommand=function(q){var Z=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);q=_.J(q,fea);this.activeDimissalTimeout=setTimeout(function(){Z.scrollAndDismissCard()},Number(q==null?void 0:q.delayMs))};
_.e.scrollAndDismissCard=function(){var q=this,Z=this.index;sh8().push(Z);_.I_(this,function(){var w=q.getPlayableNextIndex();w!==null&&(w=q.getActiveReelVideo(w),q.hideCardWithIndex(Z),w==null||w.scrollIntoView({behavior:"smooth",block:"nearest",inline:q.enableScrollIntoViewCenter?"center":"start"}))})};
_.e.hideCardWithIndex=function(q){if(q=this.getActiveReelVideo(q))q.hidden=!0};
_.e.showCardWithIndex=function(q){if(q=this.getActiveReelVideo(q))q.hidden=!1};
_.e.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.e.activeChanged=function(q){_.sE().dispatch(_.mu({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:q}}));if(q)document.addEventListener("keydown",_.XN(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var Z;(Z=this.player)==null||Z.sendAbandonmentPing()}var w;(w=this.player)==null||w.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.XN(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.e.graftClientVisualElements=function(){if(this.data){var q=_.iy();_.qfv(q,_.YK({response:this.reelWatchSequenceResponse}));_.AA(q,this.nextReelVe);_.AA(q,this.prevReelVe);_.b("kevlar_shorts_auto_advance")&&(_.AA(q,this.loopToggleOffVe),_.AA(q,this.loopToggleOnVe));_.AA(q,this.ambientModeToggleVe);_.kK(_.b5(),[this.nextReelVe,this.prevReelVe]);_.b("web_shorts_paused_state_logging")&&_.AA(q,this.reelPlayerPausedStateRendererVe)}};
_.e.graftNvcRenderer=function(){var q,Z,w,r,Y=this.index<0?(q=this.shortsProcessedPrevSequence)==null?void 0:(Z=q[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:Z.command:(w=this.shortsProcessedSequence)==null?void 0:(r=w[this.index])==null?void 0:r.command;if(Y&&this.isNonVideoContentCommand(Y)){q=_.J(Y,_.vZ);var C,d;(q=(C=_.J(q==null?void 0:q.renderer,_.TZD))==null?void 0:(d=C.loggingDirectives)==null?void 0:d.trackingParams)&&_.iy().graftServerVe(q)}};
_.e.setActiveIndex=function(){_.t().resolve(_.pq).setActiveIndex(this.index)};
_.e.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.e.lazyUpdateMiniplayerData=function(){var q=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.v5.addLowPriorityJob(function(){q.updateMiniplayerData();q.updateMiniplayerDataJobId=void 0}))};
_.e.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.v5.cancelJob(this.updateMiniplayerDataJobId)};
_.e.updateMiniplayerData=function(){var q,Z,w,r=_.t().resolve(_.Tf),Y={shortsData:this.getCurrentShort(),previousButtonDisabled:!((q=this.prevButtonData)==null||!q.isDisabled),nextButtonDisabled:!((Z=this.nextButtonData)==null||!Z.isDisabled),playabilityStatus:(w=this.playerData)==null?void 0:w.playabilityStatus};_.$y(r,Y)};
_.e.resetPlayerLocation=function(){var q=this.getPlayer();this.initialPlayerContainer&&(q.appendTo(this.initialPlayerContainer,void 0,!0),this.overlayContainer&&(this.initialPlayerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0))};
_.e.movePlayerToVideo=function(q,Z){var w=this;Z=Z===void 0?!0:Z;var r=this.getActiveReelVideo(q),Y=this.getPlayer();if(r){this.overlayContainer||(this.overlayContainer=_.E(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||Y.appendTo(this.overlayContainer.playerContainer,void 0,!0));r.appendChild(this.overlayContainer);var C;(C=this.player)==null||C.setSize(NaN,NaN);this.isActive||_.WO(_.v5,function(){w.isActive=!0});
Y.style.visibility="visible";_.b("reels_web_disable_rtr_tick")||_.b("reels_web_use_pbs_first_shorts")&&q===0||_.JT("r_tr");this.currentPlayerIndex=q;r.appendChild(this.errorScreenContainer);this.maybeMoveCinematicsToVideo()}else Z?_.v5.addLowPriorityJob(function(){w.movePlayerToVideo(w.index,!1)}):Math.random()<=_.m6("web_shorts_error_logging_threshold")&&_.Rw(new _.df("Trying to movePlayerToVideo with undefined container.",{firstAttempt:Z,
index:q}))};
_.e.enableFormatFirst=function(q){return _.b("web_enable_format_first")||q.adsOverlay&&_.b("web_enable_format_first_ads_only")||q.reelPlayerOverlayRenderer&&_.b("web_enable_format_first_organic_only")};
_.e.getAspectRatio=function(q){if(q!=null&&q.thumbnail&&this.enableFormatFirst(q))return"--ytd-shorts-player-ratio: "+JKw(q.thumbnail)};
_.e.getBackgroundImage=function(q){if(q!=null&&q.thumbnail){if(_.b("web_enable_format_first")){var Z=JKw(q.thumbnail);this.hostElement.style.setProperty("--ytd-shorts-player-ratio",""+Z)}return(q=_.UL(q.thumbnail.thumbnails))?'background-image:url("'+q+'");':"background-color:black;"}};
_.e.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.e.maybeMoveCinematicsToVideo=function(){var q=this;this.cinematicTransitionJobId&&_.v5.cancelJob(this.cinematicTransitionJobId);this.cinematicTransitionJobId=_.v5.addLowPriorityJob(function(){q.moveCinematicsToVideo()},500)};
_.e.moveCinematicsToVideo=function(){var q;(q=this.JSC$19508_cinematicController)!=null&&(q=q.currentCinematicEffect)!=null&&(q=q.storyboardManager,q.paused=!1,_.Z9m(q),q.update());q=_.E(this.hostElement).querySelector("ytd-reel-video-renderer");(q==null?0:q.cinematicContainer)&&q.cinematicContainer!==this.shortsCinematicContainer.parentElement&&q.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.e.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.e.updatePrevButtonData=function(){var q=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(q){var Z;this.prevButtonData=q=Object.assign({},q,{accessibility:{label:_.dT("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:q.isDisabled||this.index===-(((Z=this.shortsProcessedPrevSequence)==null?void 0:Z.length)||0),tooltip:this.isUpArrowHidden?"":_.dT("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=q=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.e.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.e.updateNextButtonData=function(){var q=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(q){var Z;this.nextButtonData=q=Object.assign({},q,{accessibility:{label:_.dT("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:q.isDisabled||this.index===((Z=this.shortsProcessedSequence)==null?void 0:Z.length),tooltip:_.dT("NEXT_VIDEO_LABEL")||""})}};
_.e.getPlayablePreviousIndex=function(){for(var q,Z=this.index-1;Z>=-(((q=this.prevShortsSequence)==null?void 0:q.length)||0);Z--)if(!sh8().includes(Z))return Z;return null};
_.e.getIndexInSequence=function(q,Z){return q.findIndex(function(w){var r;return((r=_.J(w.command,_.Yz))==null?void 0:r.videoId)===Z})};
_.e.handlePrevButtonClick=function(q){var Z=this,w,r;return _.V(function(Y){w=Z.getPlayablePreviousIndex();if(w===null)return Y.return();Z.gestureType=((r=q)==null?void 0:r.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";w===0&&(Z.hidePreviousButtonImmediately=!0);if(Z.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){Z.transitionToVideoThrottle.fire(w)}),Y.return();
Z.scrollToVideoThrottle.fire(w);_.ub(Y)})};
_.e.getPlayableNextIndex=function(){for(var q,Z=this.index+1;Z<(((q=this.shortsProcessedSequence)==null?void 0:q.length)||0);Z++)if(!sh8().includes(Z))return Z;return null};
_.e.handleNextButtonClick=function(q,Z){var w=this,r,Y;return _.V(function(C){r=w.getPlayableNextIndex();if(r===null)return C.return();r===1&&(w.showPreviousButtonImmediately=!0);w.gestureType=((Y=q)==null?void 0:Y.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";Z&&(w.gestureType=Z);if(w.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){w.transitionToVideoThrottle.fire(r)}),C.return();
w.scrollToVideoThrottle.fire(r);_.ub(C)})};
_.e.handleReelNavigateCommand=function(q,Z,w){(q=_.J(q,AKr))&&Z&&q.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(w)};
_.e.loadVideo=function(q,Z){Z=Z===void 0?!1:Z;if(q!==this.currentPlayerIndex){_.sE().dispatch(M2m(!1));if(this.isAd()&&!Z){var w;(w=this.player)==null||w.notifyShortsAdSwipeEvent()}this.cinematicTransitionJobId&&_.v5.cancelJob(this.cinematicTransitionJobId);if((Z=this.JSC$19508_cinematicController)!=null){var r;(r=Z.currentCinematicEffect)==null||r.pause()}if((r=this.JSC$19508_cinematicController)!=null){var Y;(Y=r.currentCinematicEffect)==null||Y.clear()}r=q>this.index;this.isShortsMiniplayerActive()&&
(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(r));this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var C,d,O,H;Y=q<0?(C=this.shortsProcessedPrevSequence)==null?void 0:(d=C[this.shortsProcessedPrevSequence.length+q])==null?void 0:d.command:(O=this.shortsProcessedSequence)==null?void 0:(H=O[q])==null?void 0:H.command;this.index=q;this.gestureType||(this.gestureType=r?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");Y&&this.isVideoContentCommand(Y)&&(this.ytComponentBehavior.resolveCommand(Y,{form:{createScreenConfig:{clickedVisualElement:r?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(Y&&this.isNonVideoContentCommand(Y)){this.currentEndpoint=Y;this.data=void 0;C=_.iy();d=_.J(Y,_.vZ);var L,S;(d=(L=_.J(d==null?void 0:d.renderer,_.TZD))==null?void 0:(S=L.screenLoggingData)==null?void 0:S.screenVeType)&&_.mG(C,
d);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo()}L=_.m6("reels_enable_early_continuation_offset")<=0?1:_.m6("reels_enable_early_continuation_offset");var v,R;if(((v=this.reelWatchSequenceResponse)==null?0:v.continuationEndpoint)&&((R=this.reelWatchSequenceResponse)==null?0:R.entries)&&q===this.reelWatchSequenceResponse.entries.length-L){var B,n;v={contentPlaybackContext:_.$z({},(n=_.J((B=this.currentEndpoint)==null?void 0:B.commandMetadata,_.XK))==null?void 0:
n.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:v})}var x,K,k;((x=this.reelWatchSequenceResponse)==null?0:x.prevContinuationEndpoint)&&q===-(((K=this.reelWatchSequenceResponse)==null?void 0:(k=K.prevEntries)==null?void 0:k.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.e.setMiniplayerPreview=function(q){q=(q===void 0?0:q)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var Z,w,r=_.t().resolve(_.Tf),Y={shortsData:void 0,shortsPreviewThumbnail:q?(Z=this.shortsProcessedSequence)==null?void 0:(w=Z[q])==null?void 0:w.thumbnail:void 0};_.$y(r,Y)};
_.e.updateTitle=function(q){var Z,w;q=(q==null?0:q.adPlacements)?"":(w=q==null?void 0:(Z=q.videoDetails)==null?void 0:Z.title)!=null?w:"";_.hy(this.hostElement,"yt-update-title",q)};
_.e.registerPanel=function(q){var Z=_.t().resolve(_.Of);if(Z){q=_.P(q.engagementPanels||[]);for(var w=q.next();!w.done;w=q.next()){w=w.value;var r=w.engagementPanelSectionListRenderer,Y=void 0,C=void 0,d=void 0,O=void 0,H=((Y=r)==null?void 0:Y.targetId)||((C=r)==null?void 0:C.panelIdentifier)||((d=r)==null?void 0:(O=d.identifier)==null?void 0:O.tag);Y=r=void 0;(Y=(r=Z).registerPanelContent)==null||Y.call(r,H,w)}}};
_.e.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;_.sE().dispatch(M2m(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.sE().dispatch(IeX(!1));var q=_.t().resolve(_.pq);q.dismissedIndices=[];q.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.t().resolve(_.Tf).close(!0)};
_.e.processAppendReelWatchSequenceContinuationEntriesAction=function(q){var Z=this,w;(w=this.intersectionObserver)==null||w.disconnect();q=q.appendReelWatchSequenceContinuationEntriesAction;if(q==null?0:q.entries){var r;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.Ju(((r=this.reelWatchSequenceResponse)==null?void 0:r.entries)||[]),_.Ju(q.entries)),continuationEndpoint:q.continuationEndpoint})}else if(q==null?0:q.prevEntries){var Y;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.Ju(((Y=this.reelWatchSequenceResponse)==null?void 0:Y.prevEntries)||[]),_.Ju(q.prevEntries)),prevContinuationEndpoint:q.prevContinuationEndpoint});_.v5.addLowPriorityJob(function(){Z.movePlayerToVideo(Z.index);var C;(C=Z.getActiveReelVideo(Z.index))==null||C.scrollIntoView({block:"nearest",inline:Z.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.v5.addLowPriorityJob(function(){Z.observeShorts()},100)};
_.e.processWatchSequence=function(q){var Z=this;return q.map(function(w){w=w.command;if(Z.isVideoContentCommand(w)){var r=_.J(w,_.Yz);return{reelPlayerOverlayRenderer:_.J(r==null?void 0:r.overlay,_.Urp),thumbnail:r.thumbnail,command:w}}return Z.isNonVideoContentCommand(w)?(r=_.J(w,_.vZ),{reelNonVideoContentRenderer:_.J(r==null?void 0:r.renderer,_.TZD),command:w}):{command:w}})};
_.e.calculateIntersectionObserverThreshold=function(){if(!_.b("web_shorts_dynamic_intersection_observer_threshold"))return.6;var q=_.E(this.hostElement).querySelector("ytd-reel-video-renderer"),Z=1;(q==null?0:q.offsetHeight)&&(q==null?0:q.offsetWidth)&&(Z=Math.min(q.offsetHeight,this.shortsContainer.offsetHeight)/q.offsetHeight*(Math.min(q.offsetWidth,this.shortsContainer.offsetWidth)/q.offsetWidth));return Math.round(Z*.6*10)/10};
_.e.isVideoContentCommand=function(q){_.t().resolve(_.pq);return!!_.J(q,_.Yz)};
_.e.isNonVideoContentCommand=function(q){_.t().resolve(_.pq);return!!_.J(q,_.vZ)};
_.e.initCinematicController=function(){var q=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19508_cinematicController=new _.WC(this.shortsCinematicContainer,this.player);var Z,w=_.J((Z=this.data)==null?void 0:Z.background,_.xV);_.t25(this.JSC$19508_cinematicController,w);_.jhd(this.JSC$19508_cinematicController,Rmw(w));_.vgX(this.JSC$19508_cinematicController);_.v5.addLowPriorityJob(function(){q.moveCinematicsToVideo()})}};
_.e.handleMiniplayerNavigateShorts=function(q){q==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():q==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.e.shouldDisplayReelVideoOverlay=function(q,Z){return _.b("web_enable_shorts_new_carousel")?Math.abs(q-Z)<2:!0};
_.My.Object.defineProperties(PCv.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.reelWatchSequenceResponse)!=null&&q.prevEntries)return this.processWatchSequence([].concat(_.Ju(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var q=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!q)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var Z=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.Ju(this.prevShortsSequence.slice(0,Z)),[q],_.Ju(this.prevShortsSequence.slice(Z+
1)))}Z=this.index+this.shortsProcessedPrevSequence.length;q.thumbnail=this.shortsProcessedPrevSequence[Z].thumbnail;return[].concat(_.Ju(this.shortsProcessedPrevSequence.slice(0,Z)),[q],_.Ju(this.shortsProcessedPrevSequence.slice(Z+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.reelWatchSequenceResponse)!=null&&q.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var q=this.getCurrentShort();if(!q||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[q];if(q==null||!q.reelNonVideoContentRenderer){var Z=this.getIndexInSequence(this.shortsSequence,_.J(this.currentEndpoint,_.Yz).videoId);if(this.index===0&&Z!==-1)return this.currentPlayerIndex=this.index=Z,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.Ju(this.shortsSequence.slice(0,this.index)),[q],_.Ju(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){q.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var w,r,Y,C;Z=((r=_.J((w=this.shortsProcessedSequence[0])==null?void 0:w.command,_.Yz))==null?void 0:r.videoId)===((C=_.J((Y=this.shortsSequence[0])==null?void 0:Y.command,_.Yz))==null?void 0:C.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.Ju(this.shortsProcessedSequence.slice(0,
this.index)),[q],_.Ju(this.shortsSequence.slice(Z)))}return[q].concat(_.Ju(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var q=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;q&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(q)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 q,Z;return this.index===((q=this.reelWatchSequenceResponse)==null?void 0:(Z=q.entries)==null?void 0:Z.length)}var w;return!((w=this.reelWatchSequenceResponse)==null?0:w.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var q;(q=this.delayedActiveIndexUpdateDebouncer)==null||q.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return this.isShortPlayable()||((Z=_.J((q=this.data)==null?void 0:q.watchStatus,_.l1g))==null?void 0:(w=Z.style)==null?void 0:w.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var q=this,Z=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),w;if((this.data||Z)&&(((w=this.data)==null?0:w.engagementPanels)||this.isAd()||Z)){Z=!1;this.activePanel="shorts-comments-panel";var r;w=_.P(((r=this.data)==null?void 0:r.engagementPanels)||[]);for(r=w.next();!r.done;r=w.next()){r=r.value.engagementPanelSectionListRenderer;var Y=void 0,C=void 0,d=void 0,O=void 0;if((((Y=r)==null?void 0:(C=Y.identifier)==
null?void 0:C.tag)||((d=r)==null?void 0:d.targetId)||((O=r)==null?void 0:O.panelIdentifier))===this.activePanel){Z=!0;break}}if(this.isPersistentPanelActive){var H=_.t().resolve(_.Of);_.WO(_.v5,function(){H.showPanel(q.activePanel,void 0,void 0,void 0,null)},100)}w=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);
r=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);if(w===void 0&&r===void 0||(w==null?0:w.isDisabled)||(r==null?void 0:r.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!Z){var L,S,v=(L=this.data)==null?void 0:(S=L.engagementPanels)==null?void 0:S.findIndex(function(x){var K,k;return((K=x.engagementPanelSectionListRenderer)==null?void 0:(k=
K.identifier)==null?void 0:k.tag)==="shorts-comments-panel"});
if(v!==-1&&v!==void 0){var R,B;(R=this.data)==null||(B=R.engagementPanels)==null||B.splice(v,1)}var n;return[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.dT("COMMENTS",void 0,"Comments")}]},visibilityButton:_.ih({buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.dT("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:_.dT("COMMENTS_OFF",void 0,"Comments are turned off. ")},{text:" "},{text:_.dT("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(_.Ju(Object.values(((n=this.data)==null?void 0:n.engagementPanels)||{})))}return(v=this.data)==null?void 0:v.engagementPanels}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.shortsProcessedSequence)==null?void 0:q[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var q=this,Z,w,r;if((Z=this.playerData)==null?0:(w=Z.playabilityStatus)==null?0:(r=w.errorScreen)==null?0:r.playerInterstitialRenderer)return _.v5.addLowPriorityJob(function(){q.movePlayerToVideo(q.index)}),this.playerData.playabilityStatus.errorScreen;
var Y,C;return((Y=this.data)==null?void 0:Y.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((C=this.data)==null?0:C.watchStatus)&&_.J(this.data.watchStatus,_.pBX)?(_.v5.addLowPriorityJob(function(){q.movePlayerToVideo(q.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.My.Object.defineProperties(PCv,{template:{configurable:!0,enumerable:!0,get:function(){if(hmm===void 0){var q=document.createElement("template");_.a(q,'\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    <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    <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-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);hmm=q}q=hmm;return q}}});
var be=PCv;be.prototype.onNextButtonDataChange=be.prototype.onNextButtonDataChange;be.prototype.onPrevButtonDataChange=be.prototype.onPrevButtonDataChange;be.prototype.lazyUpdateMiniplayerData=be.prototype.lazyUpdateMiniplayerData;be.prototype.onShortsPipActiveChanged=be.prototype.onShortsPipActiveChanged;be.prototype.setActiveIndex=be.prototype.setActiveIndex;be.prototype.graftNvcRenderer=be.prototype.graftNvcRenderer;be.prototype.graftClientVisualElements=be.prototype.graftClientVisualElements;
be.prototype.onActiveChanged=be.prototype.onActiveChanged;be.prototype.onShortsDismiss=be.prototype.onShortsDismiss;be.prototype.onShortUndoDismiss=be.prototype.onShortUndoDismiss;be.prototype.playerDataChanged=be.prototype.playerDataChanged;be.prototype.afterPlayerStarted=be.prototype.afterPlayerStarted;be.prototype.unhideCurrentOverlay=be.prototype.unhideCurrentOverlay;be.prototype.onServiceRequestCompleted=be.prototype.onServiceRequestCompleted;be.prototype.engagementPanelsChanged=be.prototype.engagementPanelsChanged;
be.prototype.onFullscreenChange=be.prototype.onFullscreenChange;be.prototype.onResize=be.prototype.onResize;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],be.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kV.YtPageBehavior),_.A("design:type",Object)],be.prototype,"ytPageBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],be.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.SQ),_.A("design:type",Object)],be.prototype,"ironResizableBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],be.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],be.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],be.prototype,"ytdGuideStateAwareBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],be.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],be.prototype,"playerData",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"reelWatchSequenceResponse",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"cachedReelWatchSequenceResponse",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"currentEndpoint",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"nextButtonData",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"prevButtonData",void 0);
_.X([_.F(),_.A("design:type",Object)],be.prototype,"isPreviousPageShorts",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"index",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"delayedActiveIndex",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"playablePreviousIndex",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"player",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"isPlayerPaused",void 0);
_.X([_.F({selector:BWw}),_.A("design:type",Object)],be.prototype,"isPlayerStarted",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"intersectionObserver",void 0);_.X([_.F(),_.A("design:type",Number)],be.prototype,"cinematicsInitializeJobId",void 0);_.X([_.F(),_.A("design:type",Number)],be.prototype,"cinematicTransitionJobId",void 0);_.X([_.F(),_.A("design:type",Number)],be.prototype,"updateMiniplayerDataJobId",void 0);
_.X([_.F(),_.A("design:type",Object)],be.prototype,"fitToVisibleBounds",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"pageSubtype",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],be.prototype,"panelShowDelayMs",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],be.prototype,"enablePreviousContinuation",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],be.prototype,"shortsPipEnabled",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],be.prototype,"isDark",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],be.prototype,"shortsViewTransitions",void 0);_.X([_.F({selector:_.$_,reflectToAttribute:!0}),_.A("design:type",Object)],be.prototype,"isFullscreen",void 0);_.X([_.F({selector:_.ee,reflectToAttribute:!0}),_.A("design:type",Object)],be.prototype,"isShortsPipActive",void 0);
_.X([_.fo("#shorts-inner-container"),_.A("design:type",HTMLElement)],be.prototype,"shortsInnerContainer",void 0);_.X([_.fo("#back-nav-button ytd-button-renderer"),_.A("design:type",_.TU)],be.prototype,"backNavButton",void 0);_.X([_.fo("#shorts-container"),_.A("design:type",HTMLElement)],be.prototype,"shortsContainer",void 0);_.X([_.KE("error-screen"),_.A("design:type",HTMLElement)],be.prototype,"errorScreenContainer",void 0);
_.X([_.KE("player"),_.A("design:type",Object)],be.prototype,"playerElement",void 0);_.X([_.KE("shorts-cinematic-container"),_.A("design:type",HTMLElement)],be.prototype,"shortsCinematicContainer",void 0);_.X([_.KE("initial-player-container"),_.A("design:type",HTMLElement)],be.prototype,"initialPlayerContainer",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"buttonOverride",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],be.prototype,"anchoredPanelActive",void 0);
_.X([_.F(),_.A("design:type",String)],be.prototype,"activePanel",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"isActive",void 0);_.X([_.F({selector:zmr,reflectToAttribute:!0}),_.A("design:type",Object)],be.prototype,"smallScreenPersistentPanel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],be.prototype,"isPersistentPanelActive",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"smallScreenSqueezeBack",void 0);
_.X([_.F(),_.A("design:type",Object)],be.prototype,"enableScrollIntoViewCenter",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],be.prototype,"formatFirst",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],be.prototype,"enableFlexibleOverlay",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"panelContainer",void 0);_.X([_.F(),_.A("design:type",Object)],be.prototype,"overlayContainer",void 0);
_.X([_.F(),_.A("design:type",Object)],be.prototype,"isShortsInitialized",void 0);_.X([_.I("reelWatchSequenceResponse"),_.A("design:type",Object),_.A("design:paramtypes",[])],be.prototype,"prevShortsSequence",null);_.X([_.I("data","prevShortsSequence"),_.A("design:type",Object),_.A("design:paramtypes",[])],be.prototype,"shortsProcessedPrevSequence",null);_.X([_.I("reelWatchSequenceResponse"),_.A("design:type",Object),_.A("design:paramtypes",[])],be.prototype,"shortsSequence",null);
_.X([_.I("data","shortsSequence"),_.A("design:type",Object),_.A("design:paramtypes",[])],be.prototype,"shortsProcessedSequence",null);_.X([_.F({reflectToAttribute:!0}),_.I("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],be.prototype,"isUpArrowHidden",null);
_.X([_.F({reflectToAttribute:!0}),_.I("reelWatchSequenceResponse","index","endOfNextContinuation"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],be.prototype,"isDownArrowHidden",null);_.X([_.F(),_.I("index"),_.A("design:type",Number),_.A("design:paramtypes",[])],be.prototype,"activeIndex",null);_.X([_.I("isShortPlayable","data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],be.prototype,"shouldRenderOfflineContent",null);
_.X([_.m2("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],be.prototype,"onResize",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],be.prototype,"anchoredEngagementPanels",null);_.X([_.F(),_.A("design:type",Object)],be.prototype,"watchWhileEngagementPanels",void 0);_.X([_.M("isFullscreen"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],be.prototype,"onFullscreenChange",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],be.prototype,"engagementPanelsChanged",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],be.prototype,"onServiceRequestCompleted",null);_.X([_.I("data","shortsSequence","index"),_.A("design:type",Object),_.A("design:paramtypes",[])],be.prototype,"activeReel",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],be.prototype,"unhideCurrentOverlay",null);_.X([_.M("isPlayerStarted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],be.prototype,"afterPlayerStarted",null);_.X([_.I("playerData","reelWatchSequenceResponse","data"),_.A("design:type",Object),_.A("design:paramtypes",[])],be.prototype,"errorScreen",null);
_.X([_.I("errorScreen"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],be.prototype,"hasError",null);_.X([_.M("playerData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],be.prototype,"playerDataChanged",null);_.X([_.m2("yt-dismissible-item-undo-feedback"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],be.prototype,"onShortUndoDismiss",null);
_.X([_.m2("yt-disable-lockup-interaction"),_.A("design:type",Function),_.A("design:paramtypes",[Object]),_.A("design:returntype")],be.prototype,"onShortsDismiss",null);_.X([_.g3("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],be.prototype,"onActiveChanged",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],be.prototype,"graftClientVisualElements",null);
_.X([_.M("currentPlayerIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],be.prototype,"graftNvcRenderer",null);_.X([_.M("index"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],be.prototype,"setActiveIndex",null);_.X([_.M("isShortsPipActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],be.prototype,"onShortsPipActiveChanged",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],be.prototype,"lazyUpdateMiniplayerData",null);_.X([_.F(),_.A("design:type",Object)],be.prototype,"onOverlayDensityChanged",void 0);_.X([_.M("index","data","isUpArrowHidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],be.prototype,"onPrevButtonDataChange",null);
_.X([_.M("index","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],be.prototype,"onNextButtonDataChange",null);be=_.X([_.l({is:"ytd-shorts"})],be);_.Wv.registerService(_.Pe8,be);
_.J1();
}catch(e){_._DumpException(e)}
try{
_.b6("JzFVk");
var guq=function(q){return _.u("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},ifq(q.data.ctaButton,{buttonViewModel:{}}),_.u(_.r6,{text:q.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var q29;var ZX5;var w6A=function(){return _.N.apply(this,arguments)||this};
_.z(w6A,_.N);w6A.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
w6A.prototype.computeBlueBottomLink=function(q){return q};
var As=w6A;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],As.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],As.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],As.prototype,"data",void 0);_.X([_.F({computed:"computeIcon_(data.bottomIcon)"}),_.A("design:type",String)],As.prototype,"bottomIcon",void 0);
_.X([_.F({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.A("design:type",Boolean)],As.prototype,"enableBlueBottomLink",void 0);As=_.X([_.l({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],As);
_.p(As,"ytd-web-answer-renderer",function(){if(ZX5!==void 0)return ZX5;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ZX5=q},{mode:_.NT("kevlar_poly_si_batch_j035")?1:2});var r2g;var Y2m=function(){var q=_.N.apply(this,arguments)||this;q.hasChipBar=!1;return q};
_.z(Y2m,_.N);Y2m.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}}};
Y2m.prototype.computeHasChipBar=function(q){return!(q==null||!q.chipBar)};
var f3=Y2m;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],f3.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],f3.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.A("design:type",Object)],f3.prototype,"hasChipBar",void 0);
f3=_.X([_.l({is:"ytd-search-header-renderer",disableElementRegistration:!0})],f3);
_.p(f3,"ytd-search-header-renderer",function(){if(r2g!==void 0)return r2g;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return r2g=q},{mode:1});var $j8;var e8X=function(){return _.N.apply(this,arguments)||this};
_.z(e8X,_.N);e8X.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var DY=e8X;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],DY.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],DY.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],DY.prototype,"data",void 0);DY=_.X([_.l({disableElementRegistration:!0,is:"ytd-page-continuation"})],DY);
_.p(DY,"ytd-page-continuation",function(){if($j8!==void 0)return $j8;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return $j8=q},{mode:1});var CNg;var PN6;var djr;var VOr=function(){return _.N.apply(this,arguments)||this};
_.z(VOr,_.N);var OXv=VOr;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],OXv.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],OXv.prototype,"data",void 0);OXv=_.X([_.l({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],OXv);
_.p(OXv,"ytd-watch-card-one-vs-one-event",function(){if(djr!==void 0)return djr;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return djr=q},{mode:1});var HXv=function(){return _.N.apply(this,arguments)||this};
_.z(HXv,_.N);var WId=HXv;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],WId.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],WId.prototype,"data",void 0);WId=_.X([_.l({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],WId);
_.p(WId,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(PN6!==void 0)return PN6;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return PN6=q},{mode:1});var o1w;var u96=function(){return _.N.apply(this,arguments)||this};
_.z(u96,_.N);var LI9=u96;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],LI9.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],LI9.prototype,"data",void 0);LI9=_.X([_.l({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],LI9);
_.p(LI9,"ytd-banner-and-box-hero-image-renderer",function(){if(o1w!==void 0)return o1w;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return o1w=q},{mode:1});var S2a;var v1m=function(){var q=_.N.apply(this,arguments)||this;q.modern=_.b("web_modern_buttons");return q};
_.z(v1m,_.N);v1m.prototype.computeIcon=function(){var q,Z,w=(q=this.data)==null?void 0:(Z=q.icon)==null?void 0:Z.iconType;if(w)return _.Xl(w)};
v1m.prototype.computeButtonShape=function(){var q;return{buttonText:_.kO((q=this.data)==null?void 0:q.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.My.Object.defineProperties(v1m.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"}}});
var hs=v1m;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],hs.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],hs.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],hs.prototype,"modern",void 0);_.X([_.F({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.I("data.style"),_.A("design:type",Object),_.A("design:paramtypes",[])],hs.prototype,"buttonColor",null);
hs=_.X([_.l({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],hs);
_.p(hs,"ytd-call-to-action-button-renderer",function(){if(S2a!==void 0)return S2a;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return S2a=q},{mode:1});var jTm;var tO8=function(){return _.N.apply(this,arguments)||this};
_.z(tO8,_.N);tO8.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.E(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.TL(this.data.leftThumbnail.thumbnails,216)+")")};
var yz=tO8;yz.prototype.onLeftThumbnailChanged=yz.prototype.onLeftThumbnailChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],yz.prototype,"data",void 0);_.X([_.M("data.leftThumbnail"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yz.prototype,"onLeftThumbnailChanged",null);yz=_.X([_.l({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],yz);
_.p(yz,"ytd-collage-hero-image-renderer",function(){if(jTm!==void 0)return jTm;var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return jTm=q},{mode:1});var R89;var bXA=function(){return _.N.apply(this,arguments)||this};
_.z(bXA,_.N);bXA.prototype.computeStyle=function(q){return q};
var iv=bXA;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],iv.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],iv.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],iv.prototype,"componentStyle",void 0);iv=_.X([_.l({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],iv);
_.p(iv,"ytd-single-hero-image-renderer",function(){if(R89!==void 0)return R89;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return R89=q},{mode:1});var J2X;var z8v=function(){return _.N.apply(this,arguments)||this};
_.z(z8v,_.N);_.e=z8v.prototype;
_.e.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:_.b("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.e.computeSubtitle=function(q){if(this.data){var Z;if(this.data.upcomingEventData){q=_.kO(q.subtitle);var w=Number(this.data.upcomingEventData.startTime);isNaN(w)||(Z=_.UE(_.jr(q,w)))}else Z=q.subtitle;return Z}};
_.e.onHeroTap=function(q){q.preventDefault();var Z=this.data&&this.data.navigationEndpoint;!Z||!_.E1(_.E8(q),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.E1(_.E8(q),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.b("kevlar_watchcard_hero_video_renderer_killswitch")?_.hy(this.hostElement,"yt-navigate",{navigationEndpoint:Z}):this.ytComponentBehavior.resolveCommand(Z))};
_.e.computeHeroTabIndex=function(q){return q&&q.simpleText?-1:0};
_.e.computeHeroRole=function(q){return q&&q.simpleText?"":"link"};
_.e.computeIsReminderButtonPresent=function(q){return!(!q||!q.reminderButton)};
_.e.computeHideBottomItems=function(q){return!(this.computeIsReminderButtonPresent(q)||q.subtitle)};
_.e.dataChanged=function(){var q=this.get("data.buttons.buttonRenderer.serviceEndpoint"),Z;((Z=_.J(q==null?void 0:q.commandMetadata,_.WZ))==null?0:Z.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(q)};
var gG=z8v;gG.prototype.dataChanged=gG.prototype.dataChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],gG.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],gG.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],gG.prototype,"data",void 0);
_.X([_.F({computed:"computeSubtitle(data)"}),_.A("design:type",String)],gG.prototype,"subtitle",void 0);_.X([_.F({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],gG.prototype,"isReminderButtonPresent",void 0);_.X([_.F({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],gG.prototype,"hideBottomItems",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gG.prototype,"dataChanged",null);gG=_.X([_.l({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],gG);
_.p(gG,"ytd-watch-card-hero-video-renderer",function(){if(J2X!==void 0)return J2X;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return J2X=q},{mode:1});var BzI;var aTv=function(){return _.N.apply(this,arguments)||this};
_.z(aTv,_.N);_.e=aTv.prototype;_.e.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"}}}};
_.e.computeTitleBadges=function(q){return q?[q]:[]};
_.e.computeHeaderStyle=function(q){return q?q.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.e.computeAvatarAriaLabel=function(q){if(q){var Z,w,r,Y;return(Y=(Z=q.avatar)==null?void 0:(w=Z.accessibility)==null?void 0:(r=w.accessibilityData)==null?void 0:r.label)!=null?Y:_.kO(q==null?void 0:q.title)}};
_.e.computeAvatarHeight=function(q){return q==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.e.computeBadgeRowClass=function(q){return(q==null?0:q[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
var qJ=aTv;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],qJ.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],qJ.prototype,"data",void 0);_.X([_.F({computed:"computeTitleBadges(data.titleBadge)"}),_.A("design:type",Array)],qJ.prototype,"titleBadges",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.A("design:type",String)],qJ.prototype,"headerStyle",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.A("design:type",String)],qJ.prototype,"badgeRowClass",void 0);qJ=_.X([_.l({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],qJ);
_.p(qJ,"ytd-watch-card-rich-header-renderer",function(){if(BzI!==void 0)return BzI;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return BzI=q},{mode:1});var n18;var QT5;var E1w=function(){return _.N.apply(this,arguments)||this};
_.z(E1w,_.N);E1w.prototype.onMetadataTap=function(q){var Z=this.data&&this.data.navigationEndpoint;Z&&!_.E1(_.E8(q),this.hostElement,["A".toString()])&&_.hy(this.hostElement,"yt-navigate",{endpoint:Z})};
_.My.Object.defineProperties(E1w.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 q;if(this.data.upcomingEventData){var Z=_.kO(this.data.subtitle),w=Number(this.data.upcomingEventData.startTime);isNaN(w)||(q=_.UE(_.jr(Z,w)))}else q=this.data.subtitle;return q}}}});
var Zt=E1w;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Zt.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Zt.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data.style"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Zt.prototype,"isCondensed",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Zt.prototype,"subtitle",null);
Zt=_.X([_.l({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Zt);
_.p(Zt,"ytd-watch-card-compact-video-renderer",function(){if(QT5!==void 0)return QT5;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return QT5=q},{mode:1});var xjw;var Tzr=function(){return _.N.apply(this,arguments)||this};
_.z(Tzr,_.N);var UjX=Tzr;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],UjX.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],UjX.prototype,"data",void 0);UjX=_.X([_.l({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],UjX);
_.p(UjX,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(xjw!==void 0)return xjw;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return xjw=q},{mode:1});var keg=function(){return _.N.apply(this,arguments)||this};
_.z(keg,_.N);keg.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}}}}};
var wL=keg;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],wL.prototype,"ytRendererStamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],wL.prototype,"data",void 0);wL=_.X([_.l({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],wL);
_.p(wL,"ytd-vertical-watch-card-list-renderer",function(){if(n18!==void 0)return n18;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return n18=q},{mode:1});var KIF;var sTa=function(){var q=_.N.apply(this,arguments)||this;q.ariaExpanded="false";return q};
_.z(sTa,_.N);_.e=sTa.prototype;_.e.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.e.dataChanged=function(){var q;this.currentSeasonIndex=((q=this.data)==null?void 0:q.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.e.computeEpisodesInfo=function(q,Z,w){if(q!==void 0&&Z.length===q.length)return q[w]};
_.e.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.e.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.e.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.e.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.e.getUppercaseSimpleString=function(q){return this.ytRendererBehavior.getSimpleString(q).toUpperCase()};
_.e.updateCurrentSeasonIndexFromBinding=function(q){this.currentSeasonIndex=q.detail.value};
var rL=sTa;rL.prototype.onIronOverlayClosed=rL.prototype.onIronOverlayClosed;rL.prototype.currentSeasonIndexChanged=rL.prototype.currentSeasonIndexChanged;rL.prototype.dataChanged=rL.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],rL.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],rL.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],rL.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",String)],rL.prototype,"label",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],rL.prototype,"currentSeasonIndex",void 0);_.X([_.F({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.A("design:type",Object)],rL.prototype,"episodesInfo",void 0);_.X([_.F({value:"false"}),_.A("design:type",Object)],rL.prototype,"ariaExpanded",void 0);_.X([_.fo("#lists"),_.A("design:type",Object)],rL.prototype,"lists",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rL.prototype,"dataChanged",null);_.X([_.g3("currentSeasonIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rL.prototype,"currentSeasonIndexChanged",null);_.X([_.m2("iron-overlay-closed"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],rL.prototype,"onIronOverlayClosed",null);
rL=_.X([_.l({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],rL);
_.p(rL,"ytd-watch-card-section-dropdown-renderer",function(){if(KIF!==void 0)return KIF;var q=document.createElement("template");_.a(q,'\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="yt-icons:arrow_drop_down" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return KIF=q},{mode:1});var ITA;var c26=function(){var q=_.N.apply(this,arguments)||this;q.isSearch=!1;return q};
_.z(c26,_.N);c26.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}}}}};
var YW=c26;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],YW.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],YW.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],YW.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],YW.prototype,"isSearch",void 0);YW=_.X([_.l({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],YW);
_.p(YW,"ytd-watch-card-section-sequence-renderer",function(){if(ITA!==void 0)return ITA;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
return ITA=q},{mode:1});var ifq=_.Px({buttonViewModel:_.vx});_.mD(guq);_.Mx(guq,"ytd-button-banner-view-model",{propNames:["data"]});var MOK=function(){var q=_.N.apply(this,arguments)||this;q.isSearch=!1;return q};
_.z(MOK,_.N);
MOK.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"}}}};
var $W=MOK;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],$W.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],$W.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],$W.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],$W.prototype,"rounded",void 0);_.X([_.F(),_.A("design:type",Object)],$W.prototype,"isSearch",void 0);
$W=_.X([_.l({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],$W);
_.p($W,"ytd-universal-watch-card-renderer",function(){if(CNg!==void 0)return CNg;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return CNg=q},{mode:1});var FIF;_.xc(_.xl(function(q){var Z=q.data;var w;q=!((w=_.t().resolve(_.Gj(_.RQ)))==null||!w());w={};return _.u("overview-message-view-model",{class:_.GL("ytwOverviewMessageViewModelHost",(w.ytwOverviewMessageViewModelDarkBackground=q,w.ytwOverviewMessageViewModelLightBackground=!q,w))},_.u(_.PF,{cond:function(){return Z().primaryImage},
then:function(r){return _.u(_.aQ,{data:r,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.u(_.PF,{cond:function(){return Z().primaryText},
then:function(){return _.u("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.u(_.r6,{text:function(){return Z().primaryText}}))}}),_.u(_.PF,{cond:function(){return Z().secondaryText},
then:function(){return _.u("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.u(_.r6,{text:function(){return Z().secondaryText}}))}}))},"Ih"),"overview-message-view-model",{props:{data:_.zG}});_.Mx(_.z88,"ytd-overview-answer-view-model",{propNames:["data"]});var Nzr=function(){return _.N.apply(this,arguments)||this};
_.z(Nzr,_.N);Nzr.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"}}}};
Nzr.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
var eU=Nzr;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],eU.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Ms),_.A("design:type",Object)],eU.prototype,"ytContinuationHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],eU.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],eU.prototype,"isSearch",void 0);
eU=_.X([_.l({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],eU);
_.p(eU,"ytd-secondary-search-container-renderer",function(){if(FIF!==void 0)return FIF;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
return FIF=q},{mode:1});var lTw;var Gev=function(){var q=_.N.apply(this,arguments)||this;q.renderSecondarySearchContainer=!1;q.isSearch=!1;q.isSearchDova=_.b("dova_on_search");return q};
_.z(Gev,_.N);_.e=Gev.prototype;_.e.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.e.created=function(){var q=this;this.boundStampSecondarySearchContainerIfFits=function(){q.stampSecondarySearchContainerIfFits()};
_.bO("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.e.computeIsSearchFrictionPage=function(q){var Z,w,r,Y,C;q=q==null?void 0:(Z=q.primaryContents)==null?void 0:(w=Z.sectionListRenderer)==null?void 0:(r=w.contents)==null?void 0:(Y=r[0])==null?void 0:(C=Y.itemSectionRenderer)==null?void 0:C.contents;if(!q)return!1;Z=_.P(q);for(w=Z.next();!w.done;w=Z.next())if(r=void 0,(r=w.value)==null?0:r.searchFrictionViewModel)return!0;return!1};
_.e.computeShowSecondaryColumn=function(q,Z){return!!(Z&&Z.secondaryContents&&q)};
_.e.activeChanged=function(){var q=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.XN(this,this.debounceStampSecondarySearchContainerIfFits)),_.SH(function(){q.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.XN(this,this.debounceStampSecondarySearchContainerIfFits))};
_.e.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.e.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.e.debounceStampSecondarySearchContainerIfFits=function(){_.vp(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.e.onRetrieveLocation=function(q,Z){Z.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);q.stopPropagation()};
_.e.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
var CT=Gev;CT.prototype.dataChanged=CT.prototype.dataChanged;CT.prototype.onRetrieveLocation=CT.prototype.onRetrieveLocation;CT.prototype.persistentGuideChanged=CT.prototype.persistentGuideChanged;CT.prototype.activeChanged=CT.prototype.activeChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],CT.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],CT.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],CT.prototype,"ytdGuideStateAwareBehavior",void 0);_.X([_.U(_.SQ),_.A("design:type",Object)],CT.prototype,"ironResizableBehavior",void 0);_.X([_.F(),_.A("design:type",Boolean)],CT.prototype,"active",void 0);_.X([_.F(),_.A("design:type",Object)],CT.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],CT.prototype,"useBiggerThumbs",void 0);_.X([_.F({reflectToAttribute:!0,value:function(){return _.Af("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],CT.prototype,"biggerThumbsStyle",void 0);_.X([_.F(),_.A("design:type",Object)],CT.prototype,"renderSecondarySearchContainer",void 0);_.X([_.F({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.A("design:type",Boolean)],CT.prototype,"showSecondaryColumn",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.A("design:type",Boolean)],CT.prototype,"isSearchFrictionPage",void 0);
_.X([_.F(),_.A("design:type",Object)],CT.prototype,"isSearch",void 0);_.X([_.F(),_.A("design:type",Object)],CT.prototype,"isSearchDova",void 0);_.X([_.M("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],CT.prototype,"activeChanged",null);_.X([_.M("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],CT.prototype,"persistentGuideChanged",null);
_.X([_.m2("yt-retrieve-location"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],CT.prototype,"onRetrieveLocation",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],CT.prototype,"dataChanged",null);CT=_.X([_.l({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],CT);
_.p(CT,"ytd-two-column-search-results-renderer",function(){if(lTw!==void 0)return lTw;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return lTw=q},{mode:1});var p6d=function(){var q=_.N.apply(this,arguments)||this;q.hasSearchHeader=!1;q.hasSecondaryContent=!1;q.hasBiggerThumbs=_.b("enable_desktop_search_bigger_thumbs");q.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return q};
_.z(p6d,_.N);_.e=p6d.prototype;_.e.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:_.oI(["aa","eocs"])}}};
_.e.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.e.loadPage_=function(q){this.initCsi();q&&(this.data=q,_.bO("REFINEMENTS_TUPLE",["FromSearchResponse",q.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.sG(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.e.initCsi=function(){_.pU7("results",["ol","cpt"])};
_.e.updateTitle=function(){var q=_.xi(window.location.href,"q");q||(q=_.xi(window.location.href,"search_query"));_.hy(this.hostElement,"yt-update-title",q||"")};
_.e.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.e.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.b("web_srp_data_changed_terminate_imp_killswitch")||_.yY(this.hostElement,"yt-terminate-video-preview-action")};
_.e.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.e.computeHasSearchHeader=function(q){var Z;q=q==null?void 0:(Z=q.header)==null?void 0:Z.searchHeaderRenderer;return!!q&&(!!q.searchFilterButton||!!q.chipBar)};
_.e.computeHasSecondaryContent=function(q){var Z,w;return!!(q==null?0:(Z=q.contents)==null?0:(w=Z.twoColumnSearchResultsRenderer)==null?0:w.secondaryContents)};
_.My.Object.defineProperties(p6d,{template:{configurable:!0,enumerable:!0,get:function(){if(q29===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);q29=q}q=q29;return q}}});
var PC=p6d;PC.prototype.onReloadContinuationFinish=PC.prototype.onReloadContinuationFinish;PC.prototype.dataChanged=PC.prototype.dataChanged;_.X([_.U(_.kV.YtPageBehavior),_.A("design:type",Object)],PC.prototype,"ytPageBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],PC.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],PC.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.Ms),_.A("design:type",Object)],PC.prototype,"ytContinuationHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],PC.prototype,"data",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],PC.prototype,"monitorScroll",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],PC.prototype,"hasSearchHeader",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],PC.prototype,"hasSecondaryContent",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],PC.prototype,"hasBiggerThumbs",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],PC.prototype,"dataChanged",null);
_.X([_.m2("yt-reload-continuation-finish"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],PC.prototype,"onReloadContinuationFinish",null);PC=_.X([_.l({is:"ytd-search"})],PC);_.Wv.registerService(_.CeO,PC);
_.J1();
}catch(e){_._DumpException(e)}
try{
_.b6("h8y2qb");
var maV=function(q){if(q=_.dvj(q)){var Z;(Z=q.sources)!=null&&Z[0]?(Z=_.O12(q),Z=Z<1?"VERTICAL":Z>1?"HORIZONTAL":"SQUARE"):Z=void 0;return Z}},K0=function(q){_.VT.call(this,"upload");
this.opts.query=q},fYD=function(q,Z){return _.u(AsV,{data:q,
onYtNavigate:Z})},hr8=function(q,Z){return q.map(function(w){if(w.tabRenderer)return Dab(w.tabRenderer);
if(w.expandableTabRenderer&&Z){var r=w.expandableTabRenderer;return{customTabRenderable:function(){return Z(r)}}}return{}})},Dab=function(q){return{identifier:q.tabIdentifier,
aTagConfig:_.Ln({innertubeCommand:q.endpoint,forceNewState:!0}),title:q.title,selected:q.selected,disabled:q.unselectable}},ysC=function(q,Z){return _.iI(q.entities,"pageHeaderEntity",Z)},qRb=function(q){var Z=q.data;
var w=q.noPadding===void 0?!1:q.noPadding;var r=q.enableBanner===void 0?!1:q.enableBanner;var Y=q.cinematicContainerTopbarOffset;var C=q.allowCinematicContainerOverflow===void 0?!1:q.allowCinematicContainerOverflow;q=q.displayAsSidebar===void 0?!1:q.displayAsSidebar;if(Z==null?0:Z.tagManagerId)_.Yb(Z.tagManagerId,_.zj("GL")),i3y(Z.tagManagerId);a:{if(Z.pageHeaderEntityKey){var d=_.il(ysC,Z.pageHeaderEntityKey);if(d==null?0:d.header){d=d==null?void 0:d.header;break a}}d=q&&Z.sidebarContent?Z.sidebarContent:
Z.content}return _.u("yt-page-header-renderer",{class:"page-header-renderer-wiz"},g$F(d,{pageHeaderViewModel:{noPadding:w,enableBanner:r,cinematicContainerTopbarOffset:Y,allowCinematicContainerOverflow:C,displayAsSidebar:q&&Z.enableSidebarView}}))},ZTV=function(q){return _.mu({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:q})},i3y=function(q){if(!_.Ik(document,"gtm-noscript")){var Z=document.createElement("noscript");
Z.id="gtm-noscript";Z.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+q+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(Z)}};_.yU(K0,_.VT);K0.prototype.JSC$7948_setLabel=function(q){K0.superClass_.JSC$7948_setLabel.call(this,q);return this};
K0.prototype.addUploadMetadata=function(q,Z){K0.superClass_.addUploadMetadata.call(this,q,Z);return this};var wCc=function(q){if(q!=="youtubebanner"&&q!=="youtube-channel-banner")throw Error("Tl");K0.call(this,q)};
_.z(wCc,K0);wCc.prototype.JSC$7948_setLabel=function(q){K0.prototype.JSC$7948_setLabel.call(this,q);return this};
wCc.prototype.addUploadMetadata=function(q,Z){K0.prototype.addUploadMetadata.call(this,q,Z);return this};var rbS=[_.SQ,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(q){_.os(q).path[0]!==this&&(this.resetLayout(),q.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var q=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.fj(this._layoutDebouncer,_.$c,q);_.D7(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var q=this;requestAnimationFrame(function(){q.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(q){this.resizerShouldNotify(q)&&this._notifyDescendant(q)},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 YR6=[_.gL1,{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(q,Z){var w=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[q];if(!w)throw new ReferenceError(this._getUndefinedMsg(q));q=this._boundEffect(w,Z||{});q.setUp();return q},
_effectsChanged:function(q,Z,w){this._tearDownEffects();q&&w&&(q.split(" ").forEach(function(r){var Y;r!==""&&((Y=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[r])?this._effects.push(this._boundEffect(Y,Z[r])):console.warn(this._getUndefinedMsg(r)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(q,Z){Z=Z||{};var w=parseFloat(Z.startsAt||0),r=parseFloat(Z.endsAt||1),Y=r-w,C=function(){};
r=w===0&&r===1?q.run:function(d,O){q.run.call(this,Math.max(0,(d-w)/Y),O)};
return{setUp:q.setUp?q.setUp.bind(this,Z):C,run:q.run?r.bind(this):C,tearDown:q.tearDown?q.tearDown.bind(this):C}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(q){q.setUp()!==!1&&this._effectsRunFn.push(q.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(q){q.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(q,Z){this._effectsRunFn&&this._effectsRunFn.forEach(function(w){w(q,Z)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var q=this._clampedScrollTop;this._updateScrollState(q);this.threshold>0&&this._setThresholdTriggered(q>=this.threshold)}},
_getDOMRef:function(q){console.warn("_getDOMRef","`"+q+"` is undefined")},
_getUndefinedMsg:function(q){return"Scroll effect `"+q+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+q+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Ul`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(q){var Z={};q=parseFloat(q.scalar);Z.background=this._getDOMRef("background");Z.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");Z.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");Z.deltaBg=Z.backgroundFrontLayer.offsetHeight-Z.background.offsetHeight;Z.deltaBg===0?(isNaN(q)&&(q=.8),Z.deltaBg=(this._dHeight||0)*q):(isNaN(q)&&(q=
1),Z.deltaBg*=q);this._fxParallaxBackground=Z},
run:function(q){var Z=this._fxParallaxBackground;this.transform("translate3d(0px, "+Z.deltaBg*Math.min(1,q)+"px, 0px)",Z.backgroundFrontLayer);Z.backgroundRearLayer&&this.transform("translate3d(0px, "+Z.deltaBg*Math.min(1,q)+"px, 0px)",Z.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var $Jc;var eCV;var CeV=function(){};
_.e=CeV.prototype;_.e._scrollTargetChanged=function(){};
_.e.scroll=function(){};
_.e._isValidScrollTarget=function(){};
_.e._toggleScrollListener=function(){};
_.e.toggleScrollListener=function(){};
_.e.createEffect=function(){};
_.e._effectsChanged=function(){};
_.e._layoutIfDirty=function(){};
_.e._boundEffect=function(){};
_.e._setUpEffect=function(){};
_.e._tearDownEffects=function(){};
_.e._runEffects=function(){};
_.e._scrollHandler=function(){};
_.e._scrollStateChanged=function(){};
_.e._getUndefinedMsg=function(){};
_.e.notifyResize=function(){};
_.e.assignParentResizable=function(){};
_.e.stopResizeNotificationsFor=function(){};
_.e._subscribeIronResize=function(){};
_.e._unsubscribeIronResize=function(){};
_.e.resizerShouldNotify=function(){};
_.e._onDescendantIronResize=function(){};
_.e._fireResize=function(){};
_.e._onIronRequestResizeNotifications=function(){};
_.e._parentResizableChanged=function(){};
_.e._notifyDescendant=function(){};
_.e._requestResizeNotifications=function(){};
_.e._findParent=function(){};
_.e._appResetLayoutHandler=function(){};
_.e.resetLayout=function(){};
_.e._notifyLayoutChanged=function(){};
_.e._notifyDescendantResize=function(){};
_.e._setThresholdTriggered=function(){};
CeV=_.$l({_template:function(){if(eCV!==void 0)return eCV;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;$Jc===void 0&&($Jc=document.createElement("template"));var r=$Jc;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return eCV=q},
is:"tp-yt-app-header",behaviors:[YR6,rbS],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 q=_.os(this.$.slot).getDistributedNodes(),Z=0,w;w=q[Z];Z++)if(w.nodeType===Node.ELEMENT_NODE)if(w.hasAttribute("sticky")){this._stickyElRef=w;break}else this._stickyElRef||(this._stickyElRef=w);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var q=this._clampedScrollTop,Z=this._height===0||q===0,w=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;Z||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();Z?this._updateScrollState(q,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=w}},
_updateScrollState:function(q,Z){if(this._height!==0){var w=0,r=this._top;var Y=this._maxHeaderTop;var C=q-this._lastScrollTop,d=Math.abs(C),O=q>this._lastScrollTop,H=performance.now();this._mayMove()&&(w=this._clamp(this.reveals?r+C:q,0,Y));q>=this._dHeight&&(w=this.condenses&&!this.fixed?Math.max(this._dHeight,w):w,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&d<100){if(H-this._initTimestamp>300||this._wasScrollingDown!==O)this._initScrollTop=q,this._initTimestamp=H;q>=Y&&
(Math.abs(this._initScrollTop-q)>30||d>10?(O&&q>=Y?w=Y:!O&&q>=this._dHeight&&(w=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((w-r)/(C/(H-this._lastTimestamp)),0,300)+"ms"):w=this._top)}Y=this._dHeight===0?q>0?1:0:w/this._dHeight;Z||(this._lastScrollTop=q,this._top=w,this._wasScrollingDown=O,this._lastTimestamp=H);if(Z||Y!==this._progress||r!==w||q===0)this._progress=Y,this._runEffects(Y,w),this._transformHeader(w)}},
_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(q){this.translate3d(0,-q+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&q>=this._stickyElTop?Math.min(q,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(q,Z,w){return Math.min(w,Math.max(Z,q))},
_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),_.os(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(q){switch(q){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.os(this).querySelector("[main-title]");case "condensedTitle":return _.os(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var PeZ;var dJV;_.$l({_template:function(){if(dJV!==void 0)return dJV;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;PeZ===void 0&&(PeZ=document.createElement("template"));var r=PeZ;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return dJV=q},
is:"tp-yt-app-header-layout",behaviors:[rbS],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.os(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var q=this.header;if(this.isAttached&&q){this.$.wrapper.classList.remove("initializing");q.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)q.style.left=
"",q.style.right="";else{var Z=this.getBoundingClientRect(),w=document.documentElement.clientWidth-Z.right;q.style.left=Z.left+"px";q.style.right=w+"px"}Z=this.$.contentContainer.style;w=q.offsetHeight;q.fixed&&!q.condenses&&this.hasScrollingRegion?(Z.marginTop=w+"px",Z.paddingTop=""):(Z.paddingTop=w+"px",Z.marginTop="")}}});var VUF=new _.D("replaceFeedContentAction");var OTu=new _.D("alertCommand");var HTy=new _.D("manageLabsStateCommand");var WoD=new _.D("channelBannerEditorRenderer");var oW8=new _.D("inlineFormRenderer");var uCF=new _.D("playlistSidebarPrimaryInfoRenderer");var LoF=new _.D("productDetailsThumbnailRenderer"),SRl=new _.D("productDetailsVariantRenderer"),vWl=new _.D("productDetailsVariantOptionRenderer"),jb8=new _.D("productDetailsOffersContainerRenderer"),tUD=new _.D("productDetailsOfferRenderer");var RCV=new _.D("shoppingFlaggingRenderer");var bT6=new _.D("playlistBylineRenderer");var JbC=new _.D("insertChannelTabCommand");var zC6=function(){return _.y5.apply(this,arguments)||this};
_.z(zC6,_.y5);_.e=zC6.prototype;_.e.activeChanged=function(){if(this.active){var q=_.E(this.hostElement).querySelector("#header");q&&_.hy(q,"iron-resize");window.addEventListener("scroll",_.XN(this,this.onScroll))}else window.removeEventListener("scroll",_.XN(this,this.onScroll)),_.hy(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.e.guideVisibleChanged=function(){var q=_.E(this.hostElement).querySelector("#header");q&&_.hy(q,"iron-resize")};
_.e.onScroll=function(){var q=this;_.vp(this,"onScroll",function(){var Z=_.E(q.hostElement).querySelector("#header");Z&&Z.polymerController&&(Z=Z.polymerController.getScrollState().progress===1?"standard":"seamed",_.hy(q.hostElement,"yt-request-panel-mode-change",{mode:Z}))},10)};
_.e.tabsChanged=function(){if(this.tabs){for(var q=null,Z=0,w=this.tabs.length;Z<w;++Z){var r=this.tabs[Z].tabRenderer;if(r&&r.selected){q=Z;break}}this.selected=q}};
_.e.onTabsActivate=function(q){_.hy(this.hostElement,"yt-navigate",{endpoint:this.tabs[q.detail.selected].tabRenderer.endpoint})};
var sS=zC6;sS.prototype.tabsChanged=sS.prototype.tabsChanged;sS.prototype.guideVisibleChanged=sS.prototype.guideVisibleChanged;sS.prototype.activeChanged=sS.prototype.activeChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],sS.prototype,"ytdGuideStateAwareBehavior",void 0);_.X([_.F(),_.A("design:type",Array)],sS.prototype,"tabs",void 0);
_.X([_.F(),_.A("design:type",Object)],sS.prototype,"selected",void 0);_.X([_.F(),_.A("design:type",Boolean)],sS.prototype,"active",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],sS.prototype,"disableHeaderFluidWidth",void 0);_.X([_.M("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sS.prototype,"activeChanged",null);
_.X([_.M("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sS.prototype,"guideVisibleChanged",null);_.X([_.M("tabs"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sS.prototype,"tabsChanged",null);sS=_.X([_.iq()],sS);var BLy=[_.y.YtRendererBehavior,_.J_.YtdGuideStateAwareBehavior,sS.prototype];var atl=2/3,nW8=_.C6(130749),Qb6=function(q,Z){var w=this;this.element=q;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){w.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:atl,moveAction:function(r){w.moveAction(r)},
triggerAction:function(){w.element.isReloading=!0;_.Rk(_.iy(),{visualElement:nW8});_.AJ.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:w.element}})}}}};
_.fH(_.iy(),nW8,this.layer);this.gesture=new _.Rj(q,Z,this.refreshConfig,"pan-down");this.attach()};
_.e=Qb6.prototype;_.e.attach=function(){this.gesture.attach()};
_.e.detach=function(){this.gesture.detach()};
_.e.reset=function(){this.element.close()};
_.e.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.e.moveAction=function(q){this.element.rotation=q*360};var EWy=_.C6(130750),Ij=function(q,Z,w,r,Y){var C=this;this.element=q;this.parent=w;this.channelHeader=r;this.ytdReduxDispatch=Y;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){C.tabsStartAtInPx=C.channelHeader.clientHeight-48;var d;(d=C.selectedTab)!=null&&d.title&&(d=_.t().resolve(_.Gj(_.U1)))&&(d=d.getCurrentPage(),C.lastVisitedTabScrollPosition=d.getScrollTop(),C.previousTab&&
((C.lastVisitedTabScrollPosition===void 0?0:C.lastVisitedTabScrollPosition<C.channelHeader.clientHeight-48)?C.scrollPositionForTabs.has(C.selectedTab.title)&&C.scrollPositionForTabs.delete(C.selectedTab.title):C.scrollPositionForTabs.set(C.selectedTab.title,d.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:xJu(),triggerAction:function(){C.navigate(C.previousTab)},
moveAction:function(d,O){C.moveAction(d,O)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-xJu(),triggerAction:function(){C.navigate(C.nextTab)},
moveAction:function(d,O){C.moveAction(d,O)}}}};
_.fH(_.iy(),EWy,this.layer);this.gesture=new _.Rj(q,Z,this.tabConfig);this.attach()};
Ij.prototype.attach=function(){this.gesture.attach()};
Ij.prototype.detach=function(){this.gesture.detach()};
Ij.prototype.tabsChanged=function(q){if(q){var Z=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;q=_.P(q);for(var w=q.next();!w.done;w=q.next()){w=w.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=w);var r=void 0;if((r=w)==null?0:r.selected)this.previousTab=Z,this.selectedTab=w;Z=w}Z=this.gesture;q=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}});
Z.config=q;this.scrollPositionNeedsUpdate=!0}};
Ij.prototype.moveAction=function(q,Z){if(!this.tabsElement){var w;this.tabsElement=(w=this.parent.header)==null?void 0:w.tabsElement;Z==="right"&&this.previousTab?_.F82(_.mM.instance,this.previousTab.endpoint,{},""):Z==="left"&&this.nextTab&&_.F82(_.mM.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}w=this.tabsElement._pos;Z==="right"&&(q*=-1);this.tabsElement._positionBar(w.width,w.left*1+w.width*q)};
var xJu=function(){var q,Z;return(Z=(q=_.t().resolve(_.U1).getCurrentPage())==null?void 0:q.clientWidth)!=null?Z:0};
Ij.prototype.navigate=function(q){this.element.data=void 0;if(q=q==null?void 0:q.endpoint)this.ytdReduxDispatch(ZTV(!0)),_.Rk(_.iy(),{visualElement:EWy}),_.AJ.instance.resolveCommand({navigateAction:{endpoint:q}},{form:{element:this.element}})};var TL6;var UJS;var kQ6=function(){return _.N.apply(this,arguments)||this};
_.z(kQ6,_.N);kQ6.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var cf=kQ6;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],cf.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],cf.prototype,"data",void 0);cf=_.X([_.l({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],cf);
_.p(cf,"ytd-labs-edit-renderer",function(){if(UJS!==void 0)return UJS;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return UJS=q},{mode:1});var KoV;var MP=function(){var q=_.N.apply(this,arguments)||this;q.dark=!1;q.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";q.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.z(MP,_.N);MP.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
MP.prototype.ready=function(){var q=document.documentElement.hasAttribute("dark");this.setBackgroundImage(q);this.dark=q};
MP.prototype.onDarkModeToggledAction=function(q){this.setBackgroundImage(q);this.dark=q};
MP.prototype.setBackgroundImage=function(q){_.po(this.hostElement,{"--yt-labs-header-background":"url("+(q?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
var FT=MP;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],FT.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],FT.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],FT.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],FT.prototype,"dark",void 0);
FT=_.X([_.l({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],FT);
_.p(FT,"ytd-labs-header-renderer",function(){if(KoV!==void 0)return KoV;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return KoV=q},{mode:1});var sbb;var NP=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return q};
_.z(NP,_.N);NP.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"}}}}}};
NP.prototype.onYtToggleButton=function(q){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",q.detail.toggled)};
NP.prototype.onManageLabsState=function(q){if(q=_.J(q,HTy))q.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?q.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&q.labsItemId===this.data.labsItemId&&(q.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.yY(this.hostElement,"yt-check-labs-opted-in-state").some(function(Z){return Z})&&this.data.confirmationDialogCommand?_.ZC(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.t().resolve(_.ps).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&q.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.t().resolve(_.ps).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
NP.prototype.onCheckLabsOptedInState=function(){var q=this.get("data.primaryButton.toggleButtonRenderer");return q?q.isToggled:!1};
_.My.Object.defineProperties(NP.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
var lf=NP;lf.prototype.onYtToggleButton=lf.prototype.onYtToggleButton;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],lf.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],lf.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],lf.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],lf.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],lf.prototype,"itemStyle",null);_.X([_.m2("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],lf.prototype,"onYtToggleButton",null);lf=_.X([_.l({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],lf);
_.p(lf,"ytd-labs-item-renderer",function(){if(sbb!==void 0)return sbb;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return sbb=q},{mode:1});var ItS;var cby;var MUS=function(){return _.N.apply(this,arguments)||this};
_.z(MUS,_.N);var FoC=MUS;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],FoC.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],FoC.prototype,"data",void 0);FoC=_.X([_.l({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],FoC);
_.p(FoC,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(cby!==void 0)return cby;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return cby=q},{mode:1});var NLl;var ltu=function(){return _.N.apply(this,arguments)||this};
_.z(ltu,_.N);ltu.prototype.observeSuperchatChip=function(){if(this.data){var q={"--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)};_.po(this.hostElement,q)}};
ltu.prototype.colorFromDecimal=function(q){return _.uq(Number(q||0))};
var G8=ltu;G8.prototype.observeSuperchatChip=G8.prototype.observeSuperchatChip;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],G8.prototype,"data",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],G8.prototype,"observeSuperchatChip",null);G8=_.X([_.l({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],G8);
_.p(G8,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(NLl!==void 0)return NLl;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return NLl=q},{mode:1});var GQu=function(){return _.N.apply(this,arguments)||this};
_.z(GQu,_.N);GQu.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"}}}};
_.My.Object.defineProperties(GQu.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
var p0=GQu;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],p0.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.vj),_.A("design:type",Object)],p0.prototype,"ytdDismissibleItemBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],p0.prototype,"data",void 0);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],p0.prototype,"hideMessageBlock",null);
p0=_.X([_.l({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],p0);
_.p(p0,"ytd-live-chat-history-entry-renderer",function(){if(ItS!==void 0)return ItS;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ItS=q},{mode:1});var pCu;var XCF=function(){return _.N.apply(this,arguments)||this};
_.z(XCF,_.N);var mJu=XCF;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],mJu.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],mJu.prototype,"data",void 0);mJu=_.X([_.l({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],mJu);
_.p(mJu,"ytd-channel-options-renderer",function(){if(pCu!==void 0)return pCu;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return pCu=q},{mode:1});var AbF;var fty=function(){return _.N.apply(this,arguments)||this};
_.z(fty,_.N);fty.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
var XT=fty;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],XT.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],XT.prototype,"data",void 0);XT=_.X([_.l({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],XT);
_.p(XT,"ytd-settings-email-item-renderer",function(){if(AbF!==void 0)return AbF;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return AbF=q},{mode:1});var DJ6;var mf=function(){return _.N.apply(this,arguments)||this};
_.z(mf,_.N);mf.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"}}}};
mf.prototype.getExpansionIcon=function(q){return q?"arrow_drop_up":"arrow_drop_down"};
mf.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.My.Object.defineProperties(mf.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
var Ak=mf;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ak.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ak.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ak.prototype,"data",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Ak.prototype,"expanded",void 0);
_.X([_.I("expanded"),_.A("design:type",String),_.A("design:paramtypes",[])],Ak.prototype,"emailListExpanded",null);_.X([_.fo("#options"),_.A("design:type",Object)],Ak.prototype,"options",void 0);Ak=_.X([_.l({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Ak);
_.p(Ak,"ytd-settings-email-list-renderer",function(){if(DJ6!==void 0)return DJ6;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return DJ6=q},{mode:1});var hCC;var yb6=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return q};
_.z(yb6,_.N);yb6.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"}}}};
yb6.prototype.handleSignalActionSubmitForm=function(){var q,Z=(q=this.formRenderer)==null?void 0:q.getForm();Z&&this.data.serviceEndpoint&&_.t().resolve(_.ps).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},Z,{element:this.hostElement})})};
var f0=yb6;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],f0.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],f0.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],f0.prototype,"data",void 0);_.X([_.fo("yt-form-renderer"),_.A("design:type",Object)],f0.prototype,"formRenderer",void 0);
f0=_.X([_.l({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],f0);
_.p(f0,"ytd-settings-gaia-link-renderer",function(){if(hCC!==void 0)return hCC;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return hCC=q},{mode:1});var iTC;var Ds=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return q};
_.z(Ds,_.N);Ds.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.BJl()&&this.set("data.hidden",!1)};
Ds.prototype.onSwitchReady=function(){var q=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.b("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.zPV().then(function(Z){Z&&(Notification.permission==="default"?q.set("data.hidden",!1):Notification.permission==="granted"&&_.II("NotificationsDisabled").then(function(w){w||_.yY(q.hostElement,"yt-toggle-settings-switch",[q.data.id,!w]);q.set("data.hidden",!1)}).catch(function(){}))})})};
Ds.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}}}}};
Ds.prototype.handleUpdateOptionsCommand=function(q){(q=_.J(q,_.EX7))&&this.data&&this.data.id===q.id&&(this.set("data.hidden",q.hidden),q.text!==void 0&&this.set("data.text",q.text),q.clearOptions&&this.set("data.options",[]))};
var hk=Ds;hk.prototype.onSwitchReady=hk.prototype.onSwitchReady;hk.prototype.dataChanged=hk.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],hk.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],hk.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],hk.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],hk.prototype,"data",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hk.prototype,"dataChanged",null);_.X([_.m2("yt-settings-switch-ready"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hk.prototype,"onSwitchReady",null);hk=_.X([_.l({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],hk);
_.p(hk,"ytd-settings-options-renderer",function(){if(iTC!==void 0)return iTC;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return iTC=q},{mode:1});var gWl;var qwl=function(){return _.N.apply(this,arguments)||this};
_.z(qwl,_.N);qwl.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
qwl.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
var yX=qwl;yX.prototype.onYtExpanderMoreTapped=yX.prototype.onYtExpanderMoreTapped;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],yX.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],yX.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],yX.prototype,"data",void 0);
_.X([_.m2("yt-expander-more-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yX.prototype,"onYtExpanderMoreTapped",null);yX=_.X([_.l({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],yX);
_.p(yX,"ytd-product-details-description-renderer",function(){if(gWl!==void 0)return gWl;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return gWl=q},{mode:1});var ZmD;var wlZ=function(){var q=_.N.apply(this,arguments)||this;q.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";q.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";q.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";q.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return q};
_.z(wlZ,_.N);wlZ.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.My.Object.defineProperties(wlZ.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.data)==null?void 0:(Z=q.offerData)==null?void 0:Z.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.data)==null?void 0:q.purchaseButtonRenderers)!==void 0&&((Z=this.data)==null?void 0:Z.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!((q=this.data)==null||!q.formattedFromMerchantText)&&(!((Z=this.data)==null||!Z.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
var gh=wlZ;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],gh.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],gh.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],gh.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],gh.prototype,"data",void 0);
_.X([_.F({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0}),_.A("design:type",Object)],gh.prototype,"shippingIcon",void 0);_.X([_.F({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0}),_.A("design:type",Object)],gh.prototype,"shippingAddressIcon",void 0);_.X([_.F({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0}),_.A("design:type",Object)],gh.prototype,"googleGuaranteeIcon",void 0);
_.X([_.F({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0}),_.A("design:type",Object)],gh.prototype,"returnPolicyIcon",void 0);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],gh.prototype,"showAdditionalFees",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],gh.prototype,"showMultiPurchaseButtons",null);
_.X([_.I("data","showMultiPurchaseButtons"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],gh.prototype,"showPurchaseData",null);gh=_.X([_.l({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],gh);
_.p(gh,"ytd-product-details-hero-offer-renderer",function(){if(ZmD!==void 0)return ZmD;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ZmD=q},{mode:1});var rG8;var YwS;var $_Z=function(){return _.N.apply(this,arguments)||this};
_.z($_Z,_.N);_.e=$_Z.prototype;_.e.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.e.onKeyDown=function(q){q=q.keyCode;q!==13&&q!==32||this.handleSelection()};
_.e.onMouseEnterImage=function(){var q;((q=this.data)==null?void 0:q.thumbnailDetails)!==void 0&&_.i5(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.e.onMouseLeaveImage=function(){_.i5(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.e.handleSelection=function(){this.data&&_.hy(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.My.Object.defineProperties($_Z.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.isSelected)}}});
var qa=$_Z;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],qa.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],qa.prototype,"data",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],qa.prototype,"isSelected",null);qa=_.X([_.l({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],qa);
_.p(qa,"ytd-product-details-thumbnail-renderer",function(){if(YwS!==void 0)return YwS;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return YwS=q},{mode:1});var e9l=function(){var q=_.N.apply(this,arguments)||this;var Z={};q.actionMap=(Z["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",Z["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",Z);q.selectedThumbnailIndex=0;q.selectItem=function(w){w.target.onKeyDown(w)};
return q};
_.z(e9l,_.N);_.e=e9l.prototype;_.e.handlePreviewImageSelect=function(q){this.hoverThumbnail=q};
_.e.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.e.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.e.onThumbnailSelected=function(q,Z){this.selectedThumbnailIndex=Z};
_.e.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.e.updateOffset=function(){var q=_.E(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-q));this.ytdHorizontalListBehavior.reposition_()};
_.My.Object.defineProperties(e9l.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null?0:q.imageRenderer){var Z,w;return((Z=this.data)==null?void 0:(w=Z.imageRenderer)==null?void 0:w.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var q;if((q=this.data)==null?0:q.imageRenderer){var Z;return(Z=_.J(this.data.imageRenderer[this.selectedThumbnailIndex],LoF))==null?void 0:Z.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var q=this,Z,w,r,Y=(r=(Z=this.data)==null?void 0:(w=Z.imageRenderer)==null?void 0:w.map(function(C,d){return{productDetailsThumbnailRenderer:Object.assign({},_.J(C,LoF),{index:d,isSelected:d===q.selectedThumbnailIndex})}}))!=null?r:[];
return Object.assign({},this.data,{imageRenderer:Y})}}});
var ZY=e9l;ZY.prototype.updateOffset=ZY.prototype.updateOffset;ZY.prototype.dataChanged=ZY.prototype.dataChanged;ZY.prototype.onThumbnailSelected=ZY.prototype.onThumbnailSelected;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ZY.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ZY.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.Mt.YtdHorizontalListBehavior),_.A("design:type",Object)],ZY.prototype,"ytdHorizontalListBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],ZY.prototype,"componentBehavior",void 0);_.X([_.U([_.KK.YtActionHandlerBehavior]),_.A("design:type",Object)],ZY.prototype,"actionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ZY.prototype,"data",void 0);_.X([_.F({value:"$.items.children"}),_.A("design:type",String)],ZY.prototype,"itemsPath",void 0);
_.X([_.F({value:3}),_.A("design:type",Number)],ZY.prototype,"initialCount",void 0);_.X([_.fo("#items"),_.A("design:type",Object)],ZY.prototype,"items",void 0);_.X([_.F(),_.A("design:type",Object)],ZY.prototype,"selectedThumbnailIndex",void 0);_.X([_.F(),_.A("design:type",Object)],ZY.prototype,"hoverThumbnail",void 0);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ZY.prototype,"showThumbnails",null);
_.X([_.m2("ytd-product-details-thumbnail-renderer-selected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Number]),_.A("design:returntype")],ZY.prototype,"onThumbnailSelected",null);_.X([_.I("data","selectedThumbnailIndex","hoverThumbnail"),_.A("design:type",Object),_.A("design:paramtypes",[])],ZY.prototype,"thumbnailDetails",null);_.X([_.I("data","selectedThumbnailIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],ZY.prototype,"populatedData",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZY.prototype,"dataChanged",null);_.X([_.m2("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZY.prototype,"updateOffset",null);ZY=_.X([_.l({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],ZY);
_.p(ZY,"ytd-product-details-image-carousel-renderer",function(){if(rG8!==void 0)return rG8;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return rG8=q},{mode:_.NT("kevlar_poly_si_batch_j079")?1:2});var Cd7;var Pdy=function(){return _.N.apply(this,arguments)||this};
_.z(Pdy,_.N);var wG=Pdy;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],wG.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],wG.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],wG.prototype,"data",void 0);wG=_.X([_.l({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],wG);
_.p(wG,"ytd-product-details-offer-renderer",function(){if(Cd7!==void 0)return Cd7;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Cd7=q},{mode:1});var d_Z;var V0V=function(){var q=_.N.apply(this,arguments)||this;q.isOffersHidden=!0;return q};
_.z(V0V,_.N);V0V.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var q,Z=_.J((q=this.data)==null?void 0:q.viewOffersButton,_.tA);Z&&this.ytRendererBehavior.logExplicitClick(Z)};
V0V.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.My.Object.defineProperties(V0V.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r;return(w=_.J((q=this.data)==null?void 0:(Z=q.offers)==null?void 0:Z[0],tUD))==null?void 0:(r=w.offerData)==null?void 0:r.vendorLogoUrl}}});
var rG=V0V;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],rG.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],rG.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],rG.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],rG.prototype,"isOffersHidden",void 0);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],rG.prototype,"firstOfferVendorLogoUrl",null);rG=_.X([_.l({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],rG);
_.p(rG,"ytd-product-details-offers-container-renderer",function(){if(d_Z!==void 0)return d_Z;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return d_Z=q},{mode:1});var Om8;var HmF;var Y$=function(){return _.N.apply(this,arguments)||this};
_.z(Y$,_.N);Y$.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Y$.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.i5(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Y$.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.i5(this,"ytd-product-details-variant-image-unselect")};
_.My.Object.defineProperties(Y$.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 q;return((q=this.data)==null?void 0:q.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return((q=this.data)==null?void 0:q.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((Z=this.data)==null?void 0:Z.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((w=this.data)==null?void 0:w.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var q;if(((q=this.data)==null?void 0:q.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var q,Z;return this.isUnavailable?(q=this.data)==null?void 0:q.variantOptionUnavailableAccessibilityLabel:(Z=this.data)==null?void 0:Z.variantOptionAccessibilityLabel}}});
var $$=Y$;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],$$.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],$$.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],$$.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],$$.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],$$.prototype,"displayType",void 0);
_.X([_.I("displayType","data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],$$.prototype,"isImageButton",null);_.X([_.I("displayType","data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],$$.prototype,"isPillButton",null);_.X([_.I("data"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],$$.prototype,"isActive",null);
_.X([_.I("data"),_.F({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],$$.prototype,"isUnavailable",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],$$.prototype,"thumbnailDetails",null);_.X([_.I("isUnavailable","data"),_.A("design:type",Object),_.A("design:paramtypes",[])],$$.prototype,"accessibilityLabel",null);$$=_.X([_.l({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],$$);
_.p($$,"ytd-product-details-variant-option-renderer",function(){if(HmF!==void 0)return HmF;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return HmF=q},{mode:1});var WLb;var oU7=function(){var q=_.N.apply(this,arguments)||this;q.variantsExpanded=!1;q.hideShowMoreLessVariantButton=!0;q.initialized=!1;q.computeVariantsDebouncer=null;q.computeVariants=function(Z){Z=Z===void 0?!1:Z;q.variantsExpanded||q.showOptions()||!Z||(q.variantsExpanded=!0);if(q.variantsExpanded){Z=_.P(q.items.children);for(var w=Z.next();!w.done;w=Z.next())w.value.hidden=!1}q.initialized=!0};
return q};
_.z(oU7,_.N);_.e=oU7.prototype;_.e.ready=function(){var q=this;setTimeout(function(){q.computeVariants(!0)})};
_.e.showOptions=function(){for(var q=_.P(this.items.children),Z=q.next();!Z.done;Z=q.next())Z.value.hidden=!0;var w=this.container.getBoundingClientRect().width,r=0,Y=q=0;Z=!1;for(var C=_.P(this.items.children),d=C.next();!d.done;d=C.next()){d=d.value;d.hidden=!1;var O=d.getBoundingClientRect().width;if(r+O<w)r+=O;else if(++Y<2)r=O;else break;q+=1;d.hasAttribute("is-active")&&(Z=!0)}for(w=q;w<this.items.children.length;w++)this.items.children[w].hidden=!0;this.hideShowMoreLessVariantButton=q===this.items.children.length;
return Z};
_.e.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.fj(this.computeVariantsDebouncer,_.Kj.after(100),this.computeVariants)};
_.e.onShowMoreLessVariantsButtonClick=function(){var q;(q=this.data)!=null&&q.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.e.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.My.Object.defineProperties(oU7.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var q,Z,w=(q=this.data)==null?void 0:(Z=q.variantOptionRenderers)==null?void 0:Z.find(function(C){return _.J(C,vWl).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),r,Y;
return(Y=(r=_.J(w,vWl))==null?void 0:r.name)!=null?Y:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.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"}}}});
var eu=oU7;eu.prototype.debouncedComputeVariants=eu.prototype.debouncedComputeVariants;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],eu.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],eu.prototype,"componentBehavior",void 0);_.X([_.U(_.SQ),_.A("design:type",Object)],eu.prototype,"ironResizableBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],eu.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],eu.prototype,"variantsExpanded",void 0);_.X([_.F(),_.A("design:type",Object)],eu.prototype,"hideShowMoreLessVariantButton",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],eu.prototype,"initialized",void 0);_.X([_.fo("#items"),_.A("design:type",HTMLDivElement)],eu.prototype,"items",void 0);_.X([_.fo("#container"),_.A("design:type",HTMLDivElement)],eu.prototype,"container",void 0);
_.X([_.fo("#more-variants-button"),_.A("design:type",HTMLElement)],eu.prototype,"moreVariantsButton",void 0);_.X([_.I("data"),_.A("design:type",String),_.A("design:paramtypes",[])],eu.prototype,"selectedOptionName",null);_.X([_.M("data","variantsExpanded"),_.m2("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eu.prototype,"debouncedComputeVariants",null);
_.X([_.I("data"),_.A("design:type",String),_.A("design:paramtypes",[])],eu.prototype,"displayType",null);_.X([_.I("displayType"),_.A("design:type",Object),_.A("design:paramtypes",[])],eu.prototype,"variantItemsClassname",null);eu=_.X([_.l({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],eu);
_.p(eu,"ytd-product-details-variant-renderer",function(){if(WLb!==void 0)return WLb;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return WLb=q},{mode:1});var uUS=function(){return _.N.apply(this,arguments)||this};
_.z(uUS,_.N);
uUS.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"}}}};
_.My.Object.defineProperties(uUS.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var q,Z,w=(Z=_.J((q=this.data)==null?void 0:q.offersContainerRenderer,jb8))==null?void 0:Z.offers;return w!==void 0&&(w==null?void 0:w.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 q,Z,w;return((w=(q=this.data)==null?void 0:(Z=q.variants)==null?void 0:Z.map(function(r){var Y,C;r=(C=(Y=_.J(r,SRl))==null?void 0:Y.variantOptionRenderers)==null?void 0:C.find(function(O){var H;return((H=_.J(O,vWl))==null?void 0:H.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var d;return(d=_.J(r,vWl))==null?void 0:d.name}).filter(function(r){return typeof r==="string"}))!=null?w:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r=(Z=_.J((q=this.data)==null?void 0:q.shoppingFlaggingRenderer,RCV))==null?void 0:(w=Z.reportButton)==null?void 0:w.buttonRenderer;if(r)return{text:r.text,command:r.command,icon:{iconType:"FLAG"},accessibilityData:r.accessibilityData,trackingParams:r.trackingParams,loggingDirectives:r.loggingDirectives}}}});
var C3=uUS;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],C3.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],C3.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],C3.prototype,"data",void 0);
_.X([_.fo("#image-carousel-renderer"),_.A("design:type",Object)],C3.prototype,"imageCarouselRenderer",void 0);_.X([_.fo("#hero-offer-renderer"),_.A("design:type",Object)],C3.prototype,"productDetailsHeroOfferRenderer",void 0);_.X([_.fo("#variants"),_.A("design:type",Object)],C3.prototype,"productDetailsVariantRenderer",void 0);_.X([_.fo("#offers"),_.A("design:type",Object)],C3.prototype,"productDetailsOffersContainerRenderer",void 0);
_.X([_.fo("#description-renderer"),_.A("design:type",Object)],C3.prototype,"productDetailsDescriptionRenderer",void 0);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],C3.prototype,"showPurchaseData",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],C3.prototype,"showHeroOfferRenderer",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],C3.prototype,"showBrandText",null);
_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],C3.prototype,"showOffers",null);_.X([_.I("showOffers","showPurchaseData"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],C3.prototype,"showBuySeparator",null);_.X([_.I("showOffers","showPurchaseData"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],C3.prototype,"showBuyCard",null);_.X([_.I("data"),_.A("design:type",String),_.A("design:paramtypes",[])],C3.prototype,"selectedVariantsText",null);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],C3.prototype,"shoppingReportingButtonData",null);C3=_.X([_.l({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],C3);
_.p(C3,"ytd-product-details-renderer",function(){if(Om8!==void 0)return Om8;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Om8=q},{mode:1});var LL8;var SwD;var vUl;var joc=function(){return _.N.apply(this,arguments)||this};
_.z(joc,_.N);joc.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.My.Object.defineProperties(joc.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
var PU=joc;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],PU.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],PU.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],PU.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],PU.prototype,"formattedAmount",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],PU.prototype,"ariaLabel",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("data.style"),_.A("design:type",String),_.A("design:paramtypes",[])],PU.prototype,"vcBalanceWidgetStyle",null);PU=_.X([_.dx({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],PU);
_.p(PU,"yt-vc-balance-renderer",function(){if(vUl===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;SwD===void 0&&(SwD=document.createElement("template"));var r=SwD;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);vUl=q}q=vUl;return q},{mode:2});_.He("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var t0F=function(){return _.N.apply(this,arguments)||this};
_.z(t0F,_.N);_.My.Object.defineProperties(t0F.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:""}}});
var dG=t0F;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],dG.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],dG.prototype,"data",void 0);_.X([_.F({selectorArgs:["data.vcBalanceEntityKey"],selector:function(q,Z){return _.iI(q.entities,"vcBalanceEntity",Z)}}),
_.A("design:type",Object)],dG.prototype,"vcBalanceEntity",void 0);_.X([_.I("vcBalanceEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],dG.prototype,"formattedAmount",null);_.X([_.I("vcBalanceEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],dG.prototype,"vcBalanceAriaLabel",null);dG=_.X([_.l({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],dG);
_.p(dG,"ytd-vc-balance-renderer",function(){if(LL8!==void 0)return LL8;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return LL8=q},{mode:1});var R9l;var bmD=function(){var q=_.N.apply(this,arguments)||this;q.rotation=0;q.isReloading=!1;return q};
_.z(bmD,_.N);bmD.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
bmD.prototype.reset=function(){this.hostElement.style.opacity=""};
bmD.prototype.close=function(){var q=this;return _.V(function(Z){if(Z.nextAddress==1)return _.W(Z,q.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);q.hostElement.style.opacity="0";_.ub(Z)})};
var Vz=bmD;Vz.prototype.rotationChanged=Vz.prototype.rotationChanged;_.X([_.F(),_.A("design:type",Object)],Vz.prototype,"rotation",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Vz.prototype,"isReloading",void 0);_.X([_.fo("#icon"),_.A("design:type",HTMLElement)],Vz.prototype,"icon",void 0);_.X([_.M("rotation"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vz.prototype,"rotationChanged",null);
Vz=_.X([_.l({disableElementRegistration:!0,is:"ytd-refresh"})],Vz);
_.p(Vz,"ytd-refresh",function(){if(R9l!==void 0)return R9l;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return R9l=q},{mode:1});var JGC;var z9D;var BCl=function(q,Z,w,r,Y,C,d,O){this.minWidth=q;this.minHeight=Z;this.recommendedWidth=w;this.recommendedHeight=r;this.JSC$19213_maxFileSize=Y;this.title=C;this.bannerGalleryTitle=d;this.channelId=O;this.picker_=null;q=_.Tmz("yt-banner");Z=q.addView;w=(new wCc("youtubebanner")).addUploadMetadata("silo_id","19");w.opts.ytMaxFileSize=this.JSC$19213_maxFileSize;r=this.recommendedHeight;w.opts.ytRecWidth=this.recommendedWidth;w.opts.ytRecHeight=r;Z.call(q,w);q.addView(new _.WW);Z=q.addView;w=new _.WW;
w.opts.type="ytbanner";Z.call(q,w.JSC$7948_setLabel(this.bannerGalleryTitle));Z=q.setTitle(this.title).setSize(1E3);Z.urlParamMap_.set("thumbs","orig");w=this.minWidth;r=this.minHeight;if(isNaN(w)||isNaN(r))throw Error("kb`"+w+"`"+r);Z.urlParamMap_.set("minSize",w+"x"+r);Z.urlParamMap_.set("cropMode","ytcb");this.builder_=q};
BCl.prototype.open=function(){var q=this;return new _.r5(function(Z,w){_.ZBD(q.builder_,function(r){r.action=="picked"?Z(r):r.action=="cancel"&&w(Error("Vl"))});
q.picker_&&q.picker_.dispose();q.picker_=q.builder_.build();q.picker_.setVisible(!0)})};
BCl.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var aPc=function(q){this.channelId=q},nU6=function(q,Z){var w="";
Z.viewToken&&(w=Z.viewToken[2].type);var r=Z.docs[0];Z=r.crop;q={channel_id:q.channelId,fife_url:r.thumbnails[0].url,photo_id:r.id,is_gallery_image:w=="ytbanner"};Z&&(q.crop_top=Z.top,q.crop_right=Z.right,q.crop_bottom=Z.bottom,q.crop_left=Z.left);return _.Ye2("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:q})};var QoZ=function(){var q=_.N.apply(this,arguments)||this;q.ariaLabel=null;return q};
_.z(QoZ,_.N);_.e=QoZ.prototype;_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.e.detached=function(){this.picker&&this.picker.dispose()};
_.e.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.e.computeAriaLabel=function(q){return q};
_.e.onTap=function(){var q=this,Z;if((Z=this.data)==null||!Z.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new BCl(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 w;(w=this.picker)==null||w.open().then(function(r){q.handleBannerPicked(r)},function(){})}};
_.e.handleBannerPicked=function(q){var Z=this;this.uploader||(this.uploader=new aPc(this.data.channelId||""));this.message=this.data.uploadingText;nU6(this.uploader,q).then(function(w){Z.handleBannerUploadSucceeded(w)},function(w){Z.handleBannerUploadFailed(w)})};
_.e.handleBannerUploadSucceeded=function(q){q&&q.errors?this.handleBannerUploadFailed(q):(_.hy(this.hostElement,"yt-banner-updated",q),this.message=null)};
_.e.handleBannerUploadFailed=function(q){this.message=q&&q.errors&&q.errors.length?q.errors[0]:null};
var O_=QoZ;O_.prototype.dataChanged=O_.prototype.dataChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],O_.prototype,"componentBehavior",void 0);_.X([_.U(_.jQ),_.A("design:type",Object)],O_.prototype,"ironButtonState",void 0);_.X([_.F(),_.A("design:type",Object)],O_.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.A("design:type",Object)],O_.prototype,"ariaLabel",void 0);
_.X([_.F(),_.A("design:type",Object)],O_.prototype,"message",void 0);_.X([_.F(),_.A("design:type",Object)],O_.prototype,"picker",void 0);_.X([_.F(),_.A("design:type",Object)],O_.prototype,"uploader",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],O_.prototype,"dataChanged",null);O_=_.X([_.l({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],O_);
_.p(O_,"ytd-channel-banner-editor-renderer",function(){if(z9D!==void 0)return z9D;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return z9D=q},{mode:1});var EUF;var x_q=_.Fr(["#"]),TCb=function(){return _.N.apply(this,arguments)||this};
_.z(TCb,_.N);TCb.prototype.computeHrefWithDefault=function(q){return this.ytComponentBehavior.computeHref_(q,!0)||_.UX(x_q)};
TCb.prototype.dataChanged=function(){var q=this.data;q&&q.targetId&&_.wwv(_.DK(),q.targetId,this.moreIcon)};
var HU=TCb;HU.prototype.dataChanged=HU.prototype.dataChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],HU.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],HU.prototype,"data",void 0);_.X([_.fo("#more-icon"),_.A("design:type",Object)],HU.prototype,"moreIcon",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],HU.prototype,"dataChanged",null);
HU=_.X([_.l({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],HU);
_.p(HU,"ytd-channel-tagline-renderer",function(){if(EUF!==void 0)return EUF;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return EUF=q},{mode:1});var U_C;var kCC=function(){return _.N.apply(this,arguments)||this};
_.z(kCC,_.N);_.e=kCC.prototype;_.e.ready=function(){var q=this;_.E(this.hostElement).querySelector("#form").addEventListener("submit",function(Z){q.onSubmit(Z)})};
_.e.onDataChanged=function(){var q;((q=this.data)==null?0:q.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.e.onIconButtonKeydown=function(q){q.keyCode===13&&this.iconButton.click()};
_.e.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.e.openOnClickHandler=function(){this.input.focus()};
_.e.onSubmit=function(q){q.preventDefault();return!1};
_.e.submitOnEnterKeyUp=function(q){var Z;if(q.keyCode===13&&((Z=this.data)==null?0:Z.expandedText)){q=this.data.endpoint;Z=_.R4.unsafeClone(q);var w;((w=_.J(Z==null?void 0:Z.commandMetadata,_.XK))==null?0:w.url)?(_.J(Z.commandMetadata,_.XK).url=_.nb(_.J(Z.commandMetadata,_.XK).url,"query",this.data.expandedText),_.J(Z,_.qZ)&&(_.J(Z,_.qZ).query=this.data.expandedText),_.hy(this.hostElement,"yt-navigate",{endpoint:Z,tempData:{disableCache:!0}})):(w=new _.df("Error: Trying to navigate to an endpoint without url",
q),_.tY(w))}};
_.e.updateDataExpandedTextFromBinding=function(q){this.set("data.expandedText",q.detail.value)};
var WU=kCC;WU.prototype.onDataChanged=WU.prototype.onDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.K3V),_.A("design:type",Object)],WU.prototype,"ytdExpandableInputBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],WU.prototype,"data",void 0);_.X([_.fo("#input"),_.A("design:type",Object)],WU.prototype,"input",void 0);_.X([_.fo("#icon-button"),_.A("design:type",HTMLElement)],WU.prototype,"iconButton",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WU.prototype,"onDataChanged",null);WU=_.X([_.l({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],WU);
var AsV=_.Fl()(WU,"ytd-expandable-tab-renderer",function(){if(U_C===void 0){var q=document.createElement("template");_.a(q,'\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="yt-icons:search" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);U_C=q}q=U_C;return q},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var KLy;var sou=_.Fr(["#"]),IP8=function(){return _.N.apply(this,arguments)||this};
_.z(IP8,_.N);IP8.prototype.computeHrefWithDefault=function(q){return this.ytComponentBehavior.computeHref_(q,!0)||_.UX(sou)};
_.My.Object.defineProperties(IP8.prototype,{primaryLinkEndpoint:{configurable:!0,enumerable:!0,get:function(){var q;return _.oQ((q=this.data)==null?void 0:q.primaryLinkOnTap)}},
moreEndpoint:{configurable:!0,enumerable:!0,get:function(){var q;return _.oQ((q=this.data)==null?void 0:q.moreOnTap)}}});
var oi=IP8;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],oi.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],oi.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],oi.prototype,"usePageHeaderStyle",void 0);_.X([_.I("data.primaryOnTap"),_.A("design:type",Object),_.A("design:paramtypes",[])],oi.prototype,"primaryLinkEndpoint",null);
_.X([_.I("data.moreOnTap"),_.A("design:type",Object),_.A("design:paramtypes",[])],oi.prototype,"moreEndpoint",null);oi=_.X([_.l({disableElementRegistration:!0,is:"ytd-channel-header-links-view-model"})],oi);
_.p(oi,"ytd-channel-header-links-view-model",function(){if(KLy!==void 0)return KLy;var q=document.createElement("template");_.a(q,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-header-links-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-channel-header-links-view-model">\n  <yt-attributed-string id="first-link" data="[[data.firstLink]]" ellipsis-truncate="true" hidden="[[!data.firstLink]]" link-inherit-color="true" user-input="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <yt-attributed-string id="more" data="[[data.more]]" hidden="[[!data.more]]" link-inherit-color="true" no-wrap="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <a id="primary-link" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(primaryLinkEndpoint)]]" data="[[primaryLinkEndpoint]]" dir="ltr" hidden="[[!data.primaryLink]]">\n    [[data.primaryLink]]\n  </a>\n  <a id="suffix" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(moreEndpoint)]]" data="[[moreEndpoint]]" hidden="[[!data.suffix]]">\n    [[data.suffix]]\n  </a>\n</div>\n');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return KLy=q},{mode:1});var cGZ;var M0l=function(){var q=_.N.apply(this,arguments)||this;q.avatarSize=80;q.ariaLabel=_.dT("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return q};
_.z(M0l,_.N);M0l.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
M0l.prototype.computeHref=function(q){var Z;return((Z=_.J(q,_.TF))==null?0:Z.url)?this.componentBehavior.computeHref_(q):null};
M0l.prototype.onTap=function(){var q,Z;(q=this.data)==null||!q.editAvatarServiceEndpoint||((Z=_.J(this.data.editAvatarServiceEndpoint,_.TF))==null?0:Z.url)||_.t().resolve(_.ps).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
var uv=M0l;_.X([_.U(_.jQ),_.A("design:type",Object)],uv.prototype,"ironButtonState",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],uv.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],uv.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],uv.prototype,"avatarSize",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],uv.prototype,"ariaLabel",void 0);
uv=_.X([_.l({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],uv);
_.p(uv,"ytd-channel-avatar-editor",function(){if(cGZ!==void 0)return cGZ;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return cGZ=q},{mode:1});_.xc(_.sTu,"yt-tab-group-shape",{props:{shape:_.zG}});var FLV=function(){var q=_.N.apply(this,arguments)||this;q.expandableCustomTabRenderable=function(Z){return fYD(Z,function(){return void q.onSearchNavigate()})};
q.isRichGrid=!1;q.richGridMiniMode=!1;q.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-unsubscribe-action":"handleUnsubscribeAction","yt-window-resized":"onWindowResize"};return q};
_.z(FLV,_.N);_.e=FLV.prototype;_.e.areAllFalse=function(q,Z,w){return!q&&!Z&&!w};
_.e.updateJoinButtonOverrides=function(){var q;(q=_.E(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||q.set("overrides",this.joinButtonOverrides)};
_.e.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.sponsorButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},
"data.editChannelButtons":{id:"edit-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.otherButtons":{id:"other-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.tagline":{id:"channel-tagline",mapping:{channelTaglineRenderer:"ytd-channel-tagline-renderer"}},"data.headerLinks":{id:"channel-header-links",mapping:{channelHeaderLinksViewModel:{component:"ytd-channel-header-links-view-model",properties:{usePageHeaderStyle:"[[usePageHeaderStyle]]"}}}}}};
_.e.attached=function(){this.data&&this.dataChanged()};
_.e.computeHeaderDisabled=function(q,Z){return Z||!q};
_.e.handleButtonRefreshAction=function(q){(q=_.J(q,_.PQW))&&this.set("data.sponsorButton",q.membershipButton)};
_.e.handleInsertTabCommand=function(q){var Z=_.J(q,JbC);Z&&Z.externalChannelId===this.data.channelId&&(Z.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(w){return w.tabRenderer&&w.tabRenderer.tabIdentifier===Z.tabIdentifier})||this.splice("tabs",Z.tabIndex||-1,0,Z.tab))};
_.e.handleRefreshChannelTabAction=function(q){var Z,w=(Z=this.tabs)==null?void 0:Z.filter(function(C){var d;return(d=C.tabRenderer)==null?void 0:d.selected});
Z=(w==null?void 0:w.length)===1?w[0]:void 0;var r;if((Z==null?void 0:(r=Z.tabRenderer)==null?void 0:r.tabIdentifier)===q){var Y;_.hy(this.hostElement,"yt-navigate",{endpoint:(Y=Z.tabRenderer)==null?void 0:Y.endpoint,tempData:{disableCache:!0}})}};
_.e.onWindowResize=function(){_.E(this.hostElement).querySelector("#header").fire("iron-resize")};
_.e.dataChanged=function(){var q=this.hasChannelArt;this.hasChannelArt=!1;if(this.data&&this.data.banner){var Z=_.TL(this.data.banner.thumbnails,this.hostElement.clientWidth);Z&&(Z.indexOf("//")===0&&(Z="https:"+Z),this.hasChannelArt=!0,_.po(this.hostElement,{"--yt-channel-banner":"url("+Z+")"}))}this.hasChannelArt!==q&&_.E(this.hostElement).querySelector("#header").fire("iron-resize")};
_.e.onBannerUpdated=function(q,Z){q=window.devicePixelRatio>1?Z.hq_url:Z.url;q.indexOf("//")===0&&(q="https:"+q);this.hasChannelArt=!0;_.po(this.hostElement,{"--yt-channel-banner":"url("+q+")"})};
_.e.observeLightsourcePalette=function(){var q,Z,w=(q=this.data)==null?void 0:(Z=q.headerColorPalette)==null?void 0:Z.lightsourceColorPaletteData;w&&_.VB(this.hostElement,w)};
_.e.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.po(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.e.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.e.handleUnsubscribeAction=function(){var q,Z;((Z=_.J((q=this.data)==null?void 0:q.sponsorButton,_.tA))==null?void 0:Z.style)==="STYLE_PRIMARY"&&_.E(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").set("data.style","STYLE_SUGGESTIVE")};
_.e.onFocusedChanged=function(q){(q=_.xz(q))&&q.is==="tp-yt-paper-tab"&&q.hasRipple()&&(q.getRipple().holdDown=!q.pointerDown&&q.focused)};
_.e.updateSelectedFromBinding=function(q){this.ytdTabbedHeaderBehavior.selected=q.detail.value};
_.My.Object.defineProperties(FLV.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:hr8(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasChannelHeaderLinks:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!!((q=this.data)==null?0:(Z=q.headerLinks)==null?0:Z.channelHeaderLinksViewModel)}},
subscribeKey:{configurable:!0,enumerable:!0,get:function(){return this.get("subscribeButton.subscribeButtonRenderer.subscribedEntityKey",this.data)}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.subscriptionStateEntity)==null||!q.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",buttonType:this.subscribed?"filled":"tonal"}}},
useModernStyle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.style)==="C4_TABBED_HEADER_RENDERER_STYLE_MODERN"}},
usePageHeaderStyle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.style)==="C4_TABBED_HEADER_RENDERER_STYLE_PAGE_HEADER"}},
avatarSize:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?160:this.useModernStyle?128:80}},
shouldInlineChannelName:{configurable:!0,enumerable:!0,get:function(){var q=this.channelHandleDisplayStyle;return q==="MODERN"||q==="PAGE_HEADER"}},
hideBannerEndpoint:{configurable:!0,enumerable:!0,get:function(){var q;return this.usePageHeaderStyle||!((q=this.data)==null?0:q.bannerLinkEndpoint)}},
hideBannerVisibleArea:{configurable:!0,enumerable:!0,get:function(){var q;return this.usePageHeaderStyle||!((q=this.data)==null||!q.bannerLinkEndpoint)}},
showBannerEditor:{configurable:!0,enumerable:!0,get:function(){var q;return!!_.J((q=this.data)==null?void 0:q.bannerEditor,WoD)}},
bannerEffects:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:"parallax-background"}},
effectsConfig:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:{"parallax-background":{scalar:.5}}}},
shouldShowPageHeaderBanner:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle&&!!this.hasChannelArt}},
isChannelHandlePresent:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.channelHandleText)}},
channelHandleDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelHandlePresent?this.usePageHeaderStyle?"PAGE_HEADER":this.useModernStyle?"MODERN":"CLASSIC":"NOT_AVAILABLE"}},
shouldShowChannelPronouns:{configurable:!0,enumerable:!0,get:function(){var q;return _.b("enable_view_pronouns_on_main_app")&&!((q=this.data)==null||!q.channelPronouns)}},
shouldShowSubscriberCount:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.subscriberCountText)}},
shouldShowVideosCount:{configurable:!0,enumerable:!0,get:function(){var q;return(this.useModernStyle||this.usePageHeaderStyle)&&!((q=this.data)==null||!q.videosCountText)}}});
var L3=FLV;L3.prototype.observerRichGridItemsPerRow=L3.prototype.observerRichGridItemsPerRow;L3.prototype.observeLightsourcePalette=L3.prototype.observeLightsourcePalette;L3.prototype.onBannerUpdated=L3.prototype.onBannerUpdated;L3.prototype.dataChanged=L3.prototype.dataChanged;L3.prototype.updateJoinButtonOverrides=L3.prototype.updateJoinButtonOverrides;_.X([_.U(_.Ry),_.A("design:type",Object)],L3.prototype,"ytdGridStateAwareBehavior",void 0);
_.X([_.U(BLy),_.A("design:type",Object)],L3.prototype,"ytdTabbedHeaderBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],L3.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],L3.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],L3.prototype,"ytdGuideStateAwareBehavior",void 0);
_.X([_.U(_.LO),_.A("design:type",Object)],L3.prototype,"ytdReduxBehavior",void 0);_.X([_.fo("#tabs"),_.A("design:type",Object)],L3.prototype,"tabsElement",void 0);_.X([_.F(),_.A("design:type",Array)],L3.prototype,"tabs",void 0);_.X([_.I("tabs.*"),_.A("design:type",Object),_.A("design:paramtypes",[])],L3.prototype,"tabGroupShape",null);_.X([_.F(),_.A("design:type",Object)],L3.prototype,"expandableCustomTabRenderable",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],L3.prototype,"isRichGrid",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.SZ}),_.A("design:type",Object)],L3.prototype,"richGridMiniMode",void 0);_.X([_.F({selector:_.vX}),_.A("design:type",Number)],L3.prototype,"richGridItemsPerRow",void 0);_.X([_.F(),_.A("design:type",Object)],L3.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],L3.prototype,"hasChannelArt",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],L3.prototype,"hasChannelHeaderLinks",null);_.X([_.F({selector:_.j_V,reflectToAttribute:!0}),_.A("design:type",Boolean)],L3.prototype,"guideIsVisibleButNotPersistent",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],L3.prototype,"subscribeKey",null);
_.X([_.F({selectorArgs:["subscribeKey"],selector:_.p6}),_.A("design:type",Object)],L3.prototype,"subscriptionStateEntity",void 0);_.X([_.I("subscriptionStateEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],L3.prototype,"subscribed",null);_.X([_.I("subscribed"),_.A("design:type",Object),_.A("design:paramtypes",[])],L3.prototype,"joinButtonOverrides",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],L3.prototype,"useModernStyle",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],L3.prototype,"usePageHeaderStyle",null);_.X([_.I("useModernStyle","usePageHeaderStyle"),_.A("design:type",Number),_.A("design:paramtypes",[])],L3.prototype,"avatarSize",null);
_.X([_.I("channelHandleDisplayStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],L3.prototype,"shouldInlineChannelName",null);_.X([_.I("data","usePageHeaderStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],L3.prototype,"hideBannerEndpoint",null);_.X([_.I("data","usePageHeaderStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],L3.prototype,"hideBannerVisibleArea",null);
_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],L3.prototype,"showBannerEditor",null);_.X([_.I("usePageHeaderStyle"),_.A("design:type",Object),_.A("design:paramtypes",[])],L3.prototype,"bannerEffects",null);_.X([_.I("usePageHeaderStyle"),_.A("design:type",Object),_.A("design:paramtypes",[])],L3.prototype,"effectsConfig",null);_.X([_.I("usePageHeaderStyle","hasChannelArt"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],L3.prototype,"shouldShowPageHeaderBanner",null);
_.X([_.I("data.channelHandleText"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],L3.prototype,"isChannelHandlePresent",null);_.X([_.I("isChannelHandlePresent","useModernStyle","usePageHeaderStyle"),_.A("design:type",String),_.A("design:paramtypes",[])],L3.prototype,"channelHandleDisplayStyle",null);_.X([_.I("data.channelPronouns"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],L3.prototype,"shouldShowChannelPronouns",null);
_.X([_.I("data.subscriberCountText"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],L3.prototype,"shouldShowSubscriberCount",null);_.X([_.I("useModernStyle","data.videosCountText"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],L3.prototype,"shouldShowVideosCount",null);_.X([_.M("joinButtonOverrides"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],L3.prototype,"updateJoinButtonOverrides",null);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],L3.prototype,"dataChanged",null);_.X([_.m2("yt-banner-updated"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],L3.prototype,"onBannerUpdated",null);_.X([_.M("data.headerColorPalette.lightsourceColorPaletteData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],L3.prototype,"observeLightsourcePalette",null);
_.X([_.M("richGridItemsPerRow","isRichGrid"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],L3.prototype,"observerRichGridItemsPerRow",null);L3=_.X([_.l({is:"ytd-c4-tabbed-header-renderer",disableElementRegistration:!0})],L3);
_.p(L3,"ytd-c4-tabbed-header-renderer",function(){if(JGC!==void 0)return JGC;var q=document.createElement("template");_.a(q,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-c4-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-c4-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent)]]" effects="[[bannerEffects]]" effects-config="[[effectsConfig]]" fixed="" class="style-scope ytd-c4-tabbed-header-renderer"><a class="banner-visible-area yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" aria-label$="[[data.banner.accessibility.accessibilityData.label]]" data="[[data.bannerLinkEndpoint]]" hidden="[[hideBannerEndpoint]]" href="[[computeHref_(data.bannerLinkEndpoint)]]"></a><template is="dom-if" if="[[!hideBannerVisibleArea]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="banner-visible-area style-scope ytd-c4-tabbed-header-renderer"><div id="banner-editor" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><template is="dom-if" if="[[shouldShowPageHeaderBanner]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-sizer style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-image style-scope ytd-c4-tabbed-header-renderer"></div><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><div id="channel-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow id="avatar" hidden="[[data.editAvatarServiceEndpoint]]" thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><ytd-channel-avatar-editor id="avatar-editor" avatar-size="[[avatarSize]]" data="[[data]]" disable-upgrade$="[[!data.editAvatarServiceEndpoint]]" hidden="[[!data.editAvatarServiceEndpoint]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-avatar-editor><div id="inner-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="meta" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" has-channel-art="[[hasChannelArt]]" wrap-text="" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-name><p hidden="[[!equals(channelHandleDisplayStyle, \'CLASSIC\')]]" class="style-scope ytd-c4-tabbed-header-renderer"><yt-formatted-string id="channel-handle" class="meta-item style-scope ytd-c4-tabbed-header-renderer" respect-lang-dir="" text="[[data.channelHandleText]]"></yt-formatted-string></p><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldInlineChannelName]]"><yt-formatted-string id="channel-handle" respect-lang-dir="" text="[[data.channelHandleText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowChannelPronouns, shouldShowSubscriberCount, shouldShowVideosCount)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowChannelPronouns]]"><yt-formatted-string id="channel-pronouns" text="[[data.channelPronouns]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowSubscriberCount, shouldShowVideosCount, false)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowSubscriberCount]]"><yt-formatted-string id="subscriber-count" text="[[data.subscriberCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]"><yt-formatted-string id="videos-count" text="[[data.videosCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></span><div id="channel-tagline" class="style-scope ytd-c4-tabbed-header-renderer"></div><div id="channel-header-links" class="style-scope ytd-c4-tabbed-header-renderer"></div></div><div id="buttons" class="style-scope ytd-c4-tabbed-header-renderer"><div id="purchase-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="subscribe-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="sponsor-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="edit-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="other-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div></div></div></div><div id="links-holder" class="style-scope ytd-c4-tabbed-header-renderer"><div id="primary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.primaryLinks]]" as="primaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint container style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(primaryLink.navigationEndpoint)]]" data="[[primaryLink.navigationEndpoint]]" title$="[[getSimpleString(primaryLink.title)]]"><div class="icon-container style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow height="16" thumbnail="[[primaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><yt-formatted-string text="[[primaryLink.title]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></div></a></template></div><div id="secondary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.secondaryLinks]]" as="secondaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(secondaryLink.navigationEndpoint)]]" data="[[secondaryLink.navigationEndpoint]]" title$="[[getSimpleString(secondaryLink.title)]]"><yt-img-shadow height="16" thumbnail="[[secondaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow></a></template></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-divider" class="style-scope ytd-c4-tabbed-header-renderer"></div><tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-c4-tabbed-header-renderer"><yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-tab-group-shape></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return JGC=q},{mode:1});var NCl;var lPq=function(){return _.N.apply(this,arguments)||this};
_.z(lPq,_.N);lPq.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"}}}};
lPq.prototype.dataChanged=function(){if(this.data){var q=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var Z=_.TL(this.data.banner.thumbnails,this.hostElement.clientWidth);Z&&(Z.indexOf("//")===0&&(Z="https:"+Z),this.hasBannerArt=!0,_.po(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+Z+")"}))}this.hasBannerArt!==q&&_.E(this.hostElement).querySelector("#header").fire("iron-resize")}};
lPq.prototype.updateSelectedFromBinding=function(q){this.selected=q.detail.value};
var Su=lPq;Su.prototype.dataChanged=Su.prototype.dataChanged;_.X([_.U(BLy),_.A("design:type",Object)],Su.prototype,"ytdTabbedHeaderBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Su.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.Ry),_.A("design:type",Object)],Su.prototype,"ytdGridStateAwareBehavior",void 0);_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],Su.prototype,"ytdGuideStateAwareBehavior",void 0);
_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Su.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Su.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Number)],Su.prototype,"selected",void 0);_.X([_.F(),_.A("design:type",Boolean)],Su.prototype,"active",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Su.prototype,"hasBannerArt",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Su.prototype,"dataChanged",null);Su=_.X([_.l({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Su);
_.p(Su,"ytd-interactive-tabbed-header-renderer",function(){if(NCl!==void 0)return NCl;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return NCl=q},{mode:1});var GC8;var plS=function(){return _.N.apply(this,arguments)||this};
_.z(plS,_.N);plS.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
plS.prototype.computeActionsAlignment=function(q){return(q==null?void 0:q.actionsAlignment)||""};
var vU=plS;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],vU.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],vU.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.A("design:type",String)],vU.prototype,"actionsAlignment",void 0);
vU=_.X([_.l({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],vU);
_.p(vU,"ytd-page-footer-renderer",function(){if(GC8!==void 0)return GC8;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return GC8=q},{mode:1});var Xl6;var m_c;var AGD=function(){var q=_.N.apply(this,arguments)||this;q.isEditing=!1;q.useSlot=!1;q.isMultiline=!1;return q};
_.z(AGD,_.N);_.e=AGD.prototype;_.e.onKeydown=function(q){if(q.keyCode===13&&!this.isMultiline)this.onSave();else if(q.keyCode===27)this.onCancel()};
_.e.computeComponentStyle=function(q){return(q==null?0:q.style)?q.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.e.computeisMultiline=function(q){if(this.multilineOverride!==void 0)return this.multilineOverride;var Z,w;return!!(q==null?0:(Z=q.formField)==null?0:(w=Z.textInputFormFieldRenderer)==null?0:w.isMultiline)};
_.e.computeTextDisplayed=function(q,Z){if(q)return q;if(Z)return Z};
_.e.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.e.onSave=function(){if(this.textForm.validate()){this.textForm.save();var q=this.textForm.value;if(q)this.set("data.textDisplayed",_.UE(q));else{var Z;((Z=this.data)==null?0:Z.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.zU("inline-form-changed",this.data));this.isEditing=!1}};
_.e.onCancel=function(){var q=_.kO(this.data.textDisplayed);q===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(q);this.isEditing=!1};
var ju=AGD;ju.prototype.onKeydown=ju.prototype.onKeydown;_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],ju.prototype,"ytEventForwardingBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ju.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ju.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ju.prototype,"isEditing",void 0);_.X([_.F(),_.A("design:type",Object)],ju.prototype,"useSlot",void 0);_.X([_.F(),_.A("design:type",Boolean)],ju.prototype,"multilineOverride",void 0);_.X([_.F(),_.A("design:type",Boolean)],ju.prototype,"enableOverlayTheme",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.A("design:type",String)],ju.prototype,"componentStyle",void 0);
_.X([_.F({computed:"computeisMultiline(data)"}),_.A("design:type",Object)],ju.prototype,"isMultiline",void 0);_.X([_.fo("#text-form"),_.A("design:type",Object)],ju.prototype,"textForm",void 0);_.X([_.m2("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],ju.prototype,"onKeydown",null);ju=_.X([_.l({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],ju);
_.p(ju,"ytd-inline-form-renderer",function(){if(m_c!==void 0)return m_c;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return m_c=q},{mode:1});var fPZ;var D_6=function(){var q=_.N.apply(this,arguments)||this;q.previousSelectValue=void 0;q.selectedItemMessage=void 0;return q};
_.z(D_6,_.N);D_6.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
D_6.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var q,Z,w,r,Y=(q=this.data)==null?void 0:(Z=q.dropdown)==null?void 0:(w=Z.dropdownRenderer)==null?void 0:(r=w.entries)==null?void 0:r.map(function(O){return O.privacyDropdownItemRenderer});
q=_.P(Y!=null?Y:[]);for(Z=q.next();!Z.done;Z=q.next())if((Z=Z.value)&&Z.int32Value===this.selectedValue){this.selectedItemMessage=Z.itemMessage;break}}else this.selectedItemMessage=void 0;var C;(C=this.onValueChanged)==null||C.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var d;(d=this.data)!=null&&d.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
D_6.prototype.onValueChangedForSelectedValue=function(q){this.selectedValue=q.detail.value};
var ts=D_6;ts.prototype.selectedValueChanged=ts.prototype.selectedValueChanged;_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],ts.prototype,"ytEventForwardingBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],ts.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ts.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ts.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ts.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],ts.prototype,"theme",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Number)],ts.prototype,"selectedValue",void 0);_.X([_.F(),_.A("design:type",Function)],ts.prototype,"onValueChanged",void 0);
_.X([_.g3("selectedValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ts.prototype,"selectedValueChanged",null);ts=_.X([_.l({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],ts);
_.p(ts,"ytd-dropdown-form-field-renderer",function(){if(fPZ!==void 0)return fPZ;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return fPZ=q},{mode:_.NT("kevlar_poly_si_batch_j025")?1:2});var h98;var yGq=function(){return _.N.apply(this,arguments)||this};
_.z(yGq,_.N);_.My.Object.defineProperties(yGq.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var q=[],Z=_.P(this.data||[]),w=Z.next();!w.done;w=Z.next())(w=_.J(w.value,bT6))&&q.push(w);return q}}});
var imb=yGq;_.X([_.F(),_.A("design:type",Array)],imb.prototype,"data",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],imb.prototype,"byline",null);imb=_.X([_.l({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],imb);
_.p(imb,"ytd-playlist-byline-renderer",function(){if(h98!==void 0)return h98;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return h98=q},{mode:1});var gUb;var q5l=function(){var q=_.N.apply(this,arguments)||this;q.rtlBullet=_.b("web_playlist_stats_rtl_bullet_icon_killswitch");q.modern=_.b("web_modern_buttons");q.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return q};
_.z(q5l,_.N);_.e=q5l.prototype;_.e.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"}}}}};
_.e.attached=function(){};
_.e.computeIsCustomThumbnail=function(q){return q?!!q.playlistCustomThumbnailRenderer:!1};
_.e.onYtNavigate=function(q,Z){if(Z&&Z.actions&&Z.actions.indexOf("shuffle")>-1){q=_.t().resolve(_.b8);var w=Z.tempData||{};w.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);Z.tempData=w;q.isShuffleNextPlaylist=!0}};
_.e.onUpdatePlaylistAction=function(q){var Z;q=(Z=_.J(q,_.d1g))==null?void 0:Z.updatedRenderer;if(Z=_.J(q,uCF))this.data=Z};
_.e.computeStyleType=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.e.computeThumbnailWidth=function(q){return q==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.e.computeHideThumbnailAria=function(q){if(q==null?0:q.thumbnailOverlays)for(var Z=0;Z<q.thumbnailOverlays.length;Z++){var w=void 0;if((w=q.thumbnailOverlays[Z])==null?0:w.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
var Ri=q5l;Ri.prototype.onYtNavigate=Ri.prototype.onYtNavigate;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Ri.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Ri.prototype,"ytComponentBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],Ri.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ri.prototype,"rtlBullet",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.A("design:type",String)],Ri.prototype,"styleType",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.A("design:type",Number)],Ri.prototype,"thumbnailWidth",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ri.prototype,"modern",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.A("design:type",Boolean)],Ri.prototype,"isCustomThumbnail",void 0);_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[Event,Object]),_.A("design:returntype")],Ri.prototype,"onYtNavigate",null);
Ri=_.X([_.l({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Ri);
_.p(Ri,"ytd-playlist-sidebar-primary-info-renderer",function(){if(gUb!==void 0)return gUb;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return gUb=q},{mode:1});var Zf6;var wAS=function(){return _.N.apply(this,arguments)||this};
_.z(wAS,_.N);wAS.prototype.computeOwnerVisibility=function(q){return!(!q.videoOwner&&!q.button)};
wAS.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"}}}};
var bv=wAS;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],bv.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],bv.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],bv.prototype,"data",void 0);bv=_.X([_.l({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],bv);
_.p(bv,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(Zf6!==void 0)return Zf6;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Zf6=q},{mode:1});var rRc;var Y5y=function(){var q=_.N.apply(this,arguments)||this;q.expanded=!1;q.isCompact=!1;return q};
_.z(Y5y,_.N);_.e=Y5y.prototype;_.e.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.e.dataChanged=function(){this.data&&_.fA(_.E(this.text),_.sq2(_.MV7,_.kO(this.data.text||null)))};
_.e.computeAutoScrollEnabled=function(q,Z){return q&&!Z};
_.e.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.e.toggleOnTap=function(){this.expanded=!this.expanded};
var Js=Y5y;Js.prototype.expandedChanged=Js.prototype.expandedChanged;Js.prototype.dataChanged=Js.prototype.dataChanged;_.X([_.U(_.q_8),_.A("design:type",Object)],Js.prototype,"ytdAutoScrollBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Js.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Js.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Js.prototype,"expanded",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Js.prototype,"isCompact",void 0);_.X([_.F({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.A("design:type",Boolean)],Js.prototype,"autoScrollEnabled",void 0);_.X([_.fo("#text"),_.A("design:type",Object)],Js.prototype,"text",void 0);_.X([_.fo("#expander-icon"),_.A("design:type",Object)],Js.prototype,"expanderIcon",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Js.prototype,"dataChanged",null);_.X([_.M("expanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Js.prototype,"expandedChanged",null);Js=_.X([_.l({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],Js);
_.p(Js,"ytd-channel-legal-info-renderer",function(){if(rRc!==void 0)return rRc;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return rRc=q},{mode:1});var $F8;var eil=_.dT("DOWNLOAD",{},"Download"),CWc=_.dT("DOWNLOADING",{},"Downloading"),PWl=_.dT("DOWNLOADED",{},"Downloaded"),dF7=function(){var q=_.N.apply(this,arguments)||this;q.downloadProgress=0;q.isDownloadComplete=!1;q.transferState="TRANSFER_STATE_UNKNOWN";return q};
_.z(dF7,_.N);_.e=dF7.prototype;_.e.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.e.dataChanged=function(){var q;(q=this.data)!=null&&q.tooltip||(q=_.bF(_.sE().getState(),this.playlistId),this.updateButtonState(q))};
_.e.computePlaylistId=function(q){return q};
_.e.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.e.updateButtonState=function(q){if(this.data&&(this.data.tooltip!==CWc||!_.PX(q))){this.isDownloadComplete=!1;switch(q){case "TRANSFER_STATE_UNKNOWN":q=eil;var Z="OFFLINE_DOWNLOAD";var w="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":q=PWl;Z="OFFLINE_PIN";w="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":q=CWc;Z="OFFLINE_DOWNLOADING_ZERO";w="ACTION_REMOVE_WITH_PROMPT";
break;default:q=eil,Z="OFFLINE_DOWNLOAD",w="ACTION_ADD"}var r=Object.assign({},this.data);r.tooltip=q;r.accessibilityData={accessibilityData:{label:q}};r.icon={iconType:Z};r.size="SIZE_DEFAULT";_.J(r.command,_.yB)&&(_.J(r.command,_.yB).action=w);this.set("data",r)}};
_.e.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var q="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?q="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?q="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?q="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?q="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?q="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(q="OFFLINE_PIN",this.isDownloadComplete=!0);var Z;q!==((Z=this.data.icon)==null?void 0:Z.iconType)&&(Z=Object.assign({},this.data),Z.tooltip=CWc,Z.accessibilityData={accessibilityData:{label:CWc}},Z.icon={iconType:q},_.J(Z.command,_.yB)&&(_.J(Z.command,_.yB).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",Z))}};
var zh=dF7;zh.prototype.updateProgress=zh.prototype.updateProgress;zh.prototype.onTransferStateChanged=zh.prototype.onTransferStateChanged;zh.prototype.dataChanged=zh.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],zh.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],zh.prototype,"ytdReduxBehavior",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],zh.prototype,"forceIconButton",void 0);
_.X([_.F({value:!0}),_.A("design:type",Boolean)],zh.prototype,"forceIconOnly",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],zh.prototype,"overrides",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],zh.prototype,"buttonTooltipPosition",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],zh.prototype,"styleActionButton",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],zh.prototype,"disableTextTransform",void 0);
_.X([_.F({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.A("design:type",String)],zh.prototype,"playlistId",void 0);_.X([_.F(),_.A("design:type",Object)],zh.prototype,"data",void 0);_.X([_.F({selector:_.NFO,selectorArgs:["playlistId"]}),_.A("design:type",Object)],zh.prototype,"downloadProgress",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],zh.prototype,"isDownloadComplete",void 0);
_.X([_.F({selector:_.bF,selectorArgs:["playlistId"]}),_.A("design:type",String)],zh.prototype,"transferState",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],zh.prototype,"showTooltips",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],zh.prototype,"sendCommandWhenDisabled",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],zh.prototype,"disabled",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zh.prototype,"dataChanged",null);_.X([_.g3("transferState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zh.prototype,"onTransferStateChanged",null);_.X([_.g3("downloadProgress"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zh.prototype,"updateProgress",null);
zh=_.X([_.l({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],zh);
_.p(zh,"ytd-download-playlist-button-renderer",function(){if($F8!==void 0)return $F8;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return $F8=q},{mode:1});var V7F;_.xc(_.Xx,"thumbnail-overlay-button-view-model",{props:{data:_.zG,lockupExperiments:_.zG}});var Ofl=function(){var q=_.N.apply(this,arguments)||this;q.isSquare=!1;q.isVertical=!1;return q};
_.z(Ofl,_.N);Ofl.prototype.computeIsSquare=function(q){return q!=null&&q.thumbnail?maV(q.thumbnail)==="SQUARE":!1};
Ofl.prototype.computeIsVertical=function(q){return q!=null&&q.thumbnail?maV(q.thumbnail)==="VERTICAL":!1};
Ofl.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
var BU=Ofl;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],BU.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],BU.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.A("design:type",Object)],BU.prototype,"isSquare",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.A("design:type",Object)],BU.prototype,"isVertical",void 0);
_.X([_.F(),_.A("design:type",Object)],BU.prototype,"data",void 0);BU=_.X([_.l({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],BU);
_.p(BU,"ytd-hero-playlist-thumbnail-renderer",function(){if(V7F!==void 0)return V7F;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return V7F=q},{mode:1});var HfC=function(){var q=_.N.apply(this,arguments)||this;q.isDarkTheme=!1;q.isUltraWide=!1;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return q};
_.z(HfC,_.N);_.e=HfC.prototype;_.e.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.t();var q;(q=_.t().resolve(_.Gj(_.Im)))!=null&&(q.headerElement=this.hostElement)};
_.e.detached=function(){var q;(q=_.t().resolve(_.Gj(_.Im)))!=null&&(q.headerElement=void 0)};
_.e.onUpdateHeader=function(q){(q=q.detail)&&this.set("data",q)};
_.e.computeTextDisplayed=function(q){if(q)return q.textDisplayed?q.textDisplayed:q.placeholder};
_.e.gradientColorToLinearGradientStop=function(q){var Z=this.isDarkTheme?q.darkThemeColor:q.lightThemeColor;return Z?_.uq(Z)+" "+((q==null?void 0:q.startLocation)||0)*100+"%":"transparent"};
_.e.onWindowResize=function(){var q;((q=this.data)==null?0:q.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.e.onIronResize=function(q){this.isUltraWide=!q.detail.value};
_.e.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.e.onUpdatePlaylistName=function(q){var Z=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},q.detail.value));_.I_(this,function(){var w;(w=Z.editableTitle)==null||w.resize()})};
_.e.onUpdatePlaylistDescription=function(q){var Z=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},q.detail.value));_.I_(this,function(){var w;(w=Z.editableDescriptionInlineExpander)==null||w.resize()})};
_.e.getCinematicData=function(q){return _.J(q==null?void 0:q.cinematicContainer,_.xV)};
_.My.Object.defineProperties(HfC.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 q,Z=(q=this.getCinematicData(this.data))==null?void 0:q.config;return(q=this.isDarkTheme?Z==null?void 0:Z.darkThemeBackgroundColor:Z==null?void 0:Z.lightThemeBackgroundColor)?"background-color:"+_.oJ(q)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var q;return _.J((q=this.data)==null?void 0:q.descriptionForm,oW8)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var q=this,Z,w,r;return"background:linear-gradient(to bottom, "+(((r=(Z=this.getCinematicData(this.data))==null?void 0:(w=Z.gradientColorConfig)==null?void 0:w.map(function(Y){return q.gradientColorToLinearGradientStop(Y)}))==null?void 0:r.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var q;return _.kO((q=this.data)==null?void 0:q.descriptionTapText)}}});
var ai=HfC;ai.prototype.onUpdateHeader=ai.prototype.onUpdateHeader;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],ai.prototype,"actionHandlerBehavior",void 0);_.X([_.fo("#description-inline-expander"),_.A("design:type",Object)],ai.prototype,"descriptionInlineExpander",void 0);
_.X([_.fo("#editable-description-inline-expander"),_.A("design:type",Object)],ai.prototype,"editableDescriptionInlineExpander",void 0);_.X([_.F(),_.A("design:type",Object)],ai.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],ai.prototype,"isUltraWide",void 0);_.X([_.fo("#editable-title-display"),_.A("design:type",Object)],ai.prototype,"editableTitle",void 0);_.X([_.I("isUltraWide"),_.A("design:type",Object),_.A("design:paramtypes",[])],ai.prototype,"maxDescriptionLines",null);
_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ai.prototype,"noCinematicData",null);_.X([_.m2("yt-new-playlist-header"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ai.prototype,"onUpdateHeader",null);_.X([_.I("data","isDarkTheme"),_.A("design:type",Object),_.A("design:paramtypes",[])],ai.prototype,"backgroundStyle",null);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ai.prototype,"descriptionFormData",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ai.prototype,"getDropdownTheme",null);_.X([_.I("data","isDarkTheme"),_.A("design:type",String),_.A("design:paramtypes",[])],ai.prototype,"gradientStyle",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ai.prototype,"descriptionTapText",null);
ai=_.X([_.l({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],ai);
_.p(ai,"ytd-playlist-header-renderer",function(){if(Xl6!==void 0)return Xl6;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Xl6=q},{mode:_.NT("kevlar_poly_si_batch_j078")?1:2});var WYD;var ou8;var uL8=function(){return _.N.apply(this,arguments)||this};
_.z(uL8,_.N);uL8.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
var n3=uL8;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],n3.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],n3.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],n3.prototype,"data",void 0);n3=_.X([_.l({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],n3);
_.p(n3,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(ou8!==void 0)return ou8;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return ou8=q},{mode:1});var LY8=function(){return _.N.apply(this,arguments)||this};
_.z(LY8,_.N);
LY8.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}}}}};
LY8.prototype.computeUsePremiumShowStyle=function(q){if(!q||!q.items)return!1;for(var Z=0;Z<q.items.length;Z++)if(_.J(q.items[Z],uCF)){var w=void 0;return((w=_.J(q.items[Z],uCF))==null?void 0:w.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
var Qz=LY8;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Qz.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Qz.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.A("design:type",Boolean)],Qz.prototype,"usePremiumShowStyle",void 0);
Qz=_.X([_.l({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],Qz);
_.p(Qz,"ytd-playlist-sidebar-renderer",function(){if(WYD!==void 0)return WYD;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return WYD=q},{mode:1});var S58;var g$F=_.Px({pageHeaderViewModel:_.CKO});_.mD(qRb);_.Mx(qRb,"yt-page-header-renderer",{propNames:"noPadding data enableBanner cinematicContainerTopbarOffset allowCinematicContainerOverflow displayAsSidebar".split(" ")});_.xc(_.v1F,"yt-image-banner-view-model",{props:{data:_.zG,isPositionRelative:_.zG}});var vuZ=function(){var q=_.N.apply(this,arguments)||this;q.expandableCustomTabRenderable=function(Z){return fYD(Z,function(){return void q.onSearchNavigate()})};
q.isRichGrid=!1;q.isConstrainedList=!1;q.richGridMiniMode=!1;q.richGridStyle="RICH_GRID_STYLE_UNKNOWN";q.isRichGridShorts=!1;q.responsiveSizing="COMPACT";q.disableGridStateAware=!1;q.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return q};
_.z(vuZ,_.N);_.e=vuZ.prototype;_.e.computeHeaderDisabled=function(q,Z){return Z||!q||this.tabsHidden};
_.e.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.e.computeIsRichGridShorts=function(q){return q==="RICH_GRID_STYLE_SHORTS_GRID"||q==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.e.computeImageBannerViewModel=function(){var q,Z;return _.J((Z=_.J((q=this.data)==null?void 0:q.content,_.cDp))==null?void 0:Z.banner,_.eaO)};
_.e.computeHasCinematicContainer=function(){var q,Z;return!((Z=_.J((q=this.data)==null?void 0:q.content,_.cDp))==null||!Z.background)};
_.e.handleHeaderResize=function(){var q=_.E(this.hostElement).querySelector("#header");q&&_.hy(q,"iron-resize")};
_.e.handleInsertTabCommand=function(q){var Z=_.J(q,JbC);Z&&(Z.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(w){return w.tabRenderer&&w.tabRenderer.tabIdentifier===Z.tabIdentifier})||this.splice("tabs",Z.tabIndex||-1,0,Z.tab))};
_.e.handleRefreshChannelTabAction=function(q){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===q&&_.hy(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.e.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.po(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.e.observerRichGridSlimItemsPerRow=function(){_.po(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.e.updateCssVars=function(){this.richGridItemsPerRow&&_.po(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.m6("rich_grid_max_item_width",500))+16)-16+"px"})};
_.e.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.po(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.e.onDataChanged=function(){this.handleHeaderResize()};
_.e.onWindowResize=function(){this.handleHeaderResize()};
_.e.onFocusedChanged=function(q){(q=_.xz(q))&&q.is==="tp-yt-paper-tab"&&q.hasRipple()&&(q.getRipple().holdDown=!q.pointerDown&&q.focused)};
_.e.updateSelectedFromBinding=function(q){this.ytdTabbedHeaderBehavior.selected=q.detail.value};
_.e.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.My.Object.defineProperties(vuZ.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:hr8(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.imageBannerViewModel)==null?void 0:q.style)==="IMAGE_BANNER_STYLE_INSET"}}});
var E_=vuZ;E_.prototype.onDataChanged=E_.prototype.onDataChanged;E_.prototype.updateCssVarsForResponsiveGrid=E_.prototype.updateCssVarsForResponsiveGrid;E_.prototype.updateCssVars=E_.prototype.updateCssVars;E_.prototype.observerRichGridSlimItemsPerRow=E_.prototype.observerRichGridSlimItemsPerRow;E_.prototype.observerRichGridItemsPerRow=E_.prototype.observerRichGridItemsPerRow;_.X([_.U(_.Ry),_.A("design:type",Object)],E_.prototype,"ytdGridStateAwareBehavior",void 0);
_.X([_.U(BLy),_.A("design:type",Object)],E_.prototype,"ytdTabbedHeaderBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],E_.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],E_.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],E_.prototype,"ytdGuideStateAwareBehavior",void 0);
_.X([_.U(_.LO),_.A("design:type",Object)],E_.prototype,"ytdReduxBehavior",void 0);_.X([_.fo("#tabs"),_.A("design:type",Object)],E_.prototype,"tabsElement",void 0);_.X([_.F(),_.A("design:type",Array)],E_.prototype,"tabs",void 0);_.X([_.F(),_.A("design:type",Object)],E_.prototype,"expandableCustomTabRenderable",void 0);_.X([_.I("tabs.*"),_.A("design:type",Object),_.A("design:paramtypes",[])],E_.prototype,"tabGroupShape",null);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E_.prototype,"isRichGrid",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E_.prototype,"isConstrainedList",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.SZ}),_.A("design:type",Object)],E_.prototype,"richGridMiniMode",void 0);_.X([_.F({selector:function(q){return q.ui.richGridStyle}}),
_.A("design:type",Object)],E_.prototype,"richGridStyle",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.A("design:type",Object)],E_.prototype,"isRichGridShorts",void 0);_.X([_.F({selector:_.vX}),_.A("design:type",Number)],E_.prototype,"richGridItemsPerRow",void 0);_.X([_.F({selector:function(q){return q.ui.richGridContainerWidth}}),
_.A("design:type",Number)],E_.prototype,"richGridContainerWidth",void 0);_.X([_.F({selector:_.aKO}),_.A("design:type",Number)],E_.prototype,"richGridSlimItemsPerRow",void 0);_.X([_.F(),_.A("design:type",Object)],E_.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E_.prototype,"responsiveSizing",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],E_.prototype,"disableGridStateAware",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeImageBannerViewModel(data)"}),_.A("design:type",Object)],E_.prototype,"imageBannerViewModel",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.A("design:type",Boolean)],E_.prototype,"hasCinematicContainer",void 0);_.X([_.F({selector:_.j_V,reflectToAttribute:!0}),_.A("design:type",Boolean)],E_.prototype,"guideIsVisibleButNotPersistent",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("imageBannerViewModel"),_.A("design:type",Object),_.A("design:paramtypes",[])],E_.prototype,"hasBanner",null);_.X([_.F({reflectToAttribute:!0}),_.I("imageBannerViewModel"),_.A("design:type",Object),_.A("design:paramtypes",[])],E_.prototype,"hasInsetBanner",null);_.X([_.F({computed:"computeTabsHidden(tabs)",value:!0}),_.A("design:type",Boolean)],E_.prototype,"tabsHidden",void 0);
_.X([_.M("richGridItemsPerRow","isRichGrid"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E_.prototype,"observerRichGridItemsPerRow",null);_.X([_.M("richGridSlimItemsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E_.prototype,"observerRichGridSlimItemsPerRow",null);
_.X([_.M("richGridItemsPerRow","richGridMiniMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E_.prototype,"updateCssVars",null);_.X([_.M("richGridContainerWidth"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E_.prototype,"updateCssVarsForResponsiveGrid",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E_.prototype,"onDataChanged",null);
E_=_.X([_.l({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],E_);
_.p(E_,"ytd-tabbed-page-header",function(){if(S58!==void 0)return S58;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return S58=q},{mode:1});var jGy;var t7F=function(){return _.N.apply(this,arguments)||this};
_.z(t7F,_.N);t7F.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.po(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.My.Object.defineProperties(t7F.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var q,Z;return this.componentBehavior.computeIcon_(((Z=_.J((q=this.data)==null?void 0:q.badge,_.Nkv))==null?void 0:Z.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var q,Z;return(Z=_.J((q=this.data)==null?void 0:q.badge,_.Nkv))==null?void 0:Z.label}}});
var x$=t7F;x$.prototype.observerRichGridItemsPerRow=x$.prototype.observerRichGridItemsPerRow;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],x$.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],x$.prototype,"componentBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],x$.prototype,"ytdReduxBehavior",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.SZ}),_.A("design:type",Boolean)],x$.prototype,"richGridMiniMode",void 0);
_.X([_.F({selector:_.vX}),_.A("design:type",Number)],x$.prototype,"richGridItemsPerRow",void 0);_.X([_.F(),_.A("design:type",Object)],x$.prototype,"data",void 0);_.X([_.M("richGridItemsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],x$.prototype,"observerRichGridItemsPerRow",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],x$.prototype,"badgeIconName",null);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],x$.prototype,"badgeLabel",null);x$=_.X([_.l({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],x$);
_.p(x$,"ytd-member-hub-profile-renderer",function(){if(jGy!==void 0)return jGy;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return jGy=q},{mode:1});var RiV;var bfC=function(){return _.N.apply(this,arguments)||this};
_.z(bfC,_.N);bfC.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
var Th=bfC;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Th.prototype,"data",void 0);Th=_.X([_.l({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],Th);
_.p(Th,"ytd-settings-sidebar-renderer",function(){if(RiV!==void 0)return RiV;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return RiV=q},{mode:1});var JRl;var U_=function(){return _.N.apply(this,arguments)||this};
_.z(U_,_.N);U_.prototype.shouldHideHashtagInfo_=function(q){return!(q==null?0:q.hashtagInfoText)};
U_.prototype.onFocusedChanged=function(q){(q=_.xz(q))&&q.is==="tp-yt-paper-tab"&&q.hasRipple()&&(q.getRipple().holdDown=!q.pointerDown&&q.focused)};
U_.prototype.updateSelectedFromBinding=function(q){this.selected=q.detail.value};
_.My.Object.defineProperties(U_.prototype,{tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
var k$=U_;_.X([_.U(BLy),_.A("design:type",Object)],k$.prototype,"ytdTabbedHeaderBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],k$.prototype,"rendererBehaviors",void 0);_.X([_.F(),_.A("design:type",Object)],k$.prototype,"data",void 0);_.X([_.fo("#tabs"),_.A("design:type",Object)],k$.prototype,"tabsElement",void 0);_.X([_.F(),_.A("design:type",Array)],k$.prototype,"tabs",void 0);_.X([_.F(),_.A("design:type",Object)],k$.prototype,"selected",void 0);
_.X([_.I("tabs"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],k$.prototype,"tabsEnabled",null);k$=_.X([_.l({disableElementRegistration:!0,is:"ytd-hashtag-header-renderer"})],k$);
_.p(k$,"ytd-hashtag-header-renderer",function(){if(JRl!==void 0)return JRl;var q=document.createElement("template");_.a(q,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-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-hashtag-header-renderer">\n  <tp-yt-app-header id="header" slot="header" condenses="" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-hashtag-header-renderer">\n    <div id="hashtag-info-container" class="style-scope ytd-hashtag-header-renderer">\n      <yt-formatted-string id="hashtag" dir="auto" text="[[data.hashtag]]" class="style-scope ytd-hashtag-header-renderer">\n      </yt-formatted-string>\n      <div id="hashtag-info" hidden="[[shouldHideHashtagInfo_(data)]]" class="style-scope ytd-hashtag-header-renderer">\n        <yt-formatted-string id="hashtag-info-text" hidden="[[!data.hashtagInfoText]]" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-header-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <tp-yt-app-toolbar hidden="[[!tabsEnabled]]" sticky="" class="style-scope ytd-hashtag-header-renderer">\n      <div id="tabs-container" class="style-scope ytd-hashtag-header-renderer">\n        \n        <div id="tabs-inner-container" class="style-scope ytd-hashtag-header-renderer">\n          <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-hashtag-header-renderer">\n            <template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-hashtag-header-renderer">\n              <tp-yt-paper-tab disable-upgrade$="[[!item.tabRenderer]]" hidden="[[!item.tabRenderer]]" on-focused-changed="onFocusedChanged" class="style-scope ytd-hashtag-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab>\n            </template>\n          </tp-yt-paper-tabs>\n        </div>\n        <div id="tabs-divider" class="style-scope ytd-hashtag-header-renderer"></div>\n      </div>\n    </tp-yt-app-toolbar>\n  </tp-yt-app-header>\n</tp-yt-app-header-layout>\n');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return JRl=q},{mode:_.NT("kevlar_poly_si_batch_j078")?1:2});var ziq;var K3=function(){var q=_.N.apply(this,arguments)||this;q.expandableCustomTabRenderable=function(Z){return fYD(Z,function(){return void q.onSearchNavigate()})};
return q};
_.z(K3,_.N);K3.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
K3.prototype.onSearchNavigate=function(){this.selected=void 0};
K3.prototype.onTabsChange=function(){var q,Z=(q=this.tabs)==null?void 0:q.findIndex(function(w){var r;return w==null?void 0:(r=w.tabRenderer)==null?void 0:r.selected});
Z!==void 0&&(this.selected=Z)};
K3.prototype.onTabsActive=function(q){if(this.tabs!==void 0){var Z,w;(q=(Z=this.tabs[q.detail.selected])==null?void 0:(w=Z.tabRenderer)==null?void 0:w.endpoint)&&_.hy(this.hostElement,"yt-navigate",{endpoint:q})}};
_.My.Object.defineProperties(K3.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:hr8(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
var s_=K3;s_.prototype.onTabsChange=s_.prototype.onTabsChange;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],s_.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.Ry),_.A("design:type",Object)],s_.prototype,"ytdGridStateAwareBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],s_.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],s_.prototype,"ytdGuideStateAwareBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],s_.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Array)],s_.prototype,"tabs",void 0);_.X([_.F(),_.A("design:type",Number)],s_.prototype,"selected",void 0);_.X([_.I("tabs.*"),_.A("design:type",Object),_.A("design:paramtypes",[])],s_.prototype,"tabGroupShape",null);_.X([_.F(),_.A("design:type",Object)],s_.prototype,"expandableCustomTabRenderable",void 0);
_.X([_.I("tabs"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],s_.prototype,"tabsEnabled",null);_.X([_.g3("tabs"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],s_.prototype,"onTabsChange",null);s_=_.X([_.l({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],s_);
_.p(s_,"ytd-topic-channel-details-renderer",function(){if(ziq!==void 0)return ziq;var q=document.createElement("template");_.a(q,'\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        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ziq=q},{mode:1});var BQ6;var arC=function(){var q=_.N.apply(this,arguments)||this;q.disableGridStateAware=!1;return q};
_.z(arC,_.N);arC.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]]"}}}}}};
arC.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
arC.prototype.updateCssVars=function(){_.po(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.m6("rich_grid_max_item_width",500))+16)-16+"px"})};
var Ii=arC;Ii.prototype.updateCssVars=Ii.prototype.updateCssVars;Ii.prototype.activeChanged=Ii.prototype.activeChanged;_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],Ii.prototype,"ytdGuideStateAwareBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],Ii.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ii.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ii.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ii.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Array)],Ii.prototype,"tabs",void 0);_.X([_.F(),_.A("design:type",Boolean)],Ii.prototype,"active",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ii.prototype,"disableGridStateAware",void 0);
_.X([_.F({selector:_.vX}),_.A("design:type",Number)],Ii.prototype,"richGridItemsPerRow",void 0);_.X([_.F({selector:_.SZ}),_.A("design:type",Boolean)],Ii.prototype,"richGridMiniMode",void 0);_.X([_.fo("ytd-carousel-item-renderer"),_.A("design:type",Object)],Ii.prototype,"carousel",void 0);_.X([_.M("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ii.prototype,"activeChanged",null);
_.X([_.M("richGridItemsPerRow","richGridMiniMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ii.prototype,"updateCssVars",null);Ii=_.X([_.l({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],Ii);
_.p(Ii,"ytd-carousel-header-renderer",function(){if(BQ6!==void 0)return BQ6;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return BQ6=q},{mode:1});var nul;var QGy=_.Fr(["https://www.google-analytics.com/analytics.js"]),Eul=function(){var q=_.N.apply(this,arguments)||this;q.scriptAnalyticsAdded=!1;return q};
_.z(Eul,_.N);Eul.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var q,Z=(q=this.data)==null?void 0:q.tagManagerId;Z&&(_.Yb(Z,_.zj("GL")),i3y(Z))};
Eul.prototype.sendGoogleAnalyticsPageview=function(q){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var w=_.Ta.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(w)};
var Z=window.ga;Z("set","page",window.location.pathname);Z.l=+new Date;Z("set","forceSSL",!0);Z("create",q,"'auto'");Z("send","pageview")};
Eul.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var q=_.dX("SCRIPT");q.name="ga-analytics";var Z=_.qu(QGy);_.AI(q,Z);q.async=!0;_.E(this.hostElement).appendChild(q)};
var cU=Eul;cU.prototype.dataChanged=cU.prototype.dataChanged;_.X([_.F(),_.A("design:type",Object)],cU.prototype,"data",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cU.prototype,"dataChanged",null);cU=_.X([_.l({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],cU);
_.p(cU,"ytd-channel-metadata-renderer",function(){if(nul!==void 0)return nul;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return nul=q},{mode:1});var xFC;var TQZ;var UFD=function(){return _.N.apply(this,arguments)||this};
_.z(UFD,_.N);var knb=UFD;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],knb.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],knb.prototype,"data",void 0);knb=_.X([_.l({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],knb);
_.p(knb,"ytd-sub-feed-option-renderer",function(){if(TQZ!==void 0)return TQZ;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return TQZ=q},{mode:1});var KYC;var sGc=function(){return _.N.apply(this,arguments)||this};
_.z(sGc,_.N);sGc.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
var Ma=sGc;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ma.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ma.prototype,"ytRendererStamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ma.prototype,"data",void 0);Ma=_.X([_.l({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],Ma);
_.p(Ma,"ytd-sub-feed-selector-renderer",function(){if(KYC!==void 0)return KYC;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return KYC=q},{mode:1});var Iru=function(){return _.N.apply(this,arguments)||this};
_.z(Iru,_.N);
Iru.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}}}}};
var Fj=Iru;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Fj.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Fj.prototype,"data",void 0);Fj=_.X([_.l({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Fj);
_.p(Fj,"ytd-browse-feed-actions-renderer",function(){if(xFC!==void 0)return xFC;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return xFC=q},{mode:1});var cRu;var M7l;var FYq=function(){return _.N.apply(this,arguments)||this};
_.z(FYq,_.N);FYq.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
var Na=FYq;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Na.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Na.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Na.prototype,"data",void 0);Na=_.X([_.l({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Na);
_.p(Na,"ytd-mini-channel-renderer",function(){if(M7l!==void 0)return M7l;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return M7l=q},{mode:1});var NQc;var lr8=function(){return _.N.apply(this,arguments)||this};
_.z(lr8,_.N);lr8.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
var lv=lr8;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],lv.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],lv.prototype,"data",void 0);lv=_.X([_.l({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],lv);
_.p(lv,"ytd-vertical-channel-section-renderer",function(){if(NQc!==void 0)return NQc;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return NQc=q},{mode:1});var Gn6=function(){return _.N.apply(this,arguments)||this};
_.z(Gn6,_.N);Gn6.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
var Gh=Gn6;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Gh.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Gh.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Gh.prototype,"data",void 0);Gh=_.X([_.l({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Gh);
_.p(Gh,"ytd-browse-secondary-contents-renderer",function(){if(cRu!==void 0)return cRu;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
return cRu=q},{mode:1});var pAl;var XAZ=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};q.notActive=!1;q.isConstrainedList=!1;return q};
_.z(XAZ,_.N);_.e=XAZ.prototype;
_.e.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]]"}}}},"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}}}}};
_.e.getPath=function(q,Z){var w="data.tabs.#"+Z+".";q.tabs[Z].tabRenderer?w+="tabRenderer.":q.tabs[Z].expandableTabRenderer&&(w+="expandableTabRenderer.");return w+"content.sectionListRenderer"};
_.e.computeDisplayedContent=function(q){this.unlinkPaths("content");if(q&&q.tabs)for(var Z=q.tabs.length,w=0;w<Z;w++){var r=q.tabs[w].tabRenderer||q.tabs[w].expandableTabRenderer;if(r.selected&&r.content)return this.linkPaths("content",this.getPath(q,w)),r.content}return null};
_.e.computeHasSecondaryColumnData=function(q){return!!q&&!!q.secondaryContents};
_.e.onRetrieveLocation=function(q,Z){Z.locationRetrieved(Z.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);q.stopPropagation()};
_.e.onYtServiceRequestSent=function(q,Z){_.b("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(Z)};
_.e.onYtServiceRequestCompleted=function(q,Z){_.b("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(Z)};
_.e.onReplaceFeedContentAction=function(q){if(!_.b("replace_feed_content_action_killswitch")&&!this.notActive){var Z;(q=(Z=_.J(q,VUF))==null?void 0:Z.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(q)}};
_.e.handleServiceRequestActions=function(q){if(q=q.actions){q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var w=void 0;((w=_.J(Z,VUF))==null?0:w.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.J(Z,VUF).items)}}};
var p3=XAZ;p3.prototype.onYtServiceRequestCompleted=p3.prototype.onYtServiceRequestCompleted;p3.prototype.onYtServiceRequestSent=p3.prototype.onYtServiceRequestSent;p3.prototype.onRetrieveLocation=p3.prototype.onRetrieveLocation;_.X([_.U(_.Ry),_.A("design:type",Object)],p3.prototype,"ytdGridStateAwareBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],p3.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],p3.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],p3.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],p3.prototype,"data",void 0);_.X([_.F({computed:"computeDisplayedContent(data)"}),_.A("design:type",Object)],p3.prototype,"content",void 0);
_.X([_.F({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],p3.prototype,"hasSecondaryColumnData",void 0);_.X([_.F({value:function(){return window.outerHeight>1024?3:2}}),
_.A("design:type",Number)],p3.prototype,"initialCount",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],p3.prototype,"pageSubtype",void 0);_.X([_.fo("ytd-section-list-renderer"),_.A("design:type",Object)],p3.prototype,"listRenderer",void 0);_.X([_.F(),_.A("design:type",Object)],p3.prototype,"notActive",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],p3.prototype,"isConstrainedList",void 0);
_.X([_.F(),_.A("design:type",String)],p3.prototype,"responsiveSizing",void 0);_.X([_.m2("yt-retrieve-location"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],p3.prototype,"onRetrieveLocation",null);_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],p3.prototype,"onYtServiceRequestSent",null);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],p3.prototype,"onYtServiceRequestCompleted",null);p3=_.X([_.l({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],p3);
_.p(p3,"ytd-two-column-browse-results-renderer",function(){if(pAl!==void 0)return pAl;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return pAl=q},{mode:2});var mFb;var ARZ;var frq=function(){var q=_.N.apply(this,arguments)||this;q.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"]);q.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"]);q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return q};
_.z(frq,_.N);_.e=frq.prototype;_.e.attached=function(){this.requestElementsPerRow()};
_.e.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_]]"}}}}}};
_.e.onUpdateElementsPerRowAction=function(q){q&&this.elementsPerRow!==q&&(this.elementsPerRow=q)};
_.e.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.e.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.e.computeAlertStyle_=function(q){return q};
_.e.observerElementsPerRow=function(){this.elementsPerRow&&_.po(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.e.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.e.requestElementsPerRow=function(){_.hy(this.hostElement,"yt-request-elements-per-row")};
var Xj=frq;Xj.prototype.onIsVisibleChanged_=Xj.prototype.onIsVisibleChanged_;Xj.prototype.observerElementsPerRow=Xj.prototype.observerElementsPerRow;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Xj.prototype,"actionHandlerBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],Xj.prototype,"data",void 0);_.X([_.F({value:6,reflectToAttribute:!0}),_.A("design:type",Number)],Xj.prototype,"elementsPerRow",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Xj.prototype,"wrapButtons",void 0);_.X([_.F({value:_.zj("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.A("design:type",Boolean)],Xj.prototype,"isMusic",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.A("design:type",String)],Xj.prototype,"alertStyle",void 0);_.X([_.F({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.A("design:type",Function)],Xj.prototype,"dismissBoundButtonTap_",void 0);_.X([_.F({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.A("design:type",Function)],Xj.prototype,"acceptBoundButtonTap_",void 0);_.X([_.M("elementsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Xj.prototype,"observerElementsPerRow",null);_.X([_.M("data.isVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Xj.prototype,"onIsVisibleChanged_",null);Xj=_.X([_.dx({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Xj);
_.p(Xj,"yt-alert-with-actions-renderer",function(){if(ARZ===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;mFb===void 0&&(mFb=document.createElement("template"));var r=mFb;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);ARZ=q}q=ARZ;return q},{mode:2});_.xc(_.xl(function(q){var Z=_.Iw(),w=function(){return q.data().canvasPromoData},r=function(){var C;
return(C=q.data().bannerHeight)!=null?C:48};
_.EM(Z,function(){var C;return(C=q.data())==null?void 0:C.rendererContext},void 0,void 0,void 0,!0);
var Y={};return _.u("yt-personal-greeting-view-model",{el:Z,class:_.GL("ytPersonalGreetingViewModelHost",q.className),style:_.y1({height:(0,_.wH)(function(){return r()})})},_.u(_.Hx,{data:function(){return q.data().avatar}},{decoratedAvatarViewModel:function(C){return _.u(_.tO,{data:C.data,
className:_.GL("ytPersonalGreetingViewModelAvatar")})}}),_.u(_.r6,{text:function(){var C;
return(w==null?void 0:(C=w())==null?void 0:C.headline)||q.data().greeting},
className:_.GL("ytPersonalGreetingViewModelHeadline",(Y.ytPersonalGreetingViewModelHeadlineSmall=function(){return r()===48},Y))}))},"Hh"),"yt-personal-greeting-view-model",{props:{data:_.zG,
className:_.zG}});var DFC=function(){var q=_.N.apply(this,arguments)||this;q.hidden=!1;q.isConstrainedList=!1;q.darkerDarkTheme=_.b("web_darker_dark_theme");q.responsiveSizing="COMPACT";q.attachedPlayers=_.b("kevlar_channel_trailer_multi_attach")?[]:void 0;q.player=null;q.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return q};
_.z(DFC,_.N);_.e=DFC.prototype;
_.e.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:{c4TabbedHeaderRenderer:{component:"ytd-c4-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[fluidWidth]]"},noInjection:!0},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},hashtagHeaderRenderer:{component:"ytd-hashtag-header-renderer",properties:{active:"[[active]]",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}}}}};
_.e.created=function(){var q=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){q.disposeMastheadAd()}]};
_.e.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new Qb6(this.refresh,this.contents))};
_.e.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.e.activeChanged=function(){var q=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=q)};
_.e.tabsChanged=function(){var q=this,Z,w,r,Y;if(this.pageSubtype==="channels"||_.b("kevlar_tab_gestures_for_tabbed_header_data")&&(((Z=this.data)==null?0:(w=Z.header)==null?0:w.c4TabbedHeaderRenderer)||((r=this.data)==null?0:(Y=r.header)==null?0:Y.carouselHeaderRenderer)))this.tabGestures=new Ij(this.contents,this.contents,this.hostElement,this.header,function(H){q.ytdReduxBehavior.dispatch(H)});
var C,d,O;Z=(C=this.data)==null?void 0:(d=C.contents)==null?void 0:(O=d.twoColumnBrowseResultsRenderer)==null?void 0:O.tabs;this.header&&this.header.firstChild&&(this.header.firstChild.tabs=Z);this.tabGestures&&this.tabGestures.tabsChanged(Z)};
_.e.channelIdChanged=function(){if(this.tabGestures){var q,Z,w,r=this.tabGestures,Y=(q=this.data)==null?void 0:(Z=q.header)==null?void 0:(w=Z.c4TabbedHeaderRenderer)==null?void 0:w.channelId;Y&&Y!==r.currentChannelId&&(r.scrollPositionForTabs.clear(),r.currentChannelId=Y,r.lastVisitedTabScrollPosition=void 0,r.tabsStartAtInPx=0)}};
_.e.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.e.engagementPanelsChanged=function(){var q=_.t().resolve(_.Of);if(q){if(this.engagementPanels)for(var Z=_.P(this.engagementPanels),w=Z.next();!w.done;w=Z.next()){var r=void 0;(w=(r=w.value.identifier)==null?void 0:r.tag)&&q.panelMap.delete(w)}this.engagementPanels=[];var Y;Z=_.P(((Y=this.data)==null?void 0:Y.panels)||[]);for(Y=Z.next();!Y.done;Y=Z.next()){Y=_.J(Y.value,_.mP8);var C=w=void 0,d=void 0,O=void 0;if(r=((w=Y)==null?void 0:w.targetId)||((C=Y)==null?void 0:C.panelIdentifier)||((d=Y)==null?
void 0:(O=d.identifier)==null?void 0:O.tag))C=w=void 0,(C=(w=q).registerPanelContent)==null||C.call(w,r,{engagementPanelSectionListRenderer:Y}),this.engagementPanels.push(Y)}}};
_.e.onStampFinished=function(){var q=this;_.I_(this,function(){if(q.tabGestures){var Z=q.tabGestures;if(Z.scrollPositionNeedsUpdate){var w=_.t().resolve(_.Gj(_.U1)),r;if((r=Z.selectedTab)!=null&&r.title&&w&&(r=w.getCurrentPage())){if(Z.scrollPositionForTabs.has(Z.selectedTab.title)){var Y,C;w=(C=(Y=w.getCurrentPage())==null?void 0:Y.clientHeight)!=null?C:0;Y=Z.scrollPositionForTabs.get(Z.selectedTab.title);r.setScrollTop(Y);w>Y+100&&(Z.scrollPositionNeedsUpdate=!1)}else r.setScrollTop(Math.min(Z.lastVisitedTabScrollPosition!==
void 0?Z.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,Z.tabsStartAtInPx)),Z.scrollPositionNeedsUpdate=!1;Z.ytdReduxDispatch(ZTV(!1))}}}})};
_.e.loadPage_=function(q){this.initCsi();q&&(this.data=q);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.e.getTitle=function(q){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",q))return this.get("microformat.microformatDataRenderer.title",q);if(this.get("header.c4TabbedHeaderRenderer.title",q))return this.get("header.c4TabbedHeaderRenderer.title",q);if(this.get("header.feedTabbedHeaderRenderer.title",q))return _.kO(this.get("header.feedTabbedHeaderRenderer.title",q));if(this.get("header.interactiveTabbedHeaderRenderer.title",q))return this.get("header.interactiveTabbedHeaderRenderer.title",
q);if(this.get("header.hashtagHeaderRenderer.hashtag",q))return _.kO(this.get("header.hashtagHeaderRenderer.hashtag",q));if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",q))return _.kO(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
q));var Z,w;return _.b("enable_page_header_page_title")&&(q==null?0:(Z=q.header)==null?0:(w=Z.pageHeaderRenderer)==null?0:w.pageTitle)?q.header.pageHeaderRenderer.pageTitle:""};
_.e.updateTitle=function(q){_.hy(this.hostElement,"yt-update-title",this.getTitle(q))};
_.e.initCsi=function(){_.pU7(this.pageSubtype||"browse",["ol","cpt"])};
_.e.getPlayer=function(){if(_.b("kevlar_channel_trailer_multi_attach")){for(var q=_.P(this.attachedPlayers),Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,Z.isConnected||_.EJ(this.hostElement,Z))return Z;return null}return this.player};
_.e.getPlayerContainer=function(){return null};
_.e.onPlayerAttached=function(q,Z){_.b("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(Z):this.player=Z};
_.e.onPlayerDetached=function(q,Z){_.b("kevlar_channel_trailer_multi_attach")?(q=this.attachedPlayers.indexOf(Z),q<0||this.attachedPlayers.splice(q,1)):this.player=null};
_.e.getServiceTrackingParams=function(){var q,Z;return((q=this.data)==null?void 0:(Z=q.responseContext)==null?void 0:Z.serviceTrackingParams)||[]};
_.e.setMastheadAd=function(q){q&&q.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=q&&q.mastheadAd};
_.e.dataChanged=function(){var q=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.khF();_.I_(this,function(){_.i5(q.hostElement,"ytd-update-grid-state-action")})};
_.e.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.e.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var q=this.data.alerts;return q&&q.find(function(Z){return!!Z.alertWithActionsRenderer})}};
_.e.computeGreetingData=function(){if(this.data&&this.data.alerts){var q=this.data.alerts;return q&&q.find(function(Z){return!!Z.personalGreetingViewModel})}};
_.e.computeHasC4TabbedHeaderRenderer=function(q){var Z;return!!(q==null?0:(Z=q.header)==null?0:Z.c4TabbedHeaderRenderer)};
_.e.computeHasMemberHubProfileRenderer=function(q){var Z;return!!(q==null?0:(Z=q.header)==null?0:Z.memberHubProfileRenderer)};
_.e.handleAlertCommand=function(q){this.get("alertCommand.alert.alertWithActionsRenderer",q)&&(q=_.J(q,OTu),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",q.alert))};
_.e.handleYtPlaylistDeletionRedirect=function(q){q=this.get("playlistDeletionRedirectCommand.redirectEndpoint",q);_.hy(this.hostElement,"yt-navigate",{endpoint:q})};
_.e.computeFluidWidth=function(q,Z,w){if(Z==="mini_app"||w)return!0;var r,Y,C;q=q==null?void 0:(r=q.contents)==null?void 0:(Y=r.twoColumnBrowseResultsRenderer)==null?void 0:(C=Y.tabs)==null?void 0:C.find(function(H){var L;return H==null?void 0:(L=H.tabRenderer)==null?void 0:L.selected});
if(!q)return!1;var d,O;return!!((d=q.tabRenderer)==null?0:(O=d.content)==null?0:O.richGridRenderer)&&!["channel","channels","playables"].includes(Z)};
_.e.computeHeaderFluidWidth=function(q){return q==="hashtag-landing-page"};
_.e.computeHasSidebar=function(q){var Z;return!!(q.sidebar||((Z=q.header)==null?0:Z.playlistHeaderRenderer))};
_.e.computeHasPageHeaderSidebar=function(q){var Z,w;return!!((Z=q.header)==null?0:(w=Z.pageHeaderRenderer)==null?0:w.enableSidebarView)};
_.e.computeUseUnifiedShowPageLayout=function(q){if(!q||this.pageSubtype!=="show"||!q.sidebar||!q.sidebar.playlistSidebarRenderer)return!1;q=q.sidebar.playlistSidebarRenderer;if(!q.items)return!1;for(var Z=0;Z<q.items.length;Z++)if(_.J(q.items[Z],uCF)){var w=void 0;return((w=_.J(q.items[Z],uCF))==null?void 0:w.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.e.computeIsConstrainedList=function(q){return _.b("web_enable_constrained_list_subscriptions_channels")&&q==="subscriptions-channels"};
_.e.computeResponsiveSizing=function(q){return q==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.My.Object.defineProperties(DFC.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var q,Z;return((q=this.data)==null?0:(Z=q.header)==null?0:Z.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var q,Z;if(!((q=this.data)==null?0:(Z=q.sidebar)==null?0:Z.playlistSidebarRenderer))return!1;var w;return(w=this.data)!=null&&w.header?!1:!0}}});
_.My.Object.defineProperties(DFC,{template:{configurable:!0,enumerable:!0,get:function(){if(TL6===void 0){var q=document.createElement("template");_.a(q,'\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]]" disable-upgrade$="[[!hasPageHeaderSidebar]]" display-as-sidebar="" hidden="[[!hasPageHeaderSidebar]]">\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);TL6=q}q=TL6;return q}}});
var mi=DFC;mi.prototype.dataChanged=mi.prototype.dataChanged;mi.prototype.onPlayerDetached=mi.prototype.onPlayerDetached;mi.prototype.onPlayerAttached=mi.prototype.onPlayerAttached;mi.prototype.onStampFinished=mi.prototype.onStampFinished;mi.prototype.engagementPanelsChanged=mi.prototype.engagementPanelsChanged;mi.prototype.scrollAtTopChanged=mi.prototype.scrollAtTopChanged;mi.prototype.channelIdChanged=mi.prototype.channelIdChanged;mi.prototype.tabsChanged=mi.prototype.tabsChanged;
mi.prototype.activeChanged=mi.prototype.activeChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],mi.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.Et),_.A("design:type",Object)],mi.prototype,"ytdOpenPopupBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],mi.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],mi.prototype,"ytdReduxBehavior",void 0);
_.X([_.U(_.kV.YtPageBehavior),_.A("design:type",Object)],mi.prototype,"ytPageBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],mi.prototype,"ytdGuideStateAwareBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],mi.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],mi.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],mi.prototype,"hidden",void 0);_.X([_.F(),_.A("design:type",Object)],mi.prototype,"mastheadAdData",void 0);_.X([_.F({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.A("design:type",Object)],mi.prototype,"alertBannerData",void 0);_.X([_.F({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.A("design:type",Object)],mi.prototype,"greetingData",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],mi.prototype,"pageSubtype",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasC4TabbedHeaderRenderer(data)"}),_.A("design:type",Boolean)],mi.prototype,"hasC4TabbedHeaderRenderer",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.A("design:type",Boolean)],mi.prototype,"hasMemberHubProfileRenderer",void 0);
_.X([_.F({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],mi.prototype,"hasSidebar",void 0);_.X([_.F({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],mi.prototype,"hasPageHeaderSidebar",void 0);_.X([_.F({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],mi.prototype,"roundedContainer",void 0);
_.X([_.F({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],mi.prototype,"useUnifiedShowPageLayout",void 0);_.X([_.F({computed:"computeIsConstrainedList(pageSubtype)"}),_.A("design:type",Object)],mi.prototype,"isConstrainedList",void 0);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],mi.prototype,"usePlaylistHeaderRenderer",null);
_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],mi.prototype,"useOldPlaylistSidebarRenderer",null);_.X([_.F({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.A("design:type",Boolean)],mi.prototype,"fluidWidth",void 0);_.X([_.F({selector:function(q){return q.ui.scrollAtTop}}),
_.A("design:type",Boolean)],mi.prototype,"scrollAtTop",void 0);_.X([_.F({selector:_.tx7}),_.A("design:type",Boolean)],mi.prototype,"tabGesturesIsActive",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],mi.prototype,"darkerDarkTheme",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.A("design:type",Boolean)],mi.prototype,"disableHeaderFluidWidth",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.A("design:type",String)],mi.prototype,"responsiveSizing",void 0);_.X([_.fo("ytd-two-column-browse-results-renderer"),_.A("design:type",HTMLElement)],mi.prototype,"contents",void 0);_.X([_.fo("#header"),_.A("design:type",HTMLElement)],mi.prototype,"header",void 0);_.X([_.fo("ytd-refresh"),_.A("design:type",Object)],mi.prototype,"refresh",void 0);
_.X([_.M("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mi.prototype,"activeChanged",null);_.X([_.M("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mi.prototype,"tabsChanged",null);_.X([_.M("data.header.c4TabbedHeaderRenderer.channelId"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mi.prototype,"channelIdChanged",null);
_.X([_.M("scrollAtTop"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mi.prototype,"scrollAtTopChanged",null);_.X([_.F(),_.A("design:type",Object)],mi.prototype,"engagementPanels",void 0);_.X([_.M("data.panels"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mi.prototype,"engagementPanelsChanged",null);
_.X([_.m2("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mi.prototype,"onStampFinished",null);_.X([_.m2("yt-player-attached"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Element]),_.A("design:returntype")],mi.prototype,"onPlayerAttached",null);_.X([_.m2("yt-player-detached"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Element]),_.A("design:returntype")],mi.prototype,"onPlayerDetached",null);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mi.prototype,"dataChanged",null);mi=_.X([_.l({is:"ytd-browse"})],mi);_.Wv.registerService(_.eCO,mi);
_.J1();
}catch(e){_._DumpException(e)}
try{
_.b6("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 WqC=function(q,Z){return q<Z?-1:q>Z?1:0},Nm=function(q,Z){var w=0;
q=(0,_.ii)(String(q)).split(".");Z=(0,_.ii)(String(Z)).split(".");for(var r=Math.max(q.length,Z.length),Y=0;w==0&&Y<r;Y++){var C=q[Y]||"",d=Z[Y]||"";do{C=/(\d*)(\D*)(.*)/.exec(C)||["","","",""];d=/(\d*)(\D*)(.*)/.exec(d)||["","","",""];if(C[0].length==0&&d[0].length==0)break;w=WqC(C[1].length==0?0:parseInt(C[1],10),d[1].length==0?0:parseInt(d[1],10))||WqC(C[2].length==0,d[2].length==0)||WqC(C[2],d[2]);C=C[3];d=d[3]}while(w==0)}return w},lj=function(q){if(!q)return"browse";
var Z=q.page,w=q.url,r,Y,C,d=(r=q.response)==null?void 0:(Y=r.responseContext)==null?void 0:(C=Y.webResponseContextExtensionData)==null?void 0:C.pageTheme;if(d)Z=d.toLowerCase().replace(/_/g,"-");else if(Z!=="watch"){var O,H;if((Z==="browse"||Z==="settings")&&((O=q.response)==null?0:(H=O.sidebar)==null?0:H.settingsSidebarRenderer))Z="WEB_PAGE_TYPE_SETTINGS";else{var L,S;Z==="browse"&&((L=q.response)==null?0:(S=L.metadata)==null?0:S.channelMetadataRenderer)?Z="channel":w&&(Z=_.jye(w)||Z)}}return Z},
ocV=function(){var q=_.Eq("yt.aba.att");
return q?q:_.mK.instance!==void 0?_.mK.instance.qDQ.bind(_.mK.instance):null},uAl=function(q,Z){var w;
return _.V(function(r){return(w=ocV())?r.return(w(q,Z,6E4)):r.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},Lqq=function(q,Z,w,r,Y){Z=Z===void 0?[]:Z;
Y=Y?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:Y}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.G7(q),dialogMessages:Z.map(function(C){return _.G7(C)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.G7(w),serviceEndpoint:Y}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.G7(r)}}}}}},SL7=function(q){var Z=!!_.nq().queueProxy;
var w,r,Y;q=q==null?void 0:(w=q.response)==null?void 0:(r=w.currentVideoEndpoint)==null?void 0:(Y=r.watchEndpoint)==null?void 0:Y.playlistId;return!(!Z&&!q)},vcF=function(q,Z){var w=_.qk();
if(SL7(q))return w.playlistWatchPageActivation=!0;switch(lj(Z)){case "yts-products":return w.productDetailsPageActivation=!0;case "mini_app":return w.miniAppPageActivation=!0;case "playables":return w.playablesDestPageActivation=!0;default:return!1}},jQu=function(q,Z,w){for(var r=typeof q==="string"?q.split(""):q,Y=q.length-1;Y>=0;--Y)Y in r&&Z.call(w,r[Y],Y,q)},tpu=function(q,Z){Z=_.jTI(q,Z);
Z>=0&&_.bXX(q,Z)},RK6=function(q){return Array.prototype.concat.apply([],arguments)},bn8=function(q){var Z=0;
Z=Z===void 0?0:Z;if(!_.p9(q))throw _.wW("uint64");var w=typeof q;switch(Z){case 512:switch(w){case "string":return _.ng9(q);case "bigint":return String((0,_.Py)(64,q));default:return _.BWj(q)}case 1024:switch(w){case "string":return _.Qh2(q);case "bigint":return _.kg((0,_.Py)(64,q));default:return _.ae9(q)}case 0:switch(w){case "string":return _.ng9(q);case "bigint":return _.kg((0,_.Py)(64,q));default:return _.zmz(q)}default:return _.F7(Z,"Unknown format requested type for int64")}},JEu=function(q){q!=
null&&(q=q.JSC$6688_value_||"",q=typeof q==="string"?q:new Uint8Array(q));
return q},zKu=function(q){for(var Z=_.Ta.apply(1,arguments),w=q[0],r=0;r<q.length-1;r++)w+=String(Z[r]),w+=q[r+1];
Z=document.implementation.createHTMLDocument("");r=Z.createElement("style");Z.head.appendChild(r);Z=r.sheet;Z.insertRule(w,0);if(Z.cssRules.length===1&&(w=Z.cssRules[0],w instanceof CSSStyleRule))return new _.ig(w.cssText.replace(/</g,"\\3C "))},BaS=function(q,Z){if(/-[a-z]/.test(Z))return null;
if(_.Trp&&q.dataset){if(_.VOz()&&!(Z in q.dataset))return null;q=q.dataset[Z];return q===void 0?null:q}return q.getAttribute("data-"+_.es(Z))},nc7=function(){var q=afl;
_.Eq("yt.ads.biscotti.getId_")||_.IR("yt.ads.biscotti.getId_",q)},QQc=function(q){_.IR("yt.ads.biscotti.lastId_",q)},xx7=function(){var q={};
for(_.oR=new EcZ(q.handleError===void 0?_.Rw:q.handleError,q.logEvent===void 0?_.vO:q.logEvent);_.up.length>0;)switch(q=_.up.shift(),q.type){case "ERROR":_.oR.logError(q.payload);break;case "EVENT":_.oR.logEvent(q.eventType,q.payload)}},TaC=function(q,Z,w){return _.Tt2(function(r){return w?r.userIdentifier!==void 0&&!q.includes(r.userIdentifier)&&w.includes(r.publicName):r.userIdentifier!==void 0&&!q.includes(r.userIdentifier)},Z)},Ux7=function(q){var Z,w;
return _.V(function(r){if(r.nextAddress==1)return Z=_.CY("YtIdbMeta hasAnyMeta other"),_.W(r,_.Tt2(function(Y){return Y.userIdentifier!==void 0&&Y.userIdentifier!==Z},q),2);
w=r.yieldResult;return r.return(w.length>0)})},Kqb=function(q,Z){kLq||(kLq=_.v5.addLowPriorityJob(function(){var w,r,Y,C,d;
return _.V(function(O){switch(O.nextAddress){case 1:return _.W(O,_.cg(),2);case 2:w=O.yieldResult;if(!w)return O.return();r=!0;_.d9(O,3);return _.W(O,TaC(q,w,Z),5);case 5:Y=O.yieldResult;if(!Y.length){r=!1;O.jumpTo(6);break}C=Y[0];return _.W(O,_.Ek(C.actualName),7);case 7:return _.W(O,_.Uk(C.actualName,w),6);case 6:_.QL(O,4);break;case 3:d=_.o3(O),_.LY(d),r=!1;case 4:_.v5.cancelJob(kLq),kLq=0,r&&Kqb(q,Z),_.ub(O)}})}))},sQZ=function(){var q;
return _.V(function(Z){return Z.nextAddress==1?_.W(Z,_.cg(),2):(q=Z.yieldResult)?Z.return(Ux7(q)):Z.return(!1)})},IfV=function(q){var Z=100;
Z=Z===void 0?500:Z;var w,r,Y,C,d,O;return _.V(function(H){return H.nextAddress==1?(w=_.zj("INNERTUBE_CONTEXT_CLIENT_NAME",0),r=[w,(0,_.lp)()-2592E6],Y=[w,(0,_.lp)()],C=IDBKeyRange.bound(r,Y),_.W(H,_.YLj(q),2)):H.nextAddress!=3?(d=H.yieldResult,O=[],_.W(H,_.TO(d,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(L){O.length=0;return _.GO(L.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:C,direction:"prev"},function(S){if(S.getValue()&&O.length<Z)return O.push(S.getValue()),
S.delete().then(function(){return S.continue()})})}),3)):H.return(O)})},cEb=function(){var q;
return _.V(function(Z){if(Z.nextAddress==1)return _.W(Z,_.cg(),2);q=Z.yieldResult;if(!q||!_.Pg()&&!_.b("nwl_init_require_datasync_id_killswitch")||!_.JEe())return Z.jumpTo(0);_.Baj=!0;_.zKe.isNwlInitialized=_.Baj;return _.W(Z,_.lj7().awaitInitialization(),0)})},G_=function(q,Z){_.lf1[q]=!0;
var w=_.Xw();w&&w.publish.apply(w,arguments);_.lf1[q]=!1},FqZ=function(){if(_.jAI()&&!Mpq){var q=function(w){w=w.data;
if(w.op==="serializedGelBatch"){var r=_.GRT.get(w.key);r&&(_.Xej(w.serializedBatch,r.client,r.resolve,r.networklessOptions,r.isIsolated,r.useVSSEndpoint,r.dangerousLogToVisitorSession,r.requestsOutstanding),_.GRT.delete(w.key))}},Z=_.vlz();
Z&&(Z.addEventListener("message",q),Z.onerror=function(){_.GRT.clear()});
Mpq=!0}},pE=function(){this.relativeTimeStart_=_.hW()},Nau=function(q,Z){q!=null&&this.append.apply(this,arguments)},lf8=function(){return _.Bk("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},GLl=function(q,Z,w){w=w===void 0?!1:w;
var r,Y,C,d,O;return _.V(function(H){switch(H.nextAddress){case 1:_.$r("SOCS",q,34128E3,"youtube.com",!0);if(_.$Z)return Y=fetch(Z,{method:"POST",mode:_.Kp(Z),credentials:_.kQ(Z),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),C=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Kp("/upgrade_visitor_cookie?eom=1"),credentials:_.kQ("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.W(H,Promise.all([Y,C]).then(function(L){return L[1]}),5);
fetch(Z,{method:"POST",mode:_.Kp(Z),credentials:_.kQ(Z),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.W(H,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Kp("/upgrade_visitor_cookie?eom=1"),credentials:_.kQ("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:r=H.yieldResult;H.jumpTo(3);break;case 5:r=d=H.yieldResult;case 3:if(!r.ok)throw Error("nf");return _.W(H,r.text(),7);case 7:O=H.yieldResult,
!O.includes('"state_switch":true')&&!w||O.includes("skip_reload_for_test")||window.location.reload(),_.ub(H)}})},pJu=function(q){return _.V(function(Z){return Z.nextAddress==1?_.W(Z,GLl(q.socsCookie,q.savePreferenceUrl,!0),2):Z.return()})},XJc=function(q){return _.V(function(Z){return Z.nextAddress==1?_.W(Z,GLl(q.socsCookie,q.savePreferenceUrl),2):Z.return()})},AES=function(q){q=q.xhr.responseText;
if(!_.Vj(q,")]}'"))throw new XF;q=JSON.parse(q.substr(4));if((q.type||1)>1)throw new XF;q=q.id;QQc(q);mE=_.EN(q);mx7(18E5,2);return q},DxF=function(q,Z){Z=new ffV(Z);
QQc("");mE=_.mn7(Z);q>0&&mx7(12E4,q-1);throw Z;},mx7=function(q,Z){_.hf(function(){_.l7z().then(AES,function(w){return DxF(Z,w)}).thenCatch(_.Pr)},q)},afl=function(){var q=_.ijT();
if(q!==void 0)return _.TX(q);mE||(mE=_.l7z().then(AES).thenCatch(function(Z){return DxF(2,Z)}));
return mE},hKb=function(){var q=document;
return _.KX(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(Z){return"on"+Z.toLowerCase()in q})},yE8=function(q){q.addEventListener("click",function(Z){var w=Z.target;
w&&w.getAttribute("href")&&(w=w.getAttribute("href"),_.NK(window,w,"_blank"),Z.preventDefault(),Z.stopImmediatePropagation())})},in6=function(q){var Z,w,r,Y=(r=(w=((Z=q.mainDownloadsListEntity)!=null?Z:{})[_.t1O])==null?void 0:w.refresh)!=null?r:"",C;
q=(C=q.refresh)==null?void 0:C[Y];Y=q!=null?q:{};return(Y==null?0:Y.refreshTime)?Number(Y==null?void 0:Y.refreshTime):0},gcl=function(q,Z){var w=_.WX(q);
return Z.every(function(r){var Y;r=r==null?void 0:(Y=r.playbackDataEntity)==null?void 0:Y.key;if(!r)return!1;Y=_.yG(_.fR(r).entityId,"mainVideoEntity");return!!w[Y]})},q1V=function(q){q=_.VR(q.entities);
return _.kge(q).length},Z67=function(q,Z){if(Z){var w;
q=(w=_.iI(q.entities,"downloadQualityPickerEntity",Z))!=null?w:void 0}else q=void 0;return q},Y1V=function(){weV||(_.T9=_.LaN,weV=new r7D);
return weV},$0u=function(q){var Z=document.getElementsByTagName("ytd-enforcement-message-view-model");
Z.length===0||getComputedStyle(Z[0]).display==="none"?q(0,"p.h_"):q(1,"p.h_")},Ah=function(q){var Z,w;
(q=(w=_.J(q==null?void 0:q.commandMetadata,_.XK))==null?void 0:w.url)&&(Z=_.jye(q));return Z},eIl=function(){fE=0;
var q=[_.r3(!0)];DR&&_.i5(DR,"yt-window-resized",q)},Cll=function(){fE||(fE=_.v5.addLowPriorityJob(eIl,200))},d0u=function(){hh=0;
Plu=_.dKJ(document);var q=[Plu];DR&&_.i5(DR,"yt-window-scrolled",q)},Vjl=function(){hh||(hh=_.v5.addLowPriorityJob(d0u,200))},H6l=function(q){q=q===void 0?null:q;
O6C.push(_.Fw(window,"resize",Cll));O6C.push(_.Fw(window,"scroll",Vjl));q&&(DR=q)},Wjy=function(q){_.V(function(Z){if(Z.nextAddress==1)return _.W(Z,q.delete("yt-appshell-assets"),2);
_.ub(Z)})},oBb=function(q){return _.xr((0,_.WX7)(),q)},LjV=function(){var q;
_.V(function(Z){return Z.nextAddress==1?_.W(Z,yJ.getInstance(),2):(q=Z.yieldResult)?_.W(Z,u6F(q),0):Z.jumpTo(0)})},vB8=function(){var q;
_.V(function(Z){return Z.nextAddress==1?_.W(Z,ij.getInstance(),2):(q=Z.yieldResult)?_.W(Z,S1Z(q),0):Z.jumpTo(0)})},jkD=function(q){Wjy(q);
LjV();vB8()},tjV=function(q){var Z,w;
return _.V(function(r){if(r.nextAddress==1)return _.W(r,_.fp2(q),2);if(Z=r.yieldResult){var Y;a:{if(Z.headers&&(Y=Z.headers.get("date"))&&(Y=Date.parse(Y),!isNaN(Y))){Y=Math.round((0,_.lp)()-Y);break a}Y=-1}w=Y;if(w>-1)return r.return(w)}return r.return(-1)})},RIZ=function(){var q=_.$1.caches,Z=_.BF("IS_SHELL_LOAD"),w,r;
_.V(function(Y){if(Y.nextAddress==1)return w=-1,Z?_.W(Y,tjV(q),3):(r=_.LR(),w=Math.round((0,_.lp)()-r),Y.jumpTo(2));Y.nextAddress!=2&&(w=Y.yieldResult);w>=0&&w<2147483648&&_.RV({appInstallDataAgeMs:w});_.ub(Y)})},b6y=function(q){var Z=_.UJ(_.$1.location.href),w={};
"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(r){var Y=Z.JSC$7906_queryData_.getValues(r);if(Y==null?0:Y.length)w[r]=Y});
return _.ZM(q,new Map(Object.entries(w)))},J7S=function(q){q=q.match(/(.*)::.*::.*/);
if(q!==null)return q[1]},zIS=function(q){if(_.HL2()){var Z=Object.keys(window.localStorage);
Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next()){w=w.value;var r=J7S(w);r===void 0||q.includes(r)||self.localStorage.removeItem(w)}}},B6D=function(){if(!_.HL2())return!1;
var q=_.CY(),Z=Object.keys(window.localStorage);Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next())if(w=J7S(w.value),w!==void 0&&w!==q)return!0;return!1},adl=function(q){return _.T_("NotificationsDisabled",q)},nBq=function(){return Notification.permission!="granted"?Promise.resolve():_.RPc().then(function(q){return q?q.pushManager.getSubscription().then(function(Z){if(Z)return Promise.resolve();
Z={userVisibleOnly:!0,applicationServerKey:_.q7("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return q.pushManager.subscribe(Z).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},Qku=function(q){return _.RPc().then(function(Z){if(!Z||!Z.active)return Promise.reject(new _.df("serviceworker.postMessage",q,Z));
try{return Z.active.postMessage(q),Promise.resolve()}catch(w){return Promise.reject(w)}})},EBq=function(){Qku({type:"notifications_register",
data:_.zj("ID_TOKEN")})},T6l=function(){var q={isWide:_.Yr.get("wide","0")==="1"},Z=_.Hd();
if(Z=Z.getFlag(165)||Z.getFlag(174))q.theme=_.RJ(!0);if(_.xO2()){var w=_.tr()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";q.systemTheme=w}!Z&&_.b("parent_tools_enable_app_settings")&&_.Ks(window.location.href).theme!==void 0&&(q.theme=_.RJ());if((Z=g$)?!_.R4.equals(Z,q):q)Z={currentValue:q},x0q&&(Z.timeSinceLastSnapshotSecs=Math.round(((0,_.lp)()-x0q)/1E3)),g$&&(Z.previousValue=g$),_.vO("appSettingsCaptured",Z),g$=q,x0q=(0,_.lp)()},U0y=function(){if(!_.BF("LOGGED_IN"))return Promise.resolve(!1);
var q=_.Af("service_worker_push_force_notification_prompt_tag");return q?_.II("PromptTags").then(function(Z){if(!Z)return!0;var w=[];try{w=JSON.parse(Z)}catch(r){return!1}return w&&w.indexOf(q)==-1}):Promise.resolve(!1)},kRF=function(){var q=_.m6("service_worker_push_prompt_delay_microseconds");
return q?_.II("PromptTime").then(function(Z){return Promise.resolve(Date.now()-q>(Z||0))}):Promise.resolve(!0)},KjS=function(){var q=_.m6("service_worker_push_logged_out_prompt_watches");
return q==-1?Promise.resolve(!1):_.II("WatchCount").then(function(Z){return Z>=q})},sk6=function(){var q=_.Ik(document,"yt-push-prompt-modal-bg");
q&&_.Vb(q)},Id8=function(){return _.m6("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.II("PromptCount").then(function(q){q||(q=0);
return Promise.resolve(q<_.m6("service_worker_push_prompt_cap"))})},c7b=function(q){return _.BF("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.BF("LOGGED_IN")&&(q===void 0?0:q)?U0y().then(function(Z){if(Z)return!0;
Z=[Id8(),kRF()];_.BF("LOGGED_IN")||Z.push(KjS());return Promise.all(Z).then(function(w){return w.every(function(r){return r})})}):Promise.resolve(!1)},Mjy=function(){_.II("PromptCount").then(function(q){return _.T_("PromptCount",q+1)}).then(function(){return _.T_("PromptTime",Date.now())}).then(function(){var q=_.Af("service_worker_push_force_notification_prompt_tag");
if(q)return _.II("PromptTags").then(function(Z){var w=[];if(Z)try{w=JSON.parse(Z)}catch(r){return!1}w||(w=[]);w.push(q);return _.T_("PromptTags",JSON.stringify(w))})})},N66=function(){Fj7||sk6()},ldu=function(q){q.style.zIndex=2147483648;
q.style.pointerEvents="auto";q.style.backgroundColor="rgba(0, 0, 0, 0.6)";q.style.width="100%";q.style.height="100vh";q.style.position="absolute";q.style.top="0";q.style.left="0";q.style.border="none"},GRq=function(){var q=_.Ik(document,"yt-push-prompt-modal-bg");
Fj7=_.b("service_worker_push_prompt_modal_ignore_click");q?ldu(q):(q=_.t$("div",{id:"yt-push-prompt-modal-bg"}),ldu(q),document.body.appendChild(q),_.cEz(document,"click",N66))},peV=function(){var q=arguments;
_.b("service_worker_push_prompt_modal_enable")&&GRq();return Notification.requestPermission().then(function(Z){sk6();var w=document.getElementById("ticker");w&&(w.className=w.classList.remove("show"));if(Z=="granted")return nBq().then(function(){adl(!1);EBq();return Promise.resolve(!0)});
Z=="denied"&&EBq();return Promise.resolve(!1)}).catch(function(){sk6();
return Promise.reject.apply(Promise,_.Ju(q))})},Xe7=function(q){q=q===void 0?!1:q;
var Z=_.s61().client;if(Z&&Z.browserVersion){var w=Z.browserVersion,r=Z.browserName=="CHROME"&&Nm(w,"50.0.0")<0;Z=Z.browserName=="OPERA"&&Nm(w,"42.0.0")<0;if(r||Z)return Promise.resolve()}return _.zPV().then(function(Y){if(!Y)return Promise.resolve();Y=nBq().then(function(){return Qku({type:"notifications_check_registration",data:_.zj("ID_TOKEN")})});
return Notification.permission!="default"?Y.catch(function(){}):Y.then(function(){return c7b(q)}).then(function(C){if(C)return Mjy(),peV().then(function(){})}).catch(function(){})})},m0Z=function(q){return _.byy(q)?Xe7():Promise.resolve()},A7C=function(q){var Z=q.installing||q.waiting;
return q.active||!Z?Promise.resolve(q):new Promise(function(w){var r=function(Y){Y=Y.target;if(Y.state==="activated"||Y.state==="redundant")Z.removeEventListener("statechange",r),w(q)};
Z.addEventListener("statechange",r)})},fdu=function(){var q=new _.JHz("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.el(q,{mainAppWeb:_.BP()});var Z=_.kKX;_.b("service_worker_forward_exp_params")&&(Z=b6y(Z));try{var w=_.MRX(Z).catch(function(){_.Cd(q,"FAILURE");return new Promise(function(){})});
_.b("service_worker_push_enabled")&&w.then(function(r){_.Cd(q,"SUCCESS");return r}).then(A7C).then(m0Z)}catch(r){if(_.Cd(q,"FAILURE"),r.name!=="SecurityError")throw r;
}},D0b=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&fdu()},hIC=function(q,Z){var w={};
Z&&(w.serializedYpcFamilyCreateLoggingParams=Z);_.vO(q,w);_.jX()},y7c=function(q,Z){var w={};
w.serializedYpcRefundFlowLoggingParams=Z;q&&(w.eventType=q);_.vO("ypcRefundFlowEvent",w);_.jX()},i6D=function(q){q&&_.N7I("transactionFlowSucceeded",q)},gBb=function(q){q&&_.H9("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",q,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},qMZ=function(q){var Z,w,r,Y,C,d,O;
_.V(function(H){if(H.nextAddress==1)return _.W(H,_.dVI(),2);if(H.nextAddress!=3){if(!H.yieldResult)return H.return(!1);Z=[];return _.W(H,_.IQ.keys(),3)}w=H.yieldResult;r=_.P(w);for(Y=r.next();!Y.done;Y=r.next())C=Y.value,d=_.CT2(C),O=d.datasyncId,!O||q.includes(O)||Z.push(_.IQ.delete(C));return H.return(Promise.all(Z).then(function(L){return L.some(function(S){return S})}))})},ZVc=function(){var q,Z,w,r,Y,C,d;
return _.V(function(O){if(O.nextAddress==1)return _.W(O,_.dVI(),2);if(O.nextAddress!=3){if(!O.yieldResult)return O.return(!1);q=_.CY("cache contains other");return _.W(O,_.IQ.keys(),3)}Z=O.yieldResult;w=_.P(Z);for(r=w.next();!r.done;r=w.next())if(Y=r.value,C=_.CT2(Y),(d=C.datasyncId)&&d!==q)return O.return(!0);return O.return(!1)})},wxy=function(){var q=_.t().resolve(_.Gj(_.FzW));
return q?q.getCurrentTime():0},rL6=function(){var q,Z,w,r,Y,C,d,O,H,L,S,v,R,B;
return _.V(function(n){switch(n.nextAddress){case 1:q={},Z=_.ZrI(),w=_.P(Object.entries(Z)),r=w.next();case 4:if(r.done){n.jumpTo(3);break}Y=r.value;C=_.P(Y);d=C.next().value;O=C.next().value;H=d;L=O;if(!L){n.jumpTo(5);break}return _.W(n,L(),8);case 8:q[H]=n.yieldResult;case 5:r=w.next();n.jumpTo(4);break;case 2:S=_.P(void 0),v=S.next();case 9:if(v.done){n.jumpTo(3);break}R=v.value;B=Z[R];if(!B){n.jumpTo(10);break}return _.W(n,B(),13);case 13:q[R]=n.yieldResult;case 10:v=S.next();n.jumpTo(9);break;
case 3:return n.return(q)}})},YMC=function(){var q;
_.V(function(Z){if(Z.nextAddress==1)return _.W(Z,rL6(),2);q=Z.yieldResult;return _.W(Z,navigator.clipboard.writeText(JSON.stringify(q,null,2)),0)})},$Al=function(q,Z){return _.iI(q.entities,"superThanksSelectedTierEntity",Z)},eYS=function(q){var Z;
return(Z=q.sharedUi)==null?void 0:Z.currentPageType},Coc=function(q,Z){return{popup:{searchSuggestionReportDialog:{searchQuery:q,
title:_.dT("SBOX_INAPPROPRIATE_TITLE"),suggestions:Z,categoryLabel:_.dT("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.dT("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.dT("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.dT("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.dT("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.dT("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.dT("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.dT("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.dT("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.dT("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},PoD=function(q){var Z,w,r,Y,C,d,O,H,L,S,v,R,B,n,x,K,k,G,rz;
return _.V(function(f){switch(f.nextAddress){case 1:return _.W(f,_.Zk(),2);case 2:return(Z=f.yieldResult)?_.W(f,_.fD2(Z),3):f.return();case 3:w=f.yieldResult;if(!w)return f.return();Y=((r=w.offlineVideos)==null?void 0:r.length)||0;d=((C=w.offlinePlaylists)==null?void 0:C.length)||0;if(Y===0&&d===0)return f.return();O=0;if(w.offlineVideos)for(H=_.P(w.offlineVideos),L=H.next();!L.done;L=H.next())S=L.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===S.videoState&&(O+=1);q.offline_videos_count=Y.toString();_.b("kevlar_log_offline_current_network_type_ks")||
(q.offline_current_network_type=(v=_.$9j())!=null?v:"CONN_INVALID");_.b("kevlar_log_updated_time_for_smart_downloads")&&(R=_.sE().getState().entities,B=_.Lz(R),n=in6(R),q.offline_smart_downloads_last_sync_time_ms=B.toString(),q.offline_smart_downloads_next_sync_time_ms=n.toString());q.offline_videos_playable=O.toString();q.offline_playlists_count=d.toString();if(!_.b("woffle_used_state_report")){f.jumpTo(4);break}w.offlineVideos&&(x=w.offlineVideos.reduce(function(eO,g){g.downloadedBytes&&(eO+=Number(g.downloadedBytes));
return eO},0).toString())&&(q.offline_used_disk_space_bytes=x);
if(!((K=navigator)==null?0:(k=K.storage)==null?0:k.estimate)){f.jumpTo(4);break}return _.W(f,navigator.storage.estimate(),6);case 6:G=f.yieldResult,q.offline_free_disk_space_bytes=(((rz=G)==null?void 0:rz.quota)||0).toString();case 4:q.offline_client_state=JSON.stringify(w),_.ub(f)}})},dAD=function(q){q=q.match(/(.*)::.*::.*/);
if(q!==null)return q[1]},VrF=function(q){if(_.lsX()){var Z=Object.keys(window.sessionStorage);
Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next()){w=w.value;var r=dAD(w);r===void 0||q.includes(r)||self.sessionStorage.removeItem(w)}}},OVC=function(){if(!_.lsX())return!1;
var q=_.CY(),Z=Object.keys(window.sessionStorage);Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next())if(w=dAD(w.value),w!==void 0&&w!==q)return!0;return!1},qQ=function(q,Z,w){(_.b("desktop_keyboard_shortcut_usage_log")||w&&_.b("web_shorts_keyboard_shortcut_usage_log"))&&(Z?_.cn.get(q):_.Id.get(q))&&(q=Z?_.FF.get(q):_.Mm.get(q))&&_.sh(_.b5(),q)},HVC=function(q,Z){Z.stack&&(q.stack+="\n"+Z.stack);
return q},u_l=function(q){var Z=Z_(q,"Content-Type");
if(!Z)return null;Z=Z.toLowerCase();if(Z.startsWith("application/json"))return Z.startsWith("application/json+protobuf")?new WWb:new _.m7;if(Z.startsWith("application/x-protobuf")){q=Z_(q,"Content-Transfer-Encoding");if(!q)return new wo;if(q.toLowerCase()=="base64")return new oLq}return null},zYc=function(q,Z,w,r){var Y=new LW8(function(O,H){return SMF.has(H)?O.sentinel==="gal"&&O.event!==void 0:!1},function(O){O.event?(O=vLF(O.event),O=!O||j5S(r,O)?!0:_.HI(q.lastEvent,ro,2,Y9)?!_.HI(O,$9,1,Y9)&&
!_.HI(O,ro,2,Y9):!_.HI(O,$9,1,Y9)&&!_.HI(O,ro,3,Y9)):O=!0;
return O});
w=_.ZM(q.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",trq(w)]]));if(q.nestedOrigins!==void 0)for(var C=_.P(q.nestedOrigins),d=C.next();!d.done;d=C.next())w=_.ZM(w,new Map([["origin",d.value]]));return RY6(Y,w,Z).then(function(O){O=bVS(O.event);if(_.HI(O,$9,1,Y9)){var H,L=(H=_.al(O,$9,1,Y9))==null?void 0:_.Jz(H,2);L&&r.JSC$16927_logErrorEvent(JL6(L));H=_.al(O,$9,1,Y9);_.Jz(H,2)===4?(O=_.al(O,$9,1,Y9),O={statusCode:11,statusMessage:_.bY(O,
3)}):(O=_.al(O,$9,1,Y9),O={statusCode:12,statusMessage:_.bY(O,3)});return O}_.HI(O,ro,3,Y9)?(O=_.al(O,ro,3,Y9),O={statusCode:1,consentLanguageKeys:_.bY(O,2)}):O={statusCode:1};return O}).catch(function(O){return O.errorCode!==void 0?{statusCode:O.errorCode,
statusMessage:O.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},Q5b=function(q){var Z={};
if(q===void 0||q===null)return Z;q.getToken()!==void 0&&Bpl(q.getToken())&&Bpl(q.getToken()).length>0&&(Z.scopes=new Set(Bpl(q.getToken())));q.getToken()!==void 0&&avy(q.getToken())&&avy(q.getToken()).length>0&&(Z.capabilities=new Set(avy(q.getToken())));_.bY(q,3)!==void 0&&(Z.consistencyKey=_.bY(q,3));q.getName()!==void 0&&q.getName()!==""&&(Z.linkName=q.getName());_.Og(q,nLc,4)&&(q=_.Xy(q,nLc,4),q=Object.assign({},_.bY(q,1)&&{userId:_.bY(q,1)},_.bY(q,2)&&{displayName:_.bY(q,2)},_.bY(q,3)&&{email:_.bY(q,
3)},_.bY(q,5)&&{username:_.bY(q,5)},_.bY(q,4)&&{profilePicture:_.bY(q,4)}),Z.profile=q);return Z},ELD=function(q,Z){var w=q.flowParams;
return{serviceId:w.serviceId,sessionId:w.sessionId,currentFlow:q.currentFlow,googleScopesString:Z,linkingSessionSerialized:q.session.serialize(),consentLanguageKeys:w.consentLanguageKeys,callerState:q.callerState,dynamicUrlParameters:w.dynamicUrlParameters,partnerConfigMinReadTimestamp:w.partnerConfigMinReadTimestamp}},KWV=function(q){var Z=q.googleScopes!==void 0?Array.from(q.googleScopes).join(","):"";
xAc(ELD(q,Z));Z=Tpu(q);return Z===null?Promise.resolve(UAD):Z.start().then(function(w){var r,Y=(r=w.link)==null?void 0:r.consistencyKey;return w.statusCode===1&&q.googleScopes!==void 0&&q.googleScopes.size>0&&Y!==void 0?(r=q.flowParams,kdV(r.serviceId,r.sessionId,q.googleScopes,Y,r.galService,q.config,w)):w})},s5V=function(q){var Z=Tpu(q);
return Z===null?Promise.resolve(ef({statusCode:7,statusMessage:"Failed to create flow object"},q.callerState)):Z.complete().then(function(w){var r,Y=(r=w.link)==null?void 0:r.consistencyKey;return w.statusCode===1&&q.googleScopes!==void 0&&q.googleScopes.size>0&&Y!==void 0?(r=q.flowParams,kdV(r.serviceId,r.sessionId,q.googleScopes,Y,r.galService,q.config,w)):ef(w,q.callerState)},function(w){return ef({statusCode:12,
statusMessage:"Failed to complete the flow: "+w.message},q.callerState)})},kdV=function(q,Z,w,r,Y,C,d){return IvD(Y,{serviceId:q,
sessionId:Z,googleScopes:w,consistencyKey:r}).then(function(){return d},function(O){return Y.deleteLink({serviceId:q,
sessionId:Z,accountLinkingEntryPoint:C.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+O.message}},function(H){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+H.message}})})},Tpu=function(q){switch(q.currentFlow){case 1:var Z=q.flowParams;
q=_.Xy(q.session,cLS,1);return Cv.createOAuthFlow(Z,q);case 2:case 3:return Z=q.flowParams,q=_.Xy(q.session,MrS,6),P2.createStreamlinedFlow(Z,q);default:return null}},FWy=function(q,Z){q===2&&(q=3);
var w=0;V3.indexOf(q)!==-1&&(w=V3.indexOf(q)+1);for(q=w;q<V3.length;q++)if(Z.has(V3[q]))return V3[q]},Gdy=function(q){var Z=q.serviceId;
var w=q.sessionId;var r=q.config;var Y=q.galService;var C=q.capabilities;var d=q.scopes;var O=q.loginHint;var H=q.callerState;var L=q.consentLanguageKeys;var S=q.linkName;var v=q.dynamicUrlParameters;var R=q.partnerConfigMinReadTimestamp;q=r.dataUsageNoticeConfig?r.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return Y.startLinkingSession({serviceId:Z,sessionId:w,capabilities:C,scopes:d,loginHint:O,callerState:H,supportedFlows:Np7(r.supportedFlows),completionUrl:r.completionUrl,accountLinkingEntryPoint:r.accountLinkingEntryPoint,
consentLanguageKeys:L,dataUsageNoticeConfig:q,linkName:S,dynamicUrlParameters:v,partnerConfigMinReadTimestamp:R}).then(function(B){return new lv6(Z,w,r,Y,B,void 0,H,L,v,R)})},fvc=function(q,Z,w){a:{var r=new pxS;
if(r.storage!==null)try{var Y=r.storage.get("SAVED_SESSION");if(Y===void 0){var C=null;break a}if(Y.serviceId===q){C=Y;break a}}catch(d){}C=null}if(C===null)return Promise.resolve({statusCode:2});Xxl(q);r=mAF(C.linkingSessionSerialized);return ALq(new lv6(q,C.sessionId,Z,w,r,C.googleScopesString!==""&&C.googleScopesString!==void 0?new Set(C.googleScopesString.split(",")):void 0,C.callerState,C.consentLanguageKeys,C.dynamicUrlParameters,C.partnerConfigMinReadTimestamp),C.currentFlow,C.consentLanguageKeys)},
xAc=function(q){var Z=new pxS;
Z.storage!==null&&Z.storage.set("SAVED_SESSION",q)},Xxl=function(q){var Z=new pxS;
if(Z.storage!==null){var w=Z.storage.get("SAVED_SESSION");w!==void 0&&w.serviceId===q&&Z.storage.remove("SAVED_SESSION")}},Np7=function(q){var Z=new Set;
q=_.P(q);for(var w=q.next();!w.done;w=q.next())w=w.value,w!==1&&DAl.has(w)&&Z.add(DAl.get(w));return Z},ef=function(q,Z){Z!==void 0&&(q.callerState=Z);
return q},hYy=function(q){switch(q){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},gLy=function(){var q={timeout:5E3};
q=q===void 0?{}:q;return yLl!=null?yLl:yLl=iV8(q)},qzD=function(){return new Promise(function(q,Z){window.gapi.load("client",{callback:q,
onerror:Z})})},iV8=function(q){q=q===void 0?{}:q;
var Z;return _.V(function(w){if(w.nextAddress==1){if((Z=window.gapi)&&Z.client&&Z.client.load)w=w.return(Z);else{var r=_.o9("https://apis.google.com/js/api.js");w=_.W(w,_.ji(r,q),2)}return w}if(w.nextAddress!=3){Z=window.gapi;if(!Z)throw Error("Yj");return Z.client&&Z.client.load?w.jumpTo(3):_.W(w,qzD(),3)}return w.return(Z)})},wQb=function(q,Z){Z=Z===void 0?0:Z;
var w=q.auth2.getAuthInstance().currentUser.get(),r=w.getAuthResponse(!0);if(r&&r.expires_at-Date.now()<Z){if(ZP7.has(q))return ZP7.get(q);Z=Promise.resolve(w.reloadAuthResponse()).finally(function(){ZP7.delete(q)});
ZP7.set(q,Z);return Z}return Promise.resolve()},rQV=function(q,Z){var w;
return q.client.init({apiKey:Z.apiKey,clientId:Z.clientId,scope:Z.scope,discoveryDocs:Z.discoveryDocs,hostedDomain:Z.hostedDomain,fetchBasicProfile:(w=Z.fetchBasicProfile)!=null?w:!0})},YzS=function(q){if(q.queryParams!=null){var Z={},w;
for(w in q.queryParams)q.queryParams[w]!==void 0&&(Z[w]=q.queryParams[w]);q.queryParams=Z}},C2l=function(q){return new $l7(q,new ekl(q))},Ve6=function(q,Z){Z=Z===void 0?!1:Z;
var w=document.createElement("div");q&&(w.style.transform="scaleX(-1)");w.style.backgroundColor=Z?"rgba(138,180,248,.24)":"#e8f0fe";w.style.height="4px";w.style.overflow="hidden";w.style.position="absolute";w.style.top="0";w.style.width="100%";w.style.zIndex="1500";w.setAttribute("aria-label","Loading");w.setAttribute("aria-live","polite");q=document.createElement("style");q.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  }";
w.appendChild(q);q=P2l();q.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";q.style.left="-145.166611%";var r=dly(Z);r.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";q.appendChild(r);w.appendChild(q);q=P2l();q.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";q.style.left="-54.888891%";Z=dly(Z);Z.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
q.appendChild(Z);w.appendChild(q);return w},P2l=function(){var q=document.createElement("div");
q.style.height="100%";q.style.position="absolute";q.style.transformOrigin="top left";q.style.width="100%";return q},dly=function(q){var Z=document.createElement("span");
Z.style.borderTop=q?"4px solid #669df6":"4px solid #4285f4";Z.style.display="inline-block";Z.style.position="absolute";Z.style.width="100%";return Z},OP8=function(q){return q==null?void 0:_.iAp(q).valueOf()},uaV=function(q){var Z=document.body,w=!1,r=function(){w||(w=!0,HPu(Y,C),setTimeout(function(){Z.removeChild(C);
Z.removeChild(Y)},150))},Y=WB7(q,getComputedStyle(Z).direction==="rtl",r),C=o_D(r);
HPu(Y,C);Z.appendChild(C);Z.appendChild(Y);window.requestAnimationFrame(function(){C.style.opacity="1";Y.style.opacity="1";Y.style.transform="translate(-50%, -50%) scale(1)";Y.children[0].focus()})},WB7=function(q,Z,w){var r=document.createElement("div");
r.style.position="fixed";r.style.alignItems="center";r.style.backgroundColor=q?"rgb(32, 33, 36)":"white";r.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";r.style.display="flex";r.style.flexDirection="column";r.style.justifyContent="center";r.style.left="50%";r.style.top="50%";r.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";r.style.zIndex="2002";document.body.clientWidth>=660?(r.style.borderRadius="8px",r.style.minHeight="220px",
r.style.maxHeight="90%",r.style.maxWidth="90%",r.style.minWidth="540px"):(r.style.height="100%",r.style.width="100%");r.setAttribute("aria-label","Error");r.setAttribute("aria-modal","true");r.setAttribute("role","alertdialog");r.addEventListener("keydown",function(C){C.key==="Escape"&&w()});
Z=LBV(q,Z,w);r.appendChild(SzZ(Z));r.appendChild(Z);var Y=document.createElement("img");Y.src=q?"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";Y.style.height="72px";Y.style.width="72px";Y.style.color="#9aa0a6";Y.setAttribute("alt","");r.appendChild(Y);Y=document.createElement("h1");Y.textContent="Something went wrong.  Try again.";
Y.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";Y.style.lineHeight="24px";Y.style.fontSize="16px";Y.style.textAlign="center";Y.style.letterSpacing="0.1px";Y.style.color=q?"rgb(232,234,237)":"#3c4043";r.appendChild(Y);r.appendChild(SzZ(Z));return r},LBV=function(q,Z,w){var r=document.createElement("button");
r.style.backgroundColor="transparent";r.style.border="none";r.style.borderRadius="50%";r.style.cursor="pointer";r.style.outline="none";r.style.padding="12px";r.setAttribute("aria-label","Close dialog");r.style.position="absolute";r.style.top="0";Z?r.style.right="0":r.style.left="0";r.addEventListener("focus",function(){r.style.backgroundColor=q?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
r.addEventListener("blur",function(){r.style.backgroundColor="transparent"});
r.addEventListener("mouseenter",function(){r.style.backgroundColor=q?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
r.addEventListener("mouseleave",function(){r.style.backgroundColor="transparent"});
r.addEventListener("click",w);r.addEventListener("keydown",function(Y){Y.key!=="Enter"&&Y.key!=="Space"||w()});
Z=document.createElement("img");Z.src=q?"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";Z.style.display="block";Z.style.height="24px";Z.style.width="24px";Z.setAttribute("alt","");r.appendChild(Z);return r},SzZ=function(q){var Z=document.createElement("div");
Z.setAttribute("tabindex","0");Z.setAttribute("aria-hidden","true");Z.addEventListener("focus",function(){return void q.focus()});
return Z},o_D=function(q){var Z=document.createElement("div");
Z.style.backgroundColor="rgba(32,33,36,0.6)";Z.style.bottom="0";Z.style.left="0";Z.style.position="fixed";Z.style.right="0";Z.style.top="0";Z.style.transition=" opacity 150 ms linear";Z.style.zIndex="2001";Z.addEventListener("click",q);return Z},HPu=function(q,Z){Z.style.opacity="0";
q.style.opacity="0";q.style.transform="translate(-50%, -50%) scale(0.8)"},v_l=function(q,Z){q.sandbox&&q.sandbox.add&&(q.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),q.sandbox.add("allow-downloads"));
q.src=Z},Ox=function(q){jgD.call(this,q)},H2=function(q,Z){Z=Z===void 0?!1:Z;
this.parsedImageUrl_=null;q instanceof tey||(Rky==void 0&&(Rky=new bPF),q=Rky.parse(q.toString(),Z));q=this.parsedImageUrl_=q;q.JSC$17158_parsedOptions_==void 0&&((Z=q.getOptions())||(Z=""),q.JSC$17158_parsedOptions_=(new JQl).parse(Z));jgD.call(this,q.JSC$17158_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;q=this.parsedImageUrl_;Z=q.uri_.JSC$7906_port_;this.JSC$17160_domain_=q.uri_.JSC$7906_domain_+(Z?":"+Z:"");this.JSC$17160_query_=this.parsedImageUrl_.uri_.JSC$7906_queryData_.toString()},
zkV=function(q){this.mode=4;
this.data=q;this.parsedData=[];q=0;for(var Z=this.data.length;q<Z;q++){var w=[],r=this.data.charCodeAt(q);r>65536?(w[0]=240|(r&1835008)>>>18,w[1]=128|(r&258048)>>>12,w[2]=128|(r&4032)>>>6,w[3]=128|r&63):r>2048?(w[0]=224|(r&61440)>>>12,w[1]=128|(r&4032)>>>6,w[2]=128|r&63):r>128?(w[0]=192|(r&1984)>>>6,w[1]=128|r&63):w[0]=r;this.parsedData.push(w)}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))},Bn8=function(q){this.typeNumber=0;
this.errorCorrectLevel=q===void 0?2:q;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},W2=function(q,Z){if(q.length==void 0)throw Error("sk`"+q.length+"`"+Z);
for(var w=0;w<q.length&&q[w]==0;)w++;this.num=Array(q.length-w+Z);for(Z=0;Z<q.length-w;Z++)this.num[Z]=q[Z+w]},aQF=function(q,Z){this.totalCount=q;
this.dataCount=Z},n_7=function(){this.buffer=[];
this.length=0},QgS=function(){var q=!1;
if(_.o1j()){q=_.jO();var Z="";_.S2e()?(Z=/Windows (?:NT|Phone) ([0-9.]+)/,Z=(q=Z.exec(q))?q[1]:"0.0"):_.x1()?(Z=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,Z=(q=Z.exec(q))&&q[1].replace(/_/g,".")):_.LIT()?(Z=/Mac OS X ([0-9_.]+)/,Z=(q=Z.exec(q))?q[1].replace(/_/g,"."):"10"):_.LX(_.jO(),"KaiOS")?(Z=/(?:KaiOS)\/(\S+)/i,Z=(q=Z.exec(q))&&q[1]):_.o1j()?(Z=/Android\s+([^\);]+)(\)|;)/,Z=(q=Z.exec(q))&&q[1]):_.v1I()&&(Z=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,Z=(q=Z.exec(q))&&q[1]);q=Z||""}return q},KBZ=function(q,
Z){this.JSC$17183__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(Z)for(var w in Z)this.JSC$17183__htOption[w]=Z[w];this.JSC$17183__htOption.useSVG&&(E_V=xlZ);this.JSC$17183__android=QgS();this.JSC$17183__el=q;this._oQRCode=null;this._oDrawing=new E_V(this.JSC$17183__el,this.JSC$17183__htOption);this.JSC$17183__htOption.text&&(q=this.JSC$17183__htOption.text,this._oQRCode=new Bn8(this.JSC$17183__htOption.correctLevel),TnS(this._oQRCode,q),Z=this._oQRCode,Ulq(Z,!1,ksS(Z)),this.JSC$17183__el.title=
q,this._oDrawing.draw(this._oQRCode),this.makeImage())},sg6=function(q,Z,w,r,Y){q.save();
var C=new Path2D;C.roundRect(Z,w,r*7,r*7,r*2);C.roundRect(Z+r,w+r,r*5,r*5,r*1.3);C.roundRect(Z+2*r,w+2*r,r*3,r*3,r);q.clip(C,"evenodd");q.fillStyle=Y;q.fillRect(0,0,q.canvas.width,q.canvas.height);q.restore()},oE=function(q,Z){if(typeof q!=="function")throw Error("vk");
return _.$1.setTimeout(function(){q()},Z)},uE=function(){},cQD=function(q,Z,w,r,Y){(new uE).debug("TestLoadImageWithRetries: "+Y);
if(r==0)w(!1);else{var C=Y||0;r--;IQl(q,Z,function(d){d?w(!0):_.$1.setTimeout(function(){cQD(q,Z,w,r,C)},C)})}},IQl=function(q,Z,w){var r=new uE;
r.debug("TestLoadImage: loading "+q);var Y=new Image;Y.onload=function(){try{r.debug("TestLoadImage: loaded"),MeV(Y),w(!0)}catch(C){}};
Y.onerror=function(){try{r.debug("TestLoadImage: error"),MeV(Y),w(!1)}catch(C){}};
Y.onabort=function(){try{r.debug("TestLoadImage: abort"),MeV(Y),w(!1)}catch(C){}};
Y.ontimeout=function(){try{r.debug("TestLoadImage: timeout"),MeV(Y),w(!1)}catch(C){}};
_.$1.setTimeout(function(){if(Y.ontimeout)Y.ontimeout()},Z);
Y.src=q},MeV=function(q){q.onload=null;
q.onerror=null;q.onabort=null;q.ontimeout=null},FBV=function(){this.front_=[];
this.back_=[]},Nnc=function(q,Z){_.u6.call(this);
this.delay_=new _.SC(this.JSC$17309_onTick_,0,this);_.$i(this,this.delay_);this.JSC$17307_interval_=5E3;this.nextTickTime_=0;if(typeof q==="function")Z&&(q=(0,_.Lh)(q,Z));else if(q&&typeof q.handleEvent==="function")q=(0,_.Lh)(q.handleEvent,q);else throw Error("Ca");this.JSC$17309_listener_=q},Lv=function(q,Z,w,r,Y,C,d,O,H,L,S,v,R,B){w=w===void 0?!1:w;
r=r===void 0?function(){return""}:r;
Y=Y===void 0?!1:Y;C=C===void 0?!1:C;d=d===void 0?!1:d;O=O===void 0?function(){return _.YK({})}:O;
H=H===void 0?!1:H;S=S===void 0?!1:S;v=v===void 0?!1:v;R=R===void 0?!1:R;B=B===void 0?!1:B;this.JSC$17310_pathPrefix_=q;this.defaultQueryParams_=Z;this.pubsub_=new _.wf;this.reconnectTimer_=new Nnc(this.safeReconnect_,this);this.JSC$17310_channel_=null;this.JSC$17310_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17310_pendingMessages_=[];this.enableAsyncTest_=w;this.JSC$17310_getXsrfToken_=r;this.useAsyncBrowserChannelHandler_=C;this.getAuthorizationHeader_=
O;this.getAuthorizationHeaderSync_=L;this.enableCachedUpdateAuthorizationHeader_=d;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.YK();this.enableLoungeTokenRefresh_=Y;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=H;this.disableMdxAuthForNonPlaybackMessages_=S;this.disableMdxAuthForAdMessages_=v;this.enableMdxAuthForConnectionOnly_=R;this.disableMdxAuthForShortsMessages_=B;this.JSC$17310_channelOpenedCounter=new lQD;this.JSC$17310_channelClosedCounter=new GsV;this.channelMessageSentCounter=
new pQ7;this.JSC$17310_channelMessageReceivedCounter=new XQC;this.JSC$17310_channelErrorCounter=new mlS;this.pendingMapsOnClosedCounter=new AQc;this.undeliveredMapsOnClosedCounter=new fQD},Sf=function(q){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;q=q||document.location.href;var Z=Number(_.cF(q)[4]||null)||"";Z&&(this.port=":"+Z);this.domain=_.MR(q)||"";q=_.jO();q.search("MSIE")>=0&&Nm(q.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},v2=function(q){q=q||{};
this.name=q.name||"";this.id=q.id||q.screenId||"";this.token=q.token||q.loungeToken||"";this.uuid=q.uuid||q.dialId||"";this.idType=q.screenIdType||"normal"},DlV=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(q){var Z=Math.random()*16|0;
return(q=="x"?Z:Z&3|8).toString(16)})},hk8=function(q){return _.bM(q,function(Z){return{key:Z.id,
name:Z.name}})},yQl=function(q,Z){return _.KX(q,function(w){return w||Z?!w!=!Z?!1:w.id==Z.id:!0})},tN=function(q,Z){return _.KX(q,function(w){return jf(w,Z)})},wHq=function(){var q=iPF(),Z=g_D();
if(qnc()){var w=q,r=_.n16(w,Z);r<0&&_.z81(w,-(r+1),0,Z)}q=Zdb(q);if(q.length==0)try{_.Zzj("remote_sid")}catch(Y){}else try{_.$r("remote_sid",q.join(","),-1)}catch(Y){}},iPF=function(){var q=_.i8("yt-remote-connected-devices")||[];
q.sort(_.aT1);return q},Zdb=function(q){if(q.length==0)return[];
var Z=q[0].indexOf("#"),w=Z==-1?q[0]:q[0].substring(0,Z);return _.bM(q,function(r,Y){return Y==0?r:r.substring(w.length)})},rWF=function(q){_.yq("yt-remote-connected-devices",q,86400)},g_D=function(){if(YnZ)return YnZ;
var q=_.i8("yt-remote-device-id");q||(q=DlV(),_.yq("yt-remote-device-id",q,31536E3));for(var Z=iPF(),w=1,r=q;_.Mj(Z,r);)w++,r=q+"#"+w;return YnZ=r},$d8=function(){return _.i8("yt-remote-session-browser-channel")},qnc=function(){return _.i8("yt-remote-session-screen-id")},Pil=function(q){q.length>5&&(q=q.slice(q.length-5));
var Z=_.bM(eDu(),function(r){return r.loungeToken}),w=_.bM(q,function(r){return r.loungeToken});
_.dOj(w,function(r){return!_.Mj(Z,r)})&&Ciu();
_.yq("yt-remote-local-screens",q,31536E3)},eDu=function(){return _.i8("yt-remote-local-screens")||[]},Ciu=function(){_.yq("yt-remote-lounge-token-expiration",!0,86400)},RE=function(q){q||(_.gF("yt-remote-session-screen-id"),_.gF("yt-remote-session-video-id"));
wHq();q=iPF();_.F9(q,g_D());rWF(q)},VlV=function(){ddF();
return bE?!!bE.get("yt-remote-use-staging-server"):!1},ddF=function(){if(!bE){var q=_.VZ2();
q&&(bE=new _.VL(q))}},o4F=function(q,Z,w,r,Y){w=w===void 0?function(){return""}:w;
var C=function(){return new Lv(JN(q,"/bc"),Z,!1,w,r)};
return _.b("enable_mdx_web_channel_desktop")?new Odl(function(){return new HdC(JN(q,"/wc"),Z,w)}):new W1c(C,Y)},v4C=function(){var q=ur7;
L1u();zD.push(q);Sn7()},B2=function(q,Z){L1u();
var w=j0C(q,String(Z));zD.length==0?tll(w):(Sn7(),_.Uq(zD,function(r){r(w)}))},aE=function(q){B2("CP",q)},L1u=function(){zD||(zD=_.Eq("yt.mdx.remote.debug.handlers_")||[],_.IR("yt.mdx.remote.debug.handlers_",zD))},tll=function(q){var Z=(nv+1)%50;
nv=Z;RD7[Z]=q;bd7||(bd7=Z==49)},Sn7=function(){var q=zD;
if(RD7[0]){var Z=bd7?nv:-1,w={};do w={record$jscomp$13:void 0},Z=(Z+1)%50,w.record$jscomp$13=RD7[Z],_.Uq(q,function(r){return function(Y){Y(r.record$jscomp$13)}}(w));
while(Z!=nv);RD7=Array(50);nv=-1;bd7=!1}},j0C=function(q,Z){var w=(Date.now()-JWS)/1E3;
w.toFixed&&(w=w.toFixed(3));var r=[];r.push("[",w+"s","] ");r.push("[","yt.mdx.remote","] ");r.push(q+": "+Z,"\n");return r.join("")},Q3=function(q){_.sd.call(this);
this.JSC$17334_logName_=q;this.screens=[]},x9=function(q){Q3.call(this,"LocalScreenService");
this.JSC$17341_http_=q;this.loungeTokenRefreshTimer_=NaN;Ex(this);this.info("Initializing with "+zDy(this.screens))},TD=function(q,Z){Z=Z===void 0?!1:Z;
Q3.call(this,"ScreenService");this.JSC$17347_http_=q;this.disableAutomaticScreenCache_=Z;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};B18(this)},Ux=function(q,Z,w){_.sd.call(this);
this.JSC$17351_logName_=w;this.JSC$17351_screenService_=q;this.receiver_=Z;this.screen_=null},N1u=function(q,Z,w){w.disableCastApi?k9("Cannot initialize because disabled by Mdx config."):abF()?n4l(q,w)&&(Q0F(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?E4u(Z):(window.__onGCastApiAvailable=function(r,Y){r?E4u(Z):(Kv("Failed to load cast API: "+Y),xdD(!1),Q0F(!1),_.gF("yt-remote-cast-available"),_.gF("yt-remote-cast-receiver"),T1y(),Z(!1))},w.loadCastApiSetupScript?_.np("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?Udq()>=60&&kf6():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?K1V():Udq()>=89?s0b():(Ibl(),cW7(MlD.map(F16))))):k9("Cannot initialize because not running Chrome")},T1y=function(){k9("dispose");
var q=sx();q&&q.dispose();_.IR("yt.mdx.remote.cloudview.instance_",null);lbF(!1);_.GLX(GfV);GfV.length=0},pHb=function(){return!!_.i8("yt-remote-cast-installed")},XH6=function(){var q=_.i8("yt-remote-cast-receiver");
return q?q.friendlyName:null},md6=function(){k9("clearCurrentReceiver");
_.gF("yt-remote-cast-receiver")},AWD=function(){return pHb()?sx()?sx().getCastSession():(Kv("getCastSelector: Cast is not initialized."),null):(Kv("getCastSelector: Cast API is not installed!"),null)},DdF=function(q,Z){fb6()?sx().setConnectedScreenStatus(q,Z):Kv("setConnectedScreenStatus called before ready.")},abF=function(){var q=_.jO().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.eF||q},n4l=function(q,Z){var w=!1;
sx()||(q=new IE(q,Z),q.subscribe("yt-remote-cast2-availability-change",function(r){_.yq("yt-remote-cast-available",r);G_("yt-remote-cast2-availability-change",r)}),q.subscribe("yt-remote-cast2-receiver-selected",function(r){k9("onReceiverSelected: "+r.friendlyName);
_.yq("yt-remote-cast-receiver",r);G_("yt-remote-cast2-receiver-selected",r)}),q.subscribe("yt-remote-cast2-receiver-resumed",function(r){k9("onReceiverResumed: "+r.friendlyName);
_.yq("yt-remote-cast-receiver",r);G_("yt-remote-cast2-receiver-resumed",r)}),q.subscribe("yt-remote-cast2-session-change",function(r){k9("onSessionChange: "+hDl(r));
r||_.gF("yt-remote-cast-receiver");G_("yt-remote-cast2-session-change",r)}),_.IR("yt.mdx.remote.cloudview.instance_",q),w=!0);
k9("cloudview.createSingleton_: "+w);return w},sx=function(){return _.Eq("yt.mdx.remote.cloudview.instance_")},E4u=function(q){xdD(!0);
Q0F(!1);sx().init(!1,function(Z){Z?(lbF(!0),_.pJe("yt-remote-cast2-api-ready")):(Kv("Failed to initialize cast API."),xdD(!1),_.gF("yt-remote-cast-available"),_.gF("yt-remote-cast-receiver"),T1y());q(Z)})},k9=function(q){B2("cloudview",q)},Kv=function(q){B2("cloudview",q)},xdD=function(q){k9("setCastInstalled_ "+q);
_.yq("yt-remote-cast-installed",q)},fb6=function(){return!!_.Eq("yt.mdx.remote.cloudview.apiReady_")},lbF=function(q){k9("setApiReady_ "+q);
_.IR("yt.mdx.remote.cloudview.apiReady_",q)},Q0F=function(q){_.IR("yt.mdx.remote.cloudview.initializing_",q)},c2=function(q){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(q)},yWZ=function(){var q,Z;
return _.V(function(w){if(w.nextAddress==1)return(_.afX()||_.b("use_new_nwl"))&&_.bn1().isNetworkAvailable()?_.W(w,_.cg(),2):w.return();if(w.nextAddress!=3)return(q=w.yieldResult)?_.W(w,IfV(q),3):w.return();Z=w.yieldResult;if(!Z.length)return w.return();Z.forEach(function(r){var Y={timestamp:r.timestamp};r=r.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:r.appShellAssetLoadReport,options:Y}:r.clientError?{payloadName:"clientError",payload:r.clientError,options:Y}:void 0;r&&
_.vO(r.payloadName,r.payload,r.options)});
Z.length===100&&_.v5.addLowPriorityJob(yWZ);_.ub(w)})},idl=function(q){if(q.playerResponse){if(q=q.playerResponse,q.messages&&q.messages.length>0&&(q=q.messages.find(function(Z){return!(!Z||!Z.mealbarPromoRenderer)}))&&q.mealbarPromoRenderer)return q.mealbarPromoRenderer}else if(q.response&&(q=q.response)&&q.overlay&&q.overlay.mealbarPromoRenderer)return q.overlay.mealbarPromoRenderer},g47=function(q){if(q.response){var Z=q.response;
if(Z&&Z.overlay&&Z.overlay.tooltipRenderer)return Z.overlay.tooltipRenderer}if(q.playerResponse&&(q=q.playerResponse,q.messages&&q.messages.length>0&&(q=q.messages.find(function(w){return!(!w||!w.tooltipRenderer)}))&&q.tooltipRenderer))return q.tooltipRenderer},Zcb=function(q){if(!qg6&&(q=q||_.zj("ZWIEBACK_PING_URLS"))&&q.length){qg6=!0;
for(var Z=0;Z<q.length;Z++)_.EG(q[Z])}},rz6=function(q){if(_.R4.get(_.zj("PLAYER_VARS",{}),"privembed",!1)!="1"){q&&nc7();
try{wIl().then(function(){},function(){}),_.hf(rz6,18E5)}catch(Z){_.ns(Z)}}},Yg7=function(){var q=_.Hd(),Z=q.getFlag(119),w=window.devicePixelRatio>1;
document.body&&_.x2(document.body,"exp-invert-logo")&&(w&&!_.x2(document.body,"inverted-hdpi")?_.nn(document.body,"inverted-hdpi"):!w&&_.x2(document.body,"inverted-hdpi")&&_.BJ(document.body,"inverted-hdpi"));Z!=w&&(_.Wd(0,119,w),q.save())},$Y7=function(q){return q.filter(function(Z){return"ypcGetCartEndpoint"in Z||"ypcFixInstrumentEndpoint"in Z})},eLD=function(q){return q.filter(function(Z){return!_.J(Z,_.Ebg)})},PYV=function(q){q=_.P(q);
for(var Z=q.next(),w={};!Z.done;w={setter$jscomp$6:void 0},Z=q.next()){var r=Z.value;Z=r.params;r=r.service;Z&&r&&(w.setter$jscomp$6=CYc[r],w.setter$jscomp$6&&Z.forEach(function(Y){return function(C){var d=C.key;C=C.value;d&&C&&(0,Y.setter$jscomp$6)(d,C)}}(w)))}},VFF=function(q,Z){var w,r,Y,C,d,O,H;
_.V(function(L){switch(L.nextAddress){case 1:w=_.zI.getInstance();r=_.AJ.instance;Y=_.bl.instance;if(!Y)return dYZ(q,r,Z),L.return();_.d9(L,2);q.onLoadingCommand&&r.resolveCommand(q.onLoadingCommand);return _.W(L,w.getCurrentPositionFromGeolocation(),4);case 4:C=L.yieldResult;if(!q.resolveLocationCommand){L.jumpTo(5);break}d=w.createLocationInfo(C);return _.W(L,_.zR(Y,q.resolveLocationCommand,{locationInfo:d}),6);case 6:O=L.yieldResult;if(!O||"error"in O&&O.error||O.errorMetadata)return dYZ(q,r,Z),
L.return();var S;if(O==null?0:(S=O.onResponseReceivedActions)==null?0:S.length){S=_.P(O.onResponseReceivedActions);for(var v=S.next();!v.done;v=S.next())r.resolveCommand(v.value)}(_.J(q.onSuccessCommand,_.ck)||_.J(q.onSuccessCommand,_.qZ))&&_.hy(Z.hostElement,"yt-navigate",{endpoint:q.onSuccessCommand,reload:!0});case 5:_.QL(L,0);break;case 2:H=_.o3(L);if(H instanceof GeolocationPositionError&&H.code===GeolocationPositionError.PERMISSION_DENIED)return q.onDeniedCommand&&r.resolveCommand(q.onDeniedCommand),
L.return();dYZ(q,r,Z);_.ub(L)}})},dYZ=function(q,Z,w){q.onFailureCommand&&(Z.resolveCommand(q.onFailureCommand),_.yY(w.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},Hcl=function(q,Z){var w=_.J(q,_.ViJ);
if(w&&Z){q=w.videoIds||[w.videoId];var r;Z=(r=_.hy(Z,"yt-lockup-requested",{videoIds:q}).detail)==null?void 0:r.returnValue;var Y;w.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?Y=Z?Z:q.map(function(C){return{videoId:C,navigationEndpoint:w.videoCommand}}):Z&&(Y=Z);
Y&&(r=Y.map(function(C){var d=Object,O=d.assign;var H=C.navigationEndpoint;if(!_.J(H,_.Yz)){var L=_.J(H,_.ck);if(L){if(delete L.index,delete L.playlistId,L=_.J(H==null?void 0:H.commandMetadata,_.XK),L==null?0:L.url){var S=L.url;S=_.pp(S,"list");S=_.pp(S,"index");L.url=S}}else H=void 0}return O.call(d,{},C,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:H})}),Ocu(r,w))}},Wg8=function(q){var Z=_.nq();
if(q=_.J(q,_.OGX))q.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&Z.clearQueue(),q.closeMiniplayer&&_.t().resolve(_.Tf).close(!0)},uHZ=function(q){oZD(_.nq(),q)},Lg6=function(q){var Z;
(q=(Z=_.J(q,_.PUK))==null?void 0:Z.setVideoIds)&&q.forEach(function(w){_.F4J(_.nq(),w)})},vZZ=function(q){Sg8(_.nq(),q)},jll=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(q){return!1}},tFC=function(q,Z,w){return{horizontalAlignment:q.x+w.width/2<Z.width/2?"west":"east",
verticalAlignment:q.y+w.height/2<Z.height/2?"north":"south"}},Jzq=function(q,Z,w,r,Y){Y=Y===void 0?new _.B3(0,0):Y;
return RLl(bcF(q,Z,w,r),Y)},bcF=function(q,Z,w,r){return new _.B3(q==="west"?16:w.width-r.width-16,Z==="north"?16:w.height-r.height-16)},zLy=function(q,Z){var w=0;
q&&(w+=76);Z&&(w+=285);return w},BSl=function(q){var Z=["h",
"m","s"],w=_.Ge(Z);w.reverse();var r={};q=(q.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(d){var O=(d.match(/[hms]/)||[""])[0];return O?(r[O]=parseInt(d.match(/\d+/)[0],10),!1):!0});
for(q.reverse();q.length&&w.length;){var Y=w.shift();Y in r||(r[Y]=parseInt(q.shift(),10))}if(q.length||r.s>59||r.m>59||r.h>9)return null;var C="";Z.forEach(function(d){r[d]&&(C+=""+r[d]+d)});
return C||null},a88=function(q){q=q.data;
return _.u("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.u("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.u(_.aQ,{data:{thumbnails:[{url:q.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.u("div",{class:"profile-badge-view-model-wiz__content"},_.u("div",{class:"profile-badge-view-model-wiz__badge-description"},q.badgeDesc),q.badgeSubtitle?_.u("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},q.badgeSubtitle):null))},nZD=function(q){q=
q.data;
var Z=_.Iw();_.Q0(Z,q.rendererContext);return _.u("yt-comment-interaction-view-model",{el:Z,class:"yt-comment-interaction-view-model-wiz"},_.u("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":q.onTapA11yLabel,"on:keydown":_.bo(),tabindex:0},_.u("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.u("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},q.headerPrefix,' "',q.videoTitle),_.u("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.u("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.u("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},q.commentContent),_.u("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.u(_.aQ,{data:{thumbnails:[{url:q.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},EZ7=function(q){q=q.data;
return _.u("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},Ql6(q.avatar),_.u("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},q.channelName))},TS6=function(q){q=q.data;
var Z;return _.u("div",{class:"yt-profile-info-view-model-wiz__activity"},_.u("div",{class:"yt-profile-info-view-model-wiz__header"},_.u("div",{class:"yt-profile-info-view-model-wiz__section-title"},q.commentsInteractionTitle)),(Z=q.comments)==null?void 0:Z.map(function(w){return _.u("div",{class:"yt-profile-info-view-model-wiz__activity"},xYu(w))}))},UYD=function(q){q=q.data;
var Z=_.Ln({elementsCommand:q.subscriptionsAccessButtonCommand}),w=_.Iw();_.P1N(w,_.oQ(q.subscriptionsAccessButtonCommand));var r=_.fn(function(C){if(Z==null?0:Z.onclick)Z.onclick(C);return!1}),Y;
return _.u("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.u("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.u("a",{el:w,"on:click":r,class:"yt-profile-info-view-model-wiz__another-header"},_.u("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},q.sharedSubscriptionsTitle),_.u("div",null,xYu(q.subscriptionsAccessButton)))),_.u("div",{class:"yt-profile-info-view-model-wiz__subs"},(Y=q.sharedSubscriptions)==null?void 0:Y.slice(0,5).map(function(C){return _.u("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",xYu(C))})))},kPb=function(q){q=q.data;
var Z;return _.u("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.u("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.u("h2",{class:"yt-profile-info-view-model-wiz__section-title"},q.sharedSubscriptionsTitle)),_.u("div",{class:"yt-profile-info-view-model-wiz__subs"},(Z=q.sharedSubscriptions)==null?void 0:Z.slice(0,5).map(function(w){return _.u("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",xYu(w))})))},KgC=function(q){q=q.data;
return _.u("div",{class:"yt-profile-info-view-model-wiz__activity"},[q.profileBadgeInfoYtWide,q.profileBadgeInfoChannelWide].map(function(Z){var w,r,Y,C,d;return Z?_.u(_.lS,null,_.u("div",{class:"yt-profile-info-view-model-wiz__header"},_.u("div",{class:"yt-profile-info-view-model-wiz__section-title"},Z==null?void 0:Z.profileSectionTitle),_.u("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.u("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},Z==null?void 0:(w=Z.commentBadge)==
null?void 0:w.commentDesc),(Z==null?0:(r=Z.commentBadge)==null?0:r.blackHeartDesc)?_.u("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.u("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.u(_.aQ,{data:{thumbnails:[{url:Z==null?void 0:(Y=Z.commentBadge)==null?void 0:Y.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.u("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},Z==null?void 0:(C=
Z.commentBadge)==null?void 0:C.blackHeartDesc))),_.u("div",{class:"yt-profile-info-view-model-wiz__badge"},Z==null?void 0:(d=Z.badges)==null?void 0:d.map(function(O){return _.u(a88,{data:O})}))):null}))},sl8=function(q){q=q.data;
return _.u("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.u(KgC,{data:q}),q.comments?_.u(TS6,{data:q}):null,q.sharedSubscriptionsTitle?q.subscriptionsAccessButtonCommand?_.u(UYD,{data:q}):_.u(kPb,{data:q}):null)},czC=function(q){var Z=q.data;
q=Z?I87(Z.profileIdentityInfo):void 0;Z=Z?I87(Z.profileInfo):void 0;return _.u("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},q,Z)},MFC=function(q,Z){var w=_.pr2(Z,{},q,!0);
return new Promise(function(r,Y){w.listenOnce("n",function(){Y(Error("fl`"+w.JSC$25581_getErrorDescription()))});
w.listenOnce("l",function(){var C=w.getResponseCode();if(C!==200)Y(Error("gl`"+Z+"`"+q.type+"`"+q.size+"`"+C));else try{r(JSON.parse(w.getResponseText()).encryptedBlobId)}catch(d){Y(d)}});
w.run()})},Fgu=function(q){return q.substring(q.indexOf(":")+1,q.indexOf(";"))},NSZ=function(q){return new Promise(function(Z,w){var r=new FileReader;
r.onloadend=function(){try{var Y=new Uint8Array(r.result);Y.length<8&&w(void 0);var C=Y.subarray(0,8);Y="";for(var d=0;d<C.length;d++)Y+=("0"+C[d].toString(16)).substr(-2);Y.startsWith("ffd8ff")?Z("image/jpeg"):Y.startsWith("47494638")?Z("image/gif"):Y.startsWith("89504e470d0a1a0a")?Z("image/png"):Y.startsWith("424d")?Z("image/bmp"):Z(void 0)}catch(O){w(O)}};
r.onerror=w;r.readAsArrayBuffer(q)})},l8l=function(q){return new Promise(function(Z,w){var r=new Image;
r.crossOrigin="anonymous";r.onload=function(){var Y=document.createElement("canvas");Y.width=r.naturalWidth;Y.height=r.naturalHeight;var C=Y.getContext("2d");if(!C)throw Error("hl");C.drawImage(r,0,0);C=Fgu(q);Y.toBlob(function(d){d?Z(d):w()},C)};
r.src=q})},pI8=function(q,Z){var w;
if(((w=_.J(q,_.Yz))==null?void 0:w.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var r;_.hy((r=Z.hostElement)!=null?r:Z,"yt-shorts-reset");_.sXp(_.t().resolve(_.pq),q).then(function(C){GPZ(C,Z,q)})}else{var Y;
_.qM((Y=Z.hostElement)!=null?Y:Z,[q]).then(function(C){C&&GPZ(C.data,Z,q)})}},GPZ=function(q,Z,w){if(q){var r=_.J(q.replacementEndpoint,_.Yz);
if(r){q.sequenceContinuation&&(r.sequenceParams=q.sequenceContinuation);var Y;_.hy((Y=Z.hostElement)!=null?Y:Z,"yt-navigate",{endpoint:q.replacementEndpoint})}else if((q==null?void 0:q.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(q==null?0:q.watchStatus)&&_.J(q.watchStatus,_.pBX)){var C;_.hy((C=Z.hostElement)!=null?C:Z,"yt-navigate",{endpoint:w})}}},XIy=function(){var q=_.t().resolve(_.oL),Z=eYS(q.getState())||"";
q=_.uk9(q.getState())||"";return{disableCache:Z==="ytd-browse"&&q==="home"}},mY6=function(q){if(!q)return!1;
try{if(q.host&&q.host.tagName==="YT-FORMATTED-STRING"&&q.host.id==="contenteditable-textarea"||q.nodeType===Node.ELEMENT_NODE&&q.tagName==="YTD-COMMENT-INPUT")return!0}catch(Z){return!1}return mY6(q.parentNode)},MQ=function(q){return q?q.tagName==="A"&&q.href&&q.classList.contains("yt-simple-endpoint"):!1},AzF=function(q){return q?q.tagName==="IMG"&&q.classList.contains("emoji"):!1},f8q=function(q,Z,w){if(!q)return null;
var r=MQ(q);if(r&&w)return Z=q.pathname.substring(q.pathname.indexOf("/channel/")+9),document.createTextNode("@"+Z);if(r&&!w)return document.createTextNode("");if(AzF(q))return w=q.alt,q=q.dataset.emojiId,!q&&Z&&(Z=_.PQ(Z,w))&&Z.isCustomEmoji&&(q=Z.emojiId),q?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+q+">"):document.createTextNode(w);r=q.cloneNode(!1);for(var Y=0;Y<q.childNodes.length;++Y){var C=f8q(q.childNodes[Y],Z,w);C&&r.appendChild(C)}return r},Fq=function(q){return q?MQ(q)?q:Fq(q.lastChild):
null},DYb=function(q){return q?MQ(q)?q:DYb(q.firstChild):null},hLy=function(q){if(!q)return null;
for(var Z=q.previousSibling;Z;)if(Z.nodeType===Node.ELEMENT_NODE&&Z.nodeName==="BR")Z=Z.previousSibling;else if(Z.nodeType===Node.TEXT_NODE&&/\s+/.test(Z.textContent))Z=Z.previousSibling;else break;(Z=Fq(Z))?q=Z:q=(q=q.parentNode)?Fq(q.previousElementSibling):null;return q},yzu=function(q){if(!q)return null;
for(var Z=q.nextSibling;Z;)if(Z.nodeType===Node.ELEMENT_NODE&&Z.nodeName==="BR")Z=Z.nextSibling;else if(Z.nodeType===Node.TEXT_NODE&&/\s+/.test(Z.textContent))Z=Z.nextSibling;else break;return(Z=DYb(Z))?Z:yzu(q.parentNode)},icb=function(q){var Z=_.Vt(),w=Z.JSC$9109_getStartNode();
if(!mY6(w.parentNode))return null;Z=Z.JSC$9109_getStartOffset();if(w.nodeType===Node.TEXT_NODE){var r=_.E3(w,MQ);if(r){if(q&&Z===0||!q&&Z===w.length)return r}else{if(q&&Z===w.length)return!w||w.nodeName==="BR"||w.nextElementSibling&&_.Oz(w.nextElementSibling,"display")==="block"?null:DYb(w.nextElementSibling);if(!q&&Z===0)return w?Fq(w.previousElementSibling):null}}if(w.nodeType===Node.ELEMENT_NODE)if(q){if(0<=Z&&Z<w.childNodes.length)return DYb(w.childNodes[Z])}else if(0<Z&&Z<=w.childNodes.length)return Fq(w.childNodes[Z-
1]);return null},gZb=function(q,Z,w){if(!q)return null;
if(q.nodeType===Node.TEXT_NODE)if(w){var r=hLy(q);if(r&&!/^\s+\S/.test(q.wholeText.substr(0,Z)))return r}else if((r=yzu(q))&&!/\S\s+/.test(q.wholeText.substr(Z,q.wholeText.length)))return r;return q.nodeType===Node.ELEMENT_NODE?w?hLy(q.childNodes[Z]):yzu(q.childNodes[Z]):gZb(q.parentNode,Z,w)},qvq=function(q){if(q.hasChildNodes())switch(q.tagName){case "DIV":case "A":case "SPAN":var Z="";
for(q=q.firstChild;q;q=q.nextSibling)Z+=qvq(q);return Z;default:return""}else switch(q.nodeType){case 3:return q.textContent;default:return""}},ZIy=function(q){q=q.data;
return _.u("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.u("div",null,_.u(_.r6,{text:q.title})),q.subtitle?_.u("div",{class:"ytd-menu-title-renderer__subtitle"},_.u(_.r6,{text:q.subtitle})):null)},wrF=function(q){switch(q){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"}},r$C=function(q){return q.map(function(Z){return{settingsRadioOptionRenderer:{title:_.Xm(Z.name),
asideText:_.Xm(Z.approximateSize),id:wrF(Z.format)}}})},$fc=function(q){if(q&&q.length!==0)return q.filter(Yvl()).map(function(Z){return{settingsRadioOptionRenderer:{title:Z.name,
asideText:Z.approximateSize,id:wrF(Z.formatType)}}})},evl=function(q){if(q)return q.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},C46=function(q){var Z=q.indexOf("(");
return Z!==-1?q.substring(Z+1,q.length-1):q},P4Z=function(q){switch(q){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},VzF=function(q,Z,w,r,Y,C){var d=_.R4.clone(df8);
d.locale=_.zj("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;d.report={description:Y||"<empty>"};Y=_.zj("SBOX_SETTINGS",{});Z=Z.join(",");var O=Date.now();q={choice_cc:r,choice_id_cc:w,choices_sc:Z,gl:Y.REQUEST_DOMAIN,hl:Y.REQUEST_LANGUAGE,query:q,time:O};C&&(q.choice_additional_comment_cc=C);_.hvW(d,q)},OI7=function(q){var Z=new Map;
Z.set("authuser",_.zj("SESSION_INDEX","0"));return _.ZM(q,Z)},W9y=function(q){var Z;
return _.V(function(w){switch(w.nextAddress){case 1:if(!q||!HIF(q))return w.return(null);Z=null;switch(_.zj("INNERTUBE_CLIENT_NAME")){case "WEB":return w.jumpTo(2);case "WEB_REMIX":Z=q.getPlayer()}w.jumpTo(3);break;case 2:return _.W(w,q.getPlayerPromise(),4);case 4:Z=w.yieldResult;w.jumpTo(3);break;case 3:return w.return(Z)}})},HIF=function(q){return["ytd-player",
"ytmusic-player"].includes(String(q.tagName||"").toLowerCase())},oAl=function(q){q=Math.round(q);
return q%2?q-1:q},ubc=function(q){q=Math.round(q);
return q%2===0?q-1:q},L9C=function(q){var Z,w,r;
if(q=(Z=q.createPlaylistDialogFormSchema)==null?void 0:(w=Z.fieldSchemas)==null?void 0:(r=w.title)==null?void 0:r.validationSchema)for(Z=[q.syncStep,q.asyncStep].filter(function(Y){return Y!==void 0}),Z=_.P(Z),w=Z.next();!w.done;w=Z.next()){w=w.value.rules;
if(!w)break;w=_.P(w);for(w=w.next();!w.done;w=w.next())return _.J(w.value,_.hEF)}},vA7=function(q){var Z,w,r;
if(q=(Z=q.createPlaylistDialogFormSchema)==null?void 0:(w=Z.fieldSchemas)==null?void 0:(r=w.visibility)==null?void 0:r.validationSchema)for(Z=[q.syncStep,q.asyncStep].filter(function(Y){return Y!==void 0}),Z=_.P(Z),w=Z.next();!w.done;w=Z.next()){w=w.value.rules;
if(!w)break;w=_.P(w);for(r=w.next();!r.done;r=w.next())if(r=_.J(r.value,Svy))return Z=void 0,(Z=r.translations)==null?void 0:Z.visibilityNotValidErrorMessage}},jr8=function(){var q,Z;
return(Z=(q=_.t().resolve(_.Gj(_.RQ)))==null?void 0:q())!=null?Z:!1},tzl=function(q,Z){a:switch(Z){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":Z="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:Z="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:q,style:Z,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},Rvy=function(q){_.yY(q,"yt-refit-popups-action")},J$V=function(q){var Z=q.data;
var w=q.disablePadding;var r=q.className;var Y=_.Iw(),C=tzl(Z.banner,Z.assetContainerPaddingStyle),d=tzl(Z.imageBanner,Z.assetContainerPaddingStyle),O=Z.assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET",H=Z.assetContainerMaxHeight;_.Ls(function(){var L;(L=Y.value)==null||L.addEventListener("image-loaded",function(){Rvy(Y.value)})});
_.SG(function(){var L;(L=Y.value)==null||L.removeEventListener("image-loaded",function(){Rvy(Y.value)})});
q={};return _.u("yt-dialog-header-view-model",{el:Y,class:_.XA(r,(q.ytDialogHeaderViewModelHost=!0,q.ytDialogHeaderViewModelHostDisablePadding=!!w,q))},_.Fs(Z.banner,function(){var L={};return _.u("div",{class:_.XA(r,(L.ytDialogHeaderViewModelBanner=!0,L.ytDialogHeaderViewModelBannerFullBleed=!!O,L)),style:"max-height: "+(H?H+"px":"")},_.u(_.yS,{data:C,className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.Fs(Z.imageBanner,function(){var L={};
return _.u("div",{class:_.XA(r,(L.ytDialogHeaderViewModelBanner=!0,L.ytDialogHeaderViewModelBannerFullBleed=!!O,L)),style:_.y1({"max-height":function(){return H!==void 0?H+"px":void 0}})},_.u(_.yS,{data:d,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.Fs(Z.customAssetContainer,function(){return _.u("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},bIV(Z.customAssetContainer))}),_.Fs(Z.customBanner,function(){return _.u("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},bIV(Z.customBanner))}),_.Fs(Z.headline,function(){return _.u("h2",null,_.u(_.r6,{text:Z.headline,
className:"ytDialogHeaderViewModelText"}))}))},zv8=function(q){var Z=21;
if(!q)return Z;Z+=q.headerTitle?27:0;Z+=q.headerTitle&&q.hasHeaderActionHeader?4:0;return Z+=q.headerTitle&&q.headerSubtitle?16:0},BMy=function(q){var Z=0;
if(!q)return Z;Z+=q.hasFooterPrimaryButton||q.hasFooterSecondaryButton?48:0;Z+=q.footerTrailingLabel||q.footerLeadingLabel?30:0;return Z+=q.hasFooterPrimaryButton||q.hasFooterSecondaryButton||!q.footerTrailingLabel&&!q.footerLeadingLabel?0:12},aIy=function(q){var Z=new _.wf,w=q;
return{subscribe:function(r){Z.subscribe("changed",r)},
dispatch:function(r,Y){var C=w;r==="Touch Start"?w=Object.assign({},C,{isAnimating:!1,initialY:Y.event.touches[0].clientY}):r==="Touch Move"?(r=Math.min(Y.fullContentWrapperHeight,Y.contentHeightMap[Y.contentWrapperId]+zv8(Y.header)-BMy(Y.footer)),w=Object.assign({},C,{currentY:Math.max(Y.contentScrollable?-1*(C.initialY-24):0,Y.event.touches[0].clientY-C.initialY),maxHeightForContentWrapper:Math.min(r,Math.max(0,(C.isFullScreen?r:Y.contentWrapperHeight)-C.currentY))})):w=r==="Snap To Full Screen"?
Object.assign({},C,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:Y.maxHeight}):r==="Snap To Neutral Position"?Object.assign({},C,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:Y.maxHeight}):r==="Close Sheet"?Object.assign({},C,{isAnimating:!0,currentY:Y.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:Y.maxHeight}):C;Z.publish("changed",w)}}},nAC=function(q){return _.fn(function(Z){q(Z);
return!1})},QrD=function(){_.t().resolve(_.Ha).closeSheet()},EAq=function(q){var Z,w,r,Y,C,d,O,H,L,S,v;
return{headerTitle:(Z=q.headerTitle)==null?void 0:Z.call(q),headerSubtitle:(w=q.headerSubtitle)==null?void 0:w.call(q),headerActionHeader:q.headerActionHeader,footerPrimaryButton:q.footerPrimaryButton,footerSecondaryButton:q.footerSecondaryButton,footerButtonType:(r=q.footerButtonType)==null?void 0:r.call(q),footerLeadingLabel:(Y=q.footerLeadingLabel)==null?void 0:Y.call(q),footerTrailingLabel:(C=q.footerTrailingLabel)==null?void 0:C.call(q),shouldShowIcons:(d=q.shouldShowIcons)==null?void 0:d.call(q),
skipContentClick:(O=q.skipContentClick)==null?void 0:O.call(q),additionalClassName:(H=q.additionalClassName)==null?void 0:H.call(q),onClosedCallback:q.onClosedCallback,focusOnClose:(L=q.focusOnClose)==null?void 0:L.call(q),isDisabled:(S=q.isDisabled)==null?void 0:S.call(q),disabledCommand:(v=q.disabledCommand)==null?void 0:v.call(q),headerFn:q.headerFn,contentFn:q.contentFn,footerFn:q.footerFn,hasHeaderFn:q.hasHeaderFn(),hasContentFn:q.hasContentFn(),hasFooterFn:q.hasFooterFn(),hasFooterPrimaryButton:q.hasFooterPrimaryButton(),
hasFooterSecondaryButton:q.hasFooterSecondaryButton(),hasHeaderActionHeader:q.hasHeaderActionHeader()}},xfF=function(q){switch(q){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""}},TMq=function(q){switch(q){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""}},Ufy=function(q){switch(q){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""}},k3b=function(q,Z,w){Z.forEach(function(r){_.hA(_.t().resolve(_.wK),r)});
_.yY(q,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",w])},c$l=function(q,Z,w,r){var Y=_.J(w,_.BZ).commandLifeCycleConfig;
Y&&Y.onStartCommand&&_.ZC(q,[Y.onStartCommand],Z);_.cQ(Z);var C=_.bl.instance;C&&_.J7(C,w)?_.zR(C,w,r).then(function(d){if(!d||(d==null?0:d.error))return d=_.J(w,_.BZ).serializedTransactionFlowLoggingParams,_.Ml(Z),_.TX(new NQ("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",d));_.Ml(Z);return{data:d}}).then(function(d){_.Ml(Z);
K9b(d.data);var O=d.data.command;O&&_.ZC(q,[O],Z);O=sr8(w,d.data);if(!O){var H=d.data;d=!1;if(H&&H.command&&_.J(H.command,_.$K)){var L;H=((L=_.J(H.command,_.$K))==null?void 0:L.commands)||[];for(L=0;L<H.length;L++)if(_.J(H[L],_.HKK)){d=!0;break}}d||_.$b('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!O&&Y&&Y.onSuccessCommand?_.ZC(q,[Y.onSuccessCommand],Z):O&&Y&&Y.onFailureCommand&&_.ZC(q,[Y.onFailureCommand],Z)},function(){_.Ml(Z);
Y&&Y.onFailureCommand&&_.ZC(q,[Y.onFailureCommand],Z);IIu(w)}):_.tY(Error("yl"),"ERROR")},Mzc=function(q,Z,w){var r=[Z];
w&&r.push(w);return _.qM(q,r).then(function(Y){var C=_.J(Z,_.BZ).serializedTransactionFlowLoggingParams,d=Y.data,O=sr8(Z,d);O?Y=_.TX(new NQ(O,C)):K9b(d);return Y},function(){var Y=_.J(Z,_.BZ).serializedTransactionFlowLoggingParams;
IIu(Z);return _.TX(new NQ("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Y))})},sr8=function(q,Z){q=_.J(q,_.BZ).serializedTransactionFlowLoggingParams;
var w=null;switch(Z.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":w="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":w="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":w="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}w?_.no(w,q):i6D(q);return w},IIu=function(q){_.no("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.J(q,_.BZ).serializedTransactionFlowLoggingParams)},
K9b=function(q){if(q.trackingParams){var Z=_.b5(),w=_.Rs();
Z&&w&&_.T7(Z,w,_.wa(q.trackingParams))}},F9V=function(q,Z,w){var r=_.bl.instance,Y=_.vej(_.zj("YPC_MB_URL")),C=(new _.LdN).init(),d=_.SrI(),O=_.J(w,_.P3e).languageCode;
O===void 0?_.tY(Error("Di"),"ERROR"):_.WD([C,Y]).then(function(){var H={ctk:payments.business.integration.ClientTokenFactory.createClientToken(O,d)};r&&_.J7(r,w)?_.zR(r,w,H).then(function(L){return{data:L}}).then(function(L){_.hy(Z,"yt-service-request-completed",L);
L.code!=="ERROR"&&(L=L.data.command)&&_.ZC(q,[L],Z)}):_.tY(Error("yl"),"ERROR")})},G3q=function(q,Z,w,r){var Y=_.bl.instance;
Y&&_.J7(Y,w)?_.zR(Y,w,r).then(function(C){return{data:C}}).then(function(C){NMV(q,Z,w,C)},function(){lIu(w)}):(Y=_.t().resolve(_.Gj(_.Co)))&&Y.requestDataForServiceEndpoint(w,r).then(function(C){NMV(q,Z,w,C)},function(){lIu(w)})},NMV=function(q,Z,w,r){_.hy(Z,"yt-service-request-completed",r);
if(r.code&&r.code=="ERROR")lIu(w);else{(r=r.data.commands)&&_.ZC(q,r,Z);var Y;(q=(Y=_.J(w,_.obX))==null?void 0:Y.serializedYpcPauseFlowLoggingParams)&&q&&_.H9("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",q)}},lIu=function(q){var Z;
(q=(Z=_.J(q,_.obX))==null?void 0:Z.serializedYpcPauseFlowLoggingParams)&&q&&_.H9("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",q,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},mfF=function(q,Z,w){var r=_.bl.instance;
r&&_.J7(r,w)?_.zR(r,w).then(function(Y){return{data:Y}}).then(function(Y){prV(q,Z,w,Y)},function(){Xrq(w)}):(r=_.t().resolve(_.Gj(_.Co)))&&r.requestDataForServiceEndpoint(w).then(function(Y){prV(q,Z,w,Y)},function(){Xrq(w)})},prV=function(q,Z,w,r){_.hy(Z,"yt-service-request-completed",r);
r.code&&r.code=="ERROR"?Xrq(w):((r=r.data.commands)&&_.ZC(q,r,Z),(q=_.J(w,_.upg).serializedYpcResumeFlowLoggingParams)&&q&&_.H9("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",q))},Xrq=function(q){(q=_.J(q,_.upg).serializedYpcResumeFlowLoggingParams)&&q&&_.H9("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",q,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},A$S=function(q){q=q===void 0?{}:q;
_.t().resolve(_.KTS).showFeedbackDialog(q.customProductData,q.feedbackContent,q.onFeedbackSubmitted,q.bucket)},fIl=function(q){q=q===void 0?{}:q;
_.t().resolve(_.KTS).showHelpDialog(q.helpContext,q.articleId,q.productData)},DfF=function(){fIl()},hvb=function(){A$S()},iIl=function(q,Z,w){var r,Y,C,d,O,H,L;
return _.V(function(S){switch(S.nextAddress){case 1:r=_.J(q,y$7);if((Y=r)==null?0:Y.productId){H={productId:r.productId,bucket:r.bucket,enableAnonymousFeedback:(O=r.enableAnonymousFeedback)!=null?O:!0,allowNonLoggedInFeedback:!0};L={feedbackChoice:w.feedbackChoice};if(!_.b("web_collect_offline_state")){S.jumpTo(8);break}_.d9(S,9);return _.W(S,PoD(L),11)}d={bucket:(C=r)==null?void 0:C.bucket};if(!_.b("web_collect_offline_state")){S.jumpTo(4);break}d.customProductData={};_.d9(S,5);return _.W(S,PoD(d.customProductData),
7);case 7:_.QL(S,4);break;case 5:_.o3(S);case 4:A$S(d);S.jumpTo(0);break;case 11:_.QL(S,8);break;case 9:_.o3(S);case 8:_.Og1(L),_.VS9("GFEEDBACK",L),r.productId==="5295751"&&(L.client_attestation=Number(_.zj("CATSTAT",0))),r.productId==="5295751"&&(L.client_time=Date.now()/1E3/3600),r.productId==="5295751"&&(L.original_playback_id=_.DhX||""),_.hvW(H,L),_.ub(S)}})},gAS=function(q){if(q=_.J(q,_.NVT)){var Z={bucket:q.bucketIdentifier};
q.additionalDatas&&(Z.customProductData={},q.additionalDatas.forEach(function(w){if(w=w.userFeedbackEndpointProductSpecificValueData)Z.customProductData[w.key]=w.value}));
A$S(Z)}},qTF=function(q){var Z=_.UU.getInstance(),w=_.dT("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?"),r=_.dT("DELETE",void 0,"Delete"),Y=_.dT("CANCEL",void 0,"Cancel");
w={openPopupAction:Lqq(w,void 0,r,Y,{signal:"DELETE_ALL_DOWNLOADS"})};_.tH(Z,[w],q)},wDS=function(){return _.V(function(q){return q.nextAddress==1?_.W(q,_.t().resolve(_.Kr),2):_.W(q,ZNV(),0)})},rqy=function(q){var Z,w;
return _.V(function(r){return r.nextAddress==1?(w=(Z=_.J(q,_.EU))==null?void 0:Z.targetId)?_.W(r,_.t().resolve(_.Kr),3):r.jumpTo(0):_.W(r,_.t().resolve(_.kS).deleteVideo(w),0)})},$Cc=function(q){var Z,w;
return _.V(function(r){return r.nextAddress==1?(w=(Z=_.J(q,_.EU))==null?void 0:Z.targetId)?_.W(r,_.t().resolve(_.Kr),3):r.jumpTo(0):_.W(r,YTV(_.t().resolve(_.kS),w),0)})},CQq=function(q){var Z,w;
return _.V(function(r){return(w=(Z=_.J(q,_.EU))==null?void 0:Z.targetId)?_.W(r,eUV(w),0):r.jumpTo(0)})},dCq=function(){_.b("kevlar_woffle_refresh_dl_load_killswitch")||PQb()},ONV=function(){_.b("kevlar_woffle")&&_.Jr.instance&&V37()},WxD=function(q){var Z;
if((Z=_.J(q,_.h7))==null||!Z.videoId)return!1;HNy(_.t().resolve(_.kS),_.J(q,_.h7),q.clickTrackingParams);return!0},ui7=function(q){var Z;
if((Z=_.J(q,_.yB))==null||!Z.playlistId)return!1;o27(_.t().resolve(_.kS),_.J(q,_.yB),q.clickTrackingParams);return!0},STb=function(q){var Z=_.J(q,_.SKh);
(Z==null?void 0:Z.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(Z==null?void 0:Z.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||LxS(_.t().resolve(_.kS),_.J(q,_.SKh))},jnb=function(q){q=_.J(q,_.h3D);
var Z;(q==null?0:(Z=q.actions)==null?0:Z.length)&&v2q(q)},bNV=function(q){var Z,w;
return _.V(function(r){Z=_.J(q,t3q);return(w=Z)!=null&&w.localWatchHistoryCommandType?_.W(r,RUc(Z),0):r.return()})},Jqy=function(q){setTimeout(function(){requestAnimationFrame(q)},80)},zUD=function(q){return Object.entries(q).map(function(Z){return Z.join(":")}).join(";")},aSZ=function(q){var Z,w,r;
_.V(function(Y){if(Y.nextAddress==1)return _.W(Y,B_q(),2);Z=Y.yieldResult;w=_.AJ.instance;switch(Z){case "granted":r=q.getLocationCommand;break;case "denied":r=q.openDeniedDialogAction;break;case "prompt":r=q.openCollectionDialogAction;break;default:r=q.openCollectionDialogAction}r&&w.resolveCommand(r);_.ub(Y)})},B_q=function(){var q,Z;
return _.V(function(w){if(w.nextAddress==1)return q="prompt",navigator.permissions?_.W(w,navigator.permissions.query({name:"geolocation"}),3):w.jumpTo(2);w.nextAddress!=2&&(Z=w.yieldResult,q=Z.state);return w.return(q)})},QnD=function(){_.V(function(q){return _.W(q,_.n26(),0)})},E2V=function(){var q,Z,w;
return _.V(function(r){if(r.nextAddress==1)return q=_.t().resolve(_.PP),q?_.W(r,_.zR(q,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.bx(Error("Bl")),r.return(void 0));if(Z=r.yieldResult){if(Z.errorMetadata)return _.bx(Error("Cl`"+Z.errorMetadata.status+"`"+Z.error)),r.return(void 0);w=Z.datasyncIds;_.s4l=w.length;return r.return(w)}_.bx(Error("Dl"));return r.return(void 0)})},xCC=function(){E2V().then(function(q){q&&(Kqb(q),qMZ(q),zIS(q),VrF(q))})},T_q=function(q){_.v5.addLowPriorityJob(function(){var Z,
w,r,Y,C;
return _.V(function(d){switch(d.nextAddress){case 1:if(_.b("ytidb_clear_optimizations_killswitch")){d.jumpTo(2);break}Z=_.CY("clear");if(Z.startsWith("V")&&Z.endsWith("||")){var O=[Z];Kqb(O);qMZ(O);zIS(O);VrF(O);return d.return()}w=B6D();r=OVC();return _.W(d,ZVc(),3);case 3:return Y=d.yieldResult,_.W(d,sQZ(),4);case 4:if(C=d.yieldResult,!(w||r||Y||C))return d.return();case 2:q.isNetworkAvailable()?xCC():q.listenOnce("publicytnetworkstatus-online",xCC),_.ub(d)}})})},lE=function(q){q={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.UE(q)}}}};_.AJ.instance&&_.AJ.instance.resolveCommand(q)},UCl=function(q){if(q){var Z=_.iy();
_.mG(Z,3854,void 0,{layer:0,parentLayer:4});switch(q){case 1:var w=238708;break;case 2:w=238715;break;case 3:w=238710;break;case 6:w=238709}w&&(q=_.yy(Z,{veType:w}))&&_.D1(Z,q)}},kMZ=function(q){if(q){var Z=_.iy();
_.mG(Z,3854,void 0,{layer:0,parentLayer:4});switch(q){case 1:var w=238714;break;case 2:w=238711;break;case 8:w=238709;break;case 7:w=238713;break;case 3:case 4:case 5:w=238712}w&&(q=_.yy(Z,{veType:w}))&&_.D1(Z,q)}},KxV=function(q){switch(q.latencyType){case 0:_.bI("consent_primitive_flow");
_.JT("cpit",q.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.JT("cpist",q.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.JT("cprtif",q.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.JT("cprtli",q.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.JT("cprt",q.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.JT("cpdt",q.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.JT("cpjct",q.timestampEpochMillis,"consent_primitive_flow")}},
XDS=function(q,Z){var w,r,Y,C,d,O,H,L,S,v,R,B,n,x,K,k,G,rz,f,eO;
return _.V(function(g){switch(g.nextAddress){case 1:_.d9(g,2);(r=(w=_.J(q,snq))==null?void 0:w.serializedConsentRequest)||(r=(Y=_.J(q,IS8))==null?void 0:Y.serializedConsentRequest);r&&(C=cqC(_.q7(r)));if(C===void 0)return g.return();d=M3C(C);d.latencyCallback=KxV;Z&&Fxl(d,function(){Z.then(function(H6){H6.pauseVideo();(new N_D).increment()})});
return((O=_.J(q,snq))==null?void 0:O.consentAction)==="CONSENT_ACTION_PREWARM"||((H=_.J(q,IS8))==null?void 0:H.consentAction)==="CONSENT_ACTION_PREWARM"?_.W(g,lSc(d),5):_.W(g,GMl(d),6);case 6:L=g.yieldResult;S=_.uY(L,GD);if(S===1){if(((v=_.al(L,pv,1,GD))==null?void 0:_.Jz(v,1))===1||((R=_.al(L,pv,1,GD))==null?void 0:_.Jz(R,1))===2||((B=_.al(L,pv,1,GD))==null?void 0:_.Jz(B,1))===3)_.J(q,IS8)?lE(_.dT("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
lE(_.dT("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));UCl((n=_.al(L,pv,1,GD))==null?void 0:_.Jz(n,1),_.Aj(L,pD7,3,_.fC()))}else S===2?(((x=Xq(L))==null?void 0:_.Jz(x,1))===5?_.J(q,IS8)?lE(_.dT("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):lE(_.dT("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((K=Xq(L))==null?void 0:_.Jz(K,1))===1||((k=Xq(L))==null?void 0:_.Jz(k,1))===4?lE(_.dT("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((G=Xq(L))==null?void 0:_.Jz(G,1))===7&&((rz=C)==null?void 0:(f=_.Xy(rz,mQ,4))==null?void 0:_.Jz(f,4))!==1&&lE(_.dT("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),kMZ((eO=Xq(L))==null?void 0:_.Jz(eO,1))):lE(_.dT("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));g.jumpTo(5);break;case 5:_.QL(g,0);break;case 2:_.o3(g),lE(_.dT("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.ub(g)}})},Aql=function(){if(!mCS.has("Worker")){mCS.set("Worker",
!0);
var q={api:"BROWSER_API_WEB_WORKER"};q.available="Worker"in window?!0:!1;_.vO("apiTest",q)}},fSl=function(q){return typeof q==="undefined"?"-1":String(Math.ceil(q/1048576))},iNC=function(q,Z){DCD(new hUS(_.J(Z,yql).addToken,_.J(Z,yql).commonToken)).then(function(){_.hy(q,"yt-invoke-instrument-manager-action-completed")},function(w){_.hy(q,"yt-invoke-instrument-manager-action-error",w)})},g27={},qsV=function(q){return _.iY6(g27,q,function(){return Nm(_.NCX,q)>=0})},ZGy=function(q){return _.TP(q)},
wW7=function(q){var Z=1;
q=q.split(":");for(var w=[];Z>0&&q.length;)w.push(q.shift()),Z--;q.length&&w.push(q.join(":"));return w},r3y=function(q,Z){Z=q.aspectRatio()<=Z.aspectRatio()?Z.width/q.width:Z.height/q.height;
q.scale(Z)},YsZ=function(q,Z){Z=q.aspectRatio()>Z.aspectRatio()?Z.width/q.width:Z.height/q.height;
return q.scale(Z)},$1q=function(q){var Z=new _.i4;
return _.nc(Z,11,q)},enc=function(q){var Z={};
q=q.getAllResponseHeaders().split("\r\n");for(var w=0;w<q.length;w++)if(!_.W6(q[w])){var r=wW7(q[w]),Y=r[0];r=r[1];if(typeof r==="string"){r=r.trim();var C=Z[Y]||[];Z[Y]=C;C.push(r)}}return _.R4.map(Z,function(d){return d.join(", ")})},Z_=function(q,Z){return q.JSC$7669_xhr_?q.JSC$7669_xhr_.getResponseHeader(Z):null},AN=function(q,Z,w){Array.isArray(w)||(w=[String(w)]);
_.M9J(q.JSC$7906_queryData_,Z,w);return q},V37=function(){var q=_.Jr.instance;
_.V(function(Z){return q.deferredInstallPrompt?_.W(Z,q.deferredInstallPrompt.prompt(),0):Z.jumpTo(0)})},CU8=function(q,Z,w){if(_.pX(q))_.Uq(q,Z,w);
else for(q=_.NJK(q);;){var r=q.next();if(r.done)break;Z.call(w,r.value,void 0,q)}},PUc={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}"]},rHc,Yi7,$Lq,e1q,CaV,PaC,dLc,VbD,Ojc,eUV,YTV,ZNV,Hjc,Wwl,onb,uJb,Lwy,o27,HNy,SiD,vnZ,j77,PQb,LxS,tby,v2q,R1y,RUc,bjb,JHb,z1l,B27,a7l,nnl,Q78,go,En8,xLl,
oZD,Ocu,T2b,UL8,qD,ZW,wY,kZ7,Kw6,s7b,I78,cH7,MbV,FwV,N2F,l7b,GZC;PUc={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 d18=function(q,Z){var w=[];CU8(Z,function(r){try{var Y=_.Dw.prototype.getWrapper.call(this,r,!0)}catch(C){if(C=="Storage: Invalid value was encountered")return;throw C;}Y===void 0?w.push(r):_.F3J(Y)&&w.push(r)},q);
return w},Viu=function(q,Z){d18(q,Z).forEach(function(w){_.Dw.prototype.remove.call(this,w)},q)},OGC=function(q){var Z=_.EZ;
Z._minimumZ=Math.max(Z._minimumZ,q)},HGl=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],Wn6=function(q,Z){_.Xg(q.zU);q.zU=Z},oXD=function(q,Z,w,r){q.setState(5);
var Y=!!q.zLc&&HGl.includes(_.MR(q.zLc)||"");try{var C=new _.bQ({program:Z,globalName:w,oa:{disable:!_.b("att_web_record_metrics")||!_.b("att_skip_metrics_for_cookieless_domains_ks")&&Y,xz:"aGIf"}});C.xN7.then(function(){q.setState(6);r&&r(Z)});
Wn6(q,C)}catch(d){q.setState(7),d instanceof Error&&_.bx(d)}},u$b=function(q,Z,w,r,Y,C){var d=d===void 0?"trayride":d;
w?(q.setState(2),_.np(w,function(){if(window[d])oXD(q,r,d,Y);else{q.setState(3);var O=_.cHj(w),H=document.getElementById(O);H&&(_.mxj(O),H.parentNode.removeChild(H));_.bx(new _.df("BL:ULB",w))}},C)):Z?(C=_.dX("SCRIPT"),Z instanceof _.Ga?_.X5(C,Z):C.textContent=Z,C.nonce=_.lg(document),document.head.appendChild(C),document.head.removeChild(C),window[d]?oXD(q,r,d,Y):(q.setState(4),_.bx(new _.df("BL:ULBJ")))):_.bx(new _.df("BL:ULV"))},LnS=function(){this.state=1;
this.zU=null;this.zLc=void 0};
_.e=LnS.prototype;_.e.initialize=function(q,Z,w,r){this.zLc=r;if(q.program){var Y;r=(Y=q.interpreterUrl)!=null?Y:null;if(q.interpreterSafeScript)Y=_.ol2(q.interpreterSafeScript);else{var C;Y=(C=q.interpreterScript)!=null?C:null}q.interpreterSafeUrl&&(r=_.jJ(q.interpreterSafeUrl).toString());u$b(this,Y,r,q.program,Z,w)}else _.bx(Error("lf"))};
_.e.isInitialized=function(){return!!this.zU};
_.e.getState=function(){return this.state};
_.e.isLoading=function(){return this.state===2};
_.e.invoke=function(q){q=q===void 0?{}:q;var Z;this.zU?Z=_.ni9(this.zU,{pP:q}):Z=null;return Z};
_.e.dispose=function(){Wn6(this,null);this.setState(8)};
_.e.setState=function(q){this.state=q};
var Ssy=function(q,Z){return q.zU.snapshot(Z)},vX7=function(q,Z){var w=_.m6("botguard_async_snapshot_timeout_ms",3E3);
Z=Z===void 0?{}:Z;w=w===void 0?3E3:w;return q.zU?new Promise(function(r,Y){var C=!1,d=_.v5.addJob(function(){C=!0;Y(Error("mf"))},1,w);
q.zU?Ssy(q,{pP:Z}).then(function(O){_.v5.cancelJob(d);C||r(O)}).catch(function(O){_.v5.cancelJob(d);
C||Y(O)}):(_.v5.cancelJob(d),r(null))}):Promise.resolve(null)},jtS=["att/log"],tiF;
tiF={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var Rnc={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},bGq=function(q,Z){return _.YO(q,{mode:"readwrite",enableRetries:!0},function(w){return _.v5j(w,Z,"settingEntity")})},J3c=function(q,Z,w){return _.YO(q,{mode:"readonly",
enableRetries:!0},function(r){return _.cp9(r,Z,w)})},znl=function(q){if(!q.storage)return!1;
a:{if(q.storage){try{var Z=q.storage.get("TLPQtimestamp")}catch(w){}q=Number(Z);if(!isNaN(q))break a}q=void 0}return q?Date.now()-q<864E5:!1},Bk6=function(q,Z){q.queueProxy&&Z.forEach(function(w){if(w.videoId&&w.trackingParams&&q.queueProxy instanceof _.Lq){var r=_.b5();
q.queueProxy.attributionData.set(w.videoId,{enqueueingVe:_.wa(w.trackingParams).getAsJson(),enqueueingCsn:r?r:void 0,clientEnqueueingTimeMs:Math.floor((0,_.lp)()).toString()})}})},ag8=function(q){var Z=_.uPW(q);
Z!=q.currentSnapState_&&(q.currentSnapState_=Z,q.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},fv=function(q){this.JSC$10818_networkManager_=q;
this.partCallbacks_=[]};
fv.prototype.getCacheKeyForEndpoint=function(q){return _.zG6(q,!1)};
fv.prototype.onPartsCallback_=function(q){this.partCallbacks_.forEach(function(Z){q&&Z(q)})};
var D_=function(q,Z,w){fv.call(this,q);this.player_=Z;this.autoplayData_=w};
_.z(D_,fv);D_.prototype.getCacheKeyForEndpoint=function(q){return _.zG6(q,!!this.autoplayData_)};
D_.prototype.getTempData=function(q,Z){Z=Z.timeBeforeNextVideo;q={itct:q.clickTrackingParams,lact:_.pB(),pbis:Z,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(q.autonav=1);return q};
D_.prototype.getXhrParams=function(q){return Object.assign({pbj:"prefetch"},q)};
D_.prototype.getParams=function(q){q={frags:q.fragmentsRequested.join(",")};_.b("kevlar_droppable_prefetchable_requests")&&(q.prefetch=1);return q};
var nXq=function(q){q.playerEvents_.forEach(function(Z){q.player.removeEventListener(Z.eventName,Z.callback)});
q.playerEvents_.length=0},hN=function(q,Z,w){this.player=q;
this.JSC$10828_taskManager=Z;this.prefetchDelay=w;this.completionResolver_=null;this.playerEvents_=[]};
hN.prototype.start=function(){var q=this;this.completionResolver_=_.Be();_.on(this.completionResolver_.promise,function(){nXq(q);q.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var Qtu=function(q,Z,w){q.player.addEventListener(Z,w);q.playerEvents_.push({eventName:Z,callback:w})},EXD={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},x1V={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},Tk6=function(q,Z,w){hN.call(this,q,Z,w);this.cueId_="playbackTrigger-"+Math.random()};
_.z(Tk6,hN);
Tk6.prototype.prepareTrigger=function(q){var Z=this,w=this.player.getDuration(),r=this.player.getVideoData(),Y=r.isLive&&r.hasProgressBarBoundaries;if(Y&&r.progressBarEndPositionUtcTimeMillis){var C=r.progressBarEndPositionUtcTimeMillis/1E3;isNaN(C)||(w=C)}var d=0;this.prefetchDelay>=0?Y?r.progressBarStartPositionUtcTimeMillis&&(r=r.progressBarStartPositionUtcTimeMillis/1E3,isNaN(r)||(d=r+this.prefetchDelay)):d=this.prefetchDelay:d=w+this.prefetchDelay;Y?this.player.addUtcCueRange(this.cueId_,d,w):
this.player.addCueRange(this.cueId_,d,w);_.on(q.promise,function(){Z.player.removeCueRange(Z.cueId_)});
Qtu(this,"onCueRangeEnter",function(O){O==Z.cueId_&&q.resolve(w-d)})};
var U1S=function(q,Z){q.fragmentConfiguration_[Z].requiredKeys.every(function(w){return!!q.prefetchedData_[w]})&&(q.validatedFragments_.push(Z),Z=q.missingFragments_.indexOf(Z),Z!==-1&&q.missingFragments_.splice(Z,1))},kS7=function(q){q.prefetchedFragments_.forEach(function(Z){U1S(q,Z)})},Knl=function(q,Z,w){this.pageFragments_=q;
this.prefetchedFragments_=Z;this.fragmentConfiguration_=x1V;this.prefetchedData_=w;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;kS7(this)},stC=function(){},Igl=function(q){this.JSC$10842_playlistManager_=q};
_.z(Igl,stC);Igl.prototype.getPrefetchEndpoint=function(){return this.JSC$10842_playlistManager_.getAutoplayEndpoint()};
var c3D=function(q){this.autonavEndpoints_=q};
_.z(c3D,stC);c3D.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var MiS=function(q,Z,w,r,Y){this.autonavEndpoints=q;this.foregroundTrigger=Z;this.backgroundTrigger=w;this.pageType=r;this.isInPlaylist=Y},Fny=function(q,Z){if(q.webPrefetchData&&q.webPrefetchData.navigationEndpoints&&q.webPrefetchData.navigationEndpoints.length){q=q.webPrefetchData.navigationEndpoints;
var w=_.J(q[0],_.ck);if(w.watchEndpointSupportedPrefetchConfig&&w.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var r=w.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;w=r.playbackRelativeSecondsPrefetchCondition;w=typeof w==="number"&&Math.abs(w)<Z.videoDuration?w:void 0;r=r.countdownUiRelativeSecondsPrefetchCondition;r=typeof r!=="number"||_.b("prefetch_job_config_cleanup_ks")&&Z.inPlaylist?void 0:r;if(typeof r==="number")return new MiS(q,Z.makeUpNextTrigger(r),Z.makePlaybackTrigger(r),
"watch",Z.inPlaylist);if(typeof w==="number")return new MiS(q,Z.makePlaybackTrigger(w),null,"watch",Z.inPlaylist)}}},NkF=function(q){return q.prefetchJobConfig_.backgroundTrigger?_.QV(_.GTI)()==0?q.prefetchJobConfig_.backgroundTrigger:q.prefetchJobConfig_.foregroundTrigger:q.prefetchJobConfig_.foregroundTrigger},lgu=function(q){_.d_(document,"visibilitychange",q.onVisibilityChange_,!1,q)},y3=function(q){fv.call(this,q)};
_.z(y3,fv);y3.prototype.getCacheKeyForEndpoint=function(q){return fv.prototype.getCacheKeyForEndpoint.call(this,q)};
y3.prototype.getTempData=function(){return{}};
y3.prototype.getXhrParams=function(q){return q};
y3.prototype.getParams=function(){return{}};
var GS6=function(q,Z,w){var r=q.prefetchDelay*1E3;if(Math.abs(r)>Z)w.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var Y=r,C=Z-r;r<0&&(Y=Z+r,C=Math.abs(r));var d=q.JSC$10828_taskManager.addJob(function(){w.resolve(C/1E3)},10,Y);
w.promise.thenCatch(function(){q.JSC$10828_taskManager.cancelJob(d)})}},pWZ=function(q,Z,w){hN.call(this,q,Z,w)};
_.z(pWZ,hN);pWZ.prototype.prepareTrigger=function(q){var Z=this;Qtu(this,"onAutonavCoundownStarted",function(w){GS6(Z,w,q)})};
var XW7=function(q){q.pendingPrefetchJob_&&(q.pendingPrefetchJob_.cancel(),q.pendingPrefetchJob_=null)},m1V=function(q,Z,w){if(!q.triggeredTargets.has(Z)){var r=_.ZMD(q,Z);
r.action=w;_.gh1(q,Z,r)}},A37=function(q){_.wzW();
_.Zke("cpt")&&_.bx(Error("lh"));_.$1.requestAnimationFrame(function(){_.$1.setTimeout(function(){_.JT("cpt");var Z=_.aV("vpl"),w=_.aV("cpt");Z&&w&&_.JT("ol",Math.max(Z,w))})});
try{_.JT("fr_s"),q()}catch(Z){_.tY(Z)}_.$1.requestAnimationFrame(function(){_.JT("bcp")})},fgy=function(q,Z){q.serviceEndpointHandlers.push(Z)},D1l=function(q,Z){Z=q.pendingPages_.indexOf(Z);
Z>-1&&q.pendingPages_.splice(Z,1)},hnV=function(q,Z){var w=_.jpK.indexOf(Z);
w>-1&&_.jpK.splice(w,1);q.targetPage_==Z?(q.abort(),_.RJh(q)):D1l(q,Z)},y3b=function(q,Z,w,r){Z={challenge:Z};
w&&(Z.webResponse=w);return _.tD(q.innertubeTransportService,Z,_.IZ(jtS),r)},iG7=function(q,Z,w){if(!Z.challenge)throw Error("ni");
if(Z.botguardData&&Z.botguardData.program){var r=new LnS;r.initialize(Z.botguardData,function(){vX7(r,{atr_challenge:Z.challenge}).then(function(Y){if(!Y)throw Error("oi");return y3b(q,Z.challenge,Y,w)}).catch(function(Y){_.bx(Y);
return y3b(q,Z.challenge,void 0,w)})},void 0)}else y3b(q,Z.challenge,void 0,w)},gXV=function(q,Z,w){var r={};
Z.ids&&(r.ids=[].concat(_.Ju(Z.ids)));Z.engagementType&&(r.engagementType=Z.engagementType);return _.tD(q.innertubeTransportService,r,_.IZ(_.ZZW),w).then(function(Y){if(!Y)throw new _.df("GetAttestationChallenge returned falsy");iG7(q,Y,w)}).thenCatch(function(Y){_.tY(Y)})},qiC=function(q,Z,w){return new _.r5(function(r,Y){var C;
return _.V(function(d){if(d.nextAddress==1){var O=Z.engagementType,H=Z.ids,L={};H=_.P(H!=null?H:[]);for(var S=H.next();!S.done;S=H.next())S=S.value,S.encryptedVideoId?L.encryptedVideoId=S.encryptedVideoId:S.externalChannelId?L.externalChannelId=S.externalChannelId:S.commentId?L.commentId=S.commentId:S.externalOwnerId?L.externalOwnerId=S.externalOwnerId:S.artistId?L.artistId=S.artistId:S.playlistId?L.playlistId=S.playlistId:S.externalPostId?L.externalPostId=S.externalPostId:S.shareId&&(L.shareId=S.shareId);
return _.W(d,uAl(O,L),2)}C=d.yieldResult;if(!C.challenge)return _.bx(Error("pi")),gXV(q,Z,w).then(r,Y),d.return();O=C;L={challenge:O.challenge};L.webResponse=O.webResponse;L.engagementType=Z.engagementType;L.ids=Z.ids;_.tD(q.innertubeTransportService,L,_.IZ(jtS),w).then(r,Y);_.ub(d)})})},Sg8=function(q,Z){var w,r,Y,C;
_.V(function(d){if(d.nextAddress==1){w=_.J(Z,_.Wnp);if(!(w&&w.listId&&q.response&&q.response.playingVideoId)||q.listId!==w.listId)return d.return();q.index===void 0&&(q.index=0);return _.W(d,_.vjp(q.JSC$10651_playlistNetworkManager,w.listId,q.index,q.response.playingVideoId),2)}r=d.yieldResult;if(!r)return d.return();Y=r.playlistId;C=r.playlistPanelRenderer;q.setPlaylistData(Y,C,r.autoplayRenderer);_.ub(d)})},ZjD=function(q,Z,w){var r=q.getParams(w),Y=_.BpX(Z,r),C=q.getTempData(Z,w);
C.endpoint=JSON.stringify(Z);_.b("enable_unknown_lact_fix_on_html5")&&(_.t().resolve(_.d6),C.lact=_.pB());var d={headers:{"X-YouTube-STS":_.zj("STS"),"x-youtube-csoc":1}};_.l5(Y,C);return new _.r5(function(O,H){var L=q.getXhrParams(r),S;_.b("kevlar_cache_on_ttl_player")&&(S=_.mM.instance);S&&_.Tq1(S,Z)?_.F82(S,Z,C,window.location.href).then(function(v){v?O(v):H()},H):_.nEp(q.JSC$10818_networkManager_,Z,L,q.onPartsCallback_.bind(q),d).then(function(v){v?O(v):H()},H)})},wBC=function(q,Z){q.triggerPromise_=
Z.start();
q.triggerPromise_.then(function(w){var r=q.prefetchEndpointProvider_.getPrefetchEndpoint();if(r){var Y=EXD[q.prefetchJobConfig_.pageType].prefetchedFragments;q.prefetchRequestPromise_=ZjD(q.JSC$10854_networkPrefetchRequest_,r,{fragmentsRequested:Y,timeBeforeNextVideo:w});q.prefetchResponseCacheKey_=q.JSC$10854_networkPrefetchRequest_.getCacheKeyForEndpoint(r);lgu(q);q.prefetchRequestPromise_.then(function(C){q.storePrefetchedDataCallback_(q.prefetchResponseCacheKey_,C);if(_.b("web_prefetch_preload_video")&&
Y.length===1&&Y[0]==="pl"&&C&&!C.playerAds&&!C.adPlacements){var d=_.J(r,_.Yz),O=d!=null,H={raw_player_response:C,watch_endpoint:d};(C=_.t().resolve(O?_.Zt1:_.F6))&&r&&C.then(function(L){O&&_.b("web_queue_preload_video")?(H.prefer_gapless=!0,L.queueNextVideo(H)):L.preloadVideoByPlayerVars(H)})}})}})},iE=function(q,Z,w,r){this.prefetchEndpointProvider_=q;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=Z;this.prefetchJobConfig_=w;this.JSC$10854_networkPrefetchRequest_=r;this.prefetchResponseCacheKey_=null};
iE.prototype.enqueue=function(){this.triggerPromise_||(wBC(this,NkF(this)),_.Yc(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
iE.prototype.resolve=function(){this.cancel()};
iE.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.");lgu(this)};
iE.prototype.onVisibilityChange_=function(){var q=this;_.QV(_.GTI)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){q.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||wBC(this,NkF(this))};
rHc=function(q,Z,w,r,Y){Z&&(Z==null?0:Z.videoId)&&w&&w.entries&&_.b("kevlar_enable_shorts_prefetch_in_sequence")&&(XW7(q),Z=w.entries.map(function(C){var d;return(d=_.J(C.command,_.Yz))==null?void 0:d.videoId}).indexOf(Z.videoId),w=w.entries[Z+1],w!=null&&w.command&&!_.J(w==null?void 0:w.command,_.vZ)&&(r=new MiS([w.command],new Tk6(r,_.v5,1),null,"shorts",!1),q.pendingPrefetchJob_=new iE(new c3D(r.autonavEndpoints),function(){return!1},r,new y3(Y)),q.pendingPrefetchJob_.enqueue()))};
Yi7=function(q,Z,w,r,Y,C){var d=_.sN.getInstance();if(!_.b("block_all_player_prefetch_requests")){XW7(q);var O=!!w.getPlaylistId(),H=w.getVideoData().isLive&&w.getVideoData().hasProgressBarBoundaries;if((d.getState()==2||O||H)&&(!w.getVideoData().isLive||H)){d={inPlaylist:O,videoDuration:w.getDuration(),makeUpNextTrigger:function(S){return new pWZ(w,_.v5,S)},
makePlaybackTrigger:function(S){return new Tk6(w,_.v5,S)}};
var L=Fny(Z,d);L&&(q.pendingPrefetchJob_=new iE(L.isInPlaylist?new Igl(Y):new c3D(L.autonavEndpoints),function(S,v){v=new Knl(EXD[L.pageType].pageFragments,EXD[L.pageType].prefetchedFragments,v);return _.pY1(v)?(q.prefetchCache_.set(S,v),!0):!1},L,new D_(r,w,C,Y)),q.pendingPrefetchJob_.enqueue())}}};
$Lq=function(){var q=_.nq();q.signals.parkOrScheduleJob(function(){var Z=q.storage;if(Z.storage)if(znl(Z)){var w=Z.getPlaylistId();Z=Z.getIndex();w=!!w&&Z!==void 0}else Z.clear(),w=!1;else w=!1;if(w){w=q.pageManager.isOnWatch();a:{var r=q.storage;if(r.storage&&znl(r)&&(Z=r.getPlaylistId(),r=r.getIndex(),Z&&r!==void 0)){w={recoverPlaylistCommand:{listId:Z,index:r,openMiniplayer:!w,openListPanel:w,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}w=void 0}w&&_.tH(q.JSC$10651_actionRouter,[w],null)}},
0,"ma")};
e1q=function(q,Z,w,r,Y,C){var d=_.C6(7111);_.AA(q.JSC$15944_screenManager,d,C?_.wa(C):void 0);_.D1(q.JSC$15944_screenManager,d,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:r,offlineId:Z,offlineabilityFormatType:w,isDefaultFormatType:Y==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:Y}})};
CaV=function(q,Z,w,r,Y){var C,d,O,H,L;return _.V(function(S){if(S.nextAddress==1)return _.W(S,q.JSC$15944_playerApiPromise,2);C=S.yieldResult;e1q(q,Z,w,"OFFLINE_OBJECT_TYPE_PLAYLIST",r,Y);if(O=_.Xav[q.entityTypeMap.listEntityType])L={},d=(L[O]={maximumDownloadQuality:(H=w)!=null?H:void 0},L);return _.W(S,C.queueOfflineAction(Z,q.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",d),0)})};
PaC=function(q,Z){var w,r,Y,C;return _.V(function(d){if(d.nextAddress==1)return _.W(d,q.JSC$15944_persistentStorePromiseAccessor(),2);if(d.nextAddress!=3){w=d.yieldResult;if(!w)return _.bx(new _.df("PES is undefined")),d.return();r=_.yG(Z,"downloadStatusEntity");return _.W(d,J3c(w,r,"downloadStatusEntity"),3)}Y=d.yieldResult;return d.return((C=Y)==null?void 0:C.downloadState)})};
dLc=function(q,Z,w,r,Y){var C,d,O,H,L,S;return _.V(function(v){switch(v.nextAddress){case 1:return _.W(v,q.JSC$15944_playerApiPromise,2);case 2:C=v.yieldResult;e1q(q,Z,w,"OFFLINE_OBJECT_TYPE_VIDEO",r,Y);if(O=_.Xav[q.entityTypeMap.singleEntityType])L={},d=(L[O]={maximumDownloadQuality:(H=w)!=null?H:void 0},L);return _.W(v,PaC(q,Z),3);case 3:S=v.yieldResult;if(S!=="DOWNLOAD_STATE_USER_DELETED"){v.jumpTo(4);break}return _.W(v,q.deleteVideo(Z),4);case 4:return _.W(v,C.queueOfflineAction(Z,q.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",d),0)}})};
VbD=function(q,Z,w,r,Y){return _.V(function(C){return C.nextAddress==1?_.W(C,q.deleteVideo(Z,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.W(C,dLc(q,Z,w,r,Y),0)})};
Ojc=function(q,Z,w){var r,Y;return _.V(function(C){if(C.nextAddress==1)return _.W(C,q.JSC$15944_playerApiPromise,2);r=C.yieldResult;Y=_.yG(Z,"mainVideoDownloadStateEntity");return _.W(C,r.updateDownloadState(Y,w),0)})};
eUV=function(q){var Z=_.t().resolve(_.kS);return _.V(function(w){if(w.nextAddress==1)return Z.previousDownloadStateForVideo[q]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&Z.previousDownloadStateForVideo[q]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?w.jumpTo(2):_.W(w,Z.resumeVideoDownload(q),2);if(w.nextAddress!=4)return _.W(w,Ojc(Z,q,Z.previousDownloadStateForVideo[q]),4);delete Z.previousDownloadStateForVideo[q];_.ub(w)})};
YTV=function(q,Z){var w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$15944_playerApiPromise,2);w=r.yieldResult;return _.W(r,w.queueOfflineAction(Z,q.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
ZNV=function(){var q=_.t().resolve(_.kS),Z,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$15944_playerApiPromise,2);if(r.nextAddress!=3)return Z=r.yieldResult,w={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.W(r,Z.queueOfflineAction("!*$_ALL_ENTITIES_!*$",q.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",w),3);var Y=q.JSC$15944_commandHandler,C=Y.resolveCommand,d=_.dT("DELETING_ALL",void 0,"Downloads are being deleted");
C.call(Y,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.G7(d)}},popupType:"TOAST"}});_.ub(r)})};
Hjc=function(q){var Z,w;return _.V(function(r){if(r.nextAddress==1)return _.W(r,q.JSC$15944_prefStorage,2);Z=r.yieldResult;return r.return((w=Z)==null?void 0:w.get("sdois"))})};
Wwl=function(q){var Z,w,r,Y,C,d;return _.V(function(O){if(O.nextAddress==1)return _.W(O,q.JSC$15944_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3){Z=O.yieldResult;if(!Z)return _.bx(new _.df("PES is undefined")),O.return();w=_.yG("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.W(O,J3c(Z,w,"settingEntity"),3)}r=O.yieldResult;return O.return((d=(Y=r)==null?void 0:(C=Y.settingOptionValue)==null?void 0:C.boolValue)!=null?d:!1)})};
onb=function(q,Z){var w,r,Y,C;return _.V(function(d){switch(d.nextAddress){case 1:return((w=Z)==null?void 0:w.formatType)===void 0?d.return():_.W(d,q.JSC$15944_prefStorage,2);case 2:r=d.yieldResult;if(r===void 0)return d.return();if(((Y=Z)==null?void 0:Y.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.W(d,r.set("lmqf",Z.formatType),8);if(((C=Z)==null?void 0:C.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){d.jumpTo(0);break}return _.W(d,r.set("lmqf",Z.formatType),
6);case 6:return _.W(d,r.set("lmqflst",Math.floor((0,_.lp)())),0);case 8:return _.W(d,r.remove("lmqflst"),0)}})};
uJb=function(q){var Z,w;return _.V(function(r){switch(r.nextAddress){case 1:return _.W(r,q.JSC$15944_prefStorage,2);case 2:Z=r.yieldResult;if(!Z){r.jumpTo(3);break}return _.W(r,Z.get("lmqflst"),4);case 4:if(w=r.yieldResult,w!==void 0)return r.return(w);case 3:return r.return(0)}})};
Lwy=function(q){var Z,w;return _.V(function(r){switch(r.nextAddress){case 1:return _.W(r,q.JSC$15944_prefStorage,2);case 2:Z=r.yieldResult;if(Z===void 0){r.jumpTo(3);break}return _.W(r,Z.get("lmqf"),4);case 4:if(w=r.yieldResult,w!==void 0)return r.return(w);case 3:return r.return("SD")}})};
o27=function(q,Z,w){var r,Y,C,d,O,H,L,S;_.V(function(v){switch(v.nextAddress){case 1:return _.W(v,onb(q,(r=Z)==null?void 0:r.actionParams),2);case 2:Y=Z.playlistId;if(!Y)return v.return();if(Z.action==="ACTION_ADD")return((d=Z.actionParams)==null?0:d.formatType)?_.W(v,CaV(q,Y,Z.actionParams.formatType,(S=Z.actionParams)==null?void 0:S.settingsAction,w),0):_.W(v,q.offlineWebClientEligibility,14);if(Z.action==="ACTION_REMOVE_WITH_PROMPT"){var R=q.JSC$15944_commandHandler,B=R.resolveCommand,n=_.zj("INNERTUBE_CLIENT_NAME"),
x=n==="WEB_REMIX"?_.dT("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.dT("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads"),K=n==="WEB_REMIX"?[_.dT("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];n=n==="WEB_REMIX"?_.dT("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.dT("DELETE",void 0,"Delete");var k=_.dT("CANCEL",void 0,"Cancel");x={openPopupAction:Lqq(x,K,n,k,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:Y})};B.call(R,x);
return v.return()}if(Z.action==="ACTION_REMOVE")return _.W(v,YTV(q,Y),0);if(Z.action!=="ACTION_SYNC"){v.jumpTo(0);break}return _.W(v,q.JSC$15944_playerApiPromise,9);case 9:return C=v.yieldResult,_.W(v,C.queueOfflineAction(Y,q.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return O=v.yieldResult,_.W(v,Lwy(q),15);case 15:return H=v.yieldResult,_.W(v,uJb(q),16);case 16:L=v.yieldResult,Z.onAddCommand&&q.JSC$15944_commandHandler.resolveCommand(Z.onAddCommand,{form:{preferredFormatType:H,
offlineWebClientEligibility:O,lastOfflineQualitySettingsSavedMs:L.toString()}}),v.jumpTo(0)}})};
HNy=function(q,Z,w){var r,Y,C,d,O,H,L,S,v,R,B,n,x,K;_.V(function(k){switch(k.nextAddress){case 1:return _.W(k,onb(q,(r=Z)==null?void 0:r.actionParams),2);case 2:Y=Z.videoId;if(!Y)return k.return();if(Z.action==="ACTION_REMOVE_WITH_PROMPT"){var G=q.JSC$15944_commandHandler,rz=G.resolveCommand,f=_.zj("INNERTUBE_CLIENT_NAME"),eO=f==="WEB_REMIX"?_.dT("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.dT("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads"),g=f==="WEB_REMIX"?[_.dT("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];f=f==="WEB_REMIX"?_.dT("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.dT("DELETE",void 0,"Delete");var H6=_.dT("CANCEL",void 0,"Cancel");eO={openPopupAction:Lqq(eO,g,f,H6,{signal:"DELETE_DOWNLOAD",targetId:Y})};rz.call(G,eO);return k.return()}if(Z.action==="ACTION_ADD")return((R=Z.actionParams)==null?0:R.formatType)?_.W(k,dLc(q,Y,Z.actionParams.formatType,(K=Z.actionParams)==null?void 0:K.settingsAction,w),0):_.W(k,q.offlineWebClientEligibility,
23);if(Z.action==="ACTION_RETRY")return _.W(k,Lwy(q),19);if(Z.action==="ACTION_PAUSE")return _.W(k,q.pauseVideoDownload(Y),0);if(Z.action==="ACTION_RESUME")return _.W(k,q.resumeVideoDownload(Y),0);if(Z.action!=="ACTION_REMOVE"){k.jumpTo(0);break}return _.W(k,PaC(q,Y),13);case 13:return C=k.yieldResult,q.previousDownloadStateForVideo[Y]=(d=C)!=null?d:"DOWNLOAD_STATE_UNKNOWN",_.W(k,Ojc(q,Y,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(q.previousDownloadStateForVideo[Y]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
q.previousDownloadStateForVideo[Y]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){k.jumpTo(15);break}return _.W(k,q.pauseVideoDownload(Y),15);case 15:G=_.dT("DELETED_VIDEO",void 0,"Video deleted from downloads.");rz=_.dT("UNDO_ACTION",void 0,"Undo");eO=_.dT("CLOSE",void 0,"Close");O={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.G7(G),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.G7(rz),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:Y}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:G+" "+rz}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:Y}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:eO}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};q.JSC$15944_commandHandler.resolveCommand(O);
k.jumpTo(0);break;case 19:H=k.yieldResult;H==="UNKNOWN_FORMAT_TYPE"&&(H="SD");L="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((S=Z.actionParams)==null?0:S.formatType)H=Z.actionParams.formatType,L=(v=Z.actionParams)==null?void 0:v.settingsAction;return _.W(k,VbD(q,Y,H,L,w),20);case 20:return k.return();case 23:return B=k.yieldResult,_.W(k,Lwy(q),24);case 24:return n=k.yieldResult,_.W(k,uJb(q),25);case 25:x=k.yieldResult,Z.onAddCommand&&q.JSC$15944_commandHandler.resolveCommand(Z.onAddCommand,
{form:{preferredFormatType:n,offlineWebClientEligibility:B,lastOfflineQualitySettingsSavedMs:x.toString()}}),k.jumpTo(0)}})};
SiD=function(q,Z){var w,r,Y,C,d,O,H;return _.V(function(L){if(L.nextAddress==1)return _.W(L,q.JSC$15944_persistentStorePromiseAccessor(),2);w=L.yieldResult;if(!w)return _.bx(new _.df("PES is undefined")),L.return();if((r=Z)==null||!r.settingItemId)return L.return();Y=Z;C=Y.settingItemId;d=Y.boolValue;O=_.yG(C,"settingEntity");H={key:O,settingOptionValue:{boolValue:d}};return _.W(L,bGq(w,H),0)})};
vnZ=function(q,Z){var w,r,Y,C,d,O,H;return _.V(function(L){switch(L.nextAddress){case 1:return _.W(L,q.JSC$15944_prefStorage,2);case 2:return w=L.yieldResult,r=_.Hd(),_.W(L,q.JSC$15944_persistentStorePromiseAccessor(),3);case 3:return Y=L.yieldResult,w?Y?_.W(L,w.get("sdois"),4):(_.bx(new _.df("PES is undefined")),L.return()):(_.bx(new _.df("prefStorage is undefined")),L.return());case 4:C=L.yieldResult;O=(d=Z)==null?void 0:d.boolValue;O===void 0||_.b("kevlar_set_sd_enabled_flag_killswitch")||_.Wd(0,
197,!0);C===void 0&&O===void 0&&(O=!1);if(O===void 0){L.jumpTo(0);break}return _.W(L,w.set("sdois",O),6);case 6:return _.b("kevlar_set_sd_enabled_flag_killswitch")||(_.Wd(0,196,O),r.save()),H={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:O},_.W(L,SiD(q,H),0)}})};
j77=function(q,Z,w){var r,Y,C,d,O;return _.V(function(H){switch(H.nextAddress){case 1:return _.W(H,Hjc(q),2);case 2:return r=H.yieldResult,_.W(H,vnZ(q,w),3);case 3:return _.W(H,Hjc(q),4);case 4:return Y=H.yieldResult,C=Y!==r,_.W(H,Wwl(q),5);case 5:d=H.yieldResult&&!_.b("kevlar_modern_downloads_page");if((O=!Y&&!d)||C)return _.W(H,Z.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);H.jumpTo(0)}})};
PQb=function(){var q=_.t().resolve(_.kS),Z;_.V(function(w){switch(w.nextAddress){case 1:return _.W(w,q.JSC$15944_playerApiPromise,2);case 2:Z=w.yieldResult;if(!_.b("kevlar_force_refresh_smart_downloads")){w.jumpTo(3);break}return _.W(w,Z.refreshAllStaleEntities(0),4);case 4:return w.return();case 3:return _.W(w,Z.refreshAllStaleEntities(),5);case 5:return _.W(w,j77(q,Z),0)}})};
LxS=function(q,Z){var w,r;_.V(function(Y){switch(Y.nextAddress){case 1:return _.W(Y,q.JSC$15944_playerApiPromise,2);case 2:w=Y.yieldResult;switch((r=Z)==null?void 0:r.settingItemId){case "SMART_DOWNLOADS_ENABLED":return Y.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return Y.jumpTo(4)}Y.jumpTo(0);break;case 3:return _.W(Y,j77(q,w,Z),6);case 6:Y.jumpTo(0);break;case 4:return _.W(Y,SiD(q,Z),7);case 7:Y.jumpTo(0)}})};
tby=function(q,Z){var w,r,Y;return _.V(function(C){if(C.nextAddress==1)return _.W(C,q.JSC$15944_persistentStorePromiseAccessor(),2);if(C.nextAddress!=3){w=C.yieldResult;if(!w)return _.bx(new _.df("PES is undefined")),C.return(!1);if(!Z)return C.return(!1);r=_.yG(Z,"mainVideoEntity");return _.W(C,J3c(w,r,"mainVideoEntity"),3)}Y=C.yieldResult;return C.return(Y!==void 0)})};
v2q=function(q){var Z=_.t().resolve(_.kS),w,r,Y,C,d,O,H,L,S,v,R;_.V(function(B){switch(B.nextAddress){case 1:return _.W(B,Z.JSC$15944_playerApiPromise,2);case 2:w=B.yieldResult;Y=(r=q)==null?void 0:r.actions;if(!Y)return B.return();C=_.P(Y);d=C.next();case 3:if(d.done){B.jumpTo(0);break}O=d.value;L=H=void 0;if(!(((H=O)==null?0:H.entityKey)&&((L=O)==null?0:L.actionType))){B.jumpTo(4);break}S=_.fR(O.entityKey);v=S.entityId;R=S.entityType;return _.W(B,w.queueOfflineAction(v,R,O.actionType),4);case 4:d=
C.next(),B.jumpTo(3)}})};
R1y=function(q,Z){var w,r,Y,C,d;return _.V(function(O){if(O.nextAddress==1)return _.W(O,q.JSC$15944_prefStorage,2);if(O.nextAddress!=3)return(w=O.yieldResult)?_.W(O,w.get("psi"),3):O.return();r=O.yieldResult;d={isPaused:Z,lastSyncTimestamp:(C=(Y=r)==null?void 0:Y.lastSyncTimestamp)!=null?C:"0"};return _.W(O,w.set("psi",d),0)})};
RUc=function(q){var Z=_.t().resolve(_.kS),w,r,Y,C,d,O,H,L;return _.V(function(S){switch(S.nextAddress){case 1:return _.W(S,Z.JSC$15944_playerApiPromise,2);case 2:w=S.yieldResult;Y=((r=q)==null?void 0:r.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((O=q)==null?void 0:O.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":C="!*$_ALL_ENTITIES_!*$";d="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return S.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return S.jumpTo(4)}S.jumpTo(5);break;case 3:return _.W(S,R1y(Z,Y),6);case 6:S.jumpTo(5);break;case 4:return _.W(S,tby(Z,(H=q)==null?void 0:H.videoId),7);case 7:S.yieldResult&&(C=(L=q)==null?void 0:L.videoId,d="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");S.jumpTo(5);break;case 5:if(C&&d)return _.W(S,w.queueOfflineAction(C,"videoPlaybackPositionEntity",d),0);S.jumpTo(0)}})};
bjb=function(q,Z){var w;Z!==1||((w=q.currentPersistentToast)==null?0:w.opened)?q.openToast():q.currentPersistentToast=void 0};
JHb=function(){var q,Z,w,r;return _.V(function(Y){if(Y.nextAddress==1)return q=navigator,(Z=q.storage)!=null&&Z.persisted?_.W(Y,(w=q.storage)==null?void 0:w.persisted(),2):Y.return("PERSISTED_STATE_NOT_SUPPORTED");r=Y.yieldResult;return Y.return(r?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
z1l=function(){var q,Z,w,r;return _.V(function(Y){if(Y.nextAddress==1)return q=navigator,(Z=q.storage)!=null&&Z.persist?_.W(Y,(w=q.storage)==null?void 0:w.persist(),2):Y.return("PERSISTED_STATE_NOT_SUPPORTED");r=Y.yieldResult;return Y.return(r?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
B27=function(){var q,Z;return _.V(function(w){switch(w.nextAddress){case 1:return q="PERSISTED_STATE_NOT_SUPPORTED",_.d9(w,2),_.W(w,JHb(),4);case 4:q=w.yieldResult;if(q!=="PERSISTED_STATE_NOT_GRANTED"){w.jumpTo(5);break}return _.W(w,z1l(),6);case 6:q=w.yieldResult;case 5:_.QL(w,3);break;case 2:Z=_.o3(w),Z instanceof Error&&_.tY(Z);case 3:return _.vO("persistentStorageStateChecked",{persistedState:q}),w.return(q)}})};
a7l=function(q,Z){var w=[],r=!1;Z=_.P(Z);for(var Y=Z.next();!Y.done;Y=Z.next()){Y=q.moduleRegistry[Y.value];var C=void 0,d=void 0;((C=Y)==null?0:C.isFetching)&&((d=Y)==null?0:d.resolver)?(w.push(Y.resolver.promise),r=!0):(Y=new _.Dk,Y.resolve(void 0),w.push(Y.promise))}return r?Promise.all(w):void 0};
nnl=function(q,Z,w){w=w===void 0?{}:w;var r=q.defaultViewTransitionOptions,Y=Z.map(function(d){return d.beforeTransition}),C=Z.map(function(d){return d.afterTransition});
return Object.assign({},r,w,{beforeTransition:function(){var d;(d=r.beforeTransition)==null||d.call(r);var O,H;(H=(O=w).beforeTransition)==null||H.call(O);d=_.P(Y);for(O=d.next();!O.done;O=d.next())O=O.value,O()},
afterTransition:function(){var d;(d=r.afterTransition)==null||d.call(r);var O,H;(H=(O=w).afterTransition)==null||H.call(O);d=_.P(C);for(O=d.next();!O.done;O=d.next())O=O.value,O()}})};
Q78=function(q,Z,w){var r,Y,C,d,O,H,L;_.V(function(S){if(q.config.disableAllTransitions)return S.return(Z());if((r=w)==null||!r.transitionName)return S.return(_.pOS(Z,(Y=w)==null?void 0:Y.viewTransitionOptions));C=w;d=C.transitionName;O=C.viewTransitionOptions;H=q.config.transitionConfigs.get(d);if(!H)return S.return(Z());var v;L=(v=q.transitionTasksMap.get(d))!=null?v:[];return S.return(_.pOS(Z,nnl(H,L,O)))})};
go=function(q,Z,w){q.transitionTasksMap.has(Z)?q.transitionTasksMap.get(Z).push(w):(q=new _.df("Transition task registered for unknown transition name",Z),_.tY(q))};
En8=function(q,Z,w){if(q.isInitialized()){var r=lj(w),Y=r==="watch";r=r==="shorts";var C=lj(Z)==="watch";if(Y)C||(q.backgroundPageData=Z),q.watchPipMode&&C||q.deactivate(w.endpoint);else if(r){if(lj(Z)!=="shorts"){var d;(d=q.getPlayerElement())==null||d.pause()}}else C&&!q.watchPipMode&&(vcF(Z,w)?(q.watchWhileMode&&_.iBF(q,!1),_.mNb(q,Z)):q.isMiniplayerActive()&&q.watchWhileMode&&q.deactivate());C&&_.qUC(q);q.shortsPipMode&&!r&&(window.focus(),q.deactivate());if(r&&q.shortsPipEnabled||Y&&q.watchPipEnabled)_.wf1(q.handleMediaSessionPipActivation);
else if(!q.isMiniplayerActive()&&(q.shortsPipEnabled||q.watchPipEnabled)&&_.aT()&&_.WI8("Chromium")>=120){q=_.Z02().mediaSession;try{q.setActionHandler("enterpictureinpicture",null)}catch(O){}}}};
xLl=function(q,Z){var w,r;_.V(function(Y){if(Y.nextAddress==1){if(!q||!q.navigationEndpoint)return Y.return();_.qk().lockupActivation=!0;var C;Z?C=_.UE(_.dT("QUEUE",void 0,"Queue")):C=q.longBylineText;r=(w=C)&&q.title?{miniplayerTitle:q.title,miniplayerSubtitle:w,playlistData:null}:void 0;return _.W(Y,_.Hmv(_.t().resolve(_.Tf),q.navigationEndpoint,!0,r),2)}_.qk().userActivation=!0;_.ub(Y)})};
oZD=function(q,Z){var w,r,Y,C,d,O;_.V(function(H){if(H.nextAddress==1){w=_.J(Z,_.HG9);if(!w||!w.listId)return H.return();q.index=w.index||q.index||0;r=q.response&&q.response.playingVideoId||void 0;return _.W(H,_.vjp(q.JSC$10651_playlistNetworkManager,w.listId,q.index,r),2)}Y=H.yieldResult;if(!Y)return H.return();C=Y.playlistId;d=Y.playlistPanelRenderer;!q.queueProxy&&C&&d&&C.startsWith("TLPQ")&&(q.queueProxy=new _.Lq(q.JSC$10651_playlistNetworkManager,C,q.setPlaylistData.bind(q),q.clearQueue.bind(q),
_.ok1(d),q.storage));if(w.openMiniplayer&&(O=_.uXe(d))&&!q.pageManager.isOnWatch()){var L=O,S=w.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";q.isMiniplayerActive()?q.openToast(L):xLl(L,S)}q.setPlaylistData(C,d,Y.autoplayRenderer);_.ub(H)})};
Ocu=function(q,Z){var w=_.nq();w.index===void 0&&(w.index=0);w.temporaryItems.push.apply(w.temporaryItems,_.Ju(q));if((Z.videoId||Z.videoIds)&&w.index!==void 0&&Z.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!w.queueProxy){var r=[];if(w.response){var Y=_.t().resolve(_.Tf).isMiniplayerActive();if(w.response.playlistPanelRenderer&&w.response.playlistId&&!w.response.playlistId.startsWith("TLPQ")){if(w.pageManager.isOnWatch()||Y)r=_.ok1(w.response.playlistPanelRenderer)}else w.response.playingVideoId&&
!Z.openMiniplayer?r.push(w.response.playingVideoId):Y&&w.response.playingVideoId&&Z.openMiniplayer&&r.push(w.response.playingVideoId)}w.queueProxy=new _.Lq(w.JSC$10651_playlistNetworkManager,"",w.setPlaylistData.bind(w),w.clearQueue.bind(w),r,w.storage);w.queueProxy.JSC$10597_setCurrentIndex(w.index)}w.queueProxy.addVideos(Z.videoIds||[Z.videoId],Z)}Bk6(w,q);w.response&&_.Qq(w,_.EK(w,w.response.autoplayRenderer));w.pageManager.isOnWatch()?w.isMiniplayerActive()&&w.openToast(q[0]):(q=q[0],Z=Z.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",w.isMiniplayerActive()?w.openToast(q):xLl(q,Z))};
T2b=function(q){var Z=_.d7N(q);if(Z=="object"||Z=="array"){if(typeof q.clone==="function")return q.clone();if(typeof Map!=="undefined"&&q instanceof Map)return new Map(q);if(typeof Set!=="undefined"&&q instanceof Set)return new Set(q);Z=Z=="array"?[]:{};for(var w in q)Z[w]=T2b(q[w]);return Z}return q};
UL8=function(q,Z){q=_.VM(q,Z,void 0,_.dS);q!=null&&(typeof q==="bigint"?q>=0&&(0,_.tc)(q)?q=Number(q):(q=(0,_.Py)(64,q),q=(0,_.tc)(q)?Number(q):String(q)):q=_.p9(q)?typeof q==="number"?_.zmz(q):_.ng9(q):void 0);return q};
qD=function(q,Z){return _.O9j(_.VM(q,Z,void 0,_.dS))};
ZW=function(q,Z){return _.gW(_.VM(q,Z,void 0,_.dS))};
wY=function(q,Z){return _.VM(q,Z,void 0,_.dS,_.PX2)};
kZ7=_.fl(function(q,Z,w){if(q.nextWireType_!==0)return!1;_.hc(Z,w,_.xZ(q.decoder_,_.emI));return!0},_.gb,_.kZ);
Kw6=_.fl(function(q,Z,w,r){if(q.nextWireType_!==0)return!1;_.ol(Z,w,r,_.xZ(q.decoder_,_.emI));return!0},_.gb,_.kZ);
s7b=_.fl(function(q,Z,w){if(q.nextWireType_!==1)return!1;var r=q.decoder_;q=_.Ug(r);r=_.Ug(r);q=_.c1(q,r);_.hc(Z,w,q);return!0},_.vv2,_.NQ2);
I78=_.fl(function(q,Z,w){if(q.nextWireType_!==5)return!1;_.hc(Z,w,_.Ug(q.decoder_));return!0},function(q,Z,w){Z=_.og1(Z);
Z!=null&&(_.y7(q,w,5),_.iC(q.encoder_,Z))},_.NS());
cH7=_.fl(function(q,Z,w){if(q.nextWireType_!==0)return!1;q=_.RiO(q.decoder_);_.hc(Z,w,q===!1?void 0:q);return!0},_.j9T,_.cRe);
MbV=_.fl(function(q,Z,w){if(q.nextWireType_!==2)return!1;q=_.nuT(q);_.hc(Z,w,q===""?void 0:q);return!0},_.Rde,_.M7X);
FwV=_.fl(function(q,Z,w){if(q.nextWireType_!==2)return!1;q=_.QG6(q);_.hc(Z,w,q===_.bX()?void 0:q);return!0},_.JIe,_.Gn2);
N2F=_.dKe(function(q,Z,w){if(q.nextWireType_!==0&&q.nextWireType_!==2)return!1;Z=_.jq6(Z,Z[_.P1]|0,w);q.nextWireType_==2?_.EuX(q,ZGy,Z):Z.push(_.TP(q.decoder_));return!0},function(q,Z,w){Z=_.PgN(_.gW,Z,!0);
if(Z!=null&&Z.length){w=_.kuN(q,w);for(var r=0;r<Z.length;r++)_.u5X(q.encoder_,Z[r]);_.KFz(q,w)}},_.pAX);
l7b=_.fl(function(q,Z,w){if(q.nextWireType_!==0)return!1;q=_.TP(q.decoder_);_.hc(Z,w,q===0?void 0:q);return!0},_.zdO,_.pAX);
GZC=_.fl(function(q,Z,w,r){if(q.nextWireType_!==0)return!1;_.ol(Z,w,r,_.TP(q.decoder_));return!0},_.zdO,_.pAX);
_.ig=function(q){this.privateDoNotAccessOrElseWrappedStyleSheet=q};
_.ig.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var pBC=function(q,Z){var w=[];for(Z=Z||0;Z<q.length;Z+=2)_.bl1(q[Z],q[Z+1],w);return w.join("&")},XB6=function(q,Z){var w=arguments.length==2?pBC(arguments[1],0):pBC(arguments,1);
return _.RZ7(q,w)},mL8=function(q){var Z=_.jq1(window.location.href),w=Z[1],r=[];
w&&w.split("&").forEach(function(Y){var C=Y.indexOf("=");C=C>=0?Y.slice(0,C):Y;q.hasOwnProperty(C)||r.push(Y)});
Z[1]=_.tVm(r.join("&"),_.ZL(q));return Z[0]+(Z[1]?"?"+Z[1]:"")+Z[2]},RLl=function(q,Z){return new _.B3(q.x+Z.x,q.y+Z.y)},AHF=function(q){return q.previousElementSibling!==void 0?q.previousElementSibling:_.Lmm(q.previousSibling,!1)},f7C=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(f7C,_.XD);f7C.prototype.getValue=function(){var q=_.VM(this,2);if(Array.isArray(q)||q instanceof _.XD)throw Error("aa");return _.WI(this,2)};
var DLu=function(){var q=_.mS();this.JSC$7784_streamzService=q;q.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",_.yg("cookie_enabled"),_.yg("cookie_3p_enabled"),_.qb("browser"))};
DLu.prototype.increment=function(q,Z,w){this.JSC$7784_streamzService.JSC$7660_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",q,Z,w)};
var lQD=function(){var q=_.mS();this.JSC$7787_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.qb("channel_type"))};
lQD.prototype.increment=function(q){this.JSC$7787_streamzService.JSC$7660_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",q)};
var GsV=function(){var q=_.mS();this.JSC$7790_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.qb("channel_type"))};
GsV.prototype.increment=function(q){this.JSC$7790_streamzService.JSC$7660_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",q)};
var XQC=function(){var q=_.mS();this.JSC$7793_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.qb("channel_type"))};
XQC.prototype.increment=function(q){this.JSC$7793_streamzService.JSC$7660_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",q)};
var pQ7=function(){var q=_.mS();this.JSC$7796_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
pQ7.prototype.increment=function(){this.JSC$7796_streamzService.JSC$7660_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var mlS=function(){var q=_.mS();this.JSC$7799_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.qb("channel_type"),_.qb("error_type"))};
mlS.prototype.increment=function(q,Z){this.JSC$7799_streamzService.JSC$7660_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",q,Z)};
var AQc=function(){var q=_.mS();this.JSC$7802_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
AQc.prototype.increment=function(){this.JSC$7802_streamzService.JSC$7660_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var fQD=function(){var q=_.mS();this.JSC$7805_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
fQD.prototype.increment=function(){this.JSC$7805_streamzService.JSC$7660_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var N_D=function(){var q=_.mS();this.JSC$7811_streamzService=q;q.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
N_D.prototype.increment=function(){this.JSC$7811_streamzService.JSC$7660_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var h1C=function(q){return q.getCount&&typeof q.getCount=="function"?q.getCount():_.pX(q)||typeof q==="string"?q.length:_.R4.getCount(q)},yHb=function(q,Z){if(typeof q.every=="function")return q.every(Z,void 0);
if(_.pX(q)||typeof q==="string")return Array.prototype.every.call(q,Z,void 0);for(var w=_.Qze(q),r=_.Fi(q),Y=r.length,C=0;C<Y;C++)if(!Z.call(void 0,r[C],w&&w[C],q))return!1;return!0},ijq=function(q,Z,w,r){var Y=new _.M$(null);
q&&_.NC(Y,q);Z&&_.lQ(Y,Z);w&&_.GM(Y,w);r&&_.pN(Y,r);return Y},gny=function(){var q=_.bp&&Nm(_.l$2,10)>=0,Z;
if(Z=_.KL6)Z=Nm(_.NID,10)>=0;var w=_.eF&&Nm(_.l$2,85)>=0;return _.rS||q||Z||w},qm7=function(q){var Z=_.lFD(q);
return Z&&gny()?-q.scrollLeft:Z&&_.Qb(q,"overflowX")!="visible"?q.scrollWidth-q.clientWidth-q.scrollLeft:q.scrollLeft},ZDZ=function(q,Z){Z=Math.max(Z,0);
_.lFD(q)?gny()?q.scrollLeft=-Z:q.scrollLeft=q.scrollWidth-Z-q.clientWidth:q.scrollLeft=Z},kLq=0,Mpq=!1;
pE.prototype.set=function(q){this.relativeTimeStart_=q};
pE.prototype.reset=function(){this.set(_.hW())};
pE.prototype.get=function(){return this.relativeTimeStart_};
var wRZ=null,r5C=function(){wRZ||(wRZ=new pE)},Ymq=function(){wRZ||(wRZ=new pE)};
_.yU(Ymq,r5C);_.e=Nau.prototype;_.e.JSC$9118_buffer_="";_.e.set=function(q){this.JSC$9118_buffer_=""+q};
_.e.append=function(q,Z,w){this.JSC$9118_buffer_+=String(q);if(Z!=null)for(var r=1;r<arguments.length;r++)this.JSC$9118_buffer_+=arguments[r];return this};
_.e.clear=function(){this.JSC$9118_buffer_=""};
_.e.getLength=function(){return this.JSC$9118_buffer_.length};
_.e.toString=function(){return this.JSC$9118_buffer_};
var $Bc=function(){var q={type:"unit",style:"narrow"};this.listType_=q&&q.type?q.type:"conjunction";this.listStyle_=q&&q.style?q.style:"long";this.listSymbols_=PUc;q=0;switch(this.listStyle_){case "short":q=1;break;case "narrow":q=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[q];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[q];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[q];this.listEndPattern_=
this.listSymbols_.AND_END[q];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[q];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[q];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[q];this.listEndPattern_=this.listSymbols_.OR_END[q];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[q],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[q],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[q],this.listEndPattern_=this.listSymbols_.UNIT_END[q]}};
$Bc.prototype.format=function(q){return et8(this,q)};
var et8=function(q,Z){var w=Z.length;switch(w){case 0:return"";case 1:return String(Z[0]);case 2:return q.listTwoPattern_.replace("{0}",String(Z[0])).replace("{1}",String(Z[1]))}for(var r=q.listStartPattern_.replace("{0}",String(Z[0])).replace("{1}",String(Z[1])),Y=2;Y<w-1;++Y)r=q.listMiddlePattern_.replace("{0}",r).replace("{1}",String(Z[Y]));return q.listEndPattern_.replace("{0}",r).replace("{1}",String(Z[w-1]))},r7D=function(){var q={style:1};
this.style_=(q==null?void 0:q.style)||0;this.durationSymbols_=_.ApD||_.Lqh},CBF=function(q,Z){switch(Z){default:case "years":return q.durationSymbols_.YEAR;
case "months":return q.durationSymbols_.MONTH;case "weeks":return q.durationSymbols_.WEEK;case "days":return q.durationSymbols_.DAY;case "hours":return q.durationSymbols_.HOUR;case "minutes":return q.durationSymbols_.MINUTE;case "seconds":return q.durationSymbols_.SECOND}},rY=function(q,Z,w){a:{w=CBF(q,w);
switch(q.style_){case 1:if(w.LONG!=void 0){q=w.LONG;break a}case 2:if(w.NARROW!=void 0){q=w.NARROW;break a}default:q=w.SHORT;break a}q=void 0}return q?(new _.Mph("{DURATION_VALUE,plural,"+q+"}")).format({DURATION_VALUE:Z}):""};
r7D.prototype.format=function(q){var Z=[],w=q.years,r=q.months,Y=q.weeks,C=q.days,d=q.hours,O=q.minutes;q=q.seconds;w!=null&&Z.push(rY(this,w,"years"));r!=null&&Z.push(rY(this,r,"months"));Y!=null&&Z.push(rY(this,Y,"weeks"));C!=null&&Z.push(rY(this,C,"days"));d!=null&&Z.push(rY(this,d,"hours"));O!=null&&Z.push(rY(this,O,"minutes"));q!=null&&Z.push(rY(this,q,"seconds"));return(new $Bc).format(Z)};
var PBF=!1,ffV=function(q){_.qj.call(this,q.message||q.description||q.name);this.isMissing=q instanceof XF;this.isTimeout=q instanceof _.EP&&q.errorCode=="net.timeout";this.isCanceled=q instanceof _.xQ};
_.z(ffV,_.qj);ffV.prototype.name="BiscottiError";var XF=function(){_.qj.call(this,"Biscotti ID is missing from server")};
_.z(XF,_.qj);XF.prototype.name="BiscottiMissingError";var mE=null,wIl=function(){try{var q=_.Eq("yt.ads.biscotti.getId_");return q?q():afl()}catch(Z){return _.TX(Z)}},weV,dBD=function(q){return _.mu({type:"SET_GUIDE_IS_EXPANDED",
payload:q})},VgS=function(q){return _.mu({type:"SET_ONLINE_STATUS",
payload:q})},ODC=function(q,Z){return _.mu({type:"SET_TRANSCRIPTION_STATE",
payload:{high:q,low:Z}})},HDD=function(q){return _.mu({type:"SET_OVERLAY_STATE",
payload:q})},W7V=0,oDu=function(q,Z,w){var r=this;
this.priority=Z;this.delay=w;this.jobId=0;this.completionCallback=_.Pr;this.wrappedJob=function(){q();r.completionCallback()};
this.id=++W7V};
oDu.prototype.enqueue=function(q){this.completionCallback=q;this.jobId=_.v5.addJob(this.wrappedJob,this.priority,this.delay)};
var Yo=function(){_.GS.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.z(Yo,_.GS);Yo.prototype.addJob=function(q,Z,w){q=new oDu(q,Z,w);this.taskIdToTask.set(q.id,q);this.isActive?uO8(this,q):this.suspendedTasks.add(q);return q.id};
var uO8=function(q,Z){q.scheduledTasks.add(Z);Z.enqueue(function(){q.scheduledTasks.delete(Z)})};
Yo.prototype.cancelJob=function(q){(q=this.taskIdToTask.get(q))&&(this.scheduledTasks.delete(q)?_.v5.cancelJob(q.jobId):this.suspendedTasks.delete(q))};
Yo.prototype.pause=function(){var q=this;this.isActive=!1;this.scheduledTasks.forEach(function(Z){_.v5.cancelJob(Z.jobId);q.suspendedTasks.add(Z)});
this.scheduledTasks.clear()};
Yo.prototype.start=function(){var q=this;this.isActive=!0;this.suspendedTasks.forEach(function(Z){uO8(q,Z)});
this.suspendedTasks.clear()};
Yo.prototype.reset=function(){this.scheduledTasks.forEach(function(q){_.v5.cancelJob(q.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var $o=function(q,Z){this.JSC$10778_networkService_=q;this.pageRequestPromise=Z};
$o.prototype.fetchData=function(q){L7c(this,this.JSC$10778_networkService_.fetchData(q))};
$o.prototype.postData=function(q,Z){L7c(this,this.JSC$10778_networkService_.postData(q,Z))};
$o.prototype.requestDataForServiceEndpoint=function(q,Z){L7c(this,this.JSC$10778_networkService_.requestDataForServiceEndpoint(q,Z))};
var L7c=function(q,Z){Z.then(q.pageRequestPromise.onSuccess,q.pageRequestPromise.onFailure,q.pageRequestPromise)};
$o.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var ek=function(q){this.buildNetworkRequest_=q;this.pendingRequests_=new Set};
ek.prototype.reset=function(){this.pendingRequests_.forEach(function(q){q.cancel()});
this.pendingRequests_.clear()};
ek.prototype.fetchData=function(q){var Z=SmZ(this);Z.fetchData(q);return Z.pageRequestPromise};
ek.prototype.postData=function(q,Z){var w=SmZ(this);w.postData(q,Z);return w.pageRequestPromise};
ek.prototype.requestDataForServiceEndpoint=function(q,Z){var w=SmZ(this);w.requestDataForServiceEndpoint(q,Z);return w.pageRequestPromise};
var SmZ=function(q){var Z=q.buildNetworkRequest_();q.pendingRequests_.add(Z);var w=function(){q.pendingRequests_.delete(Z)};
Z.pageRequestPromise.then(w,w);return Z},vDl=function(q){var Z=new Yo;
this.JSC$10785_networkService_=q;this.JSC$10785_taskManager_=Z;this.JSC$10785_networkManager_=new ek(this.networkRequestFactory_.bind(this))};
_.e=vDl.prototype;_.e.networkRequestFactory_=function(){return new $o(this.JSC$10785_networkService_,new _.GB(this.JSC$10785_taskManager_))};
_.e.reset=function(){this.JSC$10785_taskManager_.reset();this.JSC$10785_networkManager_.reset()};
_.e.start=function(){this.JSC$10785_taskManager_.start()};
_.e.pause=function(){this.JSC$10785_taskManager_.pause()};
_.e.getTaskManager=function(){return this.JSC$10785_taskManager_};
_.e.getNetworkManager=function(){return this.JSC$10785_networkManager_};
var Plu=null,O6C=[],fE=0,hh=0,DR=null,jWF=function(){var q=(0,_.dHD)();q&&Viu(q,q.mechanism.__iterator__(!0))},ij=function(q){this.token=q};
ij.getInstance=function(){var q;return _.V(function(Z){if(Z.nextAddress==1)return _.W(Z,_.cg(),2);q=Z.yieldResult;if(!q)return Z.return();ij.instance||(ij.instance=new ij(q));return Z.return(ij.instance)})};
var S1Z=function(q){var Z;return _.V(function(w){if(w.nextAddress==1)return _.W(w,oBb(q.token),2);Z=w.yieldResult;return w.return(Z.clear("resource-manifest-assets"))})},yJ=function(q){this.token=q};
yJ.getInstance=function(){var q;return _.V(function(Z){if(Z.nextAddress==1)return _.W(Z,_.cg(),2);q=Z.yieldResult;if(!q)return Z.return();yJ.instance||(yJ.instance=new yJ(q));return Z.return(yJ.instance)})};
var u6F=function(q){var Z;return _.V(function(w){if(w.nextAddress==1)return _.W(w,oBb(q.token),2);Z=w.yieldResult;return _.W(w,Z.clear("auth"),0)})},tgD=!1,g$=null,x0q=void 0,Fj7=!1,RtD=function(q){_.qj.call(this,q)};
_.z(RtD,_.p7g);var Udq=function(){var q=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return q?parseInt(q[1],10):0},bDq=function(q){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+q)!=-1||document.currentScript.src.indexOf("&"+q)!=-1)},J5u=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},cW7=function(q){q.length?ztC(q.shift(),function(){cW7(q)}):K1V()},F16=function(q){return"chrome-extension://"+q+"/cast_sender.js"},ztC=function(q,
Z,w){var r=document.createElement("script");
r.onerror=Z;w&&(r.onload=w);_.AI(r,_.vG(q));(document.head||document.documentElement).appendChild(r)},B4V=function(){var q=Udq(),Z=[];
if(q>1){var w=q-1;Z.push("//www.gstatic.com/eureka/clank/"+q+"/cast_sender.js");Z.push("//www.gstatic.com/eureka/clank/"+w+"/cast_sender.js")}return Z},K1V=function(){var q=J5u();
q&&q(!1,"No cast extension found")},Ibl=function(){if(aGl){var q=2,Z=J5u(),w=function(){q--;
q==0&&Z&&Z(!0)};
window.__onGCastApiAvailable=w;ztC("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",K1V,w)}},kf6=function(){Ibl();
var q=B4V();q.push("//www.gstatic.com/eureka/clank/cast_sender.js");cW7(q)},s0b=function(){Ibl();
var q=B4V();q.push.apply(q,_.Ju(MlD.map(F16)));q.push("//www.gstatic.com/eureka/clank/cast_sender.js");cW7(q)},aGl=bDq("loadCastFramework")||bDq("loadCastApplicationFramework"),MlD=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var nD7=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(nD7,_.XD);var QWZ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(QWZ,_.XD);var ED7=function(){var q=new QWZ;return _.QM(q,1,3)};var Cu=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Cu,_.XD);var nLc=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(nLc,_.XD);var xBD=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(xBD,_.XD);xBD.prototype.getToken=function(){return _.bY(this,1)};
xBD.prototype.setToken=function(q){return _.l2(this,1,q)};
var Bpl=function(q){return _.U6(q,3,_.Hy,_.fC())},avy=function(q){return _.U6(q,6,_.Hy,_.fC())};var Pi=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Pi,_.XD);Pi.prototype.getToken=function(){return _.Xy(this,xBD,2)};
Pi.prototype.setToken=function(q){return _.CA(this,2,q)};
Pi.prototype.getName=function(){return _.bY(this,6)};
var T48=_.$v(Pi);var UBu=function(q,Z,w){this.requestMessage=q;this.methodDescriptor=Z;this.metadata=w};
UBu.prototype.getMetadata=function(){return this.metadata};var kTu=function(q,Z){Z=Z===void 0?{}:Z;this.responseMessage=q;this.metadata=Z;this.status=null};
kTu.prototype.getMetadata=function(){return this.metadata};
kTu.prototype.getStatus=function(){return this.status};var dY=function(q,Z,w,r,Y){this.name=q;this.methodType="unary";this.requestType=Z;this.responseType=w;this.requestSerializeFn=r;this.responseDeserializeFn=Y},K7S=function(q,Z,w){w=w===void 0?{}:w;
return new UBu(Z,q,w)};
dY.prototype.getName=function(){return this.name};var VC=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(VC,_.XD);VC.prototype.setHeader=function(q){return _.CA(this,1,q)};
VC.prototype.hasHeader=function(){return _.Og(this,Cu,1)};var sWu=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(sWu,_.XD);var IG6=new dY("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",VC,sWu,function(q){return q.serialize()},_.$v(sWu));var O4=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(O4,_.XD);O4.prototype.setHeader=function(q){return _.CA(this,1,q)};
O4.prototype.hasHeader=function(){return _.Og(this,Cu,1)};var c5y=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(c5y,_.XD);var MgZ=new dY("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",O4,c5y,function(q){return q.serialize()},_.$v(c5y));var Hi=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Hi,_.XD);Hi.prototype.setHeader=function(q){return _.CA(this,1,q)};
Hi.prototype.hasHeader=function(){return _.Og(this,Cu,1)};var F7S=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(F7S,_.XD);F7S.prototype.getLink=function(){return _.Xy(this,Pi,1)};var N4D=new dY("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Hi,F7S,function(q){return q.serialize()},_.$v(F7S));var Wi=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Wi,_.XD);Wi.prototype.setHeader=function(q){return _.CA(this,1,q)};
Wi.prototype.hasHeader=function(){return _.Og(this,Cu,1)};var lG6=new dY("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Wi,Pi,function(q){return q.serialize()},T48);var GTF=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(GTF,_.XD);var pRl=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(pRl,_.XD);pRl.prototype.getUrl=function(){return _.bY(this,2)};
pRl.prototype.setUrl=function(q){return _.l2(this,2,q)};var XRF=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(XRF,_.XD);var mBu=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(mBu,_.XD);var A5C=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(A5C,_.XD);var MrS=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(MrS,_.XD);var cLS=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(cLS,_.XD);var fGF=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(fGF,_.XD);var mAF=_.$v(fGF);var DBS=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(DBS,_.XD);var oP=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(oP,_.XD);oP.prototype.setHeader=function(q){return _.CA(this,1,q)};
oP.prototype.hasHeader=function(){return _.Og(this,Cu,1)};
oP.prototype.getCompletionUrl=function(){return _.bY(this,6)};
oP.prototype.getDeviceId=function(){return _.bY(this,11)};var htc=new dY("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",oP,fGF,function(q){return q.serialize()},mAF);var y5l=new Set(["SAPISIDHASH","APISIDHASH"]);var iDF=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(iDF,_.XD);iDF.prototype.getMessage=function(){return _.bY(this,2)};
var gDC=_.$v(iDF);var u1=function(q,Z){this.xhrNodeReadableStream_=q.nodeReadableStream;this.grpcResponseDeserializeFn_=Z;this.JSC$16854_xhr_=q.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16854_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&qZl(this)},e3b=function(q,Z){var w=new Zku;
_.Yc(q.JSC$16854_xhr_,"complete",function(){if(q.JSC$16854_xhr_.isSuccess()){var r=q.JSC$16854_xhr_.getResponseText();var Y;if(Y=Z)Y=q.JSC$16854_xhr_,Y.JSC$7669_xhr_&&Y.isComplete()?(Y=Y.JSC$7669_xhr_.getResponseHeader("Content-Type"),Y=Y===null?void 0:Y):Y=void 0,Y=Y==="text/plain";if(Y){if(!atob)throw Error("Jj");r=atob(r)}try{var C=q.grpcResponseDeserializeFn_(r)}catch(O){Lu(q,HVC(new _.LN(13,"Error when deserializing response data; error: "+O+(", response: "+r)),w));return}r=_.NA1(q.JSC$16854_xhr_.getStatus());
wtu(q,r48(q));r==0?YZl(q,C):Lu(q,HVC(new _.LN(r,"Xhr succeeded but the status code is not 200"),w))}else{r=q.JSC$16854_xhr_.getResponseText();C=r48(q);if(r){var d=$IZ(q,r);r=d.code;Y=d.details;d=d.metadata}else r=2,Y="Rpc failed due to xhr error. uri: "+String(q.JSC$16854_xhr_.JSC$7669_lastUri_)+", error code: "+q.JSC$16854_xhr_.JSC$7669_lastErrorCode_+", error: "+q.JSC$16854_xhr_.getLastError(),d=C;wtu(q,C);Lu(q,HVC(new _.LN(r,Y,d),w))}})},qZl=function(q){q.xhrNodeReadableStream_.on("data",function(Z){if("1"in
Z){var w=Z["1"];
try{var r=q.grpcResponseDeserializeFn_(w)}catch(Y){Lu(q,new _.LN(13,"Error when deserializing response data; error: "+Y+(", response: "+w)))}r&&YZl(q,r)}if("2"in Z)for(Z=$IZ(q,Z["2"]),w=0;w<q.onStatusCallbacks_.length;w++)q.onStatusCallbacks_[w](Z)});
q.xhrNodeReadableStream_.on("end",function(){wtu(q,r48(q));for(var Z=0;Z<q.onEndCallbacks_.length;Z++)q.onEndCallbacks_[Z]()});
q.xhrNodeReadableStream_.on("error",function(){if(q.JSC$16854_onErrorCallbacks_.length!=0){var Z=q.JSC$16854_xhr_.JSC$7669_lastErrorCode_;Z!==0||q.JSC$16854_xhr_.isSuccess()||(Z=6);var w=-1;switch(Z){case 0:var r=2;break;case 7:r=10;break;case 8:r=4;break;case 6:w=q.JSC$16854_xhr_.getStatus();r=_.NA1(w);break;default:r=14}wtu(q,r48(q));Z=_.P6v(Z)+", error: "+q.JSC$16854_xhr_.getLastError();w!=-1&&(Z+=", http status code: "+w);Lu(q,new _.LN(r,Z))}})},r48=function(q){var Z={},w=enc(q.JSC$16854_xhr_);
Object.keys(w).forEach(function(r){Z[r]=w[r]});
return Z},$IZ=function(q,Z){var w=2,r={};
try{var Y=gDC(Z);w=_.DM(Y,1);var C=Y.getMessage();_.Aj(Y,f7C,3,_.fC()).length&&(r["grpc-web-status-details-bin"]=Z)}catch(d){q.JSC$16854_xhr_&&q.JSC$16854_xhr_.getStatus()===404?(w=5,C="Not Found: "+String(q.JSC$16854_xhr_.JSC$7669_lastUri_)):(w=14,C="Unable to parse RpcStatus: "+d)}return{code:w,details:C,metadata:r}};
u1.prototype.on=function(q,Z){q=="data"?this.onDataCallbacks_.push(Z):q=="metadata"?this.onMetadataCallbacks_.push(Z):q=="status"?this.onStatusCallbacks_.push(Z):q=="end"?this.onEndCallbacks_.push(Z):q=="error"&&this.JSC$16854_onErrorCallbacks_.push(Z);return this};
var Sk=function(q,Z){Z=q.indexOf(Z);Z>-1&&q.splice(Z,1)};
u1.prototype.removeListener=function(q,Z){q=="data"?Sk(this.onDataCallbacks_,Z):q=="metadata"?Sk(this.onMetadataCallbacks_,Z):q=="status"?Sk(this.onStatusCallbacks_,Z):q=="end"?Sk(this.onEndCallbacks_,Z):q=="error"&&Sk(this.JSC$16854_onErrorCallbacks_,Z);return this};
u1.prototype.cancel=function(){this.JSC$16854_xhr_.abort()};
var YZl=function(q,Z){for(var w=0;w<q.onDataCallbacks_.length;w++)q.onDataCallbacks_[w](Z)},wtu=function(q,Z){for(var w=0;w<q.onMetadataCallbacks_.length;w++)q.onMetadataCallbacks_[w](Z)},Lu=function(q,Z){for(var w=0;w<q.JSC$16854_onErrorCallbacks_.length;w++)q.JSC$16854_onErrorCallbacks_[w](Z)};
u1.prototype.cancel=u1.prototype.cancel;u1.prototype.removeListener=u1.prototype.removeListener;u1.prototype.on=u1.prototype.on;var Zku=function(){var q=Error.call(this);this.message=q.message;"stack"in q&&(this.stack=q.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.z(Zku,Error);var vi=function(q){this.JSC$16863_worker_=q.worker||null;this.JSC$16863_streamBinaryChunks_=q.streamBinaryChunks||!1;this.JSC$16863_credentialsMode_=void 0};
_.yU(vi,_.GjT);vi.prototype.createInstance=function(){var q=new jk(this.JSC$16863_worker_,this.JSC$16863_streamBinaryChunks_);this.JSC$16863_credentialsMode_&&q.setCredentialsMode(this.JSC$16863_credentialsMode_);return q};
vi.prototype.setCredentialsMode=function(q){this.JSC$16863_credentialsMode_=q};
var jk=function(q,Z){_.V8.call(this);this.JSC$16867_worker_=q;this.JSC$16867_streamBinaryChunks_=Z;this.JSC$16867_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$16867_responseHeaders_=null;this.JSC$16867_method_="GET";this.JSC$16867_url_="";this.inProgress_=!1;this.JSC$16867_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.yU(jk,_.V8);jk.prototype.open=function(q,Z){if(this.readyState!=0)throw this.abort(),Error("Kj");this.JSC$16867_method_=q;this.JSC$16867_url_=Z;this.readyState=1;tt(this)};
jk.prototype.send=function(q){if(this.readyState!=1)throw this.abort(),Error("Lj");this.inProgress_=!0;var Z={headers:this.requestHeaders_,method:this.JSC$16867_method_,credentials:this.JSC$16867_credentialsMode_,cache:void 0};q&&(Z.body=q);(this.JSC$16867_worker_||_.$1).fetch(new Request(this.JSC$16867_url_,Z)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
jk.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,RP(this));this.readyState=0};
jk.prototype.handleResponse_=function(q){if(this.inProgress_&&(this.fetchResponse_=q,this.JSC$16867_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16867_responseHeaders_=q.headers,this.readyState=2,tt(this)),this.inProgress_&&(this.readyState=3,tt(this),this.inProgress_)))if(this.responseType==="arraybuffer")q.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.$1.ReadableStream!==
"undefined"&&"body"in q){this.currentReader_=q.body.getReader();if(this.JSC$16867_streamBinaryChunks_){if(this.responseType)throw Error("Mj");this.response=[]}else this.response=this.responseText="",this.JSC$16867_textDecoder_=new TextDecoder;CJc(this)}else q.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var CJc=function(q){q.currentReader_.read().then(q.handleDataFromStream_.bind(q)).catch(q.handleSendFailure_.bind(q))};
jk.prototype.handleDataFromStream_=function(q){if(this.inProgress_){if(this.JSC$16867_streamBinaryChunks_&&q.value)this.response.push(q.value);else if(!this.JSC$16867_streamBinaryChunks_){var Z=q.value?q.value:new Uint8Array(0);if(Z=this.JSC$16867_textDecoder_.decode(Z,{stream:!q.done}))this.response=this.responseText+=Z}q.done?RP(this):tt(this);this.readyState==3&&CJc(this)}};
jk.prototype.handleResponseText_=function(q){this.inProgress_&&(this.response=this.responseText=q,RP(this))};
jk.prototype.handleResponseArrayBuffer_=function(q){this.inProgress_&&(this.response=q,RP(this))};
jk.prototype.handleSendFailure_=function(){this.inProgress_&&RP(this)};
var RP=function(q){q.readyState=4;q.fetchResponse_=null;q.currentReader_=null;q.JSC$16867_textDecoder_=null;tt(q)};
jk.prototype.setRequestHeader=function(q,Z){this.requestHeaders_.append(q,Z)};
jk.prototype.getResponseHeader=function(q){return this.JSC$16867_responseHeaders_?this.JSC$16867_responseHeaders_.get(q.toLowerCase())||"":""};
jk.prototype.getAllResponseHeaders=function(){if(!this.JSC$16867_responseHeaders_)return"";for(var q=[],Z=this.JSC$16867_responseHeaders_.entries(),w=Z.next();!w.done;)w=w.value,q.push(w[0]+": "+w[1]),w=Z.next();return q.join("\r\n")};
jk.prototype.setCredentialsMode=function(q){this.JSC$16867_credentialsMode_=q};
var tt=function(q){q.onreadystatechange&&q.onreadystatechange.call(q)};
Object.defineProperty(jk.prototype,"withCredentials",{get:function(){return this.JSC$16867_credentialsMode_==="include"},
set:function(q){this.setCredentialsMode(q?"include":"same-origin")}});var PJZ=function(q){var Z="";_.R4.forEach(q,function(w,r){Z+=r;Z+=":";Z+=w;Z+="\r\n"});
return Z},dIC=function(q,Z,w){if(_.R4.isEmpty(w))return q;
w=PJZ(w);if(typeof q==="string")return _.Ov(q,_.Tj(Z),w);_.Kh(q,Z,w);return q};var VQy=function(){this.isInputValid_=!0;this.JSC$16873_streamPos_=0;this.leftoverInput_=""};
VQy.prototype.isInputValid=function(){return this.isInputValid_};var wo=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16876_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
wo.prototype.isInputValid=function(){return this.state_!=3};
var b1=function(q,Z,w,r){q.state_=3;q.errorMessage_="The stream is broken @"+q.JSC$16876_streamPos_+"/"+w+". Error: "+r+". With input:\n"+Z;throw Error(q.errorMessage_);};
wo.prototype.acceptsBinaryInput=function(){return!0};
wo.prototype.parse=function(q){function Z(H){H&128&&b1(C,d,O,"invalid tag");(H&7)!=2&&b1(C,d,O,"invalid wire type");C.tag_=H>>>3;C.tag_!=1&&C.tag_!=2&&C.tag_!=15&&b1(C,d,O,"unexpected tag");C.state_=1;C.length_=0;C.countLengthBytes_=0}
function w(H){C.countLengthBytes_++;C.countLengthBytes_==5&&H&240&&b1(C,d,O,"message length too long");C.length_|=(H&127)<<(C.countLengthBytes_-1)*7;H&128||(C.state_=2,C.countMessageBytes_=0,typeof Uint8Array!=="undefined"?C.messageBuffer_=new Uint8Array(C.length_):C.messageBuffer_=Array(C.length_),C.length_==0&&Y())}
function r(H){C.messageBuffer_[C.countMessageBytes_++]=H;C.countMessageBytes_==C.length_&&Y()}
function Y(){if(C.tag_<15){var H={};H[C.tag_]=C.messageBuffer_;C.result_.push(H)}C.state_=0}
for(var C=this,d=q instanceof Array?q:new Uint8Array(q),O=0;O<d.length;){switch(C.state_){case 3:b1(C,d,O,"stream already broken");break;case 0:Z(d[O]);break;case 1:w(d[O]);break;case 2:r(d[O]);break;default:throw Error("Oj`"+C.state_);}C.JSC$16876_streamPos_++;O++}q=C.result_;C.result_=[];return q.length>0?q:null};var oLq=function(){this.errorMessage_=null;this.JSC$16879_streamPos_=0;this.base64Decoder_=new VQy;this.pbParser_=new wo};
oLq.prototype.isInputValid=function(){return this.errorMessage_===null};
var OkV=function(q,Z,w){q.errorMessage_="The stream is broken @"+q.JSC$16879_streamPos_+". Error: "+w+". With input:\n"+Z;throw Error(q.errorMessage_);};
oLq.prototype.acceptsBinaryInput=function(){return!1};
oLq.prototype.parse=function(q){this.errorMessage_!==null&&OkV(this,q,"stream already broken");var Z=null;try{var w=this.base64Decoder_;if(!w.isInputValid_)throw w.isInputValid_=!1,Error("Nj`"+w.JSC$16873_streamPos_+"`stream already broken`"+q);w.leftoverInput_+=q;var r=Math.floor(w.leftoverInput_.length/4);if(r==0)var Y=null;else{try{var C=_.BBX(w.leftoverInput_.slice(0,r*4))}catch(H){var d=w.leftoverInput_,O=H.message;w.isInputValid_=!1;throw Error("Nj`"+w.JSC$16873_streamPos_+"`"+O+"`"+d);}w.JSC$16873_streamPos_+=
r*4;w.leftoverInput_=w.leftoverInput_.slice(r*4);Y=C}Z=Y===null?null:this.pbParser_.parse(Y)}catch(H){OkV(this,q,H.message)}this.JSC$16879_streamPos_+=q.length;return Z};var WWb=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16882_streamPos_=0;this.result_=[];this.statusParsed_=!1};
WWb.prototype.isInputValid=function(){return this.errorMessage_===null};
WWb.prototype.acceptsBinaryInput=function(){return!1};
WWb.prototype.parse=function(q){function Z(H){C.state_=6;C.errorMessage_="The stream is broken @"+C.JSC$16882_streamPos_+"/"+d+". Error: "+H+". With input:\n";throw Error(C.errorMessage_);}
function w(){C.jsonStreamParser_=new _.m7({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function r(H){if(H)for(var L=0;L<H.length;L++){var S={};S[1]=H[L];C.result_.push(S)}}
function Y(H){if(H){(C.statusParsed_||H.length>1)&&Z("extra status: "+H);C.statusParsed_=!0;var L={};L[2]=H[0];C.result_.push(L)}}
for(var C=this,d=0;d<q.length;){var O;if(O=C.state_!==2){a:{for(;d<q.length;){if(!_.XO(q[d])){O=!0;break a}d++;C.JSC$16882_streamPos_++}O=!1}O=!O}if(O)return null;switch(C.state_){case 6:Z("stream already broken");break;case 0:q[d]==="["?(C.state_=1,d++,C.JSC$16882_streamPos_++):Z("unexpected input token");break;case 1:q[d]==="["?(C.state_=2,w()):q[d]===","||q.slice(d,d+5)=="null,"?C.state_=3:q[d]==="]"?(C.state_=5,d++,C.JSC$16882_streamPos_++):Z("unexpected input token");break;case 2:O=C.jsonStreamParser_.parse(q.substring(d));
r(O);C.jsonStreamParser_.done()?(C.state_=3,O=C.jsonStreamParser_.JSC$9245_buffer_,C.JSC$16882_streamPos_+=q.length-d-O.length,q=O,d=0):(C.JSC$16882_streamPos_+=q.length-d,d=q.length);break;case 3:q[d]===","||q.slice(d,d+5)=="null,"?(C.state_=4,w(),C.jsonStreamParser_.parse("["),d+=q[d]===","?1:5,C.JSC$16882_streamPos_++):q[d]==="]"&&(C.state_=5,d++,C.JSC$16882_streamPos_++);break;case 4:O=C.jsonStreamParser_.parse(q.substring(d));Y(O);C.jsonStreamParser_.done()?(C.state_=5,O=C.jsonStreamParser_.JSC$9245_buffer_,
C.JSC$16882_streamPos_+=q.length-d-O.length,q=O,d=0):(C.JSC$16882_streamPos_+=q.length-d,d=q.length);break;case 5:Z("extra input after stream end")}}return C.result_.length>0?(q=C.result_,C.result_=[],q):null};var Hkq=function(q){this.JSC$16885_xhr_=q;this.JSC$16885_parser_=null;this.status_=this.JSC$16885_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16885_textDecoder_=null;this.JSC$16885_eventHandler_=new _.Al(this);this.JSC$16885_eventHandler_.listen(this.JSC$16885_xhr_,"readystatechange",this.JSC$16887_readyStateChangeHandler_)},Jt=function(q,Z){q.status_!=Z&&(q.status_=Z,q.statusHandler_&&q.statusHandler_())},z5=function(q){q.JSC$16885_eventHandler_.removeAll();
if(q.JSC$16885_xhr_){var Z=q.JSC$16885_xhr_;q.JSC$16885_xhr_=null;Z.abort();Z.dispose()}};
Hkq.prototype.getStatus=function(){return this.status_};
Hkq.prototype.JSC$16887_readyStateChangeHandler_=function(q){q=q.target;try{if(q==this.JSC$16885_xhr_)a:{var Z=_.j3(this.JSC$16885_xhr_),w=this.JSC$16885_xhr_.JSC$7669_lastErrorCode_,r=this.JSC$16885_xhr_.getStatus(),Y=this.JSC$16885_xhr_.getResponseText();q=[];if(this.JSC$16885_xhr_.getResponse()instanceof Array){var C=this.JSC$16885_xhr_.getResponse();C.length>0&&C[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,q=C)}if(!(Z<3||Z==3&&!Y&&q.length==0))if(r=r==200||r==206,Z==4&&(w==8?Jt(this,
7):w==7?Jt(this,8):r||Jt(this,3)),this.JSC$16885_parser_||(this.JSC$16885_parser_=u_l(this.JSC$16885_xhr_),this.JSC$16885_parser_==null&&Jt(this,5)),this.status_>2)z5(this);else{if(q.length>this.JSC$16885_pos_){var d=q.length;w=[];try{if(this.JSC$16885_parser_.acceptsBinaryInput())for(var O=0;O<d;O++){var H=this.JSC$16885_parser_.parse(Array.from(q[O]));H&&(w=w.concat(H))}else{H="";if(!this.JSC$16885_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Pj");this.JSC$16885_textDecoder_=new TextDecoder}for(O=
0;O<d;O++)H+=this.JSC$16885_textDecoder_.decode(q[O],{stream:Z==4&&O==d-1});w=this.JSC$16885_parser_.parse(H)}q.splice(0,d);w&&this.dataHandler_(w)}catch(S){Jt(this,5);z5(this);break a}}else if(Y.length>this.JSC$16885_pos_){O=Y.slice(this.JSC$16885_pos_);this.JSC$16885_pos_=Y.length;try{var L=this.JSC$16885_parser_.parse(O);L!=null&&this.dataHandler_&&this.dataHandler_(L)}catch(S){Jt(this,5);z5(this);break a}}Z==4?(Y.length!=0||this.hasStreamingResponseData_?Jt(this,2):Jt(this,4),z5(this)):Jt(this,
1)}}}catch(S){Jt(this,6),z5(this)}};var WbZ=function(q){q=this.xhrReader_=q;var Z=(0,_.Lh)(this.onData_,this);q.dataHandler_=Z;q=this.xhrReader_;Z=(0,_.Lh)(this.onStatusChange_,this);q.statusHandler_=Z;this.JSC$16889_callbackMap_={};this.callbackOnceMap_={}};
_.e=WbZ.prototype;_.e.on=function(q,Z){var w=this.JSC$16889_callbackMap_[q];w||(w=[],this.JSC$16889_callbackMap_[q]=w);w.push(Z);return this};
_.e.addListener=function(q,Z){this.on(q,Z);return this};
_.e.removeListener=function(q,Z){var w=this.JSC$16889_callbackMap_[q];w&&_.F9(w,Z);(q=this.callbackOnceMap_[q])&&_.F9(q,Z);return this};
_.e.once=function(q,Z){var w=this.callbackOnceMap_[q];w||(w=[],this.callbackOnceMap_[q]=w);w.push(Z);return this};
_.e.onData_=function(q){var Z=this.JSC$16889_callbackMap_.data;Z&&oJV(q,Z);(Z=this.callbackOnceMap_.data)&&oJV(q,Z);this.callbackOnceMap_.data=[]};
var oJV=function(q,Z){for(var w={},r=0;r<q.length;w={message$jscomp$966:void 0},r++)w.message$jscomp$966=q[r],Z.forEach(function(Y){return function(C){try{C(Y.message$jscomp$966)}catch(d){}}}(w))};
WbZ.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:uWb(this,"readable");break;case 5:case 6:case 4:case 7:case 3:uWb(this,"error");break;case 8:uWb(this,"close");break;case 2:uWb(this,"end")}};
var uWb=function(q,Z){var w=q.JSC$16889_callbackMap_[Z];w&&w.forEach(function(r){try{r()}catch(Y){}});
(w=q.callbackOnceMap_[Z])&&w.forEach(function(r){r()});
q.callbackOnceMap_[Z]=[]};var Lb6=function(){var q={format:"jspb"};q=q===void 0?{}:q;this.suppressCorsPreflight_=q.suppressCorsPreflight||_.Eq("suppressCorsPreflight",q)||!1;this.JSC$16892_withCredentials_=q.withCredentials||_.Eq("withCredentials",q)||!1;this.streamInterceptors_=q.streamInterceptors||[];this.unaryInterceptors_=q.unaryInterceptors||[];this.workerScope_=q.workerScope;this.chunkedServerStreaming_=q.useFetchDownloadStreams||!1},jD8=function(q,Z,w,r,Y,C){C=C===void 0?{}:C;
var d=Z.substring(0,Z.length-Y.name.length),O,H=(O=C)==null?void 0:O.signal;return SZ6(function(L){return new Promise(function(S,v){if(H==null?0:H.aborted){var R=new _.LN(1,"Aborted");R.cause=H.reason;v(R)}else{var B={},n=vJq(q,L,d);n.on("error",function(x){return v(x)});
n.on("metadata",function(x){B=x});
n.on("data",function(x){var K=B;K=K===void 0?{}:K;S(new kTu(x,K))});
H&&H.addEventListener("abort",function(){n.cancel();var x=new _.LN(1,"Aborted");x.cause=H.reason;v(x)})}})},q.unaryInterceptors_).call(q,K7S(Y,w,r)).then(function(L){return L.responseMessage})},Bi=function(q,Z,w,r,Y){var C=C===void 0?{}:C;
return jD8(q,Z,w,r,Y,C)};
Lb6.prototype.serverStreaming=function(q,Z,w,r){var Y=this,C=q.substring(0,q.length-r.name.length);return SZ6(function(d){var O=d.methodDescriptor,H=d.getMetadata(),L=tQc(Y,!1);H=R3u(Y,H,L,C+O.getName());var S=bkc(L,O.responseDeserializeFn,!0);d=O.requestSerializeFn(d.requestMessage);L.send(H,"POST",d);return S},this.streamInterceptors_).call(this,K7S(r,Z,w))};
var vJq=function(q,Z,w){var r=Z.methodDescriptor,Y=Z.getMetadata(),C=tQc(q,!0);q=R3u(q,Y,C,w+r.getName());w=bkc(C,r.responseDeserializeFn,!1);e3b(w,Y["X-Goog-Encode-Response-If-Executable"]=="base64");Z=r.requestSerializeFn(Z.requestMessage);C.send(q,"POST",Z);return w},tQc=function(q,Z){Z=q.chunkedServerStreaming_&&!Z;
return q.workerScope_||Z?new _.vD(new vi({worker:q.workerScope_,streamBinaryChunks:Z})):new _.vD},R3u=function(q,Z,w,r){Z["Content-Type"]="application/json+protobuf";
Z["X-User-Agent"]="grpc-web-javascript/0.1";var Y=Z.Authorization;if(Y&&y5l.has(Y.split(" ")[0])||q.JSC$16892_withCredentials_)w.JSC$7669_withCredentials_=!0;if(q.suppressCorsPreflight_)r=dIC(r,"$httpHeaders",Z);else for(var C in Z)w.headers.set(C,Z[C]);return r},bkc=function(q,Z,w){if(w){w=new Hkq(q);
var r=new WbZ(w)}return new u1({xhr:q,nodeReadableStream:r},Z)},SZ6=function(q,Z){return Z.reduce(function(w,r){return function(Y){return r.intercept(Y,w)}},q)};var J4b=function(q){this.client_=new Lb6;this.hostname_=q==void 0?q:q.replace(/\/+$/,"")};
_.e=J4b.prototype;_.e.JSC$16906_depositGoogleCredential=function(q,Z){return Bi(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",q,Z||{},MgZ)};
_.e.deleteLink=function(q,Z){return Bi(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",q,Z||{},IG6)};
_.e.JSC$16906_finishOAuth=function(q,Z){return Bi(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",q,Z||{},N4D)};
_.e.getLink=function(q,Z){return Bi(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",q,Z||{},lG6)};
_.e.startLinkingSession=function(q,Z){return Bi(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",q,Z||{},htc)};var z3l=[0,cH7,1,N2F,[0,_.MY,[0,MbV,-1]],[0,FwV],[0,l7b,-1]];var Bll=function(){this.storage=new Map},nJc=function(q,Z,w,r,Y){if(!q.storage.has(Z))return null;
q=_.P(q.storage.get(Z));for(Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,!Y||Z.linkName===Y)if(w&&Z.scopes&&aiZ(Z.scopes,w)||r&&Z.capabilities&&aiZ(Z.capabilities,r))return Z;return null},QDF=function(q,Z,w){if(!w)q.storage.delete(Z);
else if(q.storage.has(Z)){var r=q.storage.get(Z).filter(function(Y){return Y.linkName!==w});
r.length>0?q.storage.set(Z,r):q.storage.delete(Z)}},aiZ=function(q,Z){Z=_.P(Z);
for(var w=Z.next();!w.done;w=Z.next())if(!q.has(w.value))return!1;return!0};var EJZ=function(){var q=_.zj("LINK_GAL_DOMAIN");this.alsDomain1p=_.zj("LINK_GAL_DOMAIN");this.alsDomain3p=q;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},xIy=function(q,Z){q.apiKey=Z;
return q};
EJZ.prototype.build=function(){var q={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Qj");q.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Rj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Sj");q.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(q.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)q.apiKey=
this.apiKey,q.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Tj");q.oauthToken=this.oauthToken;q.alsDomain=this.alsDomain3p}q.clientXd3=this.clientXd3;q.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(q.authUser=this.authUser);this.bucket!==void 0&&(q.bucket=this.bucket);this.completionUrl!==void 0&&(q.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(q.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(q.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(q.locale=this.locale);q.loggerType=this.loggerType;q.clientEnvironment=this.clientEnvironment;q.colorScheme=this.colorScheme;q.showCloseOption=this.showCloseOption;return q};var ro=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(ro,_.XD);var Tlc=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Tlc,_.XD);var UIy=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(UIy,_.XD);var $9=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z($9,_.XD);var kvZ=function(q){return _.Jz(q,1)};var Kb6=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Kb6,_.XD);var bVS=_.$v(Kb6),Y9=[1,2,3,4,5];var vLF=function(q){try{return bVS(q)}catch(Z){return null}},sDc=function(){},j5S=function(q,Z){switch(_.uY(Z,Y9)){case 4:return(Z=_.al(Z,UIy,4,Y9))&&q.logStateTransition(_.Jz(Z,1)),!0;
case 5:return(Z=_.al(Z,Tlc,5,Y9))&&q.logInternalEvent(_.Jz(Z,1)),!0}return!1},JL6=function(q){switch(q){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.F7(q)}};var LW8=function(q,Z){var w=this;this.validator=q;this.messageListener=Z;this.dismissCallback=function(){Iiu(w,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$16935_receiveMessage=function(r){r.type==="message"&&(r=r.event_,r!==null&&(new URL(w.iframe.src)).origin===r.origin&&w.validator(r.data,r.origin)&&!w.messageListener(r.data)&&(w.JSC$16935_resolveCb!==void 0&&w.JSC$16935_resolveCb(r.data),c4V(w)))}},RY6=function(q,Z,w){q.uiHandler!==void 0&&Iiu(q,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(r,Y){q.JSC$16935_resolveCb=r;q.JSC$16935_rejectCb=Y;q.iframe=document.createElement("iframe");_.F5(q.iframe,Z);q.uiHandler=w.displayContent(q.iframe,q.dismissCallback);_.Yc(window,"message",q.JSC$16935_receiveMessage,!1,q)})},Iiu=function(q,Z){q.JSC$16935_rejectCb!==void 0&&q.JSC$16935_rejectCb(Z);
c4V(q)},c4V=function(q){q.uiHandler!==void 0&&q.uiHandler.hideContent();
_.d_(window,"message",q.JSC$16935_receiveMessage,!1,q);q.JSC$16935_resolveCb=void 0;q.JSC$16935_rejectCb=void 0;q.uiHandler=void 0;q.iframe=void 0};var MQ6=function(q){if(q===2){var Z;q=((Z=window)==null?0:Z.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return q},trq=function(q){q=MQ6(q);
switch(q){case 0:return"light";case 1:return"dark";default:_.F7(q)}};var SMF=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Fbu=function(q,Z){this.JSC$16947_linkingSession=q;this.noticeConfig=Z;this.displayInfoMap=new Map;var w=new Map;if(_.Og(this.JSC$16947_linkingSession,XRF,7))for(q=_.Xy(this.JSC$16947_linkingSession,XRF,7),q=_.Aj(q,pRl,1,_.fC()),q=_.P(q),Z=q.next();!Z.done;Z=q.next())Z=Z.value,w.set(_.Jz(Z,1),_.OYj(_.Xy(Z,_.xE2,3)));if(w.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){Z=this.noticeConfig.enabledDataUsageNoticeUis;q=Z.has(0)?w.get(1):void 0;Z=Z.has(1)?w.get(2):void 0;w=q!==void 0&&Z!==void 0?w.get(3):void 0;var r=this.noticeConfig.nestedOrigins;var Y=new Kb6;var C=new ro;Y=_.dr(Y,2,Y9,C);C=new Kb6;var d=new ro;C=_.dr(C,3,Y9,d);d=[];q!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:q,lastEvent:Y,nestedOrigins:r}]),d.push({trustedUrl:q,lastEvent:Y,nestedOrigins:r}));Z!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:Z,lastEvent:C,nestedOrigins:r}]),d.push({trustedUrl:Z,lastEvent:C,nestedOrigins:r}));w!==void 0?this.displayInfoMap.set(3,[{trustedUrl:w,lastEvent:C,nestedOrigins:r}]):this.displayInfoMap.set(3,d)}};var NlD=function(q){var Z=new Bll;this.galService=q;this.galCache=Z};
NlD.prototype.getLink=function(q){var Z=q.serviceId;var w=q.scopes;var r=q.capabilities;var Y=q.linkName;var C=this,d;return _.V(function(O){if(r!==void 0&&w!==void 0)throw Error("Uj");d=nJc(C.galCache,Z,w,r,Y);return d!==null?O.return(d):O.return(C.galService.getLink({serviceId:Z,sessionId:Math.floor(Math.random()*2147483648),scopes:w,capabilities:r,linkName:Y}).then(function(H){H=Q5b(H);var L=C.galCache;L.storage.has(Z)?L.storage.get(Z).push(H):L.storage.set(Z,[H]);return H}))})};
NlD.prototype.deleteLink=function(q,Z,w){var r=this;return _.V(function(Y){QDF(r.galCache,q,w);return Y.return(r.galService.deleteLink({serviceId:q,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:Z,linkName:w}).then(function(){return!0}))})};var GvV=function(q,Z){var w=this;this.validator=q;this.msgHandler=Z;this.closedPopupTimeout=this.JSC$16969_rejectCb=this.JSC$16969_resolveCb=this.popup=null;this.JSC$16969_receiveMessage=function(r){if(r!==null&&(r=r.event_,r.source===w.popup)){var Y=r.data;if(w.validator(Y,r.origin)){var C;(C=w.msgHandler)!=null&&C.call(w,Y)||(w.JSC$16969_resolveCb!==null&&w.JSC$16969_resolveCb(Y),liy(w))}}}};
GvV.prototype.open=function(q,Z){var w=this;this.popup!==null&&pt8(this);return new Promise(function(r,Y){w.JSC$16969_resolveCb=r;w.JSC$16969_rejectCb=Y;w.popup=_.NK(window,q,"",Z);_.Yc(window,"message",w.JSC$16969_receiveMessage,!1,w);XtV(w)})};
var pt8=function(q,Z){q.JSC$16969_rejectCb!==null&&q.JSC$16969_rejectCb(Z);liy(q)},liy=function(q){q.closedPopupTimeout&&(q.closedPopupTimeout.cancel(),q.closedPopupTimeout=null);
q.popup&&q.popup.close();_.d_(window,"message",q.JSC$16969_receiveMessage,!1,q);q.popup=null;q.JSC$16969_resolveCb=null;q.JSC$16969_rejectCb=null},XtV=function(q){q.closedPopupTimeout=_.r1W(100).then(function(){q.popup?q.popup.closed?mIu(q):XtV(q):pt8(q,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},mIu=function(q){q.closedPopupTimeout=_.r1W(100).then(function(){pt8(q,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var A4C=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),fiC=function(q,Z,w,r,Y,C,d,O,H,L){var S=this;this.serviceId=q;this.sessionId=Z;this.galService=w;this.oauthDetails=r;this.galLogger=Y;this.interactionMode=C;this.redirectServiceUrl=d;this.consentLanguageKeys=O;this.dynamicUrlParameters=H;this.partnerConfigMinReadTimestamp=L;this.started=!1;this.JSC$16975_dataValidator=function(v,
R){var B=A4C.has(R);B||S.redirectServiceUrl===void 0||(B=S.redirectServiceUrl===R);return B?v.sentinel==="gdi":!1}};
fiC.prototype.complete=function(){var q=this,Z;return _.V(function(w){if(q.interactionMode!==1)return w.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));Z=Cv.getRedirectStateFromUri();return Z===null?w.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):w.return(DIl(q,Z))})};
fiC.prototype.start=function(){var q=this,Z;return _.V(function(w){if(q.started)return w.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.bY(q.oauthDetails,1))return w.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(q.interactionMode===1)return Cv.setLocation(_.bY(q.oauthDetails,1)),w.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));q.started=!0;q.galLogger.logStateTransition(5);
Z=Cv.getPostMessagePopup(q.JSC$16975_dataValidator);return w.return(Z.open(_.bY(q.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(r){q.started=!1;var Y=q.galLogger;if((r==null?void 0:r.error)!==void 0)throw Y.logInternalEvent(59),Error("Vj");if((r==null?void 0:r.redirect_state)===void 0)throw Y.logInternalEvent(131),Error("Wj");return DIl(q,r.redirect_state)}).catch(function(r){q.started=
!1;
return r.errorCode!==void 0?{statusCode:r.errorCode,statusMessage:r.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var DIl=function(q,Z){return _.V(function(w){return w.return(h37(q.galService,{serviceId:q.serviceId,sessionId:q.sessionId,dynamicUrlParameters:q.dynamicUrlParameters,redirectState:Z,consentLanguageKeys:q.consentLanguageKeys,partnerConfigMinReadTimestamp:q.partnerConfigMinReadTimestamp}).then(function(r){var Y=r.getLink();Y={statusCode:1,link:Q5b(Y)};JEu(_.WI(r,3))!==void 0&&(Y.callerState=JEu(_.WI(r,3)));q.galLogger.logInternalEvent(134);return Y}))})},Cv={getPostMessagePopup:function(q){return new GvV(q)},
getRedirectStateFromUri:function(){var q=_.UJ(Cv.getLocation()).fragment_;return(new _.fN(q)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(q){_.qI2(window.location,_.EX(q))},
createOAuthFlow:function(q,Z){return new fiC(q.serviceId,q.sessionId,q.galService,Z,q.galLogger,q.interactionMode,q.redirectServiceUrl,q.consentLanguageKeys,q.dynamicUrlParameters,q.partnerConfigMinReadTimestamp)}};var y48=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(y48,_.XD);var iky=_.$v(y48);var gJl=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),qNy=function(q,Z,w,r,Y,C,d,O,H){var L=this;this.serviceId=q;this.sessionId=Z;this.galService=w;this.gsiWebFlowDetails=r;this.colorScheme=Y;this.showCloseOption=C;this.galLogger=d;this.interactionMode=O;this.redirectServiceUrl=H;this.started=!1;this.JSC$16987_dataValidator=function(S,v){var R=gJl.has(v);R||L.redirectServiceUrl===
void 0||(R=L.redirectServiceUrl===v);return R?S.sentinel==="gal":!1};
this.logEventProcessor=function(S){return S.result?(S=vLF(S.result))?j5S(L.galLogger,S):!1:!1}};
qNy.prototype.complete=function(){var q=this,Z,w;return _.V(function(r){if(q.interactionMode!==1)return r.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));Z=P2.getRedirectStateFromUri();if(Z===void 0)return q.galLogger.JSC$16927_logErrorEvent(131),r.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return w=ZHu(q,Z),r.return(wZq(q,w))}catch(Y){return r.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
qNy.prototype.start=function(){var q=this,Z;return _.V(function(w){if(q.started)return w.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.bY(q.gsiWebFlowDetails,1))return w.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(q.interactionMode===1)return P2.setLocation(rAu(q,_.bY(q.gsiWebFlowDetails,1))),w.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
q.started=!0;Z=P2.getPostMessagePopup(q.JSC$16987_dataValidator,q.logEventProcessor);return w.return(Z.open(rAu(q,_.bY(q.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(r){q.started=!1;if((r==null?void 0:r.result)===void 0)throw q.galLogger.JSC$16927_logErrorEvent(131),Error("Wj");r=ZHu(q,r.result);return wZq(q,r)}).catch(function(r){q.started=!1;
return r.errorCode!==void 0?{statusCode:r.errorCode,statusMessage:r.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var rAu=function(q,Z){q=["result_channel",q.interactionMode===1?"2":"1","color_scheme",trq(q.colorScheme),"show_close_option",q.showCloseOption];return XB6(Z,q)},wZq=function(q,Z){if(Z!==null&&_.Og(Z,$9,2)){var w,r=Z==null?void 0:(w=_.Xy(Z,$9,2))==null?void 0:_.Jz(w,2);
r&&q.galLogger.JSC$16927_logErrorEvent(JL6(r));return kvZ(_.Xy(Z,$9,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 q.galService.getLink({serviceId:q.serviceId,sessionId:q.sessionId,consistencyKey:_.bY(Z,1)}).then(function(Y){Y=Q5b(Y);q.galLogger.logInternalEvent(134);return{statusCode:1,link:Y}})},ZHu=function(q,Z){Z=iky(Z);
if(!_.Og(Z,$9,2)&&_.bY(Z,1)==="")throw q.galLogger.JSC$16927_logErrorEvent(5),Error("Xj");return Z},P2={getPostMessagePopup:function(q,Z){return new GvV(q,Z)},
getRedirectStateFromUri:function(){return _.ki(_.UJ(P2.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(q){_.qI2(window.location,_.EX(q))},
createStreamlinedFlow:function(q,Z){return new qNy(q.serviceId,q.sessionId,q.galService,Z,q.colorScheme,q.showCloseOption,q.galLogger,q.interactionMode,q.redirectServiceUrl)}};var pxS=function(){var q=_.Oz2("GAL");this.storage=q?new _.VL(q):null};var aP=function(){};
_.z(aP,sDc);aP.prototype.logStateTransition=function(){};
aP.prototype.logInternalEvent=function(){};
aP.prototype.JSC$16927_logErrorEvent=function(){};var YNy=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(YNy,_.XD);YNy.prototype.getCompletionUrl=function(){return _.bY(this,15)};var nu=function(q,Z,w,r,Y,C){this.serviceId=q;this.environment=Z;this.sessionId=w;this.colorSchemeSelected=r;this.colorThemeDisplayed=Y;this.JSC$17000_transport=C;this.currentState=1};
_.z(nu,sDc);nu.prototype.logStateTransition=function(q){var Z=$rZ(this);Z=_.mh(Z,3,this.currentState);Z=_.mh(Z,1,q);this.currentState=q;q=$1q(1);this.dispatch(Z,q)};
nu.prototype.logInternalEvent=function(q){q=$1q(q);this.dispatch($rZ(this),q)};
nu.prototype.JSC$16927_logErrorEvent=function(q){var Z=$rZ(this);Z=_.mh(Z,1,10);q=$1q(q);this.dispatch(Z,q)};
var $rZ=function(q){var Z=new YNy;Z=_.mh(Z,1,q.currentState);Z=_.uM(Z,7,q.serviceId);var w,r,Y;((w=window)==null?0:(r=w.location)==null?0:r.href)?Y=_.UJ(window.location.href).JSC$7906_domain_:Y="NO_PACKAGE_NAME";w=_.uM(Z,8,Y);w=_.mh(w,6,q.environment);w=_.uM(w,5,"100");w=_.mh(w,11,q.colorSchemeSelected);return _.mh(w,12,q.colorThemeDisplayed)};
nu.prototype.dispatch=function(q,Z){Z===void 0&&(Z=new _.i4);var w=Z;q=q.serialize();w=_.uM(w,8,q);_.OU(w,12,this.sessionId);this.JSC$17000_transport.dispatch(Z)};var efc=function(q,Z){this.loggerType=q;this.sessionIndex=Z!=null?Z:0},CGu;
efc.prototype.create=function(q,Z,w,r,Y){switch(this.loggerType){case 0:return new aP;case 1:return CGu||(CGu=(new _.Yi(555,this.sessionIndex.toString())).build()),new nu(q,Z,w,r,Y,CGu);default:_.F7(this.loggerType,"unknown logger type")}};var V3=[6,2,3,1],DAl=new Map([[4,1],[1,6],[2,2],[3,3]]),UAD={statusCode:7,statusMessage:"Failed to create flow object"},lv6=function(q,Z,w,r,Y,C,d,O,H,L){this.serviceId=q;this.sessionId=Z;this.config=w;this.galService=r;this.JSC$17007_linkingSession=Y;this.googleScopes=C;this.callerState=d;this.consentLanguageKeys=O;this.dynamicUrlParameters=H;this.partnerConfigMinReadTimestamp=L;this.currentFlow=0;r=this.JSC$17007_linkingSession;Y=new Set;_.Og(r,cLS,1)&&Y.add(1);_.Og(r,A5C,2)&&_.Og(r,MrS,6)&&Y.add(2);
_.Og(r,mBu,3)&&_.Og(r,MrS,6)&&Y.add(3);_.Og(r,GTF,4)&&Y.add(6);this.supportedFlows=Y;r=w.loggerType;Y=w.clientEnvironment;a:{C=w.colorScheme;switch(C){case 0:C=1;break a;case 1:C=2;break a;case 2:C=3;break a;default:_.F7(C)}C=void 0}a:{d=w.colorScheme;d=MQ6(d);switch(d){case 0:d=1;break a;case 1:d=2;break a;default:_.F7(d)}d=void 0}this.galLogger=(new efc(r,w.authUser)).create(q,Y,Z,C,d)},drZ=function(q){return new Promise(function(Z){var w,r,Y,C,d,O,H,L,S,v;
return _.V(function(R){switch(R.nextAddress){case 1:w=FWy(q.currentFlow,q.supportedFlows),r=!1,Y=new Fbu(q.JSC$17007_linkingSession,q.config.dataUsageNoticeConfig);case 2:if(w===void 0){R.jumpTo(4);break}_.d9(R,5);var B=Y,n=w,x=void 0;r?n===1&&(x=B.displayInfoMap.get(2)):n===2||n===3?x=B.displayInfoMap.get(1):n===1&&(x=B.displayInfoMap.get(3));C=x?x:[];d=q.consentLanguageKeys;O=_.P(C);H=O.next();case 7:if(H.done)return q.currentFlow=w,_.W(R,KWV(PGC(q,d)),11);L=H.value;return _.W(R,zYc(L,q.config.dataUsageNoticeConfig.uiAdapter,
q.config.colorScheme,q.galLogger),10);case 10:S=R.yieldResult;if(S.statusCode!==1)return Xxl(q.serviceId),q.currentFlow=0,Z(ef({statusCode:S.statusCode,statusMessage:S.statusMessage},q.callerState)),R.return();S.consentLanguageKeys!==void 0&&(d=S.consentLanguageKeys);H=O.next();R.jumpTo(7);break;case 11:v=R.yieldResult;if(v.statusCode!==10)return v.statusCode!==6&&(Xxl(q.serviceId),q.currentFlow=0),v.statusCode!==1&&q.callerState!==void 0&&(v.callerState=q.callerState),Z(v),R.return();_.QL(R,6);break;
case 5:_.o3(R);case 6:w=FWy(q.currentFlow,q.supportedFlows);r=!0;R.jumpTo(2);break;case 4:Xxl(q.serviceId),q.currentFlow=0,Z(ef({statusCode:12,statusMessage:"Linking failed"},q.callerState)),_.ub(R)}})})},ALq=function(q,Z,w){q.currentFlow=Z;
return s5V(PGC(q,w)).then(function(r){return r.statusCode===10&&q.config.interactionMode===1&&FWy(q.currentFlow,q.supportedFlows)!==void 0?drZ(q):r})},PGC=function(q,Z){return{flowParams:{serviceId:q.serviceId,
sessionId:q.sessionId,galService:q.galService,galLogger:q.galLogger,interactionMode:q.config.interactionMode,redirectServiceUrl:q.config.redirectServiceUrl,colorScheme:q.config.colorScheme,consentLanguageKeys:Z,dynamicUrlParameters:q.dynamicUrlParameters,showCloseOption:q.config.showCloseOption,partnerConfigMinReadTimestamp:q.partnerConfigMinReadTimestamp},currentFlow:q.currentFlow,config:q.config,session:q.JSC$17007_linkingSession,googleScopes:q.googleScopes,callerState:q.callerState}};var $l7=function(q,Z){this.config=q;this.galService=Z.getService();this.JSC$17020_galRepository=Z.JSC$17057_galRepository};
$l7.prototype.getLink=function(q,Z){return VE8(this,q,Z)};
var VE8=function(q,Z,w){return q.JSC$17020_galRepository.getLink({serviceId:Z,scopes:void 0,capabilities:void 0,linkName:w}).then(function(r){return{statusCode:1,link:r}}).catch(function(r){return{statusCode:hYy(r.code),
statusMessage:r.message}})};
$l7.prototype.deleteLink=function(q,Z){return this.JSC$17020_galRepository.deleteLink(q,this.config.accountLinkingEntryPoint,Z).then(function(){return{statusCode:1}}).catch(function(w){return{statusCode:hYy(w.code),
statusMessage:w.message}})};
$l7.prototype.startLinkingSession=function(q){var Z=q.serviceId;var w=q.sessionId;return Gdy({serviceId:Z,sessionId:w!==void 0?w:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:q.loginHint,callerState:q.callerState,consentLanguageKeys:q.consentLanguageKeys,linkName:q.linkName,dynamicUrlParameters:q.dynamicUrlParameters,partnerConfigMinReadTimestamp:q.partnerConfigMinReadTimestamp})};var yLl=null,ZP7=new WeakMap;var OH6=function(){};
OH6.prototype.send=function(q,Z){YzS(q);return this.makeRequest(q).then(function(w){if(Z){var r=new Z;if(w!=null){if(Z==null)throw Error("Zj");new Z;throw Error("ak");}w=r}return w})};var HHu=function(q,Z,w,r,Y){this.gapiUrl=q;this.gapiKey=Z;this.gapiConfigUpdates=w||{};this.gapiAuthParams=r||{};this.defaultApiId=Y};
_.z(HHu,OH6);var o56=function(q){return gLy().then(function(Z){Z=Z||window.gapi;WGc(q,Z);return rQV(Z,{apiKey:q.gapiKey,clientId:q.gapiAuthParams.clientId,scope:q.gapiAuthParams.scope,hostedDomain:q.gapiAuthParams.hostedDomain,fetchBasicProfile:q.gapiAuthParams.fetchBasicProfile}).then(function(){return Z})})};
HHu.prototype.makeRequest=function(q){var Z=this;return o56(this).then(function(w){return _.V(function(r){if(r.nextAddress==1)return Z.gapiAuthParams.minAuthTokenTimeRemaining===void 0?r.jumpTo(2):_.W(r,wQb(w,Z.gapiAuthParams.minAuthTokenTimeRemaining),2);WGc(Z,w);return r.return(uGu(w.client.request({root:Z.gapiUrl,path:q.path,method:q.httpMethod,body:q.body,params:q.queryParams,headers:q.headers,authType:q.authType,apiId:q.apiId||Z.defaultApiId})))})})};
var uGu=function(q){return new Promise(function(Z,w){q.then(function(r){Z(r.result===!1&&r.body!=null?{data:r.body}:r.result)},function(r){w(r.result===!1&&r.body!=null?{data:r.body}:r.result)})})},WGc=function(q,Z){for(var w in q.gapiConfigUpdates)if(q.gapiConfigUpdates.hasOwnProperty(w)){var r=Z,Y=w,C=q.gapiConfigUpdates[w],d=r.config.get(Y);
C!==d&&r.config.update(Y,C)}};
HHu.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var QC=function(q,Z,w,r,Y,C,d,O){this.apiKey=Z;this.authUser=w;this.oauthToken=r;this.bucket=Y;this.locale=d;this.galSdkEventHandler=O;if(r===void 0){if(Z===void 0)throw Error("bk");this.requestService=new HHu(q,Z,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":C===void 0||C===!1,"client/xd3":C===!0})}this.galServiceClient=new J4b(q)};
QC.prototype.deleteLink=function(q){var Z=q.serviceId;var w=q.sessionId;var r=q.accountLinkingEntryPoint;var Y=q.linkName;var C=this,d;return _.V(function(O){var H=(new VC).setHeader(E4(C,w));var L=LGl({serviceId:Z,linkName:Y});H=_.CA(H,2,L);d=_.QM(H,3,r);return O.return(C.makeRequest(C.galServiceClient.deleteLink,d,[1,3],[2,4]))})};
var h37=function(q,Z){var w=Z.serviceId;var r=Z.sessionId;var Y=Z.dynamicUrlParameters;var C=Z.redirectState;var d=Z.consentLanguageKeys;var O=Z.partnerConfigMinReadTimestamp;var H;return _.V(function(L){var S=(new Hi).setHeader(E4(q,r,Y));S=_.l2(S,2,w);H=_.l2(S,4,C);d!==void 0&&_.l2(H,5,d);O!==void 0&&_.CA(H,6,O);return L.return(q.makeRequest(q.galServiceClient.JSC$16906_finishOAuth,H,[1,3],[2,4]))})};
QC.prototype.getLink=function(q){var Z=q.serviceId;var w=q.sessionId;var r=q.scopes;var Y=q.capabilities;var C=q.consistencyKey;var d=q.linkName;var O=this,H;return _.V(function(L){var S=(new Wi).setHeader(E4(O,w)),v=LGl({serviceId:Z,scopes:r,capabilities:Y,linkName:d});H=_.CA(S,2,v);C!==void 0&&(S=ED7(),S=_.l2(S,2,C),_.CA(H,3,S));return L.return(O.makeRequest(O.galServiceClient.getLink,H,[1,3],[2,4]))})};
var IvD=function(q,Z){var w=Z.serviceId;var r=Z.sessionId;var Y=Z.googleScopes;var C=Z.consistencyKey;var d;return _.V(function(O){var H=(new O4).setHeader(E4(q,r));H=_.l2(H,2,w);var L=Array.from(Y.values());H=_.s6(H,3,L,_.db);L=ED7();L=_.l2(L,2,C);d=_.CA(H,4,L);return O.return(q.makeRequest(q.galServiceClient.JSC$16906_depositGoogleCredential,d,[1,3],[2,4]))})};
QC.prototype.startLinkingSession=function(q){var Z=q.serviceId;var w=q.sessionId;var r=q.scopes;var Y=q.capabilities;var C=q.loginHint;var d=q.supportedFlows;var O=q.completionUrl;var H=q.usePingPong;var L=q.twoWayLinking;var S=q.accountLinkingEntryPoint;var v=q.callerState;var R=q.consentLanguageKeys;var B=q.googleScopes;var n=q.dataUsageNoticeConfig;var x=q.linkName;var K=q.dynamicUrlParameters;var k=q.partnerConfigMinReadTimestamp;var G=this,rz,f;return _.V(function(eO){if(Y!==void 0&&r!==void 0)throw Error("Uj");
var g=(new oP).setHeader(E4(G,w,K));rz=_.l2(g,2,Z);x!==void 0&&_.l2(rz,14,x);if(Y!==void 0){g=rz;var H6=Array.from(Y.values());_.s6(g,5,H6,_.db)}else r!==void 0&&(g=rz,H6=Array.from(r.values()),_.s6(g,3,H6,_.db));O!==void 0&&_.l2(rz,6,O);H!==void 0&&_.vk(rz,15,H);d!==void 0&&(g=rz,H6=Array.from(d.values()),_.s6(g,4,H6,_.AK));if(L!==void 0){if(L&&(!B||B.size===0))throw Error("ck");_.vk(rz,8,L)}S!==void 0&&_.QM(rz,9,S);C!==void 0&&_.l2(rz,13,C);v!==void 0&&(g=rz,H6=(new TextEncoder).encode(v),_.cy(g,
12,_.JK(H6,!1),_.bX()));R!==void 0&&_.l2(rz,16,R);k!==void 0&&_.CA(rz,18,k);if(n!==void 0&&n.size>0||B!==void 0&&B.size>0)f=new DBS,B!==void 0&&B.size>0&&(g=f,H6=Array.from(B.values()),_.s6(g,1,H6,_.db)),n!==void 0&&(n.has(0)&&_.alN(f,2,_.AK,1,_.yD),n.has(1)&&_.alN(f,2,_.AK,2,_.yD)),_.CA(rz,17,f);return eO.return(G.makeRequest(G.galServiceClient.startLinkingSession,rz,[1],[2]))})};
QC.prototype.getMetadata=function(){var q=this,Z,w,r;return _.V(function(Y){if(Y.nextAddress==1)return Z={},q.requestService?_.W(Y,o56(q.requestService),3):(Z.Authorization="Bearer "+q.oauthToken,Y.jumpTo(2));Y.nextAddress!=2&&(w=Y.yieldResult,Z["X-Goog-Api-Key"]=q.apiKey,Z["X-Goog-AuthUser"]=q.authUser!==void 0?q.authUser.toString():"0",(r=w.auth.getAuthHeaderValueForFirstParty([]))&&(Z.Authorization=r));q.locale&&(Z["accept-language"]=q.locale);return Y.return(Z)})};
QC.prototype.makeRequest=function(q,Z,w,r){var Y=this,C;return _.V(function(d){if(d.nextAddress==1)return _.W(d,Y.getMetadata(),2);C=d.yieldResult;SNC(Y,w);return d.return(q.bind(Y.galServiceClient)(Z,C).finally(function(){SNC(Y,r)}))})};
var SNC=function(q,Z){q.galSdkEventHandler!==void 0&&Z.forEach(function(w){q.galSdkEventHandler.onEvent(w)})},E4=function(q,Z,w){var r=new Cu;
Z=_.cy(r,2,_.iX(Z),0);Z=_.QM(Z,5,3);w=_.s6(Z,8,w,_.db);q.bucket!==void 0&&_.l2(w,1,q.bucket);return w},LGl=function(q){var Z=q.serviceId;
var w=q.scopes;var r=q.capabilities;q=q.linkName;if(r!==void 0&&w!==void 0)throw Error("Uj");var Y=new nD7;Z=_.l2(Y,1,Z);r!==void 0?(w=Array.from(r.values()),_.s6(Z,5,w,_.db)):w!==void 0&&(w=Array.from(w.values()),_.s6(Z,3,w,_.db));q!==void 0&&_.l2(Z,6,q);return Z};var ekl=function(q){this.galService=new QC(q.alsDomain,q.apiKey,q.authUser,q.oauthToken,q.bucket,q.clientXd3,q.locale,q.galSdkEventHandler);this.JSC$17057_galRepository=new NlD(this.galService)};
ekl.prototype.getService=function(){return this.galService};var v5S=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(v5S,_.XD);var jxF=function(q){var Z=new v5S;return _.mh(Z,1,q)};
v5S.prototype.setErrorMessage=function(q){return _.uM(this,2,q)};var tEC=[0,_.NY,_.cI,_.NY];var xo=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(xo,_.XD);var Rfq=[0,[1,2,3],_.FH,[0,kZ7,I78,-1],_.FH,[0,s7b,-1],_.ZX7];var bHc=[0,_.sg,1,_.NY,_.cI,-1,1,_.Y2v,_.Kc,_.NY,-1,Rfq];var JA6=[0,_.NY,[0,_.Y2v,_.Kc,[0,_.cI]],_.Il,[0,_.NY,-1]];var mQ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(mQ,_.XD);var zfc=[0,_.cI,_.NY,-2,_.sg,_.NY,_.sg,_.NY,-2,1,_.Il];var BZD=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(BZD,_.XD);var a1V=[0,_.sg];var n57=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(n57,_.XD);var QxZ=[0,_.NY,JA6,a1V,zfc,bHc];var cqC=_.qK(n57,QxZ);var E5V=[0,z3l];var pD7=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(pD7,_.XD);var xrl=[0,[1,3],GZC,_.NY,GZC];var pv=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(pv,_.XD);var TZ7=[0,_.NY];var Ur6=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(Ur6,_.XD);var Xq=function(q){return _.al(q,v5S,2,GD)},kgu=function(q){var Z=new Ur6;
return _.dr(Z,2,GD,q)},GD=[1,
2];var KGl=[0,GD,_.FH,TZ7,_.FH,tEC,_.MY,xrl,1,_.NY,E5V];var sxb=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(sxb,_.XD);var cAV=function(q){var Z=new sxb;return _.dr(Z,3,I1c,q)},I1c=[2,
3];var T5=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(T5,_.XD);var ME6=function(q,Z){return _.CA(q,2,Z)},FGC=function(q,Z){return _.CA(q,8,Z)},NZc=function(q,Z){return _.CA(q,3,Z)};var l18=[0,_.NY,KGl,QxZ,_.V8v,[0,[5,6],[0,_.NY,-2],[0,_.sg,_.NY,_.cI],[0,Rfq],[0,_.cI,_.NY,-1,_.dXm],_.FH,[0,[0,_.sg],_.NY,-1],_.FH,[0,[3,4],_.NY,-1,_.FH,[0,[0,_.NY,_.Il]],_.FH,[0]]],_.V8v,-1,[0,I1c,_.NY,_.FH,TZ7,_.FH,tEC,_.MY,xrl,[0,z3l]]];var GgZ=_.qK(T5,l18),pZ6=_.Yv(l18);var XZC=function(){_.u6.call(this)};
_.z(XZC,_.u6);XZC.prototype.init=function(){};
new XZC;var mr7=_.Fr(["data-"]),AAF=_.Fr(["aria-"]),f1F=_.Fr(["aria-"]),U4=function(q,Z){this.isLatencyMeasurementExperiment=q===void 0?!1:q;this.enableDialogA11yFix=Z===void 0?!1:Z;this.JSC$17086_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.S62(_.$1.location.href)},Fxl=function(q,Z){q.onConsentPrimitiveShownCallback=Z},Dry=function(q,Z){return q.overriddenIframeLoadTimeout?q.overriddenIframeLoadTimeout:Z!==void 0?Z:5E3},lSc=function(q){if(q.prewarmPromise!==void 0)return q.prewarmPromise;
q.prewarmPromise=new Promise(function(Z,w){ko(q,1);hfq(q,yAl(q,!0),iHc(q));q.iframe?q.prewarmChannel||g5D(q,q.iframe,Z):w(Error("dk"))});
q.prewarmPromise.finally(function(){q.prewarmPromise=void 0});
return q.prewarmPromise};
U4.prototype.showPrimitive=function(){var q=this;if(this.consentPromise!==void 0)return this.consentPromise;var Z=Date.now();qK6(this,Z);this.consentPromise=new Promise(function(w,r){ko(q,0,Z);var Y=q.isDarkTheme();q.isLatencyMeasurementExperiment||q.initialLoadingStrategy===1||q.initialLoadingStrategy===2||(q.loadingBar||(q.loadingBar=Ve6(getComputedStyle(document.body).direction==="rtl",Y),q.loadingBar.style.position="fixed",q.loadingBar.style.zIndex="15000"),document.body.appendChild(q.loadingBar));
hfq(q,yAl(q),iHc(q));q.iframe?q.channel||ZqF(q,q.iframe,w,r):(wVy(q),r(Error("dk")))});
this.consentPromise.finally(function(){q.consentPromise=void 0});
return this.consentPromise};
var ZqF=function(q,Z,w,r){var Y,C;_.V(function(d){switch(d.nextAddress){case 1:ko(q,3);Y=!1;setTimeout(function(){if(!Y){wVy(q);rDy(q);YK7();var O=jxF(7).setErrorMessage("Timeout connecting to iframe");w(FGC(ME6(new T5,kgu(O)),cAV(O)))}},Dry(q,$ku(q)));
if(!q.prewarmPromise){d.jumpTo(2);break}_.d9(d,3);return _.W(d,q.prewarmPromise,5);case 5:_.QL(d,2);break;case 3:_.o3(d),C=jxF(4).setErrorMessage("Error while prewarming."),w(FGC(ME6(new T5,kgu(C)),cAV(C)));case 2:q.prewarmChannel&&q.prewarmChannel.send(pZ6(NZc(new T5,q.consentPrimitiveRequest))),q.channel=_.pc({destination:q.JSC$17086_win,iframe:Z,origin:epy(q),channelName:"cpw",onEstablished:function(){Y=!0;wVy(q);q.isLatencyMeasurementExperiment||(q.JSC$17086_previousBodyOverflow=document.body.style.overflow,
q.JSC$17086_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,q.JSC$17086_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",q.enableDialogA11yFix&&window.addEventListener("blur",q.focusChangeListener));var O=q.iframe;O.style.bottom="0";O.style.position="fixed";O.style.right="0";O.style.border="none";O.style.left="0";O.style.top=
"0";O.style.zIndex="5000";O.style.pointerEvents="";O.style.visibility="";q.initialLoadingStrategy===2||q.initialLoadingStrategy===3?ko(q,4):ko(q,6);var H;(H=q.onConsentPrimitiveShownCallback)==null||H.call(q)},
onMessage:function(O){O=GgZ(O.data);switch(_.Jz(O,1)){case 1:rDy(q);var H=OP8(_.Xy(O,_.Uz,7));H&&(q.initialLoadingStrategy!==2&&q.initialLoadingStrategy!==3||ko(q,6,H),ko(q,5,H));if(H=OP8(_.Xy(O,_.Uz,6)))ko(q,7,H),ko(q,8);var L,S;((L=_.Xy(O,Ur6,2))==null?void 0:_.uY(L,GD))!==0&&((S=_.Xy(O,sxb,8))==null?void 0:_.uY(S,I1c))!==0||r(Error("ek"));w(O);break;case 2:YK7()}}}),_.ub(d)}})},g5D=function(q,Z,w){q.prewarmChannel=_.pc({destination:q.JSC$17086_win,
iframe:Z,origin:epy(q),channelName:"pwcp",onEstablished:function(){ko(q,2);w()}})},epy=function(q){var Z=_.ug(q.src).toString();
return Z&&Z.indexOf("://")<0&&Z.indexOf("//")!==0?q.origin:_.S62(Z)},yAl=function(q,Z){Z=Z===void 0?!1:Z;
var w,r=new Map([["origin",q.origin],["hl",(w=C8u(q))!=null?w:null]]);Z&&r.set("pw","1");Z=_.P([["cpr",q.consentPrimitiveRequest.serialize()]]);for(w=Z.next();!w.done;w=Z.next()){var Y=_.P(w.value);w=Y.next().value;Y=Y.next().value;r.set(w,Y)}q.isDarkTheme()&&r.set("color_scheme","dark");return _.ZM(q.src,r)},wVy=function(q){q.isLatencyMeasurementExperiment||q.loadingBar&&document.body.removeChild(q.loadingBar)};
U4.prototype.getSrc=function(){var q=_.MR(this.origin),Z;var w=(Z=_.Xy(this.consentPrimitiveRequest,BZD,3))==null?void 0:_.DM(Z,1);Z="consent.google.com";w=w?"/u/"+encodeURIComponent(w.toString()):"";(q==null?0:q.endsWith("youtube.com"))?Z="consent.youtube.com":(q=q==null?void 0:q.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(Z="consent.google."+((q[1]?"co.":"")+encodeURIComponent(q[2])));return _.o9("https://"+Z+"/signedin"+w+"/landing")};
var hfq=function(q,Z,w){q.iframe||(q.iframe=document.createElement("iframe"),q.iframe.style.width="100%",q.iframe.style.height="100%",w!==112496729&&(q.iframe.style.colorScheme="auto"),q.isLatencyMeasurementExperiment&&(q.iframe.style.display="none"),_.F5(q.iframe,Z),q.iframe.setAttribute("jsname","C5o1O"),P86(q.iframe),document.body.appendChild(q.iframe))},P86=function(q){q.style.bottom="-200vh";
q.style.position="fixed";q.style.right="-200vw";q.style.border="";q.style.left="";q.style.top="";q.style.zIndex="";q.style.pointerEvents="none";q.style.visibility="hidden"},rDy=function(q){q.iframe&&(q.isLatencyMeasurementExperiment||(q.JSC$17086_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=q.JSC$17086_previousHtmlOverscroll),q.JSC$17086_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=q.JSC$17086_previousBodyOverscroll),q.JSC$17086_previousBodyOverflow!==
void 0&&(document.body.style.overflow=q.JSC$17086_previousBodyOverflow),q.enableDialogA11yFix&&dkl(q,!1)),P86(q.iframe))};
U4.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(dkl(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var dkl=function(q,Z){var w,r,Y=(w=q.iframe)==null?void 0:(r=w.parentElement)==null?void 0:r.children;if(Y)for(w=0;w<Y.length;w++)r=Y[w],r!==q.iframe&&(Z?(r.hasAttribute("aria-hidden")&&_.DF([_.ib(mr7)],r,"data-old-aria-hidden",r.getAttribute("aria-hidden")),_.DF([_.ib(AAF)],r,"aria-hidden","true")):(r.removeAttribute("aria-hidden"),r.hasAttribute("data-old-aria-hidden")&&(_.DF([_.ib(f1F)],r,"aria-hidden",r.getAttribute("data-old-aria-hidden")),r.removeAttribute("data-old-aria-hidden"))))},ko=function(q,
Z,w){var r;
(r=q.latencyCallback)==null||r.call(q,{latencyType:Z,timestampEpochMillis:w!=null?w:Date.now()})};var V1V=function(q,Z,w){U4.call(this,Z,w===void 0?!1:w);this.consentPrimitiveRequest=q;q=C8u(this);if(!(0,_.rR2)(q))throw Error("H``"+String(q));this.src=this.getSrc();var r;this.initialLoadingStrategy=(r=_.Xy(this.consentPrimitiveRequest,mQ,4))==null?void 0:_.Jz(r,4)},Ku;
_.z(V1V,U4);var M3C=function(q){var Z=_.b("enable_primitive_dialog_aria_hide_siblings");q={request:q,enableDialogA11yFix:Z===void 0?!1:Z};Ku||(Ku=new V1V(q.request,q.isLatencyMeasurementExperiment||_.Jz(q.request,1)===2,q.enableDialogA11yFix));return Ku},YK7=function(){Ku&&(Ku.channel=void 0,Ku.prewarmChannel=void 0,Ku.iframe&&(document.body.contains(Ku.iframe)&&document.body.removeChild(Ku.iframe),Ku.iframe=void 0),Ku=void 0)},C8u=function(q){var Z;
return(Z=_.Xy(q.consentPrimitiveRequest,mQ,4))==null?void 0:_.bY(Z,1)},qK6=function(q,Z){if(!_.Og(q.consentPrimitiveRequest,xo,5)){var w=q.consentPrimitiveRequest,r=new xo;
_.CA(w,5,r)}var Y;if((Y=_.Xy(q.consentPrimitiveRequest,xo,5))==null||_.vI(Y,8)==null){var C;(C=_.Xy(q.consentPrimitiveRequest,xo,5))!=null&&_.OU(C,8,Z)}},iHc=function(q){var Z;
return(Z=_.Xy(q.consentPrimitiveRequest,xo,5))==null?void 0:_.DM(Z,1)};
V1V.prototype.isDarkTheme=function(){var q;return((q=_.Xy(this.consentPrimitiveRequest,mQ,4))==null?void 0:_.Jz(q,2))===2};
var $ku=function(q){var Z;return((Z=_.Xy(q.consentPrimitiveRequest,mQ,4))==null?void 0:_.DM(Z,5))||void 0},GMl=function(q){return U4.prototype.showPrimitive.call(q).then(function(Z){return _.Xy(Z,Ur6,2)})};for(var s4={},OqC=(s4[64]="ma",s4[73]="ogb",s4[89]="cr",s4[21]="test",s4[0]="unkn",s4[137]="con",s4[155]="hl",s4[78]="yt",s4[171]="lp",s4[172]="ap",s4[177]="amo",s4[178]="pqe",s4[74]="gg",s4[1]="gm",s4[140]="am",s4),HqD=_.P(Object.keys(OqC)),WMy=HqD.next();!WMy.done;WMy=HqD.next());var oC8=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(oC8,_.XD);var ufZ=[0,[2,3,4],_.NY,Kw6,GZC,_.ZX7];var LM6=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(LM6,_.XD);var SKq=_.qK(LM6,[0,l7b,_.cI,_.NY,_.cI,_.NY,ufZ]);var vCF=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(vCF,_.XD);vCF.prototype.getCommand=function(){return _.Jz(this,1)};
var jal=function(){var q=new vCF;return _.QM(q,1,0)};var t1V=_.Yv([0,l7b,_.cI,[0,_.NY,_.cI,-1]]);var RpV=new _.Y2("s"),bqV=new _.Y2("t"),JDV=new _.Y2("u"),zpc=new _.Y2("v"),BFl=function(q,Z,w){_.$2.call(this,RpV);this.mediaKey=q;this.photoUrl=Z;this.photoSource=w};
_.z(BFl,_.$2);var aKV=function(){_.$2.call(this,bqV)};
_.z(aKV,_.$2);var nC6=function(q){q=q===void 0?!1:q;_.$2.call(this,JDV);this.isError=q};
_.z(nC6,_.$2);var QaC=function(){_.$2.call(this,zpc)};
_.z(QaC,_.$2);var ECC=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,kBD=function(q){if(typeof q=="string"){if(q.charAt(0)==".")return xkl(q.substr(1));if(q.charAt(0)=="["){var Z=ECC.exec(q);q=q.indexOf("=")==-1?void 0:Z[3];return TFb(Z[1],q)}return Ukb(q)}return q},xkl=function(q){return function(Z){return Z.getAttribute&&_.x2(Z,q)}},TFb=function(q,Z){return function(w){return Z!==void 0?w.getAttribute&&w.getAttribute(q)==Z:w.hasAttribute&&w.hasAttribute(q)}},Ukb=function(q){q=q.toUpperCase();
return function(Z){return(Z=Z.tagName)&&Z.toUpperCase()==q}},KM6=function(){return!0};var IP=function(q,Z){this.JSC$17114_key_=q;this.JSC$17114_value_=Z},ci=function(q){throw Error("fk`"+q.JSC$17114_key_);
},sac=function(q,Z){return new TypeError("gk`"+Z+"`"+q.JSC$17114_key_+"`"+q.JSC$17114_value_+"`"+typeof q.JSC$17114_value_)};
IP.prototype.string=function(q){if(arguments.length==0)var Z=IK8(this);else{var w;Z=(w=cD6(this))!=null?w:q}return Z};
var IK8=function(q){var Z=cD6(q);Z===null&&ci(q);return Z},cD6=function(q){var Z=q.JSC$17114_value_;
if(Z==null)return null;if(typeof Z==="string")return Z;throw sac(q,"string");};
IP.prototype.bool=function(q){if(arguments.length==0){var Z=this.optionalBool();Z===null&&ci(this)}else{var w;Z=(w=this.optionalBool())!=null?w:q}return Z};
IP.prototype.optionalBool=function(){var q=this.JSC$17114_value_;if(q==null)return null;if(typeof q==="boolean")return q;if(typeof q==="string"){q=q.toLowerCase();if(q==="true"||q==="1")return!0;if(q==="false"||q==="0")return!1}throw sac(this,"boolean");};
IP.prototype.number=function(q){if(arguments.length==0){var Z=M1u(this);Z===null&&ci(this)}else{var w;Z=(w=M1u(this))!=null?w:q}return Z};
var M1u=function(q){var Z=q.JSC$17114_value_;if(Z==null)return null;if(typeof Z==="number")return Z;if(typeof Z==="string"){var w=Number(Z);if(!isNaN(w)&&(w!==0||Z.trim().length!==0))return w}throw sac(q,"number");};
IP.prototype.toString=function(){return IK8(this)};
IP.prototype.array=function(q){if(arguments.length==0){var Z=FM6(this);Z===null&&ci(this);return Z}Z=FM6(this);return Z==null?q:Z};
var FM6=function(q){var Z=q.JSC$17114_value_;if(Z==null)return null;Array.isArray(Z)||(typeof Z!=="string"?Z=[Z]:(Z=Z.trim(),Z=Z==""?[]:Z.split(",").map(function(w){return w.trim()})));
return NFV(q,Z)},NFV=function(q,Z){var w=q.JSC$17114_key_+"[";
return Array.from(Z,function(r,Y){return new IP(w+Y+"]",r)})};
IP.prototype.object=function(q){var Z=this.JSC$17114_value_;if(Z==null)return q===void 0&&ci(this),q;if(typeof Z==="object"&&Z.constructor===Object){q={};var w=this.JSC$17114_key_+".",r;for(r in Z)q[r]=new IP(w+r,Z[r]);return q}throw sac(this,"object");};var MD=function(q){this.list_=lKb(q)},lKb=function(q){if(q instanceof MD)q=q.list_;
else if(q[0]instanceof MD){for(var Z=new Set,w=0;w<q.length;w++)for(var r=_.P(q[w].list_),Y=r.next();!Y.done;Y=r.next())Z.add(Y.value);q=Z}return[].concat(_.Ju(q))};
_.e=MD.prototype;_.e.each=function(q,Z,w){((w===void 0?0:w)?jQu:_.Uq)(this.list_,q,Z);return this};
_.e.size=function(){return this.list_.length};
_.e.isEmpty=function(){return this.list_.length===0};
_.e.get=function(q){return this.list_[q]||null};
_.e.el=function(){return this.list_[0]||null};
_.e.map=function(q,Z){return _.bM(this.list_,q,Z)};
_.e.equals=function(q){return this===q||_.iN(this.list_,q.list_)};
_.e.first=function(){return this.list_.length==0?null:new Fk(this.list_[0])};
_.e.find=function(q){var Z=[];this.each(function(w){w=w.querySelectorAll(String(q));for(var r=0;r<w.length;r++)Z.push(w[r])});
return new MD(Z)};
_.e.parent=function(){var q=[];this.each(function(Z){(Z=Z.parentElement||null)&&!_.Mj(q,Z)&&q.push(Z)});
return new MD(q)};
_.e.children=function(){var q=[];this.each(function(Z){Z=_.nI(Z);for(var w=0;w<Z.length;w++)q.push(Z[w])});
return new MD(q)};
_.e.filter=function(q){q=_.qY(this.list_,kBD(q));return new MD(q)};
_.e.closest=function(q){var Z=[],w=kBD(q),r=function(Y){return _.I$(Y)&&w(Y)};
this.each(function(Y){(Y=_.E3(Y,r,!0))&&!_.Mj(Z,Y)&&Z.push(Y)});
return new MD(Z)};
_.e.next=function(q){return GBu(this,_.SXp,q)};
_.e.prev=function(q){return GBu(this,AHF,q)};
var GBu=function(q,Z,w){var r=[];var Y=w?kBD(w):KM6;q.each(function(C){(C=Z(C))&&Y(C)&&r.push(C)});
return new MD(r)};
MD.prototype.setClass=function(q){return this.each(function(Z){_.ET(Z,q)})};
var pVZ=function(q,Z){return q.each(function(w){_.nn(w,Z)})},XVl=function(q,Z){return q.each(function(w){_.BJ(w,Z)})};
MD.prototype.toggleClass=function(q,Z){return Z===!0?pVZ(this,q):Z===!1?XVl(this,q):this.each(function(w){_.x2(w,q)?_.BJ(w,q):_.nn(w,q)})};
MD.prototype.setText=function(q){return this.each(function(Z){_.QW(Z,q)})};
var mkD=function(q){q.each(function(Z){Z.removeAttribute("aria-hidden")})};
MD.prototype.getStyle=function(q){if(this.list_.length>0){var Z=this.list_[0],w=Z.style[_.Cp(q)];return typeof w!=="undefined"?w:Z.style[_.kaK(Z,q)]||""}};
MD.prototype.getData=function(q){if(this.list_.length===0)return new IP(q,null);var Z=BaS(this.list_[0],q);return new IP(q,Z)};
MD.prototype.focus=function(q){try{q?this.el().focus(q):this.el().focus()}catch(Z){}return this};
MD.prototype.click=function(){var q=_.nC(this.el());if(q.createEvent){var Z=q.createEvent("MouseEvents");Z.initMouseEvent("click",!0,!0,q.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(Z)}else q=q.createEventObject(),q.clientX=0,q.clientY=0,q.screenX=0,q.screenY=0,q.altKey=!1,q.ctrlKey=!1,q.shiftKey=!1,q.button=0,this.el().fireEvent("onclick",q)};
var ND=function(q,Z,w,r){function Y(O,H,L){var S=H;H&&H.parentNode&&(S=H.cloneNode(!0));O(S,L)}
r=r===void 0?!1:r;if(q.list_.length==1){var C=q.list_[0],d=function(O){return Z(O,C)};
w instanceof MD?w.each(d,void 0,r):Array.isArray(w)?(r?jQu:_.Uq)(w,d):d(w);return q}return q.each(function(O){w instanceof MD?w.each(function(H){Y(Z,H,O)}):Array.isArray(w)?_.Uq(w,function(H){Y(Z,H,O)}):Y(Z,w,O)})};
_.e=MD.prototype;_.e.append=function(q){return ND(this,function(Z,w){Z&&w.appendChild(Z)},q)};
_.e.appendTo=function(q){(new MD([q])).append(this);return this};
_.e.remove=function(){return ND(this,function(q,Z){_.Vb(Z)},null)};
_.e.empty=function(){return ND(this,function(q,Z){_.J$(Z)},null)};
_.e.after=function(q,Z){return ND(this,function(w,r){w&&_.ar(w,r)},q,!(Z===void 0||Z))};
_.e.before=function(q){return ND(this,function(Z,w){Z&&_.Br(Z,w)},q)};
_.e.replaceWith=function(q){return ND(this,function(Z,w){Z&&_.ov9(Z,w)},q)};
_.e.toggle=function(q){return this.each(function(Z){_.sJ(Z,q)})};
_.e.show=function(){return this.toggle(!0)};
_.e.hide=function(){return this.toggle(!1)};
_.e.trigger=function(q,Z,w,r){return ADq(this,q,Z,w,r)};
var ADq=function(q,Z,w,r,Y){return q.each(function(C){_.w5I(_.nC(C)).triggerWizEventInternal(C,Z,w,r,Y)})},Fk=function(q,Z){q instanceof MD&&(Z=q.list_,q=null);
this.list_=lKb(q!=null?[q]:Z)};
_.yU(Fk,MD);_.e=Fk.prototype;_.e.children=function(){return new MD(Array.prototype.slice.call(_.nI(this.list_[0])))};
_.e.each=function(q,Z){q.call(Z,this.list_[0],0);return this};
_.e.size=function(){return 1};
_.e.el=function(){return this.list_[0]};
_.e.first=function(){return this};var l1=function(q,Z){Z=Z===void 0?window:Z;this.hostId=q;this.JSC$17125_win=Z;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$17125_previousHtmlOverscroll=this.JSC$17125_previousBodyOverscroll=this.JSC$17125_previousBodyOverflow="";this.eventTarget=new _.V8;this.JSC$17125_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
hpF=function(q){var Z=fKS(fKS(fKS(new Dky(78),"po"),"hppp"),"hhc");
Z.authUser=Number(_.zj("SESSION_INDEX","0"));Z.colorScheme=q;return Z};
l1.prototype.getOrigin=function(){return this.origin?this.origin:_.GM(_.lQ(_.NC(new _.M$,this.JSC$17125_win.location.protocol),this.JSC$17125_win.location.hostname),this.JSC$17125_win.location.port).toString()};
l1.prototype.getTargetOrigin=function(){return _.GM(_.lQ(_.NC(new _.M$,this.scheme),this.domain),this.port)};
l1.prototype.preloadIframe=function(q){var Z=this;if(this.iframeLoadPromise===void 0){var w=document.createElement("iframe");this.iframe=w;v_l(w,q);this.iframeLoadPromise=new Promise(function(r,Y){var C=!1,d=function(O){O.stopPropagation();w.removeEventListener("error",d);w.removeEventListener("securitypolicyviolation",d);Y(Error("hk",{cause:O}))};
w.addEventListener("error",d);w.addEventListener("securitypolicyviolation",d);setTimeout(function(){C||Y(Error("ik"))},3E4);
yDl(Z,w,function(){C=!0;w.removeEventListener("error",d);w.removeEventListener("securitypolicyviolation",d);r()})});
iql(this);q=this.getTargetOrigin().toString();w.setAttribute("allow","camera "+q+"; display-capture "+q);this.parentElement.appendChild(w)}return this.iframeLoadPromise};
var ZKy=function(q,Z){var w,r;return _.V(function(Y){if(Y.nextAddress==1)return w=Ve6(getComputedStyle(q.parentElement).direction==="rtl"),q.parentElement.appendChild(w),document.activeElement instanceof HTMLElement&&(q.elementToFocusAfterClose=document.activeElement),_.d9(Y,2),_.W(Y,q.preloadIframe(Z),4);if(Y.nextAddress!=2){q.parentElement.removeChild(w);q.JSC$17125_previousBodyOverflow=q.parentElement.style.overflow;q.JSC$17125_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
q.JSC$17125_previousBodyOverscroll=q.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";q.parentElement.style.overscrollBehavior="contain";q.parentElement.style.overflow="hidden";var C=q.iframe;C.style.bottom="0";C.style.border="none";C.style.height="100%";C.style.left="0";C.style.position=q.iframePosition;C.style.right="0";C.style.top="0";C.style.width="100%";C.style.zIndex="2202";C.setAttribute("aria-hidden","false");C.setAttribute("aria-modal","true");
q.opened=!0;gCc(q);return _.QL(Y,0)}r=_.o3(Y);q.parentElement.removeChild(w);uaV(q.isDarkTheme());qYF(q,!1);throw Error("jk",{cause:r});})},qYF=function(q,Z){Z=Z===void 0?!0:Z;
q.iframe!==void 0&&(wEZ(q),document.documentElement.style.overscrollBehavior=q.JSC$17125_previousHtmlOverscroll,q.parentElement.style.overscrollBehavior=q.JSC$17125_previousBodyOverscroll,q.parentElement.style.overflow=q.JSC$17125_previousBodyOverflow,q.elementToFocusAfterClose!==void 0&&(q.elementToFocusAfterClose.focus(),q.elementToFocusAfterClose=void 0),Z?iql(q):(q.parentElement.removeChild(q.iframe),q.iframe=void 0,q.iframeLoadPromise=void 0,q.mainChannel=void 0),q.opened=!1)},wEZ=function(q){q.backgroundElementsAriaHiddenIsNull&&
(mkD(q.backgroundElementsAriaHiddenIsNull),q.backgroundElementsAriaHiddenIsNull=void 0);
q.backgroundElementsAriaHiddenIsFalse&&(q.backgroundElementsAriaHiddenIsFalse.each(function(Z){Z.setAttribute("aria-hidden","false")}),q.backgroundElementsAriaHiddenIsFalse=void 0);
q.backgroundElementsWithoutInert&&(q.backgroundElementsWithoutInert.each(function(Z){Z.removeAttribute("inert")}),q.backgroundElementsWithoutInert=void 0)},gCc=function(q){q.backgroundElementsAriaHiddenIsNull=(new Fk(q.iframe.parentElement)).children().filter(function(Z){return Z.getAttribute("aria-hidden")===null&&Z!==q.iframe});
q.backgroundElementsAriaHiddenIsNull.each(function(Z){Z.setAttribute("aria-hidden","true")});
q.backgroundElementsAriaHiddenIsFalse=(new Fk(q.iframe.parentElement)).children().filter(function(Z){return Z.getAttribute("aria-hidden")==="false"&&Z!==q.iframe});
q.backgroundElementsAriaHiddenIsFalse.each(function(Z){Z.setAttribute("aria-hidden","true")});
q.backgroundElementsWithoutInert=(new Fk(q.iframe.parentElement)).children().filter(function(Z){return!Z.hasAttribute("inert")&&Z!==q.iframe});
q.backgroundElementsWithoutInert.each(function(Z){Z.setAttribute("inert","true")})},iql=function(q){q=q.iframe;
q.style.bottom="-1000px";q.style.position="fixed";q.style.right="-1000px";q.style.border="";q.style.height="";q.style.left="";q.style.top="";q.style.width="";q.style.zIndex="";q.setAttribute("aria-hidden","true");q.setAttribute("aria-modal","false")};
l1.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var Dky=function(q,Z){l1.call(this,OqC[q],Z);this.options=[];this.style=""};
_.z(Dky,l1);var rgV=function(q){q.style="youtube";return q},YYb=function(q,Z){q.eventTarget.listen(JDV,Z);
return q},$nu=function(q,Z){q.eventTarget.listen(RpV,Z);
return q},fKS=function(q,Z){q.options.push(Z);
return q},eFV=function(q){var Z=[q.getOrigin()];
q.ancestorOrigins&&Z.push.apply(Z,_.Ju(q.ancestorOrigins));var w=new _.M$(q.JSC$17125_win.location.href),r=q.startUrl?q.startUrl:q.options.includes("po")?"profile-picture/art":"profile-picture";Z=AN(_.pN(q.getTargetOrigin(),r),"origin",Z);q.startUrl&&_.Kh(Z,"startPath",q.startUrl);q.authUser>0&&_.Kh(Z,"authuser",q.authUser);q.pageId!==void 0&&_.Kh(Z,"pageId",q.pageId);_.Kh(Z,"hostId",q.hostId);q.jsMode!==void 0&&_.Kh(Z,"jsmode",q.jsMode);q.options.length>0&&_.Kh(Z,"opts",q.options.join(","));try{for(var Y=
_.P(["utm_source","utm_medium","utm_campaign","utm_content"]),C=Y.next();!C.done;C=Y.next()){var d=C.value;_.ki(w,d)&&_.Kh(Z,d,_.ki(w,d))}var O,H=(O=q.hl)!=null?O:_.ki(w,"hl");H!==void 0&&_.Kh(Z,"hl",H)}catch(L){if(!(L instanceof URIError))throw L;}q.colorScheme&&_.Kh(Z,"theme",q.colorScheme);q.style&&_.Kh(Z,"style",q.style);return Z},C3b=function(q,Z){q.mainChannel=_.pc({destination:q.JSC$17125_win,
iframe:Z,origin:q.getTargetOrigin().toString(),channelName:"ow",onMessage:function(w){w=SKq(w.data);if(Z===q.iframe)switch(_.Jz(w,1)){case 1:q.eventTarget.dispatchEvent(new nC6);qYF(q);break;case 2:q.eventTarget.dispatchEvent(new BFl(_.Ep(_.bY(w,4)),_.Ep(_.bY(w,2)),_.Ep(_.Jz(w,5)),_.Ep(_.Xy(w,oC8,6))));break;case 0:var r;q.eventTarget.dispatchEvent(new aKV(_.Ep(_.bY(w,2)),(r=_.Jz(w,3))!=null?r:0));break;case 3:q.eventTarget.dispatchEvent(new nC6(!0));qYF(q,!1);break;case 4:q.eventTarget.dispatchEvent(new QaC)}}})},
yDl=function(q,Z,w){_.pc({destination:q.JSC$17125_win,
iframe:Z,origin:_.GM(_.lQ(_.NC(new _.M$,q.scheme),q.domain),q.port).toString(),channelName:"owi",onMessage:function(r){Z===q.iframe&&(w!==void 0&&w(),C3b(q,Z),q.opened&&q.mainChannel.send(t1V(jal())),r.reply(),yDl(q,Z))}})};
Dky.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?l1.prototype.preloadIframe.call(this,eFV(this).toString()):this.iframeLoadPromise};
Dky.prototype.openPicker=function(q){var Z=this;return _.V(function(w){if(w.nextAddress==1)return Z.startUrl=q?q:Z.options.includes("po")?"profile-picture/art":"profile-picture",_.W(w,ZKy(Z,eFV(Z).toString()),2);if(Z.mainChannel){var r=Z.mainChannel,Y=r.send;var C=jal();C=_.uM(C,2,Z.startUrl);Y.call(r,t1V(C))}_.ub(w)})};var P3l=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z(P3l,_.XD);_.e=P3l.prototype;_.e.getSize=function(){return ZW(this,1)};
_.e.setSize=function(q){return _.nc(this,1,q)};
_.e.getWidth=function(){return ZW(this,12)};
_.e.getHeight=function(){return ZW(this,13)};
_.e.setCenterCrop=function(q){return _.ZA(this,20,q)};
_.e.getHtml=function(){return _.jF(this,4)};
_.e.getToken=function(){return _.PG(this,24)};
_.e.setToken=function(q){return _.uM(this,24,q)};
_.e.getBackgroundColor=function(){return ZW(this,87)};
_.e.hasBackgroundColor=function(){return _.gW(_.VM(this,87))!=null};
_.e.getStoryboardLevel=function(){return ZW(this,109)};var G5=function(q){this.JSC$17133_value_=void 0;this.childNodes_={};if(q){var Z=_.Qze(q);q=_.Fi(q);for(var w=0;w<Z.length;w++)this.set(Z[w],q[w])}};
G5.prototype.set=function(q,Z){dnF(this,q,Z,!1)};
G5.prototype.add=function(q,Z){dnF(this,q,Z,!0)};
var dnF=function(q,Z,w,r){for(var Y=0;Y<Z.length;Y++){var C=Z.charAt(Y);q.childNodes_[C]||(q.childNodes_[C]=new G5);q=q.childNodes_[C]}if(r&&q.JSC$17133_value_!==void 0)throw Error("kk`"+Z);q.JSC$17133_value_=w},V_8=function(q,Z){for(var w=0;w<Z.length;w++)if(q=q.childNodes_[Z.charAt(w)],!q)return;
return q};
G5.prototype.get=function(q){return(q=V_8(this,q))?q.JSC$17133_value_:void 0};
G5.prototype.getValues=function(){var q=[];OKl(this,q);return q};
var OKl=function(q,Z){q.JSC$17133_value_!==void 0&&Z.push(q.JSC$17133_value_);for(var w in q.childNodes_)OKl(q.childNodes_[w],Z)};
G5.prototype.getKeys=function(q){var Z=[];if(q){for(var w=this,r=0;r<q.length;r++){var Y=q.charAt(r);if(!w.childNodes_[Y])return[];w=w.childNodes_[Y]}HKc(w,q,Z)}else HKc(this,"",Z);return Z};
var HKc=function(q,Z,w){q.JSC$17133_value_!==void 0&&w.push(Z);for(var r in q.childNodes_)HKc(q.childNodes_[r],Z+r,w)};
_.e=G5.prototype;_.e.containsKey=function(q){return this.get(q)!==void 0};
_.e.containsValue=function(q){if(this.JSC$17133_value_===q)return!0;for(var Z in this.childNodes_)if(this.childNodes_[Z].containsValue(q))return!0;return!1};
_.e.clear=function(){this.childNodes_={};this.JSC$17133_value_=void 0};
_.e.remove=function(q){for(var Z=this,w=[],r=0;r<q.length;r++){var Y=q.charAt(r);if(!Z.childNodes_[Y])throw Error("lk`"+q);w.push([Z,Y]);Z=Z.childNodes_[Y]}q=Z.JSC$17133_value_;for(delete Z.JSC$17133_value_;w.length>0;)if(r=w.pop(),Z=r[0],r=r[1],Z.childNodes_[r].isEmpty())delete Z.childNodes_[r];else break;return q};
_.e.clone=function(){return new G5(this)};
_.e.getCount=function(){return h1C(this.getValues())};
_.e.isEmpty=function(){return this.JSC$17133_value_===void 0&&_.R4.isEmpty(this.childNodes_)};var JQl=function(){if(!Wa6){var q=Wa6=new G5,Z;for(Z in obC)q.add(Z,obC[Z])}},Wa6,pu=function(q,Z){this.types=q;
this.setters=Z},obC={a:new pu([3,
0],[function(q,Z){_.ZA(q,21,Z)},
function(q,Z){_.nc(q,56,Z)}]),
al:new pu([3],[function(q,Z){_.ZA(q,74,Z)}]),
b:new pu([3,0],[function(q,Z){_.ZA(q,23,Z)},
function(q,Z){_.nc(q,38,Z)}]),
ba:new pu([0],[function(q,Z){_.nc(q,85,Z)}]),
bc:new pu([0],[function(q,Z){_.nc(q,87,Z)}]),
br:new pu([0],[function(q,Z){_.nc(q,86,Z)}]),
c:new pu([3,0],[function(q,Z){_.ZA(q,2,Z)},
function(q,Z){_.nc(q,39,Z)}]),
cc:new pu([3],[function(q,Z){_.ZA(q,51,Z)}]),
ci:new pu([3],[function(q,Z){_.ZA(q,32,Z)}]),
ckm:new pu([3],[function(q,Z){_.ZA(q,104,Z)}]),
cp:new pu([0],[function(q,Z){_.nc(q,92,Z)}]),
cr:new pu([3],[function(q,Z){_.ZA(q,108,Z)}]),
cv:new pu([0],[function(q,Z){_.nc(q,94,Z)}]),
d:new pu([3],[function(q,Z){_.ZA(q,3,Z)}]),
dc:new pu([5],[function(q,Z){_.uM(q,99,Z)}]),
df:new pu([3],[function(q,Z){_.ZA(q,80,Z)}]),
dv:new pu([3],[function(q,Z){_.ZA(q,90,Z)}]),
e:new pu([0],[function(q,Z){_.nc(q,15,Z)}]),
em:new pu([0],[function(q,Z){_.nc(q,107,Z)}]),
f:new pu([4],[function(q,Z){_.uM(q,16,Z)}]),
fg:new pu([3],[function(q,Z){_.ZA(q,34,Z)}]),
fh:new pu([3],[function(q,Z){_.ZA(q,30,Z)}]),
fm:new pu([3],[function(q,Z){_.ZA(q,84,Z)}]),
fo:new pu([2],[function(q,Z){_.Am(q,79,_.N7(Z))}]),
ft:new pu([3],[function(q,Z){_.ZA(q,50,Z)}]),
fv:new pu([3],[function(q,Z){_.ZA(q,31,Z)}]),
g:new pu([3],[function(q,Z){_.ZA(q,14,Z)}]),
gce:new pu([4],[function(q,Z){_.uM(q,112,Z)}]),
gd:new pu([3],[function(q,Z){_.ZA(q,83,Z)}]),
gm:new pu([3],[function(q,Z){_.ZA(q,105,Z)}]),
h:new pu([3,0],[function(q,Z){_.ZA(q,4,Z)},
function(q,Z){_.nc(q,13,Z)}]),
i:new pu([3],[function(q,Z){_.ZA(q,22,Z)}]),
ic:new pu([0],[function(q,Z){_.nc(q,71,Z)}]),
id:new pu([3],[function(q,Z){_.ZA(q,70,Z)}]),
il:new pu([3],[function(q,Z){_.ZA(q,96,Z)}]),
ip:new pu([3],[function(q,Z){_.ZA(q,54,Z)}]),
iv:new pu([0],[function(q,Z){_.OU(q,75,Z)}]),
j:new pu([1],[function(q,Z){Z=Z==null?Z:bn8(Z);_.Am(q,29,Z)}]),
k:new pu([3,0],[function(q,Z){_.ZA(q,17,Z)},
function(q,Z){_.nc(q,42,Z)}]),
l:new pu([0],[function(q,Z){_.nc(q,44,Z)}]),
lf:new pu([3],[function(q,Z){_.ZA(q,65,Z)}]),
lo:new pu([3],[function(q,Z){_.ZA(q,97,Z)}]),
m:new pu([0],[function(q,Z){_.nc(q,63,Z)}]),
md:new pu([3],[function(q,Z){_.ZA(q,91,Z)}]),
mm:new pu([4],[function(q,Z){_.uM(q,81,Z)}]),
mo:new pu([3],[function(q,Z){_.ZA(q,73,Z)}]),
mv:new pu([3],[function(q,Z){_.ZA(q,66,Z)}]),
n:new pu([3],[function(q,Z){q.setCenterCrop(Z)}]),
nc:new pu([3],[function(q,Z){_.ZA(q,55,Z)}]),
nd:new pu([3],[function(q,Z){_.ZA(q,53,Z)}]),
ng:new pu([3],[function(q,Z){_.ZA(q,95,Z)}]),
ngm:new pu([3],[function(q,Z){_.ZA(q,106,Z)}]),
no:new pu([3],[function(q,Z){_.ZA(q,37,Z)}]),
ns:new pu([3],[function(q,Z){_.ZA(q,40,Z)}]),
nt0:new pu([4],[function(q,Z){_.uM(q,36,Z)}]),
ntm:new pu([3],[function(q,Z){_.ZA(q,114,Z)}]),
nu:new pu([3],[function(q,Z){_.ZA(q,46,Z)}]),
nw:new pu([3],[function(q,Z){_.ZA(q,48,Z)}]),
o:new pu([1,3],[function(q,Z){Z=Z==null?Z:bn8(Z);_.Am(q,7,Z)},
function(q,Z){_.ZA(q,27,Z)}]),
p:new pu([3,0],[function(q,Z){_.ZA(q,19,Z)},
function(q,Z){_.nc(q,43,Z)}]),
pa:new pu([3],[function(q,Z){_.ZA(q,61,Z)}]),
pc:new pu([0],[function(q,Z){_.nc(q,88,Z)}]),
pd:new pu([3],[function(q,Z){_.ZA(q,60,Z)}]),
pf:new pu([3],[function(q,Z){_.ZA(q,67,Z)}]),
pg:new pu([3],[function(q,Z){_.ZA(q,72,Z)}]),
pi:new pu([2],[function(q,Z){_.Am(q,76,_.N7(Z))}]),
pp:new pu([3],[function(q,Z){_.ZA(q,52,Z)}]),
pt:new pu([4],[function(q,Z){_.uM(q,111,Z)}]),
q:new pu([4],[function(q,Z){_.uM(q,28,Z)}]),
r:new pu([3,0],[function(q,Z){_.ZA(q,6,Z)},
function(q,Z){_.nc(q,26,Z)}]),
ra:new pu([3],[function(q,Z){_.ZA(q,103,Z)}]),
rf:new pu([3],[function(q,Z){_.ZA(q,100,Z)}]),
rg:new pu([3],[function(q,Z){_.ZA(q,59,Z)}]),
rh:new pu([3],[function(q,Z){_.ZA(q,49,Z)}]),
rj:new pu([3],[function(q,Z){_.ZA(q,57,Z)}]),
ro:new pu([2],[function(q,Z){_.Am(q,78,_.N7(Z))}]),
rp:new pu([3],[function(q,Z){_.ZA(q,58,Z)}]),
rw:new pu([3],[function(q,Z){_.ZA(q,35,Z)}]),
rwa:new pu([3],[function(q,Z){_.ZA(q,64,Z)}]),
rwu:new pu([3],[function(q,Z){_.ZA(q,41,Z)}]),
s:new pu([3,0],[function(q,Z){_.ZA(q,33,Z)},
function(q,Z){q.setSize(Z)}]),
sb:new pu([0],[function(q,Z){_.nc(q,110,Z)}]),
sc:new pu([0],[function(q,Z){_.nc(q,89,Z)}]),
sg:new pu([3],[function(q,Z){_.ZA(q,82,Z)}]),
sl:new pu([0],[function(q,Z){_.nc(q,109,Z)}]),
sm:new pu([3],[function(q,Z){_.ZA(q,93,Z)}]),
t:new pu([4],[function(q,Z){q.setToken(Z)}]),
tm:new pu([3],[function(q,Z){_.ZA(q,113,Z)}]),
u:new pu([3],[function(q,Z){_.ZA(q,18,Z)}]),
ut:new pu([3],[function(q,Z){_.ZA(q,45,Z)}]),
v:new pu([0],[function(q,Z){_.nc(q,62,Z)}]),
vb:new pu([0],[function(q,Z){_.OU(q,68,Z)}]),
vf:new pu([4],[function(q,Z){_.uM(q,102,Z)}]),
vl:new pu([0],[function(q,Z){_.OU(q,69,Z)}]),
vm:new pu([3],[function(q,Z){_.ZA(q,98,Z)}]),
w:new pu([0],[function(q,Z){_.nc(q,12,Z)}]),
x:new pu([0],[function(q,Z){_.nc(q,9,Z)}]),
y:new pu([0],[function(q,Z){_.nc(q,10,Z)}]),
ya:new pu([2],[function(q,Z){_.Am(q,77,_.N7(Z))}]),
z:new pu([0],[function(q,Z){_.nc(q,11,Z)}])};
JQl.prototype.parse=function(q){var Z=new P3l,w=new P3l;if(q=="")q=!0;else{q=q.split("-");for(var r=!0,Y=0;Y<q.length;Y++){var C=q[Y];if(C.length==0)r=!1;else{var d=C,O=!1;var H=d;var L=d.charAt(0);L!=L.toLowerCase()&&(O=!0,H=d.charAt(0).toLowerCase()+d.substring(1));var S=Wa6;for(L=1;L<=H.length;++L){var v=S,R=H.substring(0,L);if(R.length==0?v.isEmpty():!V_8(v,R))break}H=L==1?null:(H=S.get(H.substring(0,L-1)))?{option:d.substring(0,L-1),value:d.substring(L-1),signed:O,attributes:H}:null;if(H){d=
[];O=[];L=!1;for(S=0;S<H.attributes.types.length;S++){v=H.attributes.types[S];var B=H.value;R=Y;if(H.signed&&v==1)for(var n=B.length;n<12&&R<q.length-1;)B+="-"+q[R+1],n=B.length,++R;else if(v==2)for(;R<q.length-1&&q[R+1].match(/^[\d\.]/);)B+="-"+q[R+1],++R;n=H.attributes.setters[S];B=up8(this,v)(H.option,B,Z,w,n);if(B===null){L=!0;Y=R;break}else d.push(v),O.push(B)}if(!L)for(H=0;H<O.length;H++)S=d[H],B=O[H],LaC(this,S)(C,B);r=r&&L}else r=!1}}q=r}return new SY6(Z,w,q)};
var Xk=function(q,Z,w,r,Y,C){Y(w,Z);q=q.charAt(0);C=C(q==q.toUpperCase());Y(r,C)};
_.e=JQl.prototype;_.e.parseAndSetIntOption_=function(q,Z,w,r,Y){if(Z=="")return 0;isFinite(Z)&&(Z=String(Z));Z=typeof Z==="string"?/^\s*-?0x/i.test(Z)?parseInt(Z,16):parseInt(Z,10):NaN;if(isNaN(Z))return 1;Xk(q,Z,w,r,Y,Number);return null};
_.e.logIntParseError_=function(){};
_.e.parseAndSetFloatOption_=function(q,Z,w,r,Y){if(Z=="")return 0;var C=Number(Z);Z=C==0&&_.W6(Z)?NaN:C;if(isNaN(Z))return 1;Xk(q,Z,w,r,Y,Number);return null};
_.e.logFloatParseError_=function(){};
_.e.parseAndSetBoolOption_=function(q,Z,w,r,Y){if(Z!="")return 2;Xk(q,!0,w,r,Y,Boolean);return null};
_.e.logBoolParseError_=function(){};
_.e.parseAndSetStringOption_=function(q,Z,w,r,Y){if(Z=="")return 0;Xk(q,Z,w,r,Y,function(C){return C?"1":""});
return null};
_.e.logStringParseError_=function(){};
_.e.parseAndSetUint64Base64Option_=function(q,Z,w,r,Y){if(Z=="")return 0;Xk(q,Z,w,r,Y,function(C){return C?1:0});
return null};
var up8=function(q,Z){switch(Z){case 0:return(0,_.Lh)(q.parseAndSetIntOption_,q);case 2:return(0,_.Lh)(q.parseAndSetFloatOption_,q);case 3:return(0,_.Lh)(q.parseAndSetBoolOption_,q);case 4:return(0,_.Lh)(q.parseAndSetStringOption_,q);case 1:return(0,_.Lh)(q.parseAndSetUint64Base64Option_,q);default:return function(){}}},LaC=function(q,Z){switch(Z){case 0:return(0,_.Lh)(q.logIntParseError_,q);
case 2:return(0,_.Lh)(q.logFloatParseError_,q);case 3:return(0,_.Lh)(q.logBoolParseError_,q);case 4:case 1:return(0,_.Lh)(q.logStringParseError_,q);default:return function(){}}},SY6=function(q,Z,w){this.valueProto_=q;
this.signatureFlagProto_=Z;this.JSC$17145_valid_=w};
SY6.prototype.isValid=function(){return this.JSC$17145_valid_};var jgD=function(q){this.JSC$17146_parser_=null;this.JSC$17146_components_=[];this.JSC$17146_parsedOptions_=null;vbc(this,q)},jL7=function(q){q.JSC$17146_parser_==null&&(q.JSC$17146_parser_=new JQl);
return q.JSC$17146_parser_},vbc=function(q,Z){q.JSC$17146_parsedOptions_=Z?typeof Z==="string"?jL7(q).parse(Z):Z:jL7(q).parse("")},m0=function(q,Z){return q==Z?!1:!0};
_.e=jgD.prototype;_.e.JSC$17148_setCrop=function(q){q=q||void 0;var Z=this.JSC$17146_parsedOptions_,w=Z.valueProto_;m0(q,_.jF(w,2),_.jF(Z.signatureFlagProto_,2))&&_.ZA(w,2,q);return this};
_.e.JSC$17148_setCircleCrop=function(q){q=q||void 0;var Z=this.JSC$17146_parsedOptions_,w=Z.valueProto_;m0(q,qD(w,51),qD(Z.signatureFlagProto_,51))&&_.ZA(w,51,q);return this};
_.e.JSC$17148_setImageCrop=function(q){q=q||void 0;var Z=this.JSC$17146_parsedOptions_,w=Z.valueProto_;m0(q,qD(w,32),qD(Z.signatureFlagProto_,32))&&_.ZA(w,32,q);return this};
_.e.JSC$17148_setHeight=function(q){var Z=this.JSC$17146_parsedOptions_,w=Z.valueProto_;m0(q,w.getHeight(),Z.signatureFlagProto_.getHeight())&&_.nc(w,13,q);return this};
_.e.setCenterCrop=function(q){q=q||void 0;var Z=this.JSC$17146_parsedOptions_,w=Z.valueProto_;m0(q,_.jF(w,20),_.jF(Z.signatureFlagProto_,20))&&w.setCenterCrop(q);return this};
_.e.JSC$17148_setSmartCrop=function(q){q=q||void 0;var Z=this.JSC$17146_parsedOptions_,w=Z.valueProto_;m0(q,_.jF(w,19),_.jF(Z.signatureFlagProto_,19))&&_.ZA(w,19,q);return this};
_.e.JSC$17148_setPad=function(q){q=q||void 0;var Z=this.JSC$17146_parsedOptions_,w=Z.valueProto_;m0(q,qD(w,60),qD(Z.signatureFlagProto_,60))&&_.ZA(w,60,q);return this};
_.e.JSC$17148_setSmartCropUseFace=function(q){q=q||void 0;var Z=this.JSC$17146_parsedOptions_,w=Z.valueProto_;m0(q,_.jF(w,67),_.jF(Z.signatureFlagProto_,67))&&_.ZA(w,67,q);return this};
_.e.JSC$17148_setSmartCropNoClip=function(q){q=q||void 0;var Z=this.JSC$17146_parsedOptions_,w=Z.valueProto_;m0(q,_.jF(w,52),_.jF(Z.signatureFlagProto_,52))&&_.ZA(w,52,q);return this};
_.e.setSize=function(q){var Z=this.JSC$17146_parsedOptions_,w=Z.valueProto_;m0(q,w.getSize(),Z.signatureFlagProto_.getSize())&&w.setSize(q);return this};
_.e.setToken=function(q){q=q||void 0;var Z=this.JSC$17146_parsedOptions_,w=Z.valueProto_;m0(q,w.getToken(),Z.signatureFlagProto_.getToken())&&w.setToken(q);return this};
_.e.JSC$17148_setWidth=function(q){var Z=this.JSC$17146_parsedOptions_,w=Z.valueProto_;m0(q,w.getWidth(),Z.signatureFlagProto_.getWidth())&&_.nc(w,12,q);return this};
_.e.clearOptions=function(){vbc(this,"");return this};
_.e.build=function(){this.JSC$17146_components_.length=0;var q=this.JSC$17146_parsedOptions_,Z=q.valueProto_;q=q.signatureFlagProto_;At(this,"s",Z.getSize(),q.getSize());At(this,"w",Z.getWidth(),q.getWidth());fu(this,"c",_.jF(Z,2),_.jF(q,2));fu(this,"d",_.jF(Z,3),_.jF(q,3));At(this,"h",Z.getHeight(),q.getHeight());fu(this,"s",qD(Z,33),qD(q,33));fu(this,"h",Z.getHtml(),q.getHtml());fu(this,"p",_.jF(Z,19),_.jF(q,19));fu(this,"pp",_.jF(Z,52),_.jF(q,52));fu(this,"pf",_.jF(Z,67),_.jF(q,67));fu(this,"n",
_.jF(Z,20),_.jF(q,20));At(this,"r",ZW(Z,26),ZW(q,26));fu(this,"r",_.jF(Z,6),_.jF(q,6));fu(this,"o",qD(Z,27),qD(q,27));var w=UL8(Z,7);DW(this,"o",w,UL8(q,7));w=UL8(Z,29);DW(this,"j",w,UL8(q,29));At(this,"x",ZW(Z,9),ZW(q,9));At(this,"y",ZW(Z,10),ZW(q,10));At(this,"z",ZW(Z,11),ZW(q,11));fu(this,"g",_.jF(Z,14),_.jF(q,14));At(this,"e",ZW(Z,15),ZW(q,15));DW(this,"f",_.PG(Z,16),_.PG(q,16));fu(this,"k",qD(Z,17),qD(q,17));fu(this,"u",qD(Z,18),!0);fu(this,"ut",qD(Z,45),!0);fu(this,"i",qD(Z,22),!0);fu(this,
"a",qD(Z,21),qD(q,21));fu(this,"b",_.jF(Z,23),_.jF(q,23));At(this,"b",ZW(Z,38),ZW(q,38));At(this,"c",ZW(Z,39),ZW(q,39),16,8);DW(this,"q",_.PG(Z,28),_.PG(q,28));fu(this,"fh",qD(Z,30),qD(q,30));fu(this,"fv",qD(Z,31),qD(q,31));fu(this,"fg",_.jF(Z,34),_.jF(q,34));fu(this,"ci",qD(Z,32),qD(q,32));DW(this,"t",Z.getToken(),q.getToken());DW(this,"nt0",_.PG(Z,36),_.PG(q,36));fu(this,"rw",_.jF(Z,35),_.jF(q,35));fu(this,"rwu",_.jF(Z,41),_.jF(q,41));fu(this,"rwa",_.jF(Z,64),_.jF(q,64));fu(this,"nw",_.jF(Z,48),
_.jF(q,48));fu(this,"rh",_.jF(Z,49),_.jF(q,49));fu(this,"no",_.jF(Z,37),_.jF(q,37));fu(this,"ns",qD(Z,40),qD(q,40));At(this,"k",ZW(Z,42),ZW(q,42));At(this,"p",ZW(Z,43),ZW(q,43));At(this,"l",ZW(Z,44),ZW(q,44));At(this,"v",ZW(Z,62),ZW(q,62));fu(this,"nu",qD(Z,46),qD(q,46));fu(this,"ft",qD(Z,50),qD(q,50));fu(this,"cc",qD(Z,51),qD(q,51));fu(this,"nd",qD(Z,53),qD(q,53));fu(this,"ip",qD(Z,54),qD(q,54));fu(this,"nc",qD(Z,55),qD(q,55));At(this,"a",ZW(Z,56),ZW(q,56));fu(this,"rj",qD(Z,57),qD(q,57));fu(this,
"rp",qD(Z,58),qD(q,58));fu(this,"rg",qD(Z,59),qD(q,59));fu(this,"pd",qD(Z,60),qD(q,60));fu(this,"pa",qD(Z,61),qD(q,61));At(this,"m",ZW(Z,63),ZW(q,63));At(this,"vb",_.vI(Z,68,_.dS),_.vI(q,68,_.dS));At(this,"vl",_.vI(Z,69,_.dS),_.vI(q,69,_.dS));fu(this,"lf",qD(Z,65),qD(q,65));fu(this,"mv",qD(Z,66),qD(q,66));fu(this,"id",qD(Z,70),qD(q,70));At(this,"ic",ZW(Z,71),!0);fu(this,"pg",_.jF(Z,72),_.jF(q,72));fu(this,"mo",qD(Z,73),qD(q,73));fu(this,"al",qD(Z,74),qD(q,74));At(this,"iv",_.vI(Z,75,_.dS),_.vI(q,
75,_.dS));At(this,"pi",wY(Z,76),wY(q,76));At(this,"ya",wY(Z,77),wY(q,77));At(this,"ro",wY(Z,78),wY(q,78));At(this,"fo",wY(Z,79),wY(q,79));fu(this,"df",qD(Z,80),qD(q,80));DW(this,"mm",_.PG(Z,81),_.PG(q,81));fu(this,"sg",qD(Z,82),qD(q,82));fu(this,"gd",qD(Z,83),qD(q,83));fu(this,"fm",qD(Z,84),qD(q,84));At(this,"ba",ZW(Z,85),ZW(q,85));At(this,"br",ZW(Z,86),ZW(q,86));At(this,"bc",Z.getBackgroundColor(),q.getBackgroundColor(),16,8);At(this,"pc",ZW(Z,88),ZW(q,88),16,8);At(this,"sc",ZW(Z,89),ZW(q,89),16,
8);fu(this,"dv",qD(Z,90),qD(q,90));fu(this,"md",qD(Z,91),qD(q,91));At(this,"cp",ZW(Z,92),ZW(q,92));fu(this,"sm",qD(Z,93),qD(q,93));At(this,"cv",ZW(Z,94),ZW(q,94));fu(this,"ng",qD(Z,95),qD(q,95));fu(this,"il",qD(Z,96),qD(q,96));fu(this,"lo",qD(Z,97),qD(q,97));fu(this,"vm",qD(Z,98),qD(q,98));DW(this,"dc",_.PG(Z,99),_.PG(q,99));fu(this,"rf",qD(Z,100),qD(q,100));DW(this,"vf",_.PG(Z,102),_.PG(q,102));fu(this,"ra",_.jF(Z,103),_.jF(q,103));fu(this,"ckm",qD(Z,104),qD(q,104));fu(this,"gm",qD(Z,105),qD(q,105));
fu(this,"ngm",qD(Z,106),qD(q,106));At(this,"em",ZW(Z,107),ZW(q,107));fu(this,"cr",qD(Z,108),qD(q,108));At(this,"sl",Z.getStoryboardLevel(),q.getStoryboardLevel());At(this,"sb",ZW(Z,110),ZW(q,110));DW(this,"pt",_.PG(Z,111),_.PG(q,111));DW(this,"gce",_.PG(Z,112),_.PG(q,112));fu(this,"tm",qD(Z,113),qD(q,113));fu(this,"ntm",qD(Z,114),qD(q,114));return this.JSC$17146_components_.join("-")};
var At=function(q,Z,w,r,Y,C){if(w!=null){var d=Y==void 0||Y!=10&&Y!=16?10:Y;w=w.toString(d);Y=new Nau;Y.append(d==16?"0x":"");d=Y.append;C==void 0?C="":(C-=w.length,C=C<=0?"":(0,_.U7v)("0",C));d.call(Y,C);Y.append(w);t_D(q,Z,Y.toString(),!!r)}},fu=function(q,Z,w,r){w&&t_D(q,Z,"",!!r)},DW=function(q,Z,w,r){w&&t_D(q,Z,w,!!r)},t_D=function(q,Z,w,r){r&&(Z=Z.charAt(0).toUpperCase()+Z.substring(1));
q.JSC$17146_components_.push(Z+w)};_.yU(Ox,jgD);_.e=Ox.prototype;_.e.JSC$17148_setCrop=function(q){q&&ht(this);return Ox.superClass_.JSC$17148_setCrop.call(this,q)};
_.e.JSC$17148_setHeight=function(q){q=q==null||q<0?void 0:q;q!=null&&this.setSize();return Ox.superClass_.JSC$17148_setHeight.call(this,q)};
_.e.JSC$17148_setImageCrop=function(q){q&&ht(this);return Ox.superClass_.JSC$17148_setImageCrop.call(this,q)};
_.e.JSC$17148_setCircleCrop=function(q){q&&ht(this);return Ox.superClass_.JSC$17148_setCircleCrop.call(this,q)};
_.e.setSize=function(q){_.DT(q)&&(q=Math.max(q.width,q.height));q=q==null||q<0?void 0:q;q!=null&&(this.JSC$17148_setWidth(),this.JSC$17148_setHeight());return Ox.superClass_.setSize.call(this,q)};
_.e.JSC$17148_setSmartCrop=function(q){q&&ht(this);return Ox.superClass_.JSC$17148_setSmartCrop.call(this,q)};
_.e.JSC$17148_setSmartCropNoClip=function(q){q&&ht(this);return Ox.superClass_.JSC$17148_setSmartCropNoClip.call(this,q)};
_.e.JSC$17148_setSmartCropUseFace=function(q){q&&ht(this);return Ox.superClass_.JSC$17148_setSmartCropUseFace.call(this,q)};
_.e.setCenterCrop=function(q){q&&ht(this);return Ox.superClass_.setCenterCrop.call(this,q)};
_.e.JSC$17148_setPad=function(q){q&&ht(this);return Ox.superClass_.JSC$17148_setPad.call(this,q)};
_.e.JSC$17148_setWidth=function(q){q=q==null||q<0?void 0:q;q!=null&&this.setSize();return Ox.superClass_.JSC$17148_setWidth.call(this,q)};
var RFZ=function(q){q.clearOptions();var Z=q.JSC$17146_parsedOptions_,w=Z.valueProto_;m0(!0,_.jF(w,3),_.jF(Z.signatureFlagProto_,3))&&_.ZA(w,3,!0);return q},ht=function(q){q.setCenterCrop();
q.JSC$17148_setCircleCrop();q.JSC$17148_setCrop();q.JSC$17148_setImageCrop();q.JSC$17148_setPad();q.JSC$17148_setSmartCrop();q.JSC$17148_setSmartCropNoClip();q.JSC$17148_setSmartCropUseFace()};
Ox.prototype.build=function(){var q=this.JSC$17146_parsedOptions_.valueProto_;qD(q,18)||qD(q,45)?q.getSize()||this.setSize(0):(q=this.JSC$17146_parsedOptions_.valueProto_,q.getSize()||q.getWidth()||q.getHeight()||(this.setSize(),this.JSC$17148_setHeight(),this.JSC$17148_setWidth(),ht(this)));return Ox.superClass_.build.call(this)};var bKy=/^[^\/]*\/\//,yC=function(q,Z){Z=Z===void 0?!1:Z;this.original_=q;this.originalPrefix_="";(q=this.original_.match(bKy))&&q[0]?(this.originalPrefix_=q[0],q=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):q="http://"+this.original_;this.uri_=_.UJ(q,!0);this.isFreeformUrl_=Z;this.JSC$17152_valid_=!0;this.obfuscated_=!1},Jg6=function(q,Z){q.JSC$17154_pathPrefix_=q.JSC$17154_pathPrefix_?q.JSC$17154_pathPrefix_+("/"+Z):Z},i1=function(q){if(q.JSC$17154_components_==
void 0){var Z=q.uri_.getPath().substring(1);
q.JSC$17154_pathPrefix_=null;if(q.isFreeformUrl_){q.JSC$17154_components_=[];if((Z.match(/=/g)||[]).length>1)return q.JSC$17152_valid_=!1,q.JSC$17154_components_;var w=Z.indexOf("=");w!=-1?(q.JSC$17154_components_.push(Z.substr(0,w)),q.JSC$17154_components_.push(Z.substr(w+1))):q.JSC$17154_components_.push(Z);return q.JSC$17154_components_}q.JSC$17154_components_=Z.split("/");Z=q.JSC$17154_components_.length;Z>2&&q.JSC$17154_components_[0]=="u"&&(Jg6(q,q.JSC$17154_components_[0]+"/"+q.JSC$17154_components_[1]),
q.JSC$17154_components_.shift(),q.JSC$17154_components_.shift(),Z-=2);if(Z==0||Z==4||Z>7)return q.JSC$17152_valid_=!1,q.JSC$17154_components_;if(Z==2)Jg6(q,q.JSC$17154_components_[0]);else if(q.JSC$17154_components_[0]=="image")Jg6(q,q.JSC$17154_components_[0]);else if(Z==7||Z==3)return q.JSC$17152_valid_=!1,q.JSC$17154_components_;if(Z<=3){q.obfuscated_=!0;Z==3&&(Jg6(q,q.JSC$17154_components_[1]),q.JSC$17154_components_.shift(),--Z);--Z;w=q.JSC$17154_components_[Z];var r=w.indexOf("=");r!=-1&&(q.JSC$17154_components_[Z]=
w.substr(0,r),q.JSC$17154_components_.push(w.substr(r+1)))}}return q.JSC$17154_components_};
yC.prototype.isValid=function(){i1(this);return this.JSC$17152_valid_};
yC.prototype.isObfuscated=function(){i1(this);return this.obfuscated_};
var zFc=function(q){i1(q);return q.isFreeformUrl_},gY=function(q){i1(q);
q.JSC$17154_pathPrefix_==void 0&&(q.JSC$17154_pathPrefix_=null);return q.JSC$17154_pathPrefix_},BjV=function(q){switch(i1(q).length){case 7:return!0;
case 6:return gY(q)==null;case 5:return!1;case 3:return!0;case 2:return gY(q)==null;case 1:return!1;default:return!1}},q6=function(q,Z){if(zFc(q))a:{switch(Z){case 7:Z=0;
break;case 4:if(!BjV(q)){q=null;break a}Z=1;break;default:q=null;break a}q=i1(q)[Z]}else if(q.isObfuscated())a:{var w=gY(q)!=null?1:0;switch(Z){case 6:Z=w;break;case 4:if(!BjV(q)){q=null;break a}Z=1+w;break;default:q=null;break a}q=i1(q)[Z]}else a:{w=gY(q)!=null?1:0;switch(Z){case 0:Z=w;break;case 1:Z=1+w;break;case 2:Z=2+w;break;case 3:Z=3+w;break;case 4:if(!BjV(q)){q=null;break a}Z=4+w;break;case 5:Z=BjV(q)?1:0;Z=4+w+Z;break;default:q=null;break a}q=i1(q)[Z]}return q};
yC.prototype.getOptions=function(){this.options_==void 0&&(this.options_=q6(this,4));return this.options_};var bPF=function(){};
bPF.prototype.parse=function(q,Z){return new tey(q,Z===void 0?!1:Z)};
var tey=function(q,Z){yC.call(this,q,Z===void 0?!1:Z)};
_.z(tey,yC);_.yU(H2,Ox);var Rky;H2.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
H2.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var q=H2.superClass_.build.call(this),Z=[];gY(this.parsedImageUrl_)!=null&&Z.push(gY(this.parsedImageUrl_));var w=zFc(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var r=this.parsedImageUrl_;r.obfuscatedData_==void 0&&(r.obfuscatedData_=q6(r,6));Z.push(r.obfuscatedData_+(q?"="+q:""))}else if(w){r=Z.push;var Y=this.parsedImageUrl_;Y.freeformUrlPath_===void 0&&(Y.freeformUrlPath_=q6(Y,
7));r.call(Z,Y.freeformUrlPath_);q&&Z.push(q)}else r=Z.push,Y=this.parsedImageUrl_,Y.obfuscatedGaiaId_==void 0&&(Y.obfuscatedGaiaId_=q6(Y,0)),r.call(Z,Y.obfuscatedGaiaId_),r=Z.push,Y=this.parsedImageUrl_,Y.photoId_==void 0&&(Y.photoId_=q6(Y,1)),r.call(Z,Y.photoId_),r=Z.push,Y=this.parsedImageUrl_,Y.imageVersion_==void 0&&(Y.imageVersion_=q6(Y,2)),r.call(Z,Y.imageVersion_),r=Z.push,Y=this.parsedImageUrl_,Y.signature_==void 0&&(Y.signature_=q6(Y,3)),r.call(Z,Y.signature_),q&&Z.push(q),q=Z.push,r=this.parsedImageUrl_,
r.filename_==void 0&&(r.filename_=q6(r,5)),q.call(Z,r.filename_);Z=w?Z.join("="):Z.join("/");Z=_.UJ(this.protocolPrefix_+this.JSC$17160_domain_+"/"+Z+(this.JSC$17160_query_?"?"+this.JSC$17160_query_:"")).toString();Z.startsWith("%3a//")&&(Z=Z.replace("%3a//","://"));return Z};var aZC=_.Fr(["viewBox"]),nbC=_.Fr(["width"]),QLc=_.Fr(["height"]),Eb8=_.Fr(["fill"]),xn7=_.Fr(["id"]),Tjq=_.Fr(["x"]),UnD=_.Fr(["y"]);zkV.prototype.getLength=function(){return this.parsedData.length};
zkV.prototype.write=function(q){for(var Z=0,w=this.parsedData.length;Z<w;Z++)q.put(this.parsedData[Z],8)};
var TnS=function(q,Z){var w=new zkV(Z);q.dataList.push(w);w=q.errorCorrectLevel;var r=1,Y=encodeURI(Z).toString().replace(/%[0-9a-fA-F]{2}/g,"a");Z=Y.length+(Y.length!=Z?3:0);Y=0;for(var C=ZO.length;Y<=C;Y++){var d=0;switch(w){case 1:d=ZO[Y][0];break;case 0:d=ZO[Y][1];break;case 3:d=ZO[Y][2];break;case 2:d=ZO[Y][3]}if(Z<=d)break;else r++}if(r>ZO.length)throw Error("uk");q.typeNumber=r;q.dataCache=null};
Bn8.prototype.isDark=function(q,Z){if(q<0||this.moduleCount<=q||Z<0||this.moduleCount<=Z)throw Error("mk`"+q+"`"+Z);return this.modules[q][Z]};
for(var Ulq=function(q,Z,w){q.moduleCount=q.typeNumber*4+17;q.modules=Array(q.moduleCount);for(var r=0;r<q.moduleCount;r++){q.modules[r]=Array(q.moduleCount);for(var Y=0;Y<q.moduleCount;Y++)q.modules[r][Y]=null}kGD(q,0,0);kGD(q,q.moduleCount-7,0);kGD(q,0,q.moduleCount-7);r=Ka8[q.typeNumber-1];for(Y=0;Y<r.length;Y++)for(var C=0;C<r.length;C++){var d=r[Y],O=r[C];if(q.modules[d][O]==null)for(var H=-2;H<=2;H++)for(var L=-2;L<=2;L++)q.modules[d+H][O+L]=H==-2||H==2||L==-2||L==2||H==0&&L==0?!0:!1}for(r=
8;r<q.moduleCount-8;r++)q.modules[r][6]==null&&(q.modules[r][6]=r%2==0);for(r=8;r<q.moduleCount-8;r++)q.modules[6][r]==null&&(q.modules[6][r]=r%2==0);r=q.errorCorrectLevel<<3|w;for(Y=r<<10;we(Y)-we(1335)>=0;)Y^=1335<<we(Y)-we(1335);r=(r<<10|Y)^21522;for(Y=0;Y<15;Y++)C=!Z&&(r>>Y&1)==1,Y<6?q.modules[Y][8]=C:Y<8?q.modules[Y+1][8]=C:q.modules[q.moduleCount-15+Y][8]=C;for(Y=0;Y<15;Y++)C=!Z&&(r>>Y&1)==1,Y<8?q.modules[8][q.moduleCount-Y-1]=C:Y<9?q.modules[8][15-Y-1+1]=C:q.modules[8][15-Y-1]=C;q.modules[q.moduleCount-
8][8]=!Z;if(q.typeNumber>=7){r=q.typeNumber;for(Y=r<<12;we(Y)-we(7973)>=0;)Y^=7973<<we(Y)-we(7973);r=r<<12|Y;for(Y=0;Y<18;Y++)C=!Z&&(r>>Y&1)==1,q.modules[Math.floor(Y/3)][Y%3+q.moduleCount-8-3]=C;for(Y=0;Y<18;Y++)C=!Z&&(r>>Y&1)==1,q.modules[Y%3+q.moduleCount-8-3][Math.floor(Y/3)]=C}if(q.dataCache==null){Y=q.typeNumber;C=q.dataList;Z=q.errorCorrectLevel;r=sLu(Y,Z);if(r==void 0)throw Error("tk`"+Y+"`"+Z);d=r.length/3;Z=[];for(O=0;O<d;O++){H=r[O*3];L=r[O*3+1];for(var S=r[O*3+2],v=0;v<H;v++)Z.push(new aQF(L,
S))}r=new n_7;for(d=0;d<C.length;d++)O=C[d],r.put(O.mode,4),r.put(O.getLength(),IZu(O.mode,Y)),O.write(r);for(d=Y=0;d<Z.length;d++)Y+=Z[d].dataCount;if(r.length>Y*8)throw Error("nk`"+r.length+"`"+Y*8);for(r.length+4<=Y*8&&r.put(0,4);r.length%8!=0;)cgD(r,!1);for(;!(r.length>=Y*8);){r.put(236,8);if(r.length>=Y*8)break;r.put(17,8)}C=Y=L=0;d=Array(Z.length);O=Array(Z.length);for(H=0;H<Z.length;H++){v=Z[H].dataCount;var R=Z[H].totalCount-v;Y=Math.max(Y,v);C=Math.max(C,R);d[H]=Array(v);for(S=0;S<d[H].length;S++)d[H][S]=
255&r.buffer[S+L];L+=v;S=R;v=new W2([1],0);for(R=0;R<S;R++)v=v.multiply(new W2([1,M_6(R)],0));S=v;v=(new W2(d[H],S.getLength()-1)).mod(S);O[H]=Array(S.getLength()-1);for(S=0;S<O[H].length;S++)R=S+v.getLength()-O[H].length,O[H][S]=R>=0?v.get(R):0}for(S=r=0;S<Z.length;S++)r+=Z[S].totalCount;r=Array(r);for(S=L=0;S<Y;S++)for(H=0;H<Z.length;H++)S<d[H].length&&(r[L++]=d[H][S]);for(S=0;S<C;S++)for(H=0;H<Z.length;H++)S<O[H].length&&(r[L++]=O[H][S]);q.dataCache=r}Z=q.dataCache;r=-1;Y=q.moduleCount-1;C=7;d=
0;for(O=q.moduleCount-1;O>0;O-=2)for(O==6&&O--;;){for(H=0;H<2;H++)q.modules[Y][O-H]==null&&(L=!1,d<Z.length&&(L=(Z[d]>>>C&1)==1),FaZ(w,Y,O-H)&&(L=!L),q.modules[Y][O-H]=L,C--,C==-1&&(d++,C=7));Y+=r;if(Y<0||q.moduleCount<=Y){Y-=r;r=-r;break}}},kGD=function(q,Z,w){for(var r=-1;r<=7;r++)if(!(Z+r<=-1||q.moduleCount<=Z+r))for(var Y=-1;Y<=7;Y++)w+Y<=-1||q.moduleCount<=w+Y||(q.modules[Z+r][w+Y]=0<=r&&r<=6&&(Y==0||Y==6)||0<=Y&&Y<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=Y&&Y<=4?!0:!1)},ksS=function(q){for(var Z=0,
w=0,r=0;r<8;r++){Ulq(q,!0,r);
var Y=q;for(var C=Y.moduleCount,d=0,O=0;O<C;O++)for(var H=0;H<C;H++){for(var L=0,S=Y.isDark(O,H),v=-1;v<=1;v++)if(!(O+v<0||C<=O+v))for(var R=-1;R<=1;R++)H+R<0||C<=H+R||(v!=0||R!=0)&&S==Y.isDark(O+v,H+R)&&L++;L>5&&(d+=3+L-5)}for(O=0;O<C-1;O++)for(H=0;H<C-1;H++)if(L=0,Y.isDark(O,H)&&L++,Y.isDark(O+1,H)&&L++,Y.isDark(O,H+1)&&L++,Y.isDark(O+1,H+1)&&L++,L==0||L==4)d+=3;for(O=0;O<C;O++)for(H=0;H<C-6;H++)Y.isDark(O,H)&&!Y.isDark(O,H+1)&&Y.isDark(O,H+2)&&Y.isDark(O,H+3)&&Y.isDark(O,H+4)&&!Y.isDark(O,H+5)&&
Y.isDark(O,H+6)&&(d+=40);for(H=0;H<C;H++)for(O=0;O<C-6;O++)Y.isDark(O,H)&&!Y.isDark(O+1,H)&&Y.isDark(O+2,H)&&Y.isDark(O+3,H)&&Y.isDark(O+4,H)&&!Y.isDark(O+5,H)&&Y.isDark(O+6,H)&&(d+=40);for(H=L=0;H<C;H++)for(O=0;O<C;O++)Y.isDark(O,H)&&L++;Y=d+=Math.abs(100*L/C/C-50)/5*10;if(r==0||Z>Y)Z=Y,w=r}return w},Ka8=[[],
[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]],we=function(q){for(var Z=0;q!=0;)Z++,q>>>=1;return Z},FaZ=function(q,Z,w){switch(q){case 0:return(Z+w)%2==0;
case 1:return Z%2==0;case 2:return w%3==0;case 3:return(Z+w)%3==0;case 4:return(Math.floor(Z/2)+Math.floor(w/3))%2==0;case 5:return Z*w%2+Z*w%3==0;case 6:return(Z*w%2+Z*w%3)%2==0;case 7:return(Z*w%3+(Z+w)%2)%2==0;default:throw Error("ok`"+q);}},IZu=function(q,Z){if(1<=Z&&Z<10)switch(q){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("pk`"+q);}else if(Z<27)switch(q){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("pk`"+q);}else if(Z<41)switch(q){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("pk`"+q);}else throw Error("qk`"+Z);},re=function(q){if(q<1)throw Error("rk`"+q);
return Njl[q]},M_6=function(q){for(;q<0;)q+=255;
for(;q>=256;)q-=255;return YP[q]},YP=Array(256),Njl=Array(256),lZc=0;lZc<8;lZc++)YP[lZc]=1<<lZc;
for(var $P=8;$P<256;$P++)YP[$P]=YP[$P-4]^YP[$P-5]^YP[$P-6]^YP[$P-8];for(var GGC=0;GGC<255;GGC++)Njl[YP[GGC]]=GGC;W2.prototype.get=function(q){return this.num[q]};
W2.prototype.getLength=function(){return this.num.length};
W2.prototype.multiply=function(q){for(var Z=Array(this.getLength()+q.getLength()-1),w=0;w<this.getLength();w++)for(var r=0;r<q.getLength();r++)Z[w+r]^=M_6(re(this.get(w))+re(q.get(r)));return new W2(Z,0)};
W2.prototype.mod=function(q){if(this.getLength()-q.getLength()<0)return this;for(var Z=re(this.get(0))-re(q.get(0)),w=Array(this.getLength()),r=0;r<this.getLength();r++)w[r]=this.get(r);for(r=0;r<q.getLength();r++)w[r]^=M_6(re(q.get(r))+Z);return(new W2(w,0)).mod(q)};
var pEq=[[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]],sLu=function(q,Z){switch(Z){case 1:return pEq[(q-1)*4];case 0:return pEq[(q-1)*4+1];case 3:return pEq[(q-1)*4+2];case 2:return pEq[(q-1)*4+3]}};
n_7.prototype.get=function(q){return(this.buffer[Math.floor(q/8)]>>>7-q%8&1)==1};
n_7.prototype.put=function(q,Z){for(var w=0;w<Z;w++)cgD(this,(q>>>Z-w-1&1)==1)};
var cgD=function(q,Z){var w=Math.floor(q.length/8);q.buffer.length<=w&&q.buffer.push(0);Z&&(q.buffer[w]|=128>>>q.length%8);q.length++},ZO=[[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]],xlZ=function(){var q=function(Z,w){this.JSC$17180__el=Z;this.JSC$17180__htOption=w};
q.prototype.draw=function(Z){function w(S,v){S=document.createElementNS("http://www.w3.org/2000/svg",S);for(var R in v)v.hasOwnProperty(R)&&(R==="href"?_.ga8(S,v[R]):_.DF([_.ib(aZC),_.ib(nbC),_.ib(QLc),_.ib(Eb8),_.ib(xn7),_.ib(Tjq),_.ib(UnD)],S,R,v[R]));return S}
var r=this.JSC$17180__htOption,Y=this.JSC$17180__el,C=Z.moduleCount;this.clear();var d=w("svg",{viewBox:"0 0 "+String(C)+" "+String(C),width:"100%",height:"100%",fill:r.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});Y.appendChild(d);d.appendChild(w("rect",{fill:r.colorLight,width:"100%",height:"100%"}));d.appendChild(w("rect",{fill:r.colorDark,width:"1",height:"1",id:"template"}));for(var O=0;O<C;O++)for(var H=0;H<C;H++)if(Z.isDark(O,H)){var L=w("use",{x:String(O),y:String(H),href:"#template"});
d.appendChild(L)}};
q.prototype.clear=function(){for(;this.JSC$17180__el.hasChildNodes();)this.JSC$17180__el.removeChild(this.JSC$17180__el.lastChild)};
return q}(),E_V=document.documentElement.tagName.toLowerCase()==="svg"?xlZ:typeof CanvasRenderingContext2D!="undefined"?function(){var q=function(Z,w){this._bIsPainted=!1;
QgS();this.JSC$17180__htOption=w;this._elCanvas=document.createElement("canvas");this._elCanvas.width=w.width;this._elCanvas.height=w.height;Z.appendChild(this._elCanvas);this.JSC$17180__el=Z;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$17180__el.appendChild(this._elImage);this._bSupportDataURI=null};
q.prototype._onMakeImage=function(){var Z=this._elCanvas.toDataURL("image/png");this._elImage.src=Z;this._elImage.style.display="block";this._elCanvas.style.display="none"};
q.prototype._safeSetDataURI=function(Z,w){var r=this;r._fFail=w;r._fSuccess=Z;r._bSupportDataURI===null?(Z=_.dX("IMG"),w=function(){r._bSupportDataURI=!1;r._fFail&&r._fFail.call(r)},Z.onabort=w,Z.onerror=w,Z.onload=function(){r._bSupportDataURI=!0;
r._fSuccess&&r._fSuccess.call(r)},Z.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):r._bSupportDataURI===!0&&r._fSuccess?r._fSuccess.call(r):r._bSupportDataURI===!1&&r._fFail&&r._fFail.call(r)};
q.prototype.draw=function(Z){var w=this._oContext,r=this.JSC$17180__htOption,Y=Z.moduleCount,C=r.width/Y,d=r.height/Y,O=Math.round(C),H=Math.round(d);this._elImage.style.display="none";this.clear();for(var L=0;L<Y;L++)for(var S=0;S<Y;S++){var v=Z.isDark(L,S),R=S*C,B=L*d;w.strokeStyle=v?r.colorDark:r.colorLight;w.lineWidth=1;w.fillStyle=v?r.colorDark:r.colorLight;w.fillRect(R,B,C,d);w.strokeRect(Math.floor(R)+.5,Math.floor(B)+.5,O,H);w.strokeRect(Math.ceil(R)-.5,Math.ceil(B)-.5,O,H)}this._bIsPainted=
!0};
q.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
q.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
q.prototype.round=function(Z){return Z?Math.floor(Z*1E3)/1E3:Z};
return q}():function(){var q=function(Z,w){this.JSC$17180__el=Z;
this.JSC$17180__htOption=w};
q.prototype.draw=function(Z){for(var w=this.JSC$17180__htOption,r=this.JSC$17180__el,Y=Z.moduleCount,C=Math.floor(w.width/Y),d=Math.floor(w.height/Y),O=['<table style="border:0;border-collapse:collapse;">'],H=0;H<Y;H++){O.push("<tr>");for(var L=0;L<Y;L++)O.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+C+"px;height:"+d+"px;background-color:"+(Z.isDark(H,L)?w.colorDark:w.colorLight)+';"></td>');O.push("</tr>")}O.push("</table>");Z=O.join("");Z=_.sq2(_.cc1,Z);_.fA(r,Z);
Z=r.childNodes[0];Y=(w.width-Z.offsetWidth)/2;C=(w.height-Z.offsetHeight)/2;Y>0&&C>0&&(Z.style.margin=C+"px "+Y+"px")};
q.prototype.clear=function(){this.JSC$17180__el.textContent=""};
return q}();
KBZ.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17183__android||this.JSC$17183__android>=3)&&this._oDrawing.makeImage()};
KBZ.prototype.clear=function(){this._oDrawing.clear()};
_.$1.QRCode=KBZ;var XEu={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var e$=function(){};
e$.prototype.stringify=function(q){return _.$1.JSON.stringify(q,void 0)};
e$.prototype.parse=function(q){return _.$1.JSON.parse(q,void 0)};var mnD=function(){_.$2.call(this,"z")};
_.yU(mnD,_.$2);var Agq=function(){_.$2.call(this,"y")};
_.yU(Agq,_.$2);var fZu=null,DnZ=function(){return fZu=fZu||new _.V8},hF7=function(q){_.$2.call(this,"serverreachability",q)};
_.yU(hF7,_.$2);var CU=function(q){var Z=DnZ();Z.dispatchEvent(new hF7(Z,q))},yg6=function(q){_.$2.call(this,"statevent",q)};
_.yU(yg6,_.$2);var Pb=function(q){var Z=DnZ();Z.dispatchEvent(new yg6(Z,q))},iKV=function(q,Z,w,r){_.$2.call(this,"timingevent",q);
this.size=Z;this.rtt=w;this.retries=r};
_.yU(iKV,_.$2);var gbV=function(q,Z,w){var r=DnZ();r.dispatchEvent(new iKV(r,q,Z,w))},de=function(q,Z){if(typeof q!=="function")throw Error("vk");
return _.$1.setTimeout(function(){q()},Z)};var Vr=function(){this.redactEnabled_=!0};
Vr.prototype.disableRedact=function(){this.redactEnabled_=!1};
var qtu=function(q,Z,w,r,Y,C){q.info(function(){if(q.redactEnabled_)if(C){var d="";for(var O=C.split("&"),H=0;H<O.length;H++){var L=O[H].split("=");if(L.length>1){var S=L[0];L=L[1];var v=S.split("_");d=v.length>=2&&v[1]=="type"?d+(S+"="+L+"&"):d+(S+"=redacted&")}}}else d=null;else d=C;return"XMLHTTP REQ ("+r+") [attempt "+Y+"]: "+Z+"\n"+w+"\n"+d})},ZZb=function(q,Z,w,r,Y,C,d){q.info(function(){return"XMLHTTP RESP ("+r+") [ attempt "+Y+"]: "+Z+"\n"+w+"\n"+C+" "+d})},Oj=function(q,Z,w,r){q.info(function(){return"XMLHTTP TEXT ("+
Z+"): "+wvD(q,w)+(r?" "+r:"")})},rCF=function(q,Z){q.info(function(){return"TIMEOUT: "+Z})};
Vr.prototype.debug=function(){};
Vr.prototype.info=function(){};
Vr.prototype.warning=function(){};
var wvD=function(q,Z){if(!q.redactEnabled_)return Z;if(!Z)return null;try{var w=JSON.parse(Z);if(w)for(var r=0;r<w.length;r++)if(Array.isArray(w[r])){var Y=w[r];if(!(Y.length<2)){var C=Y[1];if(Array.isArray(C)&&!(C.length<1)){var d=C[0];if(d!="noop"&&d!="stop"&&d!="close")for(var O=1;O<C.length;O++)C[O]=""}}}return(0,_.S3)(w)}catch(H){return q.debug("Exception parsing expected JS array - probably was not JS"),Z}};var Hb=function(q,Z,w,r,Y){this.JSC$17205_channel_=q;this.JSC$17205_channelDebug_=Z;this.sid_=w;this.JSC$17205_rid_=r;this.JSC$17205_retryId_=Y||1;this.JSC$17205_eventHandler_=new _.Al(this);this.timeout_=45E3;this.JSC$17205_extraHeaders_=null;this.JSC$17205_successful_=!1;this.JSC$17205_postData_=this.JSC$17205_requestUri_=this.JSC$17205_baseUri_=this.JSC$17205_type_=this.JSC$17205_requestStartTime_=this.JSC$17205_watchDogTimeoutTime_=this.JSC$17205_watchDogTimerId_=null;this.JSC$17205_pendingMessages_=
[];this.JSC$17205_xmlHttp_=null;this.JSC$17205_xmlHttpChunkStart_=0;this.JSC$17205_lastError_=this.JSC$17205_verb_=null;this.JSC$17205_lastStatusCode_=-1;this.JSC$17205_cancelled_=!1;this.JSC$17205_readyStateChangeThrottleMs_=0;this.JSC$17205_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new Ytb},Ytb=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},$Wl=function(q,Z){switch(q){case 0:return"Non-200 return code ("+Z+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},e6S={},CP6={};
Hb.prototype.setTimeout=function(q){this.timeout_=q};
var dWZ=function(q,Z,w){q.JSC$17205_type_=1;q.JSC$17205_baseUri_=_.hq(Z.clone());q.JSC$17205_postData_=w;q.decodeChunks_=!0;PPl(q,null)},PPl=function(q,Z){q.JSC$17205_requestStartTime_=Date.now();
VLZ(q);q.JSC$17205_requestUri_=q.JSC$17205_baseUri_.clone();AN(q.JSC$17205_requestUri_,"t",q.JSC$17205_retryId_);q.JSC$17205_xmlHttpChunkStart_=0;var w=q.JSC$17205_channel_.JSC$17224_supportsCrossDomainXhrs_;q.fetchResponseState_=new Ytb;q.JSC$17205_xmlHttp_=OZ7(q.JSC$17205_channel_,w?Z:null,!q.JSC$17205_postData_);q.JSC$17205_readyStateChangeThrottleMs_>0&&(q.JSC$17205_readyStateChangeThrottle_=new _.pV((0,_.Lh)(q.JSC$17209_xmlHttpHandler_,q,q.JSC$17205_xmlHttp_),q.JSC$17205_readyStateChangeThrottleMs_));
q.JSC$17205_eventHandler_.listen(q.JSC$17205_xmlHttp_,"readystatechange",q.JSC$17209_readyStateChangeHandler_);Z=q.JSC$17205_extraHeaders_?_.R4.clone(q.JSC$17205_extraHeaders_):{};q.JSC$17205_postData_?(q.JSC$17205_verb_||(q.JSC$17205_verb_="POST"),Z["Content-Type"]="application/x-www-form-urlencoded",q.JSC$17205_xmlHttp_.send(q.JSC$17205_requestUri_,q.JSC$17205_verb_,q.JSC$17205_postData_,Z)):(q.JSC$17205_verb_="GET",q.JSC$17205_xmlHttp_.send(q.JSC$17205_requestUri_,q.JSC$17205_verb_,null,Z));CU(1);
qtu(q.JSC$17205_channelDebug_,q.JSC$17205_verb_,q.JSC$17205_requestUri_,q.JSC$17205_rid_,q.JSC$17205_retryId_,q.JSC$17205_postData_)};
Hb.prototype.JSC$17209_readyStateChangeHandler_=function(q){q=q.target;var Z=this.JSC$17205_readyStateChangeThrottle_;Z&&_.j3(q)==3?(this.JSC$17205_channelDebug_.debug("Throttling readystatechange."),Z.fire()):this.JSC$17209_xmlHttpHandler_(q)};
Hb.prototype.JSC$17209_xmlHttpHandler_=function(q){try{q==this.JSC$17205_xmlHttp_?HZD(this):this.JSC$17205_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(Z){this.JSC$17205_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),WrD(this)}finally{}};
var HZD=function(q){var Z=_.j3(q.JSC$17205_xmlHttp_),w=q.JSC$17205_xmlHttp_.JSC$7669_lastErrorCode_,r=q.JSC$17205_xmlHttp_.getStatus();if(!(Z<3||Z==3&&!WrD(q))){q.JSC$17205_cancelled_||Z!=4||w==7||(w==8||r<=0?CU(3):CU(2));ok8(q);var Y=q.JSC$17205_xmlHttp_.getStatus();q.JSC$17205_lastStatusCode_=Y;w=uXu(q);WrD(q)||q.JSC$17205_channelDebug_.debug(function(){return"No response text for uri "+q.JSC$17205_requestUri_+" status "+Y});
q.JSC$17205_successful_=Y==200;ZZb(q.JSC$17205_channelDebug_,q.JSC$17205_verb_,q.JSC$17205_requestUri_,q.JSC$17205_rid_,q.JSC$17205_retryId_,Z,Y);if(q.JSC$17205_successful_){if(q.decodeInitialResponse_&&!q.initialResponseDecoded_)if(r=Lrl(q))Oj(q.JSC$17205_channelDebug_,q.JSC$17205_rid_,r,"Initial handshake response via X-HTTP-Initial-Response"),q.initialResponseDecoded_=!0,StZ(q,r);else{q.JSC$17205_successful_=!1;q.JSC$17205_lastError_=3;Pb(12);q.JSC$17205_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
q.JSC$17205_rid_+")");Wb(q);o8(q);return}q.decodeChunks_?vk6(q,Z,w):(Oj(q.JSC$17205_channelDebug_,q.JSC$17205_rid_,w,null),StZ(q,w));Z==4&&Wb(q);q.JSC$17205_successful_&&!q.JSC$17205_cancelled_&&(Z==4?j2y(q.JSC$17205_channel_,q):(q.JSC$17205_successful_=!1,VLZ(q)))}else enc(q.JSC$17205_xmlHttp_),Y==400&&w.indexOf("Unknown SID")>0?(q.JSC$17205_lastError_=3,Pb(12),q.JSC$17205_channelDebug_.warning("XMLHTTP Unknown SID ("+q.JSC$17205_rid_+")")):(q.JSC$17205_lastError_=0,Pb(13),q.JSC$17205_channelDebug_.warning("XMLHTTP Bad status "+
Y+" ("+q.JSC$17205_rid_+")")),Wb(q),o8(q)}},Lrl=function(q){return q.JSC$17205_xmlHttp_&&(q=Z_(q.JSC$17205_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.W6(q)?q:null},uXu=function(q){if(!tLC(q))return q.JSC$17205_xmlHttp_.getResponseText();
var Z=q.JSC$17205_xmlHttp_.getResponse();if(Z==="")return"";var w="",r=Z.length,Y=_.j3(q.JSC$17205_xmlHttp_)==4;if(!q.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return Wb(q),o8(q),"";q.fetchResponseState_.textDecoder=new _.$1.TextDecoder}for(var C=0;C<r;C++)q.fetchResponseState_.responseArrivedForFetch=!0,w+=q.fetchResponseState_.textDecoder.decode(Z[C],{stream:!(Y&&C==r-1)});Z.length=0;q.fetchResponseState_.responseBuffer+=w;q.JSC$17205_xmlHttpChunkStart_=0;return q.fetchResponseState_.responseBuffer},
WrD=function(q){return q.JSC$17205_xmlHttp_?q.fetchResponseState_.responseArrivedForFetch?!0:!(!q.JSC$17205_xmlHttp_.getResponseText()&&!q.JSC$17205_xmlHttp_.getResponse()):!1},tLC=function(q){return q.JSC$17205_xmlHttp_?q.JSC$17205_verb_=="GET"&&q.JSC$17205_type_!=2&&q.JSC$17205_channel_.usesFetchStreams_:!1},vk6=function(q,Z,w){for(var r=!0,Y;!q.JSC$17205_cancelled_&&q.JSC$17205_xmlHttpChunkStart_<w.length;)if(Y=R6C(q,w),Y==CP6){Z==4&&(q.JSC$17205_lastError_=4,Pb(14),r=!1);
Oj(q.JSC$17205_channelDebug_,q.JSC$17205_rid_,null,"[Incomplete Response]");break}else if(Y==e6S){q.JSC$17205_lastError_=4;Pb(15);Oj(q.JSC$17205_channelDebug_,q.JSC$17205_rid_,w,"[Invalid Chunk]");r=!1;break}else Oj(q.JSC$17205_channelDebug_,q.JSC$17205_rid_,Y,null),StZ(q,Y);tLC(q)&&q.JSC$17205_xmlHttpChunkStart_!=0&&(q.fetchResponseState_.responseBuffer=q.fetchResponseState_.responseBuffer.slice(q.JSC$17205_xmlHttpChunkStart_),q.JSC$17205_xmlHttpChunkStart_=0);Z!=4||w.length!=0||q.fetchResponseState_.responseArrivedForFetch||
(q.JSC$17205_lastError_=1,Pb(16),r=!1);q.JSC$17205_successful_=q.JSC$17205_successful_&&r;r?w.length>0&&!q.firstByteReceived_&&(q.firstByteReceived_=!0,Z=q.JSC$17205_channel_,Z.JSC$17224_backChannelRequest_==q&&Z.detectBufferingProxy_&&!Z.bpDetectionDone_&&(Z.JSC$17224_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+w.length),bZ6(Z),Z.bpDetectionDone_=!0,Pb(11))):(Oj(q.JSC$17205_channelDebug_,q.JSC$17205_rid_,w,"[Invalid Chunked Response]"),Wb(q),o8(q))},R6C=function(q,Z){var w=
q.JSC$17205_xmlHttpChunkStart_,r=Z.indexOf("\n",w);
if(r==-1)return CP6;w=Number(Z.substring(w,r));if(isNaN(w))return e6S;r+=1;if(r+w>Z.length)return CP6;Z=Z.slice(r,r+w);q.JSC$17205_xmlHttpChunkStart_=r+w;return Z};
Hb.prototype.cancel=function(){this.JSC$17205_cancelled_=!0;Wb(this)};
var VLZ=function(q){q.JSC$17205_watchDogTimeoutTime_=Date.now()+q.timeout_;JCD(q,q.timeout_)},JCD=function(q,Z){if(q.JSC$17205_watchDogTimerId_!=null)throw Error("wk");
q.JSC$17205_watchDogTimerId_=de((0,_.Lh)(q.JSC$17209_onWatchDogTimeout_,q),Z)},ok8=function(q){q.JSC$17205_watchDogTimerId_&&(_.$1.clearTimeout(q.JSC$17205_watchDogTimerId_),q.JSC$17205_watchDogTimerId_=null)};
Hb.prototype.JSC$17209_onWatchDogTimeout_=function(){this.JSC$17205_watchDogTimerId_=null;var q=Date.now();q-this.JSC$17205_watchDogTimeoutTime_>=0?(rCF(this.JSC$17205_channelDebug_,this.JSC$17205_requestUri_),this.JSC$17205_type_!=2&&(CU(3),Pb(17)),Wb(this),this.JSC$17205_lastError_=2,o8(this)):(this.JSC$17205_channelDebug_.warning("WatchDog timer called too early"),JCD(this,this.JSC$17205_watchDogTimeoutTime_-q))};
var o8=function(q){q.JSC$17205_channel_.state_==0||q.JSC$17205_cancelled_||j2y(q.JSC$17205_channel_,q)},Wb=function(q){ok8(q);
_.Xg(q.JSC$17205_readyStateChangeThrottle_);q.JSC$17205_readyStateChangeThrottle_=null;q.JSC$17205_eventHandler_.removeAll();if(q.JSC$17205_xmlHttp_){var Z=q.JSC$17205_xmlHttp_;q.JSC$17205_xmlHttp_=null;Z.abort();Z.dispose()}};
Hb.prototype.getLastError=function(){return this.JSC$17205_lastError_};
var StZ=function(q,Z){try{var w=q.JSC$17205_channel_;if(w.state_!=0&&(w.JSC$17224_backChannelRequest_==q||z66(w.forwardChannelRequestPool_,q)))if(!q.initialResponseDecoded_&&z66(w.forwardChannelRequestPool_,q)&&w.state_==3){try{var r=w.wireCodec_.JSC$17219_parser_.parse(Z)}catch(O){r=null}if(Array.isArray(r)&&r.length==3){Z=r;if(Z[0]==0)a:if(w.JSC$17224_channelDebug_.debug("Server claims our backchannel is missing."),w.JSC$17224_backChannelTimerId_)w.JSC$17224_channelDebug_.debug("But we are currently starting the request.");
else{if(w.JSC$17224_backChannelRequest_)if(w.JSC$17224_backChannelRequest_.JSC$17205_requestStartTime_+3E3<q.JSC$17205_requestStartTime_)BKq(w),ah8(w);else break a;else w.JSC$17224_channelDebug_.warning("We do not have a BackChannel established");nkb(w);Pb(18)}else{w.JSC$17224_lastPostResponseArrayId_=Z[1];var Y=w.JSC$17224_lastPostResponseArrayId_-w.JSC$17224_lastArrayId_;if(0<Y){var C=Z[2];w.JSC$17224_channelDebug_.debug(C+" bytes (in "+Y+" arrays) are outstanding on the BackChannel");C<37500&&
w.enableStreaming_&&w.JSC$17224_backChannelRetryCount_==0&&!w.JSC$17224_deadBackChannelTimerId_&&(w.JSC$17224_deadBackChannelTimerId_=de((0,_.Lh)(w.JSC$17226_onBackChannelDead_,w),6E3))}}if(Q2c(w.forwardChannelRequestPool_)<=1&&w.forwardChannelFlushedCallback_){try{w.forwardChannelFlushedCallback_()}catch(O){}w.forwardChannelFlushedCallback_=void 0}}else w.JSC$17224_channelDebug_.debug("Bad POST response data returned"),u0(w,11)}else if((q.initialResponseDecoded_||w.JSC$17224_backChannelRequest_==
q)&&BKq(w),!_.W6(Z)){var d=w.wireCodec_.JSC$17219_parser_.parse(Z);w.onInput_(d,q)}CU(4)}catch(O){}};var Ekl=function(q,Z){this.JSC$17212_mapId=q;this.map=Z;this.context=null};var xWS=function(q){this.maxPoolSizeConfigured_=q||10;_.$1.PerformanceNavigationTiming?(q=_.$1.performance.getEntriesByType("navigation"),q=q.length>0&&(q[0].nextHopProtocol=="hq"||q[0].nextHopProtocol=="h2")):q=!!(_.$1.chrome&&_.$1.chrome.loadTimes&&_.$1.chrome.loadTimes()&&_.$1.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17215_maxSize_=q?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17215_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17215_request_=null;this.JSC$17215_pendingMessages_=
[]},TK6=function(q){return q.JSC$17215_request_?!0:q.requestPool_?q.requestPool_.size>=q.JSC$17215_maxSize_:!1},Q2c=function(q){return q.JSC$17215_request_?1:q.requestPool_?q.requestPool_.size:0},z66=function(q,Z){return q.JSC$17215_request_?q.JSC$17215_request_==Z:q.requestPool_?q.requestPool_.has(Z):!1},UWD=function(q,Z){q.requestPool_?q.requestPool_.add(Z):q.JSC$17215_request_=Z},kUc=function(q,Z){q.JSC$17215_request_&&q.JSC$17215_request_==Z?q.JSC$17215_request_=null:q.requestPool_&&q.requestPool_.has(Z)&&
q.requestPool_.delete(Z)};
xWS.prototype.cancel=function(){this.JSC$17215_pendingMessages_=Kru(this);if(this.JSC$17215_request_)this.JSC$17215_request_.cancel(),this.JSC$17215_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var q=_.P(this.requestPool_.values()),Z=q.next();!Z.done;Z=q.next())Z.value.cancel();this.requestPool_.clear()}};
xWS.prototype.hasPendingRequest=function(){return this.JSC$17215_request_!=null||this.requestPool_!=null&&this.requestPool_.size!==0};
var Kru=function(q){if(q.JSC$17215_request_!=null)return q.JSC$17215_pendingMessages_.concat(q.JSC$17215_request_.JSC$17205_pendingMessages_);if(q.requestPool_!=null&&q.requestPool_.size!==0){var Z=q.JSC$17215_pendingMessages_;q=_.P(q.requestPool_.values());for(var w=q.next();!w.done;w=q.next())Z=Z.concat(w.value.JSC$17205_pendingMessages_);return Z}return _.Ge(q.JSC$17215_pendingMessages_)},s26=function(q,Z){q.JSC$17215_pendingMessages_=q.JSC$17215_pendingMessages_.concat(Z)};var IhF=function(q,Z){var w=new Vr;w.debug("TestLoadImage: loading "+q);if(_.$1.Image){var r=new Image;r.onload=_.Oh(LU,w,"TestLoadImage: loaded",!0,Z,r);r.onerror=_.Oh(LU,w,"TestLoadImage: error",!1,Z,r);r.onabort=_.Oh(LU,w,"TestLoadImage: abort",!1,Z,r);r.ontimeout=_.Oh(LU,w,"TestLoadImage: timeout",!1,Z,r);_.$1.setTimeout(function(){if(r.ontimeout)r.ontimeout()},1E4);
r.src=q}else Z(!1)},cCF=function(q,Z){var w=new Vr,r=new AbortController,Y=setTimeout(function(){r.abort();
LU(w,"TestPingServer: timeout",!1,Z)},1E4);
fetch(q,{signal:r.signal}).then(function(C){clearTimeout(Y);C.ok?LU(w,"TestPingServer: ok",!0,Z):LU(w,"TestPingServer: server error",!1,Z)}).catch(function(){clearTimeout(Y);
LU(w,"TestPingServer: error",!1,Z)})},LU=function(q,Z,w,r,Y){try{q.debug(Z),Y&&(Y.onload=null,Y.onerror=null,Y.onabort=null,Y.ontimeout=null),r(w)}catch(C){}};var MLu=function(){this.JSC$17219_parser_=new e$},FrZ=function(q,Z,w){var r=w||"";
try{_.ETD(q,function(Y,C){var d=Y;_.DT(Y)&&(d=(0,_.S3)(Y));Z.push(r+C+"="+encodeURIComponent(d))})}catch(Y){throw Z.push(r+"type="+encodeURIComponent("_badmap")),Y;
}};var S$=function(q,Z,w){return w&&w.internalChannelParams?w.internalChannelParams[q]||Z:Z},vb=function(q){this.serverVersion_=0;
this.JSC$17224_outgoingMaps_=[];this.JSC$17224_channelDebug_=new Vr;this.JSC$17224_hostPrefix_=this.JSC$17224_backChannelUri_=this.JSC$17224_forwardChannelUri_=this.JSC$17224_path_=this.JSC$17224_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17224_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17224_extraHeaders_=null;this.JSC$17224_nextMapId_=this.JSC$17224_nextRid_=0;this.JSC$17224_failFast_=S$("failFast",!1,q);this.enableStreaming_=this.JSC$17224_deadBackChannelTimerId_=
this.JSC$17224_backChannelTimerId_=this.JSC$17224_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17224_lastPostResponseArrayId_=this.JSC$17224_lastArrayId_=-1;this.JSC$17224_backChannelAttemptId_=this.JSC$17224_backChannelRetryCount_=this.JSC$17224_forwardChannelRetryCount_=0;this.JSC$17224_baseRetryDelayMs_=S$("baseRetryDelayMs",5E3,q);this.JSC$17224_retryDelaySeedMs_=S$("retryDelaySeedMs",1E4,q);this.JSC$17224_forwardChannelMaxRetries_=
S$("forwardChannelMaxRetries",2,q);this.JSC$17224_forwardChannelRequestTimeoutMs_=S$("forwardChannelRequestTimeoutMs",2E4,q);this.JSC$17224_xmlHttpFactory_=q&&q.xmlHttpFactory||void 0;this.networkTestUrl_=q&&q.networkTestUrl||void 0;this.usesFetchStreams_=q&&q.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17224_supportsCrossDomainXhrs_=q&&q.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new xWS(q&&q.concurrentRequestLimit);this.wireCodec_=new MLu;this.fastHandshake_=
q&&q.fastHandshake||!1;this.encodeInitMessageHeaders_=q&&q.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17224_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=q&&q.blockingHandshake||!1;q&&q.disableRedact&&this.JSC$17224_channelDebug_.disableRedact();q&&q.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
q&&q.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;q&&q.longPollingTimeout&&q.longPollingTimeout>0&&(this.longPollingTimeout_=q.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
vb.prototype.JSC$17226_channelVersion_=8;vb.prototype.state_=1;
vb.prototype.connect=function(q,Z,w,r){this.JSC$17224_channelDebug_.debug("connect()");Pb(0);this.JSC$17224_path_=q;this.JSC$17224_extraParams_=Z||{};w&&r!==void 0&&(this.JSC$17224_extraParams_.OSID=w,this.JSC$17224_extraParams_.OAID=r);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17224_channelDebug_.debug("connectChannel_()");q=NKC(this,null,this.JSC$17224_path_);this.JSC$17224_channelDebug_.debug("GetForwardChannelUri: "+q);this.JSC$17224_forwardChannelUri_=q;lhb(this)};
vb.prototype.disconnect=function(){this.JSC$17224_channelDebug_.debug("disconnect()");GUl(this);if(this.state_==3){var q=this.JSC$17224_nextRid_++,Z=this.JSC$17224_forwardChannelUri_.clone();_.Kh(Z,"SID",this.sid_);_.Kh(Z,"RID",q);_.Kh(Z,"TYPE","terminate");j$(this,Z);q=new Hb(this,this.JSC$17224_channelDebug_,this.sid_,q);q.JSC$17205_type_=2;q.JSC$17205_baseUri_=_.hq(Z.clone());Z=!1;if(_.$1.navigator&&_.$1.navigator.sendBeacon)try{Z=_.$1.navigator.sendBeacon(q.JSC$17205_baseUri_.toString(),"")}catch(w){}!Z&&
_.$1.Image&&((new Image).src=q.JSC$17205_baseUri_,Z=!0);Z||(q.JSC$17205_xmlHttp_=OZ7(q.JSC$17205_channel_,null),q.JSC$17205_xmlHttp_.send(q.JSC$17205_baseUri_));q.JSC$17205_requestStartTime_=Date.now();VLZ(q)}pvS(this)};
var ah8=function(q){q.JSC$17224_backChannelRequest_&&(bZ6(q),q.JSC$17224_backChannelRequest_.cancel(),q.JSC$17224_backChannelRequest_=null)},GUl=function(q){ah8(q);
q.JSC$17224_backChannelTimerId_&&(_.$1.clearTimeout(q.JSC$17224_backChannelTimerId_),q.JSC$17224_backChannelTimerId_=null);BKq(q);q.forwardChannelRequestPool_.cancel();q.JSC$17224_forwardChannelTimerId_&&(typeof q.JSC$17224_forwardChannelTimerId_==="number"&&_.$1.clearTimeout(q.JSC$17224_forwardChannelTimerId_),q.JSC$17224_forwardChannelTimerId_=null)};
vb.prototype.getState=function(){return this.state_};
var lhb=function(q){TK6(q.forwardChannelRequestPool_)||q.JSC$17224_forwardChannelTimerId_||(q.JSC$17224_forwardChannelTimerId_=!0,_.HD(q.JSC$17226_onStartForwardChannelTimer_,q),q.JSC$17224_forwardChannelRetryCount_=0)},mW7=function(q,Z){if(Q2c(q.forwardChannelRequestPool_)>=q.forwardChannelRequestPool_.JSC$17215_maxSize_-(q.JSC$17224_forwardChannelTimerId_?1:0))return!1;
if(q.JSC$17224_forwardChannelTimerId_)return q.JSC$17224_channelDebug_.debug("Use the retry request that is already scheduled."),q.JSC$17224_outgoingMaps_=Z.JSC$17205_pendingMessages_.concat(q.JSC$17224_outgoingMaps_),!0;if(q.state_==1||q.state_==2||q.JSC$17224_forwardChannelRetryCount_>=(q.JSC$17224_failFast_?0:q.JSC$17224_forwardChannelMaxRetries_))return!1;q.JSC$17224_channelDebug_.debug("Going to retry POST");q.JSC$17224_forwardChannelTimerId_=de((0,_.Lh)(q.JSC$17226_onStartForwardChannelTimer_,
q,Z),XvZ(q,q.JSC$17224_forwardChannelRetryCount_));q.JSC$17224_forwardChannelRetryCount_++;return!0};
vb.prototype.JSC$17226_onStartForwardChannelTimer_=function(q){if(this.JSC$17224_forwardChannelTimerId_)if(this.JSC$17224_forwardChannelTimerId_=null,this.JSC$17224_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!q){this.JSC$17224_channelDebug_.debug("open_()");this.JSC$17224_nextRid_=Math.floor(Math.random()*1E5);q=this.JSC$17224_nextRid_++;var Z=new Hb(this,this.JSC$17224_channelDebug_,"",q),w=this.JSC$17224_extraHeaders_;this.initHeaders_&&(w?(w=_.R4.clone(w),_.R4.extend(w,this.initHeaders_)):
w=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(Z.JSC$17205_extraHeaders_=w,w=null);var r;if(this.fastHandshake_)a:{for(var Y=r=0;Y<this.JSC$17224_outgoingMaps_.length;Y++){b:{var C=this.JSC$17224_outgoingMaps_[Y];if("__data__"in C.map&&(C=C.map.__data__,typeof C==="string")){C=C.length;break b}C=void 0}if(C===void 0)break;r+=C;if(r>4096){r=Y;break a}if(r===4096||Y===this.JSC$17224_outgoingMaps_.length-1){r=Y+1;break a}}r=1E3}else r=1E3;r=ACV(this,Z,r);
Y=this.JSC$17224_forwardChannelUri_.clone();_.Kh(Y,"RID",q);_.Kh(Y,"CVER",22);this.httpSessionIdParam_&&_.Kh(Y,"X-HTTP-Session-Id",this.httpSessionIdParam_);j$(this,Y);w&&(this.encodeInitMessageHeaders_?r="headers="+_.Tj(PJZ(w))+"&"+r:this.httpHeadersOverwriteParam_&&dIC(Y,this.httpHeadersOverwriteParam_,w));UWD(this.forwardChannelRequestPool_,Z);this.blockingHandshake_&&_.Kh(Y,"TYPE","init");this.fastHandshake_?(_.Kh(Y,"$req",r),_.Kh(Y,"SID","null"),Z.decodeInitialResponse_=!0,dWZ(Z,Y,null)):dWZ(Z,
Y,r);this.state_=2}}else this.state_==3&&(q?fhy(this,q):this.JSC$17224_outgoingMaps_.length==0?this.JSC$17224_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):TK6(this.forwardChannelRequestPool_)||(fhy(this),this.JSC$17224_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var fhy=function(q,Z){var w;Z?w=Z.JSC$17205_rid_:w=q.JSC$17224_nextRid_++;var r=q.JSC$17224_forwardChannelUri_.clone();_.Kh(r,"SID",q.sid_);_.Kh(r,"RID",w);_.Kh(r,"AID",q.JSC$17224_lastArrayId_);j$(q,r);q.httpHeadersOverwriteParam_&&q.JSC$17224_extraHeaders_&&dIC(r,q.httpHeadersOverwriteParam_,q.JSC$17224_extraHeaders_);w=new Hb(q,q.JSC$17224_channelDebug_,q.sid_,w,q.JSC$17224_forwardChannelRetryCount_+1);q.httpHeadersOverwriteParam_===null&&(w.JSC$17205_extraHeaders_=q.JSC$17224_extraHeaders_);Z&&
(q.JSC$17224_outgoingMaps_=Z.JSC$17205_pendingMessages_.concat(q.JSC$17224_outgoingMaps_));Z=ACV(q,w,1E3);w.setTimeout(Math.round(q.JSC$17224_forwardChannelRequestTimeoutMs_*.5)+Math.round(q.JSC$17224_forwardChannelRequestTimeoutMs_*.5*Math.random()));UWD(q.forwardChannelRequestPool_,w);dWZ(w,r,Z)},j$=function(q,Z){q.JSC$17224_extraParams_&&_.R4.forEach(q.JSC$17224_extraParams_,function(w,r){_.Kh(Z,r,w)});
q.handler_&&_.ETD({},function(w,r){_.Kh(Z,r,w)})},ACV=function(q,Z,w){w=Math.min(q.JSC$17224_outgoingMaps_.length,w);
var r=q.handler_?(0,_.Lh)(q.handler_.JSC$17230_badMapError,q.handler_,q):null;a:{for(var Y=q.JSC$17224_outgoingMaps_,C=-1;;){var d=["count="+w];C==-1?w>0?(C=Y[0].JSC$17212_mapId,d.push("ofs="+C)):C=0:d.push("ofs="+C);for(var O=!0,H=0;H<w;H++){var L=Y[H].JSC$17212_mapId,S=Y[H].map;L-=C;if(L<0)C=Math.max(0,Y[H].JSC$17212_mapId-100),O=!1;else try{FrZ(S,d,"req"+L+"_")}catch(v){r&&r(S)}}if(O){r=d.join("&");break a}}r=void 0}q=q.JSC$17224_outgoingMaps_.splice(0,w);Z.JSC$17205_pendingMessages_=q;return r},
DWu=function(q){q.JSC$17224_backChannelRequest_||q.JSC$17224_backChannelTimerId_||(q.JSC$17224_backChannelAttemptId_=1,_.HD(q.JSC$17226_onStartBackChannelTimer_,q),q.JSC$17224_backChannelRetryCount_=0)},nkb=function(q){if(q.JSC$17224_backChannelRequest_||q.JSC$17224_backChannelTimerId_||q.JSC$17224_backChannelRetryCount_>=3)return!1;
q.JSC$17224_channelDebug_.debug("Going to retry GET");q.JSC$17224_backChannelAttemptId_++;q.JSC$17224_backChannelTimerId_=de((0,_.Lh)(q.JSC$17226_onStartBackChannelTimer_,q),XvZ(q,q.JSC$17224_backChannelRetryCount_));q.JSC$17224_backChannelRetryCount_++;return!0};
vb.prototype.JSC$17226_onStartBackChannelTimer_=function(){this.JSC$17224_backChannelTimerId_=null;h6C(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17224_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17224_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17224_backChannelRequest_+" "+this.handshakeRttMs_);else{var q=2*this.handshakeRttMs_;this.JSC$17224_channelDebug_.info("BP detection timer enabled: "+q);this.bpDetectionTimerId_=de((0,_.Lh)(this.onBpDetectionTimer_,
this),q)}};
vb.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17224_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17224_backChannelRequest_.JSC$17205_xmlHttp_!=null){var q=this.JSC$17224_backChannelRequest_.JSC$17205_xmlHttp_.getResponseText();q&&this.JSC$17224_channelDebug_.warning("Timer should have been cancelled : "+q)}this.JSC$17224_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Pb(10);ah8(this);h6C(this)}else this.JSC$17224_channelDebug_.warning("Invalid operation.")};
var bZ6=function(q){q.bpDetectionTimerId_!=null&&(q.JSC$17224_channelDebug_.debug("Cancel the BP detection timer."),_.$1.clearTimeout(q.bpDetectionTimerId_),q.bpDetectionTimerId_=null)},h6C=function(q){q.JSC$17224_channelDebug_.debug("Creating new HttpRequest");
q.JSC$17224_backChannelRequest_=new Hb(q,q.JSC$17224_channelDebug_,q.sid_,"rpc",q.JSC$17224_backChannelAttemptId_);q.httpHeadersOverwriteParam_===null&&(q.JSC$17224_backChannelRequest_.JSC$17205_extraHeaders_=q.JSC$17224_extraHeaders_);q.JSC$17224_backChannelRequest_.JSC$17205_readyStateChangeThrottleMs_=0;var Z=q.JSC$17224_backChannelUri_.clone();_.Kh(Z,"RID","rpc");_.Kh(Z,"SID",q.sid_);_.Kh(Z,"AID",q.JSC$17224_lastArrayId_);_.Kh(Z,"CI",q.enableStreaming_?"0":"1");!q.enableStreaming_&&q.longPollingTimeout_&&
_.Kh(Z,"TO",q.longPollingTimeout_);_.Kh(Z,"TYPE","xmlhttp");j$(q,Z);q.httpHeadersOverwriteParam_&&q.JSC$17224_extraHeaders_&&dIC(Z,q.httpHeadersOverwriteParam_,q.JSC$17224_extraHeaders_);q.backChannelRequestTimeoutMs_&&q.JSC$17224_backChannelRequest_.setTimeout(q.backChannelRequestTimeoutMs_);var w=q.JSC$17224_backChannelRequest_,r=q.JSC$17224_hostPrefix_;w.JSC$17205_type_=1;w.JSC$17205_baseUri_=_.hq(Z.clone());w.JSC$17205_postData_=null;w.decodeChunks_=!0;PPl(w,r);q.JSC$17224_channelDebug_.debug("New Request created")};
vb.prototype.JSC$17226_onBackChannelDead_=function(){this.JSC$17224_deadBackChannelTimerId_!=null&&(this.JSC$17224_deadBackChannelTimerId_=null,ah8(this),nkb(this),Pb(19))};
var BKq=function(q){q.JSC$17224_deadBackChannelTimerId_!=null&&(_.$1.clearTimeout(q.JSC$17224_deadBackChannelTimerId_),q.JSC$17224_deadBackChannelTimerId_=null)},j2y=function(q,Z){q.JSC$17224_channelDebug_.debug("Request complete");
var w=null;if(q.JSC$17224_backChannelRequest_==Z){BKq(q);bZ6(q);q.JSC$17224_backChannelRequest_=null;var r=2}else if(z66(q.forwardChannelRequestPool_,Z))w=Z.JSC$17205_pendingMessages_,kUc(q.forwardChannelRequestPool_,Z),r=1;else return;if(q.state_!=0)if(Z.JSC$17205_successful_)r==1?(gbV(Z.JSC$17205_postData_?Z.JSC$17205_postData_.length:0,Date.now()-Z.JSC$17205_requestStartTime_,q.JSC$17224_forwardChannelRetryCount_),lhb(q)):DWu(q);else{var Y=Z.JSC$17205_lastStatusCode_,C=Z.getLastError();if(C==3||
C==0&&Y>0)q.JSC$17224_channelDebug_.debug("Not retrying due to error type"),Y>200&&(q.errorResponseStatusCode_=Z.JSC$17205_lastStatusCode_);else{q.JSC$17224_channelDebug_.debug(function(){return"Maybe retrying, last error: "+$Wl(C,q.errorResponseStatusCode_)});
if(r==1&&mW7(q,Z)||r==2&&nkb(q))return;q.JSC$17224_channelDebug_.debug("Exceeded max number of retries")}w&&w.length>0&&s26(q.forwardChannelRequestPool_,w);q.JSC$17224_channelDebug_.debug("Error: HTTP request failed");switch(C){case 1:u0(q,5);break;case 4:u0(q,10);break;case 3:u0(q,6);break;default:u0(q,2)}}},XvZ=function(q,Z){var w=q.JSC$17224_baseRetryDelayMs_+Math.floor(Math.random()*q.JSC$17224_retryDelaySeedMs_);
q.isActive()||(q.JSC$17224_channelDebug_.debug("Inactive channel"),w*=2);return w*Z};
vb.prototype.onInput_=function(q,Z){for(var w=0;w<q.length;w++){var r=q[w];this.JSC$17224_lastArrayId_=r[0];r=r[1];if(this.state_==2)if(r[0]=="c"){this.sid_=r[1];this.JSC$17224_hostPrefix_=r[2];var Y=r[3];Y!=null&&(this.JSC$17226_channelVersion_=Y,this.JSC$17224_channelDebug_.info("VER="+this.JSC$17226_channelVersion_));Y=r[4];Y!=null&&(this.serverVersion_=Y,this.JSC$17224_channelDebug_.info("SVER="+this.serverVersion_));r=r[5];r!=null&&typeof r==="number"&&r>0&&(this.backChannelRequestTimeoutMs_=
r*=1.5,this.JSC$17224_channelDebug_.info("backChannelRequestTimeoutMs_="+r));if(r=Z.JSC$17205_xmlHttp_){var C=Z_(r,"X-Client-Wire-Protocol");C&&(Y=this.forwardChannelRequestPool_,!Y.requestPool_&&(_.uN(C,"spdy")||_.uN(C,"quic")||_.uN(C,"h2"))&&(Y.JSC$17215_maxSize_=Y.maxPoolSizeConfigured_,Y.requestPool_=new Set,Y.JSC$17215_request_&&(UWD(Y,Y.JSC$17215_request_),Y.JSC$17215_request_=null)));this.httpSessionIdParam_&&((r=Z_(r,"X-HTTP-Session-Id"))?(this.httpSessionId_=r,_.Kh(this.JSC$17224_forwardChannelUri_,
this.httpSessionIdParam_,r)):this.JSC$17224_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17230_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-Z.JSC$17205_requestStartTime_,this.JSC$17224_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));r=Z;Y=NKC(this,this.JSC$17224_supportsCrossDomainXhrs_?this.JSC$17224_hostPrefix_:null,this.JSC$17224_path_);this.JSC$17224_channelDebug_.debug("GetBackChannelUri: "+
Y);this.JSC$17224_backChannelUri_=Y;r.initialResponseDecoded_?(this.JSC$17224_channelDebug_.debug("Upgrade the handshake request to a backchannel."),kUc(this.forwardChannelRequestPool_,r),Y=r,(C=this.backChannelRequestTimeoutMs_)&&Y.setTimeout(C),Y.JSC$17205_watchDogTimerId_&&(ok8(Y),VLZ(Y)),this.JSC$17224_backChannelRequest_=r):DWu(this);this.JSC$17224_outgoingMaps_.length>0&&lhb(this)}else r[0]!="stop"&&r[0]!="close"||u0(this,7);else this.state_==3&&(r[0]=="stop"||r[0]=="close"?r[0]=="stop"?u0(this,
7):this.disconnect():r[0]!="noop"&&this.handler_&&this.handler_.JSC$17230_channelHandleArray(r),this.JSC$17224_backChannelRetryCount_=0)}};
var u0=function(q,Z){q.JSC$17224_channelDebug_.info("Error code "+Z);if(Z==2){var w=(0,_.Lh)(q.testNetworkCallback_,q),r=q.networkTestUrl_,Y=!r;r=new _.M$(r||"//www.google.com/images/cleardot.gif");_.$1.location&&_.$1.location.protocol=="http"||_.NC(r,"https");_.hq(r);Y?IhF(r.toString(),w):cCF(r.toString(),w)}else Pb(2);q.onError_(Z)};
vb.prototype.testNetworkCallback_=function(q){q?(this.JSC$17224_channelDebug_.info("Successfully pinged google.com"),Pb(2)):(this.JSC$17224_channelDebug_.info("Failed to ping google.com"),Pb(1))};
vb.prototype.onError_=function(q){this.JSC$17224_channelDebug_.debug("HttpChannel: error - "+q);this.state_=0;this.handler_&&this.handler_.JSC$17230_channelError(q);pvS(this);GUl(this)};
var pvS=function(q){q.state_=0;q.nonAckedMapsAtChannelClose_=[];if(q.handler_){var Z=Kru(q.forwardChannelRequestPool_);if(Z.length!=0||q.JSC$17224_outgoingMaps_.length!=0)q.JSC$17224_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+Z.length+", outgoing: "+q.JSC$17224_outgoingMaps_.length}),_.X9(q.nonAckedMapsAtChannelClose_,Z),_.X9(q.nonAckedMapsAtChannelClose_,q.JSC$17224_outgoingMaps_),q.forwardChannelRequestPool_.JSC$17215_pendingMessages_.length=0,_.Ge(q.JSC$17224_outgoingMaps_),
q.JSC$17224_outgoingMaps_.length=0;
q.handler_.JSC$17230_channelClosed()}},yCD=function(q){if(q.state_==0)return q.nonAckedMapsAtChannelClose_;
var Z=[];_.X9(Z,Kru(q.forwardChannelRequestPool_));_.X9(Z,q.JSC$17224_outgoingMaps_);return Z},NKC=function(q,Z,w){var r=_.UJ(w);
r.JSC$7906_domain_!=""?(Z&&_.lQ(r,Z+"."+r.JSC$7906_domain_),_.GM(r,r.JSC$7906_port_)):(r=_.$1.location,r=ijq(r.protocol,Z?Z+"."+r.hostname:r.hostname,+r.port,w));Z=q.httpSessionIdParam_;w=q.httpSessionId_;Z&&w&&_.Kh(r,Z,w);_.Kh(r,"VER",q.JSC$17226_channelVersion_);j$(q,r);return r},OZ7=function(q,Z,w){if(Z&&!q.JSC$17224_supportsCrossDomainXhrs_)throw Error("xk");
Z=q.usesFetchStreams_&&!q.JSC$17224_xmlHttpFactory_?new _.vD(new vi({streamBinaryChunks:w})):new _.vD(q.JSC$17224_xmlHttpFactory_);Z.JSC$7669_withCredentials_=q.JSC$17224_supportsCrossDomainXhrs_;return Z};
vb.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var iZC=function(){};
_.e=iZC.prototype;_.e.JSC$17230_channelOpened=function(){};
_.e.JSC$17230_channelHandleArray=function(){};
_.e.JSC$17230_channelError=function(){};
_.e.JSC$17230_channelClosed=function(){};
_.e.isActive=function(){return!0};
_.e.JSC$17230_badMapError=function(){};var gkZ=function(){},R8=function(q,Z){_.V8.call(this);
this.JSC$17233_channel_=new vb(Z);this.JSC$17233_url_=q;this.messageUrlParams_=Z&&Z.messageUrlParams||null;q=Z&&Z.messageHeaders||null;Z&&Z.clientProtocolHeaderRequired&&(q?_.R4.set(q,"X-Client-Protocol","webchannel"):q=_.R4.create("X-Client-Protocol","webchannel"));this.JSC$17233_channel_.JSC$17224_extraHeaders_=q;q=Z&&Z.initMessageHeaders||null;Z&&Z.messageContentType&&(q?_.R4.set(q,"X-WebChannel-Content-Type",Z.messageContentType):q=_.R4.create("X-WebChannel-Content-Type",Z.messageContentType));
Z&&Z.clientProfile&&(q?_.R4.set(q,"X-WebChannel-Client-Profile",Z.clientProfile):q=_.R4.create("X-WebChannel-Client-Profile",Z.clientProfile));this.JSC$17233_channel_.initHeaders_=q;(q=Z&&Z.httpHeadersOverwriteParam)&&!_.W6(q)&&(this.JSC$17233_channel_.httpHeadersOverwriteParam_=q);this.supportsCrossDomainXhr_=Z&&Z.supportsCrossDomainXhr||!1;this.sendRawJson_=Z&&Z.sendRawJson||!1;(Z=Z&&Z.httpSessionIdParam)&&!_.W6(Z)&&(this.JSC$17233_channel_.httpSessionIdParam_=Z,_.R4.containsKey(this.messageUrlParams_,
Z)&&_.R4.remove(this.messageUrlParams_,Z));this.channelHandler_=new tP(this)};
_.yU(R8,_.V8);R8.prototype.open=function(){this.JSC$17233_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17233_channel_.JSC$17224_supportsCrossDomainXhrs_=!0);this.JSC$17233_channel_.connect(this.JSC$17233_url_,this.messageUrlParams_||void 0)};
R8.prototype.close=function(){this.JSC$17233_channel_.disconnect()};
R8.prototype.send=function(q){var Z=this.JSC$17233_channel_;if(typeof q==="string"){var w={};w.__data__=q;q=w}else this.sendRawJson_&&(w={},w.__data__=(0,_.S3)(q),q=w);Z.JSC$17224_outgoingMaps_.push(new Ekl(Z.JSC$17224_nextMapId_++,q));Z.state_==3&&lhb(Z)};
R8.prototype.disposeInternal=function(){this.JSC$17233_channel_.handler_=null;delete this.channelHandler_;this.JSC$17233_channel_.disconnect();delete this.JSC$17233_channel_;R8.superClass_.disposeInternal.call(this)};
var qWV=function(q){mnD.call(this);q.__headers__&&(this.headers=q.__headers__,this.statusCode=q.__status__,delete q.__headers__,delete q.__status__);var Z=q.__sm__;Z?this.data=(this.metadataKey=_.R4.getAnyKey(Z))?_.R4.get(Z,this.metadataKey):Z:this.data=q};
_.yU(qWV,mnD);var ZOl=function(q){Agq.call(this);this.status=1;this.errorCode=q};
_.yU(ZOl,Agq);var tP=function(q){this.JSC$17240_channel_=q};
_.yU(tP,iZC);tP.prototype.JSC$17230_channelOpened=function(){this.JSC$17240_channel_.dispatchEvent("w")};
tP.prototype.JSC$17230_channelHandleArray=function(q){this.JSC$17240_channel_.dispatchEvent(new qWV(q))};
tP.prototype.JSC$17230_channelError=function(q){this.JSC$17240_channel_.dispatchEvent(new ZOl(q))};
tP.prototype.JSC$17230_channelClosed=function(){this.JSC$17240_channel_.dispatchEvent("x")};
var wjZ=function(q,Z){this.transportChannel_=q;this.JSC$17243_channel_=Z},r_7=function(q){return yCD(q.JSC$17243_channel_).map(function(Z){var w=q.transportChannel_;
Z=Z.map;"__data__"in Z?(Z=Z.__data__,w=w.sendRawJson_?(0,_.C62)(Z):Z):w=Z;return w})};var b0=function(q){YWq.dispatchEvent(new $tZ(YWq,q))},YWq=new _.V8,$tZ=function(q){_.$2.call(this,"statevent",q)};
_.z($tZ,_.$2);var JP=function(q,Z,w,r,Y){this.JSC$17248_channel_=q;this.JSC$17248_channelDebug_=Z;this.sid_=w;this.JSC$17248_rid_=r;this.JSC$17248_retryId_=Y||1;this.timeout_=45E3;this.JSC$17248_eventHandler_=new _.Al(this);this.pollingTimer_=new _.m3;this.pollingTimer_.setInterval(250)};
_.e=JP.prototype;_.e.JSC$17250_extraHeaders_=null;_.e.JSC$17250_successful_=!1;_.e.JSC$17250_watchDogTimerId_=null;_.e.JSC$17250_watchDogTimeoutTime_=null;_.e.JSC$17250_requestStartTime_=null;_.e.JSC$17250_type_=null;_.e.JSC$17250_baseUri_=null;_.e.JSC$17250_requestUri_=null;_.e.JSC$17250_postData_=null;_.e.JSC$17250_xmlHttp_=null;_.e.JSC$17250_xmlHttpChunkStart_=0;_.e.trident_=null;_.e.JSC$17250_verb_=null;_.e.JSC$17250_lastError_=null;_.e.JSC$17250_lastStatusCode_=-1;_.e.sendClose_=!0;
_.e.JSC$17250_cancelled_=!1;_.e.JSC$17250_readyStateChangeThrottleMs_=0;_.e.JSC$17250_readyStateChangeThrottle_=null;var eGC=function(q,Z){switch(q){case 0:return"Non-200 return code ("+Z+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},CcD={},Pcb={};
JP.prototype.setTimeout=function(q){this.timeout_=q};
var VAF=function(q,Z,w){q.JSC$17250_type_=1;q.JSC$17250_baseUri_=_.hq(Z.clone());q.JSC$17250_postData_=w;q.decodeChunks_=!0;dtl(q,null)},OOl=function(q,Z,w,r,Y){q.JSC$17250_type_=1;
q.JSC$17250_baseUri_=_.hq(Z.clone());q.JSC$17250_postData_=null;q.decodeChunks_=w;Y&&(q.sendClose_=!1);dtl(q,r)},dtl=function(q,Z){q.JSC$17250_requestStartTime_=Date.now();
HOb(q);q.JSC$17250_requestUri_=q.JSC$17250_baseUri_.clone();AN(q.JSC$17250_requestUri_,"t",q.JSC$17248_retryId_);q.JSC$17250_xmlHttpChunkStart_=0;q.JSC$17250_xmlHttp_=q.JSC$17248_channel_.JSC$17257_createXhrIo(q.JSC$17248_channel_.JSC$17257_shouldUseSecondaryDomains()?Z:null);q.JSC$17250_readyStateChangeThrottleMs_>0&&(q.JSC$17250_readyStateChangeThrottle_=new _.pV((0,_.Lh)(q.JSC$17250_xmlHttpHandler_,q,q.JSC$17250_xmlHttp_),q.JSC$17250_readyStateChangeThrottleMs_));q.JSC$17248_eventHandler_.listen(q.JSC$17250_xmlHttp_,
"readystatechange",q.JSC$17250_readyStateChangeHandler_);Z=q.JSC$17250_extraHeaders_?_.R4.clone(q.JSC$17250_extraHeaders_):{};q.JSC$17250_postData_?(q.JSC$17250_verb_="POST",Z["Content-Type"]="application/x-www-form-urlencoded",q.JSC$17250_xmlHttp_.send(q.JSC$17250_requestUri_,q.JSC$17250_verb_,q.JSC$17250_postData_,Z)):(q.JSC$17250_verb_="GET",q.sendClose_&&!_.YZ&&(Z.Connection="close"),q.JSC$17250_xmlHttp_.send(q.JSC$17250_requestUri_,q.JSC$17250_verb_,null,Z));q.JSC$17248_channel_.notifyServerReachabilityEvent(1);
Z=q.JSC$17248_channelDebug_;var w=q.JSC$17250_postData_;if(w){var r="";w=w.split("&");for(var Y=0;Y<w.length;Y++){var C=w[Y].split("=");if(C.length>1){var d=C[0];C=C[1];var O=d.split("_");r=O.length>=2&&O[1]=="type"?r+(d+"="+C+"&"):r+(d+"=redacted&")}}}else r=null;Z.info("XMLHTTP REQ ("+q.JSC$17248_rid_+") [attempt "+q.JSC$17248_retryId_+"]: "+q.JSC$17250_verb_+"\n"+q.JSC$17250_requestUri_+"\n"+r)};
JP.prototype.JSC$17250_readyStateChangeHandler_=function(q){q=q.target;var Z=this.JSC$17250_readyStateChangeThrottle_;Z&&_.j3(q)==3?(this.JSC$17248_channelDebug_.debug("Throttling readystatechange."),Z.fire()):this.JSC$17250_xmlHttpHandler_(q)};
JP.prototype.JSC$17250_xmlHttpHandler_=function(q){try{if(q==this.JSC$17250_xmlHttp_)a:{var Z=_.j3(this.JSC$17250_xmlHttp_),w=this.JSC$17250_xmlHttp_.JSC$7669_lastErrorCode_,r=this.JSC$17250_xmlHttp_.getStatus();if(_.YZ&&!qsV("420+")){if(Z<4)break a}else if(Z<3||Z==3&&!this.JSC$17250_xmlHttp_.getResponseText())break a;this.JSC$17250_cancelled_||Z!=4||w==7||(w==8||r<=0?this.JSC$17248_channel_.notifyServerReachabilityEvent(3):this.JSC$17248_channel_.notifyServerReachabilityEvent(2));WOZ(this);var Y=
this.JSC$17250_xmlHttp_.getStatus();this.JSC$17250_lastStatusCode_=Y;var C=this.JSC$17250_xmlHttp_.getResponseText();C||this.JSC$17248_channelDebug_.debug("No response text for uri "+this.JSC$17250_requestUri_+" status "+Y);this.JSC$17250_successful_=Y==200;this.JSC$17248_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17248_rid_+") [ attempt "+this.JSC$17248_retryId_+"]: "+this.JSC$17250_verb_+"\n"+this.JSC$17250_requestUri_+"\n"+Z+" "+Y);if(this.JSC$17250_successful_){Z==4&&z0(this);if(this.decodeChunks_){for(q=
!0;!this.JSC$17250_cancelled_&&this.JSC$17250_xmlHttpChunkStart_<C.length;){var d=oNS(this,C);if(d==Pcb){Z==4&&(this.JSC$17250_lastError_=4,b0(15),q=!1);Bb(this.JSC$17248_channelDebug_,this.JSC$17248_rid_,null,"[Incomplete Response]");break}else if(d==CcD){this.JSC$17250_lastError_=4;b0(16);Bb(this.JSC$17248_channelDebug_,this.JSC$17248_rid_,C,"[Invalid Chunk]");q=!1;break}else Bb(this.JSC$17248_channelDebug_,this.JSC$17248_rid_,d,null),uYC(this,d)}Z==4&&C.length==0&&(this.JSC$17250_lastError_=1,
b0(17),q=!1);this.JSC$17250_successful_=this.JSC$17250_successful_&&q;q||(Bb(this.JSC$17248_channelDebug_,this.JSC$17248_rid_,C,"[Invalid Chunked Response]"),z0(this),LOV(this))}else Bb(this.JSC$17248_channelDebug_,this.JSC$17248_rid_,C,null),uYC(this,C);this.JSC$17250_successful_&&!this.JSC$17250_cancelled_&&(Z==4?this.JSC$17248_channel_.JSC$17257_onRequestComplete(this):(this.JSC$17250_successful_=!1,HOb(this)))}else Y==400&&C.indexOf("Unknown SID")>0?(this.JSC$17250_lastError_=3,b0(13),this.JSC$17248_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17248_rid_+")")):(this.JSC$17250_lastError_=0,b0(14),this.JSC$17248_channelDebug_.warning("XMLHTTP Bad status "+Y+" ("+this.JSC$17248_rid_+")")),z0(this),LOV(this)}else this.JSC$17248_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(O){this.JSC$17248_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var oNS=function(q,Z){var w=q.JSC$17250_xmlHttpChunkStart_,r=Z.indexOf("\n",w);if(r==-1)return Pcb;w=Number(Z.substring(w,r));if(isNaN(w))return CcD;r+=1;if(r+w>Z.length)return Pcb;Z=Z.slice(r,r+w);q.JSC$17250_xmlHttpChunkStart_=r+w;return Z};
JP.prototype.cancel=function(){this.JSC$17250_cancelled_=!0;z0(this)};
var HOb=function(q){q.JSC$17250_watchDogTimeoutTime_=Date.now()+q.timeout_;SWD(q,q.timeout_)},SWD=function(q,Z){if(q.JSC$17250_watchDogTimerId_!=null)throw Error("wk");
q.JSC$17250_watchDogTimerId_=oE((0,_.Lh)(q.JSC$17250_onWatchDogTimeout_,q),Z)},WOZ=function(q){q.JSC$17250_watchDogTimerId_&&(_.$1.clearTimeout(q.JSC$17250_watchDogTimerId_),q.JSC$17250_watchDogTimerId_=null)};
JP.prototype.JSC$17250_onWatchDogTimeout_=function(){this.JSC$17250_watchDogTimerId_=null;var q=Date.now();q-this.JSC$17250_watchDogTimeoutTime_>=0?(this.JSC$17248_channelDebug_.info("TIMEOUT: "+this.JSC$17250_requestUri_),this.JSC$17250_type_!=2&&this.JSC$17248_channel_.notifyServerReachabilityEvent(3),z0(this),this.JSC$17250_lastError_=2,b0(18),LOV(this)):(this.JSC$17248_channelDebug_.warning("WatchDog timer called too early"),SWD(this,this.JSC$17250_watchDogTimeoutTime_-q))};
var LOV=function(q){q.JSC$17248_channel_.JSC$17257_isClosed()||q.JSC$17250_cancelled_||q.JSC$17248_channel_.JSC$17257_onRequestComplete(q)},z0=function(q){WOZ(q);
_.Xg(q.JSC$17250_readyStateChangeThrottle_);q.JSC$17250_readyStateChangeThrottle_=null;q.pollingTimer_.stop();q.JSC$17248_eventHandler_.removeAll();if(q.JSC$17250_xmlHttp_){var Z=q.JSC$17250_xmlHttp_;q.JSC$17250_xmlHttp_=null;Z.abort();Z.dispose()}q.trident_&&(q.trident_=null)};
JP.prototype.getLastError=function(){return this.JSC$17250_lastError_};
var uYC=function(q,Z){try{q.JSC$17248_channel_.JSC$17257_onRequestData(q,Z),q.JSC$17248_channel_.notifyServerReachabilityEvent(4)}catch(w){}};var Bb=function(q,Z,w,r){var Y=q.info;a:if(w&&w!="y2f%"){try{var C=JSON.parse(w);if(C)for(var d=0;d<C.length;d++)if(Array.isArray(C[d])){var O=C[d];if(!(O.length<2)){var H=O[1];if(Array.isArray(H)&&!(H.length<1)){var L=H[0];if(L!="noop"&&L!="stop")for(var S=1;S<H.length;S++)H[S]=""}}}var v=(0,_.S3)(C);break a}catch(R){q.debug("Exception parsing expected JS array - probably was not JS");v=w;break a}v=void 0}else v=w;Y.call(q,"XMLHTTP TEXT ("+Z+"): "+v+(r?" "+r:""))};
uE.prototype.debug=function(q){this.info(q)};
uE.prototype.info=function(){};
uE.prototype.warning=function(){};var vNl=function(q,Z){this.JSC$17255_channel_=q;this.JSC$17255_channelDebug_=Z;this.JSC$17255_parser_=new e$};
_.e=vNl.prototype;_.e.JSC$17257_extraHeaders_=null;_.e.JSC$17257_request_=null;_.e.receivedIntermediateResult_=!1;_.e.JSC$17257_path_=null;_.e.state_=null;_.e.JSC$17257_lastStatusCode_=-1;_.e.JSC$17257_hostPrefix_=null;_.e.blockedPrefix_=null;
_.e.connect=function(q){this.JSC$17257_path_=q;q=jyu(this.JSC$17255_channel_,this.JSC$17257_path_);b0(3);Date.now();var Z=this.JSC$17255_channel_.firstTestResults_;Z!=null?(this.JSC$17257_hostPrefix_=Z[0],(this.blockedPrefix_=Z[1])?(this.state_=1,tAq(this)):(this.state_=2,RGV(this))):(AN(q,"MODE","init"),this.JSC$17257_request_=new JP(this,this.JSC$17255_channelDebug_),this.JSC$17257_request_.JSC$17250_extraHeaders_=this.JSC$17257_extraHeaders_,OOl(this.JSC$17257_request_,q,!1,null,!0),this.state_=
0)};
var tAq=function(q){var Z=bOq(q.JSC$17255_channel_,q.blockedPrefix_,"/mail/images/cleardot.gif");_.hq(Z);cQD(Z.toString(),5E3,(0,_.Lh)(q.checkBlockedCallback_,q),3,2E3);q.notifyServerReachabilityEvent(1)};
vNl.prototype.checkBlockedCallback_=function(q){if(q)this.state_=2,RGV(this);else{b0(4);var Z=this.JSC$17255_channel_;Z.JSC$17258_channelDebug_.debug("Test Connection Blocked");Z.JSC$17262_lastStatusCode_=Z.connectionTest_.JSC$17257_lastStatusCode_;a8(Z,9)}q&&this.notifyServerReachabilityEvent(2)};
var RGV=function(q){q.JSC$17255_channelDebug_.debug("TestConnection: starting stage 2");var Z=q.JSC$17255_channel_.secondTestResults_;Z!=null?(q.JSC$17255_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+Z?"Buffered":"Unbuffered"),b0(5),Z?(b0(11),nU(q.JSC$17255_channel_,q,!1)):(b0(12),nU(q.JSC$17255_channel_,q,!0))):(q.JSC$17257_request_=new JP(q,q.JSC$17255_channelDebug_),q.JSC$17257_request_.JSC$17250_extraHeaders_=q.JSC$17257_extraHeaders_,Z=J_8(q.JSC$17255_channel_,
q.JSC$17257_hostPrefix_,q.JSC$17257_path_),b0(5),AN(Z,"TYPE","xmlhttp"),OOl(q.JSC$17257_request_,Z,!1,q.JSC$17257_hostPrefix_,!1))};
_.e=vNl.prototype;_.e.JSC$17257_createXhrIo=function(q){return this.JSC$17255_channel_.JSC$17257_createXhrIo(q)};
_.e.abort=function(){this.JSC$17257_request_&&(this.JSC$17257_request_.cancel(),this.JSC$17257_request_=null);this.JSC$17257_lastStatusCode_=-1};
_.e.JSC$17257_isClosed=function(){return!1};
_.e.JSC$17257_onRequestData=function(q,Z){this.JSC$17257_lastStatusCode_=q.JSC$17250_lastStatusCode_;if(this.state_==0)if(this.JSC$17255_channelDebug_.debug("TestConnection: Got data for stage 1"),Z){try{var w=this.JSC$17255_parser_.parse(Z)}catch(r){zGy(this.JSC$17255_channel_,this);return}this.JSC$17257_hostPrefix_=w[0];this.blockedPrefix_=w[1]}else this.JSC$17255_channelDebug_.debug("TestConnection: Null responseText"),zGy(this.JSC$17255_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(b0(7),Date.now()):Z=="11111"?(b0(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17257_lastStatusCode_=200,this.JSC$17257_request_.cancel(),this.JSC$17255_channelDebug_.debug("Test connection succeeded; using streaming connection"),b0(12),nU(this.JSC$17255_channel_,this,!0)):(b0(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.e.JSC$17257_onRequestComplete=function(){this.JSC$17257_lastStatusCode_=this.JSC$17257_request_.JSC$17250_lastStatusCode_;this.JSC$17257_request_.JSC$17250_successful_?this.state_==0?(this.JSC$17255_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,tAq(this)):(this.state_=2,RGV(this))):this.state_==2&&(this.JSC$17255_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17255_channelDebug_.debug("Test connection succeeded; using streaming connection"),
b0(12),nU(this.JSC$17255_channel_,this,!0)):(this.JSC$17255_channelDebug_.debug("Test connection failed; not using streaming"),b0(11),nU(this.JSC$17255_channel_,this,!1))):(this.JSC$17255_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?b0(9):this.state_==2&&b0(10),zGy(this.JSC$17255_channel_,this,this.JSC$17257_request_.getLastError()))};
_.e.JSC$17257_shouldUseSecondaryDomains=function(){return this.JSC$17255_channel_.JSC$17257_shouldUseSecondaryDomains()};
_.e.isActive=function(){return this.JSC$17255_channel_.isActive()};
_.e.notifyServerReachabilityEvent=function(q){this.JSC$17255_channel_.notifyServerReachabilityEvent(q)};var Qr=function(q,Z,w){this.state_=1;this.JSC$17258_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17258_channelDebug_=new uE;this.JSC$17258_parser_=new e$;this.firstTestResults_=q||null;this.secondTestResults_=Z!=null?Z:null;this.asyncTest_=w||!1},Bm7=function(q,Z){this.JSC$17260_mapId=q;
this.map=Z;this.context=null};
_.e=Qr.prototype;_.e.JSC$17262_extraHeaders_=null;_.e.JSC$17262_extraParams_=null;_.e.forwardChannelRequest_=null;_.e.JSC$17262_backChannelRequest_=null;_.e.JSC$17262_path_=null;_.e.JSC$17262_forwardChannelUri_=null;_.e.JSC$17262_backChannelUri_=null;_.e.JSC$17262_hostPrefix_=null;_.e.JSC$17262_nextRid_=0;_.e.JSC$17262_nextMapId_=0;_.e.handler_=null;_.e.JSC$17262_forwardChannelTimerId_=null;_.e.JSC$17262_backChannelTimerId_=null;_.e.JSC$17262_deadBackChannelTimerId_=null;_.e.connectionTest_=null;
_.e.useChunked_=null;_.e.JSC$17262_lastArrayId_=-1;_.e.JSC$17262_lastPostResponseArrayId_=-1;_.e.JSC$17262_lastStatusCode_=-1;_.e.JSC$17262_forwardChannelRetryCount_=0;_.e.JSC$17262_backChannelRetryCount_=0;_.e.JSC$17262_channelVersion_=8;var apC={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},nN8=function(q,Z,w,r){_.$2.call(this,"timingevent",q);this.size=Z;this.rtt=w;this.retries=r};
_.yU(nN8,_.$2);var QyV=function(q){_.$2.call(this,"serverreachability",q)};
_.yU(QyV,_.$2);Qr.prototype.connect=function(q,Z,w,r,Y){this.JSC$17258_channelDebug_.debug("connect()");b0(0);this.JSC$17262_path_=Z;this.JSC$17262_extraParams_=w||{};r&&Y!==void 0&&(this.JSC$17262_extraParams_.OSID=r,this.JSC$17262_extraParams_.OAID=Y);this.asyncTest_?(oE((0,_.Lh)(this.connectTest_,this,q),100),ENC(this)):this.connectTest_(q)};
Qr.prototype.disconnect=function(){this.JSC$17258_channelDebug_.debug("disconnect()");xtZ(this);if(this.state_==3){var q=this.JSC$17262_nextRid_++,Z=this.JSC$17262_forwardChannelUri_.clone();_.Kh(Z,"SID",this.sid_);_.Kh(Z,"RID",q);_.Kh(Z,"TYPE","terminate");Ej(this,Z);q=new JP(this,this.JSC$17258_channelDebug_,this.sid_,q);q.JSC$17250_type_=2;q.JSC$17250_baseUri_=_.hq(Z.clone());(new Image).src=q.JSC$17250_baseUri_.toString();q.JSC$17250_requestStartTime_=Date.now();HOb(q)}Tmb(this)};
Qr.prototype.connectTest_=function(q){this.JSC$17258_channelDebug_.debug("connectTest_()");this.connectionTest_=new vNl(this,this.JSC$17258_channelDebug_);this.connectionTest_.JSC$17257_extraHeaders_=this.JSC$17262_extraHeaders_;this.connectionTest_.JSC$17255_parser_=this.JSC$17258_parser_;this.connectionTest_.connect(q)};
var ENC=function(q){q.JSC$17258_channelDebug_.debug("connectChannel_()");q.JSC$17262_ensureInState_(1,0);q.JSC$17262_forwardChannelUri_=jyu(q,q.JSC$17262_path_);UtZ(q)},xtZ=function(q){q.connectionTest_&&(q.connectionTest_.abort(),q.connectionTest_=null);
q.JSC$17262_backChannelRequest_&&(q.JSC$17262_backChannelRequest_.cancel(),q.JSC$17262_backChannelRequest_=null);q.JSC$17262_backChannelTimerId_&&(_.$1.clearTimeout(q.JSC$17262_backChannelTimerId_),q.JSC$17262_backChannelTimerId_=null);ki6(q);q.forwardChannelRequest_&&(q.forwardChannelRequest_.cancel(),q.forwardChannelRequest_=null);q.JSC$17262_forwardChannelTimerId_&&(_.$1.clearTimeout(q.JSC$17262_forwardChannelTimerId_),q.JSC$17262_forwardChannelTimerId_=null)},KOy=function(q,Z){if(q.state_==0)throw Error("zk");
q.JSC$17258_outgoingMaps_.length==1E3&&q.JSC$17258_parser_.stringify(Z);q.JSC$17258_outgoingMaps_.push(new Bm7(q.JSC$17262_nextMapId_++,Z));q.state_!=2&&q.state_!=3||UtZ(q)};
Qr.prototype.JSC$17257_isClosed=function(){return this.state_==0};
Qr.prototype.getState=function(){return this.state_};
var UtZ=function(q){q.forwardChannelRequest_||q.JSC$17262_forwardChannelTimerId_||(q.JSC$17262_forwardChannelTimerId_=oE((0,_.Lh)(q.JSC$17262_onStartForwardChannelTimer_,q),0),q.JSC$17262_forwardChannelRetryCount_=0)};
Qr.prototype.JSC$17262_onStartForwardChannelTimer_=function(q){this.JSC$17262_forwardChannelTimerId_=null;syb(this,q)};
var syb=function(q,Z){q.JSC$17258_channelDebug_.debug("startForwardChannel_");if(q.state_==1){if(!Z){q.JSC$17258_channelDebug_.debug("open_()");q.JSC$17262_nextRid_=Math.floor(Math.random()*1E5);Z=q.JSC$17262_nextRid_++;var w=new JP(q,q.JSC$17258_channelDebug_,"",Z);w.JSC$17250_extraHeaders_=q.JSC$17262_extraHeaders_;var r=Ipq(q),Y=q.JSC$17262_forwardChannelUri_.clone();_.Kh(Y,"RID",Z);_.Kh(Y,"CVER","1");Ej(q,Y);VAF(w,Y,r);q.forwardChannelRequest_=w;q.state_=2}}else q.state_==3&&(Z?c_y(q,Z):q.JSC$17258_outgoingMaps_.length==
0?q.JSC$17258_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):q.forwardChannelRequest_||(c_y(q),q.JSC$17258_channelDebug_.debug("startForwardChannel_ finished, sent request")))},c_y=function(q,Z){if(Z)if(q.JSC$17262_channelVersion_>6){q.JSC$17258_outgoingMaps_=q.pendingMaps_.concat(q.JSC$17258_outgoingMaps_);
q.pendingMaps_.length=0;var w=q.JSC$17262_nextRid_-1;Z=Ipq(q)}else w=Z.JSC$17248_rid_,Z=Z.JSC$17250_postData_;else w=q.JSC$17262_nextRid_++,Z=Ipq(q);var r=q.JSC$17262_forwardChannelUri_.clone();_.Kh(r,"SID",q.sid_);_.Kh(r,"RID",w);_.Kh(r,"AID",q.JSC$17262_lastArrayId_);Ej(q,r);w=new JP(q,q.JSC$17258_channelDebug_,q.sid_,w,q.JSC$17262_forwardChannelRetryCount_+1);w.JSC$17250_extraHeaders_=q.JSC$17262_extraHeaders_;w.setTimeout(1E4+Math.round(1E4*Math.random()));q.forwardChannelRequest_=w;VAF(w,r,Z)},
Ej=function(q,Z){q.handler_&&(q=q.handler_.JSC$17269_getAdditionalParams())&&_.R4.forEach(q,function(w,r){_.Kh(Z,r,w)})},Ipq=function(q){var Z=Math.min(q.JSC$17258_outgoingMaps_.length,1E3),w=["count="+Z];
if(q.JSC$17262_channelVersion_>6&&Z>0){var r=q.JSC$17258_outgoingMaps_[0].JSC$17260_mapId;w.push("ofs="+r)}else r=0;for(var Y={},C=0;C<Z;Y={mapId$jscomp$3:void 0},C++){Y.mapId$jscomp$3=q.JSC$17258_outgoingMaps_[C].JSC$17260_mapId;var d=q.JSC$17258_outgoingMaps_[C].map;Y.mapId$jscomp$3=q.JSC$17262_channelVersion_<=6?C:Y.mapId$jscomp$3-r;try{_.R4.forEach(d,function(O){return function(H,L){w.push("req"+O.mapId$jscomp$3+"_"+L+"="+encodeURIComponent(H))}}(Y))}catch(O){w.push("req"+Y.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}q.pendingMaps_=q.pendingMaps_.concat(q.JSC$17258_outgoingMaps_.splice(0,Z));
return w.join("&")},MAZ=function(q){q.JSC$17262_backChannelRequest_||q.JSC$17262_backChannelTimerId_||(q.JSC$17262_backChannelAttemptId_=1,q.JSC$17262_backChannelTimerId_=oE((0,_.Lh)(q.JSC$17262_onStartBackChannelTimer_,q),0),q.JSC$17262_backChannelRetryCount_=0)},Nml=function(q){if(q.JSC$17262_backChannelRequest_||q.JSC$17262_backChannelTimerId_||q.JSC$17262_backChannelRetryCount_>=3)return!1;
q.JSC$17258_channelDebug_.debug("Going to retry GET");q.JSC$17262_backChannelAttemptId_++;q.JSC$17262_backChannelTimerId_=oE((0,_.Lh)(q.JSC$17262_onStartBackChannelTimer_,q),FOl(q,q.JSC$17262_backChannelRetryCount_));q.JSC$17262_backChannelRetryCount_++;return!0};
Qr.prototype.JSC$17262_onStartBackChannelTimer_=function(){this.JSC$17262_backChannelTimerId_=null;this.JSC$17258_channelDebug_.debug("Creating new HttpRequest");this.JSC$17262_backChannelRequest_=new JP(this,this.JSC$17258_channelDebug_,this.sid_,"rpc",this.JSC$17262_backChannelAttemptId_);this.JSC$17262_backChannelRequest_.JSC$17250_extraHeaders_=this.JSC$17262_extraHeaders_;this.JSC$17262_backChannelRequest_.JSC$17250_readyStateChangeThrottleMs_=0;var q=this.JSC$17262_backChannelUri_.clone();_.Kh(q,
"RID","rpc");_.Kh(q,"SID",this.sid_);_.Kh(q,"CI",this.useChunked_?"0":"1");_.Kh(q,"AID",this.JSC$17262_lastArrayId_);Ej(this,q);_.Kh(q,"TYPE","xmlhttp");OOl(this.JSC$17262_backChannelRequest_,q,!0,this.JSC$17262_hostPrefix_,!1);this.JSC$17258_channelDebug_.debug("New Request created")};
var nU=function(q,Z,w){q.JSC$17258_channelDebug_.debug("Test Connection Finished");q.useChunked_=q.secondTestResults_==null?w:!q.secondTestResults_;q.JSC$17262_lastStatusCode_=Z.JSC$17257_lastStatusCode_;q.asyncTest_||ENC(q)},zGy=function(q,Z){q.JSC$17258_channelDebug_.debug("Test Connection Failed");
q.JSC$17262_lastStatusCode_=Z.JSC$17257_lastStatusCode_;a8(q,2)};
Qr.prototype.JSC$17257_onRequestData=function(q,Z){if(this.state_!=0&&(this.JSC$17262_backChannelRequest_==q||this.forwardChannelRequest_==q))if(this.JSC$17262_lastStatusCode_=q.JSC$17250_lastStatusCode_,this.forwardChannelRequest_==q&&this.state_==3)if(this.JSC$17262_channelVersion_>7){try{var w=this.JSC$17258_parser_.parse(Z)}catch(r){w=null}if(Array.isArray(w)&&w.length==3)if(Z=w,Z[0]==0)a:if(this.JSC$17258_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17262_backChannelTimerId_)this.JSC$17258_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17262_backChannelRequest_)if(this.JSC$17262_backChannelRequest_.JSC$17250_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17250_requestStartTime_)ki6(this),this.JSC$17262_backChannelRequest_.cancel(),this.JSC$17262_backChannelRequest_=null;else break a;else this.JSC$17258_channelDebug_.warning("We do not have a BackChannel established");Nml(this);b0(19)}else this.JSC$17262_lastPostResponseArrayId_=Z[1],q=this.JSC$17262_lastPostResponseArrayId_-this.JSC$17262_lastArrayId_,0<
q&&(Z=Z[2],this.JSC$17258_channelDebug_.debug(Z+" bytes (in "+q+" arrays) are outstanding on the BackChannel"),Z<37500&&this.useChunked_&&this.JSC$17262_backChannelRetryCount_==0&&!this.JSC$17262_deadBackChannelTimerId_&&(this.JSC$17262_deadBackChannelTimerId_=oE((0,_.Lh)(this.JSC$17262_onBackChannelDead_,this),6E3)));else this.JSC$17258_channelDebug_.debug("Bad POST response data returned"),a8(this,11)}else Z!="y2f%"&&(this.JSC$17258_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
a8(this,11));else this.JSC$17262_backChannelRequest_==q&&ki6(this),_.W6(Z)||(q=this.JSC$17258_parser_.parse(Z),this.onInput_(q))};
Qr.prototype.JSC$17262_onBackChannelDead_=function(){this.JSC$17262_deadBackChannelTimerId_!=null&&(this.JSC$17262_deadBackChannelTimerId_=null,this.JSC$17262_backChannelRequest_.cancel(),this.JSC$17262_backChannelRequest_=null,Nml(this),b0(20))};
var ki6=function(q){q.JSC$17262_deadBackChannelTimerId_!=null&&(_.$1.clearTimeout(q.JSC$17262_deadBackChannelTimerId_),q.JSC$17262_deadBackChannelTimerId_=null)};
Qr.prototype.JSC$17257_onRequestComplete=function(q){this.JSC$17258_channelDebug_.debug("Request complete");if(this.JSC$17262_backChannelRequest_==q){ki6(this);this.JSC$17262_backChannelRequest_=null;var Z=2}else if(this.forwardChannelRequest_==q)this.forwardChannelRequest_=null,Z=1;else return;this.JSC$17262_lastStatusCode_=q.JSC$17250_lastStatusCode_;if(this.state_!=0)if(q.JSC$17250_successful_)if(Z==1){Z=q.JSC$17250_postData_?q.JSC$17250_postData_.length:0;q=Date.now()-q.JSC$17250_requestStartTime_;
var w=YWq;w.dispatchEvent(new nN8(w,Z,q,this.JSC$17262_forwardChannelRetryCount_));UtZ(this);this.handler_&&this.handler_.JSC$17269_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else MAZ(this);else{w=q.getLastError();if(w==3||w==7||w==0&&this.JSC$17262_lastStatusCode_>0)this.JSC$17258_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17258_channelDebug_.debug("Maybe retrying, last error: "+eGC(w,this.JSC$17262_lastStatusCode_));var r;if(r=Z==1)this.forwardChannelRequest_||
this.JSC$17262_forwardChannelTimerId_||this.state_==1||this.JSC$17262_forwardChannelRetryCount_>=2?r=!1:(this.JSC$17258_channelDebug_.debug("Going to retry POST"),this.JSC$17262_forwardChannelTimerId_=oE((0,_.Lh)(this.JSC$17262_onStartForwardChannelTimer_,this,q),FOl(this,this.JSC$17262_forwardChannelRetryCount_)),this.JSC$17262_forwardChannelRetryCount_++,r=!0);if(r||Z==2&&Nml(this))return;this.JSC$17258_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17258_channelDebug_.debug("Error: HTTP request failed");
switch(w){case 1:a8(this,5);break;case 4:a8(this,10);break;case 3:a8(this,6);break;case 7:a8(this,12);break;default:a8(this,2)}}};
var FOl=function(q,Z){var w=5E3+Math.floor(Math.random()*1E4);q.isActive()||(q.JSC$17258_channelDebug_.debug("Inactive channel"),w*=2);return w*Z};
Qr.prototype.onInput_=function(q){for(var Z=0;Z<q.length;Z++){var w=q[Z];this.JSC$17262_lastArrayId_=w[0];w=w[1];this.state_==2?w[0]=="c"?(this.sid_=w[1],this.JSC$17262_hostPrefix_=w[2],w=w[3],w!=null?this.JSC$17262_channelVersion_=w:this.JSC$17262_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17269_channelOpened(),this.JSC$17262_backChannelUri_=J_8(this,this.JSC$17262_hostPrefix_,this.JSC$17262_path_),MAZ(this)):w[0]=="stop"&&a8(this,7):this.state_==3&&(w[0]=="stop"?a8(this,7):
w[0]!="noop"&&this.handler_&&this.handler_.JSC$17269_channelHandleArray(w),this.JSC$17262_backChannelRetryCount_=0)}};
Qr.prototype.JSC$17262_ensureInState_=function(q){if(!_.Mj(arguments,this.state_))throw Error("Ak`"+this.state_);};
var a8=function(q,Z){q.JSC$17258_channelDebug_.info("Error code "+Z);if(Z==2||Z==9){var w=null;q.handler_&&(w=null);var r=(0,_.Lh)(q.testGoogleComCallback_,q);w||(w=new _.M$("//www.google.com/images/cleardot.gif"),_.hq(w));IQl(w.toString(),1E4,r)}else b0(2);q.onError_(Z)};
Qr.prototype.testGoogleComCallback_=function(q){q?(this.JSC$17258_channelDebug_.info("Successfully pinged google.com"),b0(2)):(this.JSC$17258_channelDebug_.info("Failed to ping google.com"),b0(1),this.onError_(8))};
Qr.prototype.onError_=function(q){this.JSC$17258_channelDebug_.debug("HttpChannel: error - "+q);this.state_=0;this.handler_&&this.handler_.JSC$17269_channelError(q);Tmb(this);xtZ(this)};
var Tmb=function(q){q.state_=0;q.JSC$17262_lastStatusCode_=-1;if(q.handler_)if(q.pendingMaps_.length==0&&q.JSC$17258_outgoingMaps_.length==0)q.handler_.JSC$17269_channelClosed();else{q.JSC$17258_channelDebug_.debug("Number of undelivered maps, pending: "+q.pendingMaps_.length+", outgoing: "+q.JSC$17258_outgoingMaps_.length);var Z=_.Ge(q.pendingMaps_),w=_.Ge(q.JSC$17258_outgoingMaps_);q.pendingMaps_.length=0;q.JSC$17258_outgoingMaps_.length=0;q.handler_.JSC$17269_channelClosed(Z,w)}},jyu=function(q,
Z){Z=bOq(q,null,Z);
q.JSC$17258_channelDebug_.debug("GetForwardChannelUri: "+Z);return Z},J_8=function(q,Z,w){Z=bOq(q,q.JSC$17257_shouldUseSecondaryDomains()?Z:null,w);
q.JSC$17258_channelDebug_.debug("GetBackChannelUri: "+Z);return Z},bOq=function(q,Z,w){var r=_.UJ(w);
if(r.JSC$7906_domain_!="")Z&&_.lQ(r,Z+"."+r.JSC$7906_domain_),_.GM(r,r.JSC$7906_port_);else{var Y=window.location;r=ijq(Y.protocol,Z?Z+"."+Y.hostname:Y.hostname,+Y.port,w)}q.JSC$17262_extraParams_&&_.R4.forEach(q.JSC$17262_extraParams_,function(C,d){_.Kh(r,d,C)});
_.Kh(r,"VER",q.JSC$17262_channelVersion_);Ej(q,r);return r};
Qr.prototype.JSC$17257_createXhrIo=function(q){if(q)throw Error("xk");q=new _.vD;q.JSC$7669_withCredentials_=!1;return q};
Qr.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Qr.prototype.notifyServerReachabilityEvent=function(q){var Z=YWq;Z.dispatchEvent(new QyV(Z,q))};
Qr.prototype.JSC$17257_shouldUseSecondaryDomains=function(){return!1};
new Ymq;var lp8=function(){};
_.e=lp8.prototype;_.e.JSC$17269_channelOpened=function(){};
_.e.JSC$17269_channelHandleArray=function(){};
_.e.JSC$17269_channelSuccess=function(){};
_.e.JSC$17269_channelError=function(){};
_.e.JSC$17269_channelClosed=function(){};
_.e.JSC$17269_getAdditionalParams=function(){return{}};
_.e.isActive=function(){return!0};var GiZ=function(q){q.front_.length===0&&(q.front_=q.back_,q.front_.reverse(),q.back_=[])};
_.e=FBV.prototype;_.e.enqueue=function(q){this.back_.push(q)};
_.e.peek=function(){GiZ(this);return _.k1(this.front_)};
_.e.getCount=function(){return this.front_.length+this.back_.length};
_.e.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.e.clear=function(){this.front_=[];this.back_=[]};
_.e.contains=function(q){return _.Mj(this.front_,q)||_.Mj(this.back_,q)};
_.e.remove=function(q){var Z=this.front_;var w=Array.prototype.lastIndexOf.call(Z,q,Z.length-1);w>=0?(_.bXX(Z,w),Z=!0):Z=!1;return Z||_.F9(this.back_,q)};
_.e.getValues=function(){for(var q=[],Z=this.front_.length-1;Z>=0;--Z)q.push(this.front_[Z]);Z=this.back_.length;for(var w=0;w<Z;++w)q.push(this.back_[w]);return q};var xP=function(q){this.JSC$17273_map_=new _.DG;this.size=0;q&&this.addAll(q)},pjy=function(q){var Z=typeof q;
return Z=="object"&&q||Z=="function"?"o"+_.yj(q):Z.charAt(0)+q};
_.e=xP.prototype;_.e.getCount=function(){return this.JSC$17273_map_.size};
_.e.add=function(q){this.JSC$17273_map_.set(pjy(q),q);this.size=this.JSC$17273_map_.size};
_.e.addAll=function(q){q=_.Fi(q);for(var Z=q.length,w=0;w<Z;w++)this.add(q[w]);this.size=this.JSC$17273_map_.size};
_.e.removeAll=function(q){q=_.Fi(q);for(var Z=q.length,w=0;w<Z;w++)this.remove(q[w]);this.size=this.JSC$17273_map_.size};
_.e.delete=function(q){q=this.JSC$17273_map_.remove(pjy(q));this.size=this.JSC$17273_map_.size;return q};
_.e.remove=function(q){return this.delete(q)};
_.e.clear=function(){this.JSC$17273_map_.clear();this.size=0};
_.e.isEmpty=function(){return this.JSC$17273_map_.size===0};
_.e.has=function(q){return this.JSC$17273_map_.containsKey(pjy(q))};
_.e.contains=function(q){return this.JSC$17273_map_.containsKey(pjy(q))};
_.e.getValues=function(){return this.JSC$17273_map_.getValues()};
_.e.values=function(){return this.JSC$17273_map_.values()};
_.e.clone=function(){return new xP(this)};
_.e.equals=function(q){return this.getCount()==h1C(q)&&XjC(this,q)};
var XjC=function(q,Z){var w=h1C(Z);if(q.getCount()>w)return!1;!(Z instanceof xP)&&w>5&&(Z=new xP(Z));return yHb(q,function(r){var Y=Z;return Y.contains&&typeof Y.contains=="function"?Y.contains(r):Y.containsValue&&typeof Y.containsValue=="function"?Y.containsValue(r):_.pX(Y)||typeof Y==="string"?_.Mj(Y,r):_.R4.containsValue(Y,r)})};
xP.prototype.__iterator__=function(){return this.JSC$17273_map_.__iterator__(!1)};
xP.prototype[Symbol.iterator]=function(){return this.values()};var mtC={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(q){return(this._clampValue(q)-this.min)/(this.max-this.min)},
_clampValue:function(q){return Math.min(this.max,Math.max(this.min,this._calcStep(q)))},
_calcStep:function(q){q=parseFloat(q);if(!this.step)return q;q=Math.round((q-this.min)/this.step);return this.step<1?q/(1/this.step)+this.min:q*this.step+this.min},
_validateValue:function(){var q=this._clampValue(this.value);this.value=this.oldValue=isNaN(q)?this.oldValue:q;return this.value!==q},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var A_b;var fpc;_.$l({_template:function(){if(fpc!==void 0)return fpc;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;A_b===void 0&&(A_b=document.createElement("template"));var r=A_b;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return fpc=q},
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(){_.I_(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(q){q.keyCode===27&&(q.preventDefault(),this.close())},
_track:function(q){if(!this.persistent&&!this.disableSwipe)switch(q.preventDefault(),q.detail.state){case "start":this._trackStart(q);break;case "track":this._trackMove(q);break;case "end":this._trackEnd(q)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var q=this.$.contentContainer.getBoundingClientRect();this._savedWidth=q.width;this._translateOffset=this.position==="left"?q.left:q.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(q){this._trackDetails&&(this._translateDrawer(q.detail.dx+this._translateOffset),this._trackDetails.push({dx:q.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(q){if(this._trackDetails){var Z=q.detail.dx+this._translateOffset,w=this.getWidth();Z=this.position==="left"?Z>=0||Z<=-w:Z<=0||Z>=w;if(!Z){var r=this._trackDetails;this._trackDetails=null;this._flingDrawer(q,r);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}w/=2;q.detail.dx<-w?this.opened=this.position==="right":q.detail.dx>w&&(this.opened=this.position==="left");Z?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(q,Z){for(var w=Date.now(),r=w-100,Y,C=0,d=Z.length-1;C<=d;){var O=C+d>>1,H=Z[O];H.timeStamp>=r?(Y=H,d=O-1):C=O+1}return Y?(q.detail.dx-Y.dx)/(w-Y.timeStamp||1):0},
_flingDrawer:function(q,Z){Z=this._calculateVelocity(q,Z);if(!(Math.abs(Z)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;q=q.detail.dx+this._translateOffset;var w=this.getWidth(),r=this.position==="left",Y=Z>0;Y?(Z=Math.max(Z,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(Z=Math.min(Z,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");Z=this._FLING_INITIAL_SLOPE*(!Y&&r?-(q+w):Y&&!r?w-q:-q)/Z;this._styleTransitionDuration(Z);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,Z)}},
_styleTransitionDuration:function(q){this.style.transitionDuration=q+"ms";this.$.contentContainer.style.transitionDuration=q+"ms";this.$.scrim.style.transitionDuration=q+"ms"},
_styleTransitionTimingFunction:function(q){this.$.contentContainer.style.transitionTimingFunction=q;this.$.scrim.style.transitionTimingFunction=q},
_translateDrawer:function(q){var Z=this.getWidth();this.position==="left"?(q=Math.max(-Z,Math.min(q,0)),this.$.scrim.style.opacity=1+q/Z):(q=Math.max(0,Math.min(q,Z)),this.$.scrim.style.opacity=1-q/Z);this.translate3d(q+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var q=this._drawerState;q===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;q!==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=""),q!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var q=_.os(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"])');q.length>0?(this._firstTabStop=q[0],this._lastTabStop=q[q.length-1]):
this._lastTabStop=this._firstTabStop=null;(q=this.getAttribute("tabindex"))&&parseInt(q,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(q){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||q.keyCode!==9||(q.shiftKey?this._firstTabStop&&_.os(q).localTarget===this._firstTabStop&&(q.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.os(q).localTarget===this._lastTabStop&&(q.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(q,Z){this.toggleClass("visible",q&&!Z,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 Dtq;var hG6;_.$l({_template:function(){if(hG6!==void 0)return hG6;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;Dtq===void 0&&(Dtq=document.createElement("template"));var r=Dtq;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return hG6=q},
is:"tp-yt-paper-progress",behaviors:[mtC],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(q){this.toggleClass("indeterminate",q,this.$.primaryProgress)},
_transformProgress:function(q,Z){q.style.transform=q.style.webkitTransform="scaleX("+Z/100+")"},
_mainRatioChanged:function(q){this._transformProgress(this.$.primaryProgress,q)},
_progressChanged:function(q,Z,w,r,Y){q=this._clampValue(q);Z=this._clampValue(Z);var C=this._calcRatio(q)*100,d=this._calcRatio(Z)*100;this._setSecondaryRatio(C);this._transformProgress(this.$.secondaryProgress,C);this._transformProgress(this.$.primaryProgress,d);this.secondaryProgress=q;Y?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",Z);this.setAttribute("aria-valuemin",w);this.setAttribute("aria-valuemax",r)},
_disabledChanged:function(q){this.setAttribute("aria-disabled",q?"true":"false")},
_hideSecondaryProgress:function(q){return q===0}});var y_b;var iOl;var gNb=function(){};
_.e=gNb.prototype;_.e.registered=function(){};
_.e.addOwnKeyBinding=function(){};
_.e.removeOwnKeyBindings=function(){};
_.e.keyboardEventMatchesKeys=function(){};
_.e._collectKeyBindings=function(){};
_.e._prepKeyBindings=function(){};
_.e._addKeyBinding=function(){};
_.e._resetKeyEventListeners=function(){};
_.e._listenKeyEventListeners=function(){};
_.e._unlistenKeyEventListeners=function(){};
_.e._onKeyBindingEvent=function(){};
_.e._triggerKeyHandler=function(){};
_.e._tapHandler=function(){};
_.e._focusChanged=function(){};
_.e._detectKeyboardFocus=function(){};
_.e._userActivate=function(){};
_.e._upHandler=function(){};
_.e._spaceKeyDownHandler=function(){};
_.e._spaceKeyUpHandler=function(){};
_.e._asyncClick=function(){};
_.e._pressedChanged=function(){};
_.e._ariaActiveAttributeChanged=function(){};
_.e._activeChanged=function(){};
_.e._controlStateChanged=function(){};
_.e._changedButtonState=function(){};
_.e._focusBlurHandler=function(){};
_.e._disabledChanged=function(){};
_.e._changedControlState=function(){};
_.e._buttonStateChanged=function(){};
_.e._downHandler=function(){};
_.e.ensureRipple=function(){};
_.e.getRipple=function(){};
_.e.hasRipple=function(){};
_.e._noinkChanged=function(){};
_.e._calcRatio=function(){};
_.e._clampValue=function(){};
_.e._calcStep=function(){};
_.e._validateValue=function(){};
_.e._update=function(){};
_.e._setImmediateValue=function(){};
_.e._setExpand=function(){};
_.e._setDragging=function(){};
_.e._setTransiting=function(){};
_.e._setMarkers=function(){};
_.e._setPressed=function(){};
_.e._setPointerDown=function(){};
_.e._setReceivedFocusFromKeyboard=function(){};
_.e._setFocused=function(){};
_.e._setRatio=function(){};
gNb=_.$l({_template:function(){if(iOl!==void 0)return iOl;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;y_b===void 0&&(y_b=document.createElement("template"));var r=y_b;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return iOl=q},
is:"tp-yt-paper-slider",behaviors:[_.Pt,_.Ht,_.cWD,mtC],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&&_.R_(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(q,Z,w){this.setAttribute("aria-valuemin",Z);this.setAttribute("aria-valuemax",w);this.setAttribute("aria-valuenow",q);this._positionKnob(this._calcRatio(q)*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(q){this._setImmediateValue(this._calcStep(this._calcKnobPosition(q)));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(q){return(this.max-this.min)*q/100+this.min},
_onTrack:function(q){q.stopPropagation();switch(q.detail.state){case "start":this._trackStart(q);break;case "track":this._trackX(q);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(q){this.dragging||this._trackStart(q);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,q.detail.dx*(this._isRTL?-1:1)));q=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(q);q=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(q+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var q=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;q.transform=q.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(q){this._expandKnob();q.preventDefault();this.focus()},
_bartrack:function(q){this._allowBarEvent(q)&&this._onTrack(q)},
_barclick:function(q){this._w=this.$.sliderBar.offsetWidth;var Z=this.$.sliderBar.getBoundingClientRect();Z=(q.detail.x-Z.left)/this._w*100;this._isRTL&&(Z=100-Z);var w=this.ratio;this._setTransiting(!0);this._positionKnob(Z);w===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
q.preventDefault();this.focus()},
_bardown:function(q){this._allowBarEvent(q)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(q))},
_knobTransitionEnd:function(q){q.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(q,Z,w,r){r||this._setMarkers([]);Z=Math.round((w-Z)/this.step);Z>q&&(Z=q);if(Z<0||!isFinite(Z))Z=0;this._setMarkers(Array(Z))},
_mergeClasses:function(q){return Object.keys(q).filter(function(Z){return q[Z]}).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(q){return!this.ignoreBarTouch||q.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(q){this._isRTL?this._incrementKey(q):this._decrementKey(q)},
_rightKey:function(q){this._isRTL?this._decrementKey(q):this._incrementKey(q)},
_incrementKey:function(q){this.disabled||(q.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),q.preventDefault())},
_decrementKey:function(q){this.disabled||(q.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),q.preventDefault())},
_changeValue:function(q){this.value=q.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(q){q.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.Ib9._createRipple.call(this)},
_focusedChanged:function(q){q&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=q?"":"none",this._ripple.holdDown=q)}});var qfF;var ZLb;var T0=null,waF=function(){};
_.e=waF.prototype;_.e.fit=function(){};
_.e._discoverInfo=function(){};
_.e.resetFit=function(){};
_.e.refit=function(){};
_.e.position=function(){};
_.e.constrain=function(){};
_.e._sizeDimension=function(){};
_.e.__sizeDimension=function(){};
_.e.center=function(){};
_.e.__getNormalizedRect=function(){};
_.e.__getOffscreenArea=function(){};
_.e.__getPosition=function(){};
_.e.notifyResize=function(){};
_.e.assignParentResizable=function(){};
_.e.stopResizeNotificationsFor=function(){};
_.e._subscribeIronResize=function(){};
_.e._unsubscribeIronResize=function(){};
_.e.resizerShouldNotify=function(){};
_.e._onDescendantIronResize=function(){};
_.e._fireResize=function(){};
_.e._onIronRequestResizeNotifications=function(){};
_.e._parentResizableChanged=function(){};
_.e._notifyDescendant=function(){};
_.e._requestResizeNotifications=function(){};
_.e._findParent=function(){};
_.e.toggle=function(){};
_.e.open=function(){};
_.e.close=function(){};
_.e.cancel=function(){};
_.e.invalidateTabbables=function(){};
_.e._ensureSetup=function(){};
_.e._canceledChanged=function(){};
_.e._withBackdropChanged=function(){};
_.e._prepareRenderOpened=function(){};
_.e._finishRenderOpened=function(){};
_.e._finishRenderClosed=function(){};
_.e._preparePositioning=function(){};
_.e._finishPositioning=function(){};
_.e._applyFocus=function(){};
_.e._onCaptureClick=function(){};
_.e._onCaptureFocus=function(){};
_.e._onCaptureEsc=function(){};
_.e._onCaptureTab=function(){};
_.e._onIronResize=function(){};
_.e._onNodesChange=function(){};
_.e.__ensureFirstLastFocusables=function(){};
_.e.__openedChanged=function(){};
_.e.__deraf=function(){};
_.e.__updateScrollObservers=function(){};
_.e.__addScrollListeners=function(){};
_.e.__removeScrollListeners=function(){};
_.e.__isValidScrollAction=function(){};
_.e.__onCaptureScroll=function(){};
_.e.__saveScrollPosition=function(){};
_.e.__restoreScrollPosition=function(){};
_.e._setCanceled=function(){};
waF=_.$l({_template:function(){if(ZLb!==void 0)return ZLb;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;qfF===void 0&&(qfF=document.createElement("template"));var r=qfF;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);return ZLb=q},
is:"tp-yt-paper-toast",behaviors:[_.Tv],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(){_.d4._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.aD.requestAvailability()},
show:function(q){typeof q=="string"&&(q={text:q});for(var Z in q)Z.indexOf("_")===0?_.d4._warn('The property "'+Z+'" is private and was not set.'):Z in this?this[Z]=q[Z]:_.d4._warn('The property "'+Z+'" is not valid.');this.open()},
hide:function(){this.close()},
__onTransitionEnd:function(q){q&&q.target===this&&q.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(T0&&T0!==this&&T0.close(),T0=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):T0===this&&(T0=null);_.xJ._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(q){this.positionTarget=q},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var rpl=new _.D("disablePersonalizationAction");var snq=new _.D("showDmaConsentFlowCommand");var IS8=new _.D("showMmgNoticeCommand");var Yfc=new _.D("saveConsentAction");var $Oy=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.By(q)};
_.z($Oy,_.XD);var ehS=_.nv1($Oy);var C$6=new _.D("updateTopbarAvatarAction");var P$q=new _.D("channelHandleValidationResultRenderer");var dO7=new _.D("generateHandleFromNameResultRenderer");var VR7=new _.D("channelHandleInputRenderer");var OLl=new _.D("copyLinkRenderer");var HL6=new _.D("timedCommand");var W5l=new _.D("clearCookieAction");var ody=new _.D("getMultiPageMenuAction");var uE6=new _.D("addToGuideSectionAction"),L5F=new _.D("removeFromGuideSectionAction");var Sf7=new _.D("updateNotificationsUnseenCountAction");var vdu=new _.D("persistSubscriptionsDisplayPreferencesCommand");var j6C=new _.D("resetChannelUnreadCountCommand");var tRu=new _.D("resetSubscriptionsUnreadDotCommand");var RhZ=new _.D("selectCountryCommand");var bLF=new _.D("selectLanguageCommand");var y$7=new _.D("sendFeedbackAction");var JpV=new _.D("uploadImageToScottyCommand");var zhc=new _.D("webNativeShareCommand");var B7u=new _.D("registerPromoCommand");var ax7=new _.D("setPushNotificationsEnabledCommand");var ndZ=new _.D("desktopTopbarRenderer");var Q6F=new _.D("surveyFollowUpRenderer");var Edc=new _.D("handlesClaimingRadioOptionRenderer");var xOc=new _.D("hotkeyDialogRenderer");var T7u=new _.D("modifyReportFormCommand");var UOc=new _.D("accountLinkCommand");var kzc=new _.D("accountUnlinkCommand");var K5V=new _.D("logAccountLinkingEventCommand");var s68=new _.D("guideCollapsibleEntryRenderer");var Ix8=new _.D("guideDownloadsEntryRenderer");var Uj=new _.D("guideEntryRenderer");var cpl=new _.D("getLocationCommand");var MRl=new _.D("locationCollectionCommand");var F5c=new _.D("storiesItemViewModel");var N7F=new _.D("addToRemoteQueueAction");var lx7=new _.D("insertInRemoteQueueAction");var GzD=new _.D("removeFromRemoteQueueAction");var paZ=new _.D("notificationRenderer");var t3q=new _.D("localWatchHistoryCommand");var XaF=new _.D("pdgBuyFlowHeaderRenderer");var mOl=new _.D("pdgColorSliderRenderer");var Ap7=new _.D("pdgCommentOptionRenderer");var fxD=new _.D("pdgCommentPreviewRenderer");var DOS=new _.D("superVodSelectableItemButtonRenderer");var hhu=new _.D("switchButtonRenderer");var ypu=new _.D("upsellDialogRenderer");var iLC=new _.D("feedbackQuestionRenderer"),gdl=new _.D("feedbackOptionRenderer");var qFS=new _.D("sponsorshipsTierRenderer"),Zty=new _.D("sponsorshipsPromotionChannelRenderer");var whV=new _.D("simpleSurveyMessageRenderer");var yql=new _.D("invokeInstrumentManagerAction");var rOD=new _.D("logYpcFlowDismissCommand");var YFV=new _.D("logYpcFlowStartCommand");var $hD=new _.D("unlimitedCreateFamilyEndpoint");var eMb=new _.D("iconBadgeRenderer");var Svy=new _.D("collaborativePlaylistVisibilityValidationRule");var C_l=function(q){_.$2.call(this,"channelMessage");this.message=q};
_.z(C_l,_.$2);var P_c=function(q){_.$2.call(this,"channelError");this.error=q};
_.z(P_c,_.$2);var dhy={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"},V4S={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},OtS={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},HtV={NOW_PLAYING:"nowPlaying",
ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},W4V={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var kP=function(q){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 _.DG;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";q&&(this.id=q.id||q.name,this.name=q.name,this.clientName=q.clientName?q.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=q.app,this.type=q.type||"REMOTE_CONTROL",this.username=q.user||"",this.avatar=q.userAvatarUri||"",this.obfuscatedGaiaId=q.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=q.ownerObfuscatedGaiaId||"",this.theme=q.theme||"u",oj6(this,q.capabilities||""),uxq(this,q.compatibleSenderThemes||""),L4y(this,q.experiments||""),
this.remoteControllerUrl=q.remoteControllerUrl||"",this.localChannelEncryptionKey=q.localChannelEncryptionKey||"",this.deviceContext=q.deviceContext,this.brand=q.brand||"",this.model=q.model||"",this.year=q.year||0,this.os=q.os||"",this.osVersion=q.osVersion||"",this.chipset=q.chipset||"",this.mdxDialServerType=q.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=q.pairingType||"unknown",q=q.deviceInfo)&&(q=JSON.parse(q),this.brand=q.brand||"",this.model=q.model||"",this.year=q.year||
0,this.os=q.os||"",this.osVersion=q.osVersion||"",this.chipset=q.chipset||"",this.clientName=q.clientName?q.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=q.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
kP.prototype.copy=function(){var q={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&&(q.brand=this.brand);
this.model&&(q.model=this.model);this.year&&(q.year=this.year);this.os&&(q.os=this.os);this.osVersion&&(q.osVersion=this.osVersion);this.chipset&&(q.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(q.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(q.mdxDialServerType=this.mdxDialServerType);q=new kP(q);q.connected=this.connected;q.remoteControllerUrl=this.remoteControllerUrl;q.localChannelEncryptionKey=this.localChannelEncryptionKey;q.deviceContext=
this.deviceContext;return q};
kP.prototype.equals=function(q){return q?this.id==q.id:!1};
var oj6=function(q,Z){q.capabilities.clear();_.qY(Z.split(","),_.Oh(_.R4.contains,dhy)).forEach(function(w){q.capabilities.add(w)})},uxq=function(q,Z){q.compatibleSenderThemes.clear();
_.qY(Z.split(","),_.Oh(_.R4.contains,V4S)).forEach(function(w){q.compatibleSenderThemes.add(w)})},L4y=function(q,Z){q.experiments.clear();
Z.split(",").forEach(function(w){q.experiments.add(w)})};var SFl=function(q,Z){this.action=q;this.params=Z||{}};_.yU(Nnc,_.u6);_.e=Nnc.prototype;_.e.JSC$17309_onTick_=function(){this.JSC$17307_interval_=Math.min(3E5,this.JSC$17307_interval_*2);this.JSC$17309_listener_();this.nextTickTime_&&this.start()};
_.e.start=function(){var q=this.JSC$17307_interval_+15E3*Math.random(),Z=this.delay_;Z.isActive()||Z.start(q);this.nextTickTime_=Date.now()+q};
_.e.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.e.isActive=function(){return this.delay_.isActive()};
_.e.reset=function(){this.delay_.stop();this.JSC$17307_interval_=5E3};_.yU(Lv,lp8);_.e=Lv.prototype;_.e.subscribe=function(q,Z,w){return this.pubsub_.subscribe(q,Z,w)};
_.e.unsubscribe=function(q,Z,w){return this.pubsub_.unsubscribe(q,Z,w)};
_.e.unsubscribeByKey=function(q){return this.pubsub_.unsubscribeByKey(q)};
_.e.publish=function(q,Z){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.e.dispose=function(){this.JSC$17310_disposed_||(this.JSC$17310_disposed_=!0,_.Xg(this.pubsub_),this.disconnect(),_.Xg(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17310_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.YK({})})};
_.e.isDisposed=function(){return this.JSC$17310_disposed_};
_.e.connect=function(q,Z,w){var r=this,Y,C,d,O;return _.V(function(H){if(H.nextAddress==1)return _.Hq(H,2),r.useAsyncBrowserChannelHandler_?_.W(H,r.connectPromise_,2):H.jumpTo(2);_.V2(H);if(r.JSC$17310_disposed_||r.JSC$17310_channel_&&r.JSC$17310_channel_.getState()==2)return H.return();r.sCookie_="";r.reconnectTimer_.stop();r.connectionParams_=q||null;r.connectUi_=Z||0;Y=r.JSC$17310_pathPrefix_+"/test";C=r.JSC$17310_pathPrefix_+"/bind";d=new Qr(w?w.firstTestResults:null,w?w.secondTestResults:null,
r.enableAsyncTest_);if(O=r.JSC$17310_channel_)O.handler_=null;d.handler_=r;r.JSC$17310_channel_=d;if(r.useAsyncBrowserChannelHandler_)return r.connectPromise_=vj6(r).then(function(){return jeC(r,Y,C,O,w)}),H.return(r.connectPromise_.then(function(){r.connectPromise_=_.YK()}));
jeC(r,Y,C,O,w);return _.Wq(H,0)})};
var jeC=function(q,Z,w,r,Y){t4Z(q);if(q.JSC$17310_channel_){var C=_.zj("ID_TOKEN"),d=q.JSC$17310_channel_.JSC$17262_extraHeaders_||{};C?d["x-youtube-identity-token"]=C:delete d["x-youtube-identity-token"];q.JSC$17310_channel_.JSC$17262_extraHeaders_=d}RMu(q);r?(r.getState(),q.JSC$17310_channel_.connect(Z,w,q.defaultQueryParams_,r.sid_,r.JSC$17262_lastArrayId_)):Y?q.JSC$17310_channel_.connect(Z,w,q.defaultQueryParams_,Y.sessionId,Y.arrayId):q.JSC$17310_channel_.connect(Z,w,q.defaultQueryParams_)};
Lv.prototype.disconnect=function(q){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.YK())}finally{this.disconnectUi_=q||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),t4Z(this),this.JSC$17310_channel_&&(this.JSC$17310_channel_.getState()==3&&syb(this.JSC$17310_channel_),this.JSC$17310_channel_.disconnect()),this.disconnectUi_=0}};
Lv.prototype.sendMessage=function(q,Z){var w=this,r;return _.V(function(Y){switch(Y.nextAddress){case 1:_.Hq(Y,2);if(!w.useAsyncBrowserChannelHandler_){Y.jumpTo(2);break}return _.W(Y,w.connectPromise_,2);case 2:_.V2(Y);if(w.JSC$17310_disposed_)return Y.return();r={_sc:q};Z&&_.R4.extend(r,Z);if(w.reconnectTimer_.isActive()||(w.JSC$17310_channel_?w.JSC$17310_channel_.getState():0)==2){w.JSC$17310_pendingMessages_.push(r);Y.jumpTo(6);break}if(!w.isChannelOpened()){Y.jumpTo(6);break}_.Hq(Y,8);if(!w.useAsyncBrowserChannelHandler_||
btF(w,q)){Y.jumpTo(8);break}return _.W(Y,vj6(w),8);case 8:_.V2(Y,0,0,1);w.isChannelOpened()&&(btF(w,q)||RMu(w),t4Z(w),KOy(w.JSC$17310_channel_,r));_.Wq(Y,6,1);break;case 6:_.Wq(Y,0)}})};
var btF=function(q,Z){return q.enableMdxAuthForConnectionOnly_?!0:q.disableMdxAuthForAdMessages_?Object.values(OtS).includes(Z):q.disableMdxAuthForNonPlaybackMessages_?!Object.values(HtV).includes(Z):q.disableMdxAuthForShortsMessages_?Object.values(W4V).includes(Z):!1};
Lv.prototype.JSC$17269_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17310_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)JO6(this);else{var q=this.JSC$17310_pendingMessages_;this.JSC$17310_pendingMessages_=[];var Z=q.length;RMu(this);zM8(this,q,Z);B8S(this)}else B8S(this)};
var JO6=function(q){var Z,w;_.V(function(r){if(r.nextAddress==1)return _.Hq(r,2),_.W(r,vj6(q),2);_.V2(r);Z=q.JSC$17310_pendingMessages_;q.JSC$17310_pendingMessages_=[];w=Z.length;zM8(q,Z,w);B8S(q);return _.Wq(r,0)})},zM8=function(q,Z,w){for(var r=0;r<w;++r)KOy(q.JSC$17310_channel_,Z[r]);
B8S(q)},B8S=function(q){q.publish("handlerOpened");
q.JSC$17310_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.e=Lv.prototype;_.e.JSC$17269_channelError=function(q){var Z=q==2&&this.JSC$17310_channel_.JSC$17262_lastStatusCode_==401;q==4||Z||this.reconnectTimer_.start();this.publish("handlerError",q,Z);Z=Object.keys(apC).find(function(w){return apC[w]===q});
this.JSC$17310_channelErrorCounter.increment("BROWSER_CHANNEL",Z!=null?Z:"UNKNOWN")};
_.e.JSC$17269_channelClosed=function(q,Z){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(Z)for(var w=Z.length,r=0;r<w;++r){var Y=Z[r].map;Y&&this.JSC$17310_pendingMessages_.push(Y)}this.JSC$17310_channelClosedCounter.increment("BROWSER_CHANNEL");q&&this.pendingMapsOnClosedCounter.JSC$7802_streamzService.JSC$7660_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",q.length);Z&&this.undeliveredMapsOnClosedCounter.JSC$7805_streamzService.JSC$7660_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
Z.length)};
_.e.JSC$17269_channelSuccess=function(q,Z){Z!=null&&q!=null&&this.channelMessageSentCounter.increment()};
_.e.JSC$17269_getAdditionalParams=function(){var q={v:2};this.sCookie_&&(q.gsessionid=this.sCookie_);this.connectUi_!=0&&(q.ui=""+this.connectUi_);this.disconnectUi_!=0&&(q.ui=""+this.disconnectUi_);this.connectionParams_&&_.R4.extend(q,this.connectionParams_);return q};
_.e.JSC$17269_channelHandleArray=function(q){q[0]=="S"?this.sCookie_=q[1]:q[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17310_channel_.disconnect()):this.publish("handlerMessage",new SFl(q[0],q[1]));this.JSC$17310_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.e.isChannelOpened=function(){return!!this.JSC$17310_channel_&&this.JSC$17310_channel_.getState()==3};
var t4Z=function(q){if(q.JSC$17310_channel_){var Z=q.JSC$17310_getXsrfToken_(),w=q.JSC$17310_channel_.JSC$17262_extraHeaders_||{};Z?w["x-youtube-lounge-xsrf-token"]=Z:delete w["x-youtube-lounge-xsrf-token"];q.JSC$17310_channel_.JSC$17262_extraHeaders_=w}},vj6=function(q){if(q.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.YK();
if(!q.enableCachedUpdateAuthorizationHeader_)return auV(q);q.updateAuthorizationHeaderPromise_===null&&(q.updateAuthorizationHeaderPromise_=auV(q));return q.updateAuthorizationHeaderPromise_},auV=function(q){return _.on(q.getAuthorizationHeader_().then(function(Z){njl(q,Z)}).thenCatch(function(){}),function(){q.updateAuthorizationHeaderPromise_=null})},njl=function(q,Z){if(q.JSC$17310_channel_){var w=q.JSC$17310_channel_.JSC$17262_extraHeaders_||{};
Z&&Object.keys(Z).length>0?w=Object.assign({},w,Z):delete w.Authorization;q.JSC$17310_channel_.JSC$17262_extraHeaders_=w}},RMu=function(q){q.getAuthorizationHeaderSync_&&!q.useAsyncBrowserChannelHandler_&&njl(q,q.getAuthorizationHeaderSync_())};
_.e=Lv.prototype;_.e.setLoungeToken=function(q){(this.defaultQueryParams_.loungeIdToken=q)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17310_channel_){var Z=this.JSC$17310_channel_.JSC$17262_extraHeaders_||{};q?Z["X-YouTube-LoungeId-Token"]=q:delete Z["X-YouTube-LoungeId-Token"];this.JSC$17310_channel_.JSC$17262_extraHeaders_=Z}};
_.e.getDeviceId=function(){return this.defaultQueryParams_.id};
_.e.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.e.reconnect=function(){var q=this.reconnectTimer_;q.delay_.fire();q.start()};
_.e.safeReconnect_=function(){var q=this.JSC$17310_channel_,Z=0;q.JSC$17262_backChannelRequest_&&Z++;q.forwardChannelRequest_&&Z++;Z==0&&this.connect(this.connectionParams_,this.connectUi_)};var JN=function(q,Z){var w=q.basePath;q.supportCors&&(w=q.scheme+"://"+q.domain+q.port+q.basePath);return _.Iz(w+Z,{})};
Sf.prototype.sendRequest=function(q,Z,w,r,Y,C,d){q={format:C?"RAW":"JSON",method:q,context:this,timeout:5E3,withCredentials:!!d,onSuccess:_.Oh(this.JSC$17315_onSuccess_,r,!C),onError:_.Oh(this.onError_,Y),onTimeout:_.Oh(this.JSC$17315_onTimeout_,Y)};w&&(q.postParams=w,q.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.q4(Z,q)};
Sf.prototype.JSC$17315_onSuccess_=function(q,Z,w,r){Z?q(r):q({text:w.responseText})};
Sf.prototype.onError_=function(q,Z){q(Error("Bk`"+Z.status))};
Sf.prototype.JSC$17315_onTimeout_=function(q){q(Error("Ck"))};var jf=function(q,Z){return!!Z&&(q.id==Z||q.uuid==Z)},QeS=function(q){return{name:q.name,
screenId:q.id,loungeToken:q.token,dialId:q.uuid,screenIdType:q.idType}},Ejy=function(q){return new v2(q)},xhu=function(q){return Array.isArray(q)?_.bM(q,Ejy):[]},hDl=function(q){if(!q)return"null";
var Z=q.token?".."+q.token.slice(-6):"-",w=q.uuid?".."+q.uuid.slice(-6):"-";return'{name:"'+q.name+'",id:'+q.id.substr(0,6)+"..,token:"+(Z+",uuid:"+w+",idType:"+q.idType+"}")},zDy=function(q){return Array.isArray(q)?"["+_.bM(q,hDl).join(",")+"]":"null"};var YnZ="",bE=null;var W1c=function(q,Z){_.V8.call(this);var w=this;this.handler=q();this.handler.subscribe("handlerOpened",this.JSC$17322_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(r,Y){w.onError(Y)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=Z};
_.z(W1c,_.V8);_.e=W1c.prototype;_.e.connect=function(q,Z,w){this.handler.connect(q,Z,w)};
_.e.disconnect=function(q){this.handler.disconnect(q)};
_.e.reconnect=function(){this.handler.reconnect()};
_.e.getDeviceId=function(){return this.handler.getDeviceId()};
_.e.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.e.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.e.JSC$17322_onOpened=function(){this.dispatchEvent("channelOpened");var q=this.handler,Z=this.currentScreenId;_.yq("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!q.JSC$17310_channel_.useChunked_,sessionId:q.JSC$17310_channel_.sid_,arrayId:q.JSC$17310_channel_.JSC$17262_lastArrayId_});_.yq("yt-remote-session-screen-id",Z);q=iPF();Z=g_D();_.Mj(q,Z)||q.push(Z);rWF(q);wHq()};
_.e.onClosed=function(){this.dispatchEvent("channelClosed")};
_.e.onMessage=function(q){this.dispatchEvent(new C_l(q))};
_.e.onError=function(q){this.dispatchEvent(new P_c(q?1:0))};
_.e.sendMessage=function(q,Z){this.handler.sendMessage(q,Z)};
_.e.setLoungeToken=function(q){this.handler.setLoungeToken(q)};
_.e.dispose=function(){this.handler.dispose()};var HdC=function(q,Z,w){var r=this;w=w===void 0?function(){return""}:w;
var Y=Y===void 0?new gkZ:Y;var C=C===void 0?new _.wf:C;this.pathPrefix=q;this.defaultQueryParams=Z;this.getXsrfToken=w;this.JSC$17325_pubsub=C;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new Nnc(function(){var d;((d=r.channel)==null?void 0:Q2c((new wjZ(d,d.JSC$17233_channel_)).JSC$17243_channel_.forwardChannelRequestPool_))===0&&r.connect(r.connectionParams,r.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17325_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17325_channelOpenedCounter=new lQD;this.JSC$17325_channelClosedCounter=new GsV;this.JSC$17325_channelMessageReceivedCounter=new XQC;this.JSC$17325_channelErrorCounter=new mlS};
HdC.prototype.connect=function(q,Z){q=q===void 0?{}:q;Z=Z===void 0?0:Z;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=q,this.connectUi=Z,T8D(this),(q=_.zj("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=q: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 R8(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,Uh7(this))};
var Uh7=function(q){_.Yc(q.channel,"w",function(){q.channelState=3;q.reconnectTimer.reset();q.connectionParams=null;q.connectUi=0;for(var Z=_.P(q.nonAckedMessagesOnChannelClosed),w=Z.next();!w.done;w=Z.next())w=w.value,q.channel&&q.channel.send(w);q.nonAckedMessagesOnChannelClosed=[];q.publish("webChannelOpened");q.JSC$17325_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Yc(q.channel,"x",function(){q.channelState=0;q.reconnectTimer.isActive()||q.publish("webChannelClosed");var Z,w=(Z=q.channel)==null?void 0:r_7(new wjZ(Z,Z.JSC$17233_channel_));w&&(q.nonAckedMessagesOnChannelClosed=[].concat(_.Ju(w)));q.JSC$17325_channelClosedCounter.increment("WEB_CHANNEL")});
_.Yc(q.channel,"z",function(Z){var w=Z.data;w[0]==="gracefulReconnect"?(q.reconnectTimer.start(),q.channel&&q.channel.close()):q.publish("webChannelMessage",new SFl(w[0],w[1]));q.lastStatusCode=Z.statusCode;q.JSC$17325_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Yc(q.channel,"y",function(){q.lastStatusCode===401||q.reconnectTimer.start();q.publish("webChannelError");q.JSC$17325_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.e=HdC.prototype;_.e.disconnect=function(q){this.disconnectUi=q===void 0?0:q;this.reconnectTimer.stop();T8D(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.e.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.e.reconnect=function(){var q=this.reconnectTimer;q.delay_.fire();q.start()};
_.e.sendMessage=function(q,Z){this.channel&&(T8D(this),q=Object.assign({},{_sc:q},Z),this.channel.send(q))};
_.e.setLoungeToken=function(q){q||this.reconnectTimer.stop();q?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=q:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var T8D=function(q){var Z=q.getXsrfToken();Z?q.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=Z:delete q.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.e=HdC.prototype;_.e.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.e.publish=function(q){return this.JSC$17325_pubsub.publish.apply(this.JSC$17325_pubsub,[q].concat(_.Ju(_.Ta.apply(1,arguments))))};
_.e.subscribe=function(q,Z,w){return this.JSC$17325_pubsub.subscribe(q,Z,w)};
_.e.unsubscribe=function(q,Z,w){return this.JSC$17325_pubsub.unsubscribe(q,Z,w)};
_.e.unsubscribeByKey=function(q){return this.JSC$17325_pubsub.unsubscribeByKey(q)};
_.e.dispose=function(){this.JSC$17325_disposed||(this.JSC$17325_disposed=!0,_.Xg(this.JSC$17325_pubsub),this.disconnect(),_.Xg(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.e.isDisposed=function(){return this.JSC$17325_disposed};var Odl=function(q){_.V8.call(this);this.webChannelService=q();this.webChannelService.subscribe("webChannelOpened",this.JSC$17333_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.z(Odl,_.V8);_.e=Odl.prototype;_.e.connect=function(q,Z){this.webChannelService.connect(q,Z)};
_.e.disconnect=function(q){this.webChannelService.disconnect(q)};
_.e.reconnect=function(){this.webChannelService.reconnect()};
_.e.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.e.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.e.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.e.JSC$17333_onOpened=function(){this.dispatchEvent("channelOpened")};
_.e.onClosed=function(){this.dispatchEvent("channelClosed")};
_.e.onMessage=function(q){this.dispatchEvent(new C_l(q))};
_.e.onError=function(){this.dispatchEvent(new P_c(this.webChannelService.lastStatusCode===401?1:0))};
_.e.sendMessage=function(q,Z){this.webChannelService.sendMessage(q,Z)};
_.e.setLoungeToken=function(q){this.webChannelService.setLoungeToken(q)};
_.e.dispose=function(){this.webChannelService.dispose()};var JWS=Date.now(),zD=null,RD7=Array(50),nv=-1,bd7=!1;_.yU(Q3,_.sd);Q3.prototype.getScreens=function(){return this.screens};
Q3.prototype.contains=function(q){return!!yQl(this.screens,q)};
Q3.prototype.get=function(q){return q?tN(this.screens,q):null};
var kWl=function(q,Z){var w=q.get(Z.uuid)||q.get(Z.id);if(w)return q=w.name,w.id=Z.id||w.id,w.name=Z.name,w.token=Z.token,w.uuid=Z.uuid||w.uuid,w.name!=q;q.screens.push(Z);return!0},K4c=function(q,Z){var w=q.screens.length!=Z.length;
q.screens=_.qY(q.screens,function(C){return!!yQl(Z,C)});
for(var r=Z.length,Y=0;Y<r;Y++)w=kWl(q,Z[Y])||w;return w},sel=function(q,Z){var w=q.screens.length;
q.screens=_.qY(q.screens,function(r){return!(r||Z?!r!=!Z?0:r.id==Z.id:1)});
return q.screens.length<w};
Q3.prototype.info=function(q){B2(this.JSC$17334_logName_,q)};var Iuq=function(q,Z,w,r,Y){_.sd.call(this);this.JSC$17337_http_=q;this.pairingCode_=Z;this.deviceId_=w;this.friendlyName_=r;this.enableShortLivedLoungeToken_=Y;this.pollIndex_=0;this.JSC$17337_xhr_=null;this.JSC$17337_timer_=NaN};
_.z(Iuq,_.sd);_.e=Iuq.prototype;_.e.start=function(){!this.JSC$17337_xhr_&&isNaN(this.JSC$17337_timer_)&&this.poll_()};
_.e.stop=function(){this.JSC$17337_xhr_&&(this.JSC$17337_xhr_.abort(),this.JSC$17337_xhr_=null);isNaN(this.JSC$17337_timer_)||(_.iO(this.JSC$17337_timer_),this.JSC$17337_timer_=NaN)};
_.e.disposeInternal=function(){this.stop();_.sd.prototype.disposeInternal.call(this)};
_.e.poll_=function(){this.JSC$17337_timer_=NaN;this.JSC$17337_xhr_=_.q4(JN(this.JSC$17337_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.Lh)(this.JSC$17339_onSuccess_,this),onError:(0,_.Lh)(this.onError_,this),onTimeout:(0,_.Lh)(this.JSC$17339_onTimeout_,this)})};
_.e.JSC$17339_onSuccess_=function(q,Z){this.JSC$17337_xhr_=null;q=Z.screen||{};q.dialId=this.deviceId_;q.name=this.friendlyName_;Z=-1;this.enableShortLivedLoungeToken_&&q.shortLivedLoungeToken&&q.shortLivedLoungeToken.value&&q.shortLivedLoungeToken.refreshIntervalMs&&(q.screenIdType="shortLived",q.loungeToken=q.shortLivedLoungeToken.value,Z=q.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new v2(q),Z)};
_.e.onError_=function(q){this.JSC$17337_xhr_=null;q.status&&q.status==404?this.pollIndex_>=cO6.length?this.publish("pairingFailed",Error("Dk")):(q=cO6[this.pollIndex_],this.JSC$17337_timer_=_.hf((0,_.Lh)(this.poll_,this),q),this.pollIndex_++):this.publish("pairingFailed",Error("Ek`"+q.status))};
_.e.JSC$17339_onTimeout_=function(){this.JSC$17337_xhr_=null;this.publish("pairingFailed",Error("Fk"))};
var cO6=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.yU(x9,Q3);_.e=x9.prototype;_.e.start=function(){Ex(this)&&this.publish("screenChange");!_.i8("yt-remote-lounge-token-expiration")&&M4F(this);_.iO(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.hf((0,_.Lh)(this.start,this),1E4)};
_.e.add=function(q,Z){Ex(this);kWl(this,q);F4u(this,!1);this.publish("screenChange");Z(q);q.token||M4F(this)};
_.e.remove=function(q,Z){var w=Ex(this);sel(this,q)&&(F4u(this,!1),w=!0);Z(q);w&&this.publish("screenChange")};
_.e.updateName=function(q,Z,w,r){var Y=Ex(this),C=this.get(q.id);C?(C.name!=Z&&(C.name=Z,F4u(this,!1),Y=!0),w(q)):r(Error("Gk"));Y&&this.publish("screenChange")};
_.e.disposeInternal=function(){_.iO(this.loungeTokenRefreshTimer_);x9.superClass_.disposeInternal.call(this)};
var M4F=function(q){if(q.screens.length){var Z=_.bM(q.screens,function(r){return r.id}),w=JN(q.JSC$17341_http_,"/pairing/get_lounge_token_batch");
q.JSC$17341_http_.sendRequest("POST",w,{screen_ids:Z.join(",")},(0,_.Lh)(q.handleLoungeTokens_,q),(0,_.Lh)(q.handleLoungeTokenError_,q))}};
x9.prototype.handleLoungeTokens_=function(q){Ex(this);var Z=this.screens.length;q=q&&q.screens||[];for(var w=q.length,r=0;r<w;++r){var Y=q[r],C=this.get(Y.screenId);C&&(C.token=Y.loungeToken,--Z)}F4u(this,!Z);Z&&B2(this.JSC$17334_logName_,"Missed "+Z+" lounge tokens.")};
x9.prototype.handleLoungeTokenError_=function(q){B2(this.JSC$17334_logName_,"Requesting lounge tokens failed: "+q)};
var Ex=function(q){if(_.b("deprecate_pair_servlet_enabled"))return K4c(q,[]);var Z=xhu(eDu());Z=_.qY(Z,function(w){return!w.uuid});
return K4c(q,Z)},F4u=function(q,Z){Pil(_.bM(q.screens,QeS));
Z&&Ciu()};var KU=function(q,Z){_.sd.call(this);this.getScreensToCheck_=Z;Z=(Z=_.i8("yt-remote-online-screen-ids")||"")?Z.split(","):[];for(var w={},r=this.getScreensToCheck_(),Y=r.length,C=0;C<Y;++C){var d=r[C].id;w[d]=_.Mj(Z,d)}this.screenIdSet_=w;this.JSC$17344_http_=q;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;N8y("Initialized with "+(0,_.S3)(this.screenIdSet_))};
_.z(KU,_.sd);KU.prototype.isOnline=function(q){return!!this.screenIdSet_[q]};
KU.prototype.start=function(){var q=parseInt(_.i8("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.hW()-144E5<q?0:q)?lul(this):(this.fastCheckEndTime_=_.hW()+3E5,_.yq("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
KU.prototype.isEmpty=function(){return _.R4.isEmpty(this.screenIdSet_)};
KU.prototype.update=function(){N8y("Updating availability on schedule.");var q=this.getScreensToCheck_(),Z=_.R4.filter(this.screenIdSet_,function(w,r){return w&&!!tN(q,r)},this);
GWu(this,Z)};
var phl=function(q,Z,w){var r=JN(q.JSC$17344_http_,"/pairing/get_screen_availability");q.JSC$17344_http_.sendRequest("POST",r,{lounge_token:Z.token},(0,_.Lh)(function(Y){Y=Y.screens||[];for(var C=Y.length,d=0;d<C;++d)if(Y[d].loungeToken==Z.token){w(Y[d].status=="online");return}w(!1)},q),(0,_.Lh)(function(){w(!1)},q))};
KU.prototype.disposeInternal=function(){_.iO(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.sd.prototype.disposeInternal.call(this)};
var GWu=function(q,Z){a:if(_.R4.getCount(Z)!=_.R4.getCount(q.screenIdSet_))var w=!1;else{w=_.R4.getKeys(Z);for(var r=w.length,Y=0;Y<r;++Y)if(!q.screenIdSet_[w[Y]]){w=!1;break a}w=!0}w||(N8y("Updated online screens: "+(0,_.S3)(q.screenIdSet_)),q.screenIdSet_=Z,q.publish("screenChange"));XhF(q)},lul=function(q){isNaN(q.refreshTimer_)||_.iO(q.refreshTimer_);
q.refreshTimer_=_.hf((0,_.Lh)(q.requestScreenAvailability_,q),q.fastCheckEndTime_>0&&q.fastCheckEndTime_<_.hW()?2E4:1E4)};
KU.prototype.requestScreenAvailability_=function(){_.iO(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var q=mh6(this);if(_.R4.getCount(q)){var Z=JN(this.JSC$17344_http_,"/pairing/get_screen_availability"),w={lounge_token:_.R4.getKeys(q).join(",")};this.currentRequest_=this.JSC$17344_http_.sendRequest("POST",Z,w,(0,_.Lh)(this.onScreenAvailability_,this,q),(0,_.Lh)(this.onScreenAvailabilityError_,this))}else GWu(this,{}),lul(this)};
KU.prototype.onScreenAvailability_=function(q,Z){this.currentRequest_=null;var w=_.R4.getKeys(mh6(this));if(_.iN(w,_.R4.getKeys(q))){Z=Z.screens||[];w={};for(var r=Z.length,Y=0;Y<r;++Y)w[q[Z[Y].loungeToken]]=Z[Y].status=="online";GWu(this,w);lul(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
KU.prototype.onScreenAvailabilityError_=function(q){this.warn_("Screen availability failed: "+q);this.currentRequest_=null;lul(this)};
var N8y=function(q){B2("OnlineScreenService",q)};
KU.prototype.warn_=function(q){B2("OnlineScreenService",q)};
var mh6=function(q){var Z={};_.Uq(q.getScreensToCheck_(),function(w){w.token?Z[w.token]=w.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return Z},XhF=function(q){q=_.R4.getKeys(_.R4.filter(q.screenIdSet_,function(Z){return Z}));
q.sort(_.aT1);q.length?_.yq("yt-remote-online-screen-ids",q.join(","),60):_.gF("yt-remote-online-screen-ids")};_.yU(TD,Q3);_.e=TD.prototype;_.e.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.e.add=function(q,Z,w){this.localScreenService_.add(q,Z,w)};
_.e.remove=function(q,Z,w){this.localScreenService_.remove(q,Z,w);this.onlineScreenService_.update()};
_.e.updateName=function(q,Z,w,r){this.localScreenService_.contains(q)?this.localScreenService_.updateName(q,Z,w,r):(q="Updating name of unknown screen: "+q.name,B2(this.JSC$17334_logName_,q),r(Error(q)))};
_.e.getScreens=function(q){return q?this.screens:RK6(this.screens,_.qY(this.automaticScreens_,function(Z){return!this.contains(Z)},this))};
_.e.JSC$17349_getOnlineScreens=function(){return _.qY(this.getScreens(!0),function(q){return this.onlineScreenService_.isOnline(q.id)},this)};
var fu8=function(q,Z,w,r,Y,C){q.info("getAutomaticScreenByIds "+w+" / "+Z);w||(w=q.deviceToScreenId_[Z]);var d=q.getScreens(),O=w?tN(d,w):null;w&&(q.disableAutomaticScreenCache_||O)||(O=tN(d,Z));if(O){O.uuid=Z;var H=sj(q,O);phl(q.onlineScreenService_,H,function(L){Y(L?H:null)})}else w?AOZ(q,w,(0,_.Lh)(function(L){var S=sj(this,new v2({name:r,
screenId:w,loungeToken:L,dialId:Z||""}));phl(this.onlineScreenService_,S,function(v){Y(v?S:null)})},q),C):Y(null)};
TD.prototype.JSC$17349_getScreenByPollingPairingCode=function(q,Z,w,r,Y,C){var d=this;this.info("getDialScreenByPairingCode "+q+" / "+Z);var O=new Iuq(this.JSC$17347_http_,q,Z,w,r);O.subscribe("pairingComplete",function(H,L){_.Xg(O);Y(sj(d,H),L)});
O.subscribe("pairingFailed",function(H){_.Xg(O);C(H)});
O.start();return(0,_.Lh)(O.stop,O)};
var DhC=function(q,Z){for(var w=q.screens.length,r=0;r<w;++r)if(q.screens[r].name==Z)return q.screens[r];return null};
TD.prototype.JSC$17349_getScreenByPairingCode=function(q,Z,w,r){_.q4(JN(this.JSC$17347_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:q},timeout:5E3,onSuccess:(0,_.Lh)(function(Y,C){Y=new v2(C.screen||{});if(!Y.name||DhC(this,Y.name)){a:{C=Y.name;for(var d=2,O=Z(C,d);DhC(this,O);){d++;if(d>20)break a;O=Z(C,d)}C=O}Y.name=C}w(sj(this,Y))},this),
onError:(0,_.Lh)(function(Y){r(Error("Hk`"+Y.status))},this),
onTimeout:(0,_.Lh)(function(){r(Error("Ik"))},this)})};
var hMS=function(q,Z,w){phl(q.onlineScreenService_,Z,w)};
TD.prototype.disposeInternal=function(){_.Xg(this.localScreenService_);_.Xg(this.onlineScreenService_);TD.superClass_.disposeInternal.call(this)};
var AOZ=function(q,Z,w,r){q.info("requestLoungeToken_ for "+Z);var Y={postParams:{screen_ids:Z},method:"POST",context:q,onSuccess:function(C,d){C=d&&d.screens||[];C[0]&&C[0].screenId==Z?w(C[0].loungeToken):r(Error("Jk"))},
onError:function(){r(Error("Kk"))}};
_.q4(JN(q.JSC$17347_http_,"/pairing/get_lounge_token_batch"),Y)},yOy=function(q){q.screens=q.localScreenService_.getScreens();
for(var Z=_.R4.transpose(q.deviceToScreenId_),w=q.screens.length,r=0;r<w;++r){var Y=q.screens[r];Y.uuid=Z[Y.id]||""}q.info("Updated manual screens: "+zDy(q.screens))};
TD.prototype.handleScreenChange_=function(){yOy(this);this.publish("screenChange");this.onlineScreenService_.update()};
var B18=function(q){itC(q);q.localScreenService_=new x9(q.JSC$17347_http_);q.localScreenService_.subscribe("screenChange",(0,_.Lh)(q.handleScreenChange_,q));yOy(q);q.disableAutomaticScreenCache_||(q.automaticScreens_=xhu(_.i8("yt-remote-automatic-screen-cache")||[]));itC(q);q.info("Initializing automatic screens: "+zDy(q.automaticScreens_));q.onlineScreenService_=new KU(q.JSC$17347_http_,(0,_.Lh)(q.getScreens,q,!0));q.onlineScreenService_.subscribe("screenChange",(0,_.Lh)(function(){this.publish("onlineScreenChange")},
q))},sj=function(q,Z){var w=q.get(Z.id);
w?(w.uuid=Z.uuid,Z=w):((w=tN(q.automaticScreens_,Z.uuid))?(w.id=Z.id,w.token=Z.token,Z=w):q.automaticScreens_.push(Z),q.disableAutomaticScreenCache_||gjl(q));itC(q);q.deviceToScreenId_[Z.uuid]=Z.id;_.yq("yt-remote-device-id-map",q.deviceToScreenId_,31536E3);return Z},gjl=function(q){q=_.qY(q.automaticScreens_,function(Z){return Z.idType!="shortLived"});
_.yq("yt-remote-automatic-screen-cache",_.bM(q,QeS))},itC=function(q){q.deviceToScreenId_=_.i8("yt-remote-device-id-map")||{}};
TD.prototype.dispose=TD.prototype.dispose;_.yU(Ux,_.sd);var I8=function(q,Z){q.screen_=Z;q.publish("sessionScreen",q.screen_)},qy7=function(q,Z){q.screen_&&(q.screen_.token=Z,sj(q.JSC$17351_screenService_,q.screen_));
q.publish("sessionScreen",q.screen_)};
Ux.prototype.onSessionStopped=function(q){this.isDisposed()||(q&&(cb(this,""+q),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Ux.prototype.info=function(q){B2(this.JSC$17351_logName_,q)};
var cb=function(q,Z){B2(q.JSC$17351_logName_,Z)};
Ux.prototype.JSC$17353_getCastSession=function(){return null};
Ux.prototype.setDisplayStatus=function(q){var Z=this.receiver_;q?(Z.displayStatus=new chrome.cast.ReceiverDisplayStatus(q,[]),Z.displayStatus.showStop=!0):Z.displayStatus=null;chrome.cast.setReceiverDisplayStatus(Z,(0,_.Lh)(function(){this.info("Updated receiver status for "+Z.friendlyName+": "+q)},this),(0,_.Lh)(function(){cb(this,"Failed to update receiver status for: "+Z.friendlyName)},this))};
Ux.prototype.disposeInternal=function(){this.setDisplayStatus("");Ux.superClass_.disposeInternal.call(this)};var M6=function(q,Z,w){Ux.call(this,q,Z,"CastSession");var r=this;this.config_=w;this.JSC$17356_session_=null;this.JSC$17356_boundSessionUpdate_=(0,_.Lh)(this.JSC$17358_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.Lh)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.hf(function(){Z26(r,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17356_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17356_isInitLoungeToken_=!1;this.JSC$17356_lastLoungeTokenRefreshError_="unknown"};
_.z(M6,Ux);_.e=M6.prototype;
_.e.setCastSession=function(q){if(this.JSC$17356_session_){if(this.JSC$17356_session_==q)return;cb(this,"Overriding cast session with new session object");wYy(this);this.JSC$17356_isInitLoungeToken_=!1;this.JSC$17356_lastLoungeTokenRefreshError_="unknown";this.JSC$17356_session_.removeUpdateListener(this.JSC$17356_boundSessionUpdate_);this.JSC$17356_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17356_session_=q;this.JSC$17356_session_.addUpdateListener(this.JSC$17356_boundSessionUpdate_);this.JSC$17356_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);rZD(this,"getMdxSessionStatus")};
_.e.launchWithParams=function(q){this.info("launchWithParams no-op for Cast: "+(0,_.S3)(q))};
_.e.stop=function(){if(this.JSC$17356_session_)this.JSC$17356_session_.stop((0,_.Lh)(function(){this.onSessionStopped()},this),(0,_.Lh)(function(){this.onSessionStopped(Error("Lk"))},this));
else this.onSessionStopped(Error("Mk"))};
_.e.setDisplayStatus=function(){};
_.e.disposeInternal=function(){this.info("disposeInternal");wYy(this);this.JSC$17356_session_&&(this.JSC$17356_session_.removeUpdateListener(this.JSC$17356_boundSessionUpdate_),this.JSC$17356_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17356_session_=null;Ux.prototype.disposeInternal.call(this)};
var $sq=function(q,Z){_.iO(q.getLoungeTokenTimeoutKey_);q.getLoungeTokenTimeoutKey_=0;Z==0?YyS(q):q.getLoungeTokenTimeoutKey_=_.hf(function(){YyS(q)},Z)},YyS=function(q){rZD(q,"getLoungeToken");
_.iO(q.onLoungeTokenTimeoutKey_);q.onLoungeTokenTimeoutKey_=_.hf(function(){eHD(q,null)},3E4)},rZD=function(q,Z){q.info("sendYoutubeMessage_: "+Z+" "+(0,_.S3)(void 0));
var w={};w.type=Z;q.JSC$17356_session_?q.JSC$17356_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",w,function(){},(0,_.Lh)(function(){cb(this,"Failed to send message: "+Z+".")},q)):cb(q,"Sending yt message without session: "+(0,_.S3)(w))};
M6.prototype.onYoutubeMessage_=function(q,Z){if(!this.isDisposed())if(Z)if(Z=(0,_.Ss)(Z),_.DT(Z))switch(q=""+Z.type,Z=Z.data||{},this.info("onYoutubeMessage_: "+q+" "+(0,_.S3)(Z)),q){case "mdxSessionStatus":Z26(this,Z);break;case "loungeToken":eHD(this,Z);break;default:cb(this,"Unknown youtube message: "+q)}else cb(this,"Unable to parse message.");else cb(this,"No data in message.")};
var CRc=function(q,Z){if(Z)q.info("onConnectedScreenId_: Received screenId: "+Z),q.screen_&&q.screen_.id==Z||q.getScreen_(Z,function(w){I8(q,w)},function(){return q.onSessionStopped()},5);
else q.onSessionStopped(Error("Nk"))},ds7=function(q,Z,w){q.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(Z));
var r=new v2(Z);PRu(q,r,function(Y){Y?(q.JSC$17356_isInitLoungeToken_=!0,sj(q.JSC$17351_screenService_,r),I8(q,r),q.JSC$17356_lastLoungeTokenRefreshError_="unknown",$sq(q,w)):(_.ns(Error("Ok`"+JSON.stringify(Z))),q.onSessionStopped())},5)},Z26=function(q,Z){_.iO(q.sessionStatusTimeoutKey_);
q.sessionStatusTimeoutKey_=0;if(Z)q.config_.enableCastLoungeToken&&Z.loungeToken?Z.deviceId?q.screen_&&q.screen_.uuid==Z.deviceId||(Z.loungeTokenRefreshIntervalMs?ds7(q,{name:q.receiver_.friendlyName,screenId:Z.screenId,loungeToken:Z.loungeToken,dialId:Z.deviceId,screenIdType:"shortLived"},Z.loungeTokenRefreshIntervalMs):(_.ns(Error("Qk`"+JSON.stringify(Z))),CRc(q,Z.screenId))):(_.ns(Error("Pk`"+JSON.stringify(Z))),CRc(q,Z.screenId)):CRc(q,Z.screenId);else q.onSessionStopped(Error("Nk"))},eHD=function(q,
Z){_.iO(q.onLoungeTokenTimeoutKey_);
q.onLoungeTokenTimeoutKey_=0;var w=null;if(Z)if(Z.loungeToken){var r;((r=q.screen_)==null?void 0:r.token)==Z.loungeToken&&(w="staleLoungeToken")}else w="missingLoungeToken";else w="noLoungeTokenResponse";w?(q.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(Z)+", error: "+w)),q.JSC$17356_lastLoungeTokenRefreshError_=w,$sq(q,3E4)):(qy7(q,Z.loungeToken),q.JSC$17356_isInitLoungeToken_=!1,q.JSC$17356_lastLoungeTokenRefreshError_="unknown",$sq(q,Z.loungeTokenRefreshIntervalMs))};
M6.prototype.getScreen_=function(q,Z,w,r){_.iO(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;fu8(this.JSC$17351_screenService_,this.receiver_.label,q,this.receiver_.friendlyName,(0,_.Lh)(function(Y){Y?Z(Y):r>=0?(cb(this,"Screen "+q+" appears to be offline. "+r+" retries left."),this.getScreenTimeoutKey_=_.hf((0,_.Lh)(this.getScreen_,this,q,Z,w,r-1),300)):w(Error("Rk"))},this),w)};
var PRu=function(q,Z,w,r){_.iO(q.JSC$17356_checkScreenAvailabilityTimeoutKey_);q.JSC$17356_checkScreenAvailabilityTimeoutKey_=0;hMS(q.JSC$17351_screenService_,Z,function(Y){Y||r<0?w(Y):q.JSC$17356_checkScreenAvailabilityTimeoutKey_=_.hf(function(){PRu(q,Z,w,r-1)},300)})};
M6.prototype.JSC$17353_getCastSession=function(){return this.JSC$17356_session_};
M6.prototype.JSC$17358_onSessionUpdate_=function(q){this.isDisposed()||q||(cb(this,"Cast session died."),this.onSessionStopped())};
var wYy=function(q){_.iO(q.getScreenTimeoutKey_);q.getScreenTimeoutKey_=0;_.iO(q.JSC$17356_checkScreenAvailabilityTimeoutKey_);q.JSC$17356_checkScreenAvailabilityTimeoutKey_=0;_.iO(q.sessionStatusTimeoutKey_);q.sessionStatusTimeoutKey_=0;_.iO(q.onLoungeTokenTimeoutKey_);q.onLoungeTokenTimeoutKey_=0;_.iO(q.getLoungeTokenTimeoutKey_);q.getLoungeTokenTimeoutKey_=0};var F8=function(q,Z,w,r){Ux.call(this,q,Z,"DialSession");this.config_=r;this.JSC$17360_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17360_theme_=w;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17360_deferredLaunchDeadlineTimer_=NaN;this.JSC$17360_boundSessionUpdate_=(0,_.Lh)(this.JSC$17362_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17360_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17360_isInitLoungeToken_=!1;this.JSC$17360_lastLoungeTokenRefreshError_="unknown"};
_.z(F8,Ux);F8.prototype.setCastSession=function(q){this.JSC$17360_session_=q;this.JSC$17360_session_.addUpdateListener(this.JSC$17360_boundSessionUpdate_)};
F8.prototype.launchWithParams=function(q){this.connectData_=q;this.deferredLaunch_()};
F8.prototype.stop=function(){Vdl(this);if(this.JSC$17360_session_)this.JSC$17360_session_.stop((0,_.Lh)(this.onSessionStopped,this,null),(0,_.Lh)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
F8.prototype.disposeInternal=function(){Vdl(this);this.JSC$17360_session_&&this.JSC$17360_session_.removeUpdateListener(this.JSC$17360_boundSessionUpdate_);this.JSC$17360_session_=null;Ux.prototype.disposeInternal.call(this)};
var O2l=function(q){var Z;return!!(q.config_.enableDialLoungeToken&&((Z=q.JSC$17360_session_)==null?0:Z.getDialAppInfo))},H2b=function(q){q.cancelPolling_=q.JSC$17351_screenService_.JSC$17349_getScreenByPollingPairingCode(q.reversePairingCode_,q.receiver_.label,q.receiver_.friendlyName,O2l(q),function(Z,w){q.cancelPolling_=function(){};
q.JSC$17360_isInitLoungeToken_=!0;I8(q,Z);Z.idType=="shortLived"&&w>0&&N6(q,w)},function(Z){q.cancelPolling_=function(){};
q.onSessionStopped(Z)})};
F8.prototype.JSC$17362_onSessionUpdate_=function(q){this.isDisposed()||q||(cb(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var W8b=function(q){var Z={};Z.pairingCode=q.reversePairingCode_;Z.theme=q.JSC$17360_theme_;VlV()&&(Z.env_useStageMdx=1);return _.ZL(Z)},ohu=function(q){return new Promise(function(Z){q.reversePairingCode_=DlV();
if(q.connectData_){var w=new chrome.cast.DialLaunchResponse(!0,W8b(q));Z(w);H2b(q)}else q.deferredLaunch_=function(){_.iO(q.JSC$17360_deferredLaunchDeadlineTimer_);q.deferredLaunch_=function(){};
q.JSC$17360_deferredLaunchDeadlineTimer_=NaN;var r=new chrome.cast.DialLaunchResponse(!0,W8b(q));Z(r);H2b(q)},q.JSC$17360_deferredLaunchDeadlineTimer_=_.hf(function(){q.deferredLaunch_()},100)})},L88=function(q,Z,w){q.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(Z));
var r=new v2(Z);return(new Promise(function(Y){uPb(q,r,function(C){C?(q.JSC$17360_isInitLoungeToken_=!0,sj(q.JSC$17351_screenService_,r),I8(q,r),N6(q,w)):_.ns(Error("Tk`"+JSON.stringify(Z)));Y(C)},5)})).then(function(Y){return Y?new chrome.cast.DialLaunchResponse(!1):ohu(q)})},Syb=function(q,Z){var w=q.launchData_.receiver.label,r=q.receiver_.friendlyName;
return(new Promise(function(Y){fu8(q.JSC$17351_screenService_,w,Z,r,function(C){C&&C.token&&I8(q,C);Y(C)},function(C){cb(q,"Failed to get DIAL screen: "+C);
Y(null)})})).then(function(Y){return Y&&Y.token?new chrome.cast.DialLaunchResponse(!1):ohu(q)})},uPb=function(q,Z,w,r){_.iO(q.JSC$17360_checkScreenAvailabilityTimeoutKey_);
q.JSC$17360_checkScreenAvailabilityTimeoutKey_=0;hMS(q.JSC$17351_screenService_,Z,function(Y){Y||r<0?w(Y):q.JSC$17360_checkScreenAvailabilityTimeoutKey_=_.hf(function(){uPb(q,Z,w,r-1)},300)})},N6=function(q,Z){q.info("getDialAppInfoWithTimeout_ "+Z);
O2l(q)&&(_.iO(q.getDialAppInfoTimeoutKey_),q.getDialAppInfoTimeoutKey_=0,Z==0?vhu(q):q.getDialAppInfoTimeoutKey_=_.hf(function(){vhu(q)},Z))},vhu=function(q){O2l(q)&&q.JSC$17360_session_.getDialAppInfo(function(Z){q.info("getDialAppInfo dialLaunchData: "+JSON.stringify(Z));
Z=Z.extraData||{};var w=null;if(Z.loungeToken){var r;((r=q.screen_)==null?void 0:r.token)==Z.loungeToken&&(w="staleLoungeToken")}else w="missingLoungeToken";w?(q.JSC$17360_lastLoungeTokenRefreshError_=w,N6(q,3E4)):(q.JSC$17360_isInitLoungeToken_=!1,q.JSC$17360_lastLoungeTokenRefreshError_="unknown",qy7(q,Z.loungeToken),N6(q,Z.loungeTokenRefreshIntervalMs))},function(Z){q.info("getDialAppInfo error: "+Z);
q.JSC$17360_lastLoungeTokenRefreshError_="noLoungeTokenResponse";N6(q,3E4)})},Vdl=function(q){_.iO(q.JSC$17360_checkScreenAvailabilityTimeoutKey_);
q.JSC$17360_checkScreenAvailabilityTimeoutKey_=0;_.iO(q.getDialAppInfoTimeoutKey_);q.getDialAppInfoTimeoutKey_=0;q.cancelPolling_();q.cancelPolling_=function(){};
_.iO(q.JSC$17360_deferredLaunchDeadlineTimer_)};var l0=function(q,Z){Ux.call(this,q,Z,"ManualSession");this.JSC$17364_deferredLaunchDeadlineTimer_=_.hf((0,_.Lh)(this.launchWithParams,this,null),150)};
_.z(l0,Ux);l0.prototype.stop=function(){this.onSessionStopped()};
l0.prototype.setCastSession=function(){};
l0.prototype.launchWithParams=function(){_.iO(this.JSC$17364_deferredLaunchDeadlineTimer_);this.JSC$17364_deferredLaunchDeadlineTimer_=NaN;var q=tN(this.JSC$17351_screenService_.getScreens(),this.receiver_.label);if(q)I8(this,q);else this.onSessionStopped(Error("Uk"))};
l0.prototype.disposeInternal=function(){_.iO(this.JSC$17364_deferredLaunchDeadlineTimer_);this.JSC$17364_deferredLaunchDeadlineTimer_=NaN;Ux.prototype.disposeInternal.call(this)};var IE=function(q,Z){_.sd.call(this);this.config_=Z;this.JSC$17367_screenService_=q;this.JSC$17367_appId_=Z.appId||"233637DE";this.JSC$17367_theme_=Z.theme||"cl";this.disableDial_=Z.disableCastApi||!1;this.forceMirroring_=Z.forceMirroring||!1;this.JSC$17367_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.Lh)(this.onReceiverAction_,this)};
_.z(IE,_.sd);
IE.prototype.init=function(q,Z){chrome.cast.timeout.requestSession=3E4;var w=new chrome.cast.SessionRequest(this.JSC$17367_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.b("desktop_enable_cast_connect")&&(w.androidReceiverCompatible=!0);this.disableDial_||(w.dialRequest=new chrome.cast.DialRequest("YouTube"));var r=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;q=q||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var Y=(0,_.Lh)(this.onReceiverUpdated_,
this);w=new chrome.cast.ApiConfig(w,(0,_.Lh)(this.onSessionEstablished_,this),Y,r,q);w.customDialLaunchCallback=(0,_.Lh)(this.onDialLaunchRequested_,this);chrome.cast.initialize(w,(0,_.Lh)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),v4C(),this.JSC$17367_screenService_.subscribe("onlineScreenChange",(0,_.Lh)(this.JSC$17369_onScreenChange_,this)),this.customReceivers_=jXq(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.Lh)(function(C){this.warn_("Failed to set initial custom receivers: "+(0,_.S3)(C))},this)),this.publish("yt-remote-cast2-availability-change",G0(this)),Z(!0))},this),(0,_.Lh)(function(C){this.warn_("Failed to initialize API: "+(0,_.S3)(C));
Z(!1)},this))};
IE.prototype.setConnectedScreenStatus=function(q,Z){pU("Setting connected screen ID: "+q+" -> "+Z);if(this.JSC$17367_session_){var w=this.JSC$17367_session_.screen_;if(!q||w&&w.id!=q)pU("Unsetting old screen status: "+this.JSC$17367_session_.receiver_.friendlyName),X8(this,null)}if(q&&Z){if(!this.JSC$17367_session_){q=tN(this.JSC$17367_screenService_.getScreens(),q);if(!q){pU("setConnectedScreenStatus: Unknown screen.");return}if(q.idType=="shortLived"){pU("setConnectedScreenStatus: Screen with id type to be short lived.");
return}w=td7(this,q);w||(pU("setConnectedScreenStatus: Connected receiver not custom..."),w=new chrome.cast.Receiver(q.uuid?q.uuid:q.id,q.name),w.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(w),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Lh)(function(r){this.warn_("Failed to set initial custom receivers: "+(0,_.S3)(r))},this)));
pU("setConnectedScreenStatus: new active receiver: "+w.friendlyName);X8(this,new l0(this.JSC$17367_screenService_,w),!0)}this.JSC$17367_session_.setDisplayStatus(Z)}else pU("setConnectedScreenStatus: no screen.")};
var td7=function(q,Z){return Z?_.KX(q.customReceivers_,function(w){return jf(Z,w.label)},q):null};
IE.prototype.setLaunchParams=function(q){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17367_session_?this.JSC$17367_session_.launchWithParams(q):this.warn_("Setting connection data without a session")};
IE.prototype.JSC$17369_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17367_session_?(this.JSC$17367_session_.stop(),X8(this,null)):pU("Stopping non-existing session")};
IE.prototype.requestSession=function(){chrome.cast.requestSession((0,_.Lh)(this.onSessionEstablished_,this),(0,_.Lh)(this.onSessionRequestFailed_,this))};
IE.prototype.disposeInternal=function(){this.JSC$17367_screenService_.unsubscribe("onlineScreenChange",(0,_.Lh)(this.JSC$17369_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.F9(_.Eq("yt.mdx.remote.debug.handlers_")||[],ur7);_.Xg(this.JSC$17367_session_);_.sd.prototype.disposeInternal.call(this)};
var pU=function(q){B2("Controller",q)};
IE.prototype.warn_=function(q){B2("Controller",q)};
var ur7=function(q){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(q)},G0=function(q){return q.hasCastReceiver_||!!q.customReceivers_.length||!!q.JSC$17367_session_},X8=function(q,Z,w){Z!=q.JSC$17367_session_&&(_.Xg(q.JSC$17367_session_),(q.JSC$17367_session_=Z)?(w?q.publish("yt-remote-cast2-receiver-resumed",Z.receiver_):q.publish("yt-remote-cast2-receiver-selected",Z.receiver_),Z.subscribe("sessionScreen",(0,_.Lh)(q.onSessionScreen_,q,Z)),Z.subscribe("sessionFailed",
function(){return RHc(q,Z)}),Z.screen_?q.publish("yt-remote-cast2-session-change",Z.screen_):w&&q.JSC$17367_session_.launchWithParams(null)):q.publish("yt-remote-cast2-session-change",null))},RHc=function(q,Z){q.JSC$17367_session_==Z&&q.publish("yt-remote-cast2-session-failed")};
_.e=IE.prototype;_.e.onSessionScreen_=function(q,Z){this.JSC$17367_session_==q&&(Z||X8(this,null),this.publish("yt-remote-cast2-session-change",Z))};
_.e.onReceiverAction_=function(q,Z){if(!this.isDisposed())if(q)switch(q.friendlyName=chrome.cast.unescape(q.friendlyName),pU("onReceiverAction_ "+q.label+" / "+q.friendlyName+"-- "+Z),Z){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17367_session_)if(this.JSC$17367_session_.receiver_.label!=q.label)pU("onReceiverAction_: Stopping active receiver: "+this.JSC$17367_session_.receiver_.friendlyName),this.JSC$17367_session_.stop();else{pU("onReceiverAction_: Casting to active receiver.");this.JSC$17367_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17367_session_.screen_);break}switch(q.receiverType){case chrome.cast.ReceiverType.CUSTOM:X8(this,new l0(this.JSC$17367_screenService_,q));break;case chrome.cast.ReceiverType.DIAL:X8(this,new F8(this.JSC$17367_screenService_,q,this.JSC$17367_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:X8(this,new M6(this.JSC$17367_screenService_,q,this.config_));break;default:this.warn_("Unknown receiver type: "+q.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17367_session_&&
this.JSC$17367_session_.receiver_.label==q.label?this.JSC$17367_session_.stop():this.warn_("Stopping receiver w/o session: "+q.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.e.onDialLaunchRequested_=function(q){if(this.isDisposed())return Promise.reject(Error("Vk"));var Z=q.receiver;Z.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+Z.friendlyName),Z.receiverType=chrome.cast.ReceiverType.DIAL);var w=this.JSC$17367_session_?this.JSC$17367_session_.receiver_:null;if(!w||w.label!=Z.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+Z.friendlyName),Promise.reject(Error("Wk"));if(w&&w.label==Z.label&&w.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17367_session_.screen_)return pU("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17367_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+w.receiverType+'" to "dial" for '+Z.friendlyName);X8(this,new F8(this.JSC$17367_screenService_,Z,this.JSC$17367_theme_,this.config_))}Z=this.JSC$17367_session_;Z.launchData_=q;Z.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(q=Z.launchData_.extraData||{},w=q.screenId||null,O2l(Z)&&q.loungeToken?q.loungeTokenRefreshIntervalMs?q=L88(Z,{name:Z.receiver_.friendlyName,screenId:q.screenId,loungeToken:q.loungeToken,dialId:Z.launchData_.receiver.label,screenIdType:"shortLived"},q.loungeTokenRefreshIntervalMs):(_.ns(Error("Sk`"+JSON.stringify(q))),q=Syb(Z,w)):q=Syb(Z,w)):q=ohu(Z);return q};
_.e.onSessionEstablished_=function(q){var Z=this;if(!this.isDisposed()&&!this.forceMirroring_){pU("New cast session ID: "+q.sessionId);var w=q.receiver;if(w.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17367_session_)if(w.receiverType==chrome.cast.ReceiverType.CAST)pU("Got resumed cast session before resumed mdx connection."),w.friendlyName=chrome.cast.unescape(w.friendlyName),X8(this,new M6(this.JSC$17367_screenService_,w,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var r=this.JSC$17367_session_.receiver_,Y=tN(this.JSC$17367_screenService_.getScreens(),r.label);Y&&jf(Y,w.label)&&r.receiverType!=chrome.cast.ReceiverType.CAST&&w.receiverType==chrome.cast.ReceiverType.CAST&&(pU("onSessionEstablished_: manual to cast session change "+w.friendlyName),_.Xg(this.JSC$17367_session_),this.JSC$17367_session_=new M6(this.JSC$17367_screenService_,w,this.config_),this.JSC$17367_session_.subscribe("sessionScreen",(0,_.Lh)(this.onSessionScreen_,this,this.JSC$17367_session_)),
this.JSC$17367_session_.subscribe("sessionFailed",function(){return RHc(Z,Z.JSC$17367_session_)}),this.JSC$17367_session_.launchWithParams(null));
this.JSC$17367_session_.setCastSession(q)}}};
_.e.JSC$17369_getCastSession=function(){return this.JSC$17367_session_?this.JSC$17367_session_.JSC$17353_getCastSession():null};
_.e.onSessionRequestFailed_=function(q){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.S3)(q)),q.code!=chrome.cast.ErrorCode.CANCEL&&X8(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.e.onReceiverUpdated_=function(q){pU("Receiver availability updated: "+q);if(!this.isDisposed()){var Z=G0(this);this.hasCastReceiver_=q==chrome.cast.ReceiverAvailability.AVAILABLE;G0(this)!=Z&&this.publish("yt-remote-cast2-availability-change",G0(this))}};
var jXq=function(q){var Z=q.JSC$17367_screenService_.JSC$17349_getOnlineScreens(),w=q.JSC$17367_session_&&q.JSC$17367_session_.receiver_;q=_.bM(Z,function(r){w&&jf(r,w.label)&&(w=null);var Y=r.uuid?r.uuid:r.id,C=td7(this,r);C?(C.label=Y,C.friendlyName=r.name):(C=new chrome.cast.Receiver(Y,r.name),C.receiverType=chrome.cast.ReceiverType.CUSTOM);return C},q);
w&&(w.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(w=new chrome.cast.Receiver(w.label,w.friendlyName),w.receiverType=chrome.cast.ReceiverType.CUSTOM),q.push(w));return q};
IE.prototype.JSC$17369_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=jXq(this),pU("Updating custom receivers: "+(0,_.S3)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Lh)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",G0(this)))};
IE.prototype.setLaunchParams=IE.prototype.setLaunchParams;IE.prototype.setConnectedScreenStatus=IE.prototype.setConnectedScreenStatus;IE.prototype.stopSession=IE.prototype.JSC$17369_stopSession;IE.prototype.getCastSession=IE.prototype.JSC$17369_getCastSession;IE.prototype.requestSession=IE.prototype.requestSession;IE.prototype.init=IE.prototype.init;IE.prototype.dispose=IE.prototype.dispose;var GfV=[];var b2c=function(q){q.audioTrackId=null;q.trackData=null;q.playerState=-1;q.hasPrevious=!1;q.hasNext=!1;q.playerTime_=0;q.playerTimeAt_=_.hW();q.seekableStart_=0;q.seekableEnd_=0;q.duration_=0;q.loadedTime=0;q.liveIngestionTime_=NaN;q.isLive_=!1};
_.e=c2.prototype;
_.e.reset=function(q){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;q&&(this.index=q.index,this.listId=q.listId,this.videoId=q.videoId,this.playerState=q.playerState,this.volume=q.volume,this.muted=q.muted,this.audioTrackId=q.audioTrackId,this.trackData=q.trackData,this.hasPrevious=q.hasPrevious,this.hasNext=q.hasNext,this.playerTime_=q.playerTime,this.playerTimeAt_=q.playerTimeAt,this.seekableStart_=q.seekableStart,this.seekableEnd_=q.seekableEnd,this.duration_=q.duration,this.loadedTime=
q.loadedTime,this.liveIngestionTime_=q.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.e.stopPlayer=function(){this.index=-1;this.videoId="";b2c(this)};
_.e.isPlaying=function(){return this.playerState==1};
_.e.isBuffering=function(){return this.playerState==3};
_.e.isAdPlaying=function(){return this.playerState==1081};
var mZ=function(q,Z){q.playerTime_=Z;q.playerTimeAt_=_.hW()},JZb=function(q){switch(q.playerState){case 1:case 1081:return(_.hW()-q.playerTimeAt_)/1E3+q.playerTime_;
case -1E3:return 0}return q.playerTime_};
c2.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.hW()-this.playerTimeAt_)/1E3:0):this.duration_};
var zHc=function(q,Z,w){var r=q.videoId;q.videoId=Z;q.index=w;Z!=r&&b2c(q)},Bqb=function(q){var Z={};
Z.index=q.index;Z.listId=q.listId;Z.videoId=q.videoId;Z.playerState=q.playerState;Z.volume=q.volume;Z.muted=q.muted;Z.audioTrackId=q.audioTrackId;Z.trackData=_.R4.unsafeClone(q.trackData);Z.hasPrevious=q.hasPrevious;Z.hasNext=q.hasNext;Z.playerTime=q.playerTime_;Z.playerTimeAt=q.playerTimeAt_;Z.seekableStart=q.seekableStart_;Z.seekableEnd=q.seekableEnd_;Z.duration=q.duration_;Z.loadedTime=q.loadedTime;Z.liveIngestionTime=q.liveIngestionTime_;return Z};
c2.prototype.clone=function(){return new c2(Bqb(this))};var AP=function(q,Z){_.sd.call(this);var w=this;this.state_=0;this.connection_=q;this.contextSubscriptions_=[];this.actionQueue_=new FBV;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.Lh)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.Lh)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.Lh)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.Lh)(this.onCloudviewAvailabilityChange_,this);var r=0;q?(r=q.getProxyState(),
r!=3&&(q.subscribe("proxyStateChange",this.setState_,this),aq8(this))):r=3;r!=0&&(Z?this.setState_(r):_.hf(function(){w.setState_(r)},0));
(q=AWD())&&nhV(this,q);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.z(AP,_.sd);AP.prototype.getState=function(){return this.state_};
AP.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
AP.prototype.reconnect=function(){this.connection_.reconnect()};
var fU=function(q){return new c2(q.connection_.getPlayerContextData())};
_.e=AP.prototype;_.e.play=function(){DO(this)?(this.castMedia_?this.castMedia_.play(null,_.Pr,QXF(this,"play")):hP(this,"play"),EhZ(this,1,JZb(fU(this))),this.publish("remotePlayerChange")):yr(this,this.play)};
_.e.pause=function(){DO(this)?(this.castMedia_?this.castMedia_.pause(null,_.Pr,QXF(this,"pause")):hP(this,"pause"),EhZ(this,2,JZb(fU(this))),this.publish("remotePlayerChange")):yr(this,this.pause)};
_.e.seekTo=function(q){if(DO(this)){if(this.castMedia_){var Z=fU(this),w=new chrome.cast.media.SeekRequest;w.currentTime=q;Z.isPlaying()||Z.isBuffering()?w.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:w.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(w,_.Pr,QXF(this,"seekTo",{newTime:q}))}else hP(this,"seekTo",{newTime:q});EhZ(this,3,q);this.publish("remotePlayerChange")}else yr(this,_.Oh(this.seekTo,q))};
_.e.stop=function(){if(DO(this)){this.castMedia_?this.castMedia_.stop(null,_.Pr,QXF(this,"stopVideo")):hP(this,"stopVideo");var q=fU(this);q.stopPlayer();i0(this,q);this.publish("remotePlayerChange")}else yr(this,this.stop)};
_.e.setVolume=function(q,Z){if(DO(this)){var w=fU(this);if(this.castSession_){if(w.volume!=q){var r=Math.round(q)/100;this.castSession_.setReceiverVolumeLevel(r,(0,_.Lh)(function(){aE("set receiver volume: "+r)},this),(0,_.Lh)(function(){this.warn_("failed to set receiver volume.")},this))}w.muted!=Z&&this.castSession_.setReceiverMuted(Z,(0,_.Lh)(function(){aE("set receiver muted: "+Z)},this),(0,_.Lh)(function(){this.warn_("failed to set receiver muted.")},this))}else{var Y={volume:q,
muted:Z};w.volume!=-1&&(Y.delta=q-w.volume);hP(this,"setVolume",Y)}w.muted=Z;w.volume=q;i0(this,w)}else yr(this,_.Oh(this.setVolume,q,Z))};
_.e.setAudioTrack=function(q,Z){DO(this)?(Z=Z.getLanguageInfo().getId(),hP(this,"setAudioTrack",{videoId:q,audioTrackId:Z}),q=fU(this),q.audioTrackId=Z,i0(this,q)):yr(this,_.Oh(this.setAudioTrack,q,Z))};
_.e.addVideo=function(q){DO(this)?hP(this,"addVideo",{videoId:q}):yr(this,_.Oh(this.addVideo,q))};
_.e.addPlaylist=function(q){DO(this)?hP(this,"addVideos",{listId:q}):yr(this,_.Oh(this.addPlaylist,q))};
_.e.addVideos=function(q){q.length==0?this.warn_("Ignore add videos request due to empty list"):DO(this)?hP(this,"addVideos",{videoIds:q.join(",")}):yr(this,_.Oh(this.addVideos,q))};
_.e.JSC$17379_removeVideo=function(q){DO(this)?hP(this,"removeVideo",{videoId:q}):yr(this,_.Oh(this.JSC$17379_removeVideo,q))};
_.e.JSC$17379_insertVideo=function(q){DO(this)?hP(this,"insertVideo",{videoId:q}):yr(this,_.Oh(this.JSC$17379_insertVideo,q))};
_.e.playVideo=function(q,Z,w,r,Y,C,d){r=r===void 0?null:r;Y=Y===void 0?null:Y;C=C===void 0?null:C;d=d===void 0?null:d;var O=fU(this),H={videoId:q};w!==void 0&&(H.currentIndex=w);zHc(O,q,w||0);Z!==void 0&&(mZ(O,Z),H.currentTime=Z);r&&(H.listId=r);Y&&(H.playerParams=Y);C&&(H.clickTrackingParams=C);d&&(H.locationInfo=(0,_.S3)(d));hP(this,"setPlaylist",H);r||i0(this,O)};
_.e.nextVideo=function(q,Z){if(DO(this)){if(q&&Z){var w=fU(this);zHc(w,q,Z);i0(this,w)}hP(this,"next")}else yr(this,_.Oh(this.nextVideo,q,Z))};
_.e.clearPlaylist=function(){if(DO(this)){hP(this,"clearPlaylist");var q=fU(this);q.reset();i0(this,q);this.publish("remotePlayerChange")}else yr(this,this.clearPlaylist)};
_.e.dispose=function(){if(this.state_!=3){var q=this.state_;this.state_=3;this.publish("proxyStateChange",q,this.state_)}_.sd.prototype.dispose.call(this)};
_.e.disposeInternal=function(){xsD(this);this.connection_=null;this.actionQueue_.clear();nhV(this,null);_.sd.prototype.disposeInternal.call(this)};
var aq8=function(q){_.Uq("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(Z){this.contextSubscriptions_.push(this.connection_.subscribe(Z,_.Oh(this.onProxyEvent_,Z),this))},q)},xsD=function(q){_.Uq(q.contextSubscriptions_,function(Z){this.connection_.unsubscribeByKey(Z)},q);
q.contextSubscriptions_.length=0},DO=function(q){return q.getState()==1},yr=function(q,Z){q.actionQueue_.getCount()<50&&q.actionQueue_.enqueue(Z)},EhZ=function(q,Z,w){var r=fU(q);
mZ(r,w);r.playerState!=-1E3&&(r.playerState=Z);i0(q,r)},hP=function(q,Z,w){q.connection_.sendMessage(Z,w)},i0=function(q,Z){xsD(q);
q.connection_.setPlayerContextData(Bqb(Z));aq8(q)};
AP.prototype.setState_=function(q){if((q!=this.state_||q==2)&&this.state_!=3&&q!=0){var Z=this.state_;this.state_=q;this.publish("proxyStateChange",Z,q);if(q==1)for(;!this.actionQueue_.isEmpty();)q=this.actionQueue_,GiZ(q),q.front_.pop().apply(this);else q==3&&this.dispose()}};
AP.prototype.onProxyEvent_=function(q,Z){this.publish(q,Z)};
var nhV=function(q,Z){q.castSession_&&(q.castSession_.removeUpdateListener(q.boundCastStatusListener_),q.castSession_.removeMediaListener(q.boundCastMediaListener_),q.onCastMediaChange_(null));q.castSession_=Z;if(q.castSession_&&(aE("Setting cast session: "+q.castSession_.sessionId),q.castSession_.addUpdateListener(q.boundCastStatusListener_),q.castSession_.addMediaListener(q.boundCastMediaListener_),q.castSession_.media.length))q.onCastMediaChange_(q.castSession_.media[0])};
AP.prototype.onCastStatusUpdate_=function(q){if(!q)this.onCastMediaChange_(null),nhV(this,null);else if(this.castSession_.receiver.volume){q=this.castSession_.receiver.volume;var Z=fU(this),w=Math.round(100*q.level||0);if(Z.volume!=w||Z.muted!=q.muted)aE("Cast volume update: "+q.level+(q.muted?" muted":"")),Z.volume=w,Z.muted=!!q.muted,i0(this,Z)}};
AP.prototype.onCastMediaChange_=function(q){aE("Cast media: "+!!q);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=q)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),Tqy(this),this.publish("remotePlayerChange")};
var Tqy=function(q){var Z=q.castMedia_.media,w=q.castMedia_.customData;if(Z&&w){var r=fU(q);Z.contentId!=r.videoId&&aE("Cast changing video to: "+Z.contentId);r.videoId=Z.contentId;r.playerState=w.playerState;mZ(r,q.castMedia_.getEstimatedTime());i0(q,r)}else aE("No cast media video. Ignoring state update.")};
AP.prototype.onCastMediaUpdate_=function(q){if(q)Tqy(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
AP.prototype.onCloudviewAvailabilityChange_=function(){var q=AWD();q&&nhV(this,q)};
AP.prototype.warn_=function(q){B2("CP",q)};
var QXF=function(q,Z,w){return(0,_.Lh)(function(r){this.warn_("Failed to "+Z+" with cast v2 channel. Error code: "+r.code);r.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+Z+" using MDx browser channel."),hP(this,Z,w))},q)};var qz=function(q,Z,w,r){r=r===void 0?!1:r;_.sd.call(this);var Y=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$17386_http_=q;this.enableConnectWithInitialState_=r;this.listeners_.push(_.Fw(window,"beforeunload",function(){Y.JSC$17389_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new c2;this.currentScreenId_=Z.id;this.currentScreenIdType_=Z.idType;this.channelService=o4F(this.JSC$17386_http_,w,this.JSC$17389_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){UsF(Y)});
this.channelService.listen("channelClosed",function(){ge("Channel closed");isNaN(Y.connectTimerId_)?RE(!0):RE();Y.dispose()});
this.channelService.listen("channelError",function(C){RE();isNaN(Y.getReconnectTimeout_())?(C==1&&Y.currentScreenIdType_=="shortLived"&&Y.publish("browserChannelAuthError",C),ge("Channel error: "+C+" without reconnection"),Y.dispose()):(Y.reconnecting_=!0,ge("Channel error: "+C+" with reconnection in "+Y.getReconnectTimeout_()+" ms"),kY7(Y,2))});
this.channelService.listen("channelMessage",function(C){K86(Y,C)});
this.channelService.setLoungeToken(Z.token);this.subscribe("remoteQueueChange",function(){var C=Y.playerContext_.videoId;qnc()&&_.yq("yt-remote-session-video-id",C)})};
_.z(qz,_.sd);
qz.prototype.connect=function(q,Z){if(Z){var w=Z.listId,r=Z.videoId,Y=Z.videoIds,C=Z.playerParams,d=Z.clickTrackingParams,O=Z.index,H={videoId:r},L=Z.currentTime,S=Z.locationInfo;Z=Z.loopMode;L!==void 0&&(H.currentTime=L<=5?0:L);C&&(H.playerParams=C);S&&(H.locationInfo=S);d&&(H.clickTrackingParams=d);w&&(H.listId=w);Y&&Y.length>0&&(H.videoIds=Y.join(","));O!==void 0&&(H.currentIndex=O);this.enableConnectWithInitialState_&&(H.loopMode=Z||"LOOP_MODE_OFF");w&&(this.playerContext_.listId=w);this.playerContext_.videoId=
r;this.playerContext_.index=O||0;this.playerContext_.state=3;mZ(this.playerContext_,L);this.autoplayMode_="UNSUPPORTED";w=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";ge("Connecting with "+w+" and params: "+(0,_.S3)(H));this.channelService.connect({method:w,params:(0,_.S3)(H)},q,$d8())}else ge("Connecting without params"),this.channelService.connect({},q,$d8());sX6(this)};
qz.prototype.setLoungeToken=function(q){this.channelService.setLoungeToken(q)};
qz.prototype.dispose=function(){this.isDisposed()||(_.IR("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),kY7(this,3));_.sd.prototype.dispose.call(this)};
qz.prototype.disposeInternal=function(){Iq7(this);cZF(this);Md7(this);_.iO(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.iO(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.IfO(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.sd.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var F8V=function(q){return _.KX(q.connectedDevices_,function(Z){return Z.type=="LOUNGE_SCREEN"})},ge=function(q){B2("conn",q)},kY7=function(q,Z){q.publish("proxyStateChange",Z)},sX6=function(q){q.connectTimerId_=_.hf(function(){ge("Connecting timeout");
q.JSC$17389_disconnect_(1)},2E4)},Iq7=function(q){_.iO(q.connectTimerId_);
q.connectTimerId_=NaN},Md7=function(q){_.iO(q.reconnectedCheckScreenTimeout_);
q.reconnectedCheckScreenTimeout_=NaN},Nqq=function(q){cZF(q);
q.playingSyncTimerId_=_.hf(function(){Zo(q,"getNowPlaying")},2E4)},cZF=function(q){_.iO(q.playingSyncTimerId_);
q.playingSyncTimerId_=NaN},UsF=function(q){ge("Channel opened");
q.reconnecting_&&(q.reconnecting_=!1,Md7(q),q.reconnectedCheckScreenTimeout_=_.hf(function(){ge("Timing out waiting for a screen.");q.JSC$17389_disconnect_(1)},15E3))},GYl=function(q,Z){var w=null;
if(Z){var r=F8V(q);r&&(w={clientName:r.clientName,deviceMake:r.brand,deviceModel:r.model,osVersion:r.osVersion})}_.IR("yt.mdx.remote.remoteClient_",w);Z&&(Iq7(q),Md7(q));w=q.channelService.isChannelOpened()&&isNaN(q.connectTimerId_);Z==w?Z&&(kY7(q,1),Zo(q,"getSubtitlesTrack")):Z?(q.getOtherConnectedRemoteId_()&&q.playerContext_.reset(),kY7(q,1),Zo(q,"getNowPlaying"),lql(q)):q.JSC$17389_disconnect_(1)},pYy=function(q,Z){var w=Z.params.videoId;
delete Z.params.videoId;w==q.playerContext_.videoId&&(_.R4.isEmpty(Z.params)?q.playerContext_.trackData=null:q.playerContext_.trackData=Z.params,q.publish("remotePlayerChange"))},XYD=function(q,Z,w){var r=Z.params.videoId||Z.params.video_id,Y=parseInt(Z.params.currentIndex,10);
q.playerContext_.listId=Z.params.listId||q.playerContext_.listId;zHc(q.playerContext_,r,Y);q.publish("remoteQueueChange",w)},msy=function(q,Z){Z.params=Z.params||{};
XYD(q,Z,"NOW_PLAYING_MAY_CHANGE");q.onStateChange_(Z);q.publish("autoplayDismissed")};
qz.prototype.onStateChange_=function(q){var Z=parseInt(q.params.currentTime||q.params.current_time,10);mZ(this.playerContext_,isNaN(Z)?0:Z);Z=parseInt(q.params.state,10);Z=isNaN(Z)?-1:Z;Z==-1&&this.playerContext_.playerState==-1E3&&(Z=-1E3);this.playerContext_.playerState=Z;Z=Number(q.params.loadedTime);this.playerContext_.loadedTime=isNaN(Z)?0:Z;Z=Number(q.params.duration);this.playerContext_.duration_=isNaN(Z)?0:Z;Z=this.playerContext_;var w=Number(q.params.liveIngestionTime);Z.liveIngestionTime_=
w;Z.isLive_=isNaN(w)?!1:!0;Z=this.playerContext_;w=Number(q.params.seekableStartTime);q=Number(q.params.seekableEndTime);Z.seekableStart_=isNaN(w)?0:w;Z.seekableEnd_=isNaN(q)?0:q;this.playerContext_.playerState==1?Nqq(this):cZF(this);this.publish("remotePlayerChange")};
qz.prototype.onAdStateChange_=function(q){if(this.playerContext_.playerState!=-1E3){var Z=1085;switch(parseInt(q.params.adState,10)){case 1:Z=1081;break;case 2:Z=1084;break;case 0:Z=1083}this.playerContext_.playerState=Z;q=parseInt(q.params.currentTime,10);mZ(this.playerContext_,isNaN(q)?0:q);this.publish("remotePlayerChange")}};
var AZy=function(q,Z){var w=Z.params.muted=="true";q.playerContext_.volume=parseInt(Z.params.volume,10);q.playerContext_.muted=w;q.publish("remotePlayerChange")},fq6=function(q,Z){q.autoplayVideoId_=Z.params.videoId;
q.publish("nowAutoplaying",parseInt(Z.params.timeout,10))},Ds7=function(q,Z){q.autoplayVideoId_=Z.params.videoId||null;
q.publish("autoplayUpNext",q.autoplayVideoId_)},hHF=function(q,Z){q.autoplayMode_=Z.params.autoplayMode;
q.publish("autoplayModeChange",q.autoplayMode_);q.autoplayMode_=="DISABLED"&&q.publish("autoplayDismissed")},yZD=function(q,Z){var w=Z.params.hasNext=="true";
q.playerContext_.hasPrevious=Z.params.hasPrevious=="true";q.playerContext_.hasNext=w;q.publish("previousNextChange")};
qz.prototype.isCapabilitySupportedOnConnectedDevices_=function(q){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var Z=_.P(this.connectedDevices_),w=Z.next();!w.done;w=Z.next())if(!w.value.capabilities.has(q))return!1;return!0};
var K86=function(q,Z){Z=Z.message;Z.params?ge("Received: action="+Z.action+", params="+(0,_.S3)(Z.params)):ge("Received: action="+Z.action+" {}");switch(Z.action){case "loungeStatus":Z=(0,_.Ss)(Z.params.devices);q.connectedDevices_=_.bM(Z,function(r){return new kP(r)});
Z=!!_.KX(q.connectedDevices_,function(r){return r.type=="LOUNGE_SCREEN"});
GYl(q,Z);Z=q.isCapabilitySupportedOnConnectedDevices_("mlm");q.publish("multiStateLoopEnabled",Z);break;case "loungeScreenDisconnected":tpu(q.connectedDevices_,function(r){return r.type=="LOUNGE_SCREEN"});
GYl(q,!1);break;case "remoteConnected":var w=new kP((0,_.Ss)(Z.params.device));_.KX(q.connectedDevices_,function(r){return r.equals(w)})||_.R8T(q.connectedDevices_,w);
break;case "remoteDisconnected":w=new kP((0,_.Ss)(Z.params.device));tpu(q.connectedDevices_,function(r){return r.equals(w)});
break;case "gracefulDisconnect":break;case "playlistModified":XYD(q,Z,"QUEUE_MODIFIED");break;case "nowPlaying":msy(q,Z);break;case "onStateChange":q.onStateChange_(Z);break;case "onAdStateChange":q.onAdStateChange_(Z);break;case "onVolumeChanged":AZy(q,Z);break;case "onSubtitlesTrackChanged":pYy(q,Z);break;case "nowAutoplaying":fq6(q,Z);break;case "autoplayDismissed":q.publish("autoplayDismissed");break;case "autoplayUpNext":Ds7(q,Z);break;case "onAutoplayModeChanged":hHF(q,Z);break;case "onHasPreviousNextChanged":yZD(q,
Z);break;case "requestAssistedSignIn":q.publish("assistedSignInRequested",Z.params.authCode);break;case "onLoopModeChanged":q.publish("loopModeChange",Z.params.loopMode);break;default:ge("Unrecognized action: "+Z.action)}};
_.e=qz.prototype;_.e.getProxyState_=function(){var q=3;this.isDisposed()||(q=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(q=1):q=2);return q};
_.e.JSC$17389_disconnect_=function(q){ge("Disconnecting with "+q);_.IR("yt.mdx.remote.remoteClient_",null);Iq7(this);this.publish("beforeDisconnect",q);q==1&&RE();this.channelService.disconnect(q);this.dispose()};
_.e.getPlayerContextData_=function(){var q=this.playerContext_;this.clientVideoId_&&(q=this.playerContext_.clone(),zHc(q,this.clientVideoId_,q.index));return Bqb(q)};
_.e.setPlayerContextData_=function(q){var Z=this,w=new c2(q);w.videoId&&w.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=w.videoId,_.iO(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.hf(function(){if(Z.clientVideoId_){var Y=Z.clientVideoId_;Z.clientVideoId_=null;Z.playerContext_.videoId!=Y&&Zo(Z,"getNowPlaying")}},5E3));
var r=[];this.playerContext_.listId==w.listId&&this.playerContext_.videoId==w.videoId&&this.playerContext_.index==w.index||r.push("remoteQueueChange");this.playerContext_.playerState==w.playerState&&this.playerContext_.volume==w.volume&&this.playerContext_.muted==w.muted&&JZb(this.playerContext_)==JZb(w)&&(0,_.S3)(this.playerContext_.trackData)==(0,_.S3)(w.trackData)||r.push("remotePlayerChange");this.playerContext_.reset(q);_.Uq(r,function(Y){this.publish(Y)},this)};
_.e.getOtherConnectedRemoteId_=function(){var q=this.channelService.getDeviceId(),Z=_.KX(this.connectedDevices_,function(w){return w.type=="REMOTE_CONTROL"&&w.id!=q});
return Z?Z.id:""};
_.e.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.e.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.e.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.e.JSC$17389_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var lql=function(q){_.iO(q.idleDisconnectTimerId_);q.idleDisconnectTimerId_=_.hf(function(){q.JSC$17389_disconnect_(1)},864E5)},Zo=function(q,Z,w){w?ge("Sending: action="+Z+", params="+(0,_.S3)(w)):ge("Sending: action="+Z);
q.channelService.sendMessage(Z,w)};
qz.prototype.sendMessageWithUserAction_=function(q,Z){Zo(this,q,Z);lql(this)};
qz.prototype.JSC$17389_getXsrfToken_=function(){var q=_.Yr.get("SAPISID","")||_.Yr.get("__Secure-1PAPISID",void 0)||"",Z=_.Yr.get("__Secure-3PAPISID","")||"";if(!q&&!Z)return"";q=_.Rq(_.o1(q),2);Z=_.Rq(_.o1(Z),2);return _.Rq(_.o1(","+q+","+Z),2)};
qz.prototype.subscribe=qz.prototype.subscribe;qz.prototype.unsubscribeByKey=qz.prototype.unsubscribeByKey;qz.prototype.getProxyState=qz.prototype.getProxyState_;qz.prototype.disconnect=qz.prototype.JSC$17389_disconnect_;qz.prototype.getPlayerContextData=qz.prototype.getPlayerContextData_;qz.prototype.setPlayerContextData=qz.prototype.setPlayerContextData_;qz.prototype.getOtherConnectedRemoteId=qz.prototype.getOtherConnectedRemoteId_;qz.prototype.getReconnectTimeout=qz.prototype.getReconnectTimeout_;
qz.prototype.getAutoplayMode=qz.prototype.getAutoplayMode_;qz.prototype.getAutoplayVideoId=qz.prototype.getAutoplayVideoId_;qz.prototype.reconnect=qz.prototype.JSC$17389_reconnect_;qz.prototype.sendMessage=qz.prototype.sendMessageWithUserAction_;qz.prototype.getXsrfToken=qz.prototype.JSC$17389_getXsrfToken_;qz.prototype.isCapabilitySupportedOnConnectedDevices=qz.prototype.isCapabilitySupportedOnConnectedDevices_;var i2D=function(q){Q3.call(this,"ScreenServiceProxy");this.instance_=q;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.Lh)(this.JSC$17392_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.Lh)(this.onOnlineScreenChange_,this)))};
_.z(i2D,Q3);_.e=i2D.prototype;_.e.getScreens=function(q){return this.instance_.$_gs(q)};
_.e.contains=function(q){return!!this.instance_.$_c(q)};
_.e.get=function(q){return this.instance_.$_g(q)};
_.e.start=function(){this.instance_.$_st()};
_.e.add=function(q,Z,w){this.instance_.$_a(q,Z,w)};
_.e.remove=function(q,Z,w){this.instance_.$_r(q,Z,w)};
_.e.updateName=function(q,Z,w,r){this.instance_.$_un(q,Z,w,r)};
_.e.disposeInternal=function(){for(var q=this.subscriptionKeys_.length,Z=0;Z<q;++Z)this.instance_.$_ubk(this.subscriptionKeys_[Z]);this.subscriptionKeys_.length=0;this.instance_=null;Q3.prototype.disposeInternal.call(this)};
_.e.JSC$17392_onScreenChange_=function(){this.publish("screenChange")};
_.e.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
TD.prototype.$_st=TD.prototype.start;TD.prototype.$_gspc=TD.prototype.JSC$17349_getScreenByPairingCode;TD.prototype.$_gsppc=TD.prototype.JSC$17349_getScreenByPollingPairingCode;TD.prototype.$_c=TD.prototype.contains;TD.prototype.$_g=TD.prototype.get;TD.prototype.$_a=TD.prototype.add;TD.prototype.$_un=TD.prototype.updateName;TD.prototype.$_r=TD.prototype.remove;TD.prototype.$_gs=TD.prototype.getScreens;TD.prototype.$_gos=TD.prototype.JSC$17349_getOnlineScreens;TD.prototype.$_s=TD.prototype.subscribe;
TD.prototype.$_ubk=TD.prototype.unsubscribeByKey;var $Hl=function(q){ddF();if(!bE||!bE.get("yt-remote-disable-remote-module-for-dev")){q=_.zj("MDX_CONFIG")||q;jWF();wHq();wv||(wv=new Sf(q?q.loungeApiHost:void 0),VlV()&&(wv.basePath="/api/loungedev"));rv||(rv=_.Eq("yt.mdx.remote.deferredProxies_")||[],_.IR("yt.mdx.remote.deferredProxies_",rv));ghy();var Z=YF();if(!Z){var w=new TD(wv,q?q.disableAutomaticScreenCache||!1:!1);_.IR("yt.mdx.remote.screenService_",w);Z=YF();var r={};q&&(r={appId:q.appId,disableDial:q.disableDial,theme:q.theme,loadCastApiSetupScript:q.loadCastApiSetupScript,
disableCastApi:q.disableCastApi,enableDialLoungeToken:q.enableDialLoungeToken,enableCastLoungeToken:q.enableCastLoungeToken,forceMirroring:q.forceMirroring});_.IR("yt.mdx.remote.enableConnectWithInitialState_",q?q.enableConnectWithInitialState||!1:!1);N1u(w,function(C){C?$F()&&DdF($F(),"YouTube TV"):w.subscribe("onlineScreenChange",function(){G_("yt-remote-receiver-availability-change")})},r)}if(q&&!_.Eq("yt.mdx.remote.initialized_")){_.IR("yt.mdx.remote.initialized_",!0);
et("Initializing: "+(0,_.S3)(q));C$.push(_.h9("yt-remote-cast2-api-ready",function(){G_("yt-remote-api-ready")}));
C$.push(_.h9("yt-remote-cast2-availability-change",function(){G_("yt-remote-receiver-availability-change")}));
C$.push(_.h9("yt-remote-cast2-receiver-selected",function(){q7u();G_("yt-remote-auto-connect","cast-selector-receiver")}));
C$.push(_.h9("yt-remote-cast2-receiver-resumed",function(){G_("yt-remote-receiver-resumed","cast-selector-receiver")}));
C$.push(_.h9("yt-remote-cast2-session-change",ZM7));C$.push(_.h9("yt-remote-connection-change",function(C){C?DdF($F(),"YouTube TV"):wwF()||(DdF(null,null),md6())}));
C$.push(_.h9("yt-remote-cast2-session-failed",function(){G_("yt-remote-connection-failed")}));
r=rwq();q.isAuto&&(r.id+="#dial");var Y=q.capabilities||[];_.b("desktop_enable_autoplay")&&Y.push("atp");Y.length>0&&(r.capabilities=Y);r.name=q.device;r.app=q.app;(q=q.theme)&&(r.theme=q);et(" -- with channel params: "+(0,_.S3)(r));r?(_.yq("yt-remote-session-app",r.app),_.yq("yt-remote-session-name",r.name)):(_.gF("yt-remote-session-app"),_.gF("yt-remote-session-name"));_.IR("yt.mdx.remote.channelParams_",r);Z.start();$F()||Y7S()}}},CDb=function(){var q=YF().instance_.$_gos();
var Z=eNl();Z&&PT()&&(yQl(q,Z)||q.push(Z));return hk8(q)},PDS=function(){var q=CDb(),Z=eNl();
Z||(Z=wwF());return _.KX(q,function(w){return Z&&jf(Z,w.key)?!0:!1})},eNl=function(){var q=$F();
if(!q)return null;var Z=YF().getScreens();return tN(Z,q)},ZM7=function(q){et("remote.onCastSessionChange_: "+hDl(q));
if(q){var Z=eNl();Z&&Z.id==q.id?(DdF(Z.id,"YouTube TV"),q.idType=="shortLived"&&(q=q.token)&&(Z=PT())&&Z.setLoungeToken(q)):(Z&&dH7(),VDZ(q,1))}else PT()&&dH7()},dH7=function(){fb6()?sx().stopSession():Kv("stopSession called before API ready.");
var q=PT();q&&(q.disconnect(1),OM7(null))},HMl=function(){var q=PT();
return q&&q.getProxyState()!=3?new AP(PT(),void 0):null},et=function(q){B2("remote",q)},YF=function(){if(!WXD){var q=_.Eq("yt.mdx.remote.screenService_");
WXD=q?new i2D(q):null}return WXD},$F=function(){return _.Eq("yt.mdx.remote.currentScreenId_")},oMD=function(q){_.IR("yt.mdx.remote.currentScreenId_",q)},q7u=function(){_.IR("yt.mdx.remote.connectData_",null)},PT=function(){return _.Eq("yt.mdx.remote.connection_")},OM7=function(q){var Z=PT();
q7u();q||oMD("");_.IR("yt.mdx.remote.connection_",q);rv&&(_.Uq(rv,function(w){w(q)}),rv.length=0);
Z&&!q?G_("yt-remote-connection-change",!1):!Z&&q&&G_("yt-remote-connection-change",!0)},wwF=function(){var q=qnc();
if(!q)return null;var Z=YF();if(!Z)return null;Z=Z.getScreens();return tN(Z,q)},VDZ=function(q,Z){oMD(q.id);
q=new qz(wv,q,rwq(),_.Eq("yt.mdx.remote.enableConnectWithInitialState_")||!1);q.connect(Z,_.Eq("yt.mdx.remote.connectData_"));q.subscribe("beforeDisconnect",function(w){G_("yt-remote-before-disconnect",w)});
q.subscribe("beforeDispose",function(){PT()&&OM7(null)});
q.subscribe("browserChannelAuthError",function(){var w=eNl();w&&w.idType=="shortLived"&&(fb6()?sx().handleBrowserChannelAuthError():Kv("refreshLoungeToken called before API ready."))});
OM7(q)},Y7S=function(){var q=wwF();
q?(et("Resume connection to: "+hDl(q)),VDZ(q,0)):(RE(),md6(),et("Skipping connecting because no session screen found."))},wv=null,rv=null,WXD=null,ghy=function(){var q=rwq();
if(_.R4.isEmpty(q)){q=g_D();var Z=_.i8("yt-remote-session-name")||"",w=_.i8("yt-remote-session-app")||"";q={device:"REMOTE_CONTROL",id:q,name:Z,app:w,mdxVersion:3};q.authuser=String(_.zj("SESSION_INDEX","0"));(Z=_.zj("DELEGATED_SESSION_ID"))&&(q.pageId=String(Z));_.IR("yt.mdx.remote.channelParams_",q)}},rwq=function(){return _.Eq("yt.mdx.remote.channelParams_")||{}},C$=[];var uZu=new _.zo("yt-menu"),LXb=function(){},vMF=function(q,Z,w){q=Z=="right-click"?w.rightClickMenuPopupHint:w.menuPopupHint;
if(!(S77(Z)>10))return Z=Z||"default",uZu.set(Z+"-impression",S77(Z)+1),q},S77=function(q){return parseInt(uZu.get((q||"default")+"-impression")||0,10)};
_.Db(LXb);var jcc=function(){this.contexts_=new WeakMap;this.JSC$17398_networkService_=this.activeContext_=null},tDZ=function(q,Z,w){var r=q.contexts_.get(Z);
r||(r=new vDl(q.JSC$17398_networkService_),q.contexts_.set(Z,r));q.activeContext_=r;w&&q.activeContext_.reset();q.activeContext_.start();return q.activeContext_};var dv=function(){};
dv.prototype.enqueue=function(){var q=this,Z;return _.V(function(w){if(q.isCounterfactual())return(Z=q.getCounterfactualData())&&q.shouldLogCounterfactualImpression()&&q.sendImpressionEndpoints(Z),w.return();q.doEnqueue();_.ub(w)})};
dv.prototype.sendImpressionEndpoints=function(q){_.UU.getInstance().triggerOptionalAction("yt-service-request",{},q[0])};var Vs=function(q,Z){this.renderer=q;this.page=Z};
_.z(Vs,dv);Vs.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
Vs.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
Vs.prototype.shouldLogCounterfactualImpression=function(){return!0};
Vs.prototype.doEnqueue=function(){var q=_.kB(this.page);q&&q.pause();this.renderer.impressionCommand&&_.UU.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.tH(_.UU.getInstance(),[this.renderer.promoCommand],this.page)};var RNu=function(q,Z){this.renderer=q;this.resolver=_.Be();this.JSC$17410_enforcementCounter=new _.QFp;Z?this.JSC$17410_playerManager=_.kB(Z):this.JSC$17410_playerManager=null;_.gt(1,!0)};
_.z(RNu,dv);_.e=RNu.prototype;_.e.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var q=[];this.renderer.impressionEndpoints.forEach(function(Z){(Z=_.oQ(Z))&&q.push(Z)});
return q}};
_.e.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.e.shouldLogCounterfactualImpression=function(){var q=_.jC9();q?(this.JSC$17410_enforcementCounter.increment("POPUP"),_.gt(3)):_.gt(2);return q};
_.e.cancel=function(){this.resolver.promise.cancel()};
_.e.doEnqueue=function(){var q=this;_.jC9()?(this.JSC$17410_enforcementCounter.increment("POPUP"),_.gt(3),bMb(this)):this.JSC$17410_playerManager?(this.resolver.promise.then(function(){bMb(q)}),JwS(this.resolver,this.JSC$17410_playerManager)):_.gt(2)};
var JwS=function(q,Z){var w=_.Be();Z.getPlayerPromise().then(function(r){w.resolve(r)});
w.promise.then(function(r){r.addEventListener("onAbnormalityDetected",q.resolve);_.on(q.promise,function(){r.removeEventListener("onAbnormalityDetected",q.resolve)})});
q.promise.thenCatch(function(){w.promise.cancel()})},bMb=function(q){_.gt(3);
var Z={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:q.renderer}};Z=_.UU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:Z},{});Promise.all(Z).then(function(){zNu();q.JSC$17410_playerManager&&q.JSC$17410_playerManager.pause()})},zNu=function(){$0u(function(q,Z){_.rEF(q,Z);
q===0?_.gt(7):_.gt(4)})};var Bdl=function(q,Z){this.renderer=q;this.page=Z;this.resolver=_.Be()};
_.z(Bdl,dv);_.e=Bdl.prototype;_.e.cancel=function(){this.resolver.promise.cancel()};
_.e.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.e.isCounterfactual=function(){return!this.renderer.isVisible};
_.e.shouldLogCounterfactualImpression=function(){return!0};
_.e.doEnqueue=function(){var q=this;this.resolver.promise.then(function(){var w={popup:{mealbarPromoRenderer:q.renderer},popupType:"MEALBAR"};_.UU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:w},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var Z=_.kB(this.page);Z&&anS(this.resolver,Z)}break;default:this.resolver.resolve()}};
var anS=function(q,Z){var w=_.Be();Z.getPlayerPromise().then(function(r){w.resolve(r)});
w.promise.then(function(r){r.addEventListener("onAdEnd",q.resolve);_.on(q.promise,function(){r.removeEventListener("onAdEnd",q.resolve)})});
q.promise.thenCatch(function(){w.promise.cancel()})};var nM6=function(q,Z){this.renderer=q;this.page=Z};
_.z(nM6,dv);_.e=nM6.prototype;_.e.cancel=function(){this.JSC$17418_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17418_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17418_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.e.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.e.isCounterfactual=function(){return!this.renderer.isVisible};
_.e.shouldLogCounterfactualImpression=function(){return!0};
_.e.doEnqueue=function(){var q=this,Z,w;((Z=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(w=Z.playbackUpsellDialogTriggerConditionData)==null?void 0:w.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17418_downloadedVideosCountSelectorUnsubscriber=_.wF(_.sE(),q1V,function(r,Y){r>Y&&(Qcu(q),q.cancel())}):Qcu(this)};
var Qcu=function(q){var Z={popup:{upsellDialogRenderer:q.renderer},popupType:"MODAL"};_.UU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:Z},{});(q=_.kB(q.page))&&q.pause()};var OO={},EMZ=(OO.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",OO.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",OO.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",OO.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",OO.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",OO.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",OO.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",OO),xHZ=function(q,Z){this.renderer=q;this.targetManager=
Z};
_.z(xHZ,dv);_.e=xHZ.prototype;_.e.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17425_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17425_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17425_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.e.getCounterfactualData=function(){if(this.isCounterfactual()){var q;return(q=this.renderer.promoConfig)==null?void 0:q.impressionEndpoints}};
_.e.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.e.shouldLogCounterfactualImpression=function(){return!0};
_.e.doEnqueue=function(){var q=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17425_downloadedVideosCountSelectorUnsubscriber=_.wF(_.sE(),q1V,function(Z,w){q.renderer.targetId&&Z>w&&(m1V(q.targetManager,q.renderer.targetId,Td7(q)),q.cancel())});
break;default:m1V(this.targetManager,this.renderer.targetId,Td7(this))}};
var Td7=function(q){var Z;if((Z=q.renderer.suggestedPosition)==null?0:Z.type)var w=EMZ[q.renderer.suggestedPosition.type];w||(w="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:q.renderer},popupType:"HINT",position:w}}};var UHZ=function(){this.previousPage=null},kKC;
UHZ.prototype.registerPromoCommand=function(q,Z){KXy(this,void 0,void 0,_.J(q.roadblock,ypu),void 0,void 0,Z)};
var KXy=function(q,Z,w,r,Y,C,d){q.previousPage!==d&&q.pendingTooltipPromo&&q.pendingTooltipPromo.cancel();q.previousPage=d;Y?(q.pendingEnforcementPromo&&q.pendingEnforcementPromo.cancel(),q.pendingEnforcementPromo=new RNu(Y,d),q.pendingEnforcementPromo.enqueue()):C?(q.pendingCommandWrapperPromo=new Vs(C,d),q.pendingCommandWrapperPromo.enqueue()):r?(q.pendingRoadblockPromo&&q.pendingRoadblockPromo.cancel(),q.pendingRoadblockPromo=new nM6(r,d),q.pendingRoadblockPromo.enqueue()):Z?(q.pendingMealbarPromo&&
q.pendingMealbarPromo.cancel(),q.pendingMealbarPromo=new Bdl(Z,d),q.pendingMealbarPromo.enqueue()):w&&(q.pendingTooltipPromo&&q.pendingTooltipPromo.cancel(),q.pendingTooltipPromo=new xHZ(w,_.DK()),q.pendingTooltipPromo.enqueue())},sc7=function(){kKC||(kKC=new UHZ);
return kKC};var qg6=!1;var hUS=function(q,Z){var w=_.zj("SESSION_INDEX");this.actionToken_=q;this.commonToken_=Z;this.sessionIndex_=w},DCD=function(q){var Z=_.Be(),w=_.Eq("payments.business.integration.bootstrap"),r=_.Eq("payments.business.integration"),Y=r.Style.create().withMaterialDesignStyle(),C=r.mashupMode.popup("instrument-manager");
w.asMashupMode(C).usingUserIndex(q.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(Y).inStandaloneContext(r.standaloneContextAuthId.forUserId()).instrumentManager(q.actionToken_,q.commonToken_.length>0?q.commonToken_:void 0,function(d){var O=d.instrumentId;O?Z.resolve(O):(O=_.Eq("payments.business.integration.scenario.InstrumentManager"),Z.reject(d.errorCode&&d.errorCode===O.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(d){_.ns(d);
Z.reject("instrumentManagerLoadError")});
return Z.promise};var NQ=function(q,Z,w){this.payloadName="transactionFlowFailed";this.payload={errorType:q,serializedTransactionFlowLoggingParams:Z,isUserDismiss:w===void 0?!1:w}};
_.IR("yt.ypc.shared.YpcTransactionFlowError",NQ);var Inq=function(){return _.y5.apply(this,arguments)||this};
_.z(Inq,_.y5);Inq.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Inq.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
var HT=Inq;HT.prototype.onErrorMessageDismiss=HT.prototype.onErrorMessageDismiss;_.X([_.F({readOnly:!0,observer:"errorRendererChanged"}),_.A("design:type",Object)],HT.prototype,"errorRenderer",void 0);_.X([_.m2("yt-live-chat-error-message-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],HT.prototype,"onErrorMessageDismiss",null);HT=_.X([_.iq()],HT);var cwy=[HT.prototype];var MD7;var FX8;var NdF=new _.zo("yt-live-chat"),lnl=new Map;lnl.set("timestamp_toggle","show-timestamps");lnl.set("reactions_toggle","allow-reactions");var GKl=function(){return _.N.apply(this,arguments)||this};
_.z(GKl,_.N);_.e=GKl.prototype;_.e.menuItemIdentifierChanged=function(){var q;(q=this.data)!=null&&q.menuItemIdentifier&&(q=lnl.get(this.data.menuItemIdentifier))&&(_.b("enable_lwe_web_mute")?(q=NdF.get(q),this.isToggled=!(q===void 0?!this.data.isToggled:!q)):this.isToggled=NdF.get(q))};
_.e.onFocus=function(){this.toggleButton.focus()};
_.e.onTap=function(){var q=this.data.command;q&&this.componentBehavior.resolveCommand(q)};
_.e.computeText=function(q,Z,w){return this.componentBehavior.getSimpleString(q?w:Z)};
_.e.computeIcon=function(q,Z,w){return(q=q?w:Z)&&q.iconType?_.Xl(q.iconType):""};
var WT=GKl;WT.prototype.onTap=WT.prototype.onTap;WT.prototype.onFocus=WT.prototype.onFocus;WT.prototype.menuItemIdentifierChanged=WT.prototype.menuItemIdentifierChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],WT.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],WT.prototype,"componentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],WT.prototype,"data",void 0);
_.X([_.F({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.A("design:type",String)],WT.prototype,"icon",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],WT.prototype,"isToggled",void 0);_.X([_.fo("tp-yt-paper-toggle-button"),_.A("design:type",Object)],WT.prototype,"toggleButton",void 0);_.X([_.M("data.menuItemIdentifier"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WT.prototype,"menuItemIdentifierChanged",null);
_.X([_.m2("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WT.prototype,"onFocus",null);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WT.prototype,"onTap",null);WT=_.X([_.dx({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],WT);
_.p(WT,"yt-live-chat-toggle-renderer",function(){if(FX8===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;MD7===void 0&&(MD7=document.createElement("template"));var r=MD7;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);FX8=q}q=FX8;return q},{mode:_.b("live_chat_enable_sink_wrapper")?2:0});var pwq=new _.F$("NAVIGATION_PROGRESS_TOKEN");_.bO("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var XwV={},CYc=(XwV.CSI=function(q,Z){var w={};w[q]=Z;q=_.QV(_.pRX)(w);Object.keys(q).length>0&&_.RV(q)},XwV.ECATCHER=function(q){return function(Z,w){_.zj(q)[Z]=w}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),XwV);var mHl={},AwV={},fn7=(AwV[MRl.name]=!0,AwV),oS=function(){var q=_.y5.apply(this,arguments)||this;q._noAccessors=!0;q.tabGesturesIsActive=!1;q.actionRouterIsRoot=!0;q.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"};q.pageTitle="";q.titleSuffix="YouTube";q.unseenNotificationCount=
0;q.hasNavigated=!1;q.hasSetScrollTopForNavigation=!1;q.pagePreparer=null;q.zwiebackInitJobId=0;q.dataUpdatePromise=null;q.loadDepsPromise=_.YK();q.hasPendingNavigation=!1;q.pendingPlayerOnResponseReceivedActions=[];return q};
_.z(oS,_.y5);oS.prototype.created=function(){this.pendingPlayerOnResponseReceivedActions=[];_.b("enable_browser_cookie_status_monitoring")&&_.WO(_.v5,this.reportBrowserCookieSetting)};
oS.prototype.reportBrowserCookieSetting=function(){var q=new DLu,Z="other";_.eF?Z="chrome":_.$Z?Z="firefox":_.bp?Z="safari":_.KY&&(Z="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(w){q.increment(_.eT(),w,Z)}).catch(function(){q.increment(_.eT(),!1,Z)}):q.increment(_.eT(),!1,Z)};
oS.prototype.attached=function(){DHl(this);document.addEventListener("yt-navigate-cache",_.XN(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var q=u7();q.init();q.dispatchElement=this.hostElement};
var DHl=function(q,Z){Z=Z===void 0?0:Z;var w=_.t().resolve(_.Gj(_.fq));if(w)hNl(q,w);else{if(Z>=5)throw Error("Xk");setTimeout(function(){DHl(q,Z+1)},0)}},hNl=function(q,Z){Z.addEventListener("yt-navigate-start",_.XN(q,q.onYtNavigateStart));
Z.addEventListener("yt-navigate-finish",_.XN(q,q.onYtNavigateFinish));Z.addEventListener("yt-navigate-error",_.XN(q,q.onYtNavigateError));Z.addEventListener("yt-page-data-fetched",_.XN(q,q.onYtPageDataFetched));Z.addEventListener("yt-navigate-redirect",_.XN(q,q.onYtNavigateRedirect))};
_.e=oS.prototype;
_.e.detached=function(){var q=_.t().resolve(_.fq);q.removeEventListener("yt-navigate-start",_.XN(this,this.onYtNavigateStart));q.removeEventListener("yt-navigate-finish",_.XN(this,this.onYtNavigateFinish));q.removeEventListener("yt-navigate-error",_.XN(this,this.onYtNavigateError));q.removeEventListener("yt-page-data-fetched",_.XN(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.XN(this,this.onYtNavigateCache));q.removeEventListener("yt-navigate-redirect",_.XN(this,
this.onYtNavigateRedirect));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.e.setPageOffset=function(q,Z){q?_.yY(this.hostElement,"yt-set-page-offset",[q,Z]):_.tY(Error("Yk"))};
_.e.setPageOffsetForNavigation=function(q,Z){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(q,Z))};
_.e.onYtNavigateSetPageOffset=function(q,Z){this.setPageOffsetForNavigation(Z.page,Z.offset)};
_.e.getPageOffset=function(){var q=_.E(this.hostElement).querySelector("#page-manager").getCurrentPage(),Z=0;q&&(Z=_.yY(this.hostElement,"yt-get-page-offset",[q])[0]);return Z};
_.e.onYtHistoryPop=function(q,Z){if(_.BF("DISABLE_WARM_LOADS"))q.preventDefault(),window.location.reload();else{var w=_.t().resolve(_.fq);w.hasPendingNavigation()&&q.preventDefault();w.cancelPendingNavigation();_.i5(this.hostElement,"yt-pending-navigation-cancelled");Z.errorMsg&&(q=Z.errorMsg.split(" - "),Z=Error(q[0]),q.length==2&&q[1]&&(_.JY(Z,q[1]),_.bx(Z)),window.location.reload())}};
_.e.onYtHistoryLoad=function(q,Z){var w=this;if(_.BF("DISABLE_WARM_LOADS"))window.location.reload();else{this.hasError=!1;(q=Z.endpoint)&&Object.keys(q).length||(q=null);var r=Z.historyEntry,Y=_.t().resolve(_.fq),C=_.t().resolve(_.U1),d=null;r&&r.rootData&&(d=r.rootData);var O=d&&ywF(d);!d||O||d.filler?q?(Y.navigate(q,!0),iMC(this,q)):(Z.legacyBorder||O||(Z.JSC$26263_savedComponentState==null&&d==null?_.bx(new _.df("Incomplete history entry",Z.forward)):_.Rw(new _.df("Malformed history entry",Z.JSC$26263_savedComponentState,
Z.forward,d))),window.location.reload()):(_.iDI({isHot:!0}),_.RV({webInfo:{navigationReason:"h"}}),_.VMN(),_.JT("srt"),_.JT("pdc"),this.cancelPendingTasks(),gMC(this,Z.forward,d),d.player&&(d.player.loaded=!1),iMC(this,q),_.HED(Y,q||{},d,2,{},!1,Z).then(function(){w.setPageOffset(C.getCurrentPage(),r.scrollTop||0)}))}};
_.e.initHistoryManager=function(q){if(!this.hasNavigated){this.hasNavigated=!0;var Z=_.E(this.hostElement).querySelector("#page-manager").getCurrentData();q=isNaN(q)?this.getPageOffset():q;var w=_.t().resolve(_.fq).currentEndpoint;this.replaceState(w,Z,q)}};
_.e.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.e.onYtNavigateStart=function(q,Z){this.cancelPendingTasks();Z.noProgressBar||(q=_.t().resolve(_.Gj(pwq)))&&q.start();q=this.hasPendingNavigation?null:this.data;this.hasError=!1;var w=_.t().resolve(_.U1),r,Y,C;_.b("kevlar_use_vimio_behavior")&&!((r=Z.endpoint)==null?0:(Y=r.commandMetadata)==null?0:(C=Y.webCommandMetadata)==null?0:C.ignoreNavigation)&&(r=w.getCurrentPage())&&r.disconnectVisibilityRoot();w.prepareForNavigation(Z.pageType,Z.endpoint);_.b("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=
new _.TG(1,"pcl"),_.UY(this.pagePreparer,w.preparePage.bind(w,Z.pageType,Z.endpoint)));r=this.getPageOffset();this.initHistoryManager(r);Z.reload||this.hasPendingNavigation?this.replaceState(Z.endpoint,q,r):(q==null?void 0:q.page)==="watch"&&Z.pageType==="watch"&&_.b("kevlar_replace_watch_to_watch_history_state")?this.replaceState(Z.endpoint,q,r):(q==null?void 0:q.page)!=="shorts"||Z.pageType!=="shorts"||Z.endpoint.reelWatchEndpoint.sequenceParams||_.b("short_to_short_back_nav_killswitch")?Z.type!=
"navigate-back"&&Z.type!="navigate-forward"&&(Z.pageType==="shorts"&&_.hy(this.hostElement,"yt-shorts-reset"),this.saveAndPush(Z.url,Z.endpoint,q,r)):this.replaceState(Z.endpoint,q,0);this.hasPendingNavigation=!0};
var qBc=function(q){q.hasPendingNavigation=!1;(q=_.t().resolve(_.Gj(pwq)))&&q.finish()};
oS.prototype.onYtNavigateError=function(q,Z){qBc(this);this.hasError=!0;Z&&Z.errorMessage?this.errorMessage=Z.errorMessage:this.errorMessage=void 0;q=this.get("endpoint.commandMetadata.webCommandMetadata.url",Z);var w=_.Ks(window.location.href);q&&!w.pbjreload&&(Z=Z.navigationErrorReason||"10",_.b("kevlar_parent_on_pbjreload")&&(w={csn:_.b5()},this.get("data.endpoint.clickTrackingParams")&&(w.itct=this.data.endpoint.clickTrackingParams),_.l5(q,w)),_.ja(_.sq(q,{pbjreload:Z})))};
oS.prototype.onYtNavigateCache=function(q,Z){var w=this,r=Z.url,Y=Z.endpoint,C=Z.data;q=!!Z.miniplayer;Z=!!Z.skipHistory;if(r&&Y&&C){var d=this.getPageOffset(),O=this.data||null;Z||this.saveAndPush(r,Y,O,d);r=_.HED(_.t().resolve(_.fq),Y,C,q?4:3,{},q);q&&r.then(function(){w.dataUpdatePromise&&w.dataUpdatePromise.then(function(){var H=_.t().resolve(_.U1);w.setPageOffset(H.getCurrentPage(),0)})})}};
oS.prototype.onYtNavigateFinish=function(q,Z){var w=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){ZSu(w,Z.fromHistory)})};
var ZSu=function(q,Z){qBc(q);if(q.pendingPlayerOnResponseReceivedActions){for(var w=_.P(q.pendingPlayerOnResponseReceivedActions),r=w.next();!r.done;r=w.next())_.f5(r.value,q.hostElement);q.pendingPlayerOnResponseReceivedActions=[]}w=_.t().resolve(_.U1);!Z&&q.hasNavigated&&((Z=w.getCurrentPage())?Z.is==="ytd-shorts"||q.tabGesturesIsActive||q.setPageOffsetForNavigation(Z,0):_.bx(Error("Zk")));_.SH(function(){_.SH(function(){_.JT("pda")})})};
oS.prototype.onYtNavigateRedirect=function(q){q.detail.url&&this.replaceUrl(q.detail.url)};
oS.prototype.onYtNavigate=function(q){if(!q.detail.endpoint){var Z=new _.df("Error: Missing yt-navigate endpoint from target:",q.target,q.target.nodeName);_.tY(Z)}if(Z=_.b("cold_missing_history"))Z=u7(),Z.init(!1),Z=!(Z.browserHistory.boundHistoryReplaceState&&Z.browserHistory.boundHistoryPushState);if(Z){_.bO("DISABLE_WARM_LOADS",!0);Z=new _.df("Failed to initialize history manager",this.getDebugString());var w=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
w?_.bx(Z):_.tY(Z)}Z=q.detail.endpoint;var r,Y;_.b("debug_forward_web_query_parameters")&&((r=Z.commandMetadata)==null?0:(Y=r.webCommandMetadata)==null?0:Y.url)&&(Z=JSON.parse(JSON.stringify(Z)),Z.commandMetadata.webCommandMetadata.url=_.IC9(Z.commandMetadata.webCommandMetadata.url,window.location.search));q={type:0,command:Z,form:{params:q.detail.params,tempData:q.detail.tempData||{},requestType:q.detail.type,createScreenConfig:q.detail.createScreenConfig,reload:q.detail.reload?q.detail.reload:!1,
requestForm:q.detail}};_.b("kevlar_yt_navigate_command_handler")?(r=_.t().resolve(_.ps),q.form.skipDefaultElement=!0,r.resolveCommand(Z,{form:q.form})):this.handleNavigate(q)};
oS.prototype.handleNavigate=function(q){this.hasSetScrollTopForNavigation=!1;var Z=_.t().resolve(_.fq),w=q.form||{};Z.navigate(q.command,w.reload,w.params,w.tempData,w.requestType,w.createScreenConfig,w.ignoreConfirmation,w.requestForm)&&iMC(this,q.command,w.tempData)};
oS.prototype.onYtPageDataFetched=function(q,Z){try{_.wzW().reset();this.data=Z.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.t().resolve(_.U1).updatePageData(this.data);var w=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);w&&PYV(w);var r=this.get("response.responseContext.serviceTrackingParams",this.data);r&&PYV(r);var Y=
this.get("playerResponse.onResponseReceivedActions",this.data);Y&&(Y=w_Z(this,Y));Y&&_.ZC(this.hostElement,Y,this.hostElement);var C=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),d=this.get("response.responseContext.consistencyTokenJar",this.data);if(C||d){var O=_.K5O(),H=(0,_.R4.getValues)(O.tokenJars);C&&O.replace(H,C);d&&O.replace(H,d)}}catch(L){_.tY(L)}};
var iMC=function(q,Z,w){try{q.onYtEndpointChangeHandler(Z,w)}catch(r){_.tY(r)}};
_.e=oS.prototype;_.e.onYtEndpointChangeHandler=function(){};
_.e.setPageTitle=function(q){q=(this.pageTitle=q)?q+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+q};
_.e.onYtUpdateTitle=function(q,Z){this.setPageTitle(Z)};
_.e.setUnseenNotificationCount=function(q){this.unseenNotificationCount=q;this.setPageTitle(this.pageTitle)};
_.e.handleUpdateNotificationsUnseenCountAction=function(q){_.J(q,Sf7)&&((q=_.J(q,Sf7).unseenCount)?this.setUnseenNotificationCount(q):this.setUnseenNotificationCount(0))};
_.e.handleClearCookieAction=function(q){var Z;(q=(Z=_.J(q,W5l))==null?void 0:Z.cookieName)&&_.Zzj(q)};
_.e.onYtUpdateUnseenNotificationCount=function(q,Z){this.setUnseenNotificationCount(Z)};
_.e.loadData=function(q){var Z=this;this.loadDepsPromise.then(function(){var w=_.t().resolve(_.Gj(_.fq));w||_.tY(Error("$k"));if(q&&q.response){if(!q.endpoint){var r=_.UP(window.document.location.href)||"/",Y="";if(r==="/"||r.startsWith("/?"))Y="WEB_PAGE_TYPE_BROWSE";q.endpoint={commandMetadata:{webCommandMetadata:{url:r,webPageType:Y,rootVe:3854}}}}_.HED(w,q.endpoint,q,5,{})}else q.endpoint?w.navigate(q.endpoint):w.navigate(_.ZK);_.v5.cancelJob(Z.zwiebackInitJobId);Z.zwiebackInitJobId=_.v5.addLowPriorityJob(Zcb)})};
var u7=function(){return _.t().resolve(_.FkD)};
_.e=oS.prototype;_.e.getDebugString=function(){return u7().getDebugString()};
_.e.getThirdPartyManipulationSuspected=function(){return u7().getThirdPartyManipulationSuspected()};
_.e.replaceState=function(q,Z,w){u7().saveAndReplace(q,Z,w)};
_.e.saveAndPush=function(q,Z,w,r){u7().saveAndPush(q,Z,w,r)};
_.e.replaceUrl=function(q){u7().replaceUrl(q)};
var ywF=function(q){return _.b("web_honor_cache_for_back")&&(_.J(q.endpoint,_.ck)||_.J(q.endpoint,_.Yz))?!0:!q||isNaN(q.expirationTime)?!1:(0,_.lp)()>q.expirationTime},gMC=function(q,Z,w){var r=q.get("response.trackingParams",w),Y=_.Rs(),C=_.b5();
if(r&&Y&&C&&(r=q.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",w),!r&&w.rootVe&&(r=w.rootVe),Y=Z?"forwardButton":"backButton",Z=q.get("playerResponse.topbar.desktopTopbarRenderer."+Y+".buttonRenderer.command.clickTrackingParams",q.data),q=q.get("response.topbar.desktopTopbarRenderer."+Y+".buttonRenderer.command.clickTrackingParams",q.data),Z=(q=Z||q)?_.wa(q):void 0,q=_.iy(),Y=[_.YK(w)],_.mG(q,r,Z,{dataPromises:Y,csnToClone:w.csn}),w.graftedVes))for(w=
_.P(w.graftedVes),r=w.next();!r.done;r=w.next())_.AA(q,r.value)};
oS.prototype.onStoreGraftedVeAction=function(q){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(q)):_.bx(Error("al"))};
var w_Z=function(q,Z){return Z.filter(function(w){for(var r in w)if(fn7[r])return q.pendingPlayerOnResponseReceivedActions.push(w),!0;return!1})};
_.My.Object.defineProperties(oS.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
var L$=oS;L$.prototype.onStoreGraftedVeAction=L$.prototype.onStoreGraftedVeAction;L$.prototype.loadData=L$.prototype.loadData;L$.prototype.onYtUpdateUnseenNotificationCount=L$.prototype.onYtUpdateUnseenNotificationCount;L$.prototype.handleClearCookieAction=L$.prototype.handleClearCookieAction;L$.prototype.handleUpdateNotificationsUnseenCountAction=L$.prototype.handleUpdateNotificationsUnseenCountAction;L$.prototype.setUnseenNotificationCount=L$.prototype.setUnseenNotificationCount;
L$.prototype.onYtUpdateTitle=L$.prototype.onYtUpdateTitle;L$.prototype.setPageTitle=L$.prototype.setPageTitle;L$.prototype.onYtEndpointChangeHandler=L$.prototype.onYtEndpointChangeHandler;L$.prototype.onYtPageDataFetched=L$.prototype.onYtPageDataFetched;L$.prototype.handleNavigate=L$.prototype.handleNavigate;L$.prototype.onYtNavigate=L$.prototype.onYtNavigate;L$.prototype.onYtNavigateRedirect=L$.prototype.onYtNavigateRedirect;L$.prototype.onYtNavigateFinish=L$.prototype.onYtNavigateFinish;
L$.prototype.onYtNavigateCache=L$.prototype.onYtNavigateCache;L$.prototype.onYtNavigateError=L$.prototype.onYtNavigateError;L$.prototype.onYtNavigateStart=L$.prototype.onYtNavigateStart;L$.prototype.cancelPendingTasks=L$.prototype.cancelPendingTasks;L$.prototype.initHistoryManager=L$.prototype.initHistoryManager;L$.prototype.onYtHistoryLoad=L$.prototype.onYtHistoryLoad;L$.prototype.onYtHistoryPop=L$.prototype.onYtHistoryPop;L$.prototype.onYtNavigateSetPageOffset=L$.prototype.onYtNavigateSetPageOffset;
L$.prototype.setPageOffset=L$.prototype.setPageOffset;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],L$.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],L$.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],L$.prototype,"hasError",void 0);_.X([_.F(),_.A("design:type",Object)],L$.prototype,"errorMessage",void 0);
_.X([_.m2("yt-navigate-set-page-offset"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],L$.prototype,"onYtNavigateSetPageOffset",null);_.X([_.m2("yt-history-pop"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],L$.prototype,"onYtHistoryPop",null);
_.X([_.m2("yt-history-load"),_.A("design:type",Function),_.A("design:paramtypes",[Event,_.U39]),_.A("design:returntype")],L$.prototype,"onYtHistoryLoad",null);_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],L$.prototype,"onYtNavigate",null);_.X([_.m2("yt-update-title"),_.A("design:type",Function),_.A("design:paramtypes",[Event,String]),_.A("design:returntype")],L$.prototype,"onYtUpdateTitle",null);
_.X([_.m2("yt-update-unseen-notification-count"),_.A("design:type",Function),_.A("design:paramtypes",[Event,Number]),_.A("design:returntype")],L$.prototype,"onYtUpdateUnseenNotificationCount",null);L$=_.X([_.iq()],L$);mHl.YtdAppBehavior=[_.KK.YtActionHandlerBehavior,L$.prototype];var tx=function(){var q=_.y5.apply(this,arguments)||this;q._noAccessors=!0;return q};
_.z(tx,_.y5);tx.prototype.ready=function(){var q=this;_.E(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){q.onChange_()})};
tx.prototype.dataChanged_=function(){_.E(this.hostElement).querySelector("#checkbox").checked=!1};
tx.prototype.onChange_=function(){var q=_.E(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.hy(this.hostElement,"yt-dismissal-reason-"+q,this.data.feedbackToken)};
var RS=tx;RS.prototype.dataChanged_=RS.prototype.dataChanged_;_.X([_.F(),_.A("design:type",Object)],RS.prototype,"data",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RS.prototype,"dataChanged_",null);RS=_.X([_.iq()],RS);var rn6=[RS.prototype];var b7=function(){var q=_.y5.apply(this,arguments)||this;q.timeoutJobId=0;q.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return q};
_.z(b7,_.y5);b7.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
b7.prototype.startTimeout=function(){var q=this,Z=this.data&&this.data.displayDurationSeconds;Z&&!this.timeoutJobId&&(this.timeoutJobId=_.WO(_.v5,function(){_.yY(q.hostElement,"yt-close-popup-action",[q.is]);q.timeoutJobId=0},Z*1E3))};
b7.prototype.cancelTimeout=function(){_.v5.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
var Jx=b7;Jx.prototype.ytdHatsSurveyBehaviorDataChanged=Jx.prototype.ytdHatsSurveyBehaviorDataChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Jx.prototype,"ytActionHandlerBehavior",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jx.prototype,"ytdHatsSurveyBehaviorDataChanged",null);Jx=_.X([_.iq()],Jx);var YBS=[_.KK.YtActionHandlerBehavior,Jx.prototype];var $eV=function(q,Z){return q.SHARED_RENDERERS_.hasOwnProperty(Z)?"yt":q.prefix},zw={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}};zw.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.b("kevlar_mealbar_above_player"),modern:_.b("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"}};
zw.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};zw.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};zw.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
zw.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)"}};
zw.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};
zw.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};
zw.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};
zw.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};zw.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"}};
zw.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};zw.TOAST={component:null,properties:{}};var el7=new function(q,Z,w){this.supportedPopups=q;this.navigationEndpointPopupMap=Z;this.popupTypeMap=w;this.supportedPopups=q;this.navigationEndpointPopupMap=Z;this.popupTypeMap=w}({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:_.b("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"}),CZD=new function(){this.prefix="ytd";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$17477_popupConfig=zw;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 PZD=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.Wj.getInstance()},BT=function(q,Z){var w=q.pageNameToElement.get(Z);
if(!w){switch(Z){case "watch":var r=_.b("web_watch_force_learning_journey_for_testing")?_.xb("ytd-watch-learning-journey"):_.b("kevlar_watch_fixie")?_.xb("ytd-watch-fixie"):_.b("kevlar_watch_grid")?_.xb("ytd-watch-grid"):_.xb("ytd-watch-flexy");break;case "learning-journey-watch":r=_.xb("ytd-watch-learning-journey");break;case "shorts":r=_.xb("ytd-shorts");break;case "search":r=_.xb("ytd-search");break;case "channel":r=_.xb("ytd-browse");r.pageSubtype="channels";break;case "trending":r=_.xb("ytd-browse");
r.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":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":r=
_.xb("ytd-browse");r.pageSubtype=Z;break;case "browse":r=_.xb("ytd-browse");break;default:_.bx(new _.df("Error getting page element for type",Z))}w=r;q.pageNameToElement.set(Z,w)}return w};
PZD.prototype.preparePage=function(q,Z,w){w&&(q=Ah(w)||q);if(q!=="watch"){var r=this.elementPoolPopulator,Y=q;Y!=r.targetPage_&&r.pendingPages_.indexOf(Y)>-1&&(r.targetPage_&&(r.pendingPages_.unshift(r.targetPage_),r.abort()),D1l(r,Y),_.tM7(r,Y))}if((r=BT(this,q))||!_.J(w,_.TF)){r.isAttached||r===Z||(r.hidden=!0);if(!(r.data||q==="watch"&&_.b("swatcheroo_page_pool_dont_provide_filler_data"))){var C;if(q=(C=_.zj("FILLER_DATA",{})[q])==null?void 0:C.response)r.data=q}return r}};var deC=function(q){this.JSC$28182_clientRoot=q;this.playlistHandlerActionMap={"yt-add-to-playlist-command":Hcl,"yt-end-playlist-command":Wg8,"yt-recover-playlist-command":uHZ,"yt-refresh-playlist-command":vZZ,"yt-playlist-remove-videos-action":Lg6};_.k7(_.UU.getInstance(),this.playlistHandlerActionMap,this.JSC$28182_clientRoot);$Lq()},VYC;var aS=function(q,Z,w){this.apiKey=q;this.endpoint=Z;this.confidenceThreshold=w===void 0?.5:w;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=Z==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||Z==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
Z==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||Z==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new gkZ};
_.e=aS.prototype;
_.e.start=function(q){if(this.state===0)if(this.isOnline()){q.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=q.supportsHttpHeadersOverwriteParam);q.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=q.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.bI("voice_assistant");_.z7("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=q.languageCode||"en-US";this.supportsCrossDomainXhr=q.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=q.youtubeAssistantRequest||null;this.listeningHandler=q.listeningHandler||this.listeningHandler;this.audioDetectedHandler=q.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=q.stopHandler||this.stopHandler;this.completeHandler=q.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=q.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=q.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
q.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=q.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=q.accessToken;this.additionalHeaders=q.additionalHeaders||{};var Z;this.prefetchResponseTimeoutMs=(Z=q.prefetchResponseTimeoutMs)!=null?Z:this.prefetchResponseTimeoutMs;OS6(this);this.startAudio();HSq(this)}else this.errorHandler("OFFLINE")};
_.e.stop=function(q){var Z=q===void 0?{}:q;q=Z.logCancel===void 0?!0:Z.logCancel;var w=Z.logMicClosed===void 0?!0:Z.logMicClosed;var r=Z.handleError===void 0?!0:Z.handleError;Z=Z.handleStop===void 0?!0:Z.handleStop;this.state!==0&&(q&&n$("voz_cx"),Qs(this,{logMicClosed:w,handleStop:Z}),r&&this.errorHandler("ABORTED"))};
_.e.getState=function(){return this.state};
_.e.isSupported=function(){return!0};
_.e.stopAudio=function(q){(q===void 0||q)&&n$("voz_mf")};
_.e.startAudio=function(){n$("voz_vp");return _.YK(null)};
var WAu=function(q,Z){q.channelOpen&&(q.state!==2&&(q.state=2,n$("voz_ss"),q.listeningHandler()),Z=new Uint8Array(Z),Z='{ "audioIn": "'+_.Rq(Z)+'" }',q.channel.send(Z))},Qs=function(q,Z){var w=Z===void 0?{}:Z;
Z=w.logMicClosed===void 0?!0:w.logMicClosed;w=w.handleStop===void 0?!0:w.handleStop;q.vozEndOfDataTimeout>-1&&(clearTimeout(q.vozEndOfDataTimeout),q.vozEndOfDataTimeout=-1);osc(q);q.stopAudio(Z);q.channel&&(q.channelOpen=!1,q.manuallyClosedChannel=!0,q.channel.close(),q.channel=void 0);q.transcribedSpeechResults=[];q.state=0;w&&q.stopHandler()},OS6=function(q){var Z={httpHeadersOverwriteParam:q.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},q.additionalHeaders,q.accessToken&&q.isUsingVoz?{Authorization:"Bearer "+q.accessToken}:{"x-goog-api-key":q.apiKey}),supportsCrossDomainXhr:q.supportsCrossDomainXhr};q.channel=new R8(q.endpoint,Z);q.channel.open();_.Yc(q.channel,"w",function(){var w=q.channel,r=w.send,Y=q.isUsingVoz?"PLACEHOLDER":"example";Y={config:{dialogStateIn:{languageCode:q.languageCode},deviceConfig:{deviceId:Y,deviceModelId:Y},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!q.isUsingVoz)Y.config.requestType=4;else if(q.isUsingVoz&&q.youtubeAssistantRequest){var C=JSON.stringify(q.youtubeAssistantRequest);Y.config.internalIn={youtubeAssistantS3InputJson:C}}r.call(w,Y);q.channelOpen=!0;q.manuallyClosedChannel=!1});
_.Yc(q.channel,"x",function(){q.manuallyClosedChannel||(q.channelOpen=!1,q.channel=void 0,Qs(q))});
_.Yc(q.channel,"z",function(w){if(w.data){osc(q);for(var r=0;r<w.data.length;r++){var Y=q,C=w.data[r],d=C.speechResults;if(d)a:{var O=[];C=[];var H=!1;d=_.P(d);for(var L=d.next();!L.done;L=d.next()){L=L.value;if(L.noSpeech){Qs(Y);Y.errorHandler("NO_SPEECH");break a}L.transcript!==void 0&&L.stability!==void 0&&(L.stability<Y.confidenceThreshold&&(H=!0),H?C.push(L.transcript):O.push(L.transcript))}if(O.length!==0||C.length!==0)O=O.join(" "),C=C.join(" "),Y.receivedEndOfUtterance&&!Y.isUsingVoz?Y.isUsingVoz||
Y.completeHandler([O,C]):(H=Y,d=O,L=C,n$("voz_sf"),H.transcriptionUpdateHandler(d,L),H.transcribedSpeechResults=[d,L]),Y.receivedEndOfUtterance&&(n$("voz_eou"),Y.transcriptionCompleteHandler([O,C]),Y.isUsingVoz&&(Y.prefetchResponseTimeoutMs===0?Qs(Y,{logMicClosed:!1,handleStop:!0}):Y.prefetchResponseTimeoutMs>0&&u0l(Y)))}else Y.isUsingVoz&&(C==null?0:C.internalOut)?(C=JSON.parse(C.internalOut.youtubeAssistantS3OutputJson),C.userHasOptedInToVaa||C.vaaConsent?Y.vaaConsentUpdateHandler(!!C.userHasOptedInToVaa,
!!C.vaaConsent):(LAy(Y),C&&(O=Y.transcribedSpeechResults,n$("voz_rqf"),Y.completeHandler(O,C)))):C.eventType==="END_OF_UTTERANCE"?Y.receivedEndOfUtterance=!0:(n$("voz_err"),Y.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.bx(Error("bl")))}}});
_.Yc(q.channel,"y",function(w){Qs(q);switch(w.status){case 1:w="WEBCHANNEL_NETWORK_ERROR";break;case 2:w="WEBCHANNEL_SERVER_ERROR";break;default:w="WEBCHANNEL_UNKNOWN_ERROR"}q.errorHandler(w);q.logError(Error(w))})};
aS.prototype.logError=function(q){_.tY(q)};
aS.prototype.isOnline=function(){return!0};
var u0l=function(q){LAy(q);q.prefetchResponseSetTimeoutId=setTimeout(function(){Qs(q,{logMicClosed:!1,handleStop:!0})},q.prefetchResponseTimeoutMs)},LAy=function(q){q.prefetchResponseSetTimeoutId>-1&&(clearTimeout(q.prefetchResponseSetTimeoutId),q.prefetchResponseSetTimeoutId=-1)},HSq=function(q){osc(q);
q.noResponseReceivedTimeout=window.setTimeout(function(){Qs(q);q.errorHandler("NO_SPEECH")},11E3)},osc=function(q){q.noResponseReceivedTimeout>-1&&(window.clearTimeout(q.noResponseReceivedTimeout),q.noResponseReceivedTimeout=-1)},n$=function(q){_.JT(q,void 0,"voice_assistant")};var EO=function(){aS.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.z(EO,aS);EO.prototype.isSupported=function(){return jll()};
EO.prototype.startAudio=function(){var q=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.TX(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(r){SB8(q,r)};
this.processor.connect(this.audioContext.destination);var Z=function(r){q.stream=r;if(!q.audioContext)return _.YK(null);r=q.audioContext.createMediaStreamSource(r);q.processor&&r.connect(q.processor);return _.YK(null)},w={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?Z(this.stream):navigator.mediaDevices.getUserMedia(w).then(Z).catch(function(r){Qs(q);r.name&&r.name==="NotAllowedError"?q.errorHandler("NO_MICROPHONE_PERMISSION"):(q.errorHandler("AUDIO_ERROR"),q.logError(r));return _.TX(null)});
return aS.prototype.startAudio.call(this)};
EO.prototype.stopAudio=function(q){q=q===void 0?!0:q;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(Z){Z.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;aS.prototype.stopAudio.call(this,q)};
EO.prototype.isOnline=function(){return navigator.onLine};
var SB8=function(q,Z){if(q.audioContext)if(window.OfflineAudioContext){var w=q.audioContext.sampleRate,r=Z.inputBuffer.getChannelData(0);Z=new window.OfflineAudioContext(1,r.length,16E3);for(var Y=Z.createBuffer(1,r.length,w),C=Y.getChannelData(0),d=0,O=0;O<r.length;O++)C[O]=r[O],d+=C[O]*C[O];!q.audioDetected&&Math.sqrt(d/r.length)>.01&&(q.audioDetected=!0,q.audioDetectedHandler());r=Z.createBufferSource();r.buffer=Y;r.connect(Z.destination);r.start(0);Z.oncomplete=function(H){H=H.renderedBuffer.getChannelData(0);
for(var L=Math.floor(16384E3/w),S=new Int16Array(L),v=0;v<L;++v)S[v]=Math.max(-1,Math.min(1,H[v]))*32767;WAu(q,S.buffer)};
Z.startRendering()}else vs7(q,Z)},vs7=function(q,Z){var w=q.audioContext.sampleRate,r=Z.inputBuffer.getChannelData(0),Y=Math.floor((w+8E3)/16E3);
w=r.length/Y;Z=new Float32Array(w);for(var C=0;C<w;++C)Z[C]=r[C*Y];r=new Int16Array(w);for(Y=0;Y<w;++Y)r[Y]=Math.max(-1,Math.min(1,Z[Y]))*32767;WAu(q,r.buffer)};var jOc={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var tYc=function(){this.JSC$17542_audioEnabled=!0;this.audioFeedbackHolder={}};
tYc.prototype.isPlaying=function(q){return q.currentTime>0&&!q.paused&&!q.ended&&q.readyState>2};
var Rlc=function(q){for(var Z=_.P(Object.values(jOc)),w=Z.next();!w.done;w=Z.next())w=w.value,q.audioFeedbackHolder[w]=new Audio,q.audioFeedbackHolder[w].src="/s/search/audio/"+w+".mp3",q.audioFeedbackHolder[w].load()},xF=function(q,Z){if(q.JSC$17542_audioEnabled!==!1&&Z in q.audioFeedbackHolder){for(var w=_.P(Object.values(q.audioFeedbackHolder)),r=w.next();!r.done;r=w.next())r=r.value,q.isPlaying(r)&&r.pause();
q.audioFeedbackHolder[Z].currentTime=0;q.audioFeedbackHolder[Z].play().catch(function(){})}};var bSF=function(q,Z){var w=this;this.store=q;this.service=Z;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){w.setState("offline");w.stop()};
this.audioPlayer=new tYc;var r;(r=this.audioPlayer)==null||Rlc(r)};
_.e=bSF.prototype;_.e.getService=function(){return this.service};
_.e.isEnabled=function(){return!!this.service};
_.e.isSupported=function(){var q;return(q=this.service)==null?void 0:q.isSupported()};
_.e.start=function(){var q=this,Z,w,r,Y,C,d,O,H,L,S,v,R,B;return _.V(function(n){switch(n.nextAddress){case 1:q.store.dispatch(ODC("",""));if(!navigator.onLine)return q.setState("offline"),n.return();window.addEventListener("offline",q.handleOfflineEvent);q.stream=null;if(!q.permissionsSupported){n.jumpTo(2);break}_.d9(n,3);return _.W(n,JnF(q),5);case 5:Z=n.yieldResult;if(!Z)return(w=q.audioPlayer)==null||xF(w,"failure"),n.return();q.service.stream=q.stream;q.setState("listening");_.QL(n,2);break;
case 3:_.o3(n),q.permissionsSupported=!1;case 2:r={context:_.Pq9(_.pY())},r.youtubeAssistantParams={searchParams:{inlineSearchResponse:q.enableInlineSearchResponse}},Y=function(x,K){q.store.dispatch(HDD("transcribing"));q.store.dispatch(ODC(x,K))},C=function(){var x;
(x=q.audioPlayer)==null||xF(x,"open");q.setState("listening")},d=function(){q.setState("transcribing")},O=function(x){q.setErrorState(x)},H=function(x,K){var k;
(k=q.audioPlayer)==null||xF(k,"success");K&&(_.b("kevlar_voice_search_inline_search")&&(q.responseProcessor=_.t().resolve(_.vWT),q.responseProcessor&&(k=K.navigationAction,x=K.prefetchedSearchResponse,k&&x&&(k=(new _.Q16).JSC$11769_getStoreKey(k),_.sn(q.responseProcessor,x,k)))),q.JSC$17560_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",K))},L=function(){window.removeEventListener("offline",q.handleOfflineEvent)},S=_.S8j(!1),v=S.Authorization!=null,R=q.enableFirstPartyAuth||
q.enableFPAForSignedInUsers&&v?S:{"X-Goog-Visitor-Id":S["X-Goog-Visitor-Id"]},B={completeHandler:H,
errorHandler:O,listeningHandler:C,audioDetectedHandler:d,stopHandler:L,transcriptionUpdateHandler:Y,youtubeAssistantRequest:r,languageCode:zlb(),additionalHeaders:R,supportsCrossDomainXhr:q.enableFirstPartyAuth||q.enableFPAForSignedInUsers&&v,supportsHttpHeadersOverwriteParam:!q.disableHttpHeadersOverwrite},q.service.start(B),_.ub(n)}})};
_.e.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.e.reset=function(){this.store.dispatch(_.mu({type:"RESET_VOICE_SEARCH_STATE"}))};
_.e.setState=function(q){this.store.dispatch(HDD(q))};
_.e.setErrorState=function(q){switch(q){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var Z;(Z=this.audioPlayer)==null||xF(Z,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)JnF(this);else{var w;(w=this.audioPlayer)==null||xF(w,"failure");this.setState("permission-denied")}break;case "ABORTED":var r;(r=this.audioPlayer)==null||xF(r,"no_input");break;default:var Y;(Y=this.audioPlayer)==
null||xF(Y,"no_input");this.setState("timeout")}};
var JnF=function(q){var Z,w;return _.V(function(r){switch(r.nextAddress){case 1:return _.W(r,navigator.permissions.query({name:"microphone"}),2);case 2:Z=r.yieldResult;if(Z.state==="granted")return r.return(!0);if(Z.state==="denied")return q.setState("permission-denied"),r.return(!1);q.setState("permission");w={audio:{sampleSize:16,channelCount:1},video:!1};_.d9(r,3);return _.W(r,navigator.mediaDevices.getUserMedia(w),5);case 5:return q.stream=r.yieldResult,r.return(!0);case 3:return _.o3(r),q.setState("permission-denied"),
r.return(!1)}})},zlb=function(){var q=_.zj("INNERTUBE_CONTEXT_HL"),Z=_.zj("INNERTUBE_CONTEXT_GL");
return q.indexOf("-")>-1?q:q+"-"+Z};var BEu=function(q,Z,w){bSF.call(this,Z,w);this.JSC$17560_actionRouter=q;this.enableInlineSearchResponse=_.b("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.b("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.b("kevlar_voice_search_enable_fpa_signedin_users")},acq;
_.z(BEu,bSF);
var nsu=function(){if(!acq){var q="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.b("kevlar_voice_search_auth_enabled")||_.b("kevlar_voice_search_use_yt_endpoint")?q="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.b("kevlar_voice_search_use_fp_endpoint")&&(q="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");acq=
new BEu(_.UU.getInstance(),_.sE(),new EO(_.zj("VOZ_API_KEY"),q,.5))}return acq};var QOC=function(q){this.JSC$17564_clientRoot=q;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$17564_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)]]));q=_.P(this.eventListeners);for(var Z=q.next();!Z.done;Z=q.next()){var w=_.P(Z.value);Z=w.next().value;w=w.next().value;w=_.P(w);for(var r=w.next();!r.done;r=w.next()){var Y=
_.P(r.value);r=Y.next().value;Y=Y.next().value;Z.addEventListener(r,Y)}}_.k7(_.UU.getInstance(),this.autonavPauseActionMap,this.JSC$17564_clientRoot)},Esy,xeb=function(q){return _.b("kevlar_autonav_popup_filtering")?(q=_.xz(q))?q.hasAttribute("prevent-autonav"):!0:!0};
_.e=QOC.prototype;_.e.onIronOverlayOpened=function(q){xeb(q)&&(this.autonavPauseReasons.overlayOpen=!0,Tw(this))};
_.e.onIronOverlayClosed=function(q){xeb(q)&&(this.autonavPauseReasons.overlayOpen=!1,Tw(this))};
_.e.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Tw(this)};
_.e.onYtAutonavPauseBlur=function(){var q=this;_.v5.addJob(function(){q.isInBackground()||(q.autonavPauseReasons.inputBoxFocus=!1,Tw(q))},8,0)};
_.e.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Tw(this)};
_.e.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Tw(this)};
_.e.onYtAutonavPauseScroll=function(){var q=_.t().resolve(_.U1);q.isOnWatch()&&(q=q.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=q.getBoundingClientRect().top<-200,Tw(this))};
_.e.onYtAutonavPauseUserEngagement=function(q){var Z=this;if(_.b("user_engagement_enable_autoplay_pause_feature")){var w=Number(q.lowEngagementThresholdMs);isNaN(w)||w<=0||q.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Ud("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.t().resolve(_.d6),_.pB()<w?_.WO(_.v5,function(){_.Ud("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.$xD()?(this.userEngagementCsn=_.b5(),_.WO(_.v5,function(){_.Ud("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
Z.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Tw(this)):_.Ud("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.bVj(Error("cl`"+JSON.stringify(q)))};
_.e.onYtAutonavPausePlayer=function(q){this.autonavPauseReasons.requestedByPlayer=!!q.detail;Tw(this)};
_.e.onYtAutonavVisibilityChanged=function(){var q=this,Z,w,r;return _.V(function(Y){if(Y.nextAddress==1)return(Z=_.K6())?_.W(Y,Z.getPlayerPromise(),2):Y.return();w=Y.yieldResult;r=w.isMuted()||w.getVolume()===0;q.autonavPauseReasons.backgroundAndMute=q.isInBackground()&&r;Tw(q);_.ub(Y)})};
_.e.onYtAutonavPausePlayerEnded=function(){_.t().resolve(_.d6);var q=144E5;_.b("user_engagement_enable_autoplay_pause_feature")||_.b("is_part_of_any_user_engagement_experiment")||(q=45E5);this.autonavPauseReasons.longIdle=_.pB()>q;TE8(this);Tw(this)};
_.e.onYtUserActivity=function(){var q=this;this.autonavPauseReasons.userEngagement&&(_.WO(_.v5,function(){_.Ud("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",q.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Tw(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.WO(_.v5,function(){_.Ud("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",q.userEngagementCsn);_.jX()}),this.autonavPauseReasons.youthereLactExperiment=!1,Tw(this));
this.autonavPauseReasons.longIdle&&!_.b("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Tw(this))};
_.e.isInBackground=function(){var q=window.document.visibilityState;return!(!q||q==="visible")};
var Tw=function(q){for(var Z=!1,w=_.P(Object.values(q.autonavPauseReasons)),r=w.next();!r.done;r=w.next())r=r.value,Z=Z||r;Z?_.sN.getInstance().pause(q.autonavPauseReasons):(q=_.sN.getInstance(),q.autonavState_==3?(q.setState(2,!1,!1),q.autonavPauseReason_=void 0):q.autonavState_==1&&(q.disabledAutonavPauseReason_=void 0))},TE8=function(q){var Z=!1;
if(_.b("enable_autoplay_pause_by_lact")){_.t().resolve(_.d6);Z=_.m6("autoplay_pause_by_lact_sec")*1E3;var w=_.m6("autoplay_pause_by_lact_sampling_fraction");(Z=_.pB()>=Z&&Math.random()<w)&&!_.$xD()&&(_.WO(_.v5,function(){_.Ud("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),Z=!1)}Z!==q.autonavPauseReasons.youthereLactExperiment&&(q.autonavPauseReasons.youthereLactExperiment=Z)&&(q.userEngagementCsn=_.b5(),_.WO(_.v5,function(){_.Ud("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",q.userEngagementCsn)}));
q.autonavPauseReasons.userEngagement&&_.WO(_.v5,function(){_.Ud("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",q.userEngagementCsn)})};
QOC.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Ud("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.jX(),this.autonavPauseReasons.youthereLactExperiment=!1,Tw(this));this.autonavPauseReasons.userEngagement&&(_.Ud("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Tw(this))};
QOC.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Ue7=function(){var q=_.N.apply(this,arguments)||this;q.miniGuideVisible=!1;q.guideOpened=_.b("disable_initial_guide_state_fix")?!1:q.canFitPersistentGuide(q.initialBodyClientWidth);q.guideUserStateOpened=q.getInitialGuideUserStateOpened();q.isFullscreenShorts=!1;q.miniGuideWidthThreshold=_.m6("kevlar_mini_guide_width_threshold",791);q.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");q.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
q.persistentGuideBlockedPagePathRegex=new RegExp(q.persistentGuideBlockedPagesPatterns.join("|"));q.animationTransitionDuration=0;q.lateDataResolver=_.Be();q.serviceEndpoint=Rnc;q.initialGuideDataFetchFailed=!1;q.initialLoad=!0;q.guideRenderers=new Set;q.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return q};
_.z(Ue7,_.N);_.e=Ue7.prototype;_.e.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.e.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.e.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.e.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.e.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.e.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.e.ready=function(){_.t().addProvider({provide:_.bc,useValue:this.hostElement})};
_.e.attached=function(){var q=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.XN(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.XN(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.XN(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.XN(this,this.onYtGuideShow));_.I_(this,function(){q.animationTransitionDuration=200})};
_.e.detached=function(){document.removeEventListener("yt-navigate-finish",_.XN(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.XN(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.XN(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.XN(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.XN(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.XN(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.XN(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.e.getData=function(){return this.data};
_.e.load=function(){var q=this,Z,w,r,Y;return _.V(function(C){switch(C.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=q.lateDataResolver.resolve.bind(q),C.return(q.lateDataResolver.promise);if(window.ytInitialGuideData)return Z=_.Be(),Z.resolve(window.ytInitialGuideData),C.return(Z.promise);r=!1;_.d9(C,2);return _.W(C,q.fetchGuideData(),4);case 4:w=C.yieldResult;_.QL(C,3);break;case 2:Y=_.o3(C),Y.message==="Returned error"&&(r=!0);
case 3:if(w)return C.return(w);q.onYtGuideClose();r||(q.initialGuideDataFetchFailed=!0);return C.return(q.lateDataResolver.promise)}})};
_.e.fetchGuideData=function(){var q=this,Z,w,r,Y,C,d;return _.V(function(O){if(O.nextAddress==1)return q.guidePromise||(q.guidePromise=_.qM(q.hostElement,[q.serviceEndpoint])),_.W(O,q.guidePromise,2);if(O.nextAddress!=3)return Z=O.yieldResult,w=_.t(),r=w.resolve(_.Bs),_.W(O,r(),3);(Y=O.yieldResult)&&((C=Z)==null?0:C.data)&&((d=Z.data.responseContext)==null?void 0:d.maxAgeSeconds)!==0&&Y.put("service:guide:fallback",new _.fO({innertubeResponse:Z.data}));return O.return(Z.data)})};
_.e.initializeGuideDataIfEmpty=function(){var q=this,Z,w;return _.V(function(r){if(r.nextAddress==1){if(!q.initialGuideDataFetchFailed||q.data)return r.return();_.d9(r,2);return _.W(r,q.fetchGuideData(),4)}if(r.nextAddress!=2)return(Z=r.yieldResult)&&q.lateDataResolver.resolve(Z),_.QL(r,0);w=_.o3(r);_.bx(w);_.ub(r)})};
_.e.initializeGuideData=function(){var q=this,Z;return _.V(function(w){switch(w.nextAddress){case 1:return _.el(lf8(),{mainAppWeb:_.BP()}),_.d9(w,2),_.W(w,q.load(),4);case 4:q.data=w.yieldResult;_.QL(w,3);break;case 2:_.o3(w),_.Cd(lf8(),"FAILURE");case 3:Z=q.data&&q.data.items&&q.data.items.length>0?"SUCCESS":"FAILURE",_.Cd(lf8(),Z),_.ub(w)}})};
_.e.setGuideData=function(q){var Z=this,w,r;return _.V(function(Y){if(Y.nextAddress==1)return Z.disabled?Y.return():Z.data?(q.data=Z.data,Z.guideRenderers.add(q),Y.return()):_.W(Y,Z.initializeGuideData(),2);Z.graftGuideToPage();w=_.BF("IS_HOMEPAGE_COLD")?"eop":void 0;_.b("disable_element_pool_populator")?Z.setGuideDataAfterInit(q):(r=new _.TG(1,w),_.UY(r,Z.setGuideDataAfterInit.bind(Z,q)));_.ub(Y)})};
_.e.setGuideDataAfterInit=function(q){q.data=this.data;q.markDirty();this.guideRenderers.add(q);_.SH(function(){_.JT("gle")});
_.I_(this,function(){_.JT("gpe")})};
_.e.graftGuideToPage=function(){if(this.data){var q=this.data&&this.data.trackingParams;q&&(q=_.wa(q),_.fH(_.iy(),q))}};
_.e.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.XN(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.e.onDrawerOpenedChanged=function(q,Z){!Z.value&&this.guideOpened&&(this.guideOpened=!1)};
_.e.onYtGuideToggle=function(q){var Z=this.guideOpened;this.guideOpened=!Z;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var w=_.Hd();_.Wd(0,109,!this.guideUserStateOpened);w.save()}this.updateGuideDrawerElementState();if(this.guideElement){var r;this.guideOpened&&((r=q.detail)==null?0:r.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.XN(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.XN(this,
this.onAppDrawerTransitioned))}Z||this.initializeGuideDataIfEmpty()};
_.e.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.XN(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.sG(this.guideElement)};
_.e.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.XN(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(dBD(this.guideOpened))};
_.e.guidePersistentAndVisibleChanged=function(){_.i5(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.e.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.mu({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.e.miniGuideVisibleChanged=function(){_.i5(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.e.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(dBD(this.guideOpened)),this.initialLoad=!1);_.i5(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.e.activeEndpointChanged=function(){_.i5(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.e.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.e.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()};
_.e.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var q=this.canFitPersistentGuide(this.cachedClientWidth);q?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=q}this.updateGuideDrawerElementState()};
_.e.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.e.getGuideOpened=function(){return this.guideOpened};
_.e.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.e.getActiveEndpoint=function(){return this.activeEndpoint};
_.e.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.e.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&&_.hy(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.e.computeGuidePersistentAndVisible=function(){var q=this;_.vp(this,"computeGuidePersistentAndVisible",function(){q.guidePersistentAndVisible=q.guideOpened&&q.guidePersistent;q.guideIsVisibleButNotPersistent=!(!q.guideOpened||q.guidePersistent)})};
_.e.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.e.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.e.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.e.startLoadingWatch=function(){this.closeGuide()};
_.e.startLoadingShorts=function(){_.b("web_hide_guide_on_shorts")&&this.closeGuide()};
_.e.onYtNavigateFinish=function(q,Z){if(!_.wS||Z){this.activeEndpoint=Z.endpoint;this.pageType=Z.pageType;this.pageUrl=Z.response.url;var w,r;q=(r=_.J((w=Z.endpoint)==null?void 0:w.commandMetadata,_.XK))==null?void 0:r.url;!this.pageUrl&&q&&(this.pageUrl=q);_.b("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.e.getVisibleGuideRenderer=function(){for(var q=_.P(this.guideRenderers),Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,this.miniGuideVisible&&Z.is==="ytd-mini-guide-renderer"||this.guideOpened&&Z.is==="ytd-guide-renderer")return Z;return null};
_.e.markGuideRendererDirty=function(q){if(q){typeof q.markDirty==="function"&&q.markDirty();q=_.P([].concat(_.Ju(_.E(q).children)));for(var Z=q.next();!Z.done;Z=q.next())this.markGuideRendererDirty(Z.value)}};
_.e.persistentGuideEnabled=function(q,Z){if(!Z||q==="watch"||q==="settings"||q==="shorts"&&this.isFullscreenShorts||_.b("reels_web_disable_persistent_guide_shorts")&&q==="shorts")return!1;var w=_.gA(Z)||"";return _.b("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(r){return w===r}):!this.persistentGuideBlockedPagePathRegex.test(w)};
_.e.canFitPersistentGuide=function(q){var Z=_.m6("kevlar_persistent_guide_width_threshold",1312);return Z===-1||_.b("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:q>Z};
_.e.canFitMiniGuide=function(q){return this.miniGuideWidthThreshold===-1?!1:q>this.miniGuideWidthThreshold};
_.e.onResize=function(){var q=this;_.vp(this,"calculateGuideState",function(){q.onResizeDebounced()})};
_.e.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.e.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.e.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.e.getInitialGuideUserStateOpened=function(){return!_.Hd().getFlag(109)};
_.My.Object.defineProperties(Ue7.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.zj("initialBodyClientWidth")||window.innerWidth}}});
var UO=Ue7;UO.prototype.onResize=UO.prototype.onResize;UO.prototype.observeForMiniGuideVisible=UO.prototype.observeForMiniGuideVisible;UO.prototype.computeGuidePersistentAndVisible=UO.prototype.computeGuidePersistentAndVisible;UO.prototype.cachedClientWidthChanged=UO.prototype.cachedClientWidthChanged;UO.prototype.resetGuide=UO.prototype.resetGuide;UO.prototype.activeEndpointChanged=UO.prototype.activeEndpointChanged;UO.prototype.guideOpenedChanged=UO.prototype.guideOpenedChanged;
UO.prototype.miniGuideVisibleChanged=UO.prototype.miniGuideVisibleChanged;UO.prototype.guideIsVisibleButNotPersistentChanged=UO.prototype.guideIsVisibleButNotPersistentChanged;UO.prototype.guidePersistentAndVisibleChanged=UO.prototype.guidePersistentAndVisibleChanged;UO.prototype.onGuideElementChanged=UO.prototype.onGuideElementChanged;UO.prototype.onGuidePersistentChanged=UO.prototype.onGuidePersistentChanged;UO.prototype.onRenderGuideChanged=UO.prototype.onRenderGuideChanged;
UO.prototype.onActiveEndpointChanged=UO.prototype.onActiveEndpointChanged;UO.prototype.onMiniGuideVisibleChanged=UO.prototype.onMiniGuideVisibleChanged;UO.prototype.onGuideIsVisibleButNotPersistentChanged=UO.prototype.onGuideIsVisibleButNotPersistentChanged;UO.prototype.onGuidePersistendAndVisibleChanged=UO.prototype.onGuidePersistendAndVisibleChanged;_.X([_.U(_.SQ),_.A("design:type",Object)],UO.prototype,"ironResizableBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],UO.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],UO.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],UO.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],UO.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],UO.prototype,"disabled",void 0);
_.X([_.F(),_.A("design:type",Boolean)],UO.prototype,"guidePersistentAndVisible",void 0);_.X([_.M("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UO.prototype,"onGuidePersistendAndVisibleChanged",null);_.X([_.F(),_.A("design:type",Boolean)],UO.prototype,"guideIsVisibleButNotPersistent",void 0);
_.X([_.M("guideIsVisibleButNotPersistent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UO.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.X([_.F(),_.A("design:type",Object)],UO.prototype,"miniGuideVisible",void 0);_.X([_.M("miniGuideVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UO.prototype,"onMiniGuideVisibleChanged",null);_.X([_.F(),_.A("design:type",Boolean)],UO.prototype,"forceMiniGuideClose",void 0);
_.X([_.F(),_.A("design:type",Object)],UO.prototype,"activeEndpoint",void 0);_.X([_.M("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UO.prototype,"onActiveEndpointChanged",null);_.X([_.F(),_.A("design:type",Boolean)],UO.prototype,"renderGuide",void 0);_.X([_.M("renderGuide"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UO.prototype,"onRenderGuideChanged",null);
_.X([_.F(),_.A("design:type",Object)],UO.prototype,"guideOpened",void 0);_.X([_.F(),_.A("design:type",Boolean)],UO.prototype,"guidePersistent",void 0);_.X([_.M("guidePersistent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UO.prototype,"onGuidePersistentChanged",null);_.X([_.F(),_.A("design:type",Object)],UO.prototype,"guideUserStateOpened",void 0);_.X([_.F(),_.A("design:type",String)],UO.prototype,"pageUrl",void 0);
_.X([_.F(),_.A("design:type",String)],UO.prototype,"pageType",void 0);_.X([_.F(),_.A("design:type",Number)],UO.prototype,"cachedClientWidth",void 0);_.X([_.F(),_.A("design:type",Object)],UO.prototype,"guideElement",void 0);_.X([_.F({selector:_.$_}),_.A("design:type",Object)],UO.prototype,"isFullscreenShorts",void 0);_.X([_.M("guideElement"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UO.prototype,"onGuideElementChanged",null);
_.X([_.M("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UO.prototype,"guidePersistentAndVisibleChanged",null);_.X([_.g3("guideIsVisibleButNotPersistent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UO.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.X([_.M("miniGuideVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UO.prototype,"miniGuideVisibleChanged",null);_.X([_.g3("guideOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UO.prototype,"guideOpenedChanged",null);_.X([_.M("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UO.prototype,"activeEndpointChanged",null);
_.X([_.g3("pageUrl"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UO.prototype,"resetGuide",null);_.X([_.g3("cachedClientWidth"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UO.prototype,"cachedClientWidthChanged",null);_.X([_.M("guideOpened","guidePersistent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UO.prototype,"computeGuidePersistentAndVisible",null);
_.X([_.g3("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UO.prototype,"observeForMiniGuideVisible",null);_.X([_.m2("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UO.prototype,"onResize",null);UO=_.X([_.l({disableElementRegistration:!0,is:"yt-guide-manager"})],UO);var kbl=_.p(UO,"yt-guide-manager",void 0,{mode:_.NT("kevlar_poly_si_batch_j081")?1:2});var KAS=function(){var q=_.N.apply(this,arguments)||this;q.JSC$17574_keyboardInUse=!1;q.boundHandleCapturedKeydownEvent=function(Z){q.handleCapturedKeydownEvent(Z)};
return q};
_.z(KAS,_.N);_.e=KAS.prototype;_.e.attached=function(){this.listenToDocument(document)};
_.e.listenToDocument=function(q){q.addEventListener("keydown",_.XN(this,this.onKeyDownEvent));q.addEventListener("keyup",_.XN(this,this.onKeyUpEvent));q.addEventListener("mousedown",_.XN(this,this.onMouseDownEvent));_.b("desktop_keyboard_capture_keydown_killswitch")||q.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);q.addEventListener("yt-page-data-updated",_.XN(this,this.onPageUpdate))};
_.e.detached=function(){this.unlistenFromDocument(document)};
_.e.unlistenFromDocument=function(q){q.removeEventListener("keydown",_.XN(this,this.onKeyDownEvent));q.removeEventListener("keyup",_.XN(this,this.onKeyUpEvent));q.removeEventListener("mousedown",_.XN(this,this.onMouseDownEvent));_.b("desktop_keyboard_capture_keydown_killswitch")||q.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);q.removeEventListener("yt-page-data-updated",_.XN(this,this.onPageUpdate))};
_.e.ready=function(){_.t().addProvider({provide:_.er,useValue:this})};
_.e.isKeyBoardInUse=function(){return this.JSC$17574_keyboardInUse};
_.e.handleCapturedKeydownEvent=function(q){if(q.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(q)};
_.e.onMouseDownEvent=function(){this.JSC$17574_keyboardInUse=!1};
_.e.onPageUpdate=function(){if(_.b("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.b("web_shorts_keyboard_shortcut_usage_log")){_.Mm.clear();for(var q=_.P(_.Id),Z=q.next();!Z.done;Z=q.next()){var w=_.P(Z.value);Z=w.next().value;w=w.next().value;w=_.C6(w);_.Mm.set(Z,w);_.T7(_.b5(),_.Rs(),w)}_.FF.clear();q=_.P(_.cn);for(Z=q.next();!Z.done;Z=q.next())w=_.P(Z.value),Z=w.next().value,w=w.next().value,w=_.C6(w),_.FF.set(Z,w),_.T7(_.b5(),_.Rs(),w);_.k0(_.b5(),_.Rs(),[].concat(_.Ju(_.FF.values()),
_.Ju(_.Mm.values())));_.kK(_.b5(),[].concat(_.Ju(_.FF.values()),_.Ju(_.Mm.values())))}};
_.e.onMiniplayerActiveChange=function(){var q;(q=_.t().resolve(_.Tf).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(q.document):this.unlistenFromDocument(q.document))};
_.e.ignoreKeyEvent=function(q){if(q.ctrlKey||q.altKey)if(_.b("kevlar_macro_markers_keyboard_shortcut")){if(q.keyCode!==37&&q.keyCode!==39)return!0}else return!0;var Z=_.E8(q)||[];return _.PmV(Z)?!0:q.defaultPrevented?(qQ(q.keyCode,q.shiftKey,this.isShortsPage),!0):q.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(q):!1};
_.e.isSpacebarClick=function(q){var Z=q||window.event;var w;Z.composedPath&&typeof Z.composedPath==="function"?w=Z.composedPath():w=Z.path;w&&w.length?Z=w[0]:(Z=Z||window.event,Z=Z.target||Z.srcElement,Z.nodeType==3&&(Z=Z.parentNode));return Z&&q.keyCode===32&&(q=Z.tagName==="BUTTON"||Z.tagName==="A"||Z.tagName==="INPUT",Z=(Z=Z.getAttribute("role"))&&(Z==="option"||Z==="button"||Z.indexOf("menuitem")===0),q||Z)?!0:!1};
_.e.onKeyDownEvent=function(q){if(!this.ignoreKeyEvent(q)&&(q.keyCode===191&&(q.shiftKey||q.metaKey?q.repeat!=null&&q.repeat||(this.openHotkeyDialog(),qQ(q.keyCode,q.shiftKey,this.isShortsPage)):(this.focusSearchBox(),q.preventDefault())),!q.metaKey)){var Z=_.t().resolve(_.Tf);switch(q.keyCode){case 9:this.JSC$17574_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(q);break;case 84:Z.pipController.getWindow()&&window.focus();this.toggleTheaterMode(q.keyCode,q.shiftKey);break;case 73:Z.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(q.keyCode,q.shiftKey);break;case 70:if(this.isShortsPage&&_.b("web_fullscreen_shorts")){_.Vpq();break}this.isMiniplayerActive()?Z.pipController.getWindow()&&(Z.close(!0),window.focus()):this.passEventToPlayer(q);break;case 27:this.closeMiniplayer(q.keyCode,q.shiftKey)||this.passEventToPlayer(q);break;case 13:q.shiftKey&&_.b("web_ephemeral_actions")&&_.t().resolve(_.Aa).activate(q);break;default:this.passEventToPlayer(q)}}};
_.e.onKeyUpEvent=function(q){if(!this.ignoreKeyEvent(q))if(_.b("web_speedmaster_spacebar_control")&&q.keyCode===32)this.handlePlayerSpaceKey(q,!0);else{var Z=this.getPlayerManager();Z&&(Z=Z.getPlayer())&&Z.handleGlobalKeyUp(q.keyCode,q.shiftKey,q.ctrlKey,q.altKey,q.metaKey,q.key,q.code)}};
_.e.getPlayerManager=function(){var q=_.K6(),Z=_.t().resolve(_.Gj(_.U1));return q&&Z&&Z.isOnWatch()?q:null};
_.e.passEventToPlayer=function(q,Z){var w=this,r,Y,C;return _.V(function(d){if(d.nextAddress==1)return!_.b("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&w.isMiniplayerActive()?r=_.t().resolve(_.Tf).getPlayerElement():w.inlinePreviewIsActive?(Y=_.i5(w.hostElement,"yt-get-inline-preview-player-action"))&&Y[0]&&(r=Y[0]):r=_.K6(),r?_.W(d,r.getPlayerPromise(),3):d.jumpTo(0);C=d.yieldResult;Z?C.handleGlobalKeyUp(q.keyCode,q.shiftKey,q.ctrlKey,q.altKey,q.metaKey,q.key,q.code,q.repeat):C.handleGlobalKeyDown(q.keyCode,
q.shiftKey,q.ctrlKey,q.altKey,q.metaKey,q.key,q.code,q.repeat);q.keyCode!==38&&q.keyCode!==40&&qQ(q.keyCode,q.shiftKey,w.isShortsPage);_.ub(d)})};
_.e.focusSearchBox=function(){_.hy(this.hostElement,"yt-focus-searchbox")};
_.e.openHotkeyDialog=function(){_.hy(this.hostElement,"yt-open-hotkey-dialog")};
_.e.isMiniplayerActive=function(){return _.t().resolve(_.Tf).isMiniplayerActive()};
_.e.closeMiniplayer=function(q,Z){return this.isMiniplayerActive()?(_.t().resolve(_.Tf).close(),qQ(q,Z,this.isShortsPage),!0):!1};
_.e.toggleTheaterMode=function(q,Z){var w=_.P9(_.sE().getState()),r=this.getPlayerManager(),Y=_.b("disable_theater_mode_keyboard")||_.BF("START_IN_FULL_WINDOW_MODE");r&&!Y&&(w=!w,_.mJ()&&_.b("external_fullscreen")&&(w=!0),_.yY(this.hostElement,"yt-toggle-theater-mode",[w]),qQ(q,Z,this.isShortsPage))};
_.e.toggleMiniplayer=function(q,Z){var w=this.getPlayerManager();if(this.isMiniplayerActive()){var r;((r=_.t().resolve(_.Gj(_.U1)))==null?0:r.isOnWatch())?_.t().resolve(_.Tf).close(!0):_.Zy(_.t().resolve(_.Tf));qQ(q,Z,this.isShortsPage)}else w&&(_.yY(this.hostElement,"yt-activate-miniplayer-from-watch-action"),qQ(q,Z,this.isShortsPage))};
_.e.handlePlayerSpaceKey=function(q,Z){var w=!!_.K6()||this.isMiniplayerActive();w=_.b("disable_space_scroll_fix")||w;_.b("global_spacebar_pause")&&!this.isKeyBoardInUse()&&w&&(q.preventDefault(),this.passEventToPlayer(q,Z))};
var kF=KAS;kF.prototype.onMiniplayerActiveChange=kF.prototype.onMiniplayerActiveChange;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],kF.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],kF.prototype,"ytdReduxBehavior",void 0);_.X([_.F({selector:_.xkX}),_.A("design:type",Boolean)],kF.prototype,"inlinePreviewIsActive",void 0);_.X([_.F({selector:_.eKZ}),_.A("design:type",Boolean)],kF.prototype,"isShortsPage",void 0);
_.X([_.F({selector:_.jZ}),_.A("design:type",Boolean)],kF.prototype,"miniplayerIsActive",void 0);_.X([_.M("miniplayerIsActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kF.prototype,"onMiniplayerActiveChange",null);kF=_.X([_.l({disableElementRegistration:!0,is:"yt-hotkey-manager"})],kF);_.p(kF,"yt-hotkey-manager",void 0,{mode:_.NT("kevlar_poly_si_batch_j081")?1:2});var sOZ=function(){var q=_.N.apply(this,arguments)||this;q.loopStateEntityKey_=null;q.playlistLoopStateEntity_=null;q.isShuffleNextPlaylist=!1;q.JSC$17577_PLAYER_EVENTS_=new Map;q.playerListenersSetup_=!1;q.videoSkipJob_=0;q.canAutoAdvance_=!1;q.playerManager_=null;q.TEST_ONLY={};return q};
_.z(sOZ,_.N);_.e=sOZ.prototype;_.e.ready=function(){_.t().addProvider({provide:_.b8,useValue:this.hostElement})};
_.e.created=function(){this.JSC$17577_PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.JSC$17577_PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.JSC$17577_PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.JSC$17577_PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.JSC$17577_PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.JSC$17577_PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.e.attached=function(){document.addEventListener("yt-navigate-start",_.XN(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.XN(this,this.onYtNavigateFinish_))};
_.e.detached=function(){document.removeEventListener("yt-navigate-start",_.XN(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.XN(this,this.onYtNavigateFinish_))};
_.e.updatePlaylistEventListeners=function(q,Z){Z&&!this.playerListenersSetup_?(this.playerManager_=q,this.registerPlaylistEventListeners_(q)):!Z&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(q))};
_.e.setPlayer=function(q){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=q};
_.e.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.e.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.e.registerPlaylistEventListeners_=function(q){var Z=this;q.getPlayerPromise().then(function(w){Z.playerListenersSetup_||(Z.ytPlayerListenerBehavior.listenToPlayerEvents(w,Z.JSC$17577_PLAYER_EVENTS_),Z.playerListenersSetup_=!0)})};
_.e.removePlaylistEventListeners_=function(q){var Z=this;q.getPlayerPromise().then(function(w){Z.playerListenersSetup_&&(Z.ytPlayerListenerBehavior.unlistenFromPlayerEvents(w,Z.JSC$17577_PLAYER_EVENTS_),Z.playerListenersSetup_=!1)})};
_.e.setPlaylistComponent=function(q){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.XN(this,this.onPlaylistYtNavigate_)),q&&(q.data&&this.playlistComponent.data&&q.data.playlistId==this.playlistComponent.data.playlistId?(q.loopOn=this.playlistComponent.loopOn,q.shuffleOn=this.playlistComponent.shuffleOn):(q.loopOn=!1,q.shuffleOn=!1),this.isShuffleNextPlaylist&&(q.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=q;this.playlistComponent.addEventListener("yt-navigate",
_.XN(this,this.onPlaylistYtNavigate_))};
_.e.setAutoplayRenderer=function(q){this.autoplayData=q};
_.e.setPlaylistData=function(q){this.currentPlaylistData_=q;_.hy(this.hostElement,"yt-playlist-data-updated");_.R4.isEmpty(q)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(q)};
_.e.setPlayerPlaybackControlData=function(q){this.playerManager_&&this.playerManager_.updatePlayerComponents(q.playlistPanelRenderer)};
_.e.getPlaylistData=function(){return this.currentPlaylistData_};
_.e.getTempData_=function(q,Z){if(this.playlistComponent==null)return null;q={};this.playlistComponent.shuffleOn&&(q.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(q.loop_on=this.playlistComponent.loopOn);Z&&(q.autonav="1",_.t().resolve(_.d6),Z=_.pB(),Z>0&&(q.lact=Z),this.playerManager_&&(Z=this.playerManager_.getPlayer())&&Z.shouldSendVisibilityState()&&(Z=Z.getVisibilityState(),Z!=0&&(q.vis=Z)));_.b("enable_unknown_lact_fix_on_html5")&&(_.t().resolve(_.d6),q.lact=_.pB());
return q};
_.e.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.e.setLoopStateEntityKey_=function(q){var Z;this.loopStateEntityKey_=((Z=this.getPlaylistLoopData_(q))==null?void 0:Z.playlistLoopStateEntityKey)||null};
_.e.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.e.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.e.skipVideo=function(){var q=this,Z=_.b("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||Z)Z=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.$L(_.v5,function(){q.onPlaylistNext();q.videoSkipJob_=0},Z)};
_.e.cancelVideoSkip=function(){this.videoSkipJob_&&(_.v5.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.e.isInBackground_=function(){var q=window.document.visibilityState;return!(!q||q=="visible")};
_.e.onPlaylistIndex_=function(q){this.playlistComponent&&(q=this.playlistComponent.data.contents[q].playlistPanelVideoRenderer.navigationEndpoint,_.hy(this.hostElement,"yt-navigate",{endpoint:q,tempData:this.getTempData_(q)}))};
_.e.onPlayerStateChange_=function(q){if(q=q==0&&this.playlistComponent&&this.canAutoAdvance_)q=_.sN.getInstance(),q=!(q.autonavState_===3?q.autonavPauseReason_&&q.autonavPauseReason_.inputBoxFocus===!0:q.autonavState_===1&&q.disabledAutonavPauseReason_&&q.disabledAutonavPauseReason_.inputBoxFocus===!0);q&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.e.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.e.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.e.navigateToAutoplayWatchEndpoint_=function(q,Z,w){var r=this.playlistComponent.data.currentIndex,Y=this.getNumPlayableVideos_();q=="NORMAL"&&Z=="autoplayVideo"&&r+1>=Y&&w||!(q=this.getVideoEndpoint_(q,Z))||(w=this.getTempData_(q,w),_.hy(this.hostElement,"yt-navigate",{endpoint:q,tempData:w}))};
_.e.getNumPlayableVideos_=function(){for(var q=0,Z=_.P(this.playlistComponent.data.contents||[]),w=Z.next();!w.done;w=Z.next())w.value.playlistPanelVideoRenderer&&(q+=1);return q};
_.e.getVideoEndpoint_=function(q,Z){if(this.autoplayData&&this.autoplayData.sets)for(var w=0,r=this.autoplayData.sets.length;w<r;w++){var Y=this.autoplayData.sets[w];if(Y.mode==q){if(Y[Z])return Y[Z];break}}else q=new _.df("AutoplayData is undefined in playlist manager","Mode: "+q+" endpoint: "+Z),_.bx(q)};
_.e.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.e.onPlaylistYtNavigate_=function(q){if(q.detail.endpoint){q.stopPropagation();var Z=q.detail;Z.tempData=this.getTempData_(q.detail.endpoint);_.hy(this.hostElement,"yt-navigate",Z)}};
_.e.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.e.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.e.playlistLoopStateEntityChanged_=function(q){var Z=this,w,r,Y;return _.V(function(C){if(C.nextAddress==1){if(!q)return C.return();w=q.state==="PLAYLIST_LOOP_STATE_ONE";return Z.playerManager_?_.W(C,Z.playerManager_.getPlayerPromise(),3):C.jumpTo(2)}C.nextAddress!=2&&(r=C.yieldResult,r.setLoopVideo(w));Y=q.state==="PLAYLIST_LOOP_STATE_ALL";Z.playlistComponent&&(Z.playlistComponent.loopOn=Y);_.ub(C)})};
_.e.getPlaylistLoopData_=function(q){var Z,w;if(q=q==null?void 0:(Z=q.playlistButtons)==null?void 0:(w=Z.menuRenderer)==null?void 0:w.topLevelButtons)for(Z=_.P(q),w=Z.next();!w.done;w=Z.next())if(w=w.value,w.playlistLoopButtonRenderer)return w.playlistLoopButtonRenderer};
_.e.getLoopStateCommand_=function(q){var Z=this.getPlaylistData(),w;Z=((w=this.getPlaylistLoopData_(Z))==null?void 0:w.states)||[];var r;q=(r=_.J(Z[q?1:2],_.GSp))==null?void 0:r.button;var Y;return(Y=_.J(q,_.tA))==null?void 0:Y.command};
_.e.onPlayerLoopChange_=function(q){this.playlistLoopStateEntity_&&(q?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(q=this.getLoopStateCommand_(q))&&this.ytComponentBehavior.resolveCommand(q)};
_.e.onSleepTimerSettingsChanged_=function(q){this.canAutoAdvance_=q!=="End of video"};
var K$=sOZ;K$.prototype.onPlaylistLoopStateEntityChanged=K$.prototype.onPlaylistLoopStateEntityChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],K$.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.QQ.YtPlayerListenerBehavior),_.A("design:type",_.EW)],K$.prototype,"ytPlayerListenerBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],K$.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],K$.prototype,"loopStateEntityKey_",void 0);
_.X([_.F({selectorArgs:["loopStateEntityKey_"],selector:_.nSz}),_.A("design:type",Object)],K$.prototype,"playlistLoopStateEntity_",void 0);_.X([_.M("playlistLoopStateEntity_"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],K$.prototype,"onPlaylistLoopStateEntityChanged",null);K$=_.X([_.l({disableElementRegistration:!0,is:"yt-playlist-manager"})],K$);_.p(K$,"yt-playlist-manager",void 0,{mode:_.NT("kevlar_poly_si_batch_j081")?1:2});var Icc,cn8=function(){if(Icc!==void 0)return Icc;var q=document.createElement("template");_.a(q,"\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");q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Icc=q};var MYZ=function(){var q=_.N.apply(this,arguments)||this;q.lastCallback=null;q.getAccountLinkPromises={};q.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);q.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return q};
_.z(MYZ,_.N);_.e=MYZ.prototype;_.e.getLocation=function(){return window.location.href};
_.e.getCompletionUrl=function(){return _.N$(this.getLocation())};
_.e.containsRedirectState=function(q){return(q=_.tW(_.CwO(q)))?(new URLSearchParams(q)).get("redirect_state")!==null:!1};
_.e.createGalConfig=function(q,Z){var w=new EJZ;q=w=Z?this.getPopupOrRedirectSetting(w,_.zj("LINK_API_KEY"),_.zj("LINK_API_KEY_REDIRECT"),q):xIy(w,_.zj("LINK_API_KEY"));q.authUser=_.zj("SESSION_INDEX")||0;q.supportedFlows=new Set([4]);return q.build()};
_.e.getPopupOrRedirectSetting=function(q,Z,w,r){this.isGalInteractionPopupMode(r)?(q.interactionMode=0,q=xIy(q,Z)):(q.interactionMode=1,Z=this.getCompletionUrl(),q.completionUrl=Z,q=xIy(q,w));return q};
_.e.isGalInteractionPopupMode=function(q){if(this.redirectModeProviderAllowlist.has(q))switch(q){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.b("main_web_redirect_integration_riot");default:return!1}return!0};
_.e.getStatusEntityKeyForProviderId=function(q){return _.yG(q+":all","accountLinkStatusEntity")};
_.e.findNestedPropValue=function(q,Z){var w=!1,r=null;JSON.stringify(q,function(Y,C){w||Y!==Z||(w=!0,r=C);return w?null:C});
return r};
_.e.findAccountLinkButtonViewModel=function(q,Z){var w=null,r=!1;JSON.stringify(q,function(Y,C){r||C.accountLinkStatusEntityKey!==Z||C.accountLinkStatusSecondaryEntityKey||(r=!0,w=C);return r?null:C});
return w};
_.e.executeLinkingSuccessOrFailureCommands=function(q,Z,w){var r=null,Y;(Z==null?0:(Y=Z.url)==null?0:Y.includes("account_sharing"))?r=Z==null?void 0:Z.response:r=Z==null?void 0:Z.response;(Z=this.findAccountLinkButtonViewModel(r,q))?(q=w?this.findNestedPropValue(Z,"onSuccessCommand"):this.findNestedPropValue(Z,"onFailureCommand"))?_.eK([q],this.hostElement):_.xT(Error("dl")):_.xT(Error("el`"+q))};
_.e.handleInitializeRequest=function(q,Z){var w=this,r=C2l(this.createGalConfig(q,!0));this.containsRedirectState(this.getLocation())?fvc(q,r.config,r.galService).then(function(Y){var C=w.getStatusEntityKeyForProviderId(q);if(Y.statusCode===1)Z&&w.executeLinkingSuccessOrFailureCommands(C,Z,!0),Y=w.getLocation().indexOf("#"),Y!==-1&&window.history.pushState(null,"",w.getLocation().substring(0,Y));else return Z&&w.executeLinkingSuccessOrFailureCommands(C,Z,!1),Promise.reject(Error(Y.statusMessage))}).catch(function(Y){_.bx(Y);
_.vO("gamingAccountLinkStatusChanged",{serviceId:q,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(Y)}):this.getAccountLinkPromises[q]=r.startLinkingSession({serviceId:q})};
_.e.handleAccountLinkCommand=function(q){_.J(q,UOc)&&this.handleLinkRequest(_.J(q,UOc))};
_.e.handleLinkRequest=function(q){var Z=this,w=q.thirdPartyId;if(w)if(this.isGalInteractionPopupMode(w)){var r=function(){Z.closeAndFire("ytd-gaming-account-link-setting-renderer",q.onFailureCommand)},Y=function(){Z.closeAndFire("ytd-gaming-account-link-setting-renderer",q.onSuccessCommand)};
this.lastCallback=Y;this.getAccountLinkPromises[w].then(function(C){drZ(C).then(function(d){d.statusCode===1?Y():r()})}).catch(function(){r()})}else this.getAccountLinkPromises[w].then(function(C){drZ(C).then(function(d){if(d.statusCode!==1)return Promise.reject(Error(d.statusMessage))})}).catch(function(C){_.bx(C);
_.vO("gamingAccountLinkStatusChanged",{serviceId:w,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(C)})};
_.e.closeAndFire=function(q,Z){_.yY(this.hostElement,"yt-close-popup-action",[q]);Z&&_.eK([Z],this.hostElement)};
_.e.handleAccountUnlinkCommand=function(q){_.J(q,kzc)&&this.handleUnlinkRequest(_.J(q,kzc))};
_.e.handleUnlinkRequest=function(q){var Z=this,w=q.thirdPartyId;if(w){var r=function(){Z.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",q.onFailureCommand)},Y=function(){Z.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",q.onSuccessCommand)};
this.lastCallback=Y;var C=C2l(this.createGalConfig(w,!1));this.unlinkUserGal(C,w).then(function(d){d.statusCode===1?Y():r()}).catch(function(){r()})}};
_.e.unlinkUserGal=function(q,Z){return q.deleteLink(Z)};
_.e.handleLogAccountLinkingEventCommand=function(q){_.b("enable_gel_log_commands")&&_.J(q,K5V)&&(q=_.J(q,K5V).event)&&_.vO("gamingAccountLinkStatusChanged",q)};
_.My.Object.defineProperties(MYZ,{template:{configurable:!0,enumerable:!0,get:function(){return cn8()}}});
var sO=MYZ;_.X([_.U(_.Xp.YtOpenPopupBehavior),_.A("design:type",Object)],sO.prototype,"ytOpenPopupBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],sO.prototype,"ytActionHandlerBehavior",void 0);sO=_.X([_.l({disableElementRegistration:!0,is:"ytd-third-party-manager"})],sO);_.p(sO,"ytd-third-party-manager",function(){return cn8()},{mode:_.NT("kevlar_poly_si_batch_j081")?1:2});var FA6,NEb=function(){return FA6!==void 0?FA6:FA6=document.createElement("template")};
document.head.appendChild(NEb().content);var lcb,Gbc=function(){if(lcb!==void 0)return lcb;var q=document.createElement("template");_.a(q,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");q.content.insertBefore(NEb().content.cloneNode(!0),q.content.firstChild);q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return lcb=q};var p_b=_.Fr(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),X_F=function(){var q=_.N.apply(this,arguments)||this;q.currentPage=void 0;q.renderLoadingStateJobId=0;q.updatePageDataJobId=0;q.pageDisposeJobsets=new WeakMap;q.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","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"};q.applyZoomTransition=_.Af("web_page_transition_type")==="zoom";q.applySlideTransition=_.Af("web_page_transition_type")==="slide";q.TEST_ONLY=void 0;return q};
_.z(X_F,_.N);_.e=X_F.prototype;_.e.ready=function(){var q=_.t();q.addProvider({provide:_.U1,useValue:this});q.addProvider({provide:_.hdl,useValue:this})};
_.e.created=function(){this.pagePool=new PZD;this.contextSwitcher=new jcc};
_.e.attached=function(){_.hy(this.hostElement,"attached");var q=_.t().resolve(_.Gj(_.Co));q&&(this.contextSwitcher.JSC$17398_networkService_=q);this.viewTransitionManager=_.t().resolve(_.Gj(_.fLZ));this.setupPageTransitionAnimation()};
_.e.getPageOffset=function(q){return q.getScrollTop()};
_.e.setPageOffset=function(q,Z){try{q.setScrollTop(Z)}catch(w){}};
_.e.setPageOffsetForNavigation=function(q,Z){_.hy(this.hostElement,"yt-navigate-set-page-offset",{page:q,offset:Z===void 0?0:Z})};
_.e.pauseActiveContext=function(){var q=this.contextSwitcher;q.activeContext_&&q.activeContext_.pause()};
_.e.getModuleNameForType=function(q){return q==="watch"?_.b("kevlar_watch_fixie")?"watchFixie":_.b("kevlar_watch_grid")?"watchGrid":"watchFlexy":q==="shorts"||q==="search"?q:"browse"};
_.e.attachPage=function(q){var Z,w=!_.b("pc_is_attached_ks")&&(q==null?void 0:(Z=q.polymerController)==null?void 0:Z.isAttached);if(!q.isAttached&&!w)try{_.E(this.hostElement).appendChild(q)}catch(Y){var r;_.bx(new _.df("Error attaching page element for component",{origin:(r=this.currentPage)==null?void 0:r.is,component:q.is}))}};
_.e.setActivePage=function(q){var Z=this,w=!1,r=function(){var Y=Z.isOnWatch(),C=Z.currentPage;if(q)if(q!==Z.currentPage){C&&(C.hidden=!0,C.active=!1,C.removeAttribute("role"));Z.currentPage=q;var d,O=Ah((d=Z.data)==null?void 0:d.endpoint);C&&_.hy(Z.hostElement,"yt-page-type-changed",{oldPageType:C.is,newPageType:q.is,newPageSubtype:O});_.JJ().dispatch(_.mu({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:q.is}));_.JJ().dispatch(_.mu({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:O||""}));q.hidden=
!1;Z.attachPage(q);q.active=!0;q.setAttribute("role","main");C&&Z.setPageOffsetForNavigation(q,0);_.b("kevlar_remove_page_dom_on_switch")&&!Y&&C&&_.E(Z.hostElement).removeChild(C)}else w=!0;else Y=new _.df("Unable to set active page",C?C.is:"unknown origin",(O=Z.data)==null?void 0:O.endpoint),_.tY(Y)};
this.viewTransitionManager?Q78(this.viewTransitionManager,r,this.viewTransitionConfigForSetActivePage(this.currentPage,q)):r();return w};
_.e.viewTransitionConfigForSetActivePage=function(q,Z){return _.b("web_thumbnail_to_watch_transition")&&(q==null?void 0:q.is)==="ytd-browse"&&this.isWatchPage(Z)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(q==null?void 0:q.is)==="ytd-browse"&&(Z==null?void 0:Z.is)==="ytd-browse"&&q!==Z?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.e.updatePageData=function(q){var Z=this,w=this.data;this.updatePageDataJobId&&_.v5.cancelJob(this.updatePageDataJobId);this.data=q;return new _.r5(function(r){var Y=function(){q.filler?Z.performDataUpdate(q,w):A37(function(){Z.performDataUpdate(q,w)});
var H=_.zB();_.BV(H,"cr")||H.processSignal("cr");r()},C=function(){q&&q.page==="watch"?Z.updatePageDataJobId=_.$L(_.v5,Y):Y()};
if(_.b("kevlar_enable_mss_page_modules_client")&&q){var d=_.t().resolve(_.k4),O=Z.getModuleNameForType(q.page);(d=a7l(d,[O]))?d.then(C):C()}else C()})};
_.e.isDownloadsPage=function(q){var Z,w;return(q==null?void 0:(Z=q.endpoint)==null?void 0:(w=Z.browseEndpoint)==null?void 0:w.browseId)==="FEdownloads"};
_.e.setPlayerSyncInterval=function(q){var Z;return _.V(function(w){if(w.nextAddress==1)return _.W(w,_.t().resolve(_.F6),2);Z=w.yieldResult;Z.setUpPositionSyncInterval(q);_.ub(w)})};
_.e.performDataUpdate=function(q,Z){_.b("kevlar_early_popup_close")||_.yY(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var w=!q.filler;w&&(_.JT("lps"),_.b("config_age_report_killswitch")||RIZ());var r=lj(q),Y,C=!1;if(_.b("kevlar_remove_page_dom_on_switch")){var d=Z&&lj(Z);r===d&&(Y=this.getCurrentPage())}Y||(Y=BT(this.pagePool,r));w&&hnV(this.pagePool.elementPoolPopulator,r);w&&!this.renderLoadingStateJobId&&(C=this.setActivePage(Y));if(Y){d=r==="watch";var O=
r==="shorts";_.b("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(Y);if(d||O)Y.playerData=q.playerResponse;if(O){q.reelWatchSequenceResponse?Y.reelWatchSequenceResponse=q.reelWatchSequenceResponse:q.cachedReelWatchSequenceResponse&&(Y.reelWatchSequenceResponse=q.cachedReelWatchSequenceResponse);Y.currentEndpoint=q.endpoint;var H;Y.isPreviousPageShorts=!!(Z==null?0:(H=Z.endpoint)==null?0:H.reelWatchEndpoint);q.cachedReelWatchSequenceResponse=q.reelWatchSequenceResponse||
q.cachedReelWatchSequenceResponse||(Z==null?void 0:Z.cachedReelWatchSequenceResponse);Y.cachedReelWatchSequenceResponse=q.cachedReelWatchSequenceResponse}H=this.isDownloadsPage(q);var L=this.isDownloadsPage(Z);H&&!L?this.setPlayerSyncInterval(6E5):!H&&L&&this.setPlayerSyncInterval();_.b("block_all_player_prefetch_requests")||this.preparePrefetchRequest(q,Y,w,d,O);En8(_.t().resolve(_.Tf),Z,q);_.Wk9(_.t().resolve(_.d6));_.b("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(Y);
w?(w=typeof Y.loadPage,w==="function"?(Y.pageContext=tDZ(this.contextSwitcher,Y,Y.data!==q.response),Z=function(){Y.loadPage(q.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&Y.is==="ytd-browse"&&C?this.applySlideTransition?Q78(this.viewTransitionManager,Z,{transitionName:"slide"}):Q78(this.viewTransitionManager,Z,{transitionName:"zoom"}):Z()):_.Rw(new _.df("b/38014653 ",[r,
Y.is,Y.nodeName,w,Y.isAttached,Z&&lj(Z),this.hostElement.children.length])),_.JT("pdl")):(Y.hidden=!0,q.response.filler=!0,Y.data=q.response,this.attachPage(Y));_.hy(this.hostElement,"yt-page-data-updated",{pageType:r})}_.WO(_.v5,function(){_.b("logging_avoid_blocking_during_navigation")&&_.A7N().transition("none");var S=sc7(),v=Y;if(q){var R=idl(q),B=g47(q),n;a:{if(q.playerResponse){var x=q.playerResponse,K;if((n=x.auxiliaryUi)==null?0:(K=n.messageRenderers)==null?0:K.upsellDialogRenderer){n=x.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(q.response&&(n=q.response,(x=n.overlay)==null?0:x.upsellDialogRenderer)){n=n.overlay.upsellDialogRenderer;break a}n=void 0}var k;var G;K=(k=q.playerResponse)==null?void 0:(G=k.auxiliaryUi)==null?void 0:G.messageRenderers;k=(K==null?void 0:K.enforcementMessageViewModel)||(K==null?void 0:K.bkaEnforcementMessageViewModel);k=(k==null?void 0:k.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?k:void 0;var rz;a:{if(q.response&&(G=q.response,(rz=G.overlay)==null?0:rz.commandWrapperPromoRenderer)){rz=
G.overlay.commandWrapperPromoRenderer;break a}rz=void 0}KXy(S,R,B,n,k,rz,v)}})};
_.e.preparePrefetchRequest=function(q,Z,w,r,Y){var C,d,O,H,L,S,v,R,B,n,x,K,k,G,rz;return _.V(function(f){if(f.nextAddress==1)return!w||!r&&!Y||_.b("kevlar_disable_background_prefetch")&&_.QV(_.GTI)()===0?f.return():(C=_.kB(Z))?_.W(f,C.getPlayerPromise(),2):f.return();d=f.yieldResult;O=_.t().resolve(_.Gj(_.Co));if(!O)return f.return();if(Y)return H=_.gn(_.AD),rHc(H,(L=q.endpoint)==null?void 0:L.reelWatchEndpoint,Z.reelWatchSequenceResponse,d,O),f.return();R=(S=q.response)==null?void 0:(v=S.responseContext)==
null?void 0:v.webResponseContextExtensionData;if(!R)return f.return();k=(B=q.response)==null?void 0:(n=B.contents)==null?void 0:(x=n.twoColumnWatchNextResults)==null?void 0:(K=x.autoplay)==null?void 0:K.autoplay;G=_.t().resolve(_.b8);rz=_.gn(_.AD);Yi7(rz,R,d,O,G,k);_.ub(f)})};
_.e.movePlayerToWatch=function(q){var Z=this,w,r;return _.V(function(Y){w=BT(Z.pagePool,"watch");r=w.getPlayerContainer();q.appendTo(r);_.ub(Y)})};
_.e.movePlayerToShorts=function(q){var Z=this,w,r,Y;return _.V(function(C){w=BT(Z.pagePool,"shorts");r=w.getPlayerContainer();(Y=q)==null||Y.appendTo(r,void 0,!0);_.ub(C)})};
_.e.getPlayerFromWatch=function(){var q=BT(this.pagePool,"watch");return _.kB(q)};
_.e.getPlayerFromShorts=function(){var q=BT(this.pagePool,"shorts");return _.kB(q)};
_.e.startLoadingWatch=function(){var q=BT(this.pagePool,"watch");this.renderLoadingStateJobId?(_.v5.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(q)};
_.e.startLoadingShorts=function(){var q=BT(this.pagePool,"shorts");this.setActivePage(q)};
_.e.getCurrentPage=function(){return this.currentPage};
_.e.getDestinationPageType=function(){return this.destinationPageType};
_.e.getCurrentData=function(){return this.data};
_.e.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.e.isOnShorts=function(){var q;return((q=this.currentPage)==null?void 0:q.is)==="ytd-shorts"};
_.e.isWatchPage=function(q){return!!q&&(q.is==="ytd-watch-flexy"||q.is==="ytd-watch-fixie"||q.is==="ytd-watch-grid")};
_.e.preparePage=function(q,Z){var w=this,r=function(){var d=w.pagePool.preparePage(q,w.currentPage,Z);d&&w.attachPage(d)},Y=function(d){_.JY(d,Z);
_.bx(d)};
if(_.b("kevlar_enable_mss_page_modules_client")){var C=this.getModuleNameForType(q);if(C=a7l(_.t().resolve(_.k4),[C])){C.then(r.bind(this)).catch(Y.bind(this));return}}try{r()}catch(d){Y(d)}};
_.e.lazyPrepareCriticalPages=function(q,Z){q=Ah(Z)||q;_.b("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(q).then(this.maybePrepareWatchPage.bind(this,q)):this.maybePrepareWatchPage(q)};
_.e.maybePrepareWatchPage=function(q){q!=="watch"&&_.WO(_.v5,this.preparePage.bind(this,"watch"))};
_.e.downloadPageModules=function(q){q=this.getModuleNameForType(q);var Z=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);Z.delete(q);var w=_.t().resolve(_.k4);w.JSC$16139_loadModules(q);return w.JSC$16139_loadModules.apply(w,_.Ju(Z))};
_.e.renderPageLoadingState=function(q,Z){this.preparePage(q,Z);var w=BT(this.pagePool,q);w.loadingData&&(w.loadingData.endpoint=Z);w.loading=!0;this.setActivePage(w);q==="watch"&&_.hy(this.hostElement,"yt-guide-close")};
_.e.prepareForNavigation=function(q,Z){var w=this;if(this.currentPage&&this.data){var r=Ah(Z)||q;this.destinationPageType=r;lj(this.data)==r&&_.hy(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(q==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.v5.cancelJob(this.renderLoadingStateJobId);_.t().resolve(_.Tf).deactivate(Z);var Y=this.data;this.renderLoadingStateJobId=_.OM(_.v5,function(){if(w.data!=Y){var C=BT(w.pagePool,q);w.setActivePage(C)}else w.renderPageLoadingState(q,
Z);w.renderLoadingStateJobId=0},150)}};
_.e.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var q=new _.TG(1);this.currentPage.pageDisposeJobs.forEach(function(Z){_.UY(q,Z)});
this.pageDisposeJobsets.set(this.currentPage,q)}};
_.e.flushPageDisposeJobset=function(q){var Z=this.pageDisposeJobsets.get(q);Z&&(Z.flushJobs(),this.pageDisposeJobsets.delete(q))};
_.e.onYtStopOldPlayer=function(q,Z){Z=Z===void 0?!1:Z;var w,r=_.fs("kevlar_new_stop_old_player_logic_pages");if(_.b("kevlar_check_current_page_on_stop_old_player")&&(r.length===0||this.currentPage&&r.includes(this.currentPage.is)))if(this.data&&(w=lj(this.data)),lj(q)===w&&this.currentPage&&lj(this.currentPage.data)!==w)var Y=_.kB(this.currentPage);else w=lj(this.data),Y=BT(this.pagePool,w),Y=_.kB(Y);else this.data&&(w=lj(this.data),Y=BT(this.pagePool,w),Y=_.kB(Y));if(Y)if(q=lj(q),r=BT(this.pagePool,
q),r=_.kB(r),Y==r)Z&&!_.b("kevlar_disable_preemptive_player_reset")&&Y.resetForNewPlayback();else if(Z=w==="watch"&&q!=="watch",!Z||q==="shorts"||_.HLp()&&!SL7(this.data)&&q!=="yts-products"&&q!="mini_app"&&q!="playables")w=_.t().resolve(_.Tf),Z&&w.isMiniplayerActive()&&w.pipController.getWindow()||Y.stop()};
_.e.setupPageTransitionAnimation=function(){var q=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){go(this.viewTransitionManager,"slide",{beforeTransition:function(){q.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){q.hostElement.style.viewTransitionName=""}});
go(this.viewTransitionManager,"zoom",{beforeTransition:function(){q.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){q.hostElement.style.viewTransitionName=""}});
var Z=_.m6("web_page_transition_exit_ms"),w=_.m6("web_page_transition_wait_ms"),r=_.m6("web_page_transition_enter_ms");if(!isNaN(Z)||!isNaN(w)||!isNaN(r))if(Z=zKu(p_b,Z,w,r))w=document.createElement("style"),w.textContent=_.gv2(Z),document.head.appendChild(w)}};
_.My.Object.defineProperties(X_F,{template:{configurable:!0,enumerable:!0,get:function(){return Gbc()}}});
var meV=X_F;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],meV.prototype,"ytActionHandlerBehavior",void 0);meV=_.X([_.l({disableElementRegistration:!0,is:"ytd-page-manager"})],meV);_.p(meV,"ytd-page-manager",function(){return Gbc()},{mode:_.NT("kevlar_poly_si_batch_j081")?1:2});var IS=function(q,Z,w){w=w===void 0?!1:w;_.u6.call(this);this.draggableElement=q;this.callbacks=Z;this.allowClicks=w;this.dragOccurred=!1;this.internalDragger=new _.zS(this.draggableElement);this.dragDelay=new _.Gl(this.delayedDrag.bind(this));An7(this);this.allowClicks&&(_.h$v(this.internalDragger,5),q.addEventListener("click",_.XN(this,this.validateClick),{capture:!0}))};
_.z(IS,_.u6);var An7=function(q){_.Yc(q.internalDragger,"earlycancel",function(){q.allowClicks&&(q.dragOccurred=!1)});
_.Yc(q.internalDragger,"start",function(Z){var w,r;(r=(w=q.callbacks).onStartDrag)==null||r.call(w,Z);!Z.defaultPrevented&&q.allowClicks&&(q.dragOccurred=!0)});
_.Yc(q.internalDragger,"beforedrag",function(Z){Z.preventDefault();q.lastOffset=new _.B3(Z.clientX-q.internalDragger.startX,Z.clientY-q.internalDragger.startY);q.dragDelay.start()});
_.Yc(q.internalDragger,"end",function(){q.dragDelay.stop();var Z,w;(w=(Z=q.callbacks).onEndDrag)==null||w.call(Z);q.lastOffset=void 0})};
IS.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
IS.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.XN(this,this.validateClick),{capture:!0})};
IS.prototype.validateClick=function(q){this.dragOccurred&&(this.dragOccurred=!1,q.stopPropagation(),q.preventDefault())};var cT=function(q,Z){_.u6.call(this);this.JSC$17599_resizeContainer=q;this.callbacks=Z;this.aspectRatio=16/9;this.JSC$17599_resizers=[];q=_.P(this.JSC$17599_resizeContainer.children);for(Z=q.next();!Z.done;Z=q.next())fcl(this,Z.value)};
_.z(cT,_.u6);cT.prototype.disposeInternal=function(){for(var q=_.P(this.JSC$17599_resizers),Z=q.next();!Z.done;Z=q.next())Z.value.dispose();q=_.P(this.JSC$17599_resizeContainer.children);for(Z=q.next();!Z.done;Z=q.next())Z.value.setAttribute("disabled","");this.JSC$17599_resizers.length=0};
cT.prototype.setSize=function(q){this.currentMiniplayerSize=q};
cT.prototype.setAspectRatio=function(q){this.aspectRatio=q};
cT.prototype.update=function(q,Z){for(var w=_.P(this.JSC$17599_resizeContainer.children),r=w.next();!r.done;r=w.next()){r=r.value;var Y=r.getAttribute("alignment");_.lq(r,"disabled",Y===q||Y===Z)}};
var fcl=function(q,Z){var w=Z.getAttribute("alignment"),r=new IS(Z,{onStartDrag:function(Y){if(Z.hasAttribute("disabled"))Y.preventDefault();else{q.dragStartSize=q.currentMiniplayerSize;var C,d;(d=(C=q.callbacks).onStartResize)==null||d.call(C)}},
onDrag:function(Y){if(q.dragStartSize){w!=="north"&&w!=="west"||Y.scale(-1);var C=w==="north"||w==="south";Y=C?Y.y:Y.x;C&&q.aspectRatio>=1?Y*=q.aspectRatio:!C&&q.aspectRatio<1&&(Y/=q.aspectRatio);q.callbacks.onResize(q.dragStartSize+Y)}}});
q.JSC$17599_resizers.push(r)};var Deu,hlc=function(){return Deu!==void 0?Deu:Deu=document.createElement("template")};
document.head.appendChild(hlc().content);var ynb;var iSc=_.xl(function(q){var Z=_.Iw(),w=q.onDrag,r=q.onDragStart,Y=q.onDragEnd,C=_.n5(q,{allowClicks:!1,dragThreshold:5}),d=C.dragThreshold,O=C.allowClicks;q=C.children;C=C.className;var H=void 0,L=void 0,S=new _.B3(0,0),v=!1;_.Ls(function(){H=new _.zS(Z.value);L=new _.Gl(B);R(H,L);if(O()){_.h$v(H,d());var x;(x=Z.value)==null||x.addEventListener("click",n,{capture:!0})}_.SG(function(){var K;(K=H)==null||K.dispose();if(O()){var k;(k=Z.value)==null||k.removeEventListener("click",n,{capture:!0})}})});
var R=function(x,K){_.Yc(x,"earlycancel",function(){O()&&(v=!1)});
_.Yc(x,"start",function(k){r==null||r(k);k.defaultPrevented||O()&&(v=!0)});
_.Yc(x,"beforedrag",function(k){H&&L&&(k.preventDefault(),S=new _.B3(k.clientX-H.startX,k.clientY-H.startY),L.start())});
_.Yc(x,"end",function(){K.stop();Y==null||Y();S=new _.B3(0,0)})},B=function(){S&&w(S)},n=function(x){v&&(v=!1,x.stopPropagation(),x.preventDefault())};
return _.u("yt-draggable",{el:Z,class:_.GL("ytDraggableComponentHost",C)},q)},"Jf");var gsF=_.xl(function(q){var Z=_.P(_.qo(0,void 0,"Pf10wb")),w=Z.next().value,r=Z.next().value;Z=function(Y){var C={},d={};return _.u(iSc,{className:_.GL("ytdMiniplayerComponentResizer",(C.ytdMiniplayerComponentResizerDisabled=function(){return Y===q.horizontalAlignment()||Y===q.verticalAlignment()},C.ytdMiniplayerComponentResizerNorth=Y==="north",C.ytdMiniplayerComponentResizerEast=Y==="east",C.ytdMiniplayerComponentResizerSouth=Y==="south",C.ytdMiniplayerComponentResizerWest=Y==="west",C)),
onDragStart:function(){r(q.currentMiniplayerSize())},
onDrag:function(O){Y!=="north"&&Y!=="west"||O.scale(-1);var H;O=(H=Y==="north"||Y==="south")?O.y:O.x;var L=q.currentAspectRatio();H&&L>=1?O*=L:!H&&L<1&&(O/=L);H=O;q.onResize(w()+H)}},_.u("div",{class:_.GL("ytdMiniplayerComponentResizerCorner",(d.ytdMiniplayerComponentResizerNorthCorner=Y==="north",d.ytdMiniplayerComponentResizerEastCorner=Y==="east",d.ytdMiniplayerComponentResizerSouthCorner=Y==="south",d.ytdMiniplayerComponentResizerWestCorner=Y==="west",d))}))};
return _.u("div",{class:"ytdMiniplayerComponentResizers"},Z("north"),Z("east"),Z("south"),Z("west"))},"Kf");var qQ7=16/9,Ze6=_.xl(function(){var q=_.Iw(),Z=_.P(_.qo(new _.O3(NaN,NaN),void 0,"yxHohf")),w=Z.next().value,r=Z.next().value;Z=_.P(_.qo(!1,void 0,"ku1l7c"));var Y=Z.next().value,C=Z.next().value;Z=_.P(_.qo(!1,void 0,"pbOm3b"));var d=Z.next().value,O=Z.next().value;Z=_.P(_.qo(!1,void 0,"LqfsYc"));var H=Z.next().value,L=Z.next().value;Z=_.P(_.qo(!1,void 0,"wYZnZe"));var S=Z.next().value,v=Z.next().value;Z=_.P(_.qo(!1,void 0,"KVndGb"));var R=Z.next().value,B=Z.next().value;Z=_.P(_.qo(!1,void 0,"ofTiZe"));
var n=Z.next().value,x=Z.next().value;Z=_.P(_.qo(qQ7,void 0,"bpheWd"));var K=Z.next().value,k=Z.next().value,G=_.P(_.qo(!1,void 0,"MIV0Jb"));Z=G.next().value;var rz=G.next().value;G=_.P(_.qo(!1,void 0,"Y2idSc"));var f=G.next().value,eO=G.next().value;G=_.P(_.qo(void 0,void 0,"IuZWBb"));var g=G.next().value,H6=G.next().value;G=_.P(_.qo(_.zj("HTML_DIR")==="rtl"?"west":"east",void 0,"nLgCTd"));var nX=G.next().value,Qj=G.next().value;G=_.P(_.qo("south",void 0,"mV91if"));var SO=G.next().value,Te=G.next().value;
G=_.P(_.qo(400,void 0,"OwmImd"));var Ze=G.next().value,W1=G.next().value,A2=_.t().resolve(_.Tf).miniplayerPropSignalMap[0],f9=A2.data,Dl=A2.externalPlaylistData;G=A2.toastData;var $g=A2.playabilityStatus,De=A2.isDisabled,n9=A2.watchWhile;A2=_.P(_.hE(A2.isReadyToResume));var Rh=A2.next().value,xg=A2.next().value,ZF;_.Ls(function(){r(_.r3());q.value.addEventListener("animationend",function(gz){gz.target===q.value&&(B(!1),x(!1))})});
_.sU("yt-window-resized",function(gz){gz&&r(gz)});
var mm=function(){ZF&&k(ZF.getVideoAspectRatio())},CX=function(){if(ZF){var gz=ZF.getPlayerState()===1;
Rh()&&gz&&xg(!1)}};
_.sU("yt-activate-miniplayer",function(gz){var lN;return _.V(function(Op){if(Op.nextAddress==1)return Y()?Op.return():_.W(Op,(lN=_.t().resolve(_.Tf).getPlayerElement())==null?void 0:lN.getPlayerPromise(),2);ZF=Op.yieldResult;if(!ZF)return Op.return();!f()&&_.b("kevlar_watch_while_v2")&&(Te(gz&&!_.b("kevlar_watch_while_bottom_align")?"north":"south"),Qj(_.zj("HTML_DIR")==="rtl"?"west":"east"));var hK=ZF;hK.addEventListener("onVideoDataChange",mm);hK.addEventListener("onStateChange",CX);k(ZF.getVideoAspectRatio());
C(!0);B(!0);_.ub(Op)})});
_.sU("yt-deactivate-miniplayer",function(gz){return _.V(function(lN){C(!1);xg(!1);x(gz);B(!0);if(ZF){var Op=ZF;Op.removeEventListener("onVideoDataChange",mm);Op.removeEventListener("onStateChange",CX)}_.ub(lN)})});
var rb=function(){var gz=!!f9(),lN=R(),Op=n9();return(Op===void 0?0:Op)&&_.b("kevlar_watch_while_modern")?!1:gz||lN},mv=function(){var gz;
return!((gz=Dl())==null||!gz.contents)},lC=function(){var gz=Ze();
var lN=w();lN=Math.min(Math.min(lN.width,lN.height)-32,720);var Op=K(),hK=rb(),wr=mv()&&d(),TJ=Math.min(gz,lN);gz=new _.O3(192,hK?116:192);Op=YsZ(new _.O3(wr?qQ7:Op,1),new _.O3(TJ,hK?TJ-76:TJ));gz.width<=Op.width&&gz.height<=Op.height||(r3y(Op,gz),Op.width=Math.min(Op.width,lN),Op.height=Math.min(Op.height,lN));return new _.O3(Op.width,_.a0(192,Op.height+zLy(hK,wr),720))},L9=function(){var gz=lC(),lN=rb(),Op=mv()&&d();
return new _.O3(gz.width,gz.height-zLy(lN,Op))},ah=function(){var gz=function(lN){lN.target===q.value&&S()&&(v(!1),q.value.removeEventListener("transitionend",gz))};
q.value.addEventListener("transitionend",gz);v(!0);O(!d())};
A2={};return _.u("ytd-miniplayer",{el:q,class:_.GL("ytdMiniplayerComponentHost",(A2.ytdMiniplayerComponentVisible=function(){return Y()||R()},A2.ytdMiniplayerComponentAnimatingSnap=H,A2.ytdMiniplayerComponentAnimatingPlaylistExpand=S,A2.ytdMiniplayerComponentAnimatingFade=R,A2),function(){if(R()){var gz=SO();
var lN=Y(),Op=n();gz=lN?gz==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Op?gz==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":gz==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else gz="";return gz}),
style:_.y1({top:function(){return SO()==="north"?"16px":""},
right:function(){return nX()==="east"?"16px":""},
bottom:function(){return SO()==="south"?"16px":""},
left:function(){return nX()==="west"?"16px":""},
width:function(){return lC().width+"px"},
height:function(){return lC().height+"px"},
transform:function(){var gz=g();return gz?"translate("+gz.x+"px, "+gz.y+"px)":""}})},_.u("div",{class:"ytdMiniplayerComponentContent"},_.u(iSc,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(gz){var lN=Jzq(nX(),SO(),w(),lC(),g()),Op=L9();Math.abs(gz.clientY-(lN.y+Op.height))>15?rz(!0):gz.preventDefault()},
onDrag:function(gz){H6(gz)},
onDragEnd:function(){var gz=tFC(Jzq(nX(),SO(),w(),lC(),g()),w(),lC()),lN=bcF(nX(),SO(),w(),lC()),Op=bcF(gz.horizontalAlignment,gz.verticalAlignment,w(),lC());Op=new _.B3(Op.x-lN.x,Op.y-lN.y);var hK;lN=lN.y+(((hK=g())==null?void 0:hK.y)||0)+lC().height/2;var wr=function(){nX()===gz.horizontalAlignment&&SO()===gz.verticalAlignment||eO(!0);Qj(gz.horizontalAlignment);Te(gz.verticalAlignment);H6(void 0)},TJ=function(Iq){Iq.target===q.value&&H()&&(L(!1),wr(),q.value.removeEventListener("transitionend",
TJ))};
rz(!1);SO()==="south"&&lN>w().height?(wr(),_.t().resolve(_.Tf).close()):(q.value.addEventListener("transitionend",TJ),L(!0),H6(Op))}},_.u(_.PF,{cond:Y,
then:function(){return _.u(_.grq,{isDisabled:De,playabilityStatus:$g,size:L9})}}),_.u(_.PF,{cond:rb,
then:function(){return _.u(_.ymS,{isReadyToResume:Rh,data:f9,expanded:d,onExpandClick:ah,playlistData:Dl})}}),_.u(_.PF,{cond:Z,
then:function(){return _.u("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.u(_.PF,{cond:function(){return mv()&&d()||S()},
then:function(){return _.u(_.RBu,{className:"ytdMiniplayerComponentPlaylistPanel",data:Dl,hideHeaderText:!0,withinMiniplayer:!0})}}),_.u("div",{class:"ytdMiniplayerComponentToast"},_.u(_.qGV,{toastData:G}))),_.u(gsF,{onResize:function(gz){W1(_.a0(192,gz,720))},
currentAspectRatio:K,currentMiniplayerSize:Ze,horizontalAlignment:nX,verticalAlignment:SO}))},"Lf");_.b("ytd_miniplayer_to_wiz")&&_.xc(Ze6,"ytd-miniplayer",{});_.xc(_.qGV,"ytd-miniplayer-toast",{props:{toastData:_.zG}});var w$u=16/9,riu=new _.O3(400,400/w$u),Mz=function(){var q=_.N.apply(this,arguments)||this;q.active=!1;q.hasNoData=!1;q.enabled=!1;q.expanded=!1;q.readyToResume=!1;q.isDisabled=!1;q.externalPlaylistData={};q.premiumBadges=[];q.watchWhile=!1;q.playerState=null;q.verticalAttachment="south";q.horizontalAttachment=_.zj("HTML_DIR")==="rtl"?"west":"east";q.isAnimatingFade=!1;q.isAnimatingSnap=!1;q.isAnimatingExpand=!1;q.isDragging=!1;q.playerHidden=!1;q.hasPlaylistData=!1;q.closed=!1;q.expandedClosed=!1;
q.isForReadyToResume=!1;q.watchResponse=null;q.player=null;q.playerVe=null;q.expandVe=null;q.closeVe=null;q.readyToResumeCloseVe=null;q.disabledInitialStateIsPlaying=!1;q.PLAYER_EVENTS=new Map;q.aspectRatio=w$u;q.currentMiniplayerSize=400;q.userSetSize=!1;q.userSetPosition=!1;q.userHasDragged=!1;q.maxMiniplayerSize=720;q.transform=new _.B3(0,0);q.windowDimensions=new _.O3(NaN,NaN);q.dimensions=riu;q.screenLayer=3;q.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return q};
_.z(Mz,_.N);_.e=Mz.prototype;_.e.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.e.ready=function(){this.setUpDragging();this.setUpResizing()};
_.e.attached=function(){this.onWindowResized(_.r3());this.hostElement.addEventListener("animationend",_.XN(this,this.resetFadingAnimation))};
_.e.detached=function(){this.hostElement.removeEventListener("animationend",_.XN(this,this.resetFadingAnimation))};
_.e.resetFadingAnimation=function(q){q.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.e.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.e.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.e.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var q=_.b5(this.screenLayer);this.readyToResumeCloseVe&&q&&_.kK(q,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.e.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var q=_.b5(0),Z=_.Rs(0);q&&Z&&(_.T7(q,Z,this.readyToResumeVe),_.kK(q,[this.readyToResumeVe]))}};
_.e.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var q=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=q===-1||q===1||q===3)&&this.player.pauseVideo()}};
_.e.activate=function(q,Z){Z=Z===void 0?!1:Z;var w=this,r;return _.V(function(Y){if(Y.nextAddress==1)return w.setInitialActivatePositioning(Z),w.enabled=!0,w.active=!0,w.expanded=!1,w.closed=!1,w.expandedClosed=!1,w.watchWhileHidden||(w.isAnimatingFade=!0),_.t().resolve(_.b8).setPlaylistComponent(w.JSC$17610_playlistPanel),q.appendTo(w.playerContainer),_.W(Y,q.getPlayerPromise(),2);r=Y.yieldResult;r.setSizeStyle(!1,!0);w.ytPlayerListenerBehavior.listenToPlayerEvents(r,w.PLAYER_EVENTS);w.player=r;
w.watchWhile&&_.b("kevlar_watch_while_minimum_size")&&w.setMiniplayerSize(192);w.setAspectRatio(w.player.getVideoAspectRatio());w.onIsDisabledChanged();_.ub(Y)})};
_.e.setInitialActivatePositioning=function(q){if(!this.userSetPosition&&_.b("kevlar_watch_while_v2")){this.verticalAttachment=q&&!_.b("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.zj("HTML_DIR")==="rtl"?"west":"east";var Z;(Z=this.JSC$17610_resizers)==null||Z.update(this.horizontalAttachment,this.verticalAttachment)}};
_.e.deactivate=function(q,Z){var w=this;return _.V(function(r){if(!w.active)return r.return();q||(w.expanded?w.expandedClosed=!0:w.closed=!0);w.active=!1;w.isForReadyToResume=!1;Z&&_.b("kevlar_watch_while_counterfactual")||(w.isAnimatingFade=!0);w.player&&w.ytPlayerListenerBehavior.unlistenFromPlayerEvents(w.player,w.PLAYER_EVENTS);w.player=null;_.ub(r)})};
_.e.onMetadataTap=function(q){this.expandVe&&(q===void 0||q)&&(q=_.b5(this.screenLayer))&&_.sh(q,this.expandVe);_.Zy(_.t().resolve(_.Tf))};
_.e.onDisabledTap=function(q){q.target===_.E(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.e.onPlaylistExpandTap=function(q){if(this.hasPlaylistData){q=_.E8(q)||[];q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next()){Z=Z.value;if(Z===this.hostElement)break;if(Z.classList&&Z.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.e.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.XN(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.e.animatedResizePlaylist=function(q){q.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.XN(this,this.animatedResizePlaylist)))};
_.e.getExpandIcon=function(q){return q?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.e.onPlayerVideoDataChange=function(){var q,Z=(q=this.player)==null?void 0:q.getVideoAspectRatio();Z&&Z!==this.aspectRatio&&this.setAspectRatio(Z)};
_.e.setAspectRatio=function(q){if(this.active){this.aspectRatio=q;this.updateDimensionsAndResize();var Z;(Z=this.JSC$17610_resizers)==null||Z.setAspectRatio(q)}};
_.e.updateDimensionsAndResize=function(){var q=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),Z=this.expanded?w$u:this.aspectRatio,w=new _.O3(192,this.showInfoBar?116:192);q=YsZ(new _.O3(Z,1),new _.O3(q,this.showInfoBar?q-76:q));w.width<=q.width&&w.height<=q.height||(r3y(q,w),q.width=Math.min(q.width,this.maxMiniplayerSize),q.height=Math.min(q.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&Z<=1?Math.max(q.width,q.height)+76:Math.max(q.width,q.height)));this.dimensions=
new _.O3(q.width,this.clamp(q.height+this.getNonPlayerHeight()));this.resize()};
_.e.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var q=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=q.height+"px";var Z;(Z=this.player)==null||Z.setInternalSize(q.width,q.height)};
_.e.getPlayerSize=function(q){var Z=Math.max(0,q.height-this.getNonPlayerHeight());return new _.O3(q.width,Z)};
_.e.getNonPlayerHeight=function(){var q=0;this.showInfoBar&&(q+=76);this.expanded&&(q+=285);return q};
_.e.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.t().resolve(_.Tf).close()};
_.e.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.e.logClosingClick=function(){this.closeVe&&_.sh(_.b5(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.sh(_.b5(this.screenLayer),this.readyToResumeCloseVe)};
_.e.onPlayerExpandMiniplayer=function(){if(this.expandVe){var q=_.b5(this.screenLayer);q&&_.sh(q,this.expandVe)}};
_.e.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var q=this.playerState===1;this.continueWatching&&q&&(this.continueWatching=!1);this.premiumBadges.length&&q&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.e.getScreenLayer=function(){return this.screenLayer};
_.e.logMiniplayer=function(){var q=_.b5(this.screenLayer),Z=_.Rs(this.screenLayer);q&&Z&&this.playerVe&&(_.T7(q,Z,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.k0(q,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.kK(q,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.k0(q,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.e.computePlaylistData=function(q,Z){return Z};
_.e.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.e.computeExpandButtonHidden=function(q,Z,w){return!q||!Z||w};
_.e.computePlaylistIndexHidden=function(q,Z){return!q||Z};
_.e.computePlaylistPanelHidden=function(q,Z){return!Z&&!q};
_.e.computeExpandButtonLabel=function(q){return q?_.dT("MINIPLAYER_COLLAPSE_LABEL"):_.dT("MINIPLAYER_EXPAND_LABEL")};
_.e.computeDisabledStateCloseButtonLabel=function(){return _.dT("MINIPLAYER_CLOSE",void 0,"Close")};
_.e.onWindowResized=function(q){q&&(q=this.windowDimensions=q,this.maxMiniplayerSize=Math.min(Math.min(q.width,q.height)-32,720),this.updateDimensionsAndResize())};
_.e.setUpResizing=function(){var q=this;this.JSC$17610_resizers||(this.JSC$17610_resizers=new cT(this.JSC$17610_resizeContainer,{onStartResize:function(){q.handleResizeStart()},
onResize:function(Z){q.handleResize(Z)}}),this.JSC$17610_resizers.setSize(this.currentMiniplayerSize),this.JSC$17610_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.e.handleResizeStart=function(){var q=_.b5(this.screenLayer);this.userSetSize||(this.userSetSize=!0,q&&this.resizeVe&&_.kK(q,[this.resizeVe]));q&&this.resizeVe&&_.sh(q,this.resizeVe)};
_.e.handleResize=function(q){this.setMiniplayerSize(q);this.updateDimensionsAndResize()};
_.e.setUpDragging=function(){var q=this;this.JSC$17610_dragger||(this.JSC$17610_dragger=new IS(this.draggableContainer,{onStartDrag:function(Z){!q.isSafeToDrag(Z)||q.isAnimatingSnap?Z.preventDefault():q.handleDragStart()},
onDrag:function(Z){q.transform=Z;q.setTransform(q.transform)},
onEndDrag:function(){q.handleDragEnd()}},!0))};
_.e.handleDragStart=function(){this.isDragging=!0;var q=_.b5(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,q&&this.repositionVe&&_.kK(q,[this.repositionVe]));q&&this.repositionVe&&_.sh(q,this.repositionVe)};
_.e.handleDragEnd=function(){this.isDragging=!1;var q=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&q>this.windowDimensions.height&&_.t().resolve(_.Tf).close();this.animateSnapToCorner()};
_.e.animateSnapToCorner=function(){var q=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),Z=this.getNearestAttachments();Z=this.getGlobalPositionFromAttachments(Z.horizontalAttachment,Z.verticalAttachment);q=new _.B3(Z.x-q.x,Z.y-q.y);this.isAnimatingSnap=!0;this.setTransform(q);this.hostElement.addEventListener("transitionend",_.XN(this,this.endSnapAnimation))};
_.e.endSnapAnimation=function(q){q.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.XN(this,this.endSnapAnimation)),this.endDrag())};
_.e.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.e.setTransform=function(q){this.hostElement.style.transform=q?"translate("+q.x+"px, "+q.y+"px)":""};
_.e.getGlobalPositionFromAttachments=function(q,Z){return new _.B3(q==="west"?16:this.windowDimensions.width-this.dimensions.width-16,Z==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.e.updateAttachments=function(){var q=this.getNearestAttachments();if(this.horizontalAttachment!==q.horizontalAttachment||this.verticalAttachment!==q.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=q.horizontalAttachment;this.verticalAttachment=q.verticalAttachment;var Z;(Z=this.JSC$17610_resizers)==null||Z.update(this.horizontalAttachment,this.verticalAttachment)};
_.e.getNearestAttachments=function(){var q=this.getCurrentGlobalPosition();return{horizontalAttachment:q.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:q.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.e.getCurrentGlobalPosition=function(){var q=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return RLl(q,this.transform)};
_.e.isSafeToDrag=function(q){var Z=this.playerContainer.getBoundingClientRect();return Math.abs(q.clientY-(Z.y+Z.height))>15};
_.e.setMiniplayerSize=function(q){this.currentMiniplayerSize=this.clamp(q);var Z;(Z=this.JSC$17610_resizers)==null||Z.setSize(this.currentMiniplayerSize)};
_.e.clamp=function(q){return _.a0(192,q,720)};
_.e.registerViewTransitionTasks=function(){var q=this,Z=_.t().resolve(_.Gj(_.fLZ));if(Z){var w={beforeTransition:function(){q.hostElement&&(q.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){q.hostElement&&(q.hostElement.style.viewTransitionName="")}};
go(Z,"slide",w);go(Z,"zoom",w)}};
_.My.Object.defineProperties(Mz.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.b("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.dT("CONTINUE_WATCHING",void 0,"Continue watching")};var q;if((q=this.externalPlaylistData)==null?0:q.contents)return this.externalPlaylistData.titleText;var Z;return(Z=this.data)==null?void 0:Z.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.externalPlaylistData)==null?0:q.contents){var Z;return(Z=_.uXe(this.externalPlaylistData))==null?void 0:Z.title}var w;return(w=this.data)==null?void 0:w.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var q,Z,w,r;return((q=this.externalPlaylistData)==null?void 0:q.currentIndex)!==void 0&&((Z=this.externalPlaylistData)==null?0:Z.totalVideos)&&!((w=this.data)==null?0:(r=w.playlistData)==null?0:r.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.t5j(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.b("kevlar_watch_while_counterfactual")}}});
Mz.prototype.onIsDisabledChanged=Mz.prototype.onIsDisabledChanged;Mz.prototype.readyToResumeVeChanged=Mz.prototype.readyToResumeVeChanged;Mz.prototype.premiumBrandingChanged=Mz.prototype.premiumBrandingChanged;Mz.prototype.onPlayerVeChange=Mz.prototype.onPlayerVeChange;Mz.prototype.hasPlaylistDataChanged=Mz.prototype.hasPlaylistDataChanged;_.X([_.U(_.QQ.YtPlayerListenerBehavior),_.A("design:type",_.EW)],Mz.prototype,"ytPlayerListenerBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Mz.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Mz.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Mz.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],Mz.prototype,"ytdReduxBehavior",void 0);_.X([_.fo("#draggable"),_.A("design:type",HTMLDivElement)],Mz.prototype,"draggableContainer",void 0);
_.X([_.fo("#resize-container"),_.A("design:type",HTMLDivElement)],Mz.prototype,"JSC$17610_resizeContainer",void 0);_.X([_.fo("#video-container"),_.A("design:type",HTMLDivElement)],Mz.prototype,"videoContainer",void 0);_.X([_.fo("#player-container"),_.A("design:type",HTMLDivElement)],Mz.prototype,"playerContainer",void 0);_.X([_.fo("#playlist"),_.A("design:type",HTMLDivElement)],Mz.prototype,"JSC$17610_playlistPanel",void 0);_.X([_.F(),_.A("design:type",Object)],Mz.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Mz.prototype,"active",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Mz.prototype,"hasNoData",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Mz.prototype,"enabled",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Mz.prototype,"expanded",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Mz.prototype,"readyToResume",void 0);
_.X([_.F(),_.A("design:type",Object)],Mz.prototype,"isDisabled",void 0);_.X([_.F(),_.A("design:type",Object)],Mz.prototype,"externalPlaylistData",void 0);_.X([_.F(),_.A("design:type",Array)],Mz.prototype,"premiumBadges",void 0);_.X([_.F(),_.A("design:type",Object)],Mz.prototype,"toastData",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Mz.prototype,"watchWhile",void 0);_.X([_.F(),_.A("design:type",Boolean)],Mz.prototype,"premiumBranding",void 0);
_.X([_.F(),_.A("design:type",Object)],Mz.prototype,"playerState",void 0);_.X([_.F(),_.A("design:type",Boolean)],Mz.prototype,"continueWatching",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],Mz.prototype,"verticalAttachment",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],Mz.prototype,"horizontalAttachment",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Mz.prototype,"isAnimatingFade",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Mz.prototype,"isAnimatingSnap",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Mz.prototype,"isAnimatingExpand",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Mz.prototype,"isDragging",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Mz.prototype,"playerHidden",void 0);
_.X([_.F({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.A("design:type",Object)],Mz.prototype,"playlistData",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.A("design:type",Object)],Mz.prototype,"hasPlaylistData",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Mz.prototype,"closed",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Mz.prototype,"expandedClosed",void 0);
_.X([_.F({selector:_.QaN}),_.A("design:type",Boolean)],Mz.prototype,"isSingleOptionSurveyActive",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.t0}),_.A("design:type",Boolean)],Mz.prototype,"isWatchPage",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("watchWhile"),_.A("design:type",Object),_.A("design:paramtypes",[])],Mz.prototype,"showInfoBar",null);_.X([_.I("premiumBadges","showInfoBar"),_.A("design:type",Object),_.A("design:paramtypes",[])],Mz.prototype,"showOverlayPremiumBadges",null);
_.X([_.F(),_.A("design:type",Object)],Mz.prototype,"watchResponse",void 0);_.X([_.F(),_.A("design:type",Object)],Mz.prototype,"miniplayerRenderer",void 0);_.X([_.F(),_.A("design:type",Object)],Mz.prototype,"playabilityStatus",void 0);_.X([_.F(),_.A("design:type",Object)],Mz.prototype,"playerVe",void 0);_.X([_.F(),_.A("design:type",Object)],Mz.prototype,"expandVe",void 0);_.X([_.F(),_.A("design:type",Object)],Mz.prototype,"closeVe",void 0);
_.X([_.F(),_.A("design:type",Object)],Mz.prototype,"readyToResumeCloseVe",void 0);_.X([_.F(),_.A("design:type",_.ty)],Mz.prototype,"readyToResumeVe",void 0);_.X([_.F(),_.A("design:type",_.ty)],Mz.prototype,"resizeVe",void 0);_.X([_.F(),_.A("design:type",_.ty)],Mz.prototype,"repositionVe",void 0);_.X([_.M("hasPlaylistData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mz.prototype,"hasPlaylistDataChanged",null);
_.X([_.M("playerVe"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mz.prototype,"onPlayerVeChange",null);_.X([_.M("premiumBranding"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mz.prototype,"premiumBrandingChanged",null);_.X([_.M("readyToResumeVe"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mz.prototype,"readyToResumeVeChanged",null);
_.X([_.M("isDisabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mz.prototype,"onIsDisabledChanged",null);_.X([_.I("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.A("design:type",Object),_.A("design:paramtypes",[])],Mz.prototype,"miniplayerSubtitle",null);_.X([_.I("data.miniplayerTitle","externalPlaylistData"),_.A("design:type",Object),_.A("design:paramtypes",[])],Mz.prototype,"miniplayerTitle",null);
_.X([_.I("externalPlaylistData","continueWatching"),_.A("design:type",Object),_.A("design:paramtypes",[])],Mz.prototype,"playlistIndexMessage",null);_.X([_.F({reflectToAttribute:!0}),_.I("playabilityStatus"),_.A("design:type",Object),_.A("design:paramtypes",[])],Mz.prototype,"showErrorScreen",null);_.X([_.F({reflectToAttribute:!0}),_.I("watchWhile"),_.A("design:type",Object),_.A("design:paramtypes",[])],Mz.prototype,"watchWhileHidden",null);
_.b("ytd_miniplayer_to_wiz")||_.p(Mz,"ytd-miniplayer",function(){if(ynb===void 0){var q=document.createElement("template");_.a(q,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
q.content.insertBefore(hlc().content.cloneNode(!0),q.content.firstChild);q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);ynb=q}q=ynb;return q},{mode:2});var YQ7;var FQ=function(){var q=_.N.apply(this,arguments)||this;q.useListItemStyles=_.b("web_list_item_style_for_menu_items");q.systemIcons=_.b("kevlar_system_icons");return q};
_.z(FQ,_.N);_.e=FQ.prototype;_.e.ready=function(){this.hostElement.addEventListener("tap",_.XN(this,this.onEndpointTapExtra))};
_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.e.onFocus=function(){var q;(q=_.E(this.hostElement).querySelector("tp-yt-paper-item"))==null||q.focus()};
_.e.onEndpointTapExtra=function(q){_.hy(this.hostElement,"iron-activate");var Z=this.data.navigationEndpoint;Z&&_.J(Z,_.NVT)&&(q.stopPropagation(),_.ZC(this.hostElement,[Z],this.hostElement))};
_.e.computeIcon=function(q){return q&&q.iconType?_.Xl(q.iconType):""};
_.e.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.e.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.e.forceUpdateStylesOnLegacyBrowsers=function(){_.b("kevlar_legacy_browsers")&&_.po(this.hostElement)};
FQ.prototype.forceUpdateStylesOnLegacyBrowsers=FQ.prototype.forceUpdateStylesOnLegacyBrowsers;FQ.prototype.onFocus=FQ.prototype.onFocus;_.X([_.U(_.Et),_.A("design:type",Object)],FQ.prototype,"ytdOpenPopupBehavior",void 0);_.X([_.U(_.zBl.YtConditionalRendererBehavior),_.A("design:type",Object)],FQ.prototype,"ytConditionalRendererBehavior",void 0);_.X([_.U(_.ma.YtEndpointBehavior),_.A("design:type",Object)],FQ.prototype,"ytEndpointBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],FQ.prototype,"data",void 0);_.X([_.F({computed:"computeIcon(data.icon)",value:""}),_.A("design:type",String)],FQ.prototype,"icon",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],FQ.prototype,"useIcons",void 0);_.X([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.A("design:type",Boolean)],FQ.prototype,"hasSeparator",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],FQ.prototype,"useListItemStyles",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],FQ.prototype,"systemIcons",void 0);_.X([_.m2("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FQ.prototype,"onFocus",null);_.X([_.M("useIcons","hasSeparator"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FQ.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.p(FQ,"ytd-menu-navigation-item-renderer",function(){if(YQ7===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);YQ7=q}q=YQ7;return q},{mode:1});var $qV;var eS7=_.UE(_.dT("DOWNLOAD",{},"Download")),CkC=_.UE(_.dT("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),Pkq=_.UE(_.dT("RETRY",{},"Retry")),dql=_.UE(_.dT("PAUSE_DOWNLOADING",{},"Pause downloading")),VWC=_.UE(_.dT("RESUME_DOWNLOAD",{},"Resume download")),Nz=function(){var q=_.N.apply(this,arguments)||this;q.primaryText=eS7;q.primaryIconType="OFFLINE_DOWNLOAD";q.hasSecondaryContent=!1;q.hasSeparator=!1;q.transferState="TRANSFER_STATE_UNKNOWN";q.isVideoDeletedByUser=!1;q.isHidden=!1;q.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return q};
_.z(Nz,_.N);_.e=Nz.prototype;_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.e.onFocus=function(){this.primaryEntry.focus()};
_.e.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.e.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.e.getRemoveAction=function(){return"ACTION_REMOVE"};
_.e.sendOfflineAction=function(q){var Z=this.data.serviceEndpoint;if(Z){var w=_.J(Z,_.h7);w&&q&&(w.action=q);this.ytComponentBehavior.resolveCommand(Z)}};
_.e.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=eS7,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=eS7;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=Pkq;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=CkC;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=VWC;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=CkC;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
dql;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=CkC;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=CkC;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=eS7,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.e.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.e.isSecondaryEntryHidden=function(q,Z){return q?!0:!Z};
_.e.computeHasSeparator=function(){var q;return!((q=this.data)==null||!q.hasSeparator)};
Nz.prototype.showHideButton=Nz.prototype.showHideButton;Nz.prototype.onTransferStateChange=Nz.prototype.onTransferStateChange;Nz.prototype.onFocus=Nz.prototype.onFocus;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Nz.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],Nz.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Nz.prototype,"ytComponentBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],Nz.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Nz.prototype,"primaryText",void 0);_.X([_.F(),_.A("design:type",String)],Nz.prototype,"primaryIconType",void 0);_.X([_.F(),_.A("design:type",String)],Nz.prototype,"primaryAction",void 0);_.X([_.F(),_.A("design:type",Object)],Nz.prototype,"secondaryText",void 0);_.X([_.F(),_.A("design:type",String)],Nz.prototype,"secondaryIconType",void 0);
_.X([_.F(),_.A("design:type",String)],Nz.prototype,"secondaryAction",void 0);_.X([_.F(),_.A("design:type",Object)],Nz.prototype,"hasSecondaryContent",void 0);_.X([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.A("design:type",Object)],Nz.prototype,"hasSeparator",void 0);_.X([_.F({selector:_.RZ,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.A("design:type",String)],Nz.prototype,"transferState",void 0);
_.X([_.F({selector:_.Dk6,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.A("design:type",Object)],Nz.prototype,"isVideoDeletedByUser",void 0);_.X([_.F(),_.A("design:type",Object)],Nz.prototype,"isHidden",void 0);_.X([_.F({selector:_.GBe,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.A("design:type",Object)],Nz.prototype,"offlineabilityState",void 0);_.X([_.fo("#primary-entry"),_.A("design:type",Object)],Nz.prototype,"primaryEntry",void 0);
_.X([_.m2("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nz.prototype,"onFocus",null);_.X([_.g3("transferState","isVideoDeletedByUser"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nz.prototype,"onTransferStateChange",null);_.X([_.g3("offlineabilityState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nz.prototype,"showHideButton",null);
_.p(Nz,"ytd-menu-service-item-download-renderer",function(){if($qV===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);$qV=q}q=$qV;return q},{mode:1});var OeS;var l7=function(){var q=_.N.apply(this,arguments)||this;q.useIcons=!1;q.systemIcons=_.b("kevlar_system_icons");q.useListItemStyles=_.b("web_list_item_style_for_menu_items");return q};
_.z(l7,_.N);_.e=l7.prototype;_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.e.onFocus=function(){var q;(q=_.E(this.hostElement).querySelector("tp-yt-paper-item"))==null||q.focus()};
_.e.onTap=function(){_.i5(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var q=this.data.serviceEndpoint,Z=this.data.command;if(q){var w,r=(w=this.data)==null?void 0:w.trackingParams;w=!!_.J(q,_.Xt2);r&&w&&_.sE().dispatch(_.mu({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:r}}));this.ytComponentBehavior.resolveCommand(q)||_.t().resolve(_.ps).resolveCommand(q,{form:{element:this.hostElement}})}Z&&(this.ytComponentBehavior.resolveCommand(Z)||_.ZC(this.hostElement,
[Z],this.hostElement))};
_.e.computeIcon=function(q){return q&&q.iconType?_.Xl(q.iconType):""};
_.e.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.e.computeHasSeparator=function(){var q;return!((q=this.data)==null||!q.hasSeparator)};
_.e.forceUpdateStylesOnLegacyBrowsers=function(){_.b("kevlar_legacy_browsers")&&_.po(this.hostElement)};
_.e.computeIsSelected=function(){var q;return!((q=this.data)==null||!q.isSelected)};
l7.prototype.forceUpdateStylesOnLegacyBrowsers=l7.prototype.forceUpdateStylesOnLegacyBrowsers;l7.prototype.onTap=l7.prototype.onTap;l7.prototype.onFocus=l7.prototype.onFocus;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Et),_.A("design:type",Object)],l7.prototype,"ytdOpenPopupBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],l7.prototype,"ytComponentBehavior",void 0);
_.X([_.U(_.zBl.YtConditionalRendererBehavior),_.A("design:type",Object)],l7.prototype,"ytConditionalRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],l7.prototype,"data",void 0);_.X([_.F({computed:"computeIcon(data.icon)",value:""}),_.A("design:type",String)],l7.prototype,"icon",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],l7.prototype,"useIcons",void 0);
_.X([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.A("design:type",Boolean)],l7.prototype,"hasSeparator",void 0);_.X([_.F({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.A("design:type",Boolean)],l7.prototype,"isSelected",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],l7.prototype,"systemIcons",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],l7.prototype,"useListItemStyles",void 0);
_.X([_.m2("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],l7.prototype,"onFocus",null);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],l7.prototype,"onTap",null);_.X([_.M("useIcons","hasSeparator"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],l7.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.p(l7,"ytd-menu-service-item-renderer",function(){if(OeS===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);OeS=q}q=OeS;return q},{mode:2});var HeV;var WHF=function(){return _.N.apply(this,arguments)||this};
_.z(WHF,_.N);_.e=WHF.prototype;_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.onDataChanged=function(){var q=this;_.I_(this,function(){q.postbox.openDialog();q.focus();_.hy(q.hostElement,"yt-refit")})};
_.e.focus=function(){this.postbox.focus()};
_.e.closePopup=function(){_.yY(this.hostElement,"yt-close-popup-action")};
_.e.onYtCommentboxDismiss=function(){this.closePopup()};
var Gw=WHF;Gw.prototype.onYtCommentboxDismiss=Gw.prototype.onYtCommentboxDismiss;Gw.prototype.onDataChanged=Gw.prototype.onDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Gw.prototype,"data",void 0);_.X([_.F({value:function(){return _.dT("SBOX_INAPPROPRIATE_CANCEL")}}),
_.A("design:type",String)],Gw.prototype,"closeButtonAriaLabel",void 0);_.X([_.fo("#postbox"),_.A("design:type",Object)],Gw.prototype,"postbox",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Gw.prototype,"onDataChanged",null);_.X([_.m2("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Gw.prototype,"onYtCommentboxDismiss",null);
Gw=_.X([_.l({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],Gw);
_.p(Gw,"ytd-backstage-post-dialog-popup-renderer",function(){if(HeV!==void 0)return HeV;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return HeV=q},{mode:1});var oIC;var uVb=function(){return _.N.apply(this,arguments)||this};
_.z(uVb,_.N);var p$=uVb;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],p$.prototype,"data",void 0);p$=_.X([_.l({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],p$);
_.p(p$,"ytd-sender-id-section-renderer",function(){if(oIC!==void 0)return oIC;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
return oIC=q},{mode:1});var LHb;var SQZ;var vIu;var juF=function(){return _.N.apply(this,arguments)||this};
_.z(juF,_.N);juF.prototype.closePopup=function(){_.yY(this.hostElement,"yt-close-popup-action")};
var XQ=juF;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],XQ.prototype,"data",void 0);XQ=_.X([_.dx({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],XQ);
_.p(XQ,"yt-community-post-section-renderer",function(){if(vIu===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;SQZ===void 0&&(SQZ=document.createElement("template"));var r=SQZ;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);vIu=q}q=vIu;return q},{mode:2});var tW6;var RSq;var beb;var Jiy;var zS8;var Bgb;var a9b=function(){return _.N.apply(this,arguments)||this};
_.z(a9b,_.N);var mc=a9b;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],mc.prototype,"data",void 0);mc=_.X([_.dx({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],mc);
_.p(mc,"yt-share-start-time-with-context-renderer",function(){if(Bgb===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;zS8===void 0&&(zS8=document.createElement("template"));var r=zS8;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Bgb=q}q=Bgb;return q},{mode:2});var nIV=function(){return _.N.apply(this,arguments)||this};
_.z(nIV,_.N);nIV.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
var Ax=nIV;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ax.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ax.prototype,"data",void 0);Ax=_.X([_.dx({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Ax);
_.p(Ax,"yt-share-panel-title-v15-renderer",function(){if(Jiy===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;beb===void 0&&(beb=document.createElement("template"));var r=beb;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Jiy=q}q=Jiy;return q},{mode:2});var Qu7=function(){return _.N.apply(this,arguments)||this};
_.z(Qu7,_.N);Qu7.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"}}}};
var f$=Qu7;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],f$.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],f$.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],f$.prototype,"data",void 0);f$=_.X([_.dx({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],f$);
_.p(f$,"yt-share-panel-header-renderer",function(){if(RSq===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;tW6===void 0&&(tW6=document.createElement("template"));var r=tW6;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);RSq=q}q=RSq;return q},{mode:2});var EI6;var xqc;var Tgc=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-open-popup-action":"onOpen"};return q};
_.z(Tgc,_.N);_.e=Tgc.prototype;_.e.attached=function(){this.onOpen()};
_.e.updateTimeSecs=function(q){this.currentTimeSecs=q};
_.e.computeTimeString=function(q){q=q.toString();var Z=Math.floor(Number(q)/3600),w=Math.floor(Number(q)%3600%60);return(Z>0?Z+":":"")+_.Az(Math.floor(Number(q)%3600/60),Z>0?2:1)+":"+_.Az(w,2)};
_.e.computeTimeStringA11y=function(q){q=_.yDX({seconds:q});var Z=q.hours===void 0?0:q.hours,w=q.minutes===void 0?0:q.minutes,r=q.seconds===void 0?0:q.seconds;q=[];if(Z>0){var Y=Y1V().format({hours:Z});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.BX)||Z>9999)Y=Y.replace(Z.toString(),_.iqX(Z)),_.BX==="km"&&(Y=Y.replace(".",","));q.push(Y)}w>0&&q.push(Y1V().format({minutes:w}));r>0&&q.push(Y1V().format({seconds:r}));Z="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");w=_.BX==
"am"?"{0}\u1363 ":_.BX=="fa"?"{0}\u060c\u200f ":_.BX=="my"?"{0} - ":_.BX=="ne"?"{0},":_.BX=="th"?"{0} ":_.BX=="ur"?"{0}\u060c ":_.BX=="ar"||_.BX=="ar-XB"?"{0} \u0648":_.BX=="ja"||_.BX=="zh-CN"||_.BX=="zh-HK"||_.BX=="zh-TW"?"{0}\u3001":"{0}, ";r=_.BX=="am"?"\u1363 ":_.BX=="fa"?"\u060c\u200f ":_.BX=="my"?" - ":_.BX=="th"?" ":_.BX=="ur"?"\u060c ":_.BX=="ar"||_.BX=="ar-XB"?" \u0648":_.BX=="ja"||_.BX=="zh-CN"||_.BX=="zh-HK"||_.BX=="zh-TW"?"\u3001":", ";Y=_.BX=="am"?" \u12a5\u1293 {0}":_.BX=="as"?" \u0986\u09f0\u09c1 {0}":
_.BX=="az"?" v\u0259 {0}":_.BX=="bn"?" \u098f\u09ac\u0982 {0}":_.BX=="cs"?" a\u00a0{0}":_.BX=="de"?" und {0}":_.BX=="el"?" \u03ba\u03b1\u03b9 {0}":_.BX=="eu"?" eta {0}":_.BX=="fa"?"\u060c \u0648 {0}":_.BX=="fil"?", at {0}":_.BX=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.BX=="hi"?", \u0914\u0930 {0}":_.BX=="hu"?" \u00e9s {0}":_.BX=="hy"?" \u0587 {0}":_.BX=="id"?", dan {0}":_.BX=="iw"?" \u05d5-{0}":_.BX=="ja"?"\u3001{0}":_.BX=="ka"?" \u10d3\u10d0 {0}":_.BX=="km"?" \u1793\u17b7\u1784 {0}":_.BX=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.BX=="ko"?" \ubc0f {0}":_.BX=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.BX=="lt"?" ir {0}":_.BX=="lv"?" un {0}":_.BX=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.BX=="mr"?" \u0906\u0923\u093f {0}":_.BX=="ms"?" dan {0}":_.BX=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.BX=="ne"?" \u0930 {0}":_.BX=="or"?", \u0b13 {0}":_.BX=="pa"?" \u0a05\u0a24\u0a47 {0}":_.BX=="ro"?" \u0219i {0}":_.BX=="si"?", \u0dc3\u0dc4 {0}":_.BX=="sk"?" a {0}":_.BX=="sl"?" in {0}":_.BX=="sq"?" dhe {0}":_.BX=="sv"?" och {0}":
_.BX=="sw"?" na {0}":_.BX=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.BX=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.BX=="th"?" \u0e41\u0e25\u0e30{0}":_.BX=="tr"?" ve {0}":_.BX=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.BX=="uz"?" va {0}":_.BX=="vi"?" v\u00e0 {0}":_.BX=="zh-HK"?"\u53ca{0}":_.BX=="zu"?", ne-{0}":_.BX=="af"||_.BX=="nl"?" en {0}":_.BX=="ar"||_.BX=="ar-XB"?" \u0648{0}":_.BX=="be"||_.BX=="uk"?" \u0456 {0}":_.BX=="en-GB"||_.BX=="en-IN"?" and {0}":_.BX=="en"||_.BX=="en-XA"?
", and {0}":_.BX=="et"||_.BX=="fi"?" ja {0}":_.BX=="fr"||_.BX=="fr-CA"?" et {0}":_.BX=="zh-CN"||_.BX=="zh-TW"?"\u548c{0}":_.BX=="da"||_.BX=="is"||_.BX=="no"?" og {0}":_.BX=="es"||_.BX=="es-419"||_.BX=="es-US"?" y {0}":_.BX=="kk"||_.BX=="lo"||_.BX=="mn"?", {0}":_.BX=="bg"||_.BX=="mk"||_.BX=="ru"||_.BX=="sr"?" \u0438 {0}":_.BX=="gl"||_.BX=="it"||_.BX=="pt-BR"||_.BX=="pt-PT"?" e {0}":" i {0}";var C=_.BX=="am"?"{0} \u12a5\u1293 {1}":_.BX=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.BX=="az"?"{0} v\u0259 {1}":
_.BX=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.BX=="de"?"{0} und {1}":_.BX=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.BX=="eu"?"{0} eta {1}":_.BX=="fa"?"{0} \u0648 {1}":_.BX=="fil"?"{0} at {1}":_.BX=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.BX=="hi"?"{0} \u0914\u0930 {1}":_.BX=="hu"?"{0} \u00e9s {1}":_.BX=="hy"?"{0} \u0587 {1}":_.BX=="iw"?"{0} \u05d5-{1}":_.BX=="ja"?"{0}\u3001{1}":_.BX=="ka"?"{0} \u10d3\u10d0 {1}":_.BX=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.BX=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.BX=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.BX=="ko"?"{0} \ubc0f {1}":_.BX=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.BX=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.BX=="lt"?"{0} ir {1}":_.BX=="lv"?"{0} un {1}":_.BX=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.BX=="mn"?"{0}, {1}":_.BX=="mr"?"{0} \u0906\u0923\u093f {1}":_.BX=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.BX=="ne"?"{0} \u0930 {1}":_.BX=="or"?"{0} \u0b13 {1}":_.BX=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.BX=="ro"?"{0} \u0219i {1}":_.BX==
"si"?"{0} \u0dc3\u0dc4 {1}":_.BX=="sl"?"{0} in {1}":_.BX=="sq"?"{0} dhe {1}":_.BX=="sv"?"{0} och {1}":_.BX=="sw"?"{0} na {1}":_.BX=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.BX=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.BX=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.BX=="tr"?"{0} ve {1}":_.BX=="ur"?"{0} \u0627\u0648\u0631 {1}":_.BX=="uz"?"{0} va {1}":_.BX=="vi"?"{0} v\u00e0 {1}":_.BX=="zh-HK"?"{0}\u53ca{1}":_.BX=="zu"?"{0} ne-{1}":_.BX=="af"||_.BX=="nl"?"{0} en {1}":_.BX=="ar"||_.BX==
"ar-XB"?"{0} \u0648{1}":_.BX=="be"||_.BX=="uk"?"{0} \u0456 {1}":_.BX=="cs"||_.BX=="sk"?"{0} a\u00a0{1}":_.BX=="et"||_.BX=="fi"?"{0} ja {1}":_.BX=="fr"||_.BX=="fr-CA"?"{0} et {1}":_.BX=="id"||_.BX=="ms"?"{0} dan {1}":_.BX=="zh-CN"||_.BX=="zh-TW"?"{0}\u548c{1}":_.BX=="da"||_.BX=="is"||_.BX=="no"?"{0} og {1}":_.BX=="es"||_.BX=="es-419"||_.BX=="es-US"?"{0} y {1}":_.BX=="bg"||_.BX=="mk"||_.BX=="ru"||_.BX=="sr"?"{0} \u0438 {1}":_.BX=="en"||_.BX=="en-GB"||_.BX=="en-IN"||_.BX=="en-XA"?"{0} and {1}":_.BX==
"gl"||_.BX=="it"||_.BX=="pt-BR"||_.BX=="pt-PT"?"{0} e {1}":"{0} i {1}";_.BX==="sq"?(Y=Y.replace("dhe","e"),C=C.replace("dhe","e")):_.BX==="th"?(r=r.replace("{0}"," {0}"),C=C.replace("{0}","{0} "),C=C.replace("{1}"," {1}")):_.BX==="ne"?r=",":_.BX==="zh-CN"?r="":Z.includes(_.BX)&&(r=" ");return q.length<2?q.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(_.BX)?q.length===2?
C.replace("{0}",q[0]).replace("{1}",q[1]):w.replace("{0}",q[0])+q.slice(1,-1).join(r)+Y.replace("{0}",q[q.length-1]):q.join(r)};
_.e.getTimeParam=function(){return BSl(this.timeString)};
_.e.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var q={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},Z;_.hA(_.iy(),(Z=this.data)==null?void 0:Z.trackingParams,q,7)};
_.e.onChangeStartAtTimestamp=function(){for(var q=this.startAtTimestamp.value.split(":"),Z=0,w=1,r=q.length-1;r>=0;r--)Z+=Number(q[r])*w,w*=60;this.updateTimeSecs(Z);this.setTimestamp()};
_.e.onOpen=function(){var q=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var Z=_.K6();Z?Z.getPlayerPromise().then(function(w){w=w.getCurrentTime();q.updateTimeSecs(w)}):wxy()&&this.updateTimeSecs(wxy())};
_.e.setTimestamp=function(){var q=Math.floor(this.currentTimeSecs);_.yY(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!q,timestamp:q||""}])};
var Do=Tgc;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Do.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Do.prototype,"data",void 0);_.X([_.F({value:!1,notify:!0}),_.A("design:type",Boolean)],Do.prototype,"isStartAtChecked",void 0);_.X([_.F(),_.A("design:type",Number)],Do.prototype,"currentTimeSecs",void 0);
_.X([_.F({computed:"computeTimeString(currentTimeSecs)"}),_.A("design:type",String)],Do.prototype,"timeString",void 0);_.X([_.F({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.A("design:type",String)],Do.prototype,"timeStringA11y",void 0);_.X([_.fo("#start-at-timestamp"),_.A("design:type",Object)],Do.prototype,"startAtTimestamp",void 0);Do=_.X([_.dx({is:"yt-start-at-renderer",disableElementRegistration:!0})],Do);
_.p(Do,"yt-start-at-renderer",function(){if(xqc===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;EI6===void 0&&(EI6=document.createElement("template"));var r=EI6;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);xqc=q}q=xqc;return q},{mode:2});var Uqc;var kEc;var KHF=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"]]),suq=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"]]),I98=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var ciV={};ciV.YtBindingExpressionsBehavior={identity:_.s2,msg:function(q,Z){Z=Z===void 0?{}:Z;return _.dT(q,Z,q)},
msgPlural:function(q,Z){return _.VG(q,Z)},
getMusicIconFromType:function(q){if(_.b("music_web_enable_icon_wil"))q=_.Xl(q);else if(suq.has(q))q="yt-sys-icons:"+suq.get(q);else{var Z=KHF.get(q)||_.Xl(q).split(":")[1];Z=_.nRX(Z);var w;q=((w=I98.get(q))!=null?w:"yt-sys-icons:")+Z}return q}};var MW6;var FH6;var Ng6;var l9S=document.head,GE8=l9S.appendChild,p$V;if(Ng6===void 0){var X$8=document.createElement("template");_.a(X$8,'\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>');Ng6=X$8}p$V=Ng6;GE8.call(l9S,p$V.content);var hx=function(){var q=_.N.apply(this,arguments)||this;q.screenLayer=7;return q};
_.z(hx,_.N);hx.prototype.getScreenLayer=function(){return this.screenLayer};
hx.prototype.onTap=function(q){q&&q.detail&&(q.detail.x||q.detail.y)&&_.E(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.qM(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(q=this.getScreenLayer(),_.hy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:q}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.My.Object.defineProperties(hx.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()}}});
var ys=hx;ys.prototype.onTap=ys.prototype.onTap;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],ys.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ys.prototype,"data",void 0);_.X([_.I("data.title"),_.A("design:type",Object),_.A("design:paramtypes",[])],ys.prototype,"title",null);
_.X([_.I("data.serviceName"),_.A("design:type",String),_.A("design:paramtypes",[])],ys.prototype,"icon",null);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ys.prototype,"onTap",null);ys=_.X([_.dx({is:"yt-share-target-renderer",disableElementRegistration:!0})],ys);
_.p(ys,"yt-share-target-renderer",function(){if(FH6===void 0){var q=document.createElement("template");_.a(q,'\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" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;MW6===void 0&&(MW6=document.createElement("template"));var r=MW6;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);FH6=q}q=FH6;return q},{mode:2});var mq8;var Aib;var f9c=function(){var q=_.N.apply(this,arguments)||this;q.SHARE_TARGET_WIDTH=70;q.SHARE_TARGET_MARGIN_RIGHT=8;q.PAGE_SCROLL_SPEED=9;q.actionMap={"yt-share-panel-reset-action":"onReset_"};return q};
_.z(f9c,_.N);_.e=f9c.prototype;_.e.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.e.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.E(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.E(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.e.onReset_=function(){if(_.E(this.hostElement).querySelector("#list")){var q=_.E(this.hostElement).querySelector("#list");var Z=_.E(this.hostElement).querySelector("#list");var w=Z.offsetLeft,r=Z.offsetParent;r||_.s9h(Z)!="fixed"||(r=_.nC(Z).documentElement);if(r){if(_.rS&&!qsV(58)){var Y=_.p8p(r);w+=Y.left}else Number(_.plj)>=8&&!(Number(_.plj)>=9)&&(Y=_.p8p(r),w-=Y.left);Z=_.lFD(r)?r.clientWidth-(w+Z.offsetWidth):w}else Z=w;ZDZ(q,Z);this.updateScrollButtons_()}};
_.e.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.e.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.e.onScrollWheel_=function(q){q.stopPropagation();q.preventDefault();var Z=qm7(_.E(this.hostElement).querySelector("#list"));q=Math.abs(q.deltaX)>Math.abs(q.deltaY)?q.deltaX:q.deltaY;ZDZ(_.E(this.hostElement).querySelector("#list"),Z+q);this.updateScrollButtons_()};
_.e.smoothScrollByOnePage_=function(q){var Z=_.E(this.hostElement).querySelector("#list"),w=(Math.floor(Z.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,r=qm7(Z),Y=w*(q?1:-1),C=this.PAGE_SCROLL_SPEED,d=this.updateScrollButtons_.bind(this),O=0,H;(function S(){O+=C;H=O/w*2;ZDZ(Z,r+Y*(H<1?H*H:-H*H+4*H-2));O<w?window.requestAnimationFrame(S):d()})()};
_.e.updateScrollButtons_=function(){var q=qm7(_.E(this.hostElement).querySelector("#list")),Z=_.E(this.hostElement).querySelector("#list").scrollWidth-_.E(this.hostElement).querySelector("#list").clientWidth;_.E(this.hostElement).querySelector("#scroll-button-back").hidden=q<=0;_.E(this.hostElement).querySelector("#scroll-button-forward").hidden=q>=Z};
var i7=f9c;i7.prototype.onScrollWheel_=i7.prototype.onScrollWheel_;i7.prototype.onDataChanged_=i7.prototype.onDataChanged_;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],i7.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(ciV.YtBindingExpressionsBehavior),_.A("design:type",Object)],i7.prototype,"ytBindingExpressionsBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],i7.prototype,"data",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],i7.prototype,"onDataChanged_",null);_.X([_.m2("wheel"),_.A("design:type",Function),_.A("design:paramtypes",[WheelEvent]),_.A("design:returntype")],i7.prototype,"onScrollWheel_",null);
i7=_.X([_.dx({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],i7);
_.p(i7,"yt-third-party-share-target-section-renderer",function(){if(Aib===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;mq8===void 0&&(mq8=document.createElement("template"));var r=mq8;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Aib=q}q=Aib;return q},{mode:2});var Dqq=function(){return _.N.apply(this,arguments)||this};
_.z(Dqq,_.N);Dqq.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"}}}};
var gv=Dqq;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],gv.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],gv.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],gv.prototype,"data",void 0);gv=_.X([_.dx({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],gv);
_.p(gv,"yt-third-party-network-section-renderer",function(){if(kEc===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;Uqc===void 0&&(Uqc=document.createElement("template"));var r=Uqc;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);kEc=q}q=kEc;return q},{mode:2});_.xc(_.xl(function(q){return _.u("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.u("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.u(_.Hx,{data:function(){return q.data().firstPartyItems}},{listItemViewModel:_.rH})))},"Mf"),"first-party-network-section-view-model",{props:{data:_.zG}});var hSl=_.Fr(["data:image/svg+xml;charset=UTF-8;base64,",""]),yil=function(){var q=_.N.apply(this,arguments)||this;q.screenLayer=7;q.qrCodeEnabled=_.b("web_enable_sharing_qr_code");q.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return q};
_.z(yil,_.N);_.e=yil.prototype;_.e.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"}}}};
_.e.attached=function(){this.JSC$17662_scroller&&(this.JSC$17662_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17662_scroller.attached&&typeof this.JSC$17662_scroller.attached==="function"&&this.JSC$17662_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.e.onDataChanged=function(){var q=this,Z;(Z=this.data)!=null&&Z.contents&&(this.hostElement.setAttribute("links-only","true"),_.lq(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.I_(this,function(){_.hy(q.hostElement,"yt-refit");q.focusSharePanelHeader()}))};
_.e.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.e.handleSetTimestamp=function(q){var Z=this.shortUrl();q.isSet&&(Z=_.Ov(Z,"t",q.timestamp));this.maybeRenderQrCode(Z)};
_.e.shortUrl=function(){var q,Z=(q=this.data)==null?void 0:q.contents;if(Z)for(q=0;q<Z.length;q++){var w=void 0,r=void 0;if((w=Z[q])==null?0:(r=w.thirdPartyNetworkSection)==null?0:r.copyLinkContainer){var Y=r=w=void 0;return(Y=_.J((w=Z[q])==null?void 0:(r=w.thirdPartyNetworkSection)==null?void 0:r.copyLinkContainer,OLl))==null?void 0:Y.shortUrl}}};
_.e.maybeRenderQrCode=function(q){var Z=this,w,r,Y,C,d,O,H,L,S;return _.V(function(v){if(v.nextAddress==1){w=_.E(Z.hostElement).querySelector("#qr-code");if(!Z.qrCodeEnabled||!q)return w&&(w.style.display="none"),v.return();r=_.pSI(_.t().resolve(_.my),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});Y=document.createElement("div");return typeof r==="function"?(r(Y),v.jumpTo(2)):_.W(v,r,3)}v.nextAddress!=2&&(C=v.yieldResult,C(Y));H=(d=Y)==null?void 0:(O=d.firstChild)==null?void 0:O.firstChild;
L=document.createElement("img");S=_.UX(hSl,btoa(H.outerHTML));L.onload=function(){var R={canvas:w,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:L},B=new Bn8;TnS(B,q);Ulq(B,!1,ksS(B));var n=B.modules,x=Object.assign({},XEu,R);n=structuredClone(n);R=n.length;var K,k=(K=x.canvas)!=null?K:document.createElement("canvas");K=x.cellSize;B=x.logo;var G,rz=(G=x.logoSize)!=null?G:Math.floor(R/4);R%2!==rz%2&&rz++;var f=x.logoPadding,eO=x.backgroundColor;G=R*K;var g=
x.width,H6=0;g&&(H6=x.padding,H6=Math.ceil(H6*G/(g-H6*2)),k.style.width=g+"px",k.style.height=g+"px");k.width!==G+H6*2&&(k.width=G+H6*2);k.height!==G+H6*2&&(k.height=G+H6*2);G=k.getContext("2d");x.autoClear&&G.clearRect(0,0,k.width,k.height);G.fillStyle=eO;G.beginPath();G.roundRect(0,0,k.width,k.height,x.borderRadius);G.fill();G.save();G.translate(H6,H6);if(B)for(k=Math.floor(R-rz)/2-f,f=Math.floor(R+rz)/2+f,eO=k;eO<f;eO++)for(g=k;g<f;g++)n[eO][g]=!1;for(k=0;k<R;k++)for(f=0;f<R;f++)(k<7&&f<7||k<7&&
f>=R-7||k>=R-7&&f<7)&&(n[k][f]=!1);var nX;k=(nX=x.markerColor)!=null?nX:x.color;sg6(G,0,0,K,k);sg6(G,K*(R-7),0,K,k);sg6(G,0,K*(R-7),K,k);switch(x.cellStyle){case 0:nX=n;n=nX.length;k=x.cellSize;G.beginPath();for(f=0;f<n;f++)for(eO=0;eO<n;eO++)nX[f][eO]&&G.rect(f*k,eO*k,k,k);G.fillStyle=x.color;G.fill();break;case 1:nX=n;n=nX.length;k=x.cellSize;f=k*x.relativeCircleSize;G.fillStyle=x.color;G.beginPath();for(x=0;x<n;x++)for(eO=0;eO<n;eO++)nX[x][eO]&&(G.beginPath(),G.ellipse((x+.5)*k,(eO+.5)*k,f/2,f/
2,0,0,2*Math.PI),G.fill());G.fill();break;case 2:nX=n;n=nX.length;k=x.cellSize;G.fillStyle=x.color;x=[[1,1],[-1,1],[-1,-1],[1,-1]];G.beginPath();for(f=0;f<n;f++)for(eO=0;eO<n;eO++)if(nX[f][eO])G.roundRect(f*k,eO*k,k,k,k/2),f+1<n&&nX[f+1][eO]&&G.rect(f*k+k/2,eO*k,k,k),eO+1<n&&nX[f][eO+1]&&G.rect(f*k,eO*k+k/2,k,k);else{g=f*k+k/2;H6=eO*k+k/2;for(var Qj=0;Qj<4;Qj++){var SO=_.P(x[Qj]),Te=SO.next().value;SO=SO.next().value;f+Te>=0&&f+Te<n&&eO+SO>=0&&eO+SO<n&&nX[f+Te][eO]&&nX[f][eO+SO]&&nX[f+Te][eO+SO]&&
(Te=Qj*Math.PI/2,SO=k/2,G.moveTo(g+SO*Math.cos(Te),H6+SO*Math.sin(Te)),G.arc(g,H6,k/2,Te,Te+Math.PI/2,!1),G.lineTo(g+SO*(Math.cos(Te)-Math.sin(Te)),H6+SO*(Math.cos(Te)+Math.sin(Te))),G.lineTo(g+SO*Math.cos(Te),H6+SO*Math.sin(Te)))}}G.fill()}B&&G.drawImage(B,(R-rz)*K/2,(R-rz)*K/2,rz*K,rz*K);G.restore();w.style.removeProperty("display")};
L.src=_.bg(S);_.ub(v)})};
_.e.hasCommunityPostRenderer=function(){var q,Z,w,r;return!!((q=this.data)==null?0:(Z=q.header)==null?0:(w=Z.sharePanelHeaderRenderer)==null?0:(r=w.communityPost)==null?0:r.communityPostSectionRenderer)};
_.e.onTapClose=function(){_.yY(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.e.getScreenLayer=function(){return this.screenLayer};
_.e.logSharePanelPage=function(){if(!_.b("enable_share_panel_navigation_logging_fix_on_web")){var q;if((q=this.data)!=null&&q.trackingParams){q=this.data.trackingParams;var Z=this.parentClickTrackingParams;Z=Z?_.wa(Z):void 0;var w=_.iy();_.mG(w,21760,Z,{layer:7,parentLayer:0});w.graftServerVe(q,void 0,7);_.sE().dispatch(_.mu({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
var q8=yil;q8.prototype.onDataChanged=q8.prototype.onDataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],q8.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],q8.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],q8.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],q8.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],q8.prototype,"data",void 0);_.X([_.F({value:_.dT("SBOX_INAPPROPRIATE_CANCEL")}),_.A("design:type",String)],q8.prototype,"closeButtonAriaLabel",void 0);_.X([_.fo("yt-share-panel-header-renderer"),_.A("design:type",HTMLElement)],q8.prototype,"header",void 0);_.X([_.F({selector:function(q){return q.share.parentClickTrackingParams}}),
_.A("design:type",String)],q8.prototype,"parentClickTrackingParams",void 0);_.X([_.F(),_.A("design:type",Object)],q8.prototype,"qrCodeEnabled",void 0);_.X([_.fo("#scroller"),_.A("design:type",Object)],q8.prototype,"JSC$17662_scroller",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],q8.prototype,"onDataChanged",null);q8=_.X([_.l({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],q8);
_.p(q8,"ytd-unified-share-panel-renderer",function(){if(LHb!==void 0)return LHb;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return LHb=q},{mode:1});var ieS;var ZH=function(){var q=_.N.apply(this,arguments)||this;q.modernModal=_.b("kevlar_sign_in_modal_modernization");return q};
_.z(ZH,_.N);ZH.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
ZH.prototype.computeShouldHideOldButtons=function(){var q;return!((q=this.data)==null?0:q.button)};
_.My.Object.defineProperties(ZH.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var q,Z;if(this.modernModal&&((q=this.data)==null?0:(Z=q.button)==null?0:Z.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var w,r;return(w=this.data)==null?void 0:(r=w.button)==null?void 0:r.buttonRenderer}}});
var ws=ZH;_.X([_.F(),_.A("design:type",Object)],ws.prototype,"data",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],ws.prototype,"ytEventForwardingBehavior",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ws.prototype,"modernModal",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ws.prototype,"buttonRendererData",null);
ws=_.X([_.l({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],ws);
_.p(ws,"ytd-modal-with-title-and-button-renderer",function(){if(ieS!==void 0)return ieS;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ieS=q},{mode:1});var gI8;var q0u=function(){return _.N.apply(this,arguments)||this};
_.z(q0u,_.N);q0u.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("page-changed",this.page))};
var rs=q0u;rs.prototype.pageChangedForBinding=rs.prototype.pageChangedForBinding;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],rs.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],rs.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],rs.prototype,"page",void 0);_.X([_.M("page"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rs.prototype,"pageChangedForBinding",null);
rs=_.X([_.l({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],rs);
_.p(rs,"ytd-account-item-section-header-renderer",function(){if(gI8!==void 0)return gI8;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return gI8=q},{mode:1});var XLF;var mv7=function(){return _.N.apply(this,arguments)||this};
_.z(mv7,_.N);mv7.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"}}}};
mv7.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
var Y3=mv7;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Y3.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Y3.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.Ms),_.A("design:type",Object)],Y3.prototype,"ytContinuationHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Y3.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!1}),_.A("design:type",Function)],Y3.prototype,"onAccountItemTap",void 0);
Y3=_.X([_.l({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],Y3);
_.p(Y3,"ytd-account-item-section-renderer",function(){if(XLF!==void 0)return XLF;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return XLF=q},{mode:1});var ABu;var f27;var Dvc=function(){return _.N.apply(this,arguments)||this};
_.z(Dvc,_.N);var $3=Dvc;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],$3.prototype,"data",void 0);$3=_.X([_.l({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],$3);
_.p($3,"ytd-accounts-dialog-header-renderer",function(){if(f27!==void 0)return f27;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return f27=q},{mode:1});var h57;var yB7=function(){return _.N.apply(this,arguments)||this};
_.z(yB7,_.N);yB7.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
var eo=yB7;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],eo.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],eo.prototype,"data",void 0);eo=_.X([_.l({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],eo);
_.p(eo,"ytd-google-account-header-renderer",function(){if(h57!==void 0)return h57;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return h57=q},{mode:1});var i1c=function(){return _.N.apply(this,arguments)||this};
_.z(i1c,_.N);i1c.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"}}}};
i1c.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("page-changed",this.page))};
var Ca=i1c;Ca.prototype.pageChangedForBinding=Ca.prototype.pageChangedForBinding;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ca.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ca.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ca.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],Ca.prototype,"page",void 0);
_.X([_.M("page"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ca.prototype,"pageChangedForBinding",null);Ca=_.X([_.l({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Ca);
_.Fl()(Ca,"ytd-account-section-list-renderer",function(){if(ABu===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);ABu=q}q=ABu;return q},{allowedProps:["data"],
mode:1});var gE6;var q$8=function(){var q=_.N.apply(this,arguments)||this;q.enableHandlesAccountMenuSwitcher=_.b("enable_handles_account_menu_switcher");return q};
_.z(q$8,_.N);q$8.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
var P7=q$8;P7.prototype.dataChanged=P7.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],P7.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],P7.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.X([_.fo("#avatar"),_.A("design:type",Object)],P7.prototype,"avatar",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],P7.prototype,"dataChanged",null);P7=_.X([_.l({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],P7);
_.Fl()(P7,"ytd-active-account-header-renderer",function(){if(gE6===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);gE6=q}q=gE6;return q},{allowedProps:["data"],
mode:1});var ZJS;var wSV;var rdb=function(){return _.N.apply(this,arguments)||this};
_.z(rdb,_.N);rdb.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
rdb.prototype.onBackTap=function(){_.hy(this.hostElement,"yt-menu-back-tapped")};
var ds=rdb;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ds.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ds.prototype,"data",void 0);ds=_.X([_.l({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],ds);
_.Fl()(ds,"ytd-simple-menu-header-renderer",function(){if(wSV===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);wSV=q}q=wSV;return q},{allowedProps:["data"],
mode:2});var Y$q;var $VZ=function(){return _.N.apply(this,arguments)||this};
_.z($VZ,_.N);var Vl=$VZ;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Vl.prototype,"data",void 0);Vl=_.X([_.l({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Vl);
_.p(Vl,"ytd-comment-video-thumbnail-header-renderer",function(){if(Y$q!==void 0)return Y$q;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Y$q=q},{mode:1});var e46;var CT6=function(){return _.N.apply(this,arguments)||this};
_.z(CT6,_.N);var Oc=CT6;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Oc.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Oc.prototype,"data",void 0);Oc=_.X([_.l({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],Oc);
_.p(Oc,"ytd-abuse-type-selector-renderer",function(){if(e46!==void 0)return e46;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return e46=q},{mode:1});var PTC;var H7=function(){return _.N.apply(this,arguments)||this};
_.z(H7,_.N);H7.prototype.attached=function(){var q=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){q.additionalContextInput.focusTextInput()})};
H7.prototype.handleAdditionalContextChanged=function(){var q=this;_.vp(this,"ytd-report-channel-additional-context-update",function(){q.ytdReduxBehavior.dispatch(_.mu({type:"ADDITIONAL_CONTEXT_UPDATED",payload:q.additionalContext}))},300)};
H7.prototype.updateAdditionalContextFromBinding=function(q){this.additionalContext=q.detail.value};
var W7=H7;W7.prototype.handleAdditionalContextChanged=W7.prototype.handleAdditionalContextChanged;_.X([_.U(_.LO),_.A("design:type",Object)],W7.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",String)],W7.prototype,"additionalContext",void 0);_.X([_.F({selector:function(q){return q.reportChannelAbuse.additionalContext}}),
_.A("design:type",String)],W7.prototype,"additionalContextRedux",void 0);_.X([_.F(),_.A("design:type",Object)],W7.prototype,"data",void 0);_.X([_.fo("yt-text-input-form-field-renderer"),_.A("design:type",Object)],W7.prototype,"additionalContextInput",void 0);_.X([_.M("additionalContext"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],W7.prototype,"handleAdditionalContextChanged",null);
W7=_.X([_.l({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],W7);
_.p(W7,"ytd-report-channel-modal-additional-context-renderer",function(){if(PTC!==void 0)return PTC;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return PTC=q},{mode:1});var dVF;var Vml=function(){var q=_.N.apply(this,arguments)||this;q.nextButtonDisabled=null;q.submitEndpoint=null;q.navigationEndpoint=null;q.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return q};
_.z(Vml,_.N);_.e=Vml.prototype;_.e.computeNextButtonData=function(q,Z,w){var r={};Z&&(r.navigationEndpoint=Z);w&&(r.serviceEndpoint=w);q&&q.buttonRenderer&&_.R4.extend(r,q.buttonRenderer);return r};
_.e.handleReportChannelModalDisableNextButtonAction=function(q){this.setNextButtonIsDisabled(q)};
_.e.handleReportFormEndpointUpdateAction=function(q){this.setNextButtonIsDisabled(!!q.disableSubmitButton);this.resetEndpointData();q.submitEndpoint?this.submitEndpoint=q.submitEndpoint:q.submitNavigationEndpoint&&(this.navigationEndpoint=q.submitNavigationEndpoint)};
_.e.handleSignalActionSubmitForm=function(){var q,Z=Object.keys(((q=this.reportChannelAbuseForm)==null?void 0:q.selectedVideoIds)||{}),w;q=((w=this.reportChannelAbuseForm)==null?void 0:w.additionalContext)||"";var r;w=((r=this.reportChannelAbuseForm)==null?void 0:r.impersonatedChannelUrl)||"";var Y;if((Y=this.data)==null?0:Y.submitEndpoint){Z={impersonated_channel_url:w,text:q,video_ids:Z};var C;_.t().resolve(_.ps).resolveCommand((C=this.data)==null?void 0:C.submitEndpoint,{form:Object.assign({},
Z,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.e.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.e.onYtServiceRequestError=function(q){this.setNextButtonIsDisabled(!1);_.W9(this.hostElement,q.detail.error.message)};
_.e.setNextButtonIsDisabled=function(q){this.set("data.nextButton.buttonRenderer.isDisabled",q)};
_.e.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
var oH=Vml;oH.prototype.onYtServiceRequestError=oH.prototype.onYtServiceRequestError;oH.prototype.onYtServiceRequestCompleted=oH.prototype.onYtServiceRequestCompleted;_.X([_.F(),_.A("design:type",Object)],oH.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],oH.prototype,"nextButtonDisabled",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],oH.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],oH.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],oH.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],oH.prototype,"submitEndpoint",void 0);_.X([_.F(),_.A("design:type",Object)],oH.prototype,"navigationEndpoint",void 0);_.X([_.F({selector:function(q){return q.reportChannelAbuse}}),
_.A("design:type",Object)],oH.prototype,"reportChannelAbuseForm",void 0);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],oH.prototype,"onYtServiceRequestCompleted",null);_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],oH.prototype,"onYtServiceRequestError",null);
oH=_.X([_.l({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],oH);
_.p(oH,"ytd-report-channel-modal-footer-renderer",function(){if(dVF!==void 0)return dVF;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return dVF=q},{mode:1});var OJ8;var un=function(){var q=_.N.apply(this,arguments)||this;q.boundOnTapDismissButton=function(){q.closePopup()};
return q};
_.z(un,_.N);un.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
un.prototype.handleDataChanged=function(){_.KB(this.hostElement)};
un.prototype.closePopup=function(){_.yY(this.hostElement,"yt-close-popup-action")};
var La=un;La.prototype.handleDataChanged=La.prototype.handleDataChanged;_.X([_.F(),_.A("design:type",Object)],La.prototype,"boundOnTapDismissButton",void 0);_.X([_.F(),_.A("design:type",Object)],La.prototype,"data",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],La.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],La.prototype,"handleDataChanged",null);La=_.X([_.l({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],La);
_.p(La,"ytd-report-channel-modal-header-renderer",function(){if(OJ8!==void 0)return OJ8;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return OJ8=q},{mode:1});var HJy;var WCl=function(){var q=_.N.apply(this,arguments)||this;q.autoValidate=!1;q.invalid=!1;q.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return q};
_.z(WCl,_.N);_.e=WCl.prototype;_.e.attached=function(){var q=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){q.channelUrlInput.focusTextInput()})};
_.e.disableNextButton=function(q){_.yY(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[q])};
_.e.handleImpersonatedChannelUrlChanged=function(){var q=this;this.disableNextButton(!0);this.invalid=!1;_.vp(this,"ytd-report-channel-impersonated-channel-update",function(){var Z=q.impersonatedChannelUrl.trim();q.ytdReduxBehavior.dispatch(_.mu({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:Z}));var w;((w=q.data)==null?0:w.submitEndpoint)&&Z&&(_.b("web_ytd_report_channel_modal_impersonation_renderer_command_resolver_ks")?_.qM(q.hostElement,[q.data.submitEndpoint,{impersonated_channel_url:Z}]):
_.t().resolve(_.ps).resolveCommand(q.data.submitEndpoint,{form:{impersonated_channel_url:Z,element:q.hostElement}}))},500)};
_.e.handleModifyReportFormCommand=function(q){this.invalid=this.get("modifyReportFormCommand.action",q)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.e.updateInvalidFromBinding=function(q){this.invalid=q.detail.value};
_.e.updateImpersonatedChannelUrlFromBinding=function(q){this.impersonatedChannelUrl=q.detail.value};
var So=WCl;So.prototype.handleImpersonatedChannelUrlChanged=So.prototype.handleImpersonatedChannelUrlChanged;_.X([_.U(_.LO),_.A("design:type",Object)],So.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],So.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],So.prototype,"autoValidate",void 0);_.X([_.F(),_.A("design:type",Object)],So.prototype,"invalid",void 0);
_.X([_.F(),_.A("design:type",String)],So.prototype,"impersonatedChannelUrl",void 0);_.X([_.F({selector:function(q){return q.reportChannelAbuse.impersonatedChannelUrl}}),
_.A("design:type",String)],So.prototype,"impersonatedChannelUrlRedux",void 0);_.X([_.F(),_.A("design:type",Object)],So.prototype,"data",void 0);_.X([_.fo("#text-input"),_.A("design:type",Object)],So.prototype,"channelUrlInput",void 0);_.X([_.M("impersonatedChannelUrl"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],So.prototype,"handleImpersonatedChannelUrlChanged",null);
So=_.X([_.l({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],So);
_.p(So,"ytd-report-channel-modal-impersonation-renderer",function(){if(HJy!==void 0)return HJy;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return HJy=q},{mode:1});var opV;var uMy;var v7=function(){return _.N.apply(this,arguments)||this};
_.z(v7,_.N);v7.prototype.onCheckboxToggled=function(q){var Z,w,r=(w=_.J((Z=this.data)==null?void 0:Z.video,_.Dr1))==null?void 0:w.videoId;r&&this.ytdReduxBehavior.dispatch(q.target.checked?_.mu({type:"VIDEO_SELECTED",payload:r}):_.mu({type:"VIDEO_UNSELECTED",payload:r}))};
v7.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.My.Object.defineProperties(v7.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var q,Z=(q=this.data)==null?void 0:q.video;if(!Z)return{};var w;q=(w=_.J(Z,_.Dr1))==null?void 0:w.navigationEndpoint;if(!q)return Z;_.J(q==null?void 0:q.commandMetadata,_.XK)&&(_.J(q.commandMetadata,_.XK).ignoreNavigation=!0);return Z}}});
var jo=v7;_.X([_.F({reflectToAttribute:!0,selector:function(q,Z){return Z in q.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.A("design:type",Boolean)],jo.prototype,"checked",void 0);_.X([_.F(),_.A("design:type",Object)],jo.prototype,"data",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],jo.prototype,"video",null);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.LO),_.A("design:type",Object)],jo.prototype,"ytdReduxBehavior",void 0);jo=_.X([_.l({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],jo);
_.p(jo,"ytd-selectable-video-renderer",function(){if(uMy!==void 0)return uMy;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return uMy=q},{mode:1});var LC6=function(){var q=_.N.apply(this,arguments)||this;q.monitorScroll=!0;return q};
_.z(LC6,_.N);LC6.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
var te=LC6;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],te.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],te.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],te.prototype,"data",void 0);te=_.X([_.l({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],te);
_.p(te,"ytd-selectable-video-list-renderer",function(){if(opV!==void 0)return opV;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return opV=q},{mode:1});var S$D;_.He("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var RH=function(){return _.N.apply(this,arguments)||this};
_.z(RH,_.N);RH.prototype.onChange=function(q){if(q=_.xz(q).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.b("kevlar_command_handler_migration_killswitch"))_.ZC(this.hostElement,q,this.hostElement);else{q=_.P(q);for(var Z=q.next();!Z.done;Z=q.next())this.ytComponentBehavior.resolveCommand(Z.value)}};
RH.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
RH.prototype.updateDataToggledFromBinding=function(q){this.set("data.toggled",q.detail.value)};
var bn=RH;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],bn.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],bn.prototype,"data",void 0);_.X([_.F({computed:"isEnabled(data)"}),_.A("design:type",Boolean)],bn.prototype,"enabled",void 0);bn=_.X([_.l({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],bn);
_.p(bn,"ytd-toggle-item-renderer",function(){if(S$D!==void 0)return S$D;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return S$D=q},{mode:1});var vp7;var jmD;var tmZ;var Je=function(){var q=_.N.apply(this,arguments)||this;q.setVisible=!1;q.boundOnSubmitButtonClick=function(){q.onSubmitButtonClick()};
q.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return q};
_.z(Je,_.N);Je.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}}}}}};
Je.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
Je.prototype.onSubmitButtonClick=function(){var q;((q=this.data)==null?0:q.submitEndpoint)&&!_.b("enable_ytc_refunds_submit_form_signal_action")&&_.qM(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
Je.prototype.handleSignalActionSubmitForm=function(){var q;((q=this.data)==null?0:q.submitEndpoint)&&_.qM(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.My.Object.defineProperties(Je.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.hiddenByDefault)&&!this.setVisible}}});
var zH=Je;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],zH.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],zH.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],zH.prototype,"setVisible",void 0);_.X([_.F(),_.A("design:type",Object)],zH.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],zH.prototype,"surveyFeedbackData",void 0);_.X([_.F(),_.A("design:type",Object)],zH.prototype,"boundOnSubmitButtonClick",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data","setVisible"),_.A("design:type",Object),_.A("design:paramtypes",[])],zH.prototype,"visibilityHidden",null);zH=_.X([_.dx({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],zH);
_.p(zH,"yt-flow-footer-renderer",function(){if(tmZ===void 0){var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;jmD===void 0&&(jmD=document.createElement("template"));var r=jmD;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);tmZ=q}q=tmZ;return q},{mode:2});var R4S=function(){return _.N.apply(this,arguments)||this};
_.z(R4S,_.N);var B7=R4S;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],B7.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],B7.prototype,"data",void 0);_.X([_.F({selector:function(q){return q.ypc.surveyFeedbackData}}),
_.A("design:type",Object)],B7.prototype,"surveyFeedbackData",void 0);B7=_.X([_.l({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],B7);
_.p(B7,"ytd-flow-footer-renderer",function(){if(vp7!==void 0)return vp7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return vp7=q},{mode:_.NT("kevlar_poly_si_batch_j025")?1:2});var bJ7;var Jdu;var z46=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return q};
_.z(z46,_.N);_.e=z46.prototype;_.e.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.We("multiPageMenuSectionItems")}}};
_.e.handleHideEnclosingAction_=function(q){if(this.data&&this.data.items)for(var Z=0;Z<this.data.items.length;Z++){var w=this.data.items[Z].notificationRenderer;if(w&&w.notificationId==q.hideEnclosingAction.notificationId){this.splice("data.items",Z,1);_.yY(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.e.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.lq(this.hostElement,"hidden",!0)};
_.e.updateMenu_=function(q){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&q&&!q.doNotRefreshInbox){q=this.data.continuations;for(var Z=0;Z<q.length;Z++)if(q[Z].invalidationContinuationData){var w=void 0;var r=(w=q[Z].invalidationContinuationData)==null?void 0:w.continuation;break}q=_.R4.clone(this.data.continuationUpdateEndpoint||null);q.continuation=r;q.click_tracking_params=this.data.trackingParams;_.qM(this.hostElement,[q])}};
_.e.onServiceRequestCompleted_=function(q,Z){if(this.data&&(q=Z.actions)){Z=0;for(var w=q.length;Z<w;Z++){var r=_.J(q[Z],_.Ysm);if(!r)break;if((r.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||r.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&r.continuationItems&&this.data.items){var Y=this.data.items.length-1;this.data.items[Y].continuationItemRenderer&&this.splice.apply(this,["data.items",Y,1].concat(r.continuationItems))}}}};
var aH=z46;aH.prototype.onServiceRequestCompleted_=aH.prototype.onServiceRequestCompleted_;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],aH.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],aH.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],aH.prototype,"data",void 0);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],aH.prototype,"onServiceRequestCompleted_",null);aH=_.X([_.dx({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],aH);
_.Fl()(aH,"yt-multi-page-menu-section-renderer",function(){if(Jdu===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;bJ7===void 0&&(bJ7=document.createElement("template"));var r=bJ7;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Jdu=q}q=Jdu;return q},{allowedProps:["data"],
mode:2});var Bwq;var a66;var np8=function(){return _.N.apply(this,arguments)||this};
_.z(np8,_.N);np8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.My.Object.defineProperties(np8.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.progress)==null?0:this.data.progress*100}}});
var na=np8;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],na.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],na.prototype,"data",void 0);_.X([_.I("data.progress"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],na.prototype,"showProgressBar",null);
_.X([_.I("data.progress"),_.A("design:type",Number),_.A("design:paramtypes",[])],na.prototype,"progress",null);na=_.X([_.dx({is:"yt-flow-header-renderer",disableElementRegistration:!0})],na);
_.p(na,"yt-flow-header-renderer",function(){if(a66===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Bwq===void 0&&(Bwq=document.createElement("template"));var r=Bwq;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);a66=q}q=a66;return q},{mode:2});var QmZ;var EpZ;var xVc=function(){return _.N.apply(this,arguments)||this};
_.z(xVc,_.N);xVc.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
var Ql=xVc;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ql.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ql.prototype,"data",void 0);Ql=_.X([_.dx({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],Ql);
_.p(Ql,"yt-post-confirmation-flow-step-renderer",function(){if(EpZ===void 0){var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;QmZ===void 0&&(QmZ=document.createElement("template"));var r=QmZ;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);EpZ=q}q=EpZ;return q},{mode:2});var TwS;var UVq;var kN7=function(){return _.N.apply(this,arguments)||this};
_.z(kN7,_.N);
kN7.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"}}}}};
var Ec=kN7;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ec.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ec.prototype,"data",void 0);Ec=_.X([_.dx({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Ec);
_.p(Ec,"yt-refund-confirmation-flow-step-renderer",function(){if(UVq===void 0){var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;TwS===void 0&&(TwS=document.createElement("template"));var r=TwS;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);UVq=q}q=UVq;return q},{mode:2});_.mD(a88);_.mD(nZD);var Ql6=_.Px({avatarViewModel:_.vQ});_.mD(EZ7);var xYu=_.Px({commentInteractionViewModel:nZD,sharedSubscriptionViewModel:EZ7,buttonViewModel:_.vx});_.mD(TS6);_.mD(UYD);_.mD(kPb);_.mD(KgC);_.mD(sl8);var I87=_.Px({profileIdentityInfoViewModel:_.WJF,profileInfoViewModel:sl8});_.mD(czC);_.Mx(czC,"yt-profile-card-view-model",{propNames:["data"]});var KCl=function(){var q=_.N.apply(this,arguments)||this;q.enableFocusFix=_.b("music_web_enable_focus_on_setting_menu_fix")&&_.BF("IS_MOBILE_WEB",!1);q.covered=!1;q.hideMenu=!1;q.isCommentNotificationOnProfileCard=!1;q.scrolledByTouch=!1;q.disableBackdropFilter=_.b("web_disable_backdrop_filter");q.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return q};
_.z(KCl,_.N);_.e=KCl.prototype;
_.e.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"}}}};
_.e.ready=function(){var q=this;this.JSC$17772_containerElement.addEventListener("scroll",function(){q.ytRendererBehavior.markDirty()})};
_.e.attributeChanged=function(q,Z){q==="menu-style"&&_.yY(this.hostElement,"yt-multi-page-menu-closed-action",[Z])};
_.e.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.XN(this,this.focusOnStampFinished))};
_.e.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.XN(this,this.focusOnStampFinished))};
_.e.reset=function(){this.closeJobId&&(_.v5.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.e.focusOnStampFinished=function(q){q.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.XN(this,this.focusOnStampFinished)),this.doFocus())};
_.e.doFocus=function(){var q=_.SnD(this.sectionsElement);q.length&&q[0].focus()};
_.e.computeMenuStyle=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.e.computeIsCommentNotificationOnProfileCard=function(q){return _.b("enable_profile_cards_on_comments")&&q.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.e.computeHideMenu=function(q,Z){return q||!(!Z||!Z.showLoadingSpinner)};
_.e.onPopupClosed=function(){this.isPopUpOpen=!1;_.yY(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.e.onPopupOpened=function(q,Z){this.isPopUpOpen=!0;Z.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.hy(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.mu({type:"CHANNEL_REPORT_RESET"})))};
_.e.onYtNavigate=function(q,Z){this.shouldCloseOnNavigateEvent(Z.endpoint)&&_.yY(this.hostElement,"yt-close-all-popups-action")};
_.e.handleEndpoint=function(q){q=_.J(q,_.LH);!this.isCommentNotificationOnProfileCard&&q&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17772_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.e.handleActions=function(q){for(var Z=0,w=q.length;Z<w;Z++){var r=_.J(q[Z],ody);r&&this.handleGetMultiPageMenuAction(r);(r=_.J(q[Z],_.Ysm))&&this.handleAppendContinuationItemsAction(r)}};
_.e.onServiceRequestSentOrCompleted=function(q,Z){q.detail&&q.detail.endpoint&&this.handleEndpoint(q.detail.endpoint);Z.actions&&this.handleActions(Z.actions)};
_.e.handleGetMultiPageMenuAction=function(q){var Z=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.E(this.submenuElement).appendChild(Z);(q=q.menu.multiPageMenuRenderer)&&this.logSubmenu(q);Z.data=q;Z.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.e.handleAppendContinuationItemsAction=function(q){if(this.data&&q.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&q.continuationItems&&this.data.sections){var Z=this.data.sections.length-1;this.data.sections[Z].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),Z--);if(this.data.sections[Z].multiPageMenuNotificationSectionRenderer&&q.continuationItems){q=_.P(q==null?void 0:q.continuationItems);for(var w=q.next();!w.done;w=q.next())if(w=w.value,_.J(w,paZ)){var r=
void 0,Y=void 0,C=void 0,d=void 0,O=void 0;((r=this)==null?0:(Y=r.data)==null?0:(C=Y.sections)==null?0:(d=C[Z])==null?0:(O=d.multiPageMenuNotificationSectionRenderer)==null?0:O.items)&&this.push("data.sections."+Z+".multiPageMenuNotificationSectionRenderer.items",w)}else if(_.J(w,_.lgJ)||_.J(w,_.i2))this.push("data.sections",w),Z++}}};
_.e.logSubmenu=function(q){if(!_.b("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var Z=this.ytRendererBehavior.getScreenLayer(),w=_.b5(Z),r=_.Rs(Z);if((q=q.trackingParams)&&w&&r){var Y=_.wa(q);_.b("combine_ve_grafts")?_.iy().graftServerVe(q,r,Z):_.T7(w,r,Y)}}};
_.e.emptySubmenuContainer=function(){for(var q=_.E(this.submenuElement);q.firstChild;)q.removeChild(q.firstChild)};
_.e.onMenuBackTap=function(q){_.hy(this.hostElement,"yt-submenu-closed");q.stopPropagation()};
_.e.onSubmenuClosed=function(q){_.xz(q)!==this.hostElement&&(this.covered=!1,_.hy(this.hostElement,"yt-refit"),q.stopPropagation())};
_.e.onRetrieveLocation=function(q,Z){Z.hasComments&&(Z.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),q.stopPropagation())};
_.e.shouldCloseOnNavigateEvent=function(q){if(!q)return!0;if(_.J(q,_.c42)||_.J(q,_.MQp)||_.J(q,_.IiJ)||_.J(q,_.TF))return!1;var Z;return((Z=_.J(q==null?void 0:q.commandMetadata,_.XK))==null?0:Z.ignoreNavigation)?!1:!0};
_.e.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.e.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.e.refitAfterRender=function(){var q=this;_.I_(this,function(){_.hy(q.hostElement,"yt-refit")})};
var x3=KCl;x3.prototype.refitAfterRender=x3.prototype.refitAfterRender;x3.prototype.onRetrieveLocation=x3.prototype.onRetrieveLocation;x3.prototype.onSubmenuClosed=x3.prototype.onSubmenuClosed;x3.prototype.onMenuBackTap=x3.prototype.onMenuBackTap;x3.prototype.onServiceRequestSentOrCompleted=x3.prototype.onServiceRequestSentOrCompleted;x3.prototype.onYtNavigate=x3.prototype.onYtNavigate;x3.prototype.onPopupOpened=x3.prototype.onPopupOpened;x3.prototype.onPopupClosed=x3.prototype.onPopupClosed;
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],x3.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],x3.prototype,"ytEventForwardingBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],x3.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],x3.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],x3.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],x3.prototype,"enableFocusFix",void 0);_.X([_.F(),_.A("design:type",Object)],x3.prototype,"covered",void 0);_.X([_.F({computed:"computeHideMenu(covered, data)"}),_.A("design:type",Object)],x3.prototype,"hideMenu",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.A("design:type",String)],x3.prototype,"menuStyle",void 0);
_.X([_.F({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.A("design:type",Object)],x3.prototype,"isCommentNotificationOnProfileCard",void 0);_.X([_.F(),_.A("design:type",Boolean)],x3.prototype,"isPopUpOpen",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],x3.prototype,"scrolledByTouch",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],x3.prototype,"disableBackdropFilter",void 0);
_.X([_.fo("#sections"),_.A("design:type",HTMLElement)],x3.prototype,"sectionsElement",void 0);_.X([_.fo("#spinner"),_.A("design:type",HTMLElement)],x3.prototype,"spinnerElement",void 0);_.X([_.fo("#header"),_.A("design:type",HTMLElement)],x3.prototype,"headerElement",void 0);_.X([_.fo("#container"),_.A("design:type",HTMLElement)],x3.prototype,"JSC$17772_containerElement",void 0);_.X([_.fo("#submenu"),_.A("design:type",HTMLElement)],x3.prototype,"submenuElement",void 0);
_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],x3.prototype,"onPopupClosed",null);_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],x3.prototype,"onPopupOpened",null);_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],x3.prototype,"onYtNavigate",null);
_.X([_.m2("yt-service-request-completed"),_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],x3.prototype,"onServiceRequestSentOrCompleted",null);_.X([_.m2("yt-menu-back-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],x3.prototype,"onMenuBackTap",null);
_.X([_.m2("yt-submenu-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],x3.prototype,"onSubmenuClosed",null);_.X([_.m2("yt-retrieve-location"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],x3.prototype,"onRetrieveLocation",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],x3.prototype,"refitAfterRender",null);
x3=_.X([_.l({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],x3);
_.p(x3,"ytd-multi-page-menu-renderer",function(){if(ZJS!==void 0)return ZJS;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ZJS=q},{mode:1});var smC;var I6y=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return q};
_.z(I6y,_.N);_.e=I6y.prototype;_.e.created=function(){this.showTooltips=!0};
_.e.computeAccessibility_=function(q){return this.get("accessibility.accessibilityData",q)||null};
_.e.onTap=function(){var q=_.i5(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(q&&q.length===1&&q[0])_.yY(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var Z;if((Z=this.data)==null?0:Z.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var w;((w=this.data)==null?0:w.menuRequest)&&_.qM(this.hostElement,[this.data.menuRequest])}}};
_.e.handleTopbarMenuClosedAction=function(q){var Z,w;(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(q)===((Z=this.data)==null?void 0:(w=Z.icon)==null?void 0:w.iconType)&&this.toggleIconState(!1)};
_.e.toggleIconState=function(q){_.b("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=q)};
_.e.handleUpdateTopbarAvatarAction=function(q){var Z;q=(Z=_.J(q,C$6))==null?void 0:Z.avatarUrl;var w,r;Z=(w=this.data)==null?void 0:(r=w.avatar)==null?void 0:r.thumbnails;q&&Z&&(w={thumbnails:[Object.assign({},Z[0],{url:q})]},this.set("data.avatar",w))};
_.My.Object.defineProperties(I6y.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("#button")}}});
var TH=I6y;TH.prototype.onTap=TH.prototype.onTap;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],TH.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Et),_.A("design:type",Object)],TH.prototype,"ytdOpenPopupBehavior",void 0);_.X([_.U(_.$wD.YtButtonBehavior),_.A("design:type",Object)],TH.prototype,"ytButtonBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],TH.prototype,"data",void 0);_.X([_.fo("yt-icon-button#button"),_.A("design:type",Object)],TH.prototype,"iconButton",void 0);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TH.prototype,"onTap",null);TH=_.X([_.l({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],TH);
_.p(TH,"ytd-topbar-menu-button-renderer",function(){if(smC!==void 0)return smC;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return smC=q},{mode:1});var cdC;var Mmq=function(){return _.N.apply(this,arguments)||this};
_.z(Mmq,_.N);Mmq.prototype.getSelected=function(){return this.reasons.selected};
var Uc=Mmq;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Uc.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Uc.prototype,"data",void 0);_.X([_.fo("#reasons"),_.A("design:type",Object)],Uc.prototype,"reasons",void 0);Uc=_.X([_.l({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Uc);
_.p(Uc,"ytd-ad-feedback-content",function(){if(cdC!==void 0)return cdC;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return cdC=q},{mode:1});var FCS;var Nw7=function(){return _.N.apply(this,arguments)||this};
_.z(Nw7,_.N);_.e=Nw7.prototype;_.e.onPopupOpened=function(){_.yY(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.e.computeConfirmButton=function(q){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:q.confirmLabel}};
_.e.computeCancelButton=function(q){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:q.cancelLabel}};
_.e.onConfirmTap=function(){var q=this.content.getSelected();q!==void 0&&(q=this.data.reasons[q].endpoint)&&(_.t().resolve(_.ps).resolveCommand(q,{form:{element:this.hostElement}}),_.yY(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.e.sendFeedbackSubmitToastAction=function(){var q;(q=this.data)!=null&&q.completionMessage&&_.yY(this.hostElement,"yt-open-popup-action",[_.cX(this.data.completionMessage),this])};
_.e.onCancelTap=function(){_.yY(this.hostElement,"yt-close-popup-action")};
var k3=Nw7;k3.prototype.onPopupOpened=k3.prototype.onPopupOpened;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],k3.prototype,"data",void 0);_.X([_.fo("#content"),_.A("design:type",Object)],k3.prototype,"content",void 0);_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],k3.prototype,"onPopupOpened",null);
k3=_.X([_.l({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],k3);
_.p(k3,"ytd-ad-feedback-renderer",function(){if(FCS!==void 0)return FCS;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return FCS=q},{mode:1});var l6q;var GND=function(){return _.N.apply(this,arguments)||this};
_.z(GND,_.N);var Ka=GND;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ka.prototype,"data",void 0);Ka=_.X([_.l({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Ka);
_.p(Ka,"ytd-ad-info-dialog-content",function(){if(l6q!==void 0)return l6q;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return l6q=q},{mode:1});var pSF;var sc=function(){return _.N.apply(this,arguments)||this};
_.z(sc,_.N);sc.prototype.computeConfirmButton=function(q){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:q.confirmLabel}};
sc.prototype.onConfirmTap=function(){_.yY(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
sc.prototype.computeShouldShowTitle=function(){var q;return!((q=this.data)==null||!q.title)};
sc.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.t().resolve(_.ps).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
var IH=sc;IH.prototype.onPopupClosed=IH.prototype.onPopupClosed;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],IH.prototype,"data",void 0);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],IH.prototype,"onPopupClosed",null);IH=_.X([_.l({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],IH);
_.p(IH,"ytd-ad-info-dialog-renderer",function(){if(pSF!==void 0)return pSF;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return pSF=q},{mode:1});var XSD;var mVF=function(){var q=_.N.apply(this,arguments)||this;q.actionButtonClass="action-button";q.dismissButtonId="dismiss-button";q.dialogDismiss=!0;return q};
_.z(mVF,_.N);_.e=mVF.prototype;_.e.computeInPlayer=function(q){return(q==null?void 0:q.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.e.computedLogo=function(){var q,Z;return this.isDarkTheme()?(q=this.data)==null?void 0:q.logoDark:(Z=this.data)==null?void 0:Z.logo};
_.e.computedHeaderImage=function(){var q,Z;return this.isDarkTheme()?(q=this.data)==null?void 0:q.headerImageDark:(Z=this.data)==null?void 0:Z.headerImage};
_.e.computeLogoIconId=function(){var q,Z,w,r=(q=this.computedLogo())==null?void 0:(Z=q.sources)==null?void 0:(w=Z[0])==null?void 0:w.height;return r&&r%31===0?"logo-icon-with-padding":"logo-icon"};
_.e.computeLogoIconHeight=function(){var q,Z,w,r=(q=this.computedLogo())==null?void 0:(Z=q.sources)==null?void 0:(w=Z[0])==null?void 0:w.height;return r&&r%31===0?"31":"24"};
_.e.onPopupClosed=function(){_.t().resolve(_.hB).dispose()};
_.e.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.e.onShow=function(){this.inPlayer&&_.gt(6)};
_.e.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var q=0;q<this.data.impressionEndpoints.length;q++){var Z=_.J(this.data.impressionEndpoints[q],_.WJ);Z&&this.ytComponentBehavior.resolveCommand(Z)}};
_.e.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.yY(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.My.Object.defineProperties(mVF.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!((q=this.data)==null||!q.headerImageDark)&&!((Z=this.data)==null||!Z.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.secondaryButton)}}});
var c7=mVF;c7.prototype.onPopupClosed=c7.prototype.onPopupClosed;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],c7.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.tg.YtVisibilityBehavior),_.A("design:type",Object)],c7.prototype,"ytVisibilityBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],c7.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],c7.prototype,"actionButtonClass",void 0);_.X([_.F(),_.A("design:type",Object)],c7.prototype,"dismissButtonId",void 0);_.X([_.F(),_.A("design:type",Object)],c7.prototype,"dialogDismiss",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],c7.prototype,"hasHeaderImage",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],c7.prototype,"hasPremiumButton",null);
_.X([_.F({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.A("design:type",Boolean)],c7.prototype,"inPlayer",void 0);_.X([_.fo("#dismiss-button"),_.A("design:type",HTMLElement)],c7.prototype,"dismissButton",void 0);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],c7.prototype,"onPopupClosed",null);c7=_.X([_.l({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],c7);
_.p(c7,"ytd-enforcement-message-view-model",function(){if(XSD!==void 0)return XSD;var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return XSD=q},{mode:1});var AdV;var f6D;var DVS=function(){var q=_.N.apply(this,arguments)||this;q.TEST_ONLY={immediateValidation:function(){q.immediateValidation()},
onValidationResponse:function(Z){q.onValidationResponse(Z)},
onGenerateHandleFromNameResponse:function(Z){q.onGenerateHandleFromNameResponse(Z)}};
return q};
_.z(DVS,_.N);_.e=DVS.prototype;_.e.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.e.validate=function(){this.immediateValidation()};
_.e.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.e.setHandleInputValue=function(q){this.handleDir=this.getHandleDir(q);this.handleInput.value=q;this.validationState={status:"PENDING"};this.immediateValidation()};
_.e.getHandleDir=function(q){var Z=q===""&&!1;return(Z=_.dy7.test.call(_.dy7,q))?"rtl":"ltr"};
_.e.onDataChanged=function(){var q,Z;this.handleDir=this.getHandleDir((Z=(q=this.data)==null?void 0:q.handle)!=null?Z:"");var w;this.validationState=((w=this.data)==null?0:w.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var r;((r=this.data)==null?0:r.validateOnInit)&&this.immediateValidation()};
_.e.stopPropagation=function(q){q.stopPropagation()};
_.e.onInput=function(){var q;this.handleDir=this.getHandleDir((q=this.handleInput.value)!=null?q:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.e.onFocusout=function(q){this.handleInput.contains(q.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.e.delayedValidation=function(){var q,Z;this.debouncedValidation((Z=(q=this.data)==null?void 0:q.validationDelayMs)!=null?Z:1E3)};
_.e.immediateValidation=function(){this.debouncedValidation(0)};
_.e.debouncedValidation=function(q){var Z=this;_.vp(this,"debouncedValidation",function(){var w,r=Z.staticValidation((w=Z.handleInput.value)!=null?w:"");if(r!==void 0)Z.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:r};else{var Y;if((Y=Z.data)!=null&&Y.validateChannelHandleCommand){Z.validationState={status:"LOADING"};var C;Z.ytComponentBehavior.resolveCommand(Z.data.validateChannelHandleCommand,{form:{handle:(C=Z.handleInput.value)!=null?C:""},commandController:{onSuccess:function(d,
O){Z.onValidationResponse(O)},
onServerError:function(d,O){Z.onValidationServerError(O)}}})}else Z.handleUnexpectedValidationError(new _.df("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",Z.data))}},q)};
_.e.staticValidation=function(q){var Z;if(((Z=this.data)==null?void 0:Z.channelHandleStaticValidationParams)!==void 0){Z=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(q)&&Z.validValueRegexpErrorMessage!==void 0)return Z.validValueRegexpErrorMessage;if(Z.minLength!==void 0&&q.length<Z.minLength&&Z.minLengthErrorMessage!==void 0)return Z.minLengthErrorMessage;if(Z.maxLength!==void 0&&q.length>Z.maxLength&&Z.maxLengthErrorMessage!==void 0)return Z.maxLengthErrorMessage}};
_.e.onValidationResponse=function(q){var Z=_.J(q.result,P$q);Z===void 0?this.handleUnexpectedValidationError(new _.df("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",q)):this.handleValidationResultRenderer(Z)};
_.e.onValidationServerError=function(q){this.handleUnexpectedValidationError(new _.df("ValidateChannelHandle request failed.",q))};
_.e.handleValidationResultRenderer=function(q){if(q.handle===void 0)this.handleUnexpectedValidationError(new _.df("ChannelHandleValidationResultRenderer does not contain handle.",q));else if(q.handle===this.handleInput.value)switch(q.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:q.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:q.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.df("Unrecognized ChannelHandleValidationResult",q));break;default:_.F7(q.result)}};
_.e.handleUnexpectedValidationError=function(q){var Z;this.validationState={status:"UNKNOWN",handle:(Z=this.handleInput.value)!=null?Z:""};_.bx(q)};
_.e.stopEventPropagation=function(q){q.stopPropagation()};
_.e.updateHandleOnChannelNameInputChange=function(q){if(!this.wasEdited){var Z,w;this.debouncedGenerateHandleFromName(q,(w=(Z=this.data)==null?void 0:Z.validationDelayMs)!=null?w:1E3)}};
_.e.debouncedGenerateHandleFromName=function(q,Z){var w=this;_.vp(this,"debouncedGenerateHandleFromName",function(){var r;(r=w.data)!=null&&r.validateChannelHandleCommand?w.ytComponentBehavior.resolveCommand(w.data.validateChannelHandleCommand,{form:{name:q},commandController:{onSuccess:function(Y,C){w.onGenerateHandleFromNameResponse(C)},
onServerError:function(Y,C){_.bx(new _.df("Error calling GenerateHandleFromName",C))}}}):_.bx(new _.df("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",w.data))},Z)};
_.e.onGenerateHandleFromNameResponse=function(q){this.wasEdited||((q=_.J(q.result,dO7))?this.setHandleInputValue(q.handle):_.bx(new _.df("Invalid results when generate handle from name")))};
_.My.Object.defineProperties(DVS.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var q;if(q=this.validationState)q=this.validationState,q=q.status==="OK"||q.status==="UNKNOWN";if(q)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var q;if(((q=this.validationState)==null?void 0:q.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 q,Z=(q=this.channelHandleEntity)==null?void 0:q.handleEdit;this.handleDir=this.getHandleDir(Z!=null?Z:"");return Z}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var q,Z;if(((q=this.data)==null?void 0:(Z=q.channelHandleStaticValidationParams)==null?void 0:Z.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
var M8=DVS;M8.prototype.stopEventPropagation=M8.prototype.stopEventPropagation;M8.prototype.onDataChanged=M8.prototype.onDataChanged;M8.prototype.applyHandleEdit=M8.prototype.applyHandleEdit;M8.prototype.onValueChanged=M8.prototype.onValueChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],M8.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],M8.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],M8.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Boolean)],M8.prototype,"wasEdited",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],M8.prototype,"handleDir",void 0);_.X([_.fo("#handle-input"),_.A("design:type",Object)],M8.prototype,"handleInput",void 0);_.X([_.F(),_.I("validationState"),_.A("design:type",Object),_.A("design:paramtypes",[])],M8.prototype,"value",null);
_.X([_.M("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M8.prototype,"onValueChanged",null);_.X([_.I("validationState"),_.A("design:type",Object),_.A("design:paramtypes",[])],M8.prototype,"errorIndicator",null);_.X([_.F({reflectToAttribute:!0}),_.I("errorIndicator"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],M8.prototype,"borderErrorIndicator",null);
_.X([_.F({selectorArgs:["data.channelHandleEntityKey"],selector:function(q,Z){return _.iI(q.entities,"channelHandle",Z)}}),
_.A("design:type",Object)],M8.prototype,"channelHandleEntity",void 0);_.X([_.I("channelHandleEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],M8.prototype,"handleEdit",null);_.X([_.M("handleEdit"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M8.prototype,"applyHandleEdit",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M8.prototype,"onDataChanged",null);
_.X([_.I("data.channelHandleStaticValidationParams.validValueRegexp"),_.A("design:type",Object),_.A("design:paramtypes",[])],M8.prototype,"validValueRegexp",null);_.X([_.m2("yt-service-request-sent"),_.m2("yt-service-request-completed"),_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],M8.prototype,"stopEventPropagation",null);M8=_.X([_.l({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],M8);
_.p(M8,"ytd-channel-handle-input-renderer",function(){if(f6D!==void 0)return f6D;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return f6D=q},{mode:_.NT("kevlar_poly_si_batch_j025")?1:2});var h47=function(){var q=_.N.apply(this,arguments)||this;q.data=null;q.errorMessage=null;q.isLoading=!0;q.hideContainer=!1;q.enableNewChannelCreationOnIdForAll=_.b("enable_new_channel_creation_for_id4all");q.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"};q.testOnly={setErrorMessage:function(Z){q.resetErrorState();
q.setErrorState(Z)}};
return q};
_.z(h47,_.N);_.e=h47.prototype;_.e.created=function(){this.logScreenVe()};
_.e.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")};
_.e.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var q;((q=this.zeroStepErrorMessageEntity)==null?0:q.value)&&this.set("errorMessage",_.UE(this.zeroStepErrorMessageEntity.value))};
_.e.onCreateTap=function(){var q=this;if(this.data&&this.data.channelCreationEndpoint){var Z,w;if(!((Z=this.data.createChannelButton)==null?0:(w=Z.buttonRenderer)==null?0:w.isDisabled)){var r;if((r=this.nameInput)!=null&&r.value){this.setLoadingState();var Y,C;Z=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(Y=this.handleInput)==null?void 0:Y.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((C=this.handleInput)==null?void 0:C.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:Z,commandController:{onSuccess:function(d,O){q.onChannelCreationEndpointSuccess(O);q.obakeImageSource&&_.vO("channelCreatedWithObakeImage",{imageSourceType:q.obakeImageSource})},
onServerError:function(){q.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.e.endpointRequiresServiceRequestAction=function(q){return!!_.J(q,_.zf)||!!_.J(q,C$6)};
_.e.isNavigateAction=function(q){var Z;return!!_.J(q,_.RI)||!!_.J((Z=_.J(q,HL6))==null?void 0:Z.command,_.RI)};
_.e.isPlaylistAction=function(q){return!!_.J(q,_.SE)||!!_.J(q,_.JA)};
_.e.onChannelCreationEndpointSuccess=function(q){if(q.createChannelError){var Z;this.setErrorState((Z=q.createChannelError)==null?void 0:Z.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.b("enable_secondary_channel_creation_form")&&q.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(q.navigationEndpoint);if(q.actions){Z=_.P(q.actions);for(var w=Z.next();!w.done;w=Z.next())if(w=w.value,this.endpointRequiresServiceRequestAction(w)&&this.ytComponentBehavior.resolveCommand(w),
this.isNavigateAction(w)){var r=void 0;w=_.J((r=_.J(w,HL6))==null?void 0:r.command,_.RI);r=void 0;this.isPlaylistAction((r=w)==null?void 0:r.endpoint)&&(_.yY(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),r=void 0,this.ytComponentBehavior.resolveCommand((r=w)==null?void 0:r.endpoint))}}q.actions&&q.actions.some(function(Y){var C;return _.J(Y,_.RI)||_.J((C=_.J(Y,HL6))==null?void 0:C.command,_.RI)})||_.yY(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.e.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.e.onCancelTap=function(){var q,Z,w;if(!((q=this.data)==null?0:(Z=q.cancelButton)==null?0:(w=Z.buttonRenderer)==null?0:w.isDisabled)){var r,Y,C;q=(r=this.data)==null?void 0:(Y=r.cancelButton)==null?void 0:(C=Y.buttonRenderer)==null?void 0:C.command;if(!q||!_.J(q,_.vfX)){var d;this.nameInput&&((d=this.data)==null?0:d.name)&&(this.nameInput.value=this.data.name);var O;this.handleInput&&((O=this.data)==null?0:O.channelHandleInput)&&(this.handleInput.data=_.J(this.data.channelHandleInput,VR7));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.e.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.e.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.e.onClearProfilePhotoTap=function(){var q,Z,w;((q=this.data)==null?0:(Z=q.clearProfilePhotoButton)==null?0:(w=Z.buttonRenderer)==null?0:w.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.e.onEditAvatarTap=function(){var q,Z,w;((q=this.data)==null?0:(Z=q.editAvatarButton)==null?0:(w=Z.buttonRenderer)==null?0:w.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.e.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)};
_.e.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var q;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((q=this.data)==null?0:q.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.e.setErrorState=function(q){this.resetErrorState();if(q)this.set("errorMessage",q);else{var Z;if((Z=this.zeroStepErrorMessageEntity)==null?0:Z.value)this.set("errorMessage",_.UE(this.zeroStepErrorMessageEntity.value));else{var w;((w=this.data)==null?0:w.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.e.fetchImageBlobWithAlr=function(q,Z){Z=Z===void 0?5:Z;var w=this,r,Y,C,d,O;return _.V(function(H){switch(H.nextAddress){case 1:return _.W(H,fetch(q,{method:"GET",mode:"cors"}),2);case 2:r=H.yieldResult;if(r.ok){H.jumpTo(3);break}if(Z===0)throw Error();Y=w.addJitter(Math.pow(2,5-Z));return _.W(H,new Promise(function(L){setTimeout(L,Y*1E3)}),4);
case 4:return H.return(w.fetchImageBlobWithAlr(q,Z-1));case 3:if(!_.Ep(r.headers.get("content-type")).split(";").some(function(L){return L.trim()==="text/plain"})){H.jumpTo(5);
break}C=w;d=C.fetchImageBlobWithAlr;return _.W(H,r.text(),6);case 6:return H.return(d.call(C,H.yieldResult,Z-1));case 5:return _.W(H,r.blob(),7);case 7:return O=H.yieldResult,H.return(O)}})};
_.e.addJitter=function(q){var Z=q*.3*Math.random();Math.random()>.5&&(Z*=-1);return q+Z};
_.e.openProfilePicturePicker=function(){var q=this,Z,w,r,Y,C;return _.V(function(d){if(d.nextAddress==1){Z=q.data.scottyUploadUrl;if(!Z)return d.return();w=document.documentElement.hasAttribute("dark");r=document.body.style.colorScheme;w&&(document.body.style.colorScheme="dark");Y=YYb($nu(rgV(hpF(w?"dark":"light")),function(O){var H,L,S,v,R;return _.V(function(B){if(B.nextAddress==1)return H=_.Ov(RFZ(new H2(O.photoUrl,!1)).build(),"alr","yes"),q.obakeImageSource=q.pictureChangeSourceToObakeImageSourceType(O.photoSource),
_.d9(B,2),q.setLoadingState(),_.W(B,q.fetchImageBlobWithAlr(H),4);if(B.nextAddress!=2)return L=B.yieldResult,S=new FileReader,S.addEventListener("load",function(){var n,x,K,k,G,rz;return _.V(function(f){if(f.nextAddress==1){if(L.size>15728640)return q.setErrorState((n=q.data)==null?void 0:n.imageSizeErrorMessage),_.bx(Error("il")),f.return();if(!S.result)return q.setErrorState((x=q.data)==null?void 0:x.genericImageLoadErrorMessage),_.bx(Error("jl")),f.return();K=S.result;_.d9(f,2);return _.W(f,MFC(L,
Z),4)}if(f.nextAddress!=2)return k=f.yieldResult,q.handleImageUpdatedAction(K,k),q.resetErrorState(),_.QL(f,0);G=_.o3(f);q.setErrorState((rz=q.data)==null?void 0:rz.uploadErrorMessage);if(G instanceof Error)_.tY(G);else{var eO=new _.df(JSON.stringify(G));_.tY(eO)}_.ub(f)})}),S.readAsDataURL(L),_.QL(B,0);
v=_.o3(B);q.setErrorState((R=q.data)==null?void 0:R.genericImageLoadErrorMessage);v instanceof Error?_.tY(v):_.Rw(new _.df(JSON.stringify(v)));_.ub(B)})}),function(){q.hideContainer=!1;
document.body.style.colorScheme=r});
_.d9(d,2);return _.W(d,Y.openPicker(),4)}if(d.nextAddress!=2)return _.QL(d,0);_.o3(d);q.setErrorState((C=q.data)==null?void 0:C.selectImageErrorMessage);_.ub(d)})};
_.e.pictureChangeSourceToObakeImageSourceType=function(q){switch(q){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.e.logScreenVe=function(){_.mG(_.iy(),124448)};
_.e.graftServerVe=function(){var q=_.Rs(),Z,w,r=(Z=this.data)==null?void 0:(w=Z.loggingDirectives)==null?void 0:w.trackingParams;r&&q&&(this.channelCreationFormVe=_.iy().graftServerVe(r,q),q={visualElement:this.channelCreationFormVe},_.hJ().reportShown(q))};
_.e.isNameChanged=function(q){var Z;return((Z=this.data)==null?void 0:Z.name)!==q};
_.e.isHandleChanged=function(q){var Z,w=_.J((Z=this.data)==null?void 0:Z.channelHandleInput,VR7);return w&&q?w.handle!==q:!1};
_.e.handleImageUpdatedAction=function(q,Z){this.hideContainer=!1;this.previewDataUrl=q;this.encryptedBlobId=Z};
_.e.handleImageSelectionErrorAction=function(q){this.hideContainer=!1;this.setErrorState(q)};
_.e.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.e.showContainer=function(){this.hideContainer=!1};
_.e.maybeWipeZeroStepErrorMessage=function(){var q,Z=(q=this.data)==null?void 0:q.zeroStepErrorMessageEntityKey,w;Z&&((w=this.zeroStepErrorMessageEntity)==null?0:w.value)&&this.ytdReduxBehavior.dispatch(_.wp("stringEntity",Z,{key:Z,value:""}))};
_.My.Object.defineProperties(h47.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 q;return((q=this.photoThumbnail)==null?0:q.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 q;return!((q=this.data)==null||!q.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.descriptionInfo}}});
var Fn=h47;Fn.prototype.dataChanged=Fn.prototype.dataChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Fn.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Fn.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],Fn.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Fn.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Fn.prototype,"errorMessage",void 0);
_.X([_.F(),_.A("design:type",Object)],Fn.prototype,"isLoading",void 0);_.X([_.F(),_.A("design:type",String)],Fn.prototype,"previewDataUrl",void 0);_.X([_.F(),_.A("design:type",Number)],Fn.prototype,"obakeImageSource",void 0);_.X([_.F(),_.A("design:type",Object)],Fn.prototype,"hideContainer",void 0);_.X([_.fo("#title-input"),_.A("design:type",Object)],Fn.prototype,"nameInput",void 0);_.X([_.fo("#handle-input"),_.A("design:type",Object)],Fn.prototype,"handleInput",void 0);
_.X([_.F(),_.A("design:type",Boolean)],Fn.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.X([_.F({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.wMI}),_.A("design:type",Object)],Fn.prototype,"zeroStepErrorMessageEntity",void 0);_.X([_.I("data","data.isDefaultProfilePhoto","previewDataUrl"),_.A("design:type",Object),_.A("design:paramtypes",[])],Fn.prototype,"photoThumbnail",null);
_.X([_.I("data","data.isDefaultProfilePhoto","photoThumbnail"),_.A("design:type",Object),_.A("design:paramtypes",[])],Fn.prototype,"userSetPhotoThumbnailUrl",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Fn.prototype,"hideProfilePhotoButtonLayer",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Fn.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.X([_.g3("data","zeroStepErrorMessageEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fn.prototype,"dataChanged",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.descriptionInfo","zeroStepErrorMessageEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],Fn.prototype,"description",null);Fn=_.X([_.l({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Fn);
_.p(Fn,"ytd-channel-creation-dialog-renderer",function(){if(AdV!==void 0)return AdV;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return AdV=q},{mode:1});var ydu;var N8=function(){var q=_.N.apply(this,arguments)||this;q.isLoading=!1;q.isDisabled=!1;return q};
_.z(N8,_.N);N8.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
N8.prototype.updateDisabled=function(){var q;this.isDisabled=this.isLoading||((q=this.handleInput)==null?void 0:q.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
N8.prototype.onSaveClick=function(){var q=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var Z;((Z=this.data)==null?void 0:Z.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 w;if((w=q.data)==null?0:w.nextEndpoint){var r;q.ytComponentBehavior.resolveCommand((r=q.data)==null?void 0:r.nextEndpoint)}else q.isLoading=
!1,q.closeDialog()},
onServerError:function(){q.isLoading=!1;q.handleInput.validate();var w;q.errorMessage=(w=q.data)==null?void 0:w.errorMessage}}}))}};
N8.prototype.closeDialog=function(){_.yY(this.hostElement,"yt-close-popup-action",[this.is])};
var ln=N8;ln.prototype.updateDisabled=ln.prototype.updateDisabled;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],ln.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ln.prototype,"data",void 0);_.X([_.fo("#handle-input"),_.A("design:type",Object)],ln.prototype,"handleInput",void 0);_.X([_.M("isLoading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ln.prototype,"updateDisabled",null);
ln=_.X([_.l({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],ln);
_.p(ln,"ytd-channel-handle-edit-dialog-renderer",function(){if(ydu!==void 0)return ydu;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ydu=q},{mode:1});var iJq;var gp6=function(){return _.N.apply(this,arguments)||this};
_.z(gp6,_.N);gp6.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var GH=gp6;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],GH.prototype,"data",void 0);GH=_.X([_.l({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],GH);
_.p(GH,"ytd-channel-switcher-footer-renderer",function(){if(iJq!==void 0)return iJq;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return iJq=q},{mode:1});var q9l;var ZFl;var wuC=function(){return _.N.apply(this,arguments)||this};
_.z(wuC,_.N);wuC.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
var pa=wuC;pa.prototype.onIronChange=pa.prototype.onIronChange;_.X([_.F(),_.A("design:type",Object)],pa.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!1}),_.A("design:type",Function)],pa.prototype,"onDontAskAgainChanged",void 0);_.X([_.fo("#checkbox"),_.A("design:type",Object)],pa.prototype,"checkbox",void 0);_.X([_.m2("iron-change"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pa.prototype,"onIronChange",null);
pa=_.X([_.l({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],pa);
_.p(pa,"ytd-identity-prompt-footer-renderer",function(){if(ZFl!==void 0)return ZFl;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ZFl=q},{mode:1});var rMl=function(){var q=_.N.apply(this,arguments)||this;q.dontAskAgain=!1;q.showPopup=!1;q.boundDontAskAgainChanged=function(Z){q.dontAskAgainChanged(Z)};
q.boundOnAccountItemTap=function(Z){q.onAccountItemTap(Z)};
return q};
_.z(rMl,_.N);_.e=rMl.prototype;
_.e.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]]"}}}}}};
_.e.ready=function(){var q=this;_.E(this.hostElement).querySelector("#container").addEventListener("scroll",function(){q.ytRendererBehavior.markDirty()})};
_.e.dontAskAgainChanged=function(q){this.dontAskAgain=q};
_.e.onAccountItemTap=function(q){if(q){var Z={};this.dontAskAgain&&(Z={dont_ask_again:this.dontAskAgain});_.ja(q,Z)}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.e.redirectOnlyAccount=function(q){q.sections&&q.sections.length>0&&(q=_.J(q.sections[0],_.ZN2),(q==null?0:q.contents)&&(q==null?void 0:q.contents.length)<=1?(q=_.Ks(window.location.href),(q==null?0:q.next)&&_.LuT(q.next)?_.ja(q.next):_.ja("/")):this.showPopup=!0)};
var Xn=rMl;Xn.prototype.dataChanged=Xn.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Xn.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Xn.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Xn.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!1}),_.A("design:type",Object)],Xn.prototype,"dontAskAgain",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Xn.prototype,"showPopup",void 0);_.X([_.F({reflectToAttribute:!1}),_.A("design:type",Object)],Xn.prototype,"boundDontAskAgainChanged",void 0);_.X([_.F({reflectToAttribute:!1}),_.A("design:type",Object)],Xn.prototype,"boundOnAccountItemTap",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Xn.prototype,"dataChanged",null);
Xn=_.X([_.l({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],Xn);
_.p(Xn,"ytd-channel-switcher-renderer",function(){if(q9l!==void 0)return q9l;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return q9l=q},{mode:1});var Y9F;var $Gl=function(){return _.N.apply(this,arguments)||this};
_.z($Gl,_.N);_.My.Object.defineProperties($Gl.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
var mN=$Gl;_.X([_.F(),_.A("design:type",Object)],mN.prototype,"data",void 0);_.X([_.I("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],mN.prototype,"steps",null);mN=_.X([_.l({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],mN);
_.p(mN,"ytd-channel-transfer-stepper-renderer",function(){if(Y9F!==void 0)return Y9F;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Y9F=q},{mode:1});var exC;var Cru=function(){var q=_.N.apply(this,arguments)||this;q.data=null;q.isError=!1;q.isLoading=!1;return q};
_.z(Cru,_.N);_.e=Cru.prototype;_.e.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"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.e.computeProfileName=function(q){return q?q.givenNameValue+" "+q.familyNameValue:""};
_.e.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)};
_.e.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)};
var Ae=Cru;Ae.prototype.onYtServiceRequestError=Ae.prototype.onYtServiceRequestError;Ae.prototype.onYtServiceRequestSent=Ae.prototype.onYtServiceRequestSent;Ae.prototype.dataChanged=Ae.prototype.dataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ae.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ae.prototype,"data",void 0);
_.X([_.F({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.A("design:type",String)],Ae.prototype,"profileName",void 0);_.X([_.F(),_.A("design:type",Object)],Ae.prototype,"isError",void 0);_.X([_.F(),_.A("design:type",Object)],Ae.prototype,"isLoading",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ae.prototype,"dataChanged",null);
_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],Ae.prototype,"onYtServiceRequestSent",null);_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],Ae.prototype,"onYtServiceRequestError",null);Ae=_.X([_.l({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],Ae);
_.p(Ae,"ytd-channel-warm-welcome-cont-renderer",function(){if(exC!==void 0)return exC;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return exC=q},{mode:1});var Prc;var dGl=function(){var q=_.N.apply(this,arguments)||this;q.data=null;return q};
_.z(dGl,_.N);dGl.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
dGl.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
var fa=dGl;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],fa.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],fa.prototype,"data",void 0);fa=_.X([_.l({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],fa);
_.p(fa,"ytd-channel-warm-welcome-renderer",function(){if(Prc!==void 0)return Prc;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Prc=q},{mode:1});var VB7;var OFq=function(){return _.N.apply(this,arguments)||this};
_.z(OFq,_.N);_.My.Object.defineProperties(OFq.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.authorThumbnail)||{}}}});
var DH=OFq;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],DH.prototype,"data",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],DH.prototype,"thumbnailDetails",null);DH=_.X([_.l({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],DH);
_.p(DH,"ytd-comment-preview-renderer",function(){if(VB7!==void 0)return VB7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return VB7=q},{mode:1});var HFy;var WpC=function(){return _.N.apply(this,arguments)||this};
_.z(WpC,_.N);WpC.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.My.Object.defineProperties(WpC.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.submitButton}}});
var he=WpC;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],he.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],he.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],he.prototype,"data",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],he.prototype,"submitButton",null);he=_.X([_.l({is:"ytd-notice-renderer",disableElementRegistration:!0})],he);
_.p(he,"ytd-notice-renderer",function(){if(HFy!==void 0)return HFy;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return HFy=q},{mode:1});var oG6;var uhD=function(){return _.N.apply(this,arguments)||this};
_.z(uhD,_.N);uhD.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
var yl=uhD;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],yl.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],yl.prototype,"data",void 0);yl=_.X([_.l({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],yl);
_.p(yl,"ytd-preview-comment-dialog-content",function(){if(oG6!==void 0)return oG6;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return oG6=q},{mode:1});var Lp7;var S9u=function(){return _.N.apply(this,arguments)||this};
_.z(S9u,_.N);S9u.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
S9u.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var gs=S9u;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],gs.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],gs.prototype,"data",void 0);gs=_.X([_.l({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],gs);
_.p(gs,"ytd-preview-comment-dialog-renderer",function(){if(Lp7!==void 0)return Lp7;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Lp7=q},{mode:1});var vGV;var jf6=_.b("web_button_rework")&&_.BF("BUTTON_REWORK")||_.b("web_button_rework_with_live"),tBb=function(){var q=_.N.apply(this,arguments)||this;q.selectedAmountIndex=1;q.privacyCheckboxValue=!1;q.useAmsterdamStyle=jf6;q.amountPlaceholderIndex=-1;return q};
_.z(tBb,_.N);_.e=tBb.prototype;_.e.onAmountClick=function(q){this.selectedAmountIndex=_.E(this.hostElement).querySelector("#amounts").indexForElement(q.currentTarget)};
_.e.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.yY(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.e.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.yY(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.yY(this.hostElement,"yt-close-popup-action",[this.is]);var q;(q=_.K6())==null||q.getPlayerPromise().then(function(Z){Z.pauseVideo()})}};
_.e.donationCallback=function(q){q.success?(this.hostElement.hasAttribute("live-chat")&&q.response&&q.response.data&&q.response.data.actions&&_.yY(this.hostElement,"yt-live-chat-open-popup",[q.response.data.actions[0]]),_.yY(this.hostElement,"yt-close-popup-action",[this.is]),_.yY(this.hostElement,"yt-live-chat-close-buy-flow")):q.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(q.errorMessageRenderer)};
_.e.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.E(this.hostElement).querySelector("#custom-amount-input").focus()};
_.e.updateConfirmationDialogTextWithAmount=function(q){var Z=this.getConfirmDialogRuns();Z&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(Z),"text"],this.getFormattedAmount(q))};
_.e.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.e.getAmountPlaceholderIndex=function(q){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=q.findIndex(function(Z){return Z.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.e.getFormattedAmount=function(q){var Z;return(new _.aZ(4,((Z=this.data)==null?void 0:Z.currencyCode)||"")).format(q)};
_.e.isAmountValid=function(q){if(q==="")return!1;q=Number(q)*1E6;var Z=this.get("minAmountMicros",this.data),w=this.get("maxAmountMicros",this.data);return Z&&q<Z||w&&q>w?!1:!0};
_.e.setInputError=function(){this.shouldShowValidationError?_.E(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.E(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.e.setInitialCheckboxValue=function(){var q;this.privacyCheckboxValue=!((q=this.data)==null||!q.privacyCheckboxInitialState)};
_.e.updateCustomAmountInputFromBinding=function(q){this.customAmountInput=q.detail.value};
_.e.updatePrivacyCheckboxValueFromBinding=function(q){this.privacyCheckboxValue=q.detail.value};
_.My.Object.defineProperties(tBb.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var q=this,Z,w;return((Z=this.data)==null?void 0:(w=Z.suggestedAmounts)==null?void 0:w.map(function(r,Y){return{buttonRenderer:{style:q.selectedAmountIndex===Y?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:r.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 q;return!((q=this.data)==null||!q.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 q=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(q&&this.amountMicros!==null)return Object.assign({},q,{ypcGetCartEndpoint:Object.assign({},q.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 q=this.get("confirmLargeAmount",this.data);if(q&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),q}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var q=this.get("donateButton.buttonRenderer",this.data);if(q)return Object.assign({},q,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
var qi=tBb;qi.prototype.setInitialCheckboxValue=qi.prototype.setInitialCheckboxValue;qi.prototype.setInputError=qi.prototype.setInputError;qi.prototype.setFocusOnCustomAmountInput=qi.prototype.setFocusOnCustomAmountInput;_.X([_.U(cwy),_.A("design:type",Object)],qi.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],qi.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],qi.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],qi.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],qi.prototype,"selectedAmountIndex",void 0);_.X([_.F(),_.A("design:type",String)],qi.prototype,"customAmountInput",void 0);_.X([_.F(),_.A("design:type",Object)],qi.prototype,"privacyCheckboxValue",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],qi.prototype,"useAmsterdamStyle",void 0);_.X([_.M("customAmount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qi.prototype,"setFocusOnCustomAmountInput",null);_.X([_.I("data","selectedAmountIndex"),_.A("design:type",Array),_.A("design:paramtypes",[])],qi.prototype,"suggestedAmountButtons",null);
_.X([_.I("data","selectedAmountIndex"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qi.prototype,"isCustomAmountSelected",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qi.prototype,"showPrivacyCheckbox",null);_.X([_.I("data","selectedAmountIndex","customAmount"),_.A("design:type",Object),_.A("design:paramtypes",[])],qi.prototype,"amountMicros",null);
_.X([_.I("isCustomAmountSelected","customAmountInput"),_.A("design:type",Object),_.A("design:paramtypes",[])],qi.prototype,"customAmount",null);_.X([_.I("customAmount"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qi.prototype,"shouldShowValidationError",null);_.X([_.I("customAmount"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qi.prototype,"isDonateButtonEnabled",null);
_.X([_.I("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.A("design:type",Object),_.A("design:paramtypes",[])],qi.prototype,"donateCommand",null);_.X([_.I("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.A("design:type",Object),_.A("design:paramtypes",[])],qi.prototype,"donateCommandWithConfirmation",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],qi.prototype,"largeDonationThreshold",null);
_.X([_.I("customAmount","donateCommand","amountMicros"),_.A("design:type",Object),_.A("design:paramtypes",[])],qi.prototype,"confirmLargeAmountCommand",null);_.X([_.I("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.A("design:type",Object),_.A("design:paramtypes",[])],qi.prototype,"donateButtonRenderer",null);_.X([_.M("shouldShowValidationError"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qi.prototype,"setInputError",null);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qi.prototype,"setInitialCheckboxValue",null);qi=_.X([_.l({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],qi);
_.p(qi,"ytd-donation-amount-picker-renderer",function(){if(vGV!==void 0)return vGV;var q=document.createElement("template");_.a(q,'\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" 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="" 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">\n      </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">\n          [[getSimpleString(data.campaignTitle)]]\n        </div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignSubtitle)]]\n        </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">\n            [[getSimpleString(data.campaignDescription)]]\n          </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">\n        [[getSimpleString(data.campaignDescription)]]\n      </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">\n      </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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return vGV=q},{mode:1});var Rx7;var bF7=function(){return _.N.apply(this,arguments)||this};
_.z(bF7,_.N);var Z3=bF7;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Z3.prototype,"ytComponentBehavior",void 0);_.X([_.F({}),_.A("design:type",Object)],Z3.prototype,"data",void 0);Z3=_.X([_.l({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],Z3);
_.p(Z3,"ytd-donation-post-transaction-content",function(){if(Rx7!==void 0)return Rx7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Rx7=q},{mode:1});var JM8;var zxF=function(){return _.N.apply(this,arguments)||this};
_.z(zxF,_.N);zxF.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var wR=zxF;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],wR.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.X([_.F({}),_.A("design:type",Object)],wR.prototype,"data",void 0);wR=_.X([_.l({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],wR);
_.p(wR,"ytd-donation-post-transaction-renderer",function(){if(JM8!==void 0)return JM8;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return JM8=q},{mode:1});var BVV;var aE6;var nGF=function(){return _.N.apply(this,arguments)||this};
_.z(nGF,_.N);nGF.prototype.computeIsStreamingProvider=function(q){return!!q.isStreamingShelf};
nGF.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
var rR=nGF;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],rR.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],rR.prototype,"data",void 0);_.X([_.F({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],rR.prototype,"isStreamingProvider",void 0);
rR=_.X([_.l({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],rR);
_.p(rR,"ytd-media-provider-renderer",function(){if(aE6!==void 0)return aE6;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return aE6=q},{mode:1});var Qfl;var EGq=function(){return _.N.apply(this,arguments)||this};
_.z(EGq,_.N);EGq.prototype.observeLightsourcePalette=function(){var q,Z=(q=this.data)==null?void 0:q.vibrantsourceColorPaletteData;Z&&_.VB(this.hostElement,Z)};
var YH=EGq;YH.prototype.observeLightsourcePalette=YH.prototype.observeLightsourcePalette;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],YH.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],YH.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],YH.prototype,"data",void 0);
_.X([_.M("data.vibrantsourceColorPaletteData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YH.prototype,"observeLightsourcePalette",null);YH=_.X([_.l({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],YH);
_.p(YH,"ytd-streaming-pop-up-dialog",function(){if(Qfl!==void 0)return Qfl;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Qfl=q},{mode:1});var $H=function(){return _.N.apply(this,arguments)||this};
_.z($H,_.N);$H.prototype.onPopupOpened_=function(){var q;((q=this.data)==null?0:q.serviceEndpoint)&&_.t().resolve(_.ps).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
$H.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
$H.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"}}}}};
var ew=$H;ew.prototype.onPopupOpened_=ew.prototype.onPopupOpened_;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ew.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.Ms),_.A("design:type",Object)],ew.prototype,"ytContinuationHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ew.prototype,"data",void 0);
_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ew.prototype,"onPopupOpened_",null);ew=_.X([_.l({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],ew);
_.p(ew,"ytd-brandconnect-popup-renderer",function(){if(BVV!==void 0)return BVV;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return BVV=q},{mode:1});var xG7;var TVD=function(){return _.N.apply(this,arguments)||this};
_.z(TVD,_.N);_.e=TVD.prototype;_.e.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.dataChanged=function(){for(var q=0;q<this.getOptionRenderers().length;q++)this.notifyPath("data.options."+q+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+q+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.e.updateSubmitButton=function(q){this.set("data.submitButton.buttonRenderer.isDisabled",!q)};
_.e.computeAlt=function(q){return _.kO(q)};
_.e.onDismissTap=function(){_.yY(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.t().resolve(_.ps).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.e.getOptionRenderers=function(q){return(q=q||this.data)&&q.options?q.options.reduce(function(Z,w){w.checkboxSurveyOptionRenderer&&Z.push(w.checkboxSurveyOptionRenderer);return Z},[]):[]};
_.e.onOptionChange=function(q){var Z=this,w=!1;if(q.detail.checked)for(var r=this.getOptionRenderers().find(function(O){return O.value===q.detail.value}),Y=this.getOptionRenderers(),C=0;C<Y.length;C++){var d=Y[C];
this.notifyPath("data.options."+C+".checkboxSurveyOptionRenderer.checked");d.checked&&((r==null?0:r.isExclusiveOption)?!d.isExclusiveOption:d.isExclusiveOption)?this.set("data.options."+C+".checkboxSurveyOptionRenderer.checked",!1):d.checked&&(w=!0)}else w=this.getOptionRenderers().some(function(O,H){Z.notifyPath("data.options."+H+".checkboxSurveyOptionRenderer.checked");return O.checked});
this.updateSubmitButton(w)};
_.e.onSubmitTap=function(){var q=this.getOptionRenderers().filter(function(C){return C.checked});
if(q.length!==0){var Z=q.map(function(C){return C.responseEndpoint});
q=[];for(var w=1;w<Z.length;w++){var r=void 0,Y=(r=_.J(Z[w],_.BH))==null?void 0:r.feedbackToken;Y&&q.push(Y)}Z=[Z[0]];q.length&&Z.push({extra_feedback_tokens:q});_.qM(this.hostElement,Z);_.yY(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);q=this.data&&this.data.submitActions||[];if(_.b("kevlar_command_handler_migration_killswitch"))_.ZC(this.hostElement,q,this.hostElement);else for(q=_.P(q),Z=q.next();!Z.done;Z=q.next())this.ytComponentBehavior.resolveCommand(Z.value)}};
var CQ=TVD;CQ.prototype.onOptionChange=CQ.prototype.onOptionChange;CQ.prototype.dataChanged=CQ.prototype.dataChanged;_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],CQ.prototype,"ytEventForwardingBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],CQ.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],CQ.prototype,"ytComponentBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);_.X([_.U(YBS),_.A("design:type",Object)],CQ.prototype,"ytdHatsSurveyBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],CQ.prototype,"data",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],CQ.prototype,"dataChanged",null);
_.X([_.m2("ytd-checkbox-survey-option-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],CQ.prototype,"onOptionChange",null);CQ=_.X([_.l({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],CQ);
_.p(CQ,"ytd-checkbox-survey-renderer",function(){if(xG7!==void 0)return xG7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return xG7=q},{mode:1});var UGq;var k66;var Kpc=function(){return _.N.apply(this,arguments)||this};
_.z(Kpc,_.N);var P4=Kpc;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.X([_.U(rn6),_.A("design:type",Object)],P4.prototype,"ytdDismissalReasonBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],P4.prototype,"data",void 0);P4=_.X([_.l({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],P4);
_.p(P4,"ytd-dismissal-reason-text-renderer",function(){if(k66!==void 0)return k66;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return k66=q},{mode:1});var sf8;var IEZ=function(){return _.N.apply(this,arguments)||this};
_.z(IEZ,_.N);var dR=IEZ;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.X([_.U(rn6),_.A("design:type",Object)],dR.prototype,"ytdDismissalReasonBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],dR.prototype,"data",void 0);dR=_.X([_.l({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],dR);
_.p(dR,"ytd-dismissal-reason-video-renderer",function(){if(sf8!==void 0)return sf8;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return sf8=q},{mode:1});var cMl=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");return q};
_.z(cMl,_.N);_.e=cMl.prototype;_.e.created=function(){this.selectedFeedbackTokens=new xP};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.e.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.e.onDismissalReasonSelected=function(q,Z){_.hy(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(Z);this.hasReasonsSelected=!0};
_.e.onDismissalReasonDeselected=function(q,Z){_.hy(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(Z);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.e.onCancelTap=function(){_.yY(this.hostElement,"yt-close-popup-action")};
_.e.onSubmitTap=function(){var q=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(q={feedback_tokens:q},_.b("web_ytd_dismissal_follow_up_renderer_command_resolver_ks")?_.qM(this.hostElement,[this.data.submitFeedbackEndpoint,q]):_.t().resolve(_.ps).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},q,{element:this.hostElement})}));_.yY(this.hostElement,"yt-close-popup-action")};
var Vf=cMl;Vf.prototype.onDismissalReasonDeselected=Vf.prototype.onDismissalReasonDeselected;Vf.prototype.onDismissalReasonSelected=Vf.prototype.onDismissalReasonSelected;Vf.prototype.dataChanged=Vf.prototype.dataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Vf.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Vf.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Vf.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Boolean)],Vf.prototype,"hasReasonsSelected",void 0);_.X([_.F(),_.A("design:type",xP)],Vf.prototype,"selectedFeedbackTokens",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Vf.prototype,"darkerDarkTheme",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vf.prototype,"dataChanged",null);
_.X([_.m2("yt-dismissal-reason-selected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,String]),_.A("design:returntype")],Vf.prototype,"onDismissalReasonSelected",null);_.X([_.m2("yt-dismissal-reason-deselected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,String]),_.A("design:returntype")],Vf.prototype,"onDismissalReasonDeselected",null);Vf=_.X([_.l({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Vf);
_.p(Vf,"ytd-dismissal-follow-up-renderer",function(){if(UGq!==void 0)return UGq;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return UGq=q},{mode:1});var MB6;var FpD=function(){return _.N.apply(this,arguments)||this};
_.z(FpD,_.N);_.e=FpD.prototype;_.e.onCheckedChange=function(){this.multiselect||_.hy(this.hostElement,"yt-feedback-single-select-changed");_.E(this.hostElement).querySelector("#freeform").focus();_.hy(this.hostElement,"yt-refit")};
_.e.showTextBox=function(q,Z){return q&&Z};
_.e.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))};
_.e.updateDataCheckedFromBinding=function(q){this.set("data.checked",q.detail.value)};
_.e.updateDataResultTextFromBinding=function(q){this.set("data.resultText",q.detail.value)};
var Ol=FpD;Ol.prototype.dataChanged=Ol.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ol.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ol.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],Ol.prototype,"multiselect",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ol.prototype,"dataChanged",null);
Ol=_.X([_.l({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Ol);
_.p(Ol,"ytd-feedback-option-renderer",function(){if(MB6!==void 0)return MB6;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return MB6=q},{mode:1});var NVl;var lEu=function(){return _.N.apply(this,arguments)||this};
_.z(lEu,_.N);lEu.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
lEu.prototype.onSingleSelectCheckedChanged=function(q){q=_.xz(q);for(var Z=0;Z<this.data.options.length;Z++)if(q.data!==_.J(this.data.options[Z],gdl)){var w="data.options."+Z+".feedbackOptionRenderer.checked";this.notifyPath(w);this.set(w,!1)}};
var H4=lEu;H4.prototype.onSingleSelectCheckedChanged=H4.prototype.onSingleSelectCheckedChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],H4.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],H4.prototype,"data",void 0);
_.X([_.m2("yt-feedback-single-select-changed"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],H4.prototype,"onSingleSelectCheckedChanged",null);H4=_.X([_.l({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],H4);
_.p(H4,"ytd-feedback-question-renderer",function(){if(NVl!==void 0)return NVl;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return NVl=q},{mode:1});var G68;var W4=function(){return _.N.apply(this,arguments)||this};
_.z(W4,_.N);W4.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
W4.prototype.getSelectedFeedbackResults=function(){for(var q={},Z=0;Z<this.data.questions.length;Z++)for(var w=_.J(this.data.questions[Z],iLC),r=0;r<w.options.length;r++){var Y=_.J(w.options[r],gdl);Y&&Y.checked&&(q[Y.optionKey]=Y.resultText)}return q};
W4.prototype.onKeyUp=function(){var q=this;_.sL(_.v5,function(){_.hy(q.hostElement,"yt-refit")});
_.v5.start()};
W4.prototype.submitSurvey=function(){var q=this.getSelectedFeedbackResults();Object.keys(q).length>0&&_.qM(this.hostElement,[this.data.submitFeedbackEndpoint,{survey_results:q,is_feedback_token_unencrypted:!0}])};
var oB=W4;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],oB.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],oB.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],oB.prototype,"data",void 0);oB=_.X([_.l({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],oB);
_.p(oB,"ytd-feedback-survey-renderer",function(){if(G68!==void 0)return G68;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return G68=q},{mode:1});var pu7;var Xu7;var uz=function(){return _.N.apply(this,arguments)||this};
_.z(uz,_.N);uz.prototype.computeAlt=function(q){return _.kO(q)};
uz.prototype.submitResponse=function(){var q,Z;(q=this.data)!=null&&q.feedbackToken&&((Z=this.data)==null?void 0:Z.nextStageIndex)!==void 0&&(_.i5(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.i5(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
uz.prototype.onClick=function(){this.submitResponse()};
var LQ=uz;LQ.prototype.onClick=LQ.prototype.onClick;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],LQ.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],LQ.prototype,"vertical",void 0);_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LQ.prototype,"onClick",null);
LQ=_.X([_.l({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],LQ);
_.p(LQ,"ytd-single-select-answer-option-renderer",function(){if(Xu7!==void 0)return Xu7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Xu7=q},{mode:1});var mGy;var Sw=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");q.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return q};
_.z(Sw,_.N);Sw.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Sw.prototype.dataChanged=function(){var q,Z;this.vertical=((Z=(q=this.data)==null?void 0:q.answerOrientation)!=null?Z:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Sw.prototype.submitFeedback=function(q){var Z;((Z=this.data)==null?0:Z.responseEndpoint)&&q&&_.qM(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[q]}])};
var v4=Sw;v4.prototype.dataChanged=v4.prototype.dataChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],v4.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],v4.prototype,"eventForwardingBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],v4.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],v4.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],v4.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],v4.prototype,"vertical",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],v4.prototype,"darkerDarkTheme",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],v4.prototype,"dataChanged",null);v4=_.X([_.l({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],v4);
_.p(v4,"ytd-single-select-question-renderer",function(){if(mGy!==void 0)return mGy;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return mGy=q},{mode:1});var AMC=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return q};
_.z(AMC,_.N);_.e=AMC.prototype;_.e.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"}}}};
_.e.dataChanged=function(){this.jumpToStage(0)};
_.e.jumpToStage=function(q){var Z,w;if((Z=this.data)==null?0:(w=Z.stages)==null?0:w[q])this.currentStage=this.data.stages[q],this.refitAfterRender()};
_.e.computeAlt=function(q){return _.kO(q)};
_.e.computeSimpleMessage=function(q){var Z;return(Z=_.J(q,whV))==null?void 0:Z.messageText};
_.e.computeHideDismiss=function(q){var Z;return(Z=_.J(q,Q6F))==null?void 0:Z.hideParentDismissButton};
_.e.onDismissTap=function(){_.yY(this.hostElement,"yt-close-popup-action");_.J(this.currentStage,whV)||this.data.dismissalEndpoint&&_.t().resolve(_.ps).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.e.refitAfterRender=function(){var q=this;_.I_(this,function(){_.hy(q.hostElement,"yt-refit")})};
var jw=AMC;jw.prototype.dataChanged=jw.prototype.dataChanged;_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],jw.prototype,"eventForwardingBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],jw.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],jw.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.U(YBS),_.A("design:type",Object)],jw.prototype,"ytdHatsSurveyBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],jw.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],jw.prototype,"currentStage",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jw.prototype,"dataChanged",null);jw=_.X([_.l({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],jw);
_.p(jw,"ytd-multi-stage-survey-renderer",function(){if(pu7!==void 0)return pu7;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return pu7=q},{mode:1});var fEF;var tv=function(){return _.N.apply(this,arguments)||this};
_.z(tv,_.N);tv.prototype.computeAlt=function(q){return _.kO(q)};
tv.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.t().resolve(_.ps).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.yY(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.iyS(!1)))};
tv.prototype.onTap=function(){this.vertical&&this.submitResponse()};
var RB=tv;RB.prototype.onTap=RB.prototype.onTap;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],RB.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],RB.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],RB.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],RB.prototype,"vertical",void 0);
_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RB.prototype,"onTap",null);RB=_.X([_.l({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],RB);
_.p(RB,"ytd-single-option-survey-option-renderer",function(){if(fEF!==void 0)return fEF;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return fEF=q},{mode:1});var DGF;var hx6=function(){return _.N.apply(this,arguments)||this};
_.z(hx6,_.N);_.e=hx6.prototype;_.e.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.dataChanged=function(){var q,Z;this.vertical=(((q=this.data)==null?void 0:(Z=q.surveyOrientation)==null?void 0:Z.type)||"HORIZONTAL")==="VERTICAL"};
_.e.computeAlt=function(q){return _.kO(q)};
_.e.onDismissTap=function(){_.yY(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.t().resolve(_.ps).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.iyS(!1))};
var bz=hx6;bz.prototype.dataChanged=bz.prototype.dataChanged;_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],bz.prototype,"eventForwardingBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],bz.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],bz.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(YBS),_.A("design:type",Object)],bz.prototype,"ytdHatsSurveyBehavior",void 0);
_.X([_.U(_.LO),_.A("design:type",Object)],bz.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],bz.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],bz.prototype,"vertical",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bz.prototype,"dataChanged",null);bz=_.X([_.l({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],bz);
_.p(bz,"ytd-single-option-survey-renderer",function(){if(DGF!==void 0)return DGF;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return DGF=q},{mode:1});var yMF;var Jv=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");return q};
_.z(Jv,_.N);Jv.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Jv.prototype.onDismissTap=function(){_.yY(this.hostElement,"yt-close-popup-action")};
Jv.prototype.onNavigate=function(){_.yY(this.hostElement,"yt-close-popup-action")};
var zk=Jv;zk.prototype.onNavigate=zk.prototype.onNavigate;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],zk.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],zk.prototype,"ytEventForwardingBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],zk.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],zk.prototype,"darkerDarkTheme",void 0);
_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zk.prototype,"onNavigate",null);zk=_.X([_.l({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],zk);
_.p(zk,"ytd-survey-follow-up-renderer",function(){if(yMF!==void 0)return yMF;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return yMF=q},{mode:1});var iFV;var gGb;var qVy;var ZiC=function(){var q=_.N.apply(this,arguments)||this;q.polymer2="Element"in Polymer;return q};
_.z(ZiC,_.N);_.e=ZiC.prototype;_.e.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.e.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.e.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.e.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("minutes-changed",this.minutes))};
_.e.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("seconds-changed",this.seconds))};
_.e.updateMinutesFromBinding=function(q){this.minutes=q.detail.value};
_.e.updateSecondsFromBinding=function(q){this.seconds=q.detail.value};
var B4=ZiC;B4.prototype.secondsChangedForBinding=B4.prototype.secondsChangedForBinding;B4.prototype.minutesChangedForBinding=B4.prototype.minutesChangedForBinding;B4.prototype.secondsChanged=B4.prototype.secondsChanged;_.X([_.F(),_.A("design:type",String)],B4.prototype,"minutes",void 0);_.X([_.F(),_.A("design:type",String)],B4.prototype,"seconds",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],B4.prototype,"polymer2",void 0);
_.X([_.fo("#seconds"),_.A("design:type",Object)],B4.prototype,"secondsEl",void 0);_.X([_.M("seconds"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],B4.prototype,"secondsChanged",null);_.X([_.M("minutes"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],B4.prototype,"minutesChangedForBinding",null);
_.X([_.M("seconds"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],B4.prototype,"secondsChangedForBinding",null);B4=_.X([_.dx({is:"yt-timestamp-input",disableElementRegistration:!0})],B4);
_.p(B4,"yt-timestamp-input",function(){if(qVy===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;gGb===void 0&&(gGb=document.createElement("template"));var r=gGb;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);qVy=q}q=qVy;return q},{mode:2});var wMF=function(){return _.N.apply(this,arguments)||this};
_.z(wMF,_.N);_.e=wMF.prototype;_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$17945_scroller.dialogElement=this.hostElement.parentNode};
_.e.dataChanged=function(){var q=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.s1().getPlayerPromise().then(function(Z){Z=Z.getCurrentTime();q.minutes=Math.floor(Z/60).toString();q.seconds=(Math.floor(Z)%60).toString()})};
_.e.onTapSubmit=function(q){q.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(q={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(q.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(q.minutes=this.minutes,q.seconds=this.seconds),_.t().resolve(_.ps).resolveCommand(this.serviceEndpoint,{form:Object.assign({},q,{element:this.hostElement})}))};
_.e.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.e.onYtServiceRequestCompleted=function(q,Z){Z=Z.actions;if(Array.isArray(Z))for(var w=0,r=Z.length;w<r;w++)_.J(Z[w],_.HZ)&&(q.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(Z[w]))};
_.e.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.e.toggleSubmitButton=function(q){this.set("submitButton.isDisabled",!q)};
_.e.handleInput=function(){var q=this.issueType,Z=this.affiliation,w=this.minutes,r=this.seconds;w=!this.showTimestamp||!!w&&!!r;this.toggleSubmitButton(!!this.descriptionText&&!!q&&!!Z&&w)};
_.e.computeServiceEndpoint=function(q){return this.get("submitButton.buttonRenderer.serviceEndpoint",q)};
_.e.computeSubmitButton=function(q){(q=this.get("submitButton.buttonRenderer",q))&&(q=Object.assign({},q,{serviceEndpoint:void 0}));return q};
_.e.computeShowTimestamp=function(q){return!!q};
_.e.onValueChangedForIssueType=function(q){this.issueType=q.detail.value};
_.e.onValueChangedForAffiliation=function(q){this.affiliation=q.detail.value};
_.e.updateDescriptionTextFromBinding=function(q){this.descriptionText=q.detail.value};
_.e.updateFullNameTextFromBinding=function(q){this.fullNameText=q.detail.value};
_.e.updateMinutesFromBinding=function(q){this.minutes=q.detail.value};
_.e.updateSecondsFromBinding=function(q){this.seconds=q.detail.value};
var aB=wMF;aB.prototype.handleInput=aB.prototype.handleInput;aB.prototype.onYtServiceRequestError=aB.prototype.onYtServiceRequestError;aB.prototype.onYtServiceRequestCompleted=aB.prototype.onYtServiceRequestCompleted;aB.prototype.onYtServiceRequestSent=aB.prototype.onYtServiceRequestSent;aB.prototype.dataChanged=aB.prototype.dataChanged;_.X([_.U(_.Xp.YtOpenPopupBehavior),_.A("design:type",Object)],aB.prototype,"ytOpenPopupBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],aB.prototype,"ytRendererBehavior",void 0);_.X([_.fo("#scroller"),_.A("design:type",Object)],aB.prototype,"JSC$17945_scroller",void 0);_.X([_.fo("#description"),_.A("design:type",HTMLInputElement)],aB.prototype,"description",void 0);_.X([_.fo("#full-name"),_.A("design:type",Object)],aB.prototype,"fullName",void 0);_.X([_.F(),_.A("design:type",Object)],aB.prototype,"data",void 0);
_.X([_.F({computed:"computeShowTimestamp(data.timestampLabel)"}),_.A("design:type",Boolean)],aB.prototype,"showTimestamp",void 0);_.X([_.F({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.A("design:type",Object)],aB.prototype,"serviceEndpoint",void 0);_.X([_.F({computed:"computeSubmitButton(data)"}),_.A("design:type",Object)],aB.prototype,"submitButton",void 0);_.X([_.F(),_.A("design:type",String)],aB.prototype,"descriptionText",void 0);
_.X([_.F(),_.A("design:type",Number)],aB.prototype,"issueType",void 0);_.X([_.F(),_.A("design:type",Number)],aB.prototype,"affiliation",void 0);_.X([_.F(),_.A("design:type",String)],aB.prototype,"fullNameText",void 0);_.X([_.F(),_.A("design:type",String)],aB.prototype,"minutes",void 0);_.X([_.F(),_.A("design:type",String)],aB.prototype,"seconds",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aB.prototype,"dataChanged",null);
_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],aB.prototype,"onYtServiceRequestSent",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],aB.prototype,"onYtServiceRequestCompleted",null);
_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],aB.prototype,"onYtServiceRequestError",null);_.X([_.M("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aB.prototype,"handleInput",null);aB=_.X([_.l({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],aB);
_.p(aB,"ytd-legal-report-details-form-renderer",function(){if(iFV!==void 0)return iFV;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return iFV=q},{mode:1});var rob;var nQ=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return q};
_.z(nQ,_.N);nQ.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
nQ.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var q=this.formRenderer.getForm();q&&this.data.submitEndpoint&&(_.t().resolve(_.ps).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},q,{element:this.hostElement})}),_.yY(this.hostElement,"yt-close-popup-action"))}};
nQ.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.yY(this.hostElement,"yt-close-popup-action"))};
nQ.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
var Qf=nQ;Qf.prototype.onPopupClosed=Qf.prototype.onPopupClosed;_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],Qf.prototype,"ytEventForwardingBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Qf.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Qf.prototype,"ytActionHandlerBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.X([_.fo("yt-form-renderer"),_.A("design:type",Object)],Qf.prototype,"formRenderer",void 0);_.X([_.F(),_.A("design:type",Object)],Qf.prototype,"data",void 0);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qf.prototype,"onPopupClosed",null);Qf=_.X([_.l({is:"ytd-form-popup-content",disableElementRegistration:!0})],Qf);
_.p(Qf,"ytd-form-popup-content",function(){if(rob!==void 0)return rob;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return rob=q},{mode:1});var YVF;var El=function(){return _.N.apply(this,arguments)||this};
_.z(El,_.N);El.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
El.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
El.prototype.onPopupOpened=function(){_.hy(this.hostElement,"yt-invalidate-popup-tabbables")};
El.prototype.onYtServiceRequestCompleted=function(q,Z){Z.data&&Z.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.hy(this.hostElement,"yt-invalidate-popup-tabbables"))};
var xH=El;xH.prototype.onYtServiceRequestCompleted=xH.prototype.onYtServiceRequestCompleted;xH.prototype.onPopupOpened=xH.prototype.onPopupOpened;_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],xH.prototype,"ytEventForwardingBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],xH.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],xH.prototype,"ytRendererBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],xH.prototype,"data",void 0);_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xH.prototype,"onPopupOpened",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],xH.prototype,"onYtServiceRequestCompleted",null);xH=_.X([_.l({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],xH);
_.p(xH,"ytd-form-popup-renderer",function(){if(YVF!==void 0)return YVF;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return YVF=q},{mode:1});var $gq;var eol=function(){var q=_.N.apply(this,arguments)||this;q.isLoading=!1;return q};
_.z(eol,_.N);_.e=eol.prototype;_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");yE8(this.hostElement)};
_.e.onYtServiceRequestSent=function(){this.isLoading=!0};
_.e.onYtServiceRequestCompleted=function(){_.yY(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.e.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.ZC(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.e.closePopupHandler=function(){this.fireOnCloseActions()};
_.e.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var q=this.get("data.headerImage.thumbnails");q&&(q=_.TL(q,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+q+")")}};
_.e.onYtNavigate=function(q){(q=_.xz(q))&&q.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
var Tk=eol;Tk.prototype.onYtNavigate=Tk.prototype.onYtNavigate;Tk.prototype.onHeaderImageChanged=Tk.prototype.onHeaderImageChanged;Tk.prototype.closePopupHandler=Tk.prototype.closePopupHandler;Tk.prototype.onYtServiceRequestCompleted=Tk.prototype.onYtServiceRequestCompleted;Tk.prototype.onYtServiceRequestSent=Tk.prototype.onYtServiceRequestSent;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Tk.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],Tk.prototype,"ytEventForwardingBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Tk.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Tk.prototype,"isLoading",void 0);_.X([_.fo("#header"),_.A("design:type",HTMLDivElement)],Tk.prototype,"header",void 0);_.X([_.fo("#confirm-button"),_.A("design:type",_.i3)],Tk.prototype,"confirmButton",void 0);
_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Tk.prototype,"onYtServiceRequestSent",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Tk.prototype,"onYtServiceRequestCompleted",null);
_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Tk.prototype,"closePopupHandler",null);_.X([_.M("data.headerImage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Tk.prototype,"onHeaderImageChanged",null);_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Tk.prototype,"onYtNavigate",null);
Tk=_.X([_.l({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],Tk);
_.p(Tk,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if($gq!==void 0)return $gq;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return $gq=q},{mode:1});var Csq;var PsZ=function(){var q=_.N.apply(this,arguments)||this;q.isLoading=!1;return q};
_.z(PsZ,_.N);_.e=PsZ.prototype;_.e.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"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);yE8(this.hostElement)};
_.e.onYtServiceRequestCompleted=function(){_.yY(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.e.onYtServiceRequestError=function(q){_.W9(this.hostElement,q.detail.error.message)};
_.e.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.e.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.yY(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.e.onDataChanged=function(){this.isLoading=!1;var q=this.get("data.headerImage.thumbnails");q&&(q=_.TL(q,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+q+")");q=_.b5();var Z=_.Rs(),w=this.get("data.trackingParams");w&&Z&&q&&_.T7(q,Z,_.wa(w))};
_.My.Object.defineProperties(PsZ.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
var Ul=PsZ;Ul.prototype.onDataChanged=Ul.prototype.onDataChanged;Ul.prototype.onDomChange=Ul.prototype.onDomChange;Ul.prototype.onYtServiceRequestError=Ul.prototype.onYtServiceRequestError;Ul.prototype.onYtServiceRequestCompleted=Ul.prototype.onYtServiceRequestCompleted;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ul.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ul.prototype,"ytRendererBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],Ul.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ul.prototype,"isLoading",void 0);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ul.prototype,"hasDescription",null);_.X([_.fo("tp-yt-paper-dialog-scrollable"),_.A("design:type",Object)],Ul.prototype,"scrollable",void 0);_.X([_.fo("#header"),_.A("design:type",HTMLElement)],Ul.prototype,"header",void 0);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ul.prototype,"onYtServiceRequestCompleted",null);_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ul.prototype,"onYtServiceRequestError",null);
_.X([_.m2("dom-change"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ul.prototype,"onDomChange",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ul.prototype,"onDataChanged",null);Ul=_.X([_.l({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],Ul);
_.p(Ul,"ytd-gaming-account-link-setting-renderer",function(){if(Csq!==void 0)return Csq;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Csq=q},{mode:1});var dg6;var VnS;var OiC=function(){var q=_.N.apply(this,arguments)||this;q.isHeader=!1;q.getEndpointForm=XIy;return q};
_.z(OiC,_.N);_.e=OiC.prototype;_.e.triggerHintActions=function(){var q=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var Z=_.i5(q.hostElement,"yt-get-opened-popups-action");!(Z&&Z.length===1?Z[0]:[]).some(function(w){w=w.openPopupAction.popupType;return w==="SURVEY"||w==="MEALBAR"||w==="HINT"})&&q.data.hintActions&&q.guideOpened&&(_.ZC(q.hostElement,q.data.hintActions,q.hostElement),q.data.hintActions=void 0)})};
_.e.getBadgeIconType=function(q){return q&&q.liveBroadcasting?"live":null};
_.e.onDown=function(){this.interaction.triggerDown()};
_.e.onUp=function(){this.interaction.triggerUp()};
_.e.onTap=function(q){if(this.data.serviceEndpoint){var Z;_.b("shorts_controller_retrieve_seedless_sequence_v2")&&((Z=_.J(this.data.serviceEndpoint,_.Yz))==null?void 0:Z.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):pI8(this.data.serviceEndpoint,this);q.preventDefault()}else this.data.navigationEndpoint&&!_.E1(_.E8(q),this.hostElement,["A".toString()])&&_.hy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.e.computeActive=function(q,Z){if(!q)return!1;var w=q.navigationEndpoint;q=q.serviceEndpoint;if(!w&&!q||!Z)return!1;if(w){q=(q=Ah(Z))&&["subscriptions","filteredsubscriptions"].includes(q);if(_.J(w,_.qZ)&&_.J(Z,_.qZ)&&!q){var r=_.J(w,_.qZ).browseId;Z=_.J(Z,_.qZ).browseId;return r!==void 0&&Z!==void 0&&(r===Z||r==="VLWL"&&Z==="FEwatch_later"||r==="FEwatch_later"&&Z==="VLWL")}var Y;w=(Y=_.J(w.commandMetadata,_.XK))==null?void 0:Y.url;Z=(r=_.J(Z.commandMetadata,_.XK))==null?void 0:r.url;return!(!w||
!Z||w!==Z&&w!==_.gA(Z))}return this.isActiveShortsTab(q,Z)};
_.e.isActiveShortsTab=function(q,Z){Z=!!_.J(Z,_.Yz)||!!_.J(Z,_.vZ);return(!!_.J(q,_.Yz)||!!_.J(q,_.vZ))&&Z};
_.e.computeIsPrimary=function(q){return!!q};
_.My.Object.defineProperties(OiC.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 q=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&q)return q}}});
var kH=OiC;kH.prototype.onTap=kH.prototype.onTap;kH.prototype.onUp=kH.prototype.onUp;kH.prototype.onDown=kH.prototype.onDown;kH.prototype.triggerHintActions=kH.prototype.triggerHintActions;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],kH.prototype,"componentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],kH.prototype,"rendererBehavior",void 0);_.X([_.U(_.EY.YtTaskEmitterBehavior),_.A("design:type",Object)],kH.prototype,"taskEmitterBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],kH.prototype,"activeEndpoint",void 0);_.X([_.F(),_.A("design:type",Object)],kH.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],kH.prototype,"guideOpened",void 0);_.X([_.F(),_.A("design:type",String)],kH.prototype,"type",void 0);_.X([_.fo("yt-interaction"),_.A("design:type",Object)],kH.prototype,"interaction",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],kH.prototype,"isHeader",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("data","activeEndpoint"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],kH.prototype,"active",null);_.X([_.F({reflectToAttribute:!0}),_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],kH.prototype,"isPrimary",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.count","data.presentationStyle","data.badges.*"),_.A("design:type",String),_.A("design:paramtypes",[])],kH.prototype,"lineEndStyle",null);
_.X([_.I("lineEndStyle"),_.A("design:type",Object),_.A("design:paramtypes",[])],kH.prototype,"ariaLabel",null);_.X([_.M("data.hintActions","guideOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kH.prototype,"triggerHintActions",null);_.X([_.m2("down"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kH.prototype,"onDown",null);
_.X([_.m2("up"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kH.prototype,"onUp",null);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],kH.prototype,"onTap",null);kH=_.X([_.l({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],kH);
_.p(kH,"ytd-guide-entry-renderer",function(){if(VnS!==void 0)return VnS;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return VnS=q},{mode:1});var Hi6=function(){var q=_.N.apply(this,arguments)||this;q.userToggled=!1;return q};
_.z(Hi6,_.N);_.e=Hi6.prototype;_.e.getItemsPath=function(){return"data.expandableItems"};
_.e.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.e.onExpanderItemTapped=function(q){var Z=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.b("kevlar_guide_expandable_items_killswitch")&&_.I_(this,function(){_.sG(Z.expandableItems)});
q.preventDefault()};
_.e.onCollapserItemTapped=function(q){var Z=this;this._setExpanded(!1);this.userToggled=!0;q.preventDefault();this.expandableItems&&!_.b("kevlar_guide_collapsible_items_killswitch")&&_.I_(this,function(){_.KB(Z.hostElement)})};
_.e.observeActiveEndpoint=function(){for(var q=this.activeEndpoint,Z=this.data,w=this.expandableItems.children,r=0,Y=w.length;r<Y;r++)w[r].activeEndpoint=q;Z&&Z.autoExpandCommand&&q&&!this.userToggled&&(w=this.data.autoExpandCommand,Z=!(!_.J(w,_.qZ)||!_.J(q,_.qZ)||_.J(w,_.qZ).browseId!==_.J(q,_.qZ).browseId),q=this.get("commandMetadata.webCommandMetadata.url",q),w=this.get("commandMetadata.webCommandMetadata.url",w),Z=Z||!!(q&&w&&q.includes(w)),this._setExpanded(Z),Z&&this.ytLazyListBehavior.fillRemainingListItems())};
var KQ=Hi6;KQ.prototype.observeActiveEndpoint=KQ.prototype.observeActiveEndpoint;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],KQ.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.cj.YtLazyListBehavior),_.A("design:type",Object)],KQ.prototype,"ytLazyListBehavior",void 0);_.X([_.fo("#expandable-items"),_.A("design:type",HTMLElement)],KQ.prototype,"expandableItems",void 0);
_.X([_.F(),_.A("design:type",Object)],KQ.prototype,"data",void 0);_.X([_.F({readOnly:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],KQ.prototype,"expanded",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],KQ.prototype,"initialCount",void 0);_.X([_.F(),_.A("design:type",Object)],KQ.prototype,"activeEndpoint",void 0);_.X([_.M("data","activeEndpoint","canShowMore"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],KQ.prototype,"observeActiveEndpoint",null);
KQ=_.X([_.l({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],KQ);
_.p(KQ,"ytd-guide-collapsible-entry-renderer",function(){if(dg6!==void 0)return dg6;var q=document.createElement("template");_.a(q,'\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" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" 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" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return dg6=q},{mode:_.NT("kevlar_poly_si_batch_j079")?1:2});var WUy;var ofF;var uvZ=function(){var q=_.N.apply(this,arguments)||this;q.allVideosCount=0;q.renderGuideEntry=!1;return q};
_.z(uvZ,_.N);uvZ.prototype.observeRenderEntry=function(){var q;this.renderGuideEntry=!((q=this.data)==null||!q.alwaysShow)||!!this.allVideosCount};
var sl=uvZ;sl.prototype.observeRenderEntry=sl.prototype.observeRenderEntry;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],sl.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],sl.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],sl.prototype,"activeEndpoint",void 0);_.X([_.F({selector:_.cD2}),_.A("design:type",Object)],sl.prototype,"allVideosCount",void 0);
_.X([_.F(),_.A("design:type",Object)],sl.prototype,"renderGuideEntry",void 0);_.X([_.g3("allVideosCount","data.alwaysShow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sl.prototype,"observeRenderEntry",null);sl=_.X([_.l({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],sl);
_.p(sl,"ytd-guide-downloads-entry-renderer",function(){if(ofF===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);ofF=q}q=ofF;return q},{mode:1});var LUb=function(){var q=_.N.apply(this,arguments)||this;q.youtab=_.b("web_enable_youtab");q.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return q};
_.z(LUb,_.N);_.e=LUb.prototype;_.e.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]]"}}}}}};
_.e.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var q=this.sectionItems.children,Z=0,w=q.length;Z<w;Z++)q[Z].activeEndpoint=this.activeEndpoint}};
_.e.handleAddToGuideSectionAction=function(q){var Z=_.J(q,uE6);if(Z&&this.data&&(q=Z.items,Z=Z.handlerData,q&&Z&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(Z)>-1)){Z=0;for(var w=q.length;Z<w;Z++)q[Z].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,q[Z])}};
_.e.handleRemoveFromGuideSectionAction=function(q){var Z=_.J(q,L5F);Z&&this.data&&(q=Z.guideEntryId,Z=Z.handlerData,q&&Z&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(Z)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(q,this.data.sectionItems),this.removeFromCollapsedSection(q,this.data.sectionItems)))};
_.e.removeFromExpandedSection=function(q,Z){q=this.getEntryIndexMatchingId(q,Z);q!==-1&&this.splice("data.sectionItems",q,1)};
_.e.removeFromCollapsedSection=function(q,Z){var w=Z.findIndex(function(r){return!!_.J(r,s68)});
w&&w!==-1&&Z[w]&&_.J(Z[w],s68)&&(Z=_.J(Z[w],s68).expandableItems)&&(q=this.getEntryIndexMatchingId(q,Z),q!==-1&&this.splice("data.sectionItems."+w+".guideCollapsibleEntryRenderer.expandableItems",q,1))};
_.e.getEntryIndexMatchingId=function(q,Z){var w=this;return Z.findIndex(function(r){return w.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",r)===q})};
var IB=LUb;IB.prototype.activeEndpointChanged=IB.prototype.activeEndpointChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],IB.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],IB.prototype,"actionHandlerBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],IB.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.fo("#section-items"),_.A("design:type",HTMLDivElement)],IB.prototype,"sectionItems",void 0);_.X([_.fo("#header-entry"),_.A("design:type",Object)],IB.prototype,"headerEntry",void 0);_.X([_.F(),_.A("design:type",Object)],IB.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],IB.prototype,"activeEndpoint",void 0);_.X([_.F(),_.A("design:type",Object)],IB.prototype,"youtab",void 0);
_.X([_.M("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],IB.prototype,"activeEndpointChanged",null);IB=_.X([_.l({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],IB);
_.p(IB,"ytd-guide-collapsible-section-entry-renderer",function(){if(WUy===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);WUy=q}q=WUy;return q},{mode:1});var SVl;var vfl;var jvZ=function(){var q=_.N.apply(this,arguments)||this;q.modernTypography=_.b("web_modern_typography");q.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 q};
_.z(jvZ,_.N);_.e=jvZ.prototype;
_.e.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}}}}};
_.e.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var q=_.i5(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);q&&q.length===1&&q[0]&&_.i5(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.e.handleResetChannelUnreadCountCommand=function(q){var Z;(q=(Z=_.J(q,j6C))==null?void 0:Z.channelId)&&this.data&&this.data.items&&(Z=this.getPathToEntryMatchingId(q))&&(this.set(Z+".guideEntryRenderer.count",0),this.set(Z+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.e.handleResetSubscriptionsUnreadDotCommand=function(q){var Z,w=(Z=_.J(q,tRu))==null?void 0:Z.targetId,r;w&&(r=this.data)!=null&&r.items&&(q=this.data.items.findIndex(function(Y){var C;return((C=Y.guideEntryRenderer)==null?void 0:C.targetId)===w}),q<0||this.set("data.items."+q+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.e.getPathToEntryMatchingId=function(q){if(this.data&&this.data.items){var Z=this.getEntryIndexMatchingId(q,this.data.items);if(Z>-1)return"data.items."+Z;for(var w=0;w<this.data.items.length;w++)if(Z=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[w]))if(Z=this.getEntryIndexMatchingId(q,Z),Z>-1)return"data.items."+w+".guideCollapsibleEntryRenderer.expandableItems."+Z}};
_.e.handleAddToGuideSectionAction=function(q){var Z=this;if(_.J(q,uE6)){var w=_.J(q,uE6).items;q=_.J(q,uE6).handlerData;var r,Y;w&&q&&((r=this.data)==null?void 0:(Y=r.handlerDatas)==null?void 0:Y.indexOf(q))>-1&&(w=w.filter(function(C){return(C=Z.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",C))&&!Z.isGuideItemPresent(C)}),this.unshift.apply(this,["data.items"].concat(_.Ju(w))))}};
_.e.isGuideItemPresent=function(q){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(q,this.data.items)!==-1)return!0;var Z=this.data.items.find(function(w){return!!w.guideCollapsibleEntryRenderer});
if((Z==null?0:Z.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(q,Z.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.e.getEntryIndexMatchingId=function(q,Z){var w=this;return Z.findIndex(function(r){return w.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",r)===q})};
_.e.handleRemoveFromGuideSectionAction=function(q){if(_.J(q,L5F)){var Z=_.J(q,L5F).guideEntryId;q=_.J(q,L5F).handlerData;var w,r;Z&&q&&((w=this.data)==null?void 0:(r=w.handlerDatas)==null?void 0:r.indexOf(q))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(Z,this.data.items),this.removeFromCollapsedSection(Z,this.data.items))}};
_.e.removeFromExpandedSection=function(q,Z){q=this.getEntryIndexMatchingId(q,Z);q!==-1&&this.splice("data.items",q,1)};
_.e.removeFromCollapsedSection=function(q,Z){var w=Z.findIndex(function(r){return!!r.guideCollapsibleEntryRenderer});
w!==-1&&(Z=Z[w].guideCollapsibleEntryRenderer.expandableItems)&&(q=this.getEntryIndexMatchingId(q,Z),q!==-1&&this.splice("data.items."+w+".guideCollapsibleEntryRenderer.expandableItems",q,1))};
_.e.activeEndpointChanged=function(){for(var q=_.E(this.hostElement).querySelector("#items").children,Z=0,w=q.length;Z<w;Z++)q[Z].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.e.guideOpenedChanged=function(){for(var q=_.E(this.hostElement).querySelector("#items").children,Z=0,w=q.length;Z<w;Z++)q[Z].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
var c4=jvZ;c4.prototype.guideOpenedChanged=c4.prototype.guideOpenedChanged;c4.prototype.activeEndpointChanged=c4.prototype.activeEndpointChanged;c4.prototype.persistentGuideChanged=c4.prototype.persistentGuideChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],c4.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],c4.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.cj.YtLazyListBehavior),_.A("design:type",Object)],c4.prototype,"ytLazyListBehavior",void 0);_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],c4.prototype,"ytdGuideStateAwareBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],c4.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],c4.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],c4.prototype,"modernTypography",void 0);_.X([_.F(),_.A("design:type",String)],c4.prototype,"type",void 0);_.X([_.F({value:20}),_.A("design:type",Number)],c4.prototype,"initialCount",void 0);_.X([_.F({value:10}),_.A("design:type",Number)],c4.prototype,"targetFramerate",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],c4.prototype,"autoFill",void 0);_.X([_.F({value:50}),_.A("design:type",Number)],c4.prototype,"renderDelay",void 0);
_.X([_.M("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],c4.prototype,"persistentGuideChanged",null);_.X([_.g3("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],c4.prototype,"activeEndpointChanged",null);_.X([_.g3("guideOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],c4.prototype,"guideOpenedChanged",null);
c4=_.X([_.l({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],c4);
_.p(c4,"ytd-guide-section-renderer",function(){if(vfl!==void 0)return vfl;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return vfl=q},{mode:_.NT("kevlar_poly_si_batch_j073")?1:2});var tnb;var RoF=function(){return _.N.apply(this,arguments)||this};
_.z(RoF,_.N);_.My.Object.defineProperties(RoF.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
var Mi=RoF;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Mi.prototype,"rendererBehaviors",void 0);_.X([_.F(),_.A("design:type",Object)],Mi.prototype,"data",void 0);_.X([_.F(),_.I("data.signInButton.buttonRenderer.style"),_.A("design:type",Object),_.A("design:paramtypes",[])],Mi.prototype,"alignByText",null);Mi=_.X([_.l({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],Mi);
_.p(Mi,"ytd-guide-signin-promo-renderer",function(){if(tnb===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);tnb=q}q=tnb;return q},{mode:1});var FI=function(){var q=_.N.apply(this,arguments)||this;q.showFooter=!1;return q};
_.z(FI,_.N);FI.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}}}}};
FI.prototype.attached=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1){Z=_.t().resolve(_.Gj(_.bc));if(!Z)return w.jumpTo(0);Z.setGuideData(q.hostElement);return _.W(w,0,3)}q.ytLazyListBehavior.initialCount=2;return w.return()})};
FI.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
var Ni=FI;Ni.prototype.dataChanged=Ni.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Ni.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.cj.YtLazyListBehavior),_.A("design:type",Object)],Ni.prototype,"ytLazyListBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ni.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],Ni.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Ni.prototype,"showFooter",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],Ni.prototype,"autoFill",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ni.prototype,"dataChanged",null);Ni=_.X([_.l({is:"ytd-guide-renderer",disableElementRegistration:!0})],Ni);
_.p(Ni,"ytd-guide-renderer",function(){if(SVl!==void 0)return SVl;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return SVl=q},{mode:_.NT("kevlar_poly_si_batch_j073")?1:2});var biV;var Jol=function(){var q=_.N.apply(this,arguments)||this;q.systemIcons=_.b("kevlar_system_icons");q.frostedGlass=_.b("web_frosted_glass");q.getEndpointForm=XIy;return q};
_.z(Jol,_.N);_.e=Jol.prototype;_.e.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.e.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.kO(this.data.formattedTitle))};
_.e.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.e.onDown=function(){this.interaction.triggerDown()};
_.e.onUp=function(){this.interaction.triggerUp()};
_.e.onTap=function(q){if(this.data.serviceEndpoint){var Z;_.b("shorts_controller_retrieve_seedless_sequence_v2")&&((Z=_.J(this.data.serviceEndpoint,_.Yz))==null?void 0:Z.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):pI8(this.data.serviceEndpoint,this);q.preventDefault()}else{var w;((w=this.data)==null?0:w.navigationEndpoint)&&!_.E1(_.E8(q),this.hostElement,["A".toString()])&&_.hy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.e.computeActive=function(q,Z){if(!q)return!1;var w=q.navigationEndpoint;q=q.serviceEndpoint;if(!w&&!q||!Z)return!1;if(w){q=_.J(w,_.qZ);var r=_.J(Z,_.qZ);if(q&&r)return q.browseId===r.browseId&&q.params===r.params;var Y;w=(Y=_.J(w.commandMetadata,_.XK))==null?void 0:Y.url;var C;Z=(C=_.J(Z.commandMetadata,_.XK))==null?void 0:C.url;return!(!w||!Z||w!==Z&&w!==_.gA(Z))}return this.isActiveShortsTab(q,Z)};
_.e.isActiveShortsTab=function(q,Z){Z=!!_.J(Z,_.Yz)||!!_.J(Z,_.vZ);return(!!_.J(q,_.Yz)||!!_.J(q,_.vZ))&&Z};
_.e.computeTitle=function(q,Z){return Z?"":_.kO(q)};
_.My.Object.defineProperties(Jol.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
var lz=Jol;lz.prototype.onTap=lz.prototype.onTap;lz.prototype.onUp=lz.prototype.onUp;lz.prototype.onDown=lz.prototype.onDown;lz.prototype.onActiveStateChange=lz.prototype.onActiveStateChange;lz.prototype.dataChanged=lz.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],lz.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],lz.prototype,"ytComponentBehavior",void 0);
_.X([_.U(_.jQ),_.A("design:type",Object)],lz.prototype,"ironButtonState",void 0);_.X([_.F(),_.A("design:type",Object)],lz.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],lz.prototype,"activeEndpoint",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],lz.prototype,"noLabels",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.A("design:type",Boolean)],lz.prototype,"isActive",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],lz.prototype,"systemIcons",void 0);_.X([_.fo("yt-interaction"),_.A("design:type",Object)],lz.prototype,"interaction",void 0);_.X([_.I("isActive"),_.A("design:type",Object),_.A("design:paramtypes",[])],lz.prototype,"ariaSelected",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],lz.prototype,"frostedGlass",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lz.prototype,"dataChanged",null);_.X([_.M("isActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lz.prototype,"onActiveStateChange",null);_.X([_.m2("down"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lz.prototype,"onDown",null);
_.X([_.m2("up"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lz.prototype,"onUp",null);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],lz.prototype,"onTap",null);lz=_.X([_.l({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],lz);
_.p(lz,"ytd-mini-guide-entry-renderer",function(){if(biV!==void 0)return biV;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return biV=q},{mode:_.NT("kevlar_poly_si_batch_j063")?1:2});var zoV;var BUb=function(){var q=_.N.apply(this,arguments)||this;q.allVideosCount=0;q.noLabels=_.b("kevlar_mini_guide_no_labels");q.frostedGlass=_.b("web_frosted_glass");return q};
_.z(BUb,_.N);_.e=BUb.prototype;_.e.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.e.visibleChanged=function(){if(this.visible&&!this.data){var q=_.t().resolve(_.Gj(_.bc));q&&q.setGuideData(this.hostElement)}};
_.e.dataChanged=function(){var q=[],Z;if((Z=this.data)!=null&&Z.items){Z=_.P(this.data.items);for(var w=Z.next();!w.done;w=Z.next()){w=w.value;var r=void 0;if((r=w.guideSectionRenderer)==null?0:r.items)for(r=void 0,w=_.P((r=w.guideSectionRenderer)==null?void 0:r.items),r=w.next();!r.done;r=w.next())if(r=r.value,r.guideEntryRenderer)r=r.guideEntryRenderer,r.isPrimary&&q.push({guideEntryRenderer:r});else if(r.guideCollapsibleSectionEntryRenderer){var Y=void 0;((Y=_.J(r.guideCollapsibleSectionEntryRenderer.headerEntry,
Uj))==null?0:Y.isPrimary)&&q.push({guideEntryRenderer:_.J(r.guideCollapsibleSectionEntryRenderer.headerEntry,Uj)});if(r=r.guideCollapsibleSectionEntryRenderer.sectionItems)for(r=_.P(r),Y=r.next();!Y.done;Y=r.next()){var C=Y.value;Y=_.J(C,Ix8);var d=void 0;((d=_.J(C,Uj))==null?0:d.isPrimary)?q.push({guideEntryRenderer:_.J(C,Uj)}):Y&&(C=void 0,_.J((C=Y)==null?void 0:C.entryRenderer,Uj)&&(Y.alwaysShow||this.allVideosCount)&&q.push({guideEntryRenderer:_.J(Y.entryRenderer,Uj)}))}}}}this.miniGuideItems=
q};
_.e.activeEndpointChanged=function(){for(var q=this.items.children,Z=0;Z<q.length;Z++)q[Z].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
var Gk=BUb;Gk.prototype.activeEndpointChanged=Gk.prototype.activeEndpointChanged;Gk.prototype.dataChanged=Gk.prototype.dataChanged;Gk.prototype.visibleChanged=Gk.prototype.visibleChanged;_.X([_.U(_.LO),_.A("design:type",Object)],Gk.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Gk.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],Gk.prototype,"ytdGuideStateAwareBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Gk.prototype,"ytComponentBehavior",void 0);_.X([_.fo("#items"),_.A("design:type",Object)],Gk.prototype,"items",void 0);_.X([_.F(),_.A("design:type",Object)],Gk.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],Gk.prototype,"visible",void 0);
_.X([_.F(),_.A("design:type",Object)],Gk.prototype,"miniGuideItems",void 0);_.X([_.F({selector:_.cD2}),_.A("design:type",Object)],Gk.prototype,"allVideosCount",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Gk.prototype,"noLabels",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Gk.prototype,"frostedGlass",void 0);_.X([_.g3("visible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Gk.prototype,"visibleChanged",null);
_.X([_.g3("data","allVideosCount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Gk.prototype,"dataChanged",null);_.X([_.g3("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Gk.prototype,"activeEndpointChanged",null);Gk=_.X([_.l({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],Gk);
_.p(Gk,"ytd-mini-guide-renderer",function(){if(zoV===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);zoV=q}q=zoV;return q},{mode:1});var azq;var nfC=/^[\x00-\x7F]+$/,Qvc=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");return q};
_.z(Qvc,_.N);_.My.Object.defineProperties(Qvc.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var q,Z=_.kO((q=this.data)==null?void 0:q.handle);if(Z)return _.UE("@"+Z)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var q=_.kO(this.displayHandle),Z,w=_.kO((Z=this.data)==null?void 0:Z.handleUrl);if(q&&w)return _.UE(w+q)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var q=_.kO(this.displayHandle);if(q&&!nfC.test(q)){var Z;return(Z=this.data)==null?void 0:Z.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var q=_.kO(this.displayHandleUrl),Z,w=_.kO((Z=this.data)==null?void 0:Z.urlInfoText);if(q&&w)return _.UE(w+" "+q)}}});
var pQ=Qvc;_.X([_.F(),_.A("design:type",Object)],pQ.prototype,"data",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],pQ.prototype,"displayHandle",null);_.X([_.I("displayHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],pQ.prototype,"displayHandleUrl",null);_.X([_.I("displayHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],pQ.prototype,"warningText",null);
_.X([_.I("displayHandleUrl"),_.A("design:type",Object),_.A("design:paramtypes",[])],pQ.prototype,"urlInfoTextWithUrl",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],pQ.prototype,"darkerDarkTheme",void 0);pQ=_.X([_.l({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],pQ);
_.p(pQ,"ytd-handles-claiming-confirm-dialog-content",function(){if(azq!==void 0)return azq;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return azq=q},{mode:1});var Ef6;var xgy=function(){var q=_.N.apply(this,arguments)||this;q.okButtonOverride={style:"mono",type:"outline",size:"M"};return q};
_.z(xgy,_.N);xgy.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
xgy.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
var XI=xgy;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],XI.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],XI.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],XI.prototype,"okButtonOverride",void 0);_.X([_.F(),_.A("design:type",Object)],XI.prototype,"data",void 0);XI=_.X([_.l({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],XI);
_.p(XI,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(Ef6!==void 0)return Ef6;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Ef6=q},{mode:1});var TUV;var Ug8=/^[\x00-\x7F]+$/,kqZ=function(){var q=_.N.apply(this,arguments)||this;q.isLoading=!1;q.darkerDarkTheme=_.b("web_darker_dark_theme");return q};
_.z(kqZ,_.N);kqZ.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var q;this.selectedHandle=(q=this.handleInput)==null?void 0:q.value;this.onSelectedHandleChanged(this.selectedHandle);_.i5(this.hostElement,"yt-refit-popups-action")}};
_.My.Object.defineProperties(kqZ.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.UE("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.UE(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Ug8.test(this.selectedHandle)){var q;return(q=this.data)==null?void 0:q.warningText}}}});
var ms=kqZ;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],ms.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ms.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],ms.prototype,"selectedHandle",void 0);_.X([_.F(),_.A("design:type",Object)],ms.prototype,"isLoading",void 0);_.X([_.F(),_.A("design:type",Function)],ms.prototype,"onSelectedHandleChanged",void 0);
_.X([_.fo("#channel-handle-input"),_.A("design:type",Object)],ms.prototype,"handleInput",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ms.prototype,"handleUrlPrefix",null);_.X([_.I("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],ms.prototype,"displayHandle",null);_.X([_.I("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],ms.prototype,"displayHandleUrl",null);
_.X([_.I("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],ms.prototype,"warningText",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ms.prototype,"darkerDarkTheme",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);ms=_.X([_.l({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],ms);
_.p(ms,"ytd-handles-claiming-edit-dialog-content",function(){if(TUV!==void 0)return TUV;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return TUV=q},{mode:1});var KUq;var sv8=function(){var q=_.N.apply(this,arguments)||this;q.actionButtonOverride={style:"mono",type:"filled",size:"M"};q.cancelButtonOverride={style:"mono",type:"text",size:"M"};q.selectButtonDisabled=!1;q.isLoading=!1;q.hasSelectedHandleEventListener=!1;q.selectedHandleChanged=function(Z){q.selectedHandle=Z};
return q};
_.z(sv8,_.N);_.e=sv8.prototype;_.e.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.e.onDataChanged=function(){var q,Z;this.selectedHandle=(Z=_.J((q=this.data)==null?void 0:q.inputField,VR7))==null?void 0:Z.handle};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.onCancel=function(){this.selectedHandle="";_.yY(this.hostElement,"yt-close-popup-action",[this.is])};
_.e.onSelectHandle=function(){var q=this;if(this.selectedHandle!==void 0){var Z;((Z=this.data)==null?void 0:Z.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(w,r){if(r.newHandleUpdateStatus!==void 0&&r.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&r.newHandleUpdateStatus.errorMessage)_.W9(q.hostElement,_.kO(r.newHandleUpdateStatus.errorMessage)),
q.isLoading=!1;else{var Y;if((Y=q.data)==null?0:Y.onChannelUpdateSuccess){w=q.data.onChannelUpdateSuccess;var C,d;if(r=(C=_.J(w,_.HZ))==null?void 0:(d=C.popup)==null?void 0:d.handlesClaimingConfirmDialogRenderer)r.handle=_.UE(q.selectedHandle);q.ytComponentBehavior.resolveCommand(w);_.yY(q.hostElement,"yt-close-popup-action",[q.is])}else q.isLoading=!1}},
onServerError:function(){var w;q.content&&((w=q.content)==null?0:w.handleInput)&&q.content.handleInput.validate();q.isLoading=!1;_.W9(q.hostElement,_.dT("TRY_AGAIN_LATER"))}}}))}};
_.e.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
var Av=sv8;Av.prototype.onDataChanged=Av.prototype.onDataChanged;Av.prototype.onSelectedHandleChanged=Av.prototype.onSelectedHandleChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Av.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Av.prototype,"actionButtonOverride",void 0);_.X([_.F(),_.A("design:type",Object)],Av.prototype,"cancelButtonOverride",void 0);_.X([_.F(),_.A("design:type",Object)],Av.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",String)],Av.prototype,"selectedHandle",void 0);_.X([_.F(),_.A("design:type",Object)],Av.prototype,"selectButtonDisabled",void 0);_.X([_.F(),_.A("design:type",Object)],Av.prototype,"isLoading",void 0);_.X([_.F(),_.A("design:type",Object)],Av.prototype,"hasSelectedHandleEventListener",void 0);_.X([_.F(),_.A("design:type",Object)],Av.prototype,"handleInput",void 0);
_.X([_.M("selectedHandle"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Av.prototype,"onSelectedHandleChanged",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Av.prototype,"onDataChanged",null);_.X([_.fo("ytd-handles-claiming-edit-dialog-content"),_.A("design:type",Object)],Av.prototype,"content",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Av.prototype,"ytRendererstamperBehavior",void 0);Av=_.X([_.l({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Av);
_.p(Av,"ytd-handles-claiming-edit-dialog-renderer",function(){if(KUq!==void 0)return KUq;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return KUq=q},{mode:1});var Izu;var coy=function(){return _.N.apply(this,arguments)||this};
_.z(coy,_.N);_.My.Object.defineProperties(coy.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null?0:q.handle){var Z;return _.UE("@"+_.kO((Z=this.data)==null?void 0:Z.handle))}}}});
var fQ=coy;_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],fQ.prototype,"formattedHandle",null);_.X([_.F(),_.A("design:type",Object)],fQ.prototype,"data",void 0);fQ=_.X([_.l({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],fQ);
_.p(fQ,"ytd-handles-claiming-radio-option-renderer",function(){if(Izu!==void 0)return Izu;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Izu=q},{mode:1});var MnD;var FU7=/^[\x00-\x7F]+$/,D3=function(){var q=_.N.apply(this,arguments)||this;q.initialRadioIndex="-1";q.isLoading=!1;q.darkerDarkTheme=_.b("web_darker_dark_theme");q.maybeSubmitFeedback=function(){q.feedbackSurveyRenderer.submitSurvey()};
return q};
_.z(D3,_.N);D3.prototype.updateSelectedHandleIndexFromBinding=function(q){this.selectedRadioIndex=+q.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(q)};
D3.prototype.selectedHandleChanged=function(q){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var Z;this.selectedHandle=(Z=this.handleInput)==null?void 0:Z.value;this.onSelectedHandleChanged(q)}};
_.My.Object.defineProperties(D3.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var q;return(((q=this.data)==null?void 0:q.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var q;return this.ytRendererBehavior.getSimpleString((q=this.data)==null?void 0:q.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.UE("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.UE(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!FU7.test(this.selectedHandle)){var q;return(q=this.data)==null?void 0:q.warningText}}}});
var hv=D3;_.X([_.F(),_.A("design:type",Object)],hv.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],hv.prototype,"initialRadioIndex",void 0);_.X([_.F(),_.A("design:type",Number)],hv.prototype,"selectedRadioIndex",void 0);_.X([_.F(),_.A("design:type",String)],hv.prototype,"selectedHandle",void 0);_.X([_.F(),_.A("design:type",Object)],hv.prototype,"isLoading",void 0);_.X([_.F(),_.A("design:type",Function)],hv.prototype,"onSelectedHandleChanged",void 0);
_.X([_.F(),_.A("design:type",Function)],hv.prototype,"onSelectedRadioIndexChanged",void 0);_.X([_.fo("#channel-handle-input"),_.A("design:type",Object)],hv.prototype,"handleInput",void 0);_.X([_.fo("ytd-feedback-survey-renderer"),_.A("design:type",Object)],hv.prototype,"feedbackSurveyRenderer",void 0);_.X([_.I("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],hv.prototype,"radioButtonLength",null);
_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],hv.prototype,"handleUrlPrefix",null);_.X([_.I("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],hv.prototype,"displayHandle",null);_.X([_.I("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],hv.prototype,"displayHandleUrl",null);_.X([_.I("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],hv.prototype,"warningText",null);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],hv.prototype,"darkerDarkTheme",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);hv=_.X([_.l({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],hv);
_.p(hv,"ytd-handles-claiming-select-dialog-content",function(){if(MnD!==void 0)return MnD;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return MnD=q},{mode:1});var NUV;var lzu=function(){var q=_.N.apply(this,arguments)||this;q.actionButtonOverride={style:"mono",type:"filled",size:"M"};q.cancelButtonOverride={style:"mono",type:"text",size:"M"};q.initialRadioIndex="-1";q.selectButtonDisabled=!1;q.isLoading=!1;q.selectedRadioIndexChanged=function(Z){q.selectedRadioIndex=Number(Z.detail.value)};
q.selectedHandleChanged=function(Z){q.selectedHandle=Z.detail.value};
q.darkerDarkTheme=_.b("web_darker_dark_theme");return q};
_.z(lzu,_.N);_.e=lzu.prototype;_.e.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.e.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.e.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.i5(this.hostElement,"yt-refit-popups-action")};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.yY(this.hostElement,"yt-close-popup-action",[this.is])};
_.e.onSelectHandle=function(){var q=this;if(this.selectedHandle!==void 0){var Z;((Z=this.data)==null?void 0:Z.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(w,r){if(r.newHandleUpdateStatus!==void 0&&r.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&r.newHandleUpdateStatus.errorMessage)_.W9(q.hostElement,_.kO(r.newHandleUpdateStatus.errorMessage)),
q.isLoading=!1;else{var Y;if((Y=q.data)==null?0:Y.onChannelUpdateSuccess){w=q.data.onChannelUpdateSuccess;r=_.J(w,_.HZ);var C;if(r==null?0:(C=r.popup)==null?0:C.handlesClaimingConfirmDialogRenderer)r.popup.handlesClaimingConfirmDialogRenderer.handle=_.UE(q.selectedHandle);q.ytComponentBehavior.resolveCommand(w);_.yY(q.hostElement,"yt-close-popup-action",[q.is])}else q.isLoading=!1}},
onServerError:function(){if(q.selectedRadioIndex===q.radioButtonLength){var w;q.content&&((w=q.content)==null?0:w.handleInput)&&q.content.handleInput.validate()}q.isLoading=!1;_.W9(q.hostElement,_.dT("TRY_AGAIN_LATER"))}}}))}};
_.e.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var q,Z;this.selectedHandle=(q=this.content)==null?void 0:(Z=q.handleInput)==null?void 0:Z.value}else this.selectedRadioIndex>=0&&((q=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(q==null?void 0:q.handle):this.selectedHandle=void 0)};
_.e.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.e.getRadioItem=function(q){if(this.radioButtonLength>q&&q>=0)return _.J(this.data.radioButton[q],Edc)};
_.My.Object.defineProperties(lzu.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var q;return(((q=this.data)==null?void 0:q.radioButton)||[]).length}}});
var yf=lzu;yf.prototype.onSelectedHandleChanged=yf.prototype.onSelectedHandleChanged;yf.prototype.onSelectedHandleIndexChanged=yf.prototype.onSelectedHandleIndexChanged;yf.prototype.onDataChanged=yf.prototype.onDataChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],yf.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],yf.prototype,"actionButtonOverride",void 0);_.X([_.F(),_.A("design:type",Object)],yf.prototype,"cancelButtonOverride",void 0);
_.X([_.F(),_.A("design:type",Object)],yf.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],yf.prototype,"initialRadioIndex",void 0);_.X([_.F(),_.A("design:type",Number)],yf.prototype,"selectedRadioIndex",void 0);_.X([_.F(),_.A("design:type",String)],yf.prototype,"selectedHandle",void 0);_.X([_.F(),_.A("design:type",Object)],yf.prototype,"selectButtonDisabled",void 0);_.X([_.F(),_.A("design:type",Object)],yf.prototype,"isLoading",void 0);
_.X([_.I("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],yf.prototype,"radioButtonLength",null);_.X([_.fo("ytd-handles-claiming-select-dialog-content"),_.A("design:type",Object)],yf.prototype,"content",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yf.prototype,"onDataChanged",null);
_.X([_.M("selectedRadioIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yf.prototype,"onSelectedHandleIndexChanged",null);_.X([_.M("selectedHandle"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yf.prototype,"onSelectedHandleChanged",null);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],yf.prototype,"darkerDarkTheme",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],yf.prototype,"ytRendererstamperBehavior",void 0);yf=_.X([_.l({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],yf);
_.p(yf,"ytd-handles-claiming-select-dialog-renderer",function(){if(NUV!==void 0)return NUV;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return NUV=q},{mode:1});var GqZ;var pMC;var XMc=function(){return _.N.apply(this,arguments)||this};
_.z(XMc,_.N);XMc.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
var iz=XMc;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],iz.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],iz.prototype,"data",void 0);iz=_.X([_.l({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],iz);
_.p(iz,"ytd-hotkey-dialog-section-option-renderer",function(){if(pMC!==void 0)return pMC;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return pMC=q},{mode:1});var mgD;var Aol=function(){return _.N.apply(this,arguments)||this};
_.z(Aol,_.N);Aol.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
var gR=Aol;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],gR.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],gR.prototype,"data",void 0);gR=_.X([_.l({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],gR);
_.p(gR,"ytd-hotkey-dialog-section-renderer",function(){if(mgD!==void 0)return mgD;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return mgD=q},{mode:1});var fzq=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");return q};
_.z(fzq,_.N);fzq.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
var qc=fzq;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],qc.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],qc.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],qc.prototype,"darkerDarkTheme",void 0);qc=_.X([_.l({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],qc);
_.p(qc,"ytd-hotkey-dialog-content",function(){if(GqZ!==void 0)return GqZ;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return GqZ=q},{mode:1});var Dgq;var hou=function(){return _.N.apply(this,arguments)||this};
_.z(hou,_.N);hou.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var q=document.querySelector("ytd-hotkey-dialog-content #scrollable");q&&(q.dialogElement=this.hostElement.parentElement)};
hou.prototype.onCloseTap=function(){_.yY(this.hostElement,"yt-close-popup-action")};
var Zm=hou;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Zm.prototype,"data",void 0);Zm=_.X([_.l({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Zm);
_.p(Zm,"ytd-hotkey-dialog-renderer",function(){if(Dgq!==void 0)return Dgq;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Dgq=q},{mode:1});var yol;var wi=function(){return _.N.apply(this,arguments)||this};
_.z(wi,_.N);wi.prototype.onYtServiceRequestError=function(){if(this.blocked){var q;var Z=(q=this.data)==null?void 0:q.defaultServiceEndpoint}else{var w;Z=(w=this.data)==null?void 0:w.toggledServiceEndpoint}var r;(Z=(r=_.J(Z,_.mLg))==null?void 0:r.onFailureAction)&&this.ytComponentBehavior.resolveCommand(Z);this.updateBlockState(!this.blocked)};
wi.prototype.onYtToggleButton=function(q){this.updateBlockState(q.detail.toggled)};
wi.prototype.updateBlockState=function(q){if(q!==this.blocked){var Z=this.blockedEntityKey;Z&&this.ytdReduxBehavior.dispatch(_.wp("blockStateEntity",Z,{key:Z,blocked:q}));this.set("data.isToggled",q)}};
_.My.Object.defineProperties(wi.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)}}});
var ri=wi;ri.prototype.onYtToggleButton=ri.prototype.onYtToggleButton;ri.prototype.onYtServiceRequestError=ri.prototype.onYtServiceRequestError;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],ri.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],ri.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ri.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],ri.prototype,"blockedEntityKey",void 0);
_.X([_.F({selectorArgs:["blockedEntityKey"],selector:function(q,Z){return _.iI(q.entities,"blockStateEntity",Z)}}),
_.A("design:type",Object)],ri.prototype,"blockStateEntity",void 0);_.X([_.I("data","blockStateEntity"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ri.prototype,"blocked",null);_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ri.prototype,"onYtServiceRequestError",null);
_.X([_.m2("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ri.prototype,"onYtToggleButton",null);ri=_.X([_.l({is:"ytd-block-button",disableElementRegistration:!0})],ri);
_.p(ri,"ytd-block-button",function(){if(yol!==void 0)return yol;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return yol=q},
{mode:1});var iiC;var gfy;var qo8=function(){return _.N.apply(this,arguments)||this};
_.z(qo8,_.N);var Yw=qo8;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Yw.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Yw.prototype,"data",void 0);Yw=_.X([_.l({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],Yw);
_.p(Yw,"ytd-kids-blocklist-picker-item-renderer",function(){if(gfy!==void 0)return gfy;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return gfy=q},{mode:1});var ZrF=function(){return _.N.apply(this,arguments)||this};
_.z(ZrF,_.N);ZrF.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
var $w=ZrF;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],$w.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],$w.prototype,"data",void 0);$w=_.X([_.l({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],$w);
_.p($w,"ytd-kids-blocklist-picker-content",function(){if(iiC!==void 0)return iiC;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return iiC=
q},{mode:_.NT("kevlar_poly_si_batch_j025")?1:2});var wsc;var raV=function(){var q=_.N.apply(this,arguments)||this;q.hasAnyRequestSucceeded=!1;q.hasAnyRequestFailed=!1;q.numPendingRequests=0;return q};
_.z(raV,_.N);_.e=raV.prototype;_.e.attached=function(){this.hostElement.setAttribute("dialog","")};
_.e.onDoneButtonTap=function(){_.yY(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.e.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.e.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.e.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.e.onPopupClosed=function(q){var Z,w;if(((Z=q.detail)==null?void 0:(w=Z.popup)==null?void 0:w.is)==="tp-yt-paper-dialog"){var r;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((r=this.data)==null?0:r.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.cX(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
var ev=raV;ev.prototype.onPopupClosed=ev.prototype.onPopupClosed;ev.prototype.onYtServiceRequestError=ev.prototype.onYtServiceRequestError;ev.prototype.onYtServiceRequestCompleted=ev.prototype.onYtServiceRequestCompleted;ev.prototype.onYtServiceRequestSent=ev.prototype.onYtServiceRequestSent;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],ev.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],ev.prototype,"data",void 0);_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ev.prototype,"onYtServiceRequestSent",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ev.prototype,"onYtServiceRequestCompleted",null);
_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ev.prototype,"onYtServiceRequestError",null);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ev.prototype,"onPopupClosed",null);ev=_.X([_.l({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],ev);
_.p(ev,"ytd-kids-blocklist-picker-renderer",function(){if(wsc!==void 0)return wsc;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return wsc=q},{mode:1});var Yoq;var $pC;var C4=function(){return _.N.apply(this,arguments)||this};
_.z(C4,_.N);C4.prototype.setTip=function(q){var Z=this;this.data&&(this.tip=vMF(LXb.getInstance(),q,this.data),_.I_(this,function(){_.hy(Z.hostElement,"yt-refit")}))};
C4.prototype.clearTip=function(){this.tip=void 0};
C4.prototype.computeHidden=function(q){return!q};
var Pc=C4;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Pc.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.A("design:type",Boolean)],Pc.prototype,"hidden",void 0);_.X([_.F(),_.A("design:type",Object)],Pc.prototype,"tip",void 0);Pc=_.X([_.l({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Pc);
_.p(Pc,"ytd-menu-popup-tip-renderer",function(){if($pC!==void 0)return $pC;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);
return $pC=q},{mode:1});var eJD;var CwV=function(){var q=_.N.apply(this,arguments)||this;q.useIcons=!1;q.systemIcons=_.b("kevlar_system_icons");q.useListItemStyles=_.b("web_list_item_style_for_menu_items");return q};
_.z(CwV,_.N);_.e=CwV.prototype;_.e.onFocus=function(){var q;(q=_.E(this.hostElement).querySelector("tp-yt-paper-item"))==null||q.focus()};
_.e.onTap=function(){var q=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(q&&_.J(q,_.$K))this.componentBehavior.resolveCommand(q),this.updateToggledStateInEntity();else if(q){this.componentBehavior.resolveCommand(q)||_.t().resolve(_.ps).resolveCommand(q,{form:{element:this.hostElement}});var Z;((Z=_.J(q,_.CR))==null?void 0:Z.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.e.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.e.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.e.updateToggledStateInEntity=function(){var q=this.data.toggleMenuServiceItemEntityKey,Z=!this.data.isToggled;q&&this.ytdReduxBehavior.dispatch(_.wp("toggleMenuServiceItemEntity",q,{key:q,isToggled:Z}))};
_.e.computeIcon=function(q,Z,w){return(q=q?w:Z)&&q.iconType?_.Xl(q.iconType):""};
_.e.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.e.isIconActive=function(q){return!_.b("toggle_menu_active_icon_killswitch")&&q};
_.My.Object.defineProperties(CwV.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return((q=this.data)==null?0:q.isToggled)?(Z=this.data)==null?void 0:Z.toggledText:(w=this.data)==null?void 0:w.defaultText}}});
var di=CwV;di.prototype.toggledStateEntityChanged=di.prototype.toggledStateEntityChanged;di.prototype.onYtServiceRequestCompleted=di.prototype.onYtServiceRequestCompleted;di.prototype.onTap=di.prototype.onTap;di.prototype.onFocus=di.prototype.onFocus;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],di.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],di.prototype,"componentBehavior",void 0);
_.X([_.U(_.LO),_.A("design:type",Object)],di.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],di.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],di.prototype,"useIcons",void 0);_.X([_.F({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.A("design:type",String)],di.prototype,"icon",void 0);
_.X([_.F({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(q,Z){return _.iI(q.entities,"toggleMenuServiceItemEntity",Z)}}),
_.A("design:type",Object)],di.prototype,"toggleMenuServiceItemEntity",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],di.prototype,"systemIcons",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],di.prototype,"useListItemStyles",void 0);_.X([_.m2("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],di.prototype,"onFocus",null);
_.X([_.I("data.isToggled"),_.A("design:type",Object),_.A("design:paramtypes",[])],di.prototype,"toggleButtonText",null);_.X([_.m2("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],di.prototype,"onTap",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],di.prototype,"onYtServiceRequestCompleted",null);
_.X([_.M("toggleMenuServiceItemEntity.isToggled","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],di.prototype,"toggledStateEntityChanged",null);di=_.X([_.l({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],di);
_.p(di,"ytd-toggle-menu-service-item-renderer",function(){if(eJD!==void 0)return eJD;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return eJD=q},{mode:1});var PwC;var dp7=function(){return _.N.apply(this,arguments)||this};
_.z(dp7,_.N);dp7.prototype.onFocus=function(){var q;(q=_.E(this.hostElement).querySelector("tp-yt-paper-item"))==null||q.focus()};
_.My.Object.defineProperties(dp7.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.EX(this.data.iconUrl)}}});
var Vu=dp7;Vu.prototype.onFocus=Vu.prototype.onFocus;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Vu.prototype,"rendererBehavior",void 0);_.X([_.U(_.ma.YtEndpointBehavior),_.A("design:type",Object)],Vu.prototype,"ytEndpointBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Vu.prototype,"data",void 0);_.X([_.m2("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vu.prototype,"onFocus",null);
_.X([_.I("data.iconUrl"),_.A("design:type",Object),_.A("design:paramtypes",[])],Vu.prototype,"imageSource",null);Vu=_.X([_.l({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Vu);
_.p(Vu,"ytd-menu-custom-icon-item-renderer",function(){if(PwC!==void 0)return PwC;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return PwC=q},{mode:_.NT("kevlar_poly_si_batch_j028")?1:2});_.xc(_.rH,"yt-list-item-view-model",{props:{data:_.zG,isMenuItem:_.zG,isCompact:_.zG,onTap:_.EL,trailingAccessory:_.zG,hideSelectionTextChevron:_.zG,disabled:_.zG,inPopup:_.zG,disableHorizontalPadding:_.zG,isOverlay:_.zG}});var VMC=function(){var q=_.N.apply(this,arguments)||this;q.disableBackdropFilter=_.b("web_disable_backdrop_filter");return q};
_.z(VMC,_.N);_.e=VMC.prototype;
_.e.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"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.e.computeAriaLabel=function(q){return q};
_.e.onPopupOpened=function(){this.items.selected=0;for(var q=_.P(_.E(this.items).children),Z=q.next();!Z.done;Z=q.next())Z.value.popupPositionTarget=this.positionTarget;if(q=this.popupTip||void 0)q.setTip(this.source||""),this.source=void 0;this.veData&&(q=_.b5())&&_.kK(q,[this.veData])};
_.e.onPopupClosed=function(){var q=this.popupTip||void 0;q&&q.clearTip()};
_.e.onIronActivate=function(q){this.shouldPersist(q)||_.yY(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(q=_.b5())&&_.sh(q,this.veData)};
_.e.shouldPersist=function(q){var Z,w;if(((Z=q.detail)==null?void 0:Z.selected)===void 0||(w=this.data)==null||!w.items)return!1;var r,Y;return!((Y=(r=this.data.items[q.detail.selected])==null?void 0:r.toggleMenuServiceItemRenderer)==null||!Y.persistentOnMenuPopup)};
_.e.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(q){return q.menuNavigationItemRenderer?!!q.menuNavigationItemRenderer.icon:q.menuServiceItemRenderer?!!q.menuServiceItemRenderer.icon:q.menuConditionalServiceItemRenderer?!!q.menuConditionalServiceItemRenderer.icon:q.menuConditionalNavigationItemRenderer?!!q.menuConditionalNavigationItemRenderer.icon:q.toggleMenuServiceItemRenderer?!!q.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
var Ob=VMC;Ob.prototype.onPopupClosed=Ob.prototype.onPopupClosed;Ob.prototype.onPopupOpened=Ob.prototype.onPopupOpened;_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],Ob.prototype,"ytEventForwardingBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ob.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ob.prototype,"ytRendererBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],Ob.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Ob.prototype,"veData",void 0);_.X([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.A("design:type",String)],Ob.prototype,"ariaLabel",void 0);_.X([_.F({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Ob.prototype,"useIcons",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Ob.prototype,"disableBackdropFilter",void 0);_.X([_.fo("#items"),_.A("design:type",Object)],Ob.prototype,"items",void 0);_.X([_.fo("ytd-menu-popup-tip-renderer"),_.A("design:type",Object)],Ob.prototype,"popupTip",void 0);_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ob.prototype,"onPopupOpened",null);
_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ob.prototype,"onPopupClosed",null);Ob=_.X([_.l({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],Ob);
_.p(Ob,"ytd-menu-popup-renderer",function(){if(Yoq!==void 0)return Yoq;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Yoq=q},{mode:1});var OrC;var Hr7=_.xl(function(q){q=_.n5(q,{icon:void 0});var Z=q.data;q=q.icon;var w=function(){return Z().iconBadgeText},r={},Y=_.GL("yt-spec-icon-badge-shape",function(){a:switch(Z().iconBadgeType){case "notification":var C="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":C="yt-spec-icon-badge-shape--type-cart";break a;default:C=""}return C},function(){a:switch(Z().iconBadgeStyle){case "overlay":var C="yt-spec-icon-badge-shape--style-overlay";
break a;default:C=""}return C},(r["yt-spec-icon-badge-shape--text-size-small"]=function(){var C=w();
return!!((C==null?0:C.length)&&C.length>2)},r));
return _.u("yt-icon-badge-shape",null,_.u(_.PF,{cond:q,then:function(C){return _.u("div",{class:Y},_.u("div",{class:"yt-spec-icon-badge-shape__icon"},_.u(_.q0,{icon:C})),_.u(_.PF,{cond:w,then:function(d){return _.u("div",{class:"yt-spec-icon-badge-shape__badge"},d)}}))}}))},"Nf");
Hr7.idomCompat=!0;_.xc(Hr7,"yt-icon-badge-shape",{props:{data:_.zG,icon:_.zG}});var Wzu=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};q.unseenCount=0;q.isOverlay=!1;return q};
_.z(Wzu,_.N);_.e=Wzu.prototype;_.e.attached=function(){var q=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(Z){q.onServiceWorkerMessage(Z)})};
_.e.onDataChanged=function(){this.isAttached&&!this.JSC$18076_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18076_lastData=this.data};
_.e.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.e.computeIcon=function(){var q,Z;return(q=this.data)==null?void 0:(Z=q.icon)==null?void 0:Z.iconType};
_.e.onServiceWorkerMessage=function(q){q.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.e.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.J(this.data.updateUnseenCountEndpoint,_.CR)&&_.J(this.data.updateUnseenCountEndpoint,_.CR).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.e.handleUpdateNotificationsUnseenCountAction=function(q){var Z=this;q=_.J(q,Sf7);q!=null&&q.unseenCount&&q.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(q.unseenCount),_.v5.addLowPriorityJob(function(){Z.data.updateUnseenCountEndpoint&&Z.ytComponentBehavior.resolveCommand(Z.data.updateUnseenCountEndpoint)},q.timeoutMs))};
_.e.onClick=function(){_.hy(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var q=_.i5(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),Z=this.data.menuRequest;q&&q.length===1&&q[0]?_.yY(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.e.handleTopbarMenuClosedAction=function(q){q==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.e.toggleIconState=function(q){this.iconButton&&(this.iconButton.pressed=q)};
_.e.sendUnseenCountRequest=function(q){var Z=this;_.WO(_.v5,function(){Z.ytComponentBehavior.resolveCommand(q)})};
_.e.updateCountUI=function(q){this.set("unseenCount",q<9?q:"9+")};
_.My.Object.defineProperties(Wzu.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
var Hc=Wzu;Hc.prototype.handleUpdateNotificationsUnseenCountAction=Hc.prototype.handleUpdateNotificationsUnseenCountAction;Hc.prototype.onDataChanged=Hc.prototype.onDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Hc.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.Et),_.A("design:type",Object)],Hc.prototype,"ytdOpenPopupBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Hc.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Hc.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Hc.prototype,"unseenCount",void 0);_.X([_.F(),_.A("design:type",Object)],Hc.prototype,"isOverlay",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],Hc.prototype,"showTooltips",void 0);_.X([_.fo("yt-icon-button"),_.A("design:type",Object)],Hc.prototype,"iconButton",void 0);
_.X([_.I("unseenCount"),_.A("design:type",Object),_.A("design:paramtypes",[])],Hc.prototype,"showNotificationCount",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Hc.prototype,"onDataChanged",null);_.X([_.m2("yt-update-notifications-unseen-count-action"),_.A("design:type",Function),_.A("design:paramtypes",[Object]),_.A("design:returntype")],Hc.prototype,"handleUpdateNotificationsUnseenCountAction",null);
Hc=_.X([_.l({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],Hc);
_.p(Hc,"ytd-notification-topbar-button-renderer",function(){if(OrC!==void 0)return OrC;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return OrC=q},{mode:_.NT("kevlar_poly_si_batch_j025")?1:2});var oSD;var Wc=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return q};
_.z(Wc,_.N);Wc.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}}}}}};
Wc.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
Wc.prototype.onDarkModeToggled=function(q){this.dark=q};
var oU=Wc;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],oU.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],oU.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],oU.prototype,"data",void 0);_.X([_.F({value:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],oU.prototype,"dark",void 0);
oU=_.X([_.l({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],oU);
_.p(oU,"yt-pdg-buy-flow-header-renderer",function(){if(oSD!==void 0)return oSD;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return oSD=q},{mode:1});var ut8;var LzS;var SoF=function(){var q=_.N.apply(this,arguments)||this;q.immediateValue=0;q.isDarkTheme=!1;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.z(SoF,_.N);_.e=SoF.prototype;_.e.created=function(){_.aD.requestAvailability()};
_.e.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.e.dataChanged=function(){var q=_.E(this.hostElement).querySelector("#color-slider");q.immediateValue&&this.updateSliderKnobAndGradientStyles(q.immediateValue);this.data.notches[0].knobColorArgb&&_.po(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.uq(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.zj("HTML_DIR")==="rtl"&&_.E(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.e.onSliderImmediateChange=function(){var q=_.E(this.hostElement).querySelector("#color-slider");q.dragging&&(q.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(q.immediateValue),this.updateSliderKnobAndGradientStyles(q.immediateValue)),this.updateSliderAria())};
_.e.onSliderChange=function(){var q=_.E(this.hostElement).querySelector("#color-slider");q.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(q.immediateValue),this.updateSliderKnobAndGradientStyles(q.immediateValue));this.updateSliderAria()};
_.e.updateSliderAria=function(){var q=_.E(this.hostElement).querySelector("#color-slider"),Z=_.E(this.hostElement).querySelector("#color-slider");Z=_.kO(this.data.notches[Z.immediateValue].tierValue);_.djz()&&_.hy(this.hostElement,"iron-announce",{text:Z});q.setAttribute("aria-valuetext",Z)};
_.e.updateSuperThanksSelectedTierEntity=function(q){if(q!==this.immediateValue){var Z,w,r=this==null?void 0:(Z=this.data)==null?void 0:(w=Z.superThanksSelectedTierEntity)==null?void 0:w.key;r&&r.length>0&&this.ytdReduxBehavior.dispatch(_.wp("superThanksSelectedTierEntity",r,{key:r,index:q}))}};
_.e.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.e.updateSliderKnobAndGradientStyles=function(q){this.immediateValue=q;q=this.data.notches[q];if(q==null?0:q.knobColorArgb)var Z={"--ytd-pdg-color-slider-knob-color":_.uq(q.knobColorArgb)};(q==null?0:q.linearGradientCssStyle)&&Z!==null&&(Z=Object.assign({},Z,{"--ytd-pdg-color-slider-active-color":q==null?void 0:q.linearGradientCssStyle}));Z!==null&&_.po(this.hostElement,Z)};
var uK=SoF;uK.prototype.onSliderChange=uK.prototype.onSliderChange;uK.prototype.onSliderImmediateChange=uK.prototype.onSliderImmediateChange;uK.prototype.dataChanged=uK.prototype.dataChanged;_.X([_.F(),_.A("design:type",Object)],uK.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],uK.prototype,"immediateValue",void 0);_.X([_.F(),_.A("design:type",Number)],uK.prototype,"maxMarkers",void 0);
_.X([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:$Al}),_.A("design:type",Object)],uK.prototype,"superThanksSelectedTierEntity",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],uK.prototype,"isDarkTheme",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],uK.prototype,"ytdReduxBehavior",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uK.prototype,"dataChanged",null);
_.X([_.m2("immediate-value-change"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uK.prototype,"onSliderImmediateChange",null);_.X([_.m2("change"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uK.prototype,"onSliderChange",null);uK=_.X([_.l({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],uK);
_.p(uK,"ytd-pdg-color-slider-renderer",function(){if(LzS!==void 0)return LzS;var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return LzS=q},{mode:1});var vSl;var jpc;var L4=null;
_.$l({is:"ytd-comment-input",_template:function(){if(jpc!==void 0)return jpc;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return jpc=q},
behaviors:[_.Bqz.YtHostElementBehavior,_.Pt,_.S_.YtComponentBehavior,_.kb.YtRendererstamperBehavior,_.I02.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 _.tC}},
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",_.XN(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;_.g2();this.focus()},
detached:function(){document.removeEventListener("tap",_.XN(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(q){q=q.detail;q=q.isCustomEmoji?q.shortcuts[0]:q.emojiId;var Z=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(Z,q);this.maybeUpdateTextDirection_();_.hy(this.hostElement,"input")},
getInputRange_:function(){var q=_.Vt();if(q){q=q.getBrowserRangeObject();for(var Z=q.commonAncestorContainer;Z;){if(Z===this.getEditableTextArea_())return q;Z=Z.parentNode}}q=this.getEditableTextArea_();q=_.bB(q,q.childNodes.length);q.select();return q.getBrowserRangeObject()},
insertTextWithEmojis_:function(q,Z,w){(Z=this.emojiManager.createDocumentFragment(Z,!0,!1,w===void 0?!0:w))&&Z.childNodes.length!==0&&(q.collapsed||q.deleteContents(),w=Z.lastChild,q.insertNode(Z),_.SDv(w).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var q=_.Vt();if(q){var Z=q.JSC$9109_getStartNode(),w=q.JSC$9109_getEndNode();if(mY6(Z)&&mY6(w)){var r=q.JSC$9109_getStartOffset(),Y;if(_.$Z&&Z.nodeType===Node.ELEMENT_NODE&&(Y=_.edv(Z)))_.bB(Y,0).select();else{Y=MQ(Z)?Z:_.E3(Z,MQ);var C=MQ(w)?w:_.E3(w,MQ);if(Y||C)if(q.isCollapsed()){if(Z.nodeType===Node.TEXT_NODE){q=!0;r===Z.length&&(q=!1);if(L4==="end"||L4==="right")q=!1;Z=Z.parentNode;q=[].concat(_.Ju(Z.parentNode.childNodes)).indexOf(Z)+(q?0:1);_.bB(Z.parentNode,q).select()}}else Y?
Y.previousSibling&&Y.previousSibling.length>0?_.J5(w,q.JSC$9109_getEndOffset(),Y.previousSibling,Y.previousSibling.length-1).select():(Z=document.createTextNode("\u200b"),Y.parentNode.insertBefore(Z,Y),_.J5(w,q.JSC$9109_getEndOffset(),Z,0).select()):C&&(C.nextSibling&&C.nextSibling.length>0?_.J5(Z,q.JSC$9109_getStartOffset(),C.nextSibling,1).select():(w=document.createTextNode("\u200b"),C.parentNode.insertBefore(w,C.nextSibling),_.J5(Z,q.JSC$9109_getStartOffset(),w,w.length).select()));L4=null}}else L4=
null}else L4=null},
leftKeyPressed_:function(){L4="left"},
rightKeyPressed_:function(){L4="right"},
endKeyPressed_:function(){L4="end"},
maybeDeleteChip_:function(){var q=icb(!0);if(q){var Z=_.Vt(),w=Z.JSC$9109_getStartNode();Z=Z.JSC$9109_getStartOffset();_.Sg(w,Z,q,q.childNodes.length).select()}},
maybeBackspaceChip_:function(){var q=icb(!1);if(q){var Z=_.Vt(),w=Z.JSC$9109_getStartNode();Z=Z.JSC$9109_getStartOffset();_.Sg(w,Z,q,0).select()}},
maybeBackspaceChipWordMode_:function(q){var Z=_.Vt();if(Z.isCollapsed()){var w=Z.JSC$9109_getStartNode();Z=Z.JSC$9109_getStartOffset();var r=gZb(w,Z,!0);r&&(_.Sg(w,Z,r,0).select(),document.execCommand("delete"),q.preventDefault(),q.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(q){var Z=_.Vt();if(Z.isCollapsed()){var w=Z.JSC$9109_getStartNode();Z=Z.JSC$9109_getStartOffset();var r=gZb(w,Z,!1);r&&(_.Sg(w,Z,r,r.childNodes.length).select(),document.execCommand("delete"),q.preventDefault(),q.stopImmediatePropagation())}},
onContentClick:function(q){q.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(q){q.defaultPrevented||q.currentTarget.tagName==="YTD-COMMENT-INPUT"&&MQ(q.target)&&q.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.E(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.E(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(q,Z){q=f8q(q,this.emojiManager,Z).cloneNode(!0);for(Z=q.firstChild;Z;)if(Z.nodeType!==1)Z=Z.nextSibling;else switch(Z.tagName){case "BR":var w=_.Rr();_.ov9(w,Z);Z=w.nextSibling;break;case "DIV":(w=Z.lastChild)&&Z.nextSibling&&_.ar(_.Rr(),w);Z.previousSibling&&(Z.previousSibling.nodeType===1||Z.previousSibling.nodeType===3&&!Z.previousSibling.textContent.endsWith("\n"))&&_.Br(_.Rr(),Z);w&&w.nodeName==="BR"&&_.Vb(w);w=Z;Z.hasChildNodes()?(Z=Z.firstChild,
_.u59(w)):(Z=Z.nextSibling,_.Vb(w));break;default:Z=Z.nextSibling}return qvq(q)},
setTextAreaValue:function(q){q||(q="");var Z=this.getEditableFormattedString_();Z.text="";this.getEditableTextArea_().innerText="";typeof q==="string"&&(q={runs:[{text:q}]});Z.text=q},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();L4=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var q=this.getEditableTextArea_();q&&(_.bB(q,q.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.zj("HTML_DIR")==="rtl"){var q=this.getEditableTextArea_(),Z=this.getTextAreaValue()!==""?"auto":"rtl";q.setAttribute("dir",Z)}},
handleInputEvent_:function(){var q=null;if(this.isEmojiButtonDisplayed){var Z=this.getInputRange_();Z&&(q=this.emojiInput.retrieveTextBeforeRange(Z))}this.insertText_(q,!0);this.updateCharCount_();q=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=q.scrollHeight>q.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var q=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:q})},
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(q){this.isEmojiButtonDisplayed&&(q.preventDefault(),q.stopImmediatePropagation(),q=q.clipboardData.getData("text/plain"),this.insertText_(q,!1,!1),_.hy(this.hostElement,"input"))},
insertText_:function(q,Z,w){Z=Z===void 0?!1:Z;w=w===void 0?!0:w;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&q){var r=this.getInputRange_().cloneRange();this.emojiManager&&r&&(Z&&this.emojiInput.offsetStartOfRangeBy(r,q.length),this.insertTextWithEmojis_(r,q,w),AzF(this.getEditableTextArea_().lastChild)||(r=this.getInputRange_().cloneRange()),r&&(this.emojiInput.updateSuggestions(r,q),this.updateSuggestionOffset_(r)))}},
getSimpleString:_.kO,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(q){return q?"focused":"not-focused"},
computePlaceholderText_:function(q){return this.getSimpleString(q)},
computeEditableText_:function(q){return this.getSimpleString(q)},
onPrefilledContentDismissed_:function(q){q.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(q,Z){q?this.fire("yt-autonav-pause-focus"):Z!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(q){var Z=this.getEditableTextArea_();[].concat(_.Ju(q.dataTransfer.items)).forEach(function(w){w.kind==="string"&&w.type.match("^text/plain")&&w.getAsString(function(r){Z.appendChild(document.createTextNode(r))})});
q.preventDefault()},
preventDefault_:function(q){q.preventDefault()},
onSuggestionInsert_:function(q){this.insertTextWithEmojis_(q.detail.range,q.detail.text)},
onEmojiSuggestionClick_:function(q){this.emojiInput.insertSuggestion(q.detail)},
updateSuggestionOffset_:function(q){if(this.emojiInput&&_.E(this.emojiInput).querySelector("#dropdown")){var Z=this.getEditableTextArea_().getBoundingClientRect().bottom,w=q.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(Z-w)+5;Z=this.getEditableTextArea_().getBoundingClientRect().left;q=q.getBoundingClientRect().left-Z;_.E(this.emojiInput).querySelector("#dropdown").style.marginLeft=q+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.zo("yt-post"));return this.localStorage}});var tMD=function(){var q=_.N.apply(this,arguments)||this;q.currentCommentOptionIndex=0;q.isEmojiPickerDisplayed=!1;q.emojiManager=_.tC;q.isUgcEmpty=!1;q.userGeneratedCommentChangedHandler=function(){_.hy(q.hostElement,"ytd-pdg-user-generated-comment-changed");q.isEmojiYtdCommentInputEnabled&&(q.isUgcEmpty=!q.ytdCommentInputEl.getTextAreaValue())};
q.pasteHandler=function(Z){Z.preventDefault();Z.stopImmediatePropagation();var w;if(Z=(w=Z.clipboardData)==null?void 0:w.getData("text/plain"))w=document.getSelection().getRangeAt(0),w.collapsed||w.deleteContents(),Z=document.createTextNode(Z),w.insertNode(Z),w.selectNodeContents(Z),w.collapse(!1),Z=window.getSelection(),Z.removeAllRanges(),Z.addRange(w)};
q.onDocumentClick=function(Z){if(q.isEmojiPickerDisplayed){var w,r,Y;!(Z.target instanceof Node)||(w=Z.composedPath())!=null&&w.includes(q.editableTextEl)||(r=Z.composedPath())!=null&&r.includes(q.emojiButtonEl)||(Y=Z.composedPath())!=null&&Y.includes(q.emojiPickerEl)||(q.isEmojiPickerDisplayed=!1)}};
return q};
_.z(tMD,_.N);_.e=tMD.prototype;_.e.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.e.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.e.detached=function(){var q;(q=this.contentEl)==null||q.removeEventListener("input",this.userGeneratedCommentChangedHandler);var Z;(Z=this.contentEl)==null||Z.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.e.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.e.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var q;this.contentEl.textContent=this.rendererBehavior.getSimpleString((q=this.data)==null?void 0:q.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.e.reloadEmojis=function(){this.emojiPickerEl&&_.J(this.emojiPicker,_.r5X)&&this.emojiPickerEl.updateEmojiCategories()};
_.e.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.po(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.e.handleBackgroundColorStyling=function(){var q;if((q=this.currentCommentOption)==null?0:q.commentBackgroundColorArgb){var Z;_.po(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.uq((Z=this.currentCommentOption)==null?void 0:Z.commentBackgroundColorArgb)})}else _.po(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.e.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var q;(q=this.contentEl)==null||q.focus()}};
_.e.onEditButtonClick=function(q){var Z=document.getSelection();Z&&this.contentEl&&(q.stopPropagation(),q.preventDefault(),Z.selectAllChildren(this.contentEl),Z.collapseToEnd())};
_.e.onContentDrop=function(q){var Z=this;if(q.dataTransfer){q=_.P(q.dataTransfer.items);for(var w=q.next();!w.done;w=q.next())w=w.value,w.kind==="string"&&w.type.match("^text/plain")&&w.getAsString(function(r){var Y;(Y=Z.contentEl)==null||Y.appendChild(document.createTextNode(r))})}};
_.e.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.e.getUserGeneratedCommentText=function(){var q,Z=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(q=this.contentEl)==null?void 0:q.textContent;return Z?Z.trim():""};
_.e.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.e.onEmojiSelect=function(q){this.ytdCommentInputEl.onEmojiSelect(q)};
_.My.Object.defineProperties(tMD.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.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 q;return!((q=this.currentCommentOption)==null||!q.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var q;if(_.J((q=this.currentCommentOption)==null?void 0:q.chipRenderer,_.WGK)){var Z;return _.J((Z=this.currentCommentOption)==null?void 0:Z.chipRenderer,_.WGK)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var q,Z;return((q=this.data)==null?0:q.commentOptionRenderers)?_.J((Z=this.data)==null?void 0:Z.commentOptionRenderers[this.superThanksSelectedTierEntity.index],Ap7):void 0}var w,r;return((w=this.data)==null?0:w.commentOptionRenderers)?_.J((r=this.data)==null?void 0:r.commentOptionRenderers[this.currentCommentOptionIndex],Ap7):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var q;return this.rendererBehavior.getSimpleString((q=this.data)==null?void 0:q.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var q;return this.rendererBehavior.getSimpleString((q=this.data)==null?void 0:q.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var q,Z;return(Z=_.J((q=this.data)==null?void 0:q.commentDialog,_.iNX))==null?void 0:Z.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var q,Z;return(Z=_.J((q=this.data)==null?void 0:q.commentDialog,_.iNX))==null?void 0:Z.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var q,Z;return(Z=_.J((q=this.data)==null?void 0:q.commentDialog,_.iNX))==null?void 0:Z.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var q,Z,w=(Z=_.J((q=this.data)==null?void 0:q.commentDialog,_.iNX))==null?void 0:Z.emojiPicker;if(!_.J(w,_.r5X)||!_.J(w,_.r5X).categories)return!1;q=function(C){return C.emojiPickerCategoryRenderer?C.emojiPickerCategoryRenderer.emojiIds&&C.emojiPickerCategoryRenderer.emojiIds.length>0:C.emojiPickerUpsellCategoryRenderer?C.emojiPickerUpsellCategoryRenderer.emojis&&C.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var r,Y;return((r=_.J(w,_.r5X))==null?0:(Y=r.categories)==null?0:Y.find(q))?!0:!1}}});
var Sv=tMD;Sv.prototype.onEmojiSelect=Sv.prototype.onEmojiSelect;Sv.prototype.dataChanged=Sv.prototype.dataChanged;Sv.prototype.currentCommentOptionChanged=Sv.prototype.currentCommentOptionChanged;_.X([_.U(_.LO),_.A("design:type",Object)],Sv.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Sv.prototype,"rendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Sv.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.fo("#content-dom-if"),_.A("design:type",_.C5)],Sv.prototype,"contentDomIfEl",void 0);_.X([_.fo("#content-no-emojis"),_.A("design:type",HTMLElement)],Sv.prototype,"contentEl",void 0);_.X([_.fo("#container"),_.A("design:type",HTMLElement)],Sv.prototype,"containerEl",void 0);_.X([_.fo("#comment-chip-container"),_.A("design:type",HTMLElement)],Sv.prototype,"paidCommentChipContainerEl",void 0);_.X([_.fo("#text-input"),_.A("design:type",HTMLElement)],Sv.prototype,"editableTextEl",void 0);
_.X([_.fo("#emoji-button"),_.A("design:type",HTMLElement)],Sv.prototype,"emojiButtonEl",void 0);_.X([_.fo("#emoji-picker > yt-emoji-picker-renderer"),_.A("design:type",Object)],Sv.prototype,"emojiPickerEl",void 0);_.X([_.fo("#text-input > ytd-comment-input"),_.A("design:type",Object)],Sv.prototype,"ytdCommentInputEl",void 0);_.X([_.F(),_.A("design:type",Object)],Sv.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Sv.prototype,"currentCommentOptionIndex",void 0);
_.X([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:$Al}),_.A("design:type",Object)],Sv.prototype,"superThanksSelectedTierEntity",void 0);_.X([_.F(),_.A("design:type",Object)],Sv.prototype,"isEmojiPickerDisplayed",void 0);_.X([_.F(),_.A("design:type",Object)],Sv.prototype,"emojiManager",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Sv.prototype,"isUgcEmpty",void 0);
_.X([_.M("currentCommentOption"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Sv.prototype,"currentCommentOptionChanged",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Sv.prototype,"dataChanged",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Sv.prototype,"isEmojiYtdCommentInputEnabled",null);
_.X([_.I("data.title"),_.A("design:type",Object),_.A("design:paramtypes",[])],Sv.prototype,"title",null);_.X([_.I("data.authorText"),_.A("design:type",Object),_.A("design:paramtypes",[])],Sv.prototype,"channelName",null);_.X([_.I("data.commentOptionRenderers","currentCommentOption"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Sv.prototype,"shouldShowPaidCommentChipRenderer",null);
_.X([_.I("data.commentOptionRenderers","currentCommentOption"),_.A("design:type",Object),_.A("design:paramtypes",[])],Sv.prototype,"paidCommentChipRenderer",null);_.X([_.I("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],Sv.prototype,"currentCommentOption",null);
_.X([_.I("data.defaultCommentText","superThanksSelectedTierEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],Sv.prototype,"commentText",null);_.X([_.I("data.placeholderText"),_.A("design:type",Object),_.A("design:paramtypes",[])],Sv.prototype,"placeholderText",null);_.X([_.I("data.commentDialog.commentDialogRenderer.editableText"),_.A("design:type",Object),_.A("design:paramtypes",[])],Sv.prototype,"editableText",null);
_.X([_.I("data.commentDialog.commentDialogRenderer.emojiButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],Sv.prototype,"emojiButton",null);_.X([_.I("data.commentDialog.commentDialogRenderer.emojiPicker"),_.A("design:type",Object),_.A("design:paramtypes",[])],Sv.prototype,"emojiPicker",null);
_.X([_.I("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Sv.prototype,"isEmojiButtonDisplayed",null);_.X([_.m2("yt-emoji-select"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Sv.prototype,"onEmojiSelect",null);Sv=_.X([_.l({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Sv);
_.p(Sv,"ytd-pdg-comment-preview-renderer",function(){if(vSl!==void 0)return vSl;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return vSl=q},{mode:2});var RJq;var brZ=function(){var q=_.N.apply(this,arguments)||this;q.selected=!1;return q};
_.z(brZ,_.N);_.e=brZ.prototype;_.e.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.e.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.e.dataChanged=function(){this.data&&(_.FN(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.po(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.uq(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.uq(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.e.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.e.onClick=function(){this.logClick()};
_.e.onKeyboardSelect=function(){_.hy(this.hostElement,"tap");this.onClick()};
_.e.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var vc=brZ;vc.prototype.onClick=vc.prototype.onClick;vc.prototype.selectedChanged=vc.prototype.selectedChanged;vc.prototype.dataChanged=vc.prototype.dataChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],vc.prototype,"componentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Pt),_.A("design:type",Object)],vc.prototype,"ironA11yKeysBehavior",void 0);
_.X([_.U(_.tJ),_.A("design:type",Object)],vc.prototype,"ironSelectableBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],vc.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],vc.prototype,"shownThumbnail",void 0);_.X([_.F(),_.A("design:type",Object)],vc.prototype,"basePriceText",void 0);_.X([_.F(),_.A("design:type",Object)],vc.prototype,"purchaseCommand",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],vc.prototype,"selected",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vc.prototype,"dataChanged",null);_.X([_.M("selected"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vc.prototype,"selectedChanged",null);_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vc.prototype,"onClick",null);
vc=_.X([_.l({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],vc);
_.p(vc,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(RJq!==void 0)return RJq;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return RJq=q},{mode:1});var Jac=function(){var q=_.N.apply(this,arguments)||this;q.selectedItemIndex=0;q.buyButtonDisabled=!1;return q};
_.z(Jac,_.N);_.e=Jac.prototype;
_.e.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]]"}}}}}};
_.e.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var q;var Z=(q=_.J(this.data.colorSlider,mOl))==null?void 0:q.notches[this.selectedItemIndex].purchaseCommand}else{var w;Z=(w=_.J(this.data.selectableItemButtons[this.selectedItemIndex],DOS))==null?void 0:w.purchaseCommand}if(Z){q=_.J(Z,_.Ebg);q.productData||(q.productData={});var r;q.productData={pdgData:{commentMessageText:(r=this.commentPreviewRenderer)==null?void 0:r.getUserGeneratedCommentText()}};
_.hy(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(Z)}}};
_.e.dataChanged=function(){if(this.data){_.tC.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.jND(_.tC,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.tC.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var q;this.buyButtonDisabled=!((q=_.J(this.data.commentPreview,fxD))==null||!q.placeholderText);this.updatePriceSelectorStatus();var Z;if((Z=this.data)==null?0:Z.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;q=[];this.data.preloadImages&&(q=this.data.preloadImages);
q=q.map(function(w){return _.TL(w.thumbnails,1920)});
q=_.P(q);for(Z=q.next();!Z.done;Z=q.next())(Z=Z.value)&&_.Ef2(Z).thenCatch(function(){_.bx(Error("kl"))})}};
_.e.superThanksSelectedTierEntityChanged=function(){var q;(this==null?void 0:(q=this.superThanksSelectedTierEntity)==null?void 0:q.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.e.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.e.updatePriceSelectorStatus=function(){this.isColorSlider?(_.E(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.E(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.E(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.E(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.e.closeBuyFlow=function(){_.yY(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.e.onUserGeneratedContentChanged=function(){var q;this.buyButtonDisabled=!((q=this.commentPreviewRenderer)==null?0:q.getUserGeneratedCommentText())};
_.e.updateSelectedItemIndexFromBinding=function(q){this.selectedItemIndex=q.detail.value};
_.My.Object.defineProperties(Jac.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.disclaimerText)}}});
var jv=Jac;jv.prototype.onUserGeneratedContentChanged=jv.prototype.onUserGeneratedContentChanged;jv.prototype.closeBuyFlow=jv.prototype.closeBuyFlow;jv.prototype.selectedItemIndexChanged=jv.prototype.selectedItemIndexChanged;jv.prototype.superThanksSelectedTierEntityChanged=jv.prototype.superThanksSelectedTierEntityChanged;jv.prototype.dataChanged=jv.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],jv.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],jv.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],jv.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],jv.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],jv.prototype,"selectedItemIndex",void 0);_.X([_.F(),_.A("design:type",Boolean)],jv.prototype,"isColorSlider",void 0);
_.X([_.F(),_.A("design:type",Object)],jv.prototype,"buyButtonDisabled",void 0);_.X([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:$Al}),_.A("design:type",Object)],jv.prototype,"superThanksSelectedTierEntity",void 0);_.X([_.fo("ytd-pdg-comment-preview-renderer"),_.A("design:type",Object)],jv.prototype,"commentPreviewRenderer",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],jv.prototype,"ytdReduxBehavior",void 0);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jv.prototype,"dataChanged",null);_.X([_.M("superThanksSelectedTierEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jv.prototype,"superThanksSelectedTierEntityChanged",null);_.X([_.M("selectedItemIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jv.prototype,"selectedItemIndexChanged",null);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jv.prototype,"closeBuyFlow",null);_.X([_.m2("ytd-pdg-user-generated-comment-changed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jv.prototype,"onUserGeneratedContentChanged",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],jv.prototype,"isDisclaimerTextShown",null);
jv=_.X([_.l({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],jv);
_.p(jv,"yt-super-vod-buy-flow-content-renderer",function(){if(ut8!==void 0)return ut8;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return ut8=q},{mode:1});var zJu;var BPF=function(){var q=_.N.apply(this,arguments)||this;q.lottieAnimationRef={};return q};
_.z(BPF,_.N);_.e=BPF.prototype;_.e.created=function(){_.aD.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.XN(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.e.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.hy(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.e.detached=function(){this.autoCloseJobId&&_.v5.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.XN(this,this.onPopupIronOverlayOpened))};
_.e.dataChanged=function(){var q=this;this.data&&this.data.autoCloseDelay&&(_.yY(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.sL(_.v5,function(){q.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.po(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.e.onDOMLoadedLottie=function(){var q=this,Z,w,r=Number((Z=this.data)==null?void 0:(w=Z.autoCloseDelay)==null?void 0:w.seconds)||0;this.fadeOutJobId=_.sL(_.v5,function(){q.lottiePlayerEl.classList.add("fadeout")},(r-.25)*1E3);
this.autoCloseJobId=_.sL(_.v5,function(){q.closePopup()},r*1E3)};
_.e.openPopup=function(){this.ironOverlayBehavior.open()};
_.e.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.yY(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.ZC(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.t().resolve(_.ps).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.v5.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.v5.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.e.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var q,Z;(q=this.lottieAnimationRef)==null||(Z=q.lottieEl)==null||Z.destroy();q=this.data.lottie;var w,r;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:q.url+"_"+Math.random(),path:q.url,autoplay:!0,loop:(r=(w=q.settings)==null?void 0:w.loop)!=null?r:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.My.Object.defineProperties(BPF.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var q,Z;return!!((q=this.data)==null?0:(Z=q.lottie)==null?0:Z.url)}}});
var tU=BPF;tU.prototype.maybeInitializeLottie=tU.prototype.maybeInitializeLottie;tU.prototype.dataChanged=tU.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],tU.prototype,"rendererBehavior",void 0);_.X([_.U(_.Tv),_.A("design:type",Object)],tU.prototype,"ironOverlayBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],tU.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],tU.prototype,"lottiePlayerProps",void 0);
_.X([_.F(),_.A("design:type",Object)],tU.prototype,"lottieAnimationRef",void 0);_.X([_.fo("ytd-lottie-player"),_.A("design:type",HTMLElement)],tU.prototype,"lottiePlayerEl",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tU.prototype,"dataChanged",null);_.X([_.I("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],tU.prototype,"hasLottieAnimation",null);
_.X([_.M("data.lottie.url"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tU.prototype,"maybeInitializeLottie",null);tU=_.X([_.l({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],tU);
_.p(tU,"ytd-desktop-image-overlay-renderer",function(){if(zJu!==void 0)return zJu;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return zJu=q},{mode:1});var a06;var nSb=function(){return _.N.apply(this,arguments)||this};
_.z(nSb,_.N);_.e=nSb.prototype;_.e.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"}}}}};
_.e.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",_.XN(this,this.closePopup))};
_.e.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.XN(this,this.closePopup))};
_.e.dataChanged=function(){_.i5(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.J(this.data.header,XaF)&&(this.hasBackgroundBanner=!!_.J(this.data.header,XaF).backgroundBanner)};
_.e.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.XN(this,this.closePopup))};
_.e.closePopup=function(){this.data&&this.data.onCloseCommand&&_.qM(this.hostElement,[this.data.onCloseCommand])};
var RU=nSb;RU.prototype.handleBuyflowSelectionSubmitted=RU.prototype.handleBuyflowSelectionSubmitted;RU.prototype.dataChanged=RU.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],RU.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],RU.prototype,"data",void 0);
_.X([_.F({value:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],RU.prototype,"hasBackgroundBanner",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RU.prototype,"dataChanged",null);_.X([_.m2("yt-pdg-buy-flow-selection-submitted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RU.prototype,"handleBuyflowSelectionSubmitted",null);
RU=_.X([_.l({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],RU);
_.p(RU,"ytd-pdg-buy-flow-renderer",function(){if(a06!==void 0)return a06;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return a06=q},{mode:1});var QpV;var ES7=function(){var q=_.N.apply(this,arguments)||this;q.isOpen=!1;q.isPlaylistCreated=!1;return q};
_.z(ES7,_.N);_.e=ES7.prototype;_.e.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.e.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.hy(this.hostElement,"yt-refit")};
_.e.onCreateTap=function(){var q=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.qM(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(Z,w){if(!_.b("killswitch_ep_in_create_playlist_response")&&(w==null?0:w.actions))for(Z=_.P(w.actions),w=Z.next();!w.done;w=Z.next())w=w.value,_.J(w,_.zf)&&q.ytComponentBehavior.resolveCommand(w)}}]),this.isPlaylistCreated=!0)};
_.e.onKeydown=function(q){if(q.keyCode===13)this.onCreateTap()};
_.e.onServiceRequestCompleted=function(q){q.stopPropagation();_.yY(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.e.computePrivacyBadge=function(q){return q?[{metadataBadgeRenderer:q}]:[]};
var sb=ES7;sb.prototype.onServiceRequestCompleted=sb.prototype.onServiceRequestCompleted;sb.prototype.onKeydown=sb.prototype.onKeydown;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],sb.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],sb.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],sb.prototype,"isOpen",void 0);
_.X([_.F(),_.A("design:type",Object)],sb.prototype,"isPlaylistCreated",void 0);_.X([_.F({value:{REQUIRED_LABEL:_.dT("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.dT("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.A("design:type",Object)],sb.prototype,"addToStrings",void 0);_.X([_.F({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.A("design:type",Array)],sb.prototype,"privacyBadge",void 0);
_.X([_.fo("#privacy-input"),_.A("design:type",Object)],sb.prototype,"privacyInput",void 0);_.X([_.fo("#name-input"),_.A("design:type",Object)],sb.prototype,"nameInput",void 0);_.X([_.m2("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],sb.prototype,"onKeydown",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],sb.prototype,"onServiceRequestCompleted",null);
sb=_.X([_.l({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],sb);
_.p(sb,"ytd-add-to-playlist-create-renderer",function(){if(QpV!==void 0)return QpV;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return QpV=q},{mode:1});var xp6;var TPV;var IU=function(){var q=_.N.apply(this,arguments)||this;q.transferState="TRANSFER_STATE_UNKNOWN";return q};
_.z(IU,_.N);IU.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
IU.prototype.onCheckboxChange=function(q){var Z=this;this.data&&_.vp(this,"yt-playlist-checkbox-changed",function(){var w=_.xz(q).checked?Z.data.addToPlaylistServiceEndpoint:Z.data.removeFromPlaylistServiceEndpoint;w&&_.t().resolve(_.ps).resolveCommand(w,{form:{element:Z.hostElement}});_.b("dl_playlist_killswitch")||Z.transferState!=="TRANSFER_STATE_UNKNOWN"&&Z.transferState!=="TRANSFER_STATE_FAILED"&&Z.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:Z.data.playlistId,action:"ACTION_SYNC"}})},
100)};
IU.prototype.computeIconType=function(q){return q?"yt-icons:"+q.toLowerCase():null};
var cc=IU;cc.prototype.dataChanged=cc.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],cc.prototype,"data",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],cc.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],cc.prototype,"ytComponentBehavior",void 0);_.X([_.fo("#checkbox"),_.A("design:type",HTMLInputElement)],cc.prototype,"checkbox",void 0);
_.X([_.F({selector:_.bF,selectorArgs:["data.playlistId"]}),_.A("design:type",String)],cc.prototype,"transferState",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cc.prototype,"dataChanged",null);cc=_.X([_.l({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],cc);
_.p(cc,"ytd-playlist-add-to-option-renderer",function(){if(TPV!==void 0)return TPV;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return TPV=q},{mode:1});_.mD(ZIy);_.Mx(ZIy,"ytd-menu-title-renderer",{propNames:["data"]});var Upy=function(){var q=_.N.apply(this,arguments)||this;q.addToStrings={ADD_TO_DROPDOWN_LABEL:_.dT("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};q.closeButtonAriaLabel=_.dT("SBOX_INAPPROPRIATE_CANCEL");q.dialog=_.b("desktop_add_to_playlist_renderer_dialog_popup");return q};
_.z(Upy,_.N);_.e=Upy.prototype;_.e.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"}}}};
_.e.onPopupOpened=function(){_.NZ(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.e.onPopupClosed=function(){_.NZ(this.playlists,"scrollable",!1)};
_.e.computeAriaLabel=function(){var q;if(this==null?0:(q=this.data)==null?0:q.actions){q=_.P(this.data.actions);for(var Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,Z.menuTitleRenderer)return _.kO(Z.menuTitleRenderer.title)}};
_.e.onTapClose=function(){_.yY(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.My.Object.defineProperties(Upy.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var q;if(this==null?0:(q=this.data)==null?0:q.actions){q=_.P(this.data.actions);for(var Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,Z.menuTitleRenderer)return Z.menuTitleRenderer}return!1}}});
var Mc=Upy;Mc.prototype.onPopupClosed=Mc.prototype.onPopupClosed;Mc.prototype.onPopupOpened=Mc.prototype.onPopupOpened;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Mc.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],Mc.prototype,"ytEventForwardingBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Mc.prototype,"ytRendererStamperBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],Mc.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Mc.prototype,"addToStrings",void 0);_.X([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.A("design:type",String)],Mc.prototype,"ariaLabel",void 0);_.X([_.F(),_.A("design:type",String)],Mc.prototype,"closeButtonAriaLabel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Mc.prototype,"dialog",void 0);
_.X([_.fo("#playlists"),_.A("design:type",HTMLElement)],Mc.prototype,"playlists",void 0);_.X([_.fo("ytd-add-to-playlist-create-renderer"),_.A("design:type",Object)],Mc.prototype,"createRenderer",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Mc.prototype,"menuTitleRenderer",null);_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mc.prototype,"onPopupOpened",null);
_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mc.prototype,"onPopupClosed",null);Mc=_.X([_.l({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Mc);
_.p(Mc,"ytd-add-to-playlist-renderer",function(){if(xp6!==void 0)return xp6;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return xp6=q},{mode:1});var kVD;var Kzq=function(){var q=_.N.apply(this,arguments)||this;q.isPlaylistEditComplete=!1;q.isCollabEngagementDisabled=!1;q.closeButtonAriaLabel=_.dT("SBOX_INAPPROPRIATE_CANCEL");q.saveButton={title:_.dT("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"};q.onValueChanged=function(){q.updateSaveButtonState();q.computeCollabEngagementDisabled()};
return q};
_.z(Kzq,_.N);_.e=Kzq.prototype;_.e.attached=function(){this.JSC$18132_scroller&&(this.JSC$18132_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18132_scroller.attached&&typeof this.JSC$18132_scroller.attached==="function"&&this.JSC$18132_scroller.attached())};
_.e.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.e.onPopupClosed=function(){this.reset()};
_.e.close=function(){_.yY(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.e.onClickSave=function(){var q=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var Z=[];this.nameInput.value!==null&&Z.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&Z.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var w=Number(this.privacyInput.value);isNaN(w)||Z.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:w})}this.votingInput.value!==null&&(w=this.votingInput.value)&&Z.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:w});if(Z.length>0){var r;_.J((r=this.data)==null?void 0:r.updateSettingsEndpoint,_.SE).actions=Z;var Y;if((Y=this.data)==null?0:Y.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){q.close()}}}),this.isPlaylistEditComplete=!0}}};
_.e.computePrivacyBadge=function(q){return q?[{metadataBadgeRenderer:q}]:[]};
_.e.computeEditorData=function(q){var Z,w;return q==null?void 0:(Z=q.sections)==null?void 0:(w=Z[0])==null?void 0:w.playlistSettingsEditorCasualSectionRenderer};
_.e.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.e.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}}}}}};
_.e.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"}))};
_.e.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.e.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.e.isNameChanged=function(){var q,Z,w;return(((q=this.editorData)==null?void 0:(Z=q.name)==null?void 0:(w=Z.textInputFormFieldRenderer)==null?void 0:w.value)||"")!==(this.nameInput.value||"")};
_.e.isDescriptionChanged=function(){var q,Z,w;return(((q=this.editorData)==null?void 0:(Z=q.description)==null?void 0:(w=Z.textInputFormFieldRenderer)==null?void 0:w.value)||"")!==(this.descriptionInput.value||"")};
_.e.isPrivacyChanged=function(){var q,Z,w,r,Y,C,d,O;return((d=(q=this.editorData)==null?void 0:(Z=q.privacy)==null?void 0:(w=Z.dropdownFormFieldRenderer)==null?void 0:(r=w.dropdown)==null?void 0:(Y=r.dropdownRenderer)==null?void 0:(C=Y.entries)==null?void 0:C.find(function(H){var L;return H==null?void 0:(L=H.privacyDropdownItemRenderer)==null?void 0:L.isSelected}))==null?void 0:(O=d.privacyDropdownItemRenderer)==null?void 0:O.int32Value)!==this.privacyInput.value};
_.e.isVotingChanged=function(){var q,Z,w,r,Y,C,d,O;return((d=(q=this.editorData)==null?void 0:(Z=q.voting)==null?void 0:(w=Z.dropdownFormFieldRenderer)==null?void 0:(r=w.dropdown)==null?void 0:(Y=r.dropdownRenderer)==null?void 0:(C=Y.entries)==null?void 0:C.find(function(H){var L;return H==null?void 0:(L=H.privacyDropdownItemRenderer)==null?void 0:L.isSelected}))==null?void 0:(O=d.privacyDropdownItemRenderer)==null?void 0:O.int32Value)!==this.votingInput.value};
var Fz=Kzq;Fz.prototype.onPopupClosed=Fz.prototype.onPopupClosed;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Fz.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],Fz.prototype,"ytEventForwardingBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Fz.prototype,"ytRendererStamperBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],Fz.prototype,"data",void 0);_.X([_.F({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.A("design:type",Array)],Fz.prototype,"privacyBadge",void 0);_.X([_.F({computed:"computeEditorData(data)"}),_.A("design:type",Object)],Fz.prototype,"editorData",void 0);_.X([_.F(),_.A("design:type",Object)],Fz.prototype,"isPlaylistEditComplete",void 0);_.X([_.F(),_.A("design:type",Object)],Fz.prototype,"isCollabEngagementDisabled",void 0);
_.X([_.F({value:{REQUIRED_LABEL:_.dT("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.dT("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.A("design:type",Object)],Fz.prototype,"addToStrings",void 0);_.X([_.F(),_.A("design:type",String)],Fz.prototype,"closeButtonAriaLabel",void 0);_.X([_.F(),_.A("design:type",Object)],Fz.prototype,"saveButton",void 0);_.X([_.fo("#name-input"),_.A("design:type",Object)],Fz.prototype,"nameInput",void 0);
_.X([_.fo("#description-input"),_.A("design:type",Object)],Fz.prototype,"descriptionInput",void 0);_.X([_.fo("#privacy-input"),_.A("design:type",Object)],Fz.prototype,"privacyInput",void 0);_.X([_.fo("#voting-input"),_.A("design:type",Object)],Fz.prototype,"votingInput",void 0);_.X([_.fo("#scroller"),_.A("design:type",Object)],Fz.prototype,"JSC$18132_scroller",void 0);
_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fz.prototype,"onPopupClosed",null);_.X([_.F(),_.A("design:type",Object)],Fz.prototype,"onValueChanged",void 0);Fz=_.X([_.l({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Fz);
_.p(Fz,"ytd-playlist-settings-editor-renderer",function(){if(kVD===void 0){var q=document.createElement("template");_.a(q,'\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]]" 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]]" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);kVD=q}q=kVD;return q},{mode:1});var spV;_.He("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var I0V=function(){return _.N.apply(this,arguments)||this};
_.z(I0V,_.N);_.e=I0V.prototype;_.e.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}}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.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 q=this.get("data.nextButton.buttonRenderer.navigationEndpoint");q&&(this.nextNavigationEndpoint=q,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.e.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 q={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",q)}}};
_.e.onPopupOpened=function(q){q.detail!==this&&q.detail!==this.hostElement||!_.b("enable_premium_voluntary_pause")||_.yY(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.e.onNextButtonTap=function(){var q=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);q&&this.ytdOpenPopupBehavior.openPopup(q)};
_.e.updateSelectedResponseIndexFromBinding=function(q){this.selectedResponseIndex=q.detail.value};
var Nc=I0V;Nc.prototype.onPopupOpened=Nc.prototype.onPopupOpened;Nc.prototype.onSelectedResponseIndexChange=Nc.prototype.onSelectedResponseIndexChange;Nc.prototype.dataChanged=Nc.prototype.dataChanged;_.X([_.U(_.Et),_.A("design:type",Object)],Nc.prototype,"ytdOpenPopupBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Nc.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Nc.prototype,"ytRendererstamperBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],Nc.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Number)],Nc.prototype,"selectedResponseIndex",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nc.prototype,"dataChanged",null);_.X([_.M("selectedResponseIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nc.prototype,"onSelectedResponseIndexChange",null);
_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Nc.prototype,"onPopupOpened",null);Nc=_.X([_.l({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],Nc);
_.p(Nc,"ytd-red-cancel-survey-renderer",function(){if(spV!==void 0)return spV;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return spV=q},{mode:1});var cal;var MMb=function(){var q=_.N.apply(this,arguments)||this;q.closeButtonAriaLabel=_.dT("SBOX_INAPPROPRIATE_CANCEL");return q};
_.z(MMb,_.N);MMb.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
MMb.prototype.onClickClose=function(){_.yY(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
var lK=MMb;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],lK.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],lK.prototype,"rendererStamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],lK.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],lK.prototype,"closeButtonAriaLabel",void 0);lK=_.X([_.l({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],lK);
_.p(lK,"ytd-search-filter-options-dialog-renderer",function(){if(cal!==void 0)return cal;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return cal=q},{mode:1});var Fzb;var Yvl=function(){return function(q){q=q.availabilityType;return q===void 0||q==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||q==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var NP8=function(){var q=_.N.apply(this,arguments)||this;q.qualityOptions=[];q.upsellOptions=[];q.showUpsellSection=!1;q.darkerDarkTheme=_.b("web_darker_dark_theme");q.rememberSettingsChecked=!1;return q};
_.z(NP8,_.N);_.e=NP8.prototype;_.e.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}}}}};
_.e.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.e.updateQualityOptions=function(){if(this.formats===void 0)_.yY(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var q=[],Z=[];this.showUpsellSection=!1;for(var w=_.P(this.formats),r=w.next();!r.done;r=w.next())(r=r.value)&&(r.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?Z.push(r):q.push(r));q.length&&(this.qualityOptions=r$C(q));Z.length&&(this.showUpsellSection=!0,this.upsellOptions=r$C(Z))}};
_.e.updateRememberString=function(){if(this.downloadQualityPickerEntity)var q=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var Z;q=(Z=this.data)==null?void 0:Z.premiumRememberSettingString}else{var w;q=(w=this.data)==null?void 0:w.rememberSettingString}q=q===void 0?_.dT("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):q;this.rememberSettingsCheckboxRenderer={title:_.G7(q),disabled:!1}};
_.e.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.My.Object.defineProperties(NP8.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var q;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(q=this.data)==null?void 0:q.qualityFormats}}});
var Gr=NP8;Gr.prototype.updateRememberString=Gr.prototype.updateRememberString;Gr.prototype.updateQualityOptions=Gr.prototype.updateQualityOptions;Gr.prototype.dataChanged=Gr.prototype.dataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Gr.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Gr.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Gr.prototype,"data",void 0);
_.X([_.U(_.LO),_.A("design:type",Object)],Gr.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Boolean)],Gr.prototype,"selectedUpsellQuality",void 0);_.X([_.F({computed:"computeIcon_(data.premiumIcon)",value:""}),_.A("design:type",String)],Gr.prototype,"premiumIcon",void 0);_.X([_.F({selector:Z67,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.A("design:type",Object)],Gr.prototype,"downloadQualityPickerEntity",void 0);
_.X([_.F(),_.A("design:type",Array)],Gr.prototype,"qualityOptions",void 0);_.X([_.F(),_.A("design:type",Array)],Gr.prototype,"upsellOptions",void 0);_.X([_.F(),_.A("design:type",Object)],Gr.prototype,"showUpsellSection",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Gr.prototype,"darkerDarkTheme",void 0);_.X([_.F(),_.A("design:type",Object)],Gr.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.X([_.fo("#remember-settings"),_.A("design:type",HTMLInputElement)],Gr.prototype,"rememberSettingsCheckbox",void 0);_.X([_.F(),_.A("design:type",Object)],Gr.prototype,"rememberSettingsChecked",void 0);_.X([_.F(),_.A("design:type",Function)],Gr.prototype,"onRememberSettingsCheckedChanged",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Gr.prototype,"dataChanged",null);
_.X([_.M("downloadQualityPickerEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Gr.prototype,"updateQualityOptions",null);_.X([_.M("selectedUpsellQuality"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Gr.prototype,"updateRememberString",null);Gr=_.X([_.l({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Gr);
_.p(Gr,"ytd-download-quality-selector-content",function(){if(Fzb!==void 0)return Fzb;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Fzb=q},{mode:1});var l0D;var GVS=function(){var q=_.N.apply(this,arguments)||this;q.selectedUpsellQuality=!1;q.qualityOptions=[];q.darkerDarkTheme=_.b("web_darker_dark_theme");q.useUpsellDismissAlternate=_.b("use_not_now_dl_upsell_dismiss_cta");q.shouldShowAlternateUpsellDimiss=!1;q.rememberSettings=!1;q.rememberSettingsChecked=!1;q.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};q.rememberSettingsCheckedChanged=function(Z){q.rememberSettingsChecked=Z};
return q};
_.z(GVS,_.N);_.e=GVS.prototype;
_.e.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.G7(_.dT("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.G7(_.dT("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.G7(_.dT("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.G7(_.dT("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.e.updateQualityOptions=function(){this.formats===void 0?_.yY(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=r$C(this.formats)};
_.e.onQualityOptionsSelect=function(q){if(this.qualityOptions&&q){q!==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 Z=_.P(this.qualityOptions.entries()),w=Z.next();!w.done;w=
Z.next()){w=_.P(w.value);var r=w.next().value;w=w.next().value;var Y=void 0,C=void 0;if(((Y=w)==null?void 0:(C=Y.settingsRadioOptionRenderer)==null?void 0:C.id)===q){this.selectedQualityIndex=r;q=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((q=this.formats[r])==null?void 0:q.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.e.onClickSubmit=function(){var q;if((q=this.downloadButtonRenderer)==null||!q.isDisabled){var Z,w;q=(w=(Z=this.data)==null?void 0:Z.onSubmitEndpoint)!=null?w:{};var r,Y;if(this.formats&&(((r=_.J(q,_.h7))==null?0:r.videoId)||((Y=_.J(q,_.yB))==null?0:Y.playlistId))){var C,d,O,H,L,S;Z={formatType:(H=(C=this.formats)==null?void 0:(d=C[(O=this.selectedQualityIndex)!=null?O:0])==null?void 0:d.format)!=null?H:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(L=this.getOfflineEndpoint(q))==null?void 0:(S=L.actionParams)==null?void 0:S.settingsAction)};this.getOfflineEndpoint(q).actionParams=Z;this.ytComponentBehavior.resolveCommand(q)}_.yY(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.e.onClickUpsell=function(){var q;if((q=this.upsellButtonRenderer)==null||!q.isDisabled){var Z,w;q=(w=(Z=this.data)==null?void 0:Z.upsellEndpoint)!=null?w:{};this.ytComponentBehavior.resolveCommand(q);_.yY(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);Z="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var r,Y,C,d;Z=(d=(r=this.formats)==null?void 0:(Y=r[(C=this.selectedQualityIndex)!=null?C:0])==null?void 0:Y.format)!=null?d:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:Z}})}};
_.e.onClickClose=function(){_.yY(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.e.getOfflineSettingsAction=function(q,Z){return q?Z===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":Z:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.e.getOfflineEndpoint=function(q){return _.J(q,_.h7)?_.J(q,_.h7):_.J(q,_.yB)};
_.My.Object.defineProperties(GVS.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.G7(_.dT("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var q;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(q=this.data)==null?void 0:q.qualityFormats}}});
var p4=GVS;p4.prototype.updateQualityOptions=p4.prototype.updateQualityOptions;p4.prototype.dataChanged=p4.prototype.dataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],p4.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],p4.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],p4.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],p4.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Number)],p4.prototype,"selectedQualityIndex",void 0);_.X([_.F(),_.A("design:type",Object)],p4.prototype,"selectedUpsellQuality",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],p4.prototype,"ytdReduxBehavior",void 0);
_.X([_.F({selector:Z67,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.A("design:type",Object)],p4.prototype,"downloadQualityPickerEntity",void 0);_.X([_.F(),_.A("design:type",Array)],p4.prototype,"qualityOptions",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],p4.prototype,"darkerDarkTheme",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],p4.prototype,"useUpsellDismissAlternate",void 0);
_.X([_.F(),_.A("design:type",Object)],p4.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.X([_.F(),_.A("design:type",Object)],p4.prototype,"downloadButtonRenderer",void 0);_.X([_.F(),_.A("design:type",Object)],p4.prototype,"upsellButtonRenderer",void 0);_.X([_.F(),_.A("design:type",Object)],p4.prototype,"cancelButtonRenderer",void 0);_.X([_.F(),_.A("design:type",Object)],p4.prototype,"upsellCancelButtonRenderer",void 0);_.X([_.F(),_.A("design:type",Object)],p4.prototype,"rememberSettings",void 0);
_.X([_.F(),_.A("design:type",Object)],p4.prototype,"rememberSettingsChecked",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],p4.prototype,"dataChanged",null);_.X([_.M("downloadQualityPickerEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],p4.prototype,"updateQualityOptions",null);p4=_.X([_.l({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],p4);
_.p(p4,"ytd-download-quality-selector-renderer",function(){if(l0D!==void 0)return l0D;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return l0D=q},{mode:1});var psb;var XsS=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");return q};
_.z(XsS,_.N);XsS.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
XsS.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"}}}}};
var Xz=XsS;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Xz.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Xz.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Xz.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Xz.prototype,"darkerDarkTheme",void 0);_.X([_.F({computed:"computeIcon_(data.infoIcon)"}),_.A("design:type",Object)],Xz.prototype,"infoIcon",void 0);
_.X([_.F({computed:"computeIcon_(data.warningIcon)"}),_.A("design:type",Object)],Xz.prototype,"warningIcon",void 0);Xz=_.X([_.l({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Xz);
_.p(Xz,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(psb!==void 0)return psb;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return psb=q},{mode:1});var mp7;var Aa8=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");return q};
_.z(Aa8,_.N);Aa8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Aa8.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"}}}}};
var mV=Aa8;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],mV.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],mV.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],mV.prototype,"darkerDarkTheme",void 0);mV=_.X([_.l({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],mV);
_.p(mV,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(mp7!==void 0)return mp7;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return mp7=q},{mode:1});var f0Z;var AU=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");return q};
_.z(AU,_.N);AU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
AU.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"}}}}};
AU.prototype.onServiceRequestSentOrCompleted=function(q,Z){Z&&Z.actions&&Z.actions.length>0&&_.yY(this.hostElement,"yt-close-popup-action",[this.is])};
var f4=AU;f4.prototype.onServiceRequestSentOrCompleted=f4.prototype.onServiceRequestSentOrCompleted;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],f4.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],f4.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],f4.prototype,"darkerDarkTheme",void 0);_.X([_.F(),_.A("design:type",Object)],f4.prototype,"data",void 0);
_.X([_.m2("yt-service-request-completed"),_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],f4.prototype,"onServiceRequestSentOrCompleted",null);f4=_.X([_.l({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],f4);
_.p(f4,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(f0Z!==void 0)return f0Z;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return f0Z=q},{mode:1});var Dpu;var hJl=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");q.submitButtonDisabled=!0;return q};
_.z(hJl,_.N);_.e=hJl.prototype;_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.e.onDataChanged=function(){var q,Z,w;if(((q=this.data)==null?void 0:(Z=q.confirmButton)==null?void 0:(w=Z.buttonRenderer)==null?void 0:w.isDisabled)!==void 0){var r,Y,C;this.submitButtonDisabled=(r=this.data)==null?void 0:(Y=r.confirmButton)==null?void 0:(C=Y.buttonRenderer)==null?void 0:C.isDisabled}};
_.e.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.e.updateSubmitButtonDisabledFromBinding=function(q){this.submitButtonDisabled=q.detail.value};
_.e.updateSubmitButtonDisabledFromConfirmCheckbox=function(q){this.submitButtonDisabled=!q.detail.value};
var Dm=hJl;Dm.prototype.onDataChanged=Dm.prototype.onDataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Dm.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Dm.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Dm.prototype,"darkerDarkTheme",void 0);
_.X([_.F(),_.A("design:type",Object)],Dm.prototype,"submitButtonDisabled",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dm.prototype,"onDataChanged",null);Dm=_.X([_.l({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Dm);
_.p(Dm,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(Dpu!==void 0)return Dpu;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Dpu=q},{mode:1});var ya7;var irV=function(){return _.N.apply(this,arguments)||this};
_.z(irV,_.N);_.My.Object.defineProperties(irV.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;return((q=this.data)==null?void 0:q.title)+" "+((Z=this.data)==null?void 0:Z.metadataPrimary)+" "+((w=this.data)==null?void 0:w.metadataSecondary)}}});
var hU=irV;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],hU.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],hU.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],hU.prototype,"data",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],hU.prototype,"ariaLabel",null);hU=_.X([_.l({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],hU);
_.p(hU,"ytd-compact-product-list-item-renderer",function(){if(ya7!==void 0)return ya7;var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return ya7=q},{mode:1});var gS6;var qHl=function(){return _.N.apply(this,arguments)||this};
_.z(qHl,_.N);qHl.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]]"}}}}}};
_.My.Object.defineProperties(qHl.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
var yu=qHl;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],yu.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],yu.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],yu.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],yu.prototype,"data",void 0);yu=_.X([_.l({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],yu);
_.p(yu,"ytd-compact-product-list-renderer",function(){if(gS6!==void 0)return gS6;var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return gS6=q},{mode:1});var ZWF;var w97=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");return q};
_.z(w97,_.N);_.e=w97.prototype;_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.e.getBackgroundUrl=function(){var q=this.get("data.headerImage.thumbnails");return q?"url("+_.TL(q,this.hostElement.clientWidth)+")":""};
_.e.onDataChanged=function(){var q=this.getBackgroundUrl();q&&(this.header.style.backgroundImage=q);q=_.b5();var Z=_.Rs(),w=this.get("data.trackingParams");w&&Z&&q&&_.T7(q,Z,_.wa(w));q=_.P(this.hostElement.querySelectorAll("yt-img-shadow"));for(Z=q.next();!Z.done;Z=q.next())Z.value.onShow()};
_.e.onPopupClosed=function(q){_.xz(q).localName==="ytd-membership-post-cancel-renderer"&&_.yY(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
var iK=w97;iK.prototype.onPopupClosed=iK.prototype.onPopupClosed;iK.prototype.onDataChanged=iK.prototype.onDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],iK.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],iK.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],iK.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],iK.prototype,"darkerDarkTheme",void 0);
_.X([_.fo("#header"),_.A("design:type",HTMLDivElement)],iK.prototype,"header",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iK.prototype,"onDataChanged",null);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],iK.prototype,"onPopupClosed",null);iK=_.X([_.l({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],iK);
_.p(iK,"ytd-membership-post-cancel-renderer",function(){if(ZWF!==void 0)return ZWF;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return ZWF=q},{mode:1});var rV6;var YHS=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");return q};
_.z(YHS,_.N);YHS.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
YHS.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
var gi=YHS;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],gi.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],gi.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],gi.prototype,"darkerDarkTheme",void 0);_.X([_.fo("ytd-feedback-survey-renderer"),_.A("design:type",Object)],gi.prototype,"feedbackSurveyRenderer",void 0);gi=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],gi);
_.p(gi,"ytd-sponsorship-confirm-cancel-content",function(){if(rV6!==void 0)return rV6;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return rV6=q},{mode:1});var $3C;var e_6=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");q.maybeSubmitFeedback=function(){q.content&&q.content.maybeSubmitFeedback()};
return q};
_.z(e_6,_.N);_.e=e_6.prototype;_.e.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.e.onYtPopupOpened=function(q,Z){Z===this&&this.data&&this.data.onOpenCommands&&_.ZC(this.hostElement,this.data.onOpenCommands,this.hostElement);_.yY(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.e.onYtPopupClosed=function(q,Z){(Z&&Z.canceled===!0||Z&&Z.canceled===!1&&Z.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.ZC(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.e.onYtServiceRequestCompleted=function(){_.yY(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.e.onYtServiceRequestError=function(q){_.W9(this.hostElement,q.detail.error.message)};
_.e.onDataChanged=function(){if(this.isAttached){var q=this.backgroundUrl;q&&(_.E(this.hostElement).querySelector("#header").style.backgroundImage=q)}};
_.My.Object.defineProperties(e_6.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var q=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return q?"url("+_.TL(q,this.hostElement.clientWidth)+")":""}}});
var qE=e_6;qE.prototype.onDataChanged=qE.prototype.onDataChanged;qE.prototype.onYtServiceRequestError=qE.prototype.onYtServiceRequestError;qE.prototype.onYtServiceRequestCompleted=qE.prototype.onYtServiceRequestCompleted;qE.prototype.onYtPopupClosed=qE.prototype.onYtPopupClosed;qE.prototype.onYtPopupOpened=qE.prototype.onYtPopupOpened;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],qE.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],qE.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],qE.prototype,"data",void 0);_.X([_.F({value:function(){return _.dT("SBOX_INAPPROPRIATE_CANCEL")}}),
_.A("design:type",String)],qE.prototype,"closeButtonAriaLabel",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],qE.prototype,"darkerDarkTheme",void 0);_.X([_.fo("#scrollable"),_.A("design:type",Object)],qE.prototype,"scrollable",void 0);_.X([_.fo("ytd-sponsorship-confirm-cancel-content"),_.A("design:type",Object)],qE.prototype,"content",void 0);
_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],qE.prototype,"onYtPopupOpened",null);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],qE.prototype,"onYtPopupClosed",null);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],qE.prototype,"onYtServiceRequestCompleted",null);_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],qE.prototype,"onYtServiceRequestError",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qE.prototype,"onDataChanged",null);
qE=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],qE);
_.p(qE,"ytd-sponsorship-confirm-cancel-renderer",function(){if($3C!==void 0)return $3C;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return $3C=q},{mode:_.NT("kevlar_poly_si_batch_j081")?1:2});var Cu6;var Puq=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");return q};
_.z(Puq,_.N);Puq.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
var Za=Puq;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Za.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Za.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Za.prototype,"darkerDarkTheme",void 0);Za=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Za);
_.p(Za,"ytd-sponsorships-celebration-content",function(){if(Cu6!==void 0)return Cu6;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Cu6=
q},{mode:1});var d37;var VNy=_.Fr(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),OWl=function(){var q=_.N.apply(this,arguments)||this;q.scriptsAppended=!1;q.buttonOverrides={type:"tonal",style:"overlay-dark"};return q};
_.z(OWl,_.N);_.e=OWl.prototype;
_.e.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:_.b("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.onDataChanged=function(){var q;(q=this.header)==null||q.style.setProperty("background-color",this.backgroundColor);if(q=this.headerImageUrl){var Z;(Z=this.header)==null||Z.style.setProperty("background-image",q)}Z=_.b5(4);q=_.Rs(4);var w=this.get("data.trackingParams");if(w&&q&&Z){var r=_.wa(w);_.T7(Z,q,r);_.b("combine_ve_grafts")?_.iy().graftServerVe(w,q,4):_.T7(Z,q,r)}Z=_.P(this.hostElement.querySelectorAll("yt-img-shadow"));for(q=Z.next();!q.done;q=Z.next())q.value.onShow();if(Z=this.get("data.gtmId"))_.Yb(Z,
_.zj("GL","")),this.setupConversionTracking()};
_.e.setupConversionTracking=function(){if(!this.scriptsAppended){var q=document.createElement("script");var Z=_.pA(VNy.join(""));_.X5(q,Z);document.head.appendChild(q);q=document.createElement("noscript");q.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(q);this.scriptsAppended=!0}};
_.e.onPopupClosed=function(q){if(_.xz(q).localName==="ytd-sponsorships-celebration-renderer"){_.yY(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var Z;this.data&&((Z=this.data)==null?0:Z.dismissCommand)&&_.AJ.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.My.Object.defineProperties(OWl.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var q=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.uq(q)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var q=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return q?"url("+_.TL(q,this.hostElement.getBoundingClientRect().width)+")":""}}});
var wB=OWl;wB.prototype.onPopupClosed=wB.prototype.onPopupClosed;wB.prototype.onDataChanged=wB.prototype.onDataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],wB.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],wB.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],wB.prototype,"data",void 0);_.X([_.fo("#header"),_.A("design:type",HTMLElement)],wB.prototype,"header",void 0);
_.X([_.F(),_.A("design:type",Object)],wB.prototype,"scriptsAppended",void 0);_.X([_.F(),_.A("design:type",Object)],wB.prototype,"buttonOverrides",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wB.prototype,"onDataChanged",null);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],wB.prototype,"onPopupClosed",null);
wB=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],wB);
_.p(wB,"ytd-sponsorships-celebration-renderer",function(){if(d37!==void 0)return d37;var q=document.createElement("template");_.a(q,'\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="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return d37=q},{mode:1});var HWl;var rB=function(){var q=_.N.apply(this,arguments)||this;q.isToggleChecked=!1;return q};
_.z(rB,_.N);rB.prototype.onDataChanged=function(){var q;this.isToggleChecked=((q=this.data)==null?void 0:q.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
rB.prototype.close=function(){var q;((q=this.data)==null?0:q.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
rB.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var q,Z=_.J((q=this.data)==null?void 0:q.switchButton,hhu);Z&&(this.isToggleChecked&&Z.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(Z.switchOnInnertubeCommand),!this.isToggleChecked&&Z.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(Z.switchOffInnertubeCommand))};
rB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var Ym=rB;Ym.prototype.onDataChanged=Ym.prototype.onDataChanged;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Ym.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ym.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Ym.prototype,"isToggleChecked",void 0);
_.X([_.F({value:_.dT("CLOSE")}),_.A("design:type",String)],Ym.prototype,"closeButtonAriaLabel",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ym.prototype,"onDataChanged",null);Ym=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],Ym);
_.p(Ym,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(HWl!==void 0)return HWl;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return HWl=q},{mode:1});var Wkl;var oyD=function(){return _.N.apply(this,arguments)||this};
_.z(oyD,_.N);_.e=oyD.prototype;_.e.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"}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.detached=function(){this.playerElement.stop()};
_.e.onYtServiceRequestCompleted=function(){_.yY(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.e.onYtServiceRequestError=function(q){_.W9(this.hostElement,q.detail.error.message)};
_.e.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.e.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.e.getTier=function(q,Z){return!q||!q.tiers||Z<0?null:_.J(q.tiers[Z],qFS)};
_.e.moreThanOne=function(q){return!!(q&&q.length>1)};
_.e.tierOverviewTap=function(q){var Z=this;this.selectedTier=q.model.index;_.I_(this,function(){_.hy(Z.hostElement,"yt-refit")})};
_.e.computeSelectedClass=function(q,Z){return this.isSelected(q,Z)?"selected":""};
_.e.computeButtonAriaPressed=function(q,Z){return this.isSelected(q,Z)?"true":"false"};
_.e.isSelected=function(q,Z){return q===Z};
_.e.onDataChanged=function(){_.E(this.hostElement).querySelector("#header-overlay").style.visibility="";_.E(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 q=_.P(this.hostElement.querySelectorAll("yt-img-shadow")),
Z=q.next();!Z.done;Z=q.next())Z.value.onShow();var w;this.set("selectedTier",(w=this.get("data.targetTierIndex"))!=null?w:0);var r;(q=(r=this.data)==null?void 0:r.onVisible)&&this.ytComponentBehavior.resolveCommand(q)};
_.e.initializeVe=function(q){var Z=_.b5(),w=_.Rs(),r=this.get("data.trackingParams");w&&Z&&(this.screenLayer=4,Z=_.QV(_.HkT)(void 0,69877,{clientScreenNonce:Z,visualElement:w},void 0,void 0,void 0),_.onz(Z,69877,4),w=_.Rs(4),r&&w&&(r=_.wa(r),_.T7(Z,w,r),q&&(this.offerVideoVe=_.C6(74659),_.T7(Z,r,this.offerVideoVe))))};
_.e.setHeaderBackground=function(){var q=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.E(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.uq(q);if(q=this.getHeaderImage())q=_.TL(q,screen.width),_.E(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+q+")"};
_.e.getHeaderImage=function(){var q=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&q?q:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.e.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.e.setupVideoPlayer=function(q){var Z=this,w,r,Y,C;return _.V(function(d){if(d.nextAddress==1)return w=Z.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),r=Z.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.b("kevlar_player_update_killswitch")?Z.playerElement.update({args:{autoplay:w,video_id:q,player_params:r}}):Z.playerElement.loadVideoWithPlayerVars({autoplay:w,video_id:q,player_params:r}),
_.W(d,Z.playerElement.getPlayerPromise(),2);Y=d.yieldResult;Y.addEventListener("onStateChange",function(O){Z.onPlayerStateChange(O)});
Y.setScreenLayer(Z.screenLayer);(C=_.b5(4))&&Z.offerVideoVe&&_.Uh(C,Z.offerVideoVe);w&&(Z.pauseOtherPlayers(),Z.playerElement.focusOnPlayer(),Z.playerElement.getPlayer().hideControls(),_.WO(_.v5,function(){Z.fadeOutHeaderOverlay()},4E3));
_.ub(d)})};
_.e.onPlayerStateChange=function(q){q===1?this.backgroundPlayerElement&&(q=this.backgroundPlayerElement.player_.getPlayerState(),q!==1&&q!==3||this.backgroundPlayerElement.pause()):q===0&&(_.E(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.E(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.e.fadeOutHeaderOverlay=function(){_.E(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.e.onHeaderTap=function(){if(this.offerVideo){_.E(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var q;((q=this.playerElement.player_)==null?void 0:q.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(q=_.b5(4))&&this.offerVideoVe&&_.sh(q,this.offerVideoVe)}};
_.e.getBackgroundImageLayerClass=function(q){return q?"background-image-layer-with-video":""};
_.e.getHeaderClass=function(q){return q?"header-with-video":""};
_.e.getHeaderOverlayClass=function(q){return q?"header-overlay-with-video":""};
_.e.getTitleContainerClass=function(q,Z){return q?"title-container-with-video":Z?"title-container-without-video-flexible":"title-container-without-video"};
_.e.tierTitleDisplayStatus=function(q){return this.moreThanOne(q)?"hide":"show"};
_.e.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.t().resolve(_.Tf).getPlayerElement():this.backgroundPlayerElement=_.K6();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var q=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=q===1||q===3;this.backgroundPlayerElement.pause()}};
_.e.isMiniplayerActive=function(){return _.t().resolve(_.Tf).isMiniplayerActive()};
_.e.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("selected-tier-changed",this.selectedTier))};
var $m=oyD;$m.prototype.selectedTierChangedForBinding=$m.prototype.selectedTierChangedForBinding;$m.prototype.onDataChanged=$m.prototype.onDataChanged;$m.prototype.onYtPopupClosed=$m.prototype.onYtPopupClosed;$m.prototype.onYtPopupOpened=$m.prototype.onYtPopupOpened;$m.prototype.onYtServiceRequestError=$m.prototype.onYtServiceRequestError;$m.prototype.onYtServiceRequestCompleted=$m.prototype.onYtServiceRequestCompleted;
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],$m.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],$m.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],$m.prototype,"data",void 0);_.X([_.F({value:0}),_.A("design:type",Number)],$m.prototype,"selectedTier",void 0);
_.X([_.F({value:""}),_.A("design:type",String)],$m.prototype,"offerVideo",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],$m.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.X([_.F({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.yj(this)}}),
_.A("design:type",String)],$m.prototype,"playerId",void 0);_.X([_.fo("tp-yt-paper-dialog-scrollable"),_.A("design:type",Object)],$m.prototype,"scrollable",void 0);_.X([_.fo("ytd-sponsorships-tier-renderer"),_.A("design:type",Object)],$m.prototype,"tierRenderer",void 0);_.X([_.fo("#player"),_.A("design:type",Object)],$m.prototype,"playerElement",void 0);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],$m.prototype,"onYtServiceRequestCompleted",null);_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],$m.prototype,"onYtServiceRequestError",null);
_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$m.prototype,"onYtPopupOpened",null);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$m.prototype,"onYtPopupClosed",null);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$m.prototype,"onDataChanged",null);
_.X([_.M("selectedTier"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$m.prototype,"selectedTierChangedForBinding",null);$m=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],$m);
_.p($m,"ytd-sponsorships-offer-renderer",function(){if(Wkl!==void 0)return Wkl;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Wkl=q},{mode:_.NT("kevlar_poly_si_batch_j077")?1:2});var uoy;var eS=function(){var q=_.N.apply(this,arguments)||this;q.buttonOverrides={type:"filled",style:"mono"};return q};
_.z(eS,_.N);eS.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}}}}}};
eS.prototype.backgroundColorChanged=function(){var q,Z,w,r=(Z=_.J((q=this.data)==null?void 0:q.content,Zty))==null?void 0:(w=Z.backgroundColor)==null?void 0:w.backgroundColor;r&&(q=_.oJ(r),_.E(this.hostElement).querySelector("#banner").style.backgroundColor=q,_.E(this.hostElement).querySelector("#abstract-art").style.backgroundColor=q)};
eS.prototype.attached=function(){this.JSC$18218_scroller&&(this.JSC$18218_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18218_scroller.attached&&typeof this.JSC$18218_scroller.attached==="function"&&this.JSC$18218_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var Cg=eS;Cg.prototype.backgroundColorChanged=Cg.prototype.backgroundColorChanged;_.X([_.F(),_.A("design:type",Object)],Cg.prototype,"data",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Cg.prototype,"ytRendererstamperBehavior",void 0);_.X([_.fo("#scroller"),_.A("design:type",Object)],Cg.prototype,"JSC$18218_scroller",void 0);_.X([_.F(),_.A("design:type",Object)],Cg.prototype,"buttonOverrides",void 0);
_.X([_.M("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cg.prototype,"backgroundColorChanged",null);Cg=_.X([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],Cg);
_.p(Cg,"ytd-sponsorships-promotion-celebration-renderer",function(){if(uoy!==void 0)return uoy;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return uoy=q},{mode:_.NT("kevlar_poly_si_batch_j077")?1:2});var Lkq;var SHS;var vyZ=function(){return _.N.apply(this,arguments)||this};
_.z(vyZ,_.N);vyZ.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
vyZ.prototype.computeIsInitiallyChecked=function(q){return q===1};
var PK=vyZ;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],PK.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],PK.prototype,"data",void 0);_.X([_.fo("#checkbox"),_.A("design:type",Object)],PK.prototype,"checkbox",void 0);PK=_.X([_.l({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],PK);
_.p(PK,"ytd-subscription-toggle-option-renderer",function(){if(SHS!==void 0)return SHS;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return SHS=q},{mode:1});var dB=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");q.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return q};
_.z(dB,_.N);dB.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"}}}};
dB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
dB.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var q=_.E(this.hostElement).querySelector("#options").selected;q=this.data.options[q].subscriptionRadioOptionRenderer.serviceEndpoint;var Z=_.E(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");Z&&q&&q.modifyChannelNotificationPreferenceEndpoint&&(Z=Z.getValue())&&(q.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[Z]);_.t().resolve(_.ps).resolveCommand(q,{form:{element:this.hostElement}});
_.yY(this.hostElement,"yt-close-popup-action")};
_.My.Object.defineProperties(dB.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var q=this.data.options,Z=0;Z<q.length;Z++){var w=q[Z].subscriptionRadioOptionRenderer;if(w&&w.selected)return Z}return null}}});
var Vd=dB;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Vd.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Vd.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],Vd.prototype,"eventForwardingBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],Vd.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Vd.prototype,"darkerDarkTheme",void 0);_.X([_.I("data.options"),_.A("design:type",Object),_.A("design:paramtypes",[])],Vd.prototype,"initialIndex",null);Vd=_.X([_.l({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],Vd);
_.p(Vd,"ytd-subscription-notification-options-renderer",function(){if(Lkq!==void 0)return Lkq;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Lkq=q},{mode:1});var jI7;var tN7=function(){return _.N.apply(this,arguments)||this};
_.z(tN7,_.N);var Oe=tN7;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Oe.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Oe.prototype,"data",void 0);Oe=_.X([_.l({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],Oe);
_.p(Oe,"ytd-tvfilm-offer-groups-renderer",function(){if(jI7!==void 0)return jI7;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return jI7=q},{mode:1});var R_Z;var bWy=function(){var q=_.N.apply(this,arguments)||this;q.darkerDarkTheme=_.b("web_darker_dark_theme");return q};
_.z(bWy,_.N);_.e=bWy.prototype;_.e.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"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.e.computeThumbnailClass=function(q){return q.thumbnailOverlays?q.isShow?"thumbnail-show":"thumbnail-movie":q.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.e.computeCommerceSectionClass=function(q){return q.offers&&q.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.e.computeTitleClass=function(q){return q.offers&&q.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.e.onDataChanged=function(){[].concat(_.Ju(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(q){q.onShow()})};
var HK=bWy;HK.prototype.onDataChanged=HK.prototype.onDataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],HK.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],HK.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],HK.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],HK.prototype,"darkerDarkTheme",void 0);
_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],HK.prototype,"onDataChanged",null);HK=_.X([_.l({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],HK);
_.p(HK,"ytd-ypc-offers-overlay-renderer",function(){if(R_Z!==void 0)return R_Z;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return R_Z=q},{mode:_.NT("kevlar_poly_si_batch_j028")?1:2});var JV6;var z_l=function(){this.usedMethods=new Set};
z_l.prototype.add=function(q){this.usedMethods.add(q)};
z_l.prototype.reset=function(){this.usedMethods.clear()};var ny6=function(q,Z){this.query=q;this.previousSearchQuery=Z;this.id=Bu7++;if(!ayy){Z=_.zj("SBOX_SETTINGS");q="https://"+((Z==null?void 0:Z.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var w=Z==null?void 0:Z.REQUEST_LANGUAGE;w&&(q+="&hl="+w);(w=Z==null?void 0:Z.REQUEST_DOMAIN)&&(q+="&gl="+w);q+="&client=youtube&gs_ri=youtube";(w=Z==null?void 0:Z.SUGG_EXP_ID)&&(q+="&sugexp="+encodeURIComponent(w));(w=Z==null?void 0:Z.PSUGGEST_TOKEN)&&(q+="&tok="+w);(Z=
Z==null?void 0:Z.SESSION_INDEX)&&(q+="&authuser="+Z);_.b("desktop_enable_visual_suggest")&&(q+="&h=180&w=320&ytvs=1");ayy=q}},QIF=function(q){var Z="q="+encodeURIComponent(q.query);
q.previousSearchQuery&&(Z+="&pq="+encodeURIComponent(q.previousSearchQuery));return Z},Ey8=function(){var q=_.zj("SBOX_SETTINGS"),Z={};
if(q==null?0:q.SEND_VISITOR_DATA)Z["X-Goog-Visitor-Id"]=q==null?void 0:q.VISITOR_DATA;return Z},x3u=function(q){var Z=ayy;
Z+="&gs_id="+q.id.toString(36);Z+="&q="+encodeURIComponent(q.query);Z+="&cp="+q.query.length;q.previousSearchQuery&&(Z+="&pq="+encodeURIComponent(q.previousSearchQuery));(q=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(Z+="&video_id="+q);return Z},Bu7=0,ayy="";var Tul=function(q,Z){this.text=q;this.bold=Z},U3l=function(q,Z,w){this.input=Z;
this.index=w;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=q[0];this.type=q[1];this.subtypes=q[2];var r;this.displayText=evl((r=q[3])==null?void 0:r.b);var Y;this.ignoredPrefix=evl((Y=q[3])==null?void 0:Y.a);var C,d;this.hasNewVideo=((C=q[3])==null?void 0:(d=C.zam)==null?void 0:d.toString())==="true"?!0:!1;var O;this.visualSuggestUrl=(O=q[3])==null?void 0:O.zai},km7=function(q){var Z=[],w,r=(w=q.displayText)!=null?w:q.text;
if(q.type===33)return Z.push(new Tul(r,!1)),Z;if(r.length>=q.input.length&&r.substring(0,q.input.length)===q.input)Z.push(new Tul(q.input,!1)),Z.push(new Tul(r.substring(q.input.length),!0));else{var Y=new Set(q.input.split(/\s/)),C=r.split(/\s/);Z=C.map(function(d,O){return new Tul(d.trim()+(O===C.length-1?"":" "),!Y.has(d))})}return Z};var Kkc=function(q){this.rawResponse=["",[],{}];this.suggestions=[];try{var Z=JSON.parse(C46(q));if(typeof Z==="object"&&Z!==null)this.rawResponse=Z;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(r){console.log("Suggest: Failed to parse SuggestResponse!");return}var w=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(r,Y){return new U3l(r,w,Y)})};var sIZ=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new z_l;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18254_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},Iy6,cVb=function(){Iy6||(Iy6=new sIZ);
return Iy6};
sIZ.prototype.updateSuggestions=function(q){var Z=this;this.availableSuggestions.forEach(function(w){Z.previousSuggestions[w]=!0});
this.availableSuggestions=q.map(function(w){var r=w.type.toString();w.subtypes.length>0&&(r+="i"+w.subtypes.join("i"),r+="k"+w.suggestionSources.COMPLETE_SERVER.toString());return r})};
var MNS=function(q,Z){var w=Date.now();q.firstEditTime<0&&(q.firstEditTime=w);Z&&(q.lastQueryBuildTime=w);q.lastEditTime=w};
sIZ.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18254_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Fk7=function(q){var Z="";q.availableSuggestions.forEach(function(Y){delete q.previousSuggestions[Y]});
for(var w=_.P(Object.keys(q.previousSuggestions)),r=w.next();!r.done;r=w.next())r=r.value,q.previousSuggestions[r]&&(Z+=(Z?"j":"")+r);return Z},Nuq=function(q,Z){var w=[];
Z&&(w[1]=Z.toString());w[0]="youtube";w[7]=Date.now()-q.startTime;w[6]=q.sessionNumber;q.zeroPrefixSuggestionCount>=0&&(w[33]=q.zeroPrefixSuggestionCount);w[13]=q.outOfSyncResponseCount;if(q.availableSuggestions.length>0){for(var r=Z="",Y=0,C=_.P(q.availableSuggestions),d=C.next();!d.done;d=C.next())d=d.value,d!==r&&(Y>1&&(Z+="l"+Y),Z+=(r?"j":"")+d,Y=0,r=d),Y+=1;Y>1&&(Z+="l"+Y);w[3]=Z}w[35]=Fk7(q);q.selectedSuggestionIndex>=0&&(w[2]=q.selectedSuggestionIndex);var O;if(Z=(O=_.zj("SBOX_SETTINGS"))==
null?void 0:O.SUGG_EXP_ID)w[19]=q.normalize(Z),O=0,q.experimentTriggeredBeforeFinal&&(O|=1),q.experimentTriggeredFinal&&(O|=2),w[20]=O;w[26]=Array.from(q.inputMethodsTracker.usedMethods).join("j");if(q.JSC$18254_totalRoundTripTime>0){w[15]=q.JSC$18254_totalRoundTripTime;w[14]=q.maxRoundTripTime;O=[];for(Y=Z=0;Y<10;Y++)r=q.roundTripTimeHistogram[Y],r===0?Z++:(Z>1?O.push(Y+"-"+r):Z===1?O.push("0j"+r):O.push(r.toString()),Z=0);O=O.join("j");w[16]=O}q.zeroPrefixRoundTripTime>0&&(w[36]=q.zeroPrefixRoundTripTime);
q.lastQueryBuildTime>0&&(w[18]=q.lastQueryBuildTime-q.startTime);q.firstEditTime>0&&(w[4]=q.firstEditTime-q.startTime);q.lastEditTime>0&&(w[5]=q.lastEditTime-q.startTime);return w.join(".")};
sIZ.prototype.normalize=function(q){return q.replaceAll(".","-")};
var ly8=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Gm7=function(){var q=_.N.apply(this,arguments)||this;q.microphoneSpinnerActive=!1;q.noAnimations=!1;q.boundExitClick=function(){q.onExitButtonClick()};
q.speechOverlayClassName="";q.isLevelAnimating=!1;q.playCloseDialogAudioFeedback=!0;q.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return q};
_.z(Gm7,_.N);_.e=Gm7.prototype;_.e.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.e.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=nsu()};
_.e.dataChanged=function(){this.logDialog()};
_.e.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var q;(q=this.manager.audioPlayer)!=null&&(q.JSC$17542_audioEnabled=!1)}this.manager.stop();(q=this.manager.audioPlayer)!=null&&(q.JSC$17542_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.e.handleSpeechQueryCompleteAction=function(q){var Z=q.navigationAction;Z&&(q.trackingParams&&_.iy().graftServerVe(q.trackingParams,this.dialogVe,5),_.hy(this.hostElement,"yt-navigate",{endpoint:Z,tempData:this.getNavigationParams(Z),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.e.onExitButtonClick=function(){this.closeDialog()};
_.e.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var q;if((q=this.manager)!=null){var Z;(Z=q.audioPlayer)==null||xF(Z,"failure");q.setState("microphone-off");q.stop()}}else(q=this.manager)==null||q.start()};
_.e.transcriptionChanged=function(){var q,Z;(((q=this.transcription)==null?0:q.low)||((Z=this.transcription)==null?0:Z.high))&&this.setState("transcribing",this.transcription)};
_.e.stateChanged=function(){this.setState(this.state,this.transcription)};
_.e.logDialog=function(){var q;(q=this.data)!=null&&q.trackingParams&&(q=_.iy(),_.mG(q,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=q.graftServerVe(this.data.trackingParams,void 0,5))};
_.e.getNavigationParams=function(q){var Z={};if(_.b("web_yt_searchbox")){var w=cVb();w.inputMethodsTracker.add(6);w=Nuq(w,15);Z.gs_l=w;var r;Z.oq=((r=_.J(q,_.Z5))==null?void 0:r.query)||""}else if(q=window.ytvoicesearchloggingparams){if(q=q())Z.oq=q.oq,Z.gs_l=q.gs_l}else _.xT(Error("ll"));return Z};
_.e.closeDialog=function(){_.yY(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.e.setState=function(q,Z){if(this.data){var w=this.data,r={};switch(q){case "listening":r={headerText:w.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:w.microphoneButtonAriaLabel};break;case "timeout":r={headerText:w.promptHeader,microphoneState:"try-again",microphoneLabel:w.promptMicrophoneLabel,microphoneAriaLabel:w.promptMicrophoneLabel};break;case "microphone-off":r={headerText:w.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:w.promptMicrophoneLabel,
microphoneAriaLabel:w.promptMicrophoneLabel};break;case "transcribing":(Z==null?0:Z.low)||(Z==null?0:Z.high)?r={transcriptionLow:Z==null?void 0:Z.low,transcriptionHigh:Z==null?void 0:Z.high,microphoneState:"speaking",microphoneAriaLabel:w.microphoneButtonAriaLabel}:r={headerText:w.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:w.microphoneButtonAriaLabel};break;case "processing":r={headerText:w.loadingHeader,microphoneState:"processing",microphoneAriaLabel:w.microphoneButtonAriaLabel};
break;case "offline":r={headerText:w.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:w.connectionErrorMicrophoneLabel,microphoneAriaLabel:w.connectionErrorMicrophoneLabel};break;case "permission":r={headerText:w.permissionsHeader,bodyLine1:w.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:w.permissionsSubtext};break;case "permission-denied":r={headerText:w.disabledHeader,bodyLine1:w.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:w.disabledSubtext}}r.className=
q;this.speechOverlayState=r;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.e.setMicrophoneState=function(q){var Z=this.isLevelAnimating;this.isLevelAnimating=q==="speaking";!Z&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=q==="processing"&&!this.noAnimations};
_.e.setClass=function(q){this.speechOverlayClassName&&_.NZ(this.hostElement,this.speechOverlayClassName,!1);q&&(this.speechOverlayClassName=q,_.NZ(this.hostElement,q,!0))};
_.e.runLevelAnimation=function(){var q=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var Z=1+Math.random()*.75,w=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+w/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+Z+")");_.v5.addJob(function(){q.runLevelAnimation()},3,w)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
var WK=Gm7;WK.prototype.stateChanged=WK.prototype.stateChanged;WK.prototype.transcriptionChanged=WK.prototype.transcriptionChanged;WK.prototype.onPopupClosed=WK.prototype.onPopupClosed;WK.prototype.dataChanged=WK.prototype.dataChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],WK.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],WK.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],WK.prototype,"rendererStamperBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],WK.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],WK.prototype,"eventForwardingBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],WK.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],WK.prototype,"speechOverlayState",void 0);
_.X([_.F(),_.A("design:type",Object)],WK.prototype,"microphoneSpinnerActive",void 0);_.X([_.F({type:_.b("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.A("design:type",Object)],WK.prototype,"noAnimations",void 0);_.X([_.F({selector:function(q){var Z;return(Z=q.voiceSearch)==null?void 0:Z.transcription}}),
_.A("design:type",Object)],WK.prototype,"transcription",void 0);_.X([_.F({selector:function(q){var Z;return(Z=q.voiceSearch)==null?void 0:Z.overlay}}),
_.A("design:type",String)],WK.prototype,"state",void 0);_.X([_.F(),_.A("design:type",Object)],WK.prototype,"boundExitClick",void 0);_.X([_.fo("#microphone-levels"),_.A("design:type",HTMLElement)],WK.prototype,"level",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WK.prototype,"dataChanged",null);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WK.prototype,"onPopupClosed",null);
_.X([_.g3("transcription"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WK.prototype,"transcriptionChanged",null);_.X([_.g3("state"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WK.prototype,"stateChanged",null);WK=_.X([_.l({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],WK);
_.p(WK,"ytd-voice-search-dialog-renderer",function(){if(JV6!==void 0)return JV6;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return JV6=q},{mode:1});var p9C;var X9V=function(){var q=_.N.apply(this,arguments)||this;q.isOverlay=!1;q.hidden=!1;return q};
_.z(X9V,_.N);_.e=X9V.prototype;_.e.onPopupClosed=function(){this.toggleIconState(!1)};
_.e.computeIcon=function(){var q,Z,w;return(Z=_.J((q=this.data)==null?void 0:q.icon,eMb))==null?void 0:(w=Z.icon)==null?void 0:w.iconType};
_.e.computeIconBadgeShape=function(){var q;return{iconBadgeType:"cart",iconBadgeText:(q=this.iconBadgeEntity)==null?void 0:q.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.e.onClick=function(){var q;(q=this.data)!=null&&q.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.e.computeHidden=function(q){return!q};
_.e.toggleIconState=function(q){this.iconButton&&(this.iconButton.pressed=q)};
var oC=X9V;oC.prototype.onPopupClosed=oC.prototype.onPopupClosed;_.X([_.U(_.LO),_.A("design:type",Object)],oC.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],oC.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],oC.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],oC.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],oC.prototype,"isOverlay",void 0);
_.X([_.F({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.A("design:type",Object)],oC.prototype,"hidden",void 0);_.X([_.F({selectorArgs:["data.iconBadgeEntityKey"],selector:function(q,Z){return _.iI(q.entities,"iconBadgeEntity",Z)}}),
_.A("design:type",Object)],oC.prototype,"iconBadgeEntity",void 0);_.X([_.fo("yt-icon-button"),_.A("design:type",HTMLButtonElement)],oC.prototype,"iconButton",void 0);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oC.prototype,"onPopupClosed",null);oC=_.X([_.l({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],oC);
_.p(oC,"ytd-icon-badge-topbar-button-renderer",function(){if(p9C!==void 0)return p9C;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return p9C=q},{mode:1});var m36;var AVu=function(){var q=_.N.apply(this,arguments)||this;q.premiumOptions=[];q.darkerDarkTheme=_.b("web_darker_dark_theme");return q};
_.z(AVu,_.N);AVu.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.My.Object.defineProperties(AVu.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
var uA=AVu;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],uA.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],uA.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Array)],uA.prototype,"premiumOptions",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],uA.prototype,"darkerDarkTheme",void 0);_.X([_.I("premiumOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],uA.prototype,"hasPremiumOptions",null);
uA=_.X([_.l({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],uA);
_.p(uA,"ytd-offline-promo-content",function(){if(m36!==void 0)return m36;var q=document.createElement("template");_.a(q,'\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="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return m36=q},{mode:1});var fyV;var Lg=function(){var q=_.N.apply(this,arguments)||this;q.premiumOptions=[];return q};
_.z(Lg,_.N);Lg.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var q;this.premiumOptions=$fc((q=this.data)==null?void 0:q.formats)};
Lg.prototype.onClickSubmit=function(){_.yY(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var q;(q=_.K6())==null||q.pause()};
Lg.prototype.attached=function(){this.JSC$18274_scroller&&(this.JSC$18274_scroller.dialogElement=this.hostElement.parentNode)};
_.My.Object.defineProperties(Lg.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
var SS=Lg;SS.prototype.dataChanged=SS.prototype.dataChanged;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],SS.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],SS.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],SS.prototype,"data",void 0);
_.X([_.F({computed:"computeIcon_(data.headersIcon)",value:""}),_.A("design:type",String)],SS.prototype,"headersIcon",void 0);_.X([_.F(),_.A("design:type",Array)],SS.prototype,"premiumOptions",void 0);_.X([_.fo("#scroller"),_.A("design:type",Object)],SS.prototype,"JSC$18274_scroller",void 0);_.X([_.I("headersIcon"),_.A("design:type",Object),_.A("design:paramtypes",[])],SS.prototype,"showIcon",null);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SS.prototype,"dataChanged",null);SS=_.X([_.l({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],SS);
_.p(SS,"ytd-offline-promo-renderer",function(){if(fyV!==void 0)return fyV;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return fyV=q},{mode:1});var D3l;var h_C=function(){var q=_.N.apply(this,arguments)||this;q.playbackPauseInterval=NaN;q.isLoading=!1;q.hasError=!1;q.dialogClass="";q.youtubeLabel=_.dT("LOGO_ALT_LABEL",{},"YouTube Home");q.logoName="yt-logos-ext:yt-logo-updated";q.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return q};
_.z(h_C,_.N);_.e=h_C.prototype;_.e.onDataChange=function(){var q;if(this.showEOMV1Text=!((q=this.data)==null||!q.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.e.attached=function(){this.pausePlayer()};
_.e.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.e.handleLangSelect=function(q){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[q.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.e.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.e.handleSaveConsent=function(q){var Z=this;this.showLoadingSpinner();this.showLoadingSpinner();pJu(_.J(q,Yfc)).catch(function(w){_.bx(new _.df("Something went wrong when save consent "+(w.message?w.message:w)+"."));Z.hideLoadingSpinner();Z.showErrorMessage()})};
_.e.handleDisablePersonalization=function(q){var Z=this;this.showLoadingSpinner();XJc(_.J(q,rpl)).then(function(){Z.dialog.close();Z.resumePlayer()}).catch(function(w){_.bx(new _.df("Something went wrong when disable personalization "+(w.message?w.message:w)+"."));
Z.hideLoadingSpinner();Z.showErrorMessage()})};
_.e.showLoadingSpinner=function(){var q=this;this.showSpinnerJobId=_.v5.addLowPriorityJob(function(){q.isLoading=!0},500)};
_.e.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.v5.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.e.showErrorMessage=function(){var q=this;this.hasError=!0;_.v5.addLowPriorityJob(function(){q.hasError=!1},2E3)};
_.e.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.yV(function(){try{var q=_.K6();q&&q.pause()}catch(Z){}},100))};
_.e.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var q=_.K6();q&&q.play()}catch(Z){}};
_.My.Object.defineProperties(h_C.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.eomV1Text)return[];q=[];for(var Z=["SHIELD","WARNING","BAR_CHART"],w=this.data.eomV1Text.essentialCookieMsg.items,r=0;r<Z.length&&r<w.length;r++)q.push({icon:Z[r],text:w[r]});return q}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.eomV1Text)return[];q=[];for(var Z=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],w=this.data.eomV1Text.nonEssentialCookieMsg.items,r=0;r<Z.length&&r<w.length;r++)q.push({icon:Z[r],text:w[r]});return q}}});
var vK=h_C;vK.prototype.onDataChange=vK.prototype.onDataChange;_.X([_.F(),_.A("design:type",Object)],vK.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],vK.prototype,"showEOMV1Text",void 0);_.X([_.F(),_.A("design:type",Object)],vK.prototype,"isLoading",void 0);_.X([_.F(),_.A("design:type",Object)],vK.prototype,"hasError",void 0);_.X([_.F(),_.A("design:type",Number)],vK.prototype,"showSpinnerJobId",void 0);_.X([_.F(),_.A("design:type",Object)],vK.prototype,"dialogClass",void 0);
_.X([_.fo("#dialog"),_.A("design:type",Object)],vK.prototype,"dialog",void 0);_.X([_.fo("#cb-header"),_.A("design:type",HTMLElement)],vK.prototype,"header",void 0);_.X([_.fo("#lang-select"),_.A("design:type",HTMLElement)],vK.prototype,"langSelect",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],vK.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],vK.prototype,"ytComponentBehavior",void 0);
_.X([_.F(),_.A("design:type",String)],vK.prototype,"youtubeLabel",void 0);_.X([_.F(),_.A("design:type",Object)],vK.prototype,"logoName",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vK.prototype,"onDataChange",null);_.X([_.I("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],vK.prototype,"eomEssentialCookieMsgItems",null);
_.X([_.I("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],vK.prototype,"eomNonEssentialCookieMsgItems",null);vK=_.X([_.l({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],vK);
_.p(vK,"ytd-consent-bump-v2-lightbox",function(){if(D3l!==void 0)return D3l;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return D3l=q},{mode:1});var yVl;var iWF=function(){return _.N.apply(this,arguments)||this};
_.z(iWF,_.N);iWF.prototype.ready=function(){if(!_.eT()||PBF)var q=!0;else PBF=!0,q=!1;q||(q=document.querySelector("ytd-app"),q||(q=document.body),this.internalLightBox=_.E(q).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
var jS=iWF;_.X([_.F(),_.A("design:type",Object)],jS.prototype,"data",void 0);_.X([_.fo("#lightbox"),_.A("design:type",Object)],jS.prototype,"lightBox",void 0);jS=_.X([_.l({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],jS);
_.p(jS,"ytd-consent-bump-v2-renderer",function(){if(yVl!==void 0)return yVl;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return yVl=q},{mode:1});var gyl;var qdq;var ZEl;var wn8=function(){var q=_.N.apply(this,arguments)||this;q.ephemeralActionsEnabled=_.b("web_ephemeral_actions");return q};
_.z(wn8,_.N);_.e=wn8.prototype;_.e.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&bjb(this.toastManager,this.toastType)};
_.e.open=function(q){this.toast&&(this.ephemeralAction&&_.t().resolve(_.Aa).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=q!=null?q:0,this.toastManager.enqueue(this.toast,q)):this.toast.open())};
_.e.close=function(q){var Z;(Z=this.toast)==null||Z.close();this.toastManager&&q===1&&bjb(this.toastManager,q)};
_.e.refit=function(){var q;(q=this.toast)==null||q.refit()};
_.e.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var q;(q=this.toast)==null||q.close()}};
_.e.setVerticalOffset=function(q){this.toast&&(this.toast.verticalOffset=q,this.toast.fit())};
_.e.computeButtonClass_=function(q){return q?"toast-button":""};
_.e.computeText_=function(q){return _.kO(q)};
_.e.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zU("toast-opened-changed",this.toastOpened))};
_.e.updateToastOpenedFromBinding=function(q){this.toastOpened=q.detail.value};
_.My.Object.defineProperties(wn8.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var q,Z,w=(q=this.data)==null?void 0:(Z=q.actionButton)==null?void 0:Z.buttonRenderer;return(w==null?void 0:w.command)||(w==null?void 0:w.serviceEndpoint)||(w==null?void 0:w.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&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 q=[],Z;((Z=this.data)==null?0:Z.responseText)&&q.push(_.kO(this.data.responseText));var w;((w=this.data)==null?0:w.subText)&&q.push(_.kO(this.data.subText));var r,Y;if((r=this.data)==null?0:(Y=r.actionButton)==null?0:Y.buttonRenderer){var C,d;q.push(((C=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(d=C.accessibilityData)==null?void 0:d.label)||_.kO(this.data.actionButton.buttonRenderer.text))}return q.filter(function(O){return O}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var q,Z;return(Z=(q=this.toast)==null?void 0:q.opened)!=null?Z:!1}}});
var t8=wn8;t8.prototype.toastOpenedChangedForBinding=t8.prototype.toastOpenedChangedForBinding;t8.prototype.toastOpenedChanged=t8.prototype.toastOpenedChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],t8.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],t8.prototype,"ytEventForwardingBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],t8.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],t8.prototype,"duration",void 0);_.X([_.F(),_.A("design:type",Number)],t8.prototype,"toastType",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],t8.prototype,"useCloseButton",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],t8.prototype,"closeToastOnActionButtonClick",void 0);_.X([_.F({value:function(){return _.dT("SBOX_INAPPROPRIATE_CANCEL")}}),
_.A("design:type",String)],t8.prototype,"closeButtonAriaLabel",void 0);_.X([_.F(),_.A("design:type",Boolean)],t8.prototype,"toastOpened",void 0);_.X([_.F(),_.A("design:type",Boolean)],t8.prototype,"hasOpened",void 0);_.X([_.F(),_.A("design:type",Object)],t8.prototype,"ephemeralActionsEnabled",void 0);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],t8.prototype,"command",null);
_.X([_.I("ephemeralActionsEnabled","labelText","command","duration"),_.A("design:type",Object),_.A("design:paramtypes",[])],t8.prototype,"ephemeralAction",null);_.X([_.I("ephemeralAction"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],t8.prototype,"hasEphemeralAction",null);_.X([_.fo("#toast"),_.A("design:type",Object)],t8.prototype,"toast",void 0);_.X([_.F({value:function(){return{style:"call-to-action-inverse"}}}),
_.A("design:type",Object)],t8.prototype,"buttonOverrides",void 0);_.X([_.F({value:{style:"mono-inverse"}}),_.A("design:type",Object)],t8.prototype,"closeButtonOverrides",void 0);_.X([_.F({value:function(){return _.t().resolve(_.Gj(_.pNl))}}),
_.A("design:type",Object)],t8.prototype,"toastManager",void 0);_.X([_.I("data.responseText","data.subText","data.actionButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],t8.prototype,"labelText",null);_.X([_.M("toastOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t8.prototype,"toastOpenedChanged",null);
_.X([_.M("toastOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t8.prototype,"toastOpenedChangedForBinding",null);t8=_.X([_.dx({is:"yt-notification-action-renderer",disableElementRegistration:!0})],t8);
_.p(t8,"yt-notification-action-renderer",function(){if(ZEl===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;qdq===void 0&&(qdq=document.createElement("template"));var r=qdq;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);ZEl=q}q=ZEl;return q},{mode:2});var rhZ=function(){var q=_.N.apply(this,arguments)||this;q.duration=4E3;q.downloadingCount=0;q.downloadedCount=0;q.downloadingOnlySmartDownloads=!1;q.sessionTotalDownloads=0;q.sessionDownloaded=0;q.previousSessionsDownloaded=0;q.totalDownloadPercentage=0;q.currentDownloadProgress=0;q.currentDownloadPercentage=0;q.isLeaderTab=!0;q.isFullScreen=!1;q.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};q.boundBeforeUnload=function(Z){q.isLeaderTab&&q.downloadingCount>0&&(Z.preventDefault(),
Z.returnValue=!0)};
return q};
_.z(rhZ,_.N);_.e=rhZ.prototype;
_.e.open=function(){this.updateDownloadState();if(this.data){var q=this.sessionDownloaded+1,Z=this.sessionTotalDownloads>1?_.dT("VIDEOS_DOWNLOADING_RATIO",{downloaded:q.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+q+"/"+this.sessionTotalDownloads):_.dT("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(Z=this.sessionTotalDownloads>1?_.dT("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:q.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
q+"/"+this.sessionTotalDownloads):_.dT("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));q=this.isLeaderTab?_.dT("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.kO(this.data.responseText)!==Z||_.kO(this.data.subText)!==q)this.set("data.responseText",_.UE(Z)),this.set("data.subText",_.UE(q)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.e.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.e.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.e.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.e.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var q=this.downloadedCount-this.previousSessionsDownloaded;q<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-q);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.e.handleFullscreenChange=function(q){(this.isFullScreen=q)||this.updatePopup()};
var RC=rhZ;RC.prototype.updateCurrentDownloadProgress=RC.prototype.updateCurrentDownloadProgress;RC.prototype.updatePopup=RC.prototype.updatePopup;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],RC.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],RC.prototype,"ytEventForwardingBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],RC.prototype,"actionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],RC.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],RC.prototype,"duration",void 0);_.X([_.F({selector:function(q){return _.cAO(q.entities).length}}),
_.A("design:type",Object)],RC.prototype,"downloadingCount",void 0);_.X([_.F({selector:q1V}),_.A("design:type",Object)],RC.prototype,"downloadedCount",void 0);_.X([_.F({selector:function(q){var Z=_.cAO(q.entities);return gcl(q.entities,Z)}}),
_.A("design:type",Object)],RC.prototype,"downloadingOnlySmartDownloads",void 0);_.X([_.F(),_.A("design:type",Object)],RC.prototype,"sessionTotalDownloads",void 0);_.X([_.F(),_.A("design:type",Object)],RC.prototype,"sessionDownloaded",void 0);_.X([_.F(),_.A("design:type",Object)],RC.prototype,"previousSessionsDownloaded",void 0);_.X([_.F(),_.A("design:type",Object)],RC.prototype,"totalDownloadPercentage",void 0);
_.X([_.F({selector:function(q){var Z;q=(Z=_.cAO(q.entities))!=null?Z:[];return q.length>0?_.a1O(q.slice(-1)):0}}),
_.A("design:type",Object)],RC.prototype,"currentDownloadProgress",void 0);_.X([_.F(),_.A("design:type",Object)],RC.prototype,"currentDownloadPercentage",void 0);_.X([_.F({selector:_.lKz}),_.A("design:type",Object)],RC.prototype,"isLeaderTab",void 0);_.X([_.fo("yt-notification-action-renderer"),_.A("design:type",Object)],RC.prototype,"notificationActionRenderer",void 0);
_.X([_.g3("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RC.prototype,"updatePopup",null);_.X([_.g3("currentDownloadProgress"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RC.prototype,"updateCurrentDownloadProgress",null);RC=_.X([_.l({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],RC);
_.p(RC,"ytd-video-download-toast-renderer",function(){if(gyl!==void 0)return gyl;var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return gyl=q},{mode:1});var Yd6;var $ml;var eQ7=function(){return _.N.apply(this,arguments)||this};
_.z(eQ7,_.N);eQ7.prototype.computeIsRedLogo=function(q,Z){!q&&Z&&(q=Z);return q==="YOUTUBE_RED_LOGO"||q==="YOUTUBE_PREMIUM_LOGO"};
eQ7.prototype.computeLogoName=function(q){q=this.componentBehavior.computeIcon_(q);return q===""?"yt-logos-ext:yt-logo-updated":q};
var bA=eQ7;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],bA.prototype,"componentBehavior",void 0);_.X([_.F({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.A("design:type",Boolean)],bA.prototype,"isRedLogo",void 0);_.X([_.F({computed:"computeLogoName(data)"}),_.A("design:type",String)],bA.prototype,"logoName",void 0);_.X([_.F({value:{}}),_.A("design:type",Object)],bA.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],bA.prototype,"logoType",void 0);bA=_.X([_.l({disableElementRegistration:!0,is:"ytd-logo"})],bA);
_.p(bA,"ytd-logo",function(){if($ml!==void 0)return $ml;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return $ml=q},{mode:_.NT("kevlar_poly_si_batch_j074")?1:2});var Cj8=function(){var q=_.N.apply(this,arguments)||this;q.animationRef={};return q};
_.z(Cj8,_.N);_.e=Cj8.prototype;_.e.attached=function(){document.addEventListener("yt-navigate-finish",_.XN(this,this.logYoodle))};
_.e.detached=function(){document.removeEventListener("yt-navigate-finish",_.XN(this,this.logYoodle))};
_.e.logYoodle=function(){var q,Z;if((q=this.data)==null?0:(Z=q.loggingDirectives)==null?0:Z.trackingParams)this.ytRendererBehavior.markDirty(),_.iy().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.e.computeHideImg=function(q,Z){return!!q||!!Z};
_.e.computeHideYtdLogo=function(q,Z){return!q||!!Z};
_.e.computeHideLottie=function(q){return!q};
_.e.computeIsRedLogo=function(q){return q==="YOUTUBE_RED_LOGO"||q==="YOUTUBE_PREMIUM_LOGO"};
_.e.renderLogoEntity=function(){var q=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),Z=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),w=this.getLogoTitleText(this.data),r=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==q&&(this.url=q);this.animatedUrl!==Z&&(this.animatedUrl=Z);this.logoTitleText!==w&&(this.logoTitleText=w);this.lottieUrl!==r&&(this.lottieUrl=r,this.lottiePlayerProps=this.computeLottiePlayerProps(r))};
_.e.getSanitizedThumbnail=function(q){return q&&q.thumbnails?_.i12(q.thumbnails,122)||"":""};
_.e.getThumbnailUrl=function(q,Z){if(!Z)return"";var w,r;q=q?(w=Z.darkThemeLogo)==null?void 0:w.thumbnail:(r=Z.lightThemeLogo)==null?void 0:r.thumbnail;return this.getSanitizedThumbnail(q)};
_.e.getAnimatedThumbnailUrl=function(q,Z){return Z?this.getSanitizedThumbnail(q?Z.darkThemeAnimatedLogo:Z.lightThemeAnimatedLogo):""};
_.e.getLogoTitleText=function(q){if(q)return _.kO(q.tooltipText)};
_.e.computeLogoIcon=function(q,Z){if(Z){var w,r;return q?(w=Z.darkThemeLogo)==null?void 0:w.icon:(r=Z.lightThemeLogo)==null?void 0:r.icon}};
_.e.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.e.getLottieUrl=function(q,Z){var w,r,Y,C;return q?Z==null?void 0:(w=Z.darkThemeLogo)==null?void 0:(r=w.lottieAnimation)==null?void 0:r.url:Z==null?void 0:(Y=Z.lightThemeLogo)==null?void 0:(C=Y.lottieAnimation)==null?void 0:C.url};
_.e.computeLottiePlayerProps=function(q){if(q){var Z;if((Z=this.animationRef)==null?0:Z.lottieEl){var w;(w=this.animationRef)==null||w.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:q,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.e.onLottieError=function(){this.data&&this.lottieUrl&&_.hy(this.hostElement,"yoodle-error")};
_.e.onImgError=function(){this.data&&!this.lottieUrl&&_.hy(this.hostElement,"yoodle-error")};
var J8=Cj8;J8.prototype.playAnimation=J8.prototype.playAnimation;J8.prototype.renderLogoEntity=J8.prototype.renderLogoEntity;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],J8.prototype,"data",void 0);_.X([_.F({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.A("design:type",Boolean)],J8.prototype,"hideImg",void 0);
_.X([_.F({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.A("design:type",Boolean)],J8.prototype,"hideYtdLogo",void 0);_.X([_.F({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.A("design:type",Boolean)],J8.prototype,"hideLottie",void 0);_.X([_.F({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.A("design:type",Boolean)],J8.prototype,"isRedLogo",void 0);
_.X([_.F(),_.A("design:type",Boolean)],J8.prototype,"useDarkThemeYoodle",void 0);_.X([_.F(),_.A("design:type",String)],J8.prototype,"url",void 0);_.X([_.F(),_.A("design:type",String)],J8.prototype,"animatedUrl",void 0);_.X([_.F(),_.A("design:type",String)],J8.prototype,"logoTitleText",void 0);_.X([_.F({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.A("design:type",Object)],J8.prototype,"logoIcon",void 0);_.X([_.F(),_.A("design:type",Object)],J8.prototype,"logoType",void 0);
_.X([_.F(),_.A("design:type",String)],J8.prototype,"lottieUrl",void 0);_.X([_.F(),_.A("design:type",Object)],J8.prototype,"lottiePlayerProps",void 0);_.X([_.F(),_.A("design:type",Object)],J8.prototype,"animationRef",void 0);_.X([_.M("data"),_.M("useDarkThemeYoodle"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J8.prototype,"renderLogoEntity",null);
_.X([_.m2("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],J8.prototype,"playAnimation",null);J8=_.X([_.l({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],J8);
_.p(J8,"ytd-yoodle-renderer",function(){if(Yd6!==void 0)return Yd6;var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return Yd6=q},{mode:_.NT("kevlar_poly_si_batch_j074")?1:2});var PjV;var dmD;var VPV=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return q};
_.z(VPV,_.N);_.e=VPV.prototype;_.e.onYoodleError=function(){_.b("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.e.computeLogoName=function(q){q=this.componentBehavior.computeIcon_(q);return q===""?"yt-logos-ext:yt-logo-updated":q};
_.e.computeTitle=function(q,Z,w){return w&&(Z==null?0:Z.tooltipText)?_.kO(Z.tooltipText):_.kO(q)};
_.e.computeAriaLabel=function(q,Z,w){return w&&(Z==null?0:Z.tooltipText)?_.kO(q):""};
_.e.computeShowYoodle=function(q,Z,w){return!q||!Z&&!!w&&!_.R4.isEmpty(w)};
_.e.onNavigateHomeAction=function(){if(_.b("kevlar_miniplayer_navigate_home_from_app_killswitch")){var q;(q=_.E(this.hostElement).querySelector(".yt-simple-endpoint"))==null||q.click()}};
_.e.computeLogoHref=function(q,Z,w){var r;(w==null?0:w.onTapCommand)?r=this.componentBehavior.computeHref_(w.onTapCommand):q&&(r=this.componentBehavior.computeHref_(q));return r?r:Z};
_.e.computeCommand=function(q,Z){return(Z==null?void 0:Z.onTapCommand)||q};
_.e.getEndpointForm=function(){if(_.b("kevlar_topbar_disable_cache_only_home")){var q=_.t().resolve(_.oL),Z=eYS(q.getState())||"";q=_.uk9(q.getState())||"";return{disableCache:Z==="ytd-browse"&&q==="home"}}return{disableCache:!0}};
var zy=VPV;zy.prototype.onYoodleError=zy.prototype.onYoodleError;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],zy.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],zy.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],zy.prototype,"componentBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],zy.prototype,"ytdReduxBehavior",void 0);
_.X([_.F(),_.A("design:type",Object)],zy.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],zy.prototype,"countryCode",void 0);_.X([_.F({selectorArgs:["data.overrideEntityKey"],selector:function(q,Z){return _.iI(q.entities,"logoEntity",Z)}}),
_.A("design:type",Object)],zy.prototype,"logoEntity",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.A("design:type",Boolean)],zy.prototype,"showYoodle",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],zy.prototype,"yoodleError",void 0);_.X([_.F({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.A("design:type",String)],zy.prototype,"titleText",void 0);
_.X([_.F({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.A("design:type",String)],zy.prototype,"ariaLabelText",void 0);_.X([_.F({value:"/"}),_.A("design:type",String)],zy.prototype,"defaultEndpointUrl",void 0);_.X([_.F({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.A("design:type",String)],zy.prototype,"endpointUrl",void 0);
_.X([_.F({computed:"computeCommand(data.endpoint, logoEntity)"}),_.A("design:type",String)],zy.prototype,"command",void 0);_.X([_.F(),_.A("design:type",Object)],zy.prototype,"logoType",void 0);_.X([_.F({}),_.A("design:type",Boolean)],zy.prototype,"useDarkThemeYoodle",void 0);_.X([_.m2("yoodle-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zy.prototype,"onYoodleError",null);zy=_.X([_.l({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],zy);
_.p(zy,"ytd-topbar-logo-renderer",function(){if(dmD!==void 0)return dmD;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return dmD=q},{mode:_.NT("kevlar_poly_si_batch_j027")?1:2});var OEb=0;var HE7=_.QJ.SEARCH_APPEND_LABEL,WES=_.QJ.SUGGESTION_NEW_VIDEOS_TEXT,o0c=_.QJ.SUGGESTION_THUMBNAIL_LABEL,uF8=_.xl(function(q){function Z(ah){var gz,lN;return _.V(function(Op){if(Op.nextAddress==1)return gz=new Request(ah),_.d9(Op,2),_.W(Op,fetch(gz,{credentials:"include"}),4);if(Op.nextAddress!=2)return De(!0),_.QL(Op,0);lN=_.o3(Op);_.bx(lN);_.ub(Op)})}
var w=q.isHighlighted;var r=q.suggestion;var Y=q.onClickCallback;var C=q.onHoverUpdateCallback;var d=q.labels;var O=q.queryBuilderFunction;var H=q.onRemoveCallback;var L=q.suggestionIndex;var S=q.generateUniqueId;var v=q.highlightedId;var R=q.useScrollMargin;var B=q.isKeyboardMode;var n=null,x=null,K=_.Iw(),k=_.Iw(),G=_.cO(function(ah){ah&&_.nd(237477,ah,x,function(gz){x=gz})}),rz=_.cO(function(ah){ah&&_.nd(237477,ah,x,function(gz){x=gz})}),f=_.fn(function(ah){if((ah==null?void 0:ah.button)===2)return ah.preventDefault(),
!1;
var gz=_.b5();gz&&n&&_.IV(gz,n,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var lN;Y(ah,r().text,r().index,ah==null?void 0:(lN=ah.detail)==null?void 0:lN.wasSelectedByKeyboard);return!1}),eO=function(){return r().type===35},g=function(){return _.b("desktop_enable_single_suggestion_highlight")},H6=function(){return _.m6("desktop_suggestions_panel_row_height")||0},nX=function(){var ah;
return _.b("desktop_enable_new_video_metadata")&&((ah=r())==null?void 0:ah.hasNewVideo)===!0},Qj=function(){return _.b("desktop_enable_visual_suggest")},SO=function(){return g()?(w==null?void 0:w())||xg()&&!(B==null?0:B()):(w==null?void 0:w())||xg()},Te=function(){var ah=_.zj("SBOX_SETTINGS");
return eO()&&!(ah==null?0:ah.HIDE_REMOVE_LINK)},Ze=function(){return km7(r())},W1,A2=!((W1=_.t().resolve(_.Gj(_.RQ)))==null||!W1()),f9=function(){return eO()?"ARROW_TIME":"SEARCH"},Dl=function(){return d==null?void 0:d().SUGGESTION_DISMISS_LABEL},$g=function(){return d==null?void 0:d().SUGGESTION_DISMISSED_LABEL};
W1=_.P(_.qo(!1,void 0,"l3epFd"));q=W1.next().value;var De=W1.next().value;W1=_.P(_.qo(!1,void 0,"IdYnHc"));var n9=W1.next().value,Rh=W1.next().value,xg=n9,ZF=_.fn(function(){O(k.value.innerText);return!1}),mm=_.fn(function(ah){ah.preventDefault();
return!1}),CX=_.fn(function(ah){var gz=r().text,lN=_.zj("SBOX_SETTINGS"),Op="https://"+(lN.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
Op+="&delq="+encodeURIComponent(gz);(gz=lN==null?void 0:lN.PSUGGEST_TOKEN)&&(Op+="&tok="+gz);(lN=lN==null?void 0:lN.SESSION_INDEX)&&(Op+="&authuser="+lN);Z(Op);ah.preventDefault();(ah=_.b5())&&x&&_.IV(ah,x,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");H(L==null?void 0:L());return!1}),rb=_.fn(function(){if(g()&&(B==null?0:B()))return!1;
Rh(!0);C(!0);return!1}),mv=_.fn(function(){Rh(!1);
C(!1);return!1});
W1=_.P(_.qo("",void 0,"bHTG2e"));var lC=W1.next().value,L9=W1.next().value;_.oz(function(){Te()&&L9(S==null?void 0:S(L==null?void 0:L()));K.value&&_.nd(12453,K.value,n,function(ah){n=ah})});
return _.u(_.PF,{cond:q,then:function(){var ah={};return _.u("div",{class:_.GL("ytSuggestionComponentRemovedText",(ah.ytSuggestionComponentLargerRemovedText=function(){return Qj()},ah)),
style:function(){return H6()>0?"height: "+H6()+"px;":""},
role:"button"},$g)},
else:function(){var ah={},gz={};return _.u("div",{class:_.GL("ytSuggestionComponentSuggestion",(ah.ytSuggestionComponentSuggestionHover=function(){return!g()},ah.ytSuggestionComponentHighlighted=SO,ah.ytSuggestionComponentPersonalizedSuggestion=eO,ah.ytSuggestionComponentMweb=!1,ah.ytSuggestionComponentLargerSuggestion=function(){return nX()||Qj()},ah.ytSuggestionComponentThumbnailSuggestion=function(){return Qj()},ah.ytSuggestionComponentRoundedSuggestion=function(){return _.b("desktop_enable_scrollable_suggestions_panel")&&
_.b("desktop_enable_suggestions_panel_padding")},ah)),
style:function(){return H6()>0?"height: "+H6()+"px;":""},
role:"presentation","on:mousedown":f,"on:mouseover":rb,"on:mouseout":mv,el:K},_.u("div",{class:_.GL("ytSuggestionComponentText",(gz.ytSuggestionComponentScrollMargin=R,gz)),"aria-label":function(){return nX()?r().text+" "+WES:r().text},
id:function(){return S==null?void 0:S(L==null?void 0:L())},
"on:mousedown":f,role:"option"},_.u(_.PF,{cond:function(){return r().type!==33},
then:function(){return _.u(_.q0,{icon:f9,className:"ytSuggestionComponentIcon"})}}),_.u("div",{class:"ytSuggestionComponentLeftContainer"},_.u("span",{el:k,
role:"button",tabindex:0},_.u(_.dA,{each:Ze},function(lN){return lN.bold?_.u("span",{class:"ytSuggestionComponentBold"},lN.text):_.u("span",null,lN.text)})),_.u(_.PF,{cond:function(){return nX()},
then:function(){return _.u("div",{class:"ytSuggestionComponentNewVideoContainer"},_.u("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.u("div",{class:"ytSuggestionComponentNewVideoText"},WES))}}))),_.u("div",{class:"ytSuggestionComponentRightContainer"},_.u(_.PF,{cond:function(){return Qj()&&r().visualSuggestUrl!==void 0},
then:function(){return _.u("img",{"aria-label":o0c,class:"ytSuggestionComponentvisualSuggestThumbnail",src:function(){return r().visualSuggestUrl}})}}),_.u(_.Oq,null,_.u(_.VV,{when:function(){return Qj()&&Te()}},function(){var lN={};
return _.u("button",{class:_.GL("ytSuggestionComponentRemoveLinkClearButton",(lN.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return lC()&&lC()===(v==null?void 0:v())},lN.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!SO()},lN)),
el:rz,"on:mousedown":CX,"aria-label":Dl,id:function(){return lC()}},_.u(_.q0,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.u(_.VV,{when:function(){return!(Qj()&&r().visualSuggestUrl!==void 0)&&Te()}},function(){var lN={};
return _.u("a",{class:_.GL("ytSuggestionComponentRemoveLink",(lN.ytSuggestionComponentRemoveLinkDark=A2,lN.ytSuggestionComponentRemoveLinkSelected=function(){return lC()&&lC()===(v==null?void 0:v())},lN)),
el:G,"on:mousedown":CX,"aria-label":Dl,tabindex:0,role:"button",id:function(){return lC()}},Dl)}),_.u(_.VV,{when:function(){return!1}},function(){return _.u("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":ZF,"on:mousedown":mm,role:"button","aria-label":HE7},_.u(_.q0,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Of");var LEb=_.xl(function(){var q=_.fn(function(){cVb().inputMethodsTracker.add(3);var Z,w=(Z=_.zj("SBOX_SETTINGS"))==null?void 0:Z.REQUEST_LANGUAGE;if(w)return _.np("//www.google.com/textinputassistant/14/"+w+"_tia.js"),!1});
return _.u("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.u("button",{class:"ytdTextInputAssistantButton","on:click":q},_.u("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Pf");var Sdb=function(){this.cache=new Map},v0l=function(q){for(var Z=_.P(q.cache.entries()),w=Z.next();!w.done;w=Z.next()){var r=_.P(w.value);
w=r.next().value;r=r.next().value;r.suggestions.some(function(Y){return Y.type===35})&&q.cache.delete(w)}};var jdC=_.QJ.SEARCH,tPV=_.QJ.SEARCH_CLEAR_LABEL,RQV=new _.F$("FAKE_SUGGEST_RESPONSE");_.xc(_.xl(function(q){function Z(){lN||(lN=setTimeout(function(){hK()},1E3))}
function w(Yg,dW){if(Yg.trim()){gz=Yg;_.bO("REFINEMENTS_TUPLE",void 0);L9=!0;var X7;dW=Nuq(mm,dW);var tK=(X7=q.searchEndpoint)==null?void 0:X7.call(q);X7=n9.value.value;tK||(tK=tiF);var tI;(tI=_.J(tK.commandMetadata,_.XK))!=null&&tI.url||(tI=Error("ml`"+JSON.stringify(tK)),_.tY(tI),tK=tiF);tI=_.R4.unsafeClone(tK);tK=_.nb(_.J(tI.commandMetadata,_.XK).url,"search_query",Yg);_.xi(location.href,"sv")==="1"&&(_.J(tI,_.Z5).params="EgOAAgE%3D",tK=_.nb(tK,"sv","1"));_.J(tI,_.Z5)&&(_.J(tI,_.Z5).query=Yg);
tK=tK.replace(/%20/g,"+");_.J(tI.commandMetadata,_.XK).url=tK;_.t().resolve(_.ps).resolveCommand(tI,{form:{tempData:{gs_l:dW,oq:X7!=null?X7:Yg}}});hK();n9.value.value=Yg;n9.value.blur();mm.reset()}}
function r(Yg){return _.V(function(dW){return dW.return(new Promise(function(X7){var tK=new XMLHttpRequest;tK.open("GET",x3u(Yg),!0);tK.withCredentials=!0;var tI=_.zj("SBOX_SETTINGS");(tI==null?0:tI.SEND_VISITOR_DATA)&&tK.setRequestHeader("X-Goog-Visitor-Id",tI==null?void 0:tI.VISITOR_DATA);tK.onload=function(){X7(tK.responseText)};
tK.onerror=function(){_.bx(Error("nl"));X7(null)};
setTimeout(function(){tK.abort()},1E4);
tK.send(null)}))})}
function Y(Yg){var dW,X7,tK,tI;return _.V(function(hj){switch(hj.nextAddress){case 1:return dW={credentials:"include",headers:Ey8()},window.AbortController&&(X7=new AbortController,setTimeout(function(){X7.abort("ytsbox-suggest-timeout")},1E4),dW.signal=X7.signal),_.d9(hj,2),_.W(hj,fetch(x3u(Yg),dW),4);
case 4:tK=hj.yieldResult.text();_.QL(hj,3);break;case 2:return tI=_.o3(hj),tI!=="ytsbox-abort-last"&&tI!=="ytsbox-suggest-timeout"&&_.bx(tI),hj.return(null);case 3:return hj.return(tK)}})}
function C(Yg){var dW,X7,tK;return _.V(function(tI){switch(tI.nextAddress){case 1:if(dW=_.t().resolve(_.Gj(RQV)))return tI.return(dW);X7=Date.now();Z();return _.b("yt_searchbox_xhr")?_.W(tI,r(Yg),5):_.W(tI,Y(Yg),4);case 4:tK=tI.yieldResult;tI.jumpTo(3);break;case 5:tK=tI.yieldResult;case 3:if(tK){lN&&(clearTimeout(lN),lN=null);var hj=mm,B1=X7,$a=Yg.query.length===0;B1=Date.now()-B1;$a?hj.zeroPrefixRoundTripTime=B1:(hj.JSC$18254_totalRoundTripTime+=B1,hj.maxRoundTripTime=Math.max(hj.maxRoundTripTime,
B1),$a=Math.floor(B1/100),$a>=ly8.length?++hj.roundTripTimeHistogram[9]:++hj.roundTripTimeHistogram[ly8[$a]])}return tI.return(tK)}})}
function d(Yg){var dW,X7,tK;return _.V(function(tI){if(tI.nextAddress==1)return(dW=ZF.cache.get(QIF(Yg)))?tI.return(dW):_.W(tI,C(Yg),2);X7=tI.yieldResult;if(X7===null)return tI.return(null);tK=new Kkc(X7);Yg.query.length===0&&tK.suggestions.length===0||ZF.cache.set(QIF(Yg),tK);return tI.return(tK)})}
function O(Yg){var dW,X7;return _.V(function(tK){if(tK.nextAddress==1){ah=!1;var tI=gz;tI=_.qOj()==="search"?(_.xi(location.href,"search_query")||_.xi(location.href,"q"))===tI:!1;dW=new ny6(Yg,tI?gz:null);return _.W(tK,d(dW),2)}X7=tK.yieldResult;if(X7===null)return tK.return();dW.query.length===0&&(mm.zeroPrefixSuggestionCount=X7.suggestions.length);if(dW.id<=Op)return mm.outOfSyncResponseCount++,tK.return();if(document.activeElement!==n9.value)return tK.return();Op=dW.id;var hj=mm,B1=X7.rawResponse[2]||
{};hj.experimentTriggeredBeforeFinal||(hj.experimentTriggeredBeforeFinal=hj.experimentTriggeredFinal);hj.experimentTriggeredFinal=!!B1.e;mm.updateSuggestions(X7.suggestions);K(-1);f9([]);X7.suggestions!==B()&&Fy(X7.suggestions.length);n(X7.suggestions);nX(X7.suggestions.length>0&&X7.suggestions[0].type===33);xg&&(xg.hidden=X7.suggestions.length===0,H6()?(xg.style.minWidth="",hj=xg.style,B1=(tI=B()[0])==null?void 0:tI.ignoredPrefix,hj.marginLeft=(B1?Math.min(B1.length*6,Rh.value.offsetWidth):0).toString()+
"px"):(xg.style.minWidth=Rh.value.offsetWidth+"px",xg.style.marginLeft="0"),BN());_.ub(tK)})}
function H(){if(!L9)return!1;var Yg=_.zj("REFINEMENTS_TUPLE");return Yg?(Yg=Yg[1].map(function(dW,X7){return new U3l([dW,0,[71]],n9.value.value,X7)}),B()!==Yg&&Fy(Yg.length),f9([]),n(Yg),mm.updateSuggestions(Yg),L9=!1,xg.hidden=Yg.length===0,ah=Yg.length>0,!0):!1}
function L(){var Yg=n9.value.value;(typeof Yg==="string"||Yg instanceof String)&&Yg!==""?f(!0):f(!1)}
function S(){if(_.qOj()==="search"){var Yg=window.location.href;try{var dW=_.xi(Yg,"search_query")||_.xi(Yg,"q")||""}catch(X7){dW=""}dW&&(n9.value.value=dW,f(!0))}}
var v=_.P(_.qo([],void 0,"nfrtkb")),R=v.next().value;v=v.next().value;var B=R,n=v;R=_.P(_.qo(-1,void 0,"cRyFvd"));var x=R.next().value,K=R.next().value;R=_.P(_.qo(-1,void 0,"EriPWe"));var k=R.next().value,G=R.next().value;R=_.P(_.qo(!1,void 0,"UK7opd"));var rz=R.next().value,f=R.next().value;R=_.P(_.qo(!1,void 0,"ego0bc"));var eO=R.next().value,g=R.next().value;v=_.P(_.qo(!1,void 0,"lRwSBb"));R=v.next().value;v=v.next().value;var H6=R,nX=v;v=_.P(_.qo(!1,void 0,"gLkpXb"));R=v.next().value;var Qj=v.next().value;
v=_.P(_.qo(!1,void 0,"In4Zlb"));var SO=v.next().value,Te=v.next().value;v=_.P(_.qo(1,void 0,"pQNR0c"));var Ze=v.next().value,W1=v.next().value;v=_.P(_.qo([],void 0,"EFteUe"));var A2=v.next().value,f9=v.next().value;v=_.P(_.qo(!1,void 0,"fnEGyd"));var Dl=v.next().value,$g=v.next().value;v=_.b("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var De=_.Iw(),n9=_.Iw(),Rh=_.Iw(),xg,ZF=new Sdb,mm=cVb(),CX=_.t().resolve(_.Gj(_.RQ)),
rb=function(){var Yg;return((Yg=q.forceDarkMode)==null?void 0:Yg.call(q))||!(CX==null||!CX())},mv=function(){return _.b("desktop_enable_scrollable_suggestions_panel")},lC="i"+OEb++,L9=!1,ah=!1,gz="",lN=null,Op=-1,hK=function(){f9([]);
n([]);nX(!1);xg&&(xg.hidden=!0);lN&&(clearTimeout(lN),lN=null);K(-1)},wr=function(Yg,dW){Yg.preventDefault();
$g(!0);xg&&(xg.hidden=!1);var X7=x();Yg=B();var tK=A2();dW=P4Z(dW);X7+=dW;for(X7>=Yg.length?X7=-1:X7<-1&&(X7=Yg.length-1);X7!==-1&&(tK.includes(X7)||X7>=Yg.length||X7<0);)X7+=dW,X7>=Yg.length&&(X7=-1);K(X7);x()>=0&&(n9.value.value=B()[x()].text,G(0),L(),Yg=x(),tK=k(),(tK=document.getElementById(a9[Yg][tK]))&&mv()&&(Yg===B().length-1?xg.scrollTop=xg.scrollHeight:tK.scrollIntoView({block:"nearest",inline:"start"})))};
_.MU(n9,"focus",function(Yg){if(!(Yg.relatedTarget instanceof Element&&Yg.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){g(!0);var dW;(dW=q.focusCallback)==null||dW.call(q,!0);H()||(ah?xg.hidden=!1:(_.hy(De.value,"yt-autonav-pause-focus",{}),O(Yg.target.value)))}});
_.MU(n9,"blur",function(Yg){if(!(Yg.relatedTarget instanceof Element&&Yg.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){g(!1);var dW;(dW=q.focusCallback)==null||dW.call(q,!1);xg.scrollTop=0;xg.hidden=!0;_.hy(De.value,"yt-autonav-pause-blur",{})}});
var TJ=function(Yg){Yg=P4Z(Yg);var dW;((dW=a9[x()])==null?0:dW[k()+Yg])&&G(k()+Yg)},Iq=_.fn(function(Yg){var dW=Yg.target;
switch(Yg.keyCode){case 13:Yg.preventDefault();var X7;if((X7=a9[x()])==null?0:X7[k()]){var tK;(tK=document.getElementById(a9[x()][k()]))==null||tK.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}Yg=Yg.shiftKey?4:3;X7=mm;tK=x();X7.selectedSuggestionIndex=tK;w(dW.value,Yg);break;case 27:xg&&(xg.hidden=!0);break;case 40:wr(Yg,40);break;case 38:wr(Yg,38);break;case 39:TJ(39);break;case 37:TJ(37);break;case 229:mm.inputMethodsTracker.add(4);break;default:mm.inputMethodsTracker.add(1),
MNS(mm)}return!1}),B8=_.fn(function(Yg){O(Yg.target.value);
L();mv()&&xg&&(xg.scrollTop=0);return!1}),Ny=_.fn(function(){mm.inputMethodsTracker.add(2);
MNS(mm);return!1});
_.oz(function(){if(xg){mm.reset();if(window.ResizeObserver){var Yg=new ResizeObserver(function(){H6()||(xg.style.minWidth=Rh.value.offsetWidth+"px")});
Yg.observe(Rh.value);(new ResizeObserver(function(){BN()})).observe(xg);
_.SG(function(){Yg.disconnect()})}S();
window.addEventListener("yt-navigate-finish",S);window.addEventListener("yt-focus-searchbox",function(){n9.value.focus()});
var dW;Qj((dW=_.zj("SBOX_SETTINGS"))==null?void 0:dW.HAS_ON_SCREEN_KEYBOARD)}else _.tY(new _.df("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var P8=_.fn(function(Yg){Yg.preventDefault();w(n9.value.value,12);return!1}),xx=_.fn(function(Yg){Yg.preventDefault();
var dW,X7;(dW=n9)==null||(X7=dW.value)==null||X7.focus();var tK,tI;((tK=n9)==null?void 0:(tI=tK.value)==null?void 0:tI.value)!==""&&(n9.value.value="",n9.value.dispatchEvent(new Event("input")));return!1}),GX=_.fn(function(){var Yg=Coc(n9.value.value,B().filter(function(dW){return dW.type!==35}).map(function(dW){return{label:dW.text}}));
_.yY(De.value,"yt-open-popup-action",[{openPopupAction:Yg},document.body]);return!1}),Jj=_.fn(function(){n9.value.focus();
return!1}),gc=function(Yg,dW,X7,tK){mm.selectedSuggestionIndex=X7;
w(dW,tK?3:1)},Jf=function(Yg){n9.value.value=Yg;
n9.value.dispatchEvent(new Event("input"));mm.inputMethodsTracker.add(5);MNS(mm,!0)},a9=[[]],hr=function(Yg){var dW="searchbox-suggestion"+_.b2(_.JQ);
a9[Yg].push(dW);return dW},Fy=function(Yg){if(B()){a9=[[]];
for(var dW=0;dW<Yg;dW++)a9.push([])}},BN=function(){if(mv()){var Yg=xg,dW=Yg.scrollTop;
Yg=Yg.scrollHeight-Yg.clientHeight;Te(dW>=Yg);dW=Math.abs(Yg-dW);dW<=40?W1(1-(40-dW)/40):W1(1)}},N4=function(){return"opacity: "+Ze()*100+"%"},mT=_.fn(function(){BN();
return!1}),Go=_.fn(function(){$g(!1);
return!1}),v6,U2={},c6={},oh={},Y8={};
return _.u("yt-searchbox",{class:_.GL("ytSearchboxComponentHost",(U2.ytSearchboxComponentMweb=!1,U2.ytSearchboxComponentDesktop=!0,U2["yt-searchbox-filled-query"]=function(){return rz()},U2["ytd-masthead"]=function(){return!eO()},U2.ytSearchboxComponentHostDark=rb,U2)),
role:"search",el:De,"client-ve-type":10349},_.u("div",{el:Rh,"on:click":Jj,class:_.GL("ytSearchboxComponentInputBox",(c6.ytSearchboxComponentInputBoxDark=rb,c6.ytSearchboxComponentInputBoxHasFocus=eO,c6))},_.u("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":P8},_.u(_.PF,{cond:eO,then:function(){return _.u("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.u(_.q0,{icon:"SEARCH"}))}}),_.u("input",{el:n9,
class:_.GL("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":lC,"aria-expanded":!((v6=xg)==null?0:v6.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:input":B8,"on:keydown":Iq,"on:paste":Ny,placeholder:q.placeholderText,"aria-activedescendant":function(){var Yg;return(Yg=a9[x()])==null?void 0:Yg[k()]},
"aria-autocomplete":"list",role:"combobox"})),_.u(_.PF,{cond:R,then:function(){return _.u("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.u(LEb,null))}}),_.u(_.PF,{cond:rz,
then:function(){return _.u("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.u("button",{class:"ytSearchboxComponentClearButton","on:click":xx,"aria-label":q.clearButtonAriaLabel||tPV},_.u(_.q0,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.u(_.YB,{model:{}})))}})),_.u("button",{class:_.GL("ytSearchboxComponentSearchButton",(oh.ytSearchboxComponentSearchButtonDark=rb,oh)),
"on:click":P8,"aria-label":jdC,title:q.placeholderText},_.u(_.q0,{icon:"SEARCH"})),_.u(_.PF,{cond:function(){if(jll()&&_.b("mweb_voice_search")&&q.voiceSearchButton)return q.voiceSearchButton()},
then:function(Yg){var dW={};return _.u("div",{class:_.GL("ytSearchboxComponentVoiceSearchWrapper",(dW.ytSearchboxComponentHideVoiceSearchButton=function(){return rz()},dW))},_.u(_.Hx,{data:Yg},{buttonRenderer:function(X7){return _.u(_.Mh,{data:X7.data,
onButtonClickCallback:function(){}})}}))}}),_.u("div",{el:_.TNT(function(Yg){return void(xg=Yg)}),
id:lC,class:_.GL("ytSearchboxComponentSuggestionsContainer",(Y8.ytSearchboxComponentSuggestionsContainerDark=rb,Y8["yt-searchbox-suggestions-container"]=!1,Y8.ytSearchboxComponentSuggestionsContainerScrollable=mv(),Y8.ytSearchboxComponentSuggestionsContainerAnimated=v,Y8)),"on:scroll":mT,"on:mousemove":Go,role:"listbox",hidden:!0},_.u(_.dA,{each:B},function(Yg,dW){return _.u(uF8,{suggestion:Yg,isHighlighted:function(){return dW()===x()},
onClickCallback:gc,onHoverUpdateCallback:function(X7){if(_.b("desktop_enable_single_suggestion_highlight")){var tK=dW();X7&&(G(0),K(tK))}},
onRemoveCallback:function(X7){v0l(ZF);X7===void 0||X7<0||A2().includes(X7)||f9([].concat(_.Ju(A2()),[X7]))},
labels:q.labels,queryBuilderFunction:Jf,suggestionIndex:dW,generateUniqueId:hr,highlightedId:function(){var X7;return(X7=a9[x()])==null?void 0:X7[k()]},
useScrollMargin:mv(),isKeyboardMode:Dl})}),_.u(_.PF,{cond:function(){return!H6()&&B().find(function(Yg){return Yg.type!==35})&&_.b("searchbox_reporting")},
then:function(){return _.u("button",{class:"ytSearchboxComponentReportButton","on:mousedown":GX},_.dT("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.u(_.PF,{cond:function(){return!SO()&&mv()},
then:function(){return _.u("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.u("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:N4}))}})))},"Qf"),"yt-searchbox",{props:{searchEndpoint:_.zG,
placeholderText:_.zG,labels:_.zG,voiceSearchButton:_.zG,focusCallback:_.EL,clearButtonAriaLabel:_.zG,forceDarkMode:_.zG}});var bEl=function(){var q=_.N.apply(this,arguments)||this;q.menuButtonTargetId="topbar-guide-menu";q.narrow=!1;q.menuStrings={BACK_ALT_LABEL:_.dT("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.dT("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.dT("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.dT("SBOX_PLACEHOLDER",void 0,"Search")};q.pageDarkTheme=document.documentElement.hasAttribute("dark");q.watchPageScrollTop=0;q.theater=!1;q.fullscreen=!1;q.desktopUnifiedSearchPanelMode=_.b("desktop_enable_unified_search_panel");
q.cinematicTheaterMode=_.b("web_cinematic_theater_mode");q.ytSearchboxFocused=!1;q.searchboxLabels=_.zj("SBOX_LABELS");q.topbarIsAboveChipbar=!1;q.isDarkThemeForced=!1;q.areGhostCardsHidden=!1;q.guideKeyboardToggle=!1;q.voiceSearchManager=nsu();q.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};q.setYtSearchboxFocused=function(Z){q.ytSearchboxFocused=Z};
return q};
_.z(bEl,_.N);_.e=bEl.prototype;_.e.computeSimpleText=function(q){return _.kO(q)};
_.e.onDarkChanged=function(){for(var q=_.P(this.buttons||[]),Z=q.next();!Z.done;Z=q.next())Z.value.isOverlay=!!this.dark;q=_.P(this.buttonRenderers||[]);for(Z=q.next();!Z.done;Z=q.next())Z.value.overrides=this.computeButtonOverride()};
_.e.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.e.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"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var q=_.BV(_.zB(),"aa");_.NZ(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||q||(this.isDarkThemeForced=this.dark=!0);this.logoType?(q=this.hostElement.querySelector("#masthead-logo"))&&(_.b("polymer_on_demand_shady_dom")?q.setAttribute("slot","masthead-logo-old"):_.Vb(q)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.XN(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.XN(this,this.onSetTheaterModeEnabled))};
_.e.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.XN(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.XN(this,this.onSetTheaterModeEnabled))};
_.e.dataChanged=function(){var q=this.data;q&&(this.voiceEnabled=q.voiceSearchButton?nsu().isSupported():!1,_.wwv(_.DK(),this.menuButtonTargetId,this.guideButton),q.onReceivedActions&&q.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.ZC(this.hostElement,q.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&q&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.NZ(this.hostElement,"dark",!1),_.NZ(this.hostElement,"theater",!1),
(q=this.hostElement.querySelector("#masthead-logo"))&&(_.b("polymer_on_demand_shady_dom")?q.setAttribute("slot","masthead-logo-old"):_.Vb(q))))};
_.e.computeCenterHidden=function(){var q;return this.data&&!((q=this.data.searchbox)==null?0:q.fusionSearchboxRenderer)};
_.e.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.NZ(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.e.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.e.onWatchScroll=function(q){this.watchPageScrollTop=q.detail||0;this.updateMastheadBackgroundOpacity()};
_.e.onFullscreenChangeAction=function(q){q||(this.watchPageScrollTop=0);this.fullscreen=q;this.updateMastheadBackgroundOpacity()};
_.e.onSetTheaterModeEnabled=function(q){this.theater=q.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.e.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.e.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.e.setBackgroundOpacity=function(q){q=this.calculateBackgroundOpacity(q);this.background.style.opacity=""+q};
_.e.calculateBackgroundOpacity=function(q){var Z=this.theater&&this.cinematicTheaterMode?.6:0,w=this.hostElement.clientHeight/2;return Math.min(Math.max(q,0),w)/w*(1-Z)+Z};
_.e.shouldShowCinematicMastHead=function(){var q=_.b("kevlar_watch_grid")&&!_.b("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(q||this.pageDarkTheme)};
_.e.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.e.focusGuide=function(){this.guideButton.focus()};
_.e.onIronResize=function(){(this.get("data.interstitial")||this.get("data.ticker"))&&_.hy(this.hostElement,"yt-masthead-height-changed",{height:this.hostElement.clientHeight})};
_.e.onGuideToggleTap=function(){_.hy(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.e.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.e.onGuideToggleHover=function(){_.hy(this.hostElement,"yt-guide-hover")};
_.e.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.e.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.e.closeOnOutsideClickCondition=function(q){for(q=_.E8(q);q[0];){var Z=q.shift();if(Z instanceof Element&&Z.id==="kbd")return!1}return!0};
_.e.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.e.pausePlayer=function(){var q;(q=_.K6())==null||q.pause();this.pauseMiniplayer()};
_.e.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var q;(q=_.t().resolve(_.Tf).getPlayerElement())==null||q.pause()}};
_.e.isMiniplayerActive=function(){return _.t().resolve(_.Tf).isMiniplayerActive()};
_.e.updateNarrowFromBinding=function(q){this.narrow=q.detail.value};
_.e.onYtSendFeedbackAction=function(){_.yY(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.My.Object.defineProperties(bEl.prototype,{shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var q;return(q=this.data)==null?void 0:q.voiceSearchButton}}}});
var BK=bEl;BK.prototype.narrowChanged=BK.prototype.narrowChanged;BK.prototype.onIronResize=BK.prototype.onIronResize;BK.prototype.onWatchPageChange=BK.prototype.onWatchPageChange;BK.prototype.onRendererStamperFinished=BK.prototype.onRendererStamperFinished;BK.prototype.dataChanged=BK.prototype.dataChanged;BK.prototype.onDarkChanged=BK.prototype.onDarkChanged;_.X([_.U(_.SQ),_.A("design:type",Object)],BK.prototype,"ironResizableBehavior",void 0);
_.X([_.U(_.K3V),_.A("design:type",Object)],BK.prototype,"ytdExpandableInputBehavior",void 0);_.X([_.U(_.J_.YtdGuideStateAwareBehavior),_.A("design:type",Object)],BK.prototype,"ytdGuideStateAwareBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],BK.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],BK.prototype,"ytComponentBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],BK.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],BK.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.LO),_.A("design:type",Object)],BK.prototype,"ytdReduxBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],BK.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],BK.prototype,"narrow",void 0);_.X([_.F(),_.A("design:type",Object)],BK.prototype,"logoType",void 0);
_.X([_.F(),_.A("design:type",Boolean)],BK.prototype,"voiceEnabled",void 0);_.X([_.F(),_.A("design:type",Object)],BK.prototype,"menuStrings",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],BK.prototype,"dark",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],BK.prototype,"pageDarkTheme",void 0);_.X([_.F(),_.A("design:type",Object)],BK.prototype,"watchPageScrollTop",void 0);
_.X([_.F({reflectToAttribute:!0,selector:_.t0}),_.A("design:type",Boolean)],BK.prototype,"isWatchPage",void 0);_.X([_.F({reflectToAttribute:!0,selector:_.ECN}),_.A("design:type",Boolean)],BK.prototype,"isShortsPage",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],BK.prototype,"theater",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],BK.prototype,"fullscreen",void 0);
_.X([_.F({reflectToAttribute:!0,selector:_.KM2}),_.A("design:type",String)],BK.prototype,"frostedGlassMode",void 0);_.X([_.F(),_.A("design:type",Object)],BK.prototype,"ytSearchboxFocused",void 0);_.X([_.D5("#buttons > *"),_.A("design:type",Array)],BK.prototype,"buttons",void 0);_.X([_.D5("ytd-button-renderer"),_.A("design:type",Array)],BK.prototype,"buttonRenderers",void 0);_.X([_.fo("#background"),_.A("design:type",HTMLDivElement)],BK.prototype,"background",void 0);
_.X([_.fo("#guide-button"),_.A("design:type",Object)],BK.prototype,"guideButton",void 0);_.X([_.fo("#logo"),_.A("design:type",Object)],BK.prototype,"logo",void 0);_.X([_.F({computed:"computeButtonOverride(dark)"}),_.A("design:type",Object)],BK.prototype,"buttonOverrides",void 0);_.X([_.g3("dark"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BK.prototype,"onDarkChanged",null);_.X([_.F({value:function(){return this.onVoiceTap.bind(this)}}),
_.A("design:type",Function)],BK.prototype,"boundOnTapVoiceButton",void 0);_.X([_.F(),_.A("design:type",Object)],BK.prototype,"topbarIsAboveChipbar",void 0);_.X([_.I("voiceEnabled"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],BK.prototype,"shouldShowVoiceSearchButton",null);_.X([_.I("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],BK.prototype,"voiceSearchButton",null);
_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BK.prototype,"dataChanged",null);_.X([_.m2("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BK.prototype,"onRendererStamperFinished",null);_.X([_.g3("isWatchPage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BK.prototype,"onWatchPageChange",null);
_.X([_.m2("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BK.prototype,"onIronResize",null);_.X([_.g3("narrow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BK.prototype,"narrowChanged",null);BK=_.X([_.l({disableElementRegistration:!0,is:"ytd-masthead"})],BK);
_.p(BK,"ytd-masthead",function(){if(PjV!==void 0)return PjV;var q=document.createElement("template");_.a(q,'\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="yt-icons:menu" 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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return PjV=q},{mode:_.NT("kevlar_poly_si_batch_j036")?1:2});var Jhb;var zQF={},B$C={},aRF={},n0C={},QdF=(n0C.OFFLINE=(zQF["publicytnetworkstatus-online"]="BACK_ONLINE",zQF),n0C.ONLINE=(B$C["publicytnetworkstatus-offline"]="OFFLINE",B$C),n0C.BACK_ONLINE=(aRF["publicytnetworkstatus-offline"]="OFFLINE",aRF.TIMER_TRIGGER="ONLINE",aRF),n0C),E0D=function(){var q=_.N.apply(this,arguments)||this;q.currentState="ONLINE";q.scheduledJobId=0;q.bannerString="";q.bannerVe=null;q.networkStatusManagerInstance=new _.To;return q};
_.z(E0D,_.N);_.e=E0D.prototype;_.e.attached=function(){var q=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){q.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){q.stateChangeHandler("publicytnetworkstatus-offline")})};
_.e.detached=function(){var q=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){q.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){q.stateChangeHandler("publicytnetworkstatus-offline")})};
_.e.enterState=function(q){var Z=this;this.scheduledJobId&&_.v5.cancelJob(this.scheduledJobId);q==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):q==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.dT("NO_INTERNET_CONNECTION",void 0,"No internet connection")):q==="BACK_ONLINE"&&(this.bannerString=_.dT("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.WO(_.v5,function(){Z.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=q};
_.e.stateChangeHandler=function(q){(q=QdF[this.currentState][q])&&this.enterState(q)};
_.e.logVisibility=function(q){var Z=_.b5();this.createBannerVe(q);Z&&this.bannerVe&&(q?_.kK(Z,[this.bannerVe]):_.KR(Z,[this.bannerVe]))};
_.e.createBannerVe=function(q){!this.bannerVe&&q&&(this.bannerVe=_.C6(37929),_.fH(_.iy(),this.bannerVe))};
var aC=E0D;_.X([_.F({reflectToAttribute:!0}),_.A("design:type",String)],aC.prototype,"currentState",void 0);_.X([_.F(),_.A("design:type",Object)],aC.prototype,"scheduledJobId",void 0);_.X([_.F(),_.A("design:type",Object)],aC.prototype,"bannerString",void 0);aC=_.X([_.l({disableElementRegistration:!0,is:"ytd-network-status-banner"})],aC);
_.p(aC,"ytd-network-status-banner",function(){if(Jhb!==void 0)return Jhb;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return Jhb=
q},{mode:1});var xm8;var T$u=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};q.hidden=!0;q.frostedGlass=_.b("web_frosted_glass");return q};
_.z(T$u,_.N);T$u.prototype.computeHidden=function(q){return q&&q.status?!1:!0};
T$u.prototype.handleUpdatePermissionRoleCommand=function(q){if(q=_.J(q,_.uGJ))if(q=_.J(q.renderer,_.o5p))this.data=q};
var Qd=T$u;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Qd.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Qd.prototype,"componentBehavior",void 0);_.X([_.F({value:!0,computed:"computeHidden(data)"}),_.A("design:type",Object)],Qd.prototype,"hidden",void 0);_.X([_.F(),_.A("design:type",Object)],Qd.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Qd.prototype,"frostedGlass",void 0);
Qd=_.X([_.l({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Qd);
_.p(Qd,"ytd-permission-role-bottom-bar-renderer",function(){if(xm8!==void 0)return xm8;var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);return xm8=q},{mode:1});var UmC;var k_c;var df8={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var KED=function(){return _.N.apply(this,arguments)||this};
_.z(KED,_.N);_.e=KED.prototype;_.e.attached=function(){this.JSC$18356_scroller&&(this.JSC$18356_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18356_scroller.attached&&typeof this.JSC$18356_scroller.attached==="function"&&this.JSC$18356_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(w){w.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var q=_.E(this.hostElement);q.querySelector("tp-yt-paper-radio-group").selected="";var Z=q.querySelector("#reason-text");Z&&(Z.value="");q.querySelector("#description-text").value=""}};
_.e.canSubmit=function(q,Z){_.hy(this.hostElement,"yt-invalidate-popup-tabbables");return!(q&&Z)};
_.e.onCancel=function(){_.yY(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.e.onSubmit=function(){var q=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(C){return C.active}).map(function(C){return C.innerText.trim()}),Z=this.hostElement.querySelector("tp-yt-paper-radio-group"),w=Z.selectedItem,r=w.name;
w=w.innerText.trim();var Y=Z.querySelector("#reason-text");Z=void 0;Y&&(Z=Y.value);(Y=this.descriptionText.value)&&(Y=Y.trim());VzF(this.data.searchQuery,q,r,w,Y,Z);_.yY(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.e.sendFormSubmitToast=function(){var q=_.M9(_.dT("SBOX_INAPPROPRIATE_TOAST"));_.yY(this.hostElement,"yt-open-popup-action",[q,this])};
_.e.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(q){return q.active})};
_.e.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
var Ee=KED;Ee.prototype.onIronSelect=Ee.prototype.onIronSelect;Ee.prototype.onIronChange=Ee.prototype.onIronChange;Ee.prototype.dataChanged=Ee.prototype.dataChanged;_.X([_.F(),_.A("design:type",Object)],Ee.prototype,"data",void 0);_.X([_.F({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.A("design:type",Boolean)],Ee.prototype,"submitDisabled",void 0);_.X([_.F(),_.A("design:type",Boolean)],Ee.prototype,"suggestionSelected",void 0);
_.X([_.F(),_.A("design:type",Boolean)],Ee.prototype,"catagorySelected",void 0);_.X([_.fo("#scroller"),_.A("design:type",Object)],Ee.prototype,"JSC$18356_scroller",void 0);_.X([_.fo("#description-text"),_.A("design:type",Object)],Ee.prototype,"descriptionText",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ee.prototype,"dataChanged",null);
_.X([_.m2("iron-change"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ee.prototype,"onIronChange",null);_.X([_.m2("iron-select"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ee.prototype,"onIronSelect",null);Ee=_.X([_.l({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Ee);
_.p(Ee,"ytd-search-suggestion-report-dialog",function(){if(k_c!==void 0)return k_c;var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return k_c=q},{mode:1});var xm=function(q){var Z=q.openPopupAction;var w=q.target;var r=q.container;var Y=q.popupContainerConfig;var C=q.getElement;q=q.removeWhenClosed===void 0?!1:q.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=Z;this.target=w;this.container=r;this.popupContainerConfig=Y;this.getElement=C;this.JSC$18362_popupConfig=this.popupContainerConfig.JSC$17477_popupConfig[this.openPopupAction.popupType];this.rendererName=(Z=this.getName())?_.Q5z(Z,$eV(this.popupContainerConfig,
Z)):"";_.b("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=q);this.createPopup()};
xm.prototype.updatePopup=function(q){this.openPopupAction=q;this.JSC$18362_popupConfig=this.popupContainerConfig.JSC$17477_popupConfig[this.openPopupAction.popupType];sdc(this);_.b("reorder_popup_updates_killswitch")&&IRl(this);_.b("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var FEy=function(q,Z,w){q.target=w;var r;w=((r=q.target.polymerController)!=null?r:q.target).popupPositionTarget||q.target;q.JSC$18362_popupConfig.targetContainer&&(w=q.container);q.popup.positionTarget=w;q.popupContent.positionTarget=w;_.b("reorder_popup_updates_killswitch")||IRl(q);q.JSC$18362_popupConfig.forceFocus&&(q.popupContent.style.outline="none");q.popupContent.tabIndex=-1;q.JSC$18362_popupConfig.narrowProperties&&(q.popup.style.position="static");q.JSC$18362_popupConfig.preventAutonav&&
q.popup.setAttribute("prevent-autonav",!0);q.JSC$18362_popupConfig.forceCloseOnOutsideClick&&q.popup.setAttribute("force-close-on-outside-click",!0);chc(q,Z);MP6(q,q.JSC$18362_popupConfig.styles);q.isRtl()&&MP6(q,q.JSC$18362_popupConfig.rtlStyles);if(!q.openPopupAction.shouldStopParentSignal){var Y;Z=(Y=q.target.polymerController)!=null?Y:q.target;(q.popupContent.startForwardingEvents||q.popupContainerConfig.forwardingEnabledPopups.has(q.rendererName))&&Z.parentComponent!==q.popupContent&&q.popupContent!==
q.target&&q.target!==document.body&&(q.popupContent.startForwardingEvents?q.popupContent.startForwardingEvents(q.popupContainerConfig.forwardedEvents,q.target):(q.JSC$18362_eventForwarder||(q.JSC$18362_eventForwarder=new _.$4(q.popupContent)),q.JSC$18362_eventForwarder.start(q.popupContainerConfig.forwardedEvents,q.target)))}};
xm.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var chc=function(q,Z){N$6(q,Z&&q.JSC$18362_popupConfig.narrowProperties?q.JSC$18362_popupConfig.narrowProperties:q.JSC$18362_popupConfig.properties);q.isRtl()&&N$6(q,q.JSC$18362_popupConfig.rtlProperties);IRl(q)};
xm.prototype.createPopup=function(){var q=this.JSC$18362_popupConfig.component;if(this.popupContent=lRq(this,this.rendererName)){if(q){this.popup=lRq(this,q);var Z=this.popupContent;_.b("web_enable_wrapper_for_cow_component_in_popup")&&(Z=document.createElement("div"),Z.appendChild(this.popupContent));_.b("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18362_popupConfig.slotName&&Z.setAttribute("slot",this.JSC$18362_popupConfig.slotName);q=this.popup;var w=this.container.tagName.toLowerCase(),
r=_.TI(Z);_.t48(_.kz(q),_.IJ(Z,w,r));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.b("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.E(this.container).appendChild(this.popup)}};
var sdc=function(q){var Z,w,r=(Z=q.openPopupAction.accessibilityData)==null?void 0:(w=Z.accessibilityData)==null?void 0:w.label;r&&(q.popup.ariaLabel=r);var Y;((Y=q.popupContent.polymerController)!=null?Y:q.popupContent).data=(0,_.R4.unsafeClone)(q.openPopupAction.popup[q.getName()]);q.popupContent.duration=G_b(q);q.popupContent.positionType=q.openPopupAction.position;var C=q.openPopupAction.properties;C&&Object.keys(C).forEach(function(d){q.popupContent[d]=C[d]})},N$6=function(q,Z){if(Z)for(var w=
_.P(Object.keys(Z)),r=w.next();!r.done;r=w.next())r=r.value,q.popup[r]=Z[r]},IRl=function(q){if(q.openPopupAction.position){var Z=q.JSC$18362_popupConfig.positionalProperties&&q.JSC$18362_popupConfig.positionalProperties[q.openPopupAction.position],w=q.JSC$18362_popupConfig.rtlPositionalProperties&&q.JSC$18362_popupConfig.rtlPositionalProperties[q.openPopupAction.position];
Z=q.isRtl()&&w?w:Z;Z.shiftedHorizontalOffset&&(w=q.popup.style.display,q.popup.style.display="block",q.popupContent&&q.popup.positionTarget&&q.popupContent.clientWidth>q.popup.positionTarget.clientWidth&&(Z.horizontalOffset=q.popup.positionTarget.clientWidth/2-Z.shiftedHorizontalOffset),q.popup.style.display=w);N$6(q,Z)}},MP6=function(q,Z){if(Z)for(var w=_.P(Object.keys(Z)),r=w.next();!r.done;r=w.next())r=r.value,q.popup.style[r]=Z[r]};
xm.prototype.getName=function(){return _.tf(this.openPopupAction.popup,"renderer")||_.tf(this.openPopupAction.popup,"dialog")||_.tf(this.openPopupAction.popup,"model")||void 0};
var G_b=function(q){q=q.openPopupAction.durationHintMs;return q===0?q:Math.max(4E3,q||4E3)};
xm.prototype.isRtl=function(){return _.zj("HTML_DIR")==="rtl"};
var lRq=function(q,Z){q=q.getElement(Z,q.target);q==null&&_.bx(new _.df("popup getElement returned null",Z));return q};var pnC={};
pnC.YtPopupContainerBehavior=[_.S_.YtComponentBehavior,_.KK.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},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.fp(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Dj(this.hostElement)},
closePopup:function(q){var Z=this.createCacheKey(void 0,q);this.popups_[Z]&&this.handleClosePopupAction_(void 0,q)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.v5.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.v5.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(q){q.opened&&q.keepBelowPlayer&&this.ensurePopupBelowPlayer(q)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var q in this.popups_){var Z=this.popups_[q];if(Z.popup.scrollAction==="refit"){var w=Z.popup.positionTarget.getBoundingClientRect(),r=Z.popup;w=w.top;var Y=Z;if(!Y.naturalHeight){Y.popup.hidden=!1;Y.popup.style.position="fixed";Y.popup.style.top="0px";Y.popup.style.left="0px";var C=Y.popup.getBoundingClientRect();Y.naturalHeight=C.bottom-C.top;Y.popup.refit()}r.hidden=!(w>=Y.naturalHeight+60);Z.popupContent.clientHeight===0&&Z.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(q){this.popupContainerConfig=q},
handleOpenPopupAction:function(q,Z){var w=q.openPopupAction,r=_.t().resolve(_.Gj(_.pNl))&&w.popupType==="TOAST";r&&!w.uniqueId&&(w.uniqueId=_.du());if(!_.b("popup_container_parent_target_killswitch")){var Y;Z=(Y=this.getParentTarget(Z))!=null?Y:Z}var C=this.ensurePopup_(w,Z);return new _.r5(function(d){C.then(function(O){if(!O)return d();this.maybeCreateNarrowMediaQuery_();var H=this.createCacheKey(O.rendererName,O.openPopupAction.uniqueId);if(w.showOncePerUniqueId){if(this.shownPopupKeys_.has(H))return d();
this.shownPopupKeys_.add(H)}H=this.popups_[H];var L=!(!H||!H.openPopupAction.beReused);L=!!w.reusePopup||L;if(O.popup.opened&&!L){r&&!O.openPopupAction.replacePopup||this.handleClosePopupAction_(O.rendererName,O.openPopupAction.uniqueId);L=w.popupType==="DIALOG"&&!_.b("popup_container_dialog_reopen_killswitch");if(!r&&!L&&H&&H.target==Z&&!O.openPopupAction.replacePopup)return d();_.I_(O.popup,function(){this.completeOpenPopupAction_(w,Z,O);d()}.bind(this))}else O.popup.opened?O.updatePopup(w):this.completeOpenPopupAction_(w,
Z,O),d()}.bind(this))}.bind(this))},
getParentTarget:function(q){if(q&&q instanceof HTMLElement)for(var Z=_.P(Object.entries(this.popups_)),w=Z.next();!w.done;w=Z.next())if(w=_.P(w.value),w.next(),w=w.next().value,w.popup.tagName==="TP-YT-IRON-DROPDOWN"&&w.popup.opened&&q.closest(w.rendererName))return w.target},
completeOpenPopupAction_:function(q,Z,w){_.b("reorder_popup_updates_killswitch")?(FEy(w,this.narrowMediaQuery_.queryMatches,Z),w.updatePopup(q)):(w.updatePopup(q),FEy(w,this.narrowMediaQuery_.queryMatches,Z));q=w.popup;q.addEventListener("iron-overlay-opened",_.XN(this,this.onPopupIronOverlayOpened_));q.addEventListener("iron-overlay-closed",_.XN(this,this.onPopupIronOverlayClosed_));q.addEventListener("iron-overlay-canceled",_.XN(this,this.onPopupIronOverlayCanceled_));q.addEventListener("yt-refit",
_.XN(this,this.refitPopup_));q.addEventListener("yt-invalidate-popup-tabbables",_.XN(this,this.handleInvalidatePopupTabbables_));q.open()},
getPopupDurationMs_:function(q){return q.durationHintMs===0?q.durationHintMs:Math.max(4E3,q.durationHintMs||4E3)},
handleClosePopupAction_:function(q,Z){var w=_.b("web_popup_cache_key_killswitch")||!!Z;if(q||w){var r=this.createCacheKey(q,Z);q=(q=this.popups_[r])&&q.popup}else q=_.tle(_.EZ);if(q&&q.close){if(Z=_.t().resolve(_.Gj(_.er)))q.restoreFocusOnClose=Z.isKeyBoardInUse();q.close();this.removePopup_(q,r)}},
handleClosePopupCommand_:function(q){q.closePopupCommand&&q.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,q.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(q){var Z={},w;for(w in this.popups_)if(Z={key$jscomp$1157:Z.key$jscomp$1157},Z.key$jscomp$1157=w,!q||!q.some(function(C){return function(d){return d==C.key$jscomp$1157}}(Z))){var r=this.popups_[Z.key$jscomp$1157],Y=r.popup;
_.t().resolve(_.Gj(_.pNl))&&r.openPopupAction.popupType==="TOAST"||(Y&&Y.close&&Y.close(),this.removePopup_(Y,Z.key$jscomp$1157))}},
handleClosePopupsAction_:function(q){q.forEach(function(Z){var w=this.popups_[Z];w&&((w=w.popup)&&w.close&&w.close(),this.removePopup_(w,Z))}.bind(this))},
handleGetPopupOpenedAction_:function(q,Z){return(Z=this.createCacheKey(q,Z))&&this.popups_[Z]?this.popups_[q].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var q=[],Z;for(Z in this.popups_){var w=this.popups_[Z];w.popup.opened&&q.push(w)}return q},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(q,Z){_.b("ytpopup_disable_default_html_caching")&&q&&q.removeWhenClosed&&(_.E(this.hostElement).removeChild(q),Z&&this.popups_[Z]&&delete this.popups_[Z])},
shouldReusePopup_:function(q){return!(!q||!q.reusePopup)||!(!q||!q.beReused)},
ensurePopup_:function(q,Z){this.maybeCreateNarrowMediaQuery_();var w=_.tf(q.popup,"renderer")||_.tf(q.popup,"dialog")||_.tf(q.popup,"model");if(!w)return _.YK();w=_.Q5z(w,$eV(this.popupContainerConfig,w));return _.YK(this.getAndMaybeCreatePopup_(q,w,Z))},
getAndMaybeCreatePopup_:function(q,Z,w){var r=this.createCacheKey(Z,q.uniqueId);if(this.popups_[r])return this.popups_[r];q=new xm({openPopupAction:q,target:w,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(Z)});return this.popups_[r]=q},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(q){return _.b("ytpopup_disable_default_html_caching")?q&&q.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",_.XN(this,this.openPopupQueryMatchesChanged_)),_.E(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(q){q=q.detail.value;for(var Z in this.popups_)chc(this.popups_[Z],q)},
onPopupIronOverlayClosed_:function(q){var Z=q.currentTarget,w=_.N86(Z);w=w.length>0?w[0]:Z;if(w.is!=="ytd-reel-watch-while-dialog-renderer"||q.target.is!=="tp-yt-iron-dropdown"){q.detail.popup=Z;q.detail.popupRenderer=w;var r,Y={context:{openingElement:((r=this.popups_[(w==null?void 0:w.is)||""])==null?void 0:r.target)||void 0}};Object.assign(Y,q.detail);var C;_.hy((C=w.hostElement)!=null?C:w,"yt-popup-closed",Y);Z.removeEventListener("yt-refit",_.XN(this,this.refitPopup_));Z.removeEventListener("yt-invalidate-popup-tabbables",
_.XN(this,this.handleInvalidatePopupTabbables_));Z.removeEventListener("iron-overlay-canceled",_.XN(this,this.onPopupIronOverlayCanceled_));Z.removeEventListener("iron-overlay-closed",_.XN(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(Z)}},
onPopupIronOverlayCanceled_:function(q,Z){var w=q.currentTarget,r=_.N86(w);r=r.length>0?r[0]:w;if(r.is!=="ytd-reel-watch-while-dialog-renderer"||q.target.is!=="tp-yt-iron-dropdown"){var Y;_.hy((Y=r.hostElement)!=null?Y:r,"yt-popup-canceled",q.detail);Y=Z?_.E8(Z):null;(!Z||["click","tap"].includes(Z.type))&&!w.hasAttribute("force-close-on-outside-click")&&w.positionTarget&&Y&&Y.includes(w.positionTarget)&&q.preventDefault();w.restoreFocusOnClose=_.Pt.keyboardEventMatchesKeys(Z,"esc")}},
onPopupIronOverlayOpened_:function(q){q=q.currentTarget;var Z=_.N86(q);Z=Z.length>0?Z[0]:q;var w,r;_.hy((w=Z.hostElement)!=null?w:Z,"yt-popup-opened",(r=Z.hostElement)!=null?r:Z);q.keepBelowPlayer&&(this.ensurePopupBelowPlayer(q,!0),this.dynamicallyPositionedElements_.add(q));w=_.t().resolve(_.Gj(_.er));r=!!Z.querySelector("#toast");w&&w.isKeyBoardInUse()&&!r&&(typeof Z.focusFirstItem==="function"?Z.focusFirstItem():(Z=_.SnD(q),Z.length&&Z[0].focus()));q.removeEventListener("iron-overlay-opened",
_.XN(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(q){q=q.currentTarget;q.refit&&q.refit()},
refitPopups_:function(){for(var q in this.popups_)this.popups_[q].refit()},
handleInvalidatePopupTabbables_:function(q){q=q.currentTarget;q.invalidateTabbables&&q.invalidateTabbables()},
createCacheKey:function(q,Z){return _.b("web_popup_cache_key_killswitch")?Z?q+"#"+Z:q:Z?"#"+Z:q},
openSheet:function(q,Z){var w=q==null?void 0:q.openPopupActionCommand;!w&&(q==null?0:q.viewModel)&&(w={openPopupAction:{popup:{sheetViewModel:q.viewModel},popupType:"CONTEXTUAL_SHEET"}});w&&this.handleOpenPopupAction(w,Z)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var q=this;return _.V(function(Z){return Z.return(q.handleGetOpenedPopupsAction_().filter(function(w){var r;return((r=w.openPopupAction)==null?void 0:r.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(q,Z,w){if(_.b("web_dialog_utils_killswitch")){var r=q==null?void 0:q.openPopupActionCommand,Y=(w==null?0:w.ariaLabel)?{accessibilityData:{accessibilityData:{label:w.ariaLabel}}}:void 0;!r&&(q==null?0:q.viewModel)&&(r={openPopupAction:Object.assign({},{popup:{dialogViewModel:q.viewModel},popupType:(w==null?0:w.isModal)?"MODAL":"DIALOG"},Y&&Y)});r&&this.handleOpenPopupAction(r,Z)}else{if(Y=q==null?void 0:q.viewModel){var C=w=w===void 0?{}:w;w=C.ariaLabel;Y={popup:{dialogViewModel:Y},
popupType:C.isModal?"MODAL":"DIALOG"};C={accessibilityData:{label:w}};w&&(Y.accessibilityData=C);Y={openPopupAction:Y}}else Y=void 0;(Y=(r=Y)!=null?r:q==null?void 0:q.openPopupActionCommand)&&this.handleOpenPopupAction(Y,Z)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var q=this;return _.V(function(Z){return Z.return(q.handleGetOpenedPopupsAction_().filter(function(w){var r;return((r=w.openPopupAction)==null?void 0:r.popupType)==="DIALOG"}).length>0)})}}];var Xnq;var mmV;var Ah7=_.Fr(["about:blank"]),fR8=function(){var q=_.N.apply(this,arguments)||this;q.isMuted=!1;q.pageLoadTimeoutId=void 0;return q};
_.z(fR8,_.N);_.e=fR8.prototype;_.e.dataChanged=function(){var q=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var Z=this.data.url,w=_.jJ(Z);_.b("enable_yt_ata_iframe_authuser")?(w=_.jJ(Z),_.F5(this.iframe,OI7(w))):_.F5(this.iframe,w);this.pageLoadTimeoutId=_.WO(_.R0(),function(){return void q.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.pc({destination:window,iframe:this.iframe,origin:_.S62(w.toString()),channelName:"ataiframe",onMessage:_.p6m($Oy,function(r){ehS(r.data)?(r=_.U6(r.data,1,_.yD,_.fC()),r.length!==1?_.bx(Error("ol")):(r=r[0],r===3?(q.isMuted=!0,q.logStateChanged({adMuteRequested:!0})):r===1&&q.close())):_.bx(Error("pl"))}),
onEstablished:function(){q.cancelPageLoadTimeout();q.logStateChanged({pageLoadSucceeded:!0})}})}};
_.e.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.R0().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.e.logStateChanged=function(q){var Z;if((Z=this.data)==null?0:Z.trackingParams)q={adsClientData:{aboutThisAdData:q}},_.iy().stateChanged(this.data.trackingParams,q)};
_.e.close=function(){_.yY(this.hostElement,"yt-close-popup-action",[this.is])};
_.e.handlesPopupClosed=function(q,Z){var w=this,r,Y;return _.V(function(C){if(C.nextAddress==1)return _.zj("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.yY(w.hostElement,"on-about-this-ad-popup-closed",[w.isMuted,Z]),C.jumpTo(0)):q&&HIF(q)?_.W(C,W9y(q),4):(w.isMuted&&_.yY(w.hostElement,"yt-mute-ad-action",[w.is,w]),C.jumpTo(0));if(r=C.yieldResult){var d=Y=new _.jd(r),O=w.isMuted;d.getOptions().includes("onAboutThisAdPopupClosed")?_.aH2(d,"onAboutThisAdPopupClosed",{isMuted:O,layoutId:Z}):_.mW("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.ub(C)})};
_.e.onPopupClosed=function(q){var Z=this,w,r;return _.V(function(Y){w=_.qu(Ah7);_.F5(Z.iframe,w);Z.cancelPageLoadTimeout();if(!Z.data)return Y.jumpTo(0);Z.ytRendererBehavior.markDirty();r=q.detail.context.openingElement;return _.W(Y,Z.handlesPopupClosed(r,Z.data.layoutId),0)})};
_.e.detached=function(){this.cancelPageLoadTimeout()};
_.e.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var Ty=fR8;Ty.prototype.onPopupClosed=Ty.prototype.onPopupClosed;Ty.prototype.dataChanged=Ty.prototype.dataChanged;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.X([_.fo("#iframe"),_.A("design:type",HTMLIFrameElement)],Ty.prototype,"iframe",void 0);_.X([_.F(),_.A("design:type",Object)],Ty.prototype,"data",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ty.prototype,"dataChanged",null);
_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype",Promise)],Ty.prototype,"onPopupClosed",null);Ty=_.X([_.dx({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Ty);
_.p(Ty,"yt-about-this-ad-renderer",function(){if(mmV===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Xnq===void 0&&(Xnq=document.createElement("template"));var r=Xnq;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);mmV=q}q=mmV;return q},{mode:2});var Dmq;var hQC;var Ue=function(q){var Z=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.maxFileSizeMB=q;Object.setPrototypeOf(this,Ue.prototype)};
_.z(Ue,Error);var yhc=function(q,Z){var w=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=w.message;"stack"in w&&(this.stack=w.stack);this.minWidth=q;this.minHeight=Z;Object.setPrototypeOf(this,yhc.prototype)};
_.z(yhc,Error);var iEq=function(q){this.requirements=q;this.JSC$18390_maxFileSize=q.maxFileSizeMB*1024*1024},g0D=function(q,Z){if(Z.size>q.JSC$18390_maxFileSize)throw new Ue(q.requirements.maxFileSizeMB);
};var qxD=function(q,Z){this.canvas=q;this.imageEditorBuilder=Z};
qxD.prototype.addEventListeners=function(q){var Z=function(Y){ZvD(q,Y)};
this.JSC$18396_mouseDownEvent=Z;var w=function(Y){w28(q,Y)};
this.JSC$18396_mouseMoveEvent=w;var r=function(){rNC(q)};
this.JSC$18396_mouseUpEvent=r;this.canvas.addEventListener("mousedown",Z);this.canvas.addEventListener("mousemove",w);document.addEventListener("mouseup",r)};
qxD.prototype.removeEventListeners=function(){this.JSC$18396_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18396_mouseDownEvent);this.JSC$18396_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18396_mouseMoveEvent);this.JSC$18396_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18396_mouseUpEvent)};
var Yxb=function(q,Z){q.removeEventListeners();return new Promise(function(w){var r=new Image;r.crossOrigin="anonymous";r.onload=function(){var Y=q.imageEditorBuilder(q.canvas,r);q.addEventListeners(Y);w(Y)};
r.src=Z})},km=function(q,Z,w,r,Y,C,d,O){this.canvas=q;
this.image=Z;this.requiredRatio=w;this.minImageCropDimension=r;this.minOutputImageResolution=Y;this.component=C;this.styleFocusedCorner=O===void 0?!0:O;this.action=2;this.focusedCorner=this.resizeCorner=0;q=this.canvas.getContext("2d");if(!q)throw Error("ql");this.ctx=q;this.canvasMargin=d!=null?d:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;d=this.image;q=this.canvasInnerWidth/d.width;d.height*q>912&&(q=d.width/d.height*912/d.width);d=q;this.scaledImageWidth=this.canvas.width%2?
ubc(this.image.width*d):oAl(this.image.width*d);this.scaledImageHeight=Math.round(this.image.height*d);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18399_overlayMarginBottom=this.JSC$18399_overlayMarginTop=this.canvasMargin;this.JSC$18399_overlayMarginRight=this.JSC$18399_overlayMarginLeft=this.horizontalMargin;this.JSC$18399_overlayWidth=this.scaledImageWidth;this.JSC$18399_overlayHeight=this.scaledImageHeight;
q=this.image.width/this.image.height;q>this.requiredRatio?(this.JSC$18399_overlayWidth=this.canvas.width%2?ubc(this.scaledImageHeight*this.requiredRatio):oAl(this.scaledImageHeight*this.requiredRatio),this.JSC$18399_overlayMarginRight=this.JSC$18399_overlayMarginLeft=(this.canvas.width-this.JSC$18399_overlayWidth)/2):q<this.requiredRatio&&(this.JSC$18399_overlayHeight=this.canvas.height%2?ubc(this.scaledImageWidth/this.requiredRatio):oAl(this.scaledImageWidth/this.requiredRatio),this.JSC$18399_overlayMarginBottom=
this.JSC$18399_overlayMarginTop=(this.canvas.height-this.JSC$18399_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*d,this.scaledImageWidth);$QC(this)};
km.prototype.getContext=function(){return this.ctx};
var ZvD=function(q,Z){Z={x:Math.round(Z.pageX-q.canvas.getBoundingClientRect().left),y:Math.round(Z.pageY-q.canvas.getBoundingClientRect().top)};q.dragStart=Z;e0q(q,Z)!==0?(q.action=1,CEZ(q,Z),q.resizeCorner=e0q(q,Z)):Z.x>q.JSC$18399_overlayMarginLeft&&Z.x<q.JSC$18399_overlayMarginLeft+q.JSC$18399_overlayWidth&&Z.y>q.JSC$18399_overlayMarginTop&&Z.y<q.JSC$18399_overlayMarginTop+q.JSC$18399_overlayHeight&&(q.action=0)},PEl=function(q,Z){switch(Z){case 1:return{x:q.JSC$18399_overlayMarginLeft,
y:q.JSC$18399_overlayMarginTop};case 2:return{x:q.JSC$18399_overlayMarginLeft,y:q.JSC$18399_overlayMarginTop+q.JSC$18399_overlayHeight};case 3:return{x:q.JSC$18399_overlayMarginLeft+q.JSC$18399_overlayWidth,y:q.JSC$18399_overlayMarginTop};case 4:return{x:q.JSC$18399_overlayMarginLeft+q.JSC$18399_overlayWidth,y:q.JSC$18399_overlayMarginTop+q.JSC$18399_overlayHeight};default:throw Error("rl");}},Vfc=function(q,Z){if(q.focusedCorner!==0){q.dragStart=PEl(q,q.focusedCorner);
q.action=1;q.resizeCorner=q.focusedCorner;var w=q.dragStart.x,r=q.dragStart.y;switch(Z){case 0:q.focusedCorner===1||q.focusedCorner===4?(w-=10,r-=10):(w-=10,r+=10);break;case 1:q.focusedCorner===1||q.focusedCorner===4?(w+=10,r+=10):(w+=10,r-=10);break;case 2:w=q.focusedCorner===1||q.focusedCorner===4?w-10:w+10;r-=10;break;case 3:w=q.focusedCorner===1||q.focusedCorner===4?w+10:w-10;r+=10;break;default:throw Error("sl");}dQy(q,{x:w,y:r});$QC(q);q.action=2;q.dragStart=void 0}},w28=function(q,Z){Z={x:Math.round(Z.pageX-
q.canvas.getBoundingClientRect().left),
y:Math.round(Z.pageY-q.canvas.getBoundingClientRect().top)};CEZ(q,Z);switch(q.action){case 1:dQy(q,Z);break;case 0:q.dragStart&&(q.JSC$18399_overlayMarginLeft=Math.max(q.horizontalMargin,Math.min(q.JSC$18399_overlayMarginLeft-(q.dragStart.x-Z.x),q.horizontalMargin+q.scaledImageWidth-q.JSC$18399_overlayWidth)),q.JSC$18399_overlayMarginRight=q.canvas.width-q.JSC$18399_overlayMarginLeft-q.JSC$18399_overlayWidth,q.JSC$18399_overlayMarginTop=Math.max(q.canvasMargin,Math.min(q.JSC$18399_overlayMarginTop-
(q.dragStart.y-Z.y),q.scaledImageHeight-q.JSC$18399_overlayHeight+q.canvasMargin)),q.JSC$18399_overlayMarginBottom=q.canvas.height-(q.JSC$18399_overlayMarginTop+q.JSC$18399_overlayHeight));break;default:return}$QC(q);q.dragStart=Z},rNC=function(q){q.action=2;
q.dragStart=void 0;document.body.style.cursor="auto"},CEZ=function(q,Z){switch(e0q(q,Z)){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:q.action!==1&&(document.body.style.cursor="auto")}},e0q=function(q,Z){var w=q.JSC$18399_overlayMarginLeft-5,r=q.JSC$18399_overlayMarginTop-5,Y=q.JSC$18399_overlayMarginLeft+q.JSC$18399_overlayWidth-5;
q=q.JSC$18399_overlayMarginTop+q.JSC$18399_overlayHeight-5;return Ov7(Z,{x:w,y:r})?1:Ov7(Z,{x:Y,y:r})?3:Ov7(Z,{x:w,y:q})?2:Ov7(Z,{x:Y,y:q})?4:0},Ov7=function(q,Z){return q.x>=Z.x&&q.x<=Z.x+10&&q.y>=Z.y&&q.y<=Z.y+10},dQy=function(q,Z){if(q.dragStart)switch(q.resizeCorner){case 2:Math.abs((q.JSC$18399_overlayMarginLeft+q.JSC$18399_overlayWidth-Z.x)/(Z.y-q.JSC$18399_overlayMarginTop))>=q.requiredRatio?Hvl(q,Z.x):WQl(q,Z.y);
break;case 1:Math.abs((q.JSC$18399_overlayMarginLeft+q.JSC$18399_overlayWidth-Z.x)/(q.JSC$18399_overlayMarginTop+q.JSC$18399_overlayHeight-Z.y))>=q.requiredRatio?o97(q,Z.x):WQl(q,Z.y);break;case 4:Math.abs((Z.x-q.JSC$18399_overlayMarginLeft)/(Z.y-q.JSC$18399_overlayMarginTop))>=q.requiredRatio?Hvl(q,Z.x):uql(q,Z.y);break;case 3:Math.abs((Z.x-q.JSC$18399_overlayMarginLeft)/(q.JSC$18399_overlayMarginTop+q.JSC$18399_overlayHeight-Z.y))>=q.requiredRatio?o97(q,Z.x):uql(q,Z.y);break;default:throw Error("tl");
}},Hvl=function(q,Z){var w=q.JSC$18399_overlayMarginTop;
q.JSC$18399_overlayMarginBottom=LQ8(q,Z);q.JSC$18399_overlayHeight=q.canvas.height-q.JSC$18399_overlayMarginBottom-w;q.JSC$18399_overlayWidth=Math.round(q.JSC$18399_overlayHeight*q.requiredRatio);SxS(q)},o97=function(q,Z){var w=q.JSC$18399_overlayMarginTop+q.JSC$18399_overlayHeight;
q.JSC$18399_overlayMarginTop=LQ8(q,Z);q.JSC$18399_overlayHeight=w-q.JSC$18399_overlayMarginTop;q.JSC$18399_overlayWidth=Math.round(q.JSC$18399_overlayHeight*q.requiredRatio);SxS(q)},SxS=function(q){switch(q.resizeCorner){case 2:case 1:q.JSC$18399_overlayMarginLeft=q.canvas.width-q.JSC$18399_overlayMarginRight-q.JSC$18399_overlayWidth;
break;case 4:case 3:q.JSC$18399_overlayMarginRight=q.canvas.width-q.JSC$18399_overlayMarginLeft-q.JSC$18399_overlayWidth;break;default:throw Error("tl");}},WQl=function(q,Z){var w=q.JSC$18399_overlayMarginLeft+q.JSC$18399_overlayWidth;
q.JSC$18399_overlayMarginLeft=v98(q,Z);q.JSC$18399_overlayWidth=w-q.JSC$18399_overlayMarginLeft;q.JSC$18399_overlayHeight=Math.round(q.JSC$18399_overlayWidth/q.requiredRatio);jEl(q)},uql=function(q,Z){var w=q.JSC$18399_overlayMarginLeft;
q.JSC$18399_overlayMarginRight=v98(q,Z);q.JSC$18399_overlayWidth=q.canvas.width-q.JSC$18399_overlayMarginRight-w;q.JSC$18399_overlayHeight=Math.round(q.JSC$18399_overlayWidth/q.requiredRatio);jEl(q)},jEl=function(q){switch(q.resizeCorner){case 2:case 4:q.JSC$18399_overlayMarginBottom=q.canvas.height-q.JSC$18399_overlayMarginTop-q.JSC$18399_overlayHeight;
break;case 1:case 3:q.JSC$18399_overlayMarginTop=q.canvas.height-q.JSC$18399_overlayMarginBottom-q.JSC$18399_overlayHeight;break;default:throw Error("tl");}},LQ8=function(q,Z){switch(q.resizeCorner){case 2:Z=q.canvas.height-(q.JSC$18399_overlayMarginTop+tfS(q,Z));
break;case 4:Z=q.canvas.height-(q.JSC$18399_overlayMarginTop+R0S(q,Z));break;case 1:Z=q.JSC$18399_overlayMarginTop+q.JSC$18399_overlayHeight-tfS(q,Z);break;case 3:Z=q.JSC$18399_overlayMarginTop+q.JSC$18399_overlayHeight-R0S(q,Z);break;default:throw Error("tl");}return Math.max(Z,q.canvasMargin)},tfS=function(q,Z){Z=q.JSC$18399_overlayMarginLeft+q.JSC$18399_overlayWidth-Math.max(Z,q.horizontalMargin);
Z=Z<0?q.JSC$18399_overlayWidth:Math.max(Z,q.minOverlayWidth);return Math.round(Z/q.requiredRatio)},R0S=function(q,Z){Z=q.canvas.width-Math.max(q.canvas.width-Z,q.horizontalMargin)-q.JSC$18399_overlayMarginLeft;
Z=Z<0?q.JSC$18399_overlayWidth:Math.max(Z,q.minOverlayWidth);return Math.round(Z/q.requiredRatio)},v98=function(q,Z){switch(q.resizeCorner){case 2:Z=q.canvas.width-q.JSC$18399_overlayMarginRight-bv7(q,Z);
break;case 4:Z=q.canvas.width-q.JSC$18399_overlayMarginLeft-bv7(q,Z);break;case 1:Z=q.canvas.width-q.JSC$18399_overlayMarginRight-JNC(q,Z);break;case 3:Z=q.canvas.width-q.JSC$18399_overlayMarginLeft-JNC(q,Z);break;default:throw Error("tl");}return Math.max(Z,q.horizontalMargin)},bv7=function(q,Z){Z=q.canvas.height-Math.max(q.canvas.height-Z,q.canvasMargin)-q.JSC$18399_overlayMarginTop;
return Z<0?q.JSC$18399_overlayWidth:Math.max(Math.round(Z*q.requiredRatio),q.minOverlayWidth)},JNC=function(q,Z){Z=q.JSC$18399_overlayMarginTop+q.JSC$18399_overlayHeight-Math.max(Z,q.canvasMargin);
return Z<0?q.JSC$18399_overlayWidth:Math.max(Math.round(Z*q.requiredRatio),q.minOverlayWidth)},$QC=function(q){q.ctx.clearRect(0,0,q.canvas.width,q.canvas.height);
q.ctx.drawImage(q.image,0,0,q.image.width,q.image.height,q.horizontalMargin,q.canvasMargin,q.canvas.width-2*q.horizontalMargin,q.scaledImageHeight);q.ctx.fillStyle="rgba(0, 0, 0, 0.7)";q.ctx.fillRect(q.horizontalMargin,q.JSC$18399_overlayMarginTop,q.JSC$18399_overlayMarginLeft-q.horizontalMargin,q.JSC$18399_overlayHeight);q.ctx.fillRect(q.JSC$18399_overlayMarginLeft+q.JSC$18399_overlayWidth,q.JSC$18399_overlayMarginTop,q.JSC$18399_overlayMarginRight-q.horizontalMargin,q.JSC$18399_overlayHeight);q.ctx.fillRect(q.horizontalMargin,
q.canvasMargin,q.scaledImageWidth,q.JSC$18399_overlayMarginTop-q.canvasMargin);q.ctx.fillRect(q.horizontalMargin,q.JSC$18399_overlayMarginTop+q.JSC$18399_overlayHeight,q.scaledImageWidth,q.JSC$18399_overlayMarginBottom-q.canvasMargin);q.drawOverlay();q.component&&_.hy(q.component,"image-updated")};
km.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18399_overlayMarginLeft,this.JSC$18399_overlayMarginTop,this.JSC$18399_overlayWidth,this.JSC$18399_overlayHeight);z0S(this)};
var z0S=function(q){var Z=q.JSC$18399_overlayMarginLeft-5,w=q.JSC$18399_overlayMarginTop-5,r=q.JSC$18399_overlayMarginLeft+q.JSC$18399_overlayWidth-5,Y=q.JSC$18399_overlayMarginTop+q.JSC$18399_overlayHeight-5;q.ctx.fillStyle="#FFF";q.ctx.fillRect(Z,w,10,10);q.ctx.strokeRect(Z,w,10,10);q.ctx.fillRect(r,w,10,10);q.ctx.strokeRect(r,w,10,10);q.ctx.fillRect(Z,Y,10,10);q.ctx.strokeRect(Z,Y,10,10);q.ctx.fillRect(r,Y,10,10);q.ctx.strokeRect(r,Y,10,10);if(q.focusedCorner!==0&&q.styleFocusedCorner){q.ctx.lineWidth=
4;q.ctx.strokeStyle="#3EA6FF";switch(q.focusedCorner){case 1:--Z;--w;break;case 2:--Z;w=Y-1;break;case 3:Z=r-1;--w;break;case 4:Z=r-1;w=Y-1;break;default:return}q.ctx.strokeRect(Z,w,12,12)}};
km.prototype.crop=function(q,Z){Z=Z===void 0?!0:Z;var w=this.image.width/this.scaledImageWidth,r=document.createElement("canvas"),Y=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],C=this.JSC$18399_overlayWidth*w,d=this.JSC$18399_overlayHeight*w;r.width=Math.max(C,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);r.height=Math.max(d,Y);q&&(r.width=Math.min(r.width,r.height),r.height=Math.min(r.width,r.height));
q=r.getContext("2d");if(!q)throw Error("hl");Y=(this.JSC$18399_overlayMarginLeft-this.horizontalMargin)*w;w*=this.JSC$18399_overlayMarginTop-this.canvasMargin;Z||(q.fillStyle="white",q.fillRect(0,0,r.width,r.height));q.drawImage(this.image,Y,w,C,d,0,0,r.width,r.height);return r};var Bol=function(q,Z,w,r,Y){km.call(this,q,Z,w,r,void 0,Y,8,!1)};
_.z(Bol,km);Bol.prototype.drawOverlay=function(){var q=this.getContext(),Z=this.JSC$18399_overlayWidth,w=this.JSC$18399_overlayHeight,r=this.JSC$18399_overlayMarginTop,Y=this.JSC$18399_overlayMarginLeft;q.lineWidth=2;q.strokeStyle="#3EA6FF";q.beginPath();q.arc(Y+Z/2,r+w/2,Z/2,0,2*Math.PI);q.stroke();q.strokeRect(Y,r,Z,w);z0S(this)};
var a_7={maxFileSizeMB:15,minWidth:98,minHeight:98},n96=["image/png","image/jpeg","image/gif"],QE6=function(){var q=_.N.apply(this,arguments)||this;q.fileSelectorFocusListener=null;q.errorMessage=null;q.isLoading=!0;q.hideContainer=!0;q.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return q};
_.z(QE6,_.N);_.e=QE6.prototype;_.e.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.e.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.e.computePlaylistThumbnail=function(q){return q==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.e.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.yY(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.e.setErrorState=function(q){this.resetErrorState();q&&(this.errorMessage=q)};
_.e.showPopup=function(){var q=this;this.hideContainer=!1;_.WO(_.v5,function(){_.hy(q.hostElement,"yt-refit")});
this.isLoading=!1};
_.e.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.e.closePopup=function(){this.resetFileSelector();_.yY(this.hostElement,"yt-close-popup-action",[this.is])};
_.e.onCancelTap=function(){this.isPlaylistThumbnail||_.yY(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.e.openFileSelector=function(){var q=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.WO(_.v5,function(){setTimeout(function(){if(!q.fileSelector.files||q.fileSelector.files.length===0)q.onCancelTap();q.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(Z){Z instanceof Error?_.tY(Z):_.Rw(new _.df(JSON.stringify(Z)))}};
_.e.handleFileSelection=function(){var q=this,Z,w,r,Y,C,d;return _.V(function(O){switch(O.nextAddress){case 1:_.d9(O,2);if(!q.fileSelector.files||!q.imageEditorCanvas)return q.onCancelTap(),O.return();Z=q.fileSelector.files[0];g0D(q.imageChecker,Z);_.d9(O,4);return _.W(O,NSZ(Z),6);case 6:q.mimeType=O.yieldResult;_.QL(O,5,2);break;case 4:_.o3(O,2),_.yY(q.hostElement,"yt-image-selection-error-action",[(w=q.data)==null?void 0:w.genericImageLoadErrorMessage]),q.onCancelTap();case 5:r=new FileReader;r.addEventListener("load",
function(){var H,L;return _.V(function(S){if(S.nextAddress==1){if(!r.result)return _.bx(Error("jl")),S.return();H=r.result;L=new Image;L.src=H;L.onload=function(){try{var v=q.imageChecker;if(L.width<v.requirements.minWidth||L.height<v.requirements.minHeight)throw new yhc(v.requirements.minWidth,v.requirements.minHeight);}catch(B){if(B instanceof yhc){var R;_.yY(q.hostElement,"yt-image-selection-error-action",[(R=q.data)==null?void 0:R.imageDimensionErrorMessage]);q.logImageDimensionErrorVe()}else B instanceof
Error?_.tY(B):(v=new _.df(JSON.stringify(B)),_.tY(v));q.onCancelTap()}q.showPopup()};
L.onerror=function(){var v;_.yY(q.hostElement,"yt-image-selection-error-action",[(v=q.data)==null?void 0:v.genericImageLoadErrorMessage]);q.onCancelTap()};
return _.W(S,Yxb(q.imageEditorCanvas,H),2)}q.imageEditor=S.yieldResult;q.updatePositionOfAllCorners();q.addEventListeners(q.imageEditor);_.ub(S)})},!1);
r.readAsDataURL(Z);_.QL(O,0);break;case 2:Y=_.o3(O),Y instanceof Ue?_.yY(q.hostElement,"yt-image-selection-error-action",[(C=q.data)==null?void 0:C.imageSizeErrorMessage]):(Y instanceof Error?_.tY(Y):_.Rw(new _.df(JSON.stringify(Y))),_.yY(q.hostElement,"yt-image-selection-error-action",[(d=q.data)==null?void 0:d.genericImageLoadErrorMessage])),q.onCancelTap(),_.ub(O)}})};
_.e.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var q=_.yy(_.iy(),{veType:232707,visualElement:_.C6(232707)});q&&(q={visualElement:q},_.hJ().reportShown(q))}};
_.e.handleImageSelectionErrorAction=function(q){this.isPlaylistThumbnail&&_.AP1(this.hostElement,q)};
_.e.convertToImageFormatBundle=function(q){var Z=this,w,r,Y;return _.V(function(C){switch(C.nextAddress){case 1:return w=q.toDataURL(Z.outputMimeType,1),_.W(C,l8l(w),2);case 2:r=C.yieldResult;_.d9(C,3);g0D(Z.imageChecker,r);_.QL(C,4);break;case 3:Y=_.o3(C);if(!(Y instanceof Ue))throw Y;_.bx(new _.df("Output size is bigger than input size for image",Z.mimeType,Z.outputMimeType,r.size));w=q.toDataURL("image/jpeg",.95);return _.W(C,l8l(w),6);case 6:r=C.yieldResult;case 4:return C.return({dataUrl:w,imageFile:r})}})};
_.e.handleUploadImageToScottyCommand=function(q){var Z=this,w,r,Y,C,d,O,H,L,S,v;return _.V(function(R){switch(R.nextAddress){case 1:if(!Z.imageEditor||!_.J(q,JpV))return R.return();w=_.J(q,JpV).scottyUploadUrl;if(!w){var B=new _.df("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.tY(B);return R.return()}_.d9(R,2);Z.setLoadingState();r=Z.imageEditor.crop(!1,!1);return _.W(R,Z.convertToImageFormatBundle(r),4);case 4:return Y=R.yieldResult,_.W(R,MFC(Y.imageFile,w),5);case 5:C=
R.yieldResult;((d=Z.data)==null?0:d.onUploadEndpoint)?(O=Z.buildUploadServiceEndpoint(C),Z.ytComponentBehavior.resolveCommand(O),H=_.J(O,_.SE),((L=H)==null?0:L.params)?Z.closePopup():Z.resetFileSelector()):(_.yY(Z.hostElement,"yt-image-updated-action",[Y.dataUrl,C]),Z.closePopup());_.QL(R,0);break;case 2:S=_.o3(R),Z.setErrorState((v=Z.data)==null?void 0:v.uploadErrorMessage),S instanceof Error?_.tY(S):(B=new _.df(JSON.stringify(S)),_.tY(B)),_.ub(R)}})};
_.e.buildUploadServiceEndpoint=function(q){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",q),this.data.onUploadEndpoint):null};
_.e.dataChanged=function(){var q=this,Z;return _.V(function(w){if(w.nextAddress==1){if(!q.data||!q.canvasElement)return w.return();q.data.imageRatio&&q.data.minImageCropWidth||_.Rw(new _.df("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));Z=function(r,Y){return q.data.imageType==="IMAGE_TYPE_AVATAR"?new Bol(r,Y,q.data.imageRatio,[q.data.minImageCropWidth,q.data.minImageCropWidth/q.data.imageRatio],q.hostElement):new km(r,Y,q.data.imageRatio,[q.data.minImageCropWidth,
q.data.minImageCropWidth/q.data.imageRatio],void 0,q.hostElement,8,!1)};
q.imageEditorCanvas=new qxD(q.canvasElement,Z);return q.data.url?_.W(w,Yxb(q.imageEditorCanvas,q.data.url),3):(q.hideContainer=!0,q.openFileSelector(),w.jumpTo(0))}q.imageEditor=w.yieldResult;q.showPopup();q.addEventListeners(q.imageEditor);_.ub(w)})};
_.e.addEventListeners=function(q){this.removeEventListeners();var Z=function(Y){ZvD(q,Y)};
this.JSC$18407_mouseDownEvent=Z;var w=function(Y){w28(q,Y)};
this.JSC$18407_mouseMoveEvent=w;var r=function(){rNC(q)};
this.JSC$18407_mouseUpEvent=r;this.topLeftCorner.addEventListener("mousedown",Z);this.topLeftCorner.addEventListener("mousemove",w);this.topLeftCorner.addEventListener("mouseup",r);this.topRightCorner.addEventListener("mousedown",Z);this.topRightCorner.addEventListener("mousemove",w);this.topRightCorner.addEventListener("mouseup",r);this.bottomLeftCorner.addEventListener("mousedown",Z);this.bottomLeftCorner.addEventListener("mousemove",w);this.bottomLeftCorner.addEventListener("mouseup",r);this.bottomRightCorner.addEventListener("mousedown",
Z);this.bottomRightCorner.addEventListener("mousemove",w);this.bottomRightCorner.addEventListener("mouseup",r)};
_.e.removeEventListeners=function(){this.JSC$18407_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18407_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18407_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18407_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18407_mouseDownEvent));this.JSC$18407_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18407_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18407_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18407_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18407_mouseMoveEvent));this.JSC$18407_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18407_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18407_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18407_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18407_mouseUpEvent))};
_.e.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var q=document.activeElement;q&&q.shadowRoot&&q.shadowRoot.activeElement;)q=q.shadowRoot.activeElement;switch(q){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};
_.e.updatePositionOfCorner=function(q,Z){var w=q.y-Z.offsetHeight/2+4;Z.style.left=q.x-Z.offsetWidth/2+16+"px";Z.style.top=w+"px"};
_.e.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var q=_.P([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var w=PEl(this.imageEditor,Z.corner);this.updatePositionOfCorner(w,Z.div)}};
_.e.onLeft=function(q){this.imageEditor&&this.setFocusInImageEditor()&&(Vfc(this.imageEditor,0),this.updatePositionOfAllCorners(),q.preventDefault())};
_.e.onRight=function(q){this.imageEditor&&this.setFocusInImageEditor()&&(Vfc(this.imageEditor,1),this.updatePositionOfAllCorners(),q.preventDefault())};
_.e.onUp=function(q){this.imageEditor&&this.setFocusInImageEditor()&&(Vfc(this.imageEditor,2),this.updatePositionOfAllCorners(),q.preventDefault())};
_.e.onDown=function(q){this.imageEditor&&this.setFocusInImageEditor()&&(Vfc(this.imageEditor,3),this.updatePositionOfAllCorners(),q.preventDefault())};
_.e.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.My.Object.defineProperties(QE6.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&n96.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var q,Z,w;((Z=this.data)==null?0:Z.imageRatio)&&((w=this.data)==null?0:w.minImageCropWidth)?q={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:q=a_7;return new iEq(q)}}});
var Kg=QE6;Kg.prototype.updatePositionOfAllCorners=Kg.prototype.updatePositionOfAllCorners;Kg.prototype.dataChanged=Kg.prototype.dataChanged;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Kg.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Kg.prototype,"ytComponentBehavior",void 0);_.X([_.U(_.Pt),_.A("design:type",Object)],Kg.prototype,"ironA11yKeysBehavior",void 0);
_.X([_.fo("#canvas"),_.A("design:type",HTMLCanvasElement)],Kg.prototype,"canvasElement",void 0);_.X([_.fo("#file-selector"),_.A("design:type",HTMLInputElement)],Kg.prototype,"fileSelector",void 0);_.X([_.fo("#top-left-corner"),_.A("design:type",HTMLDivElement)],Kg.prototype,"topLeftCorner",void 0);_.X([_.fo("#top-right-corner"),_.A("design:type",HTMLDivElement)],Kg.prototype,"topRightCorner",void 0);
_.X([_.fo("#bottom-left-corner"),_.A("design:type",HTMLDivElement)],Kg.prototype,"bottomLeftCorner",void 0);_.X([_.fo("#bottom-right-corner"),_.A("design:type",HTMLDivElement)],Kg.prototype,"bottomRightCorner",void 0);_.X([_.F(),_.A("design:type",Object)],Kg.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Kg.prototype,"errorMessage",void 0);_.X([_.F(),_.A("design:type",Object)],Kg.prototype,"isLoading",void 0);_.X([_.F(),_.A("design:type",Object)],Kg.prototype,"hideContainer",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.A("design:type",Boolean)],Kg.prototype,"isPlaylistThumbnail",void 0);_.X([_.g3("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],Kg.prototype,"dataChanged",null);_.X([_.m2("image-updated"),_.m2("yt-refit"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kg.prototype,"updatePositionOfAllCorners",null);
Kg=_.X([_.dx({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Kg);
_.p(Kg,"yt-image-editor-renderer",function(){if(hQC===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Dmq===void 0&&(Dmq=document.createElement("template"));var r=Dmq;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);hQC=q}q=hQC;return q},{mode:2});var E9u;var xQ6;var se=function(){return _.N.apply(this,arguments)||this};
_.z(se,_.N);se.prototype.updateMinutesFromBinding=function(q){this.handleMinutesChanged&&this.handleMinutesChanged(q)};
se.prototype.updateSecondsFromBinding=function(q){this.handleSecondsChanged&&this.handleSecondsChanged(q)};
se.prototype.updateDescriptionFromBinding=function(q){this.handleDescriptionChanged&&this.handleDescriptionChanged(q)};
var IC=se;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],IC.prototype,"ytComponentBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],IC.prototype,"data",void 0);_.X([_.F(),_.A("design:type",String)],IC.prototype,"minutes",void 0);_.X([_.F(),_.A("design:type",String)],IC.prototype,"seconds",void 0);_.X([_.F(),_.A("design:type",String)],IC.prototype,"description",void 0);_.X([_.F(),_.A("design:type",Function)],IC.prototype,"handleMinutesChanged",void 0);
_.X([_.F(),_.A("design:type",Function)],IC.prototype,"handleSecondsChanged",void 0);_.X([_.F(),_.A("design:type",Function)],IC.prototype,"handleDescriptionChanged",void 0);_.X([_.F(),_.A("design:type",Number)],IC.prototype,"characterLimit",void 0);_.X([_.F(),_.A("design:type",Number)],IC.prototype,"textNumRows",void 0);IC=_.X([_.dx({is:"yt-report-details-form-content",disableElementRegistration:!0})],IC);
_.p(IC,"yt-report-details-form-content",function(){if(xQ6===void 0){var q=document.createElement("template");_.a(q,'\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>');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;E9u===void 0&&(E9u=document.createElement("template"));var r=E9u;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);xQ6=q}q=xQ6;return q},{mode:2});var Toc;var UQS;var kDS=function(){var q=_.N.apply(this,arguments)||this;q.updateMinutesFromBinding=function(Z){q.minutes=Z.detail.value};
q.updateSecondsFromBinding=function(Z){q.seconds=Z.detail.value};
q.updateDescriptionFromBinding=function(Z){q.description=Z.detail.value};
return q};
_.z(kDS,_.N);_.e=kDS.prototype;_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.e.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"}}}};
_.e.ready=function(){_.E(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.e.onSubmitYtAction=function(q){var Z=q.detail;Z.actionName==="yt-service-request"&&(Z=Z.args[1],Z.flagEndpoint&&(q.stopPropagation(),this.refireAction(Z)))};
_.e.refireAction=function(q){var Z={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(Z.vss_id=this.vssId);_.qM(this.hostElement,[q,Z]);this.submitDisabled=!0};
_.e.dataChanged=function(){var q=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var Z=_.K6();Z&&Z.getPlayerPromise().then(function(w){var r=w.getOption("cc","track")||w.getOption("captions","track");r&&(q.vssId=r.vss_id);w=w.getCurrentTime();q.minutes=Math.floor(w/60).toString();q.seconds=(Math.floor(w)%60).toString()})};
_.e.updateSubmitButtonState=function(){var q;((q=this.data)==null?0:q.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==="")};
_.e.onYtServiceRequestCompleted=function(){_.yY(this.hostElement,"yt-close-popup-action")};
_.e.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.My.Object.defineProperties(kDS.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.textNumRows)||4}}});
var cK=kDS;cK.prototype.onYtServiceRequestError=cK.prototype.onYtServiceRequestError;cK.prototype.onYtServiceRequestCompleted=cK.prototype.onYtServiceRequestCompleted;cK.prototype.updateSubmitButtonState=cK.prototype.updateSubmitButtonState;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],cK.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],cK.prototype,"ytRendererBehavior",void 0);
_.X([_.F({observer:"dataChanged"}),_.A("design:type",Object)],cK.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Boolean)],cK.prototype,"submitDisabled",void 0);_.X([_.F(),_.A("design:type",String)],cK.prototype,"minutes",void 0);_.X([_.F(),_.A("design:type",String)],cK.prototype,"seconds",void 0);_.X([_.F(),_.A("design:type",String)],cK.prototype,"description",void 0);_.X([_.F(),_.A("design:type",String)],cK.prototype,"vssId",void 0);
_.X([_.F({value:_.zj("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.A("design:type",Boolean)],cK.prototype,"isMusic",void 0);_.X([_.I("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],cK.prototype,"characterLimit",null);_.X([_.I("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],cK.prototype,"textNumRows",null);
_.X([_.g3("minutes","seconds","description","submitDisabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cK.prototype,"updateSubmitButtonState",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cK.prototype,"onYtServiceRequestCompleted",null);
_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cK.prototype,"onYtServiceRequestError",null);cK=_.X([_.dx({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],cK);
_.p(cK,"yt-report-details-form-renderer",function(){if(UQS===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Toc===void 0&&(Toc=document.createElement("template"));var r=Toc;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);UQS=q}q=UQS;return q});var KQ8;var sEy;var I_6;var cNu;var MfS=function(){return _.N.apply(this,arguments)||this};
_.z(MfS,_.N);
MfS.prototype.onCheckedChanged_=function(){if(this.data){var q=_.E(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.yY(this.hostElement,"yt-additional-detail-checkbox-update",[q]):this.data.identifier==="yt-hide-user-checkbox"?_.yY(this.hostElement,"yt-hide-user-checkbox-update",[q]):q&&this.data.enableCommand?_.yY(this.hostElement,"yt-modify-report-form-command",[_.J(this.data.enableCommand,T7u)]):!q&&this.data.disableCommand&&_.yY(this.hostElement,
"yt-modify-report-form-command",[_.J(this.data.enableCommand,T7u)])}};
MfS.prototype.onLabelTap_=function(q){q.target.tagName!="A"&&(_.E(this.hostElement).querySelector("#checkbox").checked=!_.E(this.hostElement).querySelector("#checkbox").checked)};
var ME=MfS;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ME.prototype,"data",void 0);ME=_.X([_.dx({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],ME);
_.p(ME,"yt-boolean-form-field-v2-renderer",function(){if(cNu===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;I_6===void 0&&(I_6=document.createElement("template"));var r=I_6;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);cNu=q}q=cNu;return q});var FQu=function(){var q=_.N.apply(this,arguments)||this;q.canShowAdditionalDetailCheckbox=!1;q.canShowCheckbox=!1;q.keepDropdownFocusedAfterSelection=!0;return q};
_.z(FQu,_.N);FQu.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}}}}};
var Fc=FQu;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Fc.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Fc.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Fc.prototype,"canShowAdditionalDetailCheckbox",void 0);_.X([_.F(),_.A("design:type",Object)],Fc.prototype,"canShowCheckbox",void 0);_.X([_.F(),_.A("design:type",Object)],Fc.prototype,"keepDropdownFocusedAfterSelection",void 0);
Fc=_.X([_.dx({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Fc);
_.p(Fc,"yt-report-form-modal-content",function(){if(sEy===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;KQ8===void 0&&(KQ8=document.createElement("template"));var r=KQ8;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);sEy=q}q=sEy;return q},{mode:2});var Noq;var l_y;var GDu=function(){var q=_.N.apply(this,arguments)||this;q.submitting=!1;q.submitButtonDisabled=!0;q.command=null;q.canShowCheckbox=!1;q.canShowAdditionalDetailCheckbox=!1;q.canShowNextButton=!1;q.additionalDetailCheckboxChecked=!1;q.refitJob=0;q.keepDropdownFocusedAfterSelection=!0;q.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 q};
_.z(GDu,_.N);_.e=GDu.prototype;_.e.created=function(){this.refitJob=0};
_.e.attached=function(){this.JSC$18430_scroller&&(this.JSC$18430_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18430_scroller.attached&&typeof this.JSC$18430_scroller.attached==="function"&&this.JSC$18430_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.dataChanged=function(q){q&&(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,q.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),q.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.e.onYtPopupOpened=function(){var q=_.K6();q&&q.getPlayerPromise().then(function(Z){Z.pauseVideo()})};
_.e.onYtNavigate=function(q){_.J(q.detail.endpoint,_.kMm)&&(q.stopPropagation(),this.hideReportForm=!0)};
_.e.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.e.onYtServiceRequestCompleted=function(q,Z){var w=Z.actions;if(w){if(w.length===1&&_.J(w[0],_.$K)){var r;w=((r=_.J(w[0],_.$K))==null?void 0:r.commands)||[]}r=0;for(var Y=w.length;r<Y;r++)_.J(w[r],_.HZ)&&(q.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(w[r]))}if(Z.data&&(q=this.get("feedbackResponses",Z.data)))for(Z=0;Z<q.length;Z++)if(q[Z].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.e.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.e._onDescendantIronResize=function(q){q.stopPropagation();return!1};
_.e.handleReportFormEndpointUpdateAction=function(q){if(q.submitEndpoint){var Z=this.command=q.submitEndpoint;Z=_.J(Z,_.Si7);if(Z==null?0:Z.additionalDetailCheckboxChecked)Z.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else q.submitNavigationEndpoint?(this.command=q.submitNavigationEndpoint,this.toggleSubmitButton(!1)):q.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:q.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;q.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",q));this.refit()};
_.e.handleConfirmDialogCloseAction=function(q){q.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.e.submitButtonDisabledChanged=function(){var q=this.hostElement.parentElement;q&&q.invalidateTabbables&&q.invalidateTabbables()};
_.e.handleModifyReportFormCommand=function(q){q=this.get("action",q);q==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:q==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:q==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:q==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:q==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:q==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.e.updateDialogStyling=function(){var q,Z,w,r,Y,C=((Y=(q=this.data)==null?void 0:(Z=q.optionsSupportedRenderers)==null?void 0:(w=Z.optionsRenderer)==null?void 0:(r=w.items)==null?void 0:r.length)!=null?Y:0)<=2?0:240;_.po(this.hostElement,{"--yt-report-form-modal-renderer-min-width":C+"px"})};
_.e.toggleSubmitButton=function(q){this.submitButtonDisabled=!q;this.submitButtonDisabled=q};
_.e.computeSubmitButtonData=function(q,Z){var w={};_.J(Z,_.kMm)?w.navigationEndpoint=Z:w.command=Z||void 0;q&&q.buttonRenderer&&_.R4.extend(w,q.buttonRenderer);return w};
_.e.computeNextButtonData=function(q,Z){var w={};if(!q||!q.buttonRenderer)return w;_.R4.extend(w,q.buttonRenderer);if(!Z)return w;if(_.J(Z,_.kMm))w.navigationEndpoint=T2b(Z);else if(w.command=T2b(Z),q=_.J(w.command,_.Si7))q.legalCheckboxChecked=!0;return w};
_.e.computeShowNextButton=function(q,Z,w){return!!q&&Z&&w};
_.e.refit=function(){var q=this;this.refitJob||(this.refitJob=_.v5.addLowPriorityJob(function(){_.hy(q.hostElement,"yt-refit");q.refitJob=0}))};
_.e.handleAdditionalDetailCheckboxUpdateAction=function(q){this.additionalDetailCheckboxChecked=q;_.J(this.command,_.Si7).additionalDetailCheckboxChecked=q};
_.My.Object.defineProperties(GDu,{template:{configurable:!0,enumerable:!0,get:function(){if(l_y===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;Noq===void 0&&(Noq=document.createElement("template"));var r=Noq;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);l_y=q}q=l_y;return q}}});
var NE=GDu;NE.prototype.onYtServiceRequestError=NE.prototype.onYtServiceRequestError;NE.prototype.onYtServiceRequestCompleted=NE.prototype.onYtServiceRequestCompleted;NE.prototype.onYtServiceRequestSent=NE.prototype.onYtServiceRequestSent;NE.prototype.onYtNavigate=NE.prototype.onYtNavigate;NE.prototype.onYtPopupOpened=NE.prototype.onYtPopupOpened;_.X([_.U(_.Xp.YtOpenPopupBehavior),_.A("design:type",Object)],NE.prototype,"openPopupBehavior",void 0);
_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],NE.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],NE.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],NE.prototype,"eventForwardingBehavior",void 0);_.X([_.U(_.SQ),_.A("design:type",Object)],NE.prototype,"ironResizableBehavior",void 0);_.X([_.F({observer:"dataChanged"}),_.A("design:type",Object)],NE.prototype,"data",void 0);
_.X([_.F(),_.A("design:type",Object)],NE.prototype,"submitting",void 0);_.X([_.F({observer:"submitButtonDisabledChanged"}),_.A("design:type",Object)],NE.prototype,"submitButtonDisabled",void 0);_.X([_.F(),_.A("design:type",Object)],NE.prototype,"command",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],NE.prototype,"hideReportForm",void 0);_.X([_.F(),_.A("design:type",Object)],NE.prototype,"canShowCheckbox",void 0);
_.X([_.F(),_.A("design:type",Object)],NE.prototype,"canShowAdditionalDetailCheckbox",void 0);_.X([_.F(),_.A("design:type",Object)],NE.prototype,"canShowNextButton",void 0);_.X([_.F(),_.A("design:type",Object)],NE.prototype,"additionalDetailCheckboxChecked",void 0);_.X([_.F(),_.A("design:type",Object)],NE.prototype,"refitJob",void 0);_.X([_.F(),_.A("design:type",Object)],NE.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.X([_.fo("#scroller"),_.A("design:type",Object)],NE.prototype,"JSC$18430_scroller",void 0);_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],NE.prototype,"onYtPopupOpened",null);_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],NE.prototype,"onYtNavigate",null);
_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],NE.prototype,"onYtServiceRequestSent",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],NE.prototype,"onYtServiceRequestCompleted",null);
_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],NE.prototype,"onYtServiceRequestError",null);NE=_.X([_.dx({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],NE);var p27;var X2b;var mQF=function(){return _.N.apply(this,arguments)||this};
_.z(mQF,_.N);_.e=mQF.prototype;_.e.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.e.onVisible=function(){if(_.b("web_ephemeral_actions_focus")){var q,Z;(Z=_.t().resolve(_.Gj(_.Aa)))==null||Z.enqueue({label:_.kO((q=this.data)==null?void 0:q.messageTitle),elementToFocus:this.hostElement})}};
_.e.onThumbnailLoaded=function(){_.hy(this.hostElement,"yt-refit")};
_.e.onDismissTap=function(){_.yY(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.e.computeAlternateIcon=function(q){return q?q==="BACKSTAGE_ARTWORK"?"backstage:artwork":q:null};
_.e.computeFontFamily=function(q){return q==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.e.computeBackgroundStyle=function(q,Z){if(q=this.computeBackgroundImage(q,Z))if(q=_.UL(q.thumbnails))return'background-image: url("'+q+'");'};
_.e.computeHasFullHeightImage=function(q){return!(!(q&&q.thumbnails&&q.thumbnails.length>0)||this.modern)};
_.e.isModernStyle=function(q){return q.style==="STYLE_MODERN"};
_.e.computeIcon=function(q,Z){if(q&&q.icon)return Z?q.iconDark:q.icon};
_.e.computeBackgroundImage=function(q,Z){if(q&&q.backgroundImage)return Z?q.backgroundImageDark:q.backgroundImage};
_.e.computeLogo=function(q,Z){if(q&&q.logo)return Z?q.logoDark:q.logo};
_.e.computeShouldShowModernIcon=function(q,Z){return q&&!!Z};
_.e.getLogoContainerClassName=function(q){return this.logoWithPadding(q)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.e.getLogoImageId=function(q){return this.logoWithPadding(q)?"mealbar-logo-with-padding":"mealbar-logo"};
_.e.logoWithPadding=function(q){var Z,w,r;return(q=(Z=this.computeLogo(q,this.isDarkTheme))==null?void 0:(w=Z.thumbnails)==null?void 0:(r=w[0])==null?void 0:r.height)&&q%31===0?!0:!1};
var lA=mQF;lA.prototype.onThumbnailLoaded=lA.prototype.onThumbnailLoaded;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.X([_.F({}),_.A("design:type",Object)],lA.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.A("design:type",Boolean)],lA.prototype,"modern",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],lA.prototype,"isDarkTheme",void 0);
_.X([_.F({computed:"computeIcon(data, isDarkTheme)"}),_.A("design:type",Object)],lA.prototype,"icon",void 0);_.X([_.F({computed:"computeLogo(data, isDarkTheme)"}),_.A("design:type",Object)],lA.prototype,"logo",void 0);_.X([_.F({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.A("design:type",Object)],lA.prototype,"backgroundStyle",void 0);_.X([_.F({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.A("design:type",Object)],lA.prototype,"alternateIcon",void 0);
_.X([_.F({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.A("design:type",Boolean)],lA.prototype,"hasFullHeightImage",void 0);_.X([_.F({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.A("design:type",Boolean)],lA.prototype,"useYoutubeSans",void 0);_.X([_.F({computed:"computeShouldShowModernIcon(modern, icon)"}),_.A("design:type",Boolean)],lA.prototype,"shouldShowModernIcon",void 0);
_.X([_.m2("yt-img-shadow-loaded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lA.prototype,"onThumbnailLoaded",null);lA=_.X([_.dx({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],lA);
_.p(lA,"yt-mealbar-promo-renderer",function(){if(X2b===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;p27===void 0&&(p27=document.createElement("template"));var r=p27;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);X2b=q}q=X2b;return q},{mode:2});var ANq;var f_C;var DQZ=function(){return _.N.apply(this,arguments)||this};
_.z(DQZ,_.N);_.e=DQZ.prototype;_.e.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]]"}}}}}};
_.e.computeHasButtons_=function(q){return!(!q.dismissButton&&!q.acceptButton)};
_.e.computeStyle_=function(q){return q||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.e.observeImpressionEndpoints_=function(){var q=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(Z){Z.clickTrackingParams&&delete Z.clickTrackingParams;_.qM(q.hostElement,[Z])})};
_.e.onTap_=function(){_.yY(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
var Gy=DQZ;Gy.prototype.observeImpressionEndpoints_=Gy.prototype.observeImpressionEndpoints_;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],Gy.prototype,"ytEventForwardingBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Gy.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Gy.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Gy.prototype,"positionType",void 0);_.X([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.A("design:type",Boolean)],Gy.prototype,"hasButtons_",void 0);_.X([_.F({value:function(){return this.onTap_.bind(this)}}),
_.A("design:type",Function)],Gy.prototype,"boundOnTap_",void 0);_.X([_.F({value:{style:"mono-inverse"}}),_.A("design:type",Object)],Gy.prototype,"buttonOverride",void 0);_.X([_.M("data.promoConfig.impressionEndpoints"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Gy.prototype,"observeImpressionEndpoints_",null);Gy=_.X([_.dx({is:"yt-tooltip-renderer",disableElementRegistration:!0})],Gy);
_.p(Gy,"yt-tooltip-renderer",function(){if(f_C===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;ANq===void 0&&(ANq=document.createElement("template"));var r=ANq;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);f_C=q}q=f_C;return q},{mode:2});var h0y;var yNV;var ivl={},g9c=(ivl.WEB_REMIX="music.youtube.com",ivl),q4b=function(){var q=_.N.apply(this,arguments)||this;q.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return q};
_.z(q4b,_.N);_.e=q4b.prototype;_.e.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.created=function(){this.embedHost_=g9c[_.zj("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.e.ready=function(){_.E(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.e.computeEmbedCode_=function(q,Z,w,r,Y){if(!q)return"";var C=q.videoId,d=q.fullListId,O=[];q.attributionId&&O.push("si="+q.attributionId);r||O.push("controls=0");w&&Number(Z)>0&&O.push("start="+Z);d&&(C="videoseries",O.push("list="+d));w="https://"+(Y?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+C;q.clipId&&(O.push("clip="+q.clipId),O.push("clipt="+q.clipTiming));Z=O.length>0?w+"?"+O.join("&amp;"):w;q.encryptedEmbedConfig&&O.push("embed_config="+JSON.stringify({enc:q.encryptedEmbedConfig}));
O=O.length>0?w+"?"+O.join("&amp;"):w;_.b("web_sharing_embed_preview_killswitch")?_.E(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(O,q.previewWidth||854,q.previewHeight||480):(_.J$(this.videoPreviewContainer),_.E(this.videoPreviewContainer).appendChild(this.buildIframeElement(O)));return this.getEmbedCode_(Z,q.width||560,q.height||315)};
_.e.buildIframeElement=function(q){var Z=document.createElement("iframe"),w,r;Z.width=""+((r=(w=this.data)==null?void 0:w.previewWidth)!=null?r:854);var Y,C;Z.height=""+((C=(Y=this.data)==null?void 0:Y.previewHeight)!=null?C:480);_.AI8(Z,2,q);Z.title="YouTube video player";Z.frameBorder="0";Z.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";Z.referrerPolicy="strict-origin-when-cross-origin";Z.allowFullscreen=!0;return Z};
_.e.computeIsSquareAspectRatio_=function(q){return q.previewHeight&&q.previewWidth?q.previewHeight==q.previewWidth:!1};
_.e.computeShowEmbedOptions_=function(q){return!!q.enablePrivacyModeOptionLabel||!!q.showPlayerControlsOptionLabel};
_.e.getEmbedCode_=function(q,Z,w){return'<iframe width="'+Z+'" height="'+w+'" src="'+q+'" 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>'};
_.e.handleSignalActionCopyShareEmbedUrl_=function(){_.E(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.e.handleSetTimestamp_=function(q){this.startAtTimeStamp_=(this.startAtChecked_=q.isSet)?q.timestamp:0};
_.e.closePanel_=function(){_.yY(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.e.onEmbedCode_=function(){_.E(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.e.onYtPopupClosed_=function(){_.J$(_.E(this.hostElement).querySelector("#video-preview"))};
_.e.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.J(this.data.actionButtons[0],_.tA)&&this.ytRendererBehavior.logExplicitClick(_.J(this.data.actionButtons[0],_.tA))};
var pg=q4b;pg.prototype.onYtPopupClosed_=pg.prototype.onYtPopupClosed_;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],pg.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],pg.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],pg.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],pg.prototype,"data",void 0);
_.X([_.F({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.A("design:type",String)],pg.prototype,"embedCode_",void 0);_.X([_.F({value:!0}),_.A("design:type",Boolean)],pg.prototype,"isPlayerControlsOptionChecked_",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],pg.prototype,"isPrivacyModeOptionChecked_",void 0);_.X([_.F({value:!1,notify:!0}),_.A("design:type",Boolean)],pg.prototype,"startAtChecked_",void 0);
_.X([_.F({value:0}),_.A("design:type",Number)],pg.prototype,"startAtTimeStamp_",void 0);_.X([_.F({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],pg.prototype,"isSquareAspectRatio_",void 0);_.X([_.fo("#video-preview"),_.A("design:type",HTMLElement)],pg.prototype,"videoPreviewContainer",void 0);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pg.prototype,"onYtPopupClosed_",null);
pg=_.X([_.dx({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],pg);
_.p(pg,"yt-sharing-embed-renderer",function(){if(yNV===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;h0y===void 0&&(h0y=document.createElement("template"));var r=h0y;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);yNV=q}q=yNV;return q},{mode:2});var Zul={};
Zul.YtUnlimitedFamilyInterstitialBehavior=[_.Xp.YtOpenPopupBehavior,_.KK.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(q){q=_.Evh(_.xz(q),"yt-button-renderer");return q?q.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(q){this.dialogHistory_.push(q)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var q=this.popFromHistory();if(q){var Z={openPopupAction:{popupType:"DIALOG",popup:{}}};Z.openPopupAction.popup[q.renderer]=q.data;this.showingPreviousDialog_=!0;this.openPopup(Z)}},
handleOpenPopupAction_:function(q){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var Z=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(r){return!!q.openPopupAction.popup[r]}),w=this.getElementName_();
Z&&this.data&&(this.pushToHistory({renderer:w,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(q){if(q=_.J(q,$hD))this.loading=!0,_.yY(this.hostElement,"yt-open-create-family-dialog",[q,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var q=this.hostElement.nodeName.split("-").slice(1).map(function(Z){return""+Z[0].toUpperCase()+Z.slice(1).toLowerCase()}).join("");
return q[0].toLowerCase()+q.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var wi8;var rtV;var Y4q=function(){return _.N.apply(this,arguments)||this};
_.z(Y4q,_.N);_.e=Y4q.prototype;_.e.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}}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.yY(this.hostElement,"yt-register-create-family-dialog");_.E(this.hostElement).querySelector("#thumbnail").onShow()};
_.e.fireOnCloseCommand_=function(){var q;((q=this.data)==null?0:q.onCloseCommand)&&_.ZC(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.e.onYtServiceRequestSent_=function(q,Z){Z&&Z.endpoint&&_.J(Z.endpoint,_.CR)||(this.loading=!0)};
_.e.onYtServiceRequestCompleted_=function(){var q=this.hostElement.parentElement;q.close&&q.close();this.loading=!1};
_.e.openPopupHandler_=function(q){if(q.detail==this){var Z;((Z=this.data)==null?0:Z.onOpenCommands)&&_.ZC(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.e.closePopupHandler_=function(q,Z){this.fireOnCloseCommand_();if(Z&&Z.canceled===!0||Z&&Z.canceled===!1&&Z.confirmed===!1){var w;((w=this.data)==null?0:w.onDismissCommands)&&_.ZC(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.e.dataChanged_=function(){this.loading=!1};
var Xc=Y4q;Xc.prototype.dataChanged_=Xc.prototype.dataChanged_;Xc.prototype.closePopupHandler_=Xc.prototype.closePopupHandler_;Xc.prototype.openPopupHandler_=Xc.prototype.openPopupHandler_;Xc.prototype.onYtServiceRequestCompleted_=Xc.prototype.onYtServiceRequestCompleted_;Xc.prototype.onYtServiceRequestSent_=Xc.prototype.onYtServiceRequestSent_;_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],Xc.prototype,"ytEventForwardingBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Xc.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(Zul.YtUnlimitedFamilyInterstitialBehavior),_.A("design:type",Object)],Xc.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Xc.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Xc.prototype,"loading",void 0);_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],Xc.prototype,"onYtServiceRequestSent_",null);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],Xc.prototype,"onYtServiceRequestCompleted_",null);
_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Xc.prototype,"openPopupHandler_",null);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Xc.prototype,"closePopupHandler_",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Xc.prototype,"dataChanged_",null);
Xc=_.X([_.dx({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Xc);
_.p(Xc,"yt-unlimited-family-message-interstitial-renderer",function(){if(rtV===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;wi8===void 0&&(wi8=document.createElement("template"));var r=wi8;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);rtV=q}q=rtV;return q},{mode:2});var $Dl;var egl;var m_=function(){return _.N.apply(this,arguments)||this};
_.z(m_,_.N);m_.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"}}}};
m_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.E(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(q){q.onShow()});
_.E(this.hostElement).querySelector("#main-thumbnail").onShow()};
m_.prototype.onButtonTap_=function(q){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(q)};
m_.prototype.computeMainThumbnailWidth_=function(q){return q&&q.length!==0?72:96};
var A8=m_;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],A8.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);_.X([_.U(Zul.YtUnlimitedFamilyInterstitialBehavior),_.A("design:type",Object)],A8.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],A8.prototype,"data",void 0);
_.X([_.F({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.A("design:type",Number)],A8.prototype,"mainThumbnailWidth_",void 0);_.X([_.F({value:function(){return this.onButtonTap_.bind(this)}}),
_.A("design:type",Function)],A8.prototype,"boundButtonTap_",void 0);A8=_.X([_.dx({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],A8);
_.p(A8,"yt-unlimited-family-profile-interstitial-renderer",function(){if(egl===void 0){var q=document.createElement("template");_.a(q,'\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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;$Dl===void 0&&($Dl=document.createElement("template"));var r=$Dl;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);egl=q}q=egl;return q},{mode:2});var C1y;var P1C;var dDu=function(){var q=_.N.apply(this,arguments)||this;q.sliderAriaValueText_=null;q.selectedIndex_=0;q.messages={PAUSE_SLIDER:_.dT("PAUSE_SLIDER",void 0,"Pause Duration")};return q};
_.z(dDu,_.N);_.e=dDu.prototype;_.e.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_]]"}}}}}};
_.e.onPopupOpened_=function(q){q.detail==this&&_.b("enable_premium_voluntary_pause")&&(_.yY(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.setDialogData=function(q){this.data=q;this.resetSlider_()};
_.e.dataChanged_=function(){this.data&&this.resetSlider_()};
_.e.onSubmitTap_=function(){if(this.data.confirmCommand){var q=this.data.confirmCommand;_.J(q,_.obX)&&_.qM(this.hostElement,[q,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.e.onExitButtonTap_=function(){_.yY(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.e.closePopupHandler_=function(q,Z){(Z&&Z.canceled===!0||Z.canceled===!1&&Z.confirmed===!1)&&this.handleOnDismissCommands_()};
_.e.onSliderChange_=function(){this.selectedIndex_=_.E(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.e.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.e.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.e.resetSlider_=function(){if(this.data){var q=this.data.defaultEndOptionIndex||0,Z=_.E(this.hostElement).querySelector("#id-pause-slider");if(Z.immediateValue<q)for(;Z.immediateValue!=q;)Z.increment();else if(q<Z.immediateValue)for(;Z.immediateValue!=q;)Z.decrement();this.selectedIndex_=q;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.e.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.ZC(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.e.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.ZC(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.e.onYtServiceRequestSent=function(){this.loading=!0};
_.e.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
var fg=dDu;fg.prototype.onYtServiceRequestCompleted=fg.prototype.onYtServiceRequestCompleted;fg.prototype.onYtServiceRequestSent=fg.prototype.onYtServiceRequestSent;fg.prototype.closePopupHandler_=fg.prototype.closePopupHandler_;fg.prototype.dataChanged_=fg.prototype.dataChanged_;fg.prototype.onPopupOpened_=fg.prototype.onPopupOpened_;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],fg.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],fg.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],fg.prototype,"data",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],fg.prototype,"loading",void 0);_.X([_.F(),_.A("design:type",Number)],fg.prototype,"selectIndexMax_",void 0);_.X([_.F(),_.A("design:type",Object)],fg.prototype,"selectedData_",void 0);
_.X([_.F(),_.A("design:type",Object)],fg.prototype,"sliderAriaValueText_",void 0);_.X([_.F({value:function(){return this.onSubmitTap_.bind(this)}}),
_.A("design:type",Function)],fg.prototype,"onButtonTap_",void 0);_.X([_.F({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.A("design:type",Function)],fg.prototype,"onSecondaryTap_",void 0);_.X([_.F(),_.A("design:type",Object)],fg.prototype,"messages",void 0);_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],fg.prototype,"onPopupOpened_",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fg.prototype,"dataChanged_",null);
_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],fg.prototype,"closePopupHandler_",null);_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],fg.prototype,"onYtServiceRequestSent",null);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],fg.prototype,"onYtServiceRequestCompleted",null);fg=_.X([_.dx({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],fg);
_.p(fg,"yt-unplugged-pause-membership-dialog-renderer",function(){if(P1C===void 0){var q=document.createElement("template");_.a(q,'\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">[[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>');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;C1y===void 0&&(C1y=document.createElement("template"));var r=C1y;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);P1C=q}q=P1C;return q},{mode:2});var Vk6;var Oub;var Huu=function(){return _.N.apply(this,arguments)||this};
_.z(Huu,_.N);Huu.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.We("vcBalanceRenderer")}}};
var Da=Huu;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Da.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Da.prototype,"data",void 0);Da=_.X([_.dx({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],Da);
_.p(Da,"yt-vc-offer-layout-header-renderer",function(){if(Oub===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;Vk6===void 0&&(Vk6=document.createElement("template"));var r=Vk6;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);Oub=q}q=Oub;return q},{mode:2});var W0l;var ooC;var ukD;var L0c;var S4q=function(){return _.N.apply(this,arguments)||this};
_.z(S4q,_.N);S4q.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.My.Object.defineProperties(S4q.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)}}});
var h8=S4q;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],h8.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.PC8.YtTappableItemBehavior),_.A("design:type",Object)],h8.prototype,"ytTappableItemBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],h8.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.I("data.accessibilityText"),_.A("design:type",String),_.A("design:paramtypes",[])],h8.prototype,"ariaLabel",null);_.X([_.F({reflectToAttribute:!0}),_.I("data.style"),_.A("design:type",String),_.A("design:paramtypes",[])],h8.prototype,"vcOfferStyle",null);_.X([_.I("data.style","data.titleText"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],h8.prototype,"showTitleText",null);h8=_.X([_.dx({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],h8);
_.p(h8,"yt-vc-offer-renderer",function(){if(L0c===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;ukD===void 0&&(ukD=document.createElement("template"));var r=ukD;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);L0c=q}q=L0c;return q},{mode:2});var vo7=function(){return _.N.apply(this,arguments)||this};
_.z(vo7,_.N);vo7.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}}}}}};
var yd=vo7;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],yd.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],yd.prototype,"data",void 0);yd=_.X([_.dx({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],yd);
_.p(yd,"yt-vc-offer-layout-renderer",function(){if(ooC===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;W0l===void 0&&(W0l=document.createElement("template"));var r=W0l;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);ooC=q}q=ooC;return q},{mode:2});var jPq;var tkl;var RgV;var bu7;var Jt7=function(){return _.N.apply(this,arguments)||this};
_.z(Jt7,_.N);Jt7.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}}}}}};
var iA=Jt7;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],iA.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],iA.prototype,"data",void 0);iA=_.X([_.dx({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],iA);
_.p(iA,"yt-ypc-offers-modal-top-bar-renderer",function(){if(bu7===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;RgV===void 0&&(RgV=document.createElement("template"));var r=RgV;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);bu7=q}q=bu7;return q},{mode:2});var gB=function(){return _.N.apply(this,arguments)||this};
_.z(gB,_.N);gB.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"}}}}};
gB.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
gB.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var q=this.scrollable;q.attached&&typeof q.attached==="function"&&q.attached()};
var q2=gB;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],q2.prototype,"ytRendererstamperBehavior",void 0);_.X([_.fo("#scrollable"),_.A("design:type",Object)],q2.prototype,"scrollable",void 0);_.X([_.F(),_.A("design:type",Object)],q2.prototype,"data",void 0);q2=_.X([_.dx({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],q2);
_.p(q2,"yt-ypc-offers-modal-renderer",function(){if(tkl===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;jPq===void 0&&(jPq=document.createElement("template"));var r=jPq;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);tkl=q}q=tkl;return q},{mode:2});var zg8;var BYS;var aWb=function(){return _.N.apply(this,arguments)||this};
_.z(aWb,_.N);_.e=aWb.prototype;_.e.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}}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.E(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.e.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.yY(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.e.onYtPopupOpened_=function(q,Z){(Z==null?void 0:Z.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.ZC(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.e.onYtPopupClosed_=function(q,Z){this.continueButtonTapped||Z&&(Z.canceled===!0||Z.canceled===!1&&Z.confirmed===!1)&&this.data.onDismissCommands&&_.ZC(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.e.onYtServiceRequestError_=function(q){this.set("showSpinner",!1);_.W9(this.hostElement,q.detail.error.message)};
_.e.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.b("enable_ypc_spinners")?_.yY(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
var ZD=aWb;ZD.prototype.onYtServiceRequestError_=ZD.prototype.onYtServiceRequestError_;ZD.prototype.onYtPopupClosed_=ZD.prototype.onYtPopupClosed_;ZD.prototype.onYtPopupOpened_=ZD.prototype.onYtPopupOpened_;ZD.prototype.onYtServiceRequestCompleted_=ZD.prototype.onYtServiceRequestCompleted_;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ZD.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ZD.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ZD.prototype,"data",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],ZD.prototype,"showSpinner",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],ZD.prototype,"continueButtonTapped",void 0);_.X([_.F({value:function(){return this.onContinueTapped_.bind(this)}}),
_.A("design:type",Function)],ZD.prototype,"bindOnContinueTapped_",void 0);_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ZD.prototype,"onYtServiceRequestCompleted_",null);_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],ZD.prototype,"onYtPopupOpened_",null);
_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],ZD.prototype,"onYtPopupClosed_",null);_.X([_.m2("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ZD.prototype,"onYtServiceRequestError_",null);ZD=_.X([_.dx({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],ZD);
_.p(ZD,"yt-ypc-upgrade-dialog-renderer",function(){if(BYS===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;zg8===void 0&&(zg8=document.createElement("template"));var r=zg8;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);BYS=q}q=BYS;return q},{mode:2});var nob;var QPF;var wy=function(){return _.N.apply(this,arguments)||this};
_.z(wy,_.N);wy.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
wy.prototype.computeHasButtons_=function(q){return!(!q.dismissButton&&!q.confirmButton)};
wy.prototype.computeStyle_=function(q){return q||"BUBBLE_HINT_STYLE_UNKNOWN"};
var ry=wy;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ry.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],ry.prototype,"ytEventForwardingBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],ry.prototype,"ytRendererstamperBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ry.prototype,"data",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],ry.prototype,"positionType",void 0);_.X([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.A("design:type",Boolean)],ry.prototype,"hasButtons_",void 0);_.X([_.F({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.A("design:type",Boolean)],ry.prototype,"style_",void 0);ry=_.X([_.dx({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],ry);
_.p(ry,"yt-bubble-hint-renderer",function(){if(QPF===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;nob===void 0&&(nob=document.createElement("template"));var r=nob;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);QPF=q}q=QPF;return q},{mode:2});var EoS;var xDy;var TYc=function(){var q=_.F1.apply(this,arguments)||this;q.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return q};
_.z(TYc,_.F1);_.e=TYc.prototype;_.e.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.e.attached=function(){var q=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){q.$.thumbnail.onShow();q.$["header-image"].onShow()})};
_.e.handleCheckBoxUpdateAction_=function(q){this.canShowCheckboxEnabledConfirmButton=q};
_.e.computeUseOverlayForSpinner_=function(q,Z){return!!q&&Z};
_.e.computeShowSpinner_=function(q,Z){return q||!!Z};
_.e.fireOnCloseActions_=function(){var q,Z=_.P(((q=this.data)==null?void 0:q.onClosedActions)||[]);for(q=Z.next();!q.done;q=Z.next())this.ytRendererBehavior.resolveCommand(q.value)};
_.e.fireOnOpenCommands_=function(q){var Z,w=(Z=this.data)==null?void 0:Z.onOpenCommands;if(w)for(q.stopImmediatePropagation(),q=_.P(w),Z=q.next();!Z.done;Z=q.next())this.ytRendererBehavior.resolveCommand(Z.value)};
_.e.fireOnDismissCommands_=function(q){var Z,w=(Z=this.data)==null?void 0:Z.onDismissCommands;if(w)for(q.stopImmediatePropagation(),q=_.P(w),Z=q.next();!Z.done;Z=q.next())this.ytRendererBehavior.resolveCommand(Z.value)};
_.e.openPopupHandler_=function(q){q.detail==this&&this.fireOnOpenCommands_(q)};
_.e.closePopupHandler_=function(q,Z){_.i5(this,"yt-confirm-dialog-close-action",[Z]);this.fireOnCloseActions_();(Z&&Z.canceled===!0||Z&&Z.canceled===!1&&Z.confirmed===!1)&&this.fireOnDismissCommands_(q)};
_.e.onHeaderImageChanged_=function(){var q;((q=this.data)==null?0:q.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.e.computeHasHeaderImageWidth_=function(q){return q!=void 0};
_.e.computeHasLoadingMessage=function(q){return!!q};
_.e.onHeaderImageWidthChanged_=function(){var q,Z=(q=this.data)==null?void 0:q.headerImageWidth;if(Z){if(q=1.25*Z*2+Z,this.$.main.style.width=q+"px",Z=this.$.scroller.firstElementChild)Z.style.minWidth=q+"px"}else this.$.main.style.width="100%"};
_.e.onThumbnailChanged_=function(){var q;((q=this.data)==null?0:q.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")};
_.e.onYtNavigate_=function(q){q=_.xz(q);q instanceof Node&&_.FN(this.$["confirm-button"]).contains(q)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.e.computePrimaryIsCancel_=function(q){return q};
_.e.computeIsCancelButtonHidden_=function(q){return q.skipCancelButton||!q.cancelButton};
_.e.computeIsCheckboxHidden_=function(q){return!q.checkbox};
_.e.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.e.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.e.onYtServiceRequestCompleted_=function(){var q;((q=this.data)==null?0:q.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.My.Object.defineProperties(TYc,{template:{configurable:!0,enumerable:!0,get:function(){if(xDy===void 0){var q=document.createElement("template");_.a(q,'\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  <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;EoS===void 0&&(EoS=document.createElement("template"));var r=EoS;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);xDy=q}q=xDy;return q}}});
var Ye=TYc;Ye.prototype.onYtServiceRequestCompleted_=Ye.prototype.onYtServiceRequestCompleted_;Ye.prototype.onYtServiceRequestSent_=Ye.prototype.onYtServiceRequestSent_;Ye.prototype.onThumbnailLoaded_=Ye.prototype.onThumbnailLoaded_;Ye.prototype.onYtNavigate_=Ye.prototype.onYtNavigate_;Ye.prototype.onThumbnailChanged_=Ye.prototype.onThumbnailChanged_;Ye.prototype.onHeaderImageWidthChanged_=Ye.prototype.onHeaderImageWidthChanged_;Ye.prototype.onHeaderImageChanged_=Ye.prototype.onHeaderImageChanged_;
Ye.prototype.closePopupHandler_=Ye.prototype.closePopupHandler_;Ye.prototype.openPopupHandler_=Ye.prototype.openPopupHandler_;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Ye.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],Ye.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);
_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],Ye.prototype,"ytEventForwardingBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Ye.prototype,"data",void 0);_.X([_.F({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.A("design:type",Boolean)],Ye.prototype,"primaryIsCancel",void 0);_.X([_.F({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.A("design:type",Boolean)],Ye.prototype,"isCancelButtonHidden",void 0);
_.X([_.F({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.A("design:type",Boolean)],Ye.prototype,"isCheckboxHidden",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Ye.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.X([_.F({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Ye.prototype,"useOverlayForSpinner_",void 0);
_.X([_.F({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.A("design:type",Boolean)],Ye.prototype,"showSpinner_",void 0);_.X([_.F({value:!1}),_.A("design:type",Boolean)],Ye.prototype,"isActionInProgress_",void 0);_.X([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.A("design:type",Boolean)],Ye.prototype,"hasHeaderImageWidth_",void 0);
_.X([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.A("design:type",Boolean)],Ye.prototype,"hasLoadingMessage",void 0);_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Ye.prototype,"openPopupHandler_",null);_.X([_.m2("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Ye.prototype,"closePopupHandler_",null);
_.X([_.M("data.headerImage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ye.prototype,"onHeaderImageChanged_",null);_.X([_.M("data.headerImageWidth"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ye.prototype,"onHeaderImageWidthChanged_",null);_.X([_.M("data.thumbnail"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ye.prototype,"onThumbnailChanged_",null);
_.X([_.m2("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ye.prototype,"onYtNavigate_",null);_.X([_.m2("yt-img-shadow-loaded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ye.prototype,"onThumbnailLoaded_",null);_.X([_.m2("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.t7]),_.A("design:returntype")],Ye.prototype,"onYtServiceRequestSent_",null);
_.X([_.m2("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.QB]),_.A("design:returntype")],Ye.prototype,"onYtServiceRequestCompleted_",null);Ye=_.X([_.dx({is:"yt-confirm-dialog-renderer",noInjection:!0})],Ye);var UD8;var k5y;var $e=function(){return _.N.apply(this,arguments)||this};
_.z($e,_.N);$e.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.E(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
$e.prototype.computeConfirmButton_=function(q){var Z={text:q.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};q.confirmNavigationEndpoint?Z.navigationEndpoint=q.confirmNavigationEndpoint:q.confirmServiceEndpoint&&(Z.serviceEndpoint=q.confirmServiceEndpoint);return Z};
$e.prototype.computeShowTitle_=function(q){return!(q==null||!q.title)};
var ey=$e;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],ey.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],ey.prototype,"data",void 0);_.X([_.F({computed:"computeShowTitle_(data)"}),_.A("design:type",Boolean)],ey.prototype,"showTitle",void 0);ey=_.X([_.dx({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],ey);
_.p(ey,"yt-fancy-dismissible-dialog-renderer",function(){if(k5y===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;UD8===void 0&&(UD8=document.createElement("template"));var r=UD8;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);k5y=q}q=k5y;return q});var K0b;var sP8;var Cx=function(){var q=_.N.apply(this,arguments)||this;q.spinnerActive=!1;return q};
_.z(Cx,_.N);Cx.prototype.created=function(){OGC(2201)};
Cx.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
Cx.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
var Po=Cx;Po.prototype.onIronOverlayClosed=Po.prototype.onIronOverlayClosed;Po.prototype.onIronOverlayOpened=Po.prototype.onIronOverlayOpened;_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.Tv),_.A("design:type",Object)],Po.prototype,"tpYtIronOverlayBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Po.prototype,"data",void 0);_.X([_.F(),_.A("design:type",Object)],Po.prototype,"spinnerActive",void 0);
_.X([_.m2("iron-overlay-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Po.prototype,"onIronOverlayOpened",null);_.X([_.m2("iron-overlay-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Po.prototype,"onIronOverlayClosed",null);Po=_.X([_.dx({is:"yt-loading-renderer",disableElementRegistration:!0})],Po);
_.p(Po,"yt-loading-renderer",function(){if(sP8===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;K0b===void 0&&(K0b=document.createElement("template"));var r=K0b;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);sP8=q}q=sP8;return q},{mode:2});var IWl;var cty;var MkZ=function(){var q=_.N.apply(this,arguments)||this;q.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);q.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);q.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.z(MkZ,_.N);_.e=MkZ.prototype;_.e.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.e.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.e.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.e.openPopupHandler_=function(q){q.detail===this.hostElement&&this.hostElement.hidden&&_.yY(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.e.onDismissButtonTap_=function(){var q;this.closeOnDismissButton_.has(((q=this.data)==null?void 0:q.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.yY(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.e.onAcceptButtonTap_=function(){var q;this.closeOnAcceptButton_.has(((q=this.data)==null?void 0:q.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.yY(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.e.computeHasHeader_=function(q){return!!q.headerBackgroundImage};
_.e.computeLayoutStyle_=function(q){return q};
_.e.computePopupSize_=function(q){return q};
_.e.computeIconType_=function(q){return q.dialogIcon&&q.dialogIcon.iconType?q.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":q.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":q.dialogIcon.iconType:""};
_.e.computeIsLogo_=function(q){return!!q.dialogIcon&&!!q.dialogIcon.iconType&&(q.dialogIcon.iconType==="YOUTUBE_LOGO"||q.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||q.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.e.computeHasCustomLogo=function(q){return!(q==null||!q.headerForegroundImage)};
_.e.computeCustomLogo=function(q,Z){if(q!=null&&q.headerForegroundImage)return q.headerForegroundImageDark?Z?q.headerForegroundImageDark:q.headerForegroundImage:q.headerForegroundImage};
_.e.computeHeaderBackgroundImage=function(q,Z){if(q!=null&&q.headerBackgroundImage)return Z&&(q==null?0:q.headerBackgroundImageDark)?q.headerBackgroundImageDark:q.headerBackgroundImage};
_.e.shouldShowIconContainer=function(q,Z){return q&&!Z};
_.e.shouldShowNonYouTubeIcon=function(q,Z){return!q&&!Z};
_.e.getLogoImageId=function(q){var Z,w,r;return(q=(Z=this.computeCustomLogo(q,this.isDarkTheme))==null?void 0:(w=Z.thumbnails)==null?void 0:(r=w[0])==null?void 0:r.height)&&q%31===0?"custom-logo-with-padding":"custom-logo"};
var dy=MkZ;dy.prototype.openPopupHandler_=dy.prototype.openPopupHandler_;dy.prototype.dataChanged_=dy.prototype.dataChanged_;_.X([_.U(_.kb.YtRendererstamperBehavior),_.A("design:type",Object)],dy.prototype,"ytRendererstamperBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.X([_.F(),_.A("design:type",Boolean)],dy.prototype,"isDarkTheme",void 0);
_.X([_.F({computed:"computeCustomLogo(data, isDarkTheme)"}),_.A("design:type",Object)],dy.prototype,"customLogo",void 0);_.X([_.F({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.A("design:type",Object)],dy.prototype,"headerBackgroundImage",void 0);_.X([_.F(),_.A("design:type",Object)],dy.prototype,"data",void 0);_.X([_.F({computed:"computeHasHeader_(data)"}),_.A("design:type",Boolean)],dy.prototype,"hasHeader",void 0);
_.X([_.F({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.A("design:type",Object)],dy.prototype,"layoutStyle",void 0);_.X([_.F({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.A("design:type",Object)],dy.prototype,"popupSize",void 0);_.X([_.F({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],dy.prototype,"hasLogo",void 0);
_.X([_.F({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],dy.prototype,"hasCustomLogo",void 0);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dy.prototype,"dataChanged_",null);_.X([_.m2("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],dy.prototype,"openPopupHandler_",null);
dy=_.X([_.dx({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],dy);
_.p(dy,"yt-upsell-dialog-renderer",function(){if(cty===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;IWl===void 0&&(IWl=document.createElement("template"));var r=IWl;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);cty=q}q=cty;return q},{mode:2});var F0Z=_.xl(function(q){return _.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.u(_.PF,{cond:q.title,then:function(Z){return _.u("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},Z)}}))},"Rf"),NY8=_.xl(function(q){return _.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.u(_.Hx,{data:q.closeButton},{buttonViewModel:function(Z){return _.u("div",null,_.u(_.vx,{data:Z.data}))}}))},"Sf"),lWl=_.xl(function(q){var Z=
q.data;
return _.u(_.lS,null,_.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.u(_.PF,{cond:function(){return!!Z().image&&!!Z().title},
then:function(){return _.u(_.aQ,{data:function(){return Z().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.u(_.PF,{cond:function(){return Z().title},
then:function(w){return _.u("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},w)}}),_.u(_.PF,{cond:function(){return Z().primaryGenre},
then:function(w){return _.u("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},w)}}))),_.u(_.PF,{cond:function(){var w=Z().description;
return w&&w.length<=150},
then:function(){return _.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.u("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return Z().description}))}}))},"Tf"),G5D=_.xl(function(q){q=q.infoRows;
var Z=_.t().resolve(_.zt),w=_.b("enable_displaying_ppn");return _.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.u(_.dA,{each:q},function(r){return _.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.u(_.PF,{cond:function(){return r.label},
then:function(Y){return _.u("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},Y)}}),_.u(_.PF,{cond:function(){return r.attributedLabel},
then:function(Y){return _.u("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.u(_.r6,{text:Y,noPreWrap:!0}))}}),_.u(_.PF,{cond:function(){return r.value},
then:function(Y){return _.u("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},Y)}}),_.u(_.PF,{cond:function(){return r.attributedValue},
then:function(Y){return _.u("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.u(_.r6,{text:Y,noPreWrap:!0}))}}))}),_.u(_.PF,{cond:function(){return w&&Z.clientData.has("post_play_nonce")},
then:function(){return _.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.u("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.u("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},Z.getData("post_play_nonce")))}}))},"Uf"),piy=_.xl(function(q){var Z=q.data;
return _.u("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.u(F0Z,{title:function(){return Z().dialogTitle}}),_.u(lWl,{data:Z}),_.u(_.PF,{cond:function(){return Z().infoRow},
then:function(w){return _.u(G5D,{infoRows:w})}}),_.u(NY8,{closeButton:function(){return Z().closeButton}}))},"Vf");
piy.idomCompat=!0;_.xc(piy,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.zG}});_.xc(_.xl(function(q){var Z=q.data;return _.u("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.u(_.aQ,{data:function(){return Z().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.u("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.u("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.u(_.PF,{cond:function(){var w=Z().ytLogo;return w?w.iconType:null},
then:function(w){return _.u(_.q0,{icon:w,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.u("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.u("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.u(_.r6,{text:function(){return Z().title}})),_.u("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.u(_.r6,{text:function(){return Z().body}})),_.u("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.u(_.r6,{text:function(){return Z().verifyStateText}}))),
_.u("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.u("div",null,_.u(_.Hx,{data:function(){return Z().dismissButton}},{buttonViewModel:_.vx})),_.u("div",null,_.u(_.Hx,{data:function(){return Z().linkParentButton}},{buttonViewModel:_.vx})))))},"Wf"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.zG}});var Xic=_.xl(function(q){var Z=q.data;return _.u("installment-agreements-view-model",{class:_.GL("ytInstallmentAgreementsViewModelHost")},_.u(_.dA,{each:_.aA(function(){return Z().agreements},[])},function(w){return _.u("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.u("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.u(_.r6,{text:w.label})),_.u("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.u(_.Hx,{data:function(){return w.openButton}},{buttonViewModel:_.vx})))}))},
"Xf");
Xic.idomCompat=!0;var mDD=_.xl(function(q){return _.u("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.u(_.r6,{text:function(){return q.data().inviteMessage}})),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.u(_.r6,{text:function(){return q.data().attributedAccountSectionHeaderText}})),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.u(_.Hx,{data:function(){return q.data().accountAvatar}},{avatarViewModel:_.j4}),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.u(_.r6,{text:function(){return q.data().accountName}}),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.u(_.r6,{text:function(){return q.data().handle}}))),_.u(_.Hx,{data:function(){return q.data().trailingButton}},{buttonViewModel:_.vx})),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.u(_.r6,{text:function(){return q.data().termsOfService}})))},"Yf");var AtZ=_.xl(function(q){var Z=_.P(_.hE(function(){var g,H6;return((g=q.data().createPlaylistDialogFormSchema)==null?0:(H6=g.initialValues)==null?0:H6.title)?q.data().createPlaylistDialogFormSchema.initialValues.title:""})),w=Z.next().value,r=Z.next().value;
Z=_.P(_.hE(function(){q.data();return!1}));
var Y=Z.next().value,C=Z.next().value;Z=_.P(_.hE(function(){q.data();return!1}));
var d=Z.next().value,O=Z.next().value;Z=_.P(_.hE(function(){var g,H6;return(g=q.data().createPlaylistDialogFormSchema)==null?void 0:(H6=g.initialValues)==null?void 0:H6.visibility}));
var H=Z.next().value,L=Z.next().value;Z=_.P(_.hE(function(){q.data();return!1}));
var S=Z.next().value,v=Z.next().value;Z=_.P(_.hE(function(){var g,H6;return(g=q.data().createPlaylistDialogFormSchema)==null?void 0:(H6=g.initialValues)==null?void 0:H6.isCollaborative}));
var R=Z.next().value,B=Z.next().value,n=_.Iw();_.L7(function(){var g=n.value.querySelector("textarea");g&&(g.value=w())});
_.Ls(function(){var g;_.Xku((g=q.data().createPlaylistDialogFormSchema)==null?void 0:g.id,{onSubmit:function(){var H6=w();var nX=H(),Qj=R(),SO=q.data();H6={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:H6,privacyStatus:nX,videoIds:SO.videoIds,sourcePlaylistId:SO.sourcePlaylistId,params:Qj?SO.createPlaylistParamsCollaborationEnabled:SO.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.t().resolve(_.ps).resolveCommand(H6)},
isValid:function(){return Y()&&!d()&&!S()}})});
var x=function(g){if(g!==void 0&&(r(g),!Y()&&g.length>0&&C(!0),Y())){var H6=L9C(q.data());if(H6){var nX=H6.minLength;H6=H6.maxLength;nX&&g.length<nX?O(!0):H6&&g.length>H6?O(!0):O(!1)}}},K=function(){var g=!(!R()||H()!=="PRIVATE");
v(g)},k=function(g){g!==void 0&&(L(g),K())},G=function(){if(S())return vA7(q.data())},rz=function(){B(!R());
K()},f=function(){return{validate:function(g){if(Y()){var H6=L9C(q.data());
if(H6){var nX=H6.minLength;H6=H6.translations;if(nX&&g.length<nX)return H6==null?void 0:H6.minLengthErrorMessage}}}}},eO=function(){var g=L9C(q.data()),H6=g==null?void 0:g.maxLength,nX;
g=g==null?void 0:(nX=g.translations)==null?void 0:nX.maxLengthErrorMessage;if(H6&&g)return{maxChars:H6,errorMessage:g}};
return _.u("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.u("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:n},_.u(_.Hx,{data:function(){return q.data().playlistTitle}},{textFormFieldViewModel:function(g){return _.u(_.Pyq,{data:g.data,
text:w,onInput:x,validation:f,characterLimit:eO})},
textFieldViewModel:function(g){return _.u(_.Cyy,{data:g.data,text:w,onInput:x,validation:f,characterLimit:eO})}})),_.u("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.u(_.Hx,{data:function(){return q.data().playlistVisibility}},{dropdownViewModel:function(g){return _.u(_.tHD,{data:g.data,
onSelected:k,error:G})}})),_.u(_.PF,{cond:function(){return!!q.data().playlistCollaborate},
then:function(){return _.u("div",null,_.u(_.Hx,{data:function(){return q.data().playlistCollaborate}},{switchListItemViewModel:function(g){return _.u(_.lrg,{data:g.data,
onTap:rz})}}))}}))},"Zf");var fWZ=_.xl(function(q){var Z=_.aA(q.noPadding,!1),w=function(){var Y,C;return(C=(Y=q.data().logo.accessibilityData)==null?void 0:Y.label)!=null?C:""},r={};
return _.u("upsell-view-model",{class:_.GL("ytUpsellViewModelHost",(r.ytUpsellViewModelHostNoPadding=function(){return Z()},r))},_.u("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.u(_.PF,{cond:function(){return _.lo(q.data().logo)},
then:function(Y){return _.u(_.aQ,{data:Y,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:w})}})),_.u("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.u(_.r6,{text:function(){return q.data().title}})),_.u("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.u(_.dA,{each:function(){var Y;
return(Y=q.data().subtitles)!=null?Y:[]},
keyBy:"INDEX"},function(Y){return _.u("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.u(_.r6,{text:Y}))})),_.u("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.u(_.dA,{each:function(){var Y;
return(Y=q.data().benefitInfos)!=null?Y:[]},
keyBy:"INDEX"},function(Y){return _.u(_.PF,{cond:function(){return Y().info},
then:function(C){return _.u("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.u(_.q0,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.u(_.r6,{text:C}))}})})),_.u("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.u(_.dA,{each:function(){var Y;
return(Y=q.data().legalInfos)!=null?Y:[]},
keyBy:"INDEX"},function(Y){return _.u("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.u(_.r6,{text:Y}))})))},"$f");var DDy=_.xl(function(q){var Z=q.data;q={};q=(q.ytMiniAppScoreChallengeViewModelScoreRadial=!0,q.ytMiniAppScoreChallengeViewModelDarkScoreRadial=jr8(),q);return _.u("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.u("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return Z().title}),_.u("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return Z().subtitle}),_.u("div",{class:_.XA(q)},_.u("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return Z().score})),_.u("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return Z().prompt}))},"ag");var hgF=function(){this.store=_.JJ();this.formId=""};var ytD=_.xl(function(q){function Z(O){if(O&&(O=_.J(O,_.YL)))return Object.assign({},O,{isSelected:C()})}
var w=_.P(_.hE(function(){var O,H;return(H=(O=_.J(q.data().option,_.YL))==null?void 0:O.isSelected)!=null?H:!1})),r=w.next().value,Y=w.next().value,C=r;
_.Ls(function(){var O;_.Xku((O=q.data().formSchema)==null?void 0:O.id,{onSubmit:function(){var H=_.t().resolve(_.ps),L=!!q.data().selectedCommand,S=!!q.data().unselectedCommand;if(C()){if(L)var v=q.data().selectedCommand}else S&&(v=q.data().unselectedCommand);v=_.oQ(v);Z(q.data().option)&&!v?(H="",!L&&S?H="selected ":L&&!S&&(H="unselected "),L=new _.df("No "+H+"command found for SelectionListItemFormViewModel"),_.tY(L)):v&&H.resolveCommand(v)},
isValid:function(){return!0}})});
var d=function(){Y(!C())};
_.SG(function(){var O,H,L=(O=q.data())==null?void 0:(H=O.formSchema)==null?void 0:H.id;L&&_.GXV()().delete(L)});
return _.u("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.u("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.u(_.r6,{text:function(){return q.data().paragraph}})),_.u(_.PF,{cond:function(){return Z(q.data().option)},
then:function(O){return _.u(_.rH,{data:O,isCompact:!0,hideSelectionTextChevron:!0,onTap:d,disableHorizontalPadding:!0})}}))},"bg");var bIV=_.Px({avatarStackViewModel:_.eV2}),iuu=_.mq(J$V);_.mD(J$V);var goD=_.xl(function(q){var Z=_.m$F(function(){return q.data().formId}),w=Z.onSubmit,r=Z.isValid;
return _.u("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.u(_.Hx,{data:function(){return q.data().panelFooter}},{panelFooterViewModel:function(Y){return _.u(_.z_,{data:Y.data,
disablePadding:!0,disablePrimaryButton:function(){return!r()},
onClickPrimaryButton:function(){w()}})}}))},"cg");var wbF=_.xl(function(q){var Z=_.n5(q,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),w=Z.elRefCallback;q=Z.iconWiz;var r=Z.assetWiz,Y=Z.assetType,C=Z.titleWiz,d=Z.leadingActionHeaderWiz,O=Z.trailingActionHeaderWiz,H=Z.headerPosition,L=Z.contentWiz,S=Z.buttonLayout,v=Z.buttonStyle,R=Z.primaryButtonWiz,B=Z.secondaryButtonWiz,n=Z.contentAlignment,x=Z.isFullscreen,K=Z.width,k=Z.maxHeight,G=Z.isHeaderWizDefined,
rz=Z.headerWiz,f=Z.isFooterWizDefined,eO=Z.footerWiz;Z=_.Iw(function(A2){w==null||w(A2)});
var g=r?function(){return r({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,H6=R?function(){var A2={};
return R({buttonOverrides:function(){return{style:(v==null?void 0:v())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.GL((A2["yt-spec-dialog-layout__dialog-layout-button"]=!0,A2["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(S==null?void 0:S())===0||(S==null?void 0:S())===2},A2))})}:void 0,nX=B?function(){var A2={};
return B({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.GL((A2["yt-spec-dialog-layout__dialog-layout-button"]=!0,A2["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(S==null?void 0:S())===0||(S==null?void 0:S())===2},A2))})}:void 0,Qj=function(){return(!!C||!!d||!!O)&&H()===0},SO={},Te={},Ze={},W1={};
return _.u("dialog-layout",{el:Z,class:_.GL((SO["yt-spec-dialog-layout"]=!0,SO["yt-spec-dialog-layout--dialog-layout-fullscreen"]=x,SO["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!x()},SO["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return k()===1},SO["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(Y==null?void 0:Y())===1},SO)),
style:function(){return(K==null?void 0:K())!==void 0?"width: "+K+"px;":""}},q?_.u("div",{class:_.GL((Te["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Te["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!r&&H()===1},Te["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return n()===1},Te))},_.u(q,null)):null,_.u(_.PF,{cond:G,
then:function(){return rz?_.u("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.u(rz,null)):null},
else:function(){return _.u(_.lS,null,_.u(_.PF,{cond:Qj,then:function(){return _.u(qjD,{contentAlignment:n,LeadingActionHeader:d,TrailingActionHeader:O,Title:C,isAboveAsset:!!g})}}),g?_.u("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.u(g,null)):null)}}),_.u("div",{class:_.GL((Ze["yt-spec-dialog-layout__dialog-layout-container"]=!0,Ze["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(n==null?void 0:n())===1},Ze["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!C&&!rz||!!g&&(H==null?void 0:H())===0},Ze))},_.u(_.PF,{cond:function(){return C&&!rz&&(H==null?void 0:H())===1},
then:function(){return _.u(qjD,{contentAlignment:n,LeadingActionHeader:d,TrailingActionHeader:O,Title:C,isAboveAsset:!1})}}),L?_.u("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.u("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.u(L,null))):null,_.u(_.PF,{cond:f,
then:function(){return eO?_.u("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.u(eO,null)):null}}),H6||nX?_.u(ZUb,{footerClasses:_.GL((W1["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,W1["yt-spec-dialog-layout__dialog-layout-footer"]=!0,W1["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(S==null?void 0:S())===2},W1["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(S==null?void 0:S())===1},W1)),
PrimaryButton:H6,SecondaryButton:nX}):null))},"dg"),qjD=_.xl(function(q){var Z=_.n5(q,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),w=Z.contentAlignment,r=Z.LeadingActionHeader;q=Z.Title;var Y=Z.TrailingActionHeader,C=Z.isAboveAsset,d=Z.enableLeadingActionHeader;Z={};return _.u("div",{class:_.GL((Z["yt-spec-dialog-layout__dialog-header-container"]=!0,Z["yt-spec-dialog-layout__dialog-header"]=!0,Z["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=C,Z["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(w==null?void 0:w())===1&&d()},Z))},_.u(_.PF,{cond:function(){return d()},
then:function(){return r?_.u("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.u(r,null)):null}}),q?_.u("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.u(q,null)):null,Y?_.u("div",null,_.u(Y,null)):null)},"eg"),ZUb=_.xl(function(q){var Z=q.footerClasses;
var w=q.PrimaryButton;q=q.SecondaryButton;return _.u("div",{class:Z},q?_.u(q,null):null,w?_.u(w,null):null)},"fg");var rPD=_.xl(function(q){var Z=q.data;return _.u("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.u("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.u(_.Hx,{data:function(){return Z().avatar}},{avatarViewModel:_.j4})),_.u("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.u(_.r6,{text:function(){return Z().title}})),_.u(_.r6,{text:function(){return Z().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"gg");var Yjy=_.xl(function(q){var Z=q.data;return _.u("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.u("div",{class:"ytAccessConfirmationViewModelContent"},_.u(_.Hx,{data:function(){return Z().dualAvatar}},{dualAvatarViewModel:function(w){return _.u("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.u(_.Cbl,{data:w.data}))}}),_.u("h2",{class:"ytAccessConfirmationViewModelTitle"},_.u(_.r6,{text:function(){return Z().title}})),_.u(_.r6,{text:function(){return Z().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"hg");var $6D=_.xl(function(q){var Z=q.data;var w=void 0;q=_.P(_.qo("",void 0,"O14qgc"));var r=q.next().value,Y=q.next().value,C,d=function(){Y("");var L;(L=w)!=null&&L.store.dispatch(_.mu({type:"RESET_COMMAND_MAP"}))};
_.Ls(function(){w=new hgF;window.addEventListener("yt-popup-closed",d)});
_.L7(function(){if(w&&C!==Z().formId){var L=w,S=Z();S.formId&&(L.formId=S.formId,L.store.dispatch(_.mu({type:"SET_CURRENT_FORM_ID",payload:{formId:L.formId}})));C=Z().formId}});
_.SG(function(){window.removeEventListener("yt-popup-closed",d)});
var O=function(L,S,v){S.key&&v&&S.key!==r()&&(Y(S.key),w&&S.command&&w.store.dispatch(_.mu({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:v,command:S.command}})))},H=function(){if(_.J(Z().content,_.$97))return!(r==null?0:r())};
return _.u("yt-dialog-view-model",{class:_.GL("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.u(wbF,{headerWiz:function(){return _.u("span",{skip:!0},_.u(_.Hx,{data:function(){return Z().header}},{dialogHeaderViewModel:function(L){return _.u(iuu,{data:L.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!Z().header},
contentWiz:function(){return _.u("span",{skip:!0},_.u(_.Hx,{data:function(){return Z().customContent?Z().customContent:Z().content}},{basicContentViewModel:_.moq,
createPlaylistDialogFormViewModel:AtZ,collaborativePlaylistInviteMessageViewModel:mDD,miniAppScoreChallengeViewModel:DDy,radioButtonGroupViewModel:function(L){return _.u(_.SDF,{data:L.data,selectedKey:r,onSelected:O})},
selectionListItemFormViewModel:ytD,upsellViewModel:function(L){return _.u(fWZ,{data:L.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:rPD,installmentAgreementsViewModel:Xic,accessConfirmationViewModel:Yjy,listViewModel:_.DFX}))},
footerWiz:function(){return _.u("span",{skip:!0},_.u(_.Hx,{data:function(){return Z().footer}},{panelFooterViewModel:function(L){return _.u(_.z_,{data:L.data,
disablePadding:!0,disablePrimaryButton:H})},
formPanelFooterViewModel:goD,formFooterViewModel:function(L){return _.u(_.YDy,{data:L.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!Z().footer}}))},"ig");
$6D.idomCompat=!0;_.xc($6D,"yt-dialog-view-model",{props:{data:_.zG},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var eVV=_.xl(function(q){var Z=q.data;q={};return _.u("yt-panel-header-view-model",{class:_.GL("yt-panel-header-view-model-wiz",(q["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!Z().shouldHideDivider},q["yt-panel-header-view-model-wiz--compact"]=function(){return!!Z().subtitle},q))},_.u("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.u(_.PF,{cond:function(){return Z().title},
then:function(w){return _.u(_.r6,{text:w,className:"yt-panel-header-view-model-wiz__title"})}}),_.u(_.PF,{cond:function(){return Z().subtitle},
then:function(w){return _.u(_.r6,{text:w,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.u("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.u(_.Hx,{data:function(){return Z().trailingButtons}},{buttonViewModel:function(w){return _.u(_.vx,{data:w.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"jg");
eVV.idomCompat=!0;var C0C=_.xl(function(q){var Z=_.fn(function(C){var d;if((d=q.skipContentClick)==null?0:d.call(q))return!1;q.onContentWrapperClick(C);return!0}),w,r,Y;
return _.u("div",{class:_.GL("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return q.isAnimating()?"transform: translateY("+q.currentY()+"px);transition: 0.2s":""}},(w=q.header)==null?void 0:w.call(q),_.u("div",{id:q.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.y1({"max-height":(0,_.wH)(q.maxHeightForContentWrapper)}),"on:scroll":nAC(q.onScroll),"on:touchmove":nAC(function(C){return void C.stopPropagation()})},_.u("div",{el:{onRender:q.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":Z},(r=q.body)==null?void 0:r.call(q))),(Y=q.footer)==null?void 0:Y.call(q))},"kg");
C0C.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var P0l=_.xl(function(q){var Z=_.aA(q.leadingLabel),w=_.aA(q.trailingLabel),r=_.aA(q.footerButtonType),Y=function(){return Z()||w()||q.hasPrimaryButton()||q.hasSecondaryButton()},C={},d=_.GL("yt-spec-bottom-sheet-layout__primary-button",(C["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return r()===0&&q.hasPrimaryButton()},C["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return r()===1&&q.hasPrimaryButton()},C["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return r()===2&&q.hasPrimaryButton()},C["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return r()===3&&q.hasPrimaryButton()},C));
C={};var O=_.GL("yt-spec-bottom-sheet-layout__secondary-button",(C["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return r()===1&&q.hasSecondaryButton()},C["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return r()===2&&q.hasSecondaryButton()},C["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return r()===3&&q.hasPrimaryButton()},C));
return _.u(_.PF,{cond:q.hasFooterOverride,then:function(){var H;return _.u(_.lS,null,(H=q.footerOverride)==null?void 0:H.call(q))},
else:function(){return _.u(_.PF,{cond:Y,then:function(){return _.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.u(_.PF,{cond:function(){return Z()||w()},
then:function(){var H={};return _.u("div",{class:_.GL("yt-spec-bottom-sheet-layout__footer-label-wrapper",(H["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!q.hasPrimaryButton()},H))},_.u(_.PF,{cond:Z,
then:function(){return _.u("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},Z)}}),_.u(_.PF,{cond:w,
then:function(){return _.u("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},w)}}))}}),_.u(_.PF,{cond:function(){return q.hasPrimaryButton()||q.hasSecondaryButton()},
then:function(){var H={};return _.u("div",{class:_.GL("yt-spec-bottom-sheet-layout__footer-button-wrapper",(H["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.l97,H))},_.u(_.PF,{cond:function(){return q.hasSecondaryButton()&&r()!==0},
then:function(){var L;return _.u("div",{class:O},(L=q.secondaryButton)==null?void 0:L.call(q))}}),_.u(_.PF,{cond:q.hasPrimaryButton,
then:function(){var L;return _.u("div",{class:d},(L=q.primaryButton)==null?void 0:L.call(q))}}))}}))}})}})},"lg");
P0l.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var d6b=_.xl(function(q){var Z=_.aA(q.title),w=_.aA(q.subtitle),r=_.fn(function(d){var O;(O=q.touchstart)==null||O.call(q,d);return!1}),Y=_.fn(function(d){var O;
(O=q.touchmove)==null||O.call(q,d);return!1}),C=_.fn(function(d){var O;
(O=q.touchend)==null||O.call(q,d);return!1});
return _.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:q.headerId,"on:touchstart":r,"on:touchmove":Y,"on:touchend":C},_.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.u(_.PF,{cond:q.hasHeaderOverride,then:function(){var d;return _.u(_.lS,null,(d=q.headerOverride)==null?void 0:d.call(q))},
else:function(){var d={};return _.u("div",{class:_.GL((d["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,d["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=Z,d))},_.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.u(_.PF,{cond:Z,then:function(){return _.u(_.lS,null,_.u("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},Z),_.u(_.PF,{cond:w,then:function(){return _.u("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
w)}}))}})),_.u(_.PF,{cond:function(){return Z()&&q.hasActionHeader()},
then:function(){var O;return _.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(O=q.actionHeader)==null?void 0:O.call(q))}}))}}))},"mg");
d6b.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.xl(function(q){var Z={stack:[],error:void 0,hasError:!1};try{var w=function(){Ze().dispatch("Close Sheet",{clientHeight:R(),maxHeight:0});setTimeout(function(){QrD()},250)},r=function(){document.body.style.overscrollBehavior="";
Te.isFullScreen[0]()?Te.currentY[0]()>=60?Ze().dispatch("Snap To Neutral Position",{maxHeight:g()}):Ze().dispatch("Snap To Full Screen",{maxHeight:nX()}):Te.currentY[0]()>=60?w():Te.currentY[0]()<=-60&&k()>g()?Ze().dispatch("Snap To Full Screen",{maxHeight:nX()}):Ze().dispatch("Snap To Neutral Position",{maxHeight:g()})},Y=function(A2){A2.preventDefault();
Ze().dispatch("Touch Move",{event:A2,contentScrollable:k()>g(),fullContentWrapperHeight:nX(),contentWrapperHeight:g(),contentHeightMap:SO,contentWrapperId:"content-wrapper",header:EAq(q),footer:EAq(q)})},C=function(A2){document.body.style.overscrollBehavior="none";
A2.preventDefault();Ze().dispatch("Touch Start",{event:A2})},d=function(){B(window.innerHeight);
k()>g()||H6(k());Te.isFullScreen[0]()&&k()>g()?Ze().dispatch("Snap To Full Screen",{maxHeight:nX()}):Ze().dispatch("Snap To Neutral Position",{maxHeight:g()})},O=function(A2){typeof Qj!=="undefined"&&(SO["content-wrapper"]===void 0&&(SO["content-wrapper"]=A2.children[0].clientHeight),G(SO["content-wrapper"]),k()>g()||H6(k()))},H=function(A2){if(!Qj&&typeof MutationObserver!=="undefined"){var f9={childList:!0};
"MutationObserver"in window&&(Qj=new MutationObserver(O.bind(void 0,A2)),Qj.observe(A2,f9))}};
_.Qy(Z,_.$Nj(_.Nb));var L=_.P(_.qo(window.innerHeight,void 0,"Knpls")),S=L.next().value,v=L.next().value,R=S,B=v,n=_.P(_.qo(0,void 0,"N0qFo")),x=n.next().value,K=n.next().value,k=x,G=K,rz=_.P(_.hE(function(){var A2=EAq(q);return.6*R()-zv8(A2)-BMy(A2)})),f=rz.next().value,eO=rz.next().value,g=f,H6=eO,nX=function(){var A2=EAq(q);
return R()-zv8(A2)-BMy(A2)-24-24},Qj=null,SO={},Te={initialY:_.qo(0,void 0,"r4ch9"),
currentY:_.qo(0,void 0,"CvvHV"),isAnimating:_.qo(!1,void 0,"FxET1b"),isFullScreen:_.qo(!1,void 0,"vBIcVe"),maxHeightForContentWrapper:_.hE(g)},Ze=function(){var A2=null;return function(){if(!A2){var f9={initialY:Te.initialY[0](),currentY:Te.currentY[0](),isAnimating:Te.isAnimating[0](),isFullScreen:Te.isFullScreen[0](),maxHeightForContentWrapper:Te.maxHeightForContentWrapper[0]()};A2=aIy(f9)}return A2}}();
_.Ls(function(){window.addEventListener("resize",d);Ze().subscribe(function(A2){Te.initialY[1](A2.initialY);Te.currentY[1](A2.currentY);Te.isAnimating[1](A2.isAnimating);Te.isFullScreen[1](A2.isFullScreen);Te.maxHeightForContentWrapper[1](A2.maxHeightForContentWrapper)})});
_.SG(function(){window.removeEventListener("resize",d);Qj&&(Qj.disconnect(),Qj=null)});
var W1=_.GL({"bottom-sheet-content-without-icon":function(){var A2;return!((A2=q.shouldShowIcons)==null?0:A2.call(q))}});
return _.u("bottom-sheet-layout",null,_.u(C0C,{contentWrapperId:"content-wrapper",isAnimating:function(){return Te.isAnimating[0]()},
currentY:function(){return Te.currentY[0]()},
maxHeightForContentWrapper:function(){return Te.maxHeightForContentWrapper[0]()},
shouldShowIcons:q.shouldShowIcons,skipContentClick:q.skipContentClick,onScroll:function(){var A2=document.getElementById("header-wrapper"),f9=document.getElementById("content-wrapper");if(A2&&f9){var Dl={};Dl=(Dl["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Dl["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Dl);A2.className=f9.scrollTop>1?_.XA(Dl):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:QrD,contentWrapperEl:function(A2){H(A2);requestAnimationFrame(function(){O(A2)})},
header:function(){return _.u(d6b,{touchstart:C,touchmove:Y,touchend:r,title:q.headerTitle,subtitle:q.headerSubtitle,headerId:"header-wrapper",headerOverride:q.headerFn,hasHeaderOverride:q.hasHeaderFn,actionHeader:q.headerActionHeader,hasActionHeader:q.hasHeaderActionHeader})},
footer:function(){return _.u(P0l,{footerButtonType:q.footerButtonType,leadingLabel:q.footerLeadingLabel,trailingLabel:q.footerTrailingLabel,primaryButton:q.footerPrimaryButton,hasPrimaryButton:q.hasFooterPrimaryButton,secondaryButton:q.footerSecondaryButton,hasSecondaryButton:q.hasFooterSecondaryButton,footerOverride:q.footerFn,hasFooterOverride:q.hasFooterFn})},
body:function(){return _.u(_.PF,{cond:q.hasContentFn,then:function(){var A2;return _.u("div",{class:W1},(A2=q.contentFn)==null?void 0:A2.call(q))}})}}))}catch(A2){Z.error=A2,Z.hasError=!0}finally{_.ED(Z)}},"ng").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var V$7=_.xl(function(q){var Z=_.t().resolve(_.Ha),w=_.fn(function(){return void Z.closeSheet()});
return _.u("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":w},_.u(_.PF,{cond:function(){return!!q.header},
then:function(){return _.u("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},q.header())}}),_.u(_.PF,{cond:function(){return!!q.content},
then:function(){return _.u("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},q.content())}}),_.u(_.PF,{cond:function(){return!!q.footer},
then:function(){return _.u("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},q.footer())}}))},"og");
V$7.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var OUD=_.xl(function(q){q=q.data;var Z={};return _.u("yt-sheet-view-model",{class:_.GL("yt-sheet-view-model-wiz",(Z["yt-sheet-view-model-wiz--contextual"]=!0,Z["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.b("web_disable_backdrop_filter"),Z))},_.u(_.PF,{cond:q,then:function(w){return _.u(V$7,{header:function(){return _.u(_.Hx,{data:function(){return w().header}},{panelHeaderViewModel:eVV})},
content:function(){return _.u(_.Hx,{data:function(){return w().content}},{listViewModel:function(r){return _.u(_.DFX,{data:r.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:fWZ,miniAppScoreChallengeViewModel:DDy})},
footer:function(){return _.u(_.Hx,{data:function(){return w().footer}},{panelFooterViewModel:_.z_})}})}}))},"pg");
OUD.idomCompat=!0;_.xc(OUD,"yt-sheet-view-model",{props:{data:_.zG}});var WZZ=_.xl(function(q){var Z=function(){var w;return(w=q.data().enableDebuggingFeatures)!=null?w:!1};
return _.u("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.u(_.dA,{each:function(){var w;return(w=q.data().stickers)!=null?w:[]}},function(w){return _.u(HUc,{data:function(){return w},
debugMode:Z})}))},"qg"),HUc=_.xl(function(q){var Z=_.n5(q,{debugMode:!1}).debugMode,w=_.aA(function(){var H;
return(H=q.data().region)==null?void 0:H.w},0),r=_.aA(function(){var H;
return(H=q.data().region)==null?void 0:H.h},0),Y=_.aA(function(){var H;
return(H=q.data().region)==null?void 0:H.x},0),C=_.aA(function(){var H;
return(H=q.data().region)==null?void 0:H.y},0),d=_.fn(function(){var H=q.data().onTap;
H&&_.Sp(H)}),O={};
return _.u("div",{class:_.GL("ytStoriesStickerLayerViewModelSticker",(O.ytStoriesStickerLayerViewModelDebugMode=Z,O)),style:_.y1({width:function(){return 100*w()+"%"},
height:function(){return 100*r()+"%"},
left:function(){return 100*Y()+"%"},
top:function(){return 100*C()+"%"},
"flex-direction":function(){return xfF(q.data().flexDirection)},
"justify-content":function(){return TMq(q.data().justifyContent)},
"align-items":function(){return Ufy(q.data().alignItems)}}),
"on:click":d},_.u(_.Hx,{data:function(){return q.data().button||q.data().toggleButton}},{buttonViewModel:function(H){return _.u(_.vx,{data:H.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(H){return _.u(_.uo,{data:H.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"rg");var u8u=_.xl(function(q){var Z=function(){return q.data()},w=_.aA(function(){return Z().backgroundColor},0),r=_.aA(function(){return Z().actionButtons},[]),Y=_.aA(function(){return Z().stickerLayer},{}),C={},d=function(){var H,L;
return{animationRef:C,animationConfig:{autoplay:!1,loop:!1,path:(L=(H=Z().foregroundAnimation)==null?void 0:H.url)!=null?L:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){q.navigateToNextItemOnLottieComplete()}}}},O=function(){var H,L,S,v,R,B,n,x;
return{animationConfig:{autoplay:(B=(H=Z().backgroundAnimation)==null?void 0:(L=H.settings)==null?void 0:L.autoplay)!=null?B:!1,loop:(n=(S=Z().backgroundAnimation)==null?void 0:(v=S.settings)==null?void 0:v.loop)!=null?n:!1,path:(x=(R=Z().backgroundAnimation)==null?void 0:R.url)!=null?x:"",name:"stories_item_background_animation"}}};
_.L7(function(){if(q.isVisible()){var H;(H=C.lottieEl)==null||H.play()}else{var L;(L=C.lottieEl)==null||L.stop()}});
return _.u("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.y1({"background-color":function(){return _.uq(w())+";"}})},_.u("div",{class:"ytStoriesItemViewModelAssetContent"},_.u(_.PF,{cond:function(){return!!Z().backgroundAnimation},
then:function(){return _.u(_.pn,{data:O,animationName:function(){return O().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.u(_.PF,{cond:function(){return!!Z().backgroundImage},
then:function(){return _.u(_.aQ,{data:function(){return Z().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.u(_.PF,{cond:function(){return!!Z().foregroundAnimation},
then:function(){return _.u(_.pn,{data:d,animationName:function(){return d().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.u(_.PF,{cond:function(){return!!Z().foregroundImage},
then:function(){return _.u(_.aQ,{data:function(){return Z().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.u("div",{class:"ytStoriesItemViewModelTopShadow"}),_.u(_.Hx,{data:function(){return Y()}},{storiesStickerLayerViewModel:WZZ})),_.u("div",{class:"ytStoriesItemViewModelBottomShadow"},_.u("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.fn(q.pauseAutoNavigation)},_.u(_.dA,{each:r},function(H){return _.u(oP7,{data:function(){return H}})}))))},"sg"),oP7=_.xl(function(q){var Z={};
return _.u("div",{class:_.GL("ytStoriesItemViewModelActionButton",(Z.ytStoriesItemViewModelStretchedActionButton=function(){return q.data().size==="STORIES_BUTTON_SIZE_STRETCH"},Z))},_.u(_.Hx,{data:function(){return q.data().button}},{buttonViewModel:function(w){return _.u(_.vx,{data:w.data,
className:"ytStoriesItemViewModelButton"})}}))},"tg");_.xc(_.xl(function(q){var Z=_.P(_.hE(function(){var G;return(G=q.data().startIndex)!=null?G:0})),w=Z.next().value,r=Z.next().value;
Z=_.P(_.qo(!1,void 0,"klmjc"));var Y=Z.next().value,C=Z.next().value,d=function(){var G;return(G=q.data().storyItems)!=null?G:[]},O=function(){return q.data().dismissButton},H=function(){var G;
return _.J((G=_.J(O(),_.Wx))==null?void 0:G.onTap,_.WJ)},L=_.Iw(),S,v=function(){var G;
(G=S)==null||G.cancel();S=R(w()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});S.onfinish=function(){R(w()).style.width="100%";var rz=_.J(d()[w()],F5c),f,eO;rz!=null&&rz.foregroundAnimation&&((rz==null?0:(f=rz.foregroundAnimation)==null?0:f.url)||(rz==null?0:(eO=rz.foregroundAnimation)==null?0:eO.payload))||(w()!==d().length-1?(r(w()+1),v()):H()&&_.um(H()))}},R=function(G){return L.value.children[G].children[0]},B=function(){for(var G=0;G<w();G++)R(G).style.width="100%"};
Z=_.fn(function(){Y()?C(!1):(w()===d().length-1&&H()&&_.um(H()),R(w()).style.width="100%",w()!==d().length-1&&(r(w()+1),v()))});
var n=_.fn(function(){Y()?C(!1):(R(w()).style.width="0%",w()!==0?r(w()-1):r(w()),v())}),x=function(){C(!0)},K=function(){R(w()).style.width="100%";
w()!==d().length-1?(r(w()+1),v()):H()&&_.um(H())},k=_.fn(function(){var G;
(G=S)==null||G.pause()});
_.L7(function(){if(Y()){var G;(G=S)==null||G.pause()}else{var rz;(rz=S)==null||rz.play()}});
_.L7(function(){B();w()===q.data().startIndex&&v()});
_.Ls(function(){B();v()});
return _.u("yt-stories-viewer-view-model",{class:_.GL("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.u("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.u("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":n,"on:mousedown":k}),_.u("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":Z,"on:mousedown":k})),_.u(_.Hx,{data:d},{storiesItemViewModel:function(G,rz){var f=G.data;return _.u(_.PF,{cond:function(){return Math.abs(rz()-
w())<=1},
then:function(){var eO={};return _.u("div",{class:_.GL("ytStoriesViewerViewModelStoryItem",(eO.ytStoriesViewerViewModelHiddenStoryItem=function(){return rz()!==w()},eO))},_.u(u8u,{data:f,
pauseAutoNavigation:x,navigateToNextItemOnLottieComplete:K,isVisible:function(){return rz()===w()}}))}})}}),_.u("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:L},_.u(_.dA,{each:d},function(){return _.u("div",{class:"ytStoriesViewerViewModelProgressBar"},_.u("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.u("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.u(_.Hx,{data:O},{buttonViewModel:_.vx})))},"ug"),"yt-stories-viewer-view-model",{props:{data:_.zG}});_.xc(_.xl(function(q){var Z=q.data;var w=_.Iw(),r=[];return _.u("yt-gen-ai-feedback-form-view-model",{el:w,class:"ytGenAiFeedbackFormViewModelHost"},_.u(_.r6,{text:function(){return Z().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.u("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.u(_.Hx,{data:function(){return Z().feedbackChips}},{toggleButtonViewModel:function(Y){var C=Y.data;
return _.u(_.uo,{data:C,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(d){var O=C();O=_.J(O,_.o5);O=_.J(O==null?void 0:O.defaultButtonViewModel,_.Wx).trackingParams;d?r.push(O):(d=r.indexOf(O),d>-1&&r.splice(d,1))}})}})),_.u(_.r6,{text:function(){return Z().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.u("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.u(_.Hx,{data:function(){return Z().submitButton}},{buttonViewModel:function(Y){return _.u(_.vx,{data:Y.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){k3b(w.value,r,Z().uniqueId)}})}}),_.u(_.Hx,{data:function(){return Z().moreFeedbackButton}},{buttonViewModel:function(Y){return _.u(_.vx,{data:Y.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"vg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.zG},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Vm=function(){return _.N.apply(this,arguments)||this};
_.z(Vm,_.N);Vm.prototype.created=function(){OGC(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(CZD);var q=_.t().resolve(_.Bcl);q&&(q.container=this.ytPopupContainerBehavior);if(q=_.t().resolve(_.Ha))q.container=this.ytPopupContainerBehavior;if(q=_.t().resolve(_.Wa)){var Z=this.ytPopupContainerBehavior;q.containerWasInjected?_.bx(Error("cj")):q.container=Z}};
Vm.prototype.ensurePopupBelowPlayer=function(q,Z){var w=_.t().resolve(_.Gj(_.U1));if(!w||!w.isOnWatch()||!_.K6())return!1;w=w.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.r3().height>w+this.getPopupHeight(q,Z)?(q.style.top="auto",q.style.bottom="0px"):(q.style.top=w+"px",q.style.bottom="auto");return!0};
Vm.prototype.getPopupHeight=function(q,Z){Z&&(q.cachedPopupHeight=0);if(!q.cachedPopupHeight){Z=0;var w=q.clientHeight,r=window.getComputedStyle(q);Z+=parseInt(r.marginTop,10);Z+=parseInt(r.marginBottom,10);q.cachedPopupHeight=w+Z}return q.cachedPopupHeight};
Vm.prototype.getElement=function(q){return document.createElement(q)};
var LZu=Vm;_.X([_.U(pnC.YtPopupContainerBehavior),_.A("design:type",Object)],LZu.prototype,"ytPopupContainerBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],LZu.prototype,"ytComponentBehavior",void 0);LZu=_.X([_.l({disableElementRegistration:!0,is:"ytd-popup-container"})],LZu);
_.p(LZu,"ytd-popup-container",function(){if(UmC!==void 0)return UmC;var q=document.createElement("template");_.a(q,"\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");q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);return UmC=q},{mode:1});var SjV;var vP7={};vP7.YtLogYpcFlowCommandsBehavior=[_.KK.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(q){_.J(q,YFV)&&(q=_.J(q,YFV))&&(q.serializedTransactionFlowLoggingParams?_.lxj(q.serializedTransactionFlowLoggingParams):q.serializedYpcCancelFlowLoggingParams?(q=q.serializedYpcCancelFlowLoggingParams)&&_.H9("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",q):q.serializedYpcResumeFlowLoggingParams?(q=q.serializedYpcResumeFlowLoggingParams)&&_.H9("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",q):q.serializedYpcPauseFlowLoggingParams?(q=q.serializedYpcPauseFlowLoggingParams)&&
_.H9("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",q):q.serializedYpcRefundFlowLoggingParams?(q=q.serializedYpcRefundFlowLoggingParams)&&y7c("YPC_EVENT_TYPE_START",q):q.serializedYpcDeactivateFlowLoggingParams?(q=q.serializedYpcDeactivateFlowLoggingParams)&&_.H9("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",q):q.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(q=q.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.H9("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",q))},
handleLogYpcFlowDismiss_:function(q){_.J(q,rOD)&&(q=_.J(q,rOD),q.serializedTransactionFlowLoggingParams?_.Gz9(q.serializedTransactionFlowLoggingParams):q.serializedYpcCancelFlowLoggingParams?(q=q.serializedYpcCancelFlowLoggingParams)&&_.H9("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",q):q.serializedYpcResumeFlowLoggingParams?(q=q.serializedYpcResumeFlowLoggingParams)&&_.H9("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",q):q.serializedYpcPauseFlowLoggingParams?(q=
q.serializedYpcPauseFlowLoggingParams)&&_.H9("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",q):q.serializedYpcRefundFlowLoggingParams&&(q=q.serializedYpcRefundFlowLoggingParams)&&y7c("YPC_EVENT_TYPE_CANCEL",q))}}];var j88={};j88.YtCancelRecurrenceBehavior=[_.S_.YtComponentBehavior,_.f2D,{attached:function(){var q=this;fgy(this,function(Z,w){return q.ypcCancelRecurrenceHandler(Z,w)})},
ypcCancelRecurrenceHandler:function(q,Z){var w=this;if(!Z||!Z.ypcCancelRecurrenceEndpoint)return!1;if(!Z.ypcCancelRecurrenceEndpoint.params)return _.ns(Error("ul")),!0;_.cQ(this.hostElement);var r=_.bl.instance,Y=_.t().resolve(_.Gj(_.Co));r&&_.J7(r,Z)?_.zR(r,Z).then(function(C){w.ypcCancelRecurrenceSuccess_(q,Z,{data:C})},function(C){w.ypcCancelRecurrenceFailure_(q,Z,C)}).thenCatch(function(){_.ns(Error("vl"))}):Y?Y.requestDataForServiceEndpoint(Z).then(function(C){w.ypcCancelRecurrenceSuccess_(q,
Z,C)},function(C){w.ypcCancelRecurrenceFailure_(q,Z,C)}).thenCatch(function(){_.ns(Error("vl"))}):_.ns(Error("wl"));
return!0},
ypcCancelRecurrenceSuccess_:function(q,Z,w){_.Ml(this.hostElement);w.data||(w={data:w});w.data&&w.data.actions&&_.ZC(this.hostElement,w.data.actions,this.hostElement);w.data.messageRenderer?gBb(Z.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(Z=Z.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.H9("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",Z);_.hy(q,"yt-service-request-completed",w)},
ypcCancelRecurrenceFailure_:function(q,Z,w){_.Ml(this.hostElement);gBb(Z.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.hy(q,"yt-service-request-error",{error:w,params:[q,Z]})}}];var t$u=function(q,Z){_.qj.call(this,Z)};
_.z(t$u,RtD);var RVF={};RVF.YtCompleteTransactionBehavior=[_.S_.YtComponentBehavior,_.f2D,{attached:function(){var q=this;fgy(this,function(Z,w){return q.ypcCompleteTransactionHandler(Z,w)})},
completeTransaction:function(q,Z){var w=this;Z={payments_payload:window.btoa(Z.integratorData),buybucket_params:q.data.buybucketParams,offer_params:q.data.offerParams};var r=_.t().resolve(_.Co),Y=q.data.completeTransactionEndpoint,C=this.get("ypcCompleteTransactionEndpoint.actions",Y);C&&_.ZC(this.hostElement,C,this.hostElement);return(C=_.bl.instance)&&_.J7(C,Y)?_.zR(C,Y,Z).then(function(d){return!d||(d==null?0:d.error)?(d=w.get("data.serializedTransactionFlowLoggingParams",q),_.TX(new NQ("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
d))):{data:d}}).then(function(d){return w.handleCompleteTransactionSuccess_(d,q)},function(){return w.handleCompleteTransactionFailure_(q)}):r.requestDataForServiceEndpoint(Y,Z).then(function(d){return w.handleCompleteTransactionSuccess_(d,q)},function(){return w.handleCompleteTransactionFailure_(q)})},
handleCompleteTransactionSuccess_:function(q,Z){q.data||(q={data:q});if(q.data.messageRenderer)return _.TX(new t$u(q.data.messageRenderer));if(q.data.trackingParams){var w=_.b5(),r=_.Rs();w&&r&&_.T7(w,r,_.wa(q.data.trackingParams))}Z=this.get("data.serializedTransactionFlowLoggingParams",Z);i6D(Z);return _.YK(q)},
handleCompleteTransactionFailure_:function(q){q=this.get("data.serializedTransactionFlowLoggingParams",q);_.no("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",q);return _.TX(new NQ("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",q))},
ypcCompleteTransactionHandler:function(q,Z){var w=this;if(!Z.ypcCompleteTransactionEndpoint)return!1;if(!Z.ypcCompleteTransactionEndpoint.transactionParams)return _.ns(Error("xl")),!0;Z.ypcCompleteTransactionEndpoint&&Z.ypcCompleteTransactionEndpoint.gtmData&&_.$b(Z.ypcCompleteTransactionEndpoint.gtmData);var r=_.t().resolve(_.Gj(_.Co));if(r){_.cQ(this.hostElement);var Y=_.bl.instance;Y&&_.J7(Y,Z)?_.zR(Y,Z).then(function(C){return!C||(C==null?0:C.error)?(C=w.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
Z),_.TX(new NQ("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",C))):{data:C}}).then(function(C){_.hy(q,"yt-service-request-completed");
w.ypcCompleteTransactionSuccess_(Z,C)},function(){return w.ypcCompleteTransactionFailure_(Z)}):r.requestDataForServiceEndpoint(Z).then(function(C){_.hy(q,"yt-service-request-completed");
w.ypcCompleteTransactionSuccess_(Z,C)},function(){return w.ypcCompleteTransactionFailure_(Z)})}return!0},
ypcCompleteTransactionSuccess_:function(q,Z){_.Ml(this.hostElement);Z.data||(Z={data:Z});_.yY(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);Z.data.messageRenderer||Z.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(q):(_.$b('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",q));Z.data.actions&&(q=$Y7(Z.data.actions),Z=eLD(Z.data.actions),q.length&&_.qM(this.hostElement,
q),Z.length&&_.ZC(this.hostElement,Z,this.hostElement))},
ypcCompleteTransactionFailure_:function(q){_.Ml(this.hostElement);_.yY(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",q,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(q,Z,w){if(Z=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",Z))Z={serializedTransactionFlowLoggingParams:Z},w&&(Z.errorType=w),_.vO(q,Z),_.jX()}}];var bUV={};bUV.YtEndpointHandlerWithYpcBehavior=[_.f2D,_.KK.YtActionHandlerBehavior,[{openWalletDialog:function(q,Z,w,r,Y,C,d){var O=this,H=_.Be();Z=Z.replace(/-/g,"+").replace(/_/g,"/");var L=_.Hd().get("hl");_.RuX(_.gn(_.Q5),Z,H.resolve,Y,function(S){C&&C();H.reject(S)},L,function(S){return O.onServerBackendAnalyticEvent_(q,w,S)},this.onDialogClose_.bind(this),r,d);
return H.promise},
openFixFlowDialog:function(q,Z,w,r){q=q.replace(/-/g,"+").replace(/_/g,"/");_.gn(_.Q5).openFixFlowDialog(q,Z,w,r)},
onDialogClose_:function(){_.yY(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(q,Z,w){q.fire("yt-commerce-action-init-done");Z&&_.qM(this.hostElement,[Z,{backend_analytics:w}])}}],
_.Xp.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(q,Z){q=this.get("data.nativeFlowEndpoint",Z);Z=this.get("data.fallbackEndpoint",Z);q?_.qM(this.hostElement,[q]):Z&&_.hy(this.hostElement,"yt-navigate",{endpoint:Z})}}],
j88.YtCancelRecurrenceBehavior,RVF.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 q=this;fgy(this,function(Z,w,r){return q.handleYPCEndpoint(Z,w,r)});
this.ypcRegisterActionMapJobId_=_.WO(_.v5,function(){q.registerActionMap(q.buyFlowActionMap_)})},
detached:function(){var q=this;_.v5.cancelJob(this.ypcRegisterActionMapJobId_);_.WO(_.v5,function(){q.unregisterActionMap(q.buyFlowActionMap_)})},
handleYPCEndpoint:function(q,Z,w){var r=Z.ypcGetCartEndpoint;if(r){_.bI("commerce_transaction");var Y=r.gtmId;Y&&_.Yb(Y);(r=r.gtmData)&&_.$b(r)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",Z)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(q,Z),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",Z)!=null?(this.handleYPCFixInstrumentEndpoint_(q,Z),!0):Z.ypcPauseSubscriptionCommand?(G3q(this.hostElement,q,Z,w),
!0):Z.ypcResumeSubscriptionCommand?(mfF(this.hostElement,q,Z),!0):Z.getPaymentInstrumentsParamsCommand?(F9V(this.hostElement,q,Z),!0):Z.ypcHandleTransactionEndpoint?(c$l(this.hostElement,q,Z,w),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(q,Z){var w=this;_.JT("ttcr",void 0,"commerce_transaction");Z=Z.ypcGetCartEndpoint;var r=Z.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,Y=r.encryptedPurchaseParams,C=r.serializedTransactionFlowLoggingParams,d=r.serializedPaymentsClientParams,O=this.createGetCartResponseFromParams_(r,Z.offerParams,C);this.changeButtonState(q,!0);_.on(this.openWalletDialog(q,Y,r.ypcLogWalletAnalyticDataEndpoint,C,function(){w.changeButtonState(q,!1)},function(){w.changeButtonState(q,
!1)},d).then(function(H){return w.handleBuyFlowCompleteCallback_(q,O,H)},function(){return w.handleOnLoadError(O)}).then(function(H){return void w.handlePostPurchaseSuccess_(q,O,H)},function(H){return void w.handlePostPurchaseError_(H)}),function(){w.changeButtonState(q,!1);
q instanceof Element&&_.hy(q,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(q,Z,w){var r=q.completeTransactionEndpoint,Y=q.handleTransactionEndpoint;Z={data:{offerParams:window.btoa(Z),serializedTransactionFlowLoggingParams:w}};Y?Z.data.handleTransactionEndpoint=Y:Z.data.completeTransactionEndpoint=r;q.onCartDismissCommand&&(Z.data.onCartDismissCommand=q.onCartDismissCommand);return Z},
onGetCartServiceRequestCompleted_:function(q,Z){var w=this,r=q.target;if(Z&&Z.data&&Z.data.messageRenderer)_.Ml(this.hostElement),this.handleMessageRenderer_(Z.data.messageRenderer),this.changeButtonState(r,!1);else{var Y=this.get("data.encryptedPurchaseParams",Z),C=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",Z),d=this.get("data.ypcLogWalletAnalyticDataEndpoint",Z),O=this.get("data.serializedPaymentsClientParams",Z),H=this.getLoggingParams_(Z);if(H||Y||C)q.stopPropagation(),_.JT("ttcr",
void 0,"commerce_transaction"),Y||_.Ml(this.hostElement),this.changeButtonState(r,!1),C?_.yY(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.zj("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:C}}},this]):Y&&(this.changeButtonState(r,!0),q=null,q=this.openWalletDialog(r,Y,d,H,function(){_.Ml(w.hostElement);w.changeButtonState(r,!1)},function(){_.Ml(w.hostElement);
w.changeButtonState(r,!1)},O),_.on(q.then(function(L){return w.handleBuyFlowCompleteCallback_(r,Z,L)},function(){return w.handleOnLoadError(Z)}).then(function(L){return w.handlePostPurchaseSuccess_(r,Z,L)},function(L){return w.handlePostPurchaseError_(L)}),function(){w.changeButtonState(r,!1);
_.hy(r,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(q,Z){Z&&Z.endpoint&&Z.endpoint.ypcGetCartEndpoint&&!Z.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",Z.endpoint.ypcGetCartEndpoint)&&_.ZC(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",Z.endpoint.ypcGetCartEndpoint)],q.target),_.cQ(this.hostElement),this.changeButtonState(q.target,!0))},
onServiceRequestError_:function(q,Z){if(Z&&Z.params&&Z.params.length){Z=_.P(Z.params);for(var w=Z.next();!w.done;w=Z.next())if((w=w.value)&&w.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",w.ypcGetCartEndpoint)&&_.ZC(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",w.ypcGetCartEndpoint)],q.target);_.Ml(this.hostElement);this.changeButtonState(q.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(q,Z,w){var r=w.integratorData;return r==null||r===""||w.error!=null?(r=this.getLoggingParams_(Z),String(w.error)==="-1"?(Z.data.onCartDismissCommand&&_.ZC(this.hostElement,[Z.data.onCartDismissCommand],q),_.TX(new NQ("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",r,!0))):_.TX(new NQ("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",r))):Z.data.handleTransactionEndpoint?Mzc(this.hostElement,Z.data.handleTransactionEndpoint,{payments_payload:r,funds_guarantee_callback_client_data:w.integratorClientCallbackData}):
this.completeTransaction(Z,w)},
handlePostPurchaseSuccess_:function(q,Z,w){Z=w.data;var r=!1,Y,C;if(Z&&((Y=Z.command)==null?0:(C=Y.commandExecutorCommand)==null?0:C.commands)){var d,O;Y=(d=Z.command)==null?void 0:(O=d.commandExecutorCommand)==null?void 0:O.commands;for(d=0;d<Y.length;d++)if(_.J(Y[d],_.HKK)){r=!0;break}}r||(Z&&Z.gtmDatas&&Z.gtmDatas.length?_.$b(Z.gtmDatas[0]):_.$b('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));w.data&&w.data.actions&&(Z=$Y7(w.data.actions),w=eLD(w.data.actions),Z.length&&
_.qM(this.hostElement,Z),w.length&&_.ZC(this.hostElement,w,q))},
handlePostPurchaseError_:function(q){q&&q.payload&&q.payload.isUserDismiss||_.tY(Error("zl"))},
handleOnLoadError:function(q){q=this.getLoggingParams_(q);return _.TX(new NQ("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",q))},
getLoggingParams_:function(q){return this.get("data.serializedTransactionFlowLoggingParams",q)},
handleMessageRenderer_:function(q){var Z=_.tf(q,"renderer"),w=_.zj("openPopupConfig");Z==="confirmDialogRenderer"&&w&&_.yY(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:w.popupTypeMap[Z],popup:q}},this])},
handleYPCFixInstrumentEndpoint_:function(q,Z){var w=this,r=Z.ypcFixInstrumentEndpoint;Z=r.encryptedFixInstrumentParameters;this.logFixFopEvent_(r,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(q,!0);this.openFixFlowDialog(Z,function(Y,C){w.onFixFlowCompleteCallback_(r,Y,C)},function(){return w.changeButtonState(q,!1)},function(){w.changeButtonState(q,!1);
w.logFixFopEvent_(r,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(q,Z,w){var r=_.Eq("payments.business.integration.scenario.FixInstrument");if(Z==r.IntegratorCallbackType.ON_COMPLETE){Z="FIX_FOP_EVENT_TYPE_CANCEL";var Y=null;w.error!=null?w.error!=r.OnCompleteCallbackError.USER_CANCELLED&&(_.ZC(this.hostElement,[q.errorAction],this.hostElement),Z="FIX_FOP_EVENT_TYPE_FAILURE",Y="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.ZC(this.hostElement,[q.successAction],this.hostElement),Z="FIX_FOP_EVENT_TYPE_SUCCESS");_.ZC(this.hostElement,[q.onFinishAction],
this.hostElement);this.logFixFopEvent_(q,Z,Y)}},
logFixFopEvent_:function(q,Z,w){(q=q.serializedFixFopLoggingParams)?(Z={eventType:Z,serializedFixFopLoggingParams:q},w!=null&&(Z.errorType=w),_.vO("fixFopFlow",Z),_.jX()):_.tY(Error("Al"))},
changeButtonState:function(q,Z){_.b("enable_ypc_spinners")&&q&&(q.is==="yt-button-renderer"||q.is==="ytd-button-renderer")&&(q.disabled=Z)}}];var JPZ=function(q){this.JSC$28482_clientRoot=q;this.feedbackCollectorActionMap={"yt-help-dialog-requested":fIl,"yt-feedback-dialog-requested":A$S,"yt-signal-action-help":DfF,"yt-signal-action-send-feedback":hvb,"yt-send-feedback-action":iIl,"yt-user-feedback-endpoint":gAS};_.k7(_.UU.getInstance(),this.feedbackCollectorActionMap,this.JSC$28482_clientRoot)},zVS;var BeF=function(q){this.JSC$28487_clientRoot=q;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":qTF.bind(null,this.JSC$28487_clientRoot),"yt-signal-action-delete-all-downloads":wDS,"yt-signal-action-delete-download":rqy,"yt-signal-action-delete-playlist-download":$Cc,"yt-signal-action-install-pwa":ONV,"yt-signal-action-refresh-downloads":dCq,"yt-offline-video-endpoint":WxD,"yt-offline-playlist-endpoint":ui7,"yt-update-local-app-setting-command":STb,"yt-offline-orchestration-action-command":jnb,
"yt-signal-action-undo-delete-download":CQq,"yt-local-watch-history-command":bNV};_.k7(_.UU.getInstance(),this.downloadManagerActionMap,this.JSC$28487_clientRoot);_.Jr.instance=new _.Jr},aOl;var nPV=function(){var q=_.N.apply(this,arguments)||this;q.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_"};q.remoteApi_=null;return q};
_.z(nPV,_.N);_.e=nPV.prototype;
_.e.ready=function(){_.b("polymer_enable_mdx")&&($Hl({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.b("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.b("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.b("enable_cast_short_lived_lounge_token")}),_.h9("yt-remote-connection-change",this.handleConnectionChange_,this),_.h9("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=HMl())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.e.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.e.handleConnectionChange_=function(q){(this.mdxConnected=q)?(q=PDS(),!q&&pHb()&&XH6()&&(q={key:"cast-selector-receiver",name:XH6()}),q=q.name):q=null;this.receiverName=q;_.Xg(this.remoteApi_);(this.remoteApi_=HMl())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.e.handleReceiverAvailabilityChange_=function(){var q=CDb();pHb()&&_.i8("yt-remote-cast-available")&&q.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=q.length>0};
_.e.handleRemoteQueueChange_=function(){var q=this.currentVideoId_,Z=this.currentListId_,w=fU(this.remoteApi_);this.currentVideoId_=w.videoId;this.currentListId_=w.listId;this.currentVideoId_&&_.yY(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.b("polymer_enable_mdx_queue")?this.currentListId_:null,q,Z])};
_.e.handleAddToQueueAction_=function(q){q=_.J(q,N7F);this.remoteApi_&&(q.videoId?this.remoteApi_.addVideo(q.videoId):q.playlistId&&this.remoteApi_.addPlaylist(q.playlistId))};
_.e.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.e.handleInsertInQueueAction_=function(q){q=_.J(q,lx7);this.remoteApi_&&q.videoId&&this.remoteApi_.JSC$17379_insertVideo(q.videoId)};
_.e.handleRemoveFromQueueAction_=function(q){q=_.J(q,GzD);this.remoteApi_&&q.videoId&&this.remoteApi_.JSC$17379_removeVideo(q.videoId)};
var Or=nPV;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Or.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F(),_.A("design:type",Object)],Or.prototype,"appId",void 0);_.X([_.F(),_.A("design:type",Boolean)],Or.prototype,"mdxConnected",void 0);_.X([_.F(),_.A("design:type",Boolean)],Or.prototype,"receiverAvailable",void 0);_.X([_.F(),_.A("design:type",Object)],Or.prototype,"receiverName",void 0);_.X([_.F(),_.A("design:type",Object)],Or.prototype,"currentVideoId_",void 0);
_.X([_.F(),_.A("design:type",Object)],Or.prototype,"currentListId_",void 0);Or=_.X([_.dx({is:"yt-mdx-manager",disableElementRegistration:!0})],Or);_.p(Or,"yt-mdx-manager",void 0,{mode:2});var Q8C;var EPq;var x66=function(){var q=_.N.apply(this,arguments)||this;q.APP_IDS={ytr:3,ytm:5};q.JSC$18619_timeoutId_=0;q.actionMap={"yt-open-create-family-dialog":"open"};return q};
_.z(x66,_.N);_.e=x66.prototype;_.e.created=function(){OGC(2200)};
_.e.detached=function(){this.observer_&&this.observer_.disconnect()};
_.e.open=function(q,Z){var w=this,r=q.serializedYpcFamilyCreateLoggingParams;this.JSC$18619_timeoutId_=setTimeout(this.abort_.bind(this,q.postFlowErrorEndpoint,r),3E4);Z&&(this.onReadyCallback_=Z);var Y=_.E(this.hostElement).querySelector("#unicorn-iframe");r&&r&&hIC("ypcFamilyCreateFlowStarted",r);_.Vgj("family_creation",function(){var C=_.Eq("gapi.family_creation.render");_.Eq("gapi.config.update")("iframes/family_creation/url",w.getFamilyCreationUrlWithUnicornParams_());var d=3;q.appId&&q.appId in
w.APP_IDS&&(d=w.APP_IDS[q.appId]);d={authUser:_.zj("SESSION_INDEX")||0,clientId:d,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.zj("HL"),initialflow:[4,5,6,7],m:w.isMobile?1:0,onFlowComplete:w.onUnicornFlowComplete_.bind(w,q.postFlowSuccessEndpoint,r),onError:w.onUnicornFlowError_.bind(w,q.postFlowErrorEndpoint,r),onReady:w.onUnicornFlowReady_.bind(w,q.referencePcidParams)};C(Y,d)})};
_.e.close=function(){_.E(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.e.onUnicornFlowComplete_=function(q,Z){this.close();Z&&Z&&hIC("ypcFamilyCreateFlowSucceeded",Z);_.hy(this.hostElement,"yt-navigate",{endpoint:q})};
_.e.onUnicornFlowError_=function(q,Z){this.close();Z&&hIC("ypcFamilyCreateFlowCancelled",Z);_.hy(this.hostElement,"yt-navigate",{endpoint:q})};
_.e.onUnicornFlowReady_=function(q){var Z=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();q&&_.Eq("gapi.family_creation.setConfig")(0,q);this.observer_=new MutationObserver(function(){_.E(Z.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.E(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.E(this.hostElement).querySelector("#dialog").open()};
_.e.getFamilyCreationUrlWithUnicornParams_=function(){return _.zj("YTR_FAMILY_CREATION_URL")};
_.e.getCurrentUrl_=function(){return document.location.href};
_.e.abort_=function(q,Z){this.clearTimeout_();this.onUnicornFlowError_(q,Z)};
_.e.clearTimeout_=function(){clearTimeout(this.JSC$18619_timeoutId_)};
var Ho=x66;_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Ho.prototype,"ytActionHandlerBehavior",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ho.prototype,"isMobile",void 0);_.X([_.F(),_.A("design:type",Object)],Ho.prototype,"onReadyCallback_",void 0);_.X([_.F(),_.A("design:type",Object)],Ho.prototype,"observer_",void 0);Ho=_.X([_.dx({is:"yt-create-family-dialog",disableElementRegistration:!0})],Ho);
_.p(Ho,"yt-create-family-dialog",function(){if(EPq===void 0){var q=document.createElement("template");_.a(q,'\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');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);var Z=q.content,w=Z.insertBefore;Q8C===void 0&&(Q8C=document.createElement("template"));var r=Q8C;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);EPq=q}q=EPq;return q},{mode:2});var Teu;var U6q;var k07=function(){var q=_.N.apply(this,arguments)||this;q.STEP=1;q.BLOCK_ON=80;q.MIN_PROGESS=0;q.MAX_PROGESS=100;return q};
_.z(k07,_.N);_.e=k07.prototype;_.e.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.e.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));_.t().addProvider({provide:pwq,useValue:this})};
_.e.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.e.finish=function(){var q=this;this.progress=this.MAX_PROGESS;Jqy(function(){q.progress==q.MAX_PROGESS&&(q.hostElement.hidden=!0)})};
_.e.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.My.Object.defineProperties(k07.prototype,{progress:{configurable:!0,enumerable:!0,set:function(q){this.progress_=q;var Z="scaleX("+q/this.MAX_PROGESS+")",w=_.E(this.hostElement).querySelector("#progress").style;w.transform=Z;w.webkitTransform=Z;this.hostElement.setAttribute("aria-valuenow",String(q))},
get:function(){return this.progress_}}});
var KZ6=k07;_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],KZ6.prototype,"ytComponentBehavior",void 0);KZ6=_.X([_.dx({is:"yt-page-navigation-progress",disableElementRegistration:!0})],KZ6);
_.p(KZ6,"yt-page-navigation-progress",function(){if(U6q===void 0){var q=document.createElement("template");_.a(q,'\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');q.content.insertBefore(_.h().content.cloneNode(!0),
q.content.firstChild);var Z=q.content,w=Z.insertBefore;Teu===void 0&&(Teu=document.createElement("template"));var r=Teu;w.call(Z,r.content.cloneNode(!0),q.content.firstChild);U6q=q}q=U6q;return q},{mode:2});var s8b={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"},IO6={"font-size":"12px","font-style":"italic"},cPu={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.n26=function(){return _.V(function(q){_.ub(q)})};_.xc(_.xl(function(){var q=_.ok(_.A6j);return _.u("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var Z;return(Z=q())==null?void 0:Z.announcement})},"wg"),"yt-ephemeral-actions");var mCS=new Map;var EcZ=function(q,Z){var w=this;this.handleError=q;this.logEventInternal=Z;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){w.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
EcZ.prototype.logError=function(q){this.handleError(q)};
EcZ.prototype.logEvent=function(q,Z){switch(q){case "IDB_DATA_CORRUPTED":_.b("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",Z);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",Z);break;case "IS_SUPPORTED_COMPLETED":_.b("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",Z);break;case "QUOTA_EXCEEDED":M$y(this,Z);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",Z);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":q=Object.assign({},Z,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",q)}};
var M$y=function(q,Z){_.D0.getInstance().estimate().then(function(w){w=Object.assign({},Z,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:fSl(w==null?void 0:w.usage),deviceStorageQuotaMbytes:fSl(w==null?void 0:w.quota)});q.logEventInternal("idbQuotaExceeded",w)})};var FZl=function(){var q=_.N.apply(this,arguments)||this;q.tabGesturesIsActive=!1;q.deprecateFullerscreenUi=_.b("web_watch_fullerscreen_deprecation_ui");q.hasDelegation=!1;q.darkerDarkTheme=_.b("web_darker_dark_theme");q.isFrostedGlassInitialized=!1;q.frostedGlassExp=_.b("web_frosted_glass");q.mastheadHiddenFocusWithinKillswitch=_.b("web_masthead_hidden_focus_within_killswitch");q.ephemeralActionsEnabled=_.b("web_ephemeral_actions");q.scrollAtTop=!0;q.guideScrollTop=0;q.isTheaterModeSession=_.BF("START_IN_THEATER_MODE");
q.isFullWindowSession=_.BF("START_IN_FULL_WINDOW_MODE");q.hasCreateFamilyDialog=!1;q.mastheadHeight=56;q.networkStatusManager=new _.To;q.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":"handleSelectCountryCommand","yt-select-language-command":"handleSelectLanguageCommand","yt-clear-url-param-command":"handleClearUrlParamCommand","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-persist-subscriptions-display-preferences-command":"handlePersistSubscriptionsDisplayPreferencesCommand","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleWebNativeShareCommand","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"};q.dynamicActionMap={"yt-run-attestation-command":function(Z){var w=_.eTD.instance,r=_.J(Z,_.y$D);return r?_.b("use_rta_manager_for_async")&&
ocV()?qiC(w,r,Z.clickTrackingParams):gXV(w,r,Z.clickTrackingParams):_.TX(Error("mi"))}};
q.isFrostedGlassDisabled=!1;q.isChannelOrPlaylistPage=!1;return q};
_.z(FZl,_.N);_.e=FZl.prototype;_.e.created=function(){var q=_.t();_.b("kevlar_clear_duplicate_pref_cookie")&&_.WO(_.v5,function(){var Z=_.Yr.get("PREF");Z&&!/f\d=/.test(Z)&&(Z=_.Af("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=Z?"PREF=null;domain="+Z+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.b("gzip_gel_with_worker")&&_.JJT();_.b("jspb_serialize_with_worker")&&FqZ();_.b("web_worker_availability_check")&&Aql();_.b("nwl_init_killswitch")||cEb().then(function(){_.v5.addLowPriorityJob(yWZ)});
this.pageManagerAttachedPromise=_.Be();this.ytdAppBehavior.loadDepsPromise=_.WD([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.pV(this.onThrottledScroll,200,this);_.b("external_fullscreen")&&(this.fullscreen=!1);this.ephemeralResponseStore=q.resolve(_.A_);this.boundOnTouchStart=this.onTouchStart.bind(this);xx7();tgD=!!_.Eq("ytappsettings.initialized");g$=_.Eq("ytappsettings.previousValue");x0q=_.Eq("ytappsettings.previousSnapshotTime");tgD||
(tgD=!0,T6l());rz6();Yg7();_.bO("DEFERRED_DETACH",_.b("kevlar_tuner_should_defer_detach"));_.bO("REUSE_COMPONENTS",!0);_.bO("STAMPER_STABLE_LIST",!0);_.bO("SCHEDULED_LAZY_LIST",!0);_.bO("openPopupConfig",el7);_.bO("useClickHandler",!0);_.b("kevlar_shell_cleanup")&&_.v5.addLowPriorityJob(jkD.bind(this,_.$1.caches));_.BF("IS_SHELL_LOAD")&&_.RV({shellStartupDurationMs:Math.round((0,_.lp)()-_.LR())});T_q(this.networkStatusManager);_.b("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",zUD(s8b)),
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!",zUD(IO6)),console.log("%cVisit http://go/join-youtube-web to apply today.",zUD(cPu)));_.DMb(q.resolve(_.Xt),1E3)};
_.e.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var q=hKb();q&&!_.b("external_fullscreen_killswitch")&&document.addEventListener(q,this.setFullscreen.bind(this));(q=window.matchMedia("(prefers-color-scheme: dark)"))&&q.addEventListener&&q.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.e.attached=function(){var q=this;_.zB().processSignal("ci");_.b("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.c22?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Cd(_.z1X(),"SUCCESS");this.updateIconSet();_.fp(this.guideInnerContent,!1);_.DK().initVisibilityObserver();this.guideService.guideElement=this.guide;var Z=document.createElement("ytd-miniplayer"),w=_.E(this.hostElement).querySelector("#content");
_.E(this.hostElement).insertBefore(Z,w);_.zB().processSignal("ma");_.t().resolve(_.Tf).init(Z);_.BF("IS_SHELL_LOAD")&&(w=document.createElement("ytd-network-status-banner"),_.E(this.hostElement).insertBefore(w,Z));_.b("kevlar_right_click_on_lockups")&&_.EZ._onCaptureClick&&document.addEventListener("contextmenu",_.EZ._onCaptureClick.bind(_.EZ),!0);var r=function(){var Y=_.xb("yt-page-navigation-progress");_.E(q.hostElement).appendChild(Y)};
setTimeout(function(){_.zB().parkOrScheduleJob(r,0,"eocs",16)},0);
_.b("service_worker_push_enabled")&&_.WO(_.v5,D0b);_.k7(_.UU.getInstance(),this.dynamicActionMap,this.hostElement);_.hy(this.hostElement,"ytd-app-attached");_.zB().processSignal("aa");H6l(this.hostElement);_.IR("gapi.load",_.Vgj);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.WO(_.v5,
function(){var Y=document.createElement("ytd-video-preview");_.E(_.E(q.hostElement).querySelector("#video-preview")).appendChild(Y)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.WO(_.v5,function(){QnD();q.registerViewTransitionTasks()});
if(_.bq()&&this.isAppDarkTheme()!==_.tr())this.onDarkModeToggledAction();else Z=_.RJ()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==Z&&(_.b("enable_dark_theme_only_on_shorts")?_.ja(_.b("enable_dark_theme_only_on_shorts_control")?window.location.href:_.sq(window.location.href,{theme:"dark"})):_.bx(new _.df("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(VYC=new deC(this.hostElement)),aOl=new BeF(this.hostElement),zVS=new JPZ(this.hostElement),Esy=new QOC(this.hostElement)};
_.e.getThemeSettingsToLog=function(){var q=_.RJ()==="USER_INTERFACE_THEME_DARK";q=_.bq()?_.tr()?"os-dark":"os-light":q?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:q,cookiesEnabled:_.eT()}};
_.e.detached=function(){_.Dj(this.guideInnerContent);_.v5.cancelJob(fE);fE=0;_.v5.cancelJob(hh);hh=0;_.IfO(O6C);O6C.length=0;Plu=_.bOT=null;_.DK().dispose();_.b("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Kb(_.UU.getInstance(),VYC.playlistHandlerActionMap,VYC.JSC$28182_clientRoot);_.Kb(_.UU.getInstance(),aOl.downloadManagerActionMap,aOl.JSC$28487_clientRoot);_.Kb(_.UU.getInstance(),zVS.feedbackCollectorActionMap,zVS.JSC$28482_clientRoot);
for(var q=_.P(Esy.eventListeners),Z=q.next();!Z.done;Z=q.next()){var w=_.P(Z.value);Z=w.next().value;w=w.next().value;w=_.P(w);for(var r=w.next();!r.done;r=w.next()){var Y=_.P(r.value);r=Y.next().value;Y=Y.next().value;Z.removeEventListener(r,Y)}}_.Kb(_.UU.getInstance(),Esy.autonavPauseActionMap,Esy.JSC$17564_clientRoot)};
_.e.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Hd().getFlag(186)};
_.e.computeIsInlinePreviewEnabled=function(q,Z,w){return!w&&_.Xd8({miniplayerIsActive:q,miniplayerPlaybackState:Z})};
_.e.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.mu({type:"SET_FROSTED_GLASS_MODE",payload:!_.b("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"}))};
_.e.computeIsFrostedGlassDisabled=function(q,Z,w,r){return q||Z||w||r&&_.b("web_frosted_glass_disable_watch")};
_.e.computeIsHomePage=function(q,Z){if(!q||Z==null||!Z.endpoint)return!1;var w;return((w=_.J(Z.endpoint,_.qZ))==null?void 0:w.browseId)==="FEwhat_to_watch"};
_.e.updateIsChannelOrPlaylistPage=function(){if(_.b("web_frosted_glass")){var q,Z,w=(Z=(q=_.t().resolve(_.Gj(_.U1)))==null?void 0:q.getCurrentPage())==null?void 0:Z.pageSubtype;this.isChannelOrPlaylistPage=w?["channel","channels","playlist"].includes(w):!1}};
_.e.scheduleFrostedGlassInitialization=function(){var q=this;_.b("web_frosted_glass")&&_.zB().parkOrScheduleJob(function(){q.isFrostedGlassInitialized=!0},0,_.oI(["eocs",
"cr"]),300)};
_.e.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.C_e(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.mu({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.mu({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.e.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(VgS(!0))};
_.e.onYtSignalActionRequestPersistentStorage=function(){if(!_.b("request_persistent_storage_killswitch")){var q=_.t().resolve(_.NcZ);q.cachedPersistStatePromise||(q.cachedPersistStatePromise=B27())}};
_.e.handleYtChannelCreationFormEndpoints=function(q){q&&this.ytComponentBehavior.resolveCommand(q)};
_.e.handleShowEngagementPanelEndpoint=function(q){q&&this.ytComponentBehavior.resolveCommand(q)};
_.e.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(VgS(!1))};
_.e.initIconDefs=function(q,Z,w){var r=document.createElement("iron-iconset-svg");r.name=q;q=document.createElementNS("http://www.w3.org/2000/svg","svg");r.appendChild(q);q.appendChild(Z);if(w)for(var Y in w)r[Y]=w[Y];document.body.appendChild(r);return r};
_.e.onWindowResized=function(){_.yY(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var q=_.L8g.getInstance();q.documentWidth_=document.body.clientWidth;ag8(q)};
_.e.onWindowScrolled=function(){var q=_.t().resolve(_.U1).getCurrentPage();if(q!=null&&q.getScrollTop){var Z=this.ytdReduxBehavior,w=Z.dispatch;q=q.getScrollTop()<=0;w.call(Z,_.mu({type:"SET_SCROLL_AT_TOP",payload:q}))}};
_.e.guideIsVisibleButNotPersistentSelectorChanged=function(){var q=_.t().resolve(_.U1).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=q.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"),
q.setScrollTop(this.guideScrollTop));_.i5(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.e.getCurrentPageScrollableElementType=function(){var q=_.t().resolve(_.U1).getCurrentPage();if(q&&q.getPageScrollingElement())return q.getPageScrollingElement().nodeName};
_.e.observeGuideVisibility=function(){var q=_.L8g.getInstance(),Z=this.miniGuideVisible;q.guidePersistentAndVisible_=this.guidePersistentAndVisible;q.miniGuideVisible_=Z;ag8(q)};
_.e.handleEduDismissAction=function(q){q&&q.eduDismissAction&&(_.yY(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.O29.getInstance(),_.cV.set(q.eduDismissAction.key+"-dismissed",!0))};
_.e.handleEduImpressionAction=function(q){if(q&&q.eduImpressionAction){var Z=_.O29.getInstance();q=q.eduImpressionAction.key;Z.JSC$10749_eduDisplayedThisLoad_[_.Vd9[q].setKey||q]=!0;_.cV.set(q+"-impression",parseInt(_.cV.get(q+"-impression")||0,10)+1)}};
_.e.onYtSignalActionConfirmMentionsEdu=function(){_.yY(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Nk.getInstance();_.Ff.set("edu-dismissed",!0)};
_.e.onYtSignalActionRecordMentionsEduImpression=function(){_.Nk.getInstance();var q=_.Ff.set,Z=parseInt(_.Ff.get("edu-impressions"),10);q.call(_.Ff,"edu-impressions",(isFinite(Z)?Z:0)+1)};
_.e.onYtPageManagerAttached=function(q){var Z;((Z=_.xz(q))==null?void 0:Z.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.e.onInvokeInstrumentManagerAction=function(q,Z){iNC(Z,q)};
_.e.updateIconSet=function(){var q=this.hostElement.querySelector("#masthead");if(q){var Z=_.FN(q),w=Z.querySelector("g#yt-logo-updated");w&&(q=document.createElementNS("http://www.w3.org/2000/svg","defs"),q.appendChild(w.cloneNode(!0)),(Z=Z.querySelector("g#yt-logo-red-updated"))&&q.appendChild(Z.cloneNode(!0)),this.initIconDefs("yt-logos-ext",q))}};
_.e.updateMastheadData=function(){var q=this,Z,w,r,Y;return _.V(function(C){if(C.nextAddress==1){Z=q.data;w=q.hostElement.querySelector("#masthead");if(!w)return C.return();_.I_(q,function(){w.data=q.topbarData});
return q.get("response.topbar",Z)&&q.get("response.topbar.responseContext.maxAgeSeconds",Z)!==0?(r=_.t().resolve(_.Bs))?_.W(C,r(),7):q.ephemeralResponseStore?_.W(C,q.ephemeralResponseStore.put("service:topbar:fallback",new _.fO({innertubeResponse:q.get("response.topbar",Z)})),0):C.jumpTo(0):C.jumpTo(0)}return(Y=C.yieldResult)?_.W(C,Y.put("service:topbar:fallback",new _.fO({innertubeResponse:q.get("response.topbar",Z)})),0):C.jumpTo(0)})};
_.e.computeTopbarData=function(q){if(!q)return null;var Z;return this.isShortsPage&&this.topbarData&&!_.J((Z=q.response)==null?void 0:Z.topbar,ndZ)?this.topbarData:q.response&&"topbar"in q.response?_.J(q.response.topbar,ndZ)||null:null};
_.e.onSetTheaterModeEnabled=function(q,Z){this.isTheaterModeSession=Z.enabled;this.setTheaterModeStyles(Z.enabled)};
_.e.setTheaterModeStyles=function(){this.setMastheadTheme()};
_.e.onDarkModeToggledAction=function(){var q=_.gA(window.location.href);if(!_.T7e(q)){(q=!!_.Ks(window.location.href).themeRefresh)&&_.bx(new _.df("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!q){T6l();q={themeRefresh:1};var Z=_.t().resolve(_.U1);if(Z.isOnWatch()){var w,r;Z=((w=Z.getPlayerFromWatch())==null?void 0:(r=w.getPlayer())==null?void 0:r.getCurrentTime())||0;Z>=1&&(q.time_continue=Math.floor(Z))}_.eT()||_.RJ()!=="USER_INTERFACE_THEME_DARK"||(q.theme="dark");_.ja(_.sq(window.location.href,
q))}_.b("web_appshell_refresh_trigger")&&_.$1.caches&&this.refreshAppShellResponse();w=_.UP(window.location.href);_.t().resolve(_.FkD).replaceUrl(_.pp(w,"theme"))}};
_.e.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.e.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.e.onPlayerFullscreen=function(q){_.mJ();this.playerFullscreen=q};
_.e.setRestrictedMode=function(q){var Z=_.Hd();_.Wd(0,58,q);Z.save();_.t().resolve(_.fq).reload()};
_.e.onPageChanged=function(q){q.detail.newPageType==="ytd-watch-flexy"||q.detail.newPageType==="ytd-watch-fixie"||q.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.bi("WEB_PAGE_TYPE_WATCH")):q.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.bi("WEB_PAGE_TYPE_SHORTS")):q.detail.newPageType==="ytd-browse"&&q.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.bi("WEB_PAGE_TYPE_MINI_APP")):_.b("web_frosted_glass")&&q.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.bi("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.bi("WEB_PAGE_TYPE_UNKNOWN"));q.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.e.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.e.onGuideToggleTap=function(){_.hy(this.hostElement,"yt-guide-toggle")};
_.e.onGuideToggleHover=function(){_.hy(this.hostElement,"yt-guide-hover")};
_.e.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.e.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.e.setMastheadTheme=function(){var q=_.FN(this.hostElement).querySelector("#masthead");q&&(q.dark=q.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),q.isDarkThemeForced=!1)};
_.e.onRequestPanelModeChange=function(q,Z){this.hideHeaderShadow=Z.mode!=="seamed"};
_.e.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.e.onDrawerIronSelect=function(q){_.xz(q).id==="guide"&&this.processDrawerIronSelect()};
_.e.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var q="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(q="opened"));_.hy(this.hostElement,"yt-autonav-pause-guide-"+q)};
_.e.onAddElementToApp=function(q){_.E(this.hostElement).appendChild(q.detail)};
_.e.onThrottledScroll=function(){var q=_.t().resolve(_.U1).getCurrentPage();q&&(this.scrollAtTop=q.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.e.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.e.setFullscreen=function(){if(_.b("external_fullscreen")||!this.isWatchPage){var q=_.b("kevlar_fullerscreen_root_only_killswitch")?!!_.mJ():!!_.mJ()&&_.mJ()===document.documentElement;q=(this.isWatchPage||_.b("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(q||this.isFullWindowSession);this.fullscreen!==q&&((this.fullscreen=q)&&_.i5(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.sE().dispatch(_.dxS(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.toggleFullscreenStyles(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen),_.yY(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.e.setFullscreenLoggingForShorts=function(q){var Z,w,r;return _.V(function(Y){if(Y.nextAddress==1)return _.W(Y,(Z=_.K6())==null?void 0:Z.getPlayerPromise(),2);w=Y.yieldResult;(r=w)==null||r.setAppFullscreen(q);_.ub(Y)})};
_.e.updateMastheadCssHeight=function(){var q=this.mastheadHeight;this.fullscreen&&(q=0);_.po(this.hostElement,{"--ytd-masthead-height":q+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.e.updateNetworkStatusBannerDisplayStatus=function(){var q="unset";this.fullscreen&&(q="none");_.po(this.hostElement,{"--ytd-network-status-banner-display":q})};
_.e.updateNetworkStatusBannerCssHeight=function(){var q="unset";this.fullscreen&&(q="0px");_.po(this.hostElement,{"--ytd-network-status-banner-max-height":q})};
_.e.toggleFullscreenStyles=function(q,Z,w){var r=_.t().resolve(_.U1).getCurrentPage();q||Z?(document.body.classList.add("no-scroll"),r.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.XN(this,this.onScroll)),r.setScrollTop(0),_.po(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.V$()+"px"})):w?_.hy(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.hy(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),r.pageScrollElement=
null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.XN(this,this.onScroll)));this.mastheadHidden=q||Z||w;this.updateMastheadCssHeight();_.b("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.e.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.e.onYtMastheadHeightChanged=function(q,Z){this.mastheadHeight=Z.height;this.updateMastheadCssHeight()};
_.e.onYtNavigateAction=function(q){q=this.get("navigateAction.endpoint",q);_.hy(this.hostElement,"yt-navigate",{endpoint:q})};
_.e.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var q=document.createElement("yt-create-family-dialog");_.E(this.hostElement).appendChild(q);this.hasCreateFamilyDialog=!0}};
_.e.onSetPushNotificationsEnabledCommand=function(q){var Z=this,w=_.J(q,ax7);w&&typeof w.enabled==="boolean"&&(Notification.permission!=="granted"?peV().then(function(){Notification.permission==="granted"?(adl(!w.enabled).then(EBq),w.successAction&&_.qM(Z.hostElement,[w.successAction])):w.failureAction&&_.qM(Z.hostElement,[w.failureAction])}):(adl(!w.enabled).then(EBq),w.successAction&&_.qM(this.hostElement,[w.successAction])))};
_.e.onYtSignalActionEnableChromeNotifications=function(){Xe7(!0)};
_.e.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.J(this.topbarData.hotkeyDialog,xOc)}}})};
_.e.onYtSignalActionShowKeyboardShortcutDialog=function(){_.yY(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.e.onYtEndpointChangeHandler=function(q,Z){var w=_.gn(_.AD);w.pendingPrefetchJob_&&(Z=!(!Z||Z.autonav!="1"),w.pendingPrefetchJob_.resolve(q&&_.J_1(q)?_.zG6(q,Z):""),w.pendingPrefetchJob_=null);_.yY(this.hostElement,"yt-pause-active-page-context");_.yY(this.hostElement,"ytd-log-youthere-nav");_.yY(this.hostElement,"yt-prepare-page-dispose")};
_.e.handleClearUrlParamCommand=function(q){if(q.clearUrlParamCommand&&q.clearUrlParamCommand.paramKeys){var Z=q.clearUrlParamCommand.paramKeys;q=_.UJ(window.location.href);Z=_.P(Z);for(var w=Z.next();!w.done;w=Z.next())q.JSC$7906_queryData_.remove(w.value);window.history.replaceState(window.history.state,document.title,q.toString())}};
_.e.handleCommandWithCommandHandler=function(q,Z){_.AJ.instance.resolveCommand(q,{form:{element:Z}})};
_.e.onYtTimedCommand=function(q){var Z=this;q=_.J(q,HL6);var w=q.command;w&&_.OM(_.v5,function(){var r=_.J(w,_.iHK);r?(_.AJ.instance.resolveCommand(w),Z.maybeLogGetAnswerRequestTick(r)):_.ZC(Z.hostElement,[w],Z.hostElement)},q.timeoutMs||0)};
_.e.maybeLogGetAnswerRequestTick=function(q){q&&q.isFirstRequest&&(_.bI("search_overview_answer"),_.JT("so_rq",void 0,"search_overview_answer"))};
_.e.onYtSignalActionSkipNavigation=function(){var q=_.t().resolve(_.U1).getCurrentPage();_.sG(q)};
_.e.onYtSignalActionCopyDebugData=function(){YMC()};
_.e.handleEntityUpdateCommand=function(q){_.rt(_.J(q,_.rHK).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.e.logFlowLoggingEventCommand=function(q){if(q=_.J(q,_.AF6))if(q.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var Z=q.flowEventNamespace,w=q.flowEventType,r=q.flowType;r&&Z&&w&&_.uYN(_.h0(Z,w,q.flowEventMetadata),r)}else{Z=_.iF();w=q.flowEventNamespace;r=q.flowEventType;var Y=q.flowType;Y&&w&&r&&_.yR(Z,_.h0(w,r,q.flowEventMetadata),Y,q.flowNonce)}};
_.e.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.e.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.e.onTouchStart=function(){var q=_.hD();_.b5()&&_.Rk(q.JSC$10901_screenManager,{visualElement:q.ve})};
_.e.handleWebNativeShareCommand=function(q){navigator.share({url:_.J(q,zhc).url}).catch(function(){})};
_.e.handleSelectCountryCommand=function(q){if(q=_.J(q,RhZ).gl){var Z={persist_gl:1,gl:q},w=_.Hd();w.set("gl",q);w.save();q=mL8(Z);_.ja(q)}};
_.e.handlePersistSubscriptionsDisplayPreferencesCommand=function(q){if(q=_.J(q,vdu)){var Z=_.Hd();_.Wd(0,155,q.useListView);Z.save()}};
_.e.handleSelectLanguageCommand=function(q){if(q=_.J(q,bLF).hl){var Z=_.Hd();Z.set("hl",q);Z.save();_.t().resolve(_.fq).reload()}};
_.e.handleConfirmDialogEndpoint=function(q){(q=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(q))&&this.ytOpenPopupBehavior.openPopup(q)};
_.e.handleOpenPopupNavigationEndpoints=function(q,Z){_.b("web_button_rework")&&(q=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(q))&&this.ytOpenPopupBehavior.openPopup(q,Z)};
_.e.handleSaveCommandToSessionStorage=function(q){if(q=_.J(q,_.rq1)){var Z=q.key;Z&&q.command&&window.sessionStorage.setItem(Z,JSON.stringify(q.command))}};
_.e.hardReloadWithShellPurge=function(q){q=q===void 0?{}:q;q=Object.assign({},q,{purge_shell:1});q=mL8(q);_.ja(q)};
_.e.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(q){q&&q.active&&q.active.postMessage({type:"refresh_shell"})}).catch(function(q){q.name!=="SecurityError"&&_.tY(q)})};
_.e.onDeviceThemeChanged=function(){var q=_.tr();_.Wd(_.Hd(),185,q);_.Hd().save()};
_.e.handleYtRegisterPromoCommand=function(q){if(_.J(q,B7u)){var Z=_.t().resolve(_.U1).getCurrentPage()||this.hostElement;sc7().registerPromoCommand(_.J(q,B7u),Z)}};
_.e.onYtNavigateHomeAction=function(){if(!_.b("kevlar_miniplayer_navigate_home_from_app_killswitch")){var q,Z,w,r,Y=(r=(q=this.topbarData)==null?void 0:(Z=q.logo)==null?void 0:(w=Z.topbarLogoRenderer)==null?void 0:w.endpoint)!=null?r:_.ZK;this.ytComponentBehavior.resolveCommand(Y)}};
_.e.onYtLocationCollectionCommand=function(q){aSZ(_.J(q,MRl))};
_.e.onYtGetLocationCommand=function(q){VFF(_.J(q,cpl),this)};
_.e.updateRenderGuideFromBinding=function(q){this.renderGuide=q.detail.value};
_.e.updateGuidePersistentAndVisibleFromBinding=function(q){this.guidePersistentAndVisible=q.detail.value};
_.e.updateMiniGuideVisibleFromBinding=function(q){this.miniGuideVisible=q.detail.value};
_.e.onThemeSelected=function(q,Z){var w=_.Hd(),r=q||Z?q:_.tr(),Y=(r&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!r&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.T7e(_.gA(window.location.href));_.Wd(0,165,q);_.Wd(0,174,Z);w.save();Y&&_.yY(this.hostElement,"yt-dark-mode-toggled-action",[r]);_.yY(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.e.getCurrentTheme=function(){return _.bq()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.RJ()};
_.e.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.e.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.e.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.e.handleShowConsentPrimitive=function(q){var Z=this,w,r;return _.V(function(Y){if(Y.nextAddress==1){try{w=(r=_.K6())==null?void 0:r.getPlayerPromise()}catch(C){}return _.W(Y,XDS(q,w),2)}_.yY(Z.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.ub(Y)})};
_.e.handleSelectActiveIdentityEndpointInternal=function(q){_.Sa();q=_.J(q,_.Hq7);if(q!=null&&q.supportedTokens){q=_.P(q.supportedTokens);for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.accountSigninToken&&_.ja(Z.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.e.handleUpdatePermissionRoleCommand=function(q){if(q=_.J(q,_.uGJ)){var Z;this.hasDelegation=!((Z=_.J(q.renderer,_.o5p))==null||!Z.status)}};
_.e.registerViewTransitionTasks=function(){var q=this,Z=_.t().resolve(_.Gj(_.fLZ));if(Z){var w,r=(w=this.guide)==null?void 0:w.querySelector("#scrim"),Y,C=(Y=this.guide)==null?void 0:Y.querySelector("#contentContainer");r&&C&&(w={beforeTransition:function(){var d;(d=q.guide)!=null&&d.persistent||(r.style.viewTransitionName="app-drawer-scrim",C.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var d;(d=q.guide)!=null&&d.persistent||(r.style.viewTransitionName="",C.style.viewTransitionName="")}},go(Z,"slide",w),go(Z,"zoom",w))}};
_.My.Object.defineProperties(FZl.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.b("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.My.Object.defineProperties(FZl,{template:{configurable:!0,enumerable:!0,get:function(){if(SjV===void 0){var q=document.createElement("template");_.a(q,'\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<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
q.content.insertBefore(_.h().content.cloneNode(!0),q.content.firstChild);SjV=q}q=SjV;return q}}});
var Wo=FZl;Wo.prototype.onOpenHotkeyDialog=Wo.prototype.onOpenHotkeyDialog;Wo.prototype.onYtMastheadHeightChanged=Wo.prototype.onYtMastheadHeightChanged;Wo.prototype.setFullscreen=Wo.prototype.setFullscreen;Wo.prototype.onAddElementToApp=Wo.prototype.onAddElementToApp;Wo.prototype.onDrawerIronSelect=Wo.prototype.onDrawerIronSelect;Wo.prototype.onGuideOpenButtonHover=Wo.prototype.onGuideOpenButtonHover;Wo.prototype.onRequestPanelModeChange=Wo.prototype.onRequestPanelModeChange;
Wo.prototype.onPageDataUpdated=Wo.prototype.onPageDataUpdated;Wo.prototype.onPageChanged=Wo.prototype.onPageChanged;Wo.prototype.onSetTheaterModeEnabled=Wo.prototype.onSetTheaterModeEnabled;Wo.prototype.updateMastheadData=Wo.prototype.updateMastheadData;Wo.prototype.onYtPageManagerAttached=Wo.prototype.onYtPageManagerAttached;Wo.prototype.observeGuideVisibility=Wo.prototype.observeGuideVisibility;Wo.prototype.guideIsVisibleButNotPersistentSelectorChanged=Wo.prototype.guideIsVisibleButNotPersistentSelectorChanged;
Wo.prototype.isInlinePreviewEnabledChanged=Wo.prototype.isInlinePreviewEnabledChanged;Wo.prototype.dispatchFrostedGlassMode=Wo.prototype.dispatchFrostedGlassMode;_.X([_.U(_.LO),_.A("design:type",Object)],Wo.prototype,"ytdReduxBehavior",void 0);_.X([_.U(_.Yj.YtEventForwardingBehavior),_.A("design:type",Object)],Wo.prototype,"ytEventForwardingBehavior",void 0);_.X([_.U(_.Xp.YtOpenPopupBehavior),_.A("design:type",Object)],Wo.prototype,"ytOpenPopupBehavior",void 0);
_.X([_.U(_.KK.YtActionHandlerBehavior),_.A("design:type",Object)],Wo.prototype,"ytActionHandlerBehavior",void 0);_.X([_.U({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.UU.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.b("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var q;((q=this.actionRouterNode.hostElement)!=null?q:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var q;((q=this.actionRouterNode.hostElement)!=null?q:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(q){this.actionRouter_.handleAction(q.detail)}}),
_.A("design:type",Object)],Wo.prototype,"ytActionRouterBehavior",void 0);_.X([_.U(mHl.YtdAppBehavior),_.A("design:type",Object)],Wo.prototype,"ytdAppBehavior",void 0);_.X([_.U(_.ma.YtEndpointBehavior),_.A("design:type",Object)],Wo.prototype,"ytEndpointBehavior",void 0);_.X([_.U(bUV.YtEndpointHandlerWithYpcBehavior),_.A("design:type",Object)],Wo.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.X([_.U(vP7.YtLogYpcFlowCommandsBehavior),_.A("design:type",Object)],Wo.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.X([_.U(_.y.YtRendererBehavior),_.A("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.X([_.U(_.S_.YtComponentBehavior),_.A("design:type",Object)],Wo.prototype,"ytComponentBehavior",void 0);_.X([_.F({selector:_.tx7}),_.A("design:type",Object)],Wo.prototype,"tabGesturesIsActive",void 0);_.X([_.F(),_.A("design:type",Boolean)],Wo.prototype,"renderGuide",void 0);
_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Wo.prototype,"guidePersistentAndVisible",void 0);_.X([_.F({selector:_.j_V}),_.A("design:type",Boolean)],Wo.prototype,"guideIsVisibleButNotPersistent",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Wo.prototype,"standalone",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Wo.prototype,"miniGuideVisible",void 0);
_.X([_.F({selector:_.Ukz}),_.A("design:type",Number)],Wo.prototype,"miniplayerPlaybackState",void 0);_.X([_.F({selector:_.jZ,reflectToAttribute:!0}),_.A("design:type",Boolean)],Wo.prototype,"miniplayerIsActive",void 0);_.X([_.F({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.A("design:type",Boolean)],Wo.prototype,"isInlinePreviewEnabled",void 0);_.X([_.F(),_.A("design:type",Boolean)],Wo.prototype,"isInlinePreviewDisabled",void 0);
_.X([_.F({reflectToAttribute:!0,value:function(){return _.BF("START_IN_FULL_WINDOW_MODE")}}),
_.A("design:type",Boolean)],Wo.prototype,"mastheadHidden",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Wo.prototype,"playerFullscreen",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Wo.prototype,"deprecateFullerscreenUi",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Wo.prototype,"fullscreen",void 0);_.X([_.F({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Wo.prototype,"hideHeaderShadow",void 0);
_.X([_.F({value:{GUIDE_ALT_LABEL:_.dT("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.A("design:type",Object)],Wo.prototype,"menuStrings",void 0);_.X([_.F({computed:"computeTopbarData(data)"}),_.A("design:type",Object)],Wo.prototype,"topbarData",void 0);_.X([_.F({selector:_.t0}),_.A("design:type",Boolean)],Wo.prototype,"isWatchPage",void 0);_.X([_.F({selector:_.ECN,reflectToAttribute:!0}),_.A("design:type",Boolean)],Wo.prototype,"isShortsPage",void 0);
_.X([_.F({selector:function(q){return q.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.A("design:type",Boolean)],Wo.prototype,"isMiniAppPage",void 0);_.X([_.F({selector:function(q){return q.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.A("design:type",Boolean)],Wo.prototype,"isBrowsePage",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Boolean)],Wo.prototype,"scrolling",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Wo.prototype,"hasDelegation",void 0);_.X([_.F({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Wo.prototype,"guideScrolledByTouch",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Wo.prototype,"darkerDarkTheme",void 0);
_.X([_.F(),_.A("design:type",Object)],Wo.prototype,"isFrostedGlassInitialized",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Wo.prototype,"frostedGlassExp",void 0);_.X([_.F({selector:function(q){return q.ui.chipBarIsSticky}}),
_.A("design:type",Boolean)],Wo.prototype,"chipBarIsSticky",void 0);_.X([_.F({computed:"computeIsHomePage(isBrowsePage, data)"}),_.A("design:type",Boolean)],Wo.prototype,"isHomePage",void 0);_.X([_.F({reflectToAttribute:!0}),_.A("design:type",Object)],Wo.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.X([_.F(),_.A("design:type",Object)],Wo.prototype,"ephemeralActionsEnabled",void 0);_.X([_.KE("guide"),_.A("design:type",Object)],Wo.prototype,"guide",void 0);
_.X([_.KE("guide-service"),_.A("design:type",kbl)],Wo.prototype,"guideService",void 0);_.X([_.KE("guide-inner-content"),_.A("design:type",HTMLDivElement)],Wo.prototype,"guideInnerContent",void 0);_.X([_.F({selector:_.KM2}),_.A("design:type",String)],Wo.prototype,"frostedGlassMode",void 0);
_.X([_.M("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wo.prototype,"dispatchFrostedGlassMode",null);_.X([_.F({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.A("design:type",Object)],Wo.prototype,"isFrostedGlassDisabled",void 0);
_.X([_.I("isHomePage","chipBarIsSticky"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Wo.prototype,"applyFrostedGlassToChipBar",null);_.X([_.F(),_.A("design:type",Object)],Wo.prototype,"isChannelOrPlaylistPage",void 0);_.X([_.g3("isInlinePreviewEnabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wo.prototype,"isInlinePreviewEnabledChanged",null);
_.X([_.M("guideIsVisibleButNotPersistent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wo.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.X([_.M("guidePersistentAndVisible","miniGuideVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wo.prototype,"observeGuideVisibility",null);
_.X([_.m2("attached"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Wo.prototype,"onYtPageManagerAttached",null);_.X([_.M("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],Wo.prototype,"updateMastheadData",null);_.X([_.m2("yt-set-theater-mode-enabled"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Wo.prototype,"onSetTheaterModeEnabled",null);
_.X([_.m2("yt-page-type-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Wo.prototype,"onPageChanged",null);_.X([_.m2("yt-page-data-updated"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wo.prototype,"onPageDataUpdated",null);_.X([_.m2("yt-request-panel-mode-change"),_.A("design:type",Function),_.A("design:paramtypes",[Event,Object]),_.A("design:returntype")],Wo.prototype,"onRequestPanelModeChange",null);
_.X([_.m2("yt-guide-hover"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wo.prototype,"onGuideOpenButtonHover",null);_.X([_.m2("app-drawer-transitioned"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Wo.prototype,"onDrawerIronSelect",null);_.X([_.m2("yt-add-element-to-app"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Wo.prototype,"onAddElementToApp",null);
_.X([_.m2("yt-set-fullerscreen-styles"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wo.prototype,"setFullscreen",null);_.X([_.m2("yt-masthead-height-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Wo.prototype,"onYtMastheadHeightChanged",null);_.X([_.m2("yt-open-hotkey-dialog"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wo.prototype,"onOpenHotkeyDialog",null);
Wo=_.X([_.l({is:"ytd-app"})],Wo);_.zB().processSignal("eor");
_.J1();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
